Skip to content

A free open source IT asset/license management system

Installed fullcalendar, generated assets

snipe00cbf860cbe1
diff --git a/package-lock.json b/package-lock.json
index 0b6807188a..ec72c40ed3 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -6,6 +6,11 @@
"": {
"dependencies": {
"@fortawesome/fontawesome-free": "^6.7.2",
+ "@fullcalendar/core": "^6.1.21",
+ "@fullcalendar/daygrid": "^6.1.21",
+ "@fullcalendar/interaction": "^6.1.21",
+ "@fullcalendar/list": "^6.1.21",
+ "@fullcalendar/timegrid": "^6.1.21",
"acorn": "^8.14.1",
"acorn-import-assertions": "^1.9.0",
"admin-lte": "^2.4.18",
@@ -1853,6 +1858,54 @@
"node": ">=6"
}
},
+ "node_modules/@fullcalendar/core": {
+ "version": "6.1.21",
+ "resolved": "https://registry.npmjs.org/@fullcalendar/core/-/core-6.1.21.tgz",
+ "integrity": "sha512-t3u/+sqh3Iq7TWtUnVLcGDUE6OWZh0UD3c04bI/l7lSLAgAKr3kngBmhHiQD1QXpwC8ZN5iNqG7a7gOVixhSKQ==",
+ "license": "MIT",
+ "dependencies": {
+ "preact": "~10.12.1"
+ }
+ },
+ "node_modules/@fullcalendar/daygrid": {
+ "version": "6.1.21",
+ "resolved": "https://registry.npmjs.org/@fullcalendar/daygrid/-/daygrid-6.1.21.tgz",
+ "integrity": "sha512-QYb1y40RGYLlOxKpYWg8O+7njEnKnFG8Tt7qjnubJGR35s1phQg67E+81y2TyAbbm59p2JFOCXGDk9t6KDujIA==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@fullcalendar/core": "~6.1.21"
+ }
+ },
+ "node_modules/@fullcalendar/interaction": {
+ "version": "6.1.21",
+ "resolved": "https://registry.npmjs.org/@fullcalendar/interaction/-/interaction-6.1.21.tgz",
+ "integrity": "sha512-WPYpqtljDWmU0Xm2cOtFrLlocgxv7cgkOppj34Q6OUUat8a6Cnd6kYo2JR+irP223PE5lBYHFNp1qh7SIpJc0w==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@fullcalendar/core": "~6.1.21"
+ }
+ },
+ "node_modules/@fullcalendar/list": {
+ "version": "6.1.21",
+ "resolved": "https://registry.npmjs.org/@fullcalendar/list/-/list-6.1.21.tgz",
+ "integrity": "sha512-2rpIhs5pJmV7jyk4oX4bckNqurt6iHcsweE3FDYDdNpmRukPrARnyQYcaVFNVw2bnBFeR/jQW/St2MlauxF3GQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@fullcalendar/core": "~6.1.21"
+ }
+ },
+ "node_modules/@fullcalendar/timegrid": {
+ "version": "6.1.21",
+ "resolved": "https://registry.npmjs.org/@fullcalendar/timegrid/-/timegrid-6.1.21.tgz",
+ "integrity": "sha512-2DnShx/jallGmb8QCkr6pAOu/zuPhJrP7+uTrAtSnbqsX7GF3lTxqSeNGkTQwsgF5g/ia8udhQ+JNYaE+TN1cQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@fullcalendar/daygrid": "~6.1.21"
+ },
+ "peerDependencies": {
+ "@fullcalendar/core": "~6.1.21"
+ }
+ },
"node_modules/@jridgewell/gen-mapping": {
"version": "0.3.5",
"license": "MIT",
@@ -8964,6 +9017,16 @@
"version": "4.2.0",
"license": "MIT"
},
+ "node_modules/preact": {
+ "version": "10.12.1",
+ "resolved": "https://registry.npmjs.org/preact/-/preact-10.12.1.tgz",
+ "integrity": "sha512-l8386ixSsBdbreOAkqtrwqHwdvR35ID8c3rKPa8lCWuO86dBi32QWHV4vfsZK1utLLFMvw+Z5Ad4XLkZzchscg==",
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/preact"
+ }
+ },
"node_modules/prettier": {
"version": "2.8.8",
"dev": true,
diff --git a/package.json b/package.json
index 3a30326206..fdc53492df 100644
--- a/package.json
+++ b/package.json
@@ -30,6 +30,11 @@
},
"dependencies": {
"@fortawesome/fontawesome-free": "^6.7.2",
+ "@fullcalendar/core": "^6.1.21",
+ "@fullcalendar/daygrid": "^6.1.21",
+ "@fullcalendar/interaction": "^6.1.21",
+ "@fullcalendar/list": "^6.1.21",
+ "@fullcalendar/timegrid": "^6.1.21",
"acorn": "^8.14.1",
"acorn-import-assertions": "^1.9.0",
"admin-lte": "^2.4.18",
diff --git a/public/css/build/app.css b/public/css/build/app.css
index 6869492676..82f7a659f5 100644
--- a/public/css/build/app.css
+++ b/public/css/build/app.css
@@ -3546,6 +3546,98 @@ dl.table-display {
.info-panel-actions > .pull-right ~ .pull-right {
margin-left: 0;
}
+[data-theme="dark"] .fc {
+ --fc-border-color: var(--box-header-top-border-color);
+ --fc-page-bg-color: var(--box-bg);
+ --fc-neutral-bg-color: hsl(from var(--box-bg) h s calc(l + 5));
+ --fc-neutral-text-color: var(--color-fg);
+ --fc-list-event-hover-bg-color: hsl(from var(--box-bg) h s calc(l + 8));
+ --fc-today-bg-color: hsl(from var(--main-theme-color) h s calc(l - 25) / 0.25);
+}
+[data-theme="dark"] .fc .fc-col-header-cell,
+[data-theme="dark"] .fc .fc-list-day-cushion {
+ background-color: hsl(from var(--box-bg) h s calc(l + 5));
+ color: var(--color-fg);
+}
+[data-theme="dark"] .fc .fc-col-header-cell-cushion,
+[data-theme="dark"] .fc .fc-daygrid-day-number,
+[data-theme="dark"] .fc .fc-timegrid-axis-cushion,
+[data-theme="dark"] .fc .fc-timegrid-slot-label-cushion,
+[data-theme="dark"] .fc .fc-list-day-text,
+[data-theme="dark"] .fc .fc-list-day-side-text,
+[data-theme="dark"] .fc .fc-list-event-title,
+[data-theme="dark"] .fc .fc-list-event-time {
+ color: var(--color-fg);
+}
+[data-theme="dark"] .fc .fc-scrollgrid,
+[data-theme="dark"] .fc .fc-scrollgrid td,
+[data-theme="dark"] .fc .fc-scrollgrid th,
+[data-theme="dark"] .fc .fc-timegrid-slot,
+[data-theme="dark"] .fc .fc-daygrid-day {
+ border-color: var(--box-header-top-border-color);
+}
+.dashboard-row-eq {
+ margin-bottom: 20px;
+}
+@media (min-width: 992px) {
+ .dashboard-row-eq {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: stretch;
+ }
+ .dashboard-row-eq > [class*="col-"] {
+ display: flex;
+ flex-direction: column;
+ float: none;
+ }
+ .dashboard-row-eq > [class*="col-"] > .box {
+ display: flex;
+ flex-direction: column;
+ flex: 1 1 auto;
+ width: 100%;
+ min-height: 100%;
+ }
+ .dashboard-row-eq > [class*="col-"] > .box > .box-body {
+ flex: 1 1 auto;
+ }
+ .dashboard-row-eq > [class*="col-"] > .box.collapsed-box {
+ flex: 0 0 auto;
+ min-height: 0;
+ }
+}
+.snipeit-calendar-filters {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+ margin-bottom: 12px;
+ padding-bottom: 8px;
+ border-bottom: 1px solid var(--box-header-top-border-color, #ddd);
+}
+.snipeit-calendar-filter-button {
+ padding: 4px 10px;
+ font-size: 13px;
+}
+.snipeit-calendar-filter-button::before {
+ content: "\2713\00a0";
+ font-weight: bold;
+ visibility: hidden;
+}
+.snipeit-calendar-filter-button.active,
+.snipeit-calendar-filter-button.active:hover,
+.snipeit-calendar-filter-button.active:focus,
+.snipeit-calendar-filter-button.active:active {
+ background-color: var(--main-theme-color) !important;
+ background-image: none !important;
+ border-color: hsl(from var(--main-theme-color) h s calc(l - 15)) !important;
+ color: var(--nav-primary-text-color) !important;
+ box-shadow: inset 0 0 0 2px hsl(from var(--main-theme-color) h s calc(l - 25)) !important;
+}
+.snipeit-calendar-filter-button.active::before {
+ visibility: visible;
+}
+.snipeit-calendar-filter-button.active:focus {
+ box-shadow: inset 0 0 0 2px hsl(from var(--main-theme-color) h s calc(l - 25)), 0 0 0 3px hsl(from var(--main-theme-color) h s calc(l + 20) / 0.5) !important;
+}
/*# sourceMappingURL=app.css.map*/
\ No newline at end of file
diff --git a/public/css/build/app.css.map b/public/css/build/app.css.map
index e508f7c42a..65eab49db4 100644
--- a/public/css/build/app.css.map
+++ b/public/css/build/app.css.map
@@ -1 +1 @@
-{"version":3,"file":"css/build/app.css","mappings":"AACA;EACE;EAGA;AAFF;AAKA;EACE;IACE;EAHF;EAMA;IACE;EAJF;AACF;AAOA;EACE;AALF;AAOA;EACE;EACA;EACA;EACA;EACA;AALF;AASA;EACE;AAPF;AAUA;EACE;EACA;AARF;AAWA;EACE;AATF;AAYA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;AAVF;AAaA;EACE;EACA;EACA;EACA;EACA;AAXF;AAcA;EACE;AAZF;AAeA;EACE;AAbF;AAmBA;EACE;AAjBF;AAmBE;;EAEE;EACA;AAjBJ;AAmBE;EACE;AAjBJ;AAqBA;EACE;AAnBF;AAsBA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AApBF;AAuBA;EACE;AArBF;AAwBA;EACE;AAtBF;AAyBA;EACE;AAvBF;AA0BA;EACE;AAxBF;AA2BA;EACE;EACA;EACA;AAzBF;AA4BA;EACE;EACA;EACA;AA1BF;AAiCA;EACE;AA/BF;AAkCA;EACE;EACA;AAhCF;AAmCA;EACE;AAjCF;AAmCA;EACE;EACA;AAjCF;AAoCA;;EAEE;EACA;AAlCF;AAwCA;EACE;EACA;EACA;EACA;AAtCF;AAyCA;EACE;EACA;AAvCF;AAyCA;EACE;AAvCF;AA0CA;EACE;EACA;EACA;AAxCF;AA2CA;EACE;AAzCF;AA4CA;EACE;AA1CF;AA6CA;EACE;AA3CF;AA8CA;EACE;AA5CF;AA+CA;EACE;AA7CF;AAgDA;;;;;EAKE;AA9CF;AAiDA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AA/CF;AAkDA;EACE;EACA;EACA;EACA;EACA;EACA;AAhDF;AAmDA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAjDF;AAoDA;EACE;AAlDF;AAqDA;EACE;EACA;EACA;EACA;AAnDF;AAsDA;EACE;EACA;AApDF;AAuDA;EACE;EACA;EACA;EACA;EACA;AArDF;AAwDA;EACE;EACA;AAtDF;AAyDA;EACE;EACA;EACA;EACA;AAvDF;AA0DA;EACE;EACA;AAxDF;AACA,cAAc;AA2Dd;EACE;EACA;EACA;AAzDF;AA2DA;EACE;EACA;AAzDF;AA8DA;EACE;EACA;EACA;AA5DF;AA+DA;EACE;EACA;AA7DF;AAgEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AA9DF;AAiEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AA/DF;AAkEA;EACE;EACA;EACA;EACA;EACA;AAhEF;AAmEA;EACE;EACA;EACA;AAjEF;AAoEA;EACE;AAlEF;AAqEA;EACE;AAnEF;AAsEA;EACE;AApEF;AAuEA;EACE;AArEF;AAwEA;EACE;AAtEF;AAyEA;EACE;AAvEF;AA0EA;EACE;EACA;AAxEF;AA2EA;EACE;AAzEF;AA4EA;EACE;AA1EF;AACA,kBAAkB;AA6ElB;EACE;EAEA;EACA;EACA;EA5EA,gCAAgC;AAClC;AA+EA;EACE;AA7EF;AAgFA;EACE;EACA;EACA;AA9EF;AAgFA;EACE;EACA;EACA;AA9EF;AAiFA;;;EACE;AA7EF;AAgFA;EACE;EACA;AA9EF;AAiFA;EACE;IACE;EA/EF;EAkFA;IACE;IACA;IACA;EAhFF;AACF;AAmFA;;EAEE;EACA;EACA;AAjFF;AAoFA;EACE;AAlFF;AAuFA;EACE;AArFF;AAwFA;EACE;AAtFF;AAyFA;EACE;EACA;EACA;AAvFF;AA0FA;EACE;EACA;AAxFF;AA2FA;EACE;EACA;EACA;AAzFF;AA4FA;EACE;AA1FF;AChYA;EAGE;ADgYF;AC9XA;EACE;EACA;EACA;EACA;EACA;ADgYF;AC/XE;;;EACE;ADmYJ;AChYA;EACE;ADkYF;AC/XA;EACE;EACA;ADiYF;AC9XA;EACE;ADgYF;AC5XA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;AD8XF;AC3XA;EACE;EACA;EACA;EACA;EACA;AD6XF;AC1XA;EACE;AD4XF;ACzXA;EACE;AD2XF;AClXA;EACE;ADoXF;AClXE;;EAEE;EACA;ADoXJ;AClXE;EACE;ADoXJ;AC/WA;EACE;ADiXF;AC9WA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;ADgXF;AC9WA;EACE;ADgXF;AC9WA;EACE;ADgXF;AC5WA;EACE;AD8WF;AC5WA;EACE;AD8WF;AC1WA;EACE;EACA;EACA;AD4WF;ACzWA;EACE;EACA;EACA;AD2WF;AClWA;EACE;ADoWF;ACjWA;EACE;EACA;EACA;ADmWF;AChWA;EACE;EACA;ADkWF;AC/VA;EACE;ADiWF;AC9VA;EACE;EACA;ADgWF;AC7VA;;EACE;EACA;ADgWF;AC7VA;EACE;EACA;AD+VF;AC7VA;EACE;AD+VF;AC5VA;EACE;EACA;EACA;AD8VF;AC3VA;EACE;AD6VF;AC1VA;EACE;AD4VF;ACzVA;EACE;AD2VF;ACzVA;EACE;AD2VF;ACxVA;EACE;AD0VF;ACvVA;;;;EACE;AD4VF;ACzVA;;;;;;;;;;;;;EAaE;AD2VF;ACtVA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;ADwVF;ACtVA;EACE;EACA;EACA;EACA;EACA;EACA;ADwVF;ACtVA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;ADwVF;ACtVA;EACE;ADwVF;ACtVA;EACE;EACA;EACA;EACA;ADwVF;ACtVA;EACE;EACA;ADwVF;ACtVA;EACE;EACA;EACA;EACA;EACA;ADwVF;ACtVA;EACE;EACA;ADwVF;ACtVA;EACE;EACA;EACA;EACA;ADwVF;ACrVA;EACE;EACA;ADuVF;AClVA;EAAY;ADqVZ;AACA,cAAc;ACnVd;EAAY;EAAkC;ADuV9C;ACtVA;EAA8B;EAAY;AD0V1C;ACxVA;EAAiD;EAAgB;EAAiB;AD6VlF;AC5VA;EAA8C;EAAa;ADgW3D;AC/VA;EAA+C;EAAoB;EAAa;EAAc;EAAgB;EAAqB;EAAW;EAAW;EAAmB;EAAoB;AD2WhM;AC1WA;EAAqD;EAAc;EAAa;EAAc;EAAqB;EAAqB;EAAoB;EAAU;ADoXtK;ACnXA;EAA0C;EAAoB;EAAoB;EAAa;EAAkB;AD0XjH;ACzXA;EAA0D;EAAW;EAAkB;AD8XvF;AC7XA;EAAmE;ADgYnE;AC/XA;EAAiE;ADkYjE;ACjYA;EAA6E;ADoY7E;ACnYA;EAA4E;ADsY5E;ACrYA;EAAwD;ADwYxD;ACvYA;EAA8D;AD0Y9D;ACzYA;EAAuD;EAAW;AD6YlE;AC5YA;EAAsD;AD+YtD;AC9YA;EAAuD;ADiZvD;AACA;;;;;;;;EAQE;AC/YF;EACE;EACA;EACA;ADiZF;AACA,kBAAkB;AC9YlB;EACE;EACA;EACA;EACA;EACA;EDgZA,gCAAgC;AAClC;AC5YA;EAGE;AD4YF;ACzYA;EACE;AD2YF;ACvYA;;EACE;AD0YF;ACxYA;;EACE;AD2YF;ACxYA;EACE;EAIA;ADuYF;ACpYA;EACE;EACA;ADsYF;ACnYA;EACE;ADqYF;AClYA;EACE;ADoYF;AC/XA;EACE;ADiYF;AC9XA;EAEE;IACE;IACA;ED+XF;EC5XA;IACE;IACA;IACA;ED8XF;EC3XA;IACE;ED6XF;EC1XA;;IACE;ED6XF;EC1XA;IACE;IACA;IACA;IACA;IACA;IACA;IACA;ED4XF;EACA,+CAA+C;ECzX/C;IACE;ED2XF;ECxXA;IACE;ED0XF;ECvXA;IACE;EDyXF;ECtXA;IACE;EDwXF;EACA,qCAAqC;ECrXrC;;IACE;EDwXF;EACA,QAAQ;ECrXR;;IACE;IACA;IACA;EDwXF;ECrXA;IACE;EDuXF;ECpXA;IACE;EDsXF;ECnXA;IACE;IACA;IACA;EDqXF;EClXA;IACE;IACA;EDoXF;ECjXA;;IACE;EDoXF;EClXA;;;;;;;;;;;;IACE;ED+XF;EC5XA;IACE;ED8XF;EC5XA;IACE;ED8XF;EC5XA;IACE;ED8XF;EC5XA;IACE;ED8XF;EC5XA;IACE;ED8XF;EC5XA;IACE;ED8XF;EC5XA;IACE;ED8XF;EC5XA;IACE;ED8XF;EC5XA;IACE;ED8XF;EC5XA;IACE;ED8XF;EC5XA;IACE;ED8XF;EC5XA;IACE;ED8XF;AACF;ACzXA;EACE;AD2XF;ACxXA;EACI;AD0XJ;ACvXA;EACE;ADyXF;ACtXA;EACE;EACA;EACA;ADwXF;ACnXA;EACE;EACA;OAAA;EACA;EACA;ADqXF;AClXA;;EACE;EACA;EACA;ADqXF;AClXA;EACE;ADoXF;ACjXA;;;EACE;ADqXF;AClXA;;EACE;ADqXF;ACjXA;EACE;ADmXF;AChXA;EACE;ADkXF;AC/WA;EACE;EACA;EACA;ADiXF;AC9WA;EACE;EACA;ADgXF;AC7WA;EACE;EACA;EACA;EACA;AD+WF;AC3WA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;AD6WF;AC3WA;;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AD8WF;AC3WA;EACE;AD6WF;AC1WA;EACE;AD4WF;ACzWA;EACE;AD2WF;ACxWA;EACE;AD0WF;ACvWA;EACE;ADyWF;ACrWA;EACE;EACA;EACA;EACA;EACA;EAGA;ADqWF;AClWA;EACE;EACA;EACA;EACA;ADoWF;ACjWA;EACE;EACA;EACA;EACA;ADmWF;AC/VA;EACE;EACA;EACA;EACA;EACA;EACA;ADiWF;AACA;;;;EAIE;AC9VF;EACE;EACA;ADgWF;AC7VA;EACE;EACA;AD+VF;AC5VA;EACE;EACA;AD8VF;AC3VA;EACE;EACA;AD6VF;ACzVA;EACE;AD2VF;AACA;;EAEE;ACtVF;EACE;IACE;IACA;EDwVF;EC/UA;IACE;EDiVF;EC9UA;IACE;EDgVF;AACF;AC7UA;EACE;EACA;EACA;AD+UF;AC5UA;EACE;EACA;AD8UF;AACA;;;;;;;;;;;EAWE;ACzUF;;;;;;;;;;;;;;;;EAiBE;EACA;EACA;EACA;EACA;EACA;AD0UF;ACtUA;;;;;;;;;;;;;;;;;EAkBE;EACA;EACA;EACA;ADuUF;AACA;;;EAGE;ACpUF;EAEE;EAAkB;EAAoC;ADuUxD;ACpUA;EAEE;EAAkB;EAAoC;ADuUxD;ACpUA;EAEE;EAAkB;EAAoC;ADuUxD;ACpUA;EAEE;EAAkB;EAAoC;ADuUxD;ACpUA;EAEE;EAAkB;EAAoC;ADuUxD;ACpUA;EACE;EAAkB;EAAoC;ADwUxD;ACrUA;EACE;EAAkB;EAAoC;EAAiB;AD0UzE;ACpUA;EACE;EAAkB;EAAoC;EAAiB;ADyUzE;ACtUA;EAEE;EAAkB;EAAoC;ADyUxD;ACtUA;EAEE;EAAkB;EAClB;EACA;ADwUF;ACrUA;EACE;EACA;EACA;EACA;ADuUF;ACrUA;EACE;EACA;EACA;EACA;ADuUF;ACrUA;EACE;EACA;EACA;EACA;ADuUF;ACrUA;EACE;EACA;EACA;EACA;ADuUF;ACpUA;EACE;EACA;EACA;EACA;ADsUF;ACnUA;EACE;EACA;EACA;EACA;ADqUF;AClUA;EACE;EACA;EACA;EACA;ADoUF;AChUA;EACE;EACA;EACA;EACA;ADkUF;AC9TA;;;EACE;ADkUF;AC/TA;;EACE;EACA;EACA;EACA;ADkUF;AC/TA;;EACE;ADkUF;AC/TA;EACE;ADiUF;AC9TA;EACE;IACE;EDgUF;AACF;AC9TA;EACE;IACE;EDgUF;EC9TA;IACE;EDgUF;AACF;AClTA;EACE;IACE;EDoTF;EClTA;IACE;IACA;EDoTF;EClTA;IACE;IACA;EDoTF;EClTA;IACE;IACA;EDoTF;AACF;AClTA;EACE;IACE;EDoTF;AACF;ACjTA;EACE;IACE;EDmTF;AACF;ACjTA;EACE;IACE;IACA;IACA;IACA;IACA;EDmTF;AACF;AACA,oDAAoD;AC/SpD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;ADiTF;AC9SA;EACE;EACA;ADgTF;AACA;;;;;8EAK8E;AC7S9E;;;EAGE;AD+SF;AACA;;;;;;;;;;;;;;;8BAe8B;AC5S9B;;;EAGE;EACA;EACA;AD8SF;AACA;;;;4EAI4E;AC3S5E;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AD6SF;AACA,8CAA8C;AAC9C,8CAA8C;AAC9C,8CAA8C;ACzS9C;ED2SE,kCAAkC;ECzSlC;EACA;OAAA;ED2SA,+CAA+C;ECzS/C;ED2SA,+BAA+B;ECzS/B;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;ED2SA,6BAA6B;AAC/B;AACA,yFAAyF;ACvSzF;EDySE,2EAA2E;ECjS3E;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EDmSA,+BAA+B;ECjS/B;ADmSF;AACA,wEAAwE;AChSxE;EACE;ADkSF;AACA,wEAAwE;AC/RxE;;EACE;EACA;EACA;EACA;EACA;ADkSF;AACA,6EAA6E;AC/R7E;;EACE;EACA;EACA;EACA;ADkSF;AACA,+EAA+E;AC/R/E;;EACE;EACA;EACA;EACA;ADkSF;AACA,qCAAqC;AC7RrC;EACE;KAAA;UAAA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AD+RF;AC5RA;EACE;EACA;EACA;EACA;EACA;EACA;AD8RF;AC3RA;EACE;AD6RF;AACA;;;;EAIE;ACzRF;EACE;AD2RF;ACxRA;EACE;EACA;EACA;EACA;AD0RF;ACvRA;EACE;ADyRF;ACtRA;EACE;ADwRF;ACrRA;EACE;ADuRF;ACpRA;EACE;ADsRF;AACA,8CAA8C;AAC9C,8CAA8C;AAC9C,8CAA8C;AAC9C;;;EAGE;ACjRF;EACE;EACA;EACA;EACA;EACA;ADmRF;AChRA;;EAEE;EACA;EACA;ADkRF;AC/QA;EACE;ADiRF;AC9QA;EACE;ADgRF;AC9QA;EACE;ADgRF;AC7QA;EACE;EACA;EACA;AD+QF;AACA,kEAAkE;AC5QlE;EACE;AD8QF;AC3QA;EACE;EACA;AD6QF;AC1QA;EACE;EACA;AD4QF;ACzQA;EACE;EACA;EACA;EACA;EACA;EACA;AD2QF;ACxQA;;EACE;AD2QF;ACxQA;EACE;EAQA;EACA;EACA;ADmQF;AChQA;EACE;EACA;ADkQF;AC/PA;EACE;ADiQF;AC9PA;EACE;EACA;ADgQF;AC5PA;EACO;EAAiB;EAAkB;ADgQ1C;ACjQA;EAEO;EAAiB;EAAkB;ADoQ1C;ACtQA;EAGO;EAAiB;EAAkB;ADwQ1C;AC3QA;EAIO;EAAiB;EAAkB;AD4Q1C;AChRA;;EAKW;EAAiB;EAAkB;ADiR9C;ACtRA;EAMM;ADmRN;ACzRA;EAOiB;ADqRjB;AC5RA;;EAQW;EAAiB;ADyR5B;ACjSA;EASoB;AD2RpB;ACvRA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;ADyRF;ACrRA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;ADuRF;ACpRA;EACE;ADsRF;ACnRA;EACE;EACA;EACA;ADqRF;AClRA;EACE;EACA;EACA;EACA;ADoRF;ACjRA;EACE;EACA;ADmRF;AChRA;EACE;ADkRF;AACA;;EAEE;AC/QF;EACI;ADiRJ;AACA;;EAEE;AC9QF;EACE;EACA;EACA;EACA;EACA;EACA;ADgRF;AC7QA;EACE;AD+QF;AC5QA;EACE;AD8QF;AC3QA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AD6QF;AC1QA;EACE;EACA;EACA;AD4QF;ACzQA;EACE;EACA;EACA;EACA;AD2QF;ACxQA;EACE;EACA;EACA;EACA;AD0QF;ACvQA;EACE;EACA;EACA;EACA;ADyQF;ACtQA;EACE;ADwQF;ACrQA;EACE;EACA;ADuQF;ACpQA;EACE;ADsQF;AC3PE;EAAA;;IACE;IACA;ED+PF;EC7PE;;IACE;IACA;IACA;IACA;IACA;IACA;IACA;EDgQJ;EC7PE;;IAEI;IACA;ED+PN;EClQE;;IAOI;ED+PN;ECpRA;;IA2BI;ED6PJ;ECxRA;;IA+BI;IACA;IACA;IACA;ED6PJ;EC/RA;;IAsCI;IACA;IACA;IACA;IACA;IACA;IACA;IACA;ED6PJ;EC3PI;;;;;;IAGE;IACA;EDgQN;ECnTA;;IAwDI;IACA;IACA;IACA;ED+PJ;EC7PI;;;;;;IAGE;EDkQN;AACF;ACrUA;;;;;;;;;;;;EAkFE;EACA;ADiQF;AC1PA;;EAEE;AD4PF;ACpPA;EACE;IACE;IACA;EDsPF;AACF;ACxOA;EACE;EACA;EACA;AD0OF;ACjOA;;EAEE;EACA;ADmOF;AC5NA;;EAEE;AD8NF;ACvNA;EAOE;;;;;;IAME;EDmNF;AACF;AC7LA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AD+LF;AC5LA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AD8LF;AC3LA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AD6LF;AC7KA;;;;;EAKE;EACA;AD+KF;AC5KA;EACE;AD8KF;AC3KA;EACE;EACA;EACA;AD6KF;AC1KA;;;EAGE;AD4KF;ACzKA;;EAEE;AD2KF;ACxKA;EACE;AD0KF;ACvKA;EACE;ADyKF;ACtKA;EACE;ADwKF;ACrKA;EACE;EDuKA,uDAAuD;ECrKvD;EACA;ADuKF;ACpKA;EACE;EDsKA,uDAAuD;ECpKvD;EACA;ADsKF;ACnKA;EACE;ADqKF;AClKA;EACE;ADoKF;AChKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BE;EACA;EACA;ADkKF;AC9JA;;EAEE;ADgKF;AACA;;;;;EAKE;AC7JF;;EAEE;EACA;AD+JF;AACA;;;;;;EAME;AC5JF;EACE;AD8JF;AACA;;EAEE;AC3JF;EACE;EACA;AD6JF;AC1JA;EACE;ED4JA,mFAAmF;EACnF,mDAAmD;EC1JnD;AD4JF;AACA;;EAEE;ACzJF;EACE;EACA;AD2JF;AACA;;EAEE;ACxJF;;;;;EAKE;ED0JA,qCAAqC;ECxJrC;AD0JF;ACvJA;;EAEE;EACA;EACA;ADyJF;ACtJA;EACE;ADwJF;ACrJA;EACE;EACA;EACA;ADuJF;AACA;;;;;;;;;;CAUC;ACpJD;EACE;EACA;EACA;ADsJF;AACA;2CAC2C;ACnJ3C;EACE;ADqJF;AACA;;;;0CAI0C;AClJ1C;EACE;ADoJF;ACjJA;EACE;ADmJF;AChJA;EACE;ADkJF;AC/IA;EACE;ADiJF;AACA;;UAEU;AC9IV;EACE;ADgJF;AACA;;;;;yBAKyB;AC7IzB;EACE;AD+IF;AC5IA;;;;EAIE;EACA;EACA;AD8IF;AC3IA;EACE;AD6IF;AACA;oEACoE;AC1IpE;;;EAGE;EACA;AD4IF;AACA;;;;;;;;;uEASuE;ACzIvE;;;;;;;;;EASE;AD2IF;AACA;;;;;;;;oEAQoE;ACxIpE;EACE;EACA;EACA;AD0IF;ACvIA;;EAEE;EACA;EACA;ADyIF;AACA;;uCAEuC;ACtIvC;EACE;EACA;EACA;EACA;ADwIF;ACrIA;;EAEE;EACA;ADuIF;AACA,iDAAiD;ACnIjD;;EAEE;EACA;ADqIF;AChIA;EACE;EACA;EACA;ADkIF;AC/HA;;;;;;;;;;;EAWE;EACA;ADiIF;AC9HA;EACE;EACA;ADgIF;AClIA;EACE;EACA;ADgIF;AC7HA;EACE;EACA;AD+HF;AC5HA;EACE;AD8HF;AC3HA;EACE;EACA;EACA;EACA;EACA;EACA;AD6HF;AC1HA;;;;;;;EAOE;AD4HF;ACzHA;;;;;;;;;;;;;;;;;;;;;;EAsBE;AD2HF;ACvHA;;;;EAIE;EACA;EACA;ADyHF;ACrHA;;EAEE;ADuHF;ACpHA;EACE;EACA;ADsHF;AClHA;;;;EAIE;ADoHF;AACA;;;;;EAKE;ACjHF;EACE;EACA;EACA;ADmHF;AChHA;;EAEE;EACA;ADkHF;AACA;;;;;;;EAOE;AC/GF;EAAsB;ADkHtB;ACjHA;EAA4B;ADoH5B;AClHA;EAAwB;ADqHxB;ACpHA;EAA8B;ADuH9B;ACrHA;EAAyB;ADwHzB;ACvHA;EAA+B;AD0H/B;ACxHA;EAAuB;AD2HvB;AC1HA;EAA6B;AD6H7B;AC3HA;;;;;;;;;;EAUE;EACA;EACA;AD6HF;AC1HA;EACE;AD4HF;AACA;;;;;;;mEAOmE;ACzHnE;;;EAGE;AD2HF;ACxHA;EACE;AD0HF;ACtHA;EACE;ADwHF;ACrHA;EACE;ADuHF;ACnHA;EACE;EACA;EACA;EACA;ADqHF;ACjHA;EACE;EACA;ADmHF;AChHA;;;;;;;;;;;EAYE;EACA;EACA;EACA;ADiHF;AC7GA;EACE;AD+GF;AC5GA;EACE;AD8GF;AC3GA;;EAEE;EACA;EACA;AD6GF;AC1GA;EACE;EACA;AD4GF;ACzGA;EACE;EACA;EACA;EACA;EACA;EACA;AD2GF;ACxGA;EACE;AD0GF;AACA;;EAEE;ACtGF;EACE;ADwGF;AACA;;EAEE;ACpGF;;;;;;EAME;ADsGF;AClGA;;;;EAIE;EACA;EACA;ADoGF;ACjGA;;;;EAIE;EACA;EACA;ADmGF;AC34EC;;EAg1EO;EACA;EACA;EACA;AD+DR;ACl5EC;;EAg1EO;EACA;EACA;EACA;ADsER;ACz5EC;;EAg1EO;EACA;EACA;EACA;AD6ER;ACh6EC;;EAg1EO;EACA;EACA;EACA;ADoFR;ACv6EC;;EAg1EO;EACA;EACA;EACA;AD2FR;AC96EC;;EAg1EO;EACA;EACA;EACA;ADkGR;ACr7EC;;EAg1EO;EACA;EACA;EACA;ADyGR;AC57EC;;EAg1EO;EACA;EACA;EACA;ADgHR;ACn8EC;;EAg1EO;EACA;EACA;EACA;ADuHR;AC18EC;;EAg1EO;EACA;EACA;EACA;AD8HR;ACj9EC;;EAg1EO;EACA;EACA;EACA;ADqIR;ACx9EC;;EAg1EO;EACA;EACA;EACA;AD4IR;AC/9EC;;EAg1EO;EACA;EACA;EACA;ADmJR;ACt+EC;;EAg1EO;EACA;EACA;EACA;AD0JR;AC7+EC;;EAg1EO;EACA;EACA;EACA;ADiKR;ACp/EC;;EAg2EO;EACA;EACA;EACA;ADwJR;AC3/EC;;EAg2EO;EACA;EACA;EACA;AD+JR;AClgFC;;EAg2EO;EACA;EACA;EACA;ADsKR;ACzgFC;;EAg2EO;EACA;EACA;EACA;AD6KR;AChhFC;;EAg2EO;EACA;EACA;EACA;ADoLR;ACvhFC;;EAg2EO;EACA;EACA;EACA;AD2LR;AC9hFC;;EAg2EO;EACA;EACA;EACA;ADkMR;ACriFC;;EAg2EO;EACA;EACA;EACA;ADyMR;AC5iFC;;EAg2EO;EACA;EACA;EACA;ADgNR;ACnjFC;;EAg2EO;EACA;EACA;EACA;ADuNR;AC1jFC;;EAg2EO;EACA;EACA;EACA;AD8NR;ACjkFC;;EAg2EO;EACA;EACA;EACA;ADqOR;ACxkFC;;EAg2EO;EACA;EACA;EACA;AD4OR;AC/kFC;;EAg2EO;EACA;EACA;EACA;ADmPR;ACtlFC;;EAg2EO;EACA;EACA;EACA;AD0PR;AC7lFC;EAg3EO;ADgPR;AChmFC;EAm3EO;ADgPR;ACnmFC;EAs3EO;ADgPR;ACtmFC;EAg3EO;ADyPR;ACzmFC;EAm3EO;ADyPR;AC5mFC;EAs3EO;ADyPR;AC/mFC;EAg3EO;ADkQR;AClnFC;EAm3EO;ADkQR;ACrnFC;EAs3EO;ADkQR;ACxnFC;EAg3EO;AD2QR;AC3nFC;EAm3EO;AD2QR;AC9nFC;EAs3EO;AD2QR;ACjoFC;EAg3EO;ADoRR;ACpoFC;EAm3EO;ADoRR;ACvoFC;EAs3EO;ADoRR;AC1oFC;EAi4EO;AD4QR;AC7oFC;EAo4EO;AD4QR;AChpFC;EAu4EO;AD4QR;ACnpFC;EAi4EO;ADqRR;ACtpFC;EAo4EO;ADqRR;ACzpFC;EAu4EO;ADqRR;AC5pFC;EAi4EO;AD8RR;AC/pFC;EAo4EO;AD8RR;AClqFC;EAu4EO;AD8RR;ACrqFC;EAi4EO;ADuSR;ACxqFC;EAo4EO;ADuSR;AC3qFC;EAu4EO;ADuSR;AC9qFC;EAi4EO;ADgTR;ACjrFC;EAo4EO;ADgTR;ACprFC;EAu4EO;ADgTR;ACvrFC;EA05EO;EACA;ADgSR;AC3rFC;EA85EO;EACA;EACA;ADgSR;AChsFC;EAm6EO;EACA;EACA;ADgSR;ACrsFC;EA05EO;EACA;AD8SR;ACzsFC;EA85EO;EACA;EACA;AD8SR;AC9sFC;EAm6EO;EACA;EACA;AD8SR;ACntFC;EA05EO;EACA;AD4TR;ACvtFC;EA85EO;EACA;EACA;AD4TR;AC5tFC;EAm6EO;EACA;EACA;AD4TR;ACjuFC;EA05EO;EACA;AD0UR;ACruFC;EA85EO;EACA;EACA;AD0UR;AC1uFC;EAm6EO;EACA;EACA;AD0UR;AC/uFC;EA05EO;EACA;ADwVR;ACnvFC;EA85EO;EACA;EACA;ADwVR;ACxvFC;EAm6EO;EACA;EACA;ADwVR;AC7vFC;EAg7EO;EACA;ADgVR;ACjwFC;EAo7EO;EACA;EACA;ADgVR;ACtwFC;EAy7EO;EACA;EACA;ADgVR;AC3wFC;EAg7EO;EACA;AD8VR;AC/wFC;EAo7EO;EACA;EACA;AD8VR;ACpxFC;EAy7EO;EACA;EACA;AD8VR;ACzxFC;EAg7EO;EACA;AD4WR;AC7xFC;EAo7EO;EACA;EACA;AD4WR;AClyFC;EAy7EO;EACA;EACA;AD4WR;ACvyFC;EAg7EO;EACA;AD0XR;AC3yFC;EAo7EO;EACA;EACA;AD0XR;AChzFC;EAy7EO;EACA;EACA;AD0XR;ACrzFC;EAg7EO;EACA;ADwYR;ACzzFC;EAo7EO;EACA;EACA;ADwYR;AC9zFC;EAy7EO;EACA;EACA;ADwYR;ACtXA;;EAEI;EACA;EACA;EACA;ADwXJ;ACrXA;EACI;ADuXJ;ACrXA;EACI;ADuXJ;ACpXA;EACI;ADsXJ;AC7WA;EACI;EACA;AD+WJ;AC7WA;EACI;EACA;EACA;AD+WJ;AC7WA;EACI;EACA;EACA;AD+WJ;AClWA;EASI;EACA;EAcA;EACA;EACA;EACA;EAIA;EACA;EAoBA;ADyTJ;AClTI;EAII;ADiTR;ACxSI;EACI;AD0SR;ACxSI;EACI;EACA;AD0SR;ACxSI;EACI;EACA;AD0SR;ACxSI;EACI;AD0SR;ACtSA;EAGI;ADsSJ;AC3RA;EACI;EACA;AD6RJ;AC3RI;EACI;AD6RR;AC3RI;EACI;EACA;AD6RR;AC3RI;EACI;EACA;AD6RR;AC3RI;EACI;AD6RR;AACA;;EAEE;ACtRF;EACE;EACA;ADwRF;ACpRA;;;;;EAKE;EACA;ADsRF;ACnRA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;ADqRF;ACjRA;;EAEE;ADmRF;AChRA;;;;;;;;;EASE;EDkRA,qCAAqC;EChRrC;EDkRA,mDAAmD;AACrD;AC9QA;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BE;EACA;EACA;ADgRF;AC7QA;EACE;EACA;EACA;AD+QF;AC3QA;EACE;AD6QF;AC1QA;EACE;EACA;AD4QF;ACxQA;;EAEE;EACA;EACA;AD0QF;ACvQA;EACE;EACA;ADyQF;ACtQA;;;;;;;;;;;;EASE;EACA;EACA;AD2QF;ACxQA;;;EACE;AD4QF;AACA;;EAEE;ACvQF;EACE;ADyQF;AC9OA;EACE;IACE;IACA;EDgPF;EC9OA;IACE;EDgPF;EC9OA;IACE;EDgPF;ECrOA;IACE;EDuOF;AACF;ACnOA;;;EAGE;EACA;ADqOF;AClOA;;EAEE;EACA;ADoOF;AChOA;EACE;ADkOF;AC/NA;EACE;ADiOF;AC7NA;EACE;AD+NF;AC5NA;;;EAGE;AD8NF;AC3NA;;EAEE;EACA;EACA;EACA;EACA;AD6NF;AC1NA;;;;;;;;EAQE;EACA;EACA;AD4NF;ACxNA;EACE;AD0NF;ACvNA;;EAEE;ADyNF;ACtNA;EACE;ADwNF;ACrNA;;;;;;;;;;EAUE;ADuNF;AC5MA;;;;;;;;;;;;;;;;;;;;EAKI;AD6NJ;ACxNA;;;;EAIE;AD0NF;ACvNA;EACE;ADyNF;ACtNA;EACE;ADwNF;ACrNA;EACE;ADuNF;ACpNA;EACE;ADsNF;ACnNA;EACE;ADqNF;AClNA;EACE;EACA;EACA;EACA;ADoNF;AChNA;EACE;ADkNF;AC9MA;EACE;ADgNF;AC5MA;EACE;EACA;AD8MF;AC1MA;;EAEE;AD4MF;ACxMA;;;;EACE;EACA;AD6MF;ACzMA;EACE;AD2MF;ACxMA;;EAEE;EACA;AD0MF;ACtMA;EACE;EACA;ADwMF;ACrMA;;;;;;EAME;EDuMA,qCAAqC;ECrMrC;ADuMF;ACpMA;EACE;EACA;ADsMF;ACnMA;;;EAGE;EACA;ADqMF;AClMA;;EAEE;ADoMF;ACjMA;EACE;ADmMF;AChMA;EACE;ADkMF;AC/LA;EACE;ADiMF;AC9LA;;EACE;ADiMF;AC9LA;EACE;ADgMF;AC7LA;;;;;;;;EAQE;AD+LF;AC5LA;;;;;;;;;;EAUE;AD8LF;AC3LA;EACE;AD6LF;AC1LA;EACE;EACA;AD4LF;ACzLA;EACE;EACA;AD2LF;ACxLA;EAEE;;;;;;;;;;;;;IAaE;IACA;EDyLF;ECtLA;;;;IAIE;EDwLF;ECrLA;IACE;IACA;EDuLF;ECpLA;;;IACE;EDwLF;ECrLA;;IAEE;IACA;EDuLF;AACF;ACnLA;EACE;EACA;EACA;ADqLF;AClLA;EACE;ADoLF;ACjLA;EACE;ADmLF;AChLA;EACE;EACA;EACA;ADkLF;AACA,UAAU;AC7KV;EACE;EACA;EACA;EACA;AD+KF;AC5KA;EACE;EACA;EACA;ED8KA,qBAAqB;EC5KrB;EACA;EACA;EACA;EACA;AD8KF;AC3KA;EACE;EACA;EACA;EACA;EACA;EACA;AD6KF;AC1KA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;AD4KF;ACzKA;EACE;EACA;EACA;EACA;EACA;AD2KF;ACxKA;EACE;AD0KF;ACvKA;;EACE;AD0KF;ACtKA;EACE;IACE;EDwKF;ECrKA;IACE;EDuKF;AACF;ACpKA;EDsKE,kCAAkC;ECpKlC;IACE;IACA;EDsKF;AACF;ACzJA;;EAEE;AD2JF;ACxJA;;EAEE;EACA;AD0JF;ACvJA;;EAEE;ADyJF;ACjJA;;EAEE;ADmJF;AC1IA;;EAEE;AD4IF;ACpIA;EACE;EAMA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;ADiIF;AC9HA;EACE;EAGA;EACA;AD8HF;AC5HE;;;EAGE;EACA;AD8HJ;ACzIA;EAoBI;EACA;EACA;ADwHJ;ACpHA;EACE;EACA;EACA;ADsHF;AC9GA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;ADgHF;AC9GE;;EAEE;EACA;ADgHJ;AChIA;EAuBI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AD4GJ;ACzFA;EACE;IACE;IACA;ED2FF;AACF;AC7DA;EACE;EACA;EACA;EAIA;AD4DF;ACnEA;EAUI;EACA;AD4DJ;ACvEA;EAeI;AD2DJ","sources":["webpack:///./resources/assets/less/app.less","webpack:///./resources/assets/less/overrides.less"],"sourcesContent":["\nbody {\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\",\n \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\n sans-serif;\n font-size: 13px;\n}\n// Moved from default.blade.php\n@media (max-width: 400px) {\n .navbar-left {\n margin: 2px;\n }\n\n .nav::after {\n clear: none;\n }\n}\n\n.skin-blue .main-header .logo {\n background-color: inherit !important;\n}\n.main-header .logo {\n width: 100% !important;\n white-space: nowrap;\n text-align: left;\n display: block;\n clear: both;\n //text-overflow: hidden;\n}\n\n.huge {\n font-size: 40px;\n}\n\n.btn-file {\n position: relative;\n overflow: hidden;\n}\n\n.dropdown-menu > li > a {\n color: #354044;\n}\n\n#sort tr.cansort {\n border-radius: 2px;\n padding: 10px;\n background: #f4f4f4;\n margin-bottom: 3px;\n border-left: 2px solid #e6e7e8;\n color: #444;\n cursor: move;\n}\n\n.user-image-inline {\n float: left;\n width: 25px;\n height: 25px;\n border-radius: 50%;\n margin-right: 10px;\n}\n\n.input-group .input-group-addon {\n background-color: #f4f4f4;\n}\n\na.accordion-header {\n color: #333;\n}\n\n// Mirrors BS3's .form-group spacing (margin-bottom: 15px, no padding)\n// with a clearfix so floated col-md-* children don't leak past the\n// wrapper when the row's floats add up to less than 12 cols.\n.dynamic-form-row {\n margin-bottom: 15px;\n\n &::before,\n &::after {\n content: \" \";\n display: table;\n }\n &::after {\n clear: both;\n }\n}\n\n.handle {\n padding-left: 10px;\n}\n\n.btn-file input[type=\"file\"] {\n position: absolute;\n top: 0;\n right: 0;\n min-width: 100%;\n min-height: 100%;\n font-size: 100px;\n text-align: right;\n filter: alpha(opacity=0);\n opacity: 0;\n outline: none;\n background: white;\n cursor: inherit;\n display: block;\n}\n\n.main-footer {\n font-size: 13px;\n}\n\n.main-header {\n max-height: 150px;\n}\n\n.navbar-nav > .user-menu > .dropdown-menu {\n width: inherit;\n}\n\n.main-header .logo {\n padding: 0px 5px 0px 15px;\n}\n\n.sidebar-toggle {\n margin-left: -48px;\n z-index: 100;\n background-color: inherit;\n}\n\n.sidebar-toggle-mobile {\n z-index: 100;\n width: 50px;\n padding-top: 10px;\n}\n\n// .skin-blue .main-header .navbar .dropdown-menu li a {\n// //color: inherit;\n// }\n\n.main-header .sidebar-toggle:before {\n content: \"\\f0c9\";\n}\n\n.direct-chat-contacts {\n padding: 10px;\n height: 150px;\n}\n\n.select2-container {\n width: 100%;\n}\n.error input {\n color: #a94442;\n border: 2px solid #a94442 !important;\n}\n\n.error label,\n.alert-msg {\n color: #a94442;\n display: block;\n}\n\n// This sets the \"x\" icon in front of error messages via CSS (instead of HTML)\n// so that regardless of whether it's being invoked via server side or JS,\n// it renders consistently \n.alert-msg::before {\n content: \"\\f00d\";\n font-family: \"Font Awesome 5 Free\";\n font-weight: 900;\n margin-right: 0.35em;\n}\n\n.input-group[class*=\"col-\"] {\n padding-right: 15px;\n padding-left: 15px;\n}\n.control-label.multiline {\n padding-top: 10px;\n}\n\n.btn-outline {\n color: inherit;\n background-color: transparent;\n transition: all 0.5s;\n}\n\n.btn-primary.btn-outline {\n color: #428bca;\n}\n\n.btn-success.btn-outline {\n color: #5cb85c;\n}\n\n.btn-info.btn-outline {\n color: #5bc0de;\n}\n\n.btn-warning.btn-outline {\n color: #f0ad4e;\n}\n\n.btn-danger.btn-outline {\n color: #d9534f;\n}\n\n.btn-primary.btn-outline:hover,\n.btn-success.btn-outline:hover,\n.btn-info.btn-outline:hover,\n.btn-warning.btn-outline:hover,\n.btn-danger.btn-outline:hover {\n color: #fff;\n}\n\n.slideout-menu {\n position: fixed;\n top: 0;\n right: -250px;\n width: 250px;\n height: 100%;\n background: #333;\n z-index: 100;\n margin-top: 100px;\n color: white;\n padding: 10px;\n}\n\n.slideout-menu h3 {\n position: relative;\n padding: 5px 5px;\n color: #fff;\n font-size: 1.2em;\n font-weight: 400;\n border-bottom: 4px solid #222;\n}\n\n.slideout-menu .slideout-menu-toggle {\n position: absolute;\n top: 12px;\n right: 10px;\n display: inline-block;\n padding: 6px 9px 5px;\n font-family: Arial, sans-serif;\n font-weight: bold;\n line-height: 1;\n background: #222;\n color: #999;\n text-decoration: none;\n vertical-align: top;\n}\n\n.slideout-menu .slideout-menu-toggle:hover {\n color: #fff;\n}\n\n.slideout-menu ul {\n list-style: none;\n font-weight: 300;\n border-top: 1px solid #151515;\n border-bottom: 1px solid #454545;\n}\n\n.slideout-menu ul li {\n border-top: 1px solid #454545;\n border-bottom: 1px solid #151515;\n}\n\n.slideout-menu ul li a {\n position: relative;\n display: block;\n padding: 10px;\n color: #999;\n text-decoration: none;\n}\n\n.slideout-menu ul li a:hover {\n background: #000;\n color: #fff;\n}\n\n.slideout-menu ul li a i {\n position: absolute;\n top: 15px;\n right: 10px;\n opacity: 0.5;\n}\n\n.btn-box-tool-lg {\n font-size: 16px;\n color: orange;\n}\n\n/*Form Wizard*/\n.bs-wizard {\n margin-top: 20px;\n border-bottom: solid 1px #e0e0e0;\n padding: 0 0 10px 0;\n}\n.bs-wizard > .bs-wizard-step {\n padding: 0;\n position: relative;\n}\n\n// .bs-wizard > .bs-wizard-step + .bs-wizard-step {}\n\n.bs-wizard > .bs-wizard-step .bs-wizard-stepnum {\n color: #595959;\n font-size: 16px;\n margin-bottom: 5px;\n}\n\n.bs-wizard > .bs-wizard-step .bs-wizard-info {\n color: #999;\n font-size: 14px;\n}\n\n.bs-wizard > .bs-wizard-step > .bs-wizard-dot {\n position: absolute;\n width: 30px;\n height: 30px;\n display: block;\n background: #fbe8aa;\n top: 45px;\n left: 50%;\n margin-top: -15px;\n margin-left: -15px;\n border-radius: 50%;\n}\n\n.bs-wizard > .bs-wizard-step > .bs-wizard-dot:after {\n content: \" \";\n width: 14px;\n height: 14px;\n background: #fbbd19;\n border-radius: 50px;\n position: absolute;\n top: 8px;\n left: 8px;\n}\n\n.bs-wizard > .bs-wizard-step > .progress {\n position: relative;\n border-radius: 0px;\n height: 8px;\n box-shadow: none;\n margin: 20px 0;\n}\n\n.bs-wizard > .bs-wizard-step > .progress > .progress-bar {\n width: 0px;\n box-shadow: none;\n background: #fbe8aa;\n}\n\n.bs-wizard > .bs-wizard-step.complete > .progress > .progress-bar {\n width: 100%;\n}\n\n.bs-wizard > .bs-wizard-step.active > .progress > .progress-bar {\n width: 50%;\n}\n\n.bs-wizard > .bs-wizard-step:first-child.active > .progress > .progress-bar {\n width: 0%;\n}\n\n.bs-wizard > .bs-wizard-step:last-child.active > .progress > .progress-bar {\n width: 100%;\n}\n\n.bs-wizard > .bs-wizard-step.disabled > .bs-wizard-dot {\n background-color: #f5f5f5;\n}\n\n.bs-wizard > .bs-wizard-step.disabled > .bs-wizard-dot:after {\n opacity: 0;\n}\n\n.bs-wizard > .bs-wizard-step:first-child > .progress {\n left: 50%;\n width: 50%;\n}\n\n.bs-wizard > .bs-wizard-step:last-child > .progress {\n width: 50%;\n}\n\n.bs-wizard > .bs-wizard-step.disabled a.bs-wizard-dot {\n pointer-events: none;\n}\n/*END Form Wizard*/\n\n.left-navblock {\n display: inline-block;\n // float: left;\n text-align: left;\n color: white;\n padding: 0px;\n /* adjust based on your layout */\n}\n\na.logo.no-hover a:hover {\n background-color: transparent;\n}\n\n.index-block {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.index-block:hover{\n overflow: visible;\n white-space: normal;\n height:auto;\n}\n\ninput:required, select:required, textarea:required {\n border-right: 6px solid orange;\n}\n\n.sidebar-menu {\n font-size: 14px;\n white-space: normal;\n}\n\n@media print {\n a[href]:after {\n content: none;\n }\n\n .tab-content > .tab-pane {\n display: block !important;\n opacity: 1 !important;\n visibility: visible !important;\n }\n}\n\nimg.navbar-brand-img,\n.navbar-brand > img {\n float: left;\n padding: 5px 5px 5px 0;\n max-height: 50px;\n}\n\n.input-daterange {\n border-radius: 0px;\n}\n\n\n\n[hidden] {\n display: none !important;\n}\n\n#toolbar {\n margin-top: 10px;\n}\n\n#uploadPreview {\n border-color: grey;\n border-width: 1px;\n border-style: solid;\n}\n\n.icon-med {\n font-size: 20px;\n color: #889195;\n}\n\n#login-logo {\n padding-top: 20px;\n padding-bottom: 10px;\n max-width: 200px;\n}\n\n.left-navblock {\n max-width: 500px;\n}\n\n@import \"overrides.less\";",".main-header\n\n.logo {\n background-color: inherit;\n}\n.main-header .logo {\n width: 100% !important;\n white-space: nowrap;\n text-align: left;\n display: block;\n clear: both;\n &a:link, a:hover, a:visited {\n color: #fff\n }\n}\n.huge {\n font-size: 40px;\n}\n\n.btn-file {\n position: relative;\n overflow: hidden;\n}\n\n.dropdown-menu>li>a {\n color: #354044;\n}\n\n\n#sort tr.cansort {\n border-radius: 2px;\n padding: 10px;\n background: #f4f4f4;\n margin-bottom: 3px;\n border-inline: 2px solid #e6e7e8;\n color: #444;\n cursor: move;\n}\n\n.user-image-inline {\n float: left;\n width: 25px;\n height: 25px;\n border-radius: 50%;\n margin-right: 10px;\n}\n\n.input-group .input-group-addon {\n background-color: #f4f4f4;\n}\n\na.accordion-header {\n color: #333;\n}\n\n// Mirror BS3's .form-group spacing — same margin-bottom, no padding —\n// plus a clearfix so floated col-md-* children don't leak past the\n// wrapper. Without the clearfix, a row whose floats don't fill the full\n// 12 cols (e.g. password_confirmation at 3 + 8) leaves a gap on the\n// right edge that pulls the next row's first child up alongside it,\n// visually offsetting that row's label/input.\n.dynamic-form-row {\n margin-bottom: 15px;\n\n &::before,\n &::after {\n content: \" \";\n display: table;\n }\n &::after {\n clear: both;\n }\n}\n\n\n.handle {\n padding-left: 10px;\n}\n\n.btn-file input[type=file] {\n position: absolute;\n top: 0;\n right: 0;\n min-width: 100%;\n min-height: 100%;\n font-size: 100px;\n text-align: right;\n filter: alpha(opacity=0);\n opacity: 0;\n outline: none;\n background: white;\n cursor: inherit;\n display: block;\n}\n.main-footer {\n font-size: 13px;\n}\n.main-header {\n max-height: 150px;\n}\n\n\n.navbar-nav>.user-menu>.dropdown-menu {\n width: inherit;\n}\n.main-header .logo {\n padding: 0px 5px 0px 15px;\n}\n\n\n.sidebar-toggle {\n margin-left: -48px;\n z-index: 100;\n background-color: inherit;\n}\n\n.sidebar-toggle-mobile {\n z-index: 100;\n width: 50px;\n padding-top: 10px;\n}\n\n\n.main-header\n.navbar\n.dropdown-menu li a {\n //color: inherit;\n}\n.pull-text-right{\n text-align: right !important;\n}\n\n.main-header .sidebar-toggle:before {\n content: \"\\f0c9\";\n font-weight: 900;\n font-family: 'Font Awesome\\ 5 Free';\n}\n\n.direct-chat-contacts {\n padding: 10px;\n height: 150px;\n}\n\n.select2-container {\n width: 100%;\n}\n\n.error input {\n color: #a94442;\n border: 2px solid #a94442 !important;\n}\n\n.error label, .alert-msg {\n color: #a94442;\n display: block;\n}\n\n.input-group[class*=\"col-\"] {\n padding-right: 15px;\n padding-left: 15px;\n}\n.control-label.multiline {\n padding-top: 10px;\n}\n\n.btn-outline {\n color: inherit;\n background-color: transparent;\n transition: all .5s;\n}\n\n.btn-primary.btn-outline {\n color: #428bca;\n}\n\n.btn-success.btn-outline {\n color: #5cb85c;\n}\n\n.btn-info.btn-outline {\n color: #5bc0de;\n}\n.btn-warning{\n background-color:#f39c12 !important;\n}\n\n.btn-warning.btn-outline {\n color: #f0ad4e;\n}\n\n.btn-danger.btn-outline, a.link-danger:link, a.link-danger:visited, a.link-danger:hover {\n color: #dd4b39;\n}\n\n.btn-primary:hover,\n.btn-success:hover,\n.btn-info:hover,\n.btn-warning:hover,\n.btn-primary,\n.btn-success,\n.btn-info,\n.btn-warning,\n.btn-primary.btn-outline:hover,\n.btn-success.btn-outline:hover,\n.btn-info.btn-outline:hover,\n.btn-warning.btn-outline:hover,\n.btn-danger.btn-outline:hover {\n color: #fff !important;\n}\n\n\n\n.slideout-menu {\n position: fixed;\n top: 0;\n right: -250px;\n width: 250px;\n height: 100%;\n background: #333;\n z-index: 100;\n margin-top: 100px;\n color: white;\n padding: 10px;\n}\n.slideout-menu h3 {\n position: relative;\n padding: 5px 5px;\n color: #fff;\n font-size: 1.2em;\n font-weight: 400;\n border-bottom: 4px solid #222;\n}\n.slideout-menu .slideout-menu-toggle {\n position: absolute;\n top: 12px;\n right: 10px;\n display: inline-block;\n padding: 6px 9px 5px;\n font-family: Arial, sans-serif;\n font-weight: bold;\n line-height: 1;\n background: #222;\n color: #999;\n text-decoration: none;\n vertical-align: top;\n}\n.slideout-menu .slideout-menu-toggle:hover {\n color: #fff;\n}\n.slideout-menu ul {\n list-style: none;\n font-weight: 300;\n border-top: 1px solid #151515;\n border-bottom: 1px solid #454545;\n}\n.slideout-menu ul li {\n border-top: 1px solid #454545;\n border-bottom: 1px solid #151515;\n}\n.slideout-menu ul li a {\n position: relative;\n display: block;\n padding: 10px;\n color: #999;\n text-decoration: none;\n}\n.slideout-menu ul li a:hover {\n background: #000;\n color: #fff;\n}\n.slideout-menu ul li a i {\n position: absolute;\n top: 15px;\n right: 10px;\n opacity: .5;\n}\n\n.btn-box-tool-lg {\n font-size: 16px;\n color: orange;\n}\n\n\n\n.bs-wizard {margin-top: 20px;}\n\n/*Form Wizard*/\n.bs-wizard {border-bottom: solid 1px #e0e0e0; padding: 0 0 10px 0;}\n.bs-wizard > .bs-wizard-step {padding: 0; position: relative;}\n.bs-wizard > .bs-wizard-step + .bs-wizard-step {}\n.bs-wizard > .bs-wizard-step .bs-wizard-stepnum {color: #595959; font-size: 16px; margin-bottom: 5px;}\n.bs-wizard > .bs-wizard-step .bs-wizard-info {color: #999; font-size: 14px;}\n.bs-wizard > .bs-wizard-step > .bs-wizard-dot {position: absolute; width: 30px; height: 30px; display: block; background: #fbe8aa; top: 45px; left: 50%; margin-top: -15px; margin-left: -15px; border-radius: 50%;}\n.bs-wizard > .bs-wizard-step > .bs-wizard-dot:after {content: ' '; width: 14px; height: 14px; background: #fbbd19; border-radius: 50px; position: absolute; top: 8px; left: 8px; }\n.bs-wizard > .bs-wizard-step > .progress {position: relative; border-radius: 0px; height: 8px; box-shadow: none; margin: 20px 0;}\n.bs-wizard > .bs-wizard-step > .progress > .progress-bar {width:0px; box-shadow: none; background: #fbe8aa;}\n.bs-wizard > .bs-wizard-step.complete > .progress > .progress-bar {width:100%;}\n.bs-wizard > .bs-wizard-step.active > .progress > .progress-bar {width:50%;}\n.bs-wizard > .bs-wizard-step:first-child.active > .progress > .progress-bar {width:0%;}\n.bs-wizard > .bs-wizard-step:last-child.active > .progress > .progress-bar {width: 100%;}\n.bs-wizard > .bs-wizard-step.disabled > .bs-wizard-dot {background-color: #f5f5f5;}\n.bs-wizard > .bs-wizard-step.disabled > .bs-wizard-dot:after {opacity: 0;}\n.bs-wizard > .bs-wizard-step:first-child > .progress {left: 50%; width: 50%;}\n.bs-wizard > .bs-wizard-step:last-child > .progress {width: 50%;}\n.bs-wizard > .bs-wizard-step.disabled a.bs-wizard-dot{ pointer-events: none; }\n\n/**\nPrevent step titles from wrapping to a second line at intermediate\nwidths (QA reported ~1265px). The .bs-wizard-dot is absolutely\npositioned at top:45px per step, so any step whose stepnum grows\ntaller than one line pushes its progress bar down while its neighbours\nstay high — the connecting line looks broken. Nowrap + ellipsis keeps\nevery stepnum a consistent single-line height so the line stays\nlevel and threads through the dot centers as designed.\n */\n.bs-wizard > .bs-wizard-step .bs-wizard-stepnum {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n/*END Form Wizard*/\n\n.left-navblock {\n display: inline-block;\n float: left;\n text-align: left;\n color: white;\n padding: 0px;\n /* adjust based on your layout */\n\n}\n\n.main-header\n.navbar\n.dropdown-menu li a {\n color: #333;\n}\n\na.logo.no-hover a:hover {\n background-color: transparent;\n}\n\n\ninput:required, select:required {\n border-right: 5px solid orange;\n}\nselect:required + .select2-container .select2-selection, select:required + .select2-container .select2-selection .select2-selection--multiple {\n border-right: 5px solid orange !important;\n}\n\nbody {\n font-family: -apple-system, BlinkMacSystemFont,\n \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Cantarell\",\n \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\n sans-serif;\n font-size: 13px;\n}\n\n.sidebar-menu {\n font-size: 14px;\n white-space: normal;\n}\n\n.modal-warning .modal-help {\n color: #fff8af;\n}\n\n.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading {\n z-index: 0 !important;\n}\n\n// Clip the absolutely-positioned fixed-column overlays so they cannot\n// bleed past the container's bottom edge into the pagination area.\n.bootstrap-table .fixed-table-container {\n overflow: hidden;\n}\n\n@media print {\n\n @page {\n size: A4;\n margin: 0mm;\n }\n\n .tab-content > .tab-pane {\n display: block !important;\n opacity: 1 !important;\n visibility: visible !important;\n }\n\n .img-responsive {\n width: 200px;\n }\n\n html, body {\n width: 1024px;\n }\n\n body {\n margin: 0 auto;\n line-height: 1em;\n word-spacing:1px;\n letter-spacing:0.2px;\n font: 15px \"Times New Roman\", Times, serif;\n width: 100%;\n float: none;\n }\n\n /* avoid page-breaks inside a listingContainer*/\n .listingContainer {\n page-break-inside: avoid;\n }\n\n h1 {\n font: 28px \"Times New Roman\", Times, serif;\n }\n\n h2 {\n font: 24px \"Times New Roman\", Times, serif;\n }\n\n h3 {\n font: 20px \"Times New Roman\", Times, serif;\n }\n\n /* Improve colour contrast of links */\n a:link, a:visited {\n color: #781351\n }\n\n /* URL */\n a:link, a:visited {\n background: transparent;\n color:#333;\n text-decoration:none;\n }\n\n a[href]:after {\n content: \"\" !important;\n }\n\n a[href^=\"http://\"] {\n color:#000;\n }\n\n #header {\n height:75px;\n font-size: 24pt;\n color:black\n }\n\n div.row-new-striped {\n margin: 0px;\n padding: 0px;\n }\n\n .pagination-detail, .fixed-table-toolbar {\n visibility: hidden;\n }\n .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 .col-sm-pull-3 .col-sm-push-9 {\n float: left;\n }\n\n .col-sm-12 {\n width: 100%;\n }\n .col-sm-11 {\n width: 91.66666666666666%;\n }\n .col-sm-10 {\n width: 83.33333333333334%;\n }\n .col-sm-9 {\n width: 75%;\n }\n .col-sm-8 {\n width: 66.66666666666666%;\n }\n .col-sm-7 {\n width: 58.333333333333336%;\n }\n .col-sm-6 {\n width: 50%;\n }\n .col-sm-5 {\n width: 41.66666666666667%;\n }\n .col-sm-4 {\n width: 33.33333333333333%;\n }\n .col-sm-3 {\n width: 25%;\n }\n .col-sm-2 {\n width: 16.666666666666664%;\n }\n .col-sm-1 {\n width: 8.333333333333332%;\n }\n\n}\n\n\n.select2-selection__choice__remove {\n color: white !important;\n}\n\n.select2-selection--multiple {\n overflow-y: auto;\n}\n\n.select2-selection__choice {\n border-radius: 0px !important;\n}\n\n.select2-search select2-search--inline {\n height: 35px !important;\n float: left;\n margin: 0;\n}\n\n\n\n.select2-results__option {\n padding: 5px;\n user-select: none;\n -webkit-user-select: none;\n margin: 0px;\n}\n\nimg.navbar-brand-img, .navbar-brand>img {\n float: left;\n padding: 5px 5px 5px 0;\n max-height: 50px;\n}\n\n.asset-qr-img img {\n image-rendering: pixelated;\n}\n\n.input-daterange, .input-daterange input:first-child, .input-daterange input:last-child {\n border-radius: 0px !important;\n}\n\n.btn-checkin, .btn-checkout {\n min-width:90px;\n}\n\n\n[hidden] {\n display: none !important;\n}\n\n#toolbar {\n margin-top: 10px;\n}\n\n#uploadPreview {\n border-color: grey;\n border-width: 1px;\n border-style: solid\n}\n\n.icon-med {\n font-size: 14px;\n color: #889195;\n}\n\n#login-logo {\n padding-top: 5px;\n padding-bottom: 5px;\n padding-right: 15px;\n max-width: 200px\n}\n\n// accessibility skip link\na.skip-main {\n left:-999px;\n position:absolute;\n top:auto;\n width:1px;\n height:1px;\n overflow:hidden;\n z-index:-999;\n}\na.skip-main:focus, a.skip-main:active {\n color: #fff;\n background-color:#000;\n left: auto;\n top: auto;\n width: 30%;\n height: auto;\n overflow:auto;\n margin: 10px 35%;\n padding:5px;\n border-radius: 15px;\n border:4px solid yellow;\n text-align:center;\n font-size:1.2em;\n z-index:999;\n}\n\nh2 {\n font-size: 22px;\n}\n\nh2.task_menu {\n font-size: 14px;\n}\n\nh2 small {\n font-size: 85%;\n}\n\nh3 {\n font-size: 20px;\n}\n\nh4 {\n font-size: 16px;\n}\n\n\n.row-striped {\n vertical-align: top;\n line-height: 2.6;\n padding: 0px;\n margin-left: 20px;\n box-sizing: border-box;\n //border-left: 1px solid #dddddd;\n //border-right: 1px solid #dddddd;\n display: table;\n}\n\n.row-striped .row:nth-of-type(odd) div {\n background-color: #f9f9f9;\n border-top: 1px solid #dddddd;\n display: table-cell;\n word-wrap: break-word;\n}\n\n.row-striped .row:nth-of-type(even) div {\n background: #FFFFFF;\n border-top: 1px solid #dddddd;\n display: table-cell;\n word-wrap: break-word;\n}\n\n\n.row-new-striped {\n vertical-align: top;\n padding: 3px;\n display: table;\n width: 100%;\n word-wrap: break-word;\n table-layout:fixed;\n}\n\n/**\n* NEW STRIPING\n* This section is for the new row striping for nicer \n* display for non-table data as of v6\n**/\n.row-new-striped > .row:nth-of-type(even) {\n line-height: 1.9;\n display: table-row;\n}\n\n.row-new-striped > .row:nth-of-type(odd) {\n display: table-row;\n padding: 2px;\n}\n\n.row-new-striped div {\n display: table-cell;\n padding: 6px;\n}\n\n.row-new-striped div {\n display: table-cell;\n padding: 6px;\n}\n\n\n.row-new-striped div[class^=\"col\"]:first-child {\n font-weight: bold;\n}\n\n\n\n/**\n* This just adds a little extra padding on mobile\n**/\n@media only screen and (max-width: 520px) {\n h1.pagetitle {\n padding-top: 15px;\n padding-bottom: 15px;\n }\n\n // .firstnav { padding-top: 120px !important } used to live here as\n // another static compensation for the wrapped-header-covers-first-item\n // bug at narrow widths. Superseded by the dynamic\n // .main-sidebar padding-top: var(--main-header-height) rule; leaving\n // it would double-count on top of the runtime-measured header height.\n\n .product {\n width: 400px;\n }\n\n .product img {\n min-width: 400px;\n }\n}\n\n.card-view-title {\n min-width: 40% !important;\n line-height: 3.0!important;\n padding-right: 20px;\n}\n\n.card-view {\n display: table-row;\n flex-direction: column;\n}\n\n// ---------------\n\n/**\n\n COLUMN SELECTOR ICONS\n -----------------------------\n This is kind of weird, but it is necessary to prevent the column-selector code from barfing, since\n any HTML used in the UserPresenter \"title\" attribute breaks the column selector HTML.\n\n Instead, we use CSS to add the icon into the table header, which leaves the column selector\n \"title\" text as-is and hides the icon.\n\n See https://github.com/grokability/snipe-it/issues/7989\n */\nthead th.css-accessory > .th-inner,\nthead th.css-accessory-alt > .th-inner,\nthead th.css-barcode > .th-inner,\nthead th.css-component > .th-inner,\nthead th.css-consumable > .th-inner,\nthead th.css-envelope > .th-inner,\nthead th.css-house-flag > .th-inner,\nthead th.css-house-laptop > .th-inner,\nthead th.css-house-user > .th-inner,\nthead th.css-license > .th-inner,\nthead th.css-location > .th-inner,\nthead th.css-maintenances > .th-inner,\nthead th.css-users > .th-inner,\nthead th.css-currency > .th-inner,\nthead th.css-child-locations > .th-inner,\nthead th.css-history > .th-inner\n{\n font-size: 0px;\n line-height: 0.75 !important;\n text-align: left;\n text-rendering: auto;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n\nthead th.css-location > .th-inner::before,\nthead th.css-accessory > .th-inner::before,\nthead th.css-accessory-alt > .th-inner::before,\nthead th.css-barcode > .th-inner::before,\nthead th.css-component > .th-inner::before,\nthead th.css-consumable > .th-inner::before,\nthead th.css-envelope > .th-inner::before,\nthead th.css-house-flag > .th-inner::before,\nthead th.css-house-laptop > .th-inner::before,\nthead th.css-house-user > .th-inner::before,\nthead th.css-license > .th-inner::before,\nthead th.css-location > .th-inner::before,\nthead th.css-maintenances > .th-inner::before,\nthead th.css-users > .th-inner::before,\nthead th.css-currency > .th-inner::before,\nthead th.css-child-locations > .th-inner::before,\nthead th.css-history > .th-inner::before\n{\n display: inline-block;\n font-size: 20px;\n font-family: \"Font Awesome 5 Free\";\n font-weight: 900;\n}\n\n/**\nBEGIN ICON TABLE HEADERS\nSet the font-weight css property as 900 (For Solid), 400 (Regular or Brands), 300 (Light for pro icons).\n**/\nthead th.css-barcode > .th-inner::before\n{\n content: \"\\f02a\"; font-family: \"Font Awesome 5 Free\"; font-weight: 900;\n}\n\nthead th.css-license > .th-inner::before\n{\n content: \"\\f0c7\"; font-family: \"Font Awesome 5 Free\"; font-weight: 400;\n}\n\nthead th.css-consumable > .th-inner::before\n{\n content: \"\\f043\"; font-family: \"Font Awesome 5 Free\"; font-weight: 900;\n}\n\nthead th.css-envelope > .th-inner::before\n{\n content: \"\\f0e0\"; font-family: \"Font Awesome 5 Free\"; font-weight: 400;\n}\n\nthead th.css-accessory > .th-inner::before\n{\n content: \"\\f11c\"; font-family: \"Font Awesome 5 Free\"; font-weight: 400;\n}\n\nthead th.css-users > .th-inner::before {\n content: \"\\f0c0\"; font-family: \"Font Awesome 5 Free\"; font-size: 15px;\n}\n\nthead th.css-location > .th-inner::before {\n content: \"\\f3c5\"; font-family: \"Font Awesome 5 Free\"; font-size: 19px; margin-bottom: 0px;\n}\n\n// fa-screwdriver-wrench — matches the icon used by the maintenance tab and\n// the user-well maintenance-cost row, so the users-index column header\n// stays visually consistent with the rest of the maintenance surface.\nthead th.css-maintenances > .th-inner::before {\n content: \"\\f7d9\"; font-family: \"Font Awesome 5 Free\"; font-size: 18px; margin-bottom: 0px;\n}\n\nthead th.css-component > .th-inner::before\n{\n content: \"\\f0a0\"; font-family: \"Font Awesome 5 Free\"; font-weight: 500;\n}\n\nthead th.css-padlock > .th-inner::before\n{\n content: \"\\f023\"; font-family: \"Font Awesome 5 Free\";\n font-weight: 800;\n padding-right: 3px;\n}\n\nthead th.css-house-user > .th-inner::before {\n content: \"\\e1b0\";\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\nthead th.css-house-flag > .th-inner::before {\n content: \"\\e50d\";\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\nthead th.css-house-laptop > .th-inner::before {\n content: \"\\e066\";\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\nthead th.css-accessory-alt > .th-inner::before {\n content: \"\\f11c\";\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\n\nthead th.css-child-locations > .th-inner::before {\n content: \"\\f64f\"; // change this to f51e for coins\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\n\nthead th.css-currency > .th-inner::before {\n content: \"\\24\"; // change this to f51e for coins\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\n\nthead th.css-history > .th-inner::before {\n content: \"\\f1da\"; // change this to f51e for coins\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\n\n\n.small-box .inner {\n padding-left: 15px;\n padding-right: 15px;\n padding-top: 15px;\n color: #fff;\n}\n\n\n.small-box > a:link, .small-box > a:visited, .small-box > a:hover {\n color: #fff;\n}\n\n.select2-container--default .select2-selection--single, .select2-selection .select2-selection--single {\n border: 1px solid #d2d6de;\n border-radius: 0;\n padding: 6px 12px;\n height: 34px;\n}\n\n.form-group.has-error label, .form-group.has-error .help-block {\n color: #a94442;\n}\n\n.select2-container--default .select2-selection--multiple {\n border-radius: 0px;\n}\n\n@media screen and (max-width: 511px){\n .tab-content .tab-pane .alert-block {\n margin-top: 120px\n }\n}\n@media screen and (max-width: 912px) and (min-width: 512px){\n .navbar-custom-menu > .navbar-nav > li.dropdown.user.user-menu {\n float:right;\n }\n .navbar-custom-menu > .navbar-nav > li > .dropdown-menu {\n margin-right:-39px;\n }\n}\n\n// Legacy .sidebar-menu { margin-top: Npx } rules at 912-1268px,\n// 512-912px, and <=511px used to live here as hardcoded compensation\n// for the \"header wraps at intermediate widths and covers the first\n// sidebar item\" bug (#5085, #11868, #19482). Same story for the\n// .firstnav { padding-top: 120px !important } that used to be inside\n// the max-width: 520px block below. All three were double-counted on\n// top of the dynamic .main-sidebar padding-top: var(--main-header-height)\n// rule further down that measures the actual header height at runtime,\n// producing 200px+ visual gaps above Dashboard at those breakpoints.\n// The dynamic measurement covers all these cases correctly, so the\n// static compensation is deleted.\n@media screen and (max-width: 992px){\n .info-stack-container {\n flex-direction: column;\n }\n .col-md-3.col-xs-12.col-sm-push-9.info-stack{\n left:auto;\n order:1;\n }\n .col-md-9.col-xs-12.col-sm-pull-3.info-stack{\n right:auto;\n order:2;\n }\n .info-stack-container > .col-md-9.col-xs-12.col-sm-pull-3.info-stack > .row-new-striped > .row > .col-sm-2{\n width:auto;\n float:none;\n }\n}\n@media screen and (max-width: 992px){\n .row-new-striped div{\n width:100%;\n }\n}\n\n@media screen and (max-width: 1318px) and (min-width: 1200px){\n .admin.box{\n height:170px;\n }\n}\n@media screen and (max-width: 1494px) and (min-width: 1200px){\n .dashboard.small-box{\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: 188px;\n display: block;\n overflow: hidden;\n }\n}\n\n/** Form-stuff overrides for checkboxes and stuff **/\n\nlabel.form-control {\n display: grid;\n grid-template-columns: 1.8em auto;\n gap: 0.5em;\n border: 0px;\n padding-left: 0px;\n background-color: inherit;\n color: inherit;\n font-size: inherit;\n font-weight: inherit;\n}\n\nlabel.form-control--disabled {\n color: #959495;\n cursor: not-allowed;\n}\n\n/** Bootstrap's normalize.less sets `html input[disabled] { cursor: default }`\n at load-order line 139, and its own `.form-control[disabled] { cursor: not-allowed }`\n rule (line 2705) has higher specificity so it should win — but on some browser +\n input-group combinations the resolved cursor still ends up as `text` because the\n input-group parent's implicit text-cursor bleeds through. Explicit element-scoped\n override to lock in the \"no-entry\" cursor on any disabled form control. **/\ninput.form-control[disabled],\nselect.form-control[disabled],\ntextarea.form-control[disabled] {\n cursor: not-allowed;\n}\n\n/** Anti-autofill masking for the readonly-plus-onfocus-strip trick used on\n sensitive form fields (user create/edit username, password, email, etc.).\n The field ships with `readonly` so password managers won't prefill or\n overwrite it, then strips readonly on focus so the operator can type.\n Bootstrap's `.form-control[readonly]` styles that field with a gray\n disabled-looking background, which confuses the operator into thinking\n the field is uneditable. Override to make it visually indistinguishable\n from a regular editable input.\n Scoped to `.js-antifill-readonly` so legitimately-readonly fields\n (SAML SP entity ID, ACS/SLS URLs, generated cert, metadata URL, etc.)\n keep the gray-out styling from the readonly rule further down in this\n file. Adding `readonly` alone should look readonly; opt in to the\n autofill-masking override by adding the class explicitly.\n Deliberately does NOT match `[disabled]` — actually-disabled fields\n (demo mode locks, permission gates) must keep their grayed appearance\n and not-allowed cursor. **/\ninput.js-antifill-readonly[readonly],\ntextarea.js-antifill-readonly[readonly],\n.form-control.js-antifill-readonly[readonly] {\n cursor: text !important;\n background-color: var(--table-stripe-bg) !important;\n color: var(--color-fg) !important;\n}\n\n/** Inline \"this field is locked because the app is in demo mode\" callout.\n Rendered by the <x-demo-lock> anonymous component in resources/views/blade/demo-lock.blade.php.\n Kept as a small inline-block box so it hugs its text width regardless\n of the column it lands in (input rows use col-md-7, activated row\n uses col-md-9, so a block-level notice would stretch inconsistently). **/\n.demo-lock-notice {\n display: inline-block;\n background-color: #fcf8e3;\n border: 1px solid #faebcc;\n color: #8a6d3b;\n padding: 6px 10px;\n margin-top: 6px;\n border-radius: 3px;\n font-size: 0.9em;\n}\n\n\n/** --------------------------------------- **/\n/** Start checkbox styles to replace iCheck **/\n/** --------------------------------------- **/\ninput[type=\"checkbox\"] {\n /* Add if not using autoprefixer */\n -webkit-appearance: none;\n appearance: none;\n /* For iOS < 15 to remove gradient background */\n background-color: #fff;\n /* Not removed via appearance */\n margin: 0;\n font: inherit;\n color: #959495;\n width: 1.8em;\n height: 1.8em;\n border: 0.05em solid;\n border-radius: 0em;\n transform: translateY(-0.075em);\n display: grid;\n place-content: center;\n /*Windows High Contrast Mode*/\n}\n\n/** This sets the display of a checkbox, and what the \"fill\" checkmark should look like */\n\ninput[type=\"checkbox\"]::before {\n\n /** If you want to use the non-checkbox, filled square, use this instead **/\n content: \"\";\n width: 1em;\n height: 1em;\n transform: scale(0);\n transition: 120ms transform ease-in-out;\n box-shadow: inset 1em 1em rgb(211, 211, 211);\n content: \"\";\n width: 1em;\n height: 1em;\n clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);\n transform: scale(0);\n transform-origin: bottom left;\n transition: 120ms transform ease-in-out;\n box-shadow: inset 1em 1em #428bca;\n /* Windows High Contrast Mode */\n background-color: CanvasText;\n}\n\n/** This sets the size of the scale up for the shape we defined above **/\ninput[type=\"checkbox\"]:checked::before {\n transform: scale(1);\n}\n\n/** This sets the scale and color of the DISABLED but CHECKED checkbox */\ninput[type=checkbox]:disabled::before, input[type=radio]:disabled::before {\n content: \"\";\n width: 1em;\n height: 1em;\n transform: scale(1);\n box-shadow: inset 1em 1em rgb(211, 211, 211);\n}\n\n/* This sets the scale and style of a DISABLED checkbox that is NOT checked */\ninput[type=checkbox]:disabled:not(:checked)::before, input[type=radio]:disabled:not(:checked)::before {\n content: \"\";\n transform: scale(0);\n cursor: not-allowed;\n pointer-events:none;\n}\n\n/** this is the color of the checkbox and content on a disabled, checked box **/\ninput[type=checkbox]:disabled, input[type=radio]:disabled {\n --form-control-color: rgb(211, 211, 211);\n color: #959495;\n cursor: not-allowed;\n pointer-events:none;\n}\n\n\n/** Radio styles to replace iCheck **/\n\ninput[type=\"radio\"] {\n appearance: none;\n background-color: #fff;\n margin: 0;\n font: inherit;\n color: #959495;\n width: 1.8em;\n height: 1.8em;\n border: 0.05em solid;\n border-radius: 50%;\n transform: translateY(-0.075em);\n display: grid;\n place-content: center;\n}\n\ninput[type=\"radio\"]::before {\n content: \"\";\n width: 1em;\n height: 1em;\n border-radius: 50%;\n transform: scale(0);\n transition: 120ms transform ease-in-out;\n}\n\ninput[type=\"radio\"]:checked::before {\n transform: scale(1);\n}\n\n\n/**\n* This addresses the column selector in bootstrap-table. Without these two lines, the\n* checkbox and the <span></span> with the label text that BS tables generates will\n* end up on two different lines and it looks assy.\n */\n.dropdown-item-marker input[type=checkbox] {\n font-size: 10px;\n}\n\n.bootstrap-table .fixed-table-toolbar li.dropdown-item-marker label {\n font-weight: normal;\n display: grid;\n grid-template-columns: .1em auto;\n gap: 1.5em;\n}\n\n.container.row-striped .col-md-6 {\n overflow-wrap:anywhere;\n}\n\n.nav-tabs-custom > .nav-tabs > li {\n z-index: 1;\n}\n\n.select2-container .select2-search--inline .select2-search__field{\n padding-left:15px;\n}\n\n.nav-tabs-custom > .nav-tabs > li.active {\n font-weight: bold;\n}\n\n/** --------------------------------------- **/\n/** End checkbox styles to replace iCheck **/\n/** --------------------------------------- **/\n\n/**\n/** Separator styles with text in the middle. Currently only used by the login page but\n/** could be used elsewhere.\n */\n\n.separator {\n display: flex;\n align-items: center;\n text-align: center;\n padding-top: 20px;\n color: #959495;\n}\n\n.separator::before,\n.separator::after {\n content: '';\n flex: 1;\n border-bottom: 1px solid #959495;\n}\n\n.separator:not(:empty)::before {\n margin-right: .25em;\n}\n\n.separator:not(:empty)::after {\n margin-left: .25em;\n}\n.datepicker.dropdown-menu {\n z-index: 1030 !important;\n}\n\n.sidebar-menu > li .badge {\n margin-top: 0px;\n filter: brightness(70%);\n font-size: 70%;\n}\n\n/** this is needed to override ekko-lightboxes card view styles **/\n.bootstrap-table .fixed-table-container .table tbody tr .card-view {\n display: table-row !important;\n}\n\ntd.text-right.text-padding-number-cell {\n padding-right: 30px !important;\n white-space: nowrap;\n}\n\nth.text-right.text-padding-number-footer-cell {\n padding-right: 20px !important;\n white-space: nowrap;\n}\n\ncode.single-line {\n white-space: pre-wrap;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n overflow: hidden;\n max-width: 400px;\n}\n\np.monospace, span.monospace {\n font-family: monospace, monospace;\n}\n\nlegend.highlight {\n background: repeating-linear-gradient(\n 45deg,\n #222d32,\n #222d32 10px,\n #444 10px,\n #444 11px\n );\n\n color: #fff;\n font-size: 18px;\n padding: 6px 6px 6px 10px;\n}\n\nlegend.highlight a {\n color: #fff;\n cursor: pointer;\n}\n\nfieldset.bottom-padded {\n padding-bottom: 20px;\n}\n\ncaption.tableCaption {\n font-size: 18px;\n padding-left: 8px;\n}\n\n\n.markdown-field-content {\n h1 { font-size: 22px; font-weight: 700; margin: 6px 0 4px; }\n h2 { font-size: 20px; font-weight: 700; margin: 6px 0 4px; }\n h3 { font-size: 18px; font-weight: 700; margin: 6px 0 4px; }\n h4 { font-size: 16px; font-weight: 700; margin: 4px 0 4px; }\n h5, h6 { font-size: 14px; font-weight: 700; margin: 4px 0 4px; }\n p { margin: 0 0 4px; }\n p:last-child { margin-bottom: 0; }\n ul, ol { margin: 0 0 4px; padding-left: 20px; }\n > *:first-child { margin-top: 0; }\n}\n\n// via https://github.com/grokability/snipe-it/issues/11754\n.sidebar-toggle.btn {\n border-radius: 3px;\n box-shadow: none;\n border-top: 0px solid transparent;\n border-bottom: 0px solid transparent;\n padding-left: 15px;\n padding-right: 15px;\n padding-top: 12px;\n padding-bottom: 12px;\n margin-left: -47px;\n margin-top: 2px;\n}\n\n\n.visually-hidden {\n width: 1px;\n height: 1px;\n margin: -1px;\n overflow: hidden;\n clip: rect(0,0,0,0);\n white-space: preserve;\n display: inline-block;\n}\n\ninput[name=\"columnsSearch\"] {\n width: 120px;\n}\n\n.callout.callout-legend {\n padding: 15px 30px 15px 15px;\n font-size: 100%;\n border-radius: 0px;\n}\n\n.callout.callout-legend h4 {\n font-size: 16px;\n font-weight: bold;\n margin-top: 5px;\n margin-bottom: 0px;\n}\n\n.callout.callout-legend a {\n text-decoration: none;\n cursor: pointer;\n}\n\np.callout-subtext {\n margin-top: 5px;\n}\n\n/**\nThis just hides the padding on the right side of the mark tag for a less weird visual experience\n */\nmark {\n padding-right: 0px;\n}\n\n/**\nRadio toggle styles for permission settings and check/uncheck all\n */\n.radio-toggle-wrapper {\n display: flex;\n padding: 2px;\n background-color: #e9e9e9;\n margin-bottom: 3px;\n border-radius: 4px;\n border: 1px #d6d6d6 solid;\n}\n\n.radio-slider-inputs {\n flex-grow: 1;\n}\n\n.radio-slider-inputs input[type=radio] {\n display: none;\n}\n\n.radio-slider-inputs label {\n display: block;\n margin-bottom: 0px;\n padding: 6px 8px;\n color: #fff;\n font-weight: bold;\n text-align: center;\n transition : all .4s 0s ease;\n cursor: pointer;\n}\n\n.radio-slider-inputs label {\n color: #9a9999;\n border-radius: 4px;\n border: 1px transparent solid;\n}\n\n.radio-slider-inputs .allow:checked + label {\n background-color: green;\n color: white;\n border-radius: 4px;\n border: 1px transparent solid;\n}\n\n.radio-slider-inputs .inherit:checked + label {\n background-color: rgba(255, 204, 51, 0.11);\n color: #9a9999;\n border-radius: 4px;\n border: 1px white solid;\n}\n\n.radio-slider-inputs .deny:checked + label {\n background-color: #a94442;\n color: white;\n border-radius: 4px;\n border: 1px transparent solid;\n}\n\n.remember-toggle {\n cursor: pointer;\n}\n\n.js-copy-link {\n float: left;\n color: grey;\n}\n\n.deleted {\n text-decoration: line-through;\n}\n\n\n//css to add hamburger and create dropdown on small screens\n@nav-link-hover-bg: #eeeeee;\n@border-radius-base: 5px;\n@screen-xs-max: 767px;\n\n.nav-tabs.nav-tabs-dropdown,\n.nav-tabs-dropdown {\n @media (max-width: @screen-xs-max) {\n overflow: hidden;\n position: relative;\n\n &::after {\n content: \"☰\";\n position: absolute;\n font-size: 35px;\n top: 0;\n right: 15px;\n z-index: 2;\n pointer-events: none;\n }\n\n &.open {\n a {\n position: relative;\n display: block;\n }\n\n > li.active > a {\n background-color: @nav-link-hover-bg;\n\n }\n }\n\n li.snipetab {\n margin-right: 0 !important;\n }\n\n li {\n display: block;\n padding: 0;\n vertical-align: bottom;\n white-space: nowrap !important;\n }\n\n > li > a {\n position: absolute;\n top: 0;\n left: 0;\n margin: 0;\n width: 100%;\n height: 100%;\n display: inline-block;\n border-color: transparent;\n\n &:focus,\n &:hover,\n &:active {\n border-color: transparent;\n border-right: 0 !important;\n }\n }\n\n > li.active > a {\n display: block;\n border-color: transparent !important;\n position: relative;\n z-index: 1;\n\n &:focus,\n &:hover,\n &:active {\n border-color: transparent !important;\n }\n\n }\n }\n\n// Advanced-search \"Clear all\" pill. AdminLTE's default anchor styles pull the\n// color toward the theme's link tint on :hover / :focus, which reads black on\n// the red pill background. Pin white in every interactive state so the pill\n// stays legible.\n.snipe-advanced-search-tags-clear-all,\n.snipe-advanced-search-tags-clear-all:link,\n.snipe-advanced-search-tags-clear-all:visited,\n.snipe-advanced-search-tags-clear-all:hover,\n.snipe-advanced-search-tags-clear-all:focus,\n.snipe-advanced-search-tags-clear-all:active {\n color: #fff !important;\n text-decoration: none;\n}\n}\n\n// Spin the help-icon (life-ring) on hover/focus of the info tooltip anchor.\n// Uses Font Awesome's built-in fa-spin animation. Gated by the\n// prefers-reduced-motion rule below.\n.tooltip-spin-hover:hover i,\n.tooltip-spin-hover:focus i {\n animation: fa-spin 2s infinite linear;\n}\n\n// Bootstrap 3 tops out at .modal-lg (900px). The wizard-style modals\n// (e.g. the CSV importer) need more horizontal room for their mapping\n// grid + preview table, so add a .modal-xl above modal-lg. Follows the\n// same @media breakpoint BS3 uses for .modal-lg (>= 992px) and caps at\n// 1400px so it doesn't stretch obnoxiously on ultra-wide monitors.\n@media (min-width: 992px) {\n .modal-xl {\n width: 90%;\n max-width: 1400px;\n }\n}\n\n// Long wizard content (dozens of mapping rows) can push the modal past\n// the viewport. Bootstrap 3 doesn't scroll the modal-body by default, so\n// the footer buttons (Back / Next / Preview / Process) end up below the\n// fold with no way to reach them. Cap the modal-body height and let it\n// scroll internally instead. Scoped to .modal-xl so smaller confirm-\n// action modals aren't affected. 200px leaves room for header (~60),\n// footer (~60), and the modal's own top/bottom margins. overflow-x is\n// hidden so a stray col-* with negative row margins doesn't produce a\n// horizontal scrollbar on the type-selection and mapping steps; the\n// preview step's wide sample table has its own .table-responsive\n// wrapper for horizontal scrolling.\n.modal-xl .modal-body {\n max-height: calc(100vh - 200px);\n overflow-y: auto;\n overflow-x: hidden;\n}\n\n// Bootstrap 3's .form-horizontal .form-group carries -15px left/right\n// margins that cancel a modal-body's default 15px padding, leaving all\n// form content pinned flush to the modal edges. Zero it out inside the\n// wizard modal so labels + inputs stay inset from the modal chrome. The\n// inner .col-* children retain their own 15px padding, so the standard\n// horizontal-form gutter still lands correctly.\n.modal-xl .modal-body.form-horizontal > .form-group,\n.modal-xl .modal-body.form-horizontal > .row > .form-group {\n margin-left: 0;\n margin-right: 0;\n}\n\n// bs-wizard-stepnum ships hardcoded #595959 in bootstrap-less, which is\n// near-invisible against the dark-theme background. Override to the\n// theme's own body text color so \"Choose type\" / \"Map fields\" / \"Preview\"\n// stay readable in dark mode.\n[data-theme=\"dark\"] .bs-wizard > .bs-wizard-step .bs-wizard-stepnum,\n[data-theme=\"dark\"] .bs-wizard > .bs-wizard-step .bs-wizard-info {\n color: #d0d0d0;\n}\n\n// Respect the user's OS-level \"reduce motion\" preference. The Font Awesome\n// spinners (.fa-spin) and Font Awesome Animation pulses (.faa-pulse, .animated)\n// loop indefinitely, which can trigger vestibular symptoms. One-shot animations\n// (like the confetti burst on save) are left alone since they don't loop.\n@media (prefers-reduced-motion: reduce) {\n // Catch-all for any Font Awesome Animation utility (faa-pulse, faa-spin,\n // faa-tada, faa-shake, faa-bounce, faa-burst, faa-flash, faa-float,\n // faa-horizontal, faa-vertical, faa-passing, faa-ring, faa-slide, etc.)\n // regardless of whether the animation is always-on (.animated) or hover-\n // triggered (.animated-hover:hover). Attribute selector keeps this rule\n // safe against future FA-Animation class additions.\n [class*=\"faa-\"].animated,\n [class*=\"faa-\"].animated-hover:hover,\n .tooltip-spin-hover:hover i,\n .tooltip-spin-hover:focus i,\n .fa-spin,\n .fa-pulse {\n animation: none !important;\n }\n}\n\n// ============================================================================\n// Theme mode CSS custom properties.\n//\n// Originally lived as an inline <style> block in layouts/default.blade.php,\n// migrated here so the layout stops carrying ~1200 lines of raw CSS and so\n// layouts/basic.blade.php (login, error pages) can inherit the same theming\n// by loading all.css alone.\n//\n// CSS Colors 5 expressions (hsl(from ...), light-dark(...)) are wrapped in\n// Less's ~\"...\" escape so the compiler emits them verbatim instead of trying\n// to parse `l - 10` as its own variable arithmetic.\n//\n// Per-tenant color overrides (header_color, nav_link_color, link_light_color,\n// link_dark_color) are NOT moved here — they still live in the tiny inline\n// <style> block in default.blade.php and win on cascade order. The defaults\n// baked in below match what the blade fallbacks currently emit when a tenant\n// has not customized their colors.\n// ============================================================================\n\n:root {\n color-scheme: light dark;\n --color-bg: ~\"light-dark(#ecf0f5, #222222)\";\n --btn-theme-hover-text-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l - 10)),hsl(from var(--main-theme-color) h s calc(l - 10)))\";\n --btn-theme-hover: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l - 10)),hsl(from var(--main-theme-color) h s calc(l - 10)))\";\n --btn-theme-text-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 10)),hsl(from var(--main-theme-color) h s calc(l - 10)))\";\n --color-fg: ~\"light-dark(#373636, #ffffff)\";\n --main-footer-bg-color: ~\"light-dark(#ffffff,#3d4144)\";\n --main-footer-text-color: ~\"light-dark(#605e5e, #d2d6de)\";\n --main-footer-top-border-color: ~\"light-dark(#d2d6de,#605e5e)\";\n --main-theme-color: #3c8dbc;\n --nav-hover-text-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\";\n --nav-primary-text-color: #ffffff;\n --search-highlight: #e9d15b;\n --sidenav-hover-color-bg: #4c4b4b;\n --sidenav-text-hover-color: #fff;\n --sidenav-text-nohover-color: #b8c7ce;\n --table-border-row-color: ~\"light-dark(#ecf0f5, #656464)\";\n --table-border-row-top: 1px solid #ecf0f5;\n --table-border-row: 1px solid var(--table-border-row-color);\n --table-stripe-bg-alt: ~\"light-dark(rgba(211, 211, 211, 0.25), #323131)\";\n --table-stripe-bg: ~\"light-dark(#ffffff, #494747)\";\n --text-danger: ~\"light-dark(#a94442, #fa5b48)\";\n --text-help: ~\"light-dark(#777676,#a6a4a4)\";\n --text-info: ~\"light-dark(#31708f,#2baae6)\";\n --text-success: ~\"light-dark(#039516,#4ced61)\";\n --text-warning: ~\"light-dark(#da9113,#f3a51f)\";\n --input-border-color: ~\"light-dark(#d2d6de,#656464)\";\n --default-label-link-bg: var(--color-bg);\n --default-label-link-text: ~\"light-dark(#296282, #5fa4cc)\";\n --default-label-link-border: ~\"1px solid light-dark(#b8c7ce, #494747)\";\n}\n\n[data-theme=\"light\"] {\n color-scheme: light;\n --box-bg: #ffffff;\n --box-header-bottom-border-color: #f4f4f4;\n --box-header-bottom-border: 1px solid var(--box-header-bottom-border-color);\n --box-header-top-border-color: #d2d6de;\n --box-header-top-border: 3px solid var(--box-header-top-border-color);\n --btn-theme-base: ~\"hsl(from var(--main-theme-color) h s calc(l + 5))\";\n --btn-theme-border: ~\"hsl(from var(--btn-theme-base) h s calc(l + 20))\";\n --btn-theme-hover-text-color: var(--nav-primary-text-color);\n --btn-theme-hover: var(--main-theme-hover);\n --callout-bg-color: var(--box-header-bottom-border-color);\n --callout-left-border: var(--box-header-top-border-color);\n --header-color: #000000;\n --input-group-bg: ~\"hsl(from var(--box-bg) h s calc(l - 5))\";\n --input-group-fg: ~\"hsl(from var(--input-group-bg) h s calc(l - 50))\";\n --link-color: #296282;\n --link-hover: ~\"hsl(from var(--link-color) h s calc(l - 10))\";\n --main-theme-hover: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\";\n --tab-bottom-border: 1px solid var(--box-header-top-border-color);\n --text-legend-help: var(--text-help);\n}\n\n[data-theme=\"dark\"] {\n color-scheme: dark;\n --box-bg: #3d4144;\n --box-header-bottom-border-color: #605e5e;\n --box-header-bottom-border: 1px solid var(--box-header-bottom-border-color);\n --box-header-top-border-color: #605e5e;\n --box-header-top-border: 3px solid var(--box-header-top-border-color);\n --btn-theme-base: ~\"hsl(from var(--main-theme-color) h s calc(l + 5))\";\n --btn-theme-border: ~\"hsl(from var(--btn-theme-base) h s calc(l + 20))\";\n --btn-theme-hover-text-color: var(--nav-primary-text-color);\n --btn-theme-hover: var(--main-theme-hover);\n --callout-bg-color: var(--box-header-top-border-color);\n --callout-left-border: #323131;\n --header-color: #ffffff;\n --input-group-bg: ~\"hsl(from var(--box-bg) h s calc(l + 10))\";\n --input-group-fg: ~\"hsl(from var(--input-group-bg) h s calc(l + 50))\";\n --link-color: #5fa4cc;\n --link-hover: ~\"hsl(from var(--link-color) h s calc(l + 15))\";\n --main-theme-hover: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\";\n --tab-bottom-border: 1px solid var(--box-header-top-border-color);\n --text-legend-help: #d6d6d6;\n}\n\n\n// ============================================================================\n// Theme-mode SELECTOR rules (paired with the variable definitions above).\n//\n// All ~1170 lines of \".selector { background-color: var(--foo); }\" style\n// rules that used to live in layouts/default.blade.php's inline <style>\n// block. Every line reads from a CSS custom property defined earlier in\n// this file — no per-tenant Blade interpolation lives here.\n//\n// CSS Colors 5 expressions (hsl(from ...), light-dark(...)) are wrapped in\n// Less's ~\"...\" escape so the compiler emits them verbatim.\n// ============================================================================\n\n.label2_fields,\n.l2fd-main,\n.l2fd-listitem,\n.fixed-table-loading,\n.list-group-item {\n background-color: var(--box-bg) !important;\n color: var(--color-fg) !important;\n}\n\n.list-group-item {\n border: var(--tab-bottom-border);\n}\n\nfooter.main-footer {\n color: var(--main-footer-text-color) !important;\n background-color: var(--main-footer-bg-color) !important;\n border-top: 1px solid var(--main-footer-top-border-color) !important;\n}\n\na,\na:link,\na:visited {\n color: var(--link-color);\n}\n\na:hover,\na:focus {\n color: var(--link-hover) !important;\n}\n\nlabel.form-control {\n color: var(--color-fg) !important;\n}\n\n.footer-links a {\n color: var(--link-color) !important;\n}\n\nh2 small {\n color: var(--color-fg) !important;\n}\n\n.btn-theme {\n background-color: var(--btn-theme-base);\n /*color: var(--btn-theme-hover-text-color) !important;*/\n color: var(--nav-primary-text-color) !important;\n border: ~\"1px solid hsl(from var(--btn-theme-base) h s calc(l - 15))\" !important;\n}\n\n.btn-theme:hover {\n background-color: var(--btn-theme-hover);\n /*color: var(--btn-theme-hover-text-color) !important;*/\n color: var(--nav-primary-text-color) !important;\n border: ~\"1px solid hsl(from var(--btn-theme-base) h s calc(l - 15))\" !important;\n}\n\n.btn-theme.active {\n background-color: var(--btn-theme-hover) !important;\n}\n\n.btn-theme:focus {\n color: var(--nav-primary-text-color) !important;\n}\n\n\n.dropdown-wrapper,\n.js-data-ajax,\n.option,\n.select2 .select2-container .select2-container--default,\n.select2,\n.select2-choice,\n.select2-container,\n.select2-results__option,\n.select2-search input,\n.select2-search--dropdown,\n.select2-search__field,\n.select2-selection .select2-selection--single,\n.select2-selection,\n.select2-selection--single,\n.select2-selection__rendered,\ninput[type=\"date\"],\ninput[type=\"number\"],\ninput[type=\"text\"],\ninput[type=\"url\"],\ninput[type=\"email\"],\ninput[type=\"password\"],\ninput[type=\"tel\"],\noption:active,\noption[active],\noption[selected],\nselect option,\nselect,\ntextarea {\n background-color: var(--table-stripe-bg) !important;\n color: var(--color-fg) !important;\n border-color: var(--input-border-color) !important;\n\n}\n\n.select2-container--default.select2-container--focus .select2-selection--multiple,\n.select2-container--default .select2-search--dropdown .select2-search__field {\n border-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\" !important;\n}\n\n/**\nSafari ignores option[selected] styling on plain <select multiple> until\nthe user interacts with the list, so pre-selected options render with\nthe browser's default light highlight. Force a lighter background on the\nwhole select in dark mode so pre-selected items stay readable.\n */\n[data-theme=\"dark\"] select[multiple],\n[data-theme=\"dark\"] select[multiple] option {\n background-color: #d2d6de !important;\n color: #373636 !important;\n}\n\n/**\nSite-logo preview swatch on Settings > Branding. Uses the tenant header\ncolor as its background so the logo shows against the same color it will\nhave in the top nav. The header-color picker on the branding page writes\n--main-theme-color inline on <html> for live preview, so this rule picks\nup that update automatically.\n */\n.header-preview {\n background-color: var(--main-theme-color);\n}\n\n/**\nMultiselect maybe?\n */\n.select2-results__option[aria-selected=true] {\n background-color: var(--main-theme-color) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n.select2-results__option[aria-selected=false] {\n background-color: var(--table-stripe-bg) !important;\n /*background-color: hsl(from var(--main-theme-color) h s calc(l - 15)) !important;*/\n /*color: var(--nav-primary-text-color) !important;*/\n color: var(--color-fg) !important;\n}\n\n/**\nHighlight the select2 on hover when NOT the selected option\n */\n.select2-results__option--highlighted[aria-selected=false] {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\" !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n/**\nHighlight the select2 on hover when the selected option\n */\n.select2-results__option--highlighted[aria-selected=true],\n.select2-results__option--highlighted[aria-selected=true]:hover,\n.select2-results__option--highlighted[aria-selected=true]:link,\n.select2-results__option--highlighted[aria-selected=true]:focus,\n.select2-results__option--highlighted[aria-selected=true]:visited {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 15))\" !important;\n /*color: var(--color-fg) !important;*/\n color: var(--nav-primary-text-color) !important;\n}\n\n.select2-selection__choice,\n.select2-container--default .select2-selection--multiple .select2-selection__choice {\n background-color: var(--main-theme-color) !important;\n border-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 15))\" !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n.select2-selection__choice__remove {\n color: var(--nav-primary-text-color) !important;\n}\n\n.select2-container--default .select2-selection--multiple .select2-selection__choice {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\" !important;\n color: var(--nav-primary-text-color) !important;\n overflow-y: auto;\n}\n\n/*\neonasdan bootstrap-datetimepicker widget: match the app's theme color\nfor selected/today cells and follow light/dark mode for the popup\nchrome. Ships with Bootstrap's stock #337ab7 which looks off next to\nAdminLTE.\n\n- All toolbar buttons: .bootstrap-datetimepicker-widget li.picker-switch a[data-action]\n- Individual buttons: a[data-action=\"today\"], a[data-action=\"clear\"], a[data-action=\"close\"] - -\n- The <td> cell each button sits in: .bootstrap-datetimepicker-widget li.picker-switch td\n- The icon <span> inside the anchor: .bootstrap-datetimepicker-widget li.picker-switch a[data-action] > span\n*/\n.bootstrap-datetimepicker-widget {\n z-index: 1030 !important;\n background-color: var(--box-bg) !important;\n color: var(--color-fg) !important;\n}\n\n/* Widget border in the theme color so the popup edge visually\n matches other themed boxes in the app. */\n.bootstrap-datetimepicker-widget.dropdown-menu {\n border: 1px solid var(--main-theme-color) !important;\n}\n\n/* The connecting caret between the input and the popup is drawn\n with two triangles: :before is the outer border outline (7px),\n :after is the inner fill (6px, sits inside the :before). Match\n the widget's own theme-color border on the outer triangle, and\n the widget's background on the inner. */\n.bootstrap-datetimepicker-widget.dropdown-menu.bottom:before {\n border-bottom-color: var(--main-theme-color) !important;\n}\n\n.bootstrap-datetimepicker-widget.dropdown-menu.bottom:after {\n border-bottom-color: var(--box-bg) !important;\n}\n\n.bootstrap-datetimepicker-widget.dropdown-menu.top:before {\n border-top-color: var(--main-theme-color) !important;\n}\n\n.bootstrap-datetimepicker-widget.dropdown-menu.top:after {\n border-top-color: var(--box-bg) !important;\n}\n\n/* Side-by-side (date + time) mode ships at 38em, not wide enough\n once the format includes seconds. Bump up to give the time cells\n room. */\n.bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs {\n width: 42em !important;\n}\n\n/* Compact (non-sideBySide) mode. Library default is 19em, which is\n too narrow for the time-picker view — hour/minute/second cells\n are 54px each and the increment/decrement arrow buttons add width\n on top of that, so under ~300px the time view gets clipped. Sizing\n to fit the widest child (the time view) also gives the calendar\n view plenty of room. */\n.bootstrap-datetimepicker-widget.dropdown-menu:not(.timepicker-sbs) {\n min-width: 320px;\n}\n\n.bootstrap-datetimepicker-widget table td.active,\n.bootstrap-datetimepicker-widget table td.active:hover,\n.bootstrap-datetimepicker-widget table td span.active,\n.bootstrap-datetimepicker-widget table td span.active:hover {\n background-color: var(--main-theme-color) !important;\n color: var(--nav-primary-text-color) !important;\n text-shadow: none !important;\n}\n\n.bootstrap-datetimepicker-widget table td.today:before {\n border-bottom-color: var(--main-theme-color) !important;\n}\n\n/* Cell hover: theme color background + white text — same shape as\n \"active\" so contrast is guaranteed in both light and dark mode. */\n.bootstrap-datetimepicker-widget table td:hover,\n.bootstrap-datetimepicker-widget table td span:hover,\n.bootstrap-datetimepicker-widget table thead tr:first-child th:hover {\n background-color: var(--main-theme-color) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n/* Time-picker text (compact mode). Bootstrap's .btn base color is\n #333 which is invisible on the dark box-bg in dark mode; force\n these text elements to inherit the widget's --color-fg instead\n so they read in both themes.\n - .timepicker-hour / -minute / -second : the big clickable digits\n - .separator : the colon between them\n - .timepicker-picker .btn : the up/down arrow buttons\n - .timepicker-picker .btn span : the FA icon inside those\n - .timepicker-hours / -minutes / -seconds .btn : the expanded grid\n of pickable hour/minute/second numbers when you click a digit */\n.bootstrap-datetimepicker-widget .timepicker-hour,\n.bootstrap-datetimepicker-widget .timepicker-minute,\n.bootstrap-datetimepicker-widget .timepicker-second,\n.bootstrap-datetimepicker-widget .separator,\n.bootstrap-datetimepicker-widget .timepicker-picker .btn,\n.bootstrap-datetimepicker-widget .timepicker-picker .btn span,\n.bootstrap-datetimepicker-widget .timepicker-hours td,\n.bootstrap-datetimepicker-widget .timepicker-minutes td,\n.bootstrap-datetimepicker-widget .timepicker-seconds td {\n color: var(--color-fg) !important;\n}\n\n/* The empty <td class=\"separator\"> cells above and below the \":\"\n are pure spacers, but were rendering visible \"lines\" around the\n colon. Force their background to match the popup so they blend\n into the widget in both light and dark mode.\n\n Also kill the ::before / ::after pseudo-elements — the app's own\n .separator class elsewhere in the codebase draws horizontal grey\n border-bottom lines via those pseudos (for section dividers), and\n class-name collides with the library's timepicker separator td. */\n.bootstrap-datetimepicker-widget .separator {\n background-color: var(--box-bg) !important;\n border: none !important;\n box-shadow: none !important;\n}\n\n.bootstrap-datetimepicker-widget .separator::before,\n.bootstrap-datetimepicker-widget .separator::after {\n display: none !important;\n content: none !important;\n border: none !important;\n}\n\n/* Same treatment for the increment/decrement arrow buttons — no\n border/box-shadow/focus outline so the time-picker column doesn't\n get sub-lines between each button. */\n.bootstrap-datetimepicker-widget .timepicker-picker .btn {\n background-color: var(--box-bg) !important;\n border: none !important;\n box-shadow: none !important;\n outline: none !important;\n}\n\n.bootstrap-datetimepicker-widget .timepicker-picker .btn:focus,\n.bootstrap-datetimepicker-widget .timepicker-picker .btn:active {\n outline: none !important;\n box-shadow: none !important;\n}\n\n\n/* Button hover — matches the whole <a> element */\n.bootstrap-datetimepicker-widget li.picker-switch a[data-action]:hover,\n.bootstrap-datetimepicker-widget li.picker-switch td:hover {\n background-color: transparent !important;\n border-radius: 0 !important;\n\n}\n\n\n.input-group-addon {\n background-color: var(--input-group-bg) !important;\n color: var(--input-group-fg) !important;\n border-color: var(--input-border-color) !important;\n}\n\ninput:disabled,\ninput[type=\"checkbox\"]:disabled,\ninput[type=\"radio\"]:disabled,\ninput[readonly],\ntextarea[readonly],\ntextarea:disabled,\n.select2-container--default.select2-container--disabled .select2-selection--single,\n.select2-container--default.select2-container--disabled .select2-selection--multiple,\n.select2-container--default.select2-container--disabled .select2-selection__rendered,\n.select2-results__option[aria-disabled=true],\n.select2-container--default.select2-container--disabled .select2-selection--multiple .select2-search--inline {\n background-color: ~\"light-dark(rgb(234, 232, 232), rgb(117, 116, 117))\" !important;\n cursor: not-allowed !important;\n}\n\n.select2-container--default.select2-container--disabled .select2-search__field::placeholder {\n color: var(--text-help) !important;\n opacity: 1 !important;\n}\n\ninput[type=\"search\"].search-highlight {\n background-color: var(--search-highlight);\n border: ~\"1px solid hsl(from var(--search-highlight) h s calc(l - 20))\" !important;\n}\n\n.content-wrapper {\n background-color: var(--color-bg);\n}\n\n.btn-anchor {\n outline: none !important;\n padding: 0;\n border: 0;\n padding-left: 20px;\n vertical-align: baseline;\n cursor: pointer;\n}\n\nh1,\nh2,\nh3,\nh4,\np,\n.modal-title,\n.modal-header h2 {\n color: var(--color-fg) !important;\n}\n\n.btn-danger,\n.btn-danger:hover,\n.btn-danger:focus,\n.btn-warning,\n.btn-warning:hover,\n.btn-warning:focus,\n.btn-primary,\n.btn-primary:hover,\n.btn-primary:focus,\n.modal-danger,\n.modal-danger h2,\n.modal-warning h2,\n.modal-danger h4,\n.modal-warning h4,\n.box-solid.box-danger > .box-header,\n.box-solid.box-danger > .box-header .box-title,\n.bg-maroon,\n.bg-maroon:hover,\n.bg-maroon:focus,\n.bg-purple,\n.bg-purple:hover,\n.bg-purple:focus {\n color: white !important;\n}\n\n\n.btn-selected,\n.btn-selected a,\n.btn-selected:hover,\n.btn-selected:focus {\n color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 30)), hsl(from var(--main-theme-color) h s calc(l + 30)))\" !important;\n background-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l - 20)), hsl(from var(--main-theme-color) h s calc(l - 20)))\" !important;\n border-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l - 25)), hsl(from var(--main-theme-color) h s calc(l - 25)))\" !important;\n\n}\n\n.btn-default,\n.btn-default:hover {\n color: #3d4144 !important;\n}\n\nbody {\n background-color: var(--color-bg);\n color: var(--color-fg);\n}\n\n\nlabel,\n.icon-med,\n.nav-tabs-custom > .nav-tabs > li > a,\n.nav-tabs-custom > .nav-tabs > li.active > a:link {\n color: var(--color-fg);\n}\n\n/**\nGeneric popover: Bootstrap 3 hardcodes body bg to #fff and text to #333,\nwhich reads as white-on-white in dark mode. Route background, text, and\nborder through the theme variables so both modes render legibly and the\nhelp-popover variant keeps its more specific styling further down.\n */\n.popover {\n background-color: var(--box-bg) !important;\n color: var(--color-fg) !important;\n border-color: var(--box-header-top-border-color) !important;\n}\n\n.popover-title,\n.popover-content {\n background-color: var(--box-bg) !important;\n color: var(--color-fg) !important;\n}\n\n/**\nPopover arrows: Bootstrap 3 defaults the inner arrow to #fff and the\nouter to rgba(0,0,0,.25). In dark mode the outer disappears entirely\n(no contrast against the darker surroundings) and the inner reads as a\nwhite notch. Bind both to theme vars so every position (top / right /\nbottom / left) shows a visible connector between the popover body and\nits trigger in both modes.\n */\n.popover.top .arrow { border-top-color: var(--box-header-top-border-color) !important; }\n.popover.top .arrow:after { border-top-color: var(--box-bg) !important; }\n\n.popover.right .arrow { border-right-color: var(--box-header-top-border-color) !important; }\n.popover.right .arrow:after { border-right-color: var(--box-bg) !important; }\n\n.popover.bottom .arrow { border-bottom-color: var(--box-header-top-border-color) !important; }\n.popover.bottom .arrow:after { border-bottom-color: var(--box-bg) !important; }\n\n.popover.left .arrow { border-left-color: var(--box-header-top-border-color) !important; }\n.popover.left .arrow:after { border-left-color: var(--box-bg) !important; }\n\n.table-bordered > tbody > tr > td,\n.table-bordered > tbody > tr > th,\n.table-bordered > tfoot > tr > td,\n.table-bordered > tfoot > tr > th,\n.table-bordered > thead > tr > td,\n.table-bordered > thead > tr > td,\n.table-bordered > thead > tr > th,\n.table-bordered > thead > tr > th,\n.table-bordered,\n.well {\n border: 1px solid var(--box-header-top-border-color) !important;\n border-left-color: var(--box-header-top-border-color) !important;\n border-right-color: var(--box-header-top-border-color) !important;\n}\n\n.box {\n border-top: 3px solid;\n}\n\n/* .bs-wizard's connecting line background (.progress = #f5f5f5) and\n inactive-step dots (#f5f5f5) both wash out against the dark-mode\n body. Bump to the theme's mid-gray so wizard steps stay visible\n on setup, importer modal, and the LDAP settings wizard. Selector\n uses [data-theme=\"dark\"] — the actual attribute Snipe-IT toggles\n for dark mode. Disabled variant is called out explicitly because\n .bs-wizard-step.disabled > .bs-wizard-dot is a same-specificity\n rule from AdminLTE — the extra .disabled class ensures we win. */\n[data-theme=\"dark\"] .bs-wizard-step .progress,\n[data-theme=\"dark\"] .bs-wizard-step > .bs-wizard-dot,\n[data-theme=\"dark\"] .bs-wizard-step.disabled > .bs-wizard-dot {\n background-color: #605e5e;\n}\n\n.box.box-default {\n border-top: var(--box-header-top-border);\n}\n\n\n.box-header.with-border {\n border-bottom: var(--box-header-bottom-border);\n}\n\n.box-footer {\n border-top: var(--box-header-bottom-border);\n}\n\n\n.nav-tabs-custom > .nav-tabs {\n border-bottom: var(--tab-bottom-border);\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n padding-bottom: 0;\n\n}\n\n.nav-tabs > li > a {\n margin-right: 0;\n border: 0;\n}\n\n.box,\n.box-footer,\n.tab-content,\n.nav-tabs-custom,\n.nav-tabs-custom > .nav-tabs > li,\n.nav-tabs-custom > .nav-tabs > li:first-of-type,\n.nav-tabs-custom > .nav-tabs > li.active > a:link,\n.nav-tabs-custom > .nav-tabs > li.active > a:visited,\n.nav-tabs-custom > .nav-tabs > li.active > a:hover,\n.bootstrap-table.fullscreen,\n.well {\n\n color: var(--color-fg);\n background-color: var(--box-bg) !important;\n border-left: 1px solid transparent;\n border-right: 1px solid transparent;\n\n}\n\n.panel {\n border-color: var(--box-header-top-border-color);\n}\n\n.panel-body {\n background-color: var(--box-bg) !important;\n}\n\n.panel-heading,\n.panel-default > .panel-heading {\n color: var(--color-fg) !important;\n background-color: var(--table-stripe-bg-alt) !important;\n border-color: var(--box-header-top-border-color);\n}\n\n.panel-footer {\n background-color: var(--box-bg) !important;\n border-color: var(--box-header-top-border-color);\n}\n\n.nav-tabs-custom > .nav-tabs > li.active {\n border-top-color: var(--main-theme-color) !important;\n background-color: var(--box-header-top-border-color) !important;\n border-bottom: 2px solid var(--box-bg) !important;\n border-right: 1px solid var(--box-header-top-border-color);\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n}\n\n.nav-tabs-custom > .nav-tabs > li:first-of-type {\n border-left: 0;\n}\n\n\n/**\nThis fixes the weird spacing in the nav tabs if there is a badge count on the tab\n */\n.badge {\n font-size: 11px;\n}\n\n/**\ntable rows\n */\n\n.table > thead > tr > th,\n.table > tbody > tr > th,\n.table > tfoot > tr > th,\n.table > thead > tr > td,\n.table > tbody > tr > td,\n.table > tfoot > tr > td {\n border-top: var(--table-border-row) !important;\n}\n\n\n.table-striped > tbody > tr:nth-of-type(even),\n.row-new-striped > .row:nth-of-type(even),\n.row-new-striped > .div:nth-of-type(odd),\n.cansort {\n background-color: var(--table-stripe-bg) !important;\n border-top: var(--table-border-row-top) !important;\n color: var(--color-fg) !important;\n}\n\n.table-striped > tbody > tr:nth-of-type(odd),\n.row-new-striped > .row:nth-of-type(even),\n.row-new-striped > .div:nth-of-type(odd),\n.cansort {\n background-color: var(--table-stripe-bg-alt) !important;\n border-top: var(--table-border-row-top) !important;\n color: var(--color-fg) !important;\n}\n\n\n// -----------------------------------------------------------------------------\n// CSS sticky columns. Bootstrap-table's fixed-columns feature was pulled\n// from the bundle in favor of this — the old feature cloned the table\n// body into an absolutely-positioned overlay, which drifted in height\n// with long-content rows (#19197, #19458) and misplaced tooltips when\n// the container reflowed without a window resize (asset show + info\n// panel toggle). CSS position:sticky on the actual <td> cells can't\n// drift because the cells ARE the pinned cells.\n//\n// Tables that want pinned columns get the snipe-table--sticky-right-N\n// or snipe-table--sticky-left-N class (via <x-table>'s fixed_number /\n// fixed_right_number props, or applied directly on a raw table).\n//\n// Body cells match the zebra background so the sticky column keeps the\n// alternating pattern. Header cells use --box-bg so scrolling body rows\n// don't show through above the header stripe transition. Header z-index\n// sits above body sticky so a scrolled row can't render over the header.\n// -----------------------------------------------------------------------------\n\n// --table-stripe-bg-alt is intentionally translucent (rgba .25) so the\n// zebra stripe composites on top of the row's --box-bg. That works for\n// normal rows but leaves sticky cells see-through because scrolled\n// content passes UNDER them with no opaque backer. For sticky cells we\n// paint --box-bg as an opaque base and layer the (still-translucent)\n// stripe on top via linear-gradient, replicating the composited color.\n\n// Per-position offset variables (--sticky-right-offset-P, --sticky-left-offset-P)\n// are set by the JS block in partials/bootstrap-table.blade.php after every\n// render. Position 1 is the outermost pinned column and gets offset 0; each\n// subsequent position adds the outerWidth of the previous columns so pinned\n// cells sit flush against each other instead of stacking at the edge.\n\n// Position-specific sticky rules. Recurses from @pos=1 up to @maxN.\n.gen-sticky-right(@maxN, @pos: 1) when (@pos <= @maxN) {\n .snipe-table--sticky-right-@{maxN} > thead > tr > th:nth-last-child(@{pos}),\n .snipe-table--sticky-right-@{maxN} > tbody > tr > td:nth-last-child(@{pos}) {\n position: sticky;\n right: var(~\"--sticky-right-offset-@{pos}\", 0);\n z-index: 2;\n background-color: var(--box-bg);\n }\n .gen-sticky-right(@maxN, (@pos + 1));\n}\n.gen-sticky-right(1);\n.gen-sticky-right(2);\n.gen-sticky-right(3);\n.gen-sticky-right(4);\n.gen-sticky-right(5);\n\n.gen-sticky-left(@maxN, @pos: 1) when (@pos <= @maxN) {\n .snipe-table--sticky-left-@{maxN} > thead > tr > th:nth-child(@{pos}),\n .snipe-table--sticky-left-@{maxN} > tbody > tr > td:nth-child(@{pos}) {\n position: sticky;\n left: var(~\"--sticky-left-offset-@{pos}\", 0);\n z-index: 2;\n background-color: var(--box-bg);\n }\n .gen-sticky-left(@maxN, (@pos + 1));\n}\n.gen-sticky-left(1);\n.gen-sticky-left(2);\n.gen-sticky-left(3);\n.gen-sticky-left(4);\n.gen-sticky-left(5);\n\n// Shared: header z-index bump and zebra-stripe overlay for all pinned columns.\n.gen-sticky-right-shared(@maxN) {\n .snipe-table--sticky-right-@{maxN} > thead > tr > th:nth-last-child(-n+@{maxN}) {\n z-index: 3;\n }\n .snipe-table--sticky-right-@{maxN}.table-striped > tbody > tr:nth-of-type(even) > td:nth-last-child(-n+@{maxN}) {\n background-image: linear-gradient(var(--table-stripe-bg), var(--table-stripe-bg));\n }\n .snipe-table--sticky-right-@{maxN}.table-striped > tbody > tr:nth-of-type(odd) > td:nth-last-child(-n+@{maxN}) {\n background-image: linear-gradient(var(--table-stripe-bg-alt), var(--table-stripe-bg-alt));\n }\n}\n.gen-sticky-right-shared(1);\n.gen-sticky-right-shared(2);\n.gen-sticky-right-shared(3);\n.gen-sticky-right-shared(4);\n.gen-sticky-right-shared(5);\n\n.gen-sticky-left-shared(@maxN) {\n .snipe-table--sticky-left-@{maxN} > thead > tr > th:nth-child(-n+@{maxN}) {\n z-index: 3;\n }\n .snipe-table--sticky-left-@{maxN}.table-striped > tbody > tr:nth-of-type(even) > td:nth-child(-n+@{maxN}) {\n background-image: linear-gradient(var(--table-stripe-bg), var(--table-stripe-bg));\n }\n .snipe-table--sticky-left-@{maxN}.table-striped > tbody > tr:nth-of-type(odd) > td:nth-child(-n+@{maxN}) {\n background-image: linear-gradient(var(--table-stripe-bg-alt), var(--table-stripe-bg-alt));\n }\n}\n.gen-sticky-left-shared(1);\n.gen-sticky-left-shared(2);\n.gen-sticky-left-shared(3);\n.gen-sticky-left-shared(4);\n.gen-sticky-left-shared(5);\n\n// Row-state overrides. Bootstrap-table adds `.selected` on click / checkbox\n// tick (see line ~2889 for the base rule), and Snipe-IT paints `.success`\n// and `.danger` rows for the audit / restore flows. Without these\n// overrides, the sticky columns keep their zebra background painted on top\n// of the row-selected color and read as unselected even when the rest of\n// the row is highlighted. Overriding both background-color AND\n// background-image (to clear the linear-gradient stripe overlay from the\n// -shared mixins) so the sticky cells pick up the row's highlight state.\n.gen-sticky-right-row-state(@maxN) {\n .snipe-table--sticky-right-@{maxN} > tbody > tr.selected > td:nth-last-child(-n+@{maxN}) {\n background-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 40)),hsl(from var(--main-theme-color) h s calc(l - 40)))\" !important;\n background-image: none !important;\n }\n .snipe-table--sticky-right-@{maxN} > tbody > tr.success > td:nth-last-child(-n+@{maxN}) {\n background-color: #00a65a !important;\n background-image: none !important;\n color: white !important;\n }\n .snipe-table--sticky-right-@{maxN} > tbody > tr.danger > td:nth-last-child(-n+@{maxN}) {\n background-color: var(--text-danger) !important;\n background-image: none !important;\n color: white !important;\n }\n}\n.gen-sticky-right-row-state(1);\n.gen-sticky-right-row-state(2);\n.gen-sticky-right-row-state(3);\n.gen-sticky-right-row-state(4);\n.gen-sticky-right-row-state(5);\n\n.gen-sticky-left-row-state(@maxN) {\n .snipe-table--sticky-left-@{maxN} > tbody > tr.selected > td:nth-child(-n+@{maxN}) {\n background-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 40)),hsl(from var(--main-theme-color) h s calc(l - 40)))\" !important;\n background-image: none !important;\n }\n .snipe-table--sticky-left-@{maxN} > tbody > tr.success > td:nth-child(-n+@{maxN}) {\n background-color: #00a65a !important;\n background-image: none !important;\n color: white !important;\n }\n .snipe-table--sticky-left-@{maxN} > tbody > tr.danger > td:nth-child(-n+@{maxN}) {\n background-color: var(--text-danger) !important;\n background-image: none !important;\n color: white !important;\n }\n}\n.gen-sticky-left-row-state(1);\n.gen-sticky-left-row-state(2);\n.gen-sticky-left-row-state(3);\n.gen-sticky-left-row-state(4);\n.gen-sticky-left-row-state(5);\n\n\n// -----------------------------------------------------------------------------\n// Checkbox column: bootstrap-table adds .bs-checkbox to the header and body\n// cells of any checkbox column. It should always be pinned to the left edge\n// regardless of what fixed_number the table sets, because the row-selection\n// affordance is expected to stay visible while the user scrolls horizontally\n// to review other columns before deciding what to check.\n// -----------------------------------------------------------------------------\n\n.snipe-table > thead > tr > th.bs-checkbox,\n.snipe-table > tbody > tr > td.bs-checkbox {\n position: sticky;\n left: 0;\n z-index: 2;\n background-color: var(--box-bg);\n}\n\n.snipe-table.table-striped > tbody > tr:nth-of-type(even) > td.bs-checkbox {\n background-image: linear-gradient(var(--table-stripe-bg), var(--table-stripe-bg));\n}\n.snipe-table.table-striped > tbody > tr:nth-of-type(odd) > td.bs-checkbox {\n background-image: linear-gradient(var(--table-stripe-bg-alt), var(--table-stripe-bg-alt));\n}\n\n.snipe-table > thead > tr > th.bs-checkbox {\n z-index: 3;\n}\n\n// Row-state overrides for the pinned checkbox column. Same reasoning as\n// the .gen-sticky-*-row-state mixins above: the opaque background baked\n// into the sticky cell would otherwise mask row-selected / .success /\n// .danger highlights on the checkbox column, which is exactly the column\n// users click to toggle the selection state, so the mismatch is most\n// visible there.\n.snipe-table > tbody > tr.selected > td.bs-checkbox {\n background-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 40)),hsl(from var(--main-theme-color) h s calc(l - 40)))\" !important;\n background-image: none !important;\n}\n.snipe-table > tbody > tr.success > td.bs-checkbox {\n background-color: #00a65a !important;\n background-image: none !important;\n color: white !important;\n}\n.snipe-table > tbody > tr.danger > td.bs-checkbox {\n background-color: var(--text-danger) !important;\n background-image: none !important;\n color: white !important;\n}\n\n\n// -----------------------------------------------------------------------------\n// Top scrollbar: mirrored above the bootstrap-table body so users on wide\n// tables don't have to scroll to the bottom to find the horizontal\n// scrollbar. Managed by updateTopScrollbar() in partials/bootstrap-table.\n// The wrapper node only exists when the table actually overflows\n// horizontally, so tables that fit in their container don't get any\n// extra chrome.\n// -----------------------------------------------------------------------------\n\n.snipe-top-scrollbar {\n // scroll (not auto) so the scrollbar thumb stays visible whenever\n // the container is displayed. auto lets macOS's trackpad-scrollbar\n // auto-hide take over on trackpad users even with the WebKit\n // pseudo-element styling below, which read as \"top scrollbar fades\n // faster than the bottom one\" (#19484 follow-up). Whole container\n // gets display: none from updateTopScrollbar() when the underlying\n // table doesn't actually overflow, so persistent scroll doesn't\n // produce a floating stub on tables that fit in the viewport.\n overflow-x: scroll;\n overflow-y: hidden;\n // 14px scrollbar sized to match the WebKit thumb below so it\n // reads as a deliberate chrome element rather than an OS-native\n // accident. Bumped from 10px so the thumb is easier to grab and\n // drag on trackpads / small screens.\n //\n // Outer height is 18px (border-box) = 14px scrollbar content +\n // 4px padding-bottom acting as a visual spacer between the\n // scrollbar thumb and the thead below it. Total 18px matches\n // the stickyHeaderOffsetY: 18 in bootstrap-table.blade.php so\n // the pinned scrollbar band + the sticky-clone thead just below\n // it stack seamlessly with no bleed-through gap between them\n // (#19484 follow-up: 4px gap of tbody rows visible between the\n // scrollbar and the sticky thead).\n box-sizing: border-box;\n height: 18px;\n padding-bottom: 4px;\n background-color: var(--box-bg);\n // Firefox scrollbar styling — spec-standard. `auto` uses the\n // OS-default thickness (matches the bumped-up 14px WebKit height\n // below so the thumb is easy to grab on trackpads / small screens).\n scrollbar-width: auto;\n scrollbar-color: rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.06);\n\n // Stay visible while the user scrolls the page down past the\n // natural table header. Bootstrap-table's own stickyHeader\n // (position: fixed via the .fix-sticky class) floats the thead\n // clone at viewport top; we mirror that positioning via JS\n // (updateTopScrollbarSticky in bootstrap-table.blade.php) so\n // the scrollbar sits ABOVE the sticky-clone thead - matching\n // the natural (unscrolled) order where the scrollbar reads\n // immediately above the thead. Bootstrap-table config pushes\n // .fix-sticky down by (this mirror's height + padding-bottom)\n // via stickyHeaderOffsetY so the two don't overlap. Sticky\n // positioning would have been simpler than the JS toggle but\n // didn't engage reliably against page scroll from inside the\n // .bootstrap-table nesting depth; falling back to position:\n // fixed set by the scroll listener. Reported in #19484 as\n // \"none of scrollbars are visible when list is scrolled to\n // the point where header starts floating\" plus follow-up\n // \"top scrollbar used to be above the table headers, which\n // seems a little better\".\n z-index: 101;\n\n // When the scroll listener detects the natural position has\n // gone above viewport top, this class flips the element to\n // position: fixed via inline style. The class itself just\n // marks \"currently pinned\" so callers can style pinned vs\n // unpinned states differently if needed.\n &.is-pinned {\n // Inline top/left/width comes from JS. Keeping the box\n // shadow drop off here so pinned state visually separates\n // the mirror from the sticky-clone thead below it.\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);\n }\n\n // WebKit / Blink scrollbar pseudo-elements. Both the track and the\n // thumb get border-radius so the container reads as rounded even\n // when the thumb is at the edge of the track (the previous\n // container-level border-radius was invisible because the container\n // had no visible background to round). Track carries a subtle tint\n // so the rounded shape is actually visible rather than shape-of-nothing.\n &::-webkit-scrollbar {\n height: 14px;\n }\n &::-webkit-scrollbar-track {\n background-color: rgba(0, 0, 0, 0.06);\n border-radius: 7px;\n }\n &::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.35);\n border-radius: 7px;\n }\n &::-webkit-scrollbar-thumb:hover {\n background-color: rgba(0, 0, 0, 0.5);\n }\n}\n\n.snipe-top-scrollbar-inner {\n // Height just enough to make the parent scrollable; width is set by\n // JS to match the underlying table's scrollWidth.\n height: 1px;\n}\n\n// Match the native bottom scrollbar on the table body to the styled\n// top mirror above so the two horizontal scroll handles read as a\n// consistent pair. Without this, the top uses our thin-with-rounded-\n// thumb chrome while the bottom uses the OS default and the two look\n// mismatched when both are visible on wide tables. scrollbar-width\n// bumped from `thin` to `auto` and the WebKit height matched to the\n// top mirror's 14px so the two scrollbars are the same easy-to-grab\n// size on trackpads / small screens (#19484 follow-up).\n.bootstrap-table .fixed-table-body {\n scrollbar-width: auto;\n scrollbar-color: rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.06);\n\n &::-webkit-scrollbar {\n height: 14px;\n }\n &::-webkit-scrollbar-track {\n background-color: rgba(0, 0, 0, 0.06);\n border-radius: 7px;\n }\n &::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.35);\n border-radius: 7px;\n }\n &::-webkit-scrollbar-thumb:hover {\n background-color: rgba(0, 0, 0, 0.5);\n }\n}\n\n\n/**\nmain header nav\n */\n\n\n.dropdown-menu {\n background-color: var(--main-theme-color);\n border-color: var(--main-theme-color);\n}\n\n\n.dropdown-menu > li,\n.navbar,\n.navbar-nav,\n.label-default,\n.label-default:hover {\n background-color: var(--main-theme-color);\n color: var(--nav-primary-text-color) !important;\n}\n\n.label-light {\n background-color: var(--default-label-link-bg) !important;\n color: var(--color-fg) !important;\n font-size: 12px !important;\n font-weight: normal !important;\n line-height: 25px;\n margin-left: 0px;\n padding-left: 3px;\n\n}\n\na.label-light,\na.label-light:hover {\n color: var(--link-color) !important;\n}\n\n.dropdown-menu > li > a,\n.dropdown-menu > li > a:link,\n.dropdown-menu > li > a:visited,\n.dropdown-menu > .active > a:link,\n.dropdown-menu > .active > a:visited,\n.navbar-nav .open > a:link,\n.navbar-nav .open > a:visited,\n.navbar-nav > li > a:link,\n.navbar-nav > li > a:visited {\n background-color: var(--main-theme-color) !important;\n /*background-color: rgba(0,0,0,.15);*/\n color: var(--nav-primary-text-color) !important;\n /*color: var(--nav-primary-text-color) !important;*/\n\n}\n\n.btn-tableButton.active.focus,\n.btn-tableButton.active:focus,\n.btn-tableButton.active:hover,\n.dropdown-menu > .active > a:focus,\n.dropdown-menu > .active > a:hover,\n.dropdown-menu > .active > a:link,\n.dropdown-menu > .active > a:visited,\n.dropdown-menu > li > a:focus,\n.dropdown-menu > li > a:hover,\n.dropdown-menu > li:focus,\n.dropdown-menu > li:hover,\n.navbar-nav .open li.active > a:focus,\n.navbar-nav .open li.active > a:hover,\n.navbar-nav .open > a:focus,\n.navbar-nav .open > a:hover,\n.navbar-nav > li > a:focus,\n.navbar-nav > li > a:hover,\n.open > .dropdown-toggle.btn-tableButton:focus,\n.open > .dropdown-toggle.btn-tableButton:hover,\n.page-next a,\n.pagination > .active > a:hover,\n.page-item.active,\n.pagination > .active > a,\n.pagination > li > .active > a,\n.pagination > li > .active > a:hover,\n.pagination > li > a:hover {\n background-color: var(--main-theme-hover) !important;\n border-color: var(--btn-theme-hover) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n.pagination > li > a {\n background-color: var(--main-theme-color) !important;\n border-color: var(--btn-theme-hover) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n\n.bootstrap-table .fixed-table-toolbar li.dropdown-item-marker label {\n color: var(--nav-primary-text-color) !important;\n}\n\n.bootstrap-table .fixed-table-toolbar li.dropdown-item-marker label:hover {\n background-color: var(--main-theme-hover) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n\n.dropdown-menu,\n.dropdown-menu > li {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\";\n border-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\";\n color: var(--nav-primary-text-color) !important;\n}\n\n.main-header .navbar .nav > .active > a {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\" !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n.navbar-nav > .notifications-menu > .dropdown-menu > li.header,\n.navbar-nav > .messages-menu > .dropdown-menu > li.header,\n.navbar-nav > .tasks-menu > .dropdown-menu > li.header,\n.navbar-nav > .notifications-menu > .dropdown-menu > li .menu,\n.navbar-nav > .messages-menu > .dropdown-menu > li .menu, .navbar-nav > .tasks-menu > .dropdown-menu > li .menu,\n.navbar-nav > .messages-menu > .dropdown-menu > li .menu, .navbar-nav > .tasks-menu > .dropdown-menu > li .menu a:hover,\n.navbar-nav > .messages-menu > .dropdown-menu > li .menu, .navbar-nav > .tasks-menu > .dropdown-menu > li:hover,\n.navbar-nav > .tasks-menu > .dropdown-menu > li .menu > li:hover > a,\n.task_menu {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\" !important;\n color: var(--nav-primary-text-color) !important;\n margin-bottom: 0;\n}\n\n.navbar-nav > .notifications-menu > .dropdown-menu > li .menu > li > a, .navbar-nav > .messages-menu > .dropdown-menu > li .menu > li > a, .navbar-nav > .tasks-menu > .dropdown-menu > li .menu > li > a {\n border-bottom: ~\"1px solid hsl(from var(--main-theme-color) h s calc(l - 10))\";\n}\n\n\n/**\nActive and hover for top tier sidenav items\n */\n\n.main-sidebar {\n background-color: #1e282c;\n}\n\n// Shift .main-header's BOX (not just its inner .navbar) so the header\n// occupies only the horizontal space past the sidebar's column. Base\n// AdminLTE 2 leaves .main-header full-width and only offsets the\n// .navbar's contents via margin-left: 230px, which fixes visual\n// alignment but not click alignment: the header's own <div> (z-index\n// 1030) still extends across the sidebar column above the sidebar\n// (z-index 810), so at intermediate widths where the navbar wraps to\n// two or three rows the header's empty second/third-row area sits on\n// top of the first sidebar item and eats clicks. Reported repeatedly\n// on the tracker (#19482, #11868, #5085) and previously papered over\n// with hardcoded .sidebar-menu { margin-top: Npx } offsets at\n// specific breakpoints - since removed above in favor of this\n// structural fix.\n//\n// Shift values track the sidebar's rendered width per body class:\n// - default (.sidebar-mini, sidebar open): 230px\n// - .sidebar-mini.sidebar-collapse (menu closed, mini icons): 50px\n// - mobile (<=767px): 0 (sidebar is translated off-screen)\n//\n// The navbar's own margin-left is zeroed at each state so the navbar\n// content doesn't get double-shifted after the header itself moves.\n// Transition on .main-header matches the navbar's existing 0.3s\n// margin-left transition so the header and its content animate\n// together when the sidebar toggles.\n@media (min-width: 768px) {\n .main-header {\n margin-left: 230px;\n transition: margin-left 0.3s ease-in-out;\n }\n .main-header .navbar {\n margin-left: 0;\n }\n .sidebar-mini.sidebar-collapse .main-header {\n margin-left: 50px;\n }\n // AdminLTE has a higher-specificity rule at min-width: 768px:\n // .sidebar-mini.sidebar-collapse .main-header .navbar { margin-left: 50px }\n // that overrides our plain .main-header .navbar reset above. Without\n // matching its specificity here, the mini-collapsed state ends up\n // double-shifting the navbar (header shifted 50px + navbar shifted\n // 50px = navbar starts at x=100). That pushed the .sidebar-toggle\n // hamburger past the sidebar column and into the header instead of\n // sitting over the mini-icon column at the top-left (where its\n // -48px margin-left is designed to place it).\n .sidebar-mini.sidebar-collapse .main-header .navbar {\n margin-left: 0;\n }\n}\n\n\n.sidebar-menu > li.active > a,\n.sidebar-menu > li:hover > a,\n.treeview-menu > li > a {\n color: var(--sidenav-text-hover-color) !important;\n border-left-color: var(--main-theme-color);\n}\n\n.sidebar-menu > li:hover > a,\n.sidebar-menu > li.active > a {\n border-left-color: var(--main-theme-color);\n padding-left: 12px;\n}\n\n\n.sidebar-menu > li:hover {\n background-color: #2c3b41;\n}\n\n.sidebar-menu > li > .treeview-menu {\n background-color: #1e282c;\n}\n\n\n.list-group-item:first-child {\n border-top: 0 !important;\n}\n\n.sidebar-menu > li > a:link,\n.sidebar-menu > li > a:visited,\n.treeview-menu > li > a {\n color: var(--sidenav-text-nohover-color) !important;\n}\n\n.sidebar-menu > li.active > a,\n.sidebar-menu > li:hover > a {\n background-color: #1e282c;\n border-left-color: var(--main-theme-color);\n border-left-style: solid;\n border-left-width: 3px;\n color: var(--sidenav-text-hover-color) !important;\n}\n\nthead,\ntbody,\n.table > thead > tr > th,\n.table > tbody > tr > th,\n.table > tfoot > tr > th,\n.table > thead > tr > td,\n.table > tbody > tr > td,\n.table > tfoot > tr > td {\n border-top-color: var(--box-bg) !important;\n border-bottom-color: var(--box-header-bottom-border-color) !important;\n color: var(--color-fg);\n}\n\n\n.help-block {\n color: var(--text-help) !important;\n}\n\n.alert-msg,\n.has-error {\n color: var(--text-danger) !important;\n}\n\n.has-error .form-control {\n border-color: var(--text-danger);\n}\n\n.alert a,\n.callout.callout-warning,\n.callout.callout-danger,\n.callout.callout-success,\n.callout.callout-info,\n.alert.alert-warning,\n.alert.alert-danger,\n.alert.alert-info,\n.alert.alert-success,\n.alert.alert-warning {\n color: white !important;\n}\n\n// The colored alerts have fixed-color backgrounds (red / blue / green\n// / orange) that read well against white text regardless of theme\n// mode. However the global \"h1..h4, p { color: var(--color-fg) }\" rule\n// further down this file has enough specificity to override the\n// alert's own color on any heading or paragraph inside, flipping the\n// text to black in light mode and white in dark mode — illegible\n// against the colored bg in light. Force inheritance so headings and\n// paragraphs inside these alerts always pick up the alert's white.\n.alert.alert-danger,\n.alert.alert-info,\n.alert.alert-success,\n.alert.alert-warning {\n h1, h2, h3, h4, p {\n color: inherit !important;\n }\n}\n\n\n.text-dark-gray a:link,\n.text-dark-gray a:hover,\n.text-dark-gray a:visited,\n.text-dark-gray a:focus {\n color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\";\n}\n\n.text-warning {\n color: var(--text-warning) !important;\n}\n\n.text-info {\n color: var(--text-info) !important;\n}\n\n.text-primary {\n color: var(--main-theme-color) !important;\n}\n\n.text-danger {\n color: var(--text-danger) !important;\n}\n\n.text-success {\n color: var(--text-success) !important;\n}\n\n.dropdown-menu > .divider {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\";\n margin-top: 0;\n margin-bottom: 0;\n padding-top: 1px;\n\n}\n\ninput[type=\"radio\"]::before {\n box-shadow: ~\"inset 1em 1em hsl(from var(--main-theme-color) h s calc(l - 20))\" !important;\n}\n\n\ninput[type=\"checkbox\"]::before {\n box-shadow: ~\"inset 1em 1em hsl(from var(--main-theme-color) h s calc(l - 20))\" !important;\n}\n\n\n.callout.callout-legend {\n background-color: var(--callout-bg-color);\n border-left: 5px solid var(--callout-left-border);\n\n}\n\n.callout-legend h4 a,\n.callout-legend h4 a:hover {\n color: var(--color-fg) !important;\n}\n\n\np.callout-subtext, p.callout-subtext a:hover, p.callout-subtext a:visited, p.callout-subtext a:link {\n color: var(--text-legend-help) !important;\n text-decoration: none;\n}\n\n\nlegend {\n border-bottom: 1px solid var(--callout-left-border);\n}\n\nth,\n.fix-sticky table thead {\n background-color: var(--box-bg);\n color: var(--color-fg) !important;\n}\n\n\n.logo:hover {\n background-color: var(--main-theme-color) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n.modal-content,\n.popover.help-popover,\n.popover.help-popover .popover-content,\n.popover.help-popover .popover-body,\n.popover.help-popover .popover-title,\n.popover.help-popover .popover-header {\n background-color: var(--box-bg) !important;\n /*color: var(--color-fg) !important;*/\n color: var(--color-fg) !important;\n}\n\n.treeview-menu > li {\n background-color: #2c3b41;\n color: var(--sidenav-text-nohover-color) !important;\n}\n\n.treeview-menu > li > a:hover,\n.treeview-menu > li:hover,\n.treeview-menu > li.active > a {\n color: white !important;\n background-color: var(--sidenav-hover-color-bg) !important;\n}\n\n.sidebar-toggle.btn,\n.sidebar-toggle.btn:hover {\n color: white !important;\n}\n\n.chart-responsive {\n color: var(--color-fg) !important;\n}\n\n.table > tbody + tbody {\n border-top: 0 !important;\n}\n\nh4#progress-text {\n color: white !important;\n}\n\n.small-box h3, .small-box p {\n color: white !important;\n}\n\n.box.box-theme {\n border-top: var(--main-theme-color) !important;\n}\n\ninput[type=\"date\"]:focus,\ninput[type=\"number\"]:focus,\ninput[type=\"text\"]:focus,\ninput[type=\"url\"]:focus,\ninput[type=\"email\"]:focus,\ninput[type=\"password\"]:focus,\ninput[type=\"tel\"]:focus,\ntextarea:focus {\n border-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\" !important;\n}\n\ninput[type=\"date\"]:required,\ninput[type=\"number\"]:required,\ninput[type=\"text\"]:required,\ninput[type=\"url\"]:required,\ninput[type=\"email\"]:required,\ninput[type=\"password\"]:required,\ninput[type=\"tel\"]:required,\nselect:required,\ninput:required,\ntextarea:required {\n border-right: 5px solid orange !important;\n}\n\n.bootstrap-table .fixed-table-container .table tbody tr.selected td {\n background-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 40)),hsl(from var(--main-theme-color) h s calc(l - 40)))\" !important;\n}\n\ntr.success > td {\n background-color: #00a65a !important;\n color: white !important;\n}\n\ntr.danger > td {\n background-color: var(--text-danger) !important;\n color: white !important;\n}\n\n@media print {\n\n body,\n div.content-wrapper,\n section.content,\n .webui,\n .main-panel,\n .nav-tabs-custom,\n .box,\n .box-body,\n .list-group,\n .list-group-unbordered,\n .list-group-item,\n .row,\n .tab-content {\n background: white !important;\n color: black !important;\n }\n\n .fixed-table-toolbar,\n .fixed-table-pagination,\n #assetsToolBar,\n .fixed-table-pagination {\n display: none !important;\n }\n\n .tab-pane.hidden-print {\n display: none !important;\n visibility: hidden !important;\n }\n\n h2, h3, h4 {\n color: black !important;\n }\n\n .col-sm-9,\n .main-panel {\n float: left;\n width: 100% !important;\n }\n\n}\n\n.list-group-item.subitem {\n padding-left: 20px !important;\n border-left: 0 !important;\n border-right: 0 !important;\n}\n\n.list-group-item.subitem:first-child {\n border: var(--tab-bottom-border);\n}\n\n.list-group-item.subitem:last-child {\n border: 0 !important;\n}\n\n.main-panel-content {\n line-height: 20px;\n border-bottom: var(--tab-bottom-border);\n padding: 10px 15px;\n}\n\n\n/* table */\n\ndl.table-display {\n float: left;\n width: 100%;\n margin: 1em 0;\n padding: 0;\n}\n\n.table-display dt {\n line-height: 25px;\n clear: left;\n float: left;\n /*text-align: right;*/\n width: 20%;\n margin: 0;\n padding: 8px;\n border-top: var(--tab-bottom-border);\n font-weight: bold;\n}\n\n.table-display dd {\n line-height: 20px;\n float: left;\n width: 80%;\n margin: 0;\n padding: 10px;\n border-top: var(--tab-bottom-border);\n}\n\n.well-display dt {\n clear: left;\n float: left;\n width: 70%;\n margin: 0;\n padding: 6px;\n border-top: 0;\n font-weight: bold;\n}\n\n.well-display dd {\n float: left;\n width: 30%;\n margin: 0;\n padding: 6px;\n border-top: 0;\n}\n\n.well-sm {\n line-height: 30px;\n}\n\n.table-display dd:first-of-type, .table-display dt:first-of-type {\n border-top: 0 !important;\n}\n\n\n@media (max-width: 750px) {\n .table-display dd {\n width: 100% !important;\n }\n\n .table-display dt {\n width: 100% !important;\n }\n}\n\n@media print {\n /* All your print styles go here */\n .box-profile {\n display: block !important;\n width: 100% !important;\n }\n}\n\n\n// Login / register page theme awareness.\n//\n// AdminLTE 2 hardcodes light-mode colors on the login page containers\n// (#d2d6de body bg, #fff box bg, #444 logo text) which ignore our\n// [data-theme=\"dark\"] CSS variables. Override with the same variables\n// the rest of the app uses so login and password-reset screens carry\n// the tenant's chosen theme mode instead of a permanent light-mode\n// look. Also styles the .register-* classes since AdminLTE ships them\n// paired and future Snipe-IT signup flows may use them.\n.login-page,\n.register-page {\n background: var(--color-bg);\n}\n\n.login-box-body,\n.register-box-body {\n background: var(--box-bg);\n color: var(--color-fg);\n}\n\n.login-logo a,\n.register-logo a {\n color: var(--color-fg);\n}\n\n// The .login-box wraps the header + body. Its header (.box-header) picks\n// up theme colors from the general .box rules already in this file, but\n// its bottom-border (from AdminLTE's default .login-box-body) is a\n// hardcoded light color that reads as a bright line against a dark\n// panel. Clear it and let the box's own borders do the visual work.\n.login-box-body,\n.register-box-body {\n border-top: 0;\n}\n\n// .login-box and .register-box are .box variants but do NOT get the\n// .box-default class, so they miss the themed border-top treatment\n// every other card in the app has. Give them the tenant's main theme\n// color as a top accent so the login card visually ties in with the\n// header bar above it (also styled with --main-theme-color) rather\n// than using the neutral grey that .box.box-default uses elsewhere.\n.login-box,\n.register-box {\n border-top: 3px solid var(--main-theme-color);\n}\n\n// Themed header bar for login / error pages (layouts/basic.blade.php).\n// Gives the tenant's uploaded logo the same colored background it lives\n// against in the logged-in app's top-nav so logos designed for that\n// context read the way they were meant to. Falls back to a text\n// treatment of the site name when there is no logo.\n.basic-page-header {\n background-color: var(--main-theme-color);\n // Match .main-header .navbar exactly (50px min-height) so the\n // login and error page header reads the same height as the\n // logged-in top-nav. Overflow: hidden clips the logo the same\n // way AdminLTE's .main-header .logo container does, so a padded\n // brand image renders at 50px even though its own box is taller.\n position: relative;\n min-height: 50px;\n overflow: hidden;\n padding: 0 20px;\n margin-bottom: 30px;\n text-align: center;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.basic-page-header__link {\n display: inline-block;\n // Kill link underline / hover-color so the logo and site-name\n // fallback render cleanly on the theme-color background.\n color: var(--nav-primary-text-color);\n text-decoration: none;\n\n &:hover,\n &:focus,\n &:visited {\n color: var(--nav-primary-text-color);\n text-decoration: none;\n }\n\n img {\n // Match img.navbar-brand-img / .navbar-brand>img exactly (the\n // rule near the top of this file that sizes the logged-in\n // top-nav brand logo). Combined with overflow: hidden on the\n // parent .basic-page-header, the padded img renders at 50px\n // clipped, giving the same visual as the logged-in header.\n max-height: 65px;\n max-width: 100%;\n width: auto;\n }\n}\n\n.basic-page-header__site-name {\n font-size: 24px;\n font-weight: 600;\n color: var(--nav-primary-text-color);\n}\n\n// Absolute-positioned in the top-right of the bar so the logo stays\n// visually centered. Icon-only presentation so it reads like the\n// compact icon controls (bell, user avatar) in the logged-in top-nav\n// rather than a full-text toggle. The aria-label carries the full\n// \"Dark mode\" / \"Light mode\" text for screen readers.\n.basic-page-header__toggle {\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n background: transparent;\n border: 0;\n padding: 4px 8px;\n color: var(--nav-primary-text-color);\n font-size: 16px;\n line-height: 1;\n cursor: pointer;\n\n &:hover,\n &:focus {\n color: var(--nav-primary-text-color);\n opacity: 0.85;\n }\n\n // Hide the injected .theme-toggle-label span. Text is still in the\n // DOM and read by screen readers via the button's aria-label, but\n // visually only the sun/moon icon shows.\n .theme-toggle-label {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n }\n}\n\n// Issue #19443: on narrower viewports (sidebar open, small laptops)\n// the bs-table search input ends up wedged between the box's\n// bulk-actions area (pulled left, ~500px min-width) and the button\n// toolbar (pulled right), which strands it visually in the middle.\n// Force the search onto its own row below the toolbar, right-aligned,\n// when the viewport isn't wide enough to fit all three inline. Wide\n// layouts stay unchanged.\n//\n// The outer `.search` is bootstrap's `.input-group` (display: table)\n// wrapping a nested `.input-group` with the input + clear button.\n// Just adding `clear: both` to the still-floated element left it\n// stranded mid-container. Turning the outer into a plain block with\n// `text-align: right`, and forcing the nested input-group to\n// `inline-flex` so it respects the parent's text alignment, lets it\n// sit flush against the box's right edge on its own row.\n@media (max-width: 1400px) {\n .box-body .fixed-table-toolbar > .search.pull-right {\n clear: both !important;\n margin-top: 8px;\n }\n}\n\n// Info-panel action button row. Every asset / user / license detail\n// page renders a horizontal strip of icon buttons (edit, clone, note,\n// audit, delete, ...) above the info panel. Was a plain .row with no\n// wrap strategy, so on narrow viewports the last one or two buttons\n// would drop to their own line with no spacing from the row above.\n// Flex + wrap + gap gives a predictable break point and consistent\n// spacing between buttons in either axis. Also fixed #19443.\n//\n// Destructive buttons (delete, and by convention checkin) still need\n// to sit visually apart from the non-destructive ones on the right\n// edge, which they got via `pull-right` (float: right) before this\n// container went flex. Floats are ignored by flex, so the first\n// pull-right child gets margin-left: auto to consume the remaining\n// space and shove itself right. Anything after it clusters next to\n// it.\n//\n// pull-right children also get order:1 so they visually move to the\n// end of the row regardless of their DOM position. Without this,\n// pull-right buttons that appear BEFORE non-pull-right buttons in\n// markup (checkin is emitted before edit/clone/audit on the asset\n// view, and only when the asset is currently checked out - which is\n// why the misalignment only showed up on checked-out assets) end up\n// dragging every subsequent sibling right along with them via the\n// auto margin, leaving only the first non-pull-right button alone on\n// the left. order:1 corrects the visual grouping so pull-right ends\n// up on the right and the non-pull-right stack stays left, matching\n// the behavior the old floats used to give.\n.info-panel-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 2px;\n // Bleed out through the parent .box-header's 10px horizontal\n // padding so the button row hits the box's actual edges. Matches\n // how a bootstrap .row offsets its container's gutters.\n margin: 0 -10px;\n\n > .pull-right {\n order: 1;\n margin-left: auto;\n }\n\n > .pull-right ~ .pull-right {\n margin-left: 0;\n }\n}\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"css/build/app.css","mappings":"AACA;EACE;EAGA;AAFF;AAKA;EACE;IACE;EAHF;EAMA;IACE;EAJF;AACF;AAOA;EACE;AALF;AAOA;EACE;EACA;EACA;EACA;EACA;AALF;AASA;EACE;AAPF;AAUA;EACE;EACA;AARF;AAWA;EACE;AATF;AAYA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;AAVF;AAaA;EACE;EACA;EACA;EACA;EACA;AAXF;AAcA;EACE;AAZF;AAeA;EACE;AAbF;AAmBA;EACE;AAjBF;AAmBE;;EAEE;EACA;AAjBJ;AAmBE;EACE;AAjBJ;AAqBA;EACE;AAnBF;AAsBA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AApBF;AAuBA;EACE;AArBF;AAwBA;EACE;AAtBF;AAyBA;EACE;AAvBF;AA0BA;EACE;AAxBF;AA2BA;EACE;EACA;EACA;AAzBF;AA4BA;EACE;EACA;EACA;AA1BF;AAiCA;EACE;AA/BF;AAkCA;EACE;EACA;AAhCF;AAmCA;EACE;AAjCF;AAmCA;EACE;EACA;AAjCF;AAoCA;;EAEE;EACA;AAlCF;AAwCA;EACE;EACA;EACA;EACA;AAtCF;AAyCA;EACE;EACA;AAvCF;AAyCA;EACE;AAvCF;AA0CA;EACE;EACA;EACA;AAxCF;AA2CA;EACE;AAzCF;AA4CA;EACE;AA1CF;AA6CA;EACE;AA3CF;AA8CA;EACE;AA5CF;AA+CA;EACE;AA7CF;AAgDA;;;;;EAKE;AA9CF;AAiDA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AA/CF;AAkDA;EACE;EACA;EACA;EACA;EACA;EACA;AAhDF;AAmDA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAjDF;AAoDA;EACE;AAlDF;AAqDA;EACE;EACA;EACA;EACA;AAnDF;AAsDA;EACE;EACA;AApDF;AAuDA;EACE;EACA;EACA;EACA;EACA;AArDF;AAwDA;EACE;EACA;AAtDF;AAyDA;EACE;EACA;EACA;EACA;AAvDF;AA0DA;EACE;EACA;AAxDF;AACA,cAAc;AA2Dd;EACE;EACA;EACA;AAzDF;AA2DA;EACE;EACA;AAzDF;AA8DA;EACE;EACA;EACA;AA5DF;AA+DA;EACE;EACA;AA7DF;AAgEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AA9DF;AAiEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AA/DF;AAkEA;EACE;EACA;EACA;EACA;EACA;AAhEF;AAmEA;EACE;EACA;EACA;AAjEF;AAoEA;EACE;AAlEF;AAqEA;EACE;AAnEF;AAsEA;EACE;AApEF;AAuEA;EACE;AArEF;AAwEA;EACE;AAtEF;AAyEA;EACE;AAvEF;AA0EA;EACE;EACA;AAxEF;AA2EA;EACE;AAzEF;AA4EA;EACE;AA1EF;AACA,kBAAkB;AA6ElB;EACE;EAEA;EACA;EACA;EA5EA,gCAAgC;AAClC;AA+EA;EACE;AA7EF;AAgFA;EACE;EACA;EACA;AA9EF;AAgFA;EACE;EACA;EACA;AA9EF;AAiFA;;;EACE;AA7EF;AAgFA;EACE;EACA;AA9EF;AAiFA;EACE;IACE;EA/EF;EAkFA;IACE;IACA;IACA;EAhFF;AACF;AAmFA;;EAEE;EACA;EACA;AAjFF;AAoFA;EACE;AAlFF;AAuFA;EACE;AArFF;AAwFA;EACE;AAtFF;AAyFA;EACE;EACA;EACA;AAvFF;AA0FA;EACE;EACA;AAxFF;AA2FA;EACE;EACA;EACA;AAzFF;AA4FA;EACE;AA1FF;AChYA;EAGE;ADgYF;AC9XA;EACE;EACA;EACA;EACA;EACA;ADgYF;AC/XE;;;EACE;ADmYJ;AChYA;EACE;ADkYF;AC/XA;EACE;EACA;ADiYF;AC9XA;EACE;ADgYF;AC5XA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;AD8XF;AC3XA;EACE;EACA;EACA;EACA;EACA;AD6XF;AC1XA;EACE;AD4XF;ACzXA;EACE;AD2XF;AClXA;EACE;ADoXF;AClXE;;EAEE;EACA;ADoXJ;AClXE;EACE;ADoXJ;AC/WA;EACE;ADiXF;AC9WA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;ADgXF;AC9WA;EACE;ADgXF;AC9WA;EACE;ADgXF;AC5WA;EACE;AD8WF;AC5WA;EACE;AD8WF;AC1WA;EACE;EACA;EACA;AD4WF;ACzWA;EACE;EACA;EACA;AD2WF;AClWA;EACE;ADoWF;ACjWA;EACE;EACA;EACA;ADmWF;AChWA;EACE;EACA;ADkWF;AC/VA;EACE;ADiWF;AC9VA;EACE;EACA;ADgWF;AC7VA;;EACE;EACA;ADgWF;AC7VA;EACE;EACA;AD+VF;AC7VA;EACE;AD+VF;AC5VA;EACE;EACA;EACA;AD8VF;AC3VA;EACE;AD6VF;AC1VA;EACE;AD4VF;ACzVA;EACE;AD2VF;ACzVA;EACE;AD2VF;ACxVA;EACE;AD0VF;ACvVA;;;;EACE;AD4VF;ACzVA;;;;;;;;;;;;;EAaE;AD2VF;ACtVA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;ADwVF;ACtVA;EACE;EACA;EACA;EACA;EACA;EACA;ADwVF;ACtVA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;ADwVF;ACtVA;EACE;ADwVF;ACtVA;EACE;EACA;EACA;EACA;ADwVF;ACtVA;EACE;EACA;ADwVF;ACtVA;EACE;EACA;EACA;EACA;EACA;ADwVF;ACtVA;EACE;EACA;ADwVF;ACtVA;EACE;EACA;EACA;EACA;ADwVF;ACrVA;EACE;EACA;ADuVF;AClVA;EAAY;ADqVZ;AACA,cAAc;ACnVd;EAAY;EAAkC;ADuV9C;ACtVA;EAA8B;EAAY;AD0V1C;ACxVA;EAAiD;EAAgB;EAAiB;AD6VlF;AC5VA;EAA8C;EAAa;ADgW3D;AC/VA;EAA+C;EAAoB;EAAa;EAAc;EAAgB;EAAqB;EAAW;EAAW;EAAmB;EAAoB;AD2WhM;AC1WA;EAAqD;EAAc;EAAa;EAAc;EAAqB;EAAqB;EAAoB;EAAU;ADoXtK;ACnXA;EAA0C;EAAoB;EAAoB;EAAa;EAAkB;AD0XjH;ACzXA;EAA0D;EAAW;EAAkB;AD8XvF;AC7XA;EAAmE;ADgYnE;AC/XA;EAAiE;ADkYjE;ACjYA;EAA6E;ADoY7E;ACnYA;EAA4E;ADsY5E;ACrYA;EAAwD;ADwYxD;ACvYA;EAA8D;AD0Y9D;ACzYA;EAAuD;EAAW;AD6YlE;AC5YA;EAAsD;AD+YtD;AC9YA;EAAuD;ADiZvD;AACA;;;;;;;;EAQE;AC/YF;EACE;EACA;EACA;ADiZF;AACA,kBAAkB;AC9YlB;EACE;EACA;EACA;EACA;EACA;EDgZA,gCAAgC;AAClC;AC5YA;EAGE;AD4YF;ACzYA;EACE;AD2YF;ACvYA;;EACE;AD0YF;ACxYA;;EACE;AD2YF;ACxYA;EACE;EAIA;ADuYF;ACpYA;EACE;EACA;ADsYF;ACnYA;EACE;ADqYF;AClYA;EACE;ADoYF;AC/XA;EACE;ADiYF;AC9XA;EAEE;IACE;IACA;ED+XF;EC5XA;IACE;IACA;IACA;ED8XF;EC3XA;IACE;ED6XF;EC1XA;;IACE;ED6XF;EC1XA;IACE;IACA;IACA;IACA;IACA;IACA;IACA;ED4XF;EACA,+CAA+C;ECzX/C;IACE;ED2XF;ECxXA;IACE;ED0XF;ECvXA;IACE;EDyXF;ECtXA;IACE;EDwXF;EACA,qCAAqC;ECrXrC;;IACE;EDwXF;EACA,QAAQ;ECrXR;;IACE;IACA;IACA;EDwXF;ECrXA;IACE;EDuXF;ECpXA;IACE;EDsXF;ECnXA;IACE;IACA;IACA;EDqXF;EClXA;IACE;IACA;EDoXF;ECjXA;;IACE;EDoXF;EClXA;;;;;;;;;;;;IACE;ED+XF;EC5XA;IACE;ED8XF;EC5XA;IACE;ED8XF;EC5XA;IACE;ED8XF;EC5XA;IACE;ED8XF;EC5XA;IACE;ED8XF;EC5XA;IACE;ED8XF;EC5XA;IACE;ED8XF;EC5XA;IACE;ED8XF;EC5XA;IACE;ED8XF;EC5XA;IACE;ED8XF;EC5XA;IACE;ED8XF;EC5XA;IACE;ED8XF;AACF;ACzXA;EACE;AD2XF;ACxXA;EACI;AD0XJ;ACvXA;EACE;ADyXF;ACtXA;EACE;EACA;EACA;ADwXF;ACnXA;EACE;EACA;OAAA;EACA;EACA;ADqXF;AClXA;;EACE;EACA;EACA;ADqXF;AClXA;EACE;ADoXF;ACjXA;;;EACE;ADqXF;AClXA;;EACE;ADqXF;ACjXA;EACE;ADmXF;AChXA;EACE;ADkXF;AC/WA;EACE;EACA;EACA;ADiXF;AC9WA;EACE;EACA;ADgXF;AC7WA;EACE;EACA;EACA;EACA;AD+WF;AC3WA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;AD6WF;AC3WA;;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AD8WF;AC3WA;EACE;AD6WF;AC1WA;EACE;AD4WF;ACzWA;EACE;AD2WF;ACxWA;EACE;AD0WF;ACvWA;EACE;ADyWF;ACrWA;EACE;EACA;EACA;EACA;EACA;EAGA;ADqWF;AClWA;EACE;EACA;EACA;EACA;ADoWF;ACjWA;EACE;EACA;EACA;EACA;ADmWF;AC/VA;EACE;EACA;EACA;EACA;EACA;EACA;ADiWF;AACA;;;;EAIE;AC9VF;EACE;EACA;ADgWF;AC7VA;EACE;EACA;AD+VF;AC5VA;EACE;EACA;AD8VF;AC3VA;EACE;EACA;AD6VF;ACzVA;EACE;AD2VF;AACA;;EAEE;ACtVF;EACE;IACE;IACA;EDwVF;EC/UA;IACE;EDiVF;EC9UA;IACE;EDgVF;AACF;AC7UA;EACE;EACA;EACA;AD+UF;AC5UA;EACE;EACA;AD8UF;AACA;;;;;;;;;;;EAWE;ACzUF;;;;;;;;;;;;;;;;EAiBE;EACA;EACA;EACA;EACA;EACA;AD0UF;ACtUA;;;;;;;;;;;;;;;;;EAkBE;EACA;EACA;EACA;ADuUF;AACA;;;EAGE;ACpUF;EAEE;EAAkB;EAAoC;ADuUxD;ACpUA;EAEE;EAAkB;EAAoC;ADuUxD;ACpUA;EAEE;EAAkB;EAAoC;ADuUxD;ACpUA;EAEE;EAAkB;EAAoC;ADuUxD;ACpUA;EAEE;EAAkB;EAAoC;ADuUxD;ACpUA;EACE;EAAkB;EAAoC;ADwUxD;ACrUA;EACE;EAAkB;EAAoC;EAAiB;AD0UzE;ACpUA;EACE;EAAkB;EAAoC;EAAiB;ADyUzE;ACtUA;EAEE;EAAkB;EAAoC;ADyUxD;ACtUA;EAEE;EAAkB;EAClB;EACA;ADwUF;ACrUA;EACE;EACA;EACA;EACA;ADuUF;ACrUA;EACE;EACA;EACA;EACA;ADuUF;ACrUA;EACE;EACA;EACA;EACA;ADuUF;ACrUA;EACE;EACA;EACA;EACA;ADuUF;ACpUA;EACE;EACA;EACA;EACA;ADsUF;ACnUA;EACE;EACA;EACA;EACA;ADqUF;AClUA;EACE;EACA;EACA;EACA;ADoUF;AChUA;EACE;EACA;EACA;EACA;ADkUF;AC9TA;;;EACE;ADkUF;AC/TA;;EACE;EACA;EACA;EACA;ADkUF;AC/TA;;EACE;ADkUF;AC/TA;EACE;ADiUF;AC9TA;EACE;IACE;EDgUF;AACF;AC9TA;EACE;IACE;EDgUF;EC9TA;IACE;EDgUF;AACF;AClTA;EACE;IACE;EDoTF;EClTA;IACE;IACA;EDoTF;EClTA;IACE;IACA;EDoTF;EClTA;IACE;IACA;EDoTF;AACF;AClTA;EACE;IACE;EDoTF;AACF;ACjTA;EACE;IACE;EDmTF;AACF;ACjTA;EACE;IACE;IACA;IACA;IACA;IACA;EDmTF;AACF;AACA,oDAAoD;AC/SpD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;ADiTF;AC9SA;EACE;EACA;ADgTF;AACA;;;;;8EAK8E;AC7S9E;;;EAGE;AD+SF;AACA;;;;;;;;;;;;;;;8BAe8B;AC5S9B;;;EAGE;EACA;EACA;AD8SF;AACA;;;;4EAI4E;AC3S5E;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AD6SF;AACA,8CAA8C;AAC9C,8CAA8C;AAC9C,8CAA8C;ACzS9C;ED2SE,kCAAkC;ECzSlC;EACA;OAAA;ED2SA,+CAA+C;ECzS/C;ED2SA,+BAA+B;ECzS/B;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;ED2SA,6BAA6B;AAC/B;AACA,yFAAyF;ACvSzF;EDySE,2EAA2E;ECjS3E;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EDmSA,+BAA+B;ECjS/B;ADmSF;AACA,wEAAwE;AChSxE;EACE;ADkSF;AACA,wEAAwE;AC/RxE;;EACE;EACA;EACA;EACA;EACA;ADkSF;AACA,6EAA6E;AC/R7E;;EACE;EACA;EACA;EACA;ADkSF;AACA,+EAA+E;AC/R/E;;EACE;EACA;EACA;EACA;ADkSF;AACA,qCAAqC;AC7RrC;EACE;KAAA;UAAA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AD+RF;AC5RA;EACE;EACA;EACA;EACA;EACA;EACA;AD8RF;AC3RA;EACE;AD6RF;AACA;;;;EAIE;ACzRF;EACE;AD2RF;ACxRA;EACE;EACA;EACA;EACA;AD0RF;ACvRA;EACE;ADyRF;ACtRA;EACE;ADwRF;ACrRA;EACE;ADuRF;ACpRA;EACE;ADsRF;AACA,8CAA8C;AAC9C,8CAA8C;AAC9C,8CAA8C;AAC9C;;;EAGE;ACjRF;EACE;EACA;EACA;EACA;EACA;ADmRF;AChRA;;EAEE;EACA;EACA;ADkRF;AC/QA;EACE;ADiRF;AC9QA;EACE;ADgRF;AC9QA;EACE;ADgRF;AC7QA;EACE;EACA;EACA;AD+QF;AACA,kEAAkE;AC5QlE;EACE;AD8QF;AC3QA;EACE;EACA;AD6QF;AC1QA;EACE;EACA;AD4QF;ACzQA;EACE;EACA;EACA;EACA;EACA;EACA;AD2QF;ACxQA;;EACE;AD2QF;ACxQA;EACE;EAQA;EACA;EACA;ADmQF;AChQA;EACE;EACA;ADkQF;AC/PA;EACE;ADiQF;AC9PA;EACE;EACA;ADgQF;AC5PA;EACO;EAAiB;EAAkB;ADgQ1C;ACjQA;EAEO;EAAiB;EAAkB;ADoQ1C;ACtQA;EAGO;EAAiB;EAAkB;ADwQ1C;AC3QA;EAIO;EAAiB;EAAkB;AD4Q1C;AChRA;;EAKW;EAAiB;EAAkB;ADiR9C;ACtRA;EAMM;ADmRN;ACzRA;EAOiB;ADqRjB;AC5RA;;EAQW;EAAiB;ADyR5B;ACjSA;EASoB;AD2RpB;ACvRA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;ADyRF;ACrRA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;ADuRF;ACpRA;EACE;ADsRF;ACnRA;EACE;EACA;EACA;ADqRF;AClRA;EACE;EACA;EACA;EACA;ADoRF;ACjRA;EACE;EACA;ADmRF;AChRA;EACE;ADkRF;AACA;;EAEE;AC/QF;EACI;ADiRJ;AACA;;EAEE;AC9QF;EACE;EACA;EACA;EACA;EACA;EACA;ADgRF;AC7QA;EACE;AD+QF;AC5QA;EACE;AD8QF;AC3QA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AD6QF;AC1QA;EACE;EACA;EACA;AD4QF;ACzQA;EACE;EACA;EACA;EACA;AD2QF;ACxQA;EACE;EACA;EACA;EACA;AD0QF;ACvQA;EACE;EACA;EACA;EACA;ADyQF;ACtQA;EACE;ADwQF;ACrQA;EACE;EACA;ADuQF;ACpQA;EACE;ADsQF;AC3PE;EAAA;;IACE;IACA;ED+PF;EC7PE;;IACE;IACA;IACA;IACA;IACA;IACA;IACA;EDgQJ;EC7PE;;IAEI;IACA;ED+PN;EClQE;;IAOI;ED+PN;ECpRA;;IA2BI;ED6PJ;ECxRA;;IA+BI;IACA;IACA;IACA;ED6PJ;EC/RA;;IAsCI;IACA;IACA;IACA;IACA;IACA;IACA;IACA;ED6PJ;EC3PI;;;;;;IAGE;IACA;EDgQN;ECnTA;;IAwDI;IACA;IACA;IACA;ED+PJ;EC7PI;;;;;;IAGE;EDkQN;AACF;ACrUA;;;;;;;;;;;;EAkFE;EACA;ADiQF;AC1PA;;EAEE;AD4PF;ACpPA;EACE;IACE;IACA;EDsPF;AACF;ACxOA;EACE;EACA;EACA;AD0OF;ACjOA;;EAEE;EACA;ADmOF;AC5NA;;EAEE;AD8NF;ACvNA;EAOE;;;;;;IAME;EDmNF;AACF;AC7LA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AD+LF;AC5LA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AD8LF;AC3LA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AD6LF;AC7KA;;;;;EAKE;EACA;AD+KF;AC5KA;EACE;AD8KF;AC3KA;EACE;EACA;EACA;AD6KF;AC1KA;;;EAGE;AD4KF;ACzKA;;EAEE;AD2KF;ACxKA;EACE;AD0KF;ACvKA;EACE;ADyKF;ACtKA;EACE;ADwKF;ACrKA;EACE;EDuKA,uDAAuD;ECrKvD;EACA;ADuKF;ACpKA;EACE;EDsKA,uDAAuD;ECpKvD;EACA;ADsKF;ACnKA;EACE;ADqKF;AClKA;EACE;ADoKF;AChKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BE;EACA;EACA;ADkKF;AC9JA;;EAEE;ADgKF;AACA;;;;;EAKE;AC7JF;;EAEE;EACA;AD+JF;AACA;;;;;;EAME;AC5JF;EACE;AD8JF;AACA;;EAEE;AC3JF;EACE;EACA;AD6JF;AC1JA;EACE;ED4JA,mFAAmF;EACnF,mDAAmD;EC1JnD;AD4JF;AACA;;EAEE;ACzJF;EACE;EACA;AD2JF;AACA;;EAEE;ACxJF;;;;;EAKE;ED0JA,qCAAqC;ECxJrC;AD0JF;ACvJA;;EAEE;EACA;EACA;ADyJF;ACtJA;EACE;ADwJF;ACrJA;EACE;EACA;EACA;ADuJF;AACA;;;;;;;;;;CAUC;ACpJD;EACE;EACA;EACA;ADsJF;AACA;2CAC2C;ACnJ3C;EACE;ADqJF;AACA;;;;0CAI0C;AClJ1C;EACE;ADoJF;ACjJA;EACE;ADmJF;AChJA;EACE;ADkJF;AC/IA;EACE;ADiJF;AACA;;UAEU;AC9IV;EACE;ADgJF;AACA;;;;;yBAKyB;AC7IzB;EACE;AD+IF;AC5IA;;;;EAIE;EACA;EACA;AD8IF;AC3IA;EACE;AD6IF;AACA;oEACoE;AC1IpE;;;EAGE;EACA;AD4IF;AACA;;;;;;;;;uEASuE;ACzIvE;;;;;;;;;EASE;AD2IF;AACA;;;;;;;;oEAQoE;ACxIpE;EACE;EACA;EACA;AD0IF;ACvIA;;EAEE;EACA;EACA;ADyIF;AACA;;uCAEuC;ACtIvC;EACE;EACA;EACA;EACA;ADwIF;ACrIA;;EAEE;EACA;ADuIF;AACA,iDAAiD;ACnIjD;;EAEE;EACA;ADqIF;AChIA;EACE;EACA;EACA;ADkIF;AC/HA;;;;;;;;;;;EAWE;EACA;ADiIF;AC9HA;EACE;EACA;ADgIF;AClIA;EACE;EACA;ADgIF;AC7HA;EACE;EACA;AD+HF;AC5HA;EACE;AD8HF;AC3HA;EACE;EACA;EACA;EACA;EACA;EACA;AD6HF;AC1HA;;;;;;;EAOE;AD4HF;ACzHA;;;;;;;;;;;;;;;;;;;;;;EAsBE;AD2HF;ACvHA;;;;EAIE;EACA;EACA;ADyHF;ACrHA;;EAEE;ADuHF;ACpHA;EACE;EACA;ADsHF;AClHA;;;;EAIE;ADoHF;AACA;;;;;EAKE;ACjHF;EACE;EACA;EACA;ADmHF;AChHA;;EAEE;EACA;ADkHF;AACA;;;;;;;EAOE;AC/GF;EAAsB;ADkHtB;ACjHA;EAA4B;ADoH5B;AClHA;EAAwB;ADqHxB;ACpHA;EAA8B;ADuH9B;ACrHA;EAAyB;ADwHzB;ACvHA;EAA+B;AD0H/B;ACxHA;EAAuB;AD2HvB;AC1HA;EAA6B;AD6H7B;AC3HA;;;;;;;;;;EAUE;EACA;EACA;AD6HF;AC1HA;EACE;AD4HF;AACA;;;;;;;mEAOmE;ACzHnE;;;EAGE;AD2HF;ACxHA;EACE;AD0HF;ACtHA;EACE;ADwHF;ACrHA;EACE;ADuHF;ACnHA;EACE;EACA;EACA;EACA;ADqHF;ACjHA;EACE;EACA;ADmHF;AChHA;;;;;;;;;;;EAYE;EACA;EACA;EACA;ADiHF;AC7GA;EACE;AD+GF;AC5GA;EACE;AD8GF;AC3GA;;EAEE;EACA;EACA;AD6GF;AC1GA;EACE;EACA;AD4GF;ACzGA;EACE;EACA;EACA;EACA;EACA;EACA;AD2GF;ACxGA;EACE;AD0GF;AACA;;EAEE;ACtGF;EACE;ADwGF;AACA;;EAEE;ACpGF;;;;;;EAME;ADsGF;AClGA;;;;EAIE;EACA;EACA;ADoGF;ACjGA;;;;EAIE;EACA;EACA;ADmGF;AC34EC;;EAg1EO;EACA;EACA;EACA;AD+DR;ACl5EC;;EAg1EO;EACA;EACA;EACA;ADsER;ACz5EC;;EAg1EO;EACA;EACA;EACA;AD6ER;ACh6EC;;EAg1EO;EACA;EACA;EACA;ADoFR;ACv6EC;;EAg1EO;EACA;EACA;EACA;AD2FR;AC96EC;;EAg1EO;EACA;EACA;EACA;ADkGR;ACr7EC;;EAg1EO;EACA;EACA;EACA;ADyGR;AC57EC;;EAg1EO;EACA;EACA;EACA;ADgHR;ACn8EC;;EAg1EO;EACA;EACA;EACA;ADuHR;AC18EC;;EAg1EO;EACA;EACA;EACA;AD8HR;ACj9EC;;EAg1EO;EACA;EACA;EACA;ADqIR;ACx9EC;;EAg1EO;EACA;EACA;EACA;AD4IR;AC/9EC;;EAg1EO;EACA;EACA;EACA;ADmJR;ACt+EC;;EAg1EO;EACA;EACA;EACA;AD0JR;AC7+EC;;EAg1EO;EACA;EACA;EACA;ADiKR;ACp/EC;;EAg2EO;EACA;EACA;EACA;ADwJR;AC3/EC;;EAg2EO;EACA;EACA;EACA;AD+JR;AClgFC;;EAg2EO;EACA;EACA;EACA;ADsKR;ACzgFC;;EAg2EO;EACA;EACA;EACA;AD6KR;AChhFC;;EAg2EO;EACA;EACA;EACA;ADoLR;ACvhFC;;EAg2EO;EACA;EACA;EACA;AD2LR;AC9hFC;;EAg2EO;EACA;EACA;EACA;ADkMR;ACriFC;;EAg2EO;EACA;EACA;EACA;ADyMR;AC5iFC;;EAg2EO;EACA;EACA;EACA;ADgNR;ACnjFC;;EAg2EO;EACA;EACA;EACA;ADuNR;AC1jFC;;EAg2EO;EACA;EACA;EACA;AD8NR;ACjkFC;;EAg2EO;EACA;EACA;EACA;ADqOR;ACxkFC;;EAg2EO;EACA;EACA;EACA;AD4OR;AC/kFC;;EAg2EO;EACA;EACA;EACA;ADmPR;ACtlFC;;EAg2EO;EACA;EACA;EACA;AD0PR;AC7lFC;EAg3EO;ADgPR;AChmFC;EAm3EO;ADgPR;ACnmFC;EAs3EO;ADgPR;ACtmFC;EAg3EO;ADyPR;ACzmFC;EAm3EO;ADyPR;AC5mFC;EAs3EO;ADyPR;AC/mFC;EAg3EO;ADkQR;AClnFC;EAm3EO;ADkQR;ACrnFC;EAs3EO;ADkQR;ACxnFC;EAg3EO;AD2QR;AC3nFC;EAm3EO;AD2QR;AC9nFC;EAs3EO;AD2QR;ACjoFC;EAg3EO;ADoRR;ACpoFC;EAm3EO;ADoRR;ACvoFC;EAs3EO;ADoRR;AC1oFC;EAi4EO;AD4QR;AC7oFC;EAo4EO;AD4QR;AChpFC;EAu4EO;AD4QR;ACnpFC;EAi4EO;ADqRR;ACtpFC;EAo4EO;ADqRR;ACzpFC;EAu4EO;ADqRR;AC5pFC;EAi4EO;AD8RR;AC/pFC;EAo4EO;AD8RR;AClqFC;EAu4EO;AD8RR;ACrqFC;EAi4EO;ADuSR;ACxqFC;EAo4EO;ADuSR;AC3qFC;EAu4EO;ADuSR;AC9qFC;EAi4EO;ADgTR;ACjrFC;EAo4EO;ADgTR;ACprFC;EAu4EO;ADgTR;ACvrFC;EA05EO;EACA;ADgSR;AC3rFC;EA85EO;EACA;EACA;ADgSR;AChsFC;EAm6EO;EACA;EACA;ADgSR;ACrsFC;EA05EO;EACA;AD8SR;ACzsFC;EA85EO;EACA;EACA;AD8SR;AC9sFC;EAm6EO;EACA;EACA;AD8SR;ACntFC;EA05EO;EACA;AD4TR;ACvtFC;EA85EO;EACA;EACA;AD4TR;AC5tFC;EAm6EO;EACA;EACA;AD4TR;ACjuFC;EA05EO;EACA;AD0UR;ACruFC;EA85EO;EACA;EACA;AD0UR;AC1uFC;EAm6EO;EACA;EACA;AD0UR;AC/uFC;EA05EO;EACA;ADwVR;ACnvFC;EA85EO;EACA;EACA;ADwVR;ACxvFC;EAm6EO;EACA;EACA;ADwVR;AC7vFC;EAg7EO;EACA;ADgVR;ACjwFC;EAo7EO;EACA;EACA;ADgVR;ACtwFC;EAy7EO;EACA;EACA;ADgVR;AC3wFC;EAg7EO;EACA;AD8VR;AC/wFC;EAo7EO;EACA;EACA;AD8VR;ACpxFC;EAy7EO;EACA;EACA;AD8VR;ACzxFC;EAg7EO;EACA;AD4WR;AC7xFC;EAo7EO;EACA;EACA;AD4WR;AClyFC;EAy7EO;EACA;EACA;AD4WR;ACvyFC;EAg7EO;EACA;AD0XR;AC3yFC;EAo7EO;EACA;EACA;AD0XR;AChzFC;EAy7EO;EACA;EACA;AD0XR;ACrzFC;EAg7EO;EACA;ADwYR;ACzzFC;EAo7EO;EACA;EACA;ADwYR;AC9zFC;EAy7EO;EACA;EACA;ADwYR;ACtXA;;EAEI;EACA;EACA;EACA;ADwXJ;ACrXA;EACI;ADuXJ;ACrXA;EACI;ADuXJ;ACpXA;EACI;ADsXJ;AC7WA;EACI;EACA;AD+WJ;AC7WA;EACI;EACA;EACA;AD+WJ;AC7WA;EACI;EACA;EACA;AD+WJ;AClWA;EASI;EACA;EAcA;EACA;EACA;EACA;EAIA;EACA;EAoBA;ADyTJ;AClTI;EAII;ADiTR;ACxSI;EACI;AD0SR;ACxSI;EACI;EACA;AD0SR;ACxSI;EACI;EACA;AD0SR;ACxSI;EACI;AD0SR;ACtSA;EAGI;ADsSJ;AC3RA;EACI;EACA;AD6RJ;AC3RI;EACI;AD6RR;AC3RI;EACI;EACA;AD6RR;AC3RI;EACI;EACA;AD6RR;AC3RI;EACI;AD6RR;AACA;;EAEE;ACtRF;EACE;EACA;ADwRF;ACpRA;;;;;EAKE;EACA;ADsRF;ACnRA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;ADqRF;ACjRA;;EAEE;ADmRF;AChRA;;;;;;;;;EASE;EDkRA,qCAAqC;EChRrC;EDkRA,mDAAmD;AACrD;AC9QA;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BE;EACA;EACA;ADgRF;AC7QA;EACE;EACA;EACA;AD+QF;AC3QA;EACE;AD6QF;AC1QA;EACE;EACA;AD4QF;ACxQA;;EAEE;EACA;EACA;AD0QF;ACvQA;EACE;EACA;ADyQF;ACtQA;;;;;;;;;;;;EASE;EACA;EACA;AD2QF;ACxQA;;;EACE;AD4QF;AACA;;EAEE;ACvQF;EACE;ADyQF;AC9OA;EACE;IACE;IACA;EDgPF;EC9OA;IACE;EDgPF;EC9OA;IACE;EDgPF;ECrOA;IACE;EDuOF;AACF;ACnOA;;;EAGE;EACA;ADqOF;AClOA;;EAEE;EACA;ADoOF;AChOA;EACE;ADkOF;AC/NA;EACE;ADiOF;AC7NA;EACE;AD+NF;AC5NA;;;EAGE;AD8NF;AC3NA;;EAEE;EACA;EACA;EACA;EACA;AD6NF;AC1NA;;;;;;;;EAQE;EACA;EACA;AD4NF;ACxNA;EACE;AD0NF;ACvNA;;EAEE;ADyNF;ACtNA;EACE;ADwNF;ACrNA;;;;;;;;;;EAUE;ADuNF;AC5MA;;;;;;;;;;;;;;;;;;;;EAKI;AD6NJ;ACxNA;;;;EAIE;AD0NF;ACvNA;EACE;ADyNF;ACtNA;EACE;ADwNF;ACrNA;EACE;ADuNF;ACpNA;EACE;ADsNF;ACnNA;EACE;ADqNF;AClNA;EACE;EACA;EACA;EACA;ADoNF;AChNA;EACE;ADkNF;AC9MA;EACE;ADgNF;AC5MA;EACE;EACA;AD8MF;AC1MA;;EAEE;AD4MF;ACxMA;;;;EACE;EACA;AD6MF;ACzMA;EACE;AD2MF;ACxMA;;EAEE;EACA;AD0MF;ACtMA;EACE;EACA;ADwMF;ACrMA;;;;;;EAME;EDuMA,qCAAqC;ECrMrC;ADuMF;ACpMA;EACE;EACA;ADsMF;ACnMA;;;EAGE;EACA;ADqMF;AClMA;;EAEE;ADoMF;ACjMA;EACE;ADmMF;AChMA;EACE;ADkMF;AC/LA;EACE;ADiMF;AC9LA;;EACE;ADiMF;AC9LA;EACE;ADgMF;AC7LA;;;;;;;;EAQE;AD+LF;AC5LA;;;;;;;;;;EAUE;AD8LF;AC3LA;EACE;AD6LF;AC1LA;EACE;EACA;AD4LF;ACzLA;EACE;EACA;AD2LF;ACxLA;EAEE;;;;;;;;;;;;;IAaE;IACA;EDyLF;ECtLA;;;;IAIE;EDwLF;ECrLA;IACE;IACA;EDuLF;ECpLA;;;IACE;EDwLF;ECrLA;;IAEE;IACA;EDuLF;AACF;ACnLA;EACE;EACA;EACA;ADqLF;AClLA;EACE;ADoLF;ACjLA;EACE;ADmLF;AChLA;EACE;EACA;EACA;ADkLF;AACA,UAAU;AC7KV;EACE;EACA;EACA;EACA;AD+KF;AC5KA;EACE;EACA;EACA;ED8KA,qBAAqB;EC5KrB;EACA;EACA;EACA;EACA;AD8KF;AC3KA;EACE;EACA;EACA;EACA;EACA;EACA;AD6KF;AC1KA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;AD4KF;ACzKA;EACE;EACA;EACA;EACA;EACA;AD2KF;ACxKA;EACE;AD0KF;ACvKA;;EACE;AD0KF;ACtKA;EACE;IACE;EDwKF;ECrKA;IACE;EDuKF;AACF;ACpKA;EDsKE,kCAAkC;ECpKlC;IACE;IACA;EDsKF;AACF;ACzJA;;EAEE;AD2JF;ACxJA;;EAEE;EACA;AD0JF;ACvJA;;EAEE;ADyJF;ACjJA;;EAEE;ADmJF;AC1IA;;EAEE;AD4IF;ACpIA;EACE;EAMA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;ADiIF;AC9HA;EACE;EAGA;EACA;AD8HF;AC5HE;;;EAGE;EACA;AD8HJ;ACzIA;EAoBI;EACA;EACA;ADwHJ;ACpHA;EACE;EACA;EACA;ADsHF;AC9GA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;ADgHF;AC9GE;;EAEE;EACA;ADgHJ;AChIA;EAuBI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AD4GJ;ACzFA;EACE;IACE;IACA;ED2FF;AACF;AC7DA;EACE;EACA;EACA;EAIA;AD4DF;ACnEA;EAUI;EACA;AD4DJ;ACvEA;EAeI;AD2DJ;AC5CA;EAEI;EACA;EACA;EACA;EACA;EACA;AD6CJ;ACpDA;;EAWM;EACA;AD6CN;ACzDA;;;;;;;;EAuBM;AD4CN;ACnEA;;;;;EA+BM;AD2CN;ACzBA;EACE;AD2BF;ACnBA;EACE;IACE;IACA;IACA;EDqBF;EClBA;IACE;IACA;IACA;EDoBF;ECjBA;IACE;IACA;IACA;IACA;IACA;EDmBF;ECbA;IACE;EDeF;ECLA;IACE;IACA;EDOF;AACF;ACIA;EACE;EACA;EACA;EACA;EACA;EACA;ADFF;ACKA;EAME;EACA;ADRF;ACUE;EACE;EACA;EACA;ADRJ;ACyBA;;;;EAIE;EACA;EACA;EACA;EACA;ADvBF;AC0BA;EACE;ADxBF;AC2BA;EACE;ADzBF","sources":["webpack:///./resources/assets/less/app.less","webpack:///./resources/assets/less/overrides.less"],"sourcesContent":["\nbody {\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\",\n \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\n sans-serif;\n font-size: 13px;\n}\n// Moved from default.blade.php\n@media (max-width: 400px) {\n .navbar-left {\n margin: 2px;\n }\n\n .nav::after {\n clear: none;\n }\n}\n\n.skin-blue .main-header .logo {\n background-color: inherit !important;\n}\n.main-header .logo {\n width: 100% !important;\n white-space: nowrap;\n text-align: left;\n display: block;\n clear: both;\n //text-overflow: hidden;\n}\n\n.huge {\n font-size: 40px;\n}\n\n.btn-file {\n position: relative;\n overflow: hidden;\n}\n\n.dropdown-menu > li > a {\n color: #354044;\n}\n\n#sort tr.cansort {\n border-radius: 2px;\n padding: 10px;\n background: #f4f4f4;\n margin-bottom: 3px;\n border-left: 2px solid #e6e7e8;\n color: #444;\n cursor: move;\n}\n\n.user-image-inline {\n float: left;\n width: 25px;\n height: 25px;\n border-radius: 50%;\n margin-right: 10px;\n}\n\n.input-group .input-group-addon {\n background-color: #f4f4f4;\n}\n\na.accordion-header {\n color: #333;\n}\n\n// Mirrors BS3's .form-group spacing (margin-bottom: 15px, no padding)\n// with a clearfix so floated col-md-* children don't leak past the\n// wrapper when the row's floats add up to less than 12 cols.\n.dynamic-form-row {\n margin-bottom: 15px;\n\n &::before,\n &::after {\n content: \" \";\n display: table;\n }\n &::after {\n clear: both;\n }\n}\n\n.handle {\n padding-left: 10px;\n}\n\n.btn-file input[type=\"file\"] {\n position: absolute;\n top: 0;\n right: 0;\n min-width: 100%;\n min-height: 100%;\n font-size: 100px;\n text-align: right;\n filter: alpha(opacity=0);\n opacity: 0;\n outline: none;\n background: white;\n cursor: inherit;\n display: block;\n}\n\n.main-footer {\n font-size: 13px;\n}\n\n.main-header {\n max-height: 150px;\n}\n\n.navbar-nav > .user-menu > .dropdown-menu {\n width: inherit;\n}\n\n.main-header .logo {\n padding: 0px 5px 0px 15px;\n}\n\n.sidebar-toggle {\n margin-left: -48px;\n z-index: 100;\n background-color: inherit;\n}\n\n.sidebar-toggle-mobile {\n z-index: 100;\n width: 50px;\n padding-top: 10px;\n}\n\n// .skin-blue .main-header .navbar .dropdown-menu li a {\n// //color: inherit;\n// }\n\n.main-header .sidebar-toggle:before {\n content: \"\\f0c9\";\n}\n\n.direct-chat-contacts {\n padding: 10px;\n height: 150px;\n}\n\n.select2-container {\n width: 100%;\n}\n.error input {\n color: #a94442;\n border: 2px solid #a94442 !important;\n}\n\n.error label,\n.alert-msg {\n color: #a94442;\n display: block;\n}\n\n// This sets the \"x\" icon in front of error messages via CSS (instead of HTML)\n// so that regardless of whether it's being invoked via server side or JS,\n// it renders consistently \n.alert-msg::before {\n content: \"\\f00d\";\n font-family: \"Font Awesome 5 Free\";\n font-weight: 900;\n margin-right: 0.35em;\n}\n\n.input-group[class*=\"col-\"] {\n padding-right: 15px;\n padding-left: 15px;\n}\n.control-label.multiline {\n padding-top: 10px;\n}\n\n.btn-outline {\n color: inherit;\n background-color: transparent;\n transition: all 0.5s;\n}\n\n.btn-primary.btn-outline {\n color: #428bca;\n}\n\n.btn-success.btn-outline {\n color: #5cb85c;\n}\n\n.btn-info.btn-outline {\n color: #5bc0de;\n}\n\n.btn-warning.btn-outline {\n color: #f0ad4e;\n}\n\n.btn-danger.btn-outline {\n color: #d9534f;\n}\n\n.btn-primary.btn-outline:hover,\n.btn-success.btn-outline:hover,\n.btn-info.btn-outline:hover,\n.btn-warning.btn-outline:hover,\n.btn-danger.btn-outline:hover {\n color: #fff;\n}\n\n.slideout-menu {\n position: fixed;\n top: 0;\n right: -250px;\n width: 250px;\n height: 100%;\n background: #333;\n z-index: 100;\n margin-top: 100px;\n color: white;\n padding: 10px;\n}\n\n.slideout-menu h3 {\n position: relative;\n padding: 5px 5px;\n color: #fff;\n font-size: 1.2em;\n font-weight: 400;\n border-bottom: 4px solid #222;\n}\n\n.slideout-menu .slideout-menu-toggle {\n position: absolute;\n top: 12px;\n right: 10px;\n display: inline-block;\n padding: 6px 9px 5px;\n font-family: Arial, sans-serif;\n font-weight: bold;\n line-height: 1;\n background: #222;\n color: #999;\n text-decoration: none;\n vertical-align: top;\n}\n\n.slideout-menu .slideout-menu-toggle:hover {\n color: #fff;\n}\n\n.slideout-menu ul {\n list-style: none;\n font-weight: 300;\n border-top: 1px solid #151515;\n border-bottom: 1px solid #454545;\n}\n\n.slideout-menu ul li {\n border-top: 1px solid #454545;\n border-bottom: 1px solid #151515;\n}\n\n.slideout-menu ul li a {\n position: relative;\n display: block;\n padding: 10px;\n color: #999;\n text-decoration: none;\n}\n\n.slideout-menu ul li a:hover {\n background: #000;\n color: #fff;\n}\n\n.slideout-menu ul li a i {\n position: absolute;\n top: 15px;\n right: 10px;\n opacity: 0.5;\n}\n\n.btn-box-tool-lg {\n font-size: 16px;\n color: orange;\n}\n\n/*Form Wizard*/\n.bs-wizard {\n margin-top: 20px;\n border-bottom: solid 1px #e0e0e0;\n padding: 0 0 10px 0;\n}\n.bs-wizard > .bs-wizard-step {\n padding: 0;\n position: relative;\n}\n\n// .bs-wizard > .bs-wizard-step + .bs-wizard-step {}\n\n.bs-wizard > .bs-wizard-step .bs-wizard-stepnum {\n color: #595959;\n font-size: 16px;\n margin-bottom: 5px;\n}\n\n.bs-wizard > .bs-wizard-step .bs-wizard-info {\n color: #999;\n font-size: 14px;\n}\n\n.bs-wizard > .bs-wizard-step > .bs-wizard-dot {\n position: absolute;\n width: 30px;\n height: 30px;\n display: block;\n background: #fbe8aa;\n top: 45px;\n left: 50%;\n margin-top: -15px;\n margin-left: -15px;\n border-radius: 50%;\n}\n\n.bs-wizard > .bs-wizard-step > .bs-wizard-dot:after {\n content: \" \";\n width: 14px;\n height: 14px;\n background: #fbbd19;\n border-radius: 50px;\n position: absolute;\n top: 8px;\n left: 8px;\n}\n\n.bs-wizard > .bs-wizard-step > .progress {\n position: relative;\n border-radius: 0px;\n height: 8px;\n box-shadow: none;\n margin: 20px 0;\n}\n\n.bs-wizard > .bs-wizard-step > .progress > .progress-bar {\n width: 0px;\n box-shadow: none;\n background: #fbe8aa;\n}\n\n.bs-wizard > .bs-wizard-step.complete > .progress > .progress-bar {\n width: 100%;\n}\n\n.bs-wizard > .bs-wizard-step.active > .progress > .progress-bar {\n width: 50%;\n}\n\n.bs-wizard > .bs-wizard-step:first-child.active > .progress > .progress-bar {\n width: 0%;\n}\n\n.bs-wizard > .bs-wizard-step:last-child.active > .progress > .progress-bar {\n width: 100%;\n}\n\n.bs-wizard > .bs-wizard-step.disabled > .bs-wizard-dot {\n background-color: #f5f5f5;\n}\n\n.bs-wizard > .bs-wizard-step.disabled > .bs-wizard-dot:after {\n opacity: 0;\n}\n\n.bs-wizard > .bs-wizard-step:first-child > .progress {\n left: 50%;\n width: 50%;\n}\n\n.bs-wizard > .bs-wizard-step:last-child > .progress {\n width: 50%;\n}\n\n.bs-wizard > .bs-wizard-step.disabled a.bs-wizard-dot {\n pointer-events: none;\n}\n/*END Form Wizard*/\n\n.left-navblock {\n display: inline-block;\n // float: left;\n text-align: left;\n color: white;\n padding: 0px;\n /* adjust based on your layout */\n}\n\na.logo.no-hover a:hover {\n background-color: transparent;\n}\n\n.index-block {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.index-block:hover{\n overflow: visible;\n white-space: normal;\n height:auto;\n}\n\ninput:required, select:required, textarea:required {\n border-right: 6px solid orange;\n}\n\n.sidebar-menu {\n font-size: 14px;\n white-space: normal;\n}\n\n@media print {\n a[href]:after {\n content: none;\n }\n\n .tab-content > .tab-pane {\n display: block !important;\n opacity: 1 !important;\n visibility: visible !important;\n }\n}\n\nimg.navbar-brand-img,\n.navbar-brand > img {\n float: left;\n padding: 5px 5px 5px 0;\n max-height: 50px;\n}\n\n.input-daterange {\n border-radius: 0px;\n}\n\n\n\n[hidden] {\n display: none !important;\n}\n\n#toolbar {\n margin-top: 10px;\n}\n\n#uploadPreview {\n border-color: grey;\n border-width: 1px;\n border-style: solid;\n}\n\n.icon-med {\n font-size: 20px;\n color: #889195;\n}\n\n#login-logo {\n padding-top: 20px;\n padding-bottom: 10px;\n max-width: 200px;\n}\n\n.left-navblock {\n max-width: 500px;\n}\n\n@import \"overrides.less\";",".main-header\n\n.logo {\n background-color: inherit;\n}\n.main-header .logo {\n width: 100% !important;\n white-space: nowrap;\n text-align: left;\n display: block;\n clear: both;\n &a:link, a:hover, a:visited {\n color: #fff\n }\n}\n.huge {\n font-size: 40px;\n}\n\n.btn-file {\n position: relative;\n overflow: hidden;\n}\n\n.dropdown-menu>li>a {\n color: #354044;\n}\n\n\n#sort tr.cansort {\n border-radius: 2px;\n padding: 10px;\n background: #f4f4f4;\n margin-bottom: 3px;\n border-inline: 2px solid #e6e7e8;\n color: #444;\n cursor: move;\n}\n\n.user-image-inline {\n float: left;\n width: 25px;\n height: 25px;\n border-radius: 50%;\n margin-right: 10px;\n}\n\n.input-group .input-group-addon {\n background-color: #f4f4f4;\n}\n\na.accordion-header {\n color: #333;\n}\n\n// Mirror BS3's .form-group spacing — same margin-bottom, no padding —\n// plus a clearfix so floated col-md-* children don't leak past the\n// wrapper. Without the clearfix, a row whose floats don't fill the full\n// 12 cols (e.g. password_confirmation at 3 + 8) leaves a gap on the\n// right edge that pulls the next row's first child up alongside it,\n// visually offsetting that row's label/input.\n.dynamic-form-row {\n margin-bottom: 15px;\n\n &::before,\n &::after {\n content: \" \";\n display: table;\n }\n &::after {\n clear: both;\n }\n}\n\n\n.handle {\n padding-left: 10px;\n}\n\n.btn-file input[type=file] {\n position: absolute;\n top: 0;\n right: 0;\n min-width: 100%;\n min-height: 100%;\n font-size: 100px;\n text-align: right;\n filter: alpha(opacity=0);\n opacity: 0;\n outline: none;\n background: white;\n cursor: inherit;\n display: block;\n}\n.main-footer {\n font-size: 13px;\n}\n.main-header {\n max-height: 150px;\n}\n\n\n.navbar-nav>.user-menu>.dropdown-menu {\n width: inherit;\n}\n.main-header .logo {\n padding: 0px 5px 0px 15px;\n}\n\n\n.sidebar-toggle {\n margin-left: -48px;\n z-index: 100;\n background-color: inherit;\n}\n\n.sidebar-toggle-mobile {\n z-index: 100;\n width: 50px;\n padding-top: 10px;\n}\n\n\n.main-header\n.navbar\n.dropdown-menu li a {\n //color: inherit;\n}\n.pull-text-right{\n text-align: right !important;\n}\n\n.main-header .sidebar-toggle:before {\n content: \"\\f0c9\";\n font-weight: 900;\n font-family: 'Font Awesome\\ 5 Free';\n}\n\n.direct-chat-contacts {\n padding: 10px;\n height: 150px;\n}\n\n.select2-container {\n width: 100%;\n}\n\n.error input {\n color: #a94442;\n border: 2px solid #a94442 !important;\n}\n\n.error label, .alert-msg {\n color: #a94442;\n display: block;\n}\n\n.input-group[class*=\"col-\"] {\n padding-right: 15px;\n padding-left: 15px;\n}\n.control-label.multiline {\n padding-top: 10px;\n}\n\n.btn-outline {\n color: inherit;\n background-color: transparent;\n transition: all .5s;\n}\n\n.btn-primary.btn-outline {\n color: #428bca;\n}\n\n.btn-success.btn-outline {\n color: #5cb85c;\n}\n\n.btn-info.btn-outline {\n color: #5bc0de;\n}\n.btn-warning{\n background-color:#f39c12 !important;\n}\n\n.btn-warning.btn-outline {\n color: #f0ad4e;\n}\n\n.btn-danger.btn-outline, a.link-danger:link, a.link-danger:visited, a.link-danger:hover {\n color: #dd4b39;\n}\n\n.btn-primary:hover,\n.btn-success:hover,\n.btn-info:hover,\n.btn-warning:hover,\n.btn-primary,\n.btn-success,\n.btn-info,\n.btn-warning,\n.btn-primary.btn-outline:hover,\n.btn-success.btn-outline:hover,\n.btn-info.btn-outline:hover,\n.btn-warning.btn-outline:hover,\n.btn-danger.btn-outline:hover {\n color: #fff !important;\n}\n\n\n\n.slideout-menu {\n position: fixed;\n top: 0;\n right: -250px;\n width: 250px;\n height: 100%;\n background: #333;\n z-index: 100;\n margin-top: 100px;\n color: white;\n padding: 10px;\n}\n.slideout-menu h3 {\n position: relative;\n padding: 5px 5px;\n color: #fff;\n font-size: 1.2em;\n font-weight: 400;\n border-bottom: 4px solid #222;\n}\n.slideout-menu .slideout-menu-toggle {\n position: absolute;\n top: 12px;\n right: 10px;\n display: inline-block;\n padding: 6px 9px 5px;\n font-family: Arial, sans-serif;\n font-weight: bold;\n line-height: 1;\n background: #222;\n color: #999;\n text-decoration: none;\n vertical-align: top;\n}\n.slideout-menu .slideout-menu-toggle:hover {\n color: #fff;\n}\n.slideout-menu ul {\n list-style: none;\n font-weight: 300;\n border-top: 1px solid #151515;\n border-bottom: 1px solid #454545;\n}\n.slideout-menu ul li {\n border-top: 1px solid #454545;\n border-bottom: 1px solid #151515;\n}\n.slideout-menu ul li a {\n position: relative;\n display: block;\n padding: 10px;\n color: #999;\n text-decoration: none;\n}\n.slideout-menu ul li a:hover {\n background: #000;\n color: #fff;\n}\n.slideout-menu ul li a i {\n position: absolute;\n top: 15px;\n right: 10px;\n opacity: .5;\n}\n\n.btn-box-tool-lg {\n font-size: 16px;\n color: orange;\n}\n\n\n\n.bs-wizard {margin-top: 20px;}\n\n/*Form Wizard*/\n.bs-wizard {border-bottom: solid 1px #e0e0e0; padding: 0 0 10px 0;}\n.bs-wizard > .bs-wizard-step {padding: 0; position: relative;}\n.bs-wizard > .bs-wizard-step + .bs-wizard-step {}\n.bs-wizard > .bs-wizard-step .bs-wizard-stepnum {color: #595959; font-size: 16px; margin-bottom: 5px;}\n.bs-wizard > .bs-wizard-step .bs-wizard-info {color: #999; font-size: 14px;}\n.bs-wizard > .bs-wizard-step > .bs-wizard-dot {position: absolute; width: 30px; height: 30px; display: block; background: #fbe8aa; top: 45px; left: 50%; margin-top: -15px; margin-left: -15px; border-radius: 50%;}\n.bs-wizard > .bs-wizard-step > .bs-wizard-dot:after {content: ' '; width: 14px; height: 14px; background: #fbbd19; border-radius: 50px; position: absolute; top: 8px; left: 8px; }\n.bs-wizard > .bs-wizard-step > .progress {position: relative; border-radius: 0px; height: 8px; box-shadow: none; margin: 20px 0;}\n.bs-wizard > .bs-wizard-step > .progress > .progress-bar {width:0px; box-shadow: none; background: #fbe8aa;}\n.bs-wizard > .bs-wizard-step.complete > .progress > .progress-bar {width:100%;}\n.bs-wizard > .bs-wizard-step.active > .progress > .progress-bar {width:50%;}\n.bs-wizard > .bs-wizard-step:first-child.active > .progress > .progress-bar {width:0%;}\n.bs-wizard > .bs-wizard-step:last-child.active > .progress > .progress-bar {width: 100%;}\n.bs-wizard > .bs-wizard-step.disabled > .bs-wizard-dot {background-color: #f5f5f5;}\n.bs-wizard > .bs-wizard-step.disabled > .bs-wizard-dot:after {opacity: 0;}\n.bs-wizard > .bs-wizard-step:first-child > .progress {left: 50%; width: 50%;}\n.bs-wizard > .bs-wizard-step:last-child > .progress {width: 50%;}\n.bs-wizard > .bs-wizard-step.disabled a.bs-wizard-dot{ pointer-events: none; }\n\n/**\nPrevent step titles from wrapping to a second line at intermediate\nwidths (QA reported ~1265px). The .bs-wizard-dot is absolutely\npositioned at top:45px per step, so any step whose stepnum grows\ntaller than one line pushes its progress bar down while its neighbours\nstay high — the connecting line looks broken. Nowrap + ellipsis keeps\nevery stepnum a consistent single-line height so the line stays\nlevel and threads through the dot centers as designed.\n */\n.bs-wizard > .bs-wizard-step .bs-wizard-stepnum {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n/*END Form Wizard*/\n\n.left-navblock {\n display: inline-block;\n float: left;\n text-align: left;\n color: white;\n padding: 0px;\n /* adjust based on your layout */\n\n}\n\n.main-header\n.navbar\n.dropdown-menu li a {\n color: #333;\n}\n\na.logo.no-hover a:hover {\n background-color: transparent;\n}\n\n\ninput:required, select:required {\n border-right: 5px solid orange;\n}\nselect:required + .select2-container .select2-selection, select:required + .select2-container .select2-selection .select2-selection--multiple {\n border-right: 5px solid orange !important;\n}\n\nbody {\n font-family: -apple-system, BlinkMacSystemFont,\n \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Cantarell\",\n \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\n sans-serif;\n font-size: 13px;\n}\n\n.sidebar-menu {\n font-size: 14px;\n white-space: normal;\n}\n\n.modal-warning .modal-help {\n color: #fff8af;\n}\n\n.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading {\n z-index: 0 !important;\n}\n\n// Clip the absolutely-positioned fixed-column overlays so they cannot\n// bleed past the container's bottom edge into the pagination area.\n.bootstrap-table .fixed-table-container {\n overflow: hidden;\n}\n\n@media print {\n\n @page {\n size: A4;\n margin: 0mm;\n }\n\n .tab-content > .tab-pane {\n display: block !important;\n opacity: 1 !important;\n visibility: visible !important;\n }\n\n .img-responsive {\n width: 200px;\n }\n\n html, body {\n width: 1024px;\n }\n\n body {\n margin: 0 auto;\n line-height: 1em;\n word-spacing:1px;\n letter-spacing:0.2px;\n font: 15px \"Times New Roman\", Times, serif;\n width: 100%;\n float: none;\n }\n\n /* avoid page-breaks inside a listingContainer*/\n .listingContainer {\n page-break-inside: avoid;\n }\n\n h1 {\n font: 28px \"Times New Roman\", Times, serif;\n }\n\n h2 {\n font: 24px \"Times New Roman\", Times, serif;\n }\n\n h3 {\n font: 20px \"Times New Roman\", Times, serif;\n }\n\n /* Improve colour contrast of links */\n a:link, a:visited {\n color: #781351\n }\n\n /* URL */\n a:link, a:visited {\n background: transparent;\n color:#333;\n text-decoration:none;\n }\n\n a[href]:after {\n content: \"\" !important;\n }\n\n a[href^=\"http://\"] {\n color:#000;\n }\n\n #header {\n height:75px;\n font-size: 24pt;\n color:black\n }\n\n div.row-new-striped {\n margin: 0px;\n padding: 0px;\n }\n\n .pagination-detail, .fixed-table-toolbar {\n visibility: hidden;\n }\n .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 .col-sm-pull-3 .col-sm-push-9 {\n float: left;\n }\n\n .col-sm-12 {\n width: 100%;\n }\n .col-sm-11 {\n width: 91.66666666666666%;\n }\n .col-sm-10 {\n width: 83.33333333333334%;\n }\n .col-sm-9 {\n width: 75%;\n }\n .col-sm-8 {\n width: 66.66666666666666%;\n }\n .col-sm-7 {\n width: 58.333333333333336%;\n }\n .col-sm-6 {\n width: 50%;\n }\n .col-sm-5 {\n width: 41.66666666666667%;\n }\n .col-sm-4 {\n width: 33.33333333333333%;\n }\n .col-sm-3 {\n width: 25%;\n }\n .col-sm-2 {\n width: 16.666666666666664%;\n }\n .col-sm-1 {\n width: 8.333333333333332%;\n }\n\n}\n\n\n.select2-selection__choice__remove {\n color: white !important;\n}\n\n.select2-selection--multiple {\n overflow-y: auto;\n}\n\n.select2-selection__choice {\n border-radius: 0px !important;\n}\n\n.select2-search select2-search--inline {\n height: 35px !important;\n float: left;\n margin: 0;\n}\n\n\n\n.select2-results__option {\n padding: 5px;\n user-select: none;\n -webkit-user-select: none;\n margin: 0px;\n}\n\nimg.navbar-brand-img, .navbar-brand>img {\n float: left;\n padding: 5px 5px 5px 0;\n max-height: 50px;\n}\n\n.asset-qr-img img {\n image-rendering: pixelated;\n}\n\n.input-daterange, .input-daterange input:first-child, .input-daterange input:last-child {\n border-radius: 0px !important;\n}\n\n.btn-checkin, .btn-checkout {\n min-width:90px;\n}\n\n\n[hidden] {\n display: none !important;\n}\n\n#toolbar {\n margin-top: 10px;\n}\n\n#uploadPreview {\n border-color: grey;\n border-width: 1px;\n border-style: solid\n}\n\n.icon-med {\n font-size: 14px;\n color: #889195;\n}\n\n#login-logo {\n padding-top: 5px;\n padding-bottom: 5px;\n padding-right: 15px;\n max-width: 200px\n}\n\n// accessibility skip link\na.skip-main {\n left:-999px;\n position:absolute;\n top:auto;\n width:1px;\n height:1px;\n overflow:hidden;\n z-index:-999;\n}\na.skip-main:focus, a.skip-main:active {\n color: #fff;\n background-color:#000;\n left: auto;\n top: auto;\n width: 30%;\n height: auto;\n overflow:auto;\n margin: 10px 35%;\n padding:5px;\n border-radius: 15px;\n border:4px solid yellow;\n text-align:center;\n font-size:1.2em;\n z-index:999;\n}\n\nh2 {\n font-size: 22px;\n}\n\nh2.task_menu {\n font-size: 14px;\n}\n\nh2 small {\n font-size: 85%;\n}\n\nh3 {\n font-size: 20px;\n}\n\nh4 {\n font-size: 16px;\n}\n\n\n.row-striped {\n vertical-align: top;\n line-height: 2.6;\n padding: 0px;\n margin-left: 20px;\n box-sizing: border-box;\n //border-left: 1px solid #dddddd;\n //border-right: 1px solid #dddddd;\n display: table;\n}\n\n.row-striped .row:nth-of-type(odd) div {\n background-color: #f9f9f9;\n border-top: 1px solid #dddddd;\n display: table-cell;\n word-wrap: break-word;\n}\n\n.row-striped .row:nth-of-type(even) div {\n background: #FFFFFF;\n border-top: 1px solid #dddddd;\n display: table-cell;\n word-wrap: break-word;\n}\n\n\n.row-new-striped {\n vertical-align: top;\n padding: 3px;\n display: table;\n width: 100%;\n word-wrap: break-word;\n table-layout:fixed;\n}\n\n/**\n* NEW STRIPING\n* This section is for the new row striping for nicer \n* display for non-table data as of v6\n**/\n.row-new-striped > .row:nth-of-type(even) {\n line-height: 1.9;\n display: table-row;\n}\n\n.row-new-striped > .row:nth-of-type(odd) {\n display: table-row;\n padding: 2px;\n}\n\n.row-new-striped div {\n display: table-cell;\n padding: 6px;\n}\n\n.row-new-striped div {\n display: table-cell;\n padding: 6px;\n}\n\n\n.row-new-striped div[class^=\"col\"]:first-child {\n font-weight: bold;\n}\n\n\n\n/**\n* This just adds a little extra padding on mobile\n**/\n@media only screen and (max-width: 520px) {\n h1.pagetitle {\n padding-top: 15px;\n padding-bottom: 15px;\n }\n\n // .firstnav { padding-top: 120px !important } used to live here as\n // another static compensation for the wrapped-header-covers-first-item\n // bug at narrow widths. Superseded by the dynamic\n // .main-sidebar padding-top: var(--main-header-height) rule; leaving\n // it would double-count on top of the runtime-measured header height.\n\n .product {\n width: 400px;\n }\n\n .product img {\n min-width: 400px;\n }\n}\n\n.card-view-title {\n min-width: 40% !important;\n line-height: 3.0!important;\n padding-right: 20px;\n}\n\n.card-view {\n display: table-row;\n flex-direction: column;\n}\n\n// ---------------\n\n/**\n\n COLUMN SELECTOR ICONS\n -----------------------------\n This is kind of weird, but it is necessary to prevent the column-selector code from barfing, since\n any HTML used in the UserPresenter \"title\" attribute breaks the column selector HTML.\n\n Instead, we use CSS to add the icon into the table header, which leaves the column selector\n \"title\" text as-is and hides the icon.\n\n See https://github.com/grokability/snipe-it/issues/7989\n */\nthead th.css-accessory > .th-inner,\nthead th.css-accessory-alt > .th-inner,\nthead th.css-barcode > .th-inner,\nthead th.css-component > .th-inner,\nthead th.css-consumable > .th-inner,\nthead th.css-envelope > .th-inner,\nthead th.css-house-flag > .th-inner,\nthead th.css-house-laptop > .th-inner,\nthead th.css-house-user > .th-inner,\nthead th.css-license > .th-inner,\nthead th.css-location > .th-inner,\nthead th.css-maintenances > .th-inner,\nthead th.css-users > .th-inner,\nthead th.css-currency > .th-inner,\nthead th.css-child-locations > .th-inner,\nthead th.css-history > .th-inner\n{\n font-size: 0px;\n line-height: 0.75 !important;\n text-align: left;\n text-rendering: auto;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n\nthead th.css-location > .th-inner::before,\nthead th.css-accessory > .th-inner::before,\nthead th.css-accessory-alt > .th-inner::before,\nthead th.css-barcode > .th-inner::before,\nthead th.css-component > .th-inner::before,\nthead th.css-consumable > .th-inner::before,\nthead th.css-envelope > .th-inner::before,\nthead th.css-house-flag > .th-inner::before,\nthead th.css-house-laptop > .th-inner::before,\nthead th.css-house-user > .th-inner::before,\nthead th.css-license > .th-inner::before,\nthead th.css-location > .th-inner::before,\nthead th.css-maintenances > .th-inner::before,\nthead th.css-users > .th-inner::before,\nthead th.css-currency > .th-inner::before,\nthead th.css-child-locations > .th-inner::before,\nthead th.css-history > .th-inner::before\n{\n display: inline-block;\n font-size: 20px;\n font-family: \"Font Awesome 5 Free\";\n font-weight: 900;\n}\n\n/**\nBEGIN ICON TABLE HEADERS\nSet the font-weight css property as 900 (For Solid), 400 (Regular or Brands), 300 (Light for pro icons).\n**/\nthead th.css-barcode > .th-inner::before\n{\n content: \"\\f02a\"; font-family: \"Font Awesome 5 Free\"; font-weight: 900;\n}\n\nthead th.css-license > .th-inner::before\n{\n content: \"\\f0c7\"; font-family: \"Font Awesome 5 Free\"; font-weight: 400;\n}\n\nthead th.css-consumable > .th-inner::before\n{\n content: \"\\f043\"; font-family: \"Font Awesome 5 Free\"; font-weight: 900;\n}\n\nthead th.css-envelope > .th-inner::before\n{\n content: \"\\f0e0\"; font-family: \"Font Awesome 5 Free\"; font-weight: 400;\n}\n\nthead th.css-accessory > .th-inner::before\n{\n content: \"\\f11c\"; font-family: \"Font Awesome 5 Free\"; font-weight: 400;\n}\n\nthead th.css-users > .th-inner::before {\n content: \"\\f0c0\"; font-family: \"Font Awesome 5 Free\"; font-size: 15px;\n}\n\nthead th.css-location > .th-inner::before {\n content: \"\\f3c5\"; font-family: \"Font Awesome 5 Free\"; font-size: 19px; margin-bottom: 0px;\n}\n\n// fa-screwdriver-wrench — matches the icon used by the maintenance tab and\n// the user-well maintenance-cost row, so the users-index column header\n// stays visually consistent with the rest of the maintenance surface.\nthead th.css-maintenances > .th-inner::before {\n content: \"\\f7d9\"; font-family: \"Font Awesome 5 Free\"; font-size: 18px; margin-bottom: 0px;\n}\n\nthead th.css-component > .th-inner::before\n{\n content: \"\\f0a0\"; font-family: \"Font Awesome 5 Free\"; font-weight: 500;\n}\n\nthead th.css-padlock > .th-inner::before\n{\n content: \"\\f023\"; font-family: \"Font Awesome 5 Free\";\n font-weight: 800;\n padding-right: 3px;\n}\n\nthead th.css-house-user > .th-inner::before {\n content: \"\\e1b0\";\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\nthead th.css-house-flag > .th-inner::before {\n content: \"\\e50d\";\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\nthead th.css-house-laptop > .th-inner::before {\n content: \"\\e066\";\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\nthead th.css-accessory-alt > .th-inner::before {\n content: \"\\f11c\";\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\n\nthead th.css-child-locations > .th-inner::before {\n content: \"\\f64f\"; // change this to f51e for coins\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\n\nthead th.css-currency > .th-inner::before {\n content: \"\\24\"; // change this to f51e for coins\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\n\nthead th.css-history > .th-inner::before {\n content: \"\\f1da\"; // change this to f51e for coins\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\n\n\n.small-box .inner {\n padding-left: 15px;\n padding-right: 15px;\n padding-top: 15px;\n color: #fff;\n}\n\n\n.small-box > a:link, .small-box > a:visited, .small-box > a:hover {\n color: #fff;\n}\n\n.select2-container--default .select2-selection--single, .select2-selection .select2-selection--single {\n border: 1px solid #d2d6de;\n border-radius: 0;\n padding: 6px 12px;\n height: 34px;\n}\n\n.form-group.has-error label, .form-group.has-error .help-block {\n color: #a94442;\n}\n\n.select2-container--default .select2-selection--multiple {\n border-radius: 0px;\n}\n\n@media screen and (max-width: 511px){\n .tab-content .tab-pane .alert-block {\n margin-top: 120px\n }\n}\n@media screen and (max-width: 912px) and (min-width: 512px){\n .navbar-custom-menu > .navbar-nav > li.dropdown.user.user-menu {\n float:right;\n }\n .navbar-custom-menu > .navbar-nav > li > .dropdown-menu {\n margin-right:-39px;\n }\n}\n\n// Legacy .sidebar-menu { margin-top: Npx } rules at 912-1268px,\n// 512-912px, and <=511px used to live here as hardcoded compensation\n// for the \"header wraps at intermediate widths and covers the first\n// sidebar item\" bug (#5085, #11868, #19482). Same story for the\n// .firstnav { padding-top: 120px !important } that used to be inside\n// the max-width: 520px block below. All three were double-counted on\n// top of the dynamic .main-sidebar padding-top: var(--main-header-height)\n// rule further down that measures the actual header height at runtime,\n// producing 200px+ visual gaps above Dashboard at those breakpoints.\n// The dynamic measurement covers all these cases correctly, so the\n// static compensation is deleted.\n@media screen and (max-width: 992px){\n .info-stack-container {\n flex-direction: column;\n }\n .col-md-3.col-xs-12.col-sm-push-9.info-stack{\n left:auto;\n order:1;\n }\n .col-md-9.col-xs-12.col-sm-pull-3.info-stack{\n right:auto;\n order:2;\n }\n .info-stack-container > .col-md-9.col-xs-12.col-sm-pull-3.info-stack > .row-new-striped > .row > .col-sm-2{\n width:auto;\n float:none;\n }\n}\n@media screen and (max-width: 992px){\n .row-new-striped div{\n width:100%;\n }\n}\n\n@media screen and (max-width: 1318px) and (min-width: 1200px){\n .admin.box{\n height:170px;\n }\n}\n@media screen and (max-width: 1494px) and (min-width: 1200px){\n .dashboard.small-box{\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: 188px;\n display: block;\n overflow: hidden;\n }\n}\n\n/** Form-stuff overrides for checkboxes and stuff **/\n\nlabel.form-control {\n display: grid;\n grid-template-columns: 1.8em auto;\n gap: 0.5em;\n border: 0px;\n padding-left: 0px;\n background-color: inherit;\n color: inherit;\n font-size: inherit;\n font-weight: inherit;\n}\n\nlabel.form-control--disabled {\n color: #959495;\n cursor: not-allowed;\n}\n\n/** Bootstrap's normalize.less sets `html input[disabled] { cursor: default }`\n at load-order line 139, and its own `.form-control[disabled] { cursor: not-allowed }`\n rule (line 2705) has higher specificity so it should win — but on some browser +\n input-group combinations the resolved cursor still ends up as `text` because the\n input-group parent's implicit text-cursor bleeds through. Explicit element-scoped\n override to lock in the \"no-entry\" cursor on any disabled form control. **/\ninput.form-control[disabled],\nselect.form-control[disabled],\ntextarea.form-control[disabled] {\n cursor: not-allowed;\n}\n\n/** Anti-autofill masking for the readonly-plus-onfocus-strip trick used on\n sensitive form fields (user create/edit username, password, email, etc.).\n The field ships with `readonly` so password managers won't prefill or\n overwrite it, then strips readonly on focus so the operator can type.\n Bootstrap's `.form-control[readonly]` styles that field with a gray\n disabled-looking background, which confuses the operator into thinking\n the field is uneditable. Override to make it visually indistinguishable\n from a regular editable input.\n Scoped to `.js-antifill-readonly` so legitimately-readonly fields\n (SAML SP entity ID, ACS/SLS URLs, generated cert, metadata URL, etc.)\n keep the gray-out styling from the readonly rule further down in this\n file. Adding `readonly` alone should look readonly; opt in to the\n autofill-masking override by adding the class explicitly.\n Deliberately does NOT match `[disabled]` — actually-disabled fields\n (demo mode locks, permission gates) must keep their grayed appearance\n and not-allowed cursor. **/\ninput.js-antifill-readonly[readonly],\ntextarea.js-antifill-readonly[readonly],\n.form-control.js-antifill-readonly[readonly] {\n cursor: text !important;\n background-color: var(--table-stripe-bg) !important;\n color: var(--color-fg) !important;\n}\n\n/** Inline \"this field is locked because the app is in demo mode\" callout.\n Rendered by the <x-demo-lock> anonymous component in resources/views/blade/demo-lock.blade.php.\n Kept as a small inline-block box so it hugs its text width regardless\n of the column it lands in (input rows use col-md-7, activated row\n uses col-md-9, so a block-level notice would stretch inconsistently). **/\n.demo-lock-notice {\n display: inline-block;\n background-color: #fcf8e3;\n border: 1px solid #faebcc;\n color: #8a6d3b;\n padding: 6px 10px;\n margin-top: 6px;\n border-radius: 3px;\n font-size: 0.9em;\n}\n\n\n/** --------------------------------------- **/\n/** Start checkbox styles to replace iCheck **/\n/** --------------------------------------- **/\ninput[type=\"checkbox\"] {\n /* Add if not using autoprefixer */\n -webkit-appearance: none;\n appearance: none;\n /* For iOS < 15 to remove gradient background */\n background-color: #fff;\n /* Not removed via appearance */\n margin: 0;\n font: inherit;\n color: #959495;\n width: 1.8em;\n height: 1.8em;\n border: 0.05em solid;\n border-radius: 0em;\n transform: translateY(-0.075em);\n display: grid;\n place-content: center;\n /*Windows High Contrast Mode*/\n}\n\n/** This sets the display of a checkbox, and what the \"fill\" checkmark should look like */\n\ninput[type=\"checkbox\"]::before {\n\n /** If you want to use the non-checkbox, filled square, use this instead **/\n content: \"\";\n width: 1em;\n height: 1em;\n transform: scale(0);\n transition: 120ms transform ease-in-out;\n box-shadow: inset 1em 1em rgb(211, 211, 211);\n content: \"\";\n width: 1em;\n height: 1em;\n clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);\n transform: scale(0);\n transform-origin: bottom left;\n transition: 120ms transform ease-in-out;\n box-shadow: inset 1em 1em #428bca;\n /* Windows High Contrast Mode */\n background-color: CanvasText;\n}\n\n/** This sets the size of the scale up for the shape we defined above **/\ninput[type=\"checkbox\"]:checked::before {\n transform: scale(1);\n}\n\n/** This sets the scale and color of the DISABLED but CHECKED checkbox */\ninput[type=checkbox]:disabled::before, input[type=radio]:disabled::before {\n content: \"\";\n width: 1em;\n height: 1em;\n transform: scale(1);\n box-shadow: inset 1em 1em rgb(211, 211, 211);\n}\n\n/* This sets the scale and style of a DISABLED checkbox that is NOT checked */\ninput[type=checkbox]:disabled:not(:checked)::before, input[type=radio]:disabled:not(:checked)::before {\n content: \"\";\n transform: scale(0);\n cursor: not-allowed;\n pointer-events:none;\n}\n\n/** this is the color of the checkbox and content on a disabled, checked box **/\ninput[type=checkbox]:disabled, input[type=radio]:disabled {\n --form-control-color: rgb(211, 211, 211);\n color: #959495;\n cursor: not-allowed;\n pointer-events:none;\n}\n\n\n/** Radio styles to replace iCheck **/\n\ninput[type=\"radio\"] {\n appearance: none;\n background-color: #fff;\n margin: 0;\n font: inherit;\n color: #959495;\n width: 1.8em;\n height: 1.8em;\n border: 0.05em solid;\n border-radius: 50%;\n transform: translateY(-0.075em);\n display: grid;\n place-content: center;\n}\n\ninput[type=\"radio\"]::before {\n content: \"\";\n width: 1em;\n height: 1em;\n border-radius: 50%;\n transform: scale(0);\n transition: 120ms transform ease-in-out;\n}\n\ninput[type=\"radio\"]:checked::before {\n transform: scale(1);\n}\n\n\n/**\n* This addresses the column selector in bootstrap-table. Without these two lines, the\n* checkbox and the <span></span> with the label text that BS tables generates will\n* end up on two different lines and it looks assy.\n */\n.dropdown-item-marker input[type=checkbox] {\n font-size: 10px;\n}\n\n.bootstrap-table .fixed-table-toolbar li.dropdown-item-marker label {\n font-weight: normal;\n display: grid;\n grid-template-columns: .1em auto;\n gap: 1.5em;\n}\n\n.container.row-striped .col-md-6 {\n overflow-wrap:anywhere;\n}\n\n.nav-tabs-custom > .nav-tabs > li {\n z-index: 1;\n}\n\n.select2-container .select2-search--inline .select2-search__field{\n padding-left:15px;\n}\n\n.nav-tabs-custom > .nav-tabs > li.active {\n font-weight: bold;\n}\n\n/** --------------------------------------- **/\n/** End checkbox styles to replace iCheck **/\n/** --------------------------------------- **/\n\n/**\n/** Separator styles with text in the middle. Currently only used by the login page but\n/** could be used elsewhere.\n */\n\n.separator {\n display: flex;\n align-items: center;\n text-align: center;\n padding-top: 20px;\n color: #959495;\n}\n\n.separator::before,\n.separator::after {\n content: '';\n flex: 1;\n border-bottom: 1px solid #959495;\n}\n\n.separator:not(:empty)::before {\n margin-right: .25em;\n}\n\n.separator:not(:empty)::after {\n margin-left: .25em;\n}\n.datepicker.dropdown-menu {\n z-index: 1030 !important;\n}\n\n.sidebar-menu > li .badge {\n margin-top: 0px;\n filter: brightness(70%);\n font-size: 70%;\n}\n\n/** this is needed to override ekko-lightboxes card view styles **/\n.bootstrap-table .fixed-table-container .table tbody tr .card-view {\n display: table-row !important;\n}\n\ntd.text-right.text-padding-number-cell {\n padding-right: 30px !important;\n white-space: nowrap;\n}\n\nth.text-right.text-padding-number-footer-cell {\n padding-right: 20px !important;\n white-space: nowrap;\n}\n\ncode.single-line {\n white-space: pre-wrap;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n overflow: hidden;\n max-width: 400px;\n}\n\np.monospace, span.monospace {\n font-family: monospace, monospace;\n}\n\nlegend.highlight {\n background: repeating-linear-gradient(\n 45deg,\n #222d32,\n #222d32 10px,\n #444 10px,\n #444 11px\n );\n\n color: #fff;\n font-size: 18px;\n padding: 6px 6px 6px 10px;\n}\n\nlegend.highlight a {\n color: #fff;\n cursor: pointer;\n}\n\nfieldset.bottom-padded {\n padding-bottom: 20px;\n}\n\ncaption.tableCaption {\n font-size: 18px;\n padding-left: 8px;\n}\n\n\n.markdown-field-content {\n h1 { font-size: 22px; font-weight: 700; margin: 6px 0 4px; }\n h2 { font-size: 20px; font-weight: 700; margin: 6px 0 4px; }\n h3 { font-size: 18px; font-weight: 700; margin: 6px 0 4px; }\n h4 { font-size: 16px; font-weight: 700; margin: 4px 0 4px; }\n h5, h6 { font-size: 14px; font-weight: 700; margin: 4px 0 4px; }\n p { margin: 0 0 4px; }\n p:last-child { margin-bottom: 0; }\n ul, ol { margin: 0 0 4px; padding-left: 20px; }\n > *:first-child { margin-top: 0; }\n}\n\n// via https://github.com/grokability/snipe-it/issues/11754\n.sidebar-toggle.btn {\n border-radius: 3px;\n box-shadow: none;\n border-top: 0px solid transparent;\n border-bottom: 0px solid transparent;\n padding-left: 15px;\n padding-right: 15px;\n padding-top: 12px;\n padding-bottom: 12px;\n margin-left: -47px;\n margin-top: 2px;\n}\n\n\n.visually-hidden {\n width: 1px;\n height: 1px;\n margin: -1px;\n overflow: hidden;\n clip: rect(0,0,0,0);\n white-space: preserve;\n display: inline-block;\n}\n\ninput[name=\"columnsSearch\"] {\n width: 120px;\n}\n\n.callout.callout-legend {\n padding: 15px 30px 15px 15px;\n font-size: 100%;\n border-radius: 0px;\n}\n\n.callout.callout-legend h4 {\n font-size: 16px;\n font-weight: bold;\n margin-top: 5px;\n margin-bottom: 0px;\n}\n\n.callout.callout-legend a {\n text-decoration: none;\n cursor: pointer;\n}\n\np.callout-subtext {\n margin-top: 5px;\n}\n\n/**\nThis just hides the padding on the right side of the mark tag for a less weird visual experience\n */\nmark {\n padding-right: 0px;\n}\n\n/**\nRadio toggle styles for permission settings and check/uncheck all\n */\n.radio-toggle-wrapper {\n display: flex;\n padding: 2px;\n background-color: #e9e9e9;\n margin-bottom: 3px;\n border-radius: 4px;\n border: 1px #d6d6d6 solid;\n}\n\n.radio-slider-inputs {\n flex-grow: 1;\n}\n\n.radio-slider-inputs input[type=radio] {\n display: none;\n}\n\n.radio-slider-inputs label {\n display: block;\n margin-bottom: 0px;\n padding: 6px 8px;\n color: #fff;\n font-weight: bold;\n text-align: center;\n transition : all .4s 0s ease;\n cursor: pointer;\n}\n\n.radio-slider-inputs label {\n color: #9a9999;\n border-radius: 4px;\n border: 1px transparent solid;\n}\n\n.radio-slider-inputs .allow:checked + label {\n background-color: green;\n color: white;\n border-radius: 4px;\n border: 1px transparent solid;\n}\n\n.radio-slider-inputs .inherit:checked + label {\n background-color: rgba(255, 204, 51, 0.11);\n color: #9a9999;\n border-radius: 4px;\n border: 1px white solid;\n}\n\n.radio-slider-inputs .deny:checked + label {\n background-color: #a94442;\n color: white;\n border-radius: 4px;\n border: 1px transparent solid;\n}\n\n.remember-toggle {\n cursor: pointer;\n}\n\n.js-copy-link {\n float: left;\n color: grey;\n}\n\n.deleted {\n text-decoration: line-through;\n}\n\n\n//css to add hamburger and create dropdown on small screens\n@nav-link-hover-bg: #eeeeee;\n@border-radius-base: 5px;\n@screen-xs-max: 767px;\n\n.nav-tabs.nav-tabs-dropdown,\n.nav-tabs-dropdown {\n @media (max-width: @screen-xs-max) {\n overflow: hidden;\n position: relative;\n\n &::after {\n content: \"☰\";\n position: absolute;\n font-size: 35px;\n top: 0;\n right: 15px;\n z-index: 2;\n pointer-events: none;\n }\n\n &.open {\n a {\n position: relative;\n display: block;\n }\n\n > li.active > a {\n background-color: @nav-link-hover-bg;\n\n }\n }\n\n li.snipetab {\n margin-right: 0 !important;\n }\n\n li {\n display: block;\n padding: 0;\n vertical-align: bottom;\n white-space: nowrap !important;\n }\n\n > li > a {\n position: absolute;\n top: 0;\n left: 0;\n margin: 0;\n width: 100%;\n height: 100%;\n display: inline-block;\n border-color: transparent;\n\n &:focus,\n &:hover,\n &:active {\n border-color: transparent;\n border-right: 0 !important;\n }\n }\n\n > li.active > a {\n display: block;\n border-color: transparent !important;\n position: relative;\n z-index: 1;\n\n &:focus,\n &:hover,\n &:active {\n border-color: transparent !important;\n }\n\n }\n }\n\n// Advanced-search \"Clear all\" pill. AdminLTE's default anchor styles pull the\n// color toward the theme's link tint on :hover / :focus, which reads black on\n// the red pill background. Pin white in every interactive state so the pill\n// stays legible.\n.snipe-advanced-search-tags-clear-all,\n.snipe-advanced-search-tags-clear-all:link,\n.snipe-advanced-search-tags-clear-all:visited,\n.snipe-advanced-search-tags-clear-all:hover,\n.snipe-advanced-search-tags-clear-all:focus,\n.snipe-advanced-search-tags-clear-all:active {\n color: #fff !important;\n text-decoration: none;\n}\n}\n\n// Spin the help-icon (life-ring) on hover/focus of the info tooltip anchor.\n// Uses Font Awesome's built-in fa-spin animation. Gated by the\n// prefers-reduced-motion rule below.\n.tooltip-spin-hover:hover i,\n.tooltip-spin-hover:focus i {\n animation: fa-spin 2s infinite linear;\n}\n\n// Bootstrap 3 tops out at .modal-lg (900px). The wizard-style modals\n// (e.g. the CSV importer) need more horizontal room for their mapping\n// grid + preview table, so add a .modal-xl above modal-lg. Follows the\n// same @media breakpoint BS3 uses for .modal-lg (>= 992px) and caps at\n// 1400px so it doesn't stretch obnoxiously on ultra-wide monitors.\n@media (min-width: 992px) {\n .modal-xl {\n width: 90%;\n max-width: 1400px;\n }\n}\n\n// Long wizard content (dozens of mapping rows) can push the modal past\n// the viewport. Bootstrap 3 doesn't scroll the modal-body by default, so\n// the footer buttons (Back / Next / Preview / Process) end up below the\n// fold with no way to reach them. Cap the modal-body height and let it\n// scroll internally instead. Scoped to .modal-xl so smaller confirm-\n// action modals aren't affected. 200px leaves room for header (~60),\n// footer (~60), and the modal's own top/bottom margins. overflow-x is\n// hidden so a stray col-* with negative row margins doesn't produce a\n// horizontal scrollbar on the type-selection and mapping steps; the\n// preview step's wide sample table has its own .table-responsive\n// wrapper for horizontal scrolling.\n.modal-xl .modal-body {\n max-height: calc(100vh - 200px);\n overflow-y: auto;\n overflow-x: hidden;\n}\n\n// Bootstrap 3's .form-horizontal .form-group carries -15px left/right\n// margins that cancel a modal-body's default 15px padding, leaving all\n// form content pinned flush to the modal edges. Zero it out inside the\n// wizard modal so labels + inputs stay inset from the modal chrome. The\n// inner .col-* children retain their own 15px padding, so the standard\n// horizontal-form gutter still lands correctly.\n.modal-xl .modal-body.form-horizontal > .form-group,\n.modal-xl .modal-body.form-horizontal > .row > .form-group {\n margin-left: 0;\n margin-right: 0;\n}\n\n// bs-wizard-stepnum ships hardcoded #595959 in bootstrap-less, which is\n// near-invisible against the dark-theme background. Override to the\n// theme's own body text color so \"Choose type\" / \"Map fields\" / \"Preview\"\n// stay readable in dark mode.\n[data-theme=\"dark\"] .bs-wizard > .bs-wizard-step .bs-wizard-stepnum,\n[data-theme=\"dark\"] .bs-wizard > .bs-wizard-step .bs-wizard-info {\n color: #d0d0d0;\n}\n\n// Respect the user's OS-level \"reduce motion\" preference. The Font Awesome\n// spinners (.fa-spin) and Font Awesome Animation pulses (.faa-pulse, .animated)\n// loop indefinitely, which can trigger vestibular symptoms. One-shot animations\n// (like the confetti burst on save) are left alone since they don't loop.\n@media (prefers-reduced-motion: reduce) {\n // Catch-all for any Font Awesome Animation utility (faa-pulse, faa-spin,\n // faa-tada, faa-shake, faa-bounce, faa-burst, faa-flash, faa-float,\n // faa-horizontal, faa-vertical, faa-passing, faa-ring, faa-slide, etc.)\n // regardless of whether the animation is always-on (.animated) or hover-\n // triggered (.animated-hover:hover). Attribute selector keeps this rule\n // safe against future FA-Animation class additions.\n [class*=\"faa-\"].animated,\n [class*=\"faa-\"].animated-hover:hover,\n .tooltip-spin-hover:hover i,\n .tooltip-spin-hover:focus i,\n .fa-spin,\n .fa-pulse {\n animation: none !important;\n }\n}\n\n// ============================================================================\n// Theme mode CSS custom properties.\n//\n// Originally lived as an inline <style> block in layouts/default.blade.php,\n// migrated here so the layout stops carrying ~1200 lines of raw CSS and so\n// layouts/basic.blade.php (login, error pages) can inherit the same theming\n// by loading all.css alone.\n//\n// CSS Colors 5 expressions (hsl(from ...), light-dark(...)) are wrapped in\n// Less's ~\"...\" escape so the compiler emits them verbatim instead of trying\n// to parse `l - 10` as its own variable arithmetic.\n//\n// Per-tenant color overrides (header_color, nav_link_color, link_light_color,\n// link_dark_color) are NOT moved here — they still live in the tiny inline\n// <style> block in default.blade.php and win on cascade order. The defaults\n// baked in below match what the blade fallbacks currently emit when a tenant\n// has not customized their colors.\n// ============================================================================\n\n:root {\n color-scheme: light dark;\n --color-bg: ~\"light-dark(#ecf0f5, #222222)\";\n --btn-theme-hover-text-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l - 10)),hsl(from var(--main-theme-color) h s calc(l - 10)))\";\n --btn-theme-hover: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l - 10)),hsl(from var(--main-theme-color) h s calc(l - 10)))\";\n --btn-theme-text-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 10)),hsl(from var(--main-theme-color) h s calc(l - 10)))\";\n --color-fg: ~\"light-dark(#373636, #ffffff)\";\n --main-footer-bg-color: ~\"light-dark(#ffffff,#3d4144)\";\n --main-footer-text-color: ~\"light-dark(#605e5e, #d2d6de)\";\n --main-footer-top-border-color: ~\"light-dark(#d2d6de,#605e5e)\";\n --main-theme-color: #3c8dbc;\n --nav-hover-text-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\";\n --nav-primary-text-color: #ffffff;\n --search-highlight: #e9d15b;\n --sidenav-hover-color-bg: #4c4b4b;\n --sidenav-text-hover-color: #fff;\n --sidenav-text-nohover-color: #b8c7ce;\n --table-border-row-color: ~\"light-dark(#ecf0f5, #656464)\";\n --table-border-row-top: 1px solid #ecf0f5;\n --table-border-row: 1px solid var(--table-border-row-color);\n --table-stripe-bg-alt: ~\"light-dark(rgba(211, 211, 211, 0.25), #323131)\";\n --table-stripe-bg: ~\"light-dark(#ffffff, #494747)\";\n --text-danger: ~\"light-dark(#a94442, #fa5b48)\";\n --text-help: ~\"light-dark(#777676,#a6a4a4)\";\n --text-info: ~\"light-dark(#31708f,#2baae6)\";\n --text-success: ~\"light-dark(#039516,#4ced61)\";\n --text-warning: ~\"light-dark(#da9113,#f3a51f)\";\n --input-border-color: ~\"light-dark(#d2d6de,#656464)\";\n --default-label-link-bg: var(--color-bg);\n --default-label-link-text: ~\"light-dark(#296282, #5fa4cc)\";\n --default-label-link-border: ~\"1px solid light-dark(#b8c7ce, #494747)\";\n}\n\n[data-theme=\"light\"] {\n color-scheme: light;\n --box-bg: #ffffff;\n --box-header-bottom-border-color: #f4f4f4;\n --box-header-bottom-border: 1px solid var(--box-header-bottom-border-color);\n --box-header-top-border-color: #d2d6de;\n --box-header-top-border: 3px solid var(--box-header-top-border-color);\n --btn-theme-base: ~\"hsl(from var(--main-theme-color) h s calc(l + 5))\";\n --btn-theme-border: ~\"hsl(from var(--btn-theme-base) h s calc(l + 20))\";\n --btn-theme-hover-text-color: var(--nav-primary-text-color);\n --btn-theme-hover: var(--main-theme-hover);\n --callout-bg-color: var(--box-header-bottom-border-color);\n --callout-left-border: var(--box-header-top-border-color);\n --header-color: #000000;\n --input-group-bg: ~\"hsl(from var(--box-bg) h s calc(l - 5))\";\n --input-group-fg: ~\"hsl(from var(--input-group-bg) h s calc(l - 50))\";\n --link-color: #296282;\n --link-hover: ~\"hsl(from var(--link-color) h s calc(l - 10))\";\n --main-theme-hover: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\";\n --tab-bottom-border: 1px solid var(--box-header-top-border-color);\n --text-legend-help: var(--text-help);\n}\n\n[data-theme=\"dark\"] {\n color-scheme: dark;\n --box-bg: #3d4144;\n --box-header-bottom-border-color: #605e5e;\n --box-header-bottom-border: 1px solid var(--box-header-bottom-border-color);\n --box-header-top-border-color: #605e5e;\n --box-header-top-border: 3px solid var(--box-header-top-border-color);\n --btn-theme-base: ~\"hsl(from var(--main-theme-color) h s calc(l + 5))\";\n --btn-theme-border: ~\"hsl(from var(--btn-theme-base) h s calc(l + 20))\";\n --btn-theme-hover-text-color: var(--nav-primary-text-color);\n --btn-theme-hover: var(--main-theme-hover);\n --callout-bg-color: var(--box-header-top-border-color);\n --callout-left-border: #323131;\n --header-color: #ffffff;\n --input-group-bg: ~\"hsl(from var(--box-bg) h s calc(l + 10))\";\n --input-group-fg: ~\"hsl(from var(--input-group-bg) h s calc(l + 50))\";\n --link-color: #5fa4cc;\n --link-hover: ~\"hsl(from var(--link-color) h s calc(l + 15))\";\n --main-theme-hover: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\";\n --tab-bottom-border: 1px solid var(--box-header-top-border-color);\n --text-legend-help: #d6d6d6;\n}\n\n\n// ============================================================================\n// Theme-mode SELECTOR rules (paired with the variable definitions above).\n//\n// All ~1170 lines of \".selector { background-color: var(--foo); }\" style\n// rules that used to live in layouts/default.blade.php's inline <style>\n// block. Every line reads from a CSS custom property defined earlier in\n// this file — no per-tenant Blade interpolation lives here.\n//\n// CSS Colors 5 expressions (hsl(from ...), light-dark(...)) are wrapped in\n// Less's ~\"...\" escape so the compiler emits them verbatim.\n// ============================================================================\n\n.label2_fields,\n.l2fd-main,\n.l2fd-listitem,\n.fixed-table-loading,\n.list-group-item {\n background-color: var(--box-bg) !important;\n color: var(--color-fg) !important;\n}\n\n.list-group-item {\n border: var(--tab-bottom-border);\n}\n\nfooter.main-footer {\n color: var(--main-footer-text-color) !important;\n background-color: var(--main-footer-bg-color) !important;\n border-top: 1px solid var(--main-footer-top-border-color) !important;\n}\n\na,\na:link,\na:visited {\n color: var(--link-color);\n}\n\na:hover,\na:focus {\n color: var(--link-hover) !important;\n}\n\nlabel.form-control {\n color: var(--color-fg) !important;\n}\n\n.footer-links a {\n color: var(--link-color) !important;\n}\n\nh2 small {\n color: var(--color-fg) !important;\n}\n\n.btn-theme {\n background-color: var(--btn-theme-base);\n /*color: var(--btn-theme-hover-text-color) !important;*/\n color: var(--nav-primary-text-color) !important;\n border: ~\"1px solid hsl(from var(--btn-theme-base) h s calc(l - 15))\" !important;\n}\n\n.btn-theme:hover {\n background-color: var(--btn-theme-hover);\n /*color: var(--btn-theme-hover-text-color) !important;*/\n color: var(--nav-primary-text-color) !important;\n border: ~\"1px solid hsl(from var(--btn-theme-base) h s calc(l - 15))\" !important;\n}\n\n.btn-theme.active {\n background-color: var(--btn-theme-hover) !important;\n}\n\n.btn-theme:focus {\n color: var(--nav-primary-text-color) !important;\n}\n\n\n.dropdown-wrapper,\n.js-data-ajax,\n.option,\n.select2 .select2-container .select2-container--default,\n.select2,\n.select2-choice,\n.select2-container,\n.select2-results__option,\n.select2-search input,\n.select2-search--dropdown,\n.select2-search__field,\n.select2-selection .select2-selection--single,\n.select2-selection,\n.select2-selection--single,\n.select2-selection__rendered,\ninput[type=\"date\"],\ninput[type=\"number\"],\ninput[type=\"text\"],\ninput[type=\"url\"],\ninput[type=\"email\"],\ninput[type=\"password\"],\ninput[type=\"tel\"],\noption:active,\noption[active],\noption[selected],\nselect option,\nselect,\ntextarea {\n background-color: var(--table-stripe-bg) !important;\n color: var(--color-fg) !important;\n border-color: var(--input-border-color) !important;\n\n}\n\n.select2-container--default.select2-container--focus .select2-selection--multiple,\n.select2-container--default .select2-search--dropdown .select2-search__field {\n border-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\" !important;\n}\n\n/**\nSafari ignores option[selected] styling on plain <select multiple> until\nthe user interacts with the list, so pre-selected options render with\nthe browser's default light highlight. Force a lighter background on the\nwhole select in dark mode so pre-selected items stay readable.\n */\n[data-theme=\"dark\"] select[multiple],\n[data-theme=\"dark\"] select[multiple] option {\n background-color: #d2d6de !important;\n color: #373636 !important;\n}\n\n/**\nSite-logo preview swatch on Settings > Branding. Uses the tenant header\ncolor as its background so the logo shows against the same color it will\nhave in the top nav. The header-color picker on the branding page writes\n--main-theme-color inline on <html> for live preview, so this rule picks\nup that update automatically.\n */\n.header-preview {\n background-color: var(--main-theme-color);\n}\n\n/**\nMultiselect maybe?\n */\n.select2-results__option[aria-selected=true] {\n background-color: var(--main-theme-color) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n.select2-results__option[aria-selected=false] {\n background-color: var(--table-stripe-bg) !important;\n /*background-color: hsl(from var(--main-theme-color) h s calc(l - 15)) !important;*/\n /*color: var(--nav-primary-text-color) !important;*/\n color: var(--color-fg) !important;\n}\n\n/**\nHighlight the select2 on hover when NOT the selected option\n */\n.select2-results__option--highlighted[aria-selected=false] {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\" !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n/**\nHighlight the select2 on hover when the selected option\n */\n.select2-results__option--highlighted[aria-selected=true],\n.select2-results__option--highlighted[aria-selected=true]:hover,\n.select2-results__option--highlighted[aria-selected=true]:link,\n.select2-results__option--highlighted[aria-selected=true]:focus,\n.select2-results__option--highlighted[aria-selected=true]:visited {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 15))\" !important;\n /*color: var(--color-fg) !important;*/\n color: var(--nav-primary-text-color) !important;\n}\n\n.select2-selection__choice,\n.select2-container--default .select2-selection--multiple .select2-selection__choice {\n background-color: var(--main-theme-color) !important;\n border-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 15))\" !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n.select2-selection__choice__remove {\n color: var(--nav-primary-text-color) !important;\n}\n\n.select2-container--default .select2-selection--multiple .select2-selection__choice {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\" !important;\n color: var(--nav-primary-text-color) !important;\n overflow-y: auto;\n}\n\n/*\neonasdan bootstrap-datetimepicker widget: match the app's theme color\nfor selected/today cells and follow light/dark mode for the popup\nchrome. Ships with Bootstrap's stock #337ab7 which looks off next to\nAdminLTE.\n\n- All toolbar buttons: .bootstrap-datetimepicker-widget li.picker-switch a[data-action]\n- Individual buttons: a[data-action=\"today\"], a[data-action=\"clear\"], a[data-action=\"close\"] - -\n- The <td> cell each button sits in: .bootstrap-datetimepicker-widget li.picker-switch td\n- The icon <span> inside the anchor: .bootstrap-datetimepicker-widget li.picker-switch a[data-action] > span\n*/\n.bootstrap-datetimepicker-widget {\n z-index: 1030 !important;\n background-color: var(--box-bg) !important;\n color: var(--color-fg) !important;\n}\n\n/* Widget border in the theme color so the popup edge visually\n matches other themed boxes in the app. */\n.bootstrap-datetimepicker-widget.dropdown-menu {\n border: 1px solid var(--main-theme-color) !important;\n}\n\n/* The connecting caret between the input and the popup is drawn\n with two triangles: :before is the outer border outline (7px),\n :after is the inner fill (6px, sits inside the :before). Match\n the widget's own theme-color border on the outer triangle, and\n the widget's background on the inner. */\n.bootstrap-datetimepicker-widget.dropdown-menu.bottom:before {\n border-bottom-color: var(--main-theme-color) !important;\n}\n\n.bootstrap-datetimepicker-widget.dropdown-menu.bottom:after {\n border-bottom-color: var(--box-bg) !important;\n}\n\n.bootstrap-datetimepicker-widget.dropdown-menu.top:before {\n border-top-color: var(--main-theme-color) !important;\n}\n\n.bootstrap-datetimepicker-widget.dropdown-menu.top:after {\n border-top-color: var(--box-bg) !important;\n}\n\n/* Side-by-side (date + time) mode ships at 38em, not wide enough\n once the format includes seconds. Bump up to give the time cells\n room. */\n.bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs {\n width: 42em !important;\n}\n\n/* Compact (non-sideBySide) mode. Library default is 19em, which is\n too narrow for the time-picker view — hour/minute/second cells\n are 54px each and the increment/decrement arrow buttons add width\n on top of that, so under ~300px the time view gets clipped. Sizing\n to fit the widest child (the time view) also gives the calendar\n view plenty of room. */\n.bootstrap-datetimepicker-widget.dropdown-menu:not(.timepicker-sbs) {\n min-width: 320px;\n}\n\n.bootstrap-datetimepicker-widget table td.active,\n.bootstrap-datetimepicker-widget table td.active:hover,\n.bootstrap-datetimepicker-widget table td span.active,\n.bootstrap-datetimepicker-widget table td span.active:hover {\n background-color: var(--main-theme-color) !important;\n color: var(--nav-primary-text-color) !important;\n text-shadow: none !important;\n}\n\n.bootstrap-datetimepicker-widget table td.today:before {\n border-bottom-color: var(--main-theme-color) !important;\n}\n\n/* Cell hover: theme color background + white text — same shape as\n \"active\" so contrast is guaranteed in both light and dark mode. */\n.bootstrap-datetimepicker-widget table td:hover,\n.bootstrap-datetimepicker-widget table td span:hover,\n.bootstrap-datetimepicker-widget table thead tr:first-child th:hover {\n background-color: var(--main-theme-color) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n/* Time-picker text (compact mode). Bootstrap's .btn base color is\n #333 which is invisible on the dark box-bg in dark mode; force\n these text elements to inherit the widget's --color-fg instead\n so they read in both themes.\n - .timepicker-hour / -minute / -second : the big clickable digits\n - .separator : the colon between them\n - .timepicker-picker .btn : the up/down arrow buttons\n - .timepicker-picker .btn span : the FA icon inside those\n - .timepicker-hours / -minutes / -seconds .btn : the expanded grid\n of pickable hour/minute/second numbers when you click a digit */\n.bootstrap-datetimepicker-widget .timepicker-hour,\n.bootstrap-datetimepicker-widget .timepicker-minute,\n.bootstrap-datetimepicker-widget .timepicker-second,\n.bootstrap-datetimepicker-widget .separator,\n.bootstrap-datetimepicker-widget .timepicker-picker .btn,\n.bootstrap-datetimepicker-widget .timepicker-picker .btn span,\n.bootstrap-datetimepicker-widget .timepicker-hours td,\n.bootstrap-datetimepicker-widget .timepicker-minutes td,\n.bootstrap-datetimepicker-widget .timepicker-seconds td {\n color: var(--color-fg) !important;\n}\n\n/* The empty <td class=\"separator\"> cells above and below the \":\"\n are pure spacers, but were rendering visible \"lines\" around the\n colon. Force their background to match the popup so they blend\n into the widget in both light and dark mode.\n\n Also kill the ::before / ::after pseudo-elements — the app's own\n .separator class elsewhere in the codebase draws horizontal grey\n border-bottom lines via those pseudos (for section dividers), and\n class-name collides with the library's timepicker separator td. */\n.bootstrap-datetimepicker-widget .separator {\n background-color: var(--box-bg) !important;\n border: none !important;\n box-shadow: none !important;\n}\n\n.bootstrap-datetimepicker-widget .separator::before,\n.bootstrap-datetimepicker-widget .separator::after {\n display: none !important;\n content: none !important;\n border: none !important;\n}\n\n/* Same treatment for the increment/decrement arrow buttons — no\n border/box-shadow/focus outline so the time-picker column doesn't\n get sub-lines between each button. */\n.bootstrap-datetimepicker-widget .timepicker-picker .btn {\n background-color: var(--box-bg) !important;\n border: none !important;\n box-shadow: none !important;\n outline: none !important;\n}\n\n.bootstrap-datetimepicker-widget .timepicker-picker .btn:focus,\n.bootstrap-datetimepicker-widget .timepicker-picker .btn:active {\n outline: none !important;\n box-shadow: none !important;\n}\n\n\n/* Button hover — matches the whole <a> element */\n.bootstrap-datetimepicker-widget li.picker-switch a[data-action]:hover,\n.bootstrap-datetimepicker-widget li.picker-switch td:hover {\n background-color: transparent !important;\n border-radius: 0 !important;\n\n}\n\n\n.input-group-addon {\n background-color: var(--input-group-bg) !important;\n color: var(--input-group-fg) !important;\n border-color: var(--input-border-color) !important;\n}\n\ninput:disabled,\ninput[type=\"checkbox\"]:disabled,\ninput[type=\"radio\"]:disabled,\ninput[readonly],\ntextarea[readonly],\ntextarea:disabled,\n.select2-container--default.select2-container--disabled .select2-selection--single,\n.select2-container--default.select2-container--disabled .select2-selection--multiple,\n.select2-container--default.select2-container--disabled .select2-selection__rendered,\n.select2-results__option[aria-disabled=true],\n.select2-container--default.select2-container--disabled .select2-selection--multiple .select2-search--inline {\n background-color: ~\"light-dark(rgb(234, 232, 232), rgb(117, 116, 117))\" !important;\n cursor: not-allowed !important;\n}\n\n.select2-container--default.select2-container--disabled .select2-search__field::placeholder {\n color: var(--text-help) !important;\n opacity: 1 !important;\n}\n\ninput[type=\"search\"].search-highlight {\n background-color: var(--search-highlight);\n border: ~\"1px solid hsl(from var(--search-highlight) h s calc(l - 20))\" !important;\n}\n\n.content-wrapper {\n background-color: var(--color-bg);\n}\n\n.btn-anchor {\n outline: none !important;\n padding: 0;\n border: 0;\n padding-left: 20px;\n vertical-align: baseline;\n cursor: pointer;\n}\n\nh1,\nh2,\nh3,\nh4,\np,\n.modal-title,\n.modal-header h2 {\n color: var(--color-fg) !important;\n}\n\n.btn-danger,\n.btn-danger:hover,\n.btn-danger:focus,\n.btn-warning,\n.btn-warning:hover,\n.btn-warning:focus,\n.btn-primary,\n.btn-primary:hover,\n.btn-primary:focus,\n.modal-danger,\n.modal-danger h2,\n.modal-warning h2,\n.modal-danger h4,\n.modal-warning h4,\n.box-solid.box-danger > .box-header,\n.box-solid.box-danger > .box-header .box-title,\n.bg-maroon,\n.bg-maroon:hover,\n.bg-maroon:focus,\n.bg-purple,\n.bg-purple:hover,\n.bg-purple:focus {\n color: white !important;\n}\n\n\n.btn-selected,\n.btn-selected a,\n.btn-selected:hover,\n.btn-selected:focus {\n color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 30)), hsl(from var(--main-theme-color) h s calc(l + 30)))\" !important;\n background-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l - 20)), hsl(from var(--main-theme-color) h s calc(l - 20)))\" !important;\n border-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l - 25)), hsl(from var(--main-theme-color) h s calc(l - 25)))\" !important;\n\n}\n\n.btn-default,\n.btn-default:hover {\n color: #3d4144 !important;\n}\n\nbody {\n background-color: var(--color-bg);\n color: var(--color-fg);\n}\n\n\nlabel,\n.icon-med,\n.nav-tabs-custom > .nav-tabs > li > a,\n.nav-tabs-custom > .nav-tabs > li.active > a:link {\n color: var(--color-fg);\n}\n\n/**\nGeneric popover: Bootstrap 3 hardcodes body bg to #fff and text to #333,\nwhich reads as white-on-white in dark mode. Route background, text, and\nborder through the theme variables so both modes render legibly and the\nhelp-popover variant keeps its more specific styling further down.\n */\n.popover {\n background-color: var(--box-bg) !important;\n color: var(--color-fg) !important;\n border-color: var(--box-header-top-border-color) !important;\n}\n\n.popover-title,\n.popover-content {\n background-color: var(--box-bg) !important;\n color: var(--color-fg) !important;\n}\n\n/**\nPopover arrows: Bootstrap 3 defaults the inner arrow to #fff and the\nouter to rgba(0,0,0,.25). In dark mode the outer disappears entirely\n(no contrast against the darker surroundings) and the inner reads as a\nwhite notch. Bind both to theme vars so every position (top / right /\nbottom / left) shows a visible connector between the popover body and\nits trigger in both modes.\n */\n.popover.top .arrow { border-top-color: var(--box-header-top-border-color) !important; }\n.popover.top .arrow:after { border-top-color: var(--box-bg) !important; }\n\n.popover.right .arrow { border-right-color: var(--box-header-top-border-color) !important; }\n.popover.right .arrow:after { border-right-color: var(--box-bg) !important; }\n\n.popover.bottom .arrow { border-bottom-color: var(--box-header-top-border-color) !important; }\n.popover.bottom .arrow:after { border-bottom-color: var(--box-bg) !important; }\n\n.popover.left .arrow { border-left-color: var(--box-header-top-border-color) !important; }\n.popover.left .arrow:after { border-left-color: var(--box-bg) !important; }\n\n.table-bordered > tbody > tr > td,\n.table-bordered > tbody > tr > th,\n.table-bordered > tfoot > tr > td,\n.table-bordered > tfoot > tr > th,\n.table-bordered > thead > tr > td,\n.table-bordered > thead > tr > td,\n.table-bordered > thead > tr > th,\n.table-bordered > thead > tr > th,\n.table-bordered,\n.well {\n border: 1px solid var(--box-header-top-border-color) !important;\n border-left-color: var(--box-header-top-border-color) !important;\n border-right-color: var(--box-header-top-border-color) !important;\n}\n\n.box {\n border-top: 3px solid;\n}\n\n/* .bs-wizard's connecting line background (.progress = #f5f5f5) and\n inactive-step dots (#f5f5f5) both wash out against the dark-mode\n body. Bump to the theme's mid-gray so wizard steps stay visible\n on setup, importer modal, and the LDAP settings wizard. Selector\n uses [data-theme=\"dark\"] — the actual attribute Snipe-IT toggles\n for dark mode. Disabled variant is called out explicitly because\n .bs-wizard-step.disabled > .bs-wizard-dot is a same-specificity\n rule from AdminLTE — the extra .disabled class ensures we win. */\n[data-theme=\"dark\"] .bs-wizard-step .progress,\n[data-theme=\"dark\"] .bs-wizard-step > .bs-wizard-dot,\n[data-theme=\"dark\"] .bs-wizard-step.disabled > .bs-wizard-dot {\n background-color: #605e5e;\n}\n\n.box.box-default {\n border-top: var(--box-header-top-border);\n}\n\n\n.box-header.with-border {\n border-bottom: var(--box-header-bottom-border);\n}\n\n.box-footer {\n border-top: var(--box-header-bottom-border);\n}\n\n\n.nav-tabs-custom > .nav-tabs {\n border-bottom: var(--tab-bottom-border);\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n padding-bottom: 0;\n\n}\n\n.nav-tabs > li > a {\n margin-right: 0;\n border: 0;\n}\n\n.box,\n.box-footer,\n.tab-content,\n.nav-tabs-custom,\n.nav-tabs-custom > .nav-tabs > li,\n.nav-tabs-custom > .nav-tabs > li:first-of-type,\n.nav-tabs-custom > .nav-tabs > li.active > a:link,\n.nav-tabs-custom > .nav-tabs > li.active > a:visited,\n.nav-tabs-custom > .nav-tabs > li.active > a:hover,\n.bootstrap-table.fullscreen,\n.well {\n\n color: var(--color-fg);\n background-color: var(--box-bg) !important;\n border-left: 1px solid transparent;\n border-right: 1px solid transparent;\n\n}\n\n.panel {\n border-color: var(--box-header-top-border-color);\n}\n\n.panel-body {\n background-color: var(--box-bg) !important;\n}\n\n.panel-heading,\n.panel-default > .panel-heading {\n color: var(--color-fg) !important;\n background-color: var(--table-stripe-bg-alt) !important;\n border-color: var(--box-header-top-border-color);\n}\n\n.panel-footer {\n background-color: var(--box-bg) !important;\n border-color: var(--box-header-top-border-color);\n}\n\n.nav-tabs-custom > .nav-tabs > li.active {\n border-top-color: var(--main-theme-color) !important;\n background-color: var(--box-header-top-border-color) !important;\n border-bottom: 2px solid var(--box-bg) !important;\n border-right: 1px solid var(--box-header-top-border-color);\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n}\n\n.nav-tabs-custom > .nav-tabs > li:first-of-type {\n border-left: 0;\n}\n\n\n/**\nThis fixes the weird spacing in the nav tabs if there is a badge count on the tab\n */\n.badge {\n font-size: 11px;\n}\n\n/**\ntable rows\n */\n\n.table > thead > tr > th,\n.table > tbody > tr > th,\n.table > tfoot > tr > th,\n.table > thead > tr > td,\n.table > tbody > tr > td,\n.table > tfoot > tr > td {\n border-top: var(--table-border-row) !important;\n}\n\n\n.table-striped > tbody > tr:nth-of-type(even),\n.row-new-striped > .row:nth-of-type(even),\n.row-new-striped > .div:nth-of-type(odd),\n.cansort {\n background-color: var(--table-stripe-bg) !important;\n border-top: var(--table-border-row-top) !important;\n color: var(--color-fg) !important;\n}\n\n.table-striped > tbody > tr:nth-of-type(odd),\n.row-new-striped > .row:nth-of-type(even),\n.row-new-striped > .div:nth-of-type(odd),\n.cansort {\n background-color: var(--table-stripe-bg-alt) !important;\n border-top: var(--table-border-row-top) !important;\n color: var(--color-fg) !important;\n}\n\n\n// -----------------------------------------------------------------------------\n// CSS sticky columns. Bootstrap-table's fixed-columns feature was pulled\n// from the bundle in favor of this — the old feature cloned the table\n// body into an absolutely-positioned overlay, which drifted in height\n// with long-content rows (#19197, #19458) and misplaced tooltips when\n// the container reflowed without a window resize (asset show + info\n// panel toggle). CSS position:sticky on the actual <td> cells can't\n// drift because the cells ARE the pinned cells.\n//\n// Tables that want pinned columns get the snipe-table--sticky-right-N\n// or snipe-table--sticky-left-N class (via <x-table>'s fixed_number /\n// fixed_right_number props, or applied directly on a raw table).\n//\n// Body cells match the zebra background so the sticky column keeps the\n// alternating pattern. Header cells use --box-bg so scrolling body rows\n// don't show through above the header stripe transition. Header z-index\n// sits above body sticky so a scrolled row can't render over the header.\n// -----------------------------------------------------------------------------\n\n// --table-stripe-bg-alt is intentionally translucent (rgba .25) so the\n// zebra stripe composites on top of the row's --box-bg. That works for\n// normal rows but leaves sticky cells see-through because scrolled\n// content passes UNDER them with no opaque backer. For sticky cells we\n// paint --box-bg as an opaque base and layer the (still-translucent)\n// stripe on top via linear-gradient, replicating the composited color.\n\n// Per-position offset variables (--sticky-right-offset-P, --sticky-left-offset-P)\n// are set by the JS block in partials/bootstrap-table.blade.php after every\n// render. Position 1 is the outermost pinned column and gets offset 0; each\n// subsequent position adds the outerWidth of the previous columns so pinned\n// cells sit flush against each other instead of stacking at the edge.\n\n// Position-specific sticky rules. Recurses from @pos=1 up to @maxN.\n.gen-sticky-right(@maxN, @pos: 1) when (@pos <= @maxN) {\n .snipe-table--sticky-right-@{maxN} > thead > tr > th:nth-last-child(@{pos}),\n .snipe-table--sticky-right-@{maxN} > tbody > tr > td:nth-last-child(@{pos}) {\n position: sticky;\n right: var(~\"--sticky-right-offset-@{pos}\", 0);\n z-index: 2;\n background-color: var(--box-bg);\n }\n .gen-sticky-right(@maxN, (@pos + 1));\n}\n.gen-sticky-right(1);\n.gen-sticky-right(2);\n.gen-sticky-right(3);\n.gen-sticky-right(4);\n.gen-sticky-right(5);\n\n.gen-sticky-left(@maxN, @pos: 1) when (@pos <= @maxN) {\n .snipe-table--sticky-left-@{maxN} > thead > tr > th:nth-child(@{pos}),\n .snipe-table--sticky-left-@{maxN} > tbody > tr > td:nth-child(@{pos}) {\n position: sticky;\n left: var(~\"--sticky-left-offset-@{pos}\", 0);\n z-index: 2;\n background-color: var(--box-bg);\n }\n .gen-sticky-left(@maxN, (@pos + 1));\n}\n.gen-sticky-left(1);\n.gen-sticky-left(2);\n.gen-sticky-left(3);\n.gen-sticky-left(4);\n.gen-sticky-left(5);\n\n// Shared: header z-index bump and zebra-stripe overlay for all pinned columns.\n.gen-sticky-right-shared(@maxN) {\n .snipe-table--sticky-right-@{maxN} > thead > tr > th:nth-last-child(-n+@{maxN}) {\n z-index: 3;\n }\n .snipe-table--sticky-right-@{maxN}.table-striped > tbody > tr:nth-of-type(even) > td:nth-last-child(-n+@{maxN}) {\n background-image: linear-gradient(var(--table-stripe-bg), var(--table-stripe-bg));\n }\n .snipe-table--sticky-right-@{maxN}.table-striped > tbody > tr:nth-of-type(odd) > td:nth-last-child(-n+@{maxN}) {\n background-image: linear-gradient(var(--table-stripe-bg-alt), var(--table-stripe-bg-alt));\n }\n}\n.gen-sticky-right-shared(1);\n.gen-sticky-right-shared(2);\n.gen-sticky-right-shared(3);\n.gen-sticky-right-shared(4);\n.gen-sticky-right-shared(5);\n\n.gen-sticky-left-shared(@maxN) {\n .snipe-table--sticky-left-@{maxN} > thead > tr > th:nth-child(-n+@{maxN}) {\n z-index: 3;\n }\n .snipe-table--sticky-left-@{maxN}.table-striped > tbody > tr:nth-of-type(even) > td:nth-child(-n+@{maxN}) {\n background-image: linear-gradient(var(--table-stripe-bg), var(--table-stripe-bg));\n }\n .snipe-table--sticky-left-@{maxN}.table-striped > tbody > tr:nth-of-type(odd) > td:nth-child(-n+@{maxN}) {\n background-image: linear-gradient(var(--table-stripe-bg-alt), var(--table-stripe-bg-alt));\n }\n}\n.gen-sticky-left-shared(1);\n.gen-sticky-left-shared(2);\n.gen-sticky-left-shared(3);\n.gen-sticky-left-shared(4);\n.gen-sticky-left-shared(5);\n\n// Row-state overrides. Bootstrap-table adds `.selected` on click / checkbox\n// tick (see line ~2889 for the base rule), and Snipe-IT paints `.success`\n// and `.danger` rows for the audit / restore flows. Without these\n// overrides, the sticky columns keep their zebra background painted on top\n// of the row-selected color and read as unselected even when the rest of\n// the row is highlighted. Overriding both background-color AND\n// background-image (to clear the linear-gradient stripe overlay from the\n// -shared mixins) so the sticky cells pick up the row's highlight state.\n.gen-sticky-right-row-state(@maxN) {\n .snipe-table--sticky-right-@{maxN} > tbody > tr.selected > td:nth-last-child(-n+@{maxN}) {\n background-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 40)),hsl(from var(--main-theme-color) h s calc(l - 40)))\" !important;\n background-image: none !important;\n }\n .snipe-table--sticky-right-@{maxN} > tbody > tr.success > td:nth-last-child(-n+@{maxN}) {\n background-color: #00a65a !important;\n background-image: none !important;\n color: white !important;\n }\n .snipe-table--sticky-right-@{maxN} > tbody > tr.danger > td:nth-last-child(-n+@{maxN}) {\n background-color: var(--text-danger) !important;\n background-image: none !important;\n color: white !important;\n }\n}\n.gen-sticky-right-row-state(1);\n.gen-sticky-right-row-state(2);\n.gen-sticky-right-row-state(3);\n.gen-sticky-right-row-state(4);\n.gen-sticky-right-row-state(5);\n\n.gen-sticky-left-row-state(@maxN) {\n .snipe-table--sticky-left-@{maxN} > tbody > tr.selected > td:nth-child(-n+@{maxN}) {\n background-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 40)),hsl(from var(--main-theme-color) h s calc(l - 40)))\" !important;\n background-image: none !important;\n }\n .snipe-table--sticky-left-@{maxN} > tbody > tr.success > td:nth-child(-n+@{maxN}) {\n background-color: #00a65a !important;\n background-image: none !important;\n color: white !important;\n }\n .snipe-table--sticky-left-@{maxN} > tbody > tr.danger > td:nth-child(-n+@{maxN}) {\n background-color: var(--text-danger) !important;\n background-image: none !important;\n color: white !important;\n }\n}\n.gen-sticky-left-row-state(1);\n.gen-sticky-left-row-state(2);\n.gen-sticky-left-row-state(3);\n.gen-sticky-left-row-state(4);\n.gen-sticky-left-row-state(5);\n\n\n// -----------------------------------------------------------------------------\n// Checkbox column: bootstrap-table adds .bs-checkbox to the header and body\n// cells of any checkbox column. It should always be pinned to the left edge\n// regardless of what fixed_number the table sets, because the row-selection\n// affordance is expected to stay visible while the user scrolls horizontally\n// to review other columns before deciding what to check.\n// -----------------------------------------------------------------------------\n\n.snipe-table > thead > tr > th.bs-checkbox,\n.snipe-table > tbody > tr > td.bs-checkbox {\n position: sticky;\n left: 0;\n z-index: 2;\n background-color: var(--box-bg);\n}\n\n.snipe-table.table-striped > tbody > tr:nth-of-type(even) > td.bs-checkbox {\n background-image: linear-gradient(var(--table-stripe-bg), var(--table-stripe-bg));\n}\n.snipe-table.table-striped > tbody > tr:nth-of-type(odd) > td.bs-checkbox {\n background-image: linear-gradient(var(--table-stripe-bg-alt), var(--table-stripe-bg-alt));\n}\n\n.snipe-table > thead > tr > th.bs-checkbox {\n z-index: 3;\n}\n\n// Row-state overrides for the pinned checkbox column. Same reasoning as\n// the .gen-sticky-*-row-state mixins above: the opaque background baked\n// into the sticky cell would otherwise mask row-selected / .success /\n// .danger highlights on the checkbox column, which is exactly the column\n// users click to toggle the selection state, so the mismatch is most\n// visible there.\n.snipe-table > tbody > tr.selected > td.bs-checkbox {\n background-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 40)),hsl(from var(--main-theme-color) h s calc(l - 40)))\" !important;\n background-image: none !important;\n}\n.snipe-table > tbody > tr.success > td.bs-checkbox {\n background-color: #00a65a !important;\n background-image: none !important;\n color: white !important;\n}\n.snipe-table > tbody > tr.danger > td.bs-checkbox {\n background-color: var(--text-danger) !important;\n background-image: none !important;\n color: white !important;\n}\n\n\n// -----------------------------------------------------------------------------\n// Top scrollbar: mirrored above the bootstrap-table body so users on wide\n// tables don't have to scroll to the bottom to find the horizontal\n// scrollbar. Managed by updateTopScrollbar() in partials/bootstrap-table.\n// The wrapper node only exists when the table actually overflows\n// horizontally, so tables that fit in their container don't get any\n// extra chrome.\n// -----------------------------------------------------------------------------\n\n.snipe-top-scrollbar {\n // scroll (not auto) so the scrollbar thumb stays visible whenever\n // the container is displayed. auto lets macOS's trackpad-scrollbar\n // auto-hide take over on trackpad users even with the WebKit\n // pseudo-element styling below, which read as \"top scrollbar fades\n // faster than the bottom one\" (#19484 follow-up). Whole container\n // gets display: none from updateTopScrollbar() when the underlying\n // table doesn't actually overflow, so persistent scroll doesn't\n // produce a floating stub on tables that fit in the viewport.\n overflow-x: scroll;\n overflow-y: hidden;\n // 14px scrollbar sized to match the WebKit thumb below so it\n // reads as a deliberate chrome element rather than an OS-native\n // accident. Bumped from 10px so the thumb is easier to grab and\n // drag on trackpads / small screens.\n //\n // Outer height is 18px (border-box) = 14px scrollbar content +\n // 4px padding-bottom acting as a visual spacer between the\n // scrollbar thumb and the thead below it. Total 18px matches\n // the stickyHeaderOffsetY: 18 in bootstrap-table.blade.php so\n // the pinned scrollbar band + the sticky-clone thead just below\n // it stack seamlessly with no bleed-through gap between them\n // (#19484 follow-up: 4px gap of tbody rows visible between the\n // scrollbar and the sticky thead).\n box-sizing: border-box;\n height: 18px;\n padding-bottom: 4px;\n background-color: var(--box-bg);\n // Firefox scrollbar styling — spec-standard. `auto` uses the\n // OS-default thickness (matches the bumped-up 14px WebKit height\n // below so the thumb is easy to grab on trackpads / small screens).\n scrollbar-width: auto;\n scrollbar-color: rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.06);\n\n // Stay visible while the user scrolls the page down past the\n // natural table header. Bootstrap-table's own stickyHeader\n // (position: fixed via the .fix-sticky class) floats the thead\n // clone at viewport top; we mirror that positioning via JS\n // (updateTopScrollbarSticky in bootstrap-table.blade.php) so\n // the scrollbar sits ABOVE the sticky-clone thead - matching\n // the natural (unscrolled) order where the scrollbar reads\n // immediately above the thead. Bootstrap-table config pushes\n // .fix-sticky down by (this mirror's height + padding-bottom)\n // via stickyHeaderOffsetY so the two don't overlap. Sticky\n // positioning would have been simpler than the JS toggle but\n // didn't engage reliably against page scroll from inside the\n // .bootstrap-table nesting depth; falling back to position:\n // fixed set by the scroll listener. Reported in #19484 as\n // \"none of scrollbars are visible when list is scrolled to\n // the point where header starts floating\" plus follow-up\n // \"top scrollbar used to be above the table headers, which\n // seems a little better\".\n z-index: 101;\n\n // When the scroll listener detects the natural position has\n // gone above viewport top, this class flips the element to\n // position: fixed via inline style. The class itself just\n // marks \"currently pinned\" so callers can style pinned vs\n // unpinned states differently if needed.\n &.is-pinned {\n // Inline top/left/width comes from JS. Keeping the box\n // shadow drop off here so pinned state visually separates\n // the mirror from the sticky-clone thead below it.\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);\n }\n\n // WebKit / Blink scrollbar pseudo-elements. Both the track and the\n // thumb get border-radius so the container reads as rounded even\n // when the thumb is at the edge of the track (the previous\n // container-level border-radius was invisible because the container\n // had no visible background to round). Track carries a subtle tint\n // so the rounded shape is actually visible rather than shape-of-nothing.\n &::-webkit-scrollbar {\n height: 14px;\n }\n &::-webkit-scrollbar-track {\n background-color: rgba(0, 0, 0, 0.06);\n border-radius: 7px;\n }\n &::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.35);\n border-radius: 7px;\n }\n &::-webkit-scrollbar-thumb:hover {\n background-color: rgba(0, 0, 0, 0.5);\n }\n}\n\n.snipe-top-scrollbar-inner {\n // Height just enough to make the parent scrollable; width is set by\n // JS to match the underlying table's scrollWidth.\n height: 1px;\n}\n\n// Match the native bottom scrollbar on the table body to the styled\n// top mirror above so the two horizontal scroll handles read as a\n// consistent pair. Without this, the top uses our thin-with-rounded-\n// thumb chrome while the bottom uses the OS default and the two look\n// mismatched when both are visible on wide tables. scrollbar-width\n// bumped from `thin` to `auto` and the WebKit height matched to the\n// top mirror's 14px so the two scrollbars are the same easy-to-grab\n// size on trackpads / small screens (#19484 follow-up).\n.bootstrap-table .fixed-table-body {\n scrollbar-width: auto;\n scrollbar-color: rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.06);\n\n &::-webkit-scrollbar {\n height: 14px;\n }\n &::-webkit-scrollbar-track {\n background-color: rgba(0, 0, 0, 0.06);\n border-radius: 7px;\n }\n &::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.35);\n border-radius: 7px;\n }\n &::-webkit-scrollbar-thumb:hover {\n background-color: rgba(0, 0, 0, 0.5);\n }\n}\n\n\n/**\nmain header nav\n */\n\n\n.dropdown-menu {\n background-color: var(--main-theme-color);\n border-color: var(--main-theme-color);\n}\n\n\n.dropdown-menu > li,\n.navbar,\n.navbar-nav,\n.label-default,\n.label-default:hover {\n background-color: var(--main-theme-color);\n color: var(--nav-primary-text-color) !important;\n}\n\n.label-light {\n background-color: var(--default-label-link-bg) !important;\n color: var(--color-fg) !important;\n font-size: 12px !important;\n font-weight: normal !important;\n line-height: 25px;\n margin-left: 0px;\n padding-left: 3px;\n\n}\n\na.label-light,\na.label-light:hover {\n color: var(--link-color) !important;\n}\n\n.dropdown-menu > li > a,\n.dropdown-menu > li > a:link,\n.dropdown-menu > li > a:visited,\n.dropdown-menu > .active > a:link,\n.dropdown-menu > .active > a:visited,\n.navbar-nav .open > a:link,\n.navbar-nav .open > a:visited,\n.navbar-nav > li > a:link,\n.navbar-nav > li > a:visited {\n background-color: var(--main-theme-color) !important;\n /*background-color: rgba(0,0,0,.15);*/\n color: var(--nav-primary-text-color) !important;\n /*color: var(--nav-primary-text-color) !important;*/\n\n}\n\n.btn-tableButton.active.focus,\n.btn-tableButton.active:focus,\n.btn-tableButton.active:hover,\n.dropdown-menu > .active > a:focus,\n.dropdown-menu > .active > a:hover,\n.dropdown-menu > .active > a:link,\n.dropdown-menu > .active > a:visited,\n.dropdown-menu > li > a:focus,\n.dropdown-menu > li > a:hover,\n.dropdown-menu > li:focus,\n.dropdown-menu > li:hover,\n.navbar-nav .open li.active > a:focus,\n.navbar-nav .open li.active > a:hover,\n.navbar-nav .open > a:focus,\n.navbar-nav .open > a:hover,\n.navbar-nav > li > a:focus,\n.navbar-nav > li > a:hover,\n.open > .dropdown-toggle.btn-tableButton:focus,\n.open > .dropdown-toggle.btn-tableButton:hover,\n.page-next a,\n.pagination > .active > a:hover,\n.page-item.active,\n.pagination > .active > a,\n.pagination > li > .active > a,\n.pagination > li > .active > a:hover,\n.pagination > li > a:hover {\n background-color: var(--main-theme-hover) !important;\n border-color: var(--btn-theme-hover) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n.pagination > li > a {\n background-color: var(--main-theme-color) !important;\n border-color: var(--btn-theme-hover) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n\n.bootstrap-table .fixed-table-toolbar li.dropdown-item-marker label {\n color: var(--nav-primary-text-color) !important;\n}\n\n.bootstrap-table .fixed-table-toolbar li.dropdown-item-marker label:hover {\n background-color: var(--main-theme-hover) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n\n.dropdown-menu,\n.dropdown-menu > li {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\";\n border-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\";\n color: var(--nav-primary-text-color) !important;\n}\n\n.main-header .navbar .nav > .active > a {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\" !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n.navbar-nav > .notifications-menu > .dropdown-menu > li.header,\n.navbar-nav > .messages-menu > .dropdown-menu > li.header,\n.navbar-nav > .tasks-menu > .dropdown-menu > li.header,\n.navbar-nav > .notifications-menu > .dropdown-menu > li .menu,\n.navbar-nav > .messages-menu > .dropdown-menu > li .menu, .navbar-nav > .tasks-menu > .dropdown-menu > li .menu,\n.navbar-nav > .messages-menu > .dropdown-menu > li .menu, .navbar-nav > .tasks-menu > .dropdown-menu > li .menu a:hover,\n.navbar-nav > .messages-menu > .dropdown-menu > li .menu, .navbar-nav > .tasks-menu > .dropdown-menu > li:hover,\n.navbar-nav > .tasks-menu > .dropdown-menu > li .menu > li:hover > a,\n.task_menu {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\" !important;\n color: var(--nav-primary-text-color) !important;\n margin-bottom: 0;\n}\n\n.navbar-nav > .notifications-menu > .dropdown-menu > li .menu > li > a, .navbar-nav > .messages-menu > .dropdown-menu > li .menu > li > a, .navbar-nav > .tasks-menu > .dropdown-menu > li .menu > li > a {\n border-bottom: ~\"1px solid hsl(from var(--main-theme-color) h s calc(l - 10))\";\n}\n\n\n/**\nActive and hover for top tier sidenav items\n */\n\n.main-sidebar {\n background-color: #1e282c;\n}\n\n// Shift .main-header's BOX (not just its inner .navbar) so the header\n// occupies only the horizontal space past the sidebar's column. Base\n// AdminLTE 2 leaves .main-header full-width and only offsets the\n// .navbar's contents via margin-left: 230px, which fixes visual\n// alignment but not click alignment: the header's own <div> (z-index\n// 1030) still extends across the sidebar column above the sidebar\n// (z-index 810), so at intermediate widths where the navbar wraps to\n// two or three rows the header's empty second/third-row area sits on\n// top of the first sidebar item and eats clicks. Reported repeatedly\n// on the tracker (#19482, #11868, #5085) and previously papered over\n// with hardcoded .sidebar-menu { margin-top: Npx } offsets at\n// specific breakpoints - since removed above in favor of this\n// structural fix.\n//\n// Shift values track the sidebar's rendered width per body class:\n// - default (.sidebar-mini, sidebar open): 230px\n// - .sidebar-mini.sidebar-collapse (menu closed, mini icons): 50px\n// - mobile (<=767px): 0 (sidebar is translated off-screen)\n//\n// The navbar's own margin-left is zeroed at each state so the navbar\n// content doesn't get double-shifted after the header itself moves.\n// Transition on .main-header matches the navbar's existing 0.3s\n// margin-left transition so the header and its content animate\n// together when the sidebar toggles.\n@media (min-width: 768px) {\n .main-header {\n margin-left: 230px;\n transition: margin-left 0.3s ease-in-out;\n }\n .main-header .navbar {\n margin-left: 0;\n }\n .sidebar-mini.sidebar-collapse .main-header {\n margin-left: 50px;\n }\n // AdminLTE has a higher-specificity rule at min-width: 768px:\n // .sidebar-mini.sidebar-collapse .main-header .navbar { margin-left: 50px }\n // that overrides our plain .main-header .navbar reset above. Without\n // matching its specificity here, the mini-collapsed state ends up\n // double-shifting the navbar (header shifted 50px + navbar shifted\n // 50px = navbar starts at x=100). That pushed the .sidebar-toggle\n // hamburger past the sidebar column and into the header instead of\n // sitting over the mini-icon column at the top-left (where its\n // -48px margin-left is designed to place it).\n .sidebar-mini.sidebar-collapse .main-header .navbar {\n margin-left: 0;\n }\n}\n\n\n.sidebar-menu > li.active > a,\n.sidebar-menu > li:hover > a,\n.treeview-menu > li > a {\n color: var(--sidenav-text-hover-color) !important;\n border-left-color: var(--main-theme-color);\n}\n\n.sidebar-menu > li:hover > a,\n.sidebar-menu > li.active > a {\n border-left-color: var(--main-theme-color);\n padding-left: 12px;\n}\n\n\n.sidebar-menu > li:hover {\n background-color: #2c3b41;\n}\n\n.sidebar-menu > li > .treeview-menu {\n background-color: #1e282c;\n}\n\n\n.list-group-item:first-child {\n border-top: 0 !important;\n}\n\n.sidebar-menu > li > a:link,\n.sidebar-menu > li > a:visited,\n.treeview-menu > li > a {\n color: var(--sidenav-text-nohover-color) !important;\n}\n\n.sidebar-menu > li.active > a,\n.sidebar-menu > li:hover > a {\n background-color: #1e282c;\n border-left-color: var(--main-theme-color);\n border-left-style: solid;\n border-left-width: 3px;\n color: var(--sidenav-text-hover-color) !important;\n}\n\nthead,\ntbody,\n.table > thead > tr > th,\n.table > tbody > tr > th,\n.table > tfoot > tr > th,\n.table > thead > tr > td,\n.table > tbody > tr > td,\n.table > tfoot > tr > td {\n border-top-color: var(--box-bg) !important;\n border-bottom-color: var(--box-header-bottom-border-color) !important;\n color: var(--color-fg);\n}\n\n\n.help-block {\n color: var(--text-help) !important;\n}\n\n.alert-msg,\n.has-error {\n color: var(--text-danger) !important;\n}\n\n.has-error .form-control {\n border-color: var(--text-danger);\n}\n\n.alert a,\n.callout.callout-warning,\n.callout.callout-danger,\n.callout.callout-success,\n.callout.callout-info,\n.alert.alert-warning,\n.alert.alert-danger,\n.alert.alert-info,\n.alert.alert-success,\n.alert.alert-warning {\n color: white !important;\n}\n\n// The colored alerts have fixed-color backgrounds (red / blue / green\n// / orange) that read well against white text regardless of theme\n// mode. However the global \"h1..h4, p { color: var(--color-fg) }\" rule\n// further down this file has enough specificity to override the\n// alert's own color on any heading or paragraph inside, flipping the\n// text to black in light mode and white in dark mode — illegible\n// against the colored bg in light. Force inheritance so headings and\n// paragraphs inside these alerts always pick up the alert's white.\n.alert.alert-danger,\n.alert.alert-info,\n.alert.alert-success,\n.alert.alert-warning {\n h1, h2, h3, h4, p {\n color: inherit !important;\n }\n}\n\n\n.text-dark-gray a:link,\n.text-dark-gray a:hover,\n.text-dark-gray a:visited,\n.text-dark-gray a:focus {\n color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\";\n}\n\n.text-warning {\n color: var(--text-warning) !important;\n}\n\n.text-info {\n color: var(--text-info) !important;\n}\n\n.text-primary {\n color: var(--main-theme-color) !important;\n}\n\n.text-danger {\n color: var(--text-danger) !important;\n}\n\n.text-success {\n color: var(--text-success) !important;\n}\n\n.dropdown-menu > .divider {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\";\n margin-top: 0;\n margin-bottom: 0;\n padding-top: 1px;\n\n}\n\ninput[type=\"radio\"]::before {\n box-shadow: ~\"inset 1em 1em hsl(from var(--main-theme-color) h s calc(l - 20))\" !important;\n}\n\n\ninput[type=\"checkbox\"]::before {\n box-shadow: ~\"inset 1em 1em hsl(from var(--main-theme-color) h s calc(l - 20))\" !important;\n}\n\n\n.callout.callout-legend {\n background-color: var(--callout-bg-color);\n border-left: 5px solid var(--callout-left-border);\n\n}\n\n.callout-legend h4 a,\n.callout-legend h4 a:hover {\n color: var(--color-fg) !important;\n}\n\n\np.callout-subtext, p.callout-subtext a:hover, p.callout-subtext a:visited, p.callout-subtext a:link {\n color: var(--text-legend-help) !important;\n text-decoration: none;\n}\n\n\nlegend {\n border-bottom: 1px solid var(--callout-left-border);\n}\n\nth,\n.fix-sticky table thead {\n background-color: var(--box-bg);\n color: var(--color-fg) !important;\n}\n\n\n.logo:hover {\n background-color: var(--main-theme-color) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n.modal-content,\n.popover.help-popover,\n.popover.help-popover .popover-content,\n.popover.help-popover .popover-body,\n.popover.help-popover .popover-title,\n.popover.help-popover .popover-header {\n background-color: var(--box-bg) !important;\n /*color: var(--color-fg) !important;*/\n color: var(--color-fg) !important;\n}\n\n.treeview-menu > li {\n background-color: #2c3b41;\n color: var(--sidenav-text-nohover-color) !important;\n}\n\n.treeview-menu > li > a:hover,\n.treeview-menu > li:hover,\n.treeview-menu > li.active > a {\n color: white !important;\n background-color: var(--sidenav-hover-color-bg) !important;\n}\n\n.sidebar-toggle.btn,\n.sidebar-toggle.btn:hover {\n color: white !important;\n}\n\n.chart-responsive {\n color: var(--color-fg) !important;\n}\n\n.table > tbody + tbody {\n border-top: 0 !important;\n}\n\nh4#progress-text {\n color: white !important;\n}\n\n.small-box h3, .small-box p {\n color: white !important;\n}\n\n.box.box-theme {\n border-top: var(--main-theme-color) !important;\n}\n\ninput[type=\"date\"]:focus,\ninput[type=\"number\"]:focus,\ninput[type=\"text\"]:focus,\ninput[type=\"url\"]:focus,\ninput[type=\"email\"]:focus,\ninput[type=\"password\"]:focus,\ninput[type=\"tel\"]:focus,\ntextarea:focus {\n border-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\" !important;\n}\n\ninput[type=\"date\"]:required,\ninput[type=\"number\"]:required,\ninput[type=\"text\"]:required,\ninput[type=\"url\"]:required,\ninput[type=\"email\"]:required,\ninput[type=\"password\"]:required,\ninput[type=\"tel\"]:required,\nselect:required,\ninput:required,\ntextarea:required {\n border-right: 5px solid orange !important;\n}\n\n.bootstrap-table .fixed-table-container .table tbody tr.selected td {\n background-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 40)),hsl(from var(--main-theme-color) h s calc(l - 40)))\" !important;\n}\n\ntr.success > td {\n background-color: #00a65a !important;\n color: white !important;\n}\n\ntr.danger > td {\n background-color: var(--text-danger) !important;\n color: white !important;\n}\n\n@media print {\n\n body,\n div.content-wrapper,\n section.content,\n .webui,\n .main-panel,\n .nav-tabs-custom,\n .box,\n .box-body,\n .list-group,\n .list-group-unbordered,\n .list-group-item,\n .row,\n .tab-content {\n background: white !important;\n color: black !important;\n }\n\n .fixed-table-toolbar,\n .fixed-table-pagination,\n #assetsToolBar,\n .fixed-table-pagination {\n display: none !important;\n }\n\n .tab-pane.hidden-print {\n display: none !important;\n visibility: hidden !important;\n }\n\n h2, h3, h4 {\n color: black !important;\n }\n\n .col-sm-9,\n .main-panel {\n float: left;\n width: 100% !important;\n }\n\n}\n\n.list-group-item.subitem {\n padding-left: 20px !important;\n border-left: 0 !important;\n border-right: 0 !important;\n}\n\n.list-group-item.subitem:first-child {\n border: var(--tab-bottom-border);\n}\n\n.list-group-item.subitem:last-child {\n border: 0 !important;\n}\n\n.main-panel-content {\n line-height: 20px;\n border-bottom: var(--tab-bottom-border);\n padding: 10px 15px;\n}\n\n\n/* table */\n\ndl.table-display {\n float: left;\n width: 100%;\n margin: 1em 0;\n padding: 0;\n}\n\n.table-display dt {\n line-height: 25px;\n clear: left;\n float: left;\n /*text-align: right;*/\n width: 20%;\n margin: 0;\n padding: 8px;\n border-top: var(--tab-bottom-border);\n font-weight: bold;\n}\n\n.table-display dd {\n line-height: 20px;\n float: left;\n width: 80%;\n margin: 0;\n padding: 10px;\n border-top: var(--tab-bottom-border);\n}\n\n.well-display dt {\n clear: left;\n float: left;\n width: 70%;\n margin: 0;\n padding: 6px;\n border-top: 0;\n font-weight: bold;\n}\n\n.well-display dd {\n float: left;\n width: 30%;\n margin: 0;\n padding: 6px;\n border-top: 0;\n}\n\n.well-sm {\n line-height: 30px;\n}\n\n.table-display dd:first-of-type, .table-display dt:first-of-type {\n border-top: 0 !important;\n}\n\n\n@media (max-width: 750px) {\n .table-display dd {\n width: 100% !important;\n }\n\n .table-display dt {\n width: 100% !important;\n }\n}\n\n@media print {\n /* All your print styles go here */\n .box-profile {\n display: block !important;\n width: 100% !important;\n }\n}\n\n\n// Login / register page theme awareness.\n//\n// AdminLTE 2 hardcodes light-mode colors on the login page containers\n// (#d2d6de body bg, #fff box bg, #444 logo text) which ignore our\n// [data-theme=\"dark\"] CSS variables. Override with the same variables\n// the rest of the app uses so login and password-reset screens carry\n// the tenant's chosen theme mode instead of a permanent light-mode\n// look. Also styles the .register-* classes since AdminLTE ships them\n// paired and future Snipe-IT signup flows may use them.\n.login-page,\n.register-page {\n background: var(--color-bg);\n}\n\n.login-box-body,\n.register-box-body {\n background: var(--box-bg);\n color: var(--color-fg);\n}\n\n.login-logo a,\n.register-logo a {\n color: var(--color-fg);\n}\n\n// The .login-box wraps the header + body. Its header (.box-header) picks\n// up theme colors from the general .box rules already in this file, but\n// its bottom-border (from AdminLTE's default .login-box-body) is a\n// hardcoded light color that reads as a bright line against a dark\n// panel. Clear it and let the box's own borders do the visual work.\n.login-box-body,\n.register-box-body {\n border-top: 0;\n}\n\n// .login-box and .register-box are .box variants but do NOT get the\n// .box-default class, so they miss the themed border-top treatment\n// every other card in the app has. Give them the tenant's main theme\n// color as a top accent so the login card visually ties in with the\n// header bar above it (also styled with --main-theme-color) rather\n// than using the neutral grey that .box.box-default uses elsewhere.\n.login-box,\n.register-box {\n border-top: 3px solid var(--main-theme-color);\n}\n\n// Themed header bar for login / error pages (layouts/basic.blade.php).\n// Gives the tenant's uploaded logo the same colored background it lives\n// against in the logged-in app's top-nav so logos designed for that\n// context read the way they were meant to. Falls back to a text\n// treatment of the site name when there is no logo.\n.basic-page-header {\n background-color: var(--main-theme-color);\n // Match .main-header .navbar exactly (50px min-height) so the\n // login and error page header reads the same height as the\n // logged-in top-nav. Overflow: hidden clips the logo the same\n // way AdminLTE's .main-header .logo container does, so a padded\n // brand image renders at 50px even though its own box is taller.\n position: relative;\n min-height: 50px;\n overflow: hidden;\n padding: 0 20px;\n margin-bottom: 30px;\n text-align: center;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.basic-page-header__link {\n display: inline-block;\n // Kill link underline / hover-color so the logo and site-name\n // fallback render cleanly on the theme-color background.\n color: var(--nav-primary-text-color);\n text-decoration: none;\n\n &:hover,\n &:focus,\n &:visited {\n color: var(--nav-primary-text-color);\n text-decoration: none;\n }\n\n img {\n // Match img.navbar-brand-img / .navbar-brand>img exactly (the\n // rule near the top of this file that sizes the logged-in\n // top-nav brand logo). Combined with overflow: hidden on the\n // parent .basic-page-header, the padded img renders at 50px\n // clipped, giving the same visual as the logged-in header.\n max-height: 65px;\n max-width: 100%;\n width: auto;\n }\n}\n\n.basic-page-header__site-name {\n font-size: 24px;\n font-weight: 600;\n color: var(--nav-primary-text-color);\n}\n\n// Absolute-positioned in the top-right of the bar so the logo stays\n// visually centered. Icon-only presentation so it reads like the\n// compact icon controls (bell, user avatar) in the logged-in top-nav\n// rather than a full-text toggle. The aria-label carries the full\n// \"Dark mode\" / \"Light mode\" text for screen readers.\n.basic-page-header__toggle {\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n background: transparent;\n border: 0;\n padding: 4px 8px;\n color: var(--nav-primary-text-color);\n font-size: 16px;\n line-height: 1;\n cursor: pointer;\n\n &:hover,\n &:focus {\n color: var(--nav-primary-text-color);\n opacity: 0.85;\n }\n\n // Hide the injected .theme-toggle-label span. Text is still in the\n // DOM and read by screen readers via the button's aria-label, but\n // visually only the sun/moon icon shows.\n .theme-toggle-label {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n }\n}\n\n// Issue #19443: on narrower viewports (sidebar open, small laptops)\n// the bs-table search input ends up wedged between the box's\n// bulk-actions area (pulled left, ~500px min-width) and the button\n// toolbar (pulled right), which strands it visually in the middle.\n// Force the search onto its own row below the toolbar, right-aligned,\n// when the viewport isn't wide enough to fit all three inline. Wide\n// layouts stay unchanged.\n//\n// The outer `.search` is bootstrap's `.input-group` (display: table)\n// wrapping a nested `.input-group` with the input + clear button.\n// Just adding `clear: both` to the still-floated element left it\n// stranded mid-container. Turning the outer into a plain block with\n// `text-align: right`, and forcing the nested input-group to\n// `inline-flex` so it respects the parent's text alignment, lets it\n// sit flush against the box's right edge on its own row.\n@media (max-width: 1400px) {\n .box-body .fixed-table-toolbar > .search.pull-right {\n clear: both !important;\n margin-top: 8px;\n }\n}\n\n// Info-panel action button row. Every asset / user / license detail\n// page renders a horizontal strip of icon buttons (edit, clone, note,\n// audit, delete, ...) above the info panel. Was a plain .row with no\n// wrap strategy, so on narrow viewports the last one or two buttons\n// would drop to their own line with no spacing from the row above.\n// Flex + wrap + gap gives a predictable break point and consistent\n// spacing between buttons in either axis. Also fixed #19443.\n//\n// Destructive buttons (delete, and by convention checkin) still need\n// to sit visually apart from the non-destructive ones on the right\n// edge, which they got via `pull-right` (float: right) before this\n// container went flex. Floats are ignored by flex, so the first\n// pull-right child gets margin-left: auto to consume the remaining\n// space and shove itself right. Anything after it clusters next to\n// it.\n//\n// pull-right children also get order:1 so they visually move to the\n// end of the row regardless of their DOM position. Without this,\n// pull-right buttons that appear BEFORE non-pull-right buttons in\n// markup (checkin is emitted before edit/clone/audit on the asset\n// view, and only when the asset is currently checked out - which is\n// why the misalignment only showed up on checked-out assets) end up\n// dragging every subsequent sibling right along with them via the\n// auto margin, leaving only the first non-pull-right button alone on\n// the left. order:1 corrects the visual grouping so pull-right ends\n// up on the right and the non-pull-right stack stays left, matching\n// the behavior the old floats used to give.\n.info-panel-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 2px;\n // Bleed out through the parent .box-header's 10px horizontal\n // padding so the button row hits the box's actual edges. Matches\n // how a bootstrap .row offsets its container's gutters.\n margin: 0 -10px;\n\n > .pull-right {\n order: 1;\n margin-left: auto;\n }\n\n > .pull-right ~ .pull-right {\n margin-left: 0;\n }\n}\n\n// ============================================================================\n// FullCalendar v6 dark-mode overrides.\n//\n// FullCalendar's stock CSS reads from a fixed palette of light neutrals for\n// header cells, gridlines, and hour-axis text. In light mode that reads fine\n// against the AdminLTE box background; in dark mode the light-neutral rules\n// produce a wash of near-white cells and pale grid strokes that lack\n// contrast against the dark box. Rebind them to the same tokens the rest of\n// the app already uses.\n// ============================================================================\n\n[data-theme=\"dark\"] {\n .fc {\n --fc-border-color: var(--box-header-top-border-color);\n --fc-page-bg-color: var(--box-bg);\n --fc-neutral-bg-color: ~\"hsl(from var(--box-bg) h s calc(l + 5))\";\n --fc-neutral-text-color: var(--color-fg);\n --fc-list-event-hover-bg-color: ~\"hsl(from var(--box-bg) h s calc(l + 8))\";\n --fc-today-bg-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 25) / 0.25)\";\n\n .fc-col-header-cell,\n .fc-list-day-cushion {\n background-color: ~\"hsl(from var(--box-bg) h s calc(l + 5))\";\n color: var(--color-fg);\n }\n\n .fc-col-header-cell-cushion,\n .fc-daygrid-day-number,\n .fc-timegrid-axis-cushion,\n .fc-timegrid-slot-label-cushion,\n .fc-list-day-text,\n .fc-list-day-side-text,\n .fc-list-event-title,\n .fc-list-event-time {\n color: var(--color-fg);\n }\n\n .fc-scrollgrid,\n .fc-scrollgrid td,\n .fc-scrollgrid th,\n .fc-timegrid-slot,\n .fc-daygrid-day {\n border-color: var(--box-header-top-border-color);\n }\n }\n}\n\n// ============================================================================\n// Dashboard equal-height rows.\n//\n// AdminLTE 2 / Bootstrap 3 don't stretch sibling .box heights within a row,\n// so a col-md-8 + col-md-4 pair looks lopsided any time the wider box has\n// more content than the narrower one. This wrapper turns the row into a\n// flex container and forces every child .box to fill its column's height.\n// Applied only on rows opted-in via `dashboard-row-eq` so the rule doesn't\n// leak into other admin pages that happen to use .row + .box.\n// ============================================================================\n\n// Row-wrapper margin lives outside the media query so successive rows stay\n// gutter-separated at every breakpoint, mobile included.\n.dashboard-row-eq {\n margin-bottom: 20px;\n}\n\n// Equal-height flex layout ONLY on md and up. Below md, Bootstrap 3 collapses\n// .col-md-* to full-width stacked blocks; forcing flex there causes every\n// widget in the row to stretch to the tallest sibling in the flow, which\n// leaves the small widgets with huge whitespace gaps on a phone. Falling\n// back to BS3's stock block layout below md keeps mobile clean.\n@media (min-width: 992px) {\n .dashboard-row-eq {\n display: flex;\n flex-wrap: wrap;\n align-items: stretch;\n }\n\n .dashboard-row-eq > [class*=\"col-\"] {\n display: flex;\n flex-direction: column;\n float: none; // BS3 gives cols float:left, which suppresses flex behavior\n }\n\n .dashboard-row-eq > [class*=\"col-\"] > .box {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n width: 100%;\n min-height: 100%;\n }\n\n // Ensure the box-body absorbs slack inside a stretched box, so header stays\n // pinned to the top and any footer/link stays at the bottom instead of the\n // body content leaving whitespace beneath itself.\n .dashboard-row-eq > [class*=\"col-\"] > .box > .box-body {\n flex: 1 1 auto;\n }\n\n // AdminLTE flips a .collapsed-box class on the .box when the header\n // +/- toggle collapses the body. Without this override, the box would\n // stay stretched to the col's full height and the collapse would have\n // no visible effect. Let the collapsed box shrink to its own content\n // (just the header) so the toggle behaves like it does on non-flex\n // dashboards. Neighboring boxes stay stretched to their previous\n // heights.\n .dashboard-row-eq > [class*=\"col-\"] > .box.collapsed-box {\n flex: 0 0 auto;\n min-height: 0;\n }\n}\n\n// ============================================================================\n// FullCalendar filter buttons render as a native DOM row above the\n// calendar element (see buildFilterButtons in snipeit-calendar.js).\n// Kept out of FullCalendar's headerToolbar so the calendar's own\n// prev/next/today/title/views row isn't pushed off-center by an\n// inline row of filter chips.\n// ============================================================================\n\n.snipeit-calendar-filters {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n margin-bottom: 12px;\n padding-bottom: 8px;\n border-bottom: 1px solid var(--box-header-top-border-color, #ddd);\n}\n\n.snipeit-calendar-filter-button {\n // Reserve horizontal space for the checkmark glyph up-front via a\n // transparent placeholder so the button doesn't grow when its\n // .active class is added. Without this the ::before content on\n // `.active` shifts every other button in the row when a filter is\n // toggled and makes the whole row jump.\n padding: 4px 10px;\n font-size: 13px;\n\n &::before {\n content: \"\\2713\\00a0\";\n font-weight: bold;\n visibility: hidden;\n }\n}\n\n// ============================================================================\n// Calendar filter-button active-state styling (both themes).\n//\n// buildFilterButtons flips `.active` on selected filters. Bootstrap 3's\n// stock `.btn-default.active` only nudges the background a few shades\n// darker, which reads as \"hovered\" not \"selected\" and Snipe reported she\n// couldn't tell which filters were on. Force the active state to the\n// app's primary theme color with an inset border ring and a leading\n// checkmark glyph so a viewer can spot which filters are active without\n// squinting. Kept a11y-friendly with a real ::before content marker\n// rather than color alone (aria-pressed is toggled in JS on top of it).\n// ============================================================================\n\n.snipeit-calendar-filter-button.active,\n.snipeit-calendar-filter-button.active:hover,\n.snipeit-calendar-filter-button.active:focus,\n.snipeit-calendar-filter-button.active:active {\n background-color: var(--main-theme-color) !important;\n background-image: none !important;\n border-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 15))\" !important;\n color: var(--nav-primary-text-color) !important;\n box-shadow: inset 0 0 0 2px ~\"hsl(from var(--main-theme-color) h s calc(l - 25))\" !important;\n}\n\n.snipeit-calendar-filter-button.active::before {\n visibility: visible;\n}\n\n.snipeit-calendar-filter-button.active:focus {\n box-shadow: inset 0 0 0 2px ~\"hsl(from var(--main-theme-color) h s calc(l - 25))\",\n 0 0 0 3px ~\"hsl(from var(--main-theme-color) h s calc(l + 20) / 0.5)\" !important;\n}\n\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/public/css/build/overrides.css b/public/css/build/overrides.css
index b1566065dc..96b6fbb36f 100644
--- a/public/css/build/overrides.css
+++ b/public/css/build/overrides.css
@@ -3161,6 +3161,98 @@ dl.table-display {
.info-panel-actions > .pull-right ~ .pull-right {
margin-left: 0;
}
+[data-theme="dark"] .fc {
+ --fc-border-color: var(--box-header-top-border-color);
+ --fc-page-bg-color: var(--box-bg);
+ --fc-neutral-bg-color: hsl(from var(--box-bg) h s calc(l + 5));
+ --fc-neutral-text-color: var(--color-fg);
+ --fc-list-event-hover-bg-color: hsl(from var(--box-bg) h s calc(l + 8));
+ --fc-today-bg-color: hsl(from var(--main-theme-color) h s calc(l - 25) / 0.25);
+}
+[data-theme="dark"] .fc .fc-col-header-cell,
+[data-theme="dark"] .fc .fc-list-day-cushion {
+ background-color: hsl(from var(--box-bg) h s calc(l + 5));
+ color: var(--color-fg);
+}
+[data-theme="dark"] .fc .fc-col-header-cell-cushion,
+[data-theme="dark"] .fc .fc-daygrid-day-number,
+[data-theme="dark"] .fc .fc-timegrid-axis-cushion,
+[data-theme="dark"] .fc .fc-timegrid-slot-label-cushion,
+[data-theme="dark"] .fc .fc-list-day-text,
+[data-theme="dark"] .fc .fc-list-day-side-text,
+[data-theme="dark"] .fc .fc-list-event-title,
+[data-theme="dark"] .fc .fc-list-event-time {
+ color: var(--color-fg);
+}
+[data-theme="dark"] .fc .fc-scrollgrid,
+[data-theme="dark"] .fc .fc-scrollgrid td,
+[data-theme="dark"] .fc .fc-scrollgrid th,
+[data-theme="dark"] .fc .fc-timegrid-slot,
+[data-theme="dark"] .fc .fc-daygrid-day {
+ border-color: var(--box-header-top-border-color);
+}
+.dashboard-row-eq {
+ margin-bottom: 20px;
+}
+@media (min-width: 992px) {
+ .dashboard-row-eq {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: stretch;
+ }
+ .dashboard-row-eq > [class*="col-"] {
+ display: flex;
+ flex-direction: column;
+ float: none;
+ }
+ .dashboard-row-eq > [class*="col-"] > .box {
+ display: flex;
+ flex-direction: column;
+ flex: 1 1 auto;
+ width: 100%;
+ min-height: 100%;
+ }
+ .dashboard-row-eq > [class*="col-"] > .box > .box-body {
+ flex: 1 1 auto;
+ }
+ .dashboard-row-eq > [class*="col-"] > .box.collapsed-box {
+ flex: 0 0 auto;
+ min-height: 0;
+ }
+}
+.snipeit-calendar-filters {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+ margin-bottom: 12px;
+ padding-bottom: 8px;
+ border-bottom: 1px solid var(--box-header-top-border-color, #ddd);
+}
+.snipeit-calendar-filter-button {
+ padding: 4px 10px;
+ font-size: 13px;
+}
+.snipeit-calendar-filter-button::before {
+ content: "\2713\00a0";
+ font-weight: bold;
+ visibility: hidden;
+}
+.snipeit-calendar-filter-button.active,
+.snipeit-calendar-filter-button.active:hover,
+.snipeit-calendar-filter-button.active:focus,
+.snipeit-calendar-filter-button.active:active {
+ background-color: var(--main-theme-color) !important;
+ background-image: none !important;
+ border-color: hsl(from var(--main-theme-color) h s calc(l - 15)) !important;
+ color: var(--nav-primary-text-color) !important;
+ box-shadow: inset 0 0 0 2px hsl(from var(--main-theme-color) h s calc(l - 25)) !important;
+}
+.snipeit-calendar-filter-button.active::before {
+ visibility: visible;
+}
+.snipeit-calendar-filter-button.active:focus {
+ box-shadow: inset 0 0 0 2px hsl(from var(--main-theme-color) h s calc(l - 25)), 0 0 0 3px hsl(from var(--main-theme-color) h s calc(l + 20) / 0.5) !important;
+}
/*# sourceMappingURL=overrides.css.map*/
\ No newline at end of file
diff --git a/public/css/build/overrides.css.map b/public/css/build/overrides.css.map
index 30a1c698ac..6fa2f9e5c6 100644
--- a/public/css/build/overrides.css.map
+++ b/public/css/build/overrides.css.map
@@ -1 +1 @@
-{"version":3,"file":"css/build/overrides.css","mappings":"AAAA;EAGE;AADF;AAGA;EACE;EACA;EACA;EACA;EACA;AADF;AAEE;;;EACE;AAEJ;AACA;EACE;AACF;AAEA;EACE;EACA;AAAF;AAGA;EACE;AADF;AAKA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;AAHF;AAMA;EACE;EACA;EACA;EACA;EACA;AAJF;AAOA;EACE;AALF;AAQA;EACE;AANF;AAeA;EACE;AAbF;AAeE;;EAEE;EACA;AAbJ;AAeE;EACE;AAbJ;AAkBA;EACE;AAhBF;AAmBA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAjBF;AAmBA;EACE;AAjBF;AAmBA;EACE;AAjBF;AAqBA;EACE;AAnBF;AAqBA;EACE;AAnBF;AAuBA;EACE;EACA;EACA;AArBF;AAwBA;EACE;EACA;EACA;AAtBF;AA+BA;EACE;AA7BF;AAgCA;EACE;EACA;EACA;AA9BF;AAiCA;EACE;EACA;AA/BF;AAkCA;EACE;AAhCF;AAmCA;EACE;EACA;AAjCF;AAoCA;;EACE;EACA;AAjCF;AAoCA;EACE;EACA;AAlCF;AAoCA;EACE;AAlCF;AAqCA;EACE;EACA;EACA;AAnCF;AAsCA;EACE;AApCF;AAuCA;EACE;AArCF;AAwCA;EACE;AAtCF;AAwCA;EACE;AAtCF;AAyCA;EACE;AAvCF;AA0CA;;;;EACE;AArCF;AAwCA;;;;;;;;;;;;;EAaE;AAtCF;AA2CA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAzCF;AA2CA;EACE;EACA;EACA;EACA;EACA;EACA;AAzCF;AA2CA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAzCF;AA2CA;EACE;AAzCF;AA2CA;EACE;EACA;EACA;EACA;AAzCF;AA2CA;EACE;EACA;AAzCF;AA2CA;EACE;EACA;EACA;EACA;EACA;AAzCF;AA2CA;EACE;EACA;AAzCF;AA2CA;EACE;EACA;EACA;EACA;AAzCF;AA4CA;EACE;EACA;AA1CF;AA+CA;EAAY;AA5CZ;AACA,cAAc;AA8Cd;EAAY;EAAkC;AA1C9C;AA2CA;EAA8B;EAAY;AAvC1C;AAyCA;EAAiD;EAAgB;EAAiB;AApClF;AAqCA;EAA8C;EAAa;AAjC3D;AAkCA;EAA+C;EAAoB;EAAa;EAAc;EAAgB;EAAqB;EAAW;EAAW;EAAmB;EAAoB;AAtBhM;AAuBA;EAAqD;EAAc;EAAa;EAAc;EAAqB;EAAqB;EAAoB;EAAU;AAbtK;AAcA;EAA0C;EAAoB;EAAoB;EAAa;EAAkB;AAPjH;AAQA;EAA0D;EAAW;EAAkB;AAHvF;AAIA;EAAmE;AADnE;AAEA;EAAiE;AACjE;AAAA;EAA6E;AAG7E;AAFA;EAA4E;AAK5E;AAJA;EAAwD;AAOxD;AANA;EAA8D;AAS9D;AARA;EAAuD;EAAW;AAYlE;AAXA;EAAsD;AActD;AAbA;EAAuD;AAgBvD;AACA;;;;;;;;EAQE;AAdF;EACE;EACA;EACA;AAgBF;AACA,kBAAkB;AAblB;EACE;EACA;EACA;EACA;EACA;EAeA,gCAAgC;AAClC;AAXA;EAGE;AAWF;AARA;EACE;AAUF;AANA;;EACE;AASF;AAPA;;EACE;AAUF;AAPA;EACE;EAIA;AAMF;AAHA;EACE;EACA;AAKF;AAFA;EACE;AAIF;AADA;EACE;AAGF;AAEA;EACE;AAAF;AAGA;EAEE;IACE;IACA;EAFF;EAKA;IACE;IACA;IACA;EAHF;EAMA;IACE;EAJF;EAOA;;IACE;EAJF;EAOA;IACE;IACA;IACA;IACA;IACA;IACA;IACA;EALF;EACA,+CAA+C;EAQ/C;IACE;EANF;EASA;IACE;EAPF;EAUA;IACE;EARF;EAWA;IACE;EATF;EACA,qCAAqC;EAYrC;;IACE;EATF;EACA,QAAQ;EAYR;;IACE;IACA;IACA;EATF;EAYA;IACE;EAVF;EAaA;IACE;EAXF;EAcA;IACE;IACA;IACA;EAZF;EAeA;IACE;IACA;EAbF;EAgBA;;IACE;EAbF;EAeA;;;;;;;;;;;;IACE;EAFF;EAKA;IACE;EAHF;EAKA;IACE;EAHF;EAKA;IACE;EAHF;EAKA;IACE;EAHF;EAKA;IACE;EAHF;EAKA;IACE;EAHF;EAKA;IACE;EAHF;EAKA;IACE;EAHF;EAKA;IACE;EAHF;EAKA;IACE;EAHF;EAKA;IACE;EAHF;EAKA;IACE;EAHF;AACF;AAQA;EACE;AANF;AASA;EACI;AAPJ;AAUA;EACE;AARF;AAWA;EACE;EACA;EACA;AATF;AAcA;EACE;EACA;OAAA;EACA;EACA;AAZF;AAeA;;EACE;EACA;EACA;AAZF;AAeA;EACE;AAbF;AAgBA;;;EACE;AAZF;AAeA;;EACE;AAZF;AAgBA;EACE;AAdF;AAiBA;EACE;AAfF;AAkBA;EACE;EACA;EACA;AAhBF;AAmBA;EACE;EACA;AAjBF;AAoBA;EACE;EACA;EACA;EACA;AAlBF;AAsBA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;AApBF;AAsBA;;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAnBF;AAsBA;EACE;AApBF;AAuBA;EACE;AArBF;AAwBA;EACE;AAtBF;AAyBA;EACE;AAvBF;AA0BA;EACE;AAxBF;AA4BA;EACE;EACA;EACA;EACA;EACA;EAGA;AA5BF;AA+BA;EACE;EACA;EACA;EACA;AA7BF;AAgCA;EACE;EACA;EACA;EACA;AA9BF;AAkCA;EACE;EACA;EACA;EACA;EACA;EACA;AAhCF;AACA;;;;EAIE;AAmCF;EACE;EACA;AAjCF;AAoCA;EACE;EACA;AAlCF;AAqCA;EACE;EACA;AAnCF;AAsCA;EACE;EACA;AApCF;AAwCA;EACE;AAtCF;AACA;;EAEE;AA2CF;EACE;IACE;IACA;EAzCF;EAkDA;IACE;EAhDF;EAmDA;IACE;EAjDF;AACF;AAoDA;EACE;EACA;EACA;AAlDF;AAqDA;EACE;EACA;AAnDF;AACA;;;;;;;;;;;EAWE;AAwDF;;;;;;;;;;;;;;;;EAiBE;EACA;EACA;EACA;EACA;EACA;AAvDF;AA2DA;;;;;;;;;;;;;;;;;EAkBE;EACA;EACA;EACA;AA1DF;AACA;;;EAGE;AA6DF;EAEE;EAAkB;EAAoC;AA1DxD;AA6DA;EAEE;EAAkB;EAAoC;AA1DxD;AA6DA;EAEE;EAAkB;EAAoC;AA1DxD;AA6DA;EAEE;EAAkB;EAAoC;AA1DxD;AA6DA;EAEE;EAAkB;EAAoC;AA1DxD;AA6DA;EACE;EAAkB;EAAoC;AAzDxD;AA4DA;EACE;EAAkB;EAAoC;EAAiB;AAvDzE;AA6DA;EACE;EAAkB;EAAoC;EAAiB;AAxDzE;AA2DA;EAEE;EAAkB;EAAoC;AAxDxD;AA2DA;EAEE;EAAkB;EAClB;EACA;AAzDF;AA4DA;EACE;EACA;EACA;EACA;AA1DF;AA4DA;EACE;EACA;EACA;EACA;AA1DF;AA4DA;EACE;EACA;EACA;EACA;AA1DF;AA4DA;EACE;EACA;EACA;EACA;AA1DF;AA6DA;EACE;EACA;EACA;EACA;AA3DF;AA8DA;EACE;EACA;EACA;EACA;AA5DF;AA+DA;EACE;EACA;EACA;EACA;AA7DF;AAiEA;EACE;EACA;EACA;EACA;AA/DF;AAmEA;;;EACE;AA/DF;AAkEA;;EACE;EACA;EACA;EACA;AA/DF;AAkEA;;EACE;AA/DF;AAkEA;EACE;AAhEF;AAmEA;EACE;IACE;EAjEF;AACF;AAmEA;EACE;IACE;EAjEF;EAmEA;IACE;EAjEF;AACF;AA+EA;EACE;IACE;EA7EF;EA+EA;IACE;IACA;EA7EF;EA+EA;IACE;IACA;EA7EF;EA+EA;IACE;IACA;EA7EF;AACF;AA+EA;EACE;IACE;EA7EF;AACF;AAgFA;EACE;IACE;EA9EF;AACF;AAgFA;EACE;IACE;IACA;IACA;IACA;IACA;EA9EF;AACF;AACA,oDAAoD;AAkFpD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAhFF;AAmFA;EACE;EACA;AAjFF;AACA;;;;;8EAK8E;AAoF9E;;;EAGE;AAlFF;AACA;;;;;;;;;;;;;;;8BAe8B;AAqF9B;;;EAGE;EACA;EACA;AAnFF;AACA;;;;4EAI4E;AAsF5E;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AApFF;AACA,8CAA8C;AAC9C,8CAA8C;AAC9C,8CAA8C;AAwF9C;EAtFE,kCAAkC;EAwFlC;EACA;OAAA;EAtFA,+CAA+C;EAwF/C;EAtFA,+BAA+B;EAwF/B;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAtFA,6BAA6B;AAC/B;AACA,yFAAyF;AA0FzF;EAxFE,2EAA2E;EAgG3E;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EA9FA,+BAA+B;EAgG/B;AA9FF;AACA,wEAAwE;AAiGxE;EACE;AA/FF;AACA,wEAAwE;AAkGxE;;EACE;EACA;EACA;EACA;EACA;AA/FF;AACA,6EAA6E;AAkG7E;;EACE;EACA;EACA;EACA;AA/FF;AACA,+EAA+E;AAkG/E;;EACE;EACA;EACA;EACA;AA/FF;AACA,qCAAqC;AAoGrC;EACE;KAAA;UAAA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAlGF;AAqGA;EACE;EACA;EACA;EACA;EACA;EACA;AAnGF;AAsGA;EACE;AApGF;AACA;;;;EAIE;AAwGF;EACE;AAtGF;AAyGA;EACE;EACA;EACA;EACA;AAvGF;AA0GA;EACE;AAxGF;AA2GA;EACE;AAzGF;AA4GA;EACE;AA1GF;AA6GA;EACE;AA3GF;AACA,8CAA8C;AAC9C,8CAA8C;AAC9C,8CAA8C;AAC9C;;;EAGE;AAgHF;EACE;EACA;EACA;EACA;EACA;AA9GF;AAiHA;;EAEE;EACA;EACA;AA/GF;AAkHA;EACE;AAhHF;AAmHA;EACE;AAjHF;AAmHA;EACE;AAjHF;AAoHA;EACE;EACA;EACA;AAlHF;AACA,kEAAkE;AAqHlE;EACE;AAnHF;AAsHA;EACE;EACA;AApHF;AAuHA;EACE;EACA;AArHF;AAwHA;EACE;EACA;EACA;EACA;EACA;EACA;AAtHF;AAyHA;;EACE;AAtHF;AAyHA;EACE;EAQA;EACA;EACA;AA9HF;AAiIA;EACE;EACA;AA/HF;AAkIA;EACE;AAhIF;AAmIA;EACE;EACA;AAjIF;AAqIA;EACO;EAAiB;EAAkB;AAjI1C;AAgIA;EAEO;EAAiB;EAAkB;AA7H1C;AA2HA;EAGO;EAAiB;EAAkB;AAzH1C;AAsHA;EAIO;EAAiB;EAAkB;AArH1C;AAiHA;;EAKW;EAAiB;EAAkB;AAhH9C;AA2GA;EAMM;AA9GN;AAwGA;EAOiB;AA5GjB;AAqGA;;EAQW;EAAiB;AAxG5B;AAgGA;EASoB;AAtGpB;AA0GA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAxGF;AA4GA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;AA1GF;AA6GA;EACE;AA3GF;AA8GA;EACE;EACA;EACA;AA5GF;AA+GA;EACE;EACA;EACA;EACA;AA7GF;AAgHA;EACE;EACA;AA9GF;AAiHA;EACE;AA/GF;AACA;;EAEE;AAkHF;EACI;AAhHJ;AACA;;EAEE;AAmHF;EACE;EACA;EACA;EACA;EACA;EACA;AAjHF;AAoHA;EACE;AAlHF;AAqHA;EACE;AAnHF;AAsHA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AApHF;AAuHA;EACE;EACA;EACA;AArHF;AAwHA;EACE;EACA;EACA;EACA;AAtHF;AAyHA;EACE;EACA;EACA;EACA;AAvHF;AA0HA;EACE;EACA;EACA;EACA;AAxHF;AA2HA;EACE;AAzHF;AA4HA;EACE;EACA;AA1HF;AA6HA;EACE;AA3HF;AAsIE;EAAA;;IACE;IACA;EAlIF;EAoIE;;IACE;IACA;IACA;IACA;IACA;IACA;IACA;EAjIJ;EAoIE;;IAEI;IACA;EAlIN;EA+HE;;IAOI;EAlIN;EA6GA;;IA2BI;EApIJ;EAyGA;;IA+BI;IACA;IACA;IACA;EApIJ;EAkGA;;IAsCI;IACA;IACA;IACA;IACA;IACA;IACA;IACA;EApIJ;EAsII;;;;;;IAGE;IACA;EAjIN;EA8EA;;IAwDI;IACA;IACA;IACA;EAlIJ;EAoII;;;;;;IAGE;EA/HN;AACF;AA4DA;;;;;;;;;;;;EAkFE;EACA;AAhIF;AAuIA;;EAEE;AArIF;AA6IA;EACE;IACE;IACA;EA3IF;AACF;AAyJA;EACE;EACA;EACA;AAvJF;AAgKA;;EAEE;EACA;AA9JF;AAqKA;;EAEE;AAnKF;AA0KA;EAOE;;;;;;IAME;EA9KF;AACF;AAoMA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAlMF;AAqMA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAnMF;AAsMA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AApMF;AAoNA;;;;;EAKE;EACA;AAlNF;AAqNA;EACE;AAnNF;AAsNA;EACE;EACA;EACA;AApNF;AAuNA;;;EAGE;AArNF;AAwNA;;EAEE;AAtNF;AAyNA;EACE;AAvNF;AA0NA;EACE;AAxNF;AA2NA;EACE;AAzNF;AA4NA;EACE;EA1NA,uDAAuD;EA4NvD;EACA;AA1NF;AA6NA;EACE;EA3NA,uDAAuD;EA6NvD;EACA;AA3NF;AA8NA;EACE;AA5NF;AA+NA;EACE;AA7NF;AAiOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BE;EACA;EACA;AA/NF;AAmOA;;EAEE;AAjOF;AACA;;;;;EAKE;AAoOF;;EAEE;EACA;AAlOF;AACA;;;;;;EAME;AAqOF;EACE;AAnOF;AACA;;EAEE;AAsOF;EACE;EACA;AApOF;AAuOA;EACE;EArOA,mFAAmF;EACnF,mDAAmD;EAuOnD;AArOF;AACA;;EAEE;AAwOF;EACE;EACA;AAtOF;AACA;;EAEE;AAyOF;;;;;EAKE;EAvOA,qCAAqC;EAyOrC;AAvOF;AA0OA;;EAEE;EACA;EACA;AAxOF;AA2OA;EACE;AAzOF;AA4OA;EACE;EACA;EACA;AA1OF;AACA;;;;;;;;;;CAUC;AA6OD;EACE;EACA;EACA;AA3OF;AACA;2CAC2C;AA8O3C;EACE;AA5OF;AACA;;;;0CAI0C;AA+O1C;EACE;AA7OF;AAgPA;EACE;AA9OF;AAiPA;EACE;AA/OF;AAkPA;EACE;AAhPF;AACA;;UAEU;AAmPV;EACE;AAjPF;AACA;;;;;yBAKyB;AAoPzB;EACE;AAlPF;AAqPA;;;;EAIE;EACA;EACA;AAnPF;AAsPA;EACE;AApPF;AACA;oEACoE;AAuPpE;;;EAGE;EACA;AArPF;AACA;;;;;;;;;uEASuE;AAwPvE;;;;;;;;;EASE;AAtPF;AACA;;;;;;;;oEAQoE;AAyPpE;EACE;EACA;EACA;AAvPF;AA0PA;;EAEE;EACA;EACA;AAxPF;AACA;;uCAEuC;AA2PvC;EACE;EACA;EACA;EACA;AAzPF;AA4PA;;EAEE;EACA;AA1PF;AACA,iDAAiD;AA8PjD;;EAEE;EACA;AA5PF;AAiQA;EACE;EACA;EACA;AA/PF;AAkQA;;;;;;;;;;;EAWE;EACA;AAhQF;AAmQA;EACE;EACA;AAjQF;AA+PA;EACE;EACA;AAjQF;AAoQA;EACE;EACA;AAlQF;AAqQA;EACE;AAnQF;AAsQA;EACE;EACA;EACA;EACA;EACA;EACA;AApQF;AAuQA;;;;;;;EAOE;AArQF;AAwQA;;;;;;;;;;;;;;;;;;;;;;EAsBE;AAtQF;AA0QA;;;;EAIE;EACA;EACA;AAxQF;AA4QA;;EAEE;AA1QF;AA6QA;EACE;EACA;AA3QF;AA+QA;;;;EAIE;AA7QF;AACA;;;;;EAKE;AAgRF;EACE;EACA;EACA;AA9QF;AAiRA;;EAEE;EACA;AA/QF;AACA;;;;;;;EAOE;AAkRF;EAAsB;AA/QtB;AAgRA;EAA4B;AA7Q5B;AA+QA;EAAwB;AA5QxB;AA6QA;EAA8B;AA1Q9B;AA4QA;EAAyB;AAzQzB;AA0QA;EAA+B;AAvQ/B;AAyQA;EAAuB;AAtQvB;AAuQA;EAA6B;AApQ7B;AAsQA;;;;;;;;;;EAUE;EACA;EACA;AApQF;AAuQA;EACE;AArQF;AACA;;;;;;;mEAOmE;AAwQnE;;;EAGE;AAtQF;AAyQA;EACE;AAvQF;AA2QA;EACE;AAzQF;AA4QA;EACE;AA1QF;AA8QA;EACE;EACA;EACA;EACA;AA5QF;AAgRA;EACE;EACA;AA9QF;AAiRA;;;;;;;;;;;EAYE;EACA;EACA;EACA;AAhRF;AAoRA;EACE;AAlRF;AAqRA;EACE;AAnRF;AAsRA;;EAEE;EACA;EACA;AApRF;AAuRA;EACE;EACA;AArRF;AAwRA;EACE;EACA;EACA;EACA;EACA;EACA;AAtRF;AAyRA;EACE;AAvRF;AACA;;EAEE;AA2RF;EACE;AAzRF;AACA;;EAEE;AA6RF;;;;;;EAME;AA3RF;AA+RA;;;;EAIE;EACA;EACA;AA7RF;AAgSA;;;;EAIE;EACA;EACA;AA9RF;AA1gEC;;EAg1EO;EACA;EACA;EACA;AAlUR;AAjhEC;;EAg1EO;EACA;EACA;EACA;AA3TR;AAxhEC;;EAg1EO;EACA;EACA;EACA;AApTR;AA/hEC;;EAg1EO;EACA;EACA;EACA;AA7SR;AAtiEC;;EAg1EO;EACA;EACA;EACA;AAtSR;AA7iEC;;EAg1EO;EACA;EACA;EACA;AA/RR;AApjEC;;EAg1EO;EACA;EACA;EACA;AAxRR;AA3jEC;;EAg1EO;EACA;EACA;EACA;AAjRR;AAlkEC;;EAg1EO;EACA;EACA;EACA;AA1QR;AAzkEC;;EAg1EO;EACA;EACA;EACA;AAnQR;AAhlEC;;EAg1EO;EACA;EACA;EACA;AA5PR;AAvlEC;;EAg1EO;EACA;EACA;EACA;AArPR;AA9lEC;;EAg1EO;EACA;EACA;EACA;AA9OR;AArmEC;;EAg1EO;EACA;EACA;EACA;AAvOR;AA5mEC;;EAg1EO;EACA;EACA;EACA;AAhOR;AAnnEC;;EAg2EO;EACA;EACA;EACA;AAzOR;AA1nEC;;EAg2EO;EACA;EACA;EACA;AAlOR;AAjoEC;;EAg2EO;EACA;EACA;EACA;AA3NR;AAxoEC;;EAg2EO;EACA;EACA;EACA;AApNR;AA/oEC;;EAg2EO;EACA;EACA;EACA;AA7MR;AAtpEC;;EAg2EO;EACA;EACA;EACA;AAtMR;AA7pEC;;EAg2EO;EACA;EACA;EACA;AA/LR;AApqEC;;EAg2EO;EACA;EACA;EACA;AAxLR;AA3qEC;;EAg2EO;EACA;EACA;EACA;AAjLR;AAlrEC;;EAg2EO;EACA;EACA;EACA;AA1KR;AAzrEC;;EAg2EO;EACA;EACA;EACA;AAnKR;AAhsEC;;EAg2EO;EACA;EACA;EACA;AA5JR;AAvsEC;;EAg2EO;EACA;EACA;EACA;AArJR;AA9sEC;;EAg2EO;EACA;EACA;EACA;AA9IR;AArtEC;;EAg2EO;EACA;EACA;EACA;AAvIR;AA5tEC;EAg3EO;AAjJR;AA/tEC;EAm3EO;AAjJR;AAluEC;EAs3EO;AAjJR;AAruEC;EAg3EO;AAxIR;AAxuEC;EAm3EO;AAxIR;AA3uEC;EAs3EO;AAxIR;AA9uEC;EAg3EO;AA/HR;AAjvEC;EAm3EO;AA/HR;AApvEC;EAs3EO;AA/HR;AAvvEC;EAg3EO;AAtHR;AA1vEC;EAm3EO;AAtHR;AA7vEC;EAs3EO;AAtHR;AAhwEC;EAg3EO;AA7GR;AAnwEC;EAm3EO;AA7GR;AAtwEC;EAs3EO;AA7GR;AAzwEC;EAi4EO;AArHR;AA5wEC;EAo4EO;AArHR;AA/wEC;EAu4EO;AArHR;AAlxEC;EAi4EO;AA5GR;AArxEC;EAo4EO;AA5GR;AAxxEC;EAu4EO;AA5GR;AA3xEC;EAi4EO;AAnGR;AA9xEC;EAo4EO;AAnGR;AAjyEC;EAu4EO;AAnGR;AApyEC;EAi4EO;AA1FR;AAvyEC;EAo4EO;AA1FR;AA1yEC;EAu4EO;AA1FR;AA7yEC;EAi4EO;AAjFR;AAhzEC;EAo4EO;AAjFR;AAnzEC;EAu4EO;AAjFR;AAtzEC;EA05EO;EACA;AAjGR;AA1zEC;EA85EO;EACA;EACA;AAjGR;AA/zEC;EAm6EO;EACA;EACA;AAjGR;AAp0EC;EA05EO;EACA;AAnFR;AAx0EC;EA85EO;EACA;EACA;AAnFR;AA70EC;EAm6EO;EACA;EACA;AAnFR;AAl1EC;EA05EO;EACA;AArER;AAt1EC;EA85EO;EACA;EACA;AArER;AA31EC;EAm6EO;EACA;EACA;AArER;AAh2EC;EA05EO;EACA;AAvDR;AAp2EC;EA85EO;EACA;EACA;AAvDR;AAz2EC;EAm6EO;EACA;EACA;AAvDR;AA92EC;EA05EO;EACA;AAzCR;AAl3EC;EA85EO;EACA;EACA;AAzCR;AAv3EC;EAm6EO;EACA;EACA;AAzCR;AA53EC;EAg7EO;EACA;AAjDR;AAh4EC;EAo7EO;EACA;EACA;AAjDR;AAr4EC;EAy7EO;EACA;EACA;AAjDR;AA14EC;EAg7EO;EACA;AAnCR;AA94EC;EAo7EO;EACA;EACA;AAnCR;AAn5EC;EAy7EO;EACA;EACA;AAnCR;AAx5EC;EAg7EO;EACA;AArBR;AA55EC;EAo7EO;EACA;EACA;AArBR;AAj6EC;EAy7EO;EACA;EACA;AArBR;AAt6EC;EAg7EO;EACA;AAPR;AA16EC;EAo7EO;EACA;EACA;AAPR;AA/6EC;EAy7EO;EACA;EACA;AAPR;AAp7EC;EAg7EO;EACA;AAOR;AAx7EC;EAo7EO;EACA;EACA;AAOR;AA77EC;EAy7EO;EACA;EACA;AAOR;AAWA;;EAEI;EACA;EACA;EACA;AATJ;AAYA;EACI;AAVJ;AAYA;EACI;AAVJ;AAaA;EACI;AAXJ;AAoBA;EACI;EACA;AAlBJ;AAoBA;EACI;EACA;EACA;AAlBJ;AAoBA;EACI;EACA;EACA;AAlBJ;AA+BA;EASI;EACA;EAcA;EACA;EACA;EACA;EAIA;EACA;EAoBA;AAxEJ;AA+EI;EAII;AAhFR;AAyFI;EACI;AAvFR;AAyFI;EACI;EACA;AAvFR;AAyFI;EACI;EACA;AAvFR;AAyFI;EACI;AAvFR;AA2FA;EAGI;AA3FJ;AAsGA;EACI;EACA;AApGJ;AAsGI;EACI;AApGR;AAsGI;EACI;EACA;AApGR;AAsGI;EACI;EACA;AApGR;AAsGI;EACI;AApGR;AACA;;EAEE;AA2GF;EACE;EACA;AAzGF;AA6GA;;;;;EAKE;EACA;AA3GF;AA8GA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;AA5GF;AAgHA;;EAEE;AA9GF;AAiHA;;;;;;;;;EASE;EA/GA,qCAAqC;EAiHrC;EA/GA,mDAAmD;AACrD;AAmHA;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BE;EACA;EACA;AAjHF;AAoHA;EACE;EACA;EACA;AAlHF;AAsHA;EACE;AApHF;AAuHA;EACE;EACA;AArHF;AAyHA;;EAEE;EACA;EACA;AAvHF;AA0HA;EACE;EACA;AAxHF;AA2HA;;;;;;;;;;;;EASE;EACA;EACA;AAtHF;AAyHA;;;EACE;AArHF;AACA;;EAEE;AA0HF;EACE;AAxHF;AAmJA;EACE;IACE;IACA;EAjJF;EAmJA;IACE;EAjJF;EAmJA;IACE;EAjJF;EA4JA;IACE;EA1JF;AACF;AA8JA;;;EAGE;EACA;AA5JF;AA+JA;;EAEE;EACA;AA7JF;AAiKA;EACE;AA/JF;AAkKA;EACE;AAhKF;AAoKA;EACE;AAlKF;AAqKA;;;EAGE;AAnKF;AAsKA;;EAEE;EACA;EACA;EACA;EACA;AApKF;AAuKA;;;;;;;;EAQE;EACA;EACA;AArKF;AAyKA;EACE;AAvKF;AA0KA;;EAEE;AAxKF;AA2KA;EACE;AAzKF;AA4KA;;;;;;;;;;EAUE;AA1KF;AAqLA;;;;;;;;;;;;;;;;;;;;EAKI;AApKJ;AAyKA;;;;EAIE;AAvKF;AA0KA;EACE;AAxKF;AA2KA;EACE;AAzKF;AA4KA;EACE;AA1KF;AA6KA;EACE;AA3KF;AA8KA;EACE;AA5KF;AA+KA;EACE;EACA;EACA;EACA;AA7KF;AAiLA;EACE;AA/KF;AAmLA;EACE;AAjLF;AAqLA;EACE;EACA;AAnLF;AAuLA;;EAEE;AArLF;AAyLA;;;;EACE;EACA;AApLF;AAwLA;EACE;AAtLF;AAyLA;;EAEE;EACA;AAvLF;AA2LA;EACE;EACA;AAzLF;AA4LA;;;;;;EAME;EA1LA,qCAAqC;EA4LrC;AA1LF;AA6LA;EACE;EACA;AA3LF;AA8LA;;;EAGE;EACA;AA5LF;AA+LA;;EAEE;AA7LF;AAgMA;EACE;AA9LF;AAiMA;EACE;AA/LF;AAkMA;EACE;AAhMF;AAmMA;;EACE;AAhMF;AAmMA;EACE;AAjMF;AAoMA;;;;;;;;EAQE;AAlMF;AAqMA;;;;;;;;;;EAUE;AAnMF;AAsMA;EACE;AApMF;AAuMA;EACE;EACA;AArMF;AAwMA;EACE;EACA;AAtMF;AAyMA;EAEE;;;;;;;;;;;;;IAaE;IACA;EAxMF;EA2MA;;;;IAIE;EAzMF;EA4MA;IACE;IACA;EA1MF;EA6MA;;;IACE;EAzMF;EA4MA;;IAEE;IACA;EA1MF;AACF;AA8MA;EACE;EACA;EACA;AA5MF;AA+MA;EACE;AA7MF;AAgNA;EACE;AA9MF;AAiNA;EACE;EACA;EACA;AA/MF;AACA,UAAU;AAoNV;EACE;EACA;EACA;EACA;AAlNF;AAqNA;EACE;EACA;EACA;EAnNA,qBAAqB;EAqNrB;EACA;EACA;EACA;EACA;AAnNF;AAsNA;EACE;EACA;EACA;EACA;EACA;EACA;AApNF;AAuNA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;AArNF;AAwNA;EACE;EACA;EACA;EACA;EACA;AAtNF;AAyNA;EACE;AAvNF;AA0NA;;EACE;AAvNF;AA2NA;EACE;IACE;EAzNF;EA4NA;IACE;EA1NF;AACF;AA6NA;EA3NE,kCAAkC;EA6NlC;IACE;IACA;EA3NF;AACF;AAwOA;;EAEE;AAtOF;AAyOA;;EAEE;EACA;AAvOF;AA0OA;;EAEE;AAxOF;AAgPA;;EAEE;AA9OF;AAuPA;;EAEE;AArPF;AA6PA;EACE;EAMA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAhQF;AAmQA;EACE;EAGA;EACA;AAnQF;AAqQE;;;EAGE;EACA;AAnQJ;AAwPA;EAoBI;EACA;EACA;AAzQJ;AA6QA;EACE;EACA;EACA;AA3QF;AAmRA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAjRF;AAmRE;;EAEE;EACA;AAjRJ;AAiQA;EAuBI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AArRJ;AAwSA;EACE;IACE;IACA;EAtSF;AACF;AAoUA;EACE;EACA;EACA;EAIA;AArUF;AA8TA;EAUI;EACA;AArUJ;AA0TA;EAeI;AAtUJ","sources":["webpack:///./resources/assets/less/overrides.less"],"sourcesContent":[".main-header\n\n.logo {\n background-color: inherit;\n}\n.main-header .logo {\n width: 100% !important;\n white-space: nowrap;\n text-align: left;\n display: block;\n clear: both;\n &a:link, a:hover, a:visited {\n color: #fff\n }\n}\n.huge {\n font-size: 40px;\n}\n\n.btn-file {\n position: relative;\n overflow: hidden;\n}\n\n.dropdown-menu>li>a {\n color: #354044;\n}\n\n\n#sort tr.cansort {\n border-radius: 2px;\n padding: 10px;\n background: #f4f4f4;\n margin-bottom: 3px;\n border-inline: 2px solid #e6e7e8;\n color: #444;\n cursor: move;\n}\n\n.user-image-inline {\n float: left;\n width: 25px;\n height: 25px;\n border-radius: 50%;\n margin-right: 10px;\n}\n\n.input-group .input-group-addon {\n background-color: #f4f4f4;\n}\n\na.accordion-header {\n color: #333;\n}\n\n// Mirror BS3's .form-group spacing — same margin-bottom, no padding —\n// plus a clearfix so floated col-md-* children don't leak past the\n// wrapper. Without the clearfix, a row whose floats don't fill the full\n// 12 cols (e.g. password_confirmation at 3 + 8) leaves a gap on the\n// right edge that pulls the next row's first child up alongside it,\n// visually offsetting that row's label/input.\n.dynamic-form-row {\n margin-bottom: 15px;\n\n &::before,\n &::after {\n content: \" \";\n display: table;\n }\n &::after {\n clear: both;\n }\n}\n\n\n.handle {\n padding-left: 10px;\n}\n\n.btn-file input[type=file] {\n position: absolute;\n top: 0;\n right: 0;\n min-width: 100%;\n min-height: 100%;\n font-size: 100px;\n text-align: right;\n filter: alpha(opacity=0);\n opacity: 0;\n outline: none;\n background: white;\n cursor: inherit;\n display: block;\n}\n.main-footer {\n font-size: 13px;\n}\n.main-header {\n max-height: 150px;\n}\n\n\n.navbar-nav>.user-menu>.dropdown-menu {\n width: inherit;\n}\n.main-header .logo {\n padding: 0px 5px 0px 15px;\n}\n\n\n.sidebar-toggle {\n margin-left: -48px;\n z-index: 100;\n background-color: inherit;\n}\n\n.sidebar-toggle-mobile {\n z-index: 100;\n width: 50px;\n padding-top: 10px;\n}\n\n\n.main-header\n.navbar\n.dropdown-menu li a {\n //color: inherit;\n}\n.pull-text-right{\n text-align: right !important;\n}\n\n.main-header .sidebar-toggle:before {\n content: \"\\f0c9\";\n font-weight: 900;\n font-family: 'Font Awesome\\ 5 Free';\n}\n\n.direct-chat-contacts {\n padding: 10px;\n height: 150px;\n}\n\n.select2-container {\n width: 100%;\n}\n\n.error input {\n color: #a94442;\n border: 2px solid #a94442 !important;\n}\n\n.error label, .alert-msg {\n color: #a94442;\n display: block;\n}\n\n.input-group[class*=\"col-\"] {\n padding-right: 15px;\n padding-left: 15px;\n}\n.control-label.multiline {\n padding-top: 10px;\n}\n\n.btn-outline {\n color: inherit;\n background-color: transparent;\n transition: all .5s;\n}\n\n.btn-primary.btn-outline {\n color: #428bca;\n}\n\n.btn-success.btn-outline {\n color: #5cb85c;\n}\n\n.btn-info.btn-outline {\n color: #5bc0de;\n}\n.btn-warning{\n background-color:#f39c12 !important;\n}\n\n.btn-warning.btn-outline {\n color: #f0ad4e;\n}\n\n.btn-danger.btn-outline, a.link-danger:link, a.link-danger:visited, a.link-danger:hover {\n color: #dd4b39;\n}\n\n.btn-primary:hover,\n.btn-success:hover,\n.btn-info:hover,\n.btn-warning:hover,\n.btn-primary,\n.btn-success,\n.btn-info,\n.btn-warning,\n.btn-primary.btn-outline:hover,\n.btn-success.btn-outline:hover,\n.btn-info.btn-outline:hover,\n.btn-warning.btn-outline:hover,\n.btn-danger.btn-outline:hover {\n color: #fff !important;\n}\n\n\n\n.slideout-menu {\n position: fixed;\n top: 0;\n right: -250px;\n width: 250px;\n height: 100%;\n background: #333;\n z-index: 100;\n margin-top: 100px;\n color: white;\n padding: 10px;\n}\n.slideout-menu h3 {\n position: relative;\n padding: 5px 5px;\n color: #fff;\n font-size: 1.2em;\n font-weight: 400;\n border-bottom: 4px solid #222;\n}\n.slideout-menu .slideout-menu-toggle {\n position: absolute;\n top: 12px;\n right: 10px;\n display: inline-block;\n padding: 6px 9px 5px;\n font-family: Arial, sans-serif;\n font-weight: bold;\n line-height: 1;\n background: #222;\n color: #999;\n text-decoration: none;\n vertical-align: top;\n}\n.slideout-menu .slideout-menu-toggle:hover {\n color: #fff;\n}\n.slideout-menu ul {\n list-style: none;\n font-weight: 300;\n border-top: 1px solid #151515;\n border-bottom: 1px solid #454545;\n}\n.slideout-menu ul li {\n border-top: 1px solid #454545;\n border-bottom: 1px solid #151515;\n}\n.slideout-menu ul li a {\n position: relative;\n display: block;\n padding: 10px;\n color: #999;\n text-decoration: none;\n}\n.slideout-menu ul li a:hover {\n background: #000;\n color: #fff;\n}\n.slideout-menu ul li a i {\n position: absolute;\n top: 15px;\n right: 10px;\n opacity: .5;\n}\n\n.btn-box-tool-lg {\n font-size: 16px;\n color: orange;\n}\n\n\n\n.bs-wizard {margin-top: 20px;}\n\n/*Form Wizard*/\n.bs-wizard {border-bottom: solid 1px #e0e0e0; padding: 0 0 10px 0;}\n.bs-wizard > .bs-wizard-step {padding: 0; position: relative;}\n.bs-wizard > .bs-wizard-step + .bs-wizard-step {}\n.bs-wizard > .bs-wizard-step .bs-wizard-stepnum {color: #595959; font-size: 16px; margin-bottom: 5px;}\n.bs-wizard > .bs-wizard-step .bs-wizard-info {color: #999; font-size: 14px;}\n.bs-wizard > .bs-wizard-step > .bs-wizard-dot {position: absolute; width: 30px; height: 30px; display: block; background: #fbe8aa; top: 45px; left: 50%; margin-top: -15px; margin-left: -15px; border-radius: 50%;}\n.bs-wizard > .bs-wizard-step > .bs-wizard-dot:after {content: ' '; width: 14px; height: 14px; background: #fbbd19; border-radius: 50px; position: absolute; top: 8px; left: 8px; }\n.bs-wizard > .bs-wizard-step > .progress {position: relative; border-radius: 0px; height: 8px; box-shadow: none; margin: 20px 0;}\n.bs-wizard > .bs-wizard-step > .progress > .progress-bar {width:0px; box-shadow: none; background: #fbe8aa;}\n.bs-wizard > .bs-wizard-step.complete > .progress > .progress-bar {width:100%;}\n.bs-wizard > .bs-wizard-step.active > .progress > .progress-bar {width:50%;}\n.bs-wizard > .bs-wizard-step:first-child.active > .progress > .progress-bar {width:0%;}\n.bs-wizard > .bs-wizard-step:last-child.active > .progress > .progress-bar {width: 100%;}\n.bs-wizard > .bs-wizard-step.disabled > .bs-wizard-dot {background-color: #f5f5f5;}\n.bs-wizard > .bs-wizard-step.disabled > .bs-wizard-dot:after {opacity: 0;}\n.bs-wizard > .bs-wizard-step:first-child > .progress {left: 50%; width: 50%;}\n.bs-wizard > .bs-wizard-step:last-child > .progress {width: 50%;}\n.bs-wizard > .bs-wizard-step.disabled a.bs-wizard-dot{ pointer-events: none; }\n\n/**\nPrevent step titles from wrapping to a second line at intermediate\nwidths (QA reported ~1265px). The .bs-wizard-dot is absolutely\npositioned at top:45px per step, so any step whose stepnum grows\ntaller than one line pushes its progress bar down while its neighbours\nstay high — the connecting line looks broken. Nowrap + ellipsis keeps\nevery stepnum a consistent single-line height so the line stays\nlevel and threads through the dot centers as designed.\n */\n.bs-wizard > .bs-wizard-step .bs-wizard-stepnum {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n/*END Form Wizard*/\n\n.left-navblock {\n display: inline-block;\n float: left;\n text-align: left;\n color: white;\n padding: 0px;\n /* adjust based on your layout */\n\n}\n\n.main-header\n.navbar\n.dropdown-menu li a {\n color: #333;\n}\n\na.logo.no-hover a:hover {\n background-color: transparent;\n}\n\n\ninput:required, select:required {\n border-right: 5px solid orange;\n}\nselect:required + .select2-container .select2-selection, select:required + .select2-container .select2-selection .select2-selection--multiple {\n border-right: 5px solid orange !important;\n}\n\nbody {\n font-family: -apple-system, BlinkMacSystemFont,\n \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Cantarell\",\n \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\n sans-serif;\n font-size: 13px;\n}\n\n.sidebar-menu {\n font-size: 14px;\n white-space: normal;\n}\n\n.modal-warning .modal-help {\n color: #fff8af;\n}\n\n.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading {\n z-index: 0 !important;\n}\n\n// Clip the absolutely-positioned fixed-column overlays so they cannot\n// bleed past the container's bottom edge into the pagination area.\n.bootstrap-table .fixed-table-container {\n overflow: hidden;\n}\n\n@media print {\n\n @page {\n size: A4;\n margin: 0mm;\n }\n\n .tab-content > .tab-pane {\n display: block !important;\n opacity: 1 !important;\n visibility: visible !important;\n }\n\n .img-responsive {\n width: 200px;\n }\n\n html, body {\n width: 1024px;\n }\n\n body {\n margin: 0 auto;\n line-height: 1em;\n word-spacing:1px;\n letter-spacing:0.2px;\n font: 15px \"Times New Roman\", Times, serif;\n width: 100%;\n float: none;\n }\n\n /* avoid page-breaks inside a listingContainer*/\n .listingContainer {\n page-break-inside: avoid;\n }\n\n h1 {\n font: 28px \"Times New Roman\", Times, serif;\n }\n\n h2 {\n font: 24px \"Times New Roman\", Times, serif;\n }\n\n h3 {\n font: 20px \"Times New Roman\", Times, serif;\n }\n\n /* Improve colour contrast of links */\n a:link, a:visited {\n color: #781351\n }\n\n /* URL */\n a:link, a:visited {\n background: transparent;\n color:#333;\n text-decoration:none;\n }\n\n a[href]:after {\n content: \"\" !important;\n }\n\n a[href^=\"http://\"] {\n color:#000;\n }\n\n #header {\n height:75px;\n font-size: 24pt;\n color:black\n }\n\n div.row-new-striped {\n margin: 0px;\n padding: 0px;\n }\n\n .pagination-detail, .fixed-table-toolbar {\n visibility: hidden;\n }\n .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 .col-sm-pull-3 .col-sm-push-9 {\n float: left;\n }\n\n .col-sm-12 {\n width: 100%;\n }\n .col-sm-11 {\n width: 91.66666666666666%;\n }\n .col-sm-10 {\n width: 83.33333333333334%;\n }\n .col-sm-9 {\n width: 75%;\n }\n .col-sm-8 {\n width: 66.66666666666666%;\n }\n .col-sm-7 {\n width: 58.333333333333336%;\n }\n .col-sm-6 {\n width: 50%;\n }\n .col-sm-5 {\n width: 41.66666666666667%;\n }\n .col-sm-4 {\n width: 33.33333333333333%;\n }\n .col-sm-3 {\n width: 25%;\n }\n .col-sm-2 {\n width: 16.666666666666664%;\n }\n .col-sm-1 {\n width: 8.333333333333332%;\n }\n\n}\n\n\n.select2-selection__choice__remove {\n color: white !important;\n}\n\n.select2-selection--multiple {\n overflow-y: auto;\n}\n\n.select2-selection__choice {\n border-radius: 0px !important;\n}\n\n.select2-search select2-search--inline {\n height: 35px !important;\n float: left;\n margin: 0;\n}\n\n\n\n.select2-results__option {\n padding: 5px;\n user-select: none;\n -webkit-user-select: none;\n margin: 0px;\n}\n\nimg.navbar-brand-img, .navbar-brand>img {\n float: left;\n padding: 5px 5px 5px 0;\n max-height: 50px;\n}\n\n.asset-qr-img img {\n image-rendering: pixelated;\n}\n\n.input-daterange, .input-daterange input:first-child, .input-daterange input:last-child {\n border-radius: 0px !important;\n}\n\n.btn-checkin, .btn-checkout {\n min-width:90px;\n}\n\n\n[hidden] {\n display: none !important;\n}\n\n#toolbar {\n margin-top: 10px;\n}\n\n#uploadPreview {\n border-color: grey;\n border-width: 1px;\n border-style: solid\n}\n\n.icon-med {\n font-size: 14px;\n color: #889195;\n}\n\n#login-logo {\n padding-top: 5px;\n padding-bottom: 5px;\n padding-right: 15px;\n max-width: 200px\n}\n\n// accessibility skip link\na.skip-main {\n left:-999px;\n position:absolute;\n top:auto;\n width:1px;\n height:1px;\n overflow:hidden;\n z-index:-999;\n}\na.skip-main:focus, a.skip-main:active {\n color: #fff;\n background-color:#000;\n left: auto;\n top: auto;\n width: 30%;\n height: auto;\n overflow:auto;\n margin: 10px 35%;\n padding:5px;\n border-radius: 15px;\n border:4px solid yellow;\n text-align:center;\n font-size:1.2em;\n z-index:999;\n}\n\nh2 {\n font-size: 22px;\n}\n\nh2.task_menu {\n font-size: 14px;\n}\n\nh2 small {\n font-size: 85%;\n}\n\nh3 {\n font-size: 20px;\n}\n\nh4 {\n font-size: 16px;\n}\n\n\n.row-striped {\n vertical-align: top;\n line-height: 2.6;\n padding: 0px;\n margin-left: 20px;\n box-sizing: border-box;\n //border-left: 1px solid #dddddd;\n //border-right: 1px solid #dddddd;\n display: table;\n}\n\n.row-striped .row:nth-of-type(odd) div {\n background-color: #f9f9f9;\n border-top: 1px solid #dddddd;\n display: table-cell;\n word-wrap: break-word;\n}\n\n.row-striped .row:nth-of-type(even) div {\n background: #FFFFFF;\n border-top: 1px solid #dddddd;\n display: table-cell;\n word-wrap: break-word;\n}\n\n\n.row-new-striped {\n vertical-align: top;\n padding: 3px;\n display: table;\n width: 100%;\n word-wrap: break-word;\n table-layout:fixed;\n}\n\n/**\n* NEW STRIPING\n* This section is for the new row striping for nicer \n* display for non-table data as of v6\n**/\n.row-new-striped > .row:nth-of-type(even) {\n line-height: 1.9;\n display: table-row;\n}\n\n.row-new-striped > .row:nth-of-type(odd) {\n display: table-row;\n padding: 2px;\n}\n\n.row-new-striped div {\n display: table-cell;\n padding: 6px;\n}\n\n.row-new-striped div {\n display: table-cell;\n padding: 6px;\n}\n\n\n.row-new-striped div[class^=\"col\"]:first-child {\n font-weight: bold;\n}\n\n\n\n/**\n* This just adds a little extra padding on mobile\n**/\n@media only screen and (max-width: 520px) {\n h1.pagetitle {\n padding-top: 15px;\n padding-bottom: 15px;\n }\n\n // .firstnav { padding-top: 120px !important } used to live here as\n // another static compensation for the wrapped-header-covers-first-item\n // bug at narrow widths. Superseded by the dynamic\n // .main-sidebar padding-top: var(--main-header-height) rule; leaving\n // it would double-count on top of the runtime-measured header height.\n\n .product {\n width: 400px;\n }\n\n .product img {\n min-width: 400px;\n }\n}\n\n.card-view-title {\n min-width: 40% !important;\n line-height: 3.0!important;\n padding-right: 20px;\n}\n\n.card-view {\n display: table-row;\n flex-direction: column;\n}\n\n// ---------------\n\n/**\n\n COLUMN SELECTOR ICONS\n -----------------------------\n This is kind of weird, but it is necessary to prevent the column-selector code from barfing, since\n any HTML used in the UserPresenter \"title\" attribute breaks the column selector HTML.\n\n Instead, we use CSS to add the icon into the table header, which leaves the column selector\n \"title\" text as-is and hides the icon.\n\n See https://github.com/grokability/snipe-it/issues/7989\n */\nthead th.css-accessory > .th-inner,\nthead th.css-accessory-alt > .th-inner,\nthead th.css-barcode > .th-inner,\nthead th.css-component > .th-inner,\nthead th.css-consumable > .th-inner,\nthead th.css-envelope > .th-inner,\nthead th.css-house-flag > .th-inner,\nthead th.css-house-laptop > .th-inner,\nthead th.css-house-user > .th-inner,\nthead th.css-license > .th-inner,\nthead th.css-location > .th-inner,\nthead th.css-maintenances > .th-inner,\nthead th.css-users > .th-inner,\nthead th.css-currency > .th-inner,\nthead th.css-child-locations > .th-inner,\nthead th.css-history > .th-inner\n{\n font-size: 0px;\n line-height: 0.75 !important;\n text-align: left;\n text-rendering: auto;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n\nthead th.css-location > .th-inner::before,\nthead th.css-accessory > .th-inner::before,\nthead th.css-accessory-alt > .th-inner::before,\nthead th.css-barcode > .th-inner::before,\nthead th.css-component > .th-inner::before,\nthead th.css-consumable > .th-inner::before,\nthead th.css-envelope > .th-inner::before,\nthead th.css-house-flag > .th-inner::before,\nthead th.css-house-laptop > .th-inner::before,\nthead th.css-house-user > .th-inner::before,\nthead th.css-license > .th-inner::before,\nthead th.css-location > .th-inner::before,\nthead th.css-maintenances > .th-inner::before,\nthead th.css-users > .th-inner::before,\nthead th.css-currency > .th-inner::before,\nthead th.css-child-locations > .th-inner::before,\nthead th.css-history > .th-inner::before\n{\n display: inline-block;\n font-size: 20px;\n font-family: \"Font Awesome 5 Free\";\n font-weight: 900;\n}\n\n/**\nBEGIN ICON TABLE HEADERS\nSet the font-weight css property as 900 (For Solid), 400 (Regular or Brands), 300 (Light for pro icons).\n**/\nthead th.css-barcode > .th-inner::before\n{\n content: \"\\f02a\"; font-family: \"Font Awesome 5 Free\"; font-weight: 900;\n}\n\nthead th.css-license > .th-inner::before\n{\n content: \"\\f0c7\"; font-family: \"Font Awesome 5 Free\"; font-weight: 400;\n}\n\nthead th.css-consumable > .th-inner::before\n{\n content: \"\\f043\"; font-family: \"Font Awesome 5 Free\"; font-weight: 900;\n}\n\nthead th.css-envelope > .th-inner::before\n{\n content: \"\\f0e0\"; font-family: \"Font Awesome 5 Free\"; font-weight: 400;\n}\n\nthead th.css-accessory > .th-inner::before\n{\n content: \"\\f11c\"; font-family: \"Font Awesome 5 Free\"; font-weight: 400;\n}\n\nthead th.css-users > .th-inner::before {\n content: \"\\f0c0\"; font-family: \"Font Awesome 5 Free\"; font-size: 15px;\n}\n\nthead th.css-location > .th-inner::before {\n content: \"\\f3c5\"; font-family: \"Font Awesome 5 Free\"; font-size: 19px; margin-bottom: 0px;\n}\n\n// fa-screwdriver-wrench — matches the icon used by the maintenance tab and\n// the user-well maintenance-cost row, so the users-index column header\n// stays visually consistent with the rest of the maintenance surface.\nthead th.css-maintenances > .th-inner::before {\n content: \"\\f7d9\"; font-family: \"Font Awesome 5 Free\"; font-size: 18px; margin-bottom: 0px;\n}\n\nthead th.css-component > .th-inner::before\n{\n content: \"\\f0a0\"; font-family: \"Font Awesome 5 Free\"; font-weight: 500;\n}\n\nthead th.css-padlock > .th-inner::before\n{\n content: \"\\f023\"; font-family: \"Font Awesome 5 Free\";\n font-weight: 800;\n padding-right: 3px;\n}\n\nthead th.css-house-user > .th-inner::before {\n content: \"\\e1b0\";\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\nthead th.css-house-flag > .th-inner::before {\n content: \"\\e50d\";\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\nthead th.css-house-laptop > .th-inner::before {\n content: \"\\e066\";\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\nthead th.css-accessory-alt > .th-inner::before {\n content: \"\\f11c\";\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\n\nthead th.css-child-locations > .th-inner::before {\n content: \"\\f64f\"; // change this to f51e for coins\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\n\nthead th.css-currency > .th-inner::before {\n content: \"\\24\"; // change this to f51e for coins\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\n\nthead th.css-history > .th-inner::before {\n content: \"\\f1da\"; // change this to f51e for coins\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\n\n\n.small-box .inner {\n padding-left: 15px;\n padding-right: 15px;\n padding-top: 15px;\n color: #fff;\n}\n\n\n.small-box > a:link, .small-box > a:visited, .small-box > a:hover {\n color: #fff;\n}\n\n.select2-container--default .select2-selection--single, .select2-selection .select2-selection--single {\n border: 1px solid #d2d6de;\n border-radius: 0;\n padding: 6px 12px;\n height: 34px;\n}\n\n.form-group.has-error label, .form-group.has-error .help-block {\n color: #a94442;\n}\n\n.select2-container--default .select2-selection--multiple {\n border-radius: 0px;\n}\n\n@media screen and (max-width: 511px){\n .tab-content .tab-pane .alert-block {\n margin-top: 120px\n }\n}\n@media screen and (max-width: 912px) and (min-width: 512px){\n .navbar-custom-menu > .navbar-nav > li.dropdown.user.user-menu {\n float:right;\n }\n .navbar-custom-menu > .navbar-nav > li > .dropdown-menu {\n margin-right:-39px;\n }\n}\n\n// Legacy .sidebar-menu { margin-top: Npx } rules at 912-1268px,\n// 512-912px, and <=511px used to live here as hardcoded compensation\n// for the \"header wraps at intermediate widths and covers the first\n// sidebar item\" bug (#5085, #11868, #19482). Same story for the\n// .firstnav { padding-top: 120px !important } that used to be inside\n// the max-width: 520px block below. All three were double-counted on\n// top of the dynamic .main-sidebar padding-top: var(--main-header-height)\n// rule further down that measures the actual header height at runtime,\n// producing 200px+ visual gaps above Dashboard at those breakpoints.\n// The dynamic measurement covers all these cases correctly, so the\n// static compensation is deleted.\n@media screen and (max-width: 992px){\n .info-stack-container {\n flex-direction: column;\n }\n .col-md-3.col-xs-12.col-sm-push-9.info-stack{\n left:auto;\n order:1;\n }\n .col-md-9.col-xs-12.col-sm-pull-3.info-stack{\n right:auto;\n order:2;\n }\n .info-stack-container > .col-md-9.col-xs-12.col-sm-pull-3.info-stack > .row-new-striped > .row > .col-sm-2{\n width:auto;\n float:none;\n }\n}\n@media screen and (max-width: 992px){\n .row-new-striped div{\n width:100%;\n }\n}\n\n@media screen and (max-width: 1318px) and (min-width: 1200px){\n .admin.box{\n height:170px;\n }\n}\n@media screen and (max-width: 1494px) and (min-width: 1200px){\n .dashboard.small-box{\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: 188px;\n display: block;\n overflow: hidden;\n }\n}\n\n/** Form-stuff overrides for checkboxes and stuff **/\n\nlabel.form-control {\n display: grid;\n grid-template-columns: 1.8em auto;\n gap: 0.5em;\n border: 0px;\n padding-left: 0px;\n background-color: inherit;\n color: inherit;\n font-size: inherit;\n font-weight: inherit;\n}\n\nlabel.form-control--disabled {\n color: #959495;\n cursor: not-allowed;\n}\n\n/** Bootstrap's normalize.less sets `html input[disabled] { cursor: default }`\n at load-order line 139, and its own `.form-control[disabled] { cursor: not-allowed }`\n rule (line 2705) has higher specificity so it should win — but on some browser +\n input-group combinations the resolved cursor still ends up as `text` because the\n input-group parent's implicit text-cursor bleeds through. Explicit element-scoped\n override to lock in the \"no-entry\" cursor on any disabled form control. **/\ninput.form-control[disabled],\nselect.form-control[disabled],\ntextarea.form-control[disabled] {\n cursor: not-allowed;\n}\n\n/** Anti-autofill masking for the readonly-plus-onfocus-strip trick used on\n sensitive form fields (user create/edit username, password, email, etc.).\n The field ships with `readonly` so password managers won't prefill or\n overwrite it, then strips readonly on focus so the operator can type.\n Bootstrap's `.form-control[readonly]` styles that field with a gray\n disabled-looking background, which confuses the operator into thinking\n the field is uneditable. Override to make it visually indistinguishable\n from a regular editable input.\n Scoped to `.js-antifill-readonly` so legitimately-readonly fields\n (SAML SP entity ID, ACS/SLS URLs, generated cert, metadata URL, etc.)\n keep the gray-out styling from the readonly rule further down in this\n file. Adding `readonly` alone should look readonly; opt in to the\n autofill-masking override by adding the class explicitly.\n Deliberately does NOT match `[disabled]` — actually-disabled fields\n (demo mode locks, permission gates) must keep their grayed appearance\n and not-allowed cursor. **/\ninput.js-antifill-readonly[readonly],\ntextarea.js-antifill-readonly[readonly],\n.form-control.js-antifill-readonly[readonly] {\n cursor: text !important;\n background-color: var(--table-stripe-bg) !important;\n color: var(--color-fg) !important;\n}\n\n/** Inline \"this field is locked because the app is in demo mode\" callout.\n Rendered by the <x-demo-lock> anonymous component in resources/views/blade/demo-lock.blade.php.\n Kept as a small inline-block box so it hugs its text width regardless\n of the column it lands in (input rows use col-md-7, activated row\n uses col-md-9, so a block-level notice would stretch inconsistently). **/\n.demo-lock-notice {\n display: inline-block;\n background-color: #fcf8e3;\n border: 1px solid #faebcc;\n color: #8a6d3b;\n padding: 6px 10px;\n margin-top: 6px;\n border-radius: 3px;\n font-size: 0.9em;\n}\n\n\n/** --------------------------------------- **/\n/** Start checkbox styles to replace iCheck **/\n/** --------------------------------------- **/\ninput[type=\"checkbox\"] {\n /* Add if not using autoprefixer */\n -webkit-appearance: none;\n appearance: none;\n /* For iOS < 15 to remove gradient background */\n background-color: #fff;\n /* Not removed via appearance */\n margin: 0;\n font: inherit;\n color: #959495;\n width: 1.8em;\n height: 1.8em;\n border: 0.05em solid;\n border-radius: 0em;\n transform: translateY(-0.075em);\n display: grid;\n place-content: center;\n /*Windows High Contrast Mode*/\n}\n\n/** This sets the display of a checkbox, and what the \"fill\" checkmark should look like */\n\ninput[type=\"checkbox\"]::before {\n\n /** If you want to use the non-checkbox, filled square, use this instead **/\n content: \"\";\n width: 1em;\n height: 1em;\n transform: scale(0);\n transition: 120ms transform ease-in-out;\n box-shadow: inset 1em 1em rgb(211, 211, 211);\n content: \"\";\n width: 1em;\n height: 1em;\n clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);\n transform: scale(0);\n transform-origin: bottom left;\n transition: 120ms transform ease-in-out;\n box-shadow: inset 1em 1em #428bca;\n /* Windows High Contrast Mode */\n background-color: CanvasText;\n}\n\n/** This sets the size of the scale up for the shape we defined above **/\ninput[type=\"checkbox\"]:checked::before {\n transform: scale(1);\n}\n\n/** This sets the scale and color of the DISABLED but CHECKED checkbox */\ninput[type=checkbox]:disabled::before, input[type=radio]:disabled::before {\n content: \"\";\n width: 1em;\n height: 1em;\n transform: scale(1);\n box-shadow: inset 1em 1em rgb(211, 211, 211);\n}\n\n/* This sets the scale and style of a DISABLED checkbox that is NOT checked */\ninput[type=checkbox]:disabled:not(:checked)::before, input[type=radio]:disabled:not(:checked)::before {\n content: \"\";\n transform: scale(0);\n cursor: not-allowed;\n pointer-events:none;\n}\n\n/** this is the color of the checkbox and content on a disabled, checked box **/\ninput[type=checkbox]:disabled, input[type=radio]:disabled {\n --form-control-color: rgb(211, 211, 211);\n color: #959495;\n cursor: not-allowed;\n pointer-events:none;\n}\n\n\n/** Radio styles to replace iCheck **/\n\ninput[type=\"radio\"] {\n appearance: none;\n background-color: #fff;\n margin: 0;\n font: inherit;\n color: #959495;\n width: 1.8em;\n height: 1.8em;\n border: 0.05em solid;\n border-radius: 50%;\n transform: translateY(-0.075em);\n display: grid;\n place-content: center;\n}\n\ninput[type=\"radio\"]::before {\n content: \"\";\n width: 1em;\n height: 1em;\n border-radius: 50%;\n transform: scale(0);\n transition: 120ms transform ease-in-out;\n}\n\ninput[type=\"radio\"]:checked::before {\n transform: scale(1);\n}\n\n\n/**\n* This addresses the column selector in bootstrap-table. Without these two lines, the\n* checkbox and the <span></span> with the label text that BS tables generates will\n* end up on two different lines and it looks assy.\n */\n.dropdown-item-marker input[type=checkbox] {\n font-size: 10px;\n}\n\n.bootstrap-table .fixed-table-toolbar li.dropdown-item-marker label {\n font-weight: normal;\n display: grid;\n grid-template-columns: .1em auto;\n gap: 1.5em;\n}\n\n.container.row-striped .col-md-6 {\n overflow-wrap:anywhere;\n}\n\n.nav-tabs-custom > .nav-tabs > li {\n z-index: 1;\n}\n\n.select2-container .select2-search--inline .select2-search__field{\n padding-left:15px;\n}\n\n.nav-tabs-custom > .nav-tabs > li.active {\n font-weight: bold;\n}\n\n/** --------------------------------------- **/\n/** End checkbox styles to replace iCheck **/\n/** --------------------------------------- **/\n\n/**\n/** Separator styles with text in the middle. Currently only used by the login page but\n/** could be used elsewhere.\n */\n\n.separator {\n display: flex;\n align-items: center;\n text-align: center;\n padding-top: 20px;\n color: #959495;\n}\n\n.separator::before,\n.separator::after {\n content: '';\n flex: 1;\n border-bottom: 1px solid #959495;\n}\n\n.separator:not(:empty)::before {\n margin-right: .25em;\n}\n\n.separator:not(:empty)::after {\n margin-left: .25em;\n}\n.datepicker.dropdown-menu {\n z-index: 1030 !important;\n}\n\n.sidebar-menu > li .badge {\n margin-top: 0px;\n filter: brightness(70%);\n font-size: 70%;\n}\n\n/** this is needed to override ekko-lightboxes card view styles **/\n.bootstrap-table .fixed-table-container .table tbody tr .card-view {\n display: table-row !important;\n}\n\ntd.text-right.text-padding-number-cell {\n padding-right: 30px !important;\n white-space: nowrap;\n}\n\nth.text-right.text-padding-number-footer-cell {\n padding-right: 20px !important;\n white-space: nowrap;\n}\n\ncode.single-line {\n white-space: pre-wrap;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n overflow: hidden;\n max-width: 400px;\n}\n\np.monospace, span.monospace {\n font-family: monospace, monospace;\n}\n\nlegend.highlight {\n background: repeating-linear-gradient(\n 45deg,\n #222d32,\n #222d32 10px,\n #444 10px,\n #444 11px\n );\n\n color: #fff;\n font-size: 18px;\n padding: 6px 6px 6px 10px;\n}\n\nlegend.highlight a {\n color: #fff;\n cursor: pointer;\n}\n\nfieldset.bottom-padded {\n padding-bottom: 20px;\n}\n\ncaption.tableCaption {\n font-size: 18px;\n padding-left: 8px;\n}\n\n\n.markdown-field-content {\n h1 { font-size: 22px; font-weight: 700; margin: 6px 0 4px; }\n h2 { font-size: 20px; font-weight: 700; margin: 6px 0 4px; }\n h3 { font-size: 18px; font-weight: 700; margin: 6px 0 4px; }\n h4 { font-size: 16px; font-weight: 700; margin: 4px 0 4px; }\n h5, h6 { font-size: 14px; font-weight: 700; margin: 4px 0 4px; }\n p { margin: 0 0 4px; }\n p:last-child { margin-bottom: 0; }\n ul, ol { margin: 0 0 4px; padding-left: 20px; }\n > *:first-child { margin-top: 0; }\n}\n\n// via https://github.com/grokability/snipe-it/issues/11754\n.sidebar-toggle.btn {\n border-radius: 3px;\n box-shadow: none;\n border-top: 0px solid transparent;\n border-bottom: 0px solid transparent;\n padding-left: 15px;\n padding-right: 15px;\n padding-top: 12px;\n padding-bottom: 12px;\n margin-left: -47px;\n margin-top: 2px;\n}\n\n\n.visually-hidden {\n width: 1px;\n height: 1px;\n margin: -1px;\n overflow: hidden;\n clip: rect(0,0,0,0);\n white-space: preserve;\n display: inline-block;\n}\n\ninput[name=\"columnsSearch\"] {\n width: 120px;\n}\n\n.callout.callout-legend {\n padding: 15px 30px 15px 15px;\n font-size: 100%;\n border-radius: 0px;\n}\n\n.callout.callout-legend h4 {\n font-size: 16px;\n font-weight: bold;\n margin-top: 5px;\n margin-bottom: 0px;\n}\n\n.callout.callout-legend a {\n text-decoration: none;\n cursor: pointer;\n}\n\np.callout-subtext {\n margin-top: 5px;\n}\n\n/**\nThis just hides the padding on the right side of the mark tag for a less weird visual experience\n */\nmark {\n padding-right: 0px;\n}\n\n/**\nRadio toggle styles for permission settings and check/uncheck all\n */\n.radio-toggle-wrapper {\n display: flex;\n padding: 2px;\n background-color: #e9e9e9;\n margin-bottom: 3px;\n border-radius: 4px;\n border: 1px #d6d6d6 solid;\n}\n\n.radio-slider-inputs {\n flex-grow: 1;\n}\n\n.radio-slider-inputs input[type=radio] {\n display: none;\n}\n\n.radio-slider-inputs label {\n display: block;\n margin-bottom: 0px;\n padding: 6px 8px;\n color: #fff;\n font-weight: bold;\n text-align: center;\n transition : all .4s 0s ease;\n cursor: pointer;\n}\n\n.radio-slider-inputs label {\n color: #9a9999;\n border-radius: 4px;\n border: 1px transparent solid;\n}\n\n.radio-slider-inputs .allow:checked + label {\n background-color: green;\n color: white;\n border-radius: 4px;\n border: 1px transparent solid;\n}\n\n.radio-slider-inputs .inherit:checked + label {\n background-color: rgba(255, 204, 51, 0.11);\n color: #9a9999;\n border-radius: 4px;\n border: 1px white solid;\n}\n\n.radio-slider-inputs .deny:checked + label {\n background-color: #a94442;\n color: white;\n border-radius: 4px;\n border: 1px transparent solid;\n}\n\n.remember-toggle {\n cursor: pointer;\n}\n\n.js-copy-link {\n float: left;\n color: grey;\n}\n\n.deleted {\n text-decoration: line-through;\n}\n\n\n//css to add hamburger and create dropdown on small screens\n@nav-link-hover-bg: #eeeeee;\n@border-radius-base: 5px;\n@screen-xs-max: 767px;\n\n.nav-tabs.nav-tabs-dropdown,\n.nav-tabs-dropdown {\n @media (max-width: @screen-xs-max) {\n overflow: hidden;\n position: relative;\n\n &::after {\n content: \"☰\";\n position: absolute;\n font-size: 35px;\n top: 0;\n right: 15px;\n z-index: 2;\n pointer-events: none;\n }\n\n &.open {\n a {\n position: relative;\n display: block;\n }\n\n > li.active > a {\n background-color: @nav-link-hover-bg;\n\n }\n }\n\n li.snipetab {\n margin-right: 0 !important;\n }\n\n li {\n display: block;\n padding: 0;\n vertical-align: bottom;\n white-space: nowrap !important;\n }\n\n > li > a {\n position: absolute;\n top: 0;\n left: 0;\n margin: 0;\n width: 100%;\n height: 100%;\n display: inline-block;\n border-color: transparent;\n\n &:focus,\n &:hover,\n &:active {\n border-color: transparent;\n border-right: 0 !important;\n }\n }\n\n > li.active > a {\n display: block;\n border-color: transparent !important;\n position: relative;\n z-index: 1;\n\n &:focus,\n &:hover,\n &:active {\n border-color: transparent !important;\n }\n\n }\n }\n\n// Advanced-search \"Clear all\" pill. AdminLTE's default anchor styles pull the\n// color toward the theme's link tint on :hover / :focus, which reads black on\n// the red pill background. Pin white in every interactive state so the pill\n// stays legible.\n.snipe-advanced-search-tags-clear-all,\n.snipe-advanced-search-tags-clear-all:link,\n.snipe-advanced-search-tags-clear-all:visited,\n.snipe-advanced-search-tags-clear-all:hover,\n.snipe-advanced-search-tags-clear-all:focus,\n.snipe-advanced-search-tags-clear-all:active {\n color: #fff !important;\n text-decoration: none;\n}\n}\n\n// Spin the help-icon (life-ring) on hover/focus of the info tooltip anchor.\n// Uses Font Awesome's built-in fa-spin animation. Gated by the\n// prefers-reduced-motion rule below.\n.tooltip-spin-hover:hover i,\n.tooltip-spin-hover:focus i {\n animation: fa-spin 2s infinite linear;\n}\n\n// Bootstrap 3 tops out at .modal-lg (900px). The wizard-style modals\n// (e.g. the CSV importer) need more horizontal room for their mapping\n// grid + preview table, so add a .modal-xl above modal-lg. Follows the\n// same @media breakpoint BS3 uses for .modal-lg (>= 992px) and caps at\n// 1400px so it doesn't stretch obnoxiously on ultra-wide monitors.\n@media (min-width: 992px) {\n .modal-xl {\n width: 90%;\n max-width: 1400px;\n }\n}\n\n// Long wizard content (dozens of mapping rows) can push the modal past\n// the viewport. Bootstrap 3 doesn't scroll the modal-body by default, so\n// the footer buttons (Back / Next / Preview / Process) end up below the\n// fold with no way to reach them. Cap the modal-body height and let it\n// scroll internally instead. Scoped to .modal-xl so smaller confirm-\n// action modals aren't affected. 200px leaves room for header (~60),\n// footer (~60), and the modal's own top/bottom margins. overflow-x is\n// hidden so a stray col-* with negative row margins doesn't produce a\n// horizontal scrollbar on the type-selection and mapping steps; the\n// preview step's wide sample table has its own .table-responsive\n// wrapper for horizontal scrolling.\n.modal-xl .modal-body {\n max-height: calc(100vh - 200px);\n overflow-y: auto;\n overflow-x: hidden;\n}\n\n// Bootstrap 3's .form-horizontal .form-group carries -15px left/right\n// margins that cancel a modal-body's default 15px padding, leaving all\n// form content pinned flush to the modal edges. Zero it out inside the\n// wizard modal so labels + inputs stay inset from the modal chrome. The\n// inner .col-* children retain their own 15px padding, so the standard\n// horizontal-form gutter still lands correctly.\n.modal-xl .modal-body.form-horizontal > .form-group,\n.modal-xl .modal-body.form-horizontal > .row > .form-group {\n margin-left: 0;\n margin-right: 0;\n}\n\n// bs-wizard-stepnum ships hardcoded #595959 in bootstrap-less, which is\n// near-invisible against the dark-theme background. Override to the\n// theme's own body text color so \"Choose type\" / \"Map fields\" / \"Preview\"\n// stay readable in dark mode.\n[data-theme=\"dark\"] .bs-wizard > .bs-wizard-step .bs-wizard-stepnum,\n[data-theme=\"dark\"] .bs-wizard > .bs-wizard-step .bs-wizard-info {\n color: #d0d0d0;\n}\n\n// Respect the user's OS-level \"reduce motion\" preference. The Font Awesome\n// spinners (.fa-spin) and Font Awesome Animation pulses (.faa-pulse, .animated)\n// loop indefinitely, which can trigger vestibular symptoms. One-shot animations\n// (like the confetti burst on save) are left alone since they don't loop.\n@media (prefers-reduced-motion: reduce) {\n // Catch-all for any Font Awesome Animation utility (faa-pulse, faa-spin,\n // faa-tada, faa-shake, faa-bounce, faa-burst, faa-flash, faa-float,\n // faa-horizontal, faa-vertical, faa-passing, faa-ring, faa-slide, etc.)\n // regardless of whether the animation is always-on (.animated) or hover-\n // triggered (.animated-hover:hover). Attribute selector keeps this rule\n // safe against future FA-Animation class additions.\n [class*=\"faa-\"].animated,\n [class*=\"faa-\"].animated-hover:hover,\n .tooltip-spin-hover:hover i,\n .tooltip-spin-hover:focus i,\n .fa-spin,\n .fa-pulse {\n animation: none !important;\n }\n}\n\n// ============================================================================\n// Theme mode CSS custom properties.\n//\n// Originally lived as an inline <style> block in layouts/default.blade.php,\n// migrated here so the layout stops carrying ~1200 lines of raw CSS and so\n// layouts/basic.blade.php (login, error pages) can inherit the same theming\n// by loading all.css alone.\n//\n// CSS Colors 5 expressions (hsl(from ...), light-dark(...)) are wrapped in\n// Less's ~\"...\" escape so the compiler emits them verbatim instead of trying\n// to parse `l - 10` as its own variable arithmetic.\n//\n// Per-tenant color overrides (header_color, nav_link_color, link_light_color,\n// link_dark_color) are NOT moved here — they still live in the tiny inline\n// <style> block in default.blade.php and win on cascade order. The defaults\n// baked in below match what the blade fallbacks currently emit when a tenant\n// has not customized their colors.\n// ============================================================================\n\n:root {\n color-scheme: light dark;\n --color-bg: ~\"light-dark(#ecf0f5, #222222)\";\n --btn-theme-hover-text-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l - 10)),hsl(from var(--main-theme-color) h s calc(l - 10)))\";\n --btn-theme-hover: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l - 10)),hsl(from var(--main-theme-color) h s calc(l - 10)))\";\n --btn-theme-text-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 10)),hsl(from var(--main-theme-color) h s calc(l - 10)))\";\n --color-fg: ~\"light-dark(#373636, #ffffff)\";\n --main-footer-bg-color: ~\"light-dark(#ffffff,#3d4144)\";\n --main-footer-text-color: ~\"light-dark(#605e5e, #d2d6de)\";\n --main-footer-top-border-color: ~\"light-dark(#d2d6de,#605e5e)\";\n --main-theme-color: #3c8dbc;\n --nav-hover-text-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\";\n --nav-primary-text-color: #ffffff;\n --search-highlight: #e9d15b;\n --sidenav-hover-color-bg: #4c4b4b;\n --sidenav-text-hover-color: #fff;\n --sidenav-text-nohover-color: #b8c7ce;\n --table-border-row-color: ~\"light-dark(#ecf0f5, #656464)\";\n --table-border-row-top: 1px solid #ecf0f5;\n --table-border-row: 1px solid var(--table-border-row-color);\n --table-stripe-bg-alt: ~\"light-dark(rgba(211, 211, 211, 0.25), #323131)\";\n --table-stripe-bg: ~\"light-dark(#ffffff, #494747)\";\n --text-danger: ~\"light-dark(#a94442, #fa5b48)\";\n --text-help: ~\"light-dark(#777676,#a6a4a4)\";\n --text-info: ~\"light-dark(#31708f,#2baae6)\";\n --text-success: ~\"light-dark(#039516,#4ced61)\";\n --text-warning: ~\"light-dark(#da9113,#f3a51f)\";\n --input-border-color: ~\"light-dark(#d2d6de,#656464)\";\n --default-label-link-bg: var(--color-bg);\n --default-label-link-text: ~\"light-dark(#296282, #5fa4cc)\";\n --default-label-link-border: ~\"1px solid light-dark(#b8c7ce, #494747)\";\n}\n\n[data-theme=\"light\"] {\n color-scheme: light;\n --box-bg: #ffffff;\n --box-header-bottom-border-color: #f4f4f4;\n --box-header-bottom-border: 1px solid var(--box-header-bottom-border-color);\n --box-header-top-border-color: #d2d6de;\n --box-header-top-border: 3px solid var(--box-header-top-border-color);\n --btn-theme-base: ~\"hsl(from var(--main-theme-color) h s calc(l + 5))\";\n --btn-theme-border: ~\"hsl(from var(--btn-theme-base) h s calc(l + 20))\";\n --btn-theme-hover-text-color: var(--nav-primary-text-color);\n --btn-theme-hover: var(--main-theme-hover);\n --callout-bg-color: var(--box-header-bottom-border-color);\n --callout-left-border: var(--box-header-top-border-color);\n --header-color: #000000;\n --input-group-bg: ~\"hsl(from var(--box-bg) h s calc(l - 5))\";\n --input-group-fg: ~\"hsl(from var(--input-group-bg) h s calc(l - 50))\";\n --link-color: #296282;\n --link-hover: ~\"hsl(from var(--link-color) h s calc(l - 10))\";\n --main-theme-hover: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\";\n --tab-bottom-border: 1px solid var(--box-header-top-border-color);\n --text-legend-help: var(--text-help);\n}\n\n[data-theme=\"dark\"] {\n color-scheme: dark;\n --box-bg: #3d4144;\n --box-header-bottom-border-color: #605e5e;\n --box-header-bottom-border: 1px solid var(--box-header-bottom-border-color);\n --box-header-top-border-color: #605e5e;\n --box-header-top-border: 3px solid var(--box-header-top-border-color);\n --btn-theme-base: ~\"hsl(from var(--main-theme-color) h s calc(l + 5))\";\n --btn-theme-border: ~\"hsl(from var(--btn-theme-base) h s calc(l + 20))\";\n --btn-theme-hover-text-color: var(--nav-primary-text-color);\n --btn-theme-hover: var(--main-theme-hover);\n --callout-bg-color: var(--box-header-top-border-color);\n --callout-left-border: #323131;\n --header-color: #ffffff;\n --input-group-bg: ~\"hsl(from var(--box-bg) h s calc(l + 10))\";\n --input-group-fg: ~\"hsl(from var(--input-group-bg) h s calc(l + 50))\";\n --link-color: #5fa4cc;\n --link-hover: ~\"hsl(from var(--link-color) h s calc(l + 15))\";\n --main-theme-hover: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\";\n --tab-bottom-border: 1px solid var(--box-header-top-border-color);\n --text-legend-help: #d6d6d6;\n}\n\n\n// ============================================================================\n// Theme-mode SELECTOR rules (paired with the variable definitions above).\n//\n// All ~1170 lines of \".selector { background-color: var(--foo); }\" style\n// rules that used to live in layouts/default.blade.php's inline <style>\n// block. Every line reads from a CSS custom property defined earlier in\n// this file — no per-tenant Blade interpolation lives here.\n//\n// CSS Colors 5 expressions (hsl(from ...), light-dark(...)) are wrapped in\n// Less's ~\"...\" escape so the compiler emits them verbatim.\n// ============================================================================\n\n.label2_fields,\n.l2fd-main,\n.l2fd-listitem,\n.fixed-table-loading,\n.list-group-item {\n background-color: var(--box-bg) !important;\n color: var(--color-fg) !important;\n}\n\n.list-group-item {\n border: var(--tab-bottom-border);\n}\n\nfooter.main-footer {\n color: var(--main-footer-text-color) !important;\n background-color: var(--main-footer-bg-color) !important;\n border-top: 1px solid var(--main-footer-top-border-color) !important;\n}\n\na,\na:link,\na:visited {\n color: var(--link-color);\n}\n\na:hover,\na:focus {\n color: var(--link-hover) !important;\n}\n\nlabel.form-control {\n color: var(--color-fg) !important;\n}\n\n.footer-links a {\n color: var(--link-color) !important;\n}\n\nh2 small {\n color: var(--color-fg) !important;\n}\n\n.btn-theme {\n background-color: var(--btn-theme-base);\n /*color: var(--btn-theme-hover-text-color) !important;*/\n color: var(--nav-primary-text-color) !important;\n border: ~\"1px solid hsl(from var(--btn-theme-base) h s calc(l - 15))\" !important;\n}\n\n.btn-theme:hover {\n background-color: var(--btn-theme-hover);\n /*color: var(--btn-theme-hover-text-color) !important;*/\n color: var(--nav-primary-text-color) !important;\n border: ~\"1px solid hsl(from var(--btn-theme-base) h s calc(l - 15))\" !important;\n}\n\n.btn-theme.active {\n background-color: var(--btn-theme-hover) !important;\n}\n\n.btn-theme:focus {\n color: var(--nav-primary-text-color) !important;\n}\n\n\n.dropdown-wrapper,\n.js-data-ajax,\n.option,\n.select2 .select2-container .select2-container--default,\n.select2,\n.select2-choice,\n.select2-container,\n.select2-results__option,\n.select2-search input,\n.select2-search--dropdown,\n.select2-search__field,\n.select2-selection .select2-selection--single,\n.select2-selection,\n.select2-selection--single,\n.select2-selection__rendered,\ninput[type=\"date\"],\ninput[type=\"number\"],\ninput[type=\"text\"],\ninput[type=\"url\"],\ninput[type=\"email\"],\ninput[type=\"password\"],\ninput[type=\"tel\"],\noption:active,\noption[active],\noption[selected],\nselect option,\nselect,\ntextarea {\n background-color: var(--table-stripe-bg) !important;\n color: var(--color-fg) !important;\n border-color: var(--input-border-color) !important;\n\n}\n\n.select2-container--default.select2-container--focus .select2-selection--multiple,\n.select2-container--default .select2-search--dropdown .select2-search__field {\n border-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\" !important;\n}\n\n/**\nSafari ignores option[selected] styling on plain <select multiple> until\nthe user interacts with the list, so pre-selected options render with\nthe browser's default light highlight. Force a lighter background on the\nwhole select in dark mode so pre-selected items stay readable.\n */\n[data-theme=\"dark\"] select[multiple],\n[data-theme=\"dark\"] select[multiple] option {\n background-color: #d2d6de !important;\n color: #373636 !important;\n}\n\n/**\nSite-logo preview swatch on Settings > Branding. Uses the tenant header\ncolor as its background so the logo shows against the same color it will\nhave in the top nav. The header-color picker on the branding page writes\n--main-theme-color inline on <html> for live preview, so this rule picks\nup that update automatically.\n */\n.header-preview {\n background-color: var(--main-theme-color);\n}\n\n/**\nMultiselect maybe?\n */\n.select2-results__option[aria-selected=true] {\n background-color: var(--main-theme-color) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n.select2-results__option[aria-selected=false] {\n background-color: var(--table-stripe-bg) !important;\n /*background-color: hsl(from var(--main-theme-color) h s calc(l - 15)) !important;*/\n /*color: var(--nav-primary-text-color) !important;*/\n color: var(--color-fg) !important;\n}\n\n/**\nHighlight the select2 on hover when NOT the selected option\n */\n.select2-results__option--highlighted[aria-selected=false] {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\" !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n/**\nHighlight the select2 on hover when the selected option\n */\n.select2-results__option--highlighted[aria-selected=true],\n.select2-results__option--highlighted[aria-selected=true]:hover,\n.select2-results__option--highlighted[aria-selected=true]:link,\n.select2-results__option--highlighted[aria-selected=true]:focus,\n.select2-results__option--highlighted[aria-selected=true]:visited {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 15))\" !important;\n /*color: var(--color-fg) !important;*/\n color: var(--nav-primary-text-color) !important;\n}\n\n.select2-selection__choice,\n.select2-container--default .select2-selection--multiple .select2-selection__choice {\n background-color: var(--main-theme-color) !important;\n border-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 15))\" !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n.select2-selection__choice__remove {\n color: var(--nav-primary-text-color) !important;\n}\n\n.select2-container--default .select2-selection--multiple .select2-selection__choice {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\" !important;\n color: var(--nav-primary-text-color) !important;\n overflow-y: auto;\n}\n\n/*\neonasdan bootstrap-datetimepicker widget: match the app's theme color\nfor selected/today cells and follow light/dark mode for the popup\nchrome. Ships with Bootstrap's stock #337ab7 which looks off next to\nAdminLTE.\n\n- All toolbar buttons: .bootstrap-datetimepicker-widget li.picker-switch a[data-action]\n- Individual buttons: a[data-action=\"today\"], a[data-action=\"clear\"], a[data-action=\"close\"] - -\n- The <td> cell each button sits in: .bootstrap-datetimepicker-widget li.picker-switch td\n- The icon <span> inside the anchor: .bootstrap-datetimepicker-widget li.picker-switch a[data-action] > span\n*/\n.bootstrap-datetimepicker-widget {\n z-index: 1030 !important;\n background-color: var(--box-bg) !important;\n color: var(--color-fg) !important;\n}\n\n/* Widget border in the theme color so the popup edge visually\n matches other themed boxes in the app. */\n.bootstrap-datetimepicker-widget.dropdown-menu {\n border: 1px solid var(--main-theme-color) !important;\n}\n\n/* The connecting caret between the input and the popup is drawn\n with two triangles: :before is the outer border outline (7px),\n :after is the inner fill (6px, sits inside the :before). Match\n the widget's own theme-color border on the outer triangle, and\n the widget's background on the inner. */\n.bootstrap-datetimepicker-widget.dropdown-menu.bottom:before {\n border-bottom-color: var(--main-theme-color) !important;\n}\n\n.bootstrap-datetimepicker-widget.dropdown-menu.bottom:after {\n border-bottom-color: var(--box-bg) !important;\n}\n\n.bootstrap-datetimepicker-widget.dropdown-menu.top:before {\n border-top-color: var(--main-theme-color) !important;\n}\n\n.bootstrap-datetimepicker-widget.dropdown-menu.top:after {\n border-top-color: var(--box-bg) !important;\n}\n\n/* Side-by-side (date + time) mode ships at 38em, not wide enough\n once the format includes seconds. Bump up to give the time cells\n room. */\n.bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs {\n width: 42em !important;\n}\n\n/* Compact (non-sideBySide) mode. Library default is 19em, which is\n too narrow for the time-picker view — hour/minute/second cells\n are 54px each and the increment/decrement arrow buttons add width\n on top of that, so under ~300px the time view gets clipped. Sizing\n to fit the widest child (the time view) also gives the calendar\n view plenty of room. */\n.bootstrap-datetimepicker-widget.dropdown-menu:not(.timepicker-sbs) {\n min-width: 320px;\n}\n\n.bootstrap-datetimepicker-widget table td.active,\n.bootstrap-datetimepicker-widget table td.active:hover,\n.bootstrap-datetimepicker-widget table td span.active,\n.bootstrap-datetimepicker-widget table td span.active:hover {\n background-color: var(--main-theme-color) !important;\n color: var(--nav-primary-text-color) !important;\n text-shadow: none !important;\n}\n\n.bootstrap-datetimepicker-widget table td.today:before {\n border-bottom-color: var(--main-theme-color) !important;\n}\n\n/* Cell hover: theme color background + white text — same shape as\n \"active\" so contrast is guaranteed in both light and dark mode. */\n.bootstrap-datetimepicker-widget table td:hover,\n.bootstrap-datetimepicker-widget table td span:hover,\n.bootstrap-datetimepicker-widget table thead tr:first-child th:hover {\n background-color: var(--main-theme-color) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n/* Time-picker text (compact mode). Bootstrap's .btn base color is\n #333 which is invisible on the dark box-bg in dark mode; force\n these text elements to inherit the widget's --color-fg instead\n so they read in both themes.\n - .timepicker-hour / -minute / -second : the big clickable digits\n - .separator : the colon between them\n - .timepicker-picker .btn : the up/down arrow buttons\n - .timepicker-picker .btn span : the FA icon inside those\n - .timepicker-hours / -minutes / -seconds .btn : the expanded grid\n of pickable hour/minute/second numbers when you click a digit */\n.bootstrap-datetimepicker-widget .timepicker-hour,\n.bootstrap-datetimepicker-widget .timepicker-minute,\n.bootstrap-datetimepicker-widget .timepicker-second,\n.bootstrap-datetimepicker-widget .separator,\n.bootstrap-datetimepicker-widget .timepicker-picker .btn,\n.bootstrap-datetimepicker-widget .timepicker-picker .btn span,\n.bootstrap-datetimepicker-widget .timepicker-hours td,\n.bootstrap-datetimepicker-widget .timepicker-minutes td,\n.bootstrap-datetimepicker-widget .timepicker-seconds td {\n color: var(--color-fg) !important;\n}\n\n/* The empty <td class=\"separator\"> cells above and below the \":\"\n are pure spacers, but were rendering visible \"lines\" around the\n colon. Force their background to match the popup so they blend\n into the widget in both light and dark mode.\n\n Also kill the ::before / ::after pseudo-elements — the app's own\n .separator class elsewhere in the codebase draws horizontal grey\n border-bottom lines via those pseudos (for section dividers), and\n class-name collides with the library's timepicker separator td. */\n.bootstrap-datetimepicker-widget .separator {\n background-color: var(--box-bg) !important;\n border: none !important;\n box-shadow: none !important;\n}\n\n.bootstrap-datetimepicker-widget .separator::before,\n.bootstrap-datetimepicker-widget .separator::after {\n display: none !important;\n content: none !important;\n border: none !important;\n}\n\n/* Same treatment for the increment/decrement arrow buttons — no\n border/box-shadow/focus outline so the time-picker column doesn't\n get sub-lines between each button. */\n.bootstrap-datetimepicker-widget .timepicker-picker .btn {\n background-color: var(--box-bg) !important;\n border: none !important;\n box-shadow: none !important;\n outline: none !important;\n}\n\n.bootstrap-datetimepicker-widget .timepicker-picker .btn:focus,\n.bootstrap-datetimepicker-widget .timepicker-picker .btn:active {\n outline: none !important;\n box-shadow: none !important;\n}\n\n\n/* Button hover — matches the whole <a> element */\n.bootstrap-datetimepicker-widget li.picker-switch a[data-action]:hover,\n.bootstrap-datetimepicker-widget li.picker-switch td:hover {\n background-color: transparent !important;\n border-radius: 0 !important;\n\n}\n\n\n.input-group-addon {\n background-color: var(--input-group-bg) !important;\n color: var(--input-group-fg) !important;\n border-color: var(--input-border-color) !important;\n}\n\ninput:disabled,\ninput[type=\"checkbox\"]:disabled,\ninput[type=\"radio\"]:disabled,\ninput[readonly],\ntextarea[readonly],\ntextarea:disabled,\n.select2-container--default.select2-container--disabled .select2-selection--single,\n.select2-container--default.select2-container--disabled .select2-selection--multiple,\n.select2-container--default.select2-container--disabled .select2-selection__rendered,\n.select2-results__option[aria-disabled=true],\n.select2-container--default.select2-container--disabled .select2-selection--multiple .select2-search--inline {\n background-color: ~\"light-dark(rgb(234, 232, 232), rgb(117, 116, 117))\" !important;\n cursor: not-allowed !important;\n}\n\n.select2-container--default.select2-container--disabled .select2-search__field::placeholder {\n color: var(--text-help) !important;\n opacity: 1 !important;\n}\n\ninput[type=\"search\"].search-highlight {\n background-color: var(--search-highlight);\n border: ~\"1px solid hsl(from var(--search-highlight) h s calc(l - 20))\" !important;\n}\n\n.content-wrapper {\n background-color: var(--color-bg);\n}\n\n.btn-anchor {\n outline: none !important;\n padding: 0;\n border: 0;\n padding-left: 20px;\n vertical-align: baseline;\n cursor: pointer;\n}\n\nh1,\nh2,\nh3,\nh4,\np,\n.modal-title,\n.modal-header h2 {\n color: var(--color-fg) !important;\n}\n\n.btn-danger,\n.btn-danger:hover,\n.btn-danger:focus,\n.btn-warning,\n.btn-warning:hover,\n.btn-warning:focus,\n.btn-primary,\n.btn-primary:hover,\n.btn-primary:focus,\n.modal-danger,\n.modal-danger h2,\n.modal-warning h2,\n.modal-danger h4,\n.modal-warning h4,\n.box-solid.box-danger > .box-header,\n.box-solid.box-danger > .box-header .box-title,\n.bg-maroon,\n.bg-maroon:hover,\n.bg-maroon:focus,\n.bg-purple,\n.bg-purple:hover,\n.bg-purple:focus {\n color: white !important;\n}\n\n\n.btn-selected,\n.btn-selected a,\n.btn-selected:hover,\n.btn-selected:focus {\n color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 30)), hsl(from var(--main-theme-color) h s calc(l + 30)))\" !important;\n background-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l - 20)), hsl(from var(--main-theme-color) h s calc(l - 20)))\" !important;\n border-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l - 25)), hsl(from var(--main-theme-color) h s calc(l - 25)))\" !important;\n\n}\n\n.btn-default,\n.btn-default:hover {\n color: #3d4144 !important;\n}\n\nbody {\n background-color: var(--color-bg);\n color: var(--color-fg);\n}\n\n\nlabel,\n.icon-med,\n.nav-tabs-custom > .nav-tabs > li > a,\n.nav-tabs-custom > .nav-tabs > li.active > a:link {\n color: var(--color-fg);\n}\n\n/**\nGeneric popover: Bootstrap 3 hardcodes body bg to #fff and text to #333,\nwhich reads as white-on-white in dark mode. Route background, text, and\nborder through the theme variables so both modes render legibly and the\nhelp-popover variant keeps its more specific styling further down.\n */\n.popover {\n background-color: var(--box-bg) !important;\n color: var(--color-fg) !important;\n border-color: var(--box-header-top-border-color) !important;\n}\n\n.popover-title,\n.popover-content {\n background-color: var(--box-bg) !important;\n color: var(--color-fg) !important;\n}\n\n/**\nPopover arrows: Bootstrap 3 defaults the inner arrow to #fff and the\nouter to rgba(0,0,0,.25). In dark mode the outer disappears entirely\n(no contrast against the darker surroundings) and the inner reads as a\nwhite notch. Bind both to theme vars so every position (top / right /\nbottom / left) shows a visible connector between the popover body and\nits trigger in both modes.\n */\n.popover.top .arrow { border-top-color: var(--box-header-top-border-color) !important; }\n.popover.top .arrow:after { border-top-color: var(--box-bg) !important; }\n\n.popover.right .arrow { border-right-color: var(--box-header-top-border-color) !important; }\n.popover.right .arrow:after { border-right-color: var(--box-bg) !important; }\n\n.popover.bottom .arrow { border-bottom-color: var(--box-header-top-border-color) !important; }\n.popover.bottom .arrow:after { border-bottom-color: var(--box-bg) !important; }\n\n.popover.left .arrow { border-left-color: var(--box-header-top-border-color) !important; }\n.popover.left .arrow:after { border-left-color: var(--box-bg) !important; }\n\n.table-bordered > tbody > tr > td,\n.table-bordered > tbody > tr > th,\n.table-bordered > tfoot > tr > td,\n.table-bordered > tfoot > tr > th,\n.table-bordered > thead > tr > td,\n.table-bordered > thead > tr > td,\n.table-bordered > thead > tr > th,\n.table-bordered > thead > tr > th,\n.table-bordered,\n.well {\n border: 1px solid var(--box-header-top-border-color) !important;\n border-left-color: var(--box-header-top-border-color) !important;\n border-right-color: var(--box-header-top-border-color) !important;\n}\n\n.box {\n border-top: 3px solid;\n}\n\n/* .bs-wizard's connecting line background (.progress = #f5f5f5) and\n inactive-step dots (#f5f5f5) both wash out against the dark-mode\n body. Bump to the theme's mid-gray so wizard steps stay visible\n on setup, importer modal, and the LDAP settings wizard. Selector\n uses [data-theme=\"dark\"] — the actual attribute Snipe-IT toggles\n for dark mode. Disabled variant is called out explicitly because\n .bs-wizard-step.disabled > .bs-wizard-dot is a same-specificity\n rule from AdminLTE — the extra .disabled class ensures we win. */\n[data-theme=\"dark\"] .bs-wizard-step .progress,\n[data-theme=\"dark\"] .bs-wizard-step > .bs-wizard-dot,\n[data-theme=\"dark\"] .bs-wizard-step.disabled > .bs-wizard-dot {\n background-color: #605e5e;\n}\n\n.box.box-default {\n border-top: var(--box-header-top-border);\n}\n\n\n.box-header.with-border {\n border-bottom: var(--box-header-bottom-border);\n}\n\n.box-footer {\n border-top: var(--box-header-bottom-border);\n}\n\n\n.nav-tabs-custom > .nav-tabs {\n border-bottom: var(--tab-bottom-border);\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n padding-bottom: 0;\n\n}\n\n.nav-tabs > li > a {\n margin-right: 0;\n border: 0;\n}\n\n.box,\n.box-footer,\n.tab-content,\n.nav-tabs-custom,\n.nav-tabs-custom > .nav-tabs > li,\n.nav-tabs-custom > .nav-tabs > li:first-of-type,\n.nav-tabs-custom > .nav-tabs > li.active > a:link,\n.nav-tabs-custom > .nav-tabs > li.active > a:visited,\n.nav-tabs-custom > .nav-tabs > li.active > a:hover,\n.bootstrap-table.fullscreen,\n.well {\n\n color: var(--color-fg);\n background-color: var(--box-bg) !important;\n border-left: 1px solid transparent;\n border-right: 1px solid transparent;\n\n}\n\n.panel {\n border-color: var(--box-header-top-border-color);\n}\n\n.panel-body {\n background-color: var(--box-bg) !important;\n}\n\n.panel-heading,\n.panel-default > .panel-heading {\n color: var(--color-fg) !important;\n background-color: var(--table-stripe-bg-alt) !important;\n border-color: var(--box-header-top-border-color);\n}\n\n.panel-footer {\n background-color: var(--box-bg) !important;\n border-color: var(--box-header-top-border-color);\n}\n\n.nav-tabs-custom > .nav-tabs > li.active {\n border-top-color: var(--main-theme-color) !important;\n background-color: var(--box-header-top-border-color) !important;\n border-bottom: 2px solid var(--box-bg) !important;\n border-right: 1px solid var(--box-header-top-border-color);\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n}\n\n.nav-tabs-custom > .nav-tabs > li:first-of-type {\n border-left: 0;\n}\n\n\n/**\nThis fixes the weird spacing in the nav tabs if there is a badge count on the tab\n */\n.badge {\n font-size: 11px;\n}\n\n/**\ntable rows\n */\n\n.table > thead > tr > th,\n.table > tbody > tr > th,\n.table > tfoot > tr > th,\n.table > thead > tr > td,\n.table > tbody > tr > td,\n.table > tfoot > tr > td {\n border-top: var(--table-border-row) !important;\n}\n\n\n.table-striped > tbody > tr:nth-of-type(even),\n.row-new-striped > .row:nth-of-type(even),\n.row-new-striped > .div:nth-of-type(odd),\n.cansort {\n background-color: var(--table-stripe-bg) !important;\n border-top: var(--table-border-row-top) !important;\n color: var(--color-fg) !important;\n}\n\n.table-striped > tbody > tr:nth-of-type(odd),\n.row-new-striped > .row:nth-of-type(even),\n.row-new-striped > .div:nth-of-type(odd),\n.cansort {\n background-color: var(--table-stripe-bg-alt) !important;\n border-top: var(--table-border-row-top) !important;\n color: var(--color-fg) !important;\n}\n\n\n// -----------------------------------------------------------------------------\n// CSS sticky columns. Bootstrap-table's fixed-columns feature was pulled\n// from the bundle in favor of this — the old feature cloned the table\n// body into an absolutely-positioned overlay, which drifted in height\n// with long-content rows (#19197, #19458) and misplaced tooltips when\n// the container reflowed without a window resize (asset show + info\n// panel toggle). CSS position:sticky on the actual <td> cells can't\n// drift because the cells ARE the pinned cells.\n//\n// Tables that want pinned columns get the snipe-table--sticky-right-N\n// or snipe-table--sticky-left-N class (via <x-table>'s fixed_number /\n// fixed_right_number props, or applied directly on a raw table).\n//\n// Body cells match the zebra background so the sticky column keeps the\n// alternating pattern. Header cells use --box-bg so scrolling body rows\n// don't show through above the header stripe transition. Header z-index\n// sits above body sticky so a scrolled row can't render over the header.\n// -----------------------------------------------------------------------------\n\n// --table-stripe-bg-alt is intentionally translucent (rgba .25) so the\n// zebra stripe composites on top of the row's --box-bg. That works for\n// normal rows but leaves sticky cells see-through because scrolled\n// content passes UNDER them with no opaque backer. For sticky cells we\n// paint --box-bg as an opaque base and layer the (still-translucent)\n// stripe on top via linear-gradient, replicating the composited color.\n\n// Per-position offset variables (--sticky-right-offset-P, --sticky-left-offset-P)\n// are set by the JS block in partials/bootstrap-table.blade.php after every\n// render. Position 1 is the outermost pinned column and gets offset 0; each\n// subsequent position adds the outerWidth of the previous columns so pinned\n// cells sit flush against each other instead of stacking at the edge.\n\n// Position-specific sticky rules. Recurses from @pos=1 up to @maxN.\n.gen-sticky-right(@maxN, @pos: 1) when (@pos <= @maxN) {\n .snipe-table--sticky-right-@{maxN} > thead > tr > th:nth-last-child(@{pos}),\n .snipe-table--sticky-right-@{maxN} > tbody > tr > td:nth-last-child(@{pos}) {\n position: sticky;\n right: var(~\"--sticky-right-offset-@{pos}\", 0);\n z-index: 2;\n background-color: var(--box-bg);\n }\n .gen-sticky-right(@maxN, (@pos + 1));\n}\n.gen-sticky-right(1);\n.gen-sticky-right(2);\n.gen-sticky-right(3);\n.gen-sticky-right(4);\n.gen-sticky-right(5);\n\n.gen-sticky-left(@maxN, @pos: 1) when (@pos <= @maxN) {\n .snipe-table--sticky-left-@{maxN} > thead > tr > th:nth-child(@{pos}),\n .snipe-table--sticky-left-@{maxN} > tbody > tr > td:nth-child(@{pos}) {\n position: sticky;\n left: var(~\"--sticky-left-offset-@{pos}\", 0);\n z-index: 2;\n background-color: var(--box-bg);\n }\n .gen-sticky-left(@maxN, (@pos + 1));\n}\n.gen-sticky-left(1);\n.gen-sticky-left(2);\n.gen-sticky-left(3);\n.gen-sticky-left(4);\n.gen-sticky-left(5);\n\n// Shared: header z-index bump and zebra-stripe overlay for all pinned columns.\n.gen-sticky-right-shared(@maxN) {\n .snipe-table--sticky-right-@{maxN} > thead > tr > th:nth-last-child(-n+@{maxN}) {\n z-index: 3;\n }\n .snipe-table--sticky-right-@{maxN}.table-striped > tbody > tr:nth-of-type(even) > td:nth-last-child(-n+@{maxN}) {\n background-image: linear-gradient(var(--table-stripe-bg), var(--table-stripe-bg));\n }\n .snipe-table--sticky-right-@{maxN}.table-striped > tbody > tr:nth-of-type(odd) > td:nth-last-child(-n+@{maxN}) {\n background-image: linear-gradient(var(--table-stripe-bg-alt), var(--table-stripe-bg-alt));\n }\n}\n.gen-sticky-right-shared(1);\n.gen-sticky-right-shared(2);\n.gen-sticky-right-shared(3);\n.gen-sticky-right-shared(4);\n.gen-sticky-right-shared(5);\n\n.gen-sticky-left-shared(@maxN) {\n .snipe-table--sticky-left-@{maxN} > thead > tr > th:nth-child(-n+@{maxN}) {\n z-index: 3;\n }\n .snipe-table--sticky-left-@{maxN}.table-striped > tbody > tr:nth-of-type(even) > td:nth-child(-n+@{maxN}) {\n background-image: linear-gradient(var(--table-stripe-bg), var(--table-stripe-bg));\n }\n .snipe-table--sticky-left-@{maxN}.table-striped > tbody > tr:nth-of-type(odd) > td:nth-child(-n+@{maxN}) {\n background-image: linear-gradient(var(--table-stripe-bg-alt), var(--table-stripe-bg-alt));\n }\n}\n.gen-sticky-left-shared(1);\n.gen-sticky-left-shared(2);\n.gen-sticky-left-shared(3);\n.gen-sticky-left-shared(4);\n.gen-sticky-left-shared(5);\n\n// Row-state overrides. Bootstrap-table adds `.selected` on click / checkbox\n// tick (see line ~2889 for the base rule), and Snipe-IT paints `.success`\n// and `.danger` rows for the audit / restore flows. Without these\n// overrides, the sticky columns keep their zebra background painted on top\n// of the row-selected color and read as unselected even when the rest of\n// the row is highlighted. Overriding both background-color AND\n// background-image (to clear the linear-gradient stripe overlay from the\n// -shared mixins) so the sticky cells pick up the row's highlight state.\n.gen-sticky-right-row-state(@maxN) {\n .snipe-table--sticky-right-@{maxN} > tbody > tr.selected > td:nth-last-child(-n+@{maxN}) {\n background-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 40)),hsl(from var(--main-theme-color) h s calc(l - 40)))\" !important;\n background-image: none !important;\n }\n .snipe-table--sticky-right-@{maxN} > tbody > tr.success > td:nth-last-child(-n+@{maxN}) {\n background-color: #00a65a !important;\n background-image: none !important;\n color: white !important;\n }\n .snipe-table--sticky-right-@{maxN} > tbody > tr.danger > td:nth-last-child(-n+@{maxN}) {\n background-color: var(--text-danger) !important;\n background-image: none !important;\n color: white !important;\n }\n}\n.gen-sticky-right-row-state(1);\n.gen-sticky-right-row-state(2);\n.gen-sticky-right-row-state(3);\n.gen-sticky-right-row-state(4);\n.gen-sticky-right-row-state(5);\n\n.gen-sticky-left-row-state(@maxN) {\n .snipe-table--sticky-left-@{maxN} > tbody > tr.selected > td:nth-child(-n+@{maxN}) {\n background-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 40)),hsl(from var(--main-theme-color) h s calc(l - 40)))\" !important;\n background-image: none !important;\n }\n .snipe-table--sticky-left-@{maxN} > tbody > tr.success > td:nth-child(-n+@{maxN}) {\n background-color: #00a65a !important;\n background-image: none !important;\n color: white !important;\n }\n .snipe-table--sticky-left-@{maxN} > tbody > tr.danger > td:nth-child(-n+@{maxN}) {\n background-color: var(--text-danger) !important;\n background-image: none !important;\n color: white !important;\n }\n}\n.gen-sticky-left-row-state(1);\n.gen-sticky-left-row-state(2);\n.gen-sticky-left-row-state(3);\n.gen-sticky-left-row-state(4);\n.gen-sticky-left-row-state(5);\n\n\n// -----------------------------------------------------------------------------\n// Checkbox column: bootstrap-table adds .bs-checkbox to the header and body\n// cells of any checkbox column. It should always be pinned to the left edge\n// regardless of what fixed_number the table sets, because the row-selection\n// affordance is expected to stay visible while the user scrolls horizontally\n// to review other columns before deciding what to check.\n// -----------------------------------------------------------------------------\n\n.snipe-table > thead > tr > th.bs-checkbox,\n.snipe-table > tbody > tr > td.bs-checkbox {\n position: sticky;\n left: 0;\n z-index: 2;\n background-color: var(--box-bg);\n}\n\n.snipe-table.table-striped > tbody > tr:nth-of-type(even) > td.bs-checkbox {\n background-image: linear-gradient(var(--table-stripe-bg), var(--table-stripe-bg));\n}\n.snipe-table.table-striped > tbody > tr:nth-of-type(odd) > td.bs-checkbox {\n background-image: linear-gradient(var(--table-stripe-bg-alt), var(--table-stripe-bg-alt));\n}\n\n.snipe-table > thead > tr > th.bs-checkbox {\n z-index: 3;\n}\n\n// Row-state overrides for the pinned checkbox column. Same reasoning as\n// the .gen-sticky-*-row-state mixins above: the opaque background baked\n// into the sticky cell would otherwise mask row-selected / .success /\n// .danger highlights on the checkbox column, which is exactly the column\n// users click to toggle the selection state, so the mismatch is most\n// visible there.\n.snipe-table > tbody > tr.selected > td.bs-checkbox {\n background-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 40)),hsl(from var(--main-theme-color) h s calc(l - 40)))\" !important;\n background-image: none !important;\n}\n.snipe-table > tbody > tr.success > td.bs-checkbox {\n background-color: #00a65a !important;\n background-image: none !important;\n color: white !important;\n}\n.snipe-table > tbody > tr.danger > td.bs-checkbox {\n background-color: var(--text-danger) !important;\n background-image: none !important;\n color: white !important;\n}\n\n\n// -----------------------------------------------------------------------------\n// Top scrollbar: mirrored above the bootstrap-table body so users on wide\n// tables don't have to scroll to the bottom to find the horizontal\n// scrollbar. Managed by updateTopScrollbar() in partials/bootstrap-table.\n// The wrapper node only exists when the table actually overflows\n// horizontally, so tables that fit in their container don't get any\n// extra chrome.\n// -----------------------------------------------------------------------------\n\n.snipe-top-scrollbar {\n // scroll (not auto) so the scrollbar thumb stays visible whenever\n // the container is displayed. auto lets macOS's trackpad-scrollbar\n // auto-hide take over on trackpad users even with the WebKit\n // pseudo-element styling below, which read as \"top scrollbar fades\n // faster than the bottom one\" (#19484 follow-up). Whole container\n // gets display: none from updateTopScrollbar() when the underlying\n // table doesn't actually overflow, so persistent scroll doesn't\n // produce a floating stub on tables that fit in the viewport.\n overflow-x: scroll;\n overflow-y: hidden;\n // 14px scrollbar sized to match the WebKit thumb below so it\n // reads as a deliberate chrome element rather than an OS-native\n // accident. Bumped from 10px so the thumb is easier to grab and\n // drag on trackpads / small screens.\n //\n // Outer height is 18px (border-box) = 14px scrollbar content +\n // 4px padding-bottom acting as a visual spacer between the\n // scrollbar thumb and the thead below it. Total 18px matches\n // the stickyHeaderOffsetY: 18 in bootstrap-table.blade.php so\n // the pinned scrollbar band + the sticky-clone thead just below\n // it stack seamlessly with no bleed-through gap between them\n // (#19484 follow-up: 4px gap of tbody rows visible between the\n // scrollbar and the sticky thead).\n box-sizing: border-box;\n height: 18px;\n padding-bottom: 4px;\n background-color: var(--box-bg);\n // Firefox scrollbar styling — spec-standard. `auto` uses the\n // OS-default thickness (matches the bumped-up 14px WebKit height\n // below so the thumb is easy to grab on trackpads / small screens).\n scrollbar-width: auto;\n scrollbar-color: rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.06);\n\n // Stay visible while the user scrolls the page down past the\n // natural table header. Bootstrap-table's own stickyHeader\n // (position: fixed via the .fix-sticky class) floats the thead\n // clone at viewport top; we mirror that positioning via JS\n // (updateTopScrollbarSticky in bootstrap-table.blade.php) so\n // the scrollbar sits ABOVE the sticky-clone thead - matching\n // the natural (unscrolled) order where the scrollbar reads\n // immediately above the thead. Bootstrap-table config pushes\n // .fix-sticky down by (this mirror's height + padding-bottom)\n // via stickyHeaderOffsetY so the two don't overlap. Sticky\n // positioning would have been simpler than the JS toggle but\n // didn't engage reliably against page scroll from inside the\n // .bootstrap-table nesting depth; falling back to position:\n // fixed set by the scroll listener. Reported in #19484 as\n // \"none of scrollbars are visible when list is scrolled to\n // the point where header starts floating\" plus follow-up\n // \"top scrollbar used to be above the table headers, which\n // seems a little better\".\n z-index: 101;\n\n // When the scroll listener detects the natural position has\n // gone above viewport top, this class flips the element to\n // position: fixed via inline style. The class itself just\n // marks \"currently pinned\" so callers can style pinned vs\n // unpinned states differently if needed.\n &.is-pinned {\n // Inline top/left/width comes from JS. Keeping the box\n // shadow drop off here so pinned state visually separates\n // the mirror from the sticky-clone thead below it.\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);\n }\n\n // WebKit / Blink scrollbar pseudo-elements. Both the track and the\n // thumb get border-radius so the container reads as rounded even\n // when the thumb is at the edge of the track (the previous\n // container-level border-radius was invisible because the container\n // had no visible background to round). Track carries a subtle tint\n // so the rounded shape is actually visible rather than shape-of-nothing.\n &::-webkit-scrollbar {\n height: 14px;\n }\n &::-webkit-scrollbar-track {\n background-color: rgba(0, 0, 0, 0.06);\n border-radius: 7px;\n }\n &::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.35);\n border-radius: 7px;\n }\n &::-webkit-scrollbar-thumb:hover {\n background-color: rgba(0, 0, 0, 0.5);\n }\n}\n\n.snipe-top-scrollbar-inner {\n // Height just enough to make the parent scrollable; width is set by\n // JS to match the underlying table's scrollWidth.\n height: 1px;\n}\n\n// Match the native bottom scrollbar on the table body to the styled\n// top mirror above so the two horizontal scroll handles read as a\n// consistent pair. Without this, the top uses our thin-with-rounded-\n// thumb chrome while the bottom uses the OS default and the two look\n// mismatched when both are visible on wide tables. scrollbar-width\n// bumped from `thin` to `auto` and the WebKit height matched to the\n// top mirror's 14px so the two scrollbars are the same easy-to-grab\n// size on trackpads / small screens (#19484 follow-up).\n.bootstrap-table .fixed-table-body {\n scrollbar-width: auto;\n scrollbar-color: rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.06);\n\n &::-webkit-scrollbar {\n height: 14px;\n }\n &::-webkit-scrollbar-track {\n background-color: rgba(0, 0, 0, 0.06);\n border-radius: 7px;\n }\n &::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.35);\n border-radius: 7px;\n }\n &::-webkit-scrollbar-thumb:hover {\n background-color: rgba(0, 0, 0, 0.5);\n }\n}\n\n\n/**\nmain header nav\n */\n\n\n.dropdown-menu {\n background-color: var(--main-theme-color);\n border-color: var(--main-theme-color);\n}\n\n\n.dropdown-menu > li,\n.navbar,\n.navbar-nav,\n.label-default,\n.label-default:hover {\n background-color: var(--main-theme-color);\n color: var(--nav-primary-text-color) !important;\n}\n\n.label-light {\n background-color: var(--default-label-link-bg) !important;\n color: var(--color-fg) !important;\n font-size: 12px !important;\n font-weight: normal !important;\n line-height: 25px;\n margin-left: 0px;\n padding-left: 3px;\n\n}\n\na.label-light,\na.label-light:hover {\n color: var(--link-color) !important;\n}\n\n.dropdown-menu > li > a,\n.dropdown-menu > li > a:link,\n.dropdown-menu > li > a:visited,\n.dropdown-menu > .active > a:link,\n.dropdown-menu > .active > a:visited,\n.navbar-nav .open > a:link,\n.navbar-nav .open > a:visited,\n.navbar-nav > li > a:link,\n.navbar-nav > li > a:visited {\n background-color: var(--main-theme-color) !important;\n /*background-color: rgba(0,0,0,.15);*/\n color: var(--nav-primary-text-color) !important;\n /*color: var(--nav-primary-text-color) !important;*/\n\n}\n\n.btn-tableButton.active.focus,\n.btn-tableButton.active:focus,\n.btn-tableButton.active:hover,\n.dropdown-menu > .active > a:focus,\n.dropdown-menu > .active > a:hover,\n.dropdown-menu > .active > a:link,\n.dropdown-menu > .active > a:visited,\n.dropdown-menu > li > a:focus,\n.dropdown-menu > li > a:hover,\n.dropdown-menu > li:focus,\n.dropdown-menu > li:hover,\n.navbar-nav .open li.active > a:focus,\n.navbar-nav .open li.active > a:hover,\n.navbar-nav .open > a:focus,\n.navbar-nav .open > a:hover,\n.navbar-nav > li > a:focus,\n.navbar-nav > li > a:hover,\n.open > .dropdown-toggle.btn-tableButton:focus,\n.open > .dropdown-toggle.btn-tableButton:hover,\n.page-next a,\n.pagination > .active > a:hover,\n.page-item.active,\n.pagination > .active > a,\n.pagination > li > .active > a,\n.pagination > li > .active > a:hover,\n.pagination > li > a:hover {\n background-color: var(--main-theme-hover) !important;\n border-color: var(--btn-theme-hover) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n.pagination > li > a {\n background-color: var(--main-theme-color) !important;\n border-color: var(--btn-theme-hover) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n\n.bootstrap-table .fixed-table-toolbar li.dropdown-item-marker label {\n color: var(--nav-primary-text-color) !important;\n}\n\n.bootstrap-table .fixed-table-toolbar li.dropdown-item-marker label:hover {\n background-color: var(--main-theme-hover) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n\n.dropdown-menu,\n.dropdown-menu > li {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\";\n border-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\";\n color: var(--nav-primary-text-color) !important;\n}\n\n.main-header .navbar .nav > .active > a {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\" !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n.navbar-nav > .notifications-menu > .dropdown-menu > li.header,\n.navbar-nav > .messages-menu > .dropdown-menu > li.header,\n.navbar-nav > .tasks-menu > .dropdown-menu > li.header,\n.navbar-nav > .notifications-menu > .dropdown-menu > li .menu,\n.navbar-nav > .messages-menu > .dropdown-menu > li .menu, .navbar-nav > .tasks-menu > .dropdown-menu > li .menu,\n.navbar-nav > .messages-menu > .dropdown-menu > li .menu, .navbar-nav > .tasks-menu > .dropdown-menu > li .menu a:hover,\n.navbar-nav > .messages-menu > .dropdown-menu > li .menu, .navbar-nav > .tasks-menu > .dropdown-menu > li:hover,\n.navbar-nav > .tasks-menu > .dropdown-menu > li .menu > li:hover > a,\n.task_menu {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\" !important;\n color: var(--nav-primary-text-color) !important;\n margin-bottom: 0;\n}\n\n.navbar-nav > .notifications-menu > .dropdown-menu > li .menu > li > a, .navbar-nav > .messages-menu > .dropdown-menu > li .menu > li > a, .navbar-nav > .tasks-menu > .dropdown-menu > li .menu > li > a {\n border-bottom: ~\"1px solid hsl(from var(--main-theme-color) h s calc(l - 10))\";\n}\n\n\n/**\nActive and hover for top tier sidenav items\n */\n\n.main-sidebar {\n background-color: #1e282c;\n}\n\n// Shift .main-header's BOX (not just its inner .navbar) so the header\n// occupies only the horizontal space past the sidebar's column. Base\n// AdminLTE 2 leaves .main-header full-width and only offsets the\n// .navbar's contents via margin-left: 230px, which fixes visual\n// alignment but not click alignment: the header's own <div> (z-index\n// 1030) still extends across the sidebar column above the sidebar\n// (z-index 810), so at intermediate widths where the navbar wraps to\n// two or three rows the header's empty second/third-row area sits on\n// top of the first sidebar item and eats clicks. Reported repeatedly\n// on the tracker (#19482, #11868, #5085) and previously papered over\n// with hardcoded .sidebar-menu { margin-top: Npx } offsets at\n// specific breakpoints - since removed above in favor of this\n// structural fix.\n//\n// Shift values track the sidebar's rendered width per body class:\n// - default (.sidebar-mini, sidebar open): 230px\n// - .sidebar-mini.sidebar-collapse (menu closed, mini icons): 50px\n// - mobile (<=767px): 0 (sidebar is translated off-screen)\n//\n// The navbar's own margin-left is zeroed at each state so the navbar\n// content doesn't get double-shifted after the header itself moves.\n// Transition on .main-header matches the navbar's existing 0.3s\n// margin-left transition so the header and its content animate\n// together when the sidebar toggles.\n@media (min-width: 768px) {\n .main-header {\n margin-left: 230px;\n transition: margin-left 0.3s ease-in-out;\n }\n .main-header .navbar {\n margin-left: 0;\n }\n .sidebar-mini.sidebar-collapse .main-header {\n margin-left: 50px;\n }\n // AdminLTE has a higher-specificity rule at min-width: 768px:\n // .sidebar-mini.sidebar-collapse .main-header .navbar { margin-left: 50px }\n // that overrides our plain .main-header .navbar reset above. Without\n // matching its specificity here, the mini-collapsed state ends up\n // double-shifting the navbar (header shifted 50px + navbar shifted\n // 50px = navbar starts at x=100). That pushed the .sidebar-toggle\n // hamburger past the sidebar column and into the header instead of\n // sitting over the mini-icon column at the top-left (where its\n // -48px margin-left is designed to place it).\n .sidebar-mini.sidebar-collapse .main-header .navbar {\n margin-left: 0;\n }\n}\n\n\n.sidebar-menu > li.active > a,\n.sidebar-menu > li:hover > a,\n.treeview-menu > li > a {\n color: var(--sidenav-text-hover-color) !important;\n border-left-color: var(--main-theme-color);\n}\n\n.sidebar-menu > li:hover > a,\n.sidebar-menu > li.active > a {\n border-left-color: var(--main-theme-color);\n padding-left: 12px;\n}\n\n\n.sidebar-menu > li:hover {\n background-color: #2c3b41;\n}\n\n.sidebar-menu > li > .treeview-menu {\n background-color: #1e282c;\n}\n\n\n.list-group-item:first-child {\n border-top: 0 !important;\n}\n\n.sidebar-menu > li > a:link,\n.sidebar-menu > li > a:visited,\n.treeview-menu > li > a {\n color: var(--sidenav-text-nohover-color) !important;\n}\n\n.sidebar-menu > li.active > a,\n.sidebar-menu > li:hover > a {\n background-color: #1e282c;\n border-left-color: var(--main-theme-color);\n border-left-style: solid;\n border-left-width: 3px;\n color: var(--sidenav-text-hover-color) !important;\n}\n\nthead,\ntbody,\n.table > thead > tr > th,\n.table > tbody > tr > th,\n.table > tfoot > tr > th,\n.table > thead > tr > td,\n.table > tbody > tr > td,\n.table > tfoot > tr > td {\n border-top-color: var(--box-bg) !important;\n border-bottom-color: var(--box-header-bottom-border-color) !important;\n color: var(--color-fg);\n}\n\n\n.help-block {\n color: var(--text-help) !important;\n}\n\n.alert-msg,\n.has-error {\n color: var(--text-danger) !important;\n}\n\n.has-error .form-control {\n border-color: var(--text-danger);\n}\n\n.alert a,\n.callout.callout-warning,\n.callout.callout-danger,\n.callout.callout-success,\n.callout.callout-info,\n.alert.alert-warning,\n.alert.alert-danger,\n.alert.alert-info,\n.alert.alert-success,\n.alert.alert-warning {\n color: white !important;\n}\n\n// The colored alerts have fixed-color backgrounds (red / blue / green\n// / orange) that read well against white text regardless of theme\n// mode. However the global \"h1..h4, p { color: var(--color-fg) }\" rule\n// further down this file has enough specificity to override the\n// alert's own color on any heading or paragraph inside, flipping the\n// text to black in light mode and white in dark mode — illegible\n// against the colored bg in light. Force inheritance so headings and\n// paragraphs inside these alerts always pick up the alert's white.\n.alert.alert-danger,\n.alert.alert-info,\n.alert.alert-success,\n.alert.alert-warning {\n h1, h2, h3, h4, p {\n color: inherit !important;\n }\n}\n\n\n.text-dark-gray a:link,\n.text-dark-gray a:hover,\n.text-dark-gray a:visited,\n.text-dark-gray a:focus {\n color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\";\n}\n\n.text-warning {\n color: var(--text-warning) !important;\n}\n\n.text-info {\n color: var(--text-info) !important;\n}\n\n.text-primary {\n color: var(--main-theme-color) !important;\n}\n\n.text-danger {\n color: var(--text-danger) !important;\n}\n\n.text-success {\n color: var(--text-success) !important;\n}\n\n.dropdown-menu > .divider {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\";\n margin-top: 0;\n margin-bottom: 0;\n padding-top: 1px;\n\n}\n\ninput[type=\"radio\"]::before {\n box-shadow: ~\"inset 1em 1em hsl(from var(--main-theme-color) h s calc(l - 20))\" !important;\n}\n\n\ninput[type=\"checkbox\"]::before {\n box-shadow: ~\"inset 1em 1em hsl(from var(--main-theme-color) h s calc(l - 20))\" !important;\n}\n\n\n.callout.callout-legend {\n background-color: var(--callout-bg-color);\n border-left: 5px solid var(--callout-left-border);\n\n}\n\n.callout-legend h4 a,\n.callout-legend h4 a:hover {\n color: var(--color-fg) !important;\n}\n\n\np.callout-subtext, p.callout-subtext a:hover, p.callout-subtext a:visited, p.callout-subtext a:link {\n color: var(--text-legend-help) !important;\n text-decoration: none;\n}\n\n\nlegend {\n border-bottom: 1px solid var(--callout-left-border);\n}\n\nth,\n.fix-sticky table thead {\n background-color: var(--box-bg);\n color: var(--color-fg) !important;\n}\n\n\n.logo:hover {\n background-color: var(--main-theme-color) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n.modal-content,\n.popover.help-popover,\n.popover.help-popover .popover-content,\n.popover.help-popover .popover-body,\n.popover.help-popover .popover-title,\n.popover.help-popover .popover-header {\n background-color: var(--box-bg) !important;\n /*color: var(--color-fg) !important;*/\n color: var(--color-fg) !important;\n}\n\n.treeview-menu > li {\n background-color: #2c3b41;\n color: var(--sidenav-text-nohover-color) !important;\n}\n\n.treeview-menu > li > a:hover,\n.treeview-menu > li:hover,\n.treeview-menu > li.active > a {\n color: white !important;\n background-color: var(--sidenav-hover-color-bg) !important;\n}\n\n.sidebar-toggle.btn,\n.sidebar-toggle.btn:hover {\n color: white !important;\n}\n\n.chart-responsive {\n color: var(--color-fg) !important;\n}\n\n.table > tbody + tbody {\n border-top: 0 !important;\n}\n\nh4#progress-text {\n color: white !important;\n}\n\n.small-box h3, .small-box p {\n color: white !important;\n}\n\n.box.box-theme {\n border-top: var(--main-theme-color) !important;\n}\n\ninput[type=\"date\"]:focus,\ninput[type=\"number\"]:focus,\ninput[type=\"text\"]:focus,\ninput[type=\"url\"]:focus,\ninput[type=\"email\"]:focus,\ninput[type=\"password\"]:focus,\ninput[type=\"tel\"]:focus,\ntextarea:focus {\n border-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\" !important;\n}\n\ninput[type=\"date\"]:required,\ninput[type=\"number\"]:required,\ninput[type=\"text\"]:required,\ninput[type=\"url\"]:required,\ninput[type=\"email\"]:required,\ninput[type=\"password\"]:required,\ninput[type=\"tel\"]:required,\nselect:required,\ninput:required,\ntextarea:required {\n border-right: 5px solid orange !important;\n}\n\n.bootstrap-table .fixed-table-container .table tbody tr.selected td {\n background-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 40)),hsl(from var(--main-theme-color) h s calc(l - 40)))\" !important;\n}\n\ntr.success > td {\n background-color: #00a65a !important;\n color: white !important;\n}\n\ntr.danger > td {\n background-color: var(--text-danger) !important;\n color: white !important;\n}\n\n@media print {\n\n body,\n div.content-wrapper,\n section.content,\n .webui,\n .main-panel,\n .nav-tabs-custom,\n .box,\n .box-body,\n .list-group,\n .list-group-unbordered,\n .list-group-item,\n .row,\n .tab-content {\n background: white !important;\n color: black !important;\n }\n\n .fixed-table-toolbar,\n .fixed-table-pagination,\n #assetsToolBar,\n .fixed-table-pagination {\n display: none !important;\n }\n\n .tab-pane.hidden-print {\n display: none !important;\n visibility: hidden !important;\n }\n\n h2, h3, h4 {\n color: black !important;\n }\n\n .col-sm-9,\n .main-panel {\n float: left;\n width: 100% !important;\n }\n\n}\n\n.list-group-item.subitem {\n padding-left: 20px !important;\n border-left: 0 !important;\n border-right: 0 !important;\n}\n\n.list-group-item.subitem:first-child {\n border: var(--tab-bottom-border);\n}\n\n.list-group-item.subitem:last-child {\n border: 0 !important;\n}\n\n.main-panel-content {\n line-height: 20px;\n border-bottom: var(--tab-bottom-border);\n padding: 10px 15px;\n}\n\n\n/* table */\n\ndl.table-display {\n float: left;\n width: 100%;\n margin: 1em 0;\n padding: 0;\n}\n\n.table-display dt {\n line-height: 25px;\n clear: left;\n float: left;\n /*text-align: right;*/\n width: 20%;\n margin: 0;\n padding: 8px;\n border-top: var(--tab-bottom-border);\n font-weight: bold;\n}\n\n.table-display dd {\n line-height: 20px;\n float: left;\n width: 80%;\n margin: 0;\n padding: 10px;\n border-top: var(--tab-bottom-border);\n}\n\n.well-display dt {\n clear: left;\n float: left;\n width: 70%;\n margin: 0;\n padding: 6px;\n border-top: 0;\n font-weight: bold;\n}\n\n.well-display dd {\n float: left;\n width: 30%;\n margin: 0;\n padding: 6px;\n border-top: 0;\n}\n\n.well-sm {\n line-height: 30px;\n}\n\n.table-display dd:first-of-type, .table-display dt:first-of-type {\n border-top: 0 !important;\n}\n\n\n@media (max-width: 750px) {\n .table-display dd {\n width: 100% !important;\n }\n\n .table-display dt {\n width: 100% !important;\n }\n}\n\n@media print {\n /* All your print styles go here */\n .box-profile {\n display: block !important;\n width: 100% !important;\n }\n}\n\n\n// Login / register page theme awareness.\n//\n// AdminLTE 2 hardcodes light-mode colors on the login page containers\n// (#d2d6de body bg, #fff box bg, #444 logo text) which ignore our\n// [data-theme=\"dark\"] CSS variables. Override with the same variables\n// the rest of the app uses so login and password-reset screens carry\n// the tenant's chosen theme mode instead of a permanent light-mode\n// look. Also styles the .register-* classes since AdminLTE ships them\n// paired and future Snipe-IT signup flows may use them.\n.login-page,\n.register-page {\n background: var(--color-bg);\n}\n\n.login-box-body,\n.register-box-body {\n background: var(--box-bg);\n color: var(--color-fg);\n}\n\n.login-logo a,\n.register-logo a {\n color: var(--color-fg);\n}\n\n// The .login-box wraps the header + body. Its header (.box-header) picks\n// up theme colors from the general .box rules already in this file, but\n// its bottom-border (from AdminLTE's default .login-box-body) is a\n// hardcoded light color that reads as a bright line against a dark\n// panel. Clear it and let the box's own borders do the visual work.\n.login-box-body,\n.register-box-body {\n border-top: 0;\n}\n\n// .login-box and .register-box are .box variants but do NOT get the\n// .box-default class, so they miss the themed border-top treatment\n// every other card in the app has. Give them the tenant's main theme\n// color as a top accent so the login card visually ties in with the\n// header bar above it (also styled with --main-theme-color) rather\n// than using the neutral grey that .box.box-default uses elsewhere.\n.login-box,\n.register-box {\n border-top: 3px solid var(--main-theme-color);\n}\n\n// Themed header bar for login / error pages (layouts/basic.blade.php).\n// Gives the tenant's uploaded logo the same colored background it lives\n// against in the logged-in app's top-nav so logos designed for that\n// context read the way they were meant to. Falls back to a text\n// treatment of the site name when there is no logo.\n.basic-page-header {\n background-color: var(--main-theme-color);\n // Match .main-header .navbar exactly (50px min-height) so the\n // login and error page header reads the same height as the\n // logged-in top-nav. Overflow: hidden clips the logo the same\n // way AdminLTE's .main-header .logo container does, so a padded\n // brand image renders at 50px even though its own box is taller.\n position: relative;\n min-height: 50px;\n overflow: hidden;\n padding: 0 20px;\n margin-bottom: 30px;\n text-align: center;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.basic-page-header__link {\n display: inline-block;\n // Kill link underline / hover-color so the logo and site-name\n // fallback render cleanly on the theme-color background.\n color: var(--nav-primary-text-color);\n text-decoration: none;\n\n &:hover,\n &:focus,\n &:visited {\n color: var(--nav-primary-text-color);\n text-decoration: none;\n }\n\n img {\n // Match img.navbar-brand-img / .navbar-brand>img exactly (the\n // rule near the top of this file that sizes the logged-in\n // top-nav brand logo). Combined with overflow: hidden on the\n // parent .basic-page-header, the padded img renders at 50px\n // clipped, giving the same visual as the logged-in header.\n max-height: 65px;\n max-width: 100%;\n width: auto;\n }\n}\n\n.basic-page-header__site-name {\n font-size: 24px;\n font-weight: 600;\n color: var(--nav-primary-text-color);\n}\n\n// Absolute-positioned in the top-right of the bar so the logo stays\n// visually centered. Icon-only presentation so it reads like the\n// compact icon controls (bell, user avatar) in the logged-in top-nav\n// rather than a full-text toggle. The aria-label carries the full\n// \"Dark mode\" / \"Light mode\" text for screen readers.\n.basic-page-header__toggle {\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n background: transparent;\n border: 0;\n padding: 4px 8px;\n color: var(--nav-primary-text-color);\n font-size: 16px;\n line-height: 1;\n cursor: pointer;\n\n &:hover,\n &:focus {\n color: var(--nav-primary-text-color);\n opacity: 0.85;\n }\n\n // Hide the injected .theme-toggle-label span. Text is still in the\n // DOM and read by screen readers via the button's aria-label, but\n // visually only the sun/moon icon shows.\n .theme-toggle-label {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n }\n}\n\n// Issue #19443: on narrower viewports (sidebar open, small laptops)\n// the bs-table search input ends up wedged between the box's\n// bulk-actions area (pulled left, ~500px min-width) and the button\n// toolbar (pulled right), which strands it visually in the middle.\n// Force the search onto its own row below the toolbar, right-aligned,\n// when the viewport isn't wide enough to fit all three inline. Wide\n// layouts stay unchanged.\n//\n// The outer `.search` is bootstrap's `.input-group` (display: table)\n// wrapping a nested `.input-group` with the input + clear button.\n// Just adding `clear: both` to the still-floated element left it\n// stranded mid-container. Turning the outer into a plain block with\n// `text-align: right`, and forcing the nested input-group to\n// `inline-flex` so it respects the parent's text alignment, lets it\n// sit flush against the box's right edge on its own row.\n@media (max-width: 1400px) {\n .box-body .fixed-table-toolbar > .search.pull-right {\n clear: both !important;\n margin-top: 8px;\n }\n}\n\n// Info-panel action button row. Every asset / user / license detail\n// page renders a horizontal strip of icon buttons (edit, clone, note,\n// audit, delete, ...) above the info panel. Was a plain .row with no\n// wrap strategy, so on narrow viewports the last one or two buttons\n// would drop to their own line with no spacing from the row above.\n// Flex + wrap + gap gives a predictable break point and consistent\n// spacing between buttons in either axis. Also fixed #19443.\n//\n// Destructive buttons (delete, and by convention checkin) still need\n// to sit visually apart from the non-destructive ones on the right\n// edge, which they got via `pull-right` (float: right) before this\n// container went flex. Floats are ignored by flex, so the first\n// pull-right child gets margin-left: auto to consume the remaining\n// space and shove itself right. Anything after it clusters next to\n// it.\n//\n// pull-right children also get order:1 so they visually move to the\n// end of the row regardless of their DOM position. Without this,\n// pull-right buttons that appear BEFORE non-pull-right buttons in\n// markup (checkin is emitted before edit/clone/audit on the asset\n// view, and only when the asset is currently checked out - which is\n// why the misalignment only showed up on checked-out assets) end up\n// dragging every subsequent sibling right along with them via the\n// auto margin, leaving only the first non-pull-right button alone on\n// the left. order:1 corrects the visual grouping so pull-right ends\n// up on the right and the non-pull-right stack stays left, matching\n// the behavior the old floats used to give.\n.info-panel-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 2px;\n // Bleed out through the parent .box-header's 10px horizontal\n // padding so the button row hits the box's actual edges. Matches\n // how a bootstrap .row offsets its container's gutters.\n margin: 0 -10px;\n\n > .pull-right {\n order: 1;\n margin-left: auto;\n }\n\n > .pull-right ~ .pull-right {\n margin-left: 0;\n }\n}\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"css/build/overrides.css","mappings":"AAAA;EAGE;AADF;AAGA;EACE;EACA;EACA;EACA;EACA;AADF;AAEE;;;EACE;AAEJ;AACA;EACE;AACF;AAEA;EACE;EACA;AAAF;AAGA;EACE;AADF;AAKA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;AAHF;AAMA;EACE;EACA;EACA;EACA;EACA;AAJF;AAOA;EACE;AALF;AAQA;EACE;AANF;AAeA;EACE;AAbF;AAeE;;EAEE;EACA;AAbJ;AAeE;EACE;AAbJ;AAkBA;EACE;AAhBF;AAmBA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAjBF;AAmBA;EACE;AAjBF;AAmBA;EACE;AAjBF;AAqBA;EACE;AAnBF;AAqBA;EACE;AAnBF;AAuBA;EACE;EACA;EACA;AArBF;AAwBA;EACE;EACA;EACA;AAtBF;AA+BA;EACE;AA7BF;AAgCA;EACE;EACA;EACA;AA9BF;AAiCA;EACE;EACA;AA/BF;AAkCA;EACE;AAhCF;AAmCA;EACE;EACA;AAjCF;AAoCA;;EACE;EACA;AAjCF;AAoCA;EACE;EACA;AAlCF;AAoCA;EACE;AAlCF;AAqCA;EACE;EACA;EACA;AAnCF;AAsCA;EACE;AApCF;AAuCA;EACE;AArCF;AAwCA;EACE;AAtCF;AAwCA;EACE;AAtCF;AAyCA;EACE;AAvCF;AA0CA;;;;EACE;AArCF;AAwCA;;;;;;;;;;;;;EAaE;AAtCF;AA2CA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAzCF;AA2CA;EACE;EACA;EACA;EACA;EACA;EACA;AAzCF;AA2CA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAzCF;AA2CA;EACE;AAzCF;AA2CA;EACE;EACA;EACA;EACA;AAzCF;AA2CA;EACE;EACA;AAzCF;AA2CA;EACE;EACA;EACA;EACA;EACA;AAzCF;AA2CA;EACE;EACA;AAzCF;AA2CA;EACE;EACA;EACA;EACA;AAzCF;AA4CA;EACE;EACA;AA1CF;AA+CA;EAAY;AA5CZ;AACA,cAAc;AA8Cd;EAAY;EAAkC;AA1C9C;AA2CA;EAA8B;EAAY;AAvC1C;AAyCA;EAAiD;EAAgB;EAAiB;AApClF;AAqCA;EAA8C;EAAa;AAjC3D;AAkCA;EAA+C;EAAoB;EAAa;EAAc;EAAgB;EAAqB;EAAW;EAAW;EAAmB;EAAoB;AAtBhM;AAuBA;EAAqD;EAAc;EAAa;EAAc;EAAqB;EAAqB;EAAoB;EAAU;AAbtK;AAcA;EAA0C;EAAoB;EAAoB;EAAa;EAAkB;AAPjH;AAQA;EAA0D;EAAW;EAAkB;AAHvF;AAIA;EAAmE;AADnE;AAEA;EAAiE;AACjE;AAAA;EAA6E;AAG7E;AAFA;EAA4E;AAK5E;AAJA;EAAwD;AAOxD;AANA;EAA8D;AAS9D;AARA;EAAuD;EAAW;AAYlE;AAXA;EAAsD;AActD;AAbA;EAAuD;AAgBvD;AACA;;;;;;;;EAQE;AAdF;EACE;EACA;EACA;AAgBF;AACA,kBAAkB;AAblB;EACE;EACA;EACA;EACA;EACA;EAeA,gCAAgC;AAClC;AAXA;EAGE;AAWF;AARA;EACE;AAUF;AANA;;EACE;AASF;AAPA;;EACE;AAUF;AAPA;EACE;EAIA;AAMF;AAHA;EACE;EACA;AAKF;AAFA;EACE;AAIF;AADA;EACE;AAGF;AAEA;EACE;AAAF;AAGA;EAEE;IACE;IACA;EAFF;EAKA;IACE;IACA;IACA;EAHF;EAMA;IACE;EAJF;EAOA;;IACE;EAJF;EAOA;IACE;IACA;IACA;IACA;IACA;IACA;IACA;EALF;EACA,+CAA+C;EAQ/C;IACE;EANF;EASA;IACE;EAPF;EAUA;IACE;EARF;EAWA;IACE;EATF;EACA,qCAAqC;EAYrC;;IACE;EATF;EACA,QAAQ;EAYR;;IACE;IACA;IACA;EATF;EAYA;IACE;EAVF;EAaA;IACE;EAXF;EAcA;IACE;IACA;IACA;EAZF;EAeA;IACE;IACA;EAbF;EAgBA;;IACE;EAbF;EAeA;;;;;;;;;;;;IACE;EAFF;EAKA;IACE;EAHF;EAKA;IACE;EAHF;EAKA;IACE;EAHF;EAKA;IACE;EAHF;EAKA;IACE;EAHF;EAKA;IACE;EAHF;EAKA;IACE;EAHF;EAKA;IACE;EAHF;EAKA;IACE;EAHF;EAKA;IACE;EAHF;EAKA;IACE;EAHF;EAKA;IACE;EAHF;AACF;AAQA;EACE;AANF;AASA;EACI;AAPJ;AAUA;EACE;AARF;AAWA;EACE;EACA;EACA;AATF;AAcA;EACE;EACA;OAAA;EACA;EACA;AAZF;AAeA;;EACE;EACA;EACA;AAZF;AAeA;EACE;AAbF;AAgBA;;;EACE;AAZF;AAeA;;EACE;AAZF;AAgBA;EACE;AAdF;AAiBA;EACE;AAfF;AAkBA;EACE;EACA;EACA;AAhBF;AAmBA;EACE;EACA;AAjBF;AAoBA;EACE;EACA;EACA;EACA;AAlBF;AAsBA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;AApBF;AAsBA;;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAnBF;AAsBA;EACE;AApBF;AAuBA;EACE;AArBF;AAwBA;EACE;AAtBF;AAyBA;EACE;AAvBF;AA0BA;EACE;AAxBF;AA4BA;EACE;EACA;EACA;EACA;EACA;EAGA;AA5BF;AA+BA;EACE;EACA;EACA;EACA;AA7BF;AAgCA;EACE;EACA;EACA;EACA;AA9BF;AAkCA;EACE;EACA;EACA;EACA;EACA;EACA;AAhCF;AACA;;;;EAIE;AAmCF;EACE;EACA;AAjCF;AAoCA;EACE;EACA;AAlCF;AAqCA;EACE;EACA;AAnCF;AAsCA;EACE;EACA;AApCF;AAwCA;EACE;AAtCF;AACA;;EAEE;AA2CF;EACE;IACE;IACA;EAzCF;EAkDA;IACE;EAhDF;EAmDA;IACE;EAjDF;AACF;AAoDA;EACE;EACA;EACA;AAlDF;AAqDA;EACE;EACA;AAnDF;AACA;;;;;;;;;;;EAWE;AAwDF;;;;;;;;;;;;;;;;EAiBE;EACA;EACA;EACA;EACA;EACA;AAvDF;AA2DA;;;;;;;;;;;;;;;;;EAkBE;EACA;EACA;EACA;AA1DF;AACA;;;EAGE;AA6DF;EAEE;EAAkB;EAAoC;AA1DxD;AA6DA;EAEE;EAAkB;EAAoC;AA1DxD;AA6DA;EAEE;EAAkB;EAAoC;AA1DxD;AA6DA;EAEE;EAAkB;EAAoC;AA1DxD;AA6DA;EAEE;EAAkB;EAAoC;AA1DxD;AA6DA;EACE;EAAkB;EAAoC;AAzDxD;AA4DA;EACE;EAAkB;EAAoC;EAAiB;AAvDzE;AA6DA;EACE;EAAkB;EAAoC;EAAiB;AAxDzE;AA2DA;EAEE;EAAkB;EAAoC;AAxDxD;AA2DA;EAEE;EAAkB;EAClB;EACA;AAzDF;AA4DA;EACE;EACA;EACA;EACA;AA1DF;AA4DA;EACE;EACA;EACA;EACA;AA1DF;AA4DA;EACE;EACA;EACA;EACA;AA1DF;AA4DA;EACE;EACA;EACA;EACA;AA1DF;AA6DA;EACE;EACA;EACA;EACA;AA3DF;AA8DA;EACE;EACA;EACA;EACA;AA5DF;AA+DA;EACE;EACA;EACA;EACA;AA7DF;AAiEA;EACE;EACA;EACA;EACA;AA/DF;AAmEA;;;EACE;AA/DF;AAkEA;;EACE;EACA;EACA;EACA;AA/DF;AAkEA;;EACE;AA/DF;AAkEA;EACE;AAhEF;AAmEA;EACE;IACE;EAjEF;AACF;AAmEA;EACE;IACE;EAjEF;EAmEA;IACE;EAjEF;AACF;AA+EA;EACE;IACE;EA7EF;EA+EA;IACE;IACA;EA7EF;EA+EA;IACE;IACA;EA7EF;EA+EA;IACE;IACA;EA7EF;AACF;AA+EA;EACE;IACE;EA7EF;AACF;AAgFA;EACE;IACE;EA9EF;AACF;AAgFA;EACE;IACE;IACA;IACA;IACA;IACA;EA9EF;AACF;AACA,oDAAoD;AAkFpD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAhFF;AAmFA;EACE;EACA;AAjFF;AACA;;;;;8EAK8E;AAoF9E;;;EAGE;AAlFF;AACA;;;;;;;;;;;;;;;8BAe8B;AAqF9B;;;EAGE;EACA;EACA;AAnFF;AACA;;;;4EAI4E;AAsF5E;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AApFF;AACA,8CAA8C;AAC9C,8CAA8C;AAC9C,8CAA8C;AAwF9C;EAtFE,kCAAkC;EAwFlC;EACA;OAAA;EAtFA,+CAA+C;EAwF/C;EAtFA,+BAA+B;EAwF/B;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAtFA,6BAA6B;AAC/B;AACA,yFAAyF;AA0FzF;EAxFE,2EAA2E;EAgG3E;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EA9FA,+BAA+B;EAgG/B;AA9FF;AACA,wEAAwE;AAiGxE;EACE;AA/FF;AACA,wEAAwE;AAkGxE;;EACE;EACA;EACA;EACA;EACA;AA/FF;AACA,6EAA6E;AAkG7E;;EACE;EACA;EACA;EACA;AA/FF;AACA,+EAA+E;AAkG/E;;EACE;EACA;EACA;EACA;AA/FF;AACA,qCAAqC;AAoGrC;EACE;KAAA;UAAA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAlGF;AAqGA;EACE;EACA;EACA;EACA;EACA;EACA;AAnGF;AAsGA;EACE;AApGF;AACA;;;;EAIE;AAwGF;EACE;AAtGF;AAyGA;EACE;EACA;EACA;EACA;AAvGF;AA0GA;EACE;AAxGF;AA2GA;EACE;AAzGF;AA4GA;EACE;AA1GF;AA6GA;EACE;AA3GF;AACA,8CAA8C;AAC9C,8CAA8C;AAC9C,8CAA8C;AAC9C;;;EAGE;AAgHF;EACE;EACA;EACA;EACA;EACA;AA9GF;AAiHA;;EAEE;EACA;EACA;AA/GF;AAkHA;EACE;AAhHF;AAmHA;EACE;AAjHF;AAmHA;EACE;AAjHF;AAoHA;EACE;EACA;EACA;AAlHF;AACA,kEAAkE;AAqHlE;EACE;AAnHF;AAsHA;EACE;EACA;AApHF;AAuHA;EACE;EACA;AArHF;AAwHA;EACE;EACA;EACA;EACA;EACA;EACA;AAtHF;AAyHA;;EACE;AAtHF;AAyHA;EACE;EAQA;EACA;EACA;AA9HF;AAiIA;EACE;EACA;AA/HF;AAkIA;EACE;AAhIF;AAmIA;EACE;EACA;AAjIF;AAqIA;EACO;EAAiB;EAAkB;AAjI1C;AAgIA;EAEO;EAAiB;EAAkB;AA7H1C;AA2HA;EAGO;EAAiB;EAAkB;AAzH1C;AAsHA;EAIO;EAAiB;EAAkB;AArH1C;AAiHA;;EAKW;EAAiB;EAAkB;AAhH9C;AA2GA;EAMM;AA9GN;AAwGA;EAOiB;AA5GjB;AAqGA;;EAQW;EAAiB;AAxG5B;AAgGA;EASoB;AAtGpB;AA0GA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAxGF;AA4GA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;AA1GF;AA6GA;EACE;AA3GF;AA8GA;EACE;EACA;EACA;AA5GF;AA+GA;EACE;EACA;EACA;EACA;AA7GF;AAgHA;EACE;EACA;AA9GF;AAiHA;EACE;AA/GF;AACA;;EAEE;AAkHF;EACI;AAhHJ;AACA;;EAEE;AAmHF;EACE;EACA;EACA;EACA;EACA;EACA;AAjHF;AAoHA;EACE;AAlHF;AAqHA;EACE;AAnHF;AAsHA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AApHF;AAuHA;EACE;EACA;EACA;AArHF;AAwHA;EACE;EACA;EACA;EACA;AAtHF;AAyHA;EACE;EACA;EACA;EACA;AAvHF;AA0HA;EACE;EACA;EACA;EACA;AAxHF;AA2HA;EACE;AAzHF;AA4HA;EACE;EACA;AA1HF;AA6HA;EACE;AA3HF;AAsIE;EAAA;;IACE;IACA;EAlIF;EAoIE;;IACE;IACA;IACA;IACA;IACA;IACA;IACA;EAjIJ;EAoIE;;IAEI;IACA;EAlIN;EA+HE;;IAOI;EAlIN;EA6GA;;IA2BI;EApIJ;EAyGA;;IA+BI;IACA;IACA;IACA;EApIJ;EAkGA;;IAsCI;IACA;IACA;IACA;IACA;IACA;IACA;IACA;EApIJ;EAsII;;;;;;IAGE;IACA;EAjIN;EA8EA;;IAwDI;IACA;IACA;IACA;EAlIJ;EAoII;;;;;;IAGE;EA/HN;AACF;AA4DA;;;;;;;;;;;;EAkFE;EACA;AAhIF;AAuIA;;EAEE;AArIF;AA6IA;EACE;IACE;IACA;EA3IF;AACF;AAyJA;EACE;EACA;EACA;AAvJF;AAgKA;;EAEE;EACA;AA9JF;AAqKA;;EAEE;AAnKF;AA0KA;EAOE;;;;;;IAME;EA9KF;AACF;AAoMA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAlMF;AAqMA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAnMF;AAsMA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AApMF;AAoNA;;;;;EAKE;EACA;AAlNF;AAqNA;EACE;AAnNF;AAsNA;EACE;EACA;EACA;AApNF;AAuNA;;;EAGE;AArNF;AAwNA;;EAEE;AAtNF;AAyNA;EACE;AAvNF;AA0NA;EACE;AAxNF;AA2NA;EACE;AAzNF;AA4NA;EACE;EA1NA,uDAAuD;EA4NvD;EACA;AA1NF;AA6NA;EACE;EA3NA,uDAAuD;EA6NvD;EACA;AA3NF;AA8NA;EACE;AA5NF;AA+NA;EACE;AA7NF;AAiOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BE;EACA;EACA;AA/NF;AAmOA;;EAEE;AAjOF;AACA;;;;;EAKE;AAoOF;;EAEE;EACA;AAlOF;AACA;;;;;;EAME;AAqOF;EACE;AAnOF;AACA;;EAEE;AAsOF;EACE;EACA;AApOF;AAuOA;EACE;EArOA,mFAAmF;EACnF,mDAAmD;EAuOnD;AArOF;AACA;;EAEE;AAwOF;EACE;EACA;AAtOF;AACA;;EAEE;AAyOF;;;;;EAKE;EAvOA,qCAAqC;EAyOrC;AAvOF;AA0OA;;EAEE;EACA;EACA;AAxOF;AA2OA;EACE;AAzOF;AA4OA;EACE;EACA;EACA;AA1OF;AACA;;;;;;;;;;CAUC;AA6OD;EACE;EACA;EACA;AA3OF;AACA;2CAC2C;AA8O3C;EACE;AA5OF;AACA;;;;0CAI0C;AA+O1C;EACE;AA7OF;AAgPA;EACE;AA9OF;AAiPA;EACE;AA/OF;AAkPA;EACE;AAhPF;AACA;;UAEU;AAmPV;EACE;AAjPF;AACA;;;;;yBAKyB;AAoPzB;EACE;AAlPF;AAqPA;;;;EAIE;EACA;EACA;AAnPF;AAsPA;EACE;AApPF;AACA;oEACoE;AAuPpE;;;EAGE;EACA;AArPF;AACA;;;;;;;;;uEASuE;AAwPvE;;;;;;;;;EASE;AAtPF;AACA;;;;;;;;oEAQoE;AAyPpE;EACE;EACA;EACA;AAvPF;AA0PA;;EAEE;EACA;EACA;AAxPF;AACA;;uCAEuC;AA2PvC;EACE;EACA;EACA;EACA;AAzPF;AA4PA;;EAEE;EACA;AA1PF;AACA,iDAAiD;AA8PjD;;EAEE;EACA;AA5PF;AAiQA;EACE;EACA;EACA;AA/PF;AAkQA;;;;;;;;;;;EAWE;EACA;AAhQF;AAmQA;EACE;EACA;AAjQF;AA+PA;EACE;EACA;AAjQF;AAoQA;EACE;EACA;AAlQF;AAqQA;EACE;AAnQF;AAsQA;EACE;EACA;EACA;EACA;EACA;EACA;AApQF;AAuQA;;;;;;;EAOE;AArQF;AAwQA;;;;;;;;;;;;;;;;;;;;;;EAsBE;AAtQF;AA0QA;;;;EAIE;EACA;EACA;AAxQF;AA4QA;;EAEE;AA1QF;AA6QA;EACE;EACA;AA3QF;AA+QA;;;;EAIE;AA7QF;AACA;;;;;EAKE;AAgRF;EACE;EACA;EACA;AA9QF;AAiRA;;EAEE;EACA;AA/QF;AACA;;;;;;;EAOE;AAkRF;EAAsB;AA/QtB;AAgRA;EAA4B;AA7Q5B;AA+QA;EAAwB;AA5QxB;AA6QA;EAA8B;AA1Q9B;AA4QA;EAAyB;AAzQzB;AA0QA;EAA+B;AAvQ/B;AAyQA;EAAuB;AAtQvB;AAuQA;EAA6B;AApQ7B;AAsQA;;;;;;;;;;EAUE;EACA;EACA;AApQF;AAuQA;EACE;AArQF;AACA;;;;;;;mEAOmE;AAwQnE;;;EAGE;AAtQF;AAyQA;EACE;AAvQF;AA2QA;EACE;AAzQF;AA4QA;EACE;AA1QF;AA8QA;EACE;EACA;EACA;EACA;AA5QF;AAgRA;EACE;EACA;AA9QF;AAiRA;;;;;;;;;;;EAYE;EACA;EACA;EACA;AAhRF;AAoRA;EACE;AAlRF;AAqRA;EACE;AAnRF;AAsRA;;EAEE;EACA;EACA;AApRF;AAuRA;EACE;EACA;AArRF;AAwRA;EACE;EACA;EACA;EACA;EACA;EACA;AAtRF;AAyRA;EACE;AAvRF;AACA;;EAEE;AA2RF;EACE;AAzRF;AACA;;EAEE;AA6RF;;;;;;EAME;AA3RF;AA+RA;;;;EAIE;EACA;EACA;AA7RF;AAgSA;;;;EAIE;EACA;EACA;AA9RF;AA1gEC;;EAg1EO;EACA;EACA;EACA;AAlUR;AAjhEC;;EAg1EO;EACA;EACA;EACA;AA3TR;AAxhEC;;EAg1EO;EACA;EACA;EACA;AApTR;AA/hEC;;EAg1EO;EACA;EACA;EACA;AA7SR;AAtiEC;;EAg1EO;EACA;EACA;EACA;AAtSR;AA7iEC;;EAg1EO;EACA;EACA;EACA;AA/RR;AApjEC;;EAg1EO;EACA;EACA;EACA;AAxRR;AA3jEC;;EAg1EO;EACA;EACA;EACA;AAjRR;AAlkEC;;EAg1EO;EACA;EACA;EACA;AA1QR;AAzkEC;;EAg1EO;EACA;EACA;EACA;AAnQR;AAhlEC;;EAg1EO;EACA;EACA;EACA;AA5PR;AAvlEC;;EAg1EO;EACA;EACA;EACA;AArPR;AA9lEC;;EAg1EO;EACA;EACA;EACA;AA9OR;AArmEC;;EAg1EO;EACA;EACA;EACA;AAvOR;AA5mEC;;EAg1EO;EACA;EACA;EACA;AAhOR;AAnnEC;;EAg2EO;EACA;EACA;EACA;AAzOR;AA1nEC;;EAg2EO;EACA;EACA;EACA;AAlOR;AAjoEC;;EAg2EO;EACA;EACA;EACA;AA3NR;AAxoEC;;EAg2EO;EACA;EACA;EACA;AApNR;AA/oEC;;EAg2EO;EACA;EACA;EACA;AA7MR;AAtpEC;;EAg2EO;EACA;EACA;EACA;AAtMR;AA7pEC;;EAg2EO;EACA;EACA;EACA;AA/LR;AApqEC;;EAg2EO;EACA;EACA;EACA;AAxLR;AA3qEC;;EAg2EO;EACA;EACA;EACA;AAjLR;AAlrEC;;EAg2EO;EACA;EACA;EACA;AA1KR;AAzrEC;;EAg2EO;EACA;EACA;EACA;AAnKR;AAhsEC;;EAg2EO;EACA;EACA;EACA;AA5JR;AAvsEC;;EAg2EO;EACA;EACA;EACA;AArJR;AA9sEC;;EAg2EO;EACA;EACA;EACA;AA9IR;AArtEC;;EAg2EO;EACA;EACA;EACA;AAvIR;AA5tEC;EAg3EO;AAjJR;AA/tEC;EAm3EO;AAjJR;AAluEC;EAs3EO;AAjJR;AAruEC;EAg3EO;AAxIR;AAxuEC;EAm3EO;AAxIR;AA3uEC;EAs3EO;AAxIR;AA9uEC;EAg3EO;AA/HR;AAjvEC;EAm3EO;AA/HR;AApvEC;EAs3EO;AA/HR;AAvvEC;EAg3EO;AAtHR;AA1vEC;EAm3EO;AAtHR;AA7vEC;EAs3EO;AAtHR;AAhwEC;EAg3EO;AA7GR;AAnwEC;EAm3EO;AA7GR;AAtwEC;EAs3EO;AA7GR;AAzwEC;EAi4EO;AArHR;AA5wEC;EAo4EO;AArHR;AA/wEC;EAu4EO;AArHR;AAlxEC;EAi4EO;AA5GR;AArxEC;EAo4EO;AA5GR;AAxxEC;EAu4EO;AA5GR;AA3xEC;EAi4EO;AAnGR;AA9xEC;EAo4EO;AAnGR;AAjyEC;EAu4EO;AAnGR;AApyEC;EAi4EO;AA1FR;AAvyEC;EAo4EO;AA1FR;AA1yEC;EAu4EO;AA1FR;AA7yEC;EAi4EO;AAjFR;AAhzEC;EAo4EO;AAjFR;AAnzEC;EAu4EO;AAjFR;AAtzEC;EA05EO;EACA;AAjGR;AA1zEC;EA85EO;EACA;EACA;AAjGR;AA/zEC;EAm6EO;EACA;EACA;AAjGR;AAp0EC;EA05EO;EACA;AAnFR;AAx0EC;EA85EO;EACA;EACA;AAnFR;AA70EC;EAm6EO;EACA;EACA;AAnFR;AAl1EC;EA05EO;EACA;AArER;AAt1EC;EA85EO;EACA;EACA;AArER;AA31EC;EAm6EO;EACA;EACA;AArER;AAh2EC;EA05EO;EACA;AAvDR;AAp2EC;EA85EO;EACA;EACA;AAvDR;AAz2EC;EAm6EO;EACA;EACA;AAvDR;AA92EC;EA05EO;EACA;AAzCR;AAl3EC;EA85EO;EACA;EACA;AAzCR;AAv3EC;EAm6EO;EACA;EACA;AAzCR;AA53EC;EAg7EO;EACA;AAjDR;AAh4EC;EAo7EO;EACA;EACA;AAjDR;AAr4EC;EAy7EO;EACA;EACA;AAjDR;AA14EC;EAg7EO;EACA;AAnCR;AA94EC;EAo7EO;EACA;EACA;AAnCR;AAn5EC;EAy7EO;EACA;EACA;AAnCR;AAx5EC;EAg7EO;EACA;AArBR;AA55EC;EAo7EO;EACA;EACA;AArBR;AAj6EC;EAy7EO;EACA;EACA;AArBR;AAt6EC;EAg7EO;EACA;AAPR;AA16EC;EAo7EO;EACA;EACA;AAPR;AA/6EC;EAy7EO;EACA;EACA;AAPR;AAp7EC;EAg7EO;EACA;AAOR;AAx7EC;EAo7EO;EACA;EACA;AAOR;AA77EC;EAy7EO;EACA;EACA;AAOR;AAWA;;EAEI;EACA;EACA;EACA;AATJ;AAYA;EACI;AAVJ;AAYA;EACI;AAVJ;AAaA;EACI;AAXJ;AAoBA;EACI;EACA;AAlBJ;AAoBA;EACI;EACA;EACA;AAlBJ;AAoBA;EACI;EACA;EACA;AAlBJ;AA+BA;EASI;EACA;EAcA;EACA;EACA;EACA;EAIA;EACA;EAoBA;AAxEJ;AA+EI;EAII;AAhFR;AAyFI;EACI;AAvFR;AAyFI;EACI;EACA;AAvFR;AAyFI;EACI;EACA;AAvFR;AAyFI;EACI;AAvFR;AA2FA;EAGI;AA3FJ;AAsGA;EACI;EACA;AApGJ;AAsGI;EACI;AApGR;AAsGI;EACI;EACA;AApGR;AAsGI;EACI;EACA;AApGR;AAsGI;EACI;AApGR;AACA;;EAEE;AA2GF;EACE;EACA;AAzGF;AA6GA;;;;;EAKE;EACA;AA3GF;AA8GA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;AA5GF;AAgHA;;EAEE;AA9GF;AAiHA;;;;;;;;;EASE;EA/GA,qCAAqC;EAiHrC;EA/GA,mDAAmD;AACrD;AAmHA;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BE;EACA;EACA;AAjHF;AAoHA;EACE;EACA;EACA;AAlHF;AAsHA;EACE;AApHF;AAuHA;EACE;EACA;AArHF;AAyHA;;EAEE;EACA;EACA;AAvHF;AA0HA;EACE;EACA;AAxHF;AA2HA;;;;;;;;;;;;EASE;EACA;EACA;AAtHF;AAyHA;;;EACE;AArHF;AACA;;EAEE;AA0HF;EACE;AAxHF;AAmJA;EACE;IACE;IACA;EAjJF;EAmJA;IACE;EAjJF;EAmJA;IACE;EAjJF;EA4JA;IACE;EA1JF;AACF;AA8JA;;;EAGE;EACA;AA5JF;AA+JA;;EAEE;EACA;AA7JF;AAiKA;EACE;AA/JF;AAkKA;EACE;AAhKF;AAoKA;EACE;AAlKF;AAqKA;;;EAGE;AAnKF;AAsKA;;EAEE;EACA;EACA;EACA;EACA;AApKF;AAuKA;;;;;;;;EAQE;EACA;EACA;AArKF;AAyKA;EACE;AAvKF;AA0KA;;EAEE;AAxKF;AA2KA;EACE;AAzKF;AA4KA;;;;;;;;;;EAUE;AA1KF;AAqLA;;;;;;;;;;;;;;;;;;;;EAKI;AApKJ;AAyKA;;;;EAIE;AAvKF;AA0KA;EACE;AAxKF;AA2KA;EACE;AAzKF;AA4KA;EACE;AA1KF;AA6KA;EACE;AA3KF;AA8KA;EACE;AA5KF;AA+KA;EACE;EACA;EACA;EACA;AA7KF;AAiLA;EACE;AA/KF;AAmLA;EACE;AAjLF;AAqLA;EACE;EACA;AAnLF;AAuLA;;EAEE;AArLF;AAyLA;;;;EACE;EACA;AApLF;AAwLA;EACE;AAtLF;AAyLA;;EAEE;EACA;AAvLF;AA2LA;EACE;EACA;AAzLF;AA4LA;;;;;;EAME;EA1LA,qCAAqC;EA4LrC;AA1LF;AA6LA;EACE;EACA;AA3LF;AA8LA;;;EAGE;EACA;AA5LF;AA+LA;;EAEE;AA7LF;AAgMA;EACE;AA9LF;AAiMA;EACE;AA/LF;AAkMA;EACE;AAhMF;AAmMA;;EACE;AAhMF;AAmMA;EACE;AAjMF;AAoMA;;;;;;;;EAQE;AAlMF;AAqMA;;;;;;;;;;EAUE;AAnMF;AAsMA;EACE;AApMF;AAuMA;EACE;EACA;AArMF;AAwMA;EACE;EACA;AAtMF;AAyMA;EAEE;;;;;;;;;;;;;IAaE;IACA;EAxMF;EA2MA;;;;IAIE;EAzMF;EA4MA;IACE;IACA;EA1MF;EA6MA;;;IACE;EAzMF;EA4MA;;IAEE;IACA;EA1MF;AACF;AA8MA;EACE;EACA;EACA;AA5MF;AA+MA;EACE;AA7MF;AAgNA;EACE;AA9MF;AAiNA;EACE;EACA;EACA;AA/MF;AACA,UAAU;AAoNV;EACE;EACA;EACA;EACA;AAlNF;AAqNA;EACE;EACA;EACA;EAnNA,qBAAqB;EAqNrB;EACA;EACA;EACA;EACA;AAnNF;AAsNA;EACE;EACA;EACA;EACA;EACA;EACA;AApNF;AAuNA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;AArNF;AAwNA;EACE;EACA;EACA;EACA;EACA;AAtNF;AAyNA;EACE;AAvNF;AA0NA;;EACE;AAvNF;AA2NA;EACE;IACE;EAzNF;EA4NA;IACE;EA1NF;AACF;AA6NA;EA3NE,kCAAkC;EA6NlC;IACE;IACA;EA3NF;AACF;AAwOA;;EAEE;AAtOF;AAyOA;;EAEE;EACA;AAvOF;AA0OA;;EAEE;AAxOF;AAgPA;;EAEE;AA9OF;AAuPA;;EAEE;AArPF;AA6PA;EACE;EAMA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAhQF;AAmQA;EACE;EAGA;EACA;AAnQF;AAqQE;;;EAGE;EACA;AAnQJ;AAwPA;EAoBI;EACA;EACA;AAzQJ;AA6QA;EACE;EACA;EACA;AA3QF;AAmRA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAjRF;AAmRE;;EAEE;EACA;AAjRJ;AAiQA;EAuBI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AArRJ;AAwSA;EACE;IACE;IACA;EAtSF;AACF;AAoUA;EACE;EACA;EACA;EAIA;AArUF;AA8TA;EAUI;EACA;AArUJ;AA0TA;EAeI;AAtUJ;AAqVA;EAEI;EACA;EACA;EACA;EACA;EACA;AApVJ;AA6UA;;EAWM;EACA;AApVN;AAwUA;;;;;;;;EAuBM;AArVN;AA8TA;;;;;EA+BM;AAtVN;AAwWA;EACE;AAtWF;AA8WA;EACE;IACE;IACA;IACA;EA5WF;EA+WA;IACE;IACA;IACA;EA7WF;EAgXA;IACE;IACA;IACA;IACA;IACA;EA9WF;EAoXA;IACE;EAlXF;EA4XA;IACE;IACA;EA1XF;AACF;AAqYA;EACE;EACA;EACA;EACA;EACA;EACA;AAnYF;AAsYA;EAME;EACA;AAzYF;AA2YE;EACE;EACA;EACA;AAzYJ;AA0ZA;;;;EAIE;EACA;EACA;EACA;EACA;AAxZF;AA2ZA;EACE;AAzZF;AA4ZA;EACE;AA1ZF","sources":["webpack:///./resources/assets/less/overrides.less"],"sourcesContent":[".main-header\n\n.logo {\n background-color: inherit;\n}\n.main-header .logo {\n width: 100% !important;\n white-space: nowrap;\n text-align: left;\n display: block;\n clear: both;\n &a:link, a:hover, a:visited {\n color: #fff\n }\n}\n.huge {\n font-size: 40px;\n}\n\n.btn-file {\n position: relative;\n overflow: hidden;\n}\n\n.dropdown-menu>li>a {\n color: #354044;\n}\n\n\n#sort tr.cansort {\n border-radius: 2px;\n padding: 10px;\n background: #f4f4f4;\n margin-bottom: 3px;\n border-inline: 2px solid #e6e7e8;\n color: #444;\n cursor: move;\n}\n\n.user-image-inline {\n float: left;\n width: 25px;\n height: 25px;\n border-radius: 50%;\n margin-right: 10px;\n}\n\n.input-group .input-group-addon {\n background-color: #f4f4f4;\n}\n\na.accordion-header {\n color: #333;\n}\n\n// Mirror BS3's .form-group spacing — same margin-bottom, no padding —\n// plus a clearfix so floated col-md-* children don't leak past the\n// wrapper. Without the clearfix, a row whose floats don't fill the full\n// 12 cols (e.g. password_confirmation at 3 + 8) leaves a gap on the\n// right edge that pulls the next row's first child up alongside it,\n// visually offsetting that row's label/input.\n.dynamic-form-row {\n margin-bottom: 15px;\n\n &::before,\n &::after {\n content: \" \";\n display: table;\n }\n &::after {\n clear: both;\n }\n}\n\n\n.handle {\n padding-left: 10px;\n}\n\n.btn-file input[type=file] {\n position: absolute;\n top: 0;\n right: 0;\n min-width: 100%;\n min-height: 100%;\n font-size: 100px;\n text-align: right;\n filter: alpha(opacity=0);\n opacity: 0;\n outline: none;\n background: white;\n cursor: inherit;\n display: block;\n}\n.main-footer {\n font-size: 13px;\n}\n.main-header {\n max-height: 150px;\n}\n\n\n.navbar-nav>.user-menu>.dropdown-menu {\n width: inherit;\n}\n.main-header .logo {\n padding: 0px 5px 0px 15px;\n}\n\n\n.sidebar-toggle {\n margin-left: -48px;\n z-index: 100;\n background-color: inherit;\n}\n\n.sidebar-toggle-mobile {\n z-index: 100;\n width: 50px;\n padding-top: 10px;\n}\n\n\n.main-header\n.navbar\n.dropdown-menu li a {\n //color: inherit;\n}\n.pull-text-right{\n text-align: right !important;\n}\n\n.main-header .sidebar-toggle:before {\n content: \"\\f0c9\";\n font-weight: 900;\n font-family: 'Font Awesome\\ 5 Free';\n}\n\n.direct-chat-contacts {\n padding: 10px;\n height: 150px;\n}\n\n.select2-container {\n width: 100%;\n}\n\n.error input {\n color: #a94442;\n border: 2px solid #a94442 !important;\n}\n\n.error label, .alert-msg {\n color: #a94442;\n display: block;\n}\n\n.input-group[class*=\"col-\"] {\n padding-right: 15px;\n padding-left: 15px;\n}\n.control-label.multiline {\n padding-top: 10px;\n}\n\n.btn-outline {\n color: inherit;\n background-color: transparent;\n transition: all .5s;\n}\n\n.btn-primary.btn-outline {\n color: #428bca;\n}\n\n.btn-success.btn-outline {\n color: #5cb85c;\n}\n\n.btn-info.btn-outline {\n color: #5bc0de;\n}\n.btn-warning{\n background-color:#f39c12 !important;\n}\n\n.btn-warning.btn-outline {\n color: #f0ad4e;\n}\n\n.btn-danger.btn-outline, a.link-danger:link, a.link-danger:visited, a.link-danger:hover {\n color: #dd4b39;\n}\n\n.btn-primary:hover,\n.btn-success:hover,\n.btn-info:hover,\n.btn-warning:hover,\n.btn-primary,\n.btn-success,\n.btn-info,\n.btn-warning,\n.btn-primary.btn-outline:hover,\n.btn-success.btn-outline:hover,\n.btn-info.btn-outline:hover,\n.btn-warning.btn-outline:hover,\n.btn-danger.btn-outline:hover {\n color: #fff !important;\n}\n\n\n\n.slideout-menu {\n position: fixed;\n top: 0;\n right: -250px;\n width: 250px;\n height: 100%;\n background: #333;\n z-index: 100;\n margin-top: 100px;\n color: white;\n padding: 10px;\n}\n.slideout-menu h3 {\n position: relative;\n padding: 5px 5px;\n color: #fff;\n font-size: 1.2em;\n font-weight: 400;\n border-bottom: 4px solid #222;\n}\n.slideout-menu .slideout-menu-toggle {\n position: absolute;\n top: 12px;\n right: 10px;\n display: inline-block;\n padding: 6px 9px 5px;\n font-family: Arial, sans-serif;\n font-weight: bold;\n line-height: 1;\n background: #222;\n color: #999;\n text-decoration: none;\n vertical-align: top;\n}\n.slideout-menu .slideout-menu-toggle:hover {\n color: #fff;\n}\n.slideout-menu ul {\n list-style: none;\n font-weight: 300;\n border-top: 1px solid #151515;\n border-bottom: 1px solid #454545;\n}\n.slideout-menu ul li {\n border-top: 1px solid #454545;\n border-bottom: 1px solid #151515;\n}\n.slideout-menu ul li a {\n position: relative;\n display: block;\n padding: 10px;\n color: #999;\n text-decoration: none;\n}\n.slideout-menu ul li a:hover {\n background: #000;\n color: #fff;\n}\n.slideout-menu ul li a i {\n position: absolute;\n top: 15px;\n right: 10px;\n opacity: .5;\n}\n\n.btn-box-tool-lg {\n font-size: 16px;\n color: orange;\n}\n\n\n\n.bs-wizard {margin-top: 20px;}\n\n/*Form Wizard*/\n.bs-wizard {border-bottom: solid 1px #e0e0e0; padding: 0 0 10px 0;}\n.bs-wizard > .bs-wizard-step {padding: 0; position: relative;}\n.bs-wizard > .bs-wizard-step + .bs-wizard-step {}\n.bs-wizard > .bs-wizard-step .bs-wizard-stepnum {color: #595959; font-size: 16px; margin-bottom: 5px;}\n.bs-wizard > .bs-wizard-step .bs-wizard-info {color: #999; font-size: 14px;}\n.bs-wizard > .bs-wizard-step > .bs-wizard-dot {position: absolute; width: 30px; height: 30px; display: block; background: #fbe8aa; top: 45px; left: 50%; margin-top: -15px; margin-left: -15px; border-radius: 50%;}\n.bs-wizard > .bs-wizard-step > .bs-wizard-dot:after {content: ' '; width: 14px; height: 14px; background: #fbbd19; border-radius: 50px; position: absolute; top: 8px; left: 8px; }\n.bs-wizard > .bs-wizard-step > .progress {position: relative; border-radius: 0px; height: 8px; box-shadow: none; margin: 20px 0;}\n.bs-wizard > .bs-wizard-step > .progress > .progress-bar {width:0px; box-shadow: none; background: #fbe8aa;}\n.bs-wizard > .bs-wizard-step.complete > .progress > .progress-bar {width:100%;}\n.bs-wizard > .bs-wizard-step.active > .progress > .progress-bar {width:50%;}\n.bs-wizard > .bs-wizard-step:first-child.active > .progress > .progress-bar {width:0%;}\n.bs-wizard > .bs-wizard-step:last-child.active > .progress > .progress-bar {width: 100%;}\n.bs-wizard > .bs-wizard-step.disabled > .bs-wizard-dot {background-color: #f5f5f5;}\n.bs-wizard > .bs-wizard-step.disabled > .bs-wizard-dot:after {opacity: 0;}\n.bs-wizard > .bs-wizard-step:first-child > .progress {left: 50%; width: 50%;}\n.bs-wizard > .bs-wizard-step:last-child > .progress {width: 50%;}\n.bs-wizard > .bs-wizard-step.disabled a.bs-wizard-dot{ pointer-events: none; }\n\n/**\nPrevent step titles from wrapping to a second line at intermediate\nwidths (QA reported ~1265px). The .bs-wizard-dot is absolutely\npositioned at top:45px per step, so any step whose stepnum grows\ntaller than one line pushes its progress bar down while its neighbours\nstay high — the connecting line looks broken. Nowrap + ellipsis keeps\nevery stepnum a consistent single-line height so the line stays\nlevel and threads through the dot centers as designed.\n */\n.bs-wizard > .bs-wizard-step .bs-wizard-stepnum {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n/*END Form Wizard*/\n\n.left-navblock {\n display: inline-block;\n float: left;\n text-align: left;\n color: white;\n padding: 0px;\n /* adjust based on your layout */\n\n}\n\n.main-header\n.navbar\n.dropdown-menu li a {\n color: #333;\n}\n\na.logo.no-hover a:hover {\n background-color: transparent;\n}\n\n\ninput:required, select:required {\n border-right: 5px solid orange;\n}\nselect:required + .select2-container .select2-selection, select:required + .select2-container .select2-selection .select2-selection--multiple {\n border-right: 5px solid orange !important;\n}\n\nbody {\n font-family: -apple-system, BlinkMacSystemFont,\n \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Cantarell\",\n \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\n sans-serif;\n font-size: 13px;\n}\n\n.sidebar-menu {\n font-size: 14px;\n white-space: normal;\n}\n\n.modal-warning .modal-help {\n color: #fff8af;\n}\n\n.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading {\n z-index: 0 !important;\n}\n\n// Clip the absolutely-positioned fixed-column overlays so they cannot\n// bleed past the container's bottom edge into the pagination area.\n.bootstrap-table .fixed-table-container {\n overflow: hidden;\n}\n\n@media print {\n\n @page {\n size: A4;\n margin: 0mm;\n }\n\n .tab-content > .tab-pane {\n display: block !important;\n opacity: 1 !important;\n visibility: visible !important;\n }\n\n .img-responsive {\n width: 200px;\n }\n\n html, body {\n width: 1024px;\n }\n\n body {\n margin: 0 auto;\n line-height: 1em;\n word-spacing:1px;\n letter-spacing:0.2px;\n font: 15px \"Times New Roman\", Times, serif;\n width: 100%;\n float: none;\n }\n\n /* avoid page-breaks inside a listingContainer*/\n .listingContainer {\n page-break-inside: avoid;\n }\n\n h1 {\n font: 28px \"Times New Roman\", Times, serif;\n }\n\n h2 {\n font: 24px \"Times New Roman\", Times, serif;\n }\n\n h3 {\n font: 20px \"Times New Roman\", Times, serif;\n }\n\n /* Improve colour contrast of links */\n a:link, a:visited {\n color: #781351\n }\n\n /* URL */\n a:link, a:visited {\n background: transparent;\n color:#333;\n text-decoration:none;\n }\n\n a[href]:after {\n content: \"\" !important;\n }\n\n a[href^=\"http://\"] {\n color:#000;\n }\n\n #header {\n height:75px;\n font-size: 24pt;\n color:black\n }\n\n div.row-new-striped {\n margin: 0px;\n padding: 0px;\n }\n\n .pagination-detail, .fixed-table-toolbar {\n visibility: hidden;\n }\n .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 .col-sm-pull-3 .col-sm-push-9 {\n float: left;\n }\n\n .col-sm-12 {\n width: 100%;\n }\n .col-sm-11 {\n width: 91.66666666666666%;\n }\n .col-sm-10 {\n width: 83.33333333333334%;\n }\n .col-sm-9 {\n width: 75%;\n }\n .col-sm-8 {\n width: 66.66666666666666%;\n }\n .col-sm-7 {\n width: 58.333333333333336%;\n }\n .col-sm-6 {\n width: 50%;\n }\n .col-sm-5 {\n width: 41.66666666666667%;\n }\n .col-sm-4 {\n width: 33.33333333333333%;\n }\n .col-sm-3 {\n width: 25%;\n }\n .col-sm-2 {\n width: 16.666666666666664%;\n }\n .col-sm-1 {\n width: 8.333333333333332%;\n }\n\n}\n\n\n.select2-selection__choice__remove {\n color: white !important;\n}\n\n.select2-selection--multiple {\n overflow-y: auto;\n}\n\n.select2-selection__choice {\n border-radius: 0px !important;\n}\n\n.select2-search select2-search--inline {\n height: 35px !important;\n float: left;\n margin: 0;\n}\n\n\n\n.select2-results__option {\n padding: 5px;\n user-select: none;\n -webkit-user-select: none;\n margin: 0px;\n}\n\nimg.navbar-brand-img, .navbar-brand>img {\n float: left;\n padding: 5px 5px 5px 0;\n max-height: 50px;\n}\n\n.asset-qr-img img {\n image-rendering: pixelated;\n}\n\n.input-daterange, .input-daterange input:first-child, .input-daterange input:last-child {\n border-radius: 0px !important;\n}\n\n.btn-checkin, .btn-checkout {\n min-width:90px;\n}\n\n\n[hidden] {\n display: none !important;\n}\n\n#toolbar {\n margin-top: 10px;\n}\n\n#uploadPreview {\n border-color: grey;\n border-width: 1px;\n border-style: solid\n}\n\n.icon-med {\n font-size: 14px;\n color: #889195;\n}\n\n#login-logo {\n padding-top: 5px;\n padding-bottom: 5px;\n padding-right: 15px;\n max-width: 200px\n}\n\n// accessibility skip link\na.skip-main {\n left:-999px;\n position:absolute;\n top:auto;\n width:1px;\n height:1px;\n overflow:hidden;\n z-index:-999;\n}\na.skip-main:focus, a.skip-main:active {\n color: #fff;\n background-color:#000;\n left: auto;\n top: auto;\n width: 30%;\n height: auto;\n overflow:auto;\n margin: 10px 35%;\n padding:5px;\n border-radius: 15px;\n border:4px solid yellow;\n text-align:center;\n font-size:1.2em;\n z-index:999;\n}\n\nh2 {\n font-size: 22px;\n}\n\nh2.task_menu {\n font-size: 14px;\n}\n\nh2 small {\n font-size: 85%;\n}\n\nh3 {\n font-size: 20px;\n}\n\nh4 {\n font-size: 16px;\n}\n\n\n.row-striped {\n vertical-align: top;\n line-height: 2.6;\n padding: 0px;\n margin-left: 20px;\n box-sizing: border-box;\n //border-left: 1px solid #dddddd;\n //border-right: 1px solid #dddddd;\n display: table;\n}\n\n.row-striped .row:nth-of-type(odd) div {\n background-color: #f9f9f9;\n border-top: 1px solid #dddddd;\n display: table-cell;\n word-wrap: break-word;\n}\n\n.row-striped .row:nth-of-type(even) div {\n background: #FFFFFF;\n border-top: 1px solid #dddddd;\n display: table-cell;\n word-wrap: break-word;\n}\n\n\n.row-new-striped {\n vertical-align: top;\n padding: 3px;\n display: table;\n width: 100%;\n word-wrap: break-word;\n table-layout:fixed;\n}\n\n/**\n* NEW STRIPING\n* This section is for the new row striping for nicer \n* display for non-table data as of v6\n**/\n.row-new-striped > .row:nth-of-type(even) {\n line-height: 1.9;\n display: table-row;\n}\n\n.row-new-striped > .row:nth-of-type(odd) {\n display: table-row;\n padding: 2px;\n}\n\n.row-new-striped div {\n display: table-cell;\n padding: 6px;\n}\n\n.row-new-striped div {\n display: table-cell;\n padding: 6px;\n}\n\n\n.row-new-striped div[class^=\"col\"]:first-child {\n font-weight: bold;\n}\n\n\n\n/**\n* This just adds a little extra padding on mobile\n**/\n@media only screen and (max-width: 520px) {\n h1.pagetitle {\n padding-top: 15px;\n padding-bottom: 15px;\n }\n\n // .firstnav { padding-top: 120px !important } used to live here as\n // another static compensation for the wrapped-header-covers-first-item\n // bug at narrow widths. Superseded by the dynamic\n // .main-sidebar padding-top: var(--main-header-height) rule; leaving\n // it would double-count on top of the runtime-measured header height.\n\n .product {\n width: 400px;\n }\n\n .product img {\n min-width: 400px;\n }\n}\n\n.card-view-title {\n min-width: 40% !important;\n line-height: 3.0!important;\n padding-right: 20px;\n}\n\n.card-view {\n display: table-row;\n flex-direction: column;\n}\n\n// ---------------\n\n/**\n\n COLUMN SELECTOR ICONS\n -----------------------------\n This is kind of weird, but it is necessary to prevent the column-selector code from barfing, since\n any HTML used in the UserPresenter \"title\" attribute breaks the column selector HTML.\n\n Instead, we use CSS to add the icon into the table header, which leaves the column selector\n \"title\" text as-is and hides the icon.\n\n See https://github.com/grokability/snipe-it/issues/7989\n */\nthead th.css-accessory > .th-inner,\nthead th.css-accessory-alt > .th-inner,\nthead th.css-barcode > .th-inner,\nthead th.css-component > .th-inner,\nthead th.css-consumable > .th-inner,\nthead th.css-envelope > .th-inner,\nthead th.css-house-flag > .th-inner,\nthead th.css-house-laptop > .th-inner,\nthead th.css-house-user > .th-inner,\nthead th.css-license > .th-inner,\nthead th.css-location > .th-inner,\nthead th.css-maintenances > .th-inner,\nthead th.css-users > .th-inner,\nthead th.css-currency > .th-inner,\nthead th.css-child-locations > .th-inner,\nthead th.css-history > .th-inner\n{\n font-size: 0px;\n line-height: 0.75 !important;\n text-align: left;\n text-rendering: auto;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n\nthead th.css-location > .th-inner::before,\nthead th.css-accessory > .th-inner::before,\nthead th.css-accessory-alt > .th-inner::before,\nthead th.css-barcode > .th-inner::before,\nthead th.css-component > .th-inner::before,\nthead th.css-consumable > .th-inner::before,\nthead th.css-envelope > .th-inner::before,\nthead th.css-house-flag > .th-inner::before,\nthead th.css-house-laptop > .th-inner::before,\nthead th.css-house-user > .th-inner::before,\nthead th.css-license > .th-inner::before,\nthead th.css-location > .th-inner::before,\nthead th.css-maintenances > .th-inner::before,\nthead th.css-users > .th-inner::before,\nthead th.css-currency > .th-inner::before,\nthead th.css-child-locations > .th-inner::before,\nthead th.css-history > .th-inner::before\n{\n display: inline-block;\n font-size: 20px;\n font-family: \"Font Awesome 5 Free\";\n font-weight: 900;\n}\n\n/**\nBEGIN ICON TABLE HEADERS\nSet the font-weight css property as 900 (For Solid), 400 (Regular or Brands), 300 (Light for pro icons).\n**/\nthead th.css-barcode > .th-inner::before\n{\n content: \"\\f02a\"; font-family: \"Font Awesome 5 Free\"; font-weight: 900;\n}\n\nthead th.css-license > .th-inner::before\n{\n content: \"\\f0c7\"; font-family: \"Font Awesome 5 Free\"; font-weight: 400;\n}\n\nthead th.css-consumable > .th-inner::before\n{\n content: \"\\f043\"; font-family: \"Font Awesome 5 Free\"; font-weight: 900;\n}\n\nthead th.css-envelope > .th-inner::before\n{\n content: \"\\f0e0\"; font-family: \"Font Awesome 5 Free\"; font-weight: 400;\n}\n\nthead th.css-accessory > .th-inner::before\n{\n content: \"\\f11c\"; font-family: \"Font Awesome 5 Free\"; font-weight: 400;\n}\n\nthead th.css-users > .th-inner::before {\n content: \"\\f0c0\"; font-family: \"Font Awesome 5 Free\"; font-size: 15px;\n}\n\nthead th.css-location > .th-inner::before {\n content: \"\\f3c5\"; font-family: \"Font Awesome 5 Free\"; font-size: 19px; margin-bottom: 0px;\n}\n\n// fa-screwdriver-wrench — matches the icon used by the maintenance tab and\n// the user-well maintenance-cost row, so the users-index column header\n// stays visually consistent with the rest of the maintenance surface.\nthead th.css-maintenances > .th-inner::before {\n content: \"\\f7d9\"; font-family: \"Font Awesome 5 Free\"; font-size: 18px; margin-bottom: 0px;\n}\n\nthead th.css-component > .th-inner::before\n{\n content: \"\\f0a0\"; font-family: \"Font Awesome 5 Free\"; font-weight: 500;\n}\n\nthead th.css-padlock > .th-inner::before\n{\n content: \"\\f023\"; font-family: \"Font Awesome 5 Free\";\n font-weight: 800;\n padding-right: 3px;\n}\n\nthead th.css-house-user > .th-inner::before {\n content: \"\\e1b0\";\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\nthead th.css-house-flag > .th-inner::before {\n content: \"\\e50d\";\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\nthead th.css-house-laptop > .th-inner::before {\n content: \"\\e066\";\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\nthead th.css-accessory-alt > .th-inner::before {\n content: \"\\f11c\";\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\n\nthead th.css-child-locations > .th-inner::before {\n content: \"\\f64f\"; // change this to f51e for coins\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\n\nthead th.css-currency > .th-inner::before {\n content: \"\\24\"; // change this to f51e for coins\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\n\nthead th.css-history > .th-inner::before {\n content: \"\\f1da\"; // change this to f51e for coins\n font-family: \"Font Awesome 5 Free\";\n font-size: 19px;\n margin-bottom: 0px;\n}\n\n\n.small-box .inner {\n padding-left: 15px;\n padding-right: 15px;\n padding-top: 15px;\n color: #fff;\n}\n\n\n.small-box > a:link, .small-box > a:visited, .small-box > a:hover {\n color: #fff;\n}\n\n.select2-container--default .select2-selection--single, .select2-selection .select2-selection--single {\n border: 1px solid #d2d6de;\n border-radius: 0;\n padding: 6px 12px;\n height: 34px;\n}\n\n.form-group.has-error label, .form-group.has-error .help-block {\n color: #a94442;\n}\n\n.select2-container--default .select2-selection--multiple {\n border-radius: 0px;\n}\n\n@media screen and (max-width: 511px){\n .tab-content .tab-pane .alert-block {\n margin-top: 120px\n }\n}\n@media screen and (max-width: 912px) and (min-width: 512px){\n .navbar-custom-menu > .navbar-nav > li.dropdown.user.user-menu {\n float:right;\n }\n .navbar-custom-menu > .navbar-nav > li > .dropdown-menu {\n margin-right:-39px;\n }\n}\n\n// Legacy .sidebar-menu { margin-top: Npx } rules at 912-1268px,\n// 512-912px, and <=511px used to live here as hardcoded compensation\n// for the \"header wraps at intermediate widths and covers the first\n// sidebar item\" bug (#5085, #11868, #19482). Same story for the\n// .firstnav { padding-top: 120px !important } that used to be inside\n// the max-width: 520px block below. All three were double-counted on\n// top of the dynamic .main-sidebar padding-top: var(--main-header-height)\n// rule further down that measures the actual header height at runtime,\n// producing 200px+ visual gaps above Dashboard at those breakpoints.\n// The dynamic measurement covers all these cases correctly, so the\n// static compensation is deleted.\n@media screen and (max-width: 992px){\n .info-stack-container {\n flex-direction: column;\n }\n .col-md-3.col-xs-12.col-sm-push-9.info-stack{\n left:auto;\n order:1;\n }\n .col-md-9.col-xs-12.col-sm-pull-3.info-stack{\n right:auto;\n order:2;\n }\n .info-stack-container > .col-md-9.col-xs-12.col-sm-pull-3.info-stack > .row-new-striped > .row > .col-sm-2{\n width:auto;\n float:none;\n }\n}\n@media screen and (max-width: 992px){\n .row-new-striped div{\n width:100%;\n }\n}\n\n@media screen and (max-width: 1318px) and (min-width: 1200px){\n .admin.box{\n height:170px;\n }\n}\n@media screen and (max-width: 1494px) and (min-width: 1200px){\n .dashboard.small-box{\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: 188px;\n display: block;\n overflow: hidden;\n }\n}\n\n/** Form-stuff overrides for checkboxes and stuff **/\n\nlabel.form-control {\n display: grid;\n grid-template-columns: 1.8em auto;\n gap: 0.5em;\n border: 0px;\n padding-left: 0px;\n background-color: inherit;\n color: inherit;\n font-size: inherit;\n font-weight: inherit;\n}\n\nlabel.form-control--disabled {\n color: #959495;\n cursor: not-allowed;\n}\n\n/** Bootstrap's normalize.less sets `html input[disabled] { cursor: default }`\n at load-order line 139, and its own `.form-control[disabled] { cursor: not-allowed }`\n rule (line 2705) has higher specificity so it should win — but on some browser +\n input-group combinations the resolved cursor still ends up as `text` because the\n input-group parent's implicit text-cursor bleeds through. Explicit element-scoped\n override to lock in the \"no-entry\" cursor on any disabled form control. **/\ninput.form-control[disabled],\nselect.form-control[disabled],\ntextarea.form-control[disabled] {\n cursor: not-allowed;\n}\n\n/** Anti-autofill masking for the readonly-plus-onfocus-strip trick used on\n sensitive form fields (user create/edit username, password, email, etc.).\n The field ships with `readonly` so password managers won't prefill or\n overwrite it, then strips readonly on focus so the operator can type.\n Bootstrap's `.form-control[readonly]` styles that field with a gray\n disabled-looking background, which confuses the operator into thinking\n the field is uneditable. Override to make it visually indistinguishable\n from a regular editable input.\n Scoped to `.js-antifill-readonly` so legitimately-readonly fields\n (SAML SP entity ID, ACS/SLS URLs, generated cert, metadata URL, etc.)\n keep the gray-out styling from the readonly rule further down in this\n file. Adding `readonly` alone should look readonly; opt in to the\n autofill-masking override by adding the class explicitly.\n Deliberately does NOT match `[disabled]` — actually-disabled fields\n (demo mode locks, permission gates) must keep their grayed appearance\n and not-allowed cursor. **/\ninput.js-antifill-readonly[readonly],\ntextarea.js-antifill-readonly[readonly],\n.form-control.js-antifill-readonly[readonly] {\n cursor: text !important;\n background-color: var(--table-stripe-bg) !important;\n color: var(--color-fg) !important;\n}\n\n/** Inline \"this field is locked because the app is in demo mode\" callout.\n Rendered by the <x-demo-lock> anonymous component in resources/views/blade/demo-lock.blade.php.\n Kept as a small inline-block box so it hugs its text width regardless\n of the column it lands in (input rows use col-md-7, activated row\n uses col-md-9, so a block-level notice would stretch inconsistently). **/\n.demo-lock-notice {\n display: inline-block;\n background-color: #fcf8e3;\n border: 1px solid #faebcc;\n color: #8a6d3b;\n padding: 6px 10px;\n margin-top: 6px;\n border-radius: 3px;\n font-size: 0.9em;\n}\n\n\n/** --------------------------------------- **/\n/** Start checkbox styles to replace iCheck **/\n/** --------------------------------------- **/\ninput[type=\"checkbox\"] {\n /* Add if not using autoprefixer */\n -webkit-appearance: none;\n appearance: none;\n /* For iOS < 15 to remove gradient background */\n background-color: #fff;\n /* Not removed via appearance */\n margin: 0;\n font: inherit;\n color: #959495;\n width: 1.8em;\n height: 1.8em;\n border: 0.05em solid;\n border-radius: 0em;\n transform: translateY(-0.075em);\n display: grid;\n place-content: center;\n /*Windows High Contrast Mode*/\n}\n\n/** This sets the display of a checkbox, and what the \"fill\" checkmark should look like */\n\ninput[type=\"checkbox\"]::before {\n\n /** If you want to use the non-checkbox, filled square, use this instead **/\n content: \"\";\n width: 1em;\n height: 1em;\n transform: scale(0);\n transition: 120ms transform ease-in-out;\n box-shadow: inset 1em 1em rgb(211, 211, 211);\n content: \"\";\n width: 1em;\n height: 1em;\n clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);\n transform: scale(0);\n transform-origin: bottom left;\n transition: 120ms transform ease-in-out;\n box-shadow: inset 1em 1em #428bca;\n /* Windows High Contrast Mode */\n background-color: CanvasText;\n}\n\n/** This sets the size of the scale up for the shape we defined above **/\ninput[type=\"checkbox\"]:checked::before {\n transform: scale(1);\n}\n\n/** This sets the scale and color of the DISABLED but CHECKED checkbox */\ninput[type=checkbox]:disabled::before, input[type=radio]:disabled::before {\n content: \"\";\n width: 1em;\n height: 1em;\n transform: scale(1);\n box-shadow: inset 1em 1em rgb(211, 211, 211);\n}\n\n/* This sets the scale and style of a DISABLED checkbox that is NOT checked */\ninput[type=checkbox]:disabled:not(:checked)::before, input[type=radio]:disabled:not(:checked)::before {\n content: \"\";\n transform: scale(0);\n cursor: not-allowed;\n pointer-events:none;\n}\n\n/** this is the color of the checkbox and content on a disabled, checked box **/\ninput[type=checkbox]:disabled, input[type=radio]:disabled {\n --form-control-color: rgb(211, 211, 211);\n color: #959495;\n cursor: not-allowed;\n pointer-events:none;\n}\n\n\n/** Radio styles to replace iCheck **/\n\ninput[type=\"radio\"] {\n appearance: none;\n background-color: #fff;\n margin: 0;\n font: inherit;\n color: #959495;\n width: 1.8em;\n height: 1.8em;\n border: 0.05em solid;\n border-radius: 50%;\n transform: translateY(-0.075em);\n display: grid;\n place-content: center;\n}\n\ninput[type=\"radio\"]::before {\n content: \"\";\n width: 1em;\n height: 1em;\n border-radius: 50%;\n transform: scale(0);\n transition: 120ms transform ease-in-out;\n}\n\ninput[type=\"radio\"]:checked::before {\n transform: scale(1);\n}\n\n\n/**\n* This addresses the column selector in bootstrap-table. Without these two lines, the\n* checkbox and the <span></span> with the label text that BS tables generates will\n* end up on two different lines and it looks assy.\n */\n.dropdown-item-marker input[type=checkbox] {\n font-size: 10px;\n}\n\n.bootstrap-table .fixed-table-toolbar li.dropdown-item-marker label {\n font-weight: normal;\n display: grid;\n grid-template-columns: .1em auto;\n gap: 1.5em;\n}\n\n.container.row-striped .col-md-6 {\n overflow-wrap:anywhere;\n}\n\n.nav-tabs-custom > .nav-tabs > li {\n z-index: 1;\n}\n\n.select2-container .select2-search--inline .select2-search__field{\n padding-left:15px;\n}\n\n.nav-tabs-custom > .nav-tabs > li.active {\n font-weight: bold;\n}\n\n/** --------------------------------------- **/\n/** End checkbox styles to replace iCheck **/\n/** --------------------------------------- **/\n\n/**\n/** Separator styles with text in the middle. Currently only used by the login page but\n/** could be used elsewhere.\n */\n\n.separator {\n display: flex;\n align-items: center;\n text-align: center;\n padding-top: 20px;\n color: #959495;\n}\n\n.separator::before,\n.separator::after {\n content: '';\n flex: 1;\n border-bottom: 1px solid #959495;\n}\n\n.separator:not(:empty)::before {\n margin-right: .25em;\n}\n\n.separator:not(:empty)::after {\n margin-left: .25em;\n}\n.datepicker.dropdown-menu {\n z-index: 1030 !important;\n}\n\n.sidebar-menu > li .badge {\n margin-top: 0px;\n filter: brightness(70%);\n font-size: 70%;\n}\n\n/** this is needed to override ekko-lightboxes card view styles **/\n.bootstrap-table .fixed-table-container .table tbody tr .card-view {\n display: table-row !important;\n}\n\ntd.text-right.text-padding-number-cell {\n padding-right: 30px !important;\n white-space: nowrap;\n}\n\nth.text-right.text-padding-number-footer-cell {\n padding-right: 20px !important;\n white-space: nowrap;\n}\n\ncode.single-line {\n white-space: pre-wrap;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n overflow: hidden;\n max-width: 400px;\n}\n\np.monospace, span.monospace {\n font-family: monospace, monospace;\n}\n\nlegend.highlight {\n background: repeating-linear-gradient(\n 45deg,\n #222d32,\n #222d32 10px,\n #444 10px,\n #444 11px\n );\n\n color: #fff;\n font-size: 18px;\n padding: 6px 6px 6px 10px;\n}\n\nlegend.highlight a {\n color: #fff;\n cursor: pointer;\n}\n\nfieldset.bottom-padded {\n padding-bottom: 20px;\n}\n\ncaption.tableCaption {\n font-size: 18px;\n padding-left: 8px;\n}\n\n\n.markdown-field-content {\n h1 { font-size: 22px; font-weight: 700; margin: 6px 0 4px; }\n h2 { font-size: 20px; font-weight: 700; margin: 6px 0 4px; }\n h3 { font-size: 18px; font-weight: 700; margin: 6px 0 4px; }\n h4 { font-size: 16px; font-weight: 700; margin: 4px 0 4px; }\n h5, h6 { font-size: 14px; font-weight: 700; margin: 4px 0 4px; }\n p { margin: 0 0 4px; }\n p:last-child { margin-bottom: 0; }\n ul, ol { margin: 0 0 4px; padding-left: 20px; }\n > *:first-child { margin-top: 0; }\n}\n\n// via https://github.com/grokability/snipe-it/issues/11754\n.sidebar-toggle.btn {\n border-radius: 3px;\n box-shadow: none;\n border-top: 0px solid transparent;\n border-bottom: 0px solid transparent;\n padding-left: 15px;\n padding-right: 15px;\n padding-top: 12px;\n padding-bottom: 12px;\n margin-left: -47px;\n margin-top: 2px;\n}\n\n\n.visually-hidden {\n width: 1px;\n height: 1px;\n margin: -1px;\n overflow: hidden;\n clip: rect(0,0,0,0);\n white-space: preserve;\n display: inline-block;\n}\n\ninput[name=\"columnsSearch\"] {\n width: 120px;\n}\n\n.callout.callout-legend {\n padding: 15px 30px 15px 15px;\n font-size: 100%;\n border-radius: 0px;\n}\n\n.callout.callout-legend h4 {\n font-size: 16px;\n font-weight: bold;\n margin-top: 5px;\n margin-bottom: 0px;\n}\n\n.callout.callout-legend a {\n text-decoration: none;\n cursor: pointer;\n}\n\np.callout-subtext {\n margin-top: 5px;\n}\n\n/**\nThis just hides the padding on the right side of the mark tag for a less weird visual experience\n */\nmark {\n padding-right: 0px;\n}\n\n/**\nRadio toggle styles for permission settings and check/uncheck all\n */\n.radio-toggle-wrapper {\n display: flex;\n padding: 2px;\n background-color: #e9e9e9;\n margin-bottom: 3px;\n border-radius: 4px;\n border: 1px #d6d6d6 solid;\n}\n\n.radio-slider-inputs {\n flex-grow: 1;\n}\n\n.radio-slider-inputs input[type=radio] {\n display: none;\n}\n\n.radio-slider-inputs label {\n display: block;\n margin-bottom: 0px;\n padding: 6px 8px;\n color: #fff;\n font-weight: bold;\n text-align: center;\n transition : all .4s 0s ease;\n cursor: pointer;\n}\n\n.radio-slider-inputs label {\n color: #9a9999;\n border-radius: 4px;\n border: 1px transparent solid;\n}\n\n.radio-slider-inputs .allow:checked + label {\n background-color: green;\n color: white;\n border-radius: 4px;\n border: 1px transparent solid;\n}\n\n.radio-slider-inputs .inherit:checked + label {\n background-color: rgba(255, 204, 51, 0.11);\n color: #9a9999;\n border-radius: 4px;\n border: 1px white solid;\n}\n\n.radio-slider-inputs .deny:checked + label {\n background-color: #a94442;\n color: white;\n border-radius: 4px;\n border: 1px transparent solid;\n}\n\n.remember-toggle {\n cursor: pointer;\n}\n\n.js-copy-link {\n float: left;\n color: grey;\n}\n\n.deleted {\n text-decoration: line-through;\n}\n\n\n//css to add hamburger and create dropdown on small screens\n@nav-link-hover-bg: #eeeeee;\n@border-radius-base: 5px;\n@screen-xs-max: 767px;\n\n.nav-tabs.nav-tabs-dropdown,\n.nav-tabs-dropdown {\n @media (max-width: @screen-xs-max) {\n overflow: hidden;\n position: relative;\n\n &::after {\n content: \"☰\";\n position: absolute;\n font-size: 35px;\n top: 0;\n right: 15px;\n z-index: 2;\n pointer-events: none;\n }\n\n &.open {\n a {\n position: relative;\n display: block;\n }\n\n > li.active > a {\n background-color: @nav-link-hover-bg;\n\n }\n }\n\n li.snipetab {\n margin-right: 0 !important;\n }\n\n li {\n display: block;\n padding: 0;\n vertical-align: bottom;\n white-space: nowrap !important;\n }\n\n > li > a {\n position: absolute;\n top: 0;\n left: 0;\n margin: 0;\n width: 100%;\n height: 100%;\n display: inline-block;\n border-color: transparent;\n\n &:focus,\n &:hover,\n &:active {\n border-color: transparent;\n border-right: 0 !important;\n }\n }\n\n > li.active > a {\n display: block;\n border-color: transparent !important;\n position: relative;\n z-index: 1;\n\n &:focus,\n &:hover,\n &:active {\n border-color: transparent !important;\n }\n\n }\n }\n\n// Advanced-search \"Clear all\" pill. AdminLTE's default anchor styles pull the\n// color toward the theme's link tint on :hover / :focus, which reads black on\n// the red pill background. Pin white in every interactive state so the pill\n// stays legible.\n.snipe-advanced-search-tags-clear-all,\n.snipe-advanced-search-tags-clear-all:link,\n.snipe-advanced-search-tags-clear-all:visited,\n.snipe-advanced-search-tags-clear-all:hover,\n.snipe-advanced-search-tags-clear-all:focus,\n.snipe-advanced-search-tags-clear-all:active {\n color: #fff !important;\n text-decoration: none;\n}\n}\n\n// Spin the help-icon (life-ring) on hover/focus of the info tooltip anchor.\n// Uses Font Awesome's built-in fa-spin animation. Gated by the\n// prefers-reduced-motion rule below.\n.tooltip-spin-hover:hover i,\n.tooltip-spin-hover:focus i {\n animation: fa-spin 2s infinite linear;\n}\n\n// Bootstrap 3 tops out at .modal-lg (900px). The wizard-style modals\n// (e.g. the CSV importer) need more horizontal room for their mapping\n// grid + preview table, so add a .modal-xl above modal-lg. Follows the\n// same @media breakpoint BS3 uses for .modal-lg (>= 992px) and caps at\n// 1400px so it doesn't stretch obnoxiously on ultra-wide monitors.\n@media (min-width: 992px) {\n .modal-xl {\n width: 90%;\n max-width: 1400px;\n }\n}\n\n// Long wizard content (dozens of mapping rows) can push the modal past\n// the viewport. Bootstrap 3 doesn't scroll the modal-body by default, so\n// the footer buttons (Back / Next / Preview / Process) end up below the\n// fold with no way to reach them. Cap the modal-body height and let it\n// scroll internally instead. Scoped to .modal-xl so smaller confirm-\n// action modals aren't affected. 200px leaves room for header (~60),\n// footer (~60), and the modal's own top/bottom margins. overflow-x is\n// hidden so a stray col-* with negative row margins doesn't produce a\n// horizontal scrollbar on the type-selection and mapping steps; the\n// preview step's wide sample table has its own .table-responsive\n// wrapper for horizontal scrolling.\n.modal-xl .modal-body {\n max-height: calc(100vh - 200px);\n overflow-y: auto;\n overflow-x: hidden;\n}\n\n// Bootstrap 3's .form-horizontal .form-group carries -15px left/right\n// margins that cancel a modal-body's default 15px padding, leaving all\n// form content pinned flush to the modal edges. Zero it out inside the\n// wizard modal so labels + inputs stay inset from the modal chrome. The\n// inner .col-* children retain their own 15px padding, so the standard\n// horizontal-form gutter still lands correctly.\n.modal-xl .modal-body.form-horizontal > .form-group,\n.modal-xl .modal-body.form-horizontal > .row > .form-group {\n margin-left: 0;\n margin-right: 0;\n}\n\n// bs-wizard-stepnum ships hardcoded #595959 in bootstrap-less, which is\n// near-invisible against the dark-theme background. Override to the\n// theme's own body text color so \"Choose type\" / \"Map fields\" / \"Preview\"\n// stay readable in dark mode.\n[data-theme=\"dark\"] .bs-wizard > .bs-wizard-step .bs-wizard-stepnum,\n[data-theme=\"dark\"] .bs-wizard > .bs-wizard-step .bs-wizard-info {\n color: #d0d0d0;\n}\n\n// Respect the user's OS-level \"reduce motion\" preference. The Font Awesome\n// spinners (.fa-spin) and Font Awesome Animation pulses (.faa-pulse, .animated)\n// loop indefinitely, which can trigger vestibular symptoms. One-shot animations\n// (like the confetti burst on save) are left alone since they don't loop.\n@media (prefers-reduced-motion: reduce) {\n // Catch-all for any Font Awesome Animation utility (faa-pulse, faa-spin,\n // faa-tada, faa-shake, faa-bounce, faa-burst, faa-flash, faa-float,\n // faa-horizontal, faa-vertical, faa-passing, faa-ring, faa-slide, etc.)\n // regardless of whether the animation is always-on (.animated) or hover-\n // triggered (.animated-hover:hover). Attribute selector keeps this rule\n // safe against future FA-Animation class additions.\n [class*=\"faa-\"].animated,\n [class*=\"faa-\"].animated-hover:hover,\n .tooltip-spin-hover:hover i,\n .tooltip-spin-hover:focus i,\n .fa-spin,\n .fa-pulse {\n animation: none !important;\n }\n}\n\n// ============================================================================\n// Theme mode CSS custom properties.\n//\n// Originally lived as an inline <style> block in layouts/default.blade.php,\n// migrated here so the layout stops carrying ~1200 lines of raw CSS and so\n// layouts/basic.blade.php (login, error pages) can inherit the same theming\n// by loading all.css alone.\n//\n// CSS Colors 5 expressions (hsl(from ...), light-dark(...)) are wrapped in\n// Less's ~\"...\" escape so the compiler emits them verbatim instead of trying\n// to parse `l - 10` as its own variable arithmetic.\n//\n// Per-tenant color overrides (header_color, nav_link_color, link_light_color,\n// link_dark_color) are NOT moved here — they still live in the tiny inline\n// <style> block in default.blade.php and win on cascade order. The defaults\n// baked in below match what the blade fallbacks currently emit when a tenant\n// has not customized their colors.\n// ============================================================================\n\n:root {\n color-scheme: light dark;\n --color-bg: ~\"light-dark(#ecf0f5, #222222)\";\n --btn-theme-hover-text-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l - 10)),hsl(from var(--main-theme-color) h s calc(l - 10)))\";\n --btn-theme-hover: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l - 10)),hsl(from var(--main-theme-color) h s calc(l - 10)))\";\n --btn-theme-text-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 10)),hsl(from var(--main-theme-color) h s calc(l - 10)))\";\n --color-fg: ~\"light-dark(#373636, #ffffff)\";\n --main-footer-bg-color: ~\"light-dark(#ffffff,#3d4144)\";\n --main-footer-text-color: ~\"light-dark(#605e5e, #d2d6de)\";\n --main-footer-top-border-color: ~\"light-dark(#d2d6de,#605e5e)\";\n --main-theme-color: #3c8dbc;\n --nav-hover-text-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\";\n --nav-primary-text-color: #ffffff;\n --search-highlight: #e9d15b;\n --sidenav-hover-color-bg: #4c4b4b;\n --sidenav-text-hover-color: #fff;\n --sidenav-text-nohover-color: #b8c7ce;\n --table-border-row-color: ~\"light-dark(#ecf0f5, #656464)\";\n --table-border-row-top: 1px solid #ecf0f5;\n --table-border-row: 1px solid var(--table-border-row-color);\n --table-stripe-bg-alt: ~\"light-dark(rgba(211, 211, 211, 0.25), #323131)\";\n --table-stripe-bg: ~\"light-dark(#ffffff, #494747)\";\n --text-danger: ~\"light-dark(#a94442, #fa5b48)\";\n --text-help: ~\"light-dark(#777676,#a6a4a4)\";\n --text-info: ~\"light-dark(#31708f,#2baae6)\";\n --text-success: ~\"light-dark(#039516,#4ced61)\";\n --text-warning: ~\"light-dark(#da9113,#f3a51f)\";\n --input-border-color: ~\"light-dark(#d2d6de,#656464)\";\n --default-label-link-bg: var(--color-bg);\n --default-label-link-text: ~\"light-dark(#296282, #5fa4cc)\";\n --default-label-link-border: ~\"1px solid light-dark(#b8c7ce, #494747)\";\n}\n\n[data-theme=\"light\"] {\n color-scheme: light;\n --box-bg: #ffffff;\n --box-header-bottom-border-color: #f4f4f4;\n --box-header-bottom-border: 1px solid var(--box-header-bottom-border-color);\n --box-header-top-border-color: #d2d6de;\n --box-header-top-border: 3px solid var(--box-header-top-border-color);\n --btn-theme-base: ~\"hsl(from var(--main-theme-color) h s calc(l + 5))\";\n --btn-theme-border: ~\"hsl(from var(--btn-theme-base) h s calc(l + 20))\";\n --btn-theme-hover-text-color: var(--nav-primary-text-color);\n --btn-theme-hover: var(--main-theme-hover);\n --callout-bg-color: var(--box-header-bottom-border-color);\n --callout-left-border: var(--box-header-top-border-color);\n --header-color: #000000;\n --input-group-bg: ~\"hsl(from var(--box-bg) h s calc(l - 5))\";\n --input-group-fg: ~\"hsl(from var(--input-group-bg) h s calc(l - 50))\";\n --link-color: #296282;\n --link-hover: ~\"hsl(from var(--link-color) h s calc(l - 10))\";\n --main-theme-hover: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\";\n --tab-bottom-border: 1px solid var(--box-header-top-border-color);\n --text-legend-help: var(--text-help);\n}\n\n[data-theme=\"dark\"] {\n color-scheme: dark;\n --box-bg: #3d4144;\n --box-header-bottom-border-color: #605e5e;\n --box-header-bottom-border: 1px solid var(--box-header-bottom-border-color);\n --box-header-top-border-color: #605e5e;\n --box-header-top-border: 3px solid var(--box-header-top-border-color);\n --btn-theme-base: ~\"hsl(from var(--main-theme-color) h s calc(l + 5))\";\n --btn-theme-border: ~\"hsl(from var(--btn-theme-base) h s calc(l + 20))\";\n --btn-theme-hover-text-color: var(--nav-primary-text-color);\n --btn-theme-hover: var(--main-theme-hover);\n --callout-bg-color: var(--box-header-top-border-color);\n --callout-left-border: #323131;\n --header-color: #ffffff;\n --input-group-bg: ~\"hsl(from var(--box-bg) h s calc(l + 10))\";\n --input-group-fg: ~\"hsl(from var(--input-group-bg) h s calc(l + 50))\";\n --link-color: #5fa4cc;\n --link-hover: ~\"hsl(from var(--link-color) h s calc(l + 15))\";\n --main-theme-hover: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\";\n --tab-bottom-border: 1px solid var(--box-header-top-border-color);\n --text-legend-help: #d6d6d6;\n}\n\n\n// ============================================================================\n// Theme-mode SELECTOR rules (paired with the variable definitions above).\n//\n// All ~1170 lines of \".selector { background-color: var(--foo); }\" style\n// rules that used to live in layouts/default.blade.php's inline <style>\n// block. Every line reads from a CSS custom property defined earlier in\n// this file — no per-tenant Blade interpolation lives here.\n//\n// CSS Colors 5 expressions (hsl(from ...), light-dark(...)) are wrapped in\n// Less's ~\"...\" escape so the compiler emits them verbatim.\n// ============================================================================\n\n.label2_fields,\n.l2fd-main,\n.l2fd-listitem,\n.fixed-table-loading,\n.list-group-item {\n background-color: var(--box-bg) !important;\n color: var(--color-fg) !important;\n}\n\n.list-group-item {\n border: var(--tab-bottom-border);\n}\n\nfooter.main-footer {\n color: var(--main-footer-text-color) !important;\n background-color: var(--main-footer-bg-color) !important;\n border-top: 1px solid var(--main-footer-top-border-color) !important;\n}\n\na,\na:link,\na:visited {\n color: var(--link-color);\n}\n\na:hover,\na:focus {\n color: var(--link-hover) !important;\n}\n\nlabel.form-control {\n color: var(--color-fg) !important;\n}\n\n.footer-links a {\n color: var(--link-color) !important;\n}\n\nh2 small {\n color: var(--color-fg) !important;\n}\n\n.btn-theme {\n background-color: var(--btn-theme-base);\n /*color: var(--btn-theme-hover-text-color) !important;*/\n color: var(--nav-primary-text-color) !important;\n border: ~\"1px solid hsl(from var(--btn-theme-base) h s calc(l - 15))\" !important;\n}\n\n.btn-theme:hover {\n background-color: var(--btn-theme-hover);\n /*color: var(--btn-theme-hover-text-color) !important;*/\n color: var(--nav-primary-text-color) !important;\n border: ~\"1px solid hsl(from var(--btn-theme-base) h s calc(l - 15))\" !important;\n}\n\n.btn-theme.active {\n background-color: var(--btn-theme-hover) !important;\n}\n\n.btn-theme:focus {\n color: var(--nav-primary-text-color) !important;\n}\n\n\n.dropdown-wrapper,\n.js-data-ajax,\n.option,\n.select2 .select2-container .select2-container--default,\n.select2,\n.select2-choice,\n.select2-container,\n.select2-results__option,\n.select2-search input,\n.select2-search--dropdown,\n.select2-search__field,\n.select2-selection .select2-selection--single,\n.select2-selection,\n.select2-selection--single,\n.select2-selection__rendered,\ninput[type=\"date\"],\ninput[type=\"number\"],\ninput[type=\"text\"],\ninput[type=\"url\"],\ninput[type=\"email\"],\ninput[type=\"password\"],\ninput[type=\"tel\"],\noption:active,\noption[active],\noption[selected],\nselect option,\nselect,\ntextarea {\n background-color: var(--table-stripe-bg) !important;\n color: var(--color-fg) !important;\n border-color: var(--input-border-color) !important;\n\n}\n\n.select2-container--default.select2-container--focus .select2-selection--multiple,\n.select2-container--default .select2-search--dropdown .select2-search__field {\n border-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\" !important;\n}\n\n/**\nSafari ignores option[selected] styling on plain <select multiple> until\nthe user interacts with the list, so pre-selected options render with\nthe browser's default light highlight. Force a lighter background on the\nwhole select in dark mode so pre-selected items stay readable.\n */\n[data-theme=\"dark\"] select[multiple],\n[data-theme=\"dark\"] select[multiple] option {\n background-color: #d2d6de !important;\n color: #373636 !important;\n}\n\n/**\nSite-logo preview swatch on Settings > Branding. Uses the tenant header\ncolor as its background so the logo shows against the same color it will\nhave in the top nav. The header-color picker on the branding page writes\n--main-theme-color inline on <html> for live preview, so this rule picks\nup that update automatically.\n */\n.header-preview {\n background-color: var(--main-theme-color);\n}\n\n/**\nMultiselect maybe?\n */\n.select2-results__option[aria-selected=true] {\n background-color: var(--main-theme-color) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n.select2-results__option[aria-selected=false] {\n background-color: var(--table-stripe-bg) !important;\n /*background-color: hsl(from var(--main-theme-color) h s calc(l - 15)) !important;*/\n /*color: var(--nav-primary-text-color) !important;*/\n color: var(--color-fg) !important;\n}\n\n/**\nHighlight the select2 on hover when NOT the selected option\n */\n.select2-results__option--highlighted[aria-selected=false] {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\" !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n/**\nHighlight the select2 on hover when the selected option\n */\n.select2-results__option--highlighted[aria-selected=true],\n.select2-results__option--highlighted[aria-selected=true]:hover,\n.select2-results__option--highlighted[aria-selected=true]:link,\n.select2-results__option--highlighted[aria-selected=true]:focus,\n.select2-results__option--highlighted[aria-selected=true]:visited {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 15))\" !important;\n /*color: var(--color-fg) !important;*/\n color: var(--nav-primary-text-color) !important;\n}\n\n.select2-selection__choice,\n.select2-container--default .select2-selection--multiple .select2-selection__choice {\n background-color: var(--main-theme-color) !important;\n border-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 15))\" !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n.select2-selection__choice__remove {\n color: var(--nav-primary-text-color) !important;\n}\n\n.select2-container--default .select2-selection--multiple .select2-selection__choice {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\" !important;\n color: var(--nav-primary-text-color) !important;\n overflow-y: auto;\n}\n\n/*\neonasdan bootstrap-datetimepicker widget: match the app's theme color\nfor selected/today cells and follow light/dark mode for the popup\nchrome. Ships with Bootstrap's stock #337ab7 which looks off next to\nAdminLTE.\n\n- All toolbar buttons: .bootstrap-datetimepicker-widget li.picker-switch a[data-action]\n- Individual buttons: a[data-action=\"today\"], a[data-action=\"clear\"], a[data-action=\"close\"] - -\n- The <td> cell each button sits in: .bootstrap-datetimepicker-widget li.picker-switch td\n- The icon <span> inside the anchor: .bootstrap-datetimepicker-widget li.picker-switch a[data-action] > span\n*/\n.bootstrap-datetimepicker-widget {\n z-index: 1030 !important;\n background-color: var(--box-bg) !important;\n color: var(--color-fg) !important;\n}\n\n/* Widget border in the theme color so the popup edge visually\n matches other themed boxes in the app. */\n.bootstrap-datetimepicker-widget.dropdown-menu {\n border: 1px solid var(--main-theme-color) !important;\n}\n\n/* The connecting caret between the input and the popup is drawn\n with two triangles: :before is the outer border outline (7px),\n :after is the inner fill (6px, sits inside the :before). Match\n the widget's own theme-color border on the outer triangle, and\n the widget's background on the inner. */\n.bootstrap-datetimepicker-widget.dropdown-menu.bottom:before {\n border-bottom-color: var(--main-theme-color) !important;\n}\n\n.bootstrap-datetimepicker-widget.dropdown-menu.bottom:after {\n border-bottom-color: var(--box-bg) !important;\n}\n\n.bootstrap-datetimepicker-widget.dropdown-menu.top:before {\n border-top-color: var(--main-theme-color) !important;\n}\n\n.bootstrap-datetimepicker-widget.dropdown-menu.top:after {\n border-top-color: var(--box-bg) !important;\n}\n\n/* Side-by-side (date + time) mode ships at 38em, not wide enough\n once the format includes seconds. Bump up to give the time cells\n room. */\n.bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs {\n width: 42em !important;\n}\n\n/* Compact (non-sideBySide) mode. Library default is 19em, which is\n too narrow for the time-picker view — hour/minute/second cells\n are 54px each and the increment/decrement arrow buttons add width\n on top of that, so under ~300px the time view gets clipped. Sizing\n to fit the widest child (the time view) also gives the calendar\n view plenty of room. */\n.bootstrap-datetimepicker-widget.dropdown-menu:not(.timepicker-sbs) {\n min-width: 320px;\n}\n\n.bootstrap-datetimepicker-widget table td.active,\n.bootstrap-datetimepicker-widget table td.active:hover,\n.bootstrap-datetimepicker-widget table td span.active,\n.bootstrap-datetimepicker-widget table td span.active:hover {\n background-color: var(--main-theme-color) !important;\n color: var(--nav-primary-text-color) !important;\n text-shadow: none !important;\n}\n\n.bootstrap-datetimepicker-widget table td.today:before {\n border-bottom-color: var(--main-theme-color) !important;\n}\n\n/* Cell hover: theme color background + white text — same shape as\n \"active\" so contrast is guaranteed in both light and dark mode. */\n.bootstrap-datetimepicker-widget table td:hover,\n.bootstrap-datetimepicker-widget table td span:hover,\n.bootstrap-datetimepicker-widget table thead tr:first-child th:hover {\n background-color: var(--main-theme-color) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n/* Time-picker text (compact mode). Bootstrap's .btn base color is\n #333 which is invisible on the dark box-bg in dark mode; force\n these text elements to inherit the widget's --color-fg instead\n so they read in both themes.\n - .timepicker-hour / -minute / -second : the big clickable digits\n - .separator : the colon between them\n - .timepicker-picker .btn : the up/down arrow buttons\n - .timepicker-picker .btn span : the FA icon inside those\n - .timepicker-hours / -minutes / -seconds .btn : the expanded grid\n of pickable hour/minute/second numbers when you click a digit */\n.bootstrap-datetimepicker-widget .timepicker-hour,\n.bootstrap-datetimepicker-widget .timepicker-minute,\n.bootstrap-datetimepicker-widget .timepicker-second,\n.bootstrap-datetimepicker-widget .separator,\n.bootstrap-datetimepicker-widget .timepicker-picker .btn,\n.bootstrap-datetimepicker-widget .timepicker-picker .btn span,\n.bootstrap-datetimepicker-widget .timepicker-hours td,\n.bootstrap-datetimepicker-widget .timepicker-minutes td,\n.bootstrap-datetimepicker-widget .timepicker-seconds td {\n color: var(--color-fg) !important;\n}\n\n/* The empty <td class=\"separator\"> cells above and below the \":\"\n are pure spacers, but were rendering visible \"lines\" around the\n colon. Force their background to match the popup so they blend\n into the widget in both light and dark mode.\n\n Also kill the ::before / ::after pseudo-elements — the app's own\n .separator class elsewhere in the codebase draws horizontal grey\n border-bottom lines via those pseudos (for section dividers), and\n class-name collides with the library's timepicker separator td. */\n.bootstrap-datetimepicker-widget .separator {\n background-color: var(--box-bg) !important;\n border: none !important;\n box-shadow: none !important;\n}\n\n.bootstrap-datetimepicker-widget .separator::before,\n.bootstrap-datetimepicker-widget .separator::after {\n display: none !important;\n content: none !important;\n border: none !important;\n}\n\n/* Same treatment for the increment/decrement arrow buttons — no\n border/box-shadow/focus outline so the time-picker column doesn't\n get sub-lines between each button. */\n.bootstrap-datetimepicker-widget .timepicker-picker .btn {\n background-color: var(--box-bg) !important;\n border: none !important;\n box-shadow: none !important;\n outline: none !important;\n}\n\n.bootstrap-datetimepicker-widget .timepicker-picker .btn:focus,\n.bootstrap-datetimepicker-widget .timepicker-picker .btn:active {\n outline: none !important;\n box-shadow: none !important;\n}\n\n\n/* Button hover — matches the whole <a> element */\n.bootstrap-datetimepicker-widget li.picker-switch a[data-action]:hover,\n.bootstrap-datetimepicker-widget li.picker-switch td:hover {\n background-color: transparent !important;\n border-radius: 0 !important;\n\n}\n\n\n.input-group-addon {\n background-color: var(--input-group-bg) !important;\n color: var(--input-group-fg) !important;\n border-color: var(--input-border-color) !important;\n}\n\ninput:disabled,\ninput[type=\"checkbox\"]:disabled,\ninput[type=\"radio\"]:disabled,\ninput[readonly],\ntextarea[readonly],\ntextarea:disabled,\n.select2-container--default.select2-container--disabled .select2-selection--single,\n.select2-container--default.select2-container--disabled .select2-selection--multiple,\n.select2-container--default.select2-container--disabled .select2-selection__rendered,\n.select2-results__option[aria-disabled=true],\n.select2-container--default.select2-container--disabled .select2-selection--multiple .select2-search--inline {\n background-color: ~\"light-dark(rgb(234, 232, 232), rgb(117, 116, 117))\" !important;\n cursor: not-allowed !important;\n}\n\n.select2-container--default.select2-container--disabled .select2-search__field::placeholder {\n color: var(--text-help) !important;\n opacity: 1 !important;\n}\n\ninput[type=\"search\"].search-highlight {\n background-color: var(--search-highlight);\n border: ~\"1px solid hsl(from var(--search-highlight) h s calc(l - 20))\" !important;\n}\n\n.content-wrapper {\n background-color: var(--color-bg);\n}\n\n.btn-anchor {\n outline: none !important;\n padding: 0;\n border: 0;\n padding-left: 20px;\n vertical-align: baseline;\n cursor: pointer;\n}\n\nh1,\nh2,\nh3,\nh4,\np,\n.modal-title,\n.modal-header h2 {\n color: var(--color-fg) !important;\n}\n\n.btn-danger,\n.btn-danger:hover,\n.btn-danger:focus,\n.btn-warning,\n.btn-warning:hover,\n.btn-warning:focus,\n.btn-primary,\n.btn-primary:hover,\n.btn-primary:focus,\n.modal-danger,\n.modal-danger h2,\n.modal-warning h2,\n.modal-danger h4,\n.modal-warning h4,\n.box-solid.box-danger > .box-header,\n.box-solid.box-danger > .box-header .box-title,\n.bg-maroon,\n.bg-maroon:hover,\n.bg-maroon:focus,\n.bg-purple,\n.bg-purple:hover,\n.bg-purple:focus {\n color: white !important;\n}\n\n\n.btn-selected,\n.btn-selected a,\n.btn-selected:hover,\n.btn-selected:focus {\n color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 30)), hsl(from var(--main-theme-color) h s calc(l + 30)))\" !important;\n background-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l - 20)), hsl(from var(--main-theme-color) h s calc(l - 20)))\" !important;\n border-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l - 25)), hsl(from var(--main-theme-color) h s calc(l - 25)))\" !important;\n\n}\n\n.btn-default,\n.btn-default:hover {\n color: #3d4144 !important;\n}\n\nbody {\n background-color: var(--color-bg);\n color: var(--color-fg);\n}\n\n\nlabel,\n.icon-med,\n.nav-tabs-custom > .nav-tabs > li > a,\n.nav-tabs-custom > .nav-tabs > li.active > a:link {\n color: var(--color-fg);\n}\n\n/**\nGeneric popover: Bootstrap 3 hardcodes body bg to #fff and text to #333,\nwhich reads as white-on-white in dark mode. Route background, text, and\nborder through the theme variables so both modes render legibly and the\nhelp-popover variant keeps its more specific styling further down.\n */\n.popover {\n background-color: var(--box-bg) !important;\n color: var(--color-fg) !important;\n border-color: var(--box-header-top-border-color) !important;\n}\n\n.popover-title,\n.popover-content {\n background-color: var(--box-bg) !important;\n color: var(--color-fg) !important;\n}\n\n/**\nPopover arrows: Bootstrap 3 defaults the inner arrow to #fff and the\nouter to rgba(0,0,0,.25). In dark mode the outer disappears entirely\n(no contrast against the darker surroundings) and the inner reads as a\nwhite notch. Bind both to theme vars so every position (top / right /\nbottom / left) shows a visible connector between the popover body and\nits trigger in both modes.\n */\n.popover.top .arrow { border-top-color: var(--box-header-top-border-color) !important; }\n.popover.top .arrow:after { border-top-color: var(--box-bg) !important; }\n\n.popover.right .arrow { border-right-color: var(--box-header-top-border-color) !important; }\n.popover.right .arrow:after { border-right-color: var(--box-bg) !important; }\n\n.popover.bottom .arrow { border-bottom-color: var(--box-header-top-border-color) !important; }\n.popover.bottom .arrow:after { border-bottom-color: var(--box-bg) !important; }\n\n.popover.left .arrow { border-left-color: var(--box-header-top-border-color) !important; }\n.popover.left .arrow:after { border-left-color: var(--box-bg) !important; }\n\n.table-bordered > tbody > tr > td,\n.table-bordered > tbody > tr > th,\n.table-bordered > tfoot > tr > td,\n.table-bordered > tfoot > tr > th,\n.table-bordered > thead > tr > td,\n.table-bordered > thead > tr > td,\n.table-bordered > thead > tr > th,\n.table-bordered > thead > tr > th,\n.table-bordered,\n.well {\n border: 1px solid var(--box-header-top-border-color) !important;\n border-left-color: var(--box-header-top-border-color) !important;\n border-right-color: var(--box-header-top-border-color) !important;\n}\n\n.box {\n border-top: 3px solid;\n}\n\n/* .bs-wizard's connecting line background (.progress = #f5f5f5) and\n inactive-step dots (#f5f5f5) both wash out against the dark-mode\n body. Bump to the theme's mid-gray so wizard steps stay visible\n on setup, importer modal, and the LDAP settings wizard. Selector\n uses [data-theme=\"dark\"] — the actual attribute Snipe-IT toggles\n for dark mode. Disabled variant is called out explicitly because\n .bs-wizard-step.disabled > .bs-wizard-dot is a same-specificity\n rule from AdminLTE — the extra .disabled class ensures we win. */\n[data-theme=\"dark\"] .bs-wizard-step .progress,\n[data-theme=\"dark\"] .bs-wizard-step > .bs-wizard-dot,\n[data-theme=\"dark\"] .bs-wizard-step.disabled > .bs-wizard-dot {\n background-color: #605e5e;\n}\n\n.box.box-default {\n border-top: var(--box-header-top-border);\n}\n\n\n.box-header.with-border {\n border-bottom: var(--box-header-bottom-border);\n}\n\n.box-footer {\n border-top: var(--box-header-bottom-border);\n}\n\n\n.nav-tabs-custom > .nav-tabs {\n border-bottom: var(--tab-bottom-border);\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n padding-bottom: 0;\n\n}\n\n.nav-tabs > li > a {\n margin-right: 0;\n border: 0;\n}\n\n.box,\n.box-footer,\n.tab-content,\n.nav-tabs-custom,\n.nav-tabs-custom > .nav-tabs > li,\n.nav-tabs-custom > .nav-tabs > li:first-of-type,\n.nav-tabs-custom > .nav-tabs > li.active > a:link,\n.nav-tabs-custom > .nav-tabs > li.active > a:visited,\n.nav-tabs-custom > .nav-tabs > li.active > a:hover,\n.bootstrap-table.fullscreen,\n.well {\n\n color: var(--color-fg);\n background-color: var(--box-bg) !important;\n border-left: 1px solid transparent;\n border-right: 1px solid transparent;\n\n}\n\n.panel {\n border-color: var(--box-header-top-border-color);\n}\n\n.panel-body {\n background-color: var(--box-bg) !important;\n}\n\n.panel-heading,\n.panel-default > .panel-heading {\n color: var(--color-fg) !important;\n background-color: var(--table-stripe-bg-alt) !important;\n border-color: var(--box-header-top-border-color);\n}\n\n.panel-footer {\n background-color: var(--box-bg) !important;\n border-color: var(--box-header-top-border-color);\n}\n\n.nav-tabs-custom > .nav-tabs > li.active {\n border-top-color: var(--main-theme-color) !important;\n background-color: var(--box-header-top-border-color) !important;\n border-bottom: 2px solid var(--box-bg) !important;\n border-right: 1px solid var(--box-header-top-border-color);\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n}\n\n.nav-tabs-custom > .nav-tabs > li:first-of-type {\n border-left: 0;\n}\n\n\n/**\nThis fixes the weird spacing in the nav tabs if there is a badge count on the tab\n */\n.badge {\n font-size: 11px;\n}\n\n/**\ntable rows\n */\n\n.table > thead > tr > th,\n.table > tbody > tr > th,\n.table > tfoot > tr > th,\n.table > thead > tr > td,\n.table > tbody > tr > td,\n.table > tfoot > tr > td {\n border-top: var(--table-border-row) !important;\n}\n\n\n.table-striped > tbody > tr:nth-of-type(even),\n.row-new-striped > .row:nth-of-type(even),\n.row-new-striped > .div:nth-of-type(odd),\n.cansort {\n background-color: var(--table-stripe-bg) !important;\n border-top: var(--table-border-row-top) !important;\n color: var(--color-fg) !important;\n}\n\n.table-striped > tbody > tr:nth-of-type(odd),\n.row-new-striped > .row:nth-of-type(even),\n.row-new-striped > .div:nth-of-type(odd),\n.cansort {\n background-color: var(--table-stripe-bg-alt) !important;\n border-top: var(--table-border-row-top) !important;\n color: var(--color-fg) !important;\n}\n\n\n// -----------------------------------------------------------------------------\n// CSS sticky columns. Bootstrap-table's fixed-columns feature was pulled\n// from the bundle in favor of this — the old feature cloned the table\n// body into an absolutely-positioned overlay, which drifted in height\n// with long-content rows (#19197, #19458) and misplaced tooltips when\n// the container reflowed without a window resize (asset show + info\n// panel toggle). CSS position:sticky on the actual <td> cells can't\n// drift because the cells ARE the pinned cells.\n//\n// Tables that want pinned columns get the snipe-table--sticky-right-N\n// or snipe-table--sticky-left-N class (via <x-table>'s fixed_number /\n// fixed_right_number props, or applied directly on a raw table).\n//\n// Body cells match the zebra background so the sticky column keeps the\n// alternating pattern. Header cells use --box-bg so scrolling body rows\n// don't show through above the header stripe transition. Header z-index\n// sits above body sticky so a scrolled row can't render over the header.\n// -----------------------------------------------------------------------------\n\n// --table-stripe-bg-alt is intentionally translucent (rgba .25) so the\n// zebra stripe composites on top of the row's --box-bg. That works for\n// normal rows but leaves sticky cells see-through because scrolled\n// content passes UNDER them with no opaque backer. For sticky cells we\n// paint --box-bg as an opaque base and layer the (still-translucent)\n// stripe on top via linear-gradient, replicating the composited color.\n\n// Per-position offset variables (--sticky-right-offset-P, --sticky-left-offset-P)\n// are set by the JS block in partials/bootstrap-table.blade.php after every\n// render. Position 1 is the outermost pinned column and gets offset 0; each\n// subsequent position adds the outerWidth of the previous columns so pinned\n// cells sit flush against each other instead of stacking at the edge.\n\n// Position-specific sticky rules. Recurses from @pos=1 up to @maxN.\n.gen-sticky-right(@maxN, @pos: 1) when (@pos <= @maxN) {\n .snipe-table--sticky-right-@{maxN} > thead > tr > th:nth-last-child(@{pos}),\n .snipe-table--sticky-right-@{maxN} > tbody > tr > td:nth-last-child(@{pos}) {\n position: sticky;\n right: var(~\"--sticky-right-offset-@{pos}\", 0);\n z-index: 2;\n background-color: var(--box-bg);\n }\n .gen-sticky-right(@maxN, (@pos + 1));\n}\n.gen-sticky-right(1);\n.gen-sticky-right(2);\n.gen-sticky-right(3);\n.gen-sticky-right(4);\n.gen-sticky-right(5);\n\n.gen-sticky-left(@maxN, @pos: 1) when (@pos <= @maxN) {\n .snipe-table--sticky-left-@{maxN} > thead > tr > th:nth-child(@{pos}),\n .snipe-table--sticky-left-@{maxN} > tbody > tr > td:nth-child(@{pos}) {\n position: sticky;\n left: var(~\"--sticky-left-offset-@{pos}\", 0);\n z-index: 2;\n background-color: var(--box-bg);\n }\n .gen-sticky-left(@maxN, (@pos + 1));\n}\n.gen-sticky-left(1);\n.gen-sticky-left(2);\n.gen-sticky-left(3);\n.gen-sticky-left(4);\n.gen-sticky-left(5);\n\n// Shared: header z-index bump and zebra-stripe overlay for all pinned columns.\n.gen-sticky-right-shared(@maxN) {\n .snipe-table--sticky-right-@{maxN} > thead > tr > th:nth-last-child(-n+@{maxN}) {\n z-index: 3;\n }\n .snipe-table--sticky-right-@{maxN}.table-striped > tbody > tr:nth-of-type(even) > td:nth-last-child(-n+@{maxN}) {\n background-image: linear-gradient(var(--table-stripe-bg), var(--table-stripe-bg));\n }\n .snipe-table--sticky-right-@{maxN}.table-striped > tbody > tr:nth-of-type(odd) > td:nth-last-child(-n+@{maxN}) {\n background-image: linear-gradient(var(--table-stripe-bg-alt), var(--table-stripe-bg-alt));\n }\n}\n.gen-sticky-right-shared(1);\n.gen-sticky-right-shared(2);\n.gen-sticky-right-shared(3);\n.gen-sticky-right-shared(4);\n.gen-sticky-right-shared(5);\n\n.gen-sticky-left-shared(@maxN) {\n .snipe-table--sticky-left-@{maxN} > thead > tr > th:nth-child(-n+@{maxN}) {\n z-index: 3;\n }\n .snipe-table--sticky-left-@{maxN}.table-striped > tbody > tr:nth-of-type(even) > td:nth-child(-n+@{maxN}) {\n background-image: linear-gradient(var(--table-stripe-bg), var(--table-stripe-bg));\n }\n .snipe-table--sticky-left-@{maxN}.table-striped > tbody > tr:nth-of-type(odd) > td:nth-child(-n+@{maxN}) {\n background-image: linear-gradient(var(--table-stripe-bg-alt), var(--table-stripe-bg-alt));\n }\n}\n.gen-sticky-left-shared(1);\n.gen-sticky-left-shared(2);\n.gen-sticky-left-shared(3);\n.gen-sticky-left-shared(4);\n.gen-sticky-left-shared(5);\n\n// Row-state overrides. Bootstrap-table adds `.selected` on click / checkbox\n// tick (see line ~2889 for the base rule), and Snipe-IT paints `.success`\n// and `.danger` rows for the audit / restore flows. Without these\n// overrides, the sticky columns keep their zebra background painted on top\n// of the row-selected color and read as unselected even when the rest of\n// the row is highlighted. Overriding both background-color AND\n// background-image (to clear the linear-gradient stripe overlay from the\n// -shared mixins) so the sticky cells pick up the row's highlight state.\n.gen-sticky-right-row-state(@maxN) {\n .snipe-table--sticky-right-@{maxN} > tbody > tr.selected > td:nth-last-child(-n+@{maxN}) {\n background-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 40)),hsl(from var(--main-theme-color) h s calc(l - 40)))\" !important;\n background-image: none !important;\n }\n .snipe-table--sticky-right-@{maxN} > tbody > tr.success > td:nth-last-child(-n+@{maxN}) {\n background-color: #00a65a !important;\n background-image: none !important;\n color: white !important;\n }\n .snipe-table--sticky-right-@{maxN} > tbody > tr.danger > td:nth-last-child(-n+@{maxN}) {\n background-color: var(--text-danger) !important;\n background-image: none !important;\n color: white !important;\n }\n}\n.gen-sticky-right-row-state(1);\n.gen-sticky-right-row-state(2);\n.gen-sticky-right-row-state(3);\n.gen-sticky-right-row-state(4);\n.gen-sticky-right-row-state(5);\n\n.gen-sticky-left-row-state(@maxN) {\n .snipe-table--sticky-left-@{maxN} > tbody > tr.selected > td:nth-child(-n+@{maxN}) {\n background-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 40)),hsl(from var(--main-theme-color) h s calc(l - 40)))\" !important;\n background-image: none !important;\n }\n .snipe-table--sticky-left-@{maxN} > tbody > tr.success > td:nth-child(-n+@{maxN}) {\n background-color: #00a65a !important;\n background-image: none !important;\n color: white !important;\n }\n .snipe-table--sticky-left-@{maxN} > tbody > tr.danger > td:nth-child(-n+@{maxN}) {\n background-color: var(--text-danger) !important;\n background-image: none !important;\n color: white !important;\n }\n}\n.gen-sticky-left-row-state(1);\n.gen-sticky-left-row-state(2);\n.gen-sticky-left-row-state(3);\n.gen-sticky-left-row-state(4);\n.gen-sticky-left-row-state(5);\n\n\n// -----------------------------------------------------------------------------\n// Checkbox column: bootstrap-table adds .bs-checkbox to the header and body\n// cells of any checkbox column. It should always be pinned to the left edge\n// regardless of what fixed_number the table sets, because the row-selection\n// affordance is expected to stay visible while the user scrolls horizontally\n// to review other columns before deciding what to check.\n// -----------------------------------------------------------------------------\n\n.snipe-table > thead > tr > th.bs-checkbox,\n.snipe-table > tbody > tr > td.bs-checkbox {\n position: sticky;\n left: 0;\n z-index: 2;\n background-color: var(--box-bg);\n}\n\n.snipe-table.table-striped > tbody > tr:nth-of-type(even) > td.bs-checkbox {\n background-image: linear-gradient(var(--table-stripe-bg), var(--table-stripe-bg));\n}\n.snipe-table.table-striped > tbody > tr:nth-of-type(odd) > td.bs-checkbox {\n background-image: linear-gradient(var(--table-stripe-bg-alt), var(--table-stripe-bg-alt));\n}\n\n.snipe-table > thead > tr > th.bs-checkbox {\n z-index: 3;\n}\n\n// Row-state overrides for the pinned checkbox column. Same reasoning as\n// the .gen-sticky-*-row-state mixins above: the opaque background baked\n// into the sticky cell would otherwise mask row-selected / .success /\n// .danger highlights on the checkbox column, which is exactly the column\n// users click to toggle the selection state, so the mismatch is most\n// visible there.\n.snipe-table > tbody > tr.selected > td.bs-checkbox {\n background-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 40)),hsl(from var(--main-theme-color) h s calc(l - 40)))\" !important;\n background-image: none !important;\n}\n.snipe-table > tbody > tr.success > td.bs-checkbox {\n background-color: #00a65a !important;\n background-image: none !important;\n color: white !important;\n}\n.snipe-table > tbody > tr.danger > td.bs-checkbox {\n background-color: var(--text-danger) !important;\n background-image: none !important;\n color: white !important;\n}\n\n\n// -----------------------------------------------------------------------------\n// Top scrollbar: mirrored above the bootstrap-table body so users on wide\n// tables don't have to scroll to the bottom to find the horizontal\n// scrollbar. Managed by updateTopScrollbar() in partials/bootstrap-table.\n// The wrapper node only exists when the table actually overflows\n// horizontally, so tables that fit in their container don't get any\n// extra chrome.\n// -----------------------------------------------------------------------------\n\n.snipe-top-scrollbar {\n // scroll (not auto) so the scrollbar thumb stays visible whenever\n // the container is displayed. auto lets macOS's trackpad-scrollbar\n // auto-hide take over on trackpad users even with the WebKit\n // pseudo-element styling below, which read as \"top scrollbar fades\n // faster than the bottom one\" (#19484 follow-up). Whole container\n // gets display: none from updateTopScrollbar() when the underlying\n // table doesn't actually overflow, so persistent scroll doesn't\n // produce a floating stub on tables that fit in the viewport.\n overflow-x: scroll;\n overflow-y: hidden;\n // 14px scrollbar sized to match the WebKit thumb below so it\n // reads as a deliberate chrome element rather than an OS-native\n // accident. Bumped from 10px so the thumb is easier to grab and\n // drag on trackpads / small screens.\n //\n // Outer height is 18px (border-box) = 14px scrollbar content +\n // 4px padding-bottom acting as a visual spacer between the\n // scrollbar thumb and the thead below it. Total 18px matches\n // the stickyHeaderOffsetY: 18 in bootstrap-table.blade.php so\n // the pinned scrollbar band + the sticky-clone thead just below\n // it stack seamlessly with no bleed-through gap between them\n // (#19484 follow-up: 4px gap of tbody rows visible between the\n // scrollbar and the sticky thead).\n box-sizing: border-box;\n height: 18px;\n padding-bottom: 4px;\n background-color: var(--box-bg);\n // Firefox scrollbar styling — spec-standard. `auto` uses the\n // OS-default thickness (matches the bumped-up 14px WebKit height\n // below so the thumb is easy to grab on trackpads / small screens).\n scrollbar-width: auto;\n scrollbar-color: rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.06);\n\n // Stay visible while the user scrolls the page down past the\n // natural table header. Bootstrap-table's own stickyHeader\n // (position: fixed via the .fix-sticky class) floats the thead\n // clone at viewport top; we mirror that positioning via JS\n // (updateTopScrollbarSticky in bootstrap-table.blade.php) so\n // the scrollbar sits ABOVE the sticky-clone thead - matching\n // the natural (unscrolled) order where the scrollbar reads\n // immediately above the thead. Bootstrap-table config pushes\n // .fix-sticky down by (this mirror's height + padding-bottom)\n // via stickyHeaderOffsetY so the two don't overlap. Sticky\n // positioning would have been simpler than the JS toggle but\n // didn't engage reliably against page scroll from inside the\n // .bootstrap-table nesting depth; falling back to position:\n // fixed set by the scroll listener. Reported in #19484 as\n // \"none of scrollbars are visible when list is scrolled to\n // the point where header starts floating\" plus follow-up\n // \"top scrollbar used to be above the table headers, which\n // seems a little better\".\n z-index: 101;\n\n // When the scroll listener detects the natural position has\n // gone above viewport top, this class flips the element to\n // position: fixed via inline style. The class itself just\n // marks \"currently pinned\" so callers can style pinned vs\n // unpinned states differently if needed.\n &.is-pinned {\n // Inline top/left/width comes from JS. Keeping the box\n // shadow drop off here so pinned state visually separates\n // the mirror from the sticky-clone thead below it.\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);\n }\n\n // WebKit / Blink scrollbar pseudo-elements. Both the track and the\n // thumb get border-radius so the container reads as rounded even\n // when the thumb is at the edge of the track (the previous\n // container-level border-radius was invisible because the container\n // had no visible background to round). Track carries a subtle tint\n // so the rounded shape is actually visible rather than shape-of-nothing.\n &::-webkit-scrollbar {\n height: 14px;\n }\n &::-webkit-scrollbar-track {\n background-color: rgba(0, 0, 0, 0.06);\n border-radius: 7px;\n }\n &::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.35);\n border-radius: 7px;\n }\n &::-webkit-scrollbar-thumb:hover {\n background-color: rgba(0, 0, 0, 0.5);\n }\n}\n\n.snipe-top-scrollbar-inner {\n // Height just enough to make the parent scrollable; width is set by\n // JS to match the underlying table's scrollWidth.\n height: 1px;\n}\n\n// Match the native bottom scrollbar on the table body to the styled\n// top mirror above so the two horizontal scroll handles read as a\n// consistent pair. Without this, the top uses our thin-with-rounded-\n// thumb chrome while the bottom uses the OS default and the two look\n// mismatched when both are visible on wide tables. scrollbar-width\n// bumped from `thin` to `auto` and the WebKit height matched to the\n// top mirror's 14px so the two scrollbars are the same easy-to-grab\n// size on trackpads / small screens (#19484 follow-up).\n.bootstrap-table .fixed-table-body {\n scrollbar-width: auto;\n scrollbar-color: rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.06);\n\n &::-webkit-scrollbar {\n height: 14px;\n }\n &::-webkit-scrollbar-track {\n background-color: rgba(0, 0, 0, 0.06);\n border-radius: 7px;\n }\n &::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.35);\n border-radius: 7px;\n }\n &::-webkit-scrollbar-thumb:hover {\n background-color: rgba(0, 0, 0, 0.5);\n }\n}\n\n\n/**\nmain header nav\n */\n\n\n.dropdown-menu {\n background-color: var(--main-theme-color);\n border-color: var(--main-theme-color);\n}\n\n\n.dropdown-menu > li,\n.navbar,\n.navbar-nav,\n.label-default,\n.label-default:hover {\n background-color: var(--main-theme-color);\n color: var(--nav-primary-text-color) !important;\n}\n\n.label-light {\n background-color: var(--default-label-link-bg) !important;\n color: var(--color-fg) !important;\n font-size: 12px !important;\n font-weight: normal !important;\n line-height: 25px;\n margin-left: 0px;\n padding-left: 3px;\n\n}\n\na.label-light,\na.label-light:hover {\n color: var(--link-color) !important;\n}\n\n.dropdown-menu > li > a,\n.dropdown-menu > li > a:link,\n.dropdown-menu > li > a:visited,\n.dropdown-menu > .active > a:link,\n.dropdown-menu > .active > a:visited,\n.navbar-nav .open > a:link,\n.navbar-nav .open > a:visited,\n.navbar-nav > li > a:link,\n.navbar-nav > li > a:visited {\n background-color: var(--main-theme-color) !important;\n /*background-color: rgba(0,0,0,.15);*/\n color: var(--nav-primary-text-color) !important;\n /*color: var(--nav-primary-text-color) !important;*/\n\n}\n\n.btn-tableButton.active.focus,\n.btn-tableButton.active:focus,\n.btn-tableButton.active:hover,\n.dropdown-menu > .active > a:focus,\n.dropdown-menu > .active > a:hover,\n.dropdown-menu > .active > a:link,\n.dropdown-menu > .active > a:visited,\n.dropdown-menu > li > a:focus,\n.dropdown-menu > li > a:hover,\n.dropdown-menu > li:focus,\n.dropdown-menu > li:hover,\n.navbar-nav .open li.active > a:focus,\n.navbar-nav .open li.active > a:hover,\n.navbar-nav .open > a:focus,\n.navbar-nav .open > a:hover,\n.navbar-nav > li > a:focus,\n.navbar-nav > li > a:hover,\n.open > .dropdown-toggle.btn-tableButton:focus,\n.open > .dropdown-toggle.btn-tableButton:hover,\n.page-next a,\n.pagination > .active > a:hover,\n.page-item.active,\n.pagination > .active > a,\n.pagination > li > .active > a,\n.pagination > li > .active > a:hover,\n.pagination > li > a:hover {\n background-color: var(--main-theme-hover) !important;\n border-color: var(--btn-theme-hover) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n.pagination > li > a {\n background-color: var(--main-theme-color) !important;\n border-color: var(--btn-theme-hover) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n\n.bootstrap-table .fixed-table-toolbar li.dropdown-item-marker label {\n color: var(--nav-primary-text-color) !important;\n}\n\n.bootstrap-table .fixed-table-toolbar li.dropdown-item-marker label:hover {\n background-color: var(--main-theme-hover) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n\n.dropdown-menu,\n.dropdown-menu > li {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\";\n border-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\";\n color: var(--nav-primary-text-color) !important;\n}\n\n.main-header .navbar .nav > .active > a {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\" !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n.navbar-nav > .notifications-menu > .dropdown-menu > li.header,\n.navbar-nav > .messages-menu > .dropdown-menu > li.header,\n.navbar-nav > .tasks-menu > .dropdown-menu > li.header,\n.navbar-nav > .notifications-menu > .dropdown-menu > li .menu,\n.navbar-nav > .messages-menu > .dropdown-menu > li .menu, .navbar-nav > .tasks-menu > .dropdown-menu > li .menu,\n.navbar-nav > .messages-menu > .dropdown-menu > li .menu, .navbar-nav > .tasks-menu > .dropdown-menu > li .menu a:hover,\n.navbar-nav > .messages-menu > .dropdown-menu > li .menu, .navbar-nav > .tasks-menu > .dropdown-menu > li:hover,\n.navbar-nav > .tasks-menu > .dropdown-menu > li .menu > li:hover > a,\n.task_menu {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\" !important;\n color: var(--nav-primary-text-color) !important;\n margin-bottom: 0;\n}\n\n.navbar-nav > .notifications-menu > .dropdown-menu > li .menu > li > a, .navbar-nav > .messages-menu > .dropdown-menu > li .menu > li > a, .navbar-nav > .tasks-menu > .dropdown-menu > li .menu > li > a {\n border-bottom: ~\"1px solid hsl(from var(--main-theme-color) h s calc(l - 10))\";\n}\n\n\n/**\nActive and hover for top tier sidenav items\n */\n\n.main-sidebar {\n background-color: #1e282c;\n}\n\n// Shift .main-header's BOX (not just its inner .navbar) so the header\n// occupies only the horizontal space past the sidebar's column. Base\n// AdminLTE 2 leaves .main-header full-width and only offsets the\n// .navbar's contents via margin-left: 230px, which fixes visual\n// alignment but not click alignment: the header's own <div> (z-index\n// 1030) still extends across the sidebar column above the sidebar\n// (z-index 810), so at intermediate widths where the navbar wraps to\n// two or three rows the header's empty second/third-row area sits on\n// top of the first sidebar item and eats clicks. Reported repeatedly\n// on the tracker (#19482, #11868, #5085) and previously papered over\n// with hardcoded .sidebar-menu { margin-top: Npx } offsets at\n// specific breakpoints - since removed above in favor of this\n// structural fix.\n//\n// Shift values track the sidebar's rendered width per body class:\n// - default (.sidebar-mini, sidebar open): 230px\n// - .sidebar-mini.sidebar-collapse (menu closed, mini icons): 50px\n// - mobile (<=767px): 0 (sidebar is translated off-screen)\n//\n// The navbar's own margin-left is zeroed at each state so the navbar\n// content doesn't get double-shifted after the header itself moves.\n// Transition on .main-header matches the navbar's existing 0.3s\n// margin-left transition so the header and its content animate\n// together when the sidebar toggles.\n@media (min-width: 768px) {\n .main-header {\n margin-left: 230px;\n transition: margin-left 0.3s ease-in-out;\n }\n .main-header .navbar {\n margin-left: 0;\n }\n .sidebar-mini.sidebar-collapse .main-header {\n margin-left: 50px;\n }\n // AdminLTE has a higher-specificity rule at min-width: 768px:\n // .sidebar-mini.sidebar-collapse .main-header .navbar { margin-left: 50px }\n // that overrides our plain .main-header .navbar reset above. Without\n // matching its specificity here, the mini-collapsed state ends up\n // double-shifting the navbar (header shifted 50px + navbar shifted\n // 50px = navbar starts at x=100). That pushed the .sidebar-toggle\n // hamburger past the sidebar column and into the header instead of\n // sitting over the mini-icon column at the top-left (where its\n // -48px margin-left is designed to place it).\n .sidebar-mini.sidebar-collapse .main-header .navbar {\n margin-left: 0;\n }\n}\n\n\n.sidebar-menu > li.active > a,\n.sidebar-menu > li:hover > a,\n.treeview-menu > li > a {\n color: var(--sidenav-text-hover-color) !important;\n border-left-color: var(--main-theme-color);\n}\n\n.sidebar-menu > li:hover > a,\n.sidebar-menu > li.active > a {\n border-left-color: var(--main-theme-color);\n padding-left: 12px;\n}\n\n\n.sidebar-menu > li:hover {\n background-color: #2c3b41;\n}\n\n.sidebar-menu > li > .treeview-menu {\n background-color: #1e282c;\n}\n\n\n.list-group-item:first-child {\n border-top: 0 !important;\n}\n\n.sidebar-menu > li > a:link,\n.sidebar-menu > li > a:visited,\n.treeview-menu > li > a {\n color: var(--sidenav-text-nohover-color) !important;\n}\n\n.sidebar-menu > li.active > a,\n.sidebar-menu > li:hover > a {\n background-color: #1e282c;\n border-left-color: var(--main-theme-color);\n border-left-style: solid;\n border-left-width: 3px;\n color: var(--sidenav-text-hover-color) !important;\n}\n\nthead,\ntbody,\n.table > thead > tr > th,\n.table > tbody > tr > th,\n.table > tfoot > tr > th,\n.table > thead > tr > td,\n.table > tbody > tr > td,\n.table > tfoot > tr > td {\n border-top-color: var(--box-bg) !important;\n border-bottom-color: var(--box-header-bottom-border-color) !important;\n color: var(--color-fg);\n}\n\n\n.help-block {\n color: var(--text-help) !important;\n}\n\n.alert-msg,\n.has-error {\n color: var(--text-danger) !important;\n}\n\n.has-error .form-control {\n border-color: var(--text-danger);\n}\n\n.alert a,\n.callout.callout-warning,\n.callout.callout-danger,\n.callout.callout-success,\n.callout.callout-info,\n.alert.alert-warning,\n.alert.alert-danger,\n.alert.alert-info,\n.alert.alert-success,\n.alert.alert-warning {\n color: white !important;\n}\n\n// The colored alerts have fixed-color backgrounds (red / blue / green\n// / orange) that read well against white text regardless of theme\n// mode. However the global \"h1..h4, p { color: var(--color-fg) }\" rule\n// further down this file has enough specificity to override the\n// alert's own color on any heading or paragraph inside, flipping the\n// text to black in light mode and white in dark mode — illegible\n// against the colored bg in light. Force inheritance so headings and\n// paragraphs inside these alerts always pick up the alert's white.\n.alert.alert-danger,\n.alert.alert-info,\n.alert.alert-success,\n.alert.alert-warning {\n h1, h2, h3, h4, p {\n color: inherit !important;\n }\n}\n\n\n.text-dark-gray a:link,\n.text-dark-gray a:hover,\n.text-dark-gray a:visited,\n.text-dark-gray a:focus {\n color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\";\n}\n\n.text-warning {\n color: var(--text-warning) !important;\n}\n\n.text-info {\n color: var(--text-info) !important;\n}\n\n.text-primary {\n color: var(--main-theme-color) !important;\n}\n\n.text-danger {\n color: var(--text-danger) !important;\n}\n\n.text-success {\n color: var(--text-success) !important;\n}\n\n.dropdown-menu > .divider {\n background-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 10))\";\n margin-top: 0;\n margin-bottom: 0;\n padding-top: 1px;\n\n}\n\ninput[type=\"radio\"]::before {\n box-shadow: ~\"inset 1em 1em hsl(from var(--main-theme-color) h s calc(l - 20))\" !important;\n}\n\n\ninput[type=\"checkbox\"]::before {\n box-shadow: ~\"inset 1em 1em hsl(from var(--main-theme-color) h s calc(l - 20))\" !important;\n}\n\n\n.callout.callout-legend {\n background-color: var(--callout-bg-color);\n border-left: 5px solid var(--callout-left-border);\n\n}\n\n.callout-legend h4 a,\n.callout-legend h4 a:hover {\n color: var(--color-fg) !important;\n}\n\n\np.callout-subtext, p.callout-subtext a:hover, p.callout-subtext a:visited, p.callout-subtext a:link {\n color: var(--text-legend-help) !important;\n text-decoration: none;\n}\n\n\nlegend {\n border-bottom: 1px solid var(--callout-left-border);\n}\n\nth,\n.fix-sticky table thead {\n background-color: var(--box-bg);\n color: var(--color-fg) !important;\n}\n\n\n.logo:hover {\n background-color: var(--main-theme-color) !important;\n color: var(--nav-primary-text-color) !important;\n}\n\n.modal-content,\n.popover.help-popover,\n.popover.help-popover .popover-content,\n.popover.help-popover .popover-body,\n.popover.help-popover .popover-title,\n.popover.help-popover .popover-header {\n background-color: var(--box-bg) !important;\n /*color: var(--color-fg) !important;*/\n color: var(--color-fg) !important;\n}\n\n.treeview-menu > li {\n background-color: #2c3b41;\n color: var(--sidenav-text-nohover-color) !important;\n}\n\n.treeview-menu > li > a:hover,\n.treeview-menu > li:hover,\n.treeview-menu > li.active > a {\n color: white !important;\n background-color: var(--sidenav-hover-color-bg) !important;\n}\n\n.sidebar-toggle.btn,\n.sidebar-toggle.btn:hover {\n color: white !important;\n}\n\n.chart-responsive {\n color: var(--color-fg) !important;\n}\n\n.table > tbody + tbody {\n border-top: 0 !important;\n}\n\nh4#progress-text {\n color: white !important;\n}\n\n.small-box h3, .small-box p {\n color: white !important;\n}\n\n.box.box-theme {\n border-top: var(--main-theme-color) !important;\n}\n\ninput[type=\"date\"]:focus,\ninput[type=\"number\"]:focus,\ninput[type=\"text\"]:focus,\ninput[type=\"url\"]:focus,\ninput[type=\"email\"]:focus,\ninput[type=\"password\"]:focus,\ninput[type=\"tel\"]:focus,\ntextarea:focus {\n border-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 5))\" !important;\n}\n\ninput[type=\"date\"]:required,\ninput[type=\"number\"]:required,\ninput[type=\"text\"]:required,\ninput[type=\"url\"]:required,\ninput[type=\"email\"]:required,\ninput[type=\"password\"]:required,\ninput[type=\"tel\"]:required,\nselect:required,\ninput:required,\ntextarea:required {\n border-right: 5px solid orange !important;\n}\n\n.bootstrap-table .fixed-table-container .table tbody tr.selected td {\n background-color: ~\"light-dark(hsl(from var(--main-theme-color) h s calc(l + 40)),hsl(from var(--main-theme-color) h s calc(l - 40)))\" !important;\n}\n\ntr.success > td {\n background-color: #00a65a !important;\n color: white !important;\n}\n\ntr.danger > td {\n background-color: var(--text-danger) !important;\n color: white !important;\n}\n\n@media print {\n\n body,\n div.content-wrapper,\n section.content,\n .webui,\n .main-panel,\n .nav-tabs-custom,\n .box,\n .box-body,\n .list-group,\n .list-group-unbordered,\n .list-group-item,\n .row,\n .tab-content {\n background: white !important;\n color: black !important;\n }\n\n .fixed-table-toolbar,\n .fixed-table-pagination,\n #assetsToolBar,\n .fixed-table-pagination {\n display: none !important;\n }\n\n .tab-pane.hidden-print {\n display: none !important;\n visibility: hidden !important;\n }\n\n h2, h3, h4 {\n color: black !important;\n }\n\n .col-sm-9,\n .main-panel {\n float: left;\n width: 100% !important;\n }\n\n}\n\n.list-group-item.subitem {\n padding-left: 20px !important;\n border-left: 0 !important;\n border-right: 0 !important;\n}\n\n.list-group-item.subitem:first-child {\n border: var(--tab-bottom-border);\n}\n\n.list-group-item.subitem:last-child {\n border: 0 !important;\n}\n\n.main-panel-content {\n line-height: 20px;\n border-bottom: var(--tab-bottom-border);\n padding: 10px 15px;\n}\n\n\n/* table */\n\ndl.table-display {\n float: left;\n width: 100%;\n margin: 1em 0;\n padding: 0;\n}\n\n.table-display dt {\n line-height: 25px;\n clear: left;\n float: left;\n /*text-align: right;*/\n width: 20%;\n margin: 0;\n padding: 8px;\n border-top: var(--tab-bottom-border);\n font-weight: bold;\n}\n\n.table-display dd {\n line-height: 20px;\n float: left;\n width: 80%;\n margin: 0;\n padding: 10px;\n border-top: var(--tab-bottom-border);\n}\n\n.well-display dt {\n clear: left;\n float: left;\n width: 70%;\n margin: 0;\n padding: 6px;\n border-top: 0;\n font-weight: bold;\n}\n\n.well-display dd {\n float: left;\n width: 30%;\n margin: 0;\n padding: 6px;\n border-top: 0;\n}\n\n.well-sm {\n line-height: 30px;\n}\n\n.table-display dd:first-of-type, .table-display dt:first-of-type {\n border-top: 0 !important;\n}\n\n\n@media (max-width: 750px) {\n .table-display dd {\n width: 100% !important;\n }\n\n .table-display dt {\n width: 100% !important;\n }\n}\n\n@media print {\n /* All your print styles go here */\n .box-profile {\n display: block !important;\n width: 100% !important;\n }\n}\n\n\n// Login / register page theme awareness.\n//\n// AdminLTE 2 hardcodes light-mode colors on the login page containers\n// (#d2d6de body bg, #fff box bg, #444 logo text) which ignore our\n// [data-theme=\"dark\"] CSS variables. Override with the same variables\n// the rest of the app uses so login and password-reset screens carry\n// the tenant's chosen theme mode instead of a permanent light-mode\n// look. Also styles the .register-* classes since AdminLTE ships them\n// paired and future Snipe-IT signup flows may use them.\n.login-page,\n.register-page {\n background: var(--color-bg);\n}\n\n.login-box-body,\n.register-box-body {\n background: var(--box-bg);\n color: var(--color-fg);\n}\n\n.login-logo a,\n.register-logo a {\n color: var(--color-fg);\n}\n\n// The .login-box wraps the header + body. Its header (.box-header) picks\n// up theme colors from the general .box rules already in this file, but\n// its bottom-border (from AdminLTE's default .login-box-body) is a\n// hardcoded light color that reads as a bright line against a dark\n// panel. Clear it and let the box's own borders do the visual work.\n.login-box-body,\n.register-box-body {\n border-top: 0;\n}\n\n// .login-box and .register-box are .box variants but do NOT get the\n// .box-default class, so they miss the themed border-top treatment\n// every other card in the app has. Give them the tenant's main theme\n// color as a top accent so the login card visually ties in with the\n// header bar above it (also styled with --main-theme-color) rather\n// than using the neutral grey that .box.box-default uses elsewhere.\n.login-box,\n.register-box {\n border-top: 3px solid var(--main-theme-color);\n}\n\n// Themed header bar for login / error pages (layouts/basic.blade.php).\n// Gives the tenant's uploaded logo the same colored background it lives\n// against in the logged-in app's top-nav so logos designed for that\n// context read the way they were meant to. Falls back to a text\n// treatment of the site name when there is no logo.\n.basic-page-header {\n background-color: var(--main-theme-color);\n // Match .main-header .navbar exactly (50px min-height) so the\n // login and error page header reads the same height as the\n // logged-in top-nav. Overflow: hidden clips the logo the same\n // way AdminLTE's .main-header .logo container does, so a padded\n // brand image renders at 50px even though its own box is taller.\n position: relative;\n min-height: 50px;\n overflow: hidden;\n padding: 0 20px;\n margin-bottom: 30px;\n text-align: center;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.basic-page-header__link {\n display: inline-block;\n // Kill link underline / hover-color so the logo and site-name\n // fallback render cleanly on the theme-color background.\n color: var(--nav-primary-text-color);\n text-decoration: none;\n\n &:hover,\n &:focus,\n &:visited {\n color: var(--nav-primary-text-color);\n text-decoration: none;\n }\n\n img {\n // Match img.navbar-brand-img / .navbar-brand>img exactly (the\n // rule near the top of this file that sizes the logged-in\n // top-nav brand logo). Combined with overflow: hidden on the\n // parent .basic-page-header, the padded img renders at 50px\n // clipped, giving the same visual as the logged-in header.\n max-height: 65px;\n max-width: 100%;\n width: auto;\n }\n}\n\n.basic-page-header__site-name {\n font-size: 24px;\n font-weight: 600;\n color: var(--nav-primary-text-color);\n}\n\n// Absolute-positioned in the top-right of the bar so the logo stays\n// visually centered. Icon-only presentation so it reads like the\n// compact icon controls (bell, user avatar) in the logged-in top-nav\n// rather than a full-text toggle. The aria-label carries the full\n// \"Dark mode\" / \"Light mode\" text for screen readers.\n.basic-page-header__toggle {\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n background: transparent;\n border: 0;\n padding: 4px 8px;\n color: var(--nav-primary-text-color);\n font-size: 16px;\n line-height: 1;\n cursor: pointer;\n\n &:hover,\n &:focus {\n color: var(--nav-primary-text-color);\n opacity: 0.85;\n }\n\n // Hide the injected .theme-toggle-label span. Text is still in the\n // DOM and read by screen readers via the button's aria-label, but\n // visually only the sun/moon icon shows.\n .theme-toggle-label {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n }\n}\n\n// Issue #19443: on narrower viewports (sidebar open, small laptops)\n// the bs-table search input ends up wedged between the box's\n// bulk-actions area (pulled left, ~500px min-width) and the button\n// toolbar (pulled right), which strands it visually in the middle.\n// Force the search onto its own row below the toolbar, right-aligned,\n// when the viewport isn't wide enough to fit all three inline. Wide\n// layouts stay unchanged.\n//\n// The outer `.search` is bootstrap's `.input-group` (display: table)\n// wrapping a nested `.input-group` with the input + clear button.\n// Just adding `clear: both` to the still-floated element left it\n// stranded mid-container. Turning the outer into a plain block with\n// `text-align: right`, and forcing the nested input-group to\n// `inline-flex` so it respects the parent's text alignment, lets it\n// sit flush against the box's right edge on its own row.\n@media (max-width: 1400px) {\n .box-body .fixed-table-toolbar > .search.pull-right {\n clear: both !important;\n margin-top: 8px;\n }\n}\n\n// Info-panel action button row. Every asset / user / license detail\n// page renders a horizontal strip of icon buttons (edit, clone, note,\n// audit, delete, ...) above the info panel. Was a plain .row with no\n// wrap strategy, so on narrow viewports the last one or two buttons\n// would drop to their own line with no spacing from the row above.\n// Flex + wrap + gap gives a predictable break point and consistent\n// spacing between buttons in either axis. Also fixed #19443.\n//\n// Destructive buttons (delete, and by convention checkin) still need\n// to sit visually apart from the non-destructive ones on the right\n// edge, which they got via `pull-right` (float: right) before this\n// container went flex. Floats are ignored by flex, so the first\n// pull-right child gets margin-left: auto to consume the remaining\n// space and shove itself right. Anything after it clusters next to\n// it.\n//\n// pull-right children also get order:1 so they visually move to the\n// end of the row regardless of their DOM position. Without this,\n// pull-right buttons that appear BEFORE non-pull-right buttons in\n// markup (checkin is emitted before edit/clone/audit on the asset\n// view, and only when the asset is currently checked out - which is\n// why the misalignment only showed up on checked-out assets) end up\n// dragging every subsequent sibling right along with them via the\n// auto margin, leaving only the first non-pull-right button alone on\n// the left. order:1 corrects the visual grouping so pull-right ends\n// up on the right and the non-pull-right stack stays left, matching\n// the behavior the old floats used to give.\n.info-panel-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 2px;\n // Bleed out through the parent .box-header's 10px horizontal\n // padding so the button row hits the box's actual edges. Matches\n // how a bootstrap .row offsets its container's gutters.\n margin: 0 -10px;\n\n > .pull-right {\n order: 1;\n margin-left: auto;\n }\n\n > .pull-right ~ .pull-right {\n margin-left: 0;\n }\n}\n\n// ============================================================================\n// FullCalendar v6 dark-mode overrides.\n//\n// FullCalendar's stock CSS reads from a fixed palette of light neutrals for\n// header cells, gridlines, and hour-axis text. In light mode that reads fine\n// against the AdminLTE box background; in dark mode the light-neutral rules\n// produce a wash of near-white cells and pale grid strokes that lack\n// contrast against the dark box. Rebind them to the same tokens the rest of\n// the app already uses.\n// ============================================================================\n\n[data-theme=\"dark\"] {\n .fc {\n --fc-border-color: var(--box-header-top-border-color);\n --fc-page-bg-color: var(--box-bg);\n --fc-neutral-bg-color: ~\"hsl(from var(--box-bg) h s calc(l + 5))\";\n --fc-neutral-text-color: var(--color-fg);\n --fc-list-event-hover-bg-color: ~\"hsl(from var(--box-bg) h s calc(l + 8))\";\n --fc-today-bg-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 25) / 0.25)\";\n\n .fc-col-header-cell,\n .fc-list-day-cushion {\n background-color: ~\"hsl(from var(--box-bg) h s calc(l + 5))\";\n color: var(--color-fg);\n }\n\n .fc-col-header-cell-cushion,\n .fc-daygrid-day-number,\n .fc-timegrid-axis-cushion,\n .fc-timegrid-slot-label-cushion,\n .fc-list-day-text,\n .fc-list-day-side-text,\n .fc-list-event-title,\n .fc-list-event-time {\n color: var(--color-fg);\n }\n\n .fc-scrollgrid,\n .fc-scrollgrid td,\n .fc-scrollgrid th,\n .fc-timegrid-slot,\n .fc-daygrid-day {\n border-color: var(--box-header-top-border-color);\n }\n }\n}\n\n// ============================================================================\n// Dashboard equal-height rows.\n//\n// AdminLTE 2 / Bootstrap 3 don't stretch sibling .box heights within a row,\n// so a col-md-8 + col-md-4 pair looks lopsided any time the wider box has\n// more content than the narrower one. This wrapper turns the row into a\n// flex container and forces every child .box to fill its column's height.\n// Applied only on rows opted-in via `dashboard-row-eq` so the rule doesn't\n// leak into other admin pages that happen to use .row + .box.\n// ============================================================================\n\n// Row-wrapper margin lives outside the media query so successive rows stay\n// gutter-separated at every breakpoint, mobile included.\n.dashboard-row-eq {\n margin-bottom: 20px;\n}\n\n// Equal-height flex layout ONLY on md and up. Below md, Bootstrap 3 collapses\n// .col-md-* to full-width stacked blocks; forcing flex there causes every\n// widget in the row to stretch to the tallest sibling in the flow, which\n// leaves the small widgets with huge whitespace gaps on a phone. Falling\n// back to BS3's stock block layout below md keeps mobile clean.\n@media (min-width: 992px) {\n .dashboard-row-eq {\n display: flex;\n flex-wrap: wrap;\n align-items: stretch;\n }\n\n .dashboard-row-eq > [class*=\"col-\"] {\n display: flex;\n flex-direction: column;\n float: none; // BS3 gives cols float:left, which suppresses flex behavior\n }\n\n .dashboard-row-eq > [class*=\"col-\"] > .box {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n width: 100%;\n min-height: 100%;\n }\n\n // Ensure the box-body absorbs slack inside a stretched box, so header stays\n // pinned to the top and any footer/link stays at the bottom instead of the\n // body content leaving whitespace beneath itself.\n .dashboard-row-eq > [class*=\"col-\"] > .box > .box-body {\n flex: 1 1 auto;\n }\n\n // AdminLTE flips a .collapsed-box class on the .box when the header\n // +/- toggle collapses the body. Without this override, the box would\n // stay stretched to the col's full height and the collapse would have\n // no visible effect. Let the collapsed box shrink to its own content\n // (just the header) so the toggle behaves like it does on non-flex\n // dashboards. Neighboring boxes stay stretched to their previous\n // heights.\n .dashboard-row-eq > [class*=\"col-\"] > .box.collapsed-box {\n flex: 0 0 auto;\n min-height: 0;\n }\n}\n\n// ============================================================================\n// FullCalendar filter buttons render as a native DOM row above the\n// calendar element (see buildFilterButtons in snipeit-calendar.js).\n// Kept out of FullCalendar's headerToolbar so the calendar's own\n// prev/next/today/title/views row isn't pushed off-center by an\n// inline row of filter chips.\n// ============================================================================\n\n.snipeit-calendar-filters {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n margin-bottom: 12px;\n padding-bottom: 8px;\n border-bottom: 1px solid var(--box-header-top-border-color, #ddd);\n}\n\n.snipeit-calendar-filter-button {\n // Reserve horizontal space for the checkmark glyph up-front via a\n // transparent placeholder so the button doesn't grow when its\n // .active class is added. Without this the ::before content on\n // `.active` shifts every other button in the row when a filter is\n // toggled and makes the whole row jump.\n padding: 4px 10px;\n font-size: 13px;\n\n &::before {\n content: \"\\2713\\00a0\";\n font-weight: bold;\n visibility: hidden;\n }\n}\n\n// ============================================================================\n// Calendar filter-button active-state styling (both themes).\n//\n// buildFilterButtons flips `.active` on selected filters. Bootstrap 3's\n// stock `.btn-default.active` only nudges the background a few shades\n// darker, which reads as \"hovered\" not \"selected\" and Snipe reported she\n// couldn't tell which filters were on. Force the active state to the\n// app's primary theme color with an inset border ring and a leading\n// checkmark glyph so a viewer can spot which filters are active without\n// squinting. Kept a11y-friendly with a real ::before content marker\n// rather than color alone (aria-pressed is toggled in JS on top of it).\n// ============================================================================\n\n.snipeit-calendar-filter-button.active,\n.snipeit-calendar-filter-button.active:hover,\n.snipeit-calendar-filter-button.active:focus,\n.snipeit-calendar-filter-button.active:active {\n background-color: var(--main-theme-color) !important;\n background-image: none !important;\n border-color: ~\"hsl(from var(--main-theme-color) h s calc(l - 15))\" !important;\n color: var(--nav-primary-text-color) !important;\n box-shadow: inset 0 0 0 2px ~\"hsl(from var(--main-theme-color) h s calc(l - 25))\" !important;\n}\n\n.snipeit-calendar-filter-button.active::before {\n visibility: visible;\n}\n\n.snipeit-calendar-filter-button.active:focus {\n box-shadow: inset 0 0 0 2px ~\"hsl(from var(--main-theme-color) h s calc(l - 25))\",\n 0 0 0 3px ~\"hsl(from var(--main-theme-color) h s calc(l + 20) / 0.5)\" !important;\n}\n\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/public/css/dist/all.css b/public/css/dist/all.css
index d15a658793..3af8adf350 100644
--- a/public/css/dist/all.css
+++ b/public/css/dist/all.css
@@ -24747,6 +24747,98 @@ dl.table-display {
.info-panel-actions > .pull-right ~ .pull-right {
margin-left: 0;
}
+[data-theme="dark"] .fc {
+ --fc-border-color: var(--box-header-top-border-color);
+ --fc-page-bg-color: var(--box-bg);
+ --fc-neutral-bg-color: hsl(from var(--box-bg) h s calc(l + 5));
+ --fc-neutral-text-color: var(--color-fg);
+ --fc-list-event-hover-bg-color: hsl(from var(--box-bg) h s calc(l + 8));
+ --fc-today-bg-color: hsl(from var(--main-theme-color) h s calc(l - 25) / 0.25);
+}
+[data-theme="dark"] .fc .fc-col-header-cell,
+[data-theme="dark"] .fc .fc-list-day-cushion {
+ background-color: hsl(from var(--box-bg) h s calc(l + 5));
+ color: var(--color-fg);
+}
+[data-theme="dark"] .fc .fc-col-header-cell-cushion,
+[data-theme="dark"] .fc .fc-daygrid-day-number,
+[data-theme="dark"] .fc .fc-timegrid-axis-cushion,
+[data-theme="dark"] .fc .fc-timegrid-slot-label-cushion,
+[data-theme="dark"] .fc .fc-list-day-text,
+[data-theme="dark"] .fc .fc-list-day-side-text,
+[data-theme="dark"] .fc .fc-list-event-title,
+[data-theme="dark"] .fc .fc-list-event-time {
+ color: var(--color-fg);
+}
+[data-theme="dark"] .fc .fc-scrollgrid,
+[data-theme="dark"] .fc .fc-scrollgrid td,
+[data-theme="dark"] .fc .fc-scrollgrid th,
+[data-theme="dark"] .fc .fc-timegrid-slot,
+[data-theme="dark"] .fc .fc-daygrid-day {
+ border-color: var(--box-header-top-border-color);
+}
+.dashboard-row-eq {
+ margin-bottom: 20px;
+}
+@media (min-width: 992px) {
+ .dashboard-row-eq {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: stretch;
+ }
+ .dashboard-row-eq > [class*="col-"] {
+ display: flex;
+ flex-direction: column;
+ float: none;
+ }
+ .dashboard-row-eq > [class*="col-"] > .box {
+ display: flex;
+ flex-direction: column;
+ flex: 1 1 auto;
+ width: 100%;
+ min-height: 100%;
+ }
+ .dashboard-row-eq > [class*="col-"] > .box > .box-body {
+ flex: 1 1 auto;
+ }
+ .dashboard-row-eq > [class*="col-"] > .box.collapsed-box {
+ flex: 0 0 auto;
+ min-height: 0;
+ }
+}
+.snipeit-calendar-filters {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+ margin-bottom: 12px;
+ padding-bottom: 8px;
+ border-bottom: 1px solid var(--box-header-top-border-color, #ddd);
+}
+.snipeit-calendar-filter-button {
+ padding: 4px 10px;
+ font-size: 13px;
+}
+.snipeit-calendar-filter-button::before {
+ content: "\2713\00a0";
+ font-weight: bold;
+ visibility: hidden;
+}
+.snipeit-calendar-filter-button.active,
+.snipeit-calendar-filter-button.active:hover,
+.snipeit-calendar-filter-button.active:focus,
+.snipeit-calendar-filter-button.active:active {
+ background-color: var(--main-theme-color) !important;
+ background-image: none !important;
+ border-color: hsl(from var(--main-theme-color) h s calc(l - 15)) !important;
+ color: var(--nav-primary-text-color) !important;
+ box-shadow: inset 0 0 0 2px hsl(from var(--main-theme-color) h s calc(l - 25)) !important;
+}
+.snipeit-calendar-filter-button.active::before {
+ visibility: visible;
+}
+.snipeit-calendar-filter-button.active:focus {
+ box-shadow: inset 0 0 0 2px hsl(from var(--main-theme-color) h s calc(l - 25)), 0 0 0 3px hsl(from var(--main-theme-color) h s calc(l + 20) / 0.5) !important;
+}
/*# sourceMappingURL=app.css.map*/
@@ -28395,6 +28487,98 @@ dl.table-display {
.info-panel-actions > .pull-right ~ .pull-right {
margin-left: 0;
}
+[data-theme="dark"] .fc {
+ --fc-border-color: var(--box-header-top-border-color);
+ --fc-page-bg-color: var(--box-bg);
+ --fc-neutral-bg-color: hsl(from var(--box-bg) h s calc(l + 5));
+ --fc-neutral-text-color: var(--color-fg);
+ --fc-list-event-hover-bg-color: hsl(from var(--box-bg) h s calc(l + 8));
+ --fc-today-bg-color: hsl(from var(--main-theme-color) h s calc(l - 25) / 0.25);
+}
+[data-theme="dark"] .fc .fc-col-header-cell,
+[data-theme="dark"] .fc .fc-list-day-cushion {
+ background-color: hsl(from var(--box-bg) h s calc(l + 5));
+ color: var(--color-fg);
+}
+[data-theme="dark"] .fc .fc-col-header-cell-cushion,
+[data-theme="dark"] .fc .fc-daygrid-day-number,
+[data-theme="dark"] .fc .fc-timegrid-axis-cushion,
+[data-theme="dark"] .fc .fc-timegrid-slot-label-cushion,
+[data-theme="dark"] .fc .fc-list-day-text,
+[data-theme="dark"] .fc .fc-list-day-side-text,
+[data-theme="dark"] .fc .fc-list-event-title,
+[data-theme="dark"] .fc .fc-list-event-time {
+ color: var(--color-fg);
+}
+[data-theme="dark"] .fc .fc-scrollgrid,
+[data-theme="dark"] .fc .fc-scrollgrid td,
+[data-theme="dark"] .fc .fc-scrollgrid th,
+[data-theme="dark"] .fc .fc-timegrid-slot,
+[data-theme="dark"] .fc .fc-daygrid-day {
+ border-color: var(--box-header-top-border-color);
+}
+.dashboard-row-eq {
+ margin-bottom: 20px;
+}
+@media (min-width: 992px) {
+ .dashboard-row-eq {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: stretch;
+ }
+ .dashboard-row-eq > [class*="col-"] {
+ display: flex;
+ flex-direction: column;
+ float: none;
+ }
+ .dashboard-row-eq > [class*="col-"] > .box {
+ display: flex;
+ flex-direction: column;
+ flex: 1 1 auto;
+ width: 100%;
+ min-height: 100%;
+ }
+ .dashboard-row-eq > [class*="col-"] > .box > .box-body {
+ flex: 1 1 auto;
+ }
+ .dashboard-row-eq > [class*="col-"] > .box.collapsed-box {
+ flex: 0 0 auto;
+ min-height: 0;
+ }
+}
+.snipeit-calendar-filters {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+ margin-bottom: 12px;
+ padding-bottom: 8px;
+ border-bottom: 1px solid var(--box-header-top-border-color, #ddd);
+}
+.snipeit-calendar-filter-button {
+ padding: 4px 10px;
+ font-size: 13px;
+}
+.snipeit-calendar-filter-button::before {
+ content: "\2713\00a0";
+ font-weight: bold;
+ visibility: hidden;
+}
+.snipeit-calendar-filter-button.active,
+.snipeit-calendar-filter-button.active:hover,
+.snipeit-calendar-filter-button.active:focus,
+.snipeit-calendar-filter-button.active:active {
+ background-color: var(--main-theme-color) !important;
+ background-image: none !important;
+ border-color: hsl(from var(--main-theme-color) h s calc(l - 15)) !important;
+ color: var(--nav-primary-text-color) !important;
+ box-shadow: inset 0 0 0 2px hsl(from var(--main-theme-color) h s calc(l - 25)) !important;
+}
+.snipeit-calendar-filter-button.active::before {
+ visibility: visible;
+}
+.snipeit-calendar-filter-button.active:focus {
+ box-shadow: inset 0 0 0 2px hsl(from var(--main-theme-color) h s calc(l - 25)), 0 0 0 3px hsl(from var(--main-theme-color) h s calc(l + 20) / 0.5) !important;
+}
/*# sourceMappingURL=overrides.css.map*/
\ No newline at end of file
diff --git a/public/js/dist/snipeit-calendar.js b/public/js/dist/snipeit-calendar.js
new file mode 100644
index 0000000000..0aecbcc999
--- /dev/null
+++ b/public/js/dist/snipeit-calendar.js
@@ -0,0 +1,15437 @@
+/******/ (() => { // webpackBootstrap
+/******/ "use strict";
+/******/ var __webpack_modules__ = ({
+
+/***/ "./node_modules/@fullcalendar/core/index.js":
+/*!**************************************************!*\
+ !*** ./node_modules/@fullcalendar/core/index.js ***!
+ \**************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ Calendar: () => (/* binding */ Calendar),
+/* harmony export */ JsonRequestError: () => (/* reexport safe */ _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.ae),
+/* harmony export */ createPlugin: () => (/* binding */ createPlugin),
+/* harmony export */ formatDate: () => (/* binding */ formatDate),
+/* harmony export */ formatRange: () => (/* binding */ formatRange),
+/* harmony export */ globalLocales: () => (/* binding */ globalLocales),
+/* harmony export */ globalPlugins: () => (/* binding */ globalPlugins),
+/* harmony export */ sliceEvents: () => (/* binding */ sliceEvents),
+/* harmony export */ version: () => (/* binding */ version)
+/* harmony export */ });
+/* harmony import */ var _internal_common_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./internal-common.js */ "./node_modules/@fullcalendar/core/internal-common.js");
+/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! preact */ "./node_modules/preact/dist/preact.module.js");
+/* harmony import */ var preact_compat__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! preact/compat */ "./node_modules/preact/compat/dist/compat.module.js");
+
+
+
+
+
+const globalLocales = [];
+
+const MINIMAL_RAW_EN_LOCALE = {
+ code: 'en',
+ week: {
+ dow: 0,
+ doy: 4, // 4 days need to be within the year to be considered the first week
+ },
+ direction: 'ltr',
+ buttonText: {
+ prev: 'prev',
+ next: 'next',
+ prevYear: 'prev year',
+ nextYear: 'next year',
+ year: 'year',
+ today: 'today',
+ month: 'month',
+ week: 'week',
+ day: 'day',
+ list: 'list',
+ },
+ weekText: 'W',
+ weekTextLong: 'Week',
+ closeHint: 'Close',
+ timeHint: 'Time',
+ eventHint: 'Event',
+ allDayText: 'all-day',
+ moreLinkText: 'more',
+ noEventsText: 'No events to display',
+};
+const RAW_EN_LOCALE = Object.assign(Object.assign({}, MINIMAL_RAW_EN_LOCALE), {
+ // Includes things we don't want other locales to inherit,
+ // things that derive from other translatable strings.
+ buttonHints: {
+ prev: 'Previous $0',
+ next: 'Next $0',
+ today(buttonText, unit) {
+ return (unit === 'day')
+ ? 'Today'
+ : `This ${buttonText}`;
+ },
+ }, viewHint: '$0 view', navLinkHint: 'Go to $0', moreLinkHint(eventCnt) {
+ return `Show ${eventCnt} more event${eventCnt === 1 ? '' : 's'}`;
+ } });
+function organizeRawLocales(explicitRawLocales) {
+ let defaultCode = explicitRawLocales.length > 0 ? explicitRawLocales[0].code : 'en';
+ let allRawLocales = globalLocales.concat(explicitRawLocales);
+ let rawLocaleMap = {
+ en: RAW_EN_LOCALE,
+ };
+ for (let rawLocale of allRawLocales) {
+ rawLocaleMap[rawLocale.code] = rawLocale;
+ }
+ return {
+ map: rawLocaleMap,
+ defaultCode,
+ };
+}
+function buildLocale(inputSingular, available) {
+ if (typeof inputSingular === 'object' && !Array.isArray(inputSingular)) {
+ return parseLocale(inputSingular.code, [inputSingular.code], inputSingular);
+ }
+ return queryLocale(inputSingular, available);
+}
+function queryLocale(codeArg, available) {
+ let codes = [].concat(codeArg || []); // will convert to array
+ let raw = queryRawLocale(codes, available) || RAW_EN_LOCALE;
+ return parseLocale(codeArg, codes, raw);
+}
+function queryRawLocale(codes, available) {
+ for (let i = 0; i < codes.length; i += 1) {
+ let parts = codes[i].toLocaleLowerCase().split('-');
+ for (let j = parts.length; j > 0; j -= 1) {
+ let simpleId = parts.slice(0, j).join('-');
+ if (available[simpleId]) {
+ return available[simpleId];
+ }
+ }
+ }
+ return null;
+}
+function parseLocale(codeArg, codes, raw) {
+ let merged = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.m)([MINIMAL_RAW_EN_LOCALE, raw], ['buttonText']);
+ delete merged.code; // don't want this part of the options
+ let { week } = merged;
+ delete merged.week;
+ return {
+ codeArg,
+ codes,
+ week,
+ simpleNumberFormat: new Intl.NumberFormat(codeArg),
+ options: merged,
+ };
+}
+
+// TODO: easier way to add new hooks? need to update a million things
+function createPlugin(input) {
+ return {
+ id: (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.g)(),
+ name: input.name,
+ premiumReleaseDate: input.premiumReleaseDate ? new Date(input.premiumReleaseDate) : undefined,
+ deps: input.deps || [],
+ reducers: input.reducers || [],
+ isLoadingFuncs: input.isLoadingFuncs || [],
+ contextInit: [].concat(input.contextInit || []),
+ eventRefiners: input.eventRefiners || {},
+ eventDefMemberAdders: input.eventDefMemberAdders || [],
+ eventSourceRefiners: input.eventSourceRefiners || {},
+ isDraggableTransformers: input.isDraggableTransformers || [],
+ eventDragMutationMassagers: input.eventDragMutationMassagers || [],
+ eventDefMutationAppliers: input.eventDefMutationAppliers || [],
+ dateSelectionTransformers: input.dateSelectionTransformers || [],
+ datePointTransforms: input.datePointTransforms || [],
+ dateSpanTransforms: input.dateSpanTransforms || [],
+ views: input.views || {},
+ viewPropsTransformers: input.viewPropsTransformers || [],
+ isPropsValid: input.isPropsValid || null,
+ externalDefTransforms: input.externalDefTransforms || [],
+ viewContainerAppends: input.viewContainerAppends || [],
+ eventDropTransformers: input.eventDropTransformers || [],
+ componentInteractions: input.componentInteractions || [],
+ calendarInteractions: input.calendarInteractions || [],
+ themeClasses: input.themeClasses || {},
+ eventSourceDefs: input.eventSourceDefs || [],
+ cmdFormatter: input.cmdFormatter,
+ recurringTypes: input.recurringTypes || [],
+ namedTimeZonedImpl: input.namedTimeZonedImpl,
+ initialView: input.initialView || '',
+ elementDraggingImpl: input.elementDraggingImpl,
+ optionChangeHandlers: input.optionChangeHandlers || {},
+ scrollGridImpl: input.scrollGridImpl || null,
+ listenerRefiners: input.listenerRefiners || {},
+ optionRefiners: input.optionRefiners || {},
+ propSetHandlers: input.propSetHandlers || {},
+ };
+}
+function buildPluginHooks(pluginDefs, globalDefs) {
+ let currentPluginIds = {};
+ let hooks = {
+ premiumReleaseDate: undefined,
+ reducers: [],
+ isLoadingFuncs: [],
+ contextInit: [],
+ eventRefiners: {},
+ eventDefMemberAdders: [],
+ eventSourceRefiners: {},
+ isDraggableTransformers: [],
+ eventDragMutationMassagers: [],
+ eventDefMutationAppliers: [],
+ dateSelectionTransformers: [],
+ datePointTransforms: [],
+ dateSpanTransforms: [],
+ views: {},
+ viewPropsTransformers: [],
+ isPropsValid: null,
+ externalDefTransforms: [],
+ viewContainerAppends: [],
+ eventDropTransformers: [],
+ componentInteractions: [],
+ calendarInteractions: [],
+ themeClasses: {},
+ eventSourceDefs: [],
+ cmdFormatter: null,
+ recurringTypes: [],
+ namedTimeZonedImpl: null,
+ initialView: '',
+ elementDraggingImpl: null,
+ optionChangeHandlers: {},
+ scrollGridImpl: null,
+ listenerRefiners: {},
+ optionRefiners: {},
+ propSetHandlers: {},
+ };
+ function addDefs(defs) {
+ for (let def of defs) {
+ const pluginName = def.name;
+ const currentId = currentPluginIds[pluginName];
+ if (currentId === undefined) {
+ currentPluginIds[pluginName] = def.id;
+ addDefs(def.deps);
+ hooks = combineHooks(hooks, def);
+ }
+ else if (currentId !== def.id) {
+ // different ID than the one already added
+ console.warn(`Duplicate plugin '${pluginName}'`);
+ }
+ }
+ }
+ if (pluginDefs) {
+ addDefs(pluginDefs);
+ }
+ addDefs(globalDefs);
+ return hooks;
+}
+function buildBuildPluginHooks() {
+ let currentOverrideDefs = [];
+ let currentGlobalDefs = [];
+ let currentHooks;
+ return (overrideDefs, globalDefs) => {
+ if (!currentHooks || !(0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.i)(overrideDefs, currentOverrideDefs) || !(0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.i)(globalDefs, currentGlobalDefs)) {
+ currentHooks = buildPluginHooks(overrideDefs, globalDefs);
+ }
+ currentOverrideDefs = overrideDefs;
+ currentGlobalDefs = globalDefs;
+ return currentHooks;
+ };
+}
+function combineHooks(hooks0, hooks1) {
+ return {
+ premiumReleaseDate: compareOptionalDates(hooks0.premiumReleaseDate, hooks1.premiumReleaseDate),
+ reducers: hooks0.reducers.concat(hooks1.reducers),
+ isLoadingFuncs: hooks0.isLoadingFuncs.concat(hooks1.isLoadingFuncs),
+ contextInit: hooks0.contextInit.concat(hooks1.contextInit),
+ eventRefiners: Object.assign(Object.assign({}, hooks0.eventRefiners), hooks1.eventRefiners),
+ eventDefMemberAdders: hooks0.eventDefMemberAdders.concat(hooks1.eventDefMemberAdders),
+ eventSourceRefiners: Object.assign(Object.assign({}, hooks0.eventSourceRefiners), hooks1.eventSourceRefiners),
+ isDraggableTransformers: hooks0.isDraggableTransformers.concat(hooks1.isDraggableTransformers),
+ eventDragMutationMassagers: hooks0.eventDragMutationMassagers.concat(hooks1.eventDragMutationMassagers),
+ eventDefMutationAppliers: hooks0.eventDefMutationAppliers.concat(hooks1.eventDefMutationAppliers),
+ dateSelectionTransformers: hooks0.dateSelectionTransformers.concat(hooks1.dateSelectionTransformers),
+ datePointTransforms: hooks0.datePointTransforms.concat(hooks1.datePointTransforms),
+ dateSpanTransforms: hooks0.dateSpanTransforms.concat(hooks1.dateSpanTransforms),
+ views: Object.assign(Object.assign({}, hooks0.views), hooks1.views),
+ viewPropsTransformers: hooks0.viewPropsTransformers.concat(hooks1.viewPropsTransformers),
+ isPropsValid: hooks1.isPropsValid || hooks0.isPropsValid,
+ externalDefTransforms: hooks0.externalDefTransforms.concat(hooks1.externalDefTransforms),
+ viewContainerAppends: hooks0.viewContainerAppends.concat(hooks1.viewContainerAppends),
+ eventDropTransformers: hooks0.eventDropTransformers.concat(hooks1.eventDropTransformers),
+ calendarInteractions: hooks0.calendarInteractions.concat(hooks1.calendarInteractions),
+ componentInteractions: hooks0.componentInteractions.concat(hooks1.componentInteractions),
+ themeClasses: Object.assign(Object.assign({}, hooks0.themeClasses), hooks1.themeClasses),
+ eventSourceDefs: hooks0.eventSourceDefs.concat(hooks1.eventSourceDefs),
+ cmdFormatter: hooks1.cmdFormatter || hooks0.cmdFormatter,
+ recurringTypes: hooks0.recurringTypes.concat(hooks1.recurringTypes),
+ namedTimeZonedImpl: hooks1.namedTimeZonedImpl || hooks0.namedTimeZonedImpl,
+ initialView: hooks0.initialView || hooks1.initialView,
+ elementDraggingImpl: hooks0.elementDraggingImpl || hooks1.elementDraggingImpl,
+ optionChangeHandlers: Object.assign(Object.assign({}, hooks0.optionChangeHandlers), hooks1.optionChangeHandlers),
+ scrollGridImpl: hooks1.scrollGridImpl || hooks0.scrollGridImpl,
+ listenerRefiners: Object.assign(Object.assign({}, hooks0.listenerRefiners), hooks1.listenerRefiners),
+ optionRefiners: Object.assign(Object.assign({}, hooks0.optionRefiners), hooks1.optionRefiners),
+ propSetHandlers: Object.assign(Object.assign({}, hooks0.propSetHandlers), hooks1.propSetHandlers),
+ };
+}
+function compareOptionalDates(date0, date1) {
+ if (date0 === undefined) {
+ return date1;
+ }
+ if (date1 === undefined) {
+ return date0;
+ }
+ return new Date(Math.max(date0.valueOf(), date1.valueOf()));
+}
+
+class StandardTheme extends _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.T {
+}
+StandardTheme.prototype.classes = {
+ root: 'fc-theme-standard',
+ tableCellShaded: 'fc-cell-shaded',
+ buttonGroup: 'fc-button-group',
+ button: 'fc-button fc-button-primary',
+ buttonActive: 'fc-button-active',
+};
+StandardTheme.prototype.baseIconClass = 'fc-icon';
+StandardTheme.prototype.iconClasses = {
+ close: 'fc-icon-x',
+ prev: 'fc-icon-chevron-left',
+ next: 'fc-icon-chevron-right',
+ prevYear: 'fc-icon-chevrons-left',
+ nextYear: 'fc-icon-chevrons-right',
+};
+StandardTheme.prototype.rtlIconClasses = {
+ prev: 'fc-icon-chevron-right',
+ next: 'fc-icon-chevron-left',
+ prevYear: 'fc-icon-chevrons-right',
+ nextYear: 'fc-icon-chevrons-left',
+};
+StandardTheme.prototype.iconOverrideOption = 'buttonIcons'; // TODO: make TS-friendly
+StandardTheme.prototype.iconOverrideCustomButtonOption = 'icon';
+StandardTheme.prototype.iconOverridePrefix = 'fc-icon-';
+
+function compileViewDefs(defaultConfigs, overrideConfigs) {
+ let hash = {};
+ let viewType;
+ for (viewType in defaultConfigs) {
+ ensureViewDef(viewType, hash, defaultConfigs, overrideConfigs);
+ }
+ for (viewType in overrideConfigs) {
+ ensureViewDef(viewType, hash, defaultConfigs, overrideConfigs);
+ }
+ return hash;
+}
+function ensureViewDef(viewType, hash, defaultConfigs, overrideConfigs) {
+ if (hash[viewType]) {
+ return hash[viewType];
+ }
+ let viewDef = buildViewDef(viewType, hash, defaultConfigs, overrideConfigs);
+ if (viewDef) {
+ hash[viewType] = viewDef;
+ }
+ return viewDef;
+}
+function buildViewDef(viewType, hash, defaultConfigs, overrideConfigs) {
+ let defaultConfig = defaultConfigs[viewType];
+ let overrideConfig = overrideConfigs[viewType];
+ let queryProp = (name) => ((defaultConfig && defaultConfig[name] !== null) ? defaultConfig[name] :
+ ((overrideConfig && overrideConfig[name] !== null) ? overrideConfig[name] : null));
+ let theComponent = queryProp('component');
+ let superType = queryProp('superType');
+ let superDef = null;
+ if (superType) {
+ if (superType === viewType) {
+ throw new Error('Can\'t have a custom view type that references itself');
+ }
+ superDef = ensureViewDef(superType, hash, defaultConfigs, overrideConfigs);
+ }
+ if (!theComponent && superDef) {
+ theComponent = superDef.component;
+ }
+ if (!theComponent) {
+ return null; // don't throw a warning, might be settings for a single-unit view
+ }
+ return {
+ type: viewType,
+ component: theComponent,
+ defaults: Object.assign(Object.assign({}, (superDef ? superDef.defaults : {})), (defaultConfig ? defaultConfig.rawOptions : {})),
+ overrides: Object.assign(Object.assign({}, (superDef ? superDef.overrides : {})), (overrideConfig ? overrideConfig.rawOptions : {})),
+ };
+}
+
+function parseViewConfigs(inputs) {
+ return (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.a)(inputs, parseViewConfig);
+}
+function parseViewConfig(input) {
+ let rawOptions = typeof input === 'function' ?
+ { component: input } :
+ input;
+ let { component } = rawOptions;
+ if (rawOptions.content) {
+ // TODO: remove content/classNames/didMount/etc from options?
+ component = createViewHookComponent(rawOptions);
+ }
+ else if (component && !(component.prototype instanceof _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.B)) {
+ // WHY?: people were using `component` property for `content`
+ // TODO: converge on one setting name
+ component = createViewHookComponent(Object.assign(Object.assign({}, rawOptions), { content: component }));
+ }
+ return {
+ superType: rawOptions.type,
+ component: component,
+ rawOptions, // includes type and component too :(
+ };
+}
+function createViewHookComponent(options) {
+ return (viewProps) => ((0,preact__WEBPACK_IMPORTED_MODULE_1__.createElement)(_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.V.Consumer, null, (context) => ((0,preact__WEBPACK_IMPORTED_MODULE_1__.createElement)(_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.C, { elTag: "div", elClasses: (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.b)(context.viewSpec), renderProps: Object.assign(Object.assign({}, viewProps), { nextDayThreshold: context.options.nextDayThreshold }), generatorName: undefined, customGenerator: options.content, classNameGenerator: options.classNames, didMount: options.didMount, willUnmount: options.willUnmount }))));
+}
+
+function buildViewSpecs(defaultInputs, optionOverrides, dynamicOptionOverrides, localeDefaults) {
+ let defaultConfigs = parseViewConfigs(defaultInputs);
+ let overrideConfigs = parseViewConfigs(optionOverrides.views);
+ let viewDefs = compileViewDefs(defaultConfigs, overrideConfigs);
+ return (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.a)(viewDefs, (viewDef) => buildViewSpec(viewDef, overrideConfigs, optionOverrides, dynamicOptionOverrides, localeDefaults));
+}
+function buildViewSpec(viewDef, overrideConfigs, optionOverrides, dynamicOptionOverrides, localeDefaults) {
+ let durationInput = viewDef.overrides.duration ||
+ viewDef.defaults.duration ||
+ dynamicOptionOverrides.duration ||
+ optionOverrides.duration;
+ let duration = null;
+ let durationUnit = '';
+ let singleUnit = '';
+ let singleUnitOverrides = {};
+ if (durationInput) {
+ duration = createDurationCached(durationInput);
+ if (duration) { // valid?
+ let denom = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.c)(duration);
+ durationUnit = denom.unit;
+ if (denom.value === 1) {
+ singleUnit = durationUnit;
+ singleUnitOverrides = overrideConfigs[durationUnit] ? overrideConfigs[durationUnit].rawOptions : {};
+ }
+ }
+ }
+ let queryButtonText = (optionsSubset) => {
+ let buttonTextMap = optionsSubset.buttonText || {};
+ let buttonTextKey = viewDef.defaults.buttonTextKey;
+ if (buttonTextKey != null && buttonTextMap[buttonTextKey] != null) {
+ return buttonTextMap[buttonTextKey];
+ }
+ if (buttonTextMap[viewDef.type] != null) {
+ return buttonTextMap[viewDef.type];
+ }
+ if (buttonTextMap[singleUnit] != null) {
+ return buttonTextMap[singleUnit];
+ }
+ return null;
+ };
+ let queryButtonTitle = (optionsSubset) => {
+ let buttonHints = optionsSubset.buttonHints || {};
+ let buttonKey = viewDef.defaults.buttonTextKey; // use same key as text
+ if (buttonKey != null && buttonHints[buttonKey] != null) {
+ return buttonHints[buttonKey];
+ }
+ if (buttonHints[viewDef.type] != null) {
+ return buttonHints[viewDef.type];
+ }
+ if (buttonHints[singleUnit] != null) {
+ return buttonHints[singleUnit];
+ }
+ return null;
+ };
+ return {
+ type: viewDef.type,
+ component: viewDef.component,
+ duration,
+ durationUnit,
+ singleUnit,
+ optionDefaults: viewDef.defaults,
+ optionOverrides: Object.assign(Object.assign({}, singleUnitOverrides), viewDef.overrides),
+ buttonTextOverride: queryButtonText(dynamicOptionOverrides) ||
+ queryButtonText(optionOverrides) || // constructor-specified buttonText lookup hash takes precedence
+ viewDef.overrides.buttonText,
+ buttonTextDefault: queryButtonText(localeDefaults) ||
+ viewDef.defaults.buttonText ||
+ queryButtonText(_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.e) ||
+ viewDef.type,
+ // not DRY
+ buttonTitleOverride: queryButtonTitle(dynamicOptionOverrides) ||
+ queryButtonTitle(optionOverrides) ||
+ viewDef.overrides.buttonHint,
+ buttonTitleDefault: queryButtonTitle(localeDefaults) ||
+ viewDef.defaults.buttonHint ||
+ queryButtonTitle(_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.e),
+ // will eventually fall back to buttonText
+ };
+}
+// hack to get memoization working
+let durationInputMap = {};
+function createDurationCached(durationInput) {
+ let json = JSON.stringify(durationInput);
+ let res = durationInputMap[json];
+ if (res === undefined) {
+ res = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.d)(durationInput);
+ durationInputMap[json] = res;
+ }
+ return res;
+}
+
+function reduceViewType(viewType, action) {
+ switch (action.type) {
+ case 'CHANGE_VIEW_TYPE':
+ viewType = action.viewType;
+ }
+ return viewType;
+}
+
+function reduceCurrentDate(currentDate, action) {
+ switch (action.type) {
+ case 'CHANGE_DATE':
+ return action.dateMarker;
+ default:
+ return currentDate;
+ }
+}
+// should be initialized once and stay constant
+// this will change too
+function getInitialDate(options, dateEnv, nowManager) {
+ let initialDateInput = options.initialDate;
+ // compute the initial ambig-timezone date
+ if (initialDateInput != null) {
+ return dateEnv.createMarker(initialDateInput);
+ }
+ return nowManager.getDateMarker();
+}
+
+function reduceDynamicOptionOverrides(dynamicOptionOverrides, action) {
+ switch (action.type) {
+ case 'SET_OPTION':
+ return Object.assign(Object.assign({}, dynamicOptionOverrides), { [action.optionName]: action.rawOptionValue });
+ default:
+ return dynamicOptionOverrides;
+ }
+}
+
+function reduceDateProfile(currentDateProfile, action, currentDate, dateProfileGenerator) {
+ let dp;
+ switch (action.type) {
+ case 'CHANGE_VIEW_TYPE':
+ return dateProfileGenerator.build(action.dateMarker || currentDate);
+ case 'CHANGE_DATE':
+ return dateProfileGenerator.build(action.dateMarker);
+ case 'PREV':
+ dp = dateProfileGenerator.buildPrev(currentDateProfile, currentDate);
+ if (dp.isValid) {
+ return dp;
+ }
+ break;
+ case 'NEXT':
+ dp = dateProfileGenerator.buildNext(currentDateProfile, currentDate);
+ if (dp.isValid) {
+ return dp;
+ }
+ break;
+ }
+ return currentDateProfile;
+}
+
+function initEventSources(calendarOptions, dateProfile, context) {
+ let activeRange = dateProfile ? dateProfile.activeRange : null;
+ return addSources({}, parseInitialSources(calendarOptions, context), activeRange, context);
+}
+function reduceEventSources(eventSources, action, dateProfile, context) {
+ let activeRange = dateProfile ? dateProfile.activeRange : null; // need this check?
+ switch (action.type) {
+ case 'ADD_EVENT_SOURCES': // already parsed
+ return addSources(eventSources, action.sources, activeRange, context);
+ case 'REMOVE_EVENT_SOURCE':
+ return removeSource(eventSources, action.sourceId);
+ case 'PREV': // TODO: how do we track all actions that affect dateProfile :(
+ case 'NEXT':
+ case 'CHANGE_DATE':
+ case 'CHANGE_VIEW_TYPE':
+ if (dateProfile) {
+ return fetchDirtySources(eventSources, activeRange, context);
+ }
+ return eventSources;
+ case 'FETCH_EVENT_SOURCES':
+ return fetchSourcesByIds(eventSources, action.sourceIds ? // why no type?
+ (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.f)(action.sourceIds) :
+ excludeStaticSources(eventSources, context), activeRange, action.isRefetch || false, context);
+ case 'RECEIVE_EVENTS':
+ case 'RECEIVE_EVENT_ERROR':
+ return receiveResponse(eventSources, action.sourceId, action.fetchId, action.fetchRange);
+ case 'REMOVE_ALL_EVENT_SOURCES':
+ return {};
+ default:
+ return eventSources;
+ }
+}
+function reduceEventSourcesNewTimeZone(eventSources, dateProfile, context) {
+ let activeRange = dateProfile ? dateProfile.activeRange : null; // need this check?
+ return fetchSourcesByIds(eventSources, excludeStaticSources(eventSources, context), activeRange, true, context);
+}
+function computeEventSourcesLoading(eventSources) {
+ for (let sourceId in eventSources) {
+ if (eventSources[sourceId].isFetching) {
+ return true;
+ }
+ }
+ return false;
+}
+function addSources(eventSourceHash, sources, fetchRange, context) {
+ let hash = {};
+ for (let source of sources) {
+ hash[source.sourceId] = source;
+ }
+ if (fetchRange) {
+ hash = fetchDirtySources(hash, fetchRange, context);
+ }
+ return Object.assign(Object.assign({}, eventSourceHash), hash);
+}
+function removeSource(eventSourceHash, sourceId) {
+ return (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.h)(eventSourceHash, (eventSource) => eventSource.sourceId !== sourceId);
+}
+function fetchDirtySources(sourceHash, fetchRange, context) {
+ return fetchSourcesByIds(sourceHash, (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.h)(sourceHash, (eventSource) => isSourceDirty(eventSource, fetchRange, context)), fetchRange, false, context);
+}
+function isSourceDirty(eventSource, fetchRange, context) {
+ if (!doesSourceNeedRange(eventSource, context)) {
+ return !eventSource.latestFetchId;
+ }
+ return !context.options.lazyFetching ||
+ !eventSource.fetchRange ||
+ eventSource.isFetching || // always cancel outdated in-progress fetches
+ fetchRange.start < eventSource.fetchRange.start ||
+ fetchRange.end > eventSource.fetchRange.end;
+}
+function fetchSourcesByIds(prevSources, sourceIdHash, fetchRange, isRefetch, context) {
+ let nextSources = {};
+ for (let sourceId in prevSources) {
+ let source = prevSources[sourceId];
+ if (sourceIdHash[sourceId]) {
+ nextSources[sourceId] = fetchSource(source, fetchRange, isRefetch, context);
+ }
+ else {
+ nextSources[sourceId] = source;
+ }
+ }
+ return nextSources;
+}
+function fetchSource(eventSource, fetchRange, isRefetch, context) {
+ let { options, calendarApi } = context;
+ let sourceDef = context.pluginHooks.eventSourceDefs[eventSource.sourceDefId];
+ let fetchId = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.g)();
+ sourceDef.fetch({
+ eventSource,
+ range: fetchRange,
+ isRefetch,
+ context,
+ }, (res) => {
+ let { rawEvents } = res;
+ if (options.eventSourceSuccess) {
+ rawEvents = options.eventSourceSuccess.call(calendarApi, rawEvents, res.response) || rawEvents;
+ }
+ if (eventSource.success) {
+ rawEvents = eventSource.success.call(calendarApi, rawEvents, res.response) || rawEvents;
+ }
+ context.dispatch({
+ type: 'RECEIVE_EVENTS',
+ sourceId: eventSource.sourceId,
+ fetchId,
+ fetchRange,
+ rawEvents,
+ });
+ }, (error) => {
+ let errorHandled = false;
+ if (options.eventSourceFailure) {
+ options.eventSourceFailure.call(calendarApi, error);
+ errorHandled = true;
+ }
+ if (eventSource.failure) {
+ eventSource.failure(error);
+ errorHandled = true;
+ }
+ if (!errorHandled) {
+ console.warn(error.message, error);
+ }
+ context.dispatch({
+ type: 'RECEIVE_EVENT_ERROR',
+ sourceId: eventSource.sourceId,
+ fetchId,
+ fetchRange,
+ error,
+ });
+ });
+ return Object.assign(Object.assign({}, eventSource), { isFetching: true, latestFetchId: fetchId });
+}
+function receiveResponse(sourceHash, sourceId, fetchId, fetchRange) {
+ let eventSource = sourceHash[sourceId];
+ if (eventSource && // not already removed
+ fetchId === eventSource.latestFetchId) {
+ return Object.assign(Object.assign({}, sourceHash), { [sourceId]: Object.assign(Object.assign({}, eventSource), { isFetching: false, fetchRange }) });
+ }
+ return sourceHash;
+}
+function excludeStaticSources(eventSources, context) {
+ return (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.h)(eventSources, (eventSource) => doesSourceNeedRange(eventSource, context));
+}
+function parseInitialSources(rawOptions, context) {
+ let refiners = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.j)(context);
+ let rawSources = [].concat(rawOptions.eventSources || []);
+ let sources = []; // parsed
+ if (rawOptions.initialEvents) {
+ rawSources.unshift(rawOptions.initialEvents);
+ }
+ if (rawOptions.events) {
+ rawSources.unshift(rawOptions.events);
+ }
+ for (let rawSource of rawSources) {
+ let source = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.p)(rawSource, context, refiners);
+ if (source) {
+ sources.push(source);
+ }
+ }
+ return sources;
+}
+function doesSourceNeedRange(eventSource, context) {
+ let defs = context.pluginHooks.eventSourceDefs;
+ return !defs[eventSource.sourceDefId].ignoreRange;
+}
+
+function reduceDateSelection(currentSelection, action) {
+ switch (action.type) {
+ case 'UNSELECT_DATES':
+ return null;
+ case 'SELECT_DATES':
+ return action.selection;
+ default:
+ return currentSelection;
+ }
+}
+
+function reduceSelectedEvent(currentInstanceId, action) {
+ switch (action.type) {
+ case 'UNSELECT_EVENT':
+ return '';
+ case 'SELECT_EVENT':
+ return action.eventInstanceId;
+ default:
+ return currentInstanceId;
+ }
+}
+
+function reduceEventDrag(currentDrag, action) {
+ let newDrag;
+ switch (action.type) {
+ case 'UNSET_EVENT_DRAG':
+ return null;
+ case 'SET_EVENT_DRAG':
+ newDrag = action.state;
+ return {
+ affectedEvents: newDrag.affectedEvents,
+ mutatedEvents: newDrag.mutatedEvents,
+ isEvent: newDrag.isEvent,
+ };
+ default:
+ return currentDrag;
+ }
+}
+
+function reduceEventResize(currentResize, action) {
+ let newResize;
+ switch (action.type) {
+ case 'UNSET_EVENT_RESIZE':
+ return null;
+ case 'SET_EVENT_RESIZE':
+ newResize = action.state;
+ return {
+ affectedEvents: newResize.affectedEvents,
+ mutatedEvents: newResize.mutatedEvents,
+ isEvent: newResize.isEvent,
+ };
+ default:
+ return currentResize;
+ }
+}
+
+function parseToolbars(calendarOptions, calendarOptionOverrides, theme, viewSpecs, calendarApi) {
+ let header = calendarOptions.headerToolbar ? parseToolbar(calendarOptions.headerToolbar, calendarOptions, calendarOptionOverrides, theme, viewSpecs, calendarApi) : null;
+ let footer = calendarOptions.footerToolbar ? parseToolbar(calendarOptions.footerToolbar, calendarOptions, calendarOptionOverrides, theme, viewSpecs, calendarApi) : null;
+ return { header, footer };
+}
+function parseToolbar(sectionStrHash, calendarOptions, calendarOptionOverrides, theme, viewSpecs, calendarApi) {
+ let sectionWidgets = {};
+ let viewsWithButtons = [];
+ let hasTitle = false;
+ for (let sectionName in sectionStrHash) {
+ let sectionStr = sectionStrHash[sectionName];
+ let sectionRes = parseSection(sectionStr, calendarOptions, calendarOptionOverrides, theme, viewSpecs, calendarApi);
+ sectionWidgets[sectionName] = sectionRes.widgets;
+ viewsWithButtons.push(...sectionRes.viewsWithButtons);
+ hasTitle = hasTitle || sectionRes.hasTitle;
+ }
+ return { sectionWidgets, viewsWithButtons, hasTitle };
+}
+/*
+BAD: querying icons and text here. should be done at render time
+*/
+function parseSection(sectionStr, calendarOptions, // defaults+overrides, then refined
+calendarOptionOverrides, // overrides only!, unrefined :(
+theme, viewSpecs, calendarApi) {
+ let isRtl = calendarOptions.direction === 'rtl';
+ let calendarCustomButtons = calendarOptions.customButtons || {};
+ let calendarButtonTextOverrides = calendarOptionOverrides.buttonText || {};
+ let calendarButtonText = calendarOptions.buttonText || {};
+ let calendarButtonHintOverrides = calendarOptionOverrides.buttonHints || {};
+ let calendarButtonHints = calendarOptions.buttonHints || {};
+ let sectionSubstrs = sectionStr ? sectionStr.split(' ') : [];
+ let viewsWithButtons = [];
+ let hasTitle = false;
+ let widgets = sectionSubstrs.map((buttonGroupStr) => (buttonGroupStr.split(',').map((buttonName) => {
+ if (buttonName === 'title') {
+ hasTitle = true;
+ return { buttonName };
+ }
+ let customButtonProps;
+ let viewSpec;
+ let buttonClick;
+ let buttonIcon; // only one of these will be set
+ let buttonText; // "
+ let buttonHint;
+ // ^ for the title="" attribute, for accessibility
+ if ((customButtonProps = calendarCustomButtons[buttonName])) {
+ buttonClick = (ev) => {
+ if (customButtonProps.click) {
+ customButtonProps.click.call(ev.target, ev, ev.target); // TODO: use Calendar this context?
+ }
+ };
+ (buttonIcon = theme.getCustomButtonIconClass(customButtonProps)) ||
+ (buttonIcon = theme.getIconClass(buttonName, isRtl)) ||
+ (buttonText = customButtonProps.text);
+ buttonHint = customButtonProps.hint || customButtonProps.text;
+ }
+ else if ((viewSpec = viewSpecs[buttonName])) {
+ viewsWithButtons.push(buttonName);
+ buttonClick = () => {
+ calendarApi.changeView(buttonName);
+ };
+ (buttonText = viewSpec.buttonTextOverride) ||
+ (buttonIcon = theme.getIconClass(buttonName, isRtl)) ||
+ (buttonText = viewSpec.buttonTextDefault);
+ let textFallback = viewSpec.buttonTextOverride ||
+ viewSpec.buttonTextDefault;
+ buttonHint = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.k)(viewSpec.buttonTitleOverride ||
+ viewSpec.buttonTitleDefault ||
+ calendarOptions.viewHint, [textFallback, buttonName], // view-name = buttonName
+ textFallback);
+ }
+ else if (calendarApi[buttonName]) { // a calendarApi method
+ buttonClick = () => {
+ calendarApi[buttonName]();
+ };
+ (buttonText = calendarButtonTextOverrides[buttonName]) ||
+ (buttonIcon = theme.getIconClass(buttonName, isRtl)) ||
+ (buttonText = calendarButtonText[buttonName]); // everything else is considered default
+ if (buttonName === 'prevYear' || buttonName === 'nextYear') {
+ let prevOrNext = buttonName === 'prevYear' ? 'prev' : 'next';
+ buttonHint = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.k)(calendarButtonHintOverrides[prevOrNext] ||
+ calendarButtonHints[prevOrNext], [
+ calendarButtonText.year || 'year',
+ 'year',
+ ], calendarButtonText[buttonName]);
+ }
+ else {
+ buttonHint = (navUnit) => (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.k)(calendarButtonHintOverrides[buttonName] ||
+ calendarButtonHints[buttonName], [
+ calendarButtonText[navUnit] || navUnit,
+ navUnit,
+ ], calendarButtonText[buttonName]);
+ }
+ }
+ return { buttonName, buttonClick, buttonIcon, buttonText, buttonHint };
+ })));
+ return { widgets, viewsWithButtons, hasTitle };
+}
+
+// always represents the current view. otherwise, it'd need to change value every time date changes
+class ViewImpl {
+ constructor(type, getCurrentData, dateEnv) {
+ this.type = type;
+ this.getCurrentData = getCurrentData;
+ this.dateEnv = dateEnv;
+ }
+ get calendar() {
+ return this.getCurrentData().calendarApi;
+ }
+ get title() {
+ return this.getCurrentData().viewTitle;
+ }
+ get activeStart() {
+ return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start);
+ }
+ get activeEnd() {
+ return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end);
+ }
+ get currentStart() {
+ return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start);
+ }
+ get currentEnd() {
+ return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end);
+ }
+ getOption(name) {
+ return this.getCurrentData().options[name]; // are the view-specific options
+ }
+}
+
+let eventSourceDef$2 = {
+ ignoreRange: true,
+ parseMeta(refined) {
+ if (Array.isArray(refined.events)) {
+ return refined.events;
+ }
+ return null;
+ },
+ fetch(arg, successCallback) {
+ successCallback({
+ rawEvents: arg.eventSource.meta,
+ });
+ },
+};
+const arrayEventSourcePlugin = createPlugin({
+ name: 'array-event-source',
+ eventSourceDefs: [eventSourceDef$2],
+});
+
+let eventSourceDef$1 = {
+ parseMeta(refined) {
+ if (typeof refined.events === 'function') {
+ return refined.events;
+ }
+ return null;
+ },
+ fetch(arg, successCallback, errorCallback) {
+ const { dateEnv } = arg.context;
+ const func = arg.eventSource.meta;
+ (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.u)(func.bind(null, (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.l)(arg.range, dateEnv)), (rawEvents) => successCallback({ rawEvents }), errorCallback);
+ },
+};
+const funcEventSourcePlugin = createPlugin({
+ name: 'func-event-source',
+ eventSourceDefs: [eventSourceDef$1],
+});
+
+const JSON_FEED_EVENT_SOURCE_REFINERS = {
+ method: String,
+ extraParams: _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.n,
+ startParam: String,
+ endParam: String,
+ timeZoneParam: String,
+};
+
+let eventSourceDef = {
+ parseMeta(refined) {
+ if (refined.url && (refined.format === 'json' || !refined.format)) {
+ return {
+ url: refined.url,
+ format: 'json',
+ method: (refined.method || 'GET').toUpperCase(),
+ extraParams: refined.extraParams,
+ startParam: refined.startParam,
+ endParam: refined.endParam,
+ timeZoneParam: refined.timeZoneParam,
+ };
+ }
+ return null;
+ },
+ fetch(arg, successCallback, errorCallback) {
+ const { meta } = arg.eventSource;
+ const requestParams = buildRequestParams(meta, arg.range, arg.context);
+ (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.r)(meta.method, meta.url, requestParams).then(([rawEvents, response]) => {
+ successCallback({ rawEvents, response });
+ }, errorCallback);
+ },
+};
+const jsonFeedEventSourcePlugin = createPlugin({
+ name: 'json-event-source',
+ eventSourceRefiners: JSON_FEED_EVENT_SOURCE_REFINERS,
+ eventSourceDefs: [eventSourceDef],
+});
+function buildRequestParams(meta, range, context) {
+ let { dateEnv, options } = context;
+ let startParam;
+ let endParam;
+ let timeZoneParam;
+ let customRequestParams;
+ let params = {};
+ startParam = meta.startParam;
+ if (startParam == null) {
+ startParam = options.startParam;
+ }
+ endParam = meta.endParam;
+ if (endParam == null) {
+ endParam = options.endParam;
+ }
+ timeZoneParam = meta.timeZoneParam;
+ if (timeZoneParam == null) {
+ timeZoneParam = options.timeZoneParam;
+ }
+ // retrieve any outbound GET/POST data from the options
+ if (typeof meta.extraParams === 'function') {
+ // supplied as a function that returns a key/value object
+ customRequestParams = meta.extraParams();
+ }
+ else {
+ // probably supplied as a straight key/value object
+ customRequestParams = meta.extraParams || {};
+ }
+ Object.assign(params, customRequestParams);
+ params[startParam] = dateEnv.formatIso(range.start);
+ params[endParam] = dateEnv.formatIso(range.end);
+ if (dateEnv.timeZone !== 'local') {
+ params[timeZoneParam] = dateEnv.timeZone;
+ }
+ return params;
+}
+
+const SIMPLE_RECURRING_REFINERS = {
+ daysOfWeek: _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.n,
+ startTime: _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.d,
+ endTime: _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.d,
+ duration: _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.d,
+ startRecur: _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.n,
+ endRecur: _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.n,
+};
+
+let recurring = {
+ parse(refined, dateEnv) {
+ if (refined.daysOfWeek || refined.startTime || refined.endTime || refined.startRecur || refined.endRecur) {
+ let recurringData = {
+ daysOfWeek: refined.daysOfWeek || null,
+ startTime: refined.startTime || null,
+ endTime: refined.endTime || null,
+ startRecur: refined.startRecur ? dateEnv.createMarker(refined.startRecur) : null,
+ endRecur: refined.endRecur ? dateEnv.createMarker(refined.endRecur) : null,
+ dateEnv,
+ };
+ let duration;
+ if (refined.duration) {
+ duration = refined.duration;
+ }
+ if (!duration && refined.startTime && refined.endTime) {
+ duration = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.s)(refined.endTime, refined.startTime);
+ }
+ return {
+ allDayGuess: Boolean(!refined.startTime && !refined.endTime),
+ duration,
+ typeData: recurringData, // doesn't need endTime anymore but oh well
+ };
+ }
+ return null;
+ },
+ expand(typeData, framingRange, dateEnv) {
+ let clippedFramingRange = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.o)(framingRange, { start: typeData.startRecur, end: typeData.endRecur });
+ if (clippedFramingRange) {
+ return expandRanges(typeData.daysOfWeek, typeData.startTime, typeData.dateEnv, dateEnv, clippedFramingRange);
+ }
+ return [];
+ },
+};
+const simpleRecurringEventsPlugin = createPlugin({
+ name: 'simple-recurring-event',
+ recurringTypes: [recurring],
+ eventRefiners: SIMPLE_RECURRING_REFINERS,
+});
+function expandRanges(daysOfWeek, startTime, eventDateEnv, calendarDateEnv, framingRange) {
+ let dowHash = daysOfWeek ? (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.f)(daysOfWeek) : null;
+ let dayMarker = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.q)(framingRange.start);
+ let endMarker = framingRange.end;
+ let instanceStarts = [];
+ // https://github.com/fullcalendar/fullcalendar/issues/7934
+ if (startTime) {
+ if (startTime.milliseconds < 0) {
+ // possible for next-day to have negative business hours that go into current day
+ endMarker = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.t)(endMarker, 1);
+ }
+ else if (startTime.milliseconds >= 1000 * 60 * 60 * 24) {
+ // possible for prev-day to have >24hr business hours that go into current day
+ dayMarker = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.t)(dayMarker, -1);
+ }
+ }
+ while (dayMarker < endMarker) {
+ let instanceStart;
+ // if everyday, or this particular day-of-week
+ if (!dowHash || dowHash[dayMarker.getUTCDay()]) {
+ if (startTime) {
+ instanceStart = calendarDateEnv.add(dayMarker, startTime);
+ }
+ else {
+ instanceStart = dayMarker;
+ }
+ instanceStarts.push(calendarDateEnv.createMarker(eventDateEnv.toDate(instanceStart)));
+ }
+ dayMarker = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.t)(dayMarker, 1);
+ }
+ return instanceStarts;
+}
+
+const changeHandlerPlugin = createPlugin({
+ name: 'change-handler',
+ optionChangeHandlers: {
+ events(events, context) {
+ handleEventSources([events], context);
+ },
+ eventSources: handleEventSources,
+ },
+});
+/*
+BUG: if `event` was supplied, all previously-given `eventSources` will be wiped out
+*/
+function handleEventSources(inputs, context) {
+ let unfoundSources = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.v)(context.getCurrentData().eventSources);
+ if (unfoundSources.length === 1 &&
+ inputs.length === 1 &&
+ Array.isArray(unfoundSources[0]._raw) &&
+ Array.isArray(inputs[0])) {
+ context.dispatch({
+ type: 'RESET_RAW_EVENTS',
+ sourceId: unfoundSources[0].sourceId,
+ rawEvents: inputs[0],
+ });
+ return;
+ }
+ let newInputs = [];
+ for (let input of inputs) {
+ let inputFound = false;
+ for (let i = 0; i < unfoundSources.length; i += 1) {
+ if (unfoundSources[i]._raw === input) {
+ unfoundSources.splice(i, 1); // delete
+ inputFound = true;
+ break;
+ }
+ }
+ if (!inputFound) {
+ newInputs.push(input);
+ }
+ }
+ for (let unfoundSource of unfoundSources) {
+ context.dispatch({
+ type: 'REMOVE_EVENT_SOURCE',
+ sourceId: unfoundSource.sourceId,
+ });
+ }
+ for (let newInput of newInputs) {
+ context.calendarApi.addEventSource(newInput);
+ }
+}
+
+function handleDateProfile(dateProfile, context) {
+ context.emitter.trigger('datesSet', Object.assign(Object.assign({}, (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.l)(dateProfile.activeRange, context.dateEnv)), { view: context.viewApi }));
+}
+
+function handleEventStore(eventStore, context) {
+ let { emitter } = context;
+ if (emitter.hasHandlers('eventsSet')) {
+ emitter.trigger('eventsSet', (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.w)(eventStore, context));
+ }
+}
+
+/*
+this array is exposed on the root namespace so that UMD plugins can add to it.
+see the rollup-bundles script.
+*/
+const globalPlugins = [
+ arrayEventSourcePlugin,
+ funcEventSourcePlugin,
+ jsonFeedEventSourcePlugin,
+ simpleRecurringEventsPlugin,
+ changeHandlerPlugin,
+ createPlugin({
+ name: 'misc',
+ isLoadingFuncs: [
+ (state) => computeEventSourcesLoading(state.eventSources),
+ ],
+ propSetHandlers: {
+ dateProfile: handleDateProfile,
+ eventStore: handleEventStore,
+ },
+ }),
+];
+
+class TaskRunner {
+ constructor(runTaskOption, drainedOption) {
+ this.runTaskOption = runTaskOption;
+ this.drainedOption = drainedOption;
+ this.queue = [];
+ this.delayedRunner = new _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.D(this.drain.bind(this));
+ }
+ request(task, delay) {
+ this.queue.push(task);
+ this.delayedRunner.request(delay);
+ }
+ pause(scope) {
+ this.delayedRunner.pause(scope);
+ }
+ resume(scope, force) {
+ this.delayedRunner.resume(scope, force);
+ }
+ drain() {
+ let { queue } = this;
+ while (queue.length) {
+ let completedTasks = [];
+ let task;
+ while ((task = queue.shift())) {
+ this.runTask(task);
+ completedTasks.push(task);
+ }
+ this.drained(completedTasks);
+ } // keep going, in case new tasks were added in the drained handler
+ }
+ runTask(task) {
+ if (this.runTaskOption) {
+ this.runTaskOption(task);
+ }
+ }
+ drained(completedTasks) {
+ if (this.drainedOption) {
+ this.drainedOption(completedTasks);
+ }
+ }
+}
+
+// Computes what the title at the top of the calendarApi should be for this view
+function buildTitle(dateProfile, viewOptions, dateEnv) {
+ let range;
+ // for views that span a large unit of time, show the proper interval, ignoring stray days before and after
+ if (/^(year|month)$/.test(dateProfile.currentRangeUnit)) {
+ range = dateProfile.currentRange;
+ }
+ else { // for day units or smaller, use the actual day range
+ range = dateProfile.activeRange;
+ }
+ return dateEnv.formatRange(range.start, range.end, (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.x)(viewOptions.titleFormat || buildTitleFormat(dateProfile)), {
+ isEndExclusive: dateProfile.isRangeAllDay,
+ defaultSeparator: viewOptions.titleRangeSeparator,
+ });
+}
+// Generates the format string that should be used to generate the title for the current date range.
+// Attempts to compute the most appropriate format if not explicitly specified with `titleFormat`.
+function buildTitleFormat(dateProfile) {
+ let { currentRangeUnit } = dateProfile;
+ if (currentRangeUnit === 'year') {
+ return { year: 'numeric' };
+ }
+ if (currentRangeUnit === 'month') {
+ return { year: 'numeric', month: 'long' }; // like "September 2014"
+ }
+ let days = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.y)(dateProfile.currentRange.start, dateProfile.currentRange.end);
+ if (days !== null && days > 1) {
+ // multi-day range. shorter, like "Sep 9 - 10 2014"
+ return { year: 'numeric', month: 'short', day: 'numeric' };
+ }
+ // one day. longer, like "September 9 2014"
+ return { year: 'numeric', month: 'long', day: 'numeric' };
+}
+
+/*
+TODO: test switching timezones when NO timezone plugin
+*/
+class CalendarNowManager {
+ constructor() {
+ this.resetListeners = new Set();
+ }
+ handleInput(dateEnv, // will change if timezone setup changed
+ nowInput) {
+ const oldDateEnv = this.dateEnv;
+ if (dateEnv !== oldDateEnv) {
+ if (typeof nowInput === 'function') {
+ this.nowFn = nowInput;
+ }
+ else if (!oldDateEnv) { // first time?
+ this.nowAnchorDate = dateEnv.toDate(nowInput
+ ? dateEnv.createMarker(nowInput)
+ : dateEnv.createNowMarker());
+ this.nowAnchorQueried = Date.now();
+ }
+ this.dateEnv = dateEnv;
+ // not first time? fire reset handlers
+ if (oldDateEnv) {
+ for (const resetListener of this.resetListeners.values()) {
+ resetListener();
+ }
+ }
+ }
+ }
+ getDateMarker() {
+ return this.nowAnchorDate
+ ? this.dateEnv.timestampToMarker(this.nowAnchorDate.valueOf() +
+ (Date.now() - this.nowAnchorQueried))
+ : this.dateEnv.createMarker(this.nowFn());
+ }
+ addResetListener(handler) {
+ this.resetListeners.add(handler);
+ }
+ removeResetListener(handler) {
+ this.resetListeners.delete(handler);
+ }
+}
+
+// in future refactor, do the redux-style function(state=initial) for initial-state
+// also, whatever is happening in constructor, have it happen in action queue too
+class CalendarDataManager {
+ constructor(props) {
+ this.computeCurrentViewData = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.z)(this._computeCurrentViewData);
+ this.organizeRawLocales = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.z)(organizeRawLocales);
+ this.buildLocale = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.z)(buildLocale);
+ this.buildPluginHooks = buildBuildPluginHooks();
+ this.buildDateEnv = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.z)(buildDateEnv$1);
+ this.buildTheme = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.z)(buildTheme);
+ this.parseToolbars = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.z)(parseToolbars);
+ this.buildViewSpecs = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.z)(buildViewSpecs);
+ this.buildDateProfileGenerator = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.A)(buildDateProfileGenerator);
+ this.buildViewApi = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.z)(buildViewApi);
+ this.buildViewUiProps = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.A)(buildViewUiProps);
+ this.buildEventUiBySource = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.z)(buildEventUiBySource, _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.E);
+ this.buildEventUiBases = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.z)(buildEventUiBases);
+ this.parseContextBusinessHours = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.A)(parseContextBusinessHours);
+ this.buildTitle = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.z)(buildTitle);
+ this.nowManager = new CalendarNowManager();
+ this.emitter = new _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.F();
+ this.actionRunner = new TaskRunner(this._handleAction.bind(this), this.updateData.bind(this));
+ this.currentCalendarOptionsInput = {};
+ this.currentCalendarOptionsRefined = {};
+ this.currentViewOptionsInput = {};
+ this.currentViewOptionsRefined = {};
+ this.currentCalendarOptionsRefiners = {};
+ this.optionsForRefining = [];
+ this.optionsForHandling = [];
+ this.getCurrentData = () => this.data;
+ this.dispatch = (action) => {
+ this.actionRunner.request(action); // protects against recursive calls to _handleAction
+ };
+ this.props = props;
+ this.actionRunner.pause();
+ this.nowManager = new CalendarNowManager();
+ let dynamicOptionOverrides = {};
+ let optionsData = this.computeOptionsData(props.optionOverrides, dynamicOptionOverrides, props.calendarApi);
+ let currentViewType = optionsData.calendarOptions.initialView || optionsData.pluginHooks.initialView;
+ let currentViewData = this.computeCurrentViewData(currentViewType, optionsData, props.optionOverrides, dynamicOptionOverrides);
+ // wire things up
+ // TODO: not DRY
+ props.calendarApi.currentDataManager = this;
+ this.emitter.setThisContext(props.calendarApi);
+ this.emitter.setOptions(currentViewData.options);
+ let calendarContext = {
+ nowManager: this.nowManager,
+ dateEnv: optionsData.dateEnv,
+ options: optionsData.calendarOptions,
+ pluginHooks: optionsData.pluginHooks,
+ calendarApi: props.calendarApi,
+ dispatch: this.dispatch,
+ emitter: this.emitter,
+ getCurrentData: this.getCurrentData,
+ };
+ let currentDate = getInitialDate(optionsData.calendarOptions, optionsData.dateEnv, this.nowManager);
+ let dateProfile = currentViewData.dateProfileGenerator.build(currentDate);
+ if (!(0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.G)(dateProfile.activeRange, currentDate)) {
+ currentDate = dateProfile.currentRange.start;
+ }
+ // needs to be after setThisContext
+ for (let callback of optionsData.pluginHooks.contextInit) {
+ callback(calendarContext);
+ }
+ // NOT DRY
+ let eventSources = initEventSources(optionsData.calendarOptions, dateProfile, calendarContext);
+ let initialState = {
+ dynamicOptionOverrides,
+ currentViewType,
+ currentDate,
+ dateProfile,
+ businessHours: this.parseContextBusinessHours(calendarContext),
+ eventSources,
+ eventUiBases: {},
+ eventStore: (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.H)(),
+ renderableEventStore: (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.H)(),
+ dateSelection: null,
+ eventSelection: '',
+ eventDrag: null,
+ eventResize: null,
+ selectionConfig: this.buildViewUiProps(calendarContext).selectionConfig,
+ };
+ let contextAndState = Object.assign(Object.assign({}, calendarContext), initialState);
+ for (let reducer of optionsData.pluginHooks.reducers) {
+ Object.assign(initialState, reducer(null, null, contextAndState));
+ }
+ if (computeIsLoading(initialState, calendarContext)) {
+ this.emitter.trigger('loading', true); // NOT DRY
+ }
+ this.state = initialState;
+ this.updateData();
+ this.actionRunner.resume();
+ }
+ resetOptions(optionOverrides, changedOptionNames) {
+ let { props } = this;
+ if (changedOptionNames === undefined) {
+ props.optionOverrides = optionOverrides;
+ }
+ else {
+ props.optionOverrides = Object.assign(Object.assign({}, (props.optionOverrides || {})), optionOverrides);
+ this.optionsForRefining.push(...changedOptionNames);
+ }
+ if (changedOptionNames === undefined || changedOptionNames.length) {
+ this.actionRunner.request({
+ type: 'NOTHING',
+ });
+ }
+ }
+ _handleAction(action) {
+ let { props, state, emitter } = this;
+ let dynamicOptionOverrides = reduceDynamicOptionOverrides(state.dynamicOptionOverrides, action);
+ let optionsData = this.computeOptionsData(props.optionOverrides, dynamicOptionOverrides, props.calendarApi);
+ let currentViewType = reduceViewType(state.currentViewType, action);
+ let currentViewData = this.computeCurrentViewData(currentViewType, optionsData, props.optionOverrides, dynamicOptionOverrides);
+ // wire things up
+ // TODO: not DRY
+ props.calendarApi.currentDataManager = this;
+ emitter.setThisContext(props.calendarApi);
+ emitter.setOptions(currentViewData.options);
+ let calendarContext = {
+ nowManager: this.nowManager,
+ dateEnv: optionsData.dateEnv,
+ options: optionsData.calendarOptions,
+ pluginHooks: optionsData.pluginHooks,
+ calendarApi: props.calendarApi,
+ dispatch: this.dispatch,
+ emitter,
+ getCurrentData: this.getCurrentData,
+ };
+ let { currentDate, dateProfile } = state;
+ if (this.data && this.data.dateProfileGenerator !== currentViewData.dateProfileGenerator) { // hack
+ dateProfile = currentViewData.dateProfileGenerator.build(currentDate);
+ }
+ currentDate = reduceCurrentDate(currentDate, action);
+ dateProfile = reduceDateProfile(dateProfile, action, currentDate, currentViewData.dateProfileGenerator);
+ if (action.type === 'PREV' || // TODO: move this logic into DateProfileGenerator
+ action.type === 'NEXT' || // "
+ !(0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.G)(dateProfile.currentRange, currentDate)) {
+ currentDate = dateProfile.currentRange.start;
+ }
+ let eventSources = reduceEventSources(state.eventSources, action, dateProfile, calendarContext);
+ let eventStore = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.I)(state.eventStore, action, eventSources, dateProfile, calendarContext);
+ let isEventsLoading = computeEventSourcesLoading(eventSources); // BAD. also called in this func in computeIsLoading
+ let renderableEventStore = (isEventsLoading && !currentViewData.options.progressiveEventRendering) ?
+ (state.renderableEventStore || eventStore) : // try from previous state
+ eventStore;
+ let { eventUiSingleBase, selectionConfig } = this.buildViewUiProps(calendarContext); // will memoize obj
+ let eventUiBySource = this.buildEventUiBySource(eventSources);
+ let eventUiBases = this.buildEventUiBases(renderableEventStore.defs, eventUiSingleBase, eventUiBySource);
+ let newState = {
+ dynamicOptionOverrides,
+ currentViewType,
+ currentDate,
+ dateProfile,
+ eventSources,
+ eventStore,
+ renderableEventStore,
+ selectionConfig,
+ eventUiBases,
+ businessHours: this.parseContextBusinessHours(calendarContext),
+ dateSelection: reduceDateSelection(state.dateSelection, action),
+ eventSelection: reduceSelectedEvent(state.eventSelection, action),
+ eventDrag: reduceEventDrag(state.eventDrag, action),
+ eventResize: reduceEventResize(state.eventResize, action),
+ };
+ let contextAndState = Object.assign(Object.assign({}, calendarContext), newState);
+ for (let reducer of optionsData.pluginHooks.reducers) {
+ Object.assign(newState, reducer(state, action, contextAndState)); // give the OLD state, for old value
+ }
+ let wasLoading = computeIsLoading(state, calendarContext);
+ let isLoading = computeIsLoading(newState, calendarContext);
+ // TODO: use propSetHandlers in plugin system
+ if (!wasLoading && isLoading) {
+ emitter.trigger('loading', true);
+ }
+ else if (wasLoading && !isLoading) {
+ emitter.trigger('loading', false);
+ }
+ this.state = newState;
+ if (props.onAction) {
+ props.onAction(action);
+ }
+ }
+ updateData() {
+ let { props, state } = this;
+ let oldData = this.data;
+ let optionsData = this.computeOptionsData(props.optionOverrides, state.dynamicOptionOverrides, props.calendarApi);
+ let currentViewData = this.computeCurrentViewData(state.currentViewType, optionsData, props.optionOverrides, state.dynamicOptionOverrides);
+ let data = this.data = Object.assign(Object.assign(Object.assign({ nowManager: this.nowManager, viewTitle: this.buildTitle(state.dateProfile, currentViewData.options, optionsData.dateEnv), calendarApi: props.calendarApi, dispatch: this.dispatch, emitter: this.emitter, getCurrentData: this.getCurrentData }, optionsData), currentViewData), state);
+ let changeHandlers = optionsData.pluginHooks.optionChangeHandlers;
+ let oldCalendarOptions = oldData && oldData.calendarOptions;
+ let newCalendarOptions = optionsData.calendarOptions;
+ if (oldCalendarOptions && oldCalendarOptions !== newCalendarOptions) {
+ if (oldCalendarOptions.timeZone !== newCalendarOptions.timeZone) {
+ // hack
+ state.eventSources = data.eventSources = reduceEventSourcesNewTimeZone(data.eventSources, state.dateProfile, data);
+ state.eventStore = data.eventStore = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.J)(data.eventStore, oldData.dateEnv, data.dateEnv);
+ state.renderableEventStore = data.renderableEventStore = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.J)(data.renderableEventStore, oldData.dateEnv, data.dateEnv);
+ }
+ for (let optionName in changeHandlers) {
+ if (this.optionsForHandling.indexOf(optionName) !== -1 ||
+ oldCalendarOptions[optionName] !== newCalendarOptions[optionName]) {
+ changeHandlers[optionName](newCalendarOptions[optionName], data);
+ }
+ }
+ }
+ this.optionsForHandling = [];
+ if (props.onData) {
+ props.onData(data);
+ }
+ }
+ computeOptionsData(optionOverrides, dynamicOptionOverrides, calendarApi) {
+ // TODO: blacklist options that are handled by optionChangeHandlers
+ if (!this.optionsForRefining.length &&
+ optionOverrides === this.stableOptionOverrides &&
+ dynamicOptionOverrides === this.stableDynamicOptionOverrides) {
+ return this.stableCalendarOptionsData;
+ }
+ let { refinedOptions, pluginHooks, localeDefaults, availableLocaleData, extra, } = this.processRawCalendarOptions(optionOverrides, dynamicOptionOverrides);
+ warnUnknownOptions(extra);
+ let dateEnv = this.buildDateEnv(refinedOptions.timeZone, refinedOptions.locale, refinedOptions.weekNumberCalculation, refinedOptions.firstDay, refinedOptions.weekText, pluginHooks, availableLocaleData, refinedOptions.defaultRangeSeparator);
+ let viewSpecs = this.buildViewSpecs(pluginHooks.views, this.stableOptionOverrides, this.stableDynamicOptionOverrides, localeDefaults);
+ let theme = this.buildTheme(refinedOptions, pluginHooks);
+ let toolbarConfig = this.parseToolbars(refinedOptions, this.stableOptionOverrides, theme, viewSpecs, calendarApi);
+ return this.stableCalendarOptionsData = {
+ calendarOptions: refinedOptions,
+ pluginHooks,
+ dateEnv,
+ viewSpecs,
+ theme,
+ toolbarConfig,
+ localeDefaults,
+ availableRawLocales: availableLocaleData.map,
+ };
+ }
+ // always called from behind a memoizer
+ processRawCalendarOptions(optionOverrides, dynamicOptionOverrides) {
+ let { locales, locale } = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.K)([
+ _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.e,
+ optionOverrides,
+ dynamicOptionOverrides,
+ ]);
+ let availableLocaleData = this.organizeRawLocales(locales);
+ let availableRawLocales = availableLocaleData.map;
+ let localeDefaults = this.buildLocale(locale || availableLocaleData.defaultCode, availableRawLocales).options;
+ let pluginHooks = this.buildPluginHooks(optionOverrides.plugins || [], globalPlugins);
+ let refiners = this.currentCalendarOptionsRefiners = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.L), _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.M), _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.N), pluginHooks.listenerRefiners), pluginHooks.optionRefiners);
+ let extra = {};
+ let raw = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.K)([
+ _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.e,
+ localeDefaults,
+ optionOverrides,
+ dynamicOptionOverrides,
+ ]);
+ let refined = {};
+ let currentRaw = this.currentCalendarOptionsInput;
+ let currentRefined = this.currentCalendarOptionsRefined;
+ let anyChanges = false;
+ for (let optionName in raw) {
+ if (this.optionsForRefining.indexOf(optionName) === -1 && (raw[optionName] === currentRaw[optionName] || (_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.O[optionName] &&
+ (optionName in currentRaw) &&
+ _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.O[optionName](currentRaw[optionName], raw[optionName])))) {
+ refined[optionName] = currentRefined[optionName];
+ }
+ else if (refiners[optionName]) {
+ refined[optionName] = refiners[optionName](raw[optionName]);
+ anyChanges = true;
+ }
+ else {
+ extra[optionName] = currentRaw[optionName];
+ }
+ }
+ if (anyChanges) {
+ this.currentCalendarOptionsInput = raw;
+ this.currentCalendarOptionsRefined = refined;
+ this.stableOptionOverrides = optionOverrides;
+ this.stableDynamicOptionOverrides = dynamicOptionOverrides;
+ }
+ this.optionsForHandling.push(...this.optionsForRefining);
+ this.optionsForRefining = [];
+ return {
+ rawOptions: this.currentCalendarOptionsInput,
+ refinedOptions: this.currentCalendarOptionsRefined,
+ pluginHooks,
+ availableLocaleData,
+ localeDefaults,
+ extra,
+ };
+ }
+ _computeCurrentViewData(viewType, optionsData, optionOverrides, dynamicOptionOverrides) {
+ let viewSpec = optionsData.viewSpecs[viewType];
+ if (!viewSpec) {
+ throw new Error(`viewType "${viewType}" is not available. Please make sure you've loaded all neccessary plugins`);
+ }
+ let { refinedOptions, extra } = this.processRawViewOptions(viewSpec, optionsData.pluginHooks, optionsData.localeDefaults, optionOverrides, dynamicOptionOverrides);
+ warnUnknownOptions(extra);
+ this.nowManager.handleInput(optionsData.dateEnv, refinedOptions.now);
+ let dateProfileGenerator = this.buildDateProfileGenerator({
+ dateProfileGeneratorClass: viewSpec.optionDefaults.dateProfileGeneratorClass,
+ nowManager: this.nowManager,
+ duration: viewSpec.duration,
+ durationUnit: viewSpec.durationUnit,
+ usesMinMaxTime: viewSpec.optionDefaults.usesMinMaxTime,
+ dateEnv: optionsData.dateEnv,
+ calendarApi: this.props.calendarApi,
+ slotMinTime: refinedOptions.slotMinTime,
+ slotMaxTime: refinedOptions.slotMaxTime,
+ showNonCurrentDates: refinedOptions.showNonCurrentDates,
+ dayCount: refinedOptions.dayCount,
+ dateAlignment: refinedOptions.dateAlignment,
+ dateIncrement: refinedOptions.dateIncrement,
+ hiddenDays: refinedOptions.hiddenDays,
+ weekends: refinedOptions.weekends,
+ validRangeInput: refinedOptions.validRange,
+ visibleRangeInput: refinedOptions.visibleRange,
+ fixedWeekCount: refinedOptions.fixedWeekCount,
+ });
+ let viewApi = this.buildViewApi(viewType, this.getCurrentData, optionsData.dateEnv);
+ return { viewSpec, options: refinedOptions, dateProfileGenerator, viewApi };
+ }
+ processRawViewOptions(viewSpec, pluginHooks, localeDefaults, optionOverrides, dynamicOptionOverrides) {
+ let raw = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.K)([
+ _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.e,
+ viewSpec.optionDefaults,
+ localeDefaults,
+ optionOverrides,
+ viewSpec.optionOverrides,
+ dynamicOptionOverrides,
+ ]);
+ let refiners = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.L), _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.M), _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.N), _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.P), pluginHooks.listenerRefiners), pluginHooks.optionRefiners);
+ let refined = {};
+ let currentRaw = this.currentViewOptionsInput;
+ let currentRefined = this.currentViewOptionsRefined;
+ let anyChanges = false;
+ let extra = {};
+ for (let optionName in raw) {
+ if (raw[optionName] === currentRaw[optionName] ||
+ (_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.O[optionName] &&
+ _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.O[optionName](raw[optionName], currentRaw[optionName]))) {
+ refined[optionName] = currentRefined[optionName];
+ }
+ else {
+ if (raw[optionName] === this.currentCalendarOptionsInput[optionName] ||
+ (_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.O[optionName] &&
+ _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.O[optionName](raw[optionName], this.currentCalendarOptionsInput[optionName]))) {
+ if (optionName in this.currentCalendarOptionsRefined) { // might be an "extra" prop
+ refined[optionName] = this.currentCalendarOptionsRefined[optionName];
+ }
+ }
+ else if (refiners[optionName]) {
+ refined[optionName] = refiners[optionName](raw[optionName]);
+ }
+ else {
+ extra[optionName] = raw[optionName];
+ }
+ anyChanges = true;
+ }
+ }
+ if (anyChanges) {
+ this.currentViewOptionsInput = raw;
+ this.currentViewOptionsRefined = refined;
+ }
+ return {
+ rawOptions: this.currentViewOptionsInput,
+ refinedOptions: this.currentViewOptionsRefined,
+ extra,
+ };
+ }
+}
+function buildDateEnv$1(timeZone, explicitLocale, weekNumberCalculation, firstDay, weekText, pluginHooks, availableLocaleData, defaultSeparator) {
+ let locale = buildLocale(explicitLocale || availableLocaleData.defaultCode, availableLocaleData.map);
+ return new _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.Q({
+ calendarSystem: 'gregory',
+ timeZone,
+ namedTimeZoneImpl: pluginHooks.namedTimeZonedImpl,
+ locale,
+ weekNumberCalculation,
+ firstDay,
+ weekText,
+ cmdFormatter: pluginHooks.cmdFormatter,
+ defaultSeparator,
+ });
+}
+function buildTheme(options, pluginHooks) {
+ let ThemeClass = pluginHooks.themeClasses[options.themeSystem] || StandardTheme;
+ return new ThemeClass(options);
+}
+function buildDateProfileGenerator(props) {
+ let DateProfileGeneratorClass = props.dateProfileGeneratorClass || _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.R;
+ return new DateProfileGeneratorClass(props);
+}
+function buildViewApi(type, getCurrentData, dateEnv) {
+ return new ViewImpl(type, getCurrentData, dateEnv);
+}
+function buildEventUiBySource(eventSources) {
+ return (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.a)(eventSources, (eventSource) => eventSource.ui);
+}
+function buildEventUiBases(eventDefs, eventUiSingleBase, eventUiBySource) {
+ let eventUiBases = { '': eventUiSingleBase };
+ for (let defId in eventDefs) {
+ let def = eventDefs[defId];
+ if (def.sourceId && eventUiBySource[def.sourceId]) {
+ eventUiBases[defId] = eventUiBySource[def.sourceId];
+ }
+ }
+ return eventUiBases;
+}
+function buildViewUiProps(calendarContext) {
+ let { options } = calendarContext;
+ return {
+ eventUiSingleBase: (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.S)({
+ display: options.eventDisplay,
+ editable: options.editable,
+ startEditable: options.eventStartEditable,
+ durationEditable: options.eventDurationEditable,
+ constraint: options.eventConstraint,
+ overlap: typeof options.eventOverlap === 'boolean' ? options.eventOverlap : undefined,
+ allow: options.eventAllow,
+ backgroundColor: options.eventBackgroundColor,
+ borderColor: options.eventBorderColor,
+ textColor: options.eventTextColor,
+ color: options.eventColor,
+ // classNames: options.eventClassNames // render hook will handle this
+ }, calendarContext),
+ selectionConfig: (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.S)({
+ constraint: options.selectConstraint,
+ overlap: typeof options.selectOverlap === 'boolean' ? options.selectOverlap : undefined,
+ allow: options.selectAllow,
+ }, calendarContext),
+ };
+}
+function computeIsLoading(state, context) {
+ for (let isLoadingFunc of context.pluginHooks.isLoadingFuncs) {
+ if (isLoadingFunc(state)) {
+ return true;
+ }
+ }
+ return false;
+}
+function parseContextBusinessHours(calendarContext) {
+ return (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.U)(calendarContext.options.businessHours, calendarContext);
+}
+function warnUnknownOptions(options, viewName) {
+ for (let optionName in options) {
+ console.warn(`Unknown option '${optionName}'` +
+ (viewName ? ` for view '${viewName}'` : ''));
+ }
+}
+
+class ToolbarSection extends _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.B {
+ render() {
+ let children = this.props.widgetGroups.map((widgetGroup) => this.renderWidgetGroup(widgetGroup));
+ return (0,preact__WEBPACK_IMPORTED_MODULE_1__.createElement)('div', { className: 'fc-toolbar-chunk' }, ...children);
+ }
+ renderWidgetGroup(widgetGroup) {
+ let { props } = this;
+ let { theme } = this.context;
+ let children = [];
+ let isOnlyButtons = true;
+ for (let widget of widgetGroup) {
+ let { buttonName, buttonClick, buttonText, buttonIcon, buttonHint } = widget;
+ if (buttonName === 'title') {
+ isOnlyButtons = false;
+ children.push((0,preact__WEBPACK_IMPORTED_MODULE_1__.createElement)("h2", { className: "fc-toolbar-title", id: props.titleId }, props.title));
+ }
+ else {
+ let isPressed = buttonName === props.activeButton;
+ let isDisabled = (!props.isTodayEnabled && buttonName === 'today') ||
+ (!props.isPrevEnabled && buttonName === 'prev') ||
+ (!props.isNextEnabled && buttonName === 'next');
+ let buttonClasses = [`fc-${buttonName}-button`, theme.getClass('button')];
+ if (isPressed) {
+ buttonClasses.push(theme.getClass('buttonActive'));
+ }
+ children.push((0,preact__WEBPACK_IMPORTED_MODULE_1__.createElement)("button", { type: "button", title: typeof buttonHint === 'function' ? buttonHint(props.navUnit) : buttonHint, disabled: isDisabled, "aria-pressed": isPressed, className: buttonClasses.join(' '), onClick: buttonClick }, buttonText || (buttonIcon ? (0,preact__WEBPACK_IMPORTED_MODULE_1__.createElement)("span", { className: buttonIcon, role: "img" }) : '')));
+ }
+ }
+ if (children.length > 1) {
+ let groupClassName = (isOnlyButtons && theme.getClass('buttonGroup')) || '';
+ return (0,preact__WEBPACK_IMPORTED_MODULE_1__.createElement)('div', { className: groupClassName }, ...children);
+ }
+ return children[0];
+ }
+}
+
+class Toolbar extends _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.B {
+ render() {
+ let { model, extraClassName } = this.props;
+ let forceLtr = false;
+ let startContent;
+ let endContent;
+ let sectionWidgets = model.sectionWidgets;
+ let centerContent = sectionWidgets.center;
+ if (sectionWidgets.left) {
+ forceLtr = true;
+ startContent = sectionWidgets.left;
+ }
+ else {
+ startContent = sectionWidgets.start;
+ }
+ if (sectionWidgets.right) {
+ forceLtr = true;
+ endContent = sectionWidgets.right;
+ }
+ else {
+ endContent = sectionWidgets.end;
+ }
+ let classNames = [
+ extraClassName || '',
+ 'fc-toolbar',
+ forceLtr ? 'fc-toolbar-ltr' : '',
+ ];
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: classNames.join(' ') },
+ this.renderSection('start', startContent || []),
+ this.renderSection('center', centerContent || []),
+ this.renderSection('end', endContent || [])));
+ }
+ renderSection(key, widgetGroups) {
+ let { props } = this;
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_1__.createElement)(ToolbarSection, { key: key, widgetGroups: widgetGroups, title: props.title, navUnit: props.navUnit, activeButton: props.activeButton, isTodayEnabled: props.isTodayEnabled, isPrevEnabled: props.isPrevEnabled, isNextEnabled: props.isNextEnabled, titleId: props.titleId }));
+ }
+}
+
+class ViewHarness extends _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.B {
+ constructor() {
+ super(...arguments);
+ this.state = {
+ availableWidth: null,
+ };
+ this.handleEl = (el) => {
+ this.el = el;
+ (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.W)(this.props.elRef, el);
+ this.updateAvailableWidth();
+ };
+ this.handleResize = () => {
+ this.updateAvailableWidth();
+ };
+ }
+ render() {
+ let { props, state } = this;
+ let { aspectRatio } = props;
+ let classNames = [
+ 'fc-view-harness',
+ (aspectRatio || props.liquid || props.height)
+ ? 'fc-view-harness-active' // harness controls the height
+ : 'fc-view-harness-passive', // let the view do the height
+ ];
+ let height = '';
+ let paddingBottom = '';
+ if (aspectRatio) {
+ if (state.availableWidth !== null) {
+ height = state.availableWidth / aspectRatio;
+ }
+ else {
+ // while waiting to know availableWidth, we can't set height to *zero*
+ // because will cause lots of unnecessary scrollbars within scrollgrid.
+ // BETTER: don't start rendering ANYTHING yet until we know container width
+ // NOTE: why not always use paddingBottom? Causes height oscillation (issue 5606)
+ paddingBottom = `${(1 / aspectRatio) * 100}%`;
+ }
+ }
+ else {
+ height = props.height || '';
+ }
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { "aria-labelledby": props.labeledById, ref: this.handleEl, className: classNames.join(' '), style: { height, paddingBottom } }, props.children));
+ }
+ componentDidMount() {
+ this.context.addResizeHandler(this.handleResize);
+ }
+ componentWillUnmount() {
+ this.context.removeResizeHandler(this.handleResize);
+ }
+ updateAvailableWidth() {
+ if (this.el && // needed. but why?
+ this.props.aspectRatio // aspectRatio is the only height setting that needs availableWidth
+ ) {
+ this.setState({ availableWidth: this.el.offsetWidth });
+ }
+ }
+}
+
+/*
+Detects when the user clicks on an event within a DateComponent
+*/
+class EventClicking extends _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.X {
+ constructor(settings) {
+ super(settings);
+ this.handleSegClick = (ev, segEl) => {
+ let { component } = this;
+ let { context } = component;
+ let seg = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.Y)(segEl);
+ if (seg && // might be the <div> surrounding the more link
+ component.isValidSegDownEl(ev.target)) {
+ // our way to simulate a link click for elements that can't be <a> tags
+ // grab before trigger fired in case trigger trashes DOM thru rerendering
+ let hasUrlContainer = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.Z)(ev.target, '.fc-event-forced-url');
+ let url = hasUrlContainer ? hasUrlContainer.querySelector('a[href]').href : '';
+ context.emitter.trigger('eventClick', {
+ el: segEl,
+ event: new _internal_common_js__WEBPACK_IMPORTED_MODULE_0__._(component.context, seg.eventRange.def, seg.eventRange.instance),
+ jsEvent: ev,
+ view: context.viewApi,
+ });
+ if (url && !ev.defaultPrevented) {
+ window.location.href = url;
+ }
+ }
+ };
+ this.destroy = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.$)(settings.el, 'click', '.fc-event', // on both fg and bg events
+ this.handleSegClick);
+ }
+}
+
+/*
+Triggers events and adds/removes core classNames when the user's pointer
+enters/leaves event-elements of a component.
+*/
+class EventHovering extends _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.X {
+ constructor(settings) {
+ super(settings);
+ // for simulating an eventMouseLeave when the event el is destroyed while mouse is over it
+ this.handleEventElRemove = (el) => {
+ if (el === this.currentSegEl) {
+ this.handleSegLeave(null, this.currentSegEl);
+ }
+ };
+ this.handleSegEnter = (ev, segEl) => {
+ if ((0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.Y)(segEl)) { // TODO: better way to make sure not hovering over more+ link or its wrapper
+ this.currentSegEl = segEl;
+ this.triggerEvent('eventMouseEnter', ev, segEl);
+ }
+ };
+ this.handleSegLeave = (ev, segEl) => {
+ if (this.currentSegEl) {
+ this.currentSegEl = null;
+ this.triggerEvent('eventMouseLeave', ev, segEl);
+ }
+ };
+ this.removeHoverListeners = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.a0)(settings.el, '.fc-event', // on both fg and bg events
+ this.handleSegEnter, this.handleSegLeave);
+ }
+ destroy() {
+ this.removeHoverListeners();
+ }
+ triggerEvent(publicEvName, ev, segEl) {
+ let { component } = this;
+ let { context } = component;
+ let seg = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.Y)(segEl);
+ if (!ev || component.isValidSegDownEl(ev.target)) {
+ context.emitter.trigger(publicEvName, {
+ el: segEl,
+ event: new _internal_common_js__WEBPACK_IMPORTED_MODULE_0__._(context, seg.eventRange.def, seg.eventRange.instance),
+ jsEvent: ev,
+ view: context.viewApi,
+ });
+ }
+ }
+}
+
+class CalendarContent extends _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.a1 {
+ constructor() {
+ super(...arguments);
+ this.buildViewContext = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.z)(_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.a2);
+ this.buildViewPropTransformers = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.z)(buildViewPropTransformers);
+ this.buildToolbarProps = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.z)(buildToolbarProps);
+ this.headerRef = (0,preact__WEBPACK_IMPORTED_MODULE_1__.createRef)();
+ this.footerRef = (0,preact__WEBPACK_IMPORTED_MODULE_1__.createRef)();
+ this.interactionsStore = {};
+ // eslint-disable-next-line
+ this.state = {
+ viewLabelId: (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.a3)(),
+ };
+ // Component Registration
+ // -----------------------------------------------------------------------------------------------------------------
+ this.registerInteractiveComponent = (component, settingsInput) => {
+ let settings = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.a4)(component, settingsInput);
+ let DEFAULT_INTERACTIONS = [
+ EventClicking,
+ EventHovering,
+ ];
+ let interactionClasses = DEFAULT_INTERACTIONS.concat(this.props.pluginHooks.componentInteractions);
+ let interactions = interactionClasses.map((TheInteractionClass) => new TheInteractionClass(settings));
+ this.interactionsStore[component.uid] = interactions;
+ _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.a5[component.uid] = settings;
+ };
+ this.unregisterInteractiveComponent = (component) => {
+ let listeners = this.interactionsStore[component.uid];
+ if (listeners) {
+ for (let listener of listeners) {
+ listener.destroy();
+ }
+ delete this.interactionsStore[component.uid];
+ }
+ delete _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.a5[component.uid];
+ };
+ // Resizing
+ // -----------------------------------------------------------------------------------------------------------------
+ this.resizeRunner = new _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.D(() => {
+ this.props.emitter.trigger('_resize', true); // should window resizes be considered "forced" ?
+ this.props.emitter.trigger('windowResize', { view: this.props.viewApi });
+ });
+ this.handleWindowResize = (ev) => {
+ let { options } = this.props;
+ if (options.handleWindowResize &&
+ ev.target === window // avoid jqui events
+ ) {
+ this.resizeRunner.request(options.windowResizeDelay);
+ }
+ };
+ }
+ /*
+ renders INSIDE of an outer div
+ */
+ render() {
+ let { props } = this;
+ let { toolbarConfig, options } = props;
+ let viewVGrow = false;
+ let viewHeight = '';
+ let viewAspectRatio;
+ if (props.isHeightAuto || props.forPrint) {
+ viewHeight = '';
+ }
+ else if (options.height != null) {
+ viewVGrow = true;
+ }
+ else if (options.contentHeight != null) {
+ viewHeight = options.contentHeight;
+ }
+ else {
+ viewAspectRatio = Math.max(options.aspectRatio, 0.5); // prevent from getting too tall
+ }
+ let viewContext = this.buildViewContext(props.viewSpec, props.viewApi, props.options, props.dateProfileGenerator, props.dateEnv, props.nowManager, props.theme, props.pluginHooks, props.dispatch, props.getCurrentData, props.emitter, props.calendarApi, this.registerInteractiveComponent, this.unregisterInteractiveComponent);
+ let viewLabelId = (toolbarConfig.header && toolbarConfig.header.hasTitle)
+ ? this.state.viewLabelId
+ : undefined;
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_1__.createElement)(_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.V.Provider, { value: viewContext },
+ (0,preact__WEBPACK_IMPORTED_MODULE_1__.createElement)(_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.a6, { unit: "day" }, (nowDate) => {
+ let toolbarProps = this.buildToolbarProps(props.viewSpec, props.dateProfile, props.dateProfileGenerator, props.currentDate, nowDate, props.viewTitle);
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_1__.createElement)(preact__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
+ toolbarConfig.header && ((0,preact__WEBPACK_IMPORTED_MODULE_1__.createElement)(Toolbar, Object.assign({ ref: this.headerRef, extraClassName: "fc-header-toolbar", model: toolbarConfig.header, titleId: viewLabelId }, toolbarProps))),
+ (0,preact__WEBPACK_IMPORTED_MODULE_1__.createElement)(ViewHarness, { liquid: viewVGrow, height: viewHeight, aspectRatio: viewAspectRatio, labeledById: viewLabelId },
+ this.renderView(props),
+ this.buildAppendContent()),
+ toolbarConfig.footer && ((0,preact__WEBPACK_IMPORTED_MODULE_1__.createElement)(Toolbar, Object.assign({ ref: this.footerRef, extraClassName: "fc-footer-toolbar", model: toolbarConfig.footer, titleId: "" }, toolbarProps)))));
+ })));
+ }
+ componentDidMount() {
+ let { props } = this;
+ this.calendarInteractions = props.pluginHooks.calendarInteractions
+ .map((CalendarInteractionClass) => new CalendarInteractionClass(props));
+ window.addEventListener('resize', this.handleWindowResize);
+ let { propSetHandlers } = props.pluginHooks;
+ for (let propName in propSetHandlers) {
+ propSetHandlers[propName](props[propName], props);
+ }
+ }
+ componentDidUpdate(prevProps) {
+ let { props } = this;
+ let { propSetHandlers } = props.pluginHooks;
+ for (let propName in propSetHandlers) {
+ if (props[propName] !== prevProps[propName]) {
+ propSetHandlers[propName](props[propName], props);
+ }
+ }
+ }
+ componentWillUnmount() {
+ window.removeEventListener('resize', this.handleWindowResize);
+ this.resizeRunner.clear();
+ for (let interaction of this.calendarInteractions) {
+ interaction.destroy();
+ }
+ this.props.emitter.trigger('_unmount');
+ }
+ buildAppendContent() {
+ let { props } = this;
+ let children = props.pluginHooks.viewContainerAppends.map((buildAppendContent) => buildAppendContent(props));
+ return (0,preact__WEBPACK_IMPORTED_MODULE_1__.createElement)(preact__WEBPACK_IMPORTED_MODULE_1__.Fragment, {}, ...children);
+ }
+ renderView(props) {
+ let { pluginHooks } = props;
+ let { viewSpec } = props;
+ let viewProps = {
+ dateProfile: props.dateProfile,
+ businessHours: props.businessHours,
+ eventStore: props.renderableEventStore,
+ eventUiBases: props.eventUiBases,
+ dateSelection: props.dateSelection,
+ eventSelection: props.eventSelection,
+ eventDrag: props.eventDrag,
+ eventResize: props.eventResize,
+ isHeightAuto: props.isHeightAuto,
+ forPrint: props.forPrint,
+ };
+ let transformers = this.buildViewPropTransformers(pluginHooks.viewPropsTransformers);
+ for (let transformer of transformers) {
+ Object.assign(viewProps, transformer.transform(viewProps, props));
+ }
+ let ViewComponent = viewSpec.component;
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_1__.createElement)(ViewComponent, Object.assign({}, viewProps)));
+ }
+}
+function buildToolbarProps(viewSpec, dateProfile, dateProfileGenerator, currentDate, now, title) {
+ // don't force any date-profiles to valid date profiles (the `false`) so that we can tell if it's invalid
+ let todayInfo = dateProfileGenerator.build(now, undefined, false); // TODO: need `undefined` or else INFINITE LOOP for some reason
+ let prevInfo = dateProfileGenerator.buildPrev(dateProfile, currentDate, false);
+ let nextInfo = dateProfileGenerator.buildNext(dateProfile, currentDate, false);
+ return {
+ title,
+ activeButton: viewSpec.type,
+ navUnit: viewSpec.singleUnit,
+ isTodayEnabled: todayInfo.isValid && !(0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.G)(dateProfile.currentRange, now),
+ isPrevEnabled: prevInfo.isValid,
+ isNextEnabled: nextInfo.isValid,
+ };
+}
+// Plugin
+// -----------------------------------------------------------------------------------------------------------------
+function buildViewPropTransformers(theClasses) {
+ return theClasses.map((TheClass) => new TheClass());
+}
+
+class Calendar extends _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.a7 {
+ constructor(el, optionOverrides = {}) {
+ super();
+ this.isRendering = false;
+ this.isRendered = false;
+ this.currentClassNames = [];
+ this.customContentRenderId = 0;
+ this.handleAction = (action) => {
+ // actions we know we want to render immediately
+ switch (action.type) {
+ case 'SET_EVENT_DRAG':
+ case 'SET_EVENT_RESIZE':
+ this.renderRunner.tryDrain();
+ }
+ };
+ this.handleData = (data) => {
+ this.currentData = data;
+ this.renderRunner.request(data.calendarOptions.rerenderDelay);
+ };
+ this.handleRenderRequest = () => {
+ if (this.isRendering) {
+ this.isRendered = true;
+ let { currentData } = this;
+ (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.a8)(() => {
+ (0,preact__WEBPACK_IMPORTED_MODULE_1__.render)((0,preact__WEBPACK_IMPORTED_MODULE_1__.createElement)(_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.a9, { options: currentData.calendarOptions, theme: currentData.theme, emitter: currentData.emitter }, (classNames, height, isHeightAuto, forPrint) => {
+ this.setClassNames(classNames);
+ this.setHeight(height);
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_1__.createElement)(_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.aa.Provider, { value: this.customContentRenderId },
+ (0,preact__WEBPACK_IMPORTED_MODULE_1__.createElement)(CalendarContent, Object.assign({ isHeightAuto: isHeightAuto, forPrint: forPrint }, currentData))));
+ }), this.el);
+ });
+ }
+ else if (this.isRendered) {
+ this.isRendered = false;
+ (0,preact__WEBPACK_IMPORTED_MODULE_1__.render)(null, this.el);
+ this.setClassNames([]);
+ this.setHeight('');
+ }
+ };
+ (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.ab)(el);
+ this.el = el;
+ this.renderRunner = new _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.D(this.handleRenderRequest);
+ new CalendarDataManager({
+ optionOverrides,
+ calendarApi: this,
+ onAction: this.handleAction,
+ onData: this.handleData,
+ });
+ }
+ render() {
+ let wasRendering = this.isRendering;
+ if (!wasRendering) {
+ this.isRendering = true;
+ }
+ else {
+ this.customContentRenderId += 1;
+ }
+ this.renderRunner.request();
+ if (wasRendering) {
+ this.updateSize();
+ }
+ }
+ destroy() {
+ if (this.isRendering) {
+ this.isRendering = false;
+ this.renderRunner.request();
+ }
+ }
+ updateSize() {
+ (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.a8)(() => {
+ super.updateSize();
+ });
+ }
+ batchRendering(func) {
+ this.renderRunner.pause('batchRendering');
+ func();
+ this.renderRunner.resume('batchRendering');
+ }
+ pauseRendering() {
+ this.renderRunner.pause('pauseRendering');
+ }
+ resumeRendering() {
+ this.renderRunner.resume('pauseRendering', true);
+ }
+ resetOptions(optionOverrides, changedOptionNames) {
+ this.currentDataManager.resetOptions(optionOverrides, changedOptionNames);
+ }
+ setClassNames(classNames) {
+ if (!(0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.i)(classNames, this.currentClassNames)) {
+ let { classList } = this.el;
+ for (let className of this.currentClassNames) {
+ classList.remove(className);
+ }
+ for (let className of classNames) {
+ classList.add(className);
+ }
+ this.currentClassNames = classNames;
+ }
+ }
+ setHeight(height) {
+ (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.ac)(this.el, 'height', height);
+ }
+}
+
+function formatDate(dateInput, options = {}) {
+ let dateEnv = buildDateEnv(options);
+ let formatter = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.x)(options);
+ let dateMeta = dateEnv.createMarkerMeta(dateInput);
+ if (!dateMeta) { // TODO: warning?
+ return '';
+ }
+ return dateEnv.format(dateMeta.marker, formatter, {
+ forcedTzo: dateMeta.forcedTzo,
+ });
+}
+function formatRange(startInput, endInput, options) {
+ let dateEnv = buildDateEnv(typeof options === 'object' && options ? options : {}); // pass in if non-null object
+ let formatter = (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.x)(options);
+ let startMeta = dateEnv.createMarkerMeta(startInput);
+ let endMeta = dateEnv.createMarkerMeta(endInput);
+ if (!startMeta || !endMeta) { // TODO: warning?
+ return '';
+ }
+ return dateEnv.formatRange(startMeta.marker, endMeta.marker, formatter, {
+ forcedStartTzo: startMeta.forcedTzo,
+ forcedEndTzo: endMeta.forcedTzo,
+ isEndExclusive: options.isEndExclusive,
+ defaultSeparator: _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.e.defaultRangeSeparator,
+ });
+}
+// TODO: more DRY and optimized
+function buildDateEnv(settings) {
+ let locale = buildLocale(settings.locale || 'en', organizeRawLocales([]).map); // TODO: don't hardcode 'en' everywhere
+ return new _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.Q(Object.assign(Object.assign({ timeZone: _internal_common_js__WEBPACK_IMPORTED_MODULE_0__.e.timeZone, calendarSystem: 'gregory' }, settings), { locale }));
+}
+
+// HELPERS
+/*
+if nextDayThreshold is specified, slicing is done in an all-day fashion.
+you can get nextDayThreshold from context.nextDayThreshold
+*/
+function sliceEvents(props, allDay) {
+ return (0,_internal_common_js__WEBPACK_IMPORTED_MODULE_0__.ad)(props.eventStore, props.eventUiBases, props.dateProfile.activeRange, allDay ? props.nextDayThreshold : null).fg;
+}
+
+const version = '6.1.21';
+
+
+
+
+/***/ }),
+
+/***/ "./node_modules/@fullcalendar/core/internal-common.js":
+/*!************************************************************!*\
+ !*** ./node_modules/@fullcalendar/core/internal-common.js ***!
+ \************************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ $: () => (/* binding */ listenBySelector),
+/* harmony export */ A: () => (/* binding */ memoizeObjArg),
+/* harmony export */ B: () => (/* binding */ BaseComponent),
+/* harmony export */ C: () => (/* binding */ ContentContainer),
+/* harmony export */ D: () => (/* binding */ DelayedRunner),
+/* harmony export */ E: () => (/* binding */ isPropsEqual),
+/* harmony export */ F: () => (/* binding */ Emitter),
+/* harmony export */ G: () => (/* binding */ rangeContainsMarker),
+/* harmony export */ H: () => (/* binding */ createEmptyEventStore),
+/* harmony export */ I: () => (/* binding */ reduceEventStore),
+/* harmony export */ J: () => (/* binding */ rezoneEventStoreDates),
+/* harmony export */ K: () => (/* binding */ mergeRawOptions),
+/* harmony export */ L: () => (/* binding */ BASE_OPTION_REFINERS),
+/* harmony export */ M: () => (/* binding */ CALENDAR_LISTENER_REFINERS),
+/* harmony export */ N: () => (/* binding */ CALENDAR_OPTION_REFINERS),
+/* harmony export */ O: () => (/* binding */ COMPLEX_OPTION_COMPARATORS),
+/* harmony export */ P: () => (/* binding */ VIEW_OPTION_REFINERS),
+/* harmony export */ Q: () => (/* binding */ DateEnv),
+/* harmony export */ R: () => (/* binding */ DateProfileGenerator),
+/* harmony export */ S: () => (/* binding */ createEventUi),
+/* harmony export */ T: () => (/* binding */ Theme),
+/* harmony export */ U: () => (/* binding */ parseBusinessHours),
+/* harmony export */ V: () => (/* binding */ ViewContextType),
+/* harmony export */ W: () => (/* binding */ setRef),
+/* harmony export */ X: () => (/* binding */ Interaction),
+/* harmony export */ Y: () => (/* binding */ getElSeg),
+/* harmony export */ Z: () => (/* binding */ elementClosest),
+/* harmony export */ _: () => (/* binding */ EventImpl),
+/* harmony export */ a: () => (/* binding */ mapHash),
+/* harmony export */ a$: () => (/* binding */ preventDefault),
+/* harmony export */ a0: () => (/* binding */ listenToHoverBySelector),
+/* harmony export */ a1: () => (/* binding */ PureComponent),
+/* harmony export */ a2: () => (/* binding */ buildViewContext),
+/* harmony export */ a3: () => (/* binding */ getUniqueDomId),
+/* harmony export */ a4: () => (/* binding */ parseInteractionSettings),
+/* harmony export */ a5: () => (/* binding */ interactionSettingsStore),
+/* harmony export */ a6: () => (/* binding */ NowTimer),
+/* harmony export */ a7: () => (/* binding */ CalendarImpl),
+/* harmony export */ a8: () => (/* binding */ flushSync),
+/* harmony export */ a9: () => (/* binding */ CalendarRoot),
+/* harmony export */ aA: () => (/* binding */ memoizeArraylike),
+/* harmony export */ aB: () => (/* binding */ memoizeHashlike),
+/* harmony export */ aC: () => (/* binding */ intersectRects),
+/* harmony export */ aD: () => (/* binding */ pointInsideRect),
+/* harmony export */ aE: () => (/* binding */ constrainPoint),
+/* harmony export */ aF: () => (/* binding */ getRectCenter),
+/* harmony export */ aG: () => (/* binding */ diffPoints),
+/* harmony export */ aH: () => (/* binding */ translateRect),
+/* harmony export */ aI: () => (/* binding */ compareObjs),
+/* harmony export */ aJ: () => (/* binding */ collectFromHash),
+/* harmony export */ aK: () => (/* binding */ findElements),
+/* harmony export */ aL: () => (/* binding */ findDirectChildren),
+/* harmony export */ aM: () => (/* binding */ removeElement),
+/* harmony export */ aN: () => (/* binding */ applyStyle),
+/* harmony export */ aO: () => (/* binding */ elementMatches),
+/* harmony export */ aP: () => (/* binding */ getEventTargetViaRoot),
+/* harmony export */ aQ: () => (/* binding */ parseClassNames),
+/* harmony export */ aR: () => (/* binding */ getCanVGrowWithinCell),
+/* harmony export */ aS: () => (/* binding */ mergeEventStores),
+/* harmony export */ aT: () => (/* binding */ getRelevantEvents),
+/* harmony export */ aU: () => (/* binding */ eventTupleToStore),
+/* harmony export */ aV: () => (/* binding */ combineEventUis),
+/* harmony export */ aW: () => (/* binding */ Splitter),
+/* harmony export */ aX: () => (/* binding */ getDayClassNames),
+/* harmony export */ aY: () => (/* binding */ getDateMeta),
+/* harmony export */ aZ: () => (/* binding */ getSlotClassNames),
+/* harmony export */ a_: () => (/* binding */ buildNavLinkAttrs),
+/* harmony export */ aa: () => (/* binding */ RenderId),
+/* harmony export */ ab: () => (/* binding */ ensureElHasStyles),
+/* harmony export */ ac: () => (/* binding */ applyStyleProp),
+/* harmony export */ ad: () => (/* binding */ sliceEventStore),
+/* harmony export */ ae: () => (/* binding */ JsonRequestError),
+/* harmony export */ af: () => (/* binding */ createContext),
+/* harmony export */ ag: () => (/* binding */ refineProps),
+/* harmony export */ ah: () => (/* binding */ createEventInstance),
+/* harmony export */ ai: () => (/* binding */ parseEventDef),
+/* harmony export */ aj: () => (/* binding */ refineEventDef),
+/* harmony export */ ak: () => (/* binding */ padStart),
+/* harmony export */ al: () => (/* binding */ isInt),
+/* harmony export */ am: () => (/* binding */ parseFieldSpecs),
+/* harmony export */ an: () => (/* binding */ compareByFieldSpecs),
+/* harmony export */ ao: () => (/* binding */ flexibleCompare),
+/* harmony export */ ap: () => (/* binding */ preventSelection),
+/* harmony export */ aq: () => (/* binding */ allowSelection),
+/* harmony export */ ar: () => (/* binding */ preventContextMenu),
+/* harmony export */ as: () => (/* binding */ allowContextMenu),
+/* harmony export */ at: () => (/* binding */ compareNumbers),
+/* harmony export */ au: () => (/* binding */ enableCursor),
+/* harmony export */ av: () => (/* binding */ disableCursor),
+/* harmony export */ aw: () => (/* binding */ computeVisibleDayRange),
+/* harmony export */ ax: () => (/* binding */ isMultiDayRange),
+/* harmony export */ ay: () => (/* binding */ diffDates),
+/* harmony export */ az: () => (/* binding */ removeExact),
+/* harmony export */ b: () => (/* binding */ buildViewClassNames),
+/* harmony export */ b$: () => (/* binding */ renderMicroColGroup),
+/* harmony export */ b0: () => (/* binding */ whenTransitionDone),
+/* harmony export */ b1: () => (/* binding */ computeInnerRect),
+/* harmony export */ b2: () => (/* binding */ computeEdges),
+/* harmony export */ b3: () => (/* binding */ getClippingParents),
+/* harmony export */ b4: () => (/* binding */ computeRect),
+/* harmony export */ b5: () => (/* binding */ rangesEqual),
+/* harmony export */ b6: () => (/* binding */ rangesIntersect),
+/* harmony export */ b7: () => (/* binding */ rangeContainsRange),
+/* harmony export */ b8: () => (/* binding */ PositionCache),
+/* harmony export */ b9: () => (/* binding */ ScrollController),
+/* harmony export */ bA: () => (/* binding */ getEntrySpanEnd),
+/* harmony export */ bB: () => (/* binding */ binarySearch),
+/* harmony export */ bC: () => (/* binding */ groupIntersectingEntries),
+/* harmony export */ bD: () => (/* binding */ intersectSpans),
+/* harmony export */ bE: () => (/* binding */ interactionSettingsToStore),
+/* harmony export */ bF: () => (/* binding */ ElementDragging),
+/* harmony export */ bG: () => (/* binding */ config),
+/* harmony export */ bH: () => (/* binding */ parseDragMeta),
+/* harmony export */ bI: () => (/* binding */ DayHeader),
+/* harmony export */ bJ: () => (/* binding */ computeFallbackHeaderFormat),
+/* harmony export */ bK: () => (/* binding */ TableDateCell),
+/* harmony export */ bL: () => (/* binding */ TableDowCell),
+/* harmony export */ bM: () => (/* binding */ DaySeriesModel),
+/* harmony export */ bN: () => (/* binding */ hasBgRendering),
+/* harmony export */ bO: () => (/* binding */ buildSegTimeText),
+/* harmony export */ bP: () => (/* binding */ sortEventSegs),
+/* harmony export */ bQ: () => (/* binding */ getSegMeta),
+/* harmony export */ bR: () => (/* binding */ buildEventRangeKey),
+/* harmony export */ bS: () => (/* binding */ getSegAnchorAttrs),
+/* harmony export */ bT: () => (/* binding */ DayTableModel),
+/* harmony export */ bU: () => (/* binding */ Slicer),
+/* harmony export */ bV: () => (/* binding */ applyMutationToEventStore),
+/* harmony export */ bW: () => (/* binding */ isPropsValid),
+/* harmony export */ bX: () => (/* binding */ isInteractionValid),
+/* harmony export */ bY: () => (/* binding */ isDateSelectionValid),
+/* harmony export */ bZ: () => (/* binding */ SimpleScrollGrid),
+/* harmony export */ b_: () => (/* binding */ hasShrinkWidth),
+/* harmony export */ ba: () => (/* binding */ ElementScrollController),
+/* harmony export */ bb: () => (/* binding */ WindowScrollController),
+/* harmony export */ bc: () => (/* binding */ DateComponent),
+/* harmony export */ bd: () => (/* binding */ isDateSpansEqual),
+/* harmony export */ be: () => (/* binding */ addMs),
+/* harmony export */ bf: () => (/* binding */ addWeeks),
+/* harmony export */ bg: () => (/* binding */ diffWeeks),
+/* harmony export */ bh: () => (/* binding */ diffWholeWeeks),
+/* harmony export */ bi: () => (/* binding */ diffDayAndTime),
+/* harmony export */ bj: () => (/* binding */ diffDays),
+/* harmony export */ bk: () => (/* binding */ isValidDate),
+/* harmony export */ bl: () => (/* binding */ asCleanDays),
+/* harmony export */ bm: () => (/* binding */ multiplyDuration),
+/* harmony export */ bn: () => (/* binding */ addDurations),
+/* harmony export */ bo: () => (/* binding */ asRoughMinutes),
+/* harmony export */ bp: () => (/* binding */ asRoughSeconds),
+/* harmony export */ bq: () => (/* binding */ asRoughMs),
+/* harmony export */ br: () => (/* binding */ wholeDivideDurations),
+/* harmony export */ bs: () => (/* binding */ formatIsoTimeString),
+/* harmony export */ bt: () => (/* binding */ formatDayString),
+/* harmony export */ bu: () => (/* binding */ buildIsoString),
+/* harmony export */ bv: () => (/* binding */ formatIsoMonthStr),
+/* harmony export */ bw: () => (/* binding */ NamedTimeZoneImpl),
+/* harmony export */ bx: () => (/* binding */ parse),
+/* harmony export */ by: () => (/* binding */ SegHierarchy),
+/* harmony export */ bz: () => (/* binding */ buildEntryKey),
+/* harmony export */ c: () => (/* binding */ greatestDurationDenominator),
+/* harmony export */ c0: () => (/* binding */ getScrollGridClassNames),
+/* harmony export */ c1: () => (/* binding */ getSectionClassNames),
+/* harmony export */ c2: () => (/* binding */ getSectionHasLiquidHeight),
+/* harmony export */ c3: () => (/* binding */ getAllowYScrolling),
+/* harmony export */ c4: () => (/* binding */ renderChunkContent),
+/* harmony export */ c5: () => (/* binding */ computeShrinkWidth),
+/* harmony export */ c6: () => (/* binding */ sanitizeShrinkWidth),
+/* harmony export */ c7: () => (/* binding */ isColPropsEqual),
+/* harmony export */ c8: () => (/* binding */ renderScrollShim),
+/* harmony export */ c9: () => (/* binding */ getStickyFooterScrollbar),
+/* harmony export */ ca: () => (/* binding */ getStickyHeaderDates),
+/* harmony export */ cb: () => (/* binding */ Scroller),
+/* harmony export */ cc: () => (/* binding */ getScrollbarWidths),
+/* harmony export */ cd: () => (/* binding */ RefMap),
+/* harmony export */ ce: () => (/* binding */ getIsRtlScrollbarOnLeft),
+/* harmony export */ cf: () => (/* binding */ ScrollResponder),
+/* harmony export */ cg: () => (/* binding */ StandardEvent),
+/* harmony export */ ch: () => (/* binding */ NowIndicatorContainer),
+/* harmony export */ ci: () => (/* binding */ DayCellContainer),
+/* harmony export */ cj: () => (/* binding */ hasCustomDayCellContent),
+/* harmony export */ ck: () => (/* binding */ EventContainer),
+/* harmony export */ cl: () => (/* binding */ renderFill),
+/* harmony export */ cm: () => (/* binding */ BgEvent),
+/* harmony export */ cn: () => (/* binding */ WeekNumberContainer),
+/* harmony export */ co: () => (/* binding */ MoreLinkContainer),
+/* harmony export */ cp: () => (/* binding */ computeEarliestSegStart),
+/* harmony export */ cq: () => (/* binding */ ViewContainer),
+/* harmony export */ cr: () => (/* binding */ triggerDateSelect),
+/* harmony export */ cs: () => (/* binding */ getDefaultEventEnd),
+/* harmony export */ ct: () => (/* binding */ injectStyles),
+/* harmony export */ cu: () => (/* binding */ buildElAttrs),
+/* harmony export */ cv: () => (/* binding */ CustomRenderingStore),
+/* harmony export */ d: () => (/* binding */ createDuration),
+/* harmony export */ e: () => (/* binding */ BASE_OPTION_DEFAULTS),
+/* harmony export */ f: () => (/* binding */ arrayToHash),
+/* harmony export */ g: () => (/* binding */ guid),
+/* harmony export */ h: () => (/* binding */ filterHash),
+/* harmony export */ i: () => (/* binding */ isArraysEqual),
+/* harmony export */ j: () => (/* binding */ buildEventSourceRefiners),
+/* harmony export */ k: () => (/* binding */ formatWithOrdinals),
+/* harmony export */ l: () => (/* binding */ buildRangeApiWithTimeZone),
+/* harmony export */ m: () => (/* binding */ mergeProps),
+/* harmony export */ n: () => (/* binding */ identity),
+/* harmony export */ o: () => (/* binding */ intersectRanges),
+/* harmony export */ p: () => (/* binding */ parseEventSource),
+/* harmony export */ q: () => (/* binding */ startOfDay),
+/* harmony export */ r: () => (/* binding */ requestJson),
+/* harmony export */ s: () => (/* binding */ subtractDurations),
+/* harmony export */ t: () => (/* binding */ addDays),
+/* harmony export */ u: () => (/* binding */ unpromisify),
+/* harmony export */ v: () => (/* binding */ hashValuesToArray),
+/* harmony export */ w: () => (/* binding */ buildEventApis),
+/* harmony export */ x: () => (/* binding */ createFormatter),
+/* harmony export */ y: () => (/* binding */ diffWholeDays),
+/* harmony export */ z: () => (/* binding */ memoize)
+/* harmony export */ });
+/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! preact */ "./node_modules/preact/dist/preact.module.js");
+/* harmony import */ var preact_compat__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! preact/compat */ "./node_modules/preact/compat/dist/compat.module.js");
+
+
+
+
+const styleTexts = [];
+const styleEls = new Map();
+function injectStyles(styleText) {
+ styleTexts.push(styleText);
+ styleEls.forEach((styleEl) => {
+ appendStylesTo(styleEl, styleText);
+ });
+}
+function ensureElHasStyles(el) {
+ if (el.isConnected && // sometimes true if SSR system simulates DOM
+ el.getRootNode // sometimes undefined if SSR system simulates DOM
+ ) {
+ registerStylesRoot(el.getRootNode());
+ }
+}
+function registerStylesRoot(rootNode) {
+ let styleEl = styleEls.get(rootNode);
+ if (!styleEl || !styleEl.isConnected) {
+ styleEl = rootNode.querySelector('style[data-fullcalendar]');
+ if (!styleEl) {
+ styleEl = document.createElement('style');
+ styleEl.setAttribute('data-fullcalendar', '');
+ const nonce = getNonceValue();
+ if (nonce) {
+ styleEl.nonce = nonce;
+ }
+ const parentEl = rootNode === document ? document.head : rootNode;
+ const insertBefore = rootNode === document
+ ? parentEl.querySelector('script,link[rel=stylesheet],link[as=style],style')
+ : parentEl.firstChild;
+ parentEl.insertBefore(styleEl, insertBefore);
+ }
+ styleEls.set(rootNode, styleEl);
+ hydrateStylesRoot(styleEl);
+ }
+}
+function hydrateStylesRoot(styleEl) {
+ for (const styleText of styleTexts) {
+ appendStylesTo(styleEl, styleText);
+ }
+}
+function appendStylesTo(styleEl, styleText) {
+ const { sheet } = styleEl;
+ const ruleCnt = sheet.cssRules.length;
+ styleText.split('}').forEach((styleStr, i) => {
+ styleStr = styleStr.trim();
+ if (styleStr) {
+ sheet.insertRule(styleStr + '}', ruleCnt + i);
+ }
+ });
+}
+// nonce
+// -------------------------------------------------------------------------------------------------
+let queriedNonceValue;
+function getNonceValue() {
+ if (queriedNonceValue === undefined) {
+ queriedNonceValue = queryNonceValue();
+ }
+ return queriedNonceValue;
+}
+/*
+TODO: discourage meta tag and instead put nonce attribute on placeholder <style> tag
+*/
+function queryNonceValue() {
+ const metaWithNonce = document.querySelector('meta[name="csp-nonce"]');
+ if (metaWithNonce && metaWithNonce.hasAttribute('content')) {
+ return metaWithNonce.getAttribute('content');
+ }
+ const elWithNonce = document.querySelector('script[nonce]');
+ if (elWithNonce) {
+ return elWithNonce.nonce || '';
+ }
+ return '';
+}
+// main
+// -------------------------------------------------------------------------------------------------
+if (typeof document !== 'undefined') {
+ registerStylesRoot(document);
+}
+
+var css_248z = ":root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url(\"data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=\") format(\"truetype\")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:\"\\e900\"}.fc-icon-chevron-right:before{content:\"\\e901\"}.fc-icon-chevrons-left:before{content:\"\\e902\"}.fc-icon-chevrons-right:before{content:\"\\e903\"}.fc-icon-minus-square:before{content:\"\\e904\"}.fc-icon-plus-square:before{content:\"\\e905\"}.fc-icon-x:before{content:\"\\e906\"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:\"\";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:\"\";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:\"\";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}";
+injectStyles(css_248z);
+
+class DelayedRunner {
+ constructor(drainedOption) {
+ this.drainedOption = drainedOption;
+ this.isRunning = false;
+ this.isDirty = false;
+ this.pauseDepths = {};
+ this.timeoutId = 0;
+ }
+ request(delay) {
+ this.isDirty = true;
+ if (!this.isPaused()) {
+ this.clearTimeout();
+ if (delay == null) {
+ this.tryDrain();
+ }
+ else {
+ this.timeoutId = setTimeout(// NOT OPTIMAL! TODO: look at debounce
+ this.tryDrain.bind(this), delay);
+ }
+ }
+ }
+ pause(scope = '') {
+ let { pauseDepths } = this;
+ pauseDepths[scope] = (pauseDepths[scope] || 0) + 1;
+ this.clearTimeout();
+ }
+ resume(scope = '', force) {
+ let { pauseDepths } = this;
+ if (scope in pauseDepths) {
+ if (force) {
+ delete pauseDepths[scope];
+ }
+ else {
+ pauseDepths[scope] -= 1;
+ let depth = pauseDepths[scope];
+ if (depth <= 0) {
+ delete pauseDepths[scope];
+ }
+ }
+ this.tryDrain();
+ }
+ }
+ isPaused() {
+ return Object.keys(this.pauseDepths).length;
+ }
+ tryDrain() {
+ if (!this.isRunning && !this.isPaused()) {
+ this.isRunning = true;
+ while (this.isDirty) {
+ this.isDirty = false;
+ this.drained(); // might set isDirty to true again
+ }
+ this.isRunning = false;
+ }
+ }
+ clear() {
+ this.clearTimeout();
+ this.isDirty = false;
+ this.pauseDepths = {};
+ }
+ clearTimeout() {
+ if (this.timeoutId) {
+ clearTimeout(this.timeoutId);
+ this.timeoutId = 0;
+ }
+ }
+ drained() {
+ if (this.drainedOption) {
+ this.drainedOption();
+ }
+ }
+}
+
+function removeElement(el) {
+ if (el.parentNode) {
+ el.parentNode.removeChild(el);
+ }
+}
+// Querying
+// ----------------------------------------------------------------------------------------------------------------
+function elementClosest(el, selector) {
+ if (el.closest) {
+ return el.closest(selector);
+ // really bad fallback for IE
+ // from https://developer.mozilla.org/en-US/docs/Web/API/Element/closest
+ }
+ if (!document.documentElement.contains(el)) {
+ return null;
+ }
+ do {
+ if (elementMatches(el, selector)) {
+ return el;
+ }
+ el = (el.parentElement || el.parentNode);
+ } while (el !== null && el.nodeType === 1);
+ return null;
+}
+function elementMatches(el, selector) {
+ let method = el.matches || el.matchesSelector || el.msMatchesSelector;
+ return method.call(el, selector);
+}
+// accepts multiple subject els
+// returns a real array. good for methods like forEach
+// TODO: accept the document
+function findElements(container, selector) {
+ let containers = container instanceof HTMLElement ? [container] : container;
+ let allMatches = [];
+ for (let i = 0; i < containers.length; i += 1) {
+ let matches = containers[i].querySelectorAll(selector);
+ for (let j = 0; j < matches.length; j += 1) {
+ allMatches.push(matches[j]);
+ }
+ }
+ return allMatches;
+}
+// accepts multiple subject els
+// only queries direct child elements // TODO: rename to findDirectChildren!
+function findDirectChildren(parent, selector) {
+ let parents = parent instanceof HTMLElement ? [parent] : parent;
+ let allMatches = [];
+ for (let i = 0; i < parents.length; i += 1) {
+ let childNodes = parents[i].children; // only ever elements
+ for (let j = 0; j < childNodes.length; j += 1) {
+ let childNode = childNodes[j];
+ if (!selector || elementMatches(childNode, selector)) {
+ allMatches.push(childNode);
+ }
+ }
+ }
+ return allMatches;
+}
+// Style
+// ----------------------------------------------------------------------------------------------------------------
+const PIXEL_PROP_RE = /(top|left|right|bottom|width|height)$/i;
+function applyStyle(el, props) {
+ for (let propName in props) {
+ applyStyleProp(el, propName, props[propName]);
+ }
+}
+function applyStyleProp(el, name, val) {
+ if (val == null) {
+ el.style[name] = '';
+ }
+ else if (typeof val === 'number' && PIXEL_PROP_RE.test(name)) {
+ el.style[name] = `${val}px`;
+ }
+ else {
+ el.style[name] = val;
+ }
+}
+// Event Handling
+// ----------------------------------------------------------------------------------------------------------------
+// if intercepting bubbled events at the document/window/body level,
+// and want to see originating element (the 'target'), use this util instead
+// of `ev.target` because it goes within web-component boundaries.
+function getEventTargetViaRoot(ev) {
+ var _a, _b;
+ return (_b = (_a = ev.composedPath) === null || _a === void 0 ? void 0 : _a.call(ev)[0]) !== null && _b !== void 0 ? _b : ev.target;
+}
+// Unique ID for DOM attribute
+let guid$1 = 0;
+function getUniqueDomId() {
+ guid$1 += 1;
+ return 'fc-dom-' + guid$1;
+}
+
+// Stops a mouse/touch event from doing it's native browser action
+function preventDefault(ev) {
+ ev.preventDefault();
+}
+// Event Delegation
+// ----------------------------------------------------------------------------------------------------------------
+function buildDelegationHandler(selector, handler) {
+ return (ev) => {
+ let matchedChild = elementClosest(ev.target, selector);
+ if (matchedChild) {
+ handler.call(matchedChild, ev, matchedChild);
+ }
+ };
+}
+function listenBySelector(container, eventType, selector, handler) {
+ let attachedHandler = buildDelegationHandler(selector, handler);
+ container.addEventListener(eventType, attachedHandler);
+ return () => {
+ container.removeEventListener(eventType, attachedHandler);
+ };
+}
+function listenToHoverBySelector(container, selector, onMouseEnter, onMouseLeave) {
+ let currentMatchedChild;
+ return listenBySelector(container, 'mouseover', selector, (mouseOverEv, matchedChild) => {
+ if (matchedChild !== currentMatchedChild) {
+ currentMatchedChild = matchedChild;
+ onMouseEnter(mouseOverEv, matchedChild);
+ let realOnMouseLeave = (mouseLeaveEv) => {
+ currentMatchedChild = null;
+ onMouseLeave(mouseLeaveEv, matchedChild);
+ matchedChild.removeEventListener('mouseleave', realOnMouseLeave);
+ };
+ // listen to the next mouseleave, and then unattach
+ matchedChild.addEventListener('mouseleave', realOnMouseLeave);
+ }
+ });
+}
+// Animation
+// ----------------------------------------------------------------------------------------------------------------
+const transitionEventNames = [
+ 'webkitTransitionEnd',
+ 'otransitionend',
+ 'oTransitionEnd',
+ 'msTransitionEnd',
+ 'transitionend',
+];
+// triggered only when the next single subsequent transition finishes
+function whenTransitionDone(el, callback) {
+ let realCallback = (ev) => {
+ callback(ev);
+ transitionEventNames.forEach((eventName) => {
+ el.removeEventListener(eventName, realCallback);
+ });
+ };
+ transitionEventNames.forEach((eventName) => {
+ el.addEventListener(eventName, realCallback); // cross-browser way to determine when the transition finishes
+ });
+}
+// ARIA workarounds
+// ----------------------------------------------------------------------------------------------------------------
+function createAriaClickAttrs(handler) {
+ return Object.assign({ onClick: handler }, createAriaKeyboardAttrs(handler));
+}
+function createAriaKeyboardAttrs(handler) {
+ return {
+ tabIndex: 0,
+ onKeyDown(ev) {
+ if (ev.key === 'Enter' || ev.key === ' ') {
+ handler(ev);
+ ev.preventDefault(); // if space, don't scroll down page
+ }
+ },
+ };
+}
+
+let guidNumber = 0;
+function guid() {
+ guidNumber += 1;
+ return String(guidNumber);
+}
+/* FullCalendar-specific DOM Utilities
+----------------------------------------------------------------------------------------------------------------------*/
+// Make the mouse cursor express that an event is not allowed in the current area
+function disableCursor() {
+ document.body.classList.add('fc-not-allowed');
+}
+// Returns the mouse cursor to its original look
+function enableCursor() {
+ document.body.classList.remove('fc-not-allowed');
+}
+/* Selection
+----------------------------------------------------------------------------------------------------------------------*/
+function preventSelection(el) {
+ el.style.userSelect = 'none';
+ el.style.webkitUserSelect = 'none';
+ el.addEventListener('selectstart', preventDefault);
+}
+function allowSelection(el) {
+ el.style.userSelect = '';
+ el.style.webkitUserSelect = '';
+ el.removeEventListener('selectstart', preventDefault);
+}
+/* Context Menu
+----------------------------------------------------------------------------------------------------------------------*/
+function preventContextMenu(el) {
+ el.addEventListener('contextmenu', preventDefault);
+}
+function allowContextMenu(el) {
+ el.removeEventListener('contextmenu', preventDefault);
+}
+function parseFieldSpecs(input) {
+ let specs = [];
+ let tokens = [];
+ let i;
+ let token;
+ if (typeof input === 'string') {
+ tokens = input.split(/\s*,\s*/);
+ }
+ else if (typeof input === 'function') {
+ tokens = [input];
+ }
+ else if (Array.isArray(input)) {
+ tokens = input;
+ }
+ for (i = 0; i < tokens.length; i += 1) {
+ token = tokens[i];
+ if (typeof token === 'string') {
+ specs.push(token.charAt(0) === '-' ?
+ { field: token.substring(1), order: -1 } :
+ { field: token, order: 1 });
+ }
+ else if (typeof token === 'function') {
+ specs.push({ func: token });
+ }
+ }
+ return specs;
+}
+function compareByFieldSpecs(obj0, obj1, fieldSpecs) {
+ let i;
+ let cmp;
+ for (i = 0; i < fieldSpecs.length; i += 1) {
+ cmp = compareByFieldSpec(obj0, obj1, fieldSpecs[i]);
+ if (cmp) {
+ return cmp;
+ }
+ }
+ return 0;
+}
+function compareByFieldSpec(obj0, obj1, fieldSpec) {
+ if (fieldSpec.func) {
+ return fieldSpec.func(obj0, obj1);
+ }
+ return flexibleCompare(obj0[fieldSpec.field], obj1[fieldSpec.field])
+ * (fieldSpec.order || 1);
+}
+function flexibleCompare(a, b) {
+ if (!a && !b) {
+ return 0;
+ }
+ if (b == null) {
+ return -1;
+ }
+ if (a == null) {
+ return 1;
+ }
+ if (typeof a === 'string' || typeof b === 'string') {
+ return String(a).localeCompare(String(b));
+ }
+ return a - b;
+}
+/* String Utilities
+----------------------------------------------------------------------------------------------------------------------*/
+function padStart(val, len) {
+ let s = String(val);
+ return '000'.substr(0, len - s.length) + s;
+}
+function formatWithOrdinals(formatter, args, fallbackText) {
+ if (typeof formatter === 'function') {
+ return formatter(...args);
+ }
+ if (typeof formatter === 'string') { // non-blank string
+ return args.reduce((str, arg, index) => (str.replace('$' + index, arg || '')), formatter);
+ }
+ return fallbackText;
+}
+/* Number Utilities
+----------------------------------------------------------------------------------------------------------------------*/
+function compareNumbers(a, b) {
+ return a - b;
+}
+function isInt(n) {
+ return n % 1 === 0;
+}
+/* FC-specific DOM dimension stuff
+----------------------------------------------------------------------------------------------------------------------*/
+function computeSmallestCellWidth(cellEl) {
+ let allWidthEl = cellEl.querySelector('.fc-scrollgrid-shrink-frame');
+ let contentWidthEl = cellEl.querySelector('.fc-scrollgrid-shrink-cushion');
+ if (!allWidthEl) {
+ throw new Error('needs fc-scrollgrid-shrink-frame className'); // TODO: use const
+ }
+ if (!contentWidthEl) {
+ throw new Error('needs fc-scrollgrid-shrink-cushion className');
+ }
+ return cellEl.getBoundingClientRect().width - allWidthEl.getBoundingClientRect().width + // the cell padding+border
+ contentWidthEl.getBoundingClientRect().width;
+}
+
+const INTERNAL_UNITS = ['years', 'months', 'days', 'milliseconds'];
+const PARSE_RE = /^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;
+// Parsing and Creation
+function createDuration(input, unit) {
+ if (typeof input === 'string') {
+ return parseString(input);
+ }
+ if (typeof input === 'object' && input) { // non-null object
+ return parseObject(input);
+ }
+ if (typeof input === 'number') {
+ return parseObject({ [unit || 'milliseconds']: input });
+ }
+ return null;
+}
+function parseString(s) {
+ let m = PARSE_RE.exec(s);
+ if (m) {
+ let sign = m[1] ? -1 : 1;
+ return {
+ years: 0,
+ months: 0,
+ days: sign * (m[2] ? parseInt(m[2], 10) : 0),
+ milliseconds: sign * ((m[3] ? parseInt(m[3], 10) : 0) * 60 * 60 * 1000 + // hours
+ (m[4] ? parseInt(m[4], 10) : 0) * 60 * 1000 + // minutes
+ (m[5] ? parseInt(m[5], 10) : 0) * 1000 + // seconds
+ (m[6] ? parseInt(m[6], 10) : 0) // ms
+ ),
+ };
+ }
+ return null;
+}
+function parseObject(obj) {
+ let duration = {
+ years: obj.years || obj.year || 0,
+ months: obj.months || obj.month || 0,
+ days: obj.days || obj.day || 0,
+ milliseconds: (obj.hours || obj.hour || 0) * 60 * 60 * 1000 + // hours
+ (obj.minutes || obj.minute || 0) * 60 * 1000 + // minutes
+ (obj.seconds || obj.second || 0) * 1000 + // seconds
+ (obj.milliseconds || obj.millisecond || obj.ms || 0), // ms
+ };
+ let weeks = obj.weeks || obj.week;
+ if (weeks) {
+ duration.days += weeks * 7;
+ duration.specifiedWeeks = true;
+ }
+ return duration;
+}
+// Equality
+function durationsEqual(d0, d1) {
+ return d0.years === d1.years &&
+ d0.months === d1.months &&
+ d0.days === d1.days &&
+ d0.milliseconds === d1.milliseconds;
+}
+function asCleanDays(dur) {
+ if (!dur.years && !dur.months && !dur.milliseconds) {
+ return dur.days;
+ }
+ return 0;
+}
+// Simple Math
+function addDurations(d0, d1) {
+ return {
+ years: d0.years + d1.years,
+ months: d0.months + d1.months,
+ days: d0.days + d1.days,
+ milliseconds: d0.milliseconds + d1.milliseconds,
+ };
+}
+function subtractDurations(d1, d0) {
+ return {
+ years: d1.years - d0.years,
+ months: d1.months - d0.months,
+ days: d1.days - d0.days,
+ milliseconds: d1.milliseconds - d0.milliseconds,
+ };
+}
+function multiplyDuration(d, n) {
+ return {
+ years: d.years * n,
+ months: d.months * n,
+ days: d.days * n,
+ milliseconds: d.milliseconds * n,
+ };
+}
+// Conversions
+// "Rough" because they are based on average-case Gregorian months/years
+function asRoughYears(dur) {
+ return asRoughDays(dur) / 365;
+}
+function asRoughMonths(dur) {
+ return asRoughDays(dur) / 30;
+}
+function asRoughDays(dur) {
+ return asRoughMs(dur) / 864e5;
+}
+function asRoughMinutes(dur) {
+ return asRoughMs(dur) / (1000 * 60);
+}
+function asRoughSeconds(dur) {
+ return asRoughMs(dur) / 1000;
+}
+function asRoughMs(dur) {
+ return dur.years * (365 * 864e5) +
+ dur.months * (30 * 864e5) +
+ dur.days * 864e5 +
+ dur.milliseconds;
+}
+// Advanced Math
+function wholeDivideDurations(numerator, denominator) {
+ let res = null;
+ for (let i = 0; i < INTERNAL_UNITS.length; i += 1) {
+ let unit = INTERNAL_UNITS[i];
+ if (denominator[unit]) {
+ let localRes = numerator[unit] / denominator[unit];
+ if (!isInt(localRes) || (res !== null && res !== localRes)) {
+ return null;
+ }
+ res = localRes;
+ }
+ else if (numerator[unit]) {
+ // needs to divide by something but can't!
+ return null;
+ }
+ }
+ return res;
+}
+function greatestDurationDenominator(dur) {
+ let ms = dur.milliseconds;
+ if (ms) {
+ if (ms % 1000 !== 0) {
+ return { unit: 'millisecond', value: ms };
+ }
+ if (ms % (1000 * 60) !== 0) {
+ return { unit: 'second', value: ms / 1000 };
+ }
+ if (ms % (1000 * 60 * 60) !== 0) {
+ return { unit: 'minute', value: ms / (1000 * 60) };
+ }
+ if (ms) {
+ return { unit: 'hour', value: ms / (1000 * 60 * 60) };
+ }
+ }
+ if (dur.days) {
+ if (dur.specifiedWeeks && dur.days % 7 === 0) {
+ return { unit: 'week', value: dur.days / 7 };
+ }
+ return { unit: 'day', value: dur.days };
+ }
+ if (dur.months) {
+ return { unit: 'month', value: dur.months };
+ }
+ if (dur.years) {
+ return { unit: 'year', value: dur.years };
+ }
+ return { unit: 'millisecond', value: 0 };
+}
+
+// TODO: new util arrayify?
+function removeExact(array, exactVal) {
+ let removeCnt = 0;
+ let i = 0;
+ while (i < array.length) {
+ if (array[i] === exactVal) {
+ array.splice(i, 1);
+ removeCnt += 1;
+ }
+ else {
+ i += 1;
+ }
+ }
+ return removeCnt;
+}
+function isArraysEqual(a0, a1, equalityFunc) {
+ if (a0 === a1) {
+ return true;
+ }
+ let len = a0.length;
+ let i;
+ if (len !== a1.length) { // not array? or not same length?
+ return false;
+ }
+ for (i = 0; i < len; i += 1) {
+ if (!(equalityFunc ? equalityFunc(a0[i], a1[i]) : a0[i] === a1[i])) {
+ return false;
+ }
+ }
+ return true;
+}
+
+const DAY_IDS = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'];
+// Adding
+function addWeeks(m, n) {
+ let a = dateToUtcArray(m);
+ a[2] += n * 7;
+ return arrayToUtcDate(a);
+}
+function addDays(m, n) {
+ let a = dateToUtcArray(m);
+ a[2] += n;
+ return arrayToUtcDate(a);
+}
+function addMs(m, n) {
+ let a = dateToUtcArray(m);
+ a[6] += n;
+ return arrayToUtcDate(a);
+}
+// Diffing (all return floats)
+// TODO: why not use ranges?
+function diffWeeks(m0, m1) {
+ return diffDays(m0, m1) / 7;
+}
+function diffDays(m0, m1) {
+ return (m1.valueOf() - m0.valueOf()) / (1000 * 60 * 60 * 24);
+}
+function diffHours(m0, m1) {
+ return (m1.valueOf() - m0.valueOf()) / (1000 * 60 * 60);
+}
+function diffMinutes(m0, m1) {
+ return (m1.valueOf() - m0.valueOf()) / (1000 * 60);
+}
+function diffSeconds(m0, m1) {
+ return (m1.valueOf() - m0.valueOf()) / 1000;
+}
+function diffDayAndTime(m0, m1) {
+ let m0day = startOfDay(m0);
+ let m1day = startOfDay(m1);
+ return {
+ years: 0,
+ months: 0,
+ days: Math.round(diffDays(m0day, m1day)),
+ milliseconds: (m1.valueOf() - m1day.valueOf()) - (m0.valueOf() - m0day.valueOf()),
+ };
+}
+// Diffing Whole Units
+function diffWholeWeeks(m0, m1) {
+ let d = diffWholeDays(m0, m1);
+ if (d !== null && d % 7 === 0) {
+ return d / 7;
+ }
+ return null;
+}
+function diffWholeDays(m0, m1) {
+ if (timeAsMs(m0) === timeAsMs(m1)) {
+ return Math.round(diffDays(m0, m1));
+ }
+ return null;
+}
+// Start-Of
+function startOfDay(m) {
+ return arrayToUtcDate([
+ m.getUTCFullYear(),
+ m.getUTCMonth(),
+ m.getUTCDate(),
+ ]);
+}
+function startOfHour(m) {
+ return arrayToUtcDate([
+ m.getUTCFullYear(),
+ m.getUTCMonth(),
+ m.getUTCDate(),
+ m.getUTCHours(),
+ ]);
+}
+function startOfMinute(m) {
+ return arrayToUtcDate([
+ m.getUTCFullYear(),
+ m.getUTCMonth(),
+ m.getUTCDate(),
+ m.getUTCHours(),
+ m.getUTCMinutes(),
+ ]);
+}
+function startOfSecond(m) {
+ return arrayToUtcDate([
+ m.getUTCFullYear(),
+ m.getUTCMonth(),
+ m.getUTCDate(),
+ m.getUTCHours(),
+ m.getUTCMinutes(),
+ m.getUTCSeconds(),
+ ]);
+}
+// Week Computation
+function weekOfYear(marker, dow, doy) {
+ let y = marker.getUTCFullYear();
+ let w = weekOfGivenYear(marker, y, dow, doy);
+ if (w < 1) {
+ return weekOfGivenYear(marker, y - 1, dow, doy);
+ }
+ let nextW = weekOfGivenYear(marker, y + 1, dow, doy);
+ if (nextW >= 1) {
+ return Math.min(w, nextW);
+ }
+ return w;
+}
+function weekOfGivenYear(marker, year, dow, doy) {
+ let firstWeekStart = arrayToUtcDate([year, 0, 1 + firstWeekOffset(year, dow, doy)]);
+ let dayStart = startOfDay(marker);
+ let days = Math.round(diffDays(firstWeekStart, dayStart));
+ return Math.floor(days / 7) + 1; // zero-indexed
+}
+// start-of-first-week - start-of-year
+function firstWeekOffset(year, dow, doy) {
+ // first-week day -- which january is always in the first week (4 for iso, 1 for other)
+ let fwd = 7 + dow - doy;
+ // first-week day local weekday -- which local weekday is fwd
+ let fwdlw = (7 + arrayToUtcDate([year, 0, fwd]).getUTCDay() - dow) % 7;
+ return -fwdlw + fwd - 1;
+}
+// Array Conversion
+function dateToLocalArray(date) {
+ return [
+ date.getFullYear(),
+ date.getMonth(),
+ date.getDate(),
+ date.getHours(),
+ date.getMinutes(),
+ date.getSeconds(),
+ date.getMilliseconds(),
+ ];
+}
+function arrayToLocalDate(a) {
+ return new Date(a[0], a[1] || 0, a[2] == null ? 1 : a[2], // day of month
+ a[3] || 0, a[4] || 0, a[5] || 0);
+}
+function dateToUtcArray(date) {
+ return [
+ date.getUTCFullYear(),
+ date.getUTCMonth(),
+ date.getUTCDate(),
+ date.getUTCHours(),
+ date.getUTCMinutes(),
+ date.getUTCSeconds(),
+ date.getUTCMilliseconds(),
+ ];
+}
+function arrayToUtcDate(a) {
+ // according to web standards (and Safari), a month index is required.
+ // massage if only given a year.
+ if (a.length === 1) {
+ a = a.concat([0]);
+ }
+ return new Date(Date.UTC(...a));
+}
+// Other Utils
+function isValidDate(m) {
+ return !isNaN(m.valueOf());
+}
+function timeAsMs(m) {
+ return m.getUTCHours() * 1000 * 60 * 60 +
+ m.getUTCMinutes() * 1000 * 60 +
+ m.getUTCSeconds() * 1000 +
+ m.getUTCMilliseconds();
+}
+
+// timeZoneOffset is in minutes
+function buildIsoString(marker, timeZoneOffset, stripZeroTime = false) {
+ let s = marker.toISOString();
+ s = s.replace('.000', '');
+ if (stripZeroTime) {
+ s = s.replace('T00:00:00Z', '');
+ }
+ if (s.length > 10) { // time part wasn't stripped, can add timezone info
+ if (timeZoneOffset == null) {
+ s = s.replace('Z', '');
+ }
+ else if (timeZoneOffset !== 0) {
+ s = s.replace('Z', formatTimeZoneOffset(timeZoneOffset, true));
+ }
+ // otherwise, its UTC-0 and we want to keep the Z
+ }
+ return s;
+}
+// formats the date, but with no time part
+// TODO: somehow merge with buildIsoString and stripZeroTime
+// TODO: rename. omit "string"
+function formatDayString(marker) {
+ return marker.toISOString().replace(/T.*$/, '');
+}
+function formatIsoMonthStr(marker) {
+ return marker.toISOString().match(/^\d{4}-\d{2}/)[0];
+}
+// TODO: use Date::toISOString and use everything after the T?
+function formatIsoTimeString(marker) {
+ return padStart(marker.getUTCHours(), 2) + ':' +
+ padStart(marker.getUTCMinutes(), 2) + ':' +
+ padStart(marker.getUTCSeconds(), 2);
+}
+function formatTimeZoneOffset(minutes, doIso = false) {
+ let sign = minutes < 0 ? '-' : '+';
+ let abs = Math.abs(minutes);
+ let hours = Math.floor(abs / 60);
+ let mins = Math.round(abs % 60);
+ if (doIso) {
+ return `${sign + padStart(hours, 2)}:${padStart(mins, 2)}`;
+ }
+ return `GMT${sign}${hours}${mins ? `:${padStart(mins, 2)}` : ''}`;
+}
+
+function memoize(workerFunc, resEquality, teardownFunc) {
+ let currentArgs;
+ let currentRes;
+ return function (...newArgs) {
+ if (!currentArgs) {
+ currentRes = workerFunc.apply(this, newArgs);
+ }
+ else if (!isArraysEqual(currentArgs, newArgs)) {
+ if (teardownFunc) {
+ teardownFunc(currentRes);
+ }
+ let res = workerFunc.apply(this, newArgs);
+ if (!resEquality || !resEquality(res, currentRes)) {
+ currentRes = res;
+ }
+ }
+ currentArgs = newArgs;
+ return currentRes;
+ };
+}
+function memoizeObjArg(workerFunc, resEquality, teardownFunc) {
+ let currentArg;
+ let currentRes;
+ return (newArg) => {
+ if (!currentArg) {
+ currentRes = workerFunc.call(this, newArg);
+ }
+ else if (!isPropsEqual(currentArg, newArg)) {
+ if (teardownFunc) {
+ teardownFunc(currentRes);
+ }
+ let res = workerFunc.call(this, newArg);
+ if (!resEquality || !resEquality(res, currentRes)) {
+ currentRes = res;
+ }
+ }
+ currentArg = newArg;
+ return currentRes;
+ };
+}
+function memoizeArraylike(// used at all?
+workerFunc, resEquality, teardownFunc) {
+ let currentArgSets = [];
+ let currentResults = [];
+ return (newArgSets) => {
+ let currentLen = currentArgSets.length;
+ let newLen = newArgSets.length;
+ let i = 0;
+ for (; i < currentLen; i += 1) {
+ if (!newArgSets[i]) { // one of the old sets no longer exists
+ if (teardownFunc) {
+ teardownFunc(currentResults[i]);
+ }
+ }
+ else if (!isArraysEqual(currentArgSets[i], newArgSets[i])) {
+ if (teardownFunc) {
+ teardownFunc(currentResults[i]);
+ }
+ let res = workerFunc.apply(this, newArgSets[i]);
+ if (!resEquality || !resEquality(res, currentResults[i])) {
+ currentResults[i] = res;
+ }
+ }
+ }
+ for (; i < newLen; i += 1) {
+ currentResults[i] = workerFunc.apply(this, newArgSets[i]);
+ }
+ currentArgSets = newArgSets;
+ currentResults.splice(newLen); // remove excess
+ return currentResults;
+ };
+}
+function memoizeHashlike(workerFunc, resEquality, teardownFunc) {
+ let currentArgHash = {};
+ let currentResHash = {};
+ return (newArgHash) => {
+ let newResHash = {};
+ for (let key in newArgHash) {
+ if (!currentResHash[key]) {
+ newResHash[key] = workerFunc.apply(this, newArgHash[key]);
+ }
+ else if (!isArraysEqual(currentArgHash[key], newArgHash[key])) {
+ if (teardownFunc) {
+ teardownFunc(currentResHash[key]);
+ }
+ let res = workerFunc.apply(this, newArgHash[key]);
+ newResHash[key] = (resEquality && resEquality(res, currentResHash[key]))
+ ? currentResHash[key]
+ : res;
+ }
+ else {
+ newResHash[key] = currentResHash[key];
+ }
+ }
+ currentArgHash = newArgHash;
+ currentResHash = newResHash;
+ return newResHash;
+ };
+}
+
+const EXTENDED_SETTINGS_AND_SEVERITIES = {
+ week: 3,
+ separator: 9,
+ omitZeroMinute: 9,
+ meridiem: 9,
+ omitCommas: 9,
+};
+const STANDARD_DATE_PROP_SEVERITIES = {
+ timeZoneName: 7,
+ era: 6,
+ year: 5,
+ month: 4,
+ day: 2,
+ weekday: 2,
+ hour: 1,
+ minute: 1,
+ second: 1,
+};
+const MERIDIEM_RE = /\s*([ap])\.?m\.?/i; // eats up leading spaces too
+const COMMA_RE = /,/g; // we need re for globalness
+const MULTI_SPACE_RE = /\s+/g;
+const LTR_RE = /\u200e/g; // control character
+const UTC_RE = /UTC|GMT/;
+class NativeFormatter {
+ constructor(formatSettings) {
+ let standardDateProps = {};
+ let extendedSettings = {};
+ let smallestUnitNum = 9; // the smallest unit in the formatter (9 is a sentinel, beyond max)
+ for (let name in formatSettings) {
+ if (name in EXTENDED_SETTINGS_AND_SEVERITIES) {
+ extendedSettings[name] = formatSettings[name];
+ const severity = EXTENDED_SETTINGS_AND_SEVERITIES[name];
+ if (severity < 9) {
+ smallestUnitNum = Math.min(EXTENDED_SETTINGS_AND_SEVERITIES[name], smallestUnitNum);
+ }
+ }
+ else {
+ standardDateProps[name] = formatSettings[name];
+ if (name in STANDARD_DATE_PROP_SEVERITIES) { // TODO: what about hour12? no severity
+ smallestUnitNum = Math.min(STANDARD_DATE_PROP_SEVERITIES[name], smallestUnitNum);
+ }
+ }
+ }
+ this.standardDateProps = standardDateProps;
+ this.extendedSettings = extendedSettings;
+ this.smallestUnitNum = smallestUnitNum;
+ this.buildFormattingFunc = memoize(buildFormattingFunc);
+ }
+ format(date, context) {
+ return this.buildFormattingFunc(this.standardDateProps, this.extendedSettings, context)(date);
+ }
+ formatRange(start, end, context, betterDefaultSeparator) {
+ let { standardDateProps, extendedSettings } = this;
+ let diffSeverity = computeMarkerDiffSeverity(start.marker, end.marker, context.calendarSystem);
+ if (!diffSeverity) {
+ return this.format(start, context);
+ }
+ let biggestUnitForPartial = diffSeverity;
+ if (biggestUnitForPartial > 1 && // the two dates are different in a way that's larger scale than time
+ (standardDateProps.year === 'numeric' || standardDateProps.year === '2-digit') &&
+ (standardDateProps.month === 'numeric' || standardDateProps.month === '2-digit') &&
+ (standardDateProps.day === 'numeric' || standardDateProps.day === '2-digit')) {
+ biggestUnitForPartial = 1; // make it look like the dates are only different in terms of time
+ }
+ let full0 = this.format(start, context);
+ let full1 = this.format(end, context);
+ if (full0 === full1) {
+ return full0;
+ }
+ let partialDateProps = computePartialFormattingOptions(standardDateProps, biggestUnitForPartial);
+ let partialFormattingFunc = buildFormattingFunc(partialDateProps, extendedSettings, context);
+ let partial0 = partialFormattingFunc(start);
+ let partial1 = partialFormattingFunc(end);
+ let insertion = findCommonInsertion(full0, partial0, full1, partial1);
+ let separator = extendedSettings.separator || betterDefaultSeparator || context.defaultSeparator || '';
+ if (insertion) {
+ return insertion.before + partial0 + separator + partial1 + insertion.after;
+ }
+ return full0 + separator + full1;
+ }
+ getSmallestUnit() {
+ switch (this.smallestUnitNum) {
+ case 7:
+ case 6:
+ case 5:
+ return 'year';
+ case 4:
+ return 'month';
+ case 3:
+ return 'week';
+ case 2:
+ return 'day';
+ default:
+ return 'time'; // really?
+ }
+ }
+}
+function buildFormattingFunc(standardDateProps, extendedSettings, context) {
+ let standardDatePropCnt = Object.keys(standardDateProps).length;
+ if (standardDatePropCnt === 1 && standardDateProps.timeZoneName === 'short') {
+ return (date) => (formatTimeZoneOffset(date.timeZoneOffset));
+ }
+ if (standardDatePropCnt === 0 && extendedSettings.week) {
+ return (date) => (formatWeekNumber(context.computeWeekNumber(date.marker), context.weekText, context.weekTextLong, context.locale, extendedSettings.week));
+ }
+ return buildNativeFormattingFunc(standardDateProps, extendedSettings, context);
+}
+function buildNativeFormattingFunc(standardDateProps, extendedSettings, context) {
+ standardDateProps = Object.assign({}, standardDateProps); // copy
+ extendedSettings = Object.assign({}, extendedSettings); // copy
+ sanitizeSettings(standardDateProps, extendedSettings);
+ standardDateProps.timeZone = 'UTC'; // we leverage the only guaranteed timeZone for our UTC markers
+ let normalFormat = new Intl.DateTimeFormat(context.locale.codes, standardDateProps);
+ let zeroFormat; // needed?
+ if (extendedSettings.omitZeroMinute) {
+ let zeroProps = Object.assign({}, standardDateProps);
+ delete zeroProps.minute; // seconds and ms were already considered in sanitizeSettings
+ zeroFormat = new Intl.DateTimeFormat(context.locale.codes, zeroProps);
+ }
+ return (date) => {
+ let { marker } = date;
+ let format;
+ if (zeroFormat && !marker.getUTCMinutes()) {
+ format = zeroFormat;
+ }
+ else {
+ format = normalFormat;
+ }
+ let s = format.format(marker);
+ return postProcess(s, date, standardDateProps, extendedSettings, context);
+ };
+}
+function sanitizeSettings(standardDateProps, extendedSettings) {
+ // deal with a browser inconsistency where formatting the timezone
+ // requires that the hour/minute be present.
+ if (standardDateProps.timeZoneName) {
+ if (!standardDateProps.hour) {
+ standardDateProps.hour = '2-digit';
+ }
+ if (!standardDateProps.minute) {
+ standardDateProps.minute = '2-digit';
+ }
+ }
+ // only support short timezone names
+ if (standardDateProps.timeZoneName === 'long') {
+ standardDateProps.timeZoneName = 'short';
+ }
+ // if requesting to display seconds, MUST display minutes
+ if (extendedSettings.omitZeroMinute && (standardDateProps.second || standardDateProps.millisecond)) {
+ delete extendedSettings.omitZeroMinute;
+ }
+}
+function postProcess(s, date, standardDateProps, extendedSettings, context) {
+ s = s.replace(LTR_RE, ''); // remove left-to-right control chars. do first. good for other regexes
+ if (standardDateProps.timeZoneName === 'short') {
+ s = injectTzoStr(s, (context.timeZone === 'UTC' || date.timeZoneOffset == null) ?
+ 'UTC' : // important to normalize for IE, which does "GMT"
+ formatTimeZoneOffset(date.timeZoneOffset));
+ }
+ if (extendedSettings.omitCommas) {
+ s = s.replace(COMMA_RE, '').trim();
+ }
+ if (extendedSettings.omitZeroMinute) {
+ s = s.replace(':00', ''); // zeroFormat doesn't always achieve this
+ }
+ // ^ do anything that might create adjacent spaces before this point,
+ // because MERIDIEM_RE likes to eat up loading spaces
+ if (extendedSettings.meridiem === false) {
+ s = s.replace(MERIDIEM_RE, '').trim();
+ }
+ else if (extendedSettings.meridiem === 'narrow') { // a/p
+ s = s.replace(MERIDIEM_RE, (m0, m1) => m1.toLocaleLowerCase());
+ }
+ else if (extendedSettings.meridiem === 'short') { // am/pm
+ s = s.replace(MERIDIEM_RE, (m0, m1) => `${m1.toLocaleLowerCase()}m`);
+ }
+ else if (extendedSettings.meridiem === 'lowercase') { // other meridiem transformers already converted to lowercase
+ s = s.replace(MERIDIEM_RE, (m0) => m0.toLocaleLowerCase());
+ }
+ s = s.replace(MULTI_SPACE_RE, ' ');
+ s = s.trim();
+ return s;
+}
+function injectTzoStr(s, tzoStr) {
+ let replaced = false;
+ s = s.replace(UTC_RE, () => {
+ replaced = true;
+ return tzoStr;
+ });
+ // IE11 doesn't include UTC/GMT in the original string, so append to end
+ if (!replaced) {
+ s += ` ${tzoStr}`;
+ }
+ return s;
+}
+function formatWeekNumber(num, weekText, weekTextLong, locale, display) {
+ let parts = [];
+ if (display === 'long') {
+ parts.push(weekTextLong);
+ }
+ else if (display === 'short' || display === 'narrow') {
+ parts.push(weekText);
+ }
+ if (display === 'long' || display === 'short') {
+ parts.push(' ');
+ }
+ parts.push(locale.simpleNumberFormat.format(num));
+ if (locale.options.direction === 'rtl') { // TODO: use control characters instead?
+ parts.reverse();
+ }
+ return parts.join('');
+}
+// Range Formatting Utils
+// 0 = exactly the same
+// 1 = different by time
+// and bigger
+function computeMarkerDiffSeverity(d0, d1, ca) {
+ if (ca.getMarkerYear(d0) !== ca.getMarkerYear(d1)) {
+ return 5;
+ }
+ if (ca.getMarkerMonth(d0) !== ca.getMarkerMonth(d1)) {
+ return 4;
+ }
+ if (ca.getMarkerDay(d0) !== ca.getMarkerDay(d1)) {
+ return 2;
+ }
+ if (timeAsMs(d0) !== timeAsMs(d1)) {
+ return 1;
+ }
+ return 0;
+}
+function computePartialFormattingOptions(options, biggestUnit) {
+ let partialOptions = {};
+ for (let name in options) {
+ if (!(name in STANDARD_DATE_PROP_SEVERITIES) || // not a date part prop (like timeZone)
+ STANDARD_DATE_PROP_SEVERITIES[name] <= biggestUnit) {
+ partialOptions[name] = options[name];
+ }
+ }
+ return partialOptions;
+}
+function findCommonInsertion(full0, partial0, full1, partial1) {
+ let i0 = 0;
+ while (i0 < full0.length) {
+ let found0 = full0.indexOf(partial0, i0);
+ if (found0 === -1) {
+ break;
+ }
+ let before0 = full0.substr(0, found0);
+ i0 = found0 + partial0.length;
+ let after0 = full0.substr(i0);
+ let i1 = 0;
+ while (i1 < full1.length) {
+ let found1 = full1.indexOf(partial1, i1);
+ if (found1 === -1) {
+ break;
+ }
+ let before1 = full1.substr(0, found1);
+ i1 = found1 + partial1.length;
+ let after1 = full1.substr(i1);
+ if (before0 === before1 && after0 === after1) {
+ return {
+ before: before0,
+ after: after0,
+ };
+ }
+ }
+ }
+ return null;
+}
+
+function expandZonedMarker(dateInfo, calendarSystem) {
+ let a = calendarSystem.markerToArray(dateInfo.marker);
+ return {
+ marker: dateInfo.marker,
+ timeZoneOffset: dateInfo.timeZoneOffset,
+ array: a,
+ year: a[0],
+ month: a[1],
+ day: a[2],
+ hour: a[3],
+ minute: a[4],
+ second: a[5],
+ millisecond: a[6],
+ };
+}
+
+function createVerboseFormattingArg(start, end, context, betterDefaultSeparator) {
+ let startInfo = expandZonedMarker(start, context.calendarSystem);
+ let endInfo = end ? expandZonedMarker(end, context.calendarSystem) : null;
+ return {
+ date: startInfo,
+ start: startInfo,
+ end: endInfo,
+ timeZone: context.timeZone,
+ localeCodes: context.locale.codes,
+ defaultSeparator: betterDefaultSeparator || context.defaultSeparator,
+ };
+}
+
+/*
+TODO: fix the terminology of "formatter" vs "formatting func"
+*/
+/*
+At the time of instantiation, this object does not know which cmd-formatting system it will use.
+It receives this at the time of formatting, as a setting.
+*/
+class CmdFormatter {
+ constructor(cmdStr) {
+ this.cmdStr = cmdStr;
+ }
+ format(date, context, betterDefaultSeparator) {
+ return context.cmdFormatter(this.cmdStr, createVerboseFormattingArg(date, null, context, betterDefaultSeparator));
+ }
+ formatRange(start, end, context, betterDefaultSeparator) {
+ return context.cmdFormatter(this.cmdStr, createVerboseFormattingArg(start, end, context, betterDefaultSeparator));
+ }
+}
+
+class FuncFormatter {
+ constructor(func) {
+ this.func = func;
+ }
+ format(date, context, betterDefaultSeparator) {
+ return this.func(createVerboseFormattingArg(date, null, context, betterDefaultSeparator));
+ }
+ formatRange(start, end, context, betterDefaultSeparator) {
+ return this.func(createVerboseFormattingArg(start, end, context, betterDefaultSeparator));
+ }
+}
+
+function createFormatter(input) {
+ if (typeof input === 'object' && input) { // non-null object
+ return new NativeFormatter(input);
+ }
+ if (typeof input === 'string') {
+ return new CmdFormatter(input);
+ }
+ if (typeof input === 'function') {
+ return new FuncFormatter(input);
+ }
+ return null;
+}
+
+// base options
+// ------------
+const BASE_OPTION_REFINERS = {
+ navLinkDayClick: identity,
+ navLinkWeekClick: identity,
+ duration: createDuration,
+ bootstrapFontAwesome: identity,
+ buttonIcons: identity,
+ customButtons: identity,
+ defaultAllDayEventDuration: createDuration,
+ defaultTimedEventDuration: createDuration,
+ nextDayThreshold: createDuration,
+ scrollTime: createDuration,
+ scrollTimeReset: Boolean,
+ slotMinTime: createDuration,
+ slotMaxTime: createDuration,
+ dayPopoverFormat: createFormatter,
+ slotDuration: createDuration,
+ snapDuration: createDuration,
+ headerToolbar: identity,
+ footerToolbar: identity,
+ defaultRangeSeparator: String,
+ titleRangeSeparator: String,
+ forceEventDuration: Boolean,
+ dayHeaders: Boolean,
+ dayHeaderFormat: createFormatter,
+ dayHeaderClassNames: identity,
+ dayHeaderContent: identity,
+ dayHeaderDidMount: identity,
+ dayHeaderWillUnmount: identity,
+ dayCellClassNames: identity,
+ dayCellContent: identity,
+ dayCellDidMount: identity,
+ dayCellWillUnmount: identity,
+ initialView: String,
+ aspectRatio: Number,
+ weekends: Boolean,
+ weekNumberCalculation: identity,
+ weekNumbers: Boolean,
+ weekNumberClassNames: identity,
+ weekNumberContent: identity,
+ weekNumberDidMount: identity,
+ weekNumberWillUnmount: identity,
+ editable: Boolean,
+ viewClassNames: identity,
+ viewDidMount: identity,
+ viewWillUnmount: identity,
+ nowIndicator: Boolean,
+ nowIndicatorSnap: identity,
+ nowIndicatorClassNames: identity,
+ nowIndicatorContent: identity,
+ nowIndicatorDidMount: identity,
+ nowIndicatorWillUnmount: identity,
+ showNonCurrentDates: Boolean,
+ lazyFetching: Boolean,
+ startParam: String,
+ endParam: String,
+ timeZoneParam: String,
+ timeZone: String,
+ locales: identity,
+ locale: identity,
+ themeSystem: String,
+ dragRevertDuration: Number,
+ dragScroll: Boolean,
+ allDayMaintainDuration: Boolean,
+ unselectAuto: Boolean,
+ dropAccept: identity,
+ eventOrder: parseFieldSpecs,
+ eventOrderStrict: Boolean,
+ handleWindowResize: Boolean,
+ windowResizeDelay: Number,
+ longPressDelay: Number,
+ eventDragMinDistance: Number,
+ expandRows: Boolean,
+ height: identity,
+ contentHeight: identity,
+ direction: String,
+ weekNumberFormat: createFormatter,
+ eventResizableFromStart: Boolean,
+ displayEventTime: Boolean,
+ displayEventEnd: Boolean,
+ weekText: String,
+ weekTextLong: String,
+ progressiveEventRendering: Boolean,
+ businessHours: identity,
+ initialDate: identity,
+ now: identity,
+ eventDataTransform: identity,
+ stickyHeaderDates: identity,
+ stickyFooterScrollbar: identity,
+ viewHeight: identity,
+ defaultAllDay: Boolean,
+ eventSourceFailure: identity,
+ eventSourceSuccess: identity,
+ eventDisplay: String,
+ eventStartEditable: Boolean,
+ eventDurationEditable: Boolean,
+ eventOverlap: identity,
+ eventConstraint: identity,
+ eventAllow: identity,
+ eventBackgroundColor: String,
+ eventBorderColor: String,
+ eventTextColor: String,
+ eventColor: String,
+ eventClassNames: identity,
+ eventContent: identity,
+ eventDidMount: identity,
+ eventWillUnmount: identity,
+ selectConstraint: identity,
+ selectOverlap: identity,
+ selectAllow: identity,
+ droppable: Boolean,
+ unselectCancel: String,
+ slotLabelFormat: identity,
+ slotLaneClassNames: identity,
+ slotLaneContent: identity,
+ slotLaneDidMount: identity,
+ slotLaneWillUnmount: identity,
+ slotLabelClassNames: identity,
+ slotLabelContent: identity,
+ slotLabelDidMount: identity,
+ slotLabelWillUnmount: identity,
+ dayMaxEvents: identity,
+ dayMaxEventRows: identity,
+ dayMinWidth: Number,
+ slotLabelInterval: createDuration,
+ allDayText: String,
+ allDayClassNames: identity,
+ allDayContent: identity,
+ allDayDidMount: identity,
+ allDayWillUnmount: identity,
+ slotMinWidth: Number,
+ navLinks: Boolean,
+ eventTimeFormat: createFormatter,
+ rerenderDelay: Number,
+ moreLinkText: identity,
+ moreLinkHint: identity,
+ selectMinDistance: Number,
+ selectable: Boolean,
+ selectLongPressDelay: Number,
+ eventLongPressDelay: Number,
+ selectMirror: Boolean,
+ eventMaxStack: Number,
+ eventMinHeight: Number,
+ eventMinWidth: Number,
+ eventShortHeight: Number,
+ slotEventOverlap: Boolean,
+ plugins: identity,
+ firstDay: Number,
+ dayCount: Number,
+ dateAlignment: String,
+ dateIncrement: createDuration,
+ hiddenDays: identity,
+ fixedWeekCount: Boolean,
+ validRange: identity,
+ visibleRange: identity,
+ titleFormat: identity,
+ eventInteractive: Boolean,
+ // only used by list-view, but languages define the value, so we need it in base options
+ noEventsText: String,
+ viewHint: identity,
+ navLinkHint: identity,
+ closeHint: String,
+ timeHint: String,
+ eventHint: String,
+ moreLinkClick: identity,
+ moreLinkClassNames: identity,
+ moreLinkContent: identity,
+ moreLinkDidMount: identity,
+ moreLinkWillUnmount: identity,
+ monthStartFormat: createFormatter,
+ // for connectors
+ // (can't be part of plugin system b/c must be provided at runtime)
+ handleCustomRendering: identity,
+ customRenderingMetaMap: identity,
+ customRenderingReplaces: Boolean,
+};
+// do NOT give a type here. need `typeof BASE_OPTION_DEFAULTS` to give real results.
+// raw values.
+const BASE_OPTION_DEFAULTS = {
+ eventDisplay: 'auto',
+ defaultRangeSeparator: ' - ',
+ titleRangeSeparator: ' \u2013 ',
+ defaultTimedEventDuration: '01:00:00',
+ defaultAllDayEventDuration: { day: 1 },
+ forceEventDuration: false,
+ nextDayThreshold: '00:00:00',
+ dayHeaders: true,
+ initialView: '',
+ aspectRatio: 1.35,
+ headerToolbar: {
+ start: 'title',
+ center: '',
+ end: 'today prev,next',
+ },
+ weekends: true,
+ weekNumbers: false,
+ weekNumberCalculation: 'local',
+ editable: false,
+ nowIndicator: false,
+ scrollTime: '06:00:00',
+ scrollTimeReset: true,
+ slotMinTime: '00:00:00',
+ slotMaxTime: '24:00:00',
+ showNonCurrentDates: true,
+ lazyFetching: true,
+ startParam: 'start',
+ endParam: 'end',
+ timeZoneParam: 'timeZone',
+ timeZone: 'local',
+ locales: [],
+ locale: '',
+ themeSystem: 'standard',
+ dragRevertDuration: 500,
+ dragScroll: true,
+ allDayMaintainDuration: false,
+ unselectAuto: true,
+ dropAccept: '*',
+ eventOrder: 'start,-duration,allDay,title',
+ dayPopoverFormat: { month: 'long', day: 'numeric', year: 'numeric' },
+ handleWindowResize: true,
+ windowResizeDelay: 100,
+ longPressDelay: 1000,
+ eventDragMinDistance: 5,
+ expandRows: false,
+ navLinks: false,
+ selectable: false,
+ eventMinHeight: 15,
+ eventMinWidth: 30,
+ eventShortHeight: 30,
+ monthStartFormat: { month: 'long', day: 'numeric' },
+ nowIndicatorSnap: 'auto',
+};
+// calendar listeners
+// ------------------
+const CALENDAR_LISTENER_REFINERS = {
+ datesSet: identity,
+ eventsSet: identity,
+ eventAdd: identity,
+ eventChange: identity,
+ eventRemove: identity,
+ windowResize: identity,
+ eventClick: identity,
+ eventMouseEnter: identity,
+ eventMouseLeave: identity,
+ select: identity,
+ unselect: identity,
+ loading: identity,
+ // internal
+ _unmount: identity,
+ _beforeprint: identity,
+ _afterprint: identity,
+ _noEventDrop: identity,
+ _noEventResize: identity,
+ _resize: identity,
+ _scrollRequest: identity,
+};
+// calendar-specific options
+// -------------------------
+const CALENDAR_OPTION_REFINERS = {
+ buttonText: identity,
+ buttonHints: identity,
+ views: identity,
+ plugins: identity,
+ initialEvents: identity,
+ events: identity,
+ eventSources: identity,
+};
+const COMPLEX_OPTION_COMPARATORS = {
+ headerToolbar: isMaybeObjectsEqual,
+ footerToolbar: isMaybeObjectsEqual,
+ buttonText: isMaybeObjectsEqual,
+ buttonHints: isMaybeObjectsEqual,
+ buttonIcons: isMaybeObjectsEqual,
+ dateIncrement: isMaybeObjectsEqual,
+ plugins: isMaybeArraysEqual,
+ events: isMaybeArraysEqual,
+ eventSources: isMaybeArraysEqual,
+ ['resources']: isMaybeArraysEqual,
+};
+function isMaybeObjectsEqual(a, b) {
+ if (typeof a === 'object' && typeof b === 'object' && a && b) { // both non-null objects
+ return isPropsEqual(a, b);
+ }
+ return a === b;
+}
+function isMaybeArraysEqual(a, b) {
+ if (Array.isArray(a) && Array.isArray(b)) {
+ return isArraysEqual(a, b);
+ }
+ return a === b;
+}
+// view-specific options
+// ---------------------
+const VIEW_OPTION_REFINERS = {
+ type: String,
+ component: identity,
+ buttonText: String,
+ buttonTextKey: String,
+ dateProfileGeneratorClass: identity,
+ usesMinMaxTime: Boolean,
+ classNames: identity,
+ content: identity,
+ didMount: identity,
+ willUnmount: identity,
+};
+// util funcs
+// ----------------------------------------------------------------------------------------------------
+function mergeRawOptions(optionSets) {
+ return mergeProps(optionSets, COMPLEX_OPTION_COMPARATORS);
+}
+function refineProps(input, refiners) {
+ let refined = {};
+ let extra = {};
+ for (let propName in refiners) {
+ if (propName in input) {
+ refined[propName] = refiners[propName](input[propName]);
+ }
+ }
+ for (let propName in input) {
+ if (!(propName in refiners)) {
+ extra[propName] = input[propName];
+ }
+ }
+ return { refined, extra };
+}
+function identity(raw) {
+ return raw;
+}
+
+const { hasOwnProperty } = Object.prototype;
+// Merges an array of objects into a single object.
+// The second argument allows for an array of property names who's object values will be merged together.
+function mergeProps(propObjs, complexPropsMap) {
+ let dest = {};
+ if (complexPropsMap) {
+ for (let name in complexPropsMap) {
+ if (complexPropsMap[name] === isMaybeObjectsEqual) { // implies that it's object-mergeable
+ let complexObjs = [];
+ // collect the trailing object values, stopping when a non-object is discovered
+ for (let i = propObjs.length - 1; i >= 0; i -= 1) {
+ let val = propObjs[i][name];
+ if (typeof val === 'object' && val) { // non-null object
+ complexObjs.unshift(val);
+ }
+ else if (val !== undefined) {
+ dest[name] = val; // if there were no objects, this value will be used
+ break;
+ }
+ }
+ // if the trailing values were objects, use the merged value
+ if (complexObjs.length) {
+ dest[name] = mergeProps(complexObjs);
+ }
+ }
+ }
+ }
+ // copy values into the destination, going from last to first
+ for (let i = propObjs.length - 1; i >= 0; i -= 1) {
+ let props = propObjs[i];
+ for (let name in props) {
+ if (!(name in dest)) { // if already assigned by previous props or complex props, don't reassign
+ dest[name] = props[name];
+ }
+ }
+ }
+ return dest;
+}
+function filterHash(hash, func) {
+ let filtered = {};
+ for (let key in hash) {
+ if (func(hash[key], key)) {
+ filtered[key] = hash[key];
+ }
+ }
+ return filtered;
+}
+function mapHash(hash, func) {
+ let newHash = {};
+ for (let key in hash) {
+ newHash[key] = func(hash[key], key);
+ }
+ return newHash;
+}
+function arrayToHash(a) {
+ let hash = {};
+ for (let item of a) {
+ hash[item] = true;
+ }
+ return hash;
+}
+// TODO: reassess browser support
+// https://caniuse.com/?search=object.values
+function hashValuesToArray(obj) {
+ let a = [];
+ for (let key in obj) {
+ a.push(obj[key]);
+ }
+ return a;
+}
+function isPropsEqual(obj0, obj1) {
+ if (obj0 === obj1) {
+ return true;
+ }
+ for (let key in obj0) {
+ if (hasOwnProperty.call(obj0, key)) {
+ if (!(key in obj1)) {
+ return false;
+ }
+ }
+ }
+ for (let key in obj1) {
+ if (hasOwnProperty.call(obj1, key)) {
+ if (obj0[key] !== obj1[key]) {
+ return false;
+ }
+ }
+ }
+ return true;
+}
+const HANDLER_RE = /^on[A-Z]/;
+function isNonHandlerPropsEqual(obj0, obj1) {
+ const keys = getUnequalProps(obj0, obj1);
+ for (let key of keys) {
+ if (!HANDLER_RE.test(key)) {
+ return false;
+ }
+ }
+ return true;
+}
+function getUnequalProps(obj0, obj1) {
+ let keys = [];
+ for (let key in obj0) {
+ if (hasOwnProperty.call(obj0, key)) {
+ if (!(key in obj1)) {
+ keys.push(key);
+ }
+ }
+ }
+ for (let key in obj1) {
+ if (hasOwnProperty.call(obj1, key)) {
+ if (obj0[key] !== obj1[key]) {
+ keys.push(key);
+ }
+ }
+ }
+ return keys;
+}
+function compareObjs(oldProps, newProps, equalityFuncs = {}) {
+ if (oldProps === newProps) {
+ return true;
+ }
+ // if (debug) {
+ // for (let key in newProps) {
+ // if (key in oldProps && isObjValsEqual(oldProps[key], newProps[key], equalityFuncs[key])) {
+ // // equal
+ // } else {
+ // if (debug) {
+ // console.log('prop difference', key, oldProps[key], newProps[key])
+ // }
+ // }
+ // }
+ // // check for props that were omitted in the new
+ // for (let key in oldProps) {
+ // if (!(key in newProps)) {
+ // if (debug) {
+ // console.log('prop absent', key)
+ // }
+ // }
+ // }
+ // }
+ for (let key in newProps) {
+ if (key in oldProps && isObjValsEqual(oldProps[key], newProps[key], equalityFuncs[key])) ;
+ else {
+ return false;
+ }
+ }
+ // check for props that were omitted in the new
+ for (let key in oldProps) {
+ if (!(key in newProps)) {
+ return false;
+ }
+ }
+ return true;
+}
+/*
+assumed "true" equality for handler names like "onReceiveSomething"
+*/
+function isObjValsEqual(val0, val1, comparator) {
+ if (val0 === val1 || comparator === true) {
+ return true;
+ }
+ if (comparator) {
+ return comparator(val0, val1);
+ }
+ return false;
+}
+function collectFromHash(hash, startIndex = 0, endIndex, step = 1) {
+ let res = [];
+ if (endIndex == null) {
+ endIndex = Object.keys(hash).length;
+ }
+ for (let i = startIndex; i < endIndex; i += step) {
+ let val = hash[i];
+ if (val !== undefined) { // will disregard undefined for sparse arrays
+ res.push(val);
+ }
+ }
+ return res;
+}
+
+let calendarSystemClassMap = {};
+function registerCalendarSystem(name, theClass) {
+ calendarSystemClassMap[name] = theClass;
+}
+function createCalendarSystem(name) {
+ return new calendarSystemClassMap[name]();
+}
+class GregorianCalendarSystem {
+ getMarkerYear(d) {
+ return d.getUTCFullYear();
+ }
+ getMarkerMonth(d) {
+ return d.getUTCMonth();
+ }
+ getMarkerDay(d) {
+ return d.getUTCDate();
+ }
+ arrayToMarker(arr) {
+ return arrayToUtcDate(arr);
+ }
+ markerToArray(marker) {
+ return dateToUtcArray(marker);
+ }
+}
+registerCalendarSystem('gregory', GregorianCalendarSystem);
+
+const ISO_RE = /^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;
+function parse(str) {
+ let m = ISO_RE.exec(str);
+ if (m) {
+ let marker = new Date(Date.UTC(Number(m[1]), m[3] ? Number(m[3]) - 1 : 0, Number(m[5] || 1), Number(m[7] || 0), Number(m[8] || 0), Number(m[10] || 0), m[12] ? Number(`0.${m[12]}`) * 1000 : 0));
+ if (isValidDate(marker)) {
+ let timeZoneOffset = null;
+ if (m[13]) {
+ timeZoneOffset = (m[15] === '-' ? -1 : 1) * (Number(m[16] || 0) * 60 +
+ Number(m[18] || 0));
+ }
+ return {
+ marker,
+ isTimeUnspecified: !m[6],
+ timeZoneOffset,
+ };
+ }
+ }
+ return null;
+}
+
+class DateEnv {
+ constructor(settings) {
+ let timeZone = this.timeZone = settings.timeZone;
+ let isNamedTimeZone = timeZone !== 'local' && timeZone !== 'UTC';
+ if (settings.namedTimeZoneImpl && isNamedTimeZone) {
+ this.namedTimeZoneImpl = new settings.namedTimeZoneImpl(timeZone);
+ }
+ this.canComputeOffset = Boolean(!isNamedTimeZone || this.namedTimeZoneImpl);
+ this.calendarSystem = createCalendarSystem(settings.calendarSystem);
+ this.locale = settings.locale;
+ this.weekDow = settings.locale.week.dow;
+ this.weekDoy = settings.locale.week.doy;
+ if (settings.weekNumberCalculation === 'ISO') {
+ this.weekDow = 1;
+ this.weekDoy = 4;
+ }
+ if (typeof settings.firstDay === 'number') {
+ this.weekDow = settings.firstDay;
+ }
+ if (typeof settings.weekNumberCalculation === 'function') {
+ this.weekNumberFunc = settings.weekNumberCalculation;
+ }
+ this.weekText = settings.weekText != null ? settings.weekText : settings.locale.options.weekText;
+ this.weekTextLong = (settings.weekTextLong != null ? settings.weekTextLong : settings.locale.options.weekTextLong) || this.weekText;
+ this.cmdFormatter = settings.cmdFormatter;
+ this.defaultSeparator = settings.defaultSeparator;
+ }
+ // Creating / Parsing
+ createMarker(input) {
+ let meta = this.createMarkerMeta(input);
+ if (meta === null) {
+ return null;
+ }
+ return meta.marker;
+ }
+ createNowMarker() {
+ if (this.canComputeOffset) {
+ return this.timestampToMarker(new Date().valueOf());
+ }
+ // if we can't compute the current date val for a timezone,
+ // better to give the current local date vals than UTC
+ return arrayToUtcDate(dateToLocalArray(new Date()));
+ }
+ createMarkerMeta(input) {
+ if (typeof input === 'string') {
+ return this.parse(input);
+ }
+ let marker = null;
+ if (typeof input === 'number') {
+ marker = this.timestampToMarker(input);
+ }
+ else if (input instanceof Date) {
+ input = input.valueOf();
+ if (!isNaN(input)) {
+ marker = this.timestampToMarker(input);
+ }
+ }
+ else if (Array.isArray(input)) {
+ marker = arrayToUtcDate(input);
+ }
+ if (marker === null || !isValidDate(marker)) {
+ return null;
+ }
+ return { marker, isTimeUnspecified: false, forcedTzo: null };
+ }
+ parse(s) {
+ let parts = parse(s);
+ if (parts === null) {
+ return null;
+ }
+ let { marker } = parts;
+ let forcedTzo = null;
+ if (parts.timeZoneOffset !== null) {
+ if (this.canComputeOffset) {
+ marker = this.timestampToMarker(marker.valueOf() - parts.timeZoneOffset * 60 * 1000);
+ }
+ else {
+ forcedTzo = parts.timeZoneOffset;
+ }
+ }
+ return { marker, isTimeUnspecified: parts.isTimeUnspecified, forcedTzo };
+ }
+ // Accessors
+ getYear(marker) {
+ return this.calendarSystem.getMarkerYear(marker);
+ }
+ getMonth(marker) {
+ return this.calendarSystem.getMarkerMonth(marker);
+ }
+ getDay(marker) {
+ return this.calendarSystem.getMarkerDay(marker);
+ }
+ // Adding / Subtracting
+ add(marker, dur) {
+ let a = this.calendarSystem.markerToArray(marker);
+ a[0] += dur.years;
+ a[1] += dur.months;
+ a[2] += dur.days;
+ a[6] += dur.milliseconds;
+ return this.calendarSystem.arrayToMarker(a);
+ }
+ subtract(marker, dur) {
+ let a = this.calendarSystem.markerToArray(marker);
+ a[0] -= dur.years;
+ a[1] -= dur.months;
+ a[2] -= dur.days;
+ a[6] -= dur.milliseconds;
+ return this.calendarSystem.arrayToMarker(a);
+ }
+ addYears(marker, n) {
+ let a = this.calendarSystem.markerToArray(marker);
+ a[0] += n;
+ return this.calendarSystem.arrayToMarker(a);
+ }
+ addMonths(marker, n) {
+ let a = this.calendarSystem.markerToArray(marker);
+ a[1] += n;
+ return this.calendarSystem.arrayToMarker(a);
+ }
+ // Diffing Whole Units
+ diffWholeYears(m0, m1) {
+ let { calendarSystem } = this;
+ if (timeAsMs(m0) === timeAsMs(m1) &&
+ calendarSystem.getMarkerDay(m0) === calendarSystem.getMarkerDay(m1) &&
+ calendarSystem.getMarkerMonth(m0) === calendarSystem.getMarkerMonth(m1)) {
+ return calendarSystem.getMarkerYear(m1) - calendarSystem.getMarkerYear(m0);
+ }
+ return null;
+ }
+ diffWholeMonths(m0, m1) {
+ let { calendarSystem } = this;
+ if (timeAsMs(m0) === timeAsMs(m1) &&
+ calendarSystem.getMarkerDay(m0) === calendarSystem.getMarkerDay(m1)) {
+ return (calendarSystem.getMarkerMonth(m1) - calendarSystem.getMarkerMonth(m0)) +
+ (calendarSystem.getMarkerYear(m1) - calendarSystem.getMarkerYear(m0)) * 12;
+ }
+ return null;
+ }
+ // Range / Duration
+ greatestWholeUnit(m0, m1) {
+ let n = this.diffWholeYears(m0, m1);
+ if (n !== null) {
+ return { unit: 'year', value: n };
+ }
+ n = this.diffWholeMonths(m0, m1);
+ if (n !== null) {
+ return { unit: 'month', value: n };
+ }
+ n = diffWholeWeeks(m0, m1);
+ if (n !== null) {
+ return { unit: 'week', value: n };
+ }
+ n = diffWholeDays(m0, m1);
+ if (n !== null) {
+ return { unit: 'day', value: n };
+ }
+ n = diffHours(m0, m1);
+ if (isInt(n)) {
+ return { unit: 'hour', value: n };
+ }
+ n = diffMinutes(m0, m1);
+ if (isInt(n)) {
+ return { unit: 'minute', value: n };
+ }
+ n = diffSeconds(m0, m1);
+ if (isInt(n)) {
+ return { unit: 'second', value: n };
+ }
+ return { unit: 'millisecond', value: m1.valueOf() - m0.valueOf() };
+ }
+ countDurationsBetween(m0, m1, d) {
+ // TODO: can use greatestWholeUnit
+ let diff;
+ if (d.years) {
+ diff = this.diffWholeYears(m0, m1);
+ if (diff !== null) {
+ return diff / asRoughYears(d);
+ }
+ }
+ if (d.months) {
+ diff = this.diffWholeMonths(m0, m1);
+ if (diff !== null) {
+ return diff / asRoughMonths(d);
+ }
+ }
+ if (d.days) {
+ diff = diffWholeDays(m0, m1);
+ if (diff !== null) {
+ return diff / asRoughDays(d);
+ }
+ }
+ return (m1.valueOf() - m0.valueOf()) / asRoughMs(d);
+ }
+ // Start-Of
+ // these DON'T return zoned-dates. only UTC start-of dates
+ startOf(m, unit) {
+ if (unit === 'year') {
+ return this.startOfYear(m);
+ }
+ if (unit === 'month') {
+ return this.startOfMonth(m);
+ }
+ if (unit === 'week') {
+ return this.startOfWeek(m);
+ }
+ if (unit === 'day') {
+ return startOfDay(m);
+ }
+ if (unit === 'hour') {
+ return startOfHour(m);
+ }
+ if (unit === 'minute') {
+ return startOfMinute(m);
+ }
+ if (unit === 'second') {
+ return startOfSecond(m);
+ }
+ return null;
+ }
+ startOfYear(m) {
+ return this.calendarSystem.arrayToMarker([
+ this.calendarSystem.getMarkerYear(m),
+ ]);
+ }
+ startOfMonth(m) {
+ return this.calendarSystem.arrayToMarker([
+ this.calendarSystem.getMarkerYear(m),
+ this.calendarSystem.getMarkerMonth(m),
+ ]);
+ }
+ startOfWeek(m) {
+ return this.calendarSystem.arrayToMarker([
+ this.calendarSystem.getMarkerYear(m),
+ this.calendarSystem.getMarkerMonth(m),
+ m.getUTCDate() - ((m.getUTCDay() - this.weekDow + 7) % 7),
+ ]);
+ }
+ // Week Number
+ computeWeekNumber(marker) {
+ if (this.weekNumberFunc) {
+ return this.weekNumberFunc(this.toDate(marker));
+ }
+ return weekOfYear(marker, this.weekDow, this.weekDoy);
+ }
+ // TODO: choke on timeZoneName: long
+ format(marker, formatter, dateOptions = {}) {
+ return formatter.format({
+ marker,
+ timeZoneOffset: dateOptions.forcedTzo != null ?
+ dateOptions.forcedTzo :
+ this.offsetForMarker(marker),
+ }, this);
+ }
+ formatRange(start, end, formatter, dateOptions = {}) {
+ if (dateOptions.isEndExclusive) {
+ end = addMs(end, -1);
+ }
+ return formatter.formatRange({
+ marker: start,
+ timeZoneOffset: dateOptions.forcedStartTzo != null ?
+ dateOptions.forcedStartTzo :
+ this.offsetForMarker(start),
+ }, {
+ marker: end,
+ timeZoneOffset: dateOptions.forcedEndTzo != null ?
+ dateOptions.forcedEndTzo :
+ this.offsetForMarker(end),
+ }, this, dateOptions.defaultSeparator);
+ }
+ /*
+ DUMB: the omitTime arg is dumb. if we omit the time, we want to omit the timezone offset. and if we do that,
+ might as well use buildIsoString or some other util directly
+ */
+ formatIso(marker, extraOptions = {}) {
+ let timeZoneOffset = null;
+ if (!extraOptions.omitTimeZoneOffset) {
+ if (extraOptions.forcedTzo != null) {
+ timeZoneOffset = extraOptions.forcedTzo;
+ }
+ else {
+ timeZoneOffset = this.offsetForMarker(marker);
+ }
+ }
+ return buildIsoString(marker, timeZoneOffset, extraOptions.omitTime);
+ }
+ // TimeZone
+ timestampToMarker(ms) {
+ if (this.timeZone === 'local') {
+ return arrayToUtcDate(dateToLocalArray(new Date(ms)));
+ }
+ if (this.timeZone === 'UTC' || !this.namedTimeZoneImpl) {
+ return new Date(ms);
+ }
+ return arrayToUtcDate(this.namedTimeZoneImpl.timestampToArray(ms));
+ }
+ offsetForMarker(m) {
+ if (this.timeZone === 'local') {
+ return -arrayToLocalDate(dateToUtcArray(m)).getTimezoneOffset(); // convert "inverse" offset to "normal" offset
+ }
+ if (this.timeZone === 'UTC') {
+ return 0;
+ }
+ if (this.namedTimeZoneImpl) {
+ return this.namedTimeZoneImpl.offsetForArray(dateToUtcArray(m));
+ }
+ return null;
+ }
+ // Conversion
+ toDate(m, forcedTzo) {
+ if (this.timeZone === 'local') {
+ return arrayToLocalDate(dateToUtcArray(m));
+ }
+ if (this.timeZone === 'UTC') {
+ return new Date(m.valueOf()); // make sure it's a copy
+ }
+ if (!this.namedTimeZoneImpl) {
+ return new Date(m.valueOf() - (forcedTzo || 0));
+ }
+ return new Date(m.valueOf() -
+ this.namedTimeZoneImpl.offsetForArray(dateToUtcArray(m)) * 1000 * 60);
+ }
+}
+
+class Theme {
+ constructor(calendarOptions) {
+ if (this.iconOverrideOption) {
+ this.setIconOverride(calendarOptions[this.iconOverrideOption]);
+ }
+ }
+ setIconOverride(iconOverrideHash) {
+ let iconClassesCopy;
+ let buttonName;
+ if (typeof iconOverrideHash === 'object' && iconOverrideHash) { // non-null object
+ iconClassesCopy = Object.assign({}, this.iconClasses);
+ for (buttonName in iconOverrideHash) {
+ iconClassesCopy[buttonName] = this.applyIconOverridePrefix(iconOverrideHash[buttonName]);
+ }
+ this.iconClasses = iconClassesCopy;
+ }
+ else if (iconOverrideHash === false) {
+ this.iconClasses = {};
+ }
+ }
+ applyIconOverridePrefix(className) {
+ let prefix = this.iconOverridePrefix;
+ if (prefix && className.indexOf(prefix) !== 0) { // if not already present
+ className = prefix + className;
+ }
+ return className;
+ }
+ getClass(key) {
+ return this.classes[key] || '';
+ }
+ getIconClass(buttonName, isRtl) {
+ let className;
+ if (isRtl && this.rtlIconClasses) {
+ className = this.rtlIconClasses[buttonName] || this.iconClasses[buttonName];
+ }
+ else {
+ className = this.iconClasses[buttonName];
+ }
+ if (className) {
+ return `${this.baseIconClass} ${className}`;
+ }
+ return '';
+ }
+ getCustomButtonIconClass(customButtonProps) {
+ let className;
+ if (this.iconOverrideCustomButtonOption) {
+ className = customButtonProps[this.iconOverrideCustomButtonOption];
+ if (className) {
+ return `${this.baseIconClass} ${this.applyIconOverridePrefix(className)}`;
+ }
+ }
+ return '';
+ }
+}
+Theme.prototype.classes = {};
+Theme.prototype.iconClasses = {};
+Theme.prototype.baseIconClass = '';
+Theme.prototype.iconOverridePrefix = '';
+
+/*
+NOTE: this can be a public API, especially createElement for hooks.
+See examples/typescript-scheduler/src/index.ts
+*/
+function flushSync(runBeforeFlush) {
+ runBeforeFlush();
+ let oldDebounceRendering = preact__WEBPACK_IMPORTED_MODULE_0__.options.debounceRendering; // orig
+ let callbackQ = [];
+ function execCallbackSync(callback) {
+ callbackQ.push(callback);
+ }
+ preact__WEBPACK_IMPORTED_MODULE_0__.options.debounceRendering = execCallbackSync;
+ preact__WEBPACK_IMPORTED_MODULE_0__.render(preact__WEBPACK_IMPORTED_MODULE_0__.createElement(FakeComponent, {}), document.createElement('div'));
+ while (callbackQ.length) {
+ callbackQ.shift()();
+ }
+ preact__WEBPACK_IMPORTED_MODULE_0__.options.debounceRendering = oldDebounceRendering;
+}
+class FakeComponent extends preact__WEBPACK_IMPORTED_MODULE_0__.Component {
+ render() { return preact__WEBPACK_IMPORTED_MODULE_0__.createElement('div', {}); }
+ componentDidMount() { this.setState({}); }
+}
+// TODO: use preact/compat instead?
+function createContext(defaultValue) {
+ let ContextType = preact__WEBPACK_IMPORTED_MODULE_0__.createContext(defaultValue);
+ let origProvider = ContextType.Provider;
+ ContextType.Provider = function () {
+ let isNew = !this.getChildContext;
+ let children = origProvider.apply(this, arguments); // eslint-disable-line prefer-rest-params
+ if (isNew) {
+ let subs = [];
+ this.shouldComponentUpdate = (_props) => {
+ if (this.props.value !== _props.value) {
+ subs.forEach((c) => {
+ c.context = _props.value;
+ c.forceUpdate();
+ });
+ }
+ };
+ this.sub = (c) => {
+ subs.push(c);
+ let old = c.componentWillUnmount;
+ c.componentWillUnmount = () => {
+ subs.splice(subs.indexOf(c), 1);
+ old && old.call(c);
+ };
+ };
+ }
+ return children;
+ };
+ return ContextType;
+}
+
+class ScrollResponder {
+ constructor(execFunc, emitter, scrollTime, scrollTimeReset) {
+ this.execFunc = execFunc;
+ this.emitter = emitter;
+ this.scrollTime = scrollTime;
+ this.scrollTimeReset = scrollTimeReset;
+ this.handleScrollRequest = (request) => {
+ this.queuedRequest = Object.assign({}, this.queuedRequest || {}, request);
+ this.drain();
+ };
+ emitter.on('_scrollRequest', this.handleScrollRequest);
+ this.fireInitialScroll();
+ }
+ detach() {
+ this.emitter.off('_scrollRequest', this.handleScrollRequest);
+ }
+ update(isDatesNew) {
+ if (isDatesNew && this.scrollTimeReset) {
+ this.fireInitialScroll(); // will drain
+ }
+ else {
+ this.drain();
+ }
+ }
+ fireInitialScroll() {
+ this.handleScrollRequest({
+ time: this.scrollTime,
+ });
+ }
+ drain() {
+ if (this.queuedRequest && this.execFunc(this.queuedRequest)) {
+ this.queuedRequest = null;
+ }
+ }
+}
+
+const ViewContextType = createContext({}); // for Components
+function buildViewContext(viewSpec, viewApi, viewOptions, dateProfileGenerator, dateEnv, nowManager, theme, pluginHooks, dispatch, getCurrentData, emitter, calendarApi, registerInteractiveComponent, unregisterInteractiveComponent) {
+ return {
+ dateEnv,
+ nowManager,
+ options: viewOptions,
+ pluginHooks,
+ emitter,
+ dispatch,
+ getCurrentData,
+ calendarApi,
+ viewSpec,
+ viewApi,
+ dateProfileGenerator,
+ theme,
+ isRtl: viewOptions.direction === 'rtl',
+ addResizeHandler(handler) {
+ emitter.on('_resize', handler);
+ },
+ removeResizeHandler(handler) {
+ emitter.off('_resize', handler);
+ },
+ createScrollResponder(execFunc) {
+ return new ScrollResponder(execFunc, emitter, createDuration(viewOptions.scrollTime), viewOptions.scrollTimeReset);
+ },
+ registerInteractiveComponent,
+ unregisterInteractiveComponent,
+ };
+}
+
+/* eslint max-classes-per-file: off */
+class PureComponent extends preact__WEBPACK_IMPORTED_MODULE_0__.Component {
+ // debug: boolean
+ shouldComponentUpdate(nextProps, nextState) {
+ const shouldUpdate = !compareObjs(this.props, nextProps, this.propEquality /*, this.debug */) ||
+ !compareObjs(this.state, nextState, this.stateEquality /*, this.debug */);
+ // if (this.debug && shouldUpdate) {
+ // console.log('shouldUpdate!')
+ // }
+ return shouldUpdate;
+ }
+ // HACK for freakin' React StrictMode
+ safeSetState(newState) {
+ if (!compareObjs(this.state, Object.assign(Object.assign({}, this.state), newState), this.stateEquality)) {
+ this.setState(newState);
+ }
+ }
+}
+PureComponent.addPropsEquality = addPropsEquality;
+PureComponent.addStateEquality = addStateEquality;
+PureComponent.contextType = ViewContextType;
+PureComponent.prototype.propEquality = {};
+PureComponent.prototype.stateEquality = {};
+class BaseComponent extends PureComponent {
+}
+BaseComponent.contextType = ViewContextType;
+function addPropsEquality(propEquality) {
+ let hash = Object.create(this.prototype.propEquality);
+ Object.assign(hash, propEquality);
+ this.prototype.propEquality = hash;
+}
+function addStateEquality(stateEquality) {
+ let hash = Object.create(this.prototype.stateEquality);
+ Object.assign(hash, stateEquality);
+ this.prototype.stateEquality = hash;
+}
+// use other one
+function setRef(ref, current) {
+ if (typeof ref === 'function') {
+ ref(current);
+ }
+ else if (ref) {
+ // see https://github.com/facebook/react/issues/13029
+ ref.current = current;
+ }
+}
+
+class ContentInjector extends BaseComponent {
+ constructor() {
+ super(...arguments);
+ this.id = guid();
+ this.queuedDomNodes = [];
+ this.currentDomNodes = [];
+ this.handleEl = (el) => {
+ const { options } = this.context;
+ const { generatorName } = this.props;
+ if (!options.customRenderingReplaces || !hasCustomRenderingHandler(generatorName, options)) {
+ this.updateElRef(el);
+ }
+ };
+ this.updateElRef = (el) => {
+ if (this.props.elRef) {
+ setRef(this.props.elRef, el);
+ }
+ };
+ }
+ render() {
+ const { props, context } = this;
+ const { options } = context;
+ const { customGenerator, defaultGenerator, renderProps } = props;
+ const attrs = buildElAttrs(props, [], this.handleEl);
+ let useDefault = false;
+ let innerContent;
+ let queuedDomNodes = [];
+ let currentGeneratorMeta;
+ if (customGenerator != null) {
+ const customGeneratorRes = typeof customGenerator === 'function' ?
+ customGenerator(renderProps, preact__WEBPACK_IMPORTED_MODULE_0__.createElement) :
+ customGenerator;
+ if (customGeneratorRes === true) {
+ useDefault = true;
+ }
+ else {
+ const isObject = customGeneratorRes && typeof customGeneratorRes === 'object'; // non-null
+ if (isObject && ('html' in customGeneratorRes)) {
+ attrs.dangerouslySetInnerHTML = { __html: customGeneratorRes.html };
+ }
+ else if (isObject && ('domNodes' in customGeneratorRes)) {
+ queuedDomNodes = Array.prototype.slice.call(customGeneratorRes.domNodes);
+ }
+ else if (isObject
+ ? (0,preact__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(customGeneratorRes) // vdom node
+ : typeof customGeneratorRes !== 'function' // primitive value (like string or number)
+ ) {
+ // use in vdom
+ innerContent = customGeneratorRes;
+ }
+ else {
+ // an exotic object for handleCustomRendering
+ currentGeneratorMeta = customGeneratorRes;
+ }
+ }
+ }
+ else {
+ useDefault = !hasCustomRenderingHandler(props.generatorName, options);
+ }
+ if (useDefault && defaultGenerator) {
+ innerContent = defaultGenerator(renderProps);
+ }
+ this.queuedDomNodes = queuedDomNodes;
+ this.currentGeneratorMeta = currentGeneratorMeta;
+ return (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(props.elTag, attrs, innerContent);
+ }
+ componentDidMount() {
+ this.applyQueueudDomNodes();
+ this.triggerCustomRendering(true);
+ }
+ componentDidUpdate() {
+ this.applyQueueudDomNodes();
+ this.triggerCustomRendering(true);
+ }
+ componentWillUnmount() {
+ this.triggerCustomRendering(false); // TODO: different API for removal?
+ }
+ triggerCustomRendering(isActive) {
+ var _a;
+ const { props, context } = this;
+ const { handleCustomRendering, customRenderingMetaMap } = context.options;
+ if (handleCustomRendering) {
+ const generatorMeta = (_a = this.currentGeneratorMeta) !== null && _a !== void 0 ? _a : customRenderingMetaMap === null || customRenderingMetaMap === void 0 ? void 0 : customRenderingMetaMap[props.generatorName];
+ if (generatorMeta) {
+ handleCustomRendering(Object.assign(Object.assign({ id: this.id, isActive, containerEl: this.base, reportNewContainerEl: this.updateElRef, // front-end framework tells us about new container els
+ generatorMeta }, props), { elClasses: (props.elClasses || []).filter(isTruthy) }));
+ }
+ }
+ }
+ applyQueueudDomNodes() {
+ const { queuedDomNodes, currentDomNodes } = this;
+ const el = this.base;
+ if (!isArraysEqual(queuedDomNodes, currentDomNodes)) {
+ currentDomNodes.forEach(removeElement);
+ for (let newNode of queuedDomNodes) {
+ el.appendChild(newNode);
+ }
+ this.currentDomNodes = queuedDomNodes;
+ }
+ }
+}
+ContentInjector.addPropsEquality({
+ elClasses: isArraysEqual,
+ elStyle: isPropsEqual,
+ elAttrs: isNonHandlerPropsEqual,
+ renderProps: isPropsEqual,
+});
+// Util
+/*
+Does UI-framework provide custom way of rendering that does not use Preact VDOM
+AND does the calendar's options define custom rendering?
+AKA. Should we NOT render the default content?
+*/
+function hasCustomRenderingHandler(generatorName, options) {
+ var _a;
+ return Boolean(options.handleCustomRendering &&
+ generatorName &&
+ ((_a = options.customRenderingMetaMap) === null || _a === void 0 ? void 0 : _a[generatorName]));
+}
+function buildElAttrs(props, extraClassNames, elRef) {
+ const attrs = Object.assign(Object.assign({}, props.elAttrs), { ref: elRef });
+ if (props.elClasses || extraClassNames) {
+ attrs.className = (props.elClasses || [])
+ .concat(extraClassNames || [])
+ .concat(attrs.className || [])
+ .filter(Boolean)
+ .join(' ');
+ }
+ if (props.elStyle) {
+ attrs.style = props.elStyle;
+ }
+ return attrs;
+}
+function isTruthy(val) {
+ return Boolean(val);
+}
+
+const RenderId = createContext(0);
+
+class ContentContainer extends preact__WEBPACK_IMPORTED_MODULE_0__.Component {
+ constructor() {
+ super(...arguments);
+ this.InnerContent = InnerContentInjector.bind(undefined, this);
+ this.handleEl = (el) => {
+ this.el = el;
+ if (this.props.elRef) {
+ setRef(this.props.elRef, el);
+ if (el && this.didMountMisfire) {
+ this.componentDidMount();
+ }
+ }
+ };
+ }
+ render() {
+ const { props } = this;
+ const generatedClassNames = generateClassNames(props.classNameGenerator, props.renderProps);
+ if (props.children) {
+ const elAttrs = buildElAttrs(props, generatedClassNames, this.handleEl);
+ const children = props.children(this.InnerContent, props.renderProps, elAttrs);
+ if (props.elTag) {
+ return (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(props.elTag, elAttrs, children);
+ }
+ else {
+ return children;
+ }
+ }
+ else {
+ return (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)((ContentInjector), Object.assign(Object.assign({}, props), { elRef: this.handleEl, elTag: props.elTag || 'div', elClasses: (props.elClasses || []).concat(generatedClassNames), renderId: this.context }));
+ }
+ }
+ componentDidMount() {
+ var _a, _b;
+ if (this.el) {
+ (_b = (_a = this.props).didMount) === null || _b === void 0 ? void 0 : _b.call(_a, Object.assign(Object.assign({}, this.props.renderProps), { el: this.el }));
+ }
+ else {
+ this.didMountMisfire = true;
+ }
+ }
+ componentWillUnmount() {
+ var _a, _b;
+ (_b = (_a = this.props).willUnmount) === null || _b === void 0 ? void 0 : _b.call(_a, Object.assign(Object.assign({}, this.props.renderProps), { el: this.el }));
+ }
+}
+ContentContainer.contextType = RenderId;
+function InnerContentInjector(containerComponent, props) {
+ const parentProps = containerComponent.props;
+ return (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)((ContentInjector), Object.assign({ renderProps: parentProps.renderProps, generatorName: parentProps.generatorName, customGenerator: parentProps.customGenerator, defaultGenerator: parentProps.defaultGenerator, renderId: containerComponent.context }, props));
+}
+// Utils
+function generateClassNames(classNameGenerator, renderProps) {
+ const classNames = typeof classNameGenerator === 'function' ?
+ classNameGenerator(renderProps) :
+ classNameGenerator || [];
+ return typeof classNames === 'string' ? [classNames] : classNames;
+}
+
+class ViewContainer extends BaseComponent {
+ render() {
+ let { props, context } = this;
+ let { options } = context;
+ let renderProps = { view: context.viewApi };
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(ContentContainer, { elRef: props.elRef, elTag: props.elTag || 'div', elAttrs: props.elAttrs, elClasses: [
+ ...buildViewClassNames(props.viewSpec),
+ ...(props.elClasses || []),
+ ], elStyle: props.elStyle, renderProps: renderProps, classNameGenerator: options.viewClassNames, generatorName: undefined, didMount: options.viewDidMount, willUnmount: options.viewWillUnmount }, () => props.children));
+ }
+}
+function buildViewClassNames(viewSpec) {
+ return [
+ `fc-${viewSpec.type}-view`,
+ 'fc-view',
+ ];
+}
+
+function parseRange(input, dateEnv) {
+ let start = null;
+ let end = null;
+ if (input.start) {
+ start = dateEnv.createMarker(input.start);
+ }
+ if (input.end) {
+ end = dateEnv.createMarker(input.end);
+ }
+ if (!start && !end) {
+ return null;
+ }
+ if (start && end && end < start) {
+ return null;
+ }
+ return { start, end };
+}
+// SIDE-EFFECT: will mutate ranges.
+// Will return a new array result.
+function invertRanges(ranges, constraintRange) {
+ let invertedRanges = [];
+ let { start } = constraintRange; // the end of the previous range. the start of the new range
+ let i;
+ let dateRange;
+ // ranges need to be in order. required for our date-walking algorithm
+ ranges.sort(compareRanges);
+ for (i = 0; i < ranges.length; i += 1) {
+ dateRange = ranges[i];
+ // add the span of time before the event (if there is any)
+ if (dateRange.start > start) { // compare millisecond time (skip any ambig logic)
+ invertedRanges.push({ start, end: dateRange.start });
+ }
+ if (dateRange.end > start) {
+ start = dateRange.end;
+ }
+ }
+ // add the span of time after the last event (if there is any)
+ if (start < constraintRange.end) { // compare millisecond time (skip any ambig logic)
+ invertedRanges.push({ start, end: constraintRange.end });
+ }
+ return invertedRanges;
+}
+function compareRanges(range0, range1) {
+ return range0.start.valueOf() - range1.start.valueOf(); // earlier ranges go first
+}
+function intersectRanges(range0, range1) {
+ let { start, end } = range0;
+ let newRange = null;
+ if (range1.start !== null) {
+ if (start === null) {
+ start = range1.start;
+ }
+ else {
+ start = new Date(Math.max(start.valueOf(), range1.start.valueOf()));
+ }
+ }
+ if (range1.end != null) {
+ if (end === null) {
+ end = range1.end;
+ }
+ else {
+ end = new Date(Math.min(end.valueOf(), range1.end.valueOf()));
+ }
+ }
+ if (start === null || end === null || start < end) {
+ newRange = { start, end };
+ }
+ return newRange;
+}
+function rangesEqual(range0, range1) {
+ return (range0.start === null ? null : range0.start.valueOf()) === (range1.start === null ? null : range1.start.valueOf()) &&
+ (range0.end === null ? null : range0.end.valueOf()) === (range1.end === null ? null : range1.end.valueOf());
+}
+function rangesIntersect(range0, range1) {
+ return (range0.end === null || range1.start === null || range0.end > range1.start) &&
+ (range0.start === null || range1.end === null || range0.start < range1.end);
+}
+function rangeContainsRange(outerRange, innerRange) {
+ return (outerRange.start === null || (innerRange.start !== null && innerRange.start >= outerRange.start)) &&
+ (outerRange.end === null || (innerRange.end !== null && innerRange.end <= outerRange.end));
+}
+function rangeContainsMarker(range, date) {
+ return (range.start === null || date >= range.start) &&
+ (range.end === null || date < range.end);
+}
+// If the given date is not within the given range, move it inside.
+// (If it's past the end, make it one millisecond before the end).
+function constrainMarkerToRange(date, range) {
+ if (range.start != null && date < range.start) {
+ return range.start;
+ }
+ if (range.end != null && date >= range.end) {
+ return new Date(range.end.valueOf() - 1);
+ }
+ return date;
+}
+
+/* Date stuff that doesn't belong in datelib core
+----------------------------------------------------------------------------------------------------------------------*/
+// given a timed range, computes an all-day range that has the same exact duration,
+// but whose start time is aligned with the start of the day.
+function computeAlignedDayRange(timedRange) {
+ let dayCnt = Math.floor(diffDays(timedRange.start, timedRange.end)) || 1;
+ let start = startOfDay(timedRange.start);
+ let end = addDays(start, dayCnt);
+ return { start, end };
+}
+// given a timed range, computes an all-day range based on how for the end date bleeds into the next day
+// TODO: give nextDayThreshold a default arg
+function computeVisibleDayRange(timedRange, nextDayThreshold = createDuration(0)) {
+ let startDay = null;
+ let endDay = null;
+ if (timedRange.end) {
+ endDay = startOfDay(timedRange.end);
+ let endTimeMS = timedRange.end.valueOf() - endDay.valueOf(); // # of milliseconds into `endDay`
+ // If the end time is actually inclusively part of the next day and is equal to or
+ // beyond the next day threshold, adjust the end to be the exclusive end of `endDay`.
+ // Otherwise, leaving it as inclusive will cause it to exclude `endDay`.
+ if (endTimeMS && endTimeMS >= asRoughMs(nextDayThreshold)) {
+ endDay = addDays(endDay, 1);
+ }
+ }
+ if (timedRange.start) {
+ startDay = startOfDay(timedRange.start); // the beginning of the day the range starts
+ // If end is within `startDay` but not past nextDayThreshold, assign the default duration of one day.
+ if (endDay && endDay <= startDay) {
+ endDay = addDays(startDay, 1);
+ }
+ }
+ return { start: startDay, end: endDay };
+}
+// spans from one day into another?
+function isMultiDayRange(range) {
+ let visibleRange = computeVisibleDayRange(range);
+ return diffDays(visibleRange.start, visibleRange.end) > 1;
+}
+function diffDates(date0, date1, dateEnv, largeUnit) {
+ if (largeUnit === 'year') {
+ return createDuration(dateEnv.diffWholeYears(date0, date1), 'year');
+ }
+ if (largeUnit === 'month') {
+ return createDuration(dateEnv.diffWholeMonths(date0, date1), 'month');
+ }
+ return diffDayAndTime(date0, date1); // returns a duration
+}
+
+class DateProfileGenerator {
+ constructor(props) {
+ this.props = props;
+ this.initHiddenDays();
+ }
+ /* Date Range Computation
+ ------------------------------------------------------------------------------------------------------------------*/
+ // Builds a structure with info about what the dates/ranges will be for the "prev" view.
+ buildPrev(currentDateProfile, currentDate, forceToValid) {
+ let { dateEnv } = this.props;
+ let prevDate = dateEnv.subtract(dateEnv.startOf(currentDate, currentDateProfile.currentRangeUnit), // important for start-of-month
+ currentDateProfile.dateIncrement);
+ return this.build(prevDate, -1, forceToValid);
+ }
+ // Builds a structure with info about what the dates/ranges will be for the "next" view.
+ buildNext(currentDateProfile, currentDate, forceToValid) {
+ let { dateEnv } = this.props;
+ let nextDate = dateEnv.add(dateEnv.startOf(currentDate, currentDateProfile.currentRangeUnit), // important for start-of-month
+ currentDateProfile.dateIncrement);
+ return this.build(nextDate, 1, forceToValid);
+ }
+ // Builds a structure holding dates/ranges for rendering around the given date.
+ // Optional direction param indicates whether the date is being incremented/decremented
+ // from its previous value. decremented = -1, incremented = 1 (default).
+ build(currentDate, direction, forceToValid = true) {
+ let { props } = this;
+ let validRange;
+ let currentInfo;
+ let isRangeAllDay;
+ let renderRange;
+ let activeRange;
+ let isValid;
+ validRange = this.buildValidRange();
+ validRange = this.trimHiddenDays(validRange);
+ if (forceToValid) {
+ currentDate = constrainMarkerToRange(currentDate, validRange);
+ }
+ currentInfo = this.buildCurrentRangeInfo(currentDate, direction);
+ isRangeAllDay = /^(year|month|week|day)$/.test(currentInfo.unit);
+ renderRange = this.buildRenderRange(this.trimHiddenDays(currentInfo.range), currentInfo.unit, isRangeAllDay);
+ renderRange = this.trimHiddenDays(renderRange);
+ activeRange = renderRange;
+ if (!props.showNonCurrentDates) {
+ activeRange = intersectRanges(activeRange, currentInfo.range);
+ }
+ activeRange = this.adjustActiveRange(activeRange);
+ activeRange = intersectRanges(activeRange, validRange); // might return null
+ // it's invalid if the originally requested date is not contained,
+ // or if the range is completely outside of the valid range.
+ isValid = rangesIntersect(currentInfo.range, validRange);
+ // HACK: constrain to render-range so `currentDate` is more useful to view rendering
+ if (!rangeContainsMarker(renderRange, currentDate)) {
+ currentDate = renderRange.start;
+ }
+ return {
+ currentDate,
+ // constraint for where prev/next operations can go and where events can be dragged/resized to.
+ // an object with optional start and end properties.
+ validRange,
+ // range the view is formally responsible for.
+ // for example, a month view might have 1st-31st, excluding padded dates
+ currentRange: currentInfo.range,
+ // name of largest unit being displayed, like "month" or "week"
+ currentRangeUnit: currentInfo.unit,
+ isRangeAllDay,
+ // dates that display events and accept drag-n-drop
+ // will be `null` if no dates accept events
+ activeRange,
+ // date range with a rendered skeleton
+ // includes not-active days that need some sort of DOM
+ renderRange,
+ // Duration object that denotes the first visible time of any given day
+ slotMinTime: props.slotMinTime,
+ // Duration object that denotes the exclusive visible end time of any given day
+ slotMaxTime: props.slotMaxTime,
+ isValid,
+ // how far the current date will move for a prev/next operation
+ dateIncrement: this.buildDateIncrement(currentInfo.duration),
+ // pass a fallback (might be null) ^
+ };
+ }
+ // Builds an object with optional start/end properties.
+ // Indicates the minimum/maximum dates to display.
+ // not responsible for trimming hidden days.
+ buildValidRange() {
+ let input = this.props.validRangeInput;
+ let simpleInput = typeof input === 'function'
+ ? input.call(this.props.calendarApi, this.props.dateEnv.toDate(this.props.nowManager.getDateMarker()))
+ : input;
+ return this.refineRange(simpleInput) ||
+ { start: null, end: null }; // completely open-ended
+ }
+ // Builds a structure with info about the "current" range, the range that is
+ // highlighted as being the current month for example.
+ // See build() for a description of `direction`.
+ // Guaranteed to have `range` and `unit` properties. `duration` is optional.
+ buildCurrentRangeInfo(date, direction) {
+ let { props } = this;
+ let duration = null;
+ let unit = null;
+ let range = null;
+ let dayCount;
+ if (props.duration) {
+ duration = props.duration;
+ unit = props.durationUnit;
+ range = this.buildRangeFromDuration(date, direction, duration, unit);
+ }
+ else if ((dayCount = this.props.dayCount)) {
+ unit = 'day';
+ range = this.buildRangeFromDayCount(date, direction, dayCount);
+ }
+ else if ((range = this.buildCustomVisibleRange(date))) {
+ unit = props.dateEnv.greatestWholeUnit(range.start, range.end).unit;
+ }
+ else {
+ duration = this.getFallbackDuration();
+ unit = greatestDurationDenominator(duration).unit;
+ range = this.buildRangeFromDuration(date, direction, duration, unit);
+ }
+ return { duration, unit, range };
+ }
+ getFallbackDuration() {
+ return createDuration({ day: 1 });
+ }
+ // Returns a new activeRange to have time values (un-ambiguate)
+ // slotMinTime or slotMaxTime causes the range to expand.
+ adjustActiveRange(range) {
+ let { dateEnv, usesMinMaxTime, slotMinTime, slotMaxTime } = this.props;
+ let { start, end } = range;
+ if (usesMinMaxTime) {
+ // expand active range if slotMinTime is negative (why not when positive?)
+ if (asRoughDays(slotMinTime) < 0) {
+ start = startOfDay(start); // necessary?
+ start = dateEnv.add(start, slotMinTime);
+ }
+ // expand active range if slotMaxTime is beyond one day (why not when negative?)
+ if (asRoughDays(slotMaxTime) > 1) {
+ end = startOfDay(end); // necessary?
+ end = addDays(end, -1);
+ end = dateEnv.add(end, slotMaxTime);
+ }
+ }
+ return { start, end };
+ }
+ // Builds the "current" range when it is specified as an explicit duration.
+ // `unit` is the already-computed greatestDurationDenominator unit of duration.
+ buildRangeFromDuration(date, direction, duration, unit) {
+ let { dateEnv, dateAlignment } = this.props;
+ let start;
+ let end;
+ let res;
+ // compute what the alignment should be
+ if (!dateAlignment) {
+ let { dateIncrement } = this.props;
+ if (dateIncrement) {
+ // use the smaller of the two units
+ if (asRoughMs(dateIncrement) < asRoughMs(duration)) {
+ dateAlignment = greatestDurationDenominator(dateIncrement).unit;
+ }
+ else {
+ dateAlignment = unit;
+ }
+ }
+ else {
+ dateAlignment = unit;
+ }
+ }
+ // if the view displays a single day or smaller
+ if (asRoughDays(duration) <= 1) {
+ if (this.isHiddenDay(start)) {
+ start = this.skipHiddenDays(start, direction);
+ start = startOfDay(start);
+ }
+ }
+ function computeRes() {
+ start = dateEnv.startOf(date, dateAlignment);
+ end = dateEnv.add(start, duration);
+ res = { start, end };
+ }
+ computeRes();
+ // if range is completely enveloped by hidden days, go past the hidden days
+ if (!this.trimHiddenDays(res)) {
+ date = this.skipHiddenDays(date, direction);
+ computeRes();
+ }
+ return res;
+ }
+ // Builds the "current" range when a dayCount is specified.
+ buildRangeFromDayCount(date, direction, dayCount) {
+ let { dateEnv, dateAlignment } = this.props;
+ let runningCount = 0;
+ let start = date;
+ let end;
+ if (dateAlignment) {
+ start = dateEnv.startOf(start, dateAlignment);
+ }
+ start = startOfDay(start);
+ start = this.skipHiddenDays(start, direction);
+ end = start;
+ do {
+ end = addDays(end, 1);
+ if (!this.isHiddenDay(end)) {
+ runningCount += 1;
+ }
+ } while (runningCount < dayCount);
+ return { start, end };
+ }
+ // Builds a normalized range object for the "visible" range,
+ // which is a way to define the currentRange and activeRange at the same time.
+ buildCustomVisibleRange(date) {
+ let { props } = this;
+ let input = props.visibleRangeInput;
+ let simpleInput = typeof input === 'function'
+ ? input.call(props.calendarApi, props.dateEnv.toDate(date))
+ : input;
+ let range = this.refineRange(simpleInput);
+ if (range && (range.start == null || range.end == null)) {
+ return null;
+ }
+ return range;
+ }
+ // Computes the range that will represent the element/cells for *rendering*,
+ // but which may have voided days/times.
+ // not responsible for trimming hidden days.
+ buildRenderRange(currentRange, currentRangeUnit, isRangeAllDay) {
+ return currentRange;
+ }
+ // Compute the duration value that should be added/substracted to the current date
+ // when a prev/next operation happens.
+ buildDateIncrement(fallback) {
+ let { dateIncrement } = this.props;
+ let customAlignment;
+ if (dateIncrement) {
+ return dateIncrement;
+ }
+ if ((customAlignment = this.props.dateAlignment)) {
+ return createDuration(1, customAlignment);
+ }
+ if (fallback) {
+ return fallback;
+ }
+ return createDuration({ days: 1 });
+ }
+ refineRange(rangeInput) {
+ if (rangeInput) {
+ let range = parseRange(rangeInput, this.props.dateEnv);
+ if (range) {
+ range = computeVisibleDayRange(range);
+ }
+ return range;
+ }
+ return null;
+ }
+ /* Hidden Days
+ ------------------------------------------------------------------------------------------------------------------*/
+ // Initializes internal variables related to calculating hidden days-of-week
+ initHiddenDays() {
+ let hiddenDays = this.props.hiddenDays || []; // array of day-of-week indices that are hidden
+ let isHiddenDayHash = []; // is the day-of-week hidden? (hash with day-of-week-index -> bool)
+ let dayCnt = 0;
+ let i;
+ if (this.props.weekends === false) {
+ hiddenDays.push(0, 6); // 0=sunday, 6=saturday
+ }
+ for (i = 0; i < 7; i += 1) {
+ if (!(isHiddenDayHash[i] = hiddenDays.indexOf(i) !== -1)) {
+ dayCnt += 1;
+ }
+ }
+ if (!dayCnt) {
+ throw new Error('invalid hiddenDays'); // all days were hidden? bad.
+ }
+ this.isHiddenDayHash = isHiddenDayHash;
+ }
+ // Remove days from the beginning and end of the range that are computed as hidden.
+ // If the whole range is trimmed off, returns null
+ trimHiddenDays(range) {
+ let { start, end } = range;
+ if (start) {
+ start = this.skipHiddenDays(start);
+ }
+ if (end) {
+ end = this.skipHiddenDays(end, -1, true);
+ }
+ if (start == null || end == null || start < end) {
+ return { start, end };
+ }
+ return null;
+ }
+ // Is the current day hidden?
+ // `day` is a day-of-week index (0-6), or a Date (used for UTC)
+ isHiddenDay(day) {
+ if (day instanceof Date) {
+ day = day.getUTCDay();
+ }
+ return this.isHiddenDayHash[day];
+ }
+ // Incrementing the current day until it is no longer a hidden day, returning a copy.
+ // DOES NOT CONSIDER validRange!
+ // If the initial value of `date` is not a hidden day, don't do anything.
+ // Pass `isExclusive` as `true` if you are dealing with an end date.
+ // `inc` defaults to `1` (increment one day forward each time)
+ skipHiddenDays(date, inc = 1, isExclusive = false) {
+ while (this.isHiddenDayHash[(date.getUTCDay() + (isExclusive ? inc : 0) + 7) % 7]) {
+ date = addDays(date, inc);
+ }
+ return date;
+ }
+}
+
+function createEventInstance(defId, range, forcedStartTzo, forcedEndTzo) {
+ return {
+ instanceId: guid(),
+ defId,
+ range,
+ forcedStartTzo: forcedStartTzo == null ? null : forcedStartTzo,
+ forcedEndTzo: forcedEndTzo == null ? null : forcedEndTzo,
+ };
+}
+
+function parseRecurring(refined, defaultAllDay, dateEnv, recurringTypes) {
+ for (let i = 0; i < recurringTypes.length; i += 1) {
+ let parsed = recurringTypes[i].parse(refined, dateEnv);
+ if (parsed) {
+ let { allDay } = refined;
+ if (allDay == null) {
+ allDay = defaultAllDay;
+ if (allDay == null) {
+ allDay = parsed.allDayGuess;
+ if (allDay == null) {
+ allDay = false;
+ }
+ }
+ }
+ return {
+ allDay,
+ duration: parsed.duration,
+ typeData: parsed.typeData,
+ typeId: i,
+ };
+ }
+ }
+ return null;
+}
+function expandRecurring(eventStore, framingRange, context) {
+ let { dateEnv, pluginHooks, options } = context;
+ let { defs, instances } = eventStore;
+ // remove existing recurring instances
+ // TODO: bad. always expand events as a second step
+ instances = filterHash(instances, (instance) => !defs[instance.defId].recurringDef);
+ for (let defId in defs) {
+ let def = defs[defId];
+ if (def.recurringDef) {
+ let { duration } = def.recurringDef;
+ if (!duration) {
+ duration = def.allDay ?
+ options.defaultAllDayEventDuration :
+ options.defaultTimedEventDuration;
+ }
+ let starts = expandRecurringRanges(def, duration, framingRange, dateEnv, pluginHooks.recurringTypes);
+ for (let start of starts) {
+ let instance = createEventInstance(defId, {
+ start,
+ end: dateEnv.add(start, duration),
+ });
+ instances[instance.instanceId] = instance;
+ }
+ }
+ }
+ return { defs, instances };
+}
+/*
+Event MUST have a recurringDef
+*/
+function expandRecurringRanges(eventDef, duration, framingRange, dateEnv, recurringTypes) {
+ let typeDef = recurringTypes[eventDef.recurringDef.typeId];
+ let markers = typeDef.expand(eventDef.recurringDef.typeData, {
+ start: dateEnv.subtract(framingRange.start, duration),
+ end: framingRange.end,
+ }, dateEnv);
+ // the recurrence plugins don't guarantee that all-day events are start-of-day, so we have to
+ if (eventDef.allDay) {
+ markers = markers.map(startOfDay);
+ }
+ return markers;
+}
+
+const EVENT_NON_DATE_REFINERS = {
+ id: String,
+ groupId: String,
+ title: String,
+ url: String,
+ interactive: Boolean,
+};
+const EVENT_DATE_REFINERS = {
+ start: identity,
+ end: identity,
+ date: identity,
+ allDay: Boolean,
+};
+const EVENT_REFINERS = Object.assign(Object.assign(Object.assign({}, EVENT_NON_DATE_REFINERS), EVENT_DATE_REFINERS), { extendedProps: identity });
+function parseEvent(raw, eventSource, context, allowOpenRange, refiners = buildEventRefiners(context), defIdMap, instanceIdMap) {
+ let { refined, extra } = refineEventDef(raw, context, refiners);
+ let defaultAllDay = computeIsDefaultAllDay(eventSource, context);
+ let recurringRes = parseRecurring(refined, defaultAllDay, context.dateEnv, context.pluginHooks.recurringTypes);
+ if (recurringRes) {
+ let def = parseEventDef(refined, extra, eventSource ? eventSource.sourceId : '', recurringRes.allDay, Boolean(recurringRes.duration), context, defIdMap);
+ def.recurringDef = {
+ typeId: recurringRes.typeId,
+ typeData: recurringRes.typeData,
+ duration: recurringRes.duration,
+ };
+ return { def, instance: null };
+ }
+ let singleRes = parseSingle(refined, defaultAllDay, context, allowOpenRange);
+ if (singleRes) {
+ let def = parseEventDef(refined, extra, eventSource ? eventSource.sourceId : '', singleRes.allDay, singleRes.hasEnd, context, defIdMap);
+ let instance = createEventInstance(def.defId, singleRes.range, singleRes.forcedStartTzo, singleRes.forcedEndTzo);
+ if (instanceIdMap && def.publicId && instanceIdMap[def.publicId]) {
+ instance.instanceId = instanceIdMap[def.publicId];
+ }
+ return { def, instance };
+ }
+ return null;
+}
+function refineEventDef(raw, context, refiners = buildEventRefiners(context)) {
+ return refineProps(raw, refiners);
+}
+function buildEventRefiners(context) {
+ return Object.assign(Object.assign(Object.assign({}, EVENT_UI_REFINERS), EVENT_REFINERS), context.pluginHooks.eventRefiners);
+}
+/*
+Will NOT populate extendedProps with the leftover properties.
+Will NOT populate date-related props.
+*/
+function parseEventDef(refined, extra, sourceId, allDay, hasEnd, context, defIdMap) {
+ let def = {
+ title: refined.title || '',
+ groupId: refined.groupId || '',
+ publicId: refined.id || '',
+ url: refined.url || '',
+ recurringDef: null,
+ defId: ((defIdMap && refined.id) ? defIdMap[refined.id] : '') || guid(),
+ sourceId,
+ allDay,
+ hasEnd,
+ interactive: refined.interactive,
+ ui: createEventUi(refined, context),
+ extendedProps: Object.assign(Object.assign({}, (refined.extendedProps || {})), extra),
+ };
+ for (let memberAdder of context.pluginHooks.eventDefMemberAdders) {
+ Object.assign(def, memberAdder(refined));
+ }
+ // help out EventImpl from having user modify props
+ Object.freeze(def.ui.classNames);
+ Object.freeze(def.extendedProps);
+ return def;
+}
+function parseSingle(refined, defaultAllDay, context, allowOpenRange) {
+ let { allDay } = refined;
+ let startMeta;
+ let startMarker = null;
+ let hasEnd = false;
+ let endMeta;
+ let endMarker = null;
+ let startInput = refined.start != null ? refined.start : refined.date;
+ startMeta = context.dateEnv.createMarkerMeta(startInput);
+ if (startMeta) {
+ startMarker = startMeta.marker;
+ }
+ else if (!allowOpenRange) {
+ return null;
+ }
+ if (refined.end != null) {
+ endMeta = context.dateEnv.createMarkerMeta(refined.end);
+ }
+ if (allDay == null) {
+ if (defaultAllDay != null) {
+ allDay = defaultAllDay;
+ }
+ else {
+ // fall back to the date props LAST
+ allDay = (!startMeta || startMeta.isTimeUnspecified) &&
+ (!endMeta || endMeta.isTimeUnspecified);
+ }
+ }
+ if (allDay && startMarker) {
+ startMarker = startOfDay(startMarker);
+ }
+ if (endMeta) {
+ endMarker = endMeta.marker;
+ if (allDay) {
+ endMarker = startOfDay(endMarker);
+ }
+ if (startMarker && endMarker <= startMarker) {
+ endMarker = null;
+ }
+ }
+ if (endMarker) {
+ hasEnd = true;
+ }
+ else if (!allowOpenRange) {
+ hasEnd = context.options.forceEventDuration || false;
+ endMarker = context.dateEnv.add(startMarker, allDay ?
+ context.options.defaultAllDayEventDuration :
+ context.options.defaultTimedEventDuration);
+ }
+ return {
+ allDay,
+ hasEnd,
+ range: { start: startMarker, end: endMarker },
+ forcedStartTzo: startMeta ? startMeta.forcedTzo : null,
+ forcedEndTzo: endMeta ? endMeta.forcedTzo : null,
+ };
+}
+function computeIsDefaultAllDay(eventSource, context) {
+ let res = null;
+ if (eventSource) {
+ res = eventSource.defaultAllDay;
+ }
+ if (res == null) {
+ res = context.options.defaultAllDay;
+ }
+ return res;
+}
+
+function parseEvents(rawEvents, eventSource, context, allowOpenRange, defIdMap, instanceIdMap) {
+ let eventStore = createEmptyEventStore();
+ let eventRefiners = buildEventRefiners(context);
+ for (let rawEvent of rawEvents) {
+ let tuple = parseEvent(rawEvent, eventSource, context, allowOpenRange, eventRefiners, defIdMap, instanceIdMap);
+ if (tuple) {
+ eventTupleToStore(tuple, eventStore);
+ }
+ }
+ return eventStore;
+}
+function eventTupleToStore(tuple, eventStore = createEmptyEventStore()) {
+ eventStore.defs[tuple.def.defId] = tuple.def;
+ if (tuple.instance) {
+ eventStore.instances[tuple.instance.instanceId] = tuple.instance;
+ }
+ return eventStore;
+}
+// retrieves events that have the same groupId as the instance specified by `instanceId`
+// or they are the same as the instance.
+// why might instanceId not be in the store? an event from another calendar?
+function getRelevantEvents(eventStore, instanceId) {
+ let instance = eventStore.instances[instanceId];
+ if (instance) {
+ let def = eventStore.defs[instance.defId];
+ // get events/instances with same group
+ let newStore = filterEventStoreDefs(eventStore, (lookDef) => isEventDefsGrouped(def, lookDef));
+ // add the original
+ // TODO: wish we could use eventTupleToStore or something like it
+ newStore.defs[def.defId] = def;
+ newStore.instances[instance.instanceId] = instance;
+ return newStore;
+ }
+ return createEmptyEventStore();
+}
+function isEventDefsGrouped(def0, def1) {
+ return Boolean(def0.groupId && def0.groupId === def1.groupId);
+}
+function createEmptyEventStore() {
+ return { defs: {}, instances: {} };
+}
+function mergeEventStores(store0, store1) {
+ return {
+ defs: Object.assign(Object.assign({}, store0.defs), store1.defs),
+ instances: Object.assign(Object.assign({}, store0.instances), store1.instances),
+ };
+}
+function filterEventStoreDefs(eventStore, filterFunc) {
+ let defs = filterHash(eventStore.defs, filterFunc);
+ let instances = filterHash(eventStore.instances, (instance) => (defs[instance.defId] // still exists?
+ ));
+ return { defs, instances };
+}
+function excludeSubEventStore(master, sub) {
+ let { defs, instances } = master;
+ let filteredDefs = {};
+ let filteredInstances = {};
+ for (let defId in defs) {
+ if (!sub.defs[defId]) { // not explicitly excluded
+ filteredDefs[defId] = defs[defId];
+ }
+ }
+ for (let instanceId in instances) {
+ if (!sub.instances[instanceId] && // not explicitly excluded
+ filteredDefs[instances[instanceId].defId] // def wasn't filtered away
+ ) {
+ filteredInstances[instanceId] = instances[instanceId];
+ }
+ }
+ return {
+ defs: filteredDefs,
+ instances: filteredInstances,
+ };
+}
+
+function normalizeConstraint(input, context) {
+ if (Array.isArray(input)) {
+ return parseEvents(input, null, context, true); // allowOpenRange=true
+ }
+ if (typeof input === 'object' && input) { // non-null object
+ return parseEvents([input], null, context, true); // allowOpenRange=true
+ }
+ if (input != null) {
+ return String(input);
+ }
+ return null;
+}
+
+function parseClassNames(raw) {
+ if (Array.isArray(raw)) {
+ return raw;
+ }
+ if (typeof raw === 'string') {
+ return raw.split(/\s+/);
+ }
+ return [];
+}
+
+// TODO: better called "EventSettings" or "EventConfig"
+// TODO: move this file into structs
+// TODO: separate constraint/overlap/allow, because selection uses only that, not other props
+const EVENT_UI_REFINERS = {
+ display: String,
+ editable: Boolean,
+ startEditable: Boolean,
+ durationEditable: Boolean,
+ constraint: identity,
+ overlap: identity,
+ allow: identity,
+ className: parseClassNames,
+ classNames: parseClassNames,
+ color: String,
+ backgroundColor: String,
+ borderColor: String,
+ textColor: String,
+};
+const EMPTY_EVENT_UI = {
+ display: null,
+ startEditable: null,
+ durationEditable: null,
+ constraints: [],
+ overlap: null,
+ allows: [],
+ backgroundColor: '',
+ borderColor: '',
+ textColor: '',
+ classNames: [],
+};
+function createEventUi(refined, context) {
+ let constraint = normalizeConstraint(refined.constraint, context);
+ return {
+ display: refined.display || null,
+ startEditable: refined.startEditable != null ? refined.startEditable : refined.editable,
+ durationEditable: refined.durationEditable != null ? refined.durationEditable : refined.editable,
+ constraints: constraint != null ? [constraint] : [],
+ overlap: refined.overlap != null ? refined.overlap : null,
+ allows: refined.allow != null ? [refined.allow] : [],
+ backgroundColor: refined.backgroundColor || refined.color || '',
+ borderColor: refined.borderColor || refined.color || '',
+ textColor: refined.textColor || '',
+ classNames: (refined.className || []).concat(refined.classNames || []), // join singular and plural
+ };
+}
+// TODO: prevent against problems with <2 args!
+function combineEventUis(uis) {
+ return uis.reduce(combineTwoEventUis, EMPTY_EVENT_UI);
+}
+function combineTwoEventUis(item0, item1) {
+ return {
+ display: item1.display != null ? item1.display : item0.display,
+ startEditable: item1.startEditable != null ? item1.startEditable : item0.startEditable,
+ durationEditable: item1.durationEditable != null ? item1.durationEditable : item0.durationEditable,
+ constraints: item0.constraints.concat(item1.constraints),
+ overlap: typeof item1.overlap === 'boolean' ? item1.overlap : item0.overlap,
+ allows: item0.allows.concat(item1.allows),
+ backgroundColor: item1.backgroundColor || item0.backgroundColor,
+ borderColor: item1.borderColor || item0.borderColor,
+ textColor: item1.textColor || item0.textColor,
+ classNames: item0.classNames.concat(item1.classNames),
+ };
+}
+
+const EVENT_SOURCE_REFINERS = {
+ id: String,
+ defaultAllDay: Boolean,
+ url: String,
+ format: String,
+ events: identity,
+ eventDataTransform: identity,
+ // for any network-related sources
+ success: identity,
+ failure: identity,
+};
+function parseEventSource(raw, context, refiners = buildEventSourceRefiners(context)) {
+ let rawObj;
+ if (typeof raw === 'string') {
+ rawObj = { url: raw };
+ }
+ else if (typeof raw === 'function' || Array.isArray(raw)) {
+ rawObj = { events: raw };
+ }
+ else if (typeof raw === 'object' && raw) { // not null
+ rawObj = raw;
+ }
+ if (rawObj) {
+ let { refined, extra } = refineProps(rawObj, refiners);
+ let metaRes = buildEventSourceMeta(refined, context);
+ if (metaRes) {
+ return {
+ _raw: raw,
+ isFetching: false,
+ latestFetchId: '',
+ fetchRange: null,
+ defaultAllDay: refined.defaultAllDay,
+ eventDataTransform: refined.eventDataTransform,
+ success: refined.success,
+ failure: refined.failure,
+ publicId: refined.id || '',
+ sourceId: guid(),
+ sourceDefId: metaRes.sourceDefId,
+ meta: metaRes.meta,
+ ui: createEventUi(refined, context),
+ extendedProps: extra,
+ };
+ }
+ }
+ return null;
+}
+function buildEventSourceRefiners(context) {
+ return Object.assign(Object.assign(Object.assign({}, EVENT_UI_REFINERS), EVENT_SOURCE_REFINERS), context.pluginHooks.eventSourceRefiners);
+}
+function buildEventSourceMeta(raw, context) {
+ let defs = context.pluginHooks.eventSourceDefs;
+ for (let i = defs.length - 1; i >= 0; i -= 1) { // later-added plugins take precedence
+ let def = defs[i];
+ let meta = def.parseMeta(raw);
+ if (meta) {
+ return { sourceDefId: i, meta };
+ }
+ }
+ return null;
+}
+
+function reduceEventStore(eventStore, action, eventSources, dateProfile, context) {
+ switch (action.type) {
+ case 'RECEIVE_EVENTS': // raw
+ return receiveRawEvents(eventStore, eventSources[action.sourceId], action.fetchId, action.fetchRange, action.rawEvents, context);
+ case 'RESET_RAW_EVENTS':
+ return resetRawEvents(eventStore, eventSources[action.sourceId], action.rawEvents, dateProfile.activeRange, context);
+ case 'ADD_EVENTS': // already parsed, but not expanded
+ return addEvent(eventStore, action.eventStore, // new ones
+ dateProfile ? dateProfile.activeRange : null, context);
+ case 'RESET_EVENTS':
+ return action.eventStore;
+ case 'MERGE_EVENTS': // already parsed and expanded
+ return mergeEventStores(eventStore, action.eventStore);
+ case 'PREV': // TODO: how do we track all actions that affect dateProfile :(
+ case 'NEXT':
+ case 'CHANGE_DATE':
+ case 'CHANGE_VIEW_TYPE':
+ if (dateProfile) {
+ return expandRecurring(eventStore, dateProfile.activeRange, context);
+ }
+ return eventStore;
+ case 'REMOVE_EVENTS':
+ return excludeSubEventStore(eventStore, action.eventStore);
+ case 'REMOVE_EVENT_SOURCE':
+ return excludeEventsBySourceId(eventStore, action.sourceId);
+ case 'REMOVE_ALL_EVENT_SOURCES':
+ return filterEventStoreDefs(eventStore, (eventDef) => (!eventDef.sourceId // only keep events with no source id
+ ));
+ case 'REMOVE_ALL_EVENTS':
+ return createEmptyEventStore();
+ default:
+ return eventStore;
+ }
+}
+function receiveRawEvents(eventStore, eventSource, fetchId, fetchRange, rawEvents, context) {
+ if (eventSource && // not already removed
+ fetchId === eventSource.latestFetchId // TODO: wish this logic was always in event-sources
+ ) {
+ let subset = parseEvents(transformRawEvents(rawEvents, eventSource, context), eventSource, context);
+ if (fetchRange) {
+ subset = expandRecurring(subset, fetchRange, context);
+ }
+ return mergeEventStores(excludeEventsBySourceId(eventStore, eventSource.sourceId), subset);
+ }
+ return eventStore;
+}
+function resetRawEvents(existingEventStore, eventSource, rawEvents, activeRange, context) {
+ const { defIdMap, instanceIdMap } = buildPublicIdMaps(existingEventStore);
+ let newEventStore = parseEvents(transformRawEvents(rawEvents, eventSource, context), eventSource, context, false, defIdMap, instanceIdMap);
+ return expandRecurring(newEventStore, activeRange, context);
+}
+function transformRawEvents(rawEvents, eventSource, context) {
+ let calEachTransform = context.options.eventDataTransform;
+ let sourceEachTransform = eventSource ? eventSource.eventDataTransform : null;
+ if (sourceEachTransform) {
+ rawEvents = transformEachRawEvent(rawEvents, sourceEachTransform);
+ }
+ if (calEachTransform) {
+ rawEvents = transformEachRawEvent(rawEvents, calEachTransform);
+ }
+ return rawEvents;
+}
+function transformEachRawEvent(rawEvents, func) {
+ let refinedEvents;
+ if (!func) {
+ refinedEvents = rawEvents;
+ }
+ else {
+ refinedEvents = [];
+ for (let rawEvent of rawEvents) {
+ let refinedEvent = func(rawEvent);
+ if (refinedEvent) {
+ refinedEvents.push(refinedEvent);
+ }
+ else if (refinedEvent == null) {
+ refinedEvents.push(rawEvent);
+ } // if a different falsy value, do nothing
+ }
+ }
+ return refinedEvents;
+}
+function addEvent(eventStore, subset, expandRange, context) {
+ if (expandRange) {
+ subset = expandRecurring(subset, expandRange, context);
+ }
+ return mergeEventStores(eventStore, subset);
+}
+function rezoneEventStoreDates(eventStore, oldDateEnv, newDateEnv) {
+ let { defs } = eventStore;
+ let instances = mapHash(eventStore.instances, (instance) => {
+ let def = defs[instance.defId];
+ if (def.allDay) {
+ return instance; // isn't dependent on timezone
+ }
+ return Object.assign(Object.assign({}, instance), { range: {
+ start: newDateEnv.createMarker(oldDateEnv.toDate(instance.range.start, instance.forcedStartTzo)),
+ end: newDateEnv.createMarker(oldDateEnv.toDate(instance.range.end, instance.forcedEndTzo)),
+ }, forcedStartTzo: newDateEnv.canComputeOffset ? null : instance.forcedStartTzo, forcedEndTzo: newDateEnv.canComputeOffset ? null : instance.forcedEndTzo });
+ });
+ return { defs, instances };
+}
+function excludeEventsBySourceId(eventStore, sourceId) {
+ return filterEventStoreDefs(eventStore, (eventDef) => eventDef.sourceId !== sourceId);
+}
+// QUESTION: why not just return instances? do a general object-property-exclusion util
+function excludeInstances(eventStore, removals) {
+ return {
+ defs: eventStore.defs,
+ instances: filterHash(eventStore.instances, (instance) => !removals[instance.instanceId]),
+ };
+}
+function buildPublicIdMaps(eventStore) {
+ const { defs, instances } = eventStore;
+ const defIdMap = {};
+ const instanceIdMap = {};
+ for (let defId in defs) {
+ const def = defs[defId];
+ const { publicId } = def;
+ if (publicId) {
+ defIdMap[publicId] = defId;
+ }
+ }
+ for (let instanceId in instances) {
+ const instance = instances[instanceId];
+ const def = defs[instance.defId];
+ const { publicId } = def;
+ if (publicId) {
+ instanceIdMap[publicId] = instanceId;
+ }
+ }
+ return { defIdMap, instanceIdMap };
+}
+
+class Emitter {
+ constructor() {
+ this.handlers = {};
+ this.thisContext = null;
+ }
+ setThisContext(thisContext) {
+ this.thisContext = thisContext;
+ }
+ setOptions(options) {
+ this.options = options;
+ }
+ on(type, handler) {
+ addToHash(this.handlers, type, handler);
+ }
+ off(type, handler) {
+ removeFromHash(this.handlers, type, handler);
+ }
+ trigger(type, ...args) {
+ let attachedHandlers = this.handlers[type] || [];
+ let optionHandler = this.options && this.options[type];
+ let handlers = [].concat(optionHandler || [], attachedHandlers);
+ for (let handler of handlers) {
+ handler.apply(this.thisContext, args);
+ }
+ }
+ hasHandlers(type) {
+ return Boolean((this.handlers[type] && this.handlers[type].length) ||
+ (this.options && this.options[type]));
+ }
+}
+function addToHash(hash, type, handler) {
+ (hash[type] || (hash[type] = []))
+ .push(handler);
+}
+function removeFromHash(hash, type, handler) {
+ if (handler) {
+ if (hash[type]) {
+ hash[type] = hash[type].filter((func) => func !== handler);
+ }
+ }
+ else {
+ delete hash[type]; // remove all handler funcs for this type
+ }
+}
+
+const DEF_DEFAULTS = {
+ startTime: '09:00',
+ endTime: '17:00',
+ daysOfWeek: [1, 2, 3, 4, 5],
+ display: 'inverse-background',
+ classNames: 'fc-non-business',
+ groupId: '_businessHours', // so multiple defs get grouped
+};
+/*
+TODO: pass around as EventDefHash!!!
+*/
+function parseBusinessHours(input, context) {
+ return parseEvents(refineInputs(input), null, context);
+}
+function refineInputs(input) {
+ let rawDefs;
+ if (input === true) {
+ rawDefs = [{}]; // will get DEF_DEFAULTS verbatim
+ }
+ else if (Array.isArray(input)) {
+ // if specifying an array, every sub-definition NEEDS a day-of-week
+ rawDefs = input.filter((rawDef) => rawDef.daysOfWeek);
+ }
+ else if (typeof input === 'object' && input) { // non-null object
+ rawDefs = [input];
+ }
+ else { // is probably false
+ rawDefs = [];
+ }
+ rawDefs = rawDefs.map((rawDef) => (Object.assign(Object.assign({}, DEF_DEFAULTS), rawDef)));
+ return rawDefs;
+}
+
+function triggerDateSelect(selection, pev, context) {
+ context.emitter.trigger('select', Object.assign(Object.assign({}, buildDateSpanApiWithContext(selection, context)), { jsEvent: pev ? pev.origEvent : null, view: context.viewApi || context.calendarApi.view }));
+}
+function triggerDateUnselect(pev, context) {
+ context.emitter.trigger('unselect', {
+ jsEvent: pev ? pev.origEvent : null,
+ view: context.viewApi || context.calendarApi.view,
+ });
+}
+function buildDateSpanApiWithContext(dateSpan, context) {
+ let props = {};
+ for (let transform of context.pluginHooks.dateSpanTransforms) {
+ Object.assign(props, transform(dateSpan, context));
+ }
+ Object.assign(props, buildDateSpanApi(dateSpan, context.dateEnv));
+ return props;
+}
+// Given an event's allDay status and start date, return what its fallback end date should be.
+// TODO: rename to computeDefaultEventEnd
+function getDefaultEventEnd(allDay, marker, context) {
+ let { dateEnv, options } = context;
+ let end = marker;
+ if (allDay) {
+ end = startOfDay(end);
+ end = dateEnv.add(end, options.defaultAllDayEventDuration);
+ }
+ else {
+ end = dateEnv.add(end, options.defaultTimedEventDuration);
+ }
+ return end;
+}
+
+// applies the mutation to ALL defs/instances within the event store
+function applyMutationToEventStore(eventStore, eventConfigBase, mutation, context) {
+ let eventConfigs = compileEventUis(eventStore.defs, eventConfigBase);
+ let dest = createEmptyEventStore();
+ for (let defId in eventStore.defs) {
+ let def = eventStore.defs[defId];
+ dest.defs[defId] = applyMutationToEventDef(def, eventConfigs[defId], mutation, context);
+ }
+ for (let instanceId in eventStore.instances) {
+ let instance = eventStore.instances[instanceId];
+ let def = dest.defs[instance.defId]; // important to grab the newly modified def
+ dest.instances[instanceId] = applyMutationToEventInstance(instance, def, eventConfigs[instance.defId], mutation, context);
+ }
+ return dest;
+}
+function applyMutationToEventDef(eventDef, eventConfig, mutation, context) {
+ let standardProps = mutation.standardProps || {};
+ // if hasEnd has not been specified, guess a good value based on deltas.
+ // if duration will change, there's no way the default duration will persist,
+ // and thus, we need to mark the event as having a real end
+ if (standardProps.hasEnd == null &&
+ eventConfig.durationEditable &&
+ (mutation.startDelta || mutation.endDelta)) {
+ standardProps.hasEnd = true; // TODO: is this mutation okay?
+ }
+ let copy = Object.assign(Object.assign(Object.assign({}, eventDef), standardProps), { ui: Object.assign(Object.assign({}, eventDef.ui), standardProps.ui) });
+ if (mutation.extendedProps) {
+ copy.extendedProps = Object.assign(Object.assign({}, copy.extendedProps), mutation.extendedProps);
+ }
+ for (let applier of context.pluginHooks.eventDefMutationAppliers) {
+ applier(copy, mutation, context);
+ }
+ if (!copy.hasEnd && context.options.forceEventDuration) {
+ copy.hasEnd = true;
+ }
+ return copy;
+}
+function applyMutationToEventInstance(eventInstance, eventDef, // must first be modified by applyMutationToEventDef
+eventConfig, mutation, context) {
+ let { dateEnv } = context;
+ let forceAllDay = mutation.standardProps && mutation.standardProps.allDay === true;
+ let clearEnd = mutation.standardProps && mutation.standardProps.hasEnd === false;
+ let copy = Object.assign({}, eventInstance);
+ if (forceAllDay) {
+ copy.range = computeAlignedDayRange(copy.range);
+ }
+ if (mutation.datesDelta && eventConfig.startEditable) {
+ copy.range = {
+ start: dateEnv.add(copy.range.start, mutation.datesDelta),
+ end: dateEnv.add(copy.range.end, mutation.datesDelta),
+ };
+ }
+ if (mutation.startDelta && eventConfig.durationEditable) {
+ copy.range = {
+ start: dateEnv.add(copy.range.start, mutation.startDelta),
+ end: copy.range.end,
+ };
+ }
+ if (mutation.endDelta && eventConfig.durationEditable) {
+ copy.range = {
+ start: copy.range.start,
+ end: dateEnv.add(copy.range.end, mutation.endDelta),
+ };
+ }
+ if (clearEnd) {
+ copy.range = {
+ start: copy.range.start,
+ end: getDefaultEventEnd(eventDef.allDay, copy.range.start, context),
+ };
+ }
+ // in case event was all-day but the supplied deltas were not
+ // better util for this?
+ if (eventDef.allDay) {
+ copy.range = {
+ start: startOfDay(copy.range.start),
+ end: startOfDay(copy.range.end),
+ };
+ }
+ // handle invalid durations
+ if (copy.range.end < copy.range.start) {
+ copy.range.end = getDefaultEventEnd(eventDef.allDay, copy.range.start, context);
+ }
+ return copy;
+}
+
+class EventSourceImpl {
+ constructor(context, internalEventSource) {
+ this.context = context;
+ this.internalEventSource = internalEventSource;
+ }
+ remove() {
+ this.context.dispatch({
+ type: 'REMOVE_EVENT_SOURCE',
+ sourceId: this.internalEventSource.sourceId,
+ });
+ }
+ refetch() {
+ this.context.dispatch({
+ type: 'FETCH_EVENT_SOURCES',
+ sourceIds: [this.internalEventSource.sourceId],
+ isRefetch: true,
+ });
+ }
+ get id() {
+ return this.internalEventSource.publicId;
+ }
+ get url() {
+ return this.internalEventSource.meta.url;
+ }
+ get format() {
+ return this.internalEventSource.meta.format; // TODO: bad. not guaranteed
+ }
+}
+
+class EventImpl {
+ // instance will be null if expressing a recurring event that has no current instances,
+ // OR if trying to validate an incoming external event that has no dates assigned
+ constructor(context, def, instance) {
+ this._context = context;
+ this._def = def;
+ this._instance = instance || null;
+ }
+ /*
+ TODO: make event struct more responsible for this
+ */
+ setProp(name, val) {
+ if (name in EVENT_DATE_REFINERS) {
+ console.warn('Could not set date-related prop \'name\'. Use one of the date-related methods instead.');
+ // TODO: make proper aliasing system?
+ }
+ else if (name === 'id') {
+ val = EVENT_NON_DATE_REFINERS[name](val);
+ this.mutate({
+ standardProps: { publicId: val }, // hardcoded internal name
+ });
+ }
+ else if (name in EVENT_NON_DATE_REFINERS) {
+ val = EVENT_NON_DATE_REFINERS[name](val);
+ this.mutate({
+ standardProps: { [name]: val },
+ });
+ }
+ else if (name in EVENT_UI_REFINERS) {
+ let ui = EVENT_UI_REFINERS[name](val);
+ if (name === 'color') {
+ ui = { backgroundColor: val, borderColor: val };
+ }
+ else if (name === 'editable') {
+ ui = { startEditable: val, durationEditable: val };
+ }
+ else {
+ ui = { [name]: val };
+ }
+ this.mutate({
+ standardProps: { ui },
+ });
+ }
+ else {
+ console.warn(`Could not set prop '${name}'. Use setExtendedProp instead.`);
+ }
+ }
+ setExtendedProp(name, val) {
+ this.mutate({
+ extendedProps: { [name]: val },
+ });
+ }
+ setStart(startInput, options = {}) {
+ let { dateEnv } = this._context;
+ let start = dateEnv.createMarker(startInput);
+ if (start && this._instance) { // TODO: warning if parsed bad
+ let instanceRange = this._instance.range;
+ let startDelta = diffDates(instanceRange.start, start, dateEnv, options.granularity); // what if parsed bad!?
+ if (options.maintainDuration) {
+ this.mutate({ datesDelta: startDelta });
+ }
+ else {
+ this.mutate({ startDelta });
+ }
+ }
+ }
+ setEnd(endInput, options = {}) {
+ let { dateEnv } = this._context;
+ let end;
+ if (endInput != null) {
+ end = dateEnv.createMarker(endInput);
+ if (!end) {
+ return; // TODO: warning if parsed bad
+ }
+ }
+ if (this._instance) {
+ if (end) {
+ let endDelta = diffDates(this._instance.range.end, end, dateEnv, options.granularity);
+ this.mutate({ endDelta });
+ }
+ else {
+ this.mutate({ standardProps: { hasEnd: false } });
+ }
+ }
+ }
+ setDates(startInput, endInput, options = {}) {
+ let { dateEnv } = this._context;
+ let standardProps = { allDay: options.allDay };
+ let start = dateEnv.createMarker(startInput);
+ let end;
+ if (!start) {
+ return; // TODO: warning if parsed bad
+ }
+ if (endInput != null) {
+ end = dateEnv.createMarker(endInput);
+ if (!end) { // TODO: warning if parsed bad
+ return;
+ }
+ }
+ if (this._instance) {
+ let instanceRange = this._instance.range;
+ // when computing the diff for an event being converted to all-day,
+ // compute diff off of the all-day values the way event-mutation does.
+ if (options.allDay === true) {
+ instanceRange = computeAlignedDayRange(instanceRange);
+ }
+ let startDelta = diffDates(instanceRange.start, start, dateEnv, options.granularity);
+ if (end) {
+ let endDelta = diffDates(instanceRange.end, end, dateEnv, options.granularity);
+ if (durationsEqual(startDelta, endDelta)) {
+ this.mutate({ datesDelta: startDelta, standardProps });
+ }
+ else {
+ this.mutate({ startDelta, endDelta, standardProps });
+ }
+ }
+ else { // means "clear the end"
+ standardProps.hasEnd = false;
+ this.mutate({ datesDelta: startDelta, standardProps });
+ }
+ }
+ }
+ moveStart(deltaInput) {
+ let delta = createDuration(deltaInput);
+ if (delta) { // TODO: warning if parsed bad
+ this.mutate({ startDelta: delta });
+ }
+ }
+ moveEnd(deltaInput) {
+ let delta = createDuration(deltaInput);
+ if (delta) { // TODO: warning if parsed bad
+ this.mutate({ endDelta: delta });
+ }
+ }
+ moveDates(deltaInput) {
+ let delta = createDuration(deltaInput);
+ if (delta) { // TODO: warning if parsed bad
+ this.mutate({ datesDelta: delta });
+ }
+ }
+ setAllDay(allDay, options = {}) {
+ let standardProps = { allDay };
+ let { maintainDuration } = options;
+ if (maintainDuration == null) {
+ maintainDuration = this._context.options.allDayMaintainDuration;
+ }
+ if (this._def.allDay !== allDay) {
+ standardProps.hasEnd = maintainDuration;
+ }
+ this.mutate({ standardProps });
+ }
+ formatRange(formatInput) {
+ let { dateEnv } = this._context;
+ let instance = this._instance;
+ let formatter = createFormatter(formatInput);
+ if (this._def.hasEnd) {
+ return dateEnv.formatRange(instance.range.start, instance.range.end, formatter, {
+ forcedStartTzo: instance.forcedStartTzo,
+ forcedEndTzo: instance.forcedEndTzo,
+ });
+ }
+ return dateEnv.format(instance.range.start, formatter, {
+ forcedTzo: instance.forcedStartTzo,
+ });
+ }
+ mutate(mutation) {
+ let instance = this._instance;
+ if (instance) {
+ let def = this._def;
+ let context = this._context;
+ let { eventStore } = context.getCurrentData();
+ let relevantEvents = getRelevantEvents(eventStore, instance.instanceId);
+ let eventConfigBase = {
+ '': {
+ display: '',
+ startEditable: true,
+ durationEditable: true,
+ constraints: [],
+ overlap: null,
+ allows: [],
+ backgroundColor: '',
+ borderColor: '',
+ textColor: '',
+ classNames: [],
+ },
+ };
+ relevantEvents = applyMutationToEventStore(relevantEvents, eventConfigBase, mutation, context);
+ let oldEvent = new EventImpl(context, def, instance); // snapshot
+ this._def = relevantEvents.defs[def.defId];
+ this._instance = relevantEvents.instances[instance.instanceId];
+ context.dispatch({
+ type: 'MERGE_EVENTS',
+ eventStore: relevantEvents,
+ });
+ context.emitter.trigger('eventChange', {
+ oldEvent,
+ event: this,
+ relatedEvents: buildEventApis(relevantEvents, context, instance),
+ revert() {
+ context.dispatch({
+ type: 'RESET_EVENTS',
+ eventStore, // the ORIGINAL store
+ });
+ },
+ });
+ }
+ }
+ remove() {
+ let context = this._context;
+ let asStore = eventApiToStore(this);
+ context.dispatch({
+ type: 'REMOVE_EVENTS',
+ eventStore: asStore,
+ });
+ context.emitter.trigger('eventRemove', {
+ event: this,
+ relatedEvents: [],
+ revert() {
+ context.dispatch({
+ type: 'MERGE_EVENTS',
+ eventStore: asStore,
+ });
+ },
+ });
+ }
+ get source() {
+ let { sourceId } = this._def;
+ if (sourceId) {
+ return new EventSourceImpl(this._context, this._context.getCurrentData().eventSources[sourceId]);
+ }
+ return null;
+ }
+ get start() {
+ return this._instance ?
+ this._context.dateEnv.toDate(this._instance.range.start) :
+ null;
+ }
+ get end() {
+ return (this._instance && this._def.hasEnd) ?
+ this._context.dateEnv.toDate(this._instance.range.end) :
+ null;
+ }
+ get startStr() {
+ let instance = this._instance;
+ if (instance) {
+ return this._context.dateEnv.formatIso(instance.range.start, {
+ omitTime: this._def.allDay,
+ forcedTzo: instance.forcedStartTzo,
+ });
+ }
+ return '';
+ }
+ get endStr() {
+ let instance = this._instance;
+ if (instance && this._def.hasEnd) {
+ return this._context.dateEnv.formatIso(instance.range.end, {
+ omitTime: this._def.allDay,
+ forcedTzo: instance.forcedEndTzo,
+ });
+ }
+ return '';
+ }
+ // computable props that all access the def
+ // TODO: find a TypeScript-compatible way to do this at scale
+ get id() { return this._def.publicId; }
+ get groupId() { return this._def.groupId; }
+ get allDay() { return this._def.allDay; }
+ get title() { return this._def.title; }
+ get url() { return this._def.url; }
+ get display() { return this._def.ui.display || 'auto'; } // bad. just normalize the type earlier
+ get startEditable() { return this._def.ui.startEditable; }
+ get durationEditable() { return this._def.ui.durationEditable; }
+ get constraint() { return this._def.ui.constraints[0] || null; }
+ get overlap() { return this._def.ui.overlap; }
+ get allow() { return this._def.ui.allows[0] || null; }
+ get backgroundColor() { return this._def.ui.backgroundColor; }
+ get borderColor() { return this._def.ui.borderColor; }
+ get textColor() { return this._def.ui.textColor; }
+ // NOTE: user can't modify these because Object.freeze was called in event-def parsing
+ get classNames() { return this._def.ui.classNames; }
+ get extendedProps() { return this._def.extendedProps; }
+ toPlainObject(settings = {}) {
+ let def = this._def;
+ let { ui } = def;
+ let { startStr, endStr } = this;
+ let res = {
+ allDay: def.allDay,
+ };
+ if (def.title) {
+ res.title = def.title;
+ }
+ if (startStr) {
+ res.start = startStr;
+ }
+ if (endStr) {
+ res.end = endStr;
+ }
+ if (def.publicId) {
+ res.id = def.publicId;
+ }
+ if (def.groupId) {
+ res.groupId = def.groupId;
+ }
+ if (def.url) {
+ res.url = def.url;
+ }
+ if (ui.display && ui.display !== 'auto') {
+ res.display = ui.display;
+ }
+ // TODO: what about recurring-event properties???
+ // TODO: include startEditable/durationEditable/constraint/overlap/allow
+ if (settings.collapseColor && ui.backgroundColor && ui.backgroundColor === ui.borderColor) {
+ res.color = ui.backgroundColor;
+ }
+ else {
+ if (ui.backgroundColor) {
+ res.backgroundColor = ui.backgroundColor;
+ }
+ if (ui.borderColor) {
+ res.borderColor = ui.borderColor;
+ }
+ }
+ if (ui.textColor) {
+ res.textColor = ui.textColor;
+ }
+ if (ui.classNames.length) {
+ res.classNames = ui.classNames;
+ }
+ if (Object.keys(def.extendedProps).length) {
+ if (settings.collapseExtendedProps) {
+ Object.assign(res, def.extendedProps);
+ }
+ else {
+ res.extendedProps = def.extendedProps;
+ }
+ }
+ return res;
+ }
+ toJSON() {
+ return this.toPlainObject();
+ }
+}
+function eventApiToStore(eventApi) {
+ let def = eventApi._def;
+ let instance = eventApi._instance;
+ return {
+ defs: { [def.defId]: def },
+ instances: instance
+ ? { [instance.instanceId]: instance }
+ : {},
+ };
+}
+function buildEventApis(eventStore, context, excludeInstance) {
+ let { defs, instances } = eventStore;
+ let eventApis = [];
+ let excludeInstanceId = excludeInstance ? excludeInstance.instanceId : '';
+ for (let id in instances) {
+ let instance = instances[id];
+ let def = defs[instance.defId];
+ if (instance.instanceId !== excludeInstanceId) {
+ eventApis.push(new EventImpl(context, def, instance));
+ }
+ }
+ return eventApis;
+}
+
+/*
+Specifying nextDayThreshold signals that all-day ranges should be sliced.
+*/
+function sliceEventStore(eventStore, eventUiBases, framingRange, nextDayThreshold) {
+ let inverseBgByGroupId = {};
+ let inverseBgByDefId = {};
+ let defByGroupId = {};
+ let bgRanges = [];
+ let fgRanges = [];
+ let eventUis = compileEventUis(eventStore.defs, eventUiBases);
+ for (let defId in eventStore.defs) {
+ let def = eventStore.defs[defId];
+ let ui = eventUis[def.defId];
+ if (ui.display === 'inverse-background') {
+ if (def.groupId) {
+ inverseBgByGroupId[def.groupId] = [];
+ if (!defByGroupId[def.groupId]) {
+ defByGroupId[def.groupId] = def;
+ }
+ }
+ else {
+ inverseBgByDefId[defId] = [];
+ }
+ }
+ }
+ for (let instanceId in eventStore.instances) {
+ let instance = eventStore.instances[instanceId];
+ let def = eventStore.defs[instance.defId];
+ let ui = eventUis[def.defId];
+ let origRange = instance.range;
+ let normalRange = (!def.allDay && nextDayThreshold) ?
+ computeVisibleDayRange(origRange, nextDayThreshold) :
+ origRange;
+ let slicedRange = intersectRanges(normalRange, framingRange);
+ if (slicedRange) {
+ if (ui.display === 'inverse-background') {
+ if (def.groupId) {
+ inverseBgByGroupId[def.groupId].push(slicedRange);
+ }
+ else {
+ inverseBgByDefId[instance.defId].push(slicedRange);
+ }
+ }
+ else if (ui.display !== 'none') {
+ (ui.display === 'background' ? bgRanges : fgRanges).push({
+ def,
+ ui,
+ instance,
+ range: slicedRange,
+ isStart: normalRange.start && normalRange.start.valueOf() === slicedRange.start.valueOf(),
+ isEnd: normalRange.end && normalRange.end.valueOf() === slicedRange.end.valueOf(),
+ });
+ }
+ }
+ }
+ for (let groupId in inverseBgByGroupId) { // BY GROUP
+ let ranges = inverseBgByGroupId[groupId];
+ let invertedRanges = invertRanges(ranges, framingRange);
+ for (let invertedRange of invertedRanges) {
+ let def = defByGroupId[groupId];
+ let ui = eventUis[def.defId];
+ bgRanges.push({
+ def,
+ ui,
+ instance: null,
+ range: invertedRange,
+ isStart: false,
+ isEnd: false,
+ });
+ }
+ }
+ for (let defId in inverseBgByDefId) {
+ let ranges = inverseBgByDefId[defId];
+ let invertedRanges = invertRanges(ranges, framingRange);
+ for (let invertedRange of invertedRanges) {
+ bgRanges.push({
+ def: eventStore.defs[defId],
+ ui: eventUis[defId],
+ instance: null,
+ range: invertedRange,
+ isStart: false,
+ isEnd: false,
+ });
+ }
+ }
+ return { bg: bgRanges, fg: fgRanges };
+}
+function hasBgRendering(def) {
+ return def.ui.display === 'background' || def.ui.display === 'inverse-background';
+}
+function setElSeg(el, seg) {
+ el.fcSeg = seg;
+}
+function getElSeg(el) {
+ return el.fcSeg ||
+ el.parentNode.fcSeg || // for the harness
+ null;
+}
+// event ui computation
+function compileEventUis(eventDefs, eventUiBases) {
+ return mapHash(eventDefs, (eventDef) => compileEventUi(eventDef, eventUiBases));
+}
+function compileEventUi(eventDef, eventUiBases) {
+ let uis = [];
+ if (eventUiBases['']) {
+ uis.push(eventUiBases['']);
+ }
+ if (eventUiBases[eventDef.defId]) {
+ uis.push(eventUiBases[eventDef.defId]);
+ }
+ uis.push(eventDef.ui);
+ return combineEventUis(uis);
+}
+function sortEventSegs(segs, eventOrderSpecs) {
+ let objs = segs.map(buildSegCompareObj);
+ objs.sort((obj0, obj1) => compareByFieldSpecs(obj0, obj1, eventOrderSpecs));
+ return objs.map((c) => c._seg);
+}
+// returns a object with all primitive props that can be compared
+function buildSegCompareObj(seg) {
+ let { eventRange } = seg;
+ let eventDef = eventRange.def;
+ let range = eventRange.instance ? eventRange.instance.range : eventRange.range;
+ let start = range.start ? range.start.valueOf() : 0; // TODO: better support for open-range events
+ let end = range.end ? range.end.valueOf() : 0; // "
+ return Object.assign(Object.assign(Object.assign({}, eventDef.extendedProps), eventDef), { id: eventDef.publicId, start,
+ end, duration: end - start, allDay: Number(eventDef.allDay), _seg: seg });
+}
+function computeSegDraggable(seg, context) {
+ let { pluginHooks } = context;
+ let transformers = pluginHooks.isDraggableTransformers;
+ let { def, ui } = seg.eventRange;
+ let val = ui.startEditable;
+ for (let transformer of transformers) {
+ val = transformer(val, def, ui, context);
+ }
+ return val;
+}
+function computeSegStartResizable(seg, context) {
+ return seg.isStart && seg.eventRange.ui.durationEditable && context.options.eventResizableFromStart;
+}
+function computeSegEndResizable(seg, context) {
+ return seg.isEnd && seg.eventRange.ui.durationEditable;
+}
+function buildSegTimeText(seg, timeFormat, context, defaultDisplayEventTime, // defaults to true
+defaultDisplayEventEnd, // defaults to true
+startOverride, endOverride) {
+ let { dateEnv, options } = context;
+ let { displayEventTime, displayEventEnd } = options;
+ let eventDef = seg.eventRange.def;
+ let eventInstance = seg.eventRange.instance;
+ if (displayEventTime == null) {
+ displayEventTime = defaultDisplayEventTime !== false;
+ }
+ if (displayEventEnd == null) {
+ displayEventEnd = defaultDisplayEventEnd !== false;
+ }
+ let wholeEventStart = eventInstance.range.start;
+ let wholeEventEnd = eventInstance.range.end;
+ let segStart = startOverride || seg.start || seg.eventRange.range.start;
+ let segEnd = endOverride || seg.end || seg.eventRange.range.end;
+ let isStartDay = startOfDay(wholeEventStart).valueOf() === startOfDay(segStart).valueOf();
+ let isEndDay = startOfDay(addMs(wholeEventEnd, -1)).valueOf() === startOfDay(addMs(segEnd, -1)).valueOf();
+ if (displayEventTime && !eventDef.allDay && (isStartDay || isEndDay)) {
+ segStart = isStartDay ? wholeEventStart : segStart;
+ segEnd = isEndDay ? wholeEventEnd : segEnd;
+ if (displayEventEnd && eventDef.hasEnd) {
+ return dateEnv.formatRange(segStart, segEnd, timeFormat, {
+ forcedStartTzo: startOverride ? null : eventInstance.forcedStartTzo,
+ forcedEndTzo: endOverride ? null : eventInstance.forcedEndTzo,
+ });
+ }
+ return dateEnv.format(segStart, timeFormat, {
+ forcedTzo: startOverride ? null : eventInstance.forcedStartTzo, // nooooo, same
+ });
+ }
+ return '';
+}
+function getSegMeta(seg, todayRange, nowDate) {
+ let segRange = seg.eventRange.range;
+ return {
+ isPast: segRange.end <= (nowDate || todayRange.start),
+ isFuture: segRange.start >= (nowDate || todayRange.end),
+ isToday: todayRange && rangeContainsMarker(todayRange, segRange.start),
+ };
+}
+function getEventClassNames(props) {
+ let classNames = ['fc-event'];
+ if (props.isMirror) {
+ classNames.push('fc-event-mirror');
+ }
+ if (props.isDraggable) {
+ classNames.push('fc-event-draggable');
+ }
+ if (props.isStartResizable || props.isEndResizable) {
+ classNames.push('fc-event-resizable');
+ }
+ if (props.isDragging) {
+ classNames.push('fc-event-dragging');
+ }
+ if (props.isResizing) {
+ classNames.push('fc-event-resizing');
+ }
+ if (props.isSelected) {
+ classNames.push('fc-event-selected');
+ }
+ if (props.isStart) {
+ classNames.push('fc-event-start');
+ }
+ if (props.isEnd) {
+ classNames.push('fc-event-end');
+ }
+ if (props.isPast) {
+ classNames.push('fc-event-past');
+ }
+ if (props.isToday) {
+ classNames.push('fc-event-today');
+ }
+ if (props.isFuture) {
+ classNames.push('fc-event-future');
+ }
+ return classNames;
+}
+function buildEventRangeKey(eventRange) {
+ return eventRange.instance
+ ? eventRange.instance.instanceId
+ : `${eventRange.def.defId}:${eventRange.range.start.toISOString()}`;
+ // inverse-background events don't have specific instances. TODO: better solution
+}
+function getSegAnchorAttrs(seg, context) {
+ let { def, instance } = seg.eventRange;
+ let { url } = def;
+ if (url) {
+ return { href: url };
+ }
+ let { emitter, options } = context;
+ let { eventInteractive } = options;
+ if (eventInteractive == null) {
+ eventInteractive = def.interactive;
+ if (eventInteractive == null) {
+ eventInteractive = Boolean(emitter.hasHandlers('eventClick'));
+ }
+ }
+ // mock what happens in EventClicking
+ if (eventInteractive) {
+ // only attach keyboard-related handlers because click handler is already done in EventClicking
+ return createAriaKeyboardAttrs((ev) => {
+ emitter.trigger('eventClick', {
+ el: ev.target,
+ event: new EventImpl(context, def, instance),
+ jsEvent: ev,
+ view: context.viewApi,
+ });
+ });
+ }
+ return {};
+}
+
+const STANDARD_PROPS = {
+ start: identity,
+ end: identity,
+ allDay: Boolean,
+};
+function parseDateSpan(raw, dateEnv, defaultDuration) {
+ let span = parseOpenDateSpan(raw, dateEnv);
+ let { range } = span;
+ if (!range.start) {
+ return null;
+ }
+ if (!range.end) {
+ if (defaultDuration == null) {
+ return null;
+ }
+ range.end = dateEnv.add(range.start, defaultDuration);
+ }
+ return span;
+}
+/*
+TODO: somehow combine with parseRange?
+Will return null if the start/end props were present but parsed invalidly.
+*/
+function parseOpenDateSpan(raw, dateEnv) {
+ let { refined: standardProps, extra } = refineProps(raw, STANDARD_PROPS);
+ let startMeta = standardProps.start ? dateEnv.createMarkerMeta(standardProps.start) : null;
+ let endMeta = standardProps.end ? dateEnv.createMarkerMeta(standardProps.end) : null;
+ let { allDay } = standardProps;
+ if (allDay == null) {
+ allDay = (startMeta && startMeta.isTimeUnspecified) &&
+ (!endMeta || endMeta.isTimeUnspecified);
+ }
+ return Object.assign({ range: {
+ start: startMeta ? startMeta.marker : null,
+ end: endMeta ? endMeta.marker : null,
+ }, allDay }, extra);
+}
+function isDateSpansEqual(span0, span1) {
+ return rangesEqual(span0.range, span1.range) &&
+ span0.allDay === span1.allDay &&
+ isSpanPropsEqual(span0, span1);
+}
+// the NON-DATE-RELATED props
+function isSpanPropsEqual(span0, span1) {
+ for (let propName in span1) {
+ if (propName !== 'range' && propName !== 'allDay') {
+ if (span0[propName] !== span1[propName]) {
+ return false;
+ }
+ }
+ }
+ // are there any props that span0 has that span1 DOESN'T have?
+ // both have range/allDay, so no need to special-case.
+ for (let propName in span0) {
+ if (!(propName in span1)) {
+ return false;
+ }
+ }
+ return true;
+}
+function buildDateSpanApi(span, dateEnv) {
+ return Object.assign(Object.assign({}, buildRangeApi(span.range, dateEnv, span.allDay)), { allDay: span.allDay });
+}
+function buildRangeApiWithTimeZone(range, dateEnv, omitTime) {
+ return Object.assign(Object.assign({}, buildRangeApi(range, dateEnv, omitTime)), { timeZone: dateEnv.timeZone });
+}
+function buildRangeApi(range, dateEnv, omitTime) {
+ return {
+ start: dateEnv.toDate(range.start),
+ end: dateEnv.toDate(range.end),
+ startStr: dateEnv.formatIso(range.start, { omitTime }),
+ endStr: dateEnv.formatIso(range.end, { omitTime }),
+ };
+}
+function fabricateEventRange(dateSpan, eventUiBases, context) {
+ let res = refineEventDef({ editable: false }, context);
+ let def = parseEventDef(res.refined, res.extra, '', // sourceId
+ dateSpan.allDay, true, // hasEnd
+ context);
+ return {
+ def,
+ ui: compileEventUi(def, eventUiBases),
+ instance: createEventInstance(def.defId, dateSpan.range),
+ range: dateSpan.range,
+ isStart: true,
+ isEnd: true,
+ };
+}
+
+/*
+given a function that resolves a result asynchronously.
+the function can either call passed-in success and failure callbacks,
+or it can return a promise.
+if you need to pass additional params to func, bind them first.
+*/
+function unpromisify(func, normalizedSuccessCallback, normalizedFailureCallback) {
+ // guard against success/failure callbacks being called more than once
+ // and guard against a promise AND callback being used together.
+ let isResolved = false;
+ let wrappedSuccess = function (res) {
+ if (!isResolved) {
+ isResolved = true;
+ normalizedSuccessCallback(res);
+ }
+ };
+ let wrappedFailure = function (error) {
+ if (!isResolved) {
+ isResolved = true;
+ normalizedFailureCallback(error);
+ }
+ };
+ let res = func(wrappedSuccess, wrappedFailure);
+ if (res && typeof res.then === 'function') {
+ res.then(wrappedSuccess, wrappedFailure);
+ }
+}
+
+class JsonRequestError extends Error {
+ constructor(message, response) {
+ super(message);
+ this.response = response;
+ }
+}
+function requestJson(method, url, params) {
+ method = method.toUpperCase();
+ const fetchOptions = {
+ method,
+ };
+ if (method === 'GET') {
+ url += (url.indexOf('?') === -1 ? '?' : '&') +
+ new URLSearchParams(params);
+ }
+ else {
+ fetchOptions.body = new URLSearchParams(params);
+ fetchOptions.headers = {
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ };
+ }
+ return fetch(url, fetchOptions).then((fetchRes) => {
+ if (fetchRes.ok) {
+ return fetchRes.json().then((parsedResponse) => {
+ return [parsedResponse, fetchRes];
+ }, () => {
+ throw new JsonRequestError('Failure parsing JSON', fetchRes);
+ });
+ }
+ else {
+ throw new JsonRequestError('Request failed', fetchRes);
+ }
+ });
+}
+
+let canVGrowWithinCell;
+function getCanVGrowWithinCell() {
+ if (canVGrowWithinCell == null) {
+ canVGrowWithinCell = computeCanVGrowWithinCell();
+ }
+ return canVGrowWithinCell;
+}
+function computeCanVGrowWithinCell() {
+ // for SSR, because this function is call immediately at top-level
+ // TODO: just make this logic execute top-level, immediately, instead of doing lazily
+ if (typeof document === 'undefined') {
+ return true;
+ }
+ let el = document.createElement('div');
+ el.style.position = 'absolute';
+ el.style.top = '0px';
+ el.style.left = '0px';
+ el.innerHTML = '<table><tr><td><div></div></td></tr></table>';
+ el.querySelector('table').style.height = '100px';
+ el.querySelector('div').style.height = '100%';
+ document.body.appendChild(el);
+ let div = el.querySelector('div');
+ let possible = div.offsetHeight > 0;
+ document.body.removeChild(el);
+ return possible;
+}
+
+class CalendarRoot extends BaseComponent {
+ constructor() {
+ super(...arguments);
+ this.state = {
+ forPrint: false,
+ };
+ this.handleBeforePrint = () => {
+ flushSync(() => {
+ this.setState({ forPrint: true });
+ });
+ };
+ this.handleAfterPrint = () => {
+ flushSync(() => {
+ this.setState({ forPrint: false });
+ });
+ };
+ }
+ render() {
+ let { props } = this;
+ let { options } = props;
+ let { forPrint } = this.state;
+ let isHeightAuto = forPrint || options.height === 'auto' || options.contentHeight === 'auto';
+ let height = (!isHeightAuto && options.height != null) ? options.height : '';
+ let classNames = [
+ 'fc',
+ forPrint ? 'fc-media-print' : 'fc-media-screen',
+ `fc-direction-${options.direction}`,
+ props.theme.getClass('root'),
+ ];
+ if (!getCanVGrowWithinCell()) {
+ classNames.push('fc-liquid-hack');
+ }
+ return props.children(classNames, height, isHeightAuto, forPrint);
+ }
+ componentDidMount() {
+ let { emitter } = this.props;
+ emitter.on('_beforeprint', this.handleBeforePrint);
+ emitter.on('_afterprint', this.handleAfterPrint);
+ }
+ componentWillUnmount() {
+ let { emitter } = this.props;
+ emitter.off('_beforeprint', this.handleBeforePrint);
+ emitter.off('_afterprint', this.handleAfterPrint);
+ }
+}
+
+class Interaction {
+ constructor(settings) {
+ this.component = settings.component;
+ this.isHitComboAllowed = settings.isHitComboAllowed || null;
+ }
+ destroy() {
+ }
+}
+function parseInteractionSettings(component, input) {
+ return {
+ component,
+ el: input.el,
+ useEventCenter: input.useEventCenter != null ? input.useEventCenter : true,
+ isHitComboAllowed: input.isHitComboAllowed || null,
+ };
+}
+function interactionSettingsToStore(settings) {
+ return {
+ [settings.component.uid]: settings,
+ };
+}
+// global state
+const interactionSettingsStore = {};
+
+class NowTimer extends preact__WEBPACK_IMPORTED_MODULE_0__.Component {
+ constructor(props, context) {
+ super(props, context);
+ this.handleRefresh = () => {
+ let timing = this.computeTiming();
+ if (timing.state.nowDate.valueOf() !== this.state.nowDate.valueOf()) {
+ this.setState(timing.state);
+ }
+ this.clearTimeout();
+ this.setTimeout(timing.waitMs);
+ };
+ this.handleVisibilityChange = () => {
+ if (!document.hidden) {
+ this.handleRefresh();
+ }
+ };
+ this.state = this.computeTiming().state;
+ }
+ render() {
+ let { props, state } = this;
+ return props.children(state.nowDate, state.todayRange);
+ }
+ componentDidMount() {
+ this.setTimeout();
+ this.context.nowManager.addResetListener(this.handleRefresh);
+ // fired tab becomes visible after being hidden
+ document.addEventListener('visibilitychange', this.handleVisibilityChange);
+ }
+ componentDidUpdate(prevProps) {
+ if (prevProps.unit !== this.props.unit) {
+ this.clearTimeout();
+ this.setTimeout();
+ }
+ }
+ componentWillUnmount() {
+ this.clearTimeout();
+ this.context.nowManager.removeResetListener(this.handleRefresh);
+ document.removeEventListener('visibilitychange', this.handleVisibilityChange);
+ }
+ computeTiming() {
+ let { props, context } = this;
+ let unroundedNow = context.nowManager.getDateMarker();
+ let { nowIndicatorSnap } = context.options;
+ if (nowIndicatorSnap === 'auto') {
+ nowIndicatorSnap =
+ // large unit?
+ /year|month|week|day/.test(props.unit) ||
+ // if slotDuration 30 mins for example, would NOT appear to snap (legacy behavior)
+ (props.unitValue || 1) === 1;
+ }
+ let nowDate;
+ let waitMs;
+ if (nowIndicatorSnap) {
+ nowDate = context.dateEnv.startOf(unroundedNow, props.unit); // aka currentUnitStart
+ let nextUnitStart = context.dateEnv.add(nowDate, createDuration(1, props.unit));
+ waitMs = nextUnitStart.valueOf() - unroundedNow.valueOf();
+ }
+ else {
+ nowDate = unroundedNow;
+ waitMs = 1000 * 60; // 1 minute
+ }
+ // there is a max setTimeout ms value (https://stackoverflow.com/a/3468650/96342)
+ // ensure no longer than a day
+ waitMs = Math.min(1000 * 60 * 60 * 24, waitMs);
+ return {
+ state: { nowDate, todayRange: buildDayRange(nowDate) },
+ waitMs,
+ };
+ }
+ setTimeout(waitMs = this.computeTiming().waitMs) {
+ // NOTE: timeout could take longer than expected if tab sleeps,
+ // which is why we listen to 'visibilitychange'
+ this.timeoutId = setTimeout(() => {
+ // NOTE: timeout could also return *earlier* than expected, and we need to wait 2 ms more
+ // This is why use use same waitMs from computeTiming, so we don't skip an interval while
+ // .setState() is executing
+ const timing = this.computeTiming();
+ this.setState(timing.state, () => {
+ this.setTimeout(timing.waitMs);
+ });
+ }, waitMs);
+ }
+ clearTimeout() {
+ if (this.timeoutId) {
+ clearTimeout(this.timeoutId);
+ }
+ }
+}
+NowTimer.contextType = ViewContextType;
+function buildDayRange(date) {
+ let start = startOfDay(date);
+ let end = addDays(start, 1);
+ return { start, end };
+}
+
+class CalendarImpl {
+ getCurrentData() {
+ return this.currentDataManager.getCurrentData();
+ }
+ dispatch(action) {
+ this.currentDataManager.dispatch(action);
+ }
+ get view() { return this.getCurrentData().viewApi; }
+ batchRendering(callback) {
+ callback();
+ }
+ updateSize() {
+ this.trigger('_resize', true);
+ }
+ // Options
+ // -----------------------------------------------------------------------------------------------------------------
+ setOption(name, val) {
+ this.dispatch({
+ type: 'SET_OPTION',
+ optionName: name,
+ rawOptionValue: val,
+ });
+ }
+ getOption(name) {
+ return this.currentDataManager.currentCalendarOptionsInput[name];
+ }
+ getAvailableLocaleCodes() {
+ return Object.keys(this.getCurrentData().availableRawLocales);
+ }
+ // Trigger
+ // -----------------------------------------------------------------------------------------------------------------
+ on(handlerName, handler) {
+ let { currentDataManager } = this;
+ if (currentDataManager.currentCalendarOptionsRefiners[handlerName]) {
+ currentDataManager.emitter.on(handlerName, handler);
+ }
+ else {
+ console.warn(`Unknown listener name '${handlerName}'`);
+ }
+ }
+ off(handlerName, handler) {
+ this.currentDataManager.emitter.off(handlerName, handler);
+ }
+ // not meant for public use
+ trigger(handlerName, ...args) {
+ this.currentDataManager.emitter.trigger(handlerName, ...args);
+ }
+ // View
+ // -----------------------------------------------------------------------------------------------------------------
+ changeView(viewType, dateOrRange) {
+ this.batchRendering(() => {
+ this.unselect();
+ if (dateOrRange) {
+ if (dateOrRange.start && dateOrRange.end) { // a range
+ this.dispatch({
+ type: 'CHANGE_VIEW_TYPE',
+ viewType,
+ });
+ this.dispatch({
+ type: 'SET_OPTION',
+ optionName: 'visibleRange',
+ rawOptionValue: dateOrRange,
+ });
+ }
+ else {
+ let { dateEnv } = this.getCurrentData();
+ this.dispatch({
+ type: 'CHANGE_VIEW_TYPE',
+ viewType,
+ dateMarker: dateEnv.createMarker(dateOrRange),
+ });
+ }
+ }
+ else {
+ this.dispatch({
+ type: 'CHANGE_VIEW_TYPE',
+ viewType,
+ });
+ }
+ });
+ }
+ // Forces navigation to a view for the given date.
+ // `viewType` can be a specific view name or a generic one like "week" or "day".
+ // needs to change
+ zoomTo(dateMarker, viewType) {
+ let state = this.getCurrentData();
+ let spec;
+ viewType = viewType || 'day'; // day is default zoom
+ spec = state.viewSpecs[viewType] || this.getUnitViewSpec(viewType);
+ this.unselect();
+ if (spec) {
+ this.dispatch({
+ type: 'CHANGE_VIEW_TYPE',
+ viewType: spec.type,
+ dateMarker,
+ });
+ }
+ else {
+ this.dispatch({
+ type: 'CHANGE_DATE',
+ dateMarker,
+ });
+ }
+ }
+ // Given a duration singular unit, like "week" or "day", finds a matching view spec.
+ // Preference is given to views that have corresponding buttons.
+ getUnitViewSpec(unit) {
+ let { viewSpecs, toolbarConfig } = this.getCurrentData();
+ let viewTypes = [].concat(toolbarConfig.header ? toolbarConfig.header.viewsWithButtons : [], toolbarConfig.footer ? toolbarConfig.footer.viewsWithButtons : []);
+ let i;
+ let spec;
+ for (let viewType in viewSpecs) {
+ viewTypes.push(viewType);
+ }
+ for (i = 0; i < viewTypes.length; i += 1) {
+ spec = viewSpecs[viewTypes[i]];
+ if (spec) {
+ if (spec.singleUnit === unit) {
+ return spec;
+ }
+ }
+ }
+ return null;
+ }
+ // Current Date
+ // -----------------------------------------------------------------------------------------------------------------
+ prev() {
+ this.unselect();
+ this.dispatch({ type: 'PREV' });
+ }
+ next() {
+ this.unselect();
+ this.dispatch({ type: 'NEXT' });
+ }
+ prevYear() {
+ let state = this.getCurrentData();
+ this.unselect();
+ this.dispatch({
+ type: 'CHANGE_DATE',
+ dateMarker: state.dateEnv.addYears(state.currentDate, -1),
+ });
+ }
+ nextYear() {
+ let state = this.getCurrentData();
+ this.unselect();
+ this.dispatch({
+ type: 'CHANGE_DATE',
+ dateMarker: state.dateEnv.addYears(state.currentDate, 1),
+ });
+ }
+ today() {
+ let state = this.getCurrentData();
+ this.unselect();
+ this.dispatch({
+ type: 'CHANGE_DATE',
+ dateMarker: state.nowManager.getDateMarker(),
+ });
+ }
+ gotoDate(zonedDateInput) {
+ let state = this.getCurrentData();
+ this.unselect();
+ this.dispatch({
+ type: 'CHANGE_DATE',
+ dateMarker: state.dateEnv.createMarker(zonedDateInput),
+ });
+ }
+ incrementDate(deltaInput) {
+ let state = this.getCurrentData();
+ let delta = createDuration(deltaInput);
+ if (delta) { // else, warn about invalid input?
+ this.unselect();
+ this.dispatch({
+ type: 'CHANGE_DATE',
+ dateMarker: state.dateEnv.add(state.currentDate, delta),
+ });
+ }
+ }
+ getDate() {
+ let state = this.getCurrentData();
+ return state.dateEnv.toDate(state.currentDate);
+ }
+ // Date Formatting Utils
+ // -----------------------------------------------------------------------------------------------------------------
+ formatDate(d, formatter) {
+ let { dateEnv } = this.getCurrentData();
+ return dateEnv.format(dateEnv.createMarker(d), createFormatter(formatter));
+ }
+ // `settings` is for formatter AND isEndExclusive
+ formatRange(d0, d1, settings) {
+ let { dateEnv } = this.getCurrentData();
+ return dateEnv.formatRange(dateEnv.createMarker(d0), dateEnv.createMarker(d1), createFormatter(settings), settings);
+ }
+ formatIso(d, omitTime) {
+ let { dateEnv } = this.getCurrentData();
+ return dateEnv.formatIso(dateEnv.createMarker(d), { omitTime });
+ }
+ // Date Selection / Event Selection / DayClick
+ // -----------------------------------------------------------------------------------------------------------------
+ select(dateOrObj, endDate) {
+ let selectionInput;
+ if (endDate == null) {
+ if (dateOrObj.start != null) {
+ selectionInput = dateOrObj;
+ }
+ else {
+ selectionInput = {
+ start: dateOrObj,
+ end: null,
+ };
+ }
+ }
+ else {
+ selectionInput = {
+ start: dateOrObj,
+ end: endDate,
+ };
+ }
+ let state = this.getCurrentData();
+ let selection = parseDateSpan(selectionInput, state.dateEnv, createDuration({ days: 1 }));
+ if (selection) { // throw parse error otherwise?
+ this.dispatch({ type: 'SELECT_DATES', selection });
+ triggerDateSelect(selection, null, state);
+ }
+ }
+ unselect(pev) {
+ let state = this.getCurrentData();
+ if (state.dateSelection) {
+ this.dispatch({ type: 'UNSELECT_DATES' });
+ triggerDateUnselect(pev, state);
+ }
+ }
+ // Public Events API
+ // -----------------------------------------------------------------------------------------------------------------
+ addEvent(eventInput, sourceInput) {
+ if (eventInput instanceof EventImpl) {
+ let def = eventInput._def;
+ let instance = eventInput._instance;
+ let currentData = this.getCurrentData();
+ // not already present? don't want to add an old snapshot
+ if (!currentData.eventStore.defs[def.defId]) {
+ this.dispatch({
+ type: 'ADD_EVENTS',
+ eventStore: eventTupleToStore({ def, instance }), // TODO: better util for two args?
+ });
+ this.triggerEventAdd(eventInput);
+ }
+ return eventInput;
+ }
+ let state = this.getCurrentData();
+ let eventSource;
+ if (sourceInput instanceof EventSourceImpl) {
+ eventSource = sourceInput.internalEventSource;
+ }
+ else if (typeof sourceInput === 'boolean') {
+ if (sourceInput) { // true. part of the first event source
+ [eventSource] = hashValuesToArray(state.eventSources);
+ }
+ }
+ else if (sourceInput != null) { // an ID. accepts a number too
+ let sourceApi = this.getEventSourceById(sourceInput); // TODO: use an internal function
+ if (!sourceApi) {
+ console.warn(`Could not find an event source with ID "${sourceInput}"`); // TODO: test
+ return null;
+ }
+ eventSource = sourceApi.internalEventSource;
+ }
+ let tuple = parseEvent(eventInput, eventSource, state, false);
+ if (tuple) {
+ let newEventApi = new EventImpl(state, tuple.def, tuple.def.recurringDef ? null : tuple.instance);
+ this.dispatch({
+ type: 'ADD_EVENTS',
+ eventStore: eventTupleToStore(tuple),
+ });
+ this.triggerEventAdd(newEventApi);
+ return newEventApi;
+ }
+ return null;
+ }
+ triggerEventAdd(eventApi) {
+ let { emitter } = this.getCurrentData();
+ emitter.trigger('eventAdd', {
+ event: eventApi,
+ relatedEvents: [],
+ revert: () => {
+ this.dispatch({
+ type: 'REMOVE_EVENTS',
+ eventStore: eventApiToStore(eventApi),
+ });
+ },
+ });
+ }
+ // TODO: optimize
+ getEventById(id) {
+ let state = this.getCurrentData();
+ let { defs, instances } = state.eventStore;
+ id = String(id);
+ for (let defId in defs) {
+ let def = defs[defId];
+ if (def.publicId === id) {
+ if (def.recurringDef) {
+ return new EventImpl(state, def, null);
+ }
+ for (let instanceId in instances) {
+ let instance = instances[instanceId];
+ if (instance.defId === def.defId) {
+ return new EventImpl(state, def, instance);
+ }
+ }
+ }
+ }
+ return null;
+ }
+ getEvents() {
+ let currentData = this.getCurrentData();
+ return buildEventApis(currentData.eventStore, currentData);
+ }
+ removeAllEvents() {
+ this.dispatch({ type: 'REMOVE_ALL_EVENTS' });
+ }
+ // Public Event Sources API
+ // -----------------------------------------------------------------------------------------------------------------
+ getEventSources() {
+ let state = this.getCurrentData();
+ let sourceHash = state.eventSources;
+ let sourceApis = [];
+ for (let internalId in sourceHash) {
+ sourceApis.push(new EventSourceImpl(state, sourceHash[internalId]));
+ }
+ return sourceApis;
+ }
+ getEventSourceById(id) {
+ let state = this.getCurrentData();
+ let sourceHash = state.eventSources;
+ id = String(id);
+ for (let sourceId in sourceHash) {
+ if (sourceHash[sourceId].publicId === id) {
+ return new EventSourceImpl(state, sourceHash[sourceId]);
+ }
+ }
+ return null;
+ }
+ addEventSource(sourceInput) {
+ let state = this.getCurrentData();
+ if (sourceInput instanceof EventSourceImpl) {
+ // not already present? don't want to add an old snapshot
+ if (!state.eventSources[sourceInput.internalEventSource.sourceId]) {
+ this.dispatch({
+ type: 'ADD_EVENT_SOURCES',
+ sources: [sourceInput.internalEventSource],
+ });
+ }
+ return sourceInput;
+ }
+ let eventSource = parseEventSource(sourceInput, state);
+ if (eventSource) { // TODO: error otherwise?
+ this.dispatch({ type: 'ADD_EVENT_SOURCES', sources: [eventSource] });
+ return new EventSourceImpl(state, eventSource);
+ }
+ return null;
+ }
+ removeAllEventSources() {
+ this.dispatch({ type: 'REMOVE_ALL_EVENT_SOURCES' });
+ }
+ refetchEvents() {
+ this.dispatch({ type: 'FETCH_EVENT_SOURCES', isRefetch: true });
+ }
+ // Scroll
+ // -----------------------------------------------------------------------------------------------------------------
+ scrollToTime(timeInput) {
+ let time = createDuration(timeInput);
+ if (time) {
+ this.trigger('_scrollRequest', { time });
+ }
+ }
+}
+
+function pointInsideRect(point, rect) {
+ return point.left >= rect.left &&
+ point.left < rect.right &&
+ point.top >= rect.top &&
+ point.top < rect.bottom;
+}
+// Returns a new rectangle that is the intersection of the two rectangles. If they don't intersect, returns false
+function intersectRects(rect1, rect2) {
+ let res = {
+ left: Math.max(rect1.left, rect2.left),
+ right: Math.min(rect1.right, rect2.right),
+ top: Math.max(rect1.top, rect2.top),
+ bottom: Math.min(rect1.bottom, rect2.bottom),
+ };
+ if (res.left < res.right && res.top < res.bottom) {
+ return res;
+ }
+ return false;
+}
+function translateRect(rect, deltaX, deltaY) {
+ return {
+ left: rect.left + deltaX,
+ right: rect.right + deltaX,
+ top: rect.top + deltaY,
+ bottom: rect.bottom + deltaY,
+ };
+}
+// Returns a new point that will have been moved to reside within the given rectangle
+function constrainPoint(point, rect) {
+ return {
+ left: Math.min(Math.max(point.left, rect.left), rect.right),
+ top: Math.min(Math.max(point.top, rect.top), rect.bottom),
+ };
+}
+// Returns a point that is the center of the given rectangle
+function getRectCenter(rect) {
+ return {
+ left: (rect.left + rect.right) / 2,
+ top: (rect.top + rect.bottom) / 2,
+ };
+}
+// Subtracts point2's coordinates from point1's coordinates, returning a delta
+function diffPoints(point1, point2) {
+ return {
+ left: point1.left - point2.left,
+ top: point1.top - point2.top,
+ };
+}
+
+const EMPTY_EVENT_STORE = createEmptyEventStore(); // for purecomponents. TODO: keep elsewhere
+class Splitter {
+ constructor() {
+ this.getKeysForEventDefs = memoize(this._getKeysForEventDefs);
+ this.splitDateSelection = memoize(this._splitDateSpan);
+ this.splitEventStore = memoize(this._splitEventStore);
+ this.splitIndividualUi = memoize(this._splitIndividualUi);
+ this.splitEventDrag = memoize(this._splitInteraction);
+ this.splitEventResize = memoize(this._splitInteraction);
+ this.eventUiBuilders = {}; // TODO: typescript protection
+ }
+ splitProps(props) {
+ let keyInfos = this.getKeyInfo(props);
+ let defKeys = this.getKeysForEventDefs(props.eventStore);
+ let dateSelections = this.splitDateSelection(props.dateSelection);
+ let individualUi = this.splitIndividualUi(props.eventUiBases, defKeys); // the individual *bases*
+ let eventStores = this.splitEventStore(props.eventStore, defKeys);
+ let eventDrags = this.splitEventDrag(props.eventDrag);
+ let eventResizes = this.splitEventResize(props.eventResize);
+ let splitProps = {};
+ this.eventUiBuilders = mapHash(keyInfos, (info, key) => this.eventUiBuilders[key] || memoize(buildEventUiForKey));
+ for (let key in keyInfos) {
+ let keyInfo = keyInfos[key];
+ let eventStore = eventStores[key] || EMPTY_EVENT_STORE;
+ let buildEventUi = this.eventUiBuilders[key];
+ splitProps[key] = {
+ businessHours: keyInfo.businessHours || props.businessHours,
+ dateSelection: dateSelections[key] || null,
+ eventStore,
+ eventUiBases: buildEventUi(props.eventUiBases[''], keyInfo.ui, individualUi[key]),
+ eventSelection: eventStore.instances[props.eventSelection] ? props.eventSelection : '',
+ eventDrag: eventDrags[key] || null,
+ eventResize: eventResizes[key] || null,
+ };
+ }
+ return splitProps;
+ }
+ _splitDateSpan(dateSpan) {
+ let dateSpans = {};
+ if (dateSpan) {
+ let keys = this.getKeysForDateSpan(dateSpan);
+ for (let key of keys) {
+ dateSpans[key] = dateSpan;
+ }
+ }
+ return dateSpans;
+ }
+ _getKeysForEventDefs(eventStore) {
+ return mapHash(eventStore.defs, (eventDef) => this.getKeysForEventDef(eventDef));
+ }
+ _splitEventStore(eventStore, defKeys) {
+ let { defs, instances } = eventStore;
+ let splitStores = {};
+ for (let defId in defs) {
+ for (let key of defKeys[defId]) {
+ if (!splitStores[key]) {
+ splitStores[key] = createEmptyEventStore();
+ }
+ splitStores[key].defs[defId] = defs[defId];
+ }
+ }
+ for (let instanceId in instances) {
+ let instance = instances[instanceId];
+ for (let key of defKeys[instance.defId]) {
+ if (splitStores[key]) { // must have already been created
+ splitStores[key].instances[instanceId] = instance;
+ }
+ }
+ }
+ return splitStores;
+ }
+ _splitIndividualUi(eventUiBases, defKeys) {
+ let splitHashes = {};
+ for (let defId in eventUiBases) {
+ if (defId) { // not the '' key
+ for (let key of defKeys[defId]) {
+ if (!splitHashes[key]) {
+ splitHashes[key] = {};
+ }
+ splitHashes[key][defId] = eventUiBases[defId];
+ }
+ }
+ }
+ return splitHashes;
+ }
+ _splitInteraction(interaction) {
+ let splitStates = {};
+ if (interaction) {
+ let affectedStores = this._splitEventStore(interaction.affectedEvents, this._getKeysForEventDefs(interaction.affectedEvents));
+ // can't rely on defKeys because event data is mutated
+ let mutatedKeysByDefId = this._getKeysForEventDefs(interaction.mutatedEvents);
+ let mutatedStores = this._splitEventStore(interaction.mutatedEvents, mutatedKeysByDefId);
+ let populate = (key) => {
+ if (!splitStates[key]) {
+ splitStates[key] = {
+ affectedEvents: affectedStores[key] || EMPTY_EVENT_STORE,
+ mutatedEvents: mutatedStores[key] || EMPTY_EVENT_STORE,
+ isEvent: interaction.isEvent,
+ };
+ }
+ };
+ for (let key in affectedStores) {
+ populate(key);
+ }
+ for (let key in mutatedStores) {
+ populate(key);
+ }
+ }
+ return splitStates;
+ }
+}
+function buildEventUiForKey(allUi, eventUiForKey, individualUi) {
+ let baseParts = [];
+ if (allUi) {
+ baseParts.push(allUi);
+ }
+ if (eventUiForKey) {
+ baseParts.push(eventUiForKey);
+ }
+ let stuff = {
+ '': combineEventUis(baseParts),
+ };
+ if (individualUi) {
+ Object.assign(stuff, individualUi);
+ }
+ return stuff;
+}
+
+function getDateMeta(date, todayRange, nowDate, dateProfile) {
+ return {
+ dow: date.getUTCDay(),
+ isDisabled: Boolean(dateProfile && (!dateProfile.activeRange || !rangeContainsMarker(dateProfile.activeRange, date))),
+ isOther: Boolean(dateProfile && !rangeContainsMarker(dateProfile.currentRange, date)),
+ isToday: Boolean(todayRange && rangeContainsMarker(todayRange, date)),
+ isPast: Boolean(nowDate ? (date < nowDate) : todayRange ? (date < todayRange.start) : false),
+ isFuture: Boolean(nowDate ? (date > nowDate) : todayRange ? (date >= todayRange.end) : false),
+ };
+}
+function getDayClassNames(meta, theme) {
+ let classNames = [
+ 'fc-day',
+ `fc-day-${DAY_IDS[meta.dow]}`,
+ ];
+ if (meta.isDisabled) {
+ classNames.push('fc-day-disabled');
+ }
+ else {
+ if (meta.isToday) {
+ classNames.push('fc-day-today');
+ classNames.push(theme.getClass('today'));
+ }
+ if (meta.isPast) {
+ classNames.push('fc-day-past');
+ }
+ if (meta.isFuture) {
+ classNames.push('fc-day-future');
+ }
+ if (meta.isOther) {
+ classNames.push('fc-day-other');
+ }
+ }
+ return classNames;
+}
+function getSlotClassNames(meta, theme) {
+ let classNames = [
+ 'fc-slot',
+ `fc-slot-${DAY_IDS[meta.dow]}`,
+ ];
+ if (meta.isDisabled) {
+ classNames.push('fc-slot-disabled');
+ }
+ else {
+ if (meta.isToday) {
+ classNames.push('fc-slot-today');
+ classNames.push(theme.getClass('today'));
+ }
+ if (meta.isPast) {
+ classNames.push('fc-slot-past');
+ }
+ if (meta.isFuture) {
+ classNames.push('fc-slot-future');
+ }
+ }
+ return classNames;
+}
+
+const DAY_FORMAT = createFormatter({ year: 'numeric', month: 'long', day: 'numeric' });
+const WEEK_FORMAT = createFormatter({ week: 'long' });
+function buildNavLinkAttrs(context, dateMarker, viewType = 'day', isTabbable = true) {
+ const { dateEnv, options, calendarApi } = context;
+ let dateStr = dateEnv.format(dateMarker, viewType === 'week' ? WEEK_FORMAT : DAY_FORMAT);
+ if (options.navLinks) {
+ let zonedDate = dateEnv.toDate(dateMarker);
+ const handleInteraction = (ev) => {
+ let customAction = viewType === 'day' ? options.navLinkDayClick :
+ viewType === 'week' ? options.navLinkWeekClick : null;
+ if (typeof customAction === 'function') {
+ customAction.call(calendarApi, dateEnv.toDate(dateMarker), ev);
+ }
+ else {
+ if (typeof customAction === 'string') {
+ viewType = customAction;
+ }
+ calendarApi.zoomTo(dateMarker, viewType);
+ }
+ };
+ return Object.assign({ title: formatWithOrdinals(options.navLinkHint, [dateStr, zonedDate], dateStr), 'data-navlink': '' }, (isTabbable
+ ? createAriaClickAttrs(handleInteraction)
+ : { onClick: handleInteraction }));
+ }
+ return { 'aria-label': dateStr };
+}
+
+let _isRtlScrollbarOnLeft = null;
+function getIsRtlScrollbarOnLeft() {
+ if (_isRtlScrollbarOnLeft === null) {
+ _isRtlScrollbarOnLeft = computeIsRtlScrollbarOnLeft();
+ }
+ return _isRtlScrollbarOnLeft;
+}
+function computeIsRtlScrollbarOnLeft() {
+ let outerEl = document.createElement('div');
+ applyStyle(outerEl, {
+ position: 'absolute',
+ top: -1000,
+ left: 0,
+ border: 0,
+ padding: 0,
+ overflow: 'scroll',
+ direction: 'rtl',
+ });
+ outerEl.innerHTML = '<div></div>';
+ document.body.appendChild(outerEl);
+ let innerEl = outerEl.firstChild;
+ let res = innerEl.getBoundingClientRect().left > outerEl.getBoundingClientRect().left;
+ removeElement(outerEl);
+ return res;
+}
+
+let _scrollbarWidths;
+function getScrollbarWidths() {
+ if (!_scrollbarWidths) {
+ _scrollbarWidths = computeScrollbarWidths();
+ }
+ return _scrollbarWidths;
+}
+function computeScrollbarWidths() {
+ let el = document.createElement('div');
+ el.style.overflow = 'scroll';
+ el.style.position = 'absolute';
+ el.style.top = '-9999px';
+ el.style.left = '-9999px';
+ document.body.appendChild(el);
+ let res = computeScrollbarWidthsForEl(el);
+ document.body.removeChild(el);
+ return res;
+}
+// WARNING: will include border
+function computeScrollbarWidthsForEl(el) {
+ return {
+ x: el.offsetHeight - el.clientHeight,
+ y: el.offsetWidth - el.clientWidth,
+ };
+}
+
+function computeEdges(el, getPadding = false) {
+ let computedStyle = window.getComputedStyle(el);
+ let borderLeft = parseInt(computedStyle.borderLeftWidth, 10) || 0;
+ let borderRight = parseInt(computedStyle.borderRightWidth, 10) || 0;
+ let borderTop = parseInt(computedStyle.borderTopWidth, 10) || 0;
+ let borderBottom = parseInt(computedStyle.borderBottomWidth, 10) || 0;
+ let badScrollbarWidths = computeScrollbarWidthsForEl(el); // includes border!
+ let scrollbarLeftRight = badScrollbarWidths.y - borderLeft - borderRight;
+ let scrollbarBottom = badScrollbarWidths.x - borderTop - borderBottom;
+ let res = {
+ borderLeft,
+ borderRight,
+ borderTop,
+ borderBottom,
+ scrollbarBottom,
+ scrollbarLeft: 0,
+ scrollbarRight: 0,
+ };
+ if (getIsRtlScrollbarOnLeft() && computedStyle.direction === 'rtl') { // is the scrollbar on the left side?
+ res.scrollbarLeft = scrollbarLeftRight;
+ }
+ else {
+ res.scrollbarRight = scrollbarLeftRight;
+ }
+ if (getPadding) {
+ res.paddingLeft = parseInt(computedStyle.paddingLeft, 10) || 0;
+ res.paddingRight = parseInt(computedStyle.paddingRight, 10) || 0;
+ res.paddingTop = parseInt(computedStyle.paddingTop, 10) || 0;
+ res.paddingBottom = parseInt(computedStyle.paddingBottom, 10) || 0;
+ }
+ return res;
+}
+function computeInnerRect(el, goWithinPadding = false, doFromWindowViewport) {
+ let outerRect = doFromWindowViewport ? el.getBoundingClientRect() : computeRect(el);
+ let edges = computeEdges(el, goWithinPadding);
+ let res = {
+ left: outerRect.left + edges.borderLeft + edges.scrollbarLeft,
+ right: outerRect.right - edges.borderRight - edges.scrollbarRight,
+ top: outerRect.top + edges.borderTop,
+ bottom: outerRect.bottom - edges.borderBottom - edges.scrollbarBottom,
+ };
+ if (goWithinPadding) {
+ res.left += edges.paddingLeft;
+ res.right -= edges.paddingRight;
+ res.top += edges.paddingTop;
+ res.bottom -= edges.paddingBottom;
+ }
+ return res;
+}
+function computeRect(el) {
+ let rect = el.getBoundingClientRect();
+ return {
+ left: rect.left + window.scrollX,
+ top: rect.top + window.scrollY,
+ right: rect.right + window.scrollX,
+ bottom: rect.bottom + window.scrollY,
+ };
+}
+function computeClippedClientRect(el) {
+ let clippingParents = getClippingParents(el);
+ let rect = el.getBoundingClientRect();
+ for (let clippingParent of clippingParents) {
+ let intersection = intersectRects(rect, clippingParent.getBoundingClientRect());
+ if (intersection) {
+ rect = intersection;
+ }
+ else {
+ return null;
+ }
+ }
+ return rect;
+}
+// does not return window
+function getClippingParents(el) {
+ let parents = [];
+ while (el instanceof HTMLElement) { // will stop when gets to document or null
+ let computedStyle = window.getComputedStyle(el);
+ if (computedStyle.position === 'fixed') {
+ break;
+ }
+ if ((/(auto|scroll)/).test(computedStyle.overflow + computedStyle.overflowY + computedStyle.overflowX)) {
+ parents.push(el);
+ }
+ el = el.parentNode;
+ }
+ return parents;
+}
+
+/*
+Records offset information for a set of elements, relative to an origin element.
+Can record the left/right OR the top/bottom OR both.
+Provides methods for querying the cache by position.
+*/
+class PositionCache {
+ constructor(originEl, els, isHorizontal, isVertical) {
+ this.els = els;
+ let originClientRect = this.originClientRect = originEl.getBoundingClientRect(); // relative to viewport top-left
+ if (isHorizontal) {
+ this.buildElHorizontals(originClientRect.left);
+ }
+ if (isVertical) {
+ this.buildElVerticals(originClientRect.top);
+ }
+ }
+ // Populates the left/right internal coordinate arrays
+ buildElHorizontals(originClientLeft) {
+ let lefts = [];
+ let rights = [];
+ for (let el of this.els) {
+ let rect = el.getBoundingClientRect();
+ lefts.push(rect.left - originClientLeft);
+ rights.push(rect.right - originClientLeft);
+ }
+ this.lefts = lefts;
+ this.rights = rights;
+ }
+ // Populates the top/bottom internal coordinate arrays
+ buildElVerticals(originClientTop) {
+ let tops = [];
+ let bottoms = [];
+ for (let el of this.els) {
+ let rect = el.getBoundingClientRect();
+ tops.push(rect.top - originClientTop);
+ bottoms.push(rect.bottom - originClientTop);
+ }
+ this.tops = tops;
+ this.bottoms = bottoms;
+ }
+ // Given a left offset (from document left), returns the index of the el that it horizontally intersects.
+ // If no intersection is made, returns undefined.
+ leftToIndex(leftPosition) {
+ let { lefts, rights } = this;
+ let len = lefts.length;
+ let i;
+ for (i = 0; i < len; i += 1) {
+ if (leftPosition >= lefts[i] && leftPosition < rights[i]) {
+ return i;
+ }
+ }
+ return undefined; // TODO: better
+ }
+ // Given a top offset (from document top), returns the index of the el that it vertically intersects.
+ // If no intersection is made, returns undefined.
+ topToIndex(topPosition) {
+ let { tops, bottoms } = this;
+ let len = tops.length;
+ let i;
+ for (i = 0; i < len; i += 1) {
+ if (topPosition >= tops[i] && topPosition < bottoms[i]) {
+ return i;
+ }
+ }
+ return undefined; // TODO: better
+ }
+ // Gets the width of the element at the given index
+ getWidth(leftIndex) {
+ return this.rights[leftIndex] - this.lefts[leftIndex];
+ }
+ // Gets the height of the element at the given index
+ getHeight(topIndex) {
+ return this.bottoms[topIndex] - this.tops[topIndex];
+ }
+ similarTo(otherCache) {
+ return similarNumArrays(this.tops || [], otherCache.tops || []) &&
+ similarNumArrays(this.bottoms || [], otherCache.bottoms || []) &&
+ similarNumArrays(this.lefts || [], otherCache.lefts || []) &&
+ similarNumArrays(this.rights || [], otherCache.rights || []);
+ }
+}
+function similarNumArrays(a, b) {
+ const len = a.length;
+ if (len !== b.length) {
+ return false;
+ }
+ for (let i = 0; i < len; i++) {
+ if (Math.round(a[i]) !== Math.round(b[i])) {
+ return false;
+ }
+ }
+ return true;
+}
+
+/* eslint max-classes-per-file: "off" */
+/*
+An object for getting/setting scroll-related information for an element.
+Internally, this is done very differently for window versus DOM element,
+so this object serves as a common interface.
+*/
+class ScrollController {
+ getMaxScrollTop() {
+ return this.getScrollHeight() - this.getClientHeight();
+ }
+ getMaxScrollLeft() {
+ return this.getScrollWidth() - this.getClientWidth();
+ }
+ canScrollVertically() {
+ return this.getMaxScrollTop() > 0;
+ }
+ canScrollHorizontally() {
+ return this.getMaxScrollLeft() > 0;
+ }
+ canScrollUp() {
+ return this.getScrollTop() > 0;
+ }
+ canScrollDown() {
+ return this.getScrollTop() < this.getMaxScrollTop();
+ }
+ canScrollLeft() {
+ return this.getScrollLeft() > 0;
+ }
+ canScrollRight() {
+ return this.getScrollLeft() < this.getMaxScrollLeft();
+ }
+}
+class ElementScrollController extends ScrollController {
+ constructor(el) {
+ super();
+ this.el = el;
+ }
+ getScrollTop() {
+ return this.el.scrollTop;
+ }
+ getScrollLeft() {
+ return this.el.scrollLeft;
+ }
+ setScrollTop(top) {
+ this.el.scrollTop = top;
+ }
+ setScrollLeft(left) {
+ this.el.scrollLeft = left;
+ }
+ getScrollWidth() {
+ return this.el.scrollWidth;
+ }
+ getScrollHeight() {
+ return this.el.scrollHeight;
+ }
+ getClientHeight() {
+ return this.el.clientHeight;
+ }
+ getClientWidth() {
+ return this.el.clientWidth;
+ }
+}
+class WindowScrollController extends ScrollController {
+ getScrollTop() {
+ return window.scrollY;
+ }
+ getScrollLeft() {
+ return window.scrollX;
+ }
+ setScrollTop(n) {
+ window.scroll(window.scrollX, n);
+ }
+ setScrollLeft(n) {
+ window.scroll(n, window.scrollY);
+ }
+ getScrollWidth() {
+ return document.documentElement.scrollWidth;
+ }
+ getScrollHeight() {
+ return document.documentElement.scrollHeight;
+ }
+ getClientHeight() {
+ return document.documentElement.clientHeight;
+ }
+ getClientWidth() {
+ return document.documentElement.clientWidth;
+ }
+}
+
+/*
+an INTERACTABLE date component
+
+PURPOSES:
+- hook up to fg, fill, and mirror renderers
+- interface for dragging and hits
+*/
+class DateComponent extends BaseComponent {
+ constructor() {
+ super(...arguments);
+ this.uid = guid();
+ }
+ // Hit System
+ // -----------------------------------------------------------------------------------------------------------------
+ prepareHits() {
+ }
+ queryHit(positionLeft, positionTop, elWidth, elHeight) {
+ return null; // this should be abstract
+ }
+ // Pointer Interaction Utils
+ // -----------------------------------------------------------------------------------------------------------------
+ isValidSegDownEl(el) {
+ return !this.props.eventDrag && // HACK
+ !this.props.eventResize && // HACK
+ !elementClosest(el, '.fc-event-mirror');
+ }
+ isValidDateDownEl(el) {
+ return !elementClosest(el, '.fc-event:not(.fc-bg-event)') &&
+ !elementClosest(el, '.fc-more-link') && // a "more.." link
+ !elementClosest(el, 'a[data-navlink]') && // a clickable nav link
+ !elementClosest(el, '.fc-popover'); // hack
+ }
+}
+
+class NamedTimeZoneImpl {
+ constructor(timeZoneName) {
+ this.timeZoneName = timeZoneName;
+ }
+}
+
+class SegHierarchy {
+ constructor(getEntryThickness = (entry) => {
+ // if no thickness known, assume 1 (if 0, so small it always fits)
+ return entry.thickness || 1;
+ }) {
+ this.getEntryThickness = getEntryThickness;
+ // settings
+ this.strictOrder = false;
+ this.allowReslicing = false;
+ this.maxCoord = -1; // -1 means no max
+ this.maxStackCnt = -1; // -1 means no max
+ this.levelCoords = []; // ordered
+ this.entriesByLevel = []; // parallel with levelCoords
+ this.stackCnts = {}; // TODO: use better technique!?
+ }
+ addSegs(inputs) {
+ let hiddenEntries = [];
+ for (let input of inputs) {
+ this.insertEntry(input, hiddenEntries);
+ }
+ return hiddenEntries;
+ }
+ insertEntry(entry, hiddenEntries) {
+ let insertion = this.findInsertion(entry);
+ if (this.isInsertionValid(insertion, entry)) {
+ this.insertEntryAt(entry, insertion);
+ }
+ else {
+ this.handleInvalidInsertion(insertion, entry, hiddenEntries);
+ }
+ }
+ isInsertionValid(insertion, entry) {
+ return (this.maxCoord === -1 || insertion.levelCoord + this.getEntryThickness(entry) <= this.maxCoord) &&
+ (this.maxStackCnt === -1 || insertion.stackCnt < this.maxStackCnt);
+ }
+ handleInvalidInsertion(insertion, entry, hiddenEntries) {
+ if (this.allowReslicing && insertion.touchingEntry) {
+ const hiddenEntry = Object.assign(Object.assign({}, entry), { span: intersectSpans(entry.span, insertion.touchingEntry.span) });
+ hiddenEntries.push(hiddenEntry);
+ this.splitEntry(entry, insertion.touchingEntry, hiddenEntries);
+ }
+ else {
+ hiddenEntries.push(entry);
+ }
+ }
+ /*
+ Does NOT add what hit the `barrier` into hiddenEntries. Should already be done.
+ */
+ splitEntry(entry, barrier, hiddenEntries) {
+ let entrySpan = entry.span;
+ let barrierSpan = barrier.span;
+ if (entrySpan.start < barrierSpan.start) {
+ this.insertEntry({
+ index: entry.index,
+ thickness: entry.thickness,
+ span: { start: entrySpan.start, end: barrierSpan.start },
+ }, hiddenEntries);
+ }
+ if (entrySpan.end > barrierSpan.end) {
+ this.insertEntry({
+ index: entry.index,
+ thickness: entry.thickness,
+ span: { start: barrierSpan.end, end: entrySpan.end },
+ }, hiddenEntries);
+ }
+ }
+ insertEntryAt(entry, insertion) {
+ let { entriesByLevel, levelCoords } = this;
+ if (insertion.lateral === -1) {
+ // create a new level
+ insertAt(levelCoords, insertion.level, insertion.levelCoord);
+ insertAt(entriesByLevel, insertion.level, [entry]);
+ }
+ else {
+ // insert into existing level
+ insertAt(entriesByLevel[insertion.level], insertion.lateral, entry);
+ }
+ this.stackCnts[buildEntryKey(entry)] = insertion.stackCnt;
+ }
+ /*
+ does not care about limits
+ */
+ findInsertion(newEntry) {
+ let { levelCoords, entriesByLevel, strictOrder, stackCnts } = this;
+ let levelCnt = levelCoords.length;
+ let candidateCoord = 0;
+ let touchingLevel = -1;
+ let touchingLateral = -1;
+ let touchingEntry = null;
+ let stackCnt = 0;
+ for (let trackingLevel = 0; trackingLevel < levelCnt; trackingLevel += 1) {
+ const trackingCoord = levelCoords[trackingLevel];
+ // if the current level is past the placed entry, we have found a good empty space and can stop.
+ // if strictOrder, keep finding more lateral intersections.
+ if (!strictOrder && trackingCoord >= candidateCoord + this.getEntryThickness(newEntry)) {
+ break;
+ }
+ let trackingEntries = entriesByLevel[trackingLevel];
+ let trackingEntry;
+ let searchRes = binarySearch(trackingEntries, newEntry.span.start, getEntrySpanEnd); // find first entry after newEntry's end
+ let lateralIndex = searchRes[0] + searchRes[1]; // if exact match (which doesn't collide), go to next one
+ while ( // loop through entries that horizontally intersect
+ (trackingEntry = trackingEntries[lateralIndex]) && // but not past the whole entry list
+ trackingEntry.span.start < newEntry.span.end // and not entirely past newEntry
+ ) {
+ let trackingEntryBottom = trackingCoord + this.getEntryThickness(trackingEntry);
+ // intersects into the top of the candidate?
+ if (trackingEntryBottom > candidateCoord) {
+ candidateCoord = trackingEntryBottom;
+ touchingEntry = trackingEntry;
+ touchingLevel = trackingLevel;
+ touchingLateral = lateralIndex;
+ }
+ // butts up against top of candidate? (will happen if just intersected as well)
+ if (trackingEntryBottom === candidateCoord) {
+ // accumulate the highest possible stackCnt of the trackingEntries that butt up
+ stackCnt = Math.max(stackCnt, stackCnts[buildEntryKey(trackingEntry)] + 1);
+ }
+ lateralIndex += 1;
+ }
+ }
+ // the destination level will be after touchingEntry's level. find it
+ let destLevel = 0;
+ if (touchingEntry) {
+ destLevel = touchingLevel + 1;
+ while (destLevel < levelCnt && levelCoords[destLevel] < candidateCoord) {
+ destLevel += 1;
+ }
+ }
+ // if adding to an existing level, find where to insert
+ let destLateral = -1;
+ if (destLevel < levelCnt && levelCoords[destLevel] === candidateCoord) {
+ destLateral = binarySearch(entriesByLevel[destLevel], newEntry.span.end, getEntrySpanEnd)[0];
+ }
+ return {
+ touchingLevel,
+ touchingLateral,
+ touchingEntry,
+ stackCnt,
+ levelCoord: candidateCoord,
+ level: destLevel,
+ lateral: destLateral,
+ };
+ }
+ // sorted by levelCoord (lowest to highest)
+ toRects() {
+ let { entriesByLevel, levelCoords } = this;
+ let levelCnt = entriesByLevel.length;
+ let rects = [];
+ for (let level = 0; level < levelCnt; level += 1) {
+ let entries = entriesByLevel[level];
+ let levelCoord = levelCoords[level];
+ for (let entry of entries) {
+ rects.push(Object.assign(Object.assign({}, entry), { thickness: this.getEntryThickness(entry), levelCoord }));
+ }
+ }
+ return rects;
+ }
+}
+function getEntrySpanEnd(entry) {
+ return entry.span.end;
+}
+function buildEntryKey(entry) {
+ return entry.index + ':' + entry.span.start;
+}
+// returns groups with entries sorted by input order
+function groupIntersectingEntries(entries) {
+ let merges = [];
+ for (let entry of entries) {
+ let filteredMerges = [];
+ let hungryMerge = {
+ span: entry.span,
+ entries: [entry],
+ };
+ for (let merge of merges) {
+ if (intersectSpans(merge.span, hungryMerge.span)) {
+ hungryMerge = {
+ entries: merge.entries.concat(hungryMerge.entries),
+ span: joinSpans(merge.span, hungryMerge.span),
+ };
+ }
+ else {
+ filteredMerges.push(merge);
+ }
+ }
+ filteredMerges.push(hungryMerge);
+ merges = filteredMerges;
+ }
+ return merges;
+}
+function joinSpans(span0, span1) {
+ return {
+ start: Math.min(span0.start, span1.start),
+ end: Math.max(span0.end, span1.end),
+ };
+}
+function intersectSpans(span0, span1) {
+ let start = Math.max(span0.start, span1.start);
+ let end = Math.min(span0.end, span1.end);
+ if (start < end) {
+ return { start, end };
+ }
+ return null;
+}
+// general util
+// ---------------------------------------------------------------------------------------------------------------------
+function insertAt(arr, index, item) {
+ arr.splice(index, 0, item);
+}
+function binarySearch(a, searchVal, getItemVal) {
+ let startIndex = 0;
+ let endIndex = a.length; // exclusive
+ if (!endIndex || searchVal < getItemVal(a[startIndex])) { // no items OR before first item
+ return [0, 0];
+ }
+ if (searchVal > getItemVal(a[endIndex - 1])) { // after last item
+ return [endIndex, 0];
+ }
+ while (startIndex < endIndex) {
+ let middleIndex = Math.floor(startIndex + (endIndex - startIndex) / 2);
+ let middleVal = getItemVal(a[middleIndex]);
+ if (searchVal < middleVal) {
+ endIndex = middleIndex;
+ }
+ else if (searchVal > middleVal) {
+ startIndex = middleIndex + 1;
+ }
+ else { // equal!
+ return [middleIndex, 1];
+ }
+ }
+ return [startIndex, 0];
+}
+
+/*
+An abstraction for a dragging interaction originating on an event.
+Does higher-level things than PointerDragger, such as possibly:
+- a "mirror" that moves with the pointer
+- a minimum number of pixels or other criteria for a true drag to begin
+
+subclasses must emit:
+- pointerdown
+- dragstart
+- dragmove
+- pointerup
+- dragend
+*/
+class ElementDragging {
+ constructor(el, selector) {
+ this.emitter = new Emitter();
+ }
+ destroy() {
+ }
+ setMirrorIsVisible(bool) {
+ // optional if subclass doesn't want to support a mirror
+ }
+ setMirrorNeedsRevert(bool) {
+ // optional if subclass doesn't want to support a mirror
+ }
+ setAutoScrollEnabled(bool) {
+ // optional
+ }
+}
+
+// TODO: get rid of this in favor of options system,
+// tho it's really easy to access this globally rather than pass thru options.
+const config = {};
+
+/*
+Information about what will happen when an external element is dragged-and-dropped
+onto a calendar. Contains information for creating an event.
+*/
+const DRAG_META_REFINERS = {
+ startTime: createDuration,
+ duration: createDuration,
+ create: Boolean,
+ sourceId: String,
+};
+function parseDragMeta(raw) {
+ let { refined, extra } = refineProps(raw, DRAG_META_REFINERS);
+ return {
+ startTime: refined.startTime || null,
+ duration: refined.duration || null,
+ create: refined.create != null ? refined.create : true,
+ sourceId: refined.sourceId,
+ leftoverProps: extra,
+ };
+}
+
+// Computes a default column header formatting string if `colFormat` is not explicitly defined
+function computeFallbackHeaderFormat(datesRepDistinctDays, dayCnt) {
+ // if more than one week row, or if there are a lot of columns with not much space,
+ // put just the day numbers will be in each cell
+ if (!datesRepDistinctDays || dayCnt > 10) {
+ return createFormatter({ weekday: 'short' }); // "Sat"
+ }
+ if (dayCnt > 1) {
+ return createFormatter({ weekday: 'short', month: 'numeric', day: 'numeric', omitCommas: true }); // "Sat 11/12"
+ }
+ return createFormatter({ weekday: 'long' }); // "Saturday"
+}
+
+const CLASS_NAME = 'fc-col-header-cell'; // do the cushion too? no
+function renderInner$1(renderProps) {
+ return renderProps.text;
+}
+
+// BAD name for this class now. used in the Header
+class TableDateCell extends BaseComponent {
+ render() {
+ let { dateEnv, options, theme, viewApi } = this.context;
+ let { props } = this;
+ let { date, dateProfile } = props;
+ let dayMeta = getDateMeta(date, props.todayRange, null, dateProfile);
+ let classNames = [CLASS_NAME].concat(getDayClassNames(dayMeta, theme));
+ let text = dateEnv.format(date, props.dayHeaderFormat);
+ // if colCnt is 1, we are already in a day-view and don't need a navlink
+ let navLinkAttrs = (!dayMeta.isDisabled && props.colCnt > 1)
+ ? buildNavLinkAttrs(this.context, date)
+ : {};
+ let publicDate = dateEnv.toDate(date);
+ // workaround for Luxon (and maybe moment) returning prior-days when start-of-day
+ // in DST gap: https://github.com/fullcalendar/fullcalendar/issues/7633
+ if (dateEnv.namedTimeZoneImpl) {
+ publicDate = addMs(publicDate, 3600000); // add an hour
+ }
+ let renderProps = Object.assign(Object.assign(Object.assign({ date: publicDate, view: viewApi }, props.extraRenderProps), { text }), dayMeta);
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(ContentContainer, { elTag: "th", elClasses: classNames, elAttrs: Object.assign({ role: 'columnheader', colSpan: props.colSpan, 'data-date': !dayMeta.isDisabled ? formatDayString(date) : undefined }, props.extraDataAttrs), renderProps: renderProps, generatorName: "dayHeaderContent", customGenerator: options.dayHeaderContent, defaultGenerator: renderInner$1, classNameGenerator: options.dayHeaderClassNames, didMount: options.dayHeaderDidMount, willUnmount: options.dayHeaderWillUnmount }, (InnerContainer) => ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "fc-scrollgrid-sync-inner" }, !dayMeta.isDisabled && ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(InnerContainer, { elTag: "a", elAttrs: navLinkAttrs, elClasses: [
+ 'fc-col-header-cell-cushion',
+ props.isSticky && 'fc-sticky',
+ ] }))))));
+ }
+}
+
+const WEEKDAY_FORMAT = createFormatter({ weekday: 'long' });
+class TableDowCell extends BaseComponent {
+ render() {
+ let { props } = this;
+ let { dateEnv, theme, viewApi, options } = this.context;
+ let date = addDays(new Date(259200000), props.dow); // start with Sun, 04 Jan 1970 00:00:00 GMT
+ let dateMeta = {
+ dow: props.dow,
+ isDisabled: false,
+ isFuture: false,
+ isPast: false,
+ isToday: false,
+ isOther: false,
+ };
+ let text = dateEnv.format(date, props.dayHeaderFormat);
+ let renderProps = Object.assign(Object.assign(Object.assign(Object.assign({ // TODO: make this public?
+ date }, dateMeta), { view: viewApi }), props.extraRenderProps), { text });
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(ContentContainer, { elTag: "th", elClasses: [
+ CLASS_NAME,
+ ...getDayClassNames(dateMeta, theme),
+ ...(props.extraClassNames || []),
+ ], elAttrs: Object.assign({ role: 'columnheader', colSpan: props.colSpan }, props.extraDataAttrs), renderProps: renderProps, generatorName: "dayHeaderContent", customGenerator: options.dayHeaderContent, defaultGenerator: renderInner$1, classNameGenerator: options.dayHeaderClassNames, didMount: options.dayHeaderDidMount, willUnmount: options.dayHeaderWillUnmount }, (InnerContent) => ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "fc-scrollgrid-sync-inner" },
+ (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(InnerContent, { elTag: "a", elClasses: [
+ 'fc-col-header-cell-cushion',
+ props.isSticky && 'fc-sticky',
+ ], elAttrs: {
+ 'aria-label': dateEnv.format(date, WEEKDAY_FORMAT),
+ } })))));
+ }
+}
+
+class DayHeader extends BaseComponent {
+ constructor() {
+ super(...arguments);
+ this.createDayHeaderFormatter = memoize(createDayHeaderFormatter);
+ }
+ render() {
+ let { context } = this;
+ let { dates, dateProfile, datesRepDistinctDays, renderIntro } = this.props;
+ let dayHeaderFormat = this.createDayHeaderFormatter(context.options.dayHeaderFormat, datesRepDistinctDays, dates.length);
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(NowTimer, { unit: "day" }, (nowDate, todayRange) => ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)("tr", { role: "row" },
+ renderIntro && renderIntro('day'),
+ dates.map((date) => (datesRepDistinctDays ? ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(TableDateCell, { key: date.toISOString(), date: date, dateProfile: dateProfile, todayRange: todayRange, colCnt: dates.length, dayHeaderFormat: dayHeaderFormat })) : ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(TableDowCell, { key: date.getUTCDay(), dow: date.getUTCDay(), dayHeaderFormat: dayHeaderFormat }))))))));
+ }
+}
+function createDayHeaderFormatter(explicitFormat, datesRepDistinctDays, dateCnt) {
+ return explicitFormat || computeFallbackHeaderFormat(datesRepDistinctDays, dateCnt);
+}
+
+class DaySeriesModel {
+ constructor(range, dateProfileGenerator) {
+ let date = range.start;
+ let { end } = range;
+ let indices = [];
+ let dates = [];
+ let dayIndex = -1;
+ while (date < end) { // loop each day from start to end
+ if (dateProfileGenerator.isHiddenDay(date)) {
+ indices.push(dayIndex + 0.5); // mark that it's between indices
+ }
+ else {
+ dayIndex += 1;
+ indices.push(dayIndex);
+ dates.push(date);
+ }
+ date = addDays(date, 1);
+ }
+ this.dates = dates;
+ this.indices = indices;
+ this.cnt = dates.length;
+ }
+ sliceRange(range) {
+ let firstIndex = this.getDateDayIndex(range.start); // inclusive first index
+ let lastIndex = this.getDateDayIndex(addDays(range.end, -1)); // inclusive last index
+ let clippedFirstIndex = Math.max(0, firstIndex);
+ let clippedLastIndex = Math.min(this.cnt - 1, lastIndex);
+ // deal with in-between indices
+ clippedFirstIndex = Math.ceil(clippedFirstIndex); // in-between starts round to next cell
+ clippedLastIndex = Math.floor(clippedLastIndex); // in-between ends round to prev cell
+ if (clippedFirstIndex <= clippedLastIndex) {
+ return {
+ firstIndex: clippedFirstIndex,
+ lastIndex: clippedLastIndex,
+ isStart: firstIndex === clippedFirstIndex,
+ isEnd: lastIndex === clippedLastIndex,
+ };
+ }
+ return null;
+ }
+ // Given a date, returns its chronolocial cell-index from the first cell of the grid.
+ // If the date lies between cells (because of hiddenDays), returns a floating-point value between offsets.
+ // If before the first offset, returns a negative number.
+ // If after the last offset, returns an offset past the last cell offset.
+ // Only works for *start* dates of cells. Will not work for exclusive end dates for cells.
+ getDateDayIndex(date) {
+ let { indices } = this;
+ let dayOffset = Math.floor(diffDays(this.dates[0], date));
+ if (dayOffset < 0) {
+ return indices[0] - 1;
+ }
+ if (dayOffset >= indices.length) {
+ return indices[indices.length - 1] + 1;
+ }
+ return indices[dayOffset];
+ }
+}
+
+class DayTableModel {
+ constructor(daySeries, breakOnWeeks) {
+ let { dates } = daySeries;
+ let daysPerRow;
+ let firstDay;
+ let rowCnt;
+ if (breakOnWeeks) {
+ // count columns until the day-of-week repeats
+ firstDay = dates[0].getUTCDay();
+ for (daysPerRow = 1; daysPerRow < dates.length; daysPerRow += 1) {
+ if (dates[daysPerRow].getUTCDay() === firstDay) {
+ break;
+ }
+ }
+ rowCnt = Math.ceil(dates.length / daysPerRow);
+ }
+ else {
+ rowCnt = 1;
+ daysPerRow = dates.length;
+ }
+ this.rowCnt = rowCnt;
+ this.colCnt = daysPerRow;
+ this.daySeries = daySeries;
+ this.cells = this.buildCells();
+ this.headerDates = this.buildHeaderDates();
+ }
+ buildCells() {
+ let rows = [];
+ for (let row = 0; row < this.rowCnt; row += 1) {
+ let cells = [];
+ for (let col = 0; col < this.colCnt; col += 1) {
+ cells.push(this.buildCell(row, col));
+ }
+ rows.push(cells);
+ }
+ return rows;
+ }
+ buildCell(row, col) {
+ let date = this.daySeries.dates[row * this.colCnt + col];
+ return {
+ key: date.toISOString(),
+ date,
+ };
+ }
+ buildHeaderDates() {
+ let dates = [];
+ for (let col = 0; col < this.colCnt; col += 1) {
+ dates.push(this.cells[0][col].date);
+ }
+ return dates;
+ }
+ sliceRange(range) {
+ let { colCnt } = this;
+ let seriesSeg = this.daySeries.sliceRange(range);
+ let segs = [];
+ if (seriesSeg) {
+ let { firstIndex, lastIndex } = seriesSeg;
+ let index = firstIndex;
+ while (index <= lastIndex) {
+ let row = Math.floor(index / colCnt);
+ let nextIndex = Math.min((row + 1) * colCnt, lastIndex + 1);
+ segs.push({
+ row,
+ firstCol: index % colCnt,
+ lastCol: (nextIndex - 1) % colCnt,
+ isStart: seriesSeg.isStart && index === firstIndex,
+ isEnd: seriesSeg.isEnd && (nextIndex - 1) === lastIndex,
+ });
+ index = nextIndex;
+ }
+ }
+ return segs;
+ }
+}
+
+class Slicer {
+ constructor() {
+ this.sliceBusinessHours = memoize(this._sliceBusinessHours);
+ this.sliceDateSelection = memoize(this._sliceDateSpan);
+ this.sliceEventStore = memoize(this._sliceEventStore);
+ this.sliceEventDrag = memoize(this._sliceInteraction);
+ this.sliceEventResize = memoize(this._sliceInteraction);
+ this.forceDayIfListItem = false; // hack
+ }
+ sliceProps(props, dateProfile, nextDayThreshold, context, ...extraArgs) {
+ let { eventUiBases } = props;
+ let eventSegs = this.sliceEventStore(props.eventStore, eventUiBases, dateProfile, nextDayThreshold, ...extraArgs);
+ return {
+ dateSelectionSegs: this.sliceDateSelection(props.dateSelection, dateProfile, nextDayThreshold, eventUiBases, context, ...extraArgs),
+ businessHourSegs: this.sliceBusinessHours(props.businessHours, dateProfile, nextDayThreshold, context, ...extraArgs),
+ fgEventSegs: eventSegs.fg,
+ bgEventSegs: eventSegs.bg,
+ eventDrag: this.sliceEventDrag(props.eventDrag, eventUiBases, dateProfile, nextDayThreshold, ...extraArgs),
+ eventResize: this.sliceEventResize(props.eventResize, eventUiBases, dateProfile, nextDayThreshold, ...extraArgs),
+ eventSelection: props.eventSelection,
+ }; // TODO: give interactionSegs?
+ }
+ sliceNowDate(// does not memoize
+ date, dateProfile, nextDayThreshold, context, ...extraArgs) {
+ return this._sliceDateSpan({ range: { start: date, end: addMs(date, 1) }, allDay: false }, // add 1 ms, protect against null range
+ dateProfile, nextDayThreshold, {}, context, ...extraArgs);
+ }
+ _sliceBusinessHours(businessHours, dateProfile, nextDayThreshold, context, ...extraArgs) {
+ if (!businessHours) {
+ return [];
+ }
+ return this._sliceEventStore(expandRecurring(businessHours, computeActiveRange(dateProfile, Boolean(nextDayThreshold)), context), {}, dateProfile, nextDayThreshold, ...extraArgs).bg;
+ }
+ _sliceEventStore(eventStore, eventUiBases, dateProfile, nextDayThreshold, ...extraArgs) {
+ if (eventStore) {
+ let rangeRes = sliceEventStore(eventStore, eventUiBases, computeActiveRange(dateProfile, Boolean(nextDayThreshold)), nextDayThreshold);
+ return {
+ bg: this.sliceEventRanges(rangeRes.bg, extraArgs),
+ fg: this.sliceEventRanges(rangeRes.fg, extraArgs),
+ };
+ }
+ return { bg: [], fg: [] };
+ }
+ _sliceInteraction(interaction, eventUiBases, dateProfile, nextDayThreshold, ...extraArgs) {
+ if (!interaction) {
+ return null;
+ }
+ let rangeRes = sliceEventStore(interaction.mutatedEvents, eventUiBases, computeActiveRange(dateProfile, Boolean(nextDayThreshold)), nextDayThreshold);
+ return {
+ segs: this.sliceEventRanges(rangeRes.fg, extraArgs),
+ affectedInstances: interaction.affectedEvents.instances,
+ isEvent: interaction.isEvent,
+ };
+ }
+ _sliceDateSpan(dateSpan, dateProfile, nextDayThreshold, eventUiBases, context, ...extraArgs) {
+ if (!dateSpan) {
+ return [];
+ }
+ let activeRange = computeActiveRange(dateProfile, Boolean(nextDayThreshold));
+ let activeDateSpanRange = intersectRanges(dateSpan.range, activeRange);
+ if (activeDateSpanRange) {
+ dateSpan = Object.assign(Object.assign({}, dateSpan), { range: activeDateSpanRange });
+ let eventRange = fabricateEventRange(dateSpan, eventUiBases, context);
+ let segs = this.sliceRange(dateSpan.range, ...extraArgs);
+ for (let seg of segs) {
+ seg.eventRange = eventRange;
+ }
+ return segs;
+ }
+ return [];
+ }
+ /*
+ "complete" seg means it has component and eventRange
+ */
+ sliceEventRanges(eventRanges, extraArgs) {
+ let segs = [];
+ for (let eventRange of eventRanges) {
+ segs.push(...this.sliceEventRange(eventRange, extraArgs));
+ }
+ return segs;
+ }
+ /*
+ "complete" seg means it has component and eventRange
+ */
+ sliceEventRange(eventRange, extraArgs) {
+ let dateRange = eventRange.range;
+ // hack to make multi-day events that are being force-displayed as list-items to take up only one day
+ if (this.forceDayIfListItem && eventRange.ui.display === 'list-item') {
+ dateRange = {
+ start: dateRange.start,
+ end: addDays(dateRange.start, 1),
+ };
+ }
+ let segs = this.sliceRange(dateRange, ...extraArgs);
+ for (let seg of segs) {
+ seg.eventRange = eventRange;
+ seg.isStart = eventRange.isStart && seg.isStart;
+ seg.isEnd = eventRange.isEnd && seg.isEnd;
+ }
+ return segs;
+ }
+}
+/*
+for incorporating slotMinTime/slotMaxTime if appropriate
+TODO: should be part of DateProfile!
+TimelineDateProfile already does this btw
+*/
+function computeActiveRange(dateProfile, isComponentAllDay) {
+ let range = dateProfile.activeRange;
+ if (isComponentAllDay) {
+ return range;
+ }
+ return {
+ start: addMs(range.start, dateProfile.slotMinTime.milliseconds),
+ end: addMs(range.end, dateProfile.slotMaxTime.milliseconds - 864e5), // 864e5 = ms in a day
+ };
+}
+
+// high-level segmenting-aware tester functions
+// ------------------------------------------------------------------------------------------------------------------------
+function isInteractionValid(interaction, dateProfile, context) {
+ let { instances } = interaction.mutatedEvents;
+ for (let instanceId in instances) {
+ if (!rangeContainsRange(dateProfile.validRange, instances[instanceId].range)) {
+ return false;
+ }
+ }
+ return isNewPropsValid({ eventDrag: interaction }, context); // HACK: the eventDrag props is used for ALL interactions
+}
+function isDateSelectionValid(dateSelection, dateProfile, context) {
+ if (!rangeContainsRange(dateProfile.validRange, dateSelection.range)) {
+ return false;
+ }
+ return isNewPropsValid({ dateSelection }, context);
+}
+function isNewPropsValid(newProps, context) {
+ let calendarState = context.getCurrentData();
+ let props = Object.assign({ businessHours: calendarState.businessHours, dateSelection: '', eventStore: calendarState.eventStore, eventUiBases: calendarState.eventUiBases, eventSelection: '', eventDrag: null, eventResize: null }, newProps);
+ return (context.pluginHooks.isPropsValid || isPropsValid)(props, context);
+}
+function isPropsValid(state, context, dateSpanMeta = {}, filterConfig) {
+ if (state.eventDrag && !isInteractionPropsValid(state, context, dateSpanMeta, filterConfig)) {
+ return false;
+ }
+ if (state.dateSelection && !isDateSelectionPropsValid(state, context, dateSpanMeta, filterConfig)) {
+ return false;
+ }
+ return true;
+}
+// Moving Event Validation
+// ------------------------------------------------------------------------------------------------------------------------
+function isInteractionPropsValid(state, context, dateSpanMeta, filterConfig) {
+ let currentState = context.getCurrentData();
+ let interaction = state.eventDrag; // HACK: the eventDrag props is used for ALL interactions
+ let subjectEventStore = interaction.mutatedEvents;
+ let subjectDefs = subjectEventStore.defs;
+ let subjectInstances = subjectEventStore.instances;
+ let subjectConfigs = compileEventUis(subjectDefs, interaction.isEvent ?
+ state.eventUiBases :
+ { '': currentState.selectionConfig });
+ if (filterConfig) {
+ subjectConfigs = mapHash(subjectConfigs, filterConfig);
+ }
+ // exclude the subject events. TODO: exclude defs too?
+ let otherEventStore = excludeInstances(state.eventStore, interaction.affectedEvents.instances);
+ let otherDefs = otherEventStore.defs;
+ let otherInstances = otherEventStore.instances;
+ let otherConfigs = compileEventUis(otherDefs, state.eventUiBases);
+ for (let subjectInstanceId in subjectInstances) {
+ let subjectInstance = subjectInstances[subjectInstanceId];
+ let subjectRange = subjectInstance.range;
+ let subjectConfig = subjectConfigs[subjectInstance.defId];
+ let subjectDef = subjectDefs[subjectInstance.defId];
+ // constraint
+ if (!allConstraintsPass(subjectConfig.constraints, subjectRange, otherEventStore, state.businessHours, context)) {
+ return false;
+ }
+ // overlap
+ let { eventOverlap } = context.options;
+ let eventOverlapFunc = typeof eventOverlap === 'function' ? eventOverlap : null;
+ for (let otherInstanceId in otherInstances) {
+ let otherInstance = otherInstances[otherInstanceId];
+ // intersect! evaluate
+ if (rangesIntersect(subjectRange, otherInstance.range)) {
+ let otherOverlap = otherConfigs[otherInstance.defId].overlap;
+ // consider the other event's overlap. only do this if the subject event is a "real" event
+ if (otherOverlap === false && interaction.isEvent) {
+ return false;
+ }
+ if (subjectConfig.overlap === false) {
+ return false;
+ }
+ if (eventOverlapFunc && !eventOverlapFunc(new EventImpl(context, otherDefs[otherInstance.defId], otherInstance), // still event
+ new EventImpl(context, subjectDef, subjectInstance))) {
+ return false;
+ }
+ }
+ }
+ // allow (a function)
+ let calendarEventStore = currentState.eventStore; // need global-to-calendar, not local to component (splittable)state
+ for (let subjectAllow of subjectConfig.allows) {
+ let subjectDateSpan = Object.assign(Object.assign({}, dateSpanMeta), { range: subjectInstance.range, allDay: subjectDef.allDay });
+ let origDef = calendarEventStore.defs[subjectDef.defId];
+ let origInstance = calendarEventStore.instances[subjectInstanceId];
+ let eventApi;
+ if (origDef) { // was previously in the calendar
+ eventApi = new EventImpl(context, origDef, origInstance);
+ }
+ else { // was an external event
+ eventApi = new EventImpl(context, subjectDef); // no instance, because had no dates
+ }
+ if (!subjectAllow(buildDateSpanApiWithContext(subjectDateSpan, context), eventApi)) {
+ return false;
+ }
+ }
+ }
+ return true;
+}
+// Date Selection Validation
+// ------------------------------------------------------------------------------------------------------------------------
+function isDateSelectionPropsValid(state, context, dateSpanMeta, filterConfig) {
+ let relevantEventStore = state.eventStore;
+ let relevantDefs = relevantEventStore.defs;
+ let relevantInstances = relevantEventStore.instances;
+ let selection = state.dateSelection;
+ let selectionRange = selection.range;
+ let { selectionConfig } = context.getCurrentData();
+ if (filterConfig) {
+ selectionConfig = filterConfig(selectionConfig);
+ }
+ // constraint
+ if (!allConstraintsPass(selectionConfig.constraints, selectionRange, relevantEventStore, state.businessHours, context)) {
+ return false;
+ }
+ // overlap
+ let { selectOverlap } = context.options;
+ let selectOverlapFunc = typeof selectOverlap === 'function' ? selectOverlap : null;
+ for (let relevantInstanceId in relevantInstances) {
+ let relevantInstance = relevantInstances[relevantInstanceId];
+ // intersect! evaluate
+ if (rangesIntersect(selectionRange, relevantInstance.range)) {
+ if (selectionConfig.overlap === false) {
+ return false;
+ }
+ if (selectOverlapFunc && !selectOverlapFunc(new EventImpl(context, relevantDefs[relevantInstance.defId], relevantInstance), null)) {
+ return false;
+ }
+ }
+ }
+ // allow (a function)
+ for (let selectionAllow of selectionConfig.allows) {
+ let fullDateSpan = Object.assign(Object.assign({}, dateSpanMeta), selection);
+ if (!selectionAllow(buildDateSpanApiWithContext(fullDateSpan, context), null)) {
+ return false;
+ }
+ }
+ return true;
+}
+// Constraint Utils
+// ------------------------------------------------------------------------------------------------------------------------
+function allConstraintsPass(constraints, subjectRange, otherEventStore, businessHoursUnexpanded, context) {
+ for (let constraint of constraints) {
+ if (!anyRangesContainRange(constraintToRanges(constraint, subjectRange, otherEventStore, businessHoursUnexpanded, context), subjectRange)) {
+ return false;
+ }
+ }
+ return true;
+}
+function constraintToRanges(constraint, subjectRange, // for expanding a recurring constraint, or expanding business hours
+otherEventStore, // for if constraint is an even group ID
+businessHoursUnexpanded, // for if constraint is 'businessHours'
+context) {
+ if (constraint === 'businessHours') {
+ return eventStoreToRanges(expandRecurring(businessHoursUnexpanded, subjectRange, context));
+ }
+ if (typeof constraint === 'string') { // an group ID
+ return eventStoreToRanges(filterEventStoreDefs(otherEventStore, (eventDef) => eventDef.groupId === constraint));
+ }
+ if (typeof constraint === 'object' && constraint) { // non-null object
+ return eventStoreToRanges(expandRecurring(constraint, subjectRange, context));
+ }
+ return []; // if it's false
+}
+// TODO: move to event-store file?
+function eventStoreToRanges(eventStore) {
+ let { instances } = eventStore;
+ let ranges = [];
+ for (let instanceId in instances) {
+ ranges.push(instances[instanceId].range);
+ }
+ return ranges;
+}
+// TODO: move to geom file?
+function anyRangesContainRange(outerRanges, innerRange) {
+ for (let outerRange of outerRanges) {
+ if (rangeContainsRange(outerRange, innerRange)) {
+ return true;
+ }
+ }
+ return false;
+}
+
+const VISIBLE_HIDDEN_RE = /^(visible|hidden)$/;
+class Scroller extends BaseComponent {
+ constructor() {
+ super(...arguments);
+ this.handleEl = (el) => {
+ this.el = el;
+ setRef(this.props.elRef, el);
+ };
+ }
+ render() {
+ let { props } = this;
+ let { liquid, liquidIsAbsolute } = props;
+ let isAbsolute = liquid && liquidIsAbsolute;
+ let className = ['fc-scroller'];
+ if (liquid) {
+ if (liquidIsAbsolute) {
+ className.push('fc-scroller-liquid-absolute');
+ }
+ else {
+ className.push('fc-scroller-liquid');
+ }
+ }
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { ref: this.handleEl, className: className.join(' '), style: {
+ overflowX: props.overflowX,
+ overflowY: props.overflowY,
+ left: (isAbsolute && -(props.overcomeLeft || 0)) || '',
+ right: (isAbsolute && -(props.overcomeRight || 0)) || '',
+ bottom: (isAbsolute && -(props.overcomeBottom || 0)) || '',
+ marginLeft: (!isAbsolute && -(props.overcomeLeft || 0)) || '',
+ marginRight: (!isAbsolute && -(props.overcomeRight || 0)) || '',
+ marginBottom: (!isAbsolute && -(props.overcomeBottom || 0)) || '',
+ maxHeight: props.maxHeight || '',
+ } }, props.children));
+ }
+ needsXScrolling() {
+ if (VISIBLE_HIDDEN_RE.test(this.props.overflowX)) {
+ return false;
+ }
+ // testing scrollWidth>clientWidth is unreliable cross-browser when pixel heights aren't integers.
+ // much more reliable to see if children are taller than the scroller, even tho doesn't account for
+ // inner-child margins and absolute positioning
+ let { el } = this;
+ let realClientWidth = this.el.getBoundingClientRect().width - this.getYScrollbarWidth();
+ let { children } = el;
+ for (let i = 0; i < children.length; i += 1) {
+ let childEl = children[i];
+ if (childEl.getBoundingClientRect().width > realClientWidth) {
+ return true;
+ }
+ }
+ return false;
+ }
+ needsYScrolling() {
+ if (VISIBLE_HIDDEN_RE.test(this.props.overflowY)) {
+ return false;
+ }
+ // testing scrollHeight>clientHeight is unreliable cross-browser when pixel heights aren't integers.
+ // much more reliable to see if children are taller than the scroller, even tho doesn't account for
+ // inner-child margins and absolute positioning
+ let { el } = this;
+ let realClientHeight = this.el.getBoundingClientRect().height - this.getXScrollbarWidth();
+ let { children } = el;
+ for (let i = 0; i < children.length; i += 1) {
+ let childEl = children[i];
+ if (childEl.getBoundingClientRect().height > realClientHeight) {
+ return true;
+ }
+ }
+ return false;
+ }
+ getXScrollbarWidth() {
+ if (VISIBLE_HIDDEN_RE.test(this.props.overflowX)) {
+ return 0;
+ }
+ return this.el.offsetHeight - this.el.clientHeight; // only works because we guarantee no borders. TODO: add to CSS with important?
+ }
+ getYScrollbarWidth() {
+ if (VISIBLE_HIDDEN_RE.test(this.props.overflowY)) {
+ return 0;
+ }
+ return this.el.offsetWidth - this.el.clientWidth; // only works because we guarantee no borders. TODO: add to CSS with important?
+ }
+}
+
+/*
+TODO: somehow infer OtherArgs from masterCallback?
+TODO: infer RefType from masterCallback if provided
+*/
+class RefMap {
+ constructor(masterCallback) {
+ this.masterCallback = masterCallback;
+ this.currentMap = {};
+ this.depths = {};
+ this.callbackMap = {};
+ this.handleValue = (val, key) => {
+ let { depths, currentMap } = this;
+ let removed = false;
+ let added = false;
+ if (val !== null) {
+ // for bug... ACTUALLY: can probably do away with this now that callers don't share numeric indices anymore
+ removed = (key in currentMap);
+ currentMap[key] = val;
+ depths[key] = (depths[key] || 0) + 1;
+ added = true;
+ }
+ else {
+ depths[key] -= 1;
+ if (!depths[key]) {
+ delete currentMap[key];
+ delete this.callbackMap[key];
+ removed = true;
+ }
+ }
+ if (this.masterCallback) {
+ if (removed) {
+ this.masterCallback(null, String(key));
+ }
+ if (added) {
+ this.masterCallback(val, String(key));
+ }
+ }
+ };
+ }
+ createRef(key) {
+ let refCallback = this.callbackMap[key];
+ if (!refCallback) {
+ refCallback = this.callbackMap[key] = (val) => {
+ this.handleValue(val, String(key));
+ };
+ }
+ return refCallback;
+ }
+ // TODO: check callers that don't care about order. should use getAll instead
+ // NOTE: this method has become less valuable now that we are encouraged to map order by some other index
+ // TODO: provide ONE array-export function, buildArray, which fails on non-numeric indexes. caller can manipulate and "collect"
+ collect(startIndex, endIndex, step) {
+ return collectFromHash(this.currentMap, startIndex, endIndex, step);
+ }
+ getAll() {
+ return hashValuesToArray(this.currentMap);
+ }
+}
+
+function computeShrinkWidth(chunkEls) {
+ let shrinkCells = findElements(chunkEls, '.fc-scrollgrid-shrink');
+ let largestWidth = 0;
+ for (let shrinkCell of shrinkCells) {
+ largestWidth = Math.max(largestWidth, computeSmallestCellWidth(shrinkCell));
+ }
+ return Math.ceil(largestWidth); // <table> elements work best with integers. round up to ensure contents fits
+}
+function getSectionHasLiquidHeight(props, sectionConfig) {
+ return props.liquid && sectionConfig.liquid; // does the section do liquid-height? (need to have whole scrollgrid liquid-height as well)
+}
+function getAllowYScrolling(props, sectionConfig) {
+ return sectionConfig.maxHeight != null || // if its possible for the height to max out, we might need scrollbars
+ getSectionHasLiquidHeight(props, sectionConfig); // if the section is liquid height, it might condense enough to require scrollbars
+}
+// TODO: ONLY use `arg`. force out internal function to use same API
+function renderChunkContent(sectionConfig, chunkConfig, arg, isHeader) {
+ let { expandRows } = arg;
+ let content = typeof chunkConfig.content === 'function' ?
+ chunkConfig.content(arg) :
+ (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)('table', {
+ role: 'presentation',
+ className: [
+ chunkConfig.tableClassName,
+ sectionConfig.syncRowHeights ? 'fc-scrollgrid-sync-table' : '',
+ ].join(' '),
+ style: {
+ minWidth: arg.tableMinWidth,
+ width: arg.clientWidth,
+ height: expandRows ? arg.clientHeight : '', // css `height` on a <table> serves as a min-height
+ },
+ }, arg.tableColGroupNode, (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(isHeader ? 'thead' : 'tbody', {
+ role: 'presentation',
+ }, typeof chunkConfig.rowContent === 'function'
+ ? chunkConfig.rowContent(arg)
+ : chunkConfig.rowContent));
+ return content;
+}
+function isColPropsEqual(cols0, cols1) {
+ return isArraysEqual(cols0, cols1, isPropsEqual);
+}
+function renderMicroColGroup(cols, shrinkWidth) {
+ let colNodes = [];
+ /*
+ for ColProps with spans, it would have been great to make a single <col span="">
+ HOWEVER, Chrome was getting messing up distributing the width to <td>/<th> elements with colspans.
+ SOLUTION: making individual <col> elements makes Chrome behave.
+ */
+ for (let colProps of cols) {
+ let span = colProps.span || 1;
+ for (let i = 0; i < span; i += 1) {
+ colNodes.push((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)("col", { style: {
+ width: colProps.width === 'shrink' ? sanitizeShrinkWidth(shrinkWidth) : (colProps.width || ''),
+ minWidth: colProps.minWidth || '',
+ } }));
+ }
+ }
+ return (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)('colgroup', {}, ...colNodes);
+}
+function sanitizeShrinkWidth(shrinkWidth) {
+ /* why 4? if we do 0, it will kill any border, which are needed for computeSmallestCellWidth
+ 4 accounts for 2 2-pixel borders. TODO: better solution? */
+ return shrinkWidth == null ? 4 : shrinkWidth;
+}
+function hasShrinkWidth(cols) {
+ for (let col of cols) {
+ if (col.width === 'shrink') {
+ return true;
+ }
+ }
+ return false;
+}
+function getScrollGridClassNames(liquid, context) {
+ let classNames = [
+ 'fc-scrollgrid',
+ context.theme.getClass('table'),
+ ];
+ if (liquid) {
+ classNames.push('fc-scrollgrid-liquid');
+ }
+ return classNames;
+}
+function getSectionClassNames(sectionConfig, wholeTableVGrow) {
+ let classNames = [
+ 'fc-scrollgrid-section',
+ `fc-scrollgrid-section-${sectionConfig.type}`,
+ sectionConfig.className, // used?
+ ];
+ if (wholeTableVGrow && sectionConfig.liquid && sectionConfig.maxHeight == null) {
+ classNames.push('fc-scrollgrid-section-liquid');
+ }
+ if (sectionConfig.isSticky) {
+ classNames.push('fc-scrollgrid-section-sticky');
+ }
+ return classNames;
+}
+function renderScrollShim(arg) {
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "fc-scrollgrid-sticky-shim", style: {
+ width: arg.clientWidth,
+ minWidth: arg.tableMinWidth,
+ } }));
+}
+function getStickyHeaderDates(options) {
+ let { stickyHeaderDates } = options;
+ if (stickyHeaderDates == null || stickyHeaderDates === 'auto') {
+ stickyHeaderDates = options.height === 'auto' || options.viewHeight === 'auto';
+ }
+ return stickyHeaderDates;
+}
+function getStickyFooterScrollbar(options) {
+ let { stickyFooterScrollbar } = options;
+ if (stickyFooterScrollbar == null || stickyFooterScrollbar === 'auto') {
+ stickyFooterScrollbar = options.height === 'auto' || options.viewHeight === 'auto';
+ }
+ return stickyFooterScrollbar;
+}
+
+class SimpleScrollGrid extends BaseComponent {
+ constructor() {
+ super(...arguments);
+ this.processCols = memoize((a) => a, isColPropsEqual); // so we get same `cols` props every time
+ // yucky to memoize VNodes, but much more efficient for consumers
+ this.renderMicroColGroup = memoize(renderMicroColGroup);
+ this.scrollerRefs = new RefMap();
+ this.scrollerElRefs = new RefMap(this._handleScrollerEl.bind(this));
+ this.state = {
+ shrinkWidth: null,
+ forceYScrollbars: false,
+ scrollerClientWidths: {},
+ scrollerClientHeights: {},
+ };
+ // TODO: can do a really simple print-view. dont need to join rows
+ this.handleSizing = () => {
+ this.safeSetState(Object.assign({ shrinkWidth: this.computeShrinkWidth() }, this.computeScrollerDims()));
+ };
+ }
+ render() {
+ let { props, state, context } = this;
+ let sectionConfigs = props.sections || [];
+ let cols = this.processCols(props.cols);
+ let microColGroupNode = this.renderMicroColGroup(cols, state.shrinkWidth);
+ let classNames = getScrollGridClassNames(props.liquid, context);
+ if (props.collapsibleWidth) {
+ classNames.push('fc-scrollgrid-collapsible');
+ }
+ // TODO: make DRY
+ let configCnt = sectionConfigs.length;
+ let configI = 0;
+ let currentConfig;
+ let headSectionNodes = [];
+ let bodySectionNodes = [];
+ let footSectionNodes = [];
+ while (configI < configCnt && (currentConfig = sectionConfigs[configI]).type === 'header') {
+ headSectionNodes.push(this.renderSection(currentConfig, microColGroupNode, true));
+ configI += 1;
+ }
+ while (configI < configCnt && (currentConfig = sectionConfigs[configI]).type === 'body') {
+ bodySectionNodes.push(this.renderSection(currentConfig, microColGroupNode, false));
+ configI += 1;
+ }
+ while (configI < configCnt && (currentConfig = sectionConfigs[configI]).type === 'footer') {
+ footSectionNodes.push(this.renderSection(currentConfig, microColGroupNode, true));
+ configI += 1;
+ }
+ // firefox bug: when setting height on table and there is a thead or tfoot,
+ // the necessary height:100% on the liquid-height body section forces the *whole* table to be taller. (bug #5524)
+ // use getCanVGrowWithinCell as a way to detect table-stupid firefox.
+ // if so, use a simpler dom structure, jam everything into a lone tbody.
+ let isBuggy = !getCanVGrowWithinCell();
+ const roleAttrs = { role: 'rowgroup' };
+ return (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)('table', {
+ role: 'grid',
+ className: classNames.join(' '),
+ style: { height: props.height },
+ }, Boolean(!isBuggy && headSectionNodes.length) && (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)('thead', roleAttrs, ...headSectionNodes), Boolean(!isBuggy && bodySectionNodes.length) && (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)('tbody', roleAttrs, ...bodySectionNodes), Boolean(!isBuggy && footSectionNodes.length) && (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)('tfoot', roleAttrs, ...footSectionNodes), isBuggy && (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)('tbody', roleAttrs, ...headSectionNodes, ...bodySectionNodes, ...footSectionNodes));
+ }
+ renderSection(sectionConfig, microColGroupNode, isHeader) {
+ if ('outerContent' in sectionConfig) {
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: sectionConfig.key }, sectionConfig.outerContent));
+ }
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)("tr", { key: sectionConfig.key, role: "presentation", className: getSectionClassNames(sectionConfig, this.props.liquid).join(' ') }, this.renderChunkTd(sectionConfig, microColGroupNode, sectionConfig.chunk, isHeader)));
+ }
+ renderChunkTd(sectionConfig, microColGroupNode, chunkConfig, isHeader) {
+ if ('outerContent' in chunkConfig) {
+ return chunkConfig.outerContent;
+ }
+ let { props } = this;
+ let { forceYScrollbars, scrollerClientWidths, scrollerClientHeights } = this.state;
+ let needsYScrolling = getAllowYScrolling(props, sectionConfig); // TODO: do lazily. do in section config?
+ let isLiquid = getSectionHasLiquidHeight(props, sectionConfig);
+ // for `!props.liquid` - is WHOLE scrollgrid natural height?
+ // TODO: do same thing in advanced scrollgrid? prolly not b/c always has horizontal scrollbars
+ let overflowY = !props.liquid ? 'visible' :
+ forceYScrollbars ? 'scroll' :
+ !needsYScrolling ? 'hidden' :
+ 'auto';
+ let sectionKey = sectionConfig.key;
+ let content = renderChunkContent(sectionConfig, chunkConfig, {
+ tableColGroupNode: microColGroupNode,
+ tableMinWidth: '',
+ clientWidth: (!props.collapsibleWidth && scrollerClientWidths[sectionKey] !== undefined) ? scrollerClientWidths[sectionKey] : null,
+ clientHeight: scrollerClientHeights[sectionKey] !== undefined ? scrollerClientHeights[sectionKey] : null,
+ expandRows: sectionConfig.expandRows,
+ syncRowHeights: false,
+ rowSyncHeights: [],
+ reportRowHeightChange: () => { },
+ }, isHeader);
+ return (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(isHeader ? 'th' : 'td', {
+ ref: chunkConfig.elRef,
+ role: 'presentation',
+ }, (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: `fc-scroller-harness${isLiquid ? ' fc-scroller-harness-liquid' : ''}` },
+ (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(Scroller, { ref: this.scrollerRefs.createRef(sectionKey), elRef: this.scrollerElRefs.createRef(sectionKey), overflowY: overflowY, overflowX: !props.liquid ? 'visible' : 'hidden' /* natural height? */, maxHeight: sectionConfig.maxHeight, liquid: isLiquid, liquidIsAbsolute // because its within a harness
+ : true }, content)));
+ }
+ _handleScrollerEl(scrollerEl, key) {
+ let section = getSectionByKey(this.props.sections, key);
+ if (section) {
+ setRef(section.chunk.scrollerElRef, scrollerEl);
+ }
+ }
+ componentDidMount() {
+ this.handleSizing();
+ this.context.addResizeHandler(this.handleSizing);
+ }
+ componentDidUpdate() {
+ // TODO: need better solution when state contains non-sizing things
+ this.handleSizing();
+ }
+ componentWillUnmount() {
+ this.context.removeResizeHandler(this.handleSizing);
+ }
+ computeShrinkWidth() {
+ return hasShrinkWidth(this.props.cols)
+ ? computeShrinkWidth(this.scrollerElRefs.getAll())
+ : 0;
+ }
+ computeScrollerDims() {
+ let scrollbarWidth = getScrollbarWidths();
+ let { scrollerRefs, scrollerElRefs } = this;
+ let forceYScrollbars = false;
+ let scrollerClientWidths = {};
+ let scrollerClientHeights = {};
+ for (let sectionKey in scrollerRefs.currentMap) {
+ let scroller = scrollerRefs.currentMap[sectionKey];
+ if (scroller && scroller.needsYScrolling()) {
+ forceYScrollbars = true;
+ break;
+ }
+ }
+ for (let section of this.props.sections) {
+ let sectionKey = section.key;
+ let scrollerEl = scrollerElRefs.currentMap[sectionKey];
+ if (scrollerEl) {
+ let harnessEl = scrollerEl.parentNode; // TODO: weird way to get this. need harness b/c doesn't include table borders
+ scrollerClientWidths[sectionKey] = Math.floor(harnessEl.getBoundingClientRect().width - (forceYScrollbars
+ ? scrollbarWidth.y // use global because scroller might not have scrollbars yet but will need them in future
+ : 0));
+ scrollerClientHeights[sectionKey] = Math.floor(harnessEl.getBoundingClientRect().height);
+ }
+ }
+ return { forceYScrollbars, scrollerClientWidths, scrollerClientHeights };
+ }
+}
+SimpleScrollGrid.addStateEquality({
+ scrollerClientWidths: isPropsEqual,
+ scrollerClientHeights: isPropsEqual,
+});
+function getSectionByKey(sections, key) {
+ for (let section of sections) {
+ if (section.key === key) {
+ return section;
+ }
+ }
+ return null;
+}
+
+class EventContainer extends BaseComponent {
+ constructor() {
+ super(...arguments);
+ // memo
+ this.buildPublicEvent = memoize((context, eventDef, eventInstance) => new EventImpl(context, eventDef, eventInstance));
+ this.handleEl = (el) => {
+ this.el = el;
+ setRef(this.props.elRef, el);
+ if (el) {
+ setElSeg(el, this.props.seg);
+ }
+ };
+ }
+ render() {
+ const { props, context } = this;
+ const { options } = context;
+ const { seg } = props;
+ const { eventRange } = seg;
+ const { ui } = eventRange;
+ const renderProps = {
+ event: this.buildPublicEvent(context, eventRange.def, eventRange.instance),
+ view: context.viewApi,
+ timeText: props.timeText,
+ textColor: ui.textColor,
+ backgroundColor: ui.backgroundColor,
+ borderColor: ui.borderColor,
+ isDraggable: !props.disableDragging && computeSegDraggable(seg, context),
+ isStartResizable: !props.disableResizing && computeSegStartResizable(seg, context),
+ isEndResizable: !props.disableResizing && computeSegEndResizable(seg),
+ isMirror: Boolean(props.isDragging || props.isResizing || props.isDateSelecting),
+ isStart: Boolean(seg.isStart),
+ isEnd: Boolean(seg.isEnd),
+ isPast: Boolean(props.isPast),
+ isFuture: Boolean(props.isFuture),
+ isToday: Boolean(props.isToday),
+ isSelected: Boolean(props.isSelected),
+ isDragging: Boolean(props.isDragging),
+ isResizing: Boolean(props.isResizing),
+ };
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(ContentContainer, { elRef: this.handleEl, elTag: props.elTag, elAttrs: props.elAttrs, elClasses: [
+ ...getEventClassNames(renderProps),
+ ...seg.eventRange.ui.classNames,
+ ...(props.elClasses || []),
+ ], elStyle: props.elStyle, renderProps: renderProps, generatorName: "eventContent", customGenerator: options.eventContent, defaultGenerator: props.defaultGenerator, classNameGenerator: options.eventClassNames, didMount: options.eventDidMount, willUnmount: options.eventWillUnmount }, props.children));
+ }
+ componentDidUpdate(prevProps) {
+ if (this.el && this.props.seg !== prevProps.seg) {
+ setElSeg(this.el, this.props.seg);
+ }
+ }
+}
+
+// should not be a purecomponent
+class StandardEvent extends BaseComponent {
+ render() {
+ let { props, context } = this;
+ let { options } = context;
+ let { seg } = props;
+ let { ui } = seg.eventRange;
+ let timeFormat = options.eventTimeFormat || props.defaultTimeFormat;
+ let timeText = buildSegTimeText(seg, timeFormat, context, props.defaultDisplayEventTime, props.defaultDisplayEventEnd);
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(EventContainer, Object.assign({}, props /* includes elRef */, { elTag: "a", elStyle: {
+ borderColor: ui.borderColor,
+ backgroundColor: ui.backgroundColor,
+ }, elAttrs: getSegAnchorAttrs(seg, context), defaultGenerator: renderInnerContent$1, timeText: timeText }), (InnerContent, eventContentArg) => ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
+ (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(InnerContent, { elTag: "div", elClasses: ['fc-event-main'], elStyle: { color: eventContentArg.textColor } }),
+ Boolean(eventContentArg.isStartResizable) && ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "fc-event-resizer fc-event-resizer-start" })),
+ Boolean(eventContentArg.isEndResizable) && ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "fc-event-resizer fc-event-resizer-end" }))))));
+ }
+}
+StandardEvent.addPropsEquality({
+ seg: isPropsEqual,
+});
+function renderInnerContent$1(innerProps) {
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "fc-event-main-frame" },
+ innerProps.timeText && ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "fc-event-time" }, innerProps.timeText)),
+ (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "fc-event-title-container" },
+ (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "fc-event-title fc-sticky" }, innerProps.event.title || (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "\u00A0")))));
+}
+
+const NowIndicatorContainer = (props) => ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(ViewContextType.Consumer, null, (context) => {
+ let { options } = context;
+ let renderProps = {
+ isAxis: props.isAxis,
+ date: context.dateEnv.toDate(props.date),
+ view: context.viewApi,
+ };
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(ContentContainer, { elRef: props.elRef, elTag: props.elTag || 'div', elAttrs: props.elAttrs, elClasses: props.elClasses, elStyle: props.elStyle, renderProps: renderProps, generatorName: "nowIndicatorContent", customGenerator: options.nowIndicatorContent, classNameGenerator: options.nowIndicatorClassNames, didMount: options.nowIndicatorDidMount, willUnmount: options.nowIndicatorWillUnmount }, props.children));
+}));
+
+const DAY_NUM_FORMAT = createFormatter({ day: 'numeric' });
+class DayCellContainer extends BaseComponent {
+ constructor() {
+ super(...arguments);
+ this.refineRenderProps = memoizeObjArg(refineRenderProps);
+ }
+ render() {
+ let { props, context } = this;
+ let { options } = context;
+ let renderProps = this.refineRenderProps({
+ date: props.date,
+ dateProfile: props.dateProfile,
+ todayRange: props.todayRange,
+ isMonthStart: props.isMonthStart || false,
+ showDayNumber: props.showDayNumber,
+ extraRenderProps: props.extraRenderProps,
+ viewApi: context.viewApi,
+ dateEnv: context.dateEnv,
+ monthStartFormat: options.monthStartFormat,
+ });
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(ContentContainer, { elRef: props.elRef, elTag: props.elTag, elAttrs: Object.assign(Object.assign({}, props.elAttrs), (renderProps.isDisabled ? {} : { 'data-date': formatDayString(props.date) })), elClasses: [
+ ...getDayClassNames(renderProps, context.theme),
+ ...(props.elClasses || []),
+ ], elStyle: props.elStyle, renderProps: renderProps, generatorName: "dayCellContent", customGenerator: options.dayCellContent, defaultGenerator: props.defaultGenerator, classNameGenerator:
+ // don't use custom classNames if disabled
+ renderProps.isDisabled ? undefined : options.dayCellClassNames, didMount: options.dayCellDidMount, willUnmount: options.dayCellWillUnmount }, props.children));
+ }
+}
+function hasCustomDayCellContent(options) {
+ return Boolean(options.dayCellContent || hasCustomRenderingHandler('dayCellContent', options));
+}
+function refineRenderProps(raw) {
+ let { date, dateEnv, dateProfile, isMonthStart } = raw;
+ let dayMeta = getDateMeta(date, raw.todayRange, null, dateProfile);
+ let dayNumberText = raw.showDayNumber ? (dateEnv.format(date, isMonthStart ? raw.monthStartFormat : DAY_NUM_FORMAT)) : '';
+ return Object.assign(Object.assign(Object.assign({ date: dateEnv.toDate(date), view: raw.viewApi }, dayMeta), { isMonthStart,
+ dayNumberText }), raw.extraRenderProps);
+}
+
+class BgEvent extends BaseComponent {
+ render() {
+ let { props } = this;
+ let { seg } = props;
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(EventContainer, { elTag: "div", elClasses: ['fc-bg-event'], elStyle: { backgroundColor: seg.eventRange.ui.backgroundColor }, defaultGenerator: renderInnerContent, seg: seg, timeText: "", isDragging: false, isResizing: false, isDateSelecting: false, isSelected: false, isPast: props.isPast, isFuture: props.isFuture, isToday: props.isToday, disableDragging: true, disableResizing: true }));
+ }
+}
+function renderInnerContent(props) {
+ let { title } = props.event;
+ return title && ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "fc-event-title" }, props.event.title));
+}
+function renderFill(fillType) {
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: `fc-${fillType}` }));
+}
+
+const WeekNumberContainer = (props) => ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(ViewContextType.Consumer, null, (context) => {
+ let { dateEnv, options } = context;
+ let { date } = props;
+ let format = options.weekNumberFormat || props.defaultFormat;
+ let num = dateEnv.computeWeekNumber(date); // TODO: somehow use for formatting as well?
+ let text = dateEnv.format(date, format);
+ let renderProps = { num, text, date };
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(ContentContainer // why isn't WeekNumberContentArg being auto-detected?
+ , { elRef: props.elRef, elTag: props.elTag, elAttrs: props.elAttrs, elClasses: props.elClasses, elStyle: props.elStyle, renderProps: renderProps, generatorName: "weekNumberContent", customGenerator: options.weekNumberContent, defaultGenerator: renderInner, classNameGenerator: options.weekNumberClassNames, didMount: options.weekNumberDidMount, willUnmount: options.weekNumberWillUnmount }, props.children));
+}));
+function renderInner(innerProps) {
+ return innerProps.text;
+}
+
+const PADDING_FROM_VIEWPORT = 10;
+class Popover extends BaseComponent {
+ constructor() {
+ super(...arguments);
+ this.state = {
+ titleId: getUniqueDomId(),
+ };
+ this.handleRootEl = (el) => {
+ this.rootEl = el;
+ if (this.props.elRef) {
+ setRef(this.props.elRef, el);
+ }
+ };
+ // Triggered when the user clicks *anywhere* in the document, for the autoHide feature
+ this.handleDocumentMouseDown = (ev) => {
+ // only hide the popover if the click happened outside the popover
+ const target = getEventTargetViaRoot(ev);
+ if (!this.rootEl.contains(target)) {
+ this.handleCloseClick();
+ }
+ };
+ this.handleDocumentKeyDown = (ev) => {
+ if (ev.key === 'Escape') {
+ this.handleCloseClick();
+ }
+ };
+ this.handleCloseClick = () => {
+ let { onClose } = this.props;
+ if (onClose) {
+ onClose();
+ }
+ };
+ }
+ render() {
+ let { theme, options } = this.context;
+ let { props, state } = this;
+ let classNames = [
+ 'fc-popover',
+ theme.getClass('popover'),
+ ].concat(props.extraClassNames || []);
+ return (0,preact_compat__WEBPACK_IMPORTED_MODULE_1__.createPortal)((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", Object.assign({}, props.extraAttrs, { id: props.id, className: classNames.join(' '), "aria-labelledby": state.titleId, ref: this.handleRootEl }),
+ (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: 'fc-popover-header ' + theme.getClass('popoverHeader') },
+ (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", { className: "fc-popover-title", id: state.titleId }, props.title),
+ (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", { className: 'fc-popover-close ' + theme.getIconClass('close'), title: options.closeHint, onClick: this.handleCloseClick })),
+ (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: 'fc-popover-body ' + theme.getClass('popoverContent') }, props.children)), props.parentEl);
+ }
+ componentDidMount() {
+ document.addEventListener('mousedown', this.handleDocumentMouseDown);
+ document.addEventListener('keydown', this.handleDocumentKeyDown);
+ this.updateSize();
+ }
+ componentWillUnmount() {
+ document.removeEventListener('mousedown', this.handleDocumentMouseDown);
+ document.removeEventListener('keydown', this.handleDocumentKeyDown);
+ }
+ updateSize() {
+ let { isRtl } = this.context;
+ let { alignmentEl, alignGridTop } = this.props;
+ let { rootEl } = this;
+ let alignmentRect = computeClippedClientRect(alignmentEl);
+ if (alignmentRect) {
+ let popoverDims = rootEl.getBoundingClientRect();
+ // position relative to viewport
+ let popoverTop = alignGridTop
+ ? elementClosest(alignmentEl, '.fc-scrollgrid').getBoundingClientRect().top
+ : alignmentRect.top;
+ let popoverLeft = isRtl ? alignmentRect.right - popoverDims.width : alignmentRect.left;
+ // constrain
+ popoverTop = Math.max(popoverTop, PADDING_FROM_VIEWPORT);
+ popoverLeft = Math.min(popoverLeft, document.documentElement.clientWidth - PADDING_FROM_VIEWPORT - popoverDims.width);
+ popoverLeft = Math.max(popoverLeft, PADDING_FROM_VIEWPORT);
+ let origin = rootEl.offsetParent.getBoundingClientRect();
+ applyStyle(rootEl, {
+ top: popoverTop - origin.top,
+ left: popoverLeft - origin.left,
+ });
+ }
+ }
+}
+
+class MorePopover extends DateComponent {
+ constructor() {
+ super(...arguments);
+ this.handleRootEl = (rootEl) => {
+ this.rootEl = rootEl;
+ if (rootEl) {
+ this.context.registerInteractiveComponent(this, {
+ el: rootEl,
+ useEventCenter: false,
+ });
+ }
+ else {
+ this.context.unregisterInteractiveComponent(this);
+ }
+ };
+ }
+ render() {
+ let { options, dateEnv } = this.context;
+ let { props } = this;
+ let { startDate, todayRange, dateProfile } = props;
+ let title = dateEnv.format(startDate, options.dayPopoverFormat);
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(DayCellContainer, { elRef: this.handleRootEl, date: startDate, dateProfile: dateProfile, todayRange: todayRange }, (InnerContent, renderProps, elAttrs) => ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(Popover, { elRef: elAttrs.ref, id: props.id, title: title, extraClassNames: ['fc-more-popover'].concat(elAttrs.className || []), extraAttrs: elAttrs /* TODO: make these time-based when not whole-day? */, parentEl: props.parentEl, alignmentEl: props.alignmentEl, alignGridTop: props.alignGridTop, onClose: props.onClose },
+ hasCustomDayCellContent(options) && ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(InnerContent, { elTag: "div", elClasses: ['fc-more-popover-misc'] })),
+ props.children))));
+ }
+ queryHit(positionLeft, positionTop, elWidth, elHeight) {
+ let { rootEl, props } = this;
+ if (positionLeft >= 0 && positionLeft < elWidth &&
+ positionTop >= 0 && positionTop < elHeight) {
+ return {
+ dateProfile: props.dateProfile,
+ dateSpan: Object.assign({ allDay: !props.forceTimed, range: {
+ start: props.startDate,
+ end: props.endDate,
+ } }, props.extraDateSpan),
+ dayEl: rootEl,
+ rect: {
+ left: 0,
+ top: 0,
+ right: elWidth,
+ bottom: elHeight,
+ },
+ layer: 1, // important when comparing with hits from other components
+ };
+ }
+ return null;
+ }
+}
+
+class MoreLinkContainer extends BaseComponent {
+ constructor() {
+ super(...arguments);
+ this.state = {
+ isPopoverOpen: false,
+ popoverId: getUniqueDomId(),
+ };
+ this.handleLinkEl = (linkEl) => {
+ this.linkEl = linkEl;
+ if (this.props.elRef) {
+ setRef(this.props.elRef, linkEl);
+ }
+ };
+ this.handleClick = (ev) => {
+ let { props, context } = this;
+ let { moreLinkClick } = context.options;
+ let date = computeRange(props).start;
+ function buildPublicSeg(seg) {
+ let { def, instance, range } = seg.eventRange;
+ return {
+ event: new EventImpl(context, def, instance),
+ start: context.dateEnv.toDate(range.start),
+ end: context.dateEnv.toDate(range.end),
+ isStart: seg.isStart,
+ isEnd: seg.isEnd,
+ };
+ }
+ if (typeof moreLinkClick === 'function') {
+ moreLinkClick = moreLinkClick({
+ date,
+ allDay: Boolean(props.allDayDate),
+ allSegs: props.allSegs.map(buildPublicSeg),
+ hiddenSegs: props.hiddenSegs.map(buildPublicSeg),
+ jsEvent: ev,
+ view: context.viewApi,
+ });
+ }
+ if (!moreLinkClick || moreLinkClick === 'popover') {
+ this.setState({ isPopoverOpen: true });
+ }
+ else if (typeof moreLinkClick === 'string') { // a view name
+ context.calendarApi.zoomTo(date, moreLinkClick);
+ }
+ };
+ this.handlePopoverClose = () => {
+ this.setState({ isPopoverOpen: false });
+ };
+ }
+ render() {
+ let { props, state } = this;
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(ViewContextType.Consumer, null, (context) => {
+ let { viewApi, options, calendarApi } = context;
+ let { moreLinkText } = options;
+ let { moreCnt } = props;
+ let range = computeRange(props);
+ let text = typeof moreLinkText === 'function' // TODO: eventually use formatWithOrdinals
+ ? moreLinkText.call(calendarApi, moreCnt)
+ : `+${moreCnt} ${moreLinkText}`;
+ let hint = formatWithOrdinals(options.moreLinkHint, [moreCnt], text);
+ let renderProps = {
+ num: moreCnt,
+ shortText: `+${moreCnt}`,
+ text,
+ view: viewApi,
+ };
+ return ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
+ Boolean(props.moreCnt) && ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(ContentContainer, { elTag: props.elTag || 'a', elRef: this.handleLinkEl, elClasses: [
+ ...(props.elClasses || []),
+ 'fc-more-link',
+ ], elStyle: props.elStyle, elAttrs: Object.assign(Object.assign(Object.assign({}, props.elAttrs), createAriaClickAttrs(this.handleClick)), { title: hint, 'aria-expanded': state.isPopoverOpen, 'aria-controls': state.isPopoverOpen ? state.popoverId : '' }), renderProps: renderProps, generatorName: "moreLinkContent", customGenerator: options.moreLinkContent, defaultGenerator: props.defaultGenerator || renderMoreLinkInner, classNameGenerator: options.moreLinkClassNames, didMount: options.moreLinkDidMount, willUnmount: options.moreLinkWillUnmount }, props.children)),
+ state.isPopoverOpen && ((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(MorePopover, { id: state.popoverId, startDate: range.start, endDate: range.end, dateProfile: props.dateProfile, todayRange: props.todayRange, extraDateSpan: props.extraDateSpan, parentEl: this.parentEl, alignmentEl: props.alignmentElRef ?
+ props.alignmentElRef.current :
+ this.linkEl, alignGridTop: props.alignGridTop, forceTimed: props.forceTimed, onClose: this.handlePopoverClose }, props.popoverContent()))));
+ }));
+ }
+ componentDidMount() {
+ this.updateParentEl();
+ }
+ componentDidUpdate() {
+ this.updateParentEl();
+ }
+ updateParentEl() {
+ if (this.linkEl) {
+ this.parentEl = elementClosest(this.linkEl, '.fc-view-harness');
+ }
+ }
+}
+function renderMoreLinkInner(props) {
+ return props.text;
+}
+function computeRange(props) {
+ if (props.allDayDate) {
+ return {
+ start: props.allDayDate,
+ end: addDays(props.allDayDate, 1),
+ };
+ }
+ let { hiddenSegs } = props;
+ return {
+ start: computeEarliestSegStart(hiddenSegs),
+ end: computeLatestSegEnd(hiddenSegs),
+ };
+}
+function computeEarliestSegStart(segs) {
+ return segs.reduce(pickEarliestStart).eventRange.range.start;
+}
+function pickEarliestStart(seg0, seg1) {
+ return seg0.eventRange.range.start < seg1.eventRange.range.start ? seg0 : seg1;
+}
+function computeLatestSegEnd(segs) {
+ return segs.reduce(pickLatestEnd).eventRange.range.end;
+}
+function pickLatestEnd(seg0, seg1) {
+ return seg0.eventRange.range.end > seg1.eventRange.range.end ? seg0 : seg1;
+}
+
+class Store {
+ constructor() {
+ this.handlers = [];
+ }
+ set(value) {
+ this.currentValue = value;
+ for (let handler of this.handlers) {
+ handler(value);
+ }
+ }
+ subscribe(handler) {
+ this.handlers.push(handler);
+ if (this.currentValue !== undefined) {
+ handler(this.currentValue);
+ }
+ }
+}
+
+/*
+Subscribers will get a LIST of CustomRenderings
+*/
+class CustomRenderingStore extends Store {
+ constructor() {
+ super(...arguments);
+ this.map = new Map();
+ }
+ // for consistent order
+ handle(customRendering) {
+ const { map } = this;
+ let updated = false;
+ if (customRendering.isActive) {
+ map.set(customRendering.id, customRendering);
+ updated = true;
+ }
+ else if (map.has(customRendering.id)) {
+ map.delete(customRendering.id);
+ updated = true;
+ }
+ if (updated) {
+ this.set(map);
+ }
+ }
+}
+
+
+
+
+/***/ }),
+
+/***/ "./node_modules/@fullcalendar/daygrid/index.js":
+/*!*****************************************************!*\
+ !*** ./node_modules/@fullcalendar/daygrid/index.js ***!
+ \*****************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ index)
+/* harmony export */ });
+/* harmony import */ var _fullcalendar_core_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fullcalendar/core/index.js */ "./node_modules/@fullcalendar/core/index.js");
+/* harmony import */ var _internal_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./internal.js */ "./node_modules/@fullcalendar/daygrid/internal.js");
+
+
+
+
+
+var index = (0,_fullcalendar_core_index_js__WEBPACK_IMPORTED_MODULE_0__.createPlugin)({
+ name: '@fullcalendar/daygrid',
+ initialView: 'dayGridMonth',
+ views: {
+ dayGrid: {
+ component: _internal_js__WEBPACK_IMPORTED_MODULE_1__.DayGridView,
+ dateProfileGeneratorClass: _internal_js__WEBPACK_IMPORTED_MODULE_1__.TableDateProfileGenerator,
+ },
+ dayGridDay: {
+ type: 'dayGrid',
+ duration: { days: 1 },
+ },
+ dayGridWeek: {
+ type: 'dayGrid',
+ duration: { weeks: 1 },
+ },
+ dayGridMonth: {
+ type: 'dayGrid',
+ duration: { months: 1 },
+ fixedWeekCount: true,
+ },
+ dayGridYear: {
+ type: 'dayGrid',
+ duration: { years: 1 },
+ },
+ },
+});
+
+
+
+
+/***/ }),
+
+/***/ "./node_modules/@fullcalendar/daygrid/internal.js":
+/*!********************************************************!*\
+ !*** ./node_modules/@fullcalendar/daygrid/internal.js ***!
+ \********************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ DayGridView: () => (/* binding */ DayTableView),
+/* harmony export */ DayTable: () => (/* binding */ DayTable),
+/* harmony export */ DayTableSlicer: () => (/* binding */ DayTableSlicer),
+/* harmony export */ Table: () => (/* binding */ Table),
+/* harmony export */ TableDateProfileGenerator: () => (/* binding */ TableDateProfileGenerator),
+/* harmony export */ TableRows: () => (/* binding */ TableRows),
+/* harmony export */ TableView: () => (/* binding */ TableView),
+/* harmony export */ buildDayTableModel: () => (/* binding */ buildDayTableModel),
+/* harmony export */ buildDayTableRenderRange: () => (/* binding */ buildDayTableRenderRange)
+/* harmony export */ });
+/* harmony import */ var _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fullcalendar/core/internal.js */ "./node_modules/@fullcalendar/core/internal-common.js");
+/* harmony import */ var _fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fullcalendar/core/preact.js */ "./node_modules/preact/dist/preact.module.js");
+
+
+
+/* An abstract class for the daygrid views, as well as month view. Renders one or more rows of day cells.
+----------------------------------------------------------------------------------------------------------------------*/
+// It is a manager for a Table subcomponent, which does most of the heavy lifting.
+// It is responsible for managing width/height.
+class TableView extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bc {
+ constructor() {
+ super(...arguments);
+ this.headerElRef = (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createRef)();
+ }
+ renderSimpleLayout(headerRowContent, bodyContent) {
+ let { props, context } = this;
+ let sections = [];
+ let stickyHeaderDates = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ca)(context.options);
+ if (headerRowContent) {
+ sections.push({
+ type: 'header',
+ key: 'header',
+ isSticky: stickyHeaderDates,
+ chunk: {
+ elRef: this.headerElRef,
+ tableClassName: 'fc-col-header',
+ rowContent: headerRowContent,
+ },
+ });
+ }
+ sections.push({
+ type: 'body',
+ key: 'body',
+ liquid: true,
+ chunk: { content: bodyContent },
+ });
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cq, { elClasses: ['fc-daygrid'], viewSpec: context.viewSpec },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bZ, { liquid: !props.isHeightAuto && !props.forPrint, collapsibleWidth: props.forPrint, cols: [] /* TODO: make optional? */, sections: sections })));
+ }
+ renderHScrollLayout(headerRowContent, bodyContent, colCnt, dayMinWidth) {
+ let ScrollGrid = this.context.pluginHooks.scrollGridImpl;
+ if (!ScrollGrid) {
+ throw new Error('No ScrollGrid implementation');
+ }
+ let { props, context } = this;
+ let stickyHeaderDates = !props.forPrint && (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ca)(context.options);
+ let stickyFooterScrollbar = !props.forPrint && (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.c9)(context.options);
+ let sections = [];
+ if (headerRowContent) {
+ sections.push({
+ type: 'header',
+ key: 'header',
+ isSticky: stickyHeaderDates,
+ chunks: [{
+ key: 'main',
+ elRef: this.headerElRef,
+ tableClassName: 'fc-col-header',
+ rowContent: headerRowContent,
+ }],
+ });
+ }
+ sections.push({
+ type: 'body',
+ key: 'body',
+ liquid: true,
+ chunks: [{
+ key: 'main',
+ content: bodyContent,
+ }],
+ });
+ if (stickyFooterScrollbar) {
+ sections.push({
+ type: 'footer',
+ key: 'footer',
+ isSticky: true,
+ chunks: [{
+ key: 'main',
+ content: _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.c8,
+ }],
+ });
+ }
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cq, { elClasses: ['fc-daygrid'], viewSpec: context.viewSpec },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(ScrollGrid, { liquid: !props.isHeightAuto && !props.forPrint, forPrint: props.forPrint, collapsibleWidth: props.forPrint, colGroups: [{ cols: [{ span: colCnt, minWidth: dayMinWidth }] }], sections: sections })));
+ }
+}
+
+function splitSegsByRow(segs, rowCnt) {
+ let byRow = [];
+ for (let i = 0; i < rowCnt; i += 1) {
+ byRow[i] = [];
+ }
+ for (let seg of segs) {
+ byRow[seg.row].push(seg);
+ }
+ return byRow;
+}
+function splitSegsByFirstCol(segs, colCnt) {
+ let byCol = [];
+ for (let i = 0; i < colCnt; i += 1) {
+ byCol[i] = [];
+ }
+ for (let seg of segs) {
+ byCol[seg.firstCol].push(seg);
+ }
+ return byCol;
+}
+function splitInteractionByRow(ui, rowCnt) {
+ let byRow = [];
+ if (!ui) {
+ for (let i = 0; i < rowCnt; i += 1) {
+ byRow[i] = null;
+ }
+ }
+ else {
+ for (let i = 0; i < rowCnt; i += 1) {
+ byRow[i] = {
+ affectedInstances: ui.affectedInstances,
+ isEvent: ui.isEvent,
+ segs: [],
+ };
+ }
+ for (let seg of ui.segs) {
+ byRow[seg.row].segs.push(seg);
+ }
+ }
+ return byRow;
+}
+
+const DEFAULT_TABLE_EVENT_TIME_FORMAT = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.x)({
+ hour: 'numeric',
+ minute: '2-digit',
+ omitZeroMinute: true,
+ meridiem: 'narrow',
+});
+function hasListItemDisplay(seg) {
+ let { display } = seg.eventRange.ui;
+ return display === 'list-item' || (display === 'auto' &&
+ !seg.eventRange.def.allDay &&
+ seg.firstCol === seg.lastCol && // can't be multi-day
+ seg.isStart && // "
+ seg.isEnd // "
+ );
+}
+
+class TableBlockEvent extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.B {
+ render() {
+ let { props } = this;
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cg, Object.assign({}, props, { elClasses: ['fc-daygrid-event', 'fc-daygrid-block-event', 'fc-h-event'], defaultTimeFormat: DEFAULT_TABLE_EVENT_TIME_FORMAT, defaultDisplayEventEnd: props.defaultDisplayEventEnd, disableResizing: !props.seg.eventRange.def.allDay })));
+ }
+}
+
+class TableListItemEvent extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.B {
+ render() {
+ let { props, context } = this;
+ let { options } = context;
+ let { seg } = props;
+ let timeFormat = options.eventTimeFormat || DEFAULT_TABLE_EVENT_TIME_FORMAT;
+ let timeText = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bO)(seg, timeFormat, context, true, props.defaultDisplayEventEnd);
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ck, Object.assign({}, props, { elTag: "a", elClasses: ['fc-daygrid-event', 'fc-daygrid-dot-event'], elAttrs: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bS)(props.seg, context), defaultGenerator: renderInnerContent, timeText: timeText, isResizing: false, isDateSelecting: false })));
+ }
+}
+function renderInnerContent(renderProps) {
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: "fc-daygrid-event-dot", style: { borderColor: renderProps.borderColor || renderProps.backgroundColor } }),
+ renderProps.timeText && ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: "fc-event-time" }, renderProps.timeText)),
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: "fc-event-title" }, renderProps.event.title || (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, "\u00A0"))));
+}
+
+class TableCellMoreLink extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.B {
+ constructor() {
+ super(...arguments);
+ this.compileSegs = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.z)(compileSegs);
+ }
+ render() {
+ let { props } = this;
+ let { allSegs, invisibleSegs } = this.compileSegs(props.singlePlacements);
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.co, { elClasses: ['fc-daygrid-more-link'], dateProfile: props.dateProfile, todayRange: props.todayRange, allDayDate: props.allDayDate, moreCnt: props.moreCnt, allSegs: allSegs, hiddenSegs: invisibleSegs, alignmentElRef: props.alignmentElRef, alignGridTop: props.alignGridTop, extraDateSpan: props.extraDateSpan, popoverContent: () => {
+ let isForcedInvisible = (props.eventDrag ? props.eventDrag.affectedInstances : null) ||
+ (props.eventResize ? props.eventResize.affectedInstances : null) ||
+ {};
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, allSegs.map((seg) => {
+ let instanceId = seg.eventRange.instance.instanceId;
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: "fc-daygrid-event-harness", key: instanceId, style: {
+ visibility: isForcedInvisible[instanceId] ? 'hidden' : '',
+ } }, hasListItemDisplay(seg) ? ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(TableListItemEvent, Object.assign({ seg: seg, isDragging: false, isSelected: instanceId === props.eventSelection, defaultDisplayEventEnd: false }, (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bQ)(seg, props.todayRange)))) : ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(TableBlockEvent, Object.assign({ seg: seg, isDragging: false, isResizing: false, isDateSelecting: false, isSelected: instanceId === props.eventSelection, defaultDisplayEventEnd: false }, (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bQ)(seg, props.todayRange))))));
+ })));
+ } }));
+ }
+}
+function compileSegs(singlePlacements) {
+ let allSegs = [];
+ let invisibleSegs = [];
+ for (let placement of singlePlacements) {
+ allSegs.push(placement.seg);
+ if (!placement.isVisible) {
+ invisibleSegs.push(placement.seg);
+ }
+ }
+ return { allSegs, invisibleSegs };
+}
+
+const DEFAULT_WEEK_NUM_FORMAT = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.x)({ week: 'narrow' });
+class TableCell extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bc {
+ constructor() {
+ super(...arguments);
+ this.rootElRef = (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createRef)();
+ this.state = {
+ dayNumberId: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.a3)(),
+ };
+ this.handleRootEl = (el) => {
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.W)(this.rootElRef, el);
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.W)(this.props.elRef, el);
+ };
+ }
+ render() {
+ let { context, props, state, rootElRef } = this;
+ let { options, dateEnv } = context;
+ let { date, dateProfile } = props;
+ // TODO: memoize this?
+ const isMonthStart = props.showDayNumber &&
+ shouldDisplayMonthStart(date, dateProfile.currentRange, dateEnv);
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ci, { elTag: "td", elRef: this.handleRootEl, elClasses: [
+ 'fc-daygrid-day',
+ ...(props.extraClassNames || []),
+ ], elAttrs: Object.assign(Object.assign(Object.assign({}, props.extraDataAttrs), (props.showDayNumber ? { 'aria-labelledby': state.dayNumberId } : {})), { role: 'gridcell' }), defaultGenerator: renderTopInner, date: date, dateProfile: dateProfile, todayRange: props.todayRange, showDayNumber: props.showDayNumber, isMonthStart: isMonthStart, extraRenderProps: props.extraRenderProps }, (InnerContent, renderProps) => ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { ref: props.innerElRef, className: "fc-daygrid-day-frame fc-scrollgrid-sync-inner", style: { minHeight: props.minHeight } },
+ props.showWeekNumber && ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cn, { elTag: "a", elClasses: ['fc-daygrid-week-number'], elAttrs: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.a_)(context, date, 'week'), date: date, defaultFormat: DEFAULT_WEEK_NUM_FORMAT })),
+ !renderProps.isDisabled &&
+ (props.showDayNumber || (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cj)(options) || props.forceDayTop) ? ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: "fc-daygrid-day-top" },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(InnerContent, { elTag: "a", elClasses: [
+ 'fc-daygrid-day-number',
+ isMonthStart && 'fc-daygrid-month-start',
+ ], elAttrs: Object.assign(Object.assign({}, (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.a_)(context, date)), { id: state.dayNumberId }) }))) : props.showDayNumber ? (
+ // for creating correct amount of space (see issue #7162)
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: "fc-daygrid-day-top", style: { visibility: 'hidden' } },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("a", { className: "fc-daygrid-day-number" }, "\u00A0"))) : undefined,
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: "fc-daygrid-day-events", ref: props.fgContentElRef },
+ props.fgContent,
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: "fc-daygrid-day-bottom", style: { marginTop: props.moreMarginTop } },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(TableCellMoreLink, { allDayDate: date, singlePlacements: props.singlePlacements, moreCnt: props.moreCnt, alignmentElRef: rootElRef, alignGridTop: !props.showDayNumber, extraDateSpan: props.extraDateSpan, dateProfile: props.dateProfile, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, todayRange: props.todayRange }))),
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: "fc-daygrid-day-bg" }, props.bgContent)))));
+ }
+}
+function renderTopInner(props) {
+ return props.dayNumberText || (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, "\u00A0");
+}
+function shouldDisplayMonthStart(date, currentRange, dateEnv) {
+ const { start: currentStart, end: currentEnd } = currentRange;
+ const currentEndIncl = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.be)(currentEnd, -1);
+ const currentFirstYear = dateEnv.getYear(currentStart);
+ const currentFirstMonth = dateEnv.getMonth(currentStart);
+ const currentLastYear = dateEnv.getYear(currentEndIncl);
+ const currentLastMonth = dateEnv.getMonth(currentEndIncl);
+ // spans more than one month?
+ return !(currentFirstYear === currentLastYear && currentFirstMonth === currentLastMonth) &&
+ Boolean(
+ // first date in current view?
+ date.valueOf() === currentStart.valueOf() ||
+ // a month-start that's within the current range?
+ (dateEnv.getDay(date) === 1 && date.valueOf() < currentEnd.valueOf()));
+}
+
+function generateSegKey(seg) {
+ return seg.eventRange.instance.instanceId + ':' + seg.firstCol;
+}
+function generateSegUid(seg) {
+ return generateSegKey(seg) + ':' + seg.lastCol;
+}
+function computeFgSegPlacement(segs, // assumed already sorted
+dayMaxEvents, dayMaxEventRows, strictOrder, segHeights, maxContentHeight, cells) {
+ let hierarchy = new DayGridSegHierarchy((segEntry) => {
+ // TODO: more DRY with generateSegUid
+ let segUid = segs[segEntry.index].eventRange.instance.instanceId +
+ ':' + segEntry.span.start +
+ ':' + (segEntry.span.end - 1);
+ // if no thickness known, assume 1 (if 0, so small it always fits)
+ return segHeights[segUid] || 1;
+ });
+ hierarchy.allowReslicing = true;
+ hierarchy.strictOrder = strictOrder;
+ if (dayMaxEvents === true || dayMaxEventRows === true) {
+ hierarchy.maxCoord = maxContentHeight;
+ hierarchy.hiddenConsumes = true;
+ }
+ else if (typeof dayMaxEvents === 'number') {
+ hierarchy.maxStackCnt = dayMaxEvents;
+ }
+ else if (typeof dayMaxEventRows === 'number') {
+ hierarchy.maxStackCnt = dayMaxEventRows;
+ hierarchy.hiddenConsumes = true;
+ }
+ // create segInputs only for segs with known heights
+ let segInputs = [];
+ let unknownHeightSegs = [];
+ for (let i = 0; i < segs.length; i += 1) {
+ let seg = segs[i];
+ let segUid = generateSegUid(seg);
+ let eventHeight = segHeights[segUid];
+ if (eventHeight != null) {
+ segInputs.push({
+ index: i,
+ span: {
+ start: seg.firstCol,
+ end: seg.lastCol + 1,
+ },
+ });
+ }
+ else {
+ unknownHeightSegs.push(seg);
+ }
+ }
+ let hiddenEntries = hierarchy.addSegs(segInputs);
+ let segRects = hierarchy.toRects();
+ let { singleColPlacements, multiColPlacements, leftoverMargins } = placeRects(segRects, segs, cells);
+ let moreCnts = [];
+ let moreMarginTops = [];
+ // add segs with unknown heights
+ for (let seg of unknownHeightSegs) {
+ multiColPlacements[seg.firstCol].push({
+ seg,
+ isVisible: false,
+ isAbsolute: true,
+ absoluteTop: 0,
+ marginTop: 0,
+ });
+ for (let col = seg.firstCol; col <= seg.lastCol; col += 1) {
+ singleColPlacements[col].push({
+ seg: resliceSeg(seg, col, col + 1, cells),
+ isVisible: false,
+ isAbsolute: false,
+ absoluteTop: 0,
+ marginTop: 0,
+ });
+ }
+ }
+ // add the hidden entries
+ for (let col = 0; col < cells.length; col += 1) {
+ moreCnts.push(0);
+ }
+ for (let hiddenEntry of hiddenEntries) {
+ let seg = segs[hiddenEntry.index];
+ let hiddenSpan = hiddenEntry.span;
+ multiColPlacements[hiddenSpan.start].push({
+ seg: resliceSeg(seg, hiddenSpan.start, hiddenSpan.end, cells),
+ isVisible: false,
+ isAbsolute: true,
+ absoluteTop: 0,
+ marginTop: 0,
+ });
+ for (let col = hiddenSpan.start; col < hiddenSpan.end; col += 1) {
+ moreCnts[col] += 1;
+ singleColPlacements[col].push({
+ seg: resliceSeg(seg, col, col + 1, cells),
+ isVisible: false,
+ isAbsolute: false,
+ absoluteTop: 0,
+ marginTop: 0,
+ });
+ }
+ }
+ // deal with leftover margins
+ for (let col = 0; col < cells.length; col += 1) {
+ moreMarginTops.push(leftoverMargins[col]);
+ }
+ return { singleColPlacements, multiColPlacements, moreCnts, moreMarginTops };
+}
+// rects ordered by top coord, then left
+function placeRects(allRects, segs, cells) {
+ let rectsByEachCol = groupRectsByEachCol(allRects, cells.length);
+ let singleColPlacements = [];
+ let multiColPlacements = [];
+ let leftoverMargins = [];
+ for (let col = 0; col < cells.length; col += 1) {
+ let rects = rectsByEachCol[col];
+ // compute all static segs in singlePlacements
+ let singlePlacements = [];
+ let currentHeight = 0;
+ let currentMarginTop = 0;
+ for (let rect of rects) {
+ let seg = segs[rect.index];
+ singlePlacements.push({
+ seg: resliceSeg(seg, col, col + 1, cells),
+ isVisible: true,
+ isAbsolute: false,
+ absoluteTop: rect.levelCoord,
+ marginTop: rect.levelCoord - currentHeight,
+ });
+ currentHeight = rect.levelCoord + rect.thickness;
+ }
+ // compute mixed static/absolute segs in multiPlacements
+ let multiPlacements = [];
+ currentHeight = 0;
+ currentMarginTop = 0;
+ for (let rect of rects) {
+ let seg = segs[rect.index];
+ let isAbsolute = rect.span.end - rect.span.start > 1; // multi-column?
+ let isFirstCol = rect.span.start === col;
+ currentMarginTop += rect.levelCoord - currentHeight; // amount of space since bottom of previous seg
+ currentHeight = rect.levelCoord + rect.thickness; // height will now be bottom of current seg
+ if (isAbsolute) {
+ currentMarginTop += rect.thickness;
+ if (isFirstCol) {
+ multiPlacements.push({
+ seg: resliceSeg(seg, rect.span.start, rect.span.end, cells),
+ isVisible: true,
+ isAbsolute: true,
+ absoluteTop: rect.levelCoord,
+ marginTop: 0,
+ });
+ }
+ }
+ else if (isFirstCol) {
+ multiPlacements.push({
+ seg: resliceSeg(seg, rect.span.start, rect.span.end, cells),
+ isVisible: true,
+ isAbsolute: false,
+ absoluteTop: rect.levelCoord,
+ marginTop: currentMarginTop, // claim the margin
+ });
+ currentMarginTop = 0;
+ }
+ }
+ singleColPlacements.push(singlePlacements);
+ multiColPlacements.push(multiPlacements);
+ leftoverMargins.push(currentMarginTop);
+ }
+ return { singleColPlacements, multiColPlacements, leftoverMargins };
+}
+function groupRectsByEachCol(rects, colCnt) {
+ let rectsByEachCol = [];
+ for (let col = 0; col < colCnt; col += 1) {
+ rectsByEachCol.push([]);
+ }
+ for (let rect of rects) {
+ for (let col = rect.span.start; col < rect.span.end; col += 1) {
+ rectsByEachCol[col].push(rect);
+ }
+ }
+ return rectsByEachCol;
+}
+function resliceSeg(seg, spanStart, spanEnd, cells) {
+ if (seg.firstCol === spanStart && seg.lastCol === spanEnd - 1) {
+ return seg;
+ }
+ let eventRange = seg.eventRange;
+ let origRange = eventRange.range;
+ let slicedRange = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.o)(origRange, {
+ start: cells[spanStart].date,
+ end: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.t)(cells[spanEnd - 1].date, 1),
+ });
+ return Object.assign(Object.assign({}, seg), { firstCol: spanStart, lastCol: spanEnd - 1, eventRange: {
+ def: eventRange.def,
+ ui: Object.assign(Object.assign({}, eventRange.ui), { durationEditable: false }),
+ instance: eventRange.instance,
+ range: slicedRange,
+ }, isStart: seg.isStart && slicedRange.start.valueOf() === origRange.start.valueOf(), isEnd: seg.isEnd && slicedRange.end.valueOf() === origRange.end.valueOf() });
+}
+class DayGridSegHierarchy extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.by {
+ constructor() {
+ super(...arguments);
+ // config
+ this.hiddenConsumes = false;
+ // allows us to keep hidden entries in the hierarchy so they take up space
+ this.forceHidden = {};
+ }
+ addSegs(segInputs) {
+ const hiddenSegs = super.addSegs(segInputs);
+ const { entriesByLevel } = this;
+ const excludeHidden = (entry) => !this.forceHidden[(0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bz)(entry)];
+ // remove the forced-hidden segs
+ for (let level = 0; level < entriesByLevel.length; level += 1) {
+ entriesByLevel[level] = entriesByLevel[level].filter(excludeHidden);
+ }
+ return hiddenSegs;
+ }
+ handleInvalidInsertion(insertion, entry, hiddenEntries) {
+ const { entriesByLevel, forceHidden } = this;
+ const { touchingEntry, touchingLevel, touchingLateral } = insertion;
+ // the entry that the new insertion is touching must be hidden
+ if (this.hiddenConsumes && touchingEntry) {
+ const touchingEntryId = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bz)(touchingEntry);
+ if (!forceHidden[touchingEntryId]) {
+ if (this.allowReslicing) {
+ // split up the touchingEntry, reinsert it
+ const hiddenEntry = Object.assign(Object.assign({}, touchingEntry), { span: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bD)(touchingEntry.span, entry.span) });
+ // reinsert the area that turned into a "more" link (so no other entries try to
+ // occupy the space) but mark it forced-hidden
+ const hiddenEntryId = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bz)(hiddenEntry);
+ forceHidden[hiddenEntryId] = true;
+ entriesByLevel[touchingLevel][touchingLateral] = hiddenEntry;
+ hiddenEntries.push(hiddenEntry);
+ this.splitEntry(touchingEntry, entry, hiddenEntries);
+ }
+ else {
+ forceHidden[touchingEntryId] = true;
+ hiddenEntries.push(touchingEntry);
+ }
+ }
+ }
+ // will try to reslice...
+ super.handleInvalidInsertion(insertion, entry, hiddenEntries);
+ }
+}
+
+class TableRow extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bc {
+ constructor() {
+ super(...arguments);
+ this.cellElRefs = new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cd(); // the <td>
+ this.frameElRefs = new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cd(); // the fc-daygrid-day-frame
+ this.fgElRefs = new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cd(); // the fc-daygrid-day-events
+ this.segHarnessRefs = new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cd(); // indexed by "instanceId:firstCol"
+ this.rootElRef = (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createRef)();
+ this.state = {
+ framePositions: null,
+ maxContentHeight: null,
+ segHeights: {},
+ };
+ this.handleResize = (isForced) => {
+ if (isForced) {
+ this.updateSizing(true); // isExternal=true
+ }
+ };
+ }
+ render() {
+ let { props, state, context } = this;
+ let { options } = context;
+ let colCnt = props.cells.length;
+ let businessHoursByCol = splitSegsByFirstCol(props.businessHourSegs, colCnt);
+ let bgEventSegsByCol = splitSegsByFirstCol(props.bgEventSegs, colCnt);
+ let highlightSegsByCol = splitSegsByFirstCol(this.getHighlightSegs(), colCnt);
+ let mirrorSegsByCol = splitSegsByFirstCol(this.getMirrorSegs(), colCnt);
+ let { singleColPlacements, multiColPlacements, moreCnts, moreMarginTops } = computeFgSegPlacement((0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bP)(props.fgEventSegs, options.eventOrder), props.dayMaxEvents, props.dayMaxEventRows, options.eventOrderStrict, state.segHeights, state.maxContentHeight, props.cells);
+ let isForcedInvisible = // TODO: messy way to compute this
+ (props.eventDrag && props.eventDrag.affectedInstances) ||
+ (props.eventResize && props.eventResize.affectedInstances) ||
+ {};
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("tr", { ref: this.rootElRef, role: "row" },
+ props.renderIntro && props.renderIntro(),
+ props.cells.map((cell, col) => {
+ let normalFgNodes = this.renderFgSegs(col, props.forPrint ? singleColPlacements[col] : multiColPlacements[col], props.todayRange, isForcedInvisible);
+ let mirrorFgNodes = this.renderFgSegs(col, buildMirrorPlacements(mirrorSegsByCol[col], multiColPlacements), props.todayRange, {}, Boolean(props.eventDrag), Boolean(props.eventResize), false);
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(TableCell, { key: cell.key, elRef: this.cellElRefs.createRef(cell.key), innerElRef: this.frameElRefs.createRef(cell.key) /* FF <td> problem, but okay to use for left/right. TODO: rename prop */, dateProfile: props.dateProfile, date: cell.date, showDayNumber: props.showDayNumbers, showWeekNumber: props.showWeekNumbers && col === 0, forceDayTop: props.showWeekNumbers /* even displaying weeknum for row, not necessarily day */, todayRange: props.todayRange, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, extraRenderProps: cell.extraRenderProps, extraDataAttrs: cell.extraDataAttrs, extraClassNames: cell.extraClassNames, extraDateSpan: cell.extraDateSpan, moreCnt: moreCnts[col], moreMarginTop: moreMarginTops[col], singlePlacements: singleColPlacements[col], fgContentElRef: this.fgElRefs.createRef(cell.key), fgContent: ( // Fragment scopes the keys
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, normalFgNodes),
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, mirrorFgNodes))), bgContent: ( // Fragment scopes the keys
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
+ this.renderFillSegs(highlightSegsByCol[col], 'highlight'),
+ this.renderFillSegs(businessHoursByCol[col], 'non-business'),
+ this.renderFillSegs(bgEventSegsByCol[col], 'bg-event'))), minHeight: props.cellMinHeight }));
+ })));
+ }
+ componentDidMount() {
+ this.updateSizing(true);
+ this.context.addResizeHandler(this.handleResize);
+ }
+ componentDidUpdate(prevProps, prevState) {
+ let currentProps = this.props;
+ this.updateSizing(!(0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.E)(prevProps, currentProps));
+ }
+ componentWillUnmount() {
+ this.context.removeResizeHandler(this.handleResize);
+ }
+ getHighlightSegs() {
+ let { props } = this;
+ if (props.eventDrag && props.eventDrag.segs.length) { // messy check
+ return props.eventDrag.segs;
+ }
+ if (props.eventResize && props.eventResize.segs.length) { // messy check
+ return props.eventResize.segs;
+ }
+ return props.dateSelectionSegs;
+ }
+ getMirrorSegs() {
+ let { props } = this;
+ if (props.eventResize && props.eventResize.segs.length) { // messy check
+ return props.eventResize.segs;
+ }
+ return [];
+ }
+ renderFgSegs(col, segPlacements, todayRange, isForcedInvisible, isDragging, isResizing, isDateSelecting) {
+ let { context } = this;
+ let { eventSelection } = this.props;
+ let { framePositions } = this.state;
+ let defaultDisplayEventEnd = this.props.cells.length === 1; // colCnt === 1
+ let isMirror = isDragging || isResizing || isDateSelecting;
+ let nodes = [];
+ if (framePositions) {
+ for (let placement of segPlacements) {
+ let { seg } = placement;
+ let { instanceId } = seg.eventRange.instance;
+ let isVisible = placement.isVisible && !isForcedInvisible[instanceId];
+ let isAbsolute = placement.isAbsolute;
+ let left = '';
+ let right = '';
+ if (isAbsolute) {
+ if (context.isRtl) {
+ right = 0;
+ left = framePositions.lefts[seg.lastCol] - framePositions.lefts[seg.firstCol];
+ }
+ else {
+ left = 0;
+ right = framePositions.rights[seg.firstCol] - framePositions.rights[seg.lastCol];
+ }
+ }
+ /*
+ known bug: events that are force to be list-item but span multiple days still take up space in later columns
+ todo: in print view, for multi-day events, don't display title within non-start/end segs
+ */
+ nodes.push((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: 'fc-daygrid-event-harness' + (isAbsolute ? ' fc-daygrid-event-harness-abs' : ''), key: generateSegKey(seg), ref: isMirror ? null : this.segHarnessRefs.createRef(generateSegUid(seg)), style: {
+ visibility: isVisible ? '' : 'hidden',
+ marginTop: isAbsolute ? '' : placement.marginTop,
+ top: isAbsolute ? placement.absoluteTop : '',
+ left,
+ right,
+ } }, hasListItemDisplay(seg) ? ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(TableListItemEvent, Object.assign({ seg: seg, isDragging: isDragging, isSelected: instanceId === eventSelection, defaultDisplayEventEnd: defaultDisplayEventEnd }, (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bQ)(seg, todayRange)))) : ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(TableBlockEvent, Object.assign({ seg: seg, isDragging: isDragging, isResizing: isResizing, isDateSelecting: isDateSelecting, isSelected: instanceId === eventSelection, defaultDisplayEventEnd: defaultDisplayEventEnd }, (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bQ)(seg, todayRange))))));
+ }
+ }
+ return nodes;
+ }
+ renderFillSegs(segs, fillType) {
+ let { isRtl } = this.context;
+ let { todayRange } = this.props;
+ let { framePositions } = this.state;
+ let nodes = [];
+ if (framePositions) {
+ for (let seg of segs) {
+ let leftRightCss = isRtl ? {
+ right: 0,
+ left: framePositions.lefts[seg.lastCol] - framePositions.lefts[seg.firstCol],
+ } : {
+ left: 0,
+ right: framePositions.rights[seg.firstCol] - framePositions.rights[seg.lastCol],
+ };
+ nodes.push((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { key: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bR)(seg.eventRange), className: "fc-daygrid-bg-harness", style: leftRightCss }, fillType === 'bg-event' ?
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cm, Object.assign({ seg: seg }, (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bQ)(seg, todayRange))) :
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cl)(fillType)));
+ }
+ }
+ return (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.Fragment, {}, ...nodes);
+ }
+ updateSizing(isExternalSizingChange) {
+ let { props, state, frameElRefs } = this;
+ if (!props.forPrint &&
+ props.clientWidth !== null // positioning ready?
+ ) {
+ if (isExternalSizingChange) {
+ let frameEls = props.cells.map((cell) => frameElRefs.currentMap[cell.key]);
+ if (frameEls.length) {
+ let originEl = this.rootElRef.current;
+ let newPositionCache = new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.b8(originEl, frameEls, true, // isHorizontal
+ false);
+ if (!state.framePositions || !state.framePositions.similarTo(newPositionCache)) {
+ this.setState({
+ framePositions: new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.b8(originEl, frameEls, true, // isHorizontal
+ false),
+ });
+ }
+ }
+ }
+ const oldSegHeights = this.state.segHeights;
+ const newSegHeights = this.querySegHeights();
+ const limitByContentHeight = props.dayMaxEvents === true || props.dayMaxEventRows === true;
+ this.safeSetState({
+ // HACK to prevent oscillations of events being shown/hidden from max-event-rows
+ // Essentially, once you compute an element's height, never null-out.
+ // TODO: always display all events, as visibility:hidden?
+ segHeights: Object.assign(Object.assign({}, oldSegHeights), newSegHeights),
+ maxContentHeight: limitByContentHeight ? this.computeMaxContentHeight() : null,
+ });
+ }
+ }
+ querySegHeights() {
+ let segElMap = this.segHarnessRefs.currentMap;
+ let segHeights = {};
+ // get the max height amongst instance segs
+ for (let segUid in segElMap) {
+ let height = Math.round(segElMap[segUid].getBoundingClientRect().height);
+ segHeights[segUid] = Math.max(segHeights[segUid] || 0, height);
+ }
+ return segHeights;
+ }
+ computeMaxContentHeight() {
+ let firstKey = this.props.cells[0].key;
+ let cellEl = this.cellElRefs.currentMap[firstKey];
+ let fcContainerEl = this.fgElRefs.currentMap[firstKey];
+ return cellEl.getBoundingClientRect().bottom - fcContainerEl.getBoundingClientRect().top;
+ }
+ getCellEls() {
+ let elMap = this.cellElRefs.currentMap;
+ return this.props.cells.map((cell) => elMap[cell.key]);
+ }
+}
+TableRow.addStateEquality({
+ segHeights: _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.E,
+});
+function buildMirrorPlacements(mirrorSegs, colPlacements) {
+ if (!mirrorSegs.length) {
+ return [];
+ }
+ let topsByInstanceId = buildAbsoluteTopHash(colPlacements); // TODO: cache this at first render?
+ return mirrorSegs.map((seg) => ({
+ seg,
+ isVisible: true,
+ isAbsolute: true,
+ absoluteTop: topsByInstanceId[seg.eventRange.instance.instanceId],
+ marginTop: 0,
+ }));
+}
+function buildAbsoluteTopHash(colPlacements) {
+ let topsByInstanceId = {};
+ for (let placements of colPlacements) {
+ for (let placement of placements) {
+ topsByInstanceId[placement.seg.eventRange.instance.instanceId] = placement.absoluteTop;
+ }
+ }
+ return topsByInstanceId;
+}
+
+class TableRows extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bc {
+ constructor() {
+ super(...arguments);
+ this.splitBusinessHourSegs = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.z)(splitSegsByRow);
+ this.splitBgEventSegs = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.z)(splitAllDaySegsByRow);
+ this.splitFgEventSegs = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.z)(splitSegsByRow);
+ this.splitDateSelectionSegs = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.z)(splitSegsByRow);
+ this.splitEventDrag = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.z)(splitInteractionByRow);
+ this.splitEventResize = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.z)(splitInteractionByRow);
+ this.rowRefs = new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cd();
+ }
+ render() {
+ let { props, context } = this;
+ let rowCnt = props.cells.length;
+ let businessHourSegsByRow = this.splitBusinessHourSegs(props.businessHourSegs, rowCnt);
+ let bgEventSegsByRow = this.splitBgEventSegs(props.bgEventSegs, rowCnt);
+ let fgEventSegsByRow = this.splitFgEventSegs(props.fgEventSegs, rowCnt);
+ let dateSelectionSegsByRow = this.splitDateSelectionSegs(props.dateSelectionSegs, rowCnt);
+ let eventDragByRow = this.splitEventDrag(props.eventDrag, rowCnt);
+ let eventResizeByRow = this.splitEventResize(props.eventResize, rowCnt);
+ // for DayGrid view with many rows, force a min-height on cells so doesn't appear squished
+ // choose 7 because a month view will have max 6 rows
+ let cellMinHeight = (rowCnt >= 7 && props.clientWidth) ?
+ props.clientWidth / context.options.aspectRatio / 6 :
+ null;
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.a6, { unit: "day" }, (nowDate, todayRange) => ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, props.cells.map((cells, row) => ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(TableRow, { ref: this.rowRefs.createRef(row), key: cells.length
+ ? cells[0].date.toISOString() /* best? or put key on cell? or use diff formatter? */
+ : row // in case there are no cells (like when resource view is loading)
+ , showDayNumbers: rowCnt > 1, showWeekNumbers: props.showWeekNumbers, todayRange: todayRange, dateProfile: props.dateProfile, cells: cells, renderIntro: props.renderRowIntro, businessHourSegs: businessHourSegsByRow[row], eventSelection: props.eventSelection, bgEventSegs: bgEventSegsByRow[row], fgEventSegs: fgEventSegsByRow[row], dateSelectionSegs: dateSelectionSegsByRow[row], eventDrag: eventDragByRow[row], eventResize: eventResizeByRow[row], dayMaxEvents: props.dayMaxEvents, dayMaxEventRows: props.dayMaxEventRows, clientWidth: props.clientWidth, clientHeight: props.clientHeight, cellMinHeight: cellMinHeight, forPrint: props.forPrint })))))));
+ }
+ componentDidMount() {
+ this.registerInteractiveComponent();
+ }
+ componentDidUpdate() {
+ // for if started with zero cells
+ this.registerInteractiveComponent();
+ }
+ registerInteractiveComponent() {
+ if (!this.rootEl) {
+ // HACK: need a daygrid wrapper parent to do positioning
+ // NOTE: a daygrid resource view w/o resources can have zero cells
+ const firstCellEl = this.rowRefs.currentMap[0].getCellEls()[0];
+ const rootEl = firstCellEl ? firstCellEl.closest('.fc-daygrid-body') : null;
+ if (rootEl) {
+ this.rootEl = rootEl;
+ this.context.registerInteractiveComponent(this, {
+ el: rootEl,
+ isHitComboAllowed: this.props.isHitComboAllowed,
+ });
+ }
+ }
+ }
+ componentWillUnmount() {
+ if (this.rootEl) {
+ this.context.unregisterInteractiveComponent(this);
+ this.rootEl = null;
+ }
+ }
+ // Hit System
+ // ----------------------------------------------------------------------------------------------------
+ prepareHits() {
+ this.rowPositions = new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.b8(this.rootEl, this.rowRefs.collect().map((rowObj) => rowObj.getCellEls()[0]), // first cell el in each row. TODO: not optimal
+ false, true);
+ this.colPositions = new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.b8(this.rootEl, this.rowRefs.currentMap[0].getCellEls(), // cell els in first row
+ true, // horizontal
+ false);
+ }
+ queryHit(positionLeft, positionTop) {
+ let { colPositions, rowPositions } = this;
+ let col = colPositions.leftToIndex(positionLeft);
+ let row = rowPositions.topToIndex(positionTop);
+ if (row != null && col != null) {
+ let cell = this.props.cells[row][col];
+ return {
+ dateProfile: this.props.dateProfile,
+ dateSpan: Object.assign({ range: this.getCellRange(row, col), allDay: true }, cell.extraDateSpan),
+ dayEl: this.getCellEl(row, col),
+ rect: {
+ left: colPositions.lefts[col],
+ right: colPositions.rights[col],
+ top: rowPositions.tops[row],
+ bottom: rowPositions.bottoms[row],
+ },
+ layer: 0,
+ };
+ }
+ return null;
+ }
+ getCellEl(row, col) {
+ return this.rowRefs.currentMap[row].getCellEls()[col]; // TODO: not optimal
+ }
+ getCellRange(row, col) {
+ let start = this.props.cells[row][col].date;
+ let end = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.t)(start, 1);
+ return { start, end };
+ }
+}
+function splitAllDaySegsByRow(segs, rowCnt) {
+ return splitSegsByRow(segs.filter(isSegAllDay), rowCnt);
+}
+function isSegAllDay(seg) {
+ return seg.eventRange.def.allDay;
+}
+
+class Table extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bc {
+ constructor() {
+ super(...arguments);
+ this.elRef = (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createRef)();
+ this.needsScrollReset = false;
+ }
+ render() {
+ let { props } = this;
+ let { dayMaxEventRows, dayMaxEvents, expandRows } = props;
+ let limitViaBalanced = dayMaxEvents === true || dayMaxEventRows === true;
+ // if rows can't expand to fill fixed height, can't do balanced-height event limit
+ // TODO: best place to normalize these options?
+ if (limitViaBalanced && !expandRows) {
+ limitViaBalanced = false;
+ dayMaxEventRows = null;
+ dayMaxEvents = null;
+ }
+ let classNames = [
+ 'fc-daygrid-body',
+ limitViaBalanced ? 'fc-daygrid-body-balanced' : 'fc-daygrid-body-unbalanced',
+ expandRows ? '' : 'fc-daygrid-body-natural', // will height of one row depend on the others?
+ ];
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { ref: this.elRef, className: classNames.join(' '), style: {
+ // these props are important to give this wrapper correct dimensions for interactions
+ // TODO: if we set it here, can we avoid giving to inner tables?
+ width: props.clientWidth,
+ minWidth: props.tableMinWidth,
+ } },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("table", { role: "presentation", className: "fc-scrollgrid-sync-table", style: {
+ width: props.clientWidth,
+ minWidth: props.tableMinWidth,
+ height: expandRows ? props.clientHeight : '',
+ } },
+ props.colGroupNode,
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("tbody", { role: "presentation" },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(TableRows, { dateProfile: props.dateProfile, cells: props.cells, renderRowIntro: props.renderRowIntro, showWeekNumbers: props.showWeekNumbers, clientWidth: props.clientWidth, clientHeight: props.clientHeight, businessHourSegs: props.businessHourSegs, bgEventSegs: props.bgEventSegs, fgEventSegs: props.fgEventSegs, dateSelectionSegs: props.dateSelectionSegs, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, dayMaxEvents: dayMaxEvents, dayMaxEventRows: dayMaxEventRows, forPrint: props.forPrint, isHitComboAllowed: props.isHitComboAllowed })))));
+ }
+ componentDidMount() {
+ this.requestScrollReset();
+ }
+ componentDidUpdate(prevProps) {
+ if (prevProps.dateProfile !== this.props.dateProfile) {
+ this.requestScrollReset();
+ }
+ else {
+ this.flushScrollReset();
+ }
+ }
+ requestScrollReset() {
+ this.needsScrollReset = true;
+ this.flushScrollReset();
+ }
+ flushScrollReset() {
+ if (this.needsScrollReset &&
+ this.props.clientWidth // sizes computed?
+ ) {
+ const subjectEl = getScrollSubjectEl(this.elRef.current, this.props.dateProfile);
+ if (subjectEl) {
+ const originEl = subjectEl.closest('.fc-daygrid-body');
+ const scrollEl = originEl.closest('.fc-scroller');
+ const scrollTop = subjectEl.getBoundingClientRect().top -
+ originEl.getBoundingClientRect().top;
+ scrollEl.scrollTop = scrollTop ? (scrollTop + 1) : 0; // overcome border
+ }
+ this.needsScrollReset = false;
+ }
+ }
+}
+function getScrollSubjectEl(containerEl, dateProfile) {
+ let el;
+ if (dateProfile.currentRangeUnit.match(/year|month/)) {
+ el = containerEl.querySelector(`[data-date="${(0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bv)(dateProfile.currentDate)}-01"]`);
+ // even if view is month-based, first-of-month might be hidden...
+ }
+ if (!el) {
+ el = containerEl.querySelector(`[data-date="${(0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bt)(dateProfile.currentDate)}"]`);
+ // could still be hidden if an interior-view hidden day
+ }
+ return el;
+}
+
+class DayTableSlicer extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bU {
+ constructor() {
+ super(...arguments);
+ this.forceDayIfListItem = true;
+ }
+ sliceRange(dateRange, dayTableModel) {
+ return dayTableModel.sliceRange(dateRange);
+ }
+}
+
+class DayTable extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bc {
+ constructor() {
+ super(...arguments);
+ this.slicer = new DayTableSlicer();
+ this.tableRef = (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createRef)();
+ }
+ render() {
+ let { props, context } = this;
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(Table, Object.assign({ ref: this.tableRef }, this.slicer.sliceProps(props, props.dateProfile, props.nextDayThreshold, context, props.dayTableModel), { dateProfile: props.dateProfile, cells: props.dayTableModel.cells, colGroupNode: props.colGroupNode, tableMinWidth: props.tableMinWidth, renderRowIntro: props.renderRowIntro, dayMaxEvents: props.dayMaxEvents, dayMaxEventRows: props.dayMaxEventRows, showWeekNumbers: props.showWeekNumbers, expandRows: props.expandRows, headerAlignElRef: props.headerAlignElRef, clientWidth: props.clientWidth, clientHeight: props.clientHeight, forPrint: props.forPrint })));
+ }
+}
+
+class DayTableView extends TableView {
+ constructor() {
+ super(...arguments);
+ this.buildDayTableModel = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.z)(buildDayTableModel);
+ this.headerRef = (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createRef)();
+ this.tableRef = (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createRef)();
+ // can't override any lifecycle methods from parent
+ }
+ render() {
+ let { options, dateProfileGenerator } = this.context;
+ let { props } = this;
+ let dayTableModel = this.buildDayTableModel(props.dateProfile, dateProfileGenerator);
+ let headerContent = options.dayHeaders && ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bI, { ref: this.headerRef, dateProfile: props.dateProfile, dates: dayTableModel.headerDates, datesRepDistinctDays: dayTableModel.rowCnt === 1 }));
+ let bodyContent = (contentArg) => ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(DayTable, { ref: this.tableRef, dateProfile: props.dateProfile, dayTableModel: dayTableModel, businessHours: props.businessHours, dateSelection: props.dateSelection, eventStore: props.eventStore, eventUiBases: props.eventUiBases, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, nextDayThreshold: options.nextDayThreshold, colGroupNode: contentArg.tableColGroupNode, tableMinWidth: contentArg.tableMinWidth, dayMaxEvents: options.dayMaxEvents, dayMaxEventRows: options.dayMaxEventRows, showWeekNumbers: options.weekNumbers, expandRows: !props.isHeightAuto, headerAlignElRef: this.headerElRef, clientWidth: contentArg.clientWidth, clientHeight: contentArg.clientHeight, forPrint: props.forPrint }));
+ return options.dayMinWidth
+ ? this.renderHScrollLayout(headerContent, bodyContent, dayTableModel.colCnt, options.dayMinWidth)
+ : this.renderSimpleLayout(headerContent, bodyContent);
+ }
+}
+function buildDayTableModel(dateProfile, dateProfileGenerator) {
+ let daySeries = new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bM(dateProfile.renderRange, dateProfileGenerator);
+ return new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bT(daySeries, /year|month|week/.test(dateProfile.currentRangeUnit));
+}
+
+class TableDateProfileGenerator extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.R {
+ // Computes the date range that will be rendered
+ buildRenderRange(currentRange, currentRangeUnit, isRangeAllDay) {
+ let renderRange = super.buildRenderRange(currentRange, currentRangeUnit, isRangeAllDay);
+ let { props } = this;
+ return buildDayTableRenderRange({
+ currentRange: renderRange,
+ snapToWeek: /^(year|month)$/.test(currentRangeUnit),
+ fixedWeekCount: props.fixedWeekCount,
+ dateEnv: props.dateEnv,
+ });
+ }
+}
+function buildDayTableRenderRange(props) {
+ let { dateEnv, currentRange } = props;
+ let { start, end } = currentRange;
+ let endOfWeek;
+ // year and month views should be aligned with weeks. this is already done for week
+ if (props.snapToWeek) {
+ start = dateEnv.startOfWeek(start);
+ // make end-of-week if not already
+ endOfWeek = dateEnv.startOfWeek(end);
+ if (endOfWeek.valueOf() !== end.valueOf()) {
+ end = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bf)(endOfWeek, 1);
+ }
+ }
+ // ensure 6 weeks
+ if (props.fixedWeekCount) {
+ // TODO: instead of these date-math gymnastics (for multimonth view),
+ // compute dateprofiles of all months, then use start of first and end of last.
+ let lastMonthRenderStart = dateEnv.startOfWeek(dateEnv.startOfMonth((0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.t)(currentRange.end, -1)));
+ let rowCnt = Math.ceil(// could be partial weeks due to hiddenDays
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bg)(lastMonthRenderStart, end));
+ end = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bf)(end, 6 - rowCnt);
+ }
+ return { start, end };
+}
+
+var css_248z = ":root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:\"\";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:\"\";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}";
+(0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ct)(css_248z);
+
+
+
+
+/***/ }),
+
+/***/ "./node_modules/@fullcalendar/interaction/index.js":
+/*!*********************************************************!*\
+ !*** ./node_modules/@fullcalendar/interaction/index.js ***!
+ \*********************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ Draggable: () => (/* binding */ ExternalDraggable),
+/* harmony export */ ThirdPartyDraggable: () => (/* binding */ ThirdPartyDraggable),
+/* harmony export */ "default": () => (/* binding */ index)
+/* harmony export */ });
+/* harmony import */ var _fullcalendar_core_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fullcalendar/core/index.js */ "./node_modules/@fullcalendar/core/index.js");
+/* harmony import */ var _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fullcalendar/core/internal.js */ "./node_modules/@fullcalendar/core/internal-common.js");
+
+
+
+_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bG.touchMouseIgnoreWait = 500;
+let ignoreMouseDepth = 0;
+let listenerCnt = 0;
+let isWindowTouchMoveCancelled = false;
+/*
+Uses a "pointer" abstraction, which monitors UI events for both mouse and touch.
+Tracks when the pointer "drags" on a certain element, meaning down+move+up.
+
+Also, tracks if there was touch-scrolling.
+Also, can prevent touch-scrolling from happening.
+Also, can fire pointermove events when scrolling happens underneath, even when no real pointer movement.
+
+emits:
+- pointerdown
+- pointermove
+- pointerup
+*/
+class PointerDragging {
+ constructor(containerEl) {
+ this.subjectEl = null;
+ // options that can be directly assigned by caller
+ this.selector = ''; // will cause subjectEl in all emitted events to be this element
+ this.handleSelector = '';
+ this.shouldIgnoreMove = false;
+ this.shouldWatchScroll = true; // for simulating pointermove on scroll
+ // internal states
+ this.isDragging = false;
+ this.isTouchDragging = false;
+ this.wasTouchScroll = false;
+ // Mouse
+ // ----------------------------------------------------------------------------------------------------
+ this.handleMouseDown = (ev) => {
+ if (!this.shouldIgnoreMouse() &&
+ isPrimaryMouseButton(ev) &&
+ this.tryStart(ev)) {
+ let pev = this.createEventFromMouse(ev, true);
+ this.emitter.trigger('pointerdown', pev);
+ this.initScrollWatch(pev);
+ if (!this.shouldIgnoreMove) {
+ document.addEventListener('mousemove', this.handleMouseMove);
+ }
+ document.addEventListener('mouseup', this.handleMouseUp);
+ }
+ };
+ this.handleMouseMove = (ev) => {
+ let pev = this.createEventFromMouse(ev);
+ this.recordCoords(pev);
+ this.emitter.trigger('pointermove', pev);
+ };
+ this.handleMouseUp = (ev) => {
+ document.removeEventListener('mousemove', this.handleMouseMove);
+ document.removeEventListener('mouseup', this.handleMouseUp);
+ this.emitter.trigger('pointerup', this.createEventFromMouse(ev));
+ this.cleanup(); // call last so that pointerup has access to props
+ };
+ // Touch
+ // ----------------------------------------------------------------------------------------------------
+ this.handleTouchStart = (ev) => {
+ if (this.tryStart(ev)) {
+ this.isTouchDragging = true;
+ let pev = this.createEventFromTouch(ev, true);
+ this.emitter.trigger('pointerdown', pev);
+ this.initScrollWatch(pev);
+ // unlike mouse, need to attach to target, not document
+ // https://stackoverflow.com/a/45760014
+ let targetEl = ev.target;
+ if (!this.shouldIgnoreMove) {
+ targetEl.addEventListener('touchmove', this.handleTouchMove);
+ }
+ targetEl.addEventListener('touchend', this.handleTouchEnd);
+ targetEl.addEventListener('touchcancel', this.handleTouchEnd); // treat it as a touch end
+ // attach a handler to get called when ANY scroll action happens on the page.
+ // this was impossible to do with normal on/off because 'scroll' doesn't bubble.
+ // http://stackoverflow.com/a/32954565/96342
+ window.addEventListener('scroll', this.handleTouchScroll, true);
+ }
+ };
+ this.handleTouchMove = (ev) => {
+ let pev = this.createEventFromTouch(ev);
+ this.recordCoords(pev);
+ this.emitter.trigger('pointermove', pev);
+ };
+ this.handleTouchEnd = (ev) => {
+ if (this.isDragging) { // done to guard against touchend followed by touchcancel
+ let targetEl = ev.target;
+ targetEl.removeEventListener('touchmove', this.handleTouchMove);
+ targetEl.removeEventListener('touchend', this.handleTouchEnd);
+ targetEl.removeEventListener('touchcancel', this.handleTouchEnd);
+ window.removeEventListener('scroll', this.handleTouchScroll, true); // useCaptured=true
+ this.emitter.trigger('pointerup', this.createEventFromTouch(ev));
+ this.cleanup(); // call last so that pointerup has access to props
+ this.isTouchDragging = false;
+ startIgnoringMouse();
+ }
+ };
+ this.handleTouchScroll = () => {
+ this.wasTouchScroll = true;
+ };
+ this.handleScroll = (ev) => {
+ if (!this.shouldIgnoreMove) {
+ let pageX = (window.scrollX - this.prevScrollX) + this.prevPageX;
+ let pageY = (window.scrollY - this.prevScrollY) + this.prevPageY;
+ this.emitter.trigger('pointermove', {
+ origEvent: ev,
+ isTouch: this.isTouchDragging,
+ subjectEl: this.subjectEl,
+ pageX,
+ pageY,
+ deltaX: pageX - this.origPageX,
+ deltaY: pageY - this.origPageY,
+ });
+ }
+ };
+ this.containerEl = containerEl;
+ this.emitter = new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.F();
+ containerEl.addEventListener('mousedown', this.handleMouseDown);
+ containerEl.addEventListener('touchstart', this.handleTouchStart, { passive: true });
+ listenerCreated();
+ }
+ destroy() {
+ this.containerEl.removeEventListener('mousedown', this.handleMouseDown);
+ this.containerEl.removeEventListener('touchstart', this.handleTouchStart, { passive: true });
+ listenerDestroyed();
+ }
+ tryStart(ev) {
+ let subjectEl = this.querySubjectEl(ev);
+ let downEl = ev.target;
+ if (subjectEl &&
+ (!this.handleSelector || (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.Z)(downEl, this.handleSelector))) {
+ this.subjectEl = subjectEl;
+ this.isDragging = true; // do this first so cancelTouchScroll will work
+ this.wasTouchScroll = false;
+ return true;
+ }
+ return false;
+ }
+ cleanup() {
+ isWindowTouchMoveCancelled = false;
+ this.isDragging = false;
+ this.subjectEl = null;
+ // keep wasTouchScroll around for later access
+ this.destroyScrollWatch();
+ }
+ querySubjectEl(ev) {
+ if (this.selector) {
+ return (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.Z)(ev.target, this.selector);
+ }
+ return this.containerEl;
+ }
+ shouldIgnoreMouse() {
+ return ignoreMouseDepth || this.isTouchDragging;
+ }
+ // can be called by user of this class, to cancel touch-based scrolling for the current drag
+ cancelTouchScroll() {
+ if (this.isDragging) {
+ isWindowTouchMoveCancelled = true;
+ }
+ }
+ // Scrolling that simulates pointermoves
+ // ----------------------------------------------------------------------------------------------------
+ initScrollWatch(ev) {
+ if (this.shouldWatchScroll) {
+ this.recordCoords(ev);
+ window.addEventListener('scroll', this.handleScroll, true); // useCapture=true
+ }
+ }
+ recordCoords(ev) {
+ if (this.shouldWatchScroll) {
+ this.prevPageX = ev.pageX;
+ this.prevPageY = ev.pageY;
+ this.prevScrollX = window.scrollX;
+ this.prevScrollY = window.scrollY;
+ }
+ }
+ destroyScrollWatch() {
+ if (this.shouldWatchScroll) {
+ window.removeEventListener('scroll', this.handleScroll, true); // useCaptured=true
+ }
+ }
+ // Event Normalization
+ // ----------------------------------------------------------------------------------------------------
+ createEventFromMouse(ev, isFirst) {
+ let deltaX = 0;
+ let deltaY = 0;
+ // TODO: repeat code
+ if (isFirst) {
+ this.origPageX = ev.pageX;
+ this.origPageY = ev.pageY;
+ }
+ else {
+ deltaX = ev.pageX - this.origPageX;
+ deltaY = ev.pageY - this.origPageY;
+ }
+ return {
+ origEvent: ev,
+ isTouch: false,
+ subjectEl: this.subjectEl,
+ pageX: ev.pageX,
+ pageY: ev.pageY,
+ deltaX,
+ deltaY,
+ };
+ }
+ createEventFromTouch(ev, isFirst) {
+ let touches = ev.touches;
+ let pageX;
+ let pageY;
+ let deltaX = 0;
+ let deltaY = 0;
+ // if touch coords available, prefer,
+ // because FF would give bad ev.pageX ev.pageY
+ if (touches && touches.length) {
+ pageX = touches[0].pageX;
+ pageY = touches[0].pageY;
+ }
+ else {
+ pageX = ev.pageX;
+ pageY = ev.pageY;
+ }
+ // TODO: repeat code
+ if (isFirst) {
+ this.origPageX = pageX;
+ this.origPageY = pageY;
+ }
+ else {
+ deltaX = pageX - this.origPageX;
+ deltaY = pageY - this.origPageY;
+ }
+ return {
+ origEvent: ev,
+ isTouch: true,
+ subjectEl: this.subjectEl,
+ pageX,
+ pageY,
+ deltaX,
+ deltaY,
+ };
+ }
+}
+// Returns a boolean whether this was a left mouse click and no ctrl key (which means right click on Mac)
+function isPrimaryMouseButton(ev) {
+ return ev.button === 0 && !ev.ctrlKey;
+}
+// Ignoring fake mouse events generated by touch
+// ----------------------------------------------------------------------------------------------------
+function startIgnoringMouse() {
+ ignoreMouseDepth += 1;
+ setTimeout(() => {
+ ignoreMouseDepth -= 1;
+ }, _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bG.touchMouseIgnoreWait);
+}
+// We want to attach touchmove as early as possible for Safari
+// ----------------------------------------------------------------------------------------------------
+function listenerCreated() {
+ listenerCnt += 1;
+ if (listenerCnt === 1) {
+ window.addEventListener('touchmove', onWindowTouchMove, { passive: false });
+ }
+}
+function listenerDestroyed() {
+ listenerCnt -= 1;
+ if (!listenerCnt) {
+ window.removeEventListener('touchmove', onWindowTouchMove, { passive: false });
+ }
+}
+function onWindowTouchMove(ev) {
+ if (isWindowTouchMoveCancelled) {
+ ev.preventDefault();
+ }
+}
+
+/*
+An effect in which an element follows the movement of a pointer across the screen.
+The moving element is a clone of some other element.
+Must call start + handleMove + stop.
+*/
+class ElementMirror {
+ constructor() {
+ this.isVisible = false; // must be explicitly enabled
+ this.sourceEl = null;
+ this.mirrorEl = null;
+ this.sourceElRect = null; // screen coords relative to viewport
+ // options that can be set directly by caller
+ this.parentNode = document.body; // HIGHLY SUGGESTED to set this to sidestep ShadowDOM issues
+ this.zIndex = 9999;
+ this.revertDuration = 0;
+ }
+ start(sourceEl, pageX, pageY) {
+ this.sourceEl = sourceEl;
+ this.sourceElRect = this.sourceEl.getBoundingClientRect();
+ this.origScreenX = pageX - window.scrollX;
+ this.origScreenY = pageY - window.scrollY;
+ this.deltaX = 0;
+ this.deltaY = 0;
+ this.updateElPosition();
+ }
+ handleMove(pageX, pageY) {
+ this.deltaX = (pageX - window.scrollX) - this.origScreenX;
+ this.deltaY = (pageY - window.scrollY) - this.origScreenY;
+ this.updateElPosition();
+ }
+ // can be called before start
+ setIsVisible(bool) {
+ if (bool) {
+ if (!this.isVisible) {
+ if (this.mirrorEl) {
+ this.mirrorEl.style.display = '';
+ }
+ this.isVisible = bool; // needs to happen before updateElPosition
+ this.updateElPosition(); // because was not updating the position while invisible
+ }
+ }
+ else if (this.isVisible) {
+ if (this.mirrorEl) {
+ this.mirrorEl.style.display = 'none';
+ }
+ this.isVisible = bool;
+ }
+ }
+ // always async
+ stop(needsRevertAnimation, callback) {
+ let done = () => {
+ this.cleanup();
+ callback();
+ };
+ if (needsRevertAnimation &&
+ this.mirrorEl &&
+ this.isVisible &&
+ this.revertDuration && // if 0, transition won't work
+ (this.deltaX || this.deltaY) // if same coords, transition won't work
+ ) {
+ this.doRevertAnimation(done, this.revertDuration);
+ }
+ else {
+ setTimeout(done, 0);
+ }
+ }
+ doRevertAnimation(callback, revertDuration) {
+ let mirrorEl = this.mirrorEl;
+ let finalSourceElRect = this.sourceEl.getBoundingClientRect(); // because autoscrolling might have happened
+ mirrorEl.style.transition =
+ 'top ' + revertDuration + 'ms,' +
+ 'left ' + revertDuration + 'ms';
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.aN)(mirrorEl, {
+ left: finalSourceElRect.left,
+ top: finalSourceElRect.top,
+ });
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.b0)(mirrorEl, () => {
+ mirrorEl.style.transition = '';
+ callback();
+ });
+ }
+ cleanup() {
+ if (this.mirrorEl) {
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.aM)(this.mirrorEl);
+ this.mirrorEl = null;
+ }
+ this.sourceEl = null;
+ }
+ updateElPosition() {
+ if (this.sourceEl && this.isVisible) {
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.aN)(this.getMirrorEl(), {
+ left: this.sourceElRect.left + this.deltaX,
+ top: this.sourceElRect.top + this.deltaY,
+ });
+ }
+ }
+ getMirrorEl() {
+ let sourceElRect = this.sourceElRect;
+ let mirrorEl = this.mirrorEl;
+ if (!mirrorEl) {
+ mirrorEl = this.mirrorEl = this.sourceEl.cloneNode(true); // cloneChildren=true
+ // we don't want long taps or any mouse interaction causing selection/menus.
+ // would use preventSelection(), but that prevents selectstart, causing problems.
+ mirrorEl.style.userSelect = 'none';
+ mirrorEl.style.webkitUserSelect = 'none';
+ mirrorEl.style.pointerEvents = 'none';
+ mirrorEl.classList.add('fc-event-dragging');
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.aN)(mirrorEl, {
+ position: 'fixed',
+ zIndex: this.zIndex,
+ visibility: '',
+ boxSizing: 'border-box',
+ width: sourceElRect.right - sourceElRect.left,
+ height: sourceElRect.bottom - sourceElRect.top,
+ right: 'auto',
+ bottom: 'auto',
+ margin: 0,
+ });
+ this.parentNode.appendChild(mirrorEl);
+ }
+ return mirrorEl;
+ }
+}
+
+/*
+Is a cache for a given element's scroll information (all the info that ScrollController stores)
+in addition the "client rectangle" of the element.. the area within the scrollbars.
+
+The cache can be in one of two modes:
+- doesListening:false - ignores when the container is scrolled by someone else
+- doesListening:true - watch for scrolling and update the cache
+*/
+class ScrollGeomCache extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.b9 {
+ constructor(scrollController, doesListening) {
+ super();
+ this.handleScroll = () => {
+ this.scrollTop = this.scrollController.getScrollTop();
+ this.scrollLeft = this.scrollController.getScrollLeft();
+ this.handleScrollChange();
+ };
+ this.scrollController = scrollController;
+ this.doesListening = doesListening;
+ this.scrollTop = this.origScrollTop = scrollController.getScrollTop();
+ this.scrollLeft = this.origScrollLeft = scrollController.getScrollLeft();
+ this.scrollWidth = scrollController.getScrollWidth();
+ this.scrollHeight = scrollController.getScrollHeight();
+ this.clientWidth = scrollController.getClientWidth();
+ this.clientHeight = scrollController.getClientHeight();
+ this.clientRect = this.computeClientRect(); // do last in case it needs cached values
+ if (this.doesListening) {
+ this.getEventTarget().addEventListener('scroll', this.handleScroll);
+ }
+ }
+ destroy() {
+ if (this.doesListening) {
+ this.getEventTarget().removeEventListener('scroll', this.handleScroll);
+ }
+ }
+ getScrollTop() {
+ return this.scrollTop;
+ }
+ getScrollLeft() {
+ return this.scrollLeft;
+ }
+ setScrollTop(top) {
+ this.scrollController.setScrollTop(top);
+ if (!this.doesListening) {
+ // we are not relying on the element to normalize out-of-bounds scroll values
+ // so we need to sanitize ourselves
+ this.scrollTop = Math.max(Math.min(top, this.getMaxScrollTop()), 0);
+ this.handleScrollChange();
+ }
+ }
+ setScrollLeft(top) {
+ this.scrollController.setScrollLeft(top);
+ if (!this.doesListening) {
+ // we are not relying on the element to normalize out-of-bounds scroll values
+ // so we need to sanitize ourselves
+ this.scrollLeft = Math.max(Math.min(top, this.getMaxScrollLeft()), 0);
+ this.handleScrollChange();
+ }
+ }
+ getClientWidth() {
+ return this.clientWidth;
+ }
+ getClientHeight() {
+ return this.clientHeight;
+ }
+ getScrollWidth() {
+ return this.scrollWidth;
+ }
+ getScrollHeight() {
+ return this.scrollHeight;
+ }
+ handleScrollChange() {
+ }
+}
+
+class ElementScrollGeomCache extends ScrollGeomCache {
+ constructor(el, doesListening) {
+ super(new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ba(el), doesListening);
+ }
+ getEventTarget() {
+ return this.scrollController.el;
+ }
+ computeClientRect() {
+ return (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.b1)(this.scrollController.el);
+ }
+}
+
+class WindowScrollGeomCache extends ScrollGeomCache {
+ constructor(doesListening) {
+ super(new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bb(), doesListening);
+ }
+ getEventTarget() {
+ return window;
+ }
+ computeClientRect() {
+ return {
+ left: this.scrollLeft,
+ right: this.scrollLeft + this.clientWidth,
+ top: this.scrollTop,
+ bottom: this.scrollTop + this.clientHeight,
+ };
+ }
+ // the window is the only scroll object that changes it's rectangle relative
+ // to the document's topleft as it scrolls
+ handleScrollChange() {
+ this.clientRect = this.computeClientRect();
+ }
+}
+
+// If available we are using native "performance" API instead of "Date"
+// Read more about it on MDN:
+// https://developer.mozilla.org/en-US/docs/Web/API/Performance
+const getTime = typeof performance === 'function' ? performance.now : Date.now;
+/*
+For a pointer interaction, automatically scrolls certain scroll containers when the pointer
+approaches the edge.
+
+The caller must call start + handleMove + stop.
+*/
+class AutoScroller {
+ constructor() {
+ // options that can be set by caller
+ this.isEnabled = true;
+ this.scrollQuery = [window, '.fc-scroller'];
+ this.edgeThreshold = 50; // pixels
+ this.maxVelocity = 300; // pixels per second
+ // internal state
+ this.pointerScreenX = null;
+ this.pointerScreenY = null;
+ this.isAnimating = false;
+ this.scrollCaches = null;
+ // protect against the initial pointerdown being too close to an edge and starting the scroll
+ this.everMovedUp = false;
+ this.everMovedDown = false;
+ this.everMovedLeft = false;
+ this.everMovedRight = false;
+ this.animate = () => {
+ if (this.isAnimating) { // wasn't cancelled between animation calls
+ let edge = this.computeBestEdge(this.pointerScreenX + window.scrollX, this.pointerScreenY + window.scrollY);
+ if (edge) {
+ let now = getTime();
+ this.handleSide(edge, (now - this.msSinceRequest) / 1000);
+ this.requestAnimation(now);
+ }
+ else {
+ this.isAnimating = false; // will stop animation
+ }
+ }
+ };
+ }
+ start(pageX, pageY, scrollStartEl) {
+ if (this.isEnabled) {
+ this.scrollCaches = this.buildCaches(scrollStartEl);
+ this.pointerScreenX = null;
+ this.pointerScreenY = null;
+ this.everMovedUp = false;
+ this.everMovedDown = false;
+ this.everMovedLeft = false;
+ this.everMovedRight = false;
+ this.handleMove(pageX, pageY);
+ }
+ }
+ handleMove(pageX, pageY) {
+ if (this.isEnabled) {
+ let pointerScreenX = pageX - window.scrollX;
+ let pointerScreenY = pageY - window.scrollY;
+ let yDelta = this.pointerScreenY === null ? 0 : pointerScreenY - this.pointerScreenY;
+ let xDelta = this.pointerScreenX === null ? 0 : pointerScreenX - this.pointerScreenX;
+ if (yDelta < 0) {
+ this.everMovedUp = true;
+ }
+ else if (yDelta > 0) {
+ this.everMovedDown = true;
+ }
+ if (xDelta < 0) {
+ this.everMovedLeft = true;
+ }
+ else if (xDelta > 0) {
+ this.everMovedRight = true;
+ }
+ this.pointerScreenX = pointerScreenX;
+ this.pointerScreenY = pointerScreenY;
+ if (!this.isAnimating) {
+ this.isAnimating = true;
+ this.requestAnimation(getTime());
+ }
+ }
+ }
+ stop() {
+ if (this.isEnabled) {
+ this.isAnimating = false; // will stop animation
+ for (let scrollCache of this.scrollCaches) {
+ scrollCache.destroy();
+ }
+ this.scrollCaches = null;
+ }
+ }
+ requestAnimation(now) {
+ this.msSinceRequest = now;
+ requestAnimationFrame(this.animate);
+ }
+ handleSide(edge, seconds) {
+ let { scrollCache } = edge;
+ let { edgeThreshold } = this;
+ let invDistance = edgeThreshold - edge.distance;
+ let velocity = // the closer to the edge, the faster we scroll
+ ((invDistance * invDistance) / (edgeThreshold * edgeThreshold)) * // quadratic
+ this.maxVelocity * seconds;
+ let sign = 1;
+ switch (edge.name) {
+ case 'left':
+ sign = -1;
+ // falls through
+ case 'right':
+ scrollCache.setScrollLeft(scrollCache.getScrollLeft() + velocity * sign);
+ break;
+ case 'top':
+ sign = -1;
+ // falls through
+ case 'bottom':
+ scrollCache.setScrollTop(scrollCache.getScrollTop() + velocity * sign);
+ break;
+ }
+ }
+ // left/top are relative to document topleft
+ computeBestEdge(left, top) {
+ let { edgeThreshold } = this;
+ let bestSide = null;
+ let scrollCaches = this.scrollCaches || [];
+ for (let scrollCache of scrollCaches) {
+ let rect = scrollCache.clientRect;
+ let leftDist = left - rect.left;
+ let rightDist = rect.right - left;
+ let topDist = top - rect.top;
+ let bottomDist = rect.bottom - top;
+ // completely within the rect?
+ if (leftDist >= 0 && rightDist >= 0 && topDist >= 0 && bottomDist >= 0) {
+ if (topDist <= edgeThreshold && this.everMovedUp && scrollCache.canScrollUp() &&
+ (!bestSide || bestSide.distance > topDist)) {
+ bestSide = { scrollCache, name: 'top', distance: topDist };
+ }
+ if (bottomDist <= edgeThreshold && this.everMovedDown && scrollCache.canScrollDown() &&
+ (!bestSide || bestSide.distance > bottomDist)) {
+ bestSide = { scrollCache, name: 'bottom', distance: bottomDist };
+ }
+ /*
+ TODO: fix broken RTL scrolling. canScrollLeft always returning false
+ https://github.com/fullcalendar/fullcalendar/issues/4837
+ */
+ if (leftDist <= edgeThreshold && this.everMovedLeft && scrollCache.canScrollLeft() &&
+ (!bestSide || bestSide.distance > leftDist)) {
+ bestSide = { scrollCache, name: 'left', distance: leftDist };
+ }
+ if (rightDist <= edgeThreshold && this.everMovedRight && scrollCache.canScrollRight() &&
+ (!bestSide || bestSide.distance > rightDist)) {
+ bestSide = { scrollCache, name: 'right', distance: rightDist };
+ }
+ }
+ }
+ return bestSide;
+ }
+ buildCaches(scrollStartEl) {
+ return this.queryScrollEls(scrollStartEl).map((el) => {
+ if (el === window) {
+ return new WindowScrollGeomCache(false); // false = don't listen to user-generated scrolls
+ }
+ return new ElementScrollGeomCache(el, false); // false = don't listen to user-generated scrolls
+ });
+ }
+ queryScrollEls(scrollStartEl) {
+ let els = [];
+ for (let query of this.scrollQuery) {
+ if (typeof query === 'object') {
+ els.push(query);
+ }
+ else {
+ /*
+ TODO: in the future, always have auto-scroll happen on element where current Hit came from
+ Ticket: https://github.com/fullcalendar/fullcalendar/issues/4593
+ */
+ els.push(...Array.prototype.slice.call(scrollStartEl.getRootNode().querySelectorAll(query)));
+ }
+ }
+ return els;
+ }
+}
+
+/*
+Monitors dragging on an element. Has a number of high-level features:
+- minimum distance required before dragging
+- minimum wait time ("delay") before dragging
+- a mirror element that follows the pointer
+*/
+class FeaturefulElementDragging extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bF {
+ constructor(containerEl, selector) {
+ super(containerEl);
+ this.containerEl = containerEl;
+ // options that can be directly set by caller
+ // the caller can also set the PointerDragging's options as well
+ this.delay = null;
+ this.minDistance = 0;
+ this.touchScrollAllowed = true; // prevents drag from starting and blocks scrolling during drag
+ this.mirrorNeedsRevert = false;
+ this.isInteracting = false; // is the user validly moving the pointer? lasts until pointerup
+ this.isDragging = false; // is it INTENTFULLY dragging? lasts until after revert animation
+ this.isDelayEnded = false;
+ this.isDistanceSurpassed = false;
+ this.delayTimeoutId = null;
+ this.onPointerDown = (ev) => {
+ if (!this.isDragging) { // so new drag doesn't happen while revert animation is going
+ this.isInteracting = true;
+ this.isDelayEnded = false;
+ this.isDistanceSurpassed = false;
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ap)(document.body);
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ar)(document.body);
+ // prevent links from being visited if there's an eventual drag.
+ // also prevents selection in older browsers (maybe?).
+ // not necessary for touch, besides, browser would complain about passiveness.
+ if (!ev.isTouch) {
+ ev.origEvent.preventDefault();
+ }
+ this.emitter.trigger('pointerdown', ev);
+ if (this.isInteracting && // not destroyed via pointerdown handler
+ !this.pointer.shouldIgnoreMove) {
+ // actions related to initiating dragstart+dragmove+dragend...
+ this.mirror.setIsVisible(false); // reset. caller must set-visible
+ this.mirror.start(ev.subjectEl, ev.pageX, ev.pageY); // must happen on first pointer down
+ this.startDelay(ev);
+ if (!this.minDistance) {
+ this.handleDistanceSurpassed(ev);
+ }
+ }
+ }
+ };
+ this.onPointerMove = (ev) => {
+ if (this.isInteracting) {
+ this.emitter.trigger('pointermove', ev);
+ if (!this.isDistanceSurpassed) {
+ let minDistance = this.minDistance;
+ let distanceSq; // current distance from the origin, squared
+ let { deltaX, deltaY } = ev;
+ distanceSq = deltaX * deltaX + deltaY * deltaY;
+ if (distanceSq >= minDistance * minDistance) { // use pythagorean theorem
+ this.handleDistanceSurpassed(ev);
+ }
+ }
+ if (this.isDragging) {
+ // a real pointer move? (not one simulated by scrolling)
+ if (ev.origEvent.type !== 'scroll') {
+ this.mirror.handleMove(ev.pageX, ev.pageY);
+ this.autoScroller.handleMove(ev.pageX, ev.pageY);
+ }
+ this.emitter.trigger('dragmove', ev);
+ }
+ }
+ };
+ this.onPointerUp = (ev) => {
+ if (this.isInteracting) {
+ this.isInteracting = false;
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.aq)(document.body);
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.as)(document.body);
+ this.emitter.trigger('pointerup', ev); // can potentially set mirrorNeedsRevert
+ if (this.isDragging) {
+ this.autoScroller.stop();
+ this.tryStopDrag(ev); // which will stop the mirror
+ }
+ if (this.delayTimeoutId) {
+ clearTimeout(this.delayTimeoutId);
+ this.delayTimeoutId = null;
+ }
+ }
+ };
+ let pointer = this.pointer = new PointerDragging(containerEl);
+ pointer.emitter.on('pointerdown', this.onPointerDown);
+ pointer.emitter.on('pointermove', this.onPointerMove);
+ pointer.emitter.on('pointerup', this.onPointerUp);
+ if (selector) {
+ pointer.selector = selector;
+ }
+ this.mirror = new ElementMirror();
+ this.autoScroller = new AutoScroller();
+ }
+ destroy() {
+ this.pointer.destroy();
+ // HACK: simulate a pointer-up to end the current drag
+ // TODO: fire 'dragend' directly and stop interaction. discourage use of pointerup event (b/c might not fire)
+ this.onPointerUp({});
+ }
+ startDelay(ev) {
+ if (typeof this.delay === 'number') {
+ this.delayTimeoutId = setTimeout(() => {
+ this.delayTimeoutId = null;
+ this.handleDelayEnd(ev);
+ }, this.delay); // not assignable to number!
+ }
+ else {
+ this.handleDelayEnd(ev);
+ }
+ }
+ handleDelayEnd(ev) {
+ this.isDelayEnded = true;
+ this.tryStartDrag(ev);
+ }
+ handleDistanceSurpassed(ev) {
+ this.isDistanceSurpassed = true;
+ this.tryStartDrag(ev);
+ }
+ tryStartDrag(ev) {
+ if (this.isDelayEnded && this.isDistanceSurpassed) {
+ if (!this.pointer.wasTouchScroll || this.touchScrollAllowed) {
+ this.isDragging = true;
+ this.mirrorNeedsRevert = false;
+ this.autoScroller.start(ev.pageX, ev.pageY, this.containerEl);
+ this.emitter.trigger('dragstart', ev);
+ if (this.touchScrollAllowed === false) {
+ this.pointer.cancelTouchScroll();
+ }
+ }
+ }
+ }
+ tryStopDrag(ev) {
+ // .stop() is ALWAYS asynchronous, which we NEED because we want all pointerup events
+ // that come from the document to fire beforehand. much more convenient this way.
+ this.mirror.stop(this.mirrorNeedsRevert, this.stopDrag.bind(this, ev));
+ }
+ stopDrag(ev) {
+ this.isDragging = false;
+ this.emitter.trigger('dragend', ev);
+ }
+ // fill in the implementations...
+ setIgnoreMove(bool) {
+ this.pointer.shouldIgnoreMove = bool;
+ }
+ setMirrorIsVisible(bool) {
+ this.mirror.setIsVisible(bool);
+ }
+ setMirrorNeedsRevert(bool) {
+ this.mirrorNeedsRevert = bool;
+ }
+ setAutoScrollEnabled(bool) {
+ this.autoScroller.isEnabled = bool;
+ }
+}
+
+/*
+When this class is instantiated, it records the offset of an element (relative to the document topleft),
+and continues to monitor scrolling, updating the cached coordinates if it needs to.
+Does not access the DOM after instantiation, so highly performant.
+
+Also keeps track of all scrolling/overflow:hidden containers that are parents of the given element
+and an determine if a given point is inside the combined clipping rectangle.
+*/
+class OffsetTracker {
+ constructor(el) {
+ this.el = el;
+ this.origRect = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.b4)(el);
+ // will work fine for divs that have overflow:hidden
+ this.scrollCaches = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.b3)(el).map((scrollEl) => new ElementScrollGeomCache(scrollEl, true));
+ }
+ destroy() {
+ for (let scrollCache of this.scrollCaches) {
+ scrollCache.destroy();
+ }
+ }
+ computeLeft() {
+ let left = this.origRect.left;
+ for (let scrollCache of this.scrollCaches) {
+ left += scrollCache.origScrollLeft - scrollCache.getScrollLeft();
+ }
+ return left;
+ }
+ computeTop() {
+ let top = this.origRect.top;
+ for (let scrollCache of this.scrollCaches) {
+ top += scrollCache.origScrollTop - scrollCache.getScrollTop();
+ }
+ return top;
+ }
+ isWithinClipping(pageX, pageY) {
+ let point = { left: pageX, top: pageY };
+ for (let scrollCache of this.scrollCaches) {
+ if (!isIgnoredClipping(scrollCache.getEventTarget()) &&
+ !(0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.aD)(point, scrollCache.clientRect)) {
+ return false;
+ }
+ }
+ return true;
+ }
+}
+// certain clipping containers should never constrain interactions, like <html> and <body>
+// https://github.com/fullcalendar/fullcalendar/issues/3615
+function isIgnoredClipping(node) {
+ let tagName = node.tagName;
+ return tagName === 'HTML' || tagName === 'BODY';
+}
+
+/*
+Tracks movement over multiple droppable areas (aka "hits")
+that exist in one or more DateComponents.
+Relies on an existing draggable.
+
+emits:
+- pointerdown
+- dragstart
+- hitchange - fires initially, even if not over a hit
+- pointerup
+- (hitchange - again, to null, if ended over a hit)
+- dragend
+*/
+class HitDragging {
+ constructor(dragging, droppableStore) {
+ // options that can be set by caller
+ this.useSubjectCenter = false;
+ this.requireInitial = true; // if doesn't start out on a hit, won't emit any events
+ this.disablePointCheck = false;
+ this.initialHit = null;
+ this.movingHit = null;
+ this.finalHit = null; // won't ever be populated if shouldIgnoreMove
+ this.handlePointerDown = (ev) => {
+ let { dragging } = this;
+ this.initialHit = null;
+ this.movingHit = null;
+ this.finalHit = null;
+ this.prepareHits();
+ this.processFirstCoord(ev);
+ if (this.initialHit || !this.requireInitial) {
+ dragging.setIgnoreMove(false);
+ // TODO: fire this before computing processFirstCoord, so listeners can cancel. this gets fired by almost every handler :(
+ this.emitter.trigger('pointerdown', ev);
+ }
+ else {
+ dragging.setIgnoreMove(true);
+ }
+ };
+ this.handleDragStart = (ev) => {
+ this.emitter.trigger('dragstart', ev);
+ this.handleMove(ev, true); // force = fire even if initially null
+ };
+ this.handleDragMove = (ev) => {
+ this.emitter.trigger('dragmove', ev);
+ this.handleMove(ev);
+ };
+ this.handlePointerUp = (ev) => {
+ this.releaseHits();
+ this.emitter.trigger('pointerup', ev);
+ };
+ this.handleDragEnd = (ev) => {
+ if (this.movingHit) {
+ this.emitter.trigger('hitupdate', null, true, ev);
+ }
+ this.finalHit = this.movingHit;
+ this.movingHit = null;
+ this.emitter.trigger('dragend', ev);
+ };
+ this.droppableStore = droppableStore;
+ dragging.emitter.on('pointerdown', this.handlePointerDown);
+ dragging.emitter.on('dragstart', this.handleDragStart);
+ dragging.emitter.on('dragmove', this.handleDragMove);
+ dragging.emitter.on('pointerup', this.handlePointerUp);
+ dragging.emitter.on('dragend', this.handleDragEnd);
+ this.dragging = dragging;
+ this.emitter = new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.F();
+ }
+ // sets initialHit
+ // sets coordAdjust
+ processFirstCoord(ev) {
+ let origPoint = { left: ev.pageX, top: ev.pageY };
+ let adjustedPoint = origPoint;
+ let subjectEl = ev.subjectEl;
+ let subjectRect;
+ if (subjectEl instanceof HTMLElement) { // i.e. not a Document/ShadowRoot
+ subjectRect = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.b4)(subjectEl);
+ adjustedPoint = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.aE)(adjustedPoint, subjectRect);
+ }
+ let initialHit = this.initialHit = this.queryHitForOffset(adjustedPoint.left, adjustedPoint.top);
+ if (initialHit) {
+ if (this.useSubjectCenter && subjectRect) {
+ let slicedSubjectRect = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.aC)(subjectRect, initialHit.rect);
+ if (slicedSubjectRect) {
+ adjustedPoint = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.aF)(slicedSubjectRect);
+ }
+ }
+ this.coordAdjust = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.aG)(adjustedPoint, origPoint);
+ }
+ else {
+ this.coordAdjust = { left: 0, top: 0 };
+ }
+ }
+ handleMove(ev, forceHandle) {
+ let hit = this.queryHitForOffset(ev.pageX + this.coordAdjust.left, ev.pageY + this.coordAdjust.top);
+ if (forceHandle || !isHitsEqual(this.movingHit, hit)) {
+ this.movingHit = hit;
+ this.emitter.trigger('hitupdate', hit, false, ev);
+ }
+ }
+ prepareHits() {
+ this.offsetTrackers = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.a)(this.droppableStore, (interactionSettings) => {
+ interactionSettings.component.prepareHits();
+ return new OffsetTracker(interactionSettings.el);
+ });
+ }
+ releaseHits() {
+ let { offsetTrackers } = this;
+ for (let id in offsetTrackers) {
+ offsetTrackers[id].destroy();
+ }
+ this.offsetTrackers = {};
+ }
+ queryHitForOffset(offsetLeft, offsetTop) {
+ let { droppableStore, offsetTrackers } = this;
+ let bestHit = null;
+ for (let id in droppableStore) {
+ let component = droppableStore[id].component;
+ let offsetTracker = offsetTrackers[id];
+ if (offsetTracker && // wasn't destroyed mid-drag
+ offsetTracker.isWithinClipping(offsetLeft, offsetTop)) {
+ let originLeft = offsetTracker.computeLeft();
+ let originTop = offsetTracker.computeTop();
+ let positionLeft = offsetLeft - originLeft;
+ let positionTop = offsetTop - originTop;
+ let { origRect } = offsetTracker;
+ let width = origRect.right - origRect.left;
+ let height = origRect.bottom - origRect.top;
+ if (
+ // must be within the element's bounds
+ positionLeft >= 0 && positionLeft < width &&
+ positionTop >= 0 && positionTop < height) {
+ let hit = component.queryHit(positionLeft, positionTop, width, height);
+ if (hit && (
+ // make sure the hit is within activeRange, meaning it's not a dead cell
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.b7)(hit.dateProfile.activeRange, hit.dateSpan.range)) &&
+ // Ensure the component we are querying for the hit is accessibly my the pointer
+ // Prevents obscured calendars (ex: under a modal dialog) from accepting hit
+ // https://github.com/fullcalendar/fullcalendar/issues/5026
+ (this.disablePointCheck ||
+ offsetTracker.el.contains(offsetTracker.el.getRootNode().elementFromPoint(
+ // add-back origins to get coordinate relative to top-left of window viewport
+ positionLeft + originLeft - window.scrollX, positionTop + originTop - window.scrollY))) &&
+ (!bestHit || hit.layer > bestHit.layer)) {
+ hit.componentId = id;
+ hit.context = component.context;
+ // TODO: better way to re-orient rectangle
+ hit.rect.left += originLeft;
+ hit.rect.right += originLeft;
+ hit.rect.top += originTop;
+ hit.rect.bottom += originTop;
+ bestHit = hit;
+ }
+ }
+ }
+ }
+ return bestHit;
+ }
+}
+function isHitsEqual(hit0, hit1) {
+ if (!hit0 && !hit1) {
+ return true;
+ }
+ if (Boolean(hit0) !== Boolean(hit1)) {
+ return false;
+ }
+ return (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bd)(hit0.dateSpan, hit1.dateSpan);
+}
+
+function buildDatePointApiWithContext(dateSpan, context) {
+ let props = {};
+ for (let transform of context.pluginHooks.datePointTransforms) {
+ Object.assign(props, transform(dateSpan, context));
+ }
+ Object.assign(props, buildDatePointApi(dateSpan, context.dateEnv));
+ return props;
+}
+function buildDatePointApi(span, dateEnv) {
+ return {
+ date: dateEnv.toDate(span.range.start),
+ dateStr: dateEnv.formatIso(span.range.start, { omitTime: span.allDay }),
+ allDay: span.allDay,
+ };
+}
+
+/*
+Monitors when the user clicks on a specific date/time of a component.
+A pointerdown+pointerup on the same "hit" constitutes a click.
+*/
+class DateClicking extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.X {
+ constructor(settings) {
+ super(settings);
+ this.handlePointerDown = (pev) => {
+ let { dragging } = this;
+ let downEl = pev.origEvent.target;
+ // do this in pointerdown (not dragend) because DOM might be mutated by the time dragend is fired
+ dragging.setIgnoreMove(!this.component.isValidDateDownEl(downEl));
+ };
+ // won't even fire if moving was ignored
+ this.handleDragEnd = (ev) => {
+ let { component } = this;
+ let { pointer } = this.dragging;
+ if (!pointer.wasTouchScroll) {
+ let { initialHit, finalHit } = this.hitDragging;
+ if (initialHit && finalHit && isHitsEqual(initialHit, finalHit)) {
+ let { context } = component;
+ let arg = Object.assign(Object.assign({}, buildDatePointApiWithContext(initialHit.dateSpan, context)), { dayEl: initialHit.dayEl, jsEvent: ev.origEvent, view: context.viewApi || context.calendarApi.view });
+ context.emitter.trigger('dateClick', arg);
+ }
+ }
+ };
+ // we DO want to watch pointer moves because otherwise finalHit won't get populated
+ this.dragging = new FeaturefulElementDragging(settings.el);
+ this.dragging.autoScroller.isEnabled = false;
+ let hitDragging = this.hitDragging = new HitDragging(this.dragging, (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bE)(settings));
+ hitDragging.emitter.on('pointerdown', this.handlePointerDown);
+ hitDragging.emitter.on('dragend', this.handleDragEnd);
+ }
+ destroy() {
+ this.dragging.destroy();
+ }
+}
+
+/*
+Tracks when the user selects a portion of time of a component,
+constituted by a drag over date cells, with a possible delay at the beginning of the drag.
+*/
+class DateSelecting extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.X {
+ constructor(settings) {
+ super(settings);
+ this.dragSelection = null;
+ this.handlePointerDown = (ev) => {
+ let { component, dragging } = this;
+ let { options } = component.context;
+ let canSelect = options.selectable &&
+ component.isValidDateDownEl(ev.origEvent.target);
+ // don't bother to watch expensive moves if component won't do selection
+ dragging.setIgnoreMove(!canSelect);
+ // if touch, require user to hold down
+ dragging.delay = ev.isTouch ? getComponentTouchDelay$1(component) : null;
+ };
+ this.handleDragStart = (ev) => {
+ this.component.context.calendarApi.unselect(ev); // unselect previous selections
+ };
+ this.handleHitUpdate = (hit, isFinal) => {
+ let { context } = this.component;
+ let dragSelection = null;
+ let isInvalid = false;
+ if (hit) {
+ let initialHit = this.hitDragging.initialHit;
+ let disallowed = hit.componentId === initialHit.componentId
+ && this.isHitComboAllowed
+ && !this.isHitComboAllowed(initialHit, hit);
+ if (!disallowed) {
+ dragSelection = joinHitsIntoSelection(initialHit, hit, context.pluginHooks.dateSelectionTransformers);
+ }
+ if (!dragSelection || !(0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bY)(dragSelection, hit.dateProfile, context)) {
+ isInvalid = true;
+ dragSelection = null;
+ }
+ }
+ if (dragSelection) {
+ context.dispatch({ type: 'SELECT_DATES', selection: dragSelection });
+ }
+ else if (!isFinal) { // only unselect if moved away while dragging
+ context.dispatch({ type: 'UNSELECT_DATES' });
+ }
+ if (!isInvalid) {
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.au)();
+ }
+ else {
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.av)();
+ }
+ if (!isFinal) {
+ this.dragSelection = dragSelection; // only clear if moved away from all hits while dragging
+ }
+ };
+ this.handlePointerUp = (pev) => {
+ if (this.dragSelection) {
+ // selection is already rendered, so just need to report selection
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cr)(this.dragSelection, pev, this.component.context);
+ this.dragSelection = null;
+ }
+ };
+ let { component } = settings;
+ let { options } = component.context;
+ let dragging = this.dragging = new FeaturefulElementDragging(settings.el);
+ dragging.touchScrollAllowed = false;
+ dragging.minDistance = options.selectMinDistance || 0;
+ dragging.autoScroller.isEnabled = options.dragScroll;
+ let hitDragging = this.hitDragging = new HitDragging(this.dragging, (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bE)(settings));
+ hitDragging.emitter.on('pointerdown', this.handlePointerDown);
+ hitDragging.emitter.on('dragstart', this.handleDragStart);
+ hitDragging.emitter.on('hitupdate', this.handleHitUpdate);
+ hitDragging.emitter.on('pointerup', this.handlePointerUp);
+ }
+ destroy() {
+ this.dragging.destroy();
+ }
+}
+function getComponentTouchDelay$1(component) {
+ let { options } = component.context;
+ let delay = options.selectLongPressDelay;
+ if (delay == null) {
+ delay = options.longPressDelay;
+ }
+ return delay;
+}
+function joinHitsIntoSelection(hit0, hit1, dateSelectionTransformers) {
+ let dateSpan0 = hit0.dateSpan;
+ let dateSpan1 = hit1.dateSpan;
+ let ms = [
+ dateSpan0.range.start,
+ dateSpan0.range.end,
+ dateSpan1.range.start,
+ dateSpan1.range.end,
+ ];
+ ms.sort(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.at);
+ let props = {};
+ for (let transformer of dateSelectionTransformers) {
+ let res = transformer(hit0, hit1);
+ if (res === false) {
+ return null;
+ }
+ if (res) {
+ Object.assign(props, res);
+ }
+ }
+ props.range = { start: ms[0], end: ms[3] };
+ props.allDay = dateSpan0.allDay;
+ return props;
+}
+
+class EventDragging extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.X {
+ constructor(settings) {
+ super(settings);
+ // internal state
+ this.subjectEl = null;
+ this.subjectSeg = null; // the seg being selected/dragged
+ this.isDragging = false;
+ this.eventRange = null;
+ this.relevantEvents = null; // the events being dragged
+ this.receivingContext = null;
+ this.validMutation = null;
+ this.mutatedRelevantEvents = null;
+ this.handlePointerDown = (ev) => {
+ let origTarget = ev.origEvent.target;
+ let { component, dragging } = this;
+ let { mirror } = dragging;
+ let { options } = component.context;
+ let initialContext = component.context;
+ this.subjectEl = ev.subjectEl;
+ let subjectSeg = this.subjectSeg = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.Y)(ev.subjectEl);
+ let eventRange = this.eventRange = subjectSeg.eventRange;
+ let eventInstanceId = eventRange.instance.instanceId;
+ this.relevantEvents = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.aT)(initialContext.getCurrentData().eventStore, eventInstanceId);
+ dragging.minDistance = ev.isTouch ? 0 : options.eventDragMinDistance;
+ dragging.delay =
+ // only do a touch delay if touch and this event hasn't been selected yet
+ (ev.isTouch && eventInstanceId !== component.props.eventSelection) ?
+ getComponentTouchDelay(component) :
+ null;
+ if (options.fixedMirrorParent) {
+ mirror.parentNode = options.fixedMirrorParent;
+ }
+ else {
+ mirror.parentNode = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.Z)(origTarget, '.fc');
+ }
+ mirror.revertDuration = options.dragRevertDuration;
+ let isValid = component.isValidSegDownEl(origTarget) &&
+ !(0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.Z)(origTarget, '.fc-event-resizer'); // NOT on a resizer
+ dragging.setIgnoreMove(!isValid);
+ // disable dragging for elements that are resizable (ie, selectable)
+ // but are not draggable
+ this.isDragging = isValid &&
+ ev.subjectEl.classList.contains('fc-event-draggable');
+ };
+ this.handleDragStart = (ev) => {
+ let initialContext = this.component.context;
+ let eventRange = this.eventRange;
+ let eventInstanceId = eventRange.instance.instanceId;
+ if (ev.isTouch) {
+ // need to select a different event?
+ if (eventInstanceId !== this.component.props.eventSelection) {
+ initialContext.dispatch({ type: 'SELECT_EVENT', eventInstanceId });
+ }
+ }
+ else {
+ // if now using mouse, but was previous touch interaction, clear selected event
+ initialContext.dispatch({ type: 'UNSELECT_EVENT' });
+ }
+ if (this.isDragging) {
+ initialContext.calendarApi.unselect(ev); // unselect *date* selection
+ initialContext.emitter.trigger('eventDragStart', {
+ el: this.subjectEl,
+ event: new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__._(initialContext, eventRange.def, eventRange.instance),
+ jsEvent: ev.origEvent,
+ view: initialContext.viewApi,
+ });
+ }
+ };
+ this.handleHitUpdate = (hit, isFinal) => {
+ if (!this.isDragging) {
+ return;
+ }
+ let relevantEvents = this.relevantEvents;
+ let initialHit = this.hitDragging.initialHit;
+ let initialContext = this.component.context;
+ // states based on new hit
+ let receivingContext = null;
+ let mutation = null;
+ let mutatedRelevantEvents = null;
+ let isInvalid = false;
+ let interaction = {
+ affectedEvents: relevantEvents,
+ mutatedEvents: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.H)(),
+ isEvent: true,
+ };
+ if (hit) {
+ receivingContext = hit.context;
+ let receivingOptions = receivingContext.options;
+ if (initialContext === receivingContext ||
+ (receivingOptions.editable && receivingOptions.droppable)) {
+ mutation = computeEventMutation(initialHit, hit, this.eventRange.instance.range.start, receivingContext.getCurrentData().pluginHooks.eventDragMutationMassagers);
+ if (mutation) {
+ mutatedRelevantEvents = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bV)(relevantEvents, receivingContext.getCurrentData().eventUiBases, mutation, receivingContext);
+ interaction.mutatedEvents = mutatedRelevantEvents;
+ if (!(0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bX)(interaction, hit.dateProfile, receivingContext)) {
+ isInvalid = true;
+ mutation = null;
+ mutatedRelevantEvents = null;
+ interaction.mutatedEvents = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.H)();
+ }
+ }
+ }
+ else {
+ receivingContext = null;
+ }
+ }
+ this.displayDrag(receivingContext, interaction);
+ if (!isInvalid) {
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.au)();
+ }
+ else {
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.av)();
+ }
+ if (!isFinal) {
+ if (initialContext === receivingContext && // TODO: write test for this
+ isHitsEqual(initialHit, hit)) {
+ mutation = null;
+ }
+ this.dragging.setMirrorNeedsRevert(!mutation);
+ // render the mirror if no already-rendered mirror
+ // TODO: wish we could somehow wait for dispatch to guarantee render
+ this.dragging.setMirrorIsVisible(!hit || !this.subjectEl.getRootNode().querySelector('.fc-event-mirror'));
+ // assign states based on new hit
+ this.receivingContext = receivingContext;
+ this.validMutation = mutation;
+ this.mutatedRelevantEvents = mutatedRelevantEvents;
+ }
+ };
+ this.handlePointerUp = () => {
+ if (!this.isDragging) {
+ this.cleanup(); // because handleDragEnd won't fire
+ }
+ };
+ this.handleDragEnd = (ev) => {
+ if (this.isDragging) {
+ let initialContext = this.component.context;
+ let initialView = initialContext.viewApi;
+ let { receivingContext, validMutation } = this;
+ let eventDef = this.eventRange.def;
+ let eventInstance = this.eventRange.instance;
+ let eventApi = new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__._(initialContext, eventDef, eventInstance);
+ let relevantEvents = this.relevantEvents;
+ let mutatedRelevantEvents = this.mutatedRelevantEvents;
+ let { finalHit } = this.hitDragging;
+ this.clearDrag(); // must happen after revert animation
+ initialContext.emitter.trigger('eventDragStop', {
+ el: this.subjectEl,
+ event: eventApi,
+ jsEvent: ev.origEvent,
+ view: initialView,
+ });
+ if (validMutation) {
+ // dropped within same calendar
+ if (receivingContext === initialContext) {
+ let updatedEventApi = new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__._(initialContext, mutatedRelevantEvents.defs[eventDef.defId], eventInstance ? mutatedRelevantEvents.instances[eventInstance.instanceId] : null);
+ initialContext.dispatch({
+ type: 'MERGE_EVENTS',
+ eventStore: mutatedRelevantEvents,
+ });
+ let eventChangeArg = {
+ oldEvent: eventApi,
+ event: updatedEventApi,
+ relatedEvents: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.w)(mutatedRelevantEvents, initialContext, eventInstance),
+ revert() {
+ initialContext.dispatch({
+ type: 'MERGE_EVENTS',
+ eventStore: relevantEvents, // the pre-change data
+ });
+ },
+ };
+ let transformed = {};
+ for (let transformer of initialContext.getCurrentData().pluginHooks.eventDropTransformers) {
+ Object.assign(transformed, transformer(validMutation, initialContext));
+ }
+ initialContext.emitter.trigger('eventDrop', Object.assign(Object.assign(Object.assign({}, eventChangeArg), transformed), { el: ev.subjectEl, delta: validMutation.datesDelta, jsEvent: ev.origEvent, view: initialView }));
+ initialContext.emitter.trigger('eventChange', eventChangeArg);
+ // dropped in different calendar
+ }
+ else if (receivingContext) {
+ let eventRemoveArg = {
+ event: eventApi,
+ relatedEvents: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.w)(relevantEvents, initialContext, eventInstance),
+ revert() {
+ initialContext.dispatch({
+ type: 'MERGE_EVENTS',
+ eventStore: relevantEvents,
+ });
+ },
+ };
+ initialContext.emitter.trigger('eventLeave', Object.assign(Object.assign({}, eventRemoveArg), { draggedEl: ev.subjectEl, view: initialView }));
+ initialContext.dispatch({
+ type: 'REMOVE_EVENTS',
+ eventStore: relevantEvents,
+ });
+ initialContext.emitter.trigger('eventRemove', eventRemoveArg);
+ let addedEventDef = mutatedRelevantEvents.defs[eventDef.defId];
+ let addedEventInstance = mutatedRelevantEvents.instances[eventInstance.instanceId];
+ let addedEventApi = new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__._(receivingContext, addedEventDef, addedEventInstance);
+ receivingContext.dispatch({
+ type: 'MERGE_EVENTS',
+ eventStore: mutatedRelevantEvents,
+ });
+ let eventAddArg = {
+ event: addedEventApi,
+ relatedEvents: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.w)(mutatedRelevantEvents, receivingContext, addedEventInstance),
+ revert() {
+ receivingContext.dispatch({
+ type: 'REMOVE_EVENTS',
+ eventStore: mutatedRelevantEvents,
+ });
+ },
+ };
+ receivingContext.emitter.trigger('eventAdd', eventAddArg);
+ if (ev.isTouch) {
+ receivingContext.dispatch({
+ type: 'SELECT_EVENT',
+ eventInstanceId: eventInstance.instanceId,
+ });
+ }
+ receivingContext.emitter.trigger('drop', Object.assign(Object.assign({}, buildDatePointApiWithContext(finalHit.dateSpan, receivingContext)), { draggedEl: ev.subjectEl, jsEvent: ev.origEvent, view: finalHit.context.viewApi }));
+ receivingContext.emitter.trigger('eventReceive', Object.assign(Object.assign({}, eventAddArg), { draggedEl: ev.subjectEl, view: finalHit.context.viewApi }));
+ }
+ }
+ else {
+ initialContext.emitter.trigger('_noEventDrop');
+ }
+ }
+ this.cleanup();
+ };
+ let { component } = this;
+ let { options } = component.context;
+ let dragging = this.dragging = new FeaturefulElementDragging(settings.el);
+ dragging.pointer.selector = EventDragging.SELECTOR;
+ dragging.touchScrollAllowed = false;
+ dragging.autoScroller.isEnabled = options.dragScroll;
+ let hitDragging = this.hitDragging = new HitDragging(this.dragging, _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.a5);
+ hitDragging.useSubjectCenter = settings.useEventCenter;
+ hitDragging.emitter.on('pointerdown', this.handlePointerDown);
+ hitDragging.emitter.on('dragstart', this.handleDragStart);
+ hitDragging.emitter.on('hitupdate', this.handleHitUpdate);
+ hitDragging.emitter.on('pointerup', this.handlePointerUp);
+ hitDragging.emitter.on('dragend', this.handleDragEnd);
+ }
+ destroy() {
+ this.dragging.destroy();
+ }
+ // render a drag state on the next receivingCalendar
+ displayDrag(nextContext, state) {
+ let initialContext = this.component.context;
+ let prevContext = this.receivingContext;
+ // does the previous calendar need to be cleared?
+ if (prevContext && prevContext !== nextContext) {
+ // does the initial calendar need to be cleared?
+ // if so, don't clear all the way. we still need to to hide the affectedEvents
+ if (prevContext === initialContext) {
+ prevContext.dispatch({
+ type: 'SET_EVENT_DRAG',
+ state: {
+ affectedEvents: state.affectedEvents,
+ mutatedEvents: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.H)(),
+ isEvent: true,
+ },
+ });
+ // completely clear the old calendar if it wasn't the initial
+ }
+ else {
+ prevContext.dispatch({ type: 'UNSET_EVENT_DRAG' });
+ }
+ }
+ if (nextContext) {
+ nextContext.dispatch({ type: 'SET_EVENT_DRAG', state });
+ }
+ }
+ clearDrag() {
+ let initialCalendar = this.component.context;
+ let { receivingContext } = this;
+ if (receivingContext) {
+ receivingContext.dispatch({ type: 'UNSET_EVENT_DRAG' });
+ }
+ // the initial calendar might have an dummy drag state from displayDrag
+ if (initialCalendar !== receivingContext) {
+ initialCalendar.dispatch({ type: 'UNSET_EVENT_DRAG' });
+ }
+ }
+ cleanup() {
+ this.subjectSeg = null;
+ this.isDragging = false;
+ this.eventRange = null;
+ this.relevantEvents = null;
+ this.receivingContext = null;
+ this.validMutation = null;
+ this.mutatedRelevantEvents = null;
+ }
+}
+// TODO: test this in IE11
+// QUESTION: why do we need it on the resizable???
+EventDragging.SELECTOR = '.fc-event-draggable, .fc-event-resizable';
+function computeEventMutation(hit0, hit1, eventInstanceStart, massagers) {
+ let dateSpan0 = hit0.dateSpan;
+ let dateSpan1 = hit1.dateSpan;
+ let date0 = dateSpan0.range.start;
+ let date1 = dateSpan1.range.start;
+ let standardProps = {};
+ if (dateSpan0.allDay !== dateSpan1.allDay) {
+ standardProps.allDay = dateSpan1.allDay;
+ standardProps.hasEnd = hit1.context.options.allDayMaintainDuration;
+ if (dateSpan1.allDay) {
+ // means date1 is already start-of-day,
+ // but date0 needs to be converted
+ date0 = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.q)(eventInstanceStart);
+ }
+ else {
+ // Moving from allDate->timed
+ // Doesn't matter where on the event the drag began, mutate the event's start-date to date1
+ date0 = eventInstanceStart;
+ }
+ }
+ let delta = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ay)(date0, date1, hit0.context.dateEnv, hit0.componentId === hit1.componentId ?
+ hit0.largeUnit :
+ null);
+ if (delta.milliseconds) { // has hours/minutes/seconds
+ standardProps.allDay = false;
+ }
+ let mutation = {
+ datesDelta: delta,
+ standardProps,
+ };
+ for (let massager of massagers) {
+ massager(mutation, hit0, hit1);
+ }
+ return mutation;
+}
+function getComponentTouchDelay(component) {
+ let { options } = component.context;
+ let delay = options.eventLongPressDelay;
+ if (delay == null) {
+ delay = options.longPressDelay;
+ }
+ return delay;
+}
+
+class EventResizing extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.X {
+ constructor(settings) {
+ super(settings);
+ // internal state
+ this.draggingSegEl = null;
+ this.draggingSeg = null; // TODO: rename to resizingSeg? subjectSeg?
+ this.eventRange = null;
+ this.relevantEvents = null;
+ this.validMutation = null;
+ this.mutatedRelevantEvents = null;
+ this.handlePointerDown = (ev) => {
+ let { component } = this;
+ let segEl = this.querySegEl(ev);
+ let seg = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.Y)(segEl);
+ let eventRange = this.eventRange = seg.eventRange;
+ this.dragging.minDistance = component.context.options.eventDragMinDistance;
+ // if touch, need to be working with a selected event
+ this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(ev.origEvent.target) ||
+ (ev.isTouch && this.component.props.eventSelection !== eventRange.instance.instanceId));
+ };
+ this.handleDragStart = (ev) => {
+ let { context } = this.component;
+ let eventRange = this.eventRange;
+ this.relevantEvents = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.aT)(context.getCurrentData().eventStore, this.eventRange.instance.instanceId);
+ let segEl = this.querySegEl(ev);
+ this.draggingSegEl = segEl;
+ this.draggingSeg = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.Y)(segEl);
+ context.calendarApi.unselect();
+ context.emitter.trigger('eventResizeStart', {
+ el: segEl,
+ event: new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__._(context, eventRange.def, eventRange.instance),
+ jsEvent: ev.origEvent,
+ view: context.viewApi,
+ });
+ };
+ this.handleHitUpdate = (hit, isFinal, ev) => {
+ let { context } = this.component;
+ let relevantEvents = this.relevantEvents;
+ let initialHit = this.hitDragging.initialHit;
+ let eventInstance = this.eventRange.instance;
+ let mutation = null;
+ let mutatedRelevantEvents = null;
+ let isInvalid = false;
+ let interaction = {
+ affectedEvents: relevantEvents,
+ mutatedEvents: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.H)(),
+ isEvent: true,
+ };
+ if (hit) {
+ let disallowed = hit.componentId === initialHit.componentId
+ && this.isHitComboAllowed
+ && !this.isHitComboAllowed(initialHit, hit);
+ if (!disallowed) {
+ mutation = computeMutation(initialHit, hit, ev.subjectEl.classList.contains('fc-event-resizer-start'), eventInstance.range);
+ }
+ }
+ if (mutation) {
+ mutatedRelevantEvents = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bV)(relevantEvents, context.getCurrentData().eventUiBases, mutation, context);
+ interaction.mutatedEvents = mutatedRelevantEvents;
+ if (!(0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bX)(interaction, hit.dateProfile, context)) {
+ isInvalid = true;
+ mutation = null;
+ mutatedRelevantEvents = null;
+ interaction.mutatedEvents = null;
+ }
+ }
+ if (mutatedRelevantEvents) {
+ context.dispatch({
+ type: 'SET_EVENT_RESIZE',
+ state: interaction,
+ });
+ }
+ else {
+ context.dispatch({ type: 'UNSET_EVENT_RESIZE' });
+ }
+ if (!isInvalid) {
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.au)();
+ }
+ else {
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.av)();
+ }
+ if (!isFinal) {
+ if (mutation && isHitsEqual(initialHit, hit)) {
+ mutation = null;
+ }
+ this.validMutation = mutation;
+ this.mutatedRelevantEvents = mutatedRelevantEvents;
+ }
+ };
+ this.handleDragEnd = (ev) => {
+ let { context } = this.component;
+ let eventDef = this.eventRange.def;
+ let eventInstance = this.eventRange.instance;
+ let eventApi = new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__._(context, eventDef, eventInstance);
+ let relevantEvents = this.relevantEvents;
+ let mutatedRelevantEvents = this.mutatedRelevantEvents;
+ context.emitter.trigger('eventResizeStop', {
+ el: this.draggingSegEl,
+ event: eventApi,
+ jsEvent: ev.origEvent,
+ view: context.viewApi,
+ });
+ if (this.validMutation) {
+ let updatedEventApi = new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__._(context, mutatedRelevantEvents.defs[eventDef.defId], eventInstance ? mutatedRelevantEvents.instances[eventInstance.instanceId] : null);
+ context.dispatch({
+ type: 'MERGE_EVENTS',
+ eventStore: mutatedRelevantEvents,
+ });
+ let eventChangeArg = {
+ oldEvent: eventApi,
+ event: updatedEventApi,
+ relatedEvents: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.w)(mutatedRelevantEvents, context, eventInstance),
+ revert() {
+ context.dispatch({
+ type: 'MERGE_EVENTS',
+ eventStore: relevantEvents, // the pre-change events
+ });
+ },
+ };
+ context.emitter.trigger('eventResize', Object.assign(Object.assign({}, eventChangeArg), { el: this.draggingSegEl, startDelta: this.validMutation.startDelta || (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.d)(0), endDelta: this.validMutation.endDelta || (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.d)(0), jsEvent: ev.origEvent, view: context.viewApi }));
+ context.emitter.trigger('eventChange', eventChangeArg);
+ }
+ else {
+ context.emitter.trigger('_noEventResize');
+ }
+ // reset all internal state
+ this.draggingSeg = null;
+ this.relevantEvents = null;
+ this.validMutation = null;
+ // okay to keep eventInstance around. useful to set it in handlePointerDown
+ };
+ let { component } = settings;
+ let dragging = this.dragging = new FeaturefulElementDragging(settings.el);
+ dragging.pointer.selector = '.fc-event-resizer';
+ dragging.touchScrollAllowed = false;
+ dragging.autoScroller.isEnabled = component.context.options.dragScroll;
+ let hitDragging = this.hitDragging = new HitDragging(this.dragging, (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bE)(settings));
+ hitDragging.emitter.on('pointerdown', this.handlePointerDown);
+ hitDragging.emitter.on('dragstart', this.handleDragStart);
+ hitDragging.emitter.on('hitupdate', this.handleHitUpdate);
+ hitDragging.emitter.on('dragend', this.handleDragEnd);
+ }
+ destroy() {
+ this.dragging.destroy();
+ }
+ querySegEl(ev) {
+ return (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.Z)(ev.subjectEl, '.fc-event');
+ }
+}
+function computeMutation(hit0, hit1, isFromStart, instanceRange) {
+ let dateEnv = hit0.context.dateEnv;
+ let date0 = hit0.dateSpan.range.start;
+ let date1 = hit1.dateSpan.range.start;
+ let delta = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ay)(date0, date1, dateEnv, hit0.largeUnit);
+ if (isFromStart) {
+ if (dateEnv.add(instanceRange.start, delta) < instanceRange.end) {
+ return { startDelta: delta };
+ }
+ }
+ else if (dateEnv.add(instanceRange.end, delta) > instanceRange.start) {
+ return { endDelta: delta };
+ }
+ return null;
+}
+
+class UnselectAuto {
+ constructor(context) {
+ this.context = context;
+ this.isRecentPointerDateSelect = false; // wish we could use a selector to detect date selection, but uses hit system
+ this.matchesCancel = false;
+ this.matchesEvent = false;
+ this.onSelect = (selectInfo) => {
+ if (selectInfo.jsEvent) {
+ this.isRecentPointerDateSelect = true;
+ }
+ };
+ this.onDocumentPointerDown = (pev) => {
+ let unselectCancel = this.context.options.unselectCancel;
+ let downEl = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.aP)(pev.origEvent);
+ this.matchesCancel = !!(0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.Z)(downEl, unselectCancel);
+ this.matchesEvent = !!(0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.Z)(downEl, EventDragging.SELECTOR); // interaction started on an event?
+ };
+ this.onDocumentPointerUp = (pev) => {
+ let { context } = this;
+ let { documentPointer } = this;
+ let calendarState = context.getCurrentData();
+ // touch-scrolling should never unfocus any type of selection
+ if (!documentPointer.wasTouchScroll) {
+ if (calendarState.dateSelection && // an existing date selection?
+ !this.isRecentPointerDateSelect // a new pointer-initiated date selection since last onDocumentPointerUp?
+ ) {
+ let unselectAuto = context.options.unselectAuto;
+ if (unselectAuto && (!unselectAuto || !this.matchesCancel)) {
+ context.calendarApi.unselect(pev);
+ }
+ }
+ if (calendarState.eventSelection && // an existing event selected?
+ !this.matchesEvent // interaction DIDN'T start on an event
+ ) {
+ context.dispatch({ type: 'UNSELECT_EVENT' });
+ }
+ }
+ this.isRecentPointerDateSelect = false;
+ };
+ let documentPointer = this.documentPointer = new PointerDragging(document);
+ documentPointer.shouldIgnoreMove = true;
+ documentPointer.shouldWatchScroll = false;
+ documentPointer.emitter.on('pointerdown', this.onDocumentPointerDown);
+ documentPointer.emitter.on('pointerup', this.onDocumentPointerUp);
+ /*
+ TODO: better way to know about whether there was a selection with the pointer
+ */
+ context.emitter.on('select', this.onSelect);
+ }
+ destroy() {
+ this.context.emitter.off('select', this.onSelect);
+ this.documentPointer.destroy();
+ }
+}
+
+const OPTION_REFINERS = {
+ fixedMirrorParent: _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.n,
+};
+const LISTENER_REFINERS = {
+ dateClick: _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.n,
+ eventDragStart: _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.n,
+ eventDragStop: _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.n,
+ eventDrop: _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.n,
+ eventResizeStart: _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.n,
+ eventResizeStop: _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.n,
+ eventResize: _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.n,
+ drop: _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.n,
+ eventReceive: _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.n,
+ eventLeave: _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.n,
+};
+
+/*
+Given an already instantiated draggable object for one-or-more elements,
+Interprets any dragging as an attempt to drag an events that lives outside
+of a calendar onto a calendar.
+*/
+class ExternalElementDragging {
+ constructor(dragging, suppliedDragMeta) {
+ this.receivingContext = null;
+ this.droppableEvent = null; // will exist for all drags, even if create:false
+ this.suppliedDragMeta = null;
+ this.dragMeta = null;
+ this.handleDragStart = (ev) => {
+ this.dragMeta = this.buildDragMeta(ev.subjectEl);
+ };
+ this.handleHitUpdate = (hit, isFinal, ev) => {
+ let { dragging } = this.hitDragging;
+ let receivingContext = null;
+ let droppableEvent = null;
+ let isInvalid = false;
+ let interaction = {
+ affectedEvents: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.H)(),
+ mutatedEvents: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.H)(),
+ isEvent: this.dragMeta.create,
+ };
+ if (hit) {
+ receivingContext = hit.context;
+ if (this.canDropElOnCalendar(ev.subjectEl, receivingContext)) {
+ droppableEvent = computeEventForDateSpan(hit.dateSpan, this.dragMeta, receivingContext);
+ interaction.mutatedEvents = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.aU)(droppableEvent);
+ isInvalid = !(0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bX)(interaction, hit.dateProfile, receivingContext);
+ if (isInvalid) {
+ interaction.mutatedEvents = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.H)();
+ droppableEvent = null;
+ }
+ }
+ }
+ this.displayDrag(receivingContext, interaction);
+ // show mirror if no already-rendered mirror element OR if we are shutting down the mirror (?)
+ // TODO: wish we could somehow wait for dispatch to guarantee render
+ dragging.setMirrorIsVisible(isFinal || !droppableEvent || !document.querySelector('.fc-event-mirror'));
+ if (!isInvalid) {
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.au)();
+ }
+ else {
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.av)();
+ }
+ if (!isFinal) {
+ dragging.setMirrorNeedsRevert(!droppableEvent);
+ this.receivingContext = receivingContext;
+ this.droppableEvent = droppableEvent;
+ }
+ };
+ this.handleDragEnd = (pev) => {
+ let { receivingContext, droppableEvent } = this;
+ this.clearDrag();
+ if (receivingContext && droppableEvent) {
+ let finalHit = this.hitDragging.finalHit;
+ let finalView = finalHit.context.viewApi;
+ let dragMeta = this.dragMeta;
+ receivingContext.emitter.trigger('drop', Object.assign(Object.assign({}, buildDatePointApiWithContext(finalHit.dateSpan, receivingContext)), { draggedEl: pev.subjectEl, jsEvent: pev.origEvent, view: finalView }));
+ if (dragMeta.create) {
+ let addingEvents = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.aU)(droppableEvent);
+ receivingContext.dispatch({
+ type: 'MERGE_EVENTS',
+ eventStore: addingEvents,
+ });
+ if (pev.isTouch) {
+ receivingContext.dispatch({
+ type: 'SELECT_EVENT',
+ eventInstanceId: droppableEvent.instance.instanceId,
+ });
+ }
+ // signal that an external event landed
+ receivingContext.emitter.trigger('eventReceive', {
+ event: new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__._(receivingContext, droppableEvent.def, droppableEvent.instance),
+ relatedEvents: [],
+ revert() {
+ receivingContext.dispatch({
+ type: 'REMOVE_EVENTS',
+ eventStore: addingEvents,
+ });
+ },
+ draggedEl: pev.subjectEl,
+ view: finalView,
+ });
+ }
+ }
+ this.receivingContext = null;
+ this.droppableEvent = null;
+ };
+ let hitDragging = this.hitDragging = new HitDragging(dragging, _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.a5);
+ hitDragging.requireInitial = false; // will start outside of a component
+ hitDragging.emitter.on('dragstart', this.handleDragStart);
+ hitDragging.emitter.on('hitupdate', this.handleHitUpdate);
+ hitDragging.emitter.on('dragend', this.handleDragEnd);
+ this.suppliedDragMeta = suppliedDragMeta;
+ }
+ buildDragMeta(subjectEl) {
+ if (typeof this.suppliedDragMeta === 'object') {
+ return (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bH)(this.suppliedDragMeta);
+ }
+ if (typeof this.suppliedDragMeta === 'function') {
+ return (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bH)(this.suppliedDragMeta(subjectEl));
+ }
+ return getDragMetaFromEl(subjectEl);
+ }
+ displayDrag(nextContext, state) {
+ let prevContext = this.receivingContext;
+ if (prevContext && prevContext !== nextContext) {
+ prevContext.dispatch({ type: 'UNSET_EVENT_DRAG' });
+ }
+ if (nextContext) {
+ nextContext.dispatch({ type: 'SET_EVENT_DRAG', state });
+ }
+ }
+ clearDrag() {
+ if (this.receivingContext) {
+ this.receivingContext.dispatch({ type: 'UNSET_EVENT_DRAG' });
+ }
+ }
+ canDropElOnCalendar(el, receivingContext) {
+ let dropAccept = receivingContext.options.dropAccept;
+ if (typeof dropAccept === 'function') {
+ return dropAccept.call(receivingContext.calendarApi, el);
+ }
+ if (typeof dropAccept === 'string' && dropAccept) {
+ return Boolean((0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.aO)(el, dropAccept));
+ }
+ return true;
+ }
+}
+// Utils for computing event store from the DragMeta
+// ----------------------------------------------------------------------------------------------------
+function computeEventForDateSpan(dateSpan, dragMeta, context) {
+ let defProps = Object.assign({}, dragMeta.leftoverProps);
+ for (let transform of context.pluginHooks.externalDefTransforms) {
+ Object.assign(defProps, transform(dateSpan, dragMeta));
+ }
+ let { refined, extra } = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.aj)(defProps, context);
+ let def = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ai)(refined, extra, dragMeta.sourceId, dateSpan.allDay, context.options.forceEventDuration || Boolean(dragMeta.duration), // hasEnd
+ context);
+ let start = dateSpan.range.start;
+ // only rely on time info if drop zone is all-day,
+ // otherwise, we already know the time
+ if (dateSpan.allDay && dragMeta.startTime) {
+ start = context.dateEnv.add(start, dragMeta.startTime);
+ }
+ let end = dragMeta.duration ?
+ context.dateEnv.add(start, dragMeta.duration) :
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cs)(dateSpan.allDay, start, context);
+ let instance = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ah)(def.defId, { start, end });
+ return { def, instance };
+}
+// Utils for extracting data from element
+// ----------------------------------------------------------------------------------------------------
+function getDragMetaFromEl(el) {
+ let str = getEmbeddedElData(el, 'event');
+ let obj = str ?
+ JSON.parse(str) :
+ { create: false }; // if no embedded data, assume no event creation
+ return (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bH)(obj);
+}
+_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bG.dataAttrPrefix = '';
+function getEmbeddedElData(el, name) {
+ let prefix = _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bG.dataAttrPrefix;
+ let prefixedName = (prefix ? prefix + '-' : '') + name;
+ return el.getAttribute('data-' + prefixedName) || '';
+}
+
+/*
+Makes an element (that is *external* to any calendar) draggable.
+Can pass in data that determines how an event will be created when dropped onto a calendar.
+Leverages FullCalendar's internal drag-n-drop functionality WITHOUT a third-party drag system.
+*/
+class ExternalDraggable {
+ constructor(el, settings = {}) {
+ this.handlePointerDown = (ev) => {
+ let { dragging } = this;
+ let { minDistance, longPressDelay } = this.settings;
+ dragging.minDistance =
+ minDistance != null ?
+ minDistance :
+ (ev.isTouch ? 0 : _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.e.eventDragMinDistance);
+ dragging.delay =
+ ev.isTouch ? // TODO: eventually read eventLongPressDelay instead vvv
+ (longPressDelay != null ? longPressDelay : _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.e.longPressDelay) :
+ 0;
+ };
+ this.handleDragStart = (ev) => {
+ if (ev.isTouch &&
+ this.dragging.delay &&
+ ev.subjectEl.classList.contains('fc-event')) {
+ this.dragging.mirror.getMirrorEl().classList.add('fc-event-selected');
+ }
+ };
+ this.settings = settings;
+ let dragging = this.dragging = new FeaturefulElementDragging(el);
+ dragging.touchScrollAllowed = false;
+ if (settings.itemSelector != null) {
+ dragging.pointer.selector = settings.itemSelector;
+ }
+ if (settings.appendTo != null) {
+ dragging.mirror.parentNode = settings.appendTo; // TODO: write tests
+ }
+ dragging.emitter.on('pointerdown', this.handlePointerDown);
+ dragging.emitter.on('dragstart', this.handleDragStart);
+ new ExternalElementDragging(dragging, settings.eventData); // eslint-disable-line no-new
+ }
+ destroy() {
+ this.dragging.destroy();
+ }
+}
+
+/*
+Detects when a *THIRD-PARTY* drag-n-drop system interacts with elements.
+The third-party system is responsible for drawing the visuals effects of the drag.
+This class simply monitors for pointer movements and fires events.
+It also has the ability to hide the moving element (the "mirror") during the drag.
+*/
+class InferredElementDragging extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bF {
+ constructor(containerEl) {
+ super(containerEl);
+ this.shouldIgnoreMove = false;
+ this.mirrorSelector = '';
+ this.currentMirrorEl = null;
+ this.handlePointerDown = (ev) => {
+ this.emitter.trigger('pointerdown', ev);
+ if (!this.shouldIgnoreMove) {
+ // fire dragstart right away. does not support delay or min-distance
+ this.emitter.trigger('dragstart', ev);
+ }
+ };
+ this.handlePointerMove = (ev) => {
+ if (!this.shouldIgnoreMove) {
+ this.emitter.trigger('dragmove', ev);
+ }
+ };
+ this.handlePointerUp = (ev) => {
+ this.emitter.trigger('pointerup', ev);
+ if (!this.shouldIgnoreMove) {
+ // fire dragend right away. does not support a revert animation
+ this.emitter.trigger('dragend', ev);
+ }
+ };
+ let pointer = this.pointer = new PointerDragging(containerEl);
+ pointer.emitter.on('pointerdown', this.handlePointerDown);
+ pointer.emitter.on('pointermove', this.handlePointerMove);
+ pointer.emitter.on('pointerup', this.handlePointerUp);
+ }
+ destroy() {
+ this.pointer.destroy();
+ }
+ setIgnoreMove(bool) {
+ this.shouldIgnoreMove = bool;
+ }
+ setMirrorIsVisible(bool) {
+ if (bool) {
+ // restore a previously hidden element.
+ // use the reference in case the selector class has already been removed.
+ if (this.currentMirrorEl) {
+ this.currentMirrorEl.style.visibility = '';
+ this.currentMirrorEl = null;
+ }
+ }
+ else {
+ let mirrorEl = this.mirrorSelector
+ // TODO: somehow query FullCalendars WITHIN shadow-roots
+ ? document.querySelector(this.mirrorSelector)
+ : null;
+ if (mirrorEl) {
+ this.currentMirrorEl = mirrorEl;
+ mirrorEl.style.visibility = 'hidden';
+ }
+ }
+ }
+}
+
+/*
+Bridges third-party drag-n-drop systems with FullCalendar.
+Must be instantiated and destroyed by caller.
+*/
+class ThirdPartyDraggable {
+ constructor(containerOrSettings, settings) {
+ let containerEl = document;
+ if (
+ // wish we could just test instanceof EventTarget, but doesn't work in IE11
+ containerOrSettings === document ||
+ containerOrSettings instanceof Element) {
+ containerEl = containerOrSettings;
+ settings = settings || {};
+ }
+ else {
+ settings = (containerOrSettings || {});
+ }
+ let dragging = this.dragging = new InferredElementDragging(containerEl);
+ if (typeof settings.itemSelector === 'string') {
+ dragging.pointer.selector = settings.itemSelector;
+ }
+ else if (containerEl === document) {
+ dragging.pointer.selector = '[data-event]';
+ }
+ if (typeof settings.mirrorSelector === 'string') {
+ dragging.mirrorSelector = settings.mirrorSelector;
+ }
+ let externalDragging = new ExternalElementDragging(dragging, settings.eventData);
+ // The hit-detection system requires that the dnd-mirror-element be pointer-events:none,
+ // but this can't be guaranteed for third-party draggables, so disable
+ externalDragging.hitDragging.disablePointCheck = true;
+ }
+ destroy() {
+ this.dragging.destroy();
+ }
+}
+
+var index = (0,_fullcalendar_core_index_js__WEBPACK_IMPORTED_MODULE_1__.createPlugin)({
+ name: '@fullcalendar/interaction',
+ componentInteractions: [DateClicking, DateSelecting, EventDragging, EventResizing],
+ calendarInteractions: [UnselectAuto],
+ elementDraggingImpl: FeaturefulElementDragging,
+ optionRefiners: OPTION_REFINERS,
+ listenerRefiners: LISTENER_REFINERS,
+});
+
+
+
+
+/***/ }),
+
+/***/ "./node_modules/@fullcalendar/list/index.js":
+/*!**************************************************!*\
+ !*** ./node_modules/@fullcalendar/list/index.js ***!
+ \**************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ index)
+/* harmony export */ });
+/* harmony import */ var _fullcalendar_core_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fullcalendar/core/index.js */ "./node_modules/@fullcalendar/core/index.js");
+/* harmony import */ var _internal_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./internal.js */ "./node_modules/@fullcalendar/list/internal.js");
+/* harmony import */ var _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fullcalendar/core/internal.js */ "./node_modules/@fullcalendar/core/internal-common.js");
+
+
+
+
+
+const OPTION_REFINERS = {
+ listDayFormat: createFalsableFormatter,
+ listDaySideFormat: createFalsableFormatter,
+ noEventsClassNames: _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.n,
+ noEventsContent: _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.n,
+ noEventsDidMount: _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.n,
+ noEventsWillUnmount: _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.n,
+ // noEventsText is defined in base options
+};
+function createFalsableFormatter(input) {
+ return input === false ? null : (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.x)(input);
+}
+
+var index = (0,_fullcalendar_core_index_js__WEBPACK_IMPORTED_MODULE_1__.createPlugin)({
+ name: '@fullcalendar/list',
+ optionRefiners: OPTION_REFINERS,
+ views: {
+ list: {
+ component: _internal_js__WEBPACK_IMPORTED_MODULE_2__.ListView,
+ buttonTextKey: 'list',
+ listDayFormat: { month: 'long', day: 'numeric', year: 'numeric' }, // like "January 1, 2016"
+ },
+ listDay: {
+ type: 'list',
+ duration: { days: 1 },
+ listDayFormat: { weekday: 'long' }, // day-of-week is all we need. full date is probably in headerToolbar
+ },
+ listWeek: {
+ type: 'list',
+ duration: { weeks: 1 },
+ listDayFormat: { weekday: 'long' },
+ listDaySideFormat: { month: 'long', day: 'numeric', year: 'numeric' },
+ },
+ listMonth: {
+ type: 'list',
+ duration: { month: 1 },
+ listDaySideFormat: { weekday: 'long' }, // day-of-week is nice-to-have
+ },
+ listYear: {
+ type: 'list',
+ duration: { year: 1 },
+ listDaySideFormat: { weekday: 'long' }, // day-of-week is nice-to-have
+ },
+ },
+});
+
+
+
+
+/***/ }),
+
+/***/ "./node_modules/@fullcalendar/list/internal.js":
+/*!*****************************************************!*\
+ !*** ./node_modules/@fullcalendar/list/internal.js ***!
+ \*****************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ ListView: () => (/* binding */ ListView)
+/* harmony export */ });
+/* harmony import */ var _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fullcalendar/core/internal.js */ "./node_modules/@fullcalendar/core/internal-common.js");
+/* harmony import */ var _fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fullcalendar/core/preact.js */ "./node_modules/preact/dist/preact.module.js");
+
+
+
+class ListViewHeaderRow extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.B {
+ constructor() {
+ super(...arguments);
+ this.state = {
+ textId: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.a3)(),
+ };
+ }
+ render() {
+ let { theme, dateEnv, options, viewApi } = this.context;
+ let { cellId, dayDate, todayRange } = this.props;
+ let { textId } = this.state;
+ let dayMeta = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.aY)(dayDate, todayRange);
+ // will ever be falsy?
+ let text = options.listDayFormat ? dateEnv.format(dayDate, options.listDayFormat) : '';
+ // will ever be falsy? also, BAD NAME "alt"
+ let sideText = options.listDaySideFormat ? dateEnv.format(dayDate, options.listDaySideFormat) : '';
+ let renderProps = Object.assign({ date: dateEnv.toDate(dayDate), view: viewApi, textId,
+ text,
+ sideText, navLinkAttrs: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.a_)(this.context, dayDate), sideNavLinkAttrs: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.a_)(this.context, dayDate, 'day', false) }, dayMeta);
+ // TODO: make a reusable HOC for dayHeader (used in daygrid/timegrid too)
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.C, { elTag: "tr", elClasses: [
+ 'fc-list-day',
+ ...(0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.aX)(dayMeta, theme),
+ ], elAttrs: {
+ 'data-date': (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bt)(dayDate),
+ }, renderProps: renderProps, generatorName: "dayHeaderContent", customGenerator: options.dayHeaderContent, defaultGenerator: renderInnerContent, classNameGenerator: options.dayHeaderClassNames, didMount: options.dayHeaderDidMount, willUnmount: options.dayHeaderWillUnmount }, (InnerContent) => ( // TODO: force-hide top border based on :first-child
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("th", { scope: "colgroup", colSpan: 3, id: cellId, "aria-labelledby": textId },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(InnerContent, { elTag: "div", elClasses: [
+ 'fc-list-day-cushion',
+ theme.getClass('tableCellShaded'),
+ ] })))));
+ }
+}
+function renderInnerContent(props) {
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
+ props.text && ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("a", Object.assign({ id: props.textId, className: "fc-list-day-text" }, props.navLinkAttrs), props.text)),
+ props.sideText && ( /* not keyboard tabbable */(0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("a", Object.assign({ "aria-hidden": true, className: "fc-list-day-side-text" }, props.sideNavLinkAttrs), props.sideText))));
+}
+
+const DEFAULT_TIME_FORMAT = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.x)({
+ hour: 'numeric',
+ minute: '2-digit',
+ meridiem: 'short',
+});
+class ListViewEventRow extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.B {
+ render() {
+ let { props, context } = this;
+ let { options } = context;
+ let { seg, timeHeaderId, eventHeaderId, dateHeaderId } = props;
+ let timeFormat = options.eventTimeFormat || DEFAULT_TIME_FORMAT;
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ck, Object.assign({}, props, { elTag: "tr", elClasses: [
+ 'fc-list-event',
+ seg.eventRange.def.url && 'fc-event-forced-url',
+ ], defaultGenerator: () => renderEventInnerContent(seg, context) /* weird */, seg: seg, timeText: "", disableDragging: true, disableResizing: true }), (InnerContent, eventContentArg) => ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
+ buildTimeContent(seg, timeFormat, context, timeHeaderId, dateHeaderId),
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("td", { "aria-hidden": true, className: "fc-list-event-graphic" },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("span", { className: "fc-list-event-dot", style: {
+ borderColor: eventContentArg.borderColor || eventContentArg.backgroundColor,
+ } })),
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(InnerContent, { elTag: "td", elClasses: ['fc-list-event-title'], elAttrs: { headers: `${eventHeaderId} ${dateHeaderId}` } })))));
+ }
+}
+function renderEventInnerContent(seg, context) {
+ let interactiveAttrs = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bS)(seg, context);
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("a", Object.assign({}, interactiveAttrs), seg.eventRange.def.title));
+}
+function buildTimeContent(seg, timeFormat, context, timeHeaderId, dateHeaderId) {
+ let { options } = context;
+ if (options.displayEventTime !== false) {
+ let eventDef = seg.eventRange.def;
+ let eventInstance = seg.eventRange.instance;
+ let doAllDay = false;
+ let timeText;
+ if (eventDef.allDay) {
+ doAllDay = true;
+ }
+ else if ((0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ax)(seg.eventRange.range)) { // TODO: use (!isStart || !isEnd) instead?
+ if (seg.isStart) {
+ timeText = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bO)(seg, timeFormat, context, null, null, eventInstance.range.start, seg.end);
+ }
+ else if (seg.isEnd) {
+ timeText = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bO)(seg, timeFormat, context, null, null, seg.start, eventInstance.range.end);
+ }
+ else {
+ doAllDay = true;
+ }
+ }
+ else {
+ timeText = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bO)(seg, timeFormat, context);
+ }
+ if (doAllDay) {
+ let renderProps = {
+ text: context.options.allDayText,
+ view: context.viewApi,
+ };
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.C, { elTag: "td", elClasses: ['fc-list-event-time'], elAttrs: {
+ headers: `${timeHeaderId} ${dateHeaderId}`,
+ }, renderProps: renderProps, generatorName: "allDayContent", customGenerator: options.allDayContent, defaultGenerator: renderAllDayInner, classNameGenerator: options.allDayClassNames, didMount: options.allDayDidMount, willUnmount: options.allDayWillUnmount }));
+ }
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("td", { className: "fc-list-event-time" }, timeText));
+ }
+ return null;
+}
+function renderAllDayInner(renderProps) {
+ return renderProps.text;
+}
+
+/*
+Responsible for the scroller, and forwarding event-related actions into the "grid".
+*/
+class ListView extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bc {
+ constructor() {
+ super(...arguments);
+ this.computeDateVars = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.z)(computeDateVars);
+ this.eventStoreToSegs = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.z)(this._eventStoreToSegs);
+ this.state = {
+ timeHeaderId: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.a3)(),
+ eventHeaderId: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.a3)(),
+ dateHeaderIdRoot: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.a3)(),
+ };
+ this.setRootEl = (rootEl) => {
+ if (rootEl) {
+ this.context.registerInteractiveComponent(this, {
+ el: rootEl,
+ });
+ }
+ else {
+ this.context.unregisterInteractiveComponent(this);
+ }
+ };
+ }
+ render() {
+ let { props, context } = this;
+ let { dayDates, dayRanges } = this.computeDateVars(props.dateProfile);
+ let eventSegs = this.eventStoreToSegs(props.eventStore, props.eventUiBases, dayRanges);
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cq, { elRef: this.setRootEl, elClasses: [
+ 'fc-list',
+ context.theme.getClass('table'),
+ context.options.stickyHeaderDates !== false ?
+ 'fc-list-sticky' :
+ '',
+ ], viewSpec: context.viewSpec },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cb, { liquid: !props.isHeightAuto, overflowX: props.isHeightAuto ? 'visible' : 'hidden', overflowY: props.isHeightAuto ? 'visible' : 'auto' }, eventSegs.length > 0 ?
+ this.renderSegList(eventSegs, dayDates) :
+ this.renderEmptyMessage())));
+ }
+ renderEmptyMessage() {
+ let { options, viewApi } = this.context;
+ let renderProps = {
+ text: options.noEventsText,
+ view: viewApi,
+ };
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.C, { elTag: "div", elClasses: ['fc-list-empty'], renderProps: renderProps, generatorName: "noEventsContent", customGenerator: options.noEventsContent, defaultGenerator: renderNoEventsInner, classNameGenerator: options.noEventsClassNames, didMount: options.noEventsDidMount, willUnmount: options.noEventsWillUnmount }, (InnerContent) => ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(InnerContent, { elTag: "div", elClasses: ['fc-list-empty-cushion'] }))));
+ }
+ renderSegList(allSegs, dayDates) {
+ let { theme, options } = this.context;
+ let { timeHeaderId, eventHeaderId, dateHeaderIdRoot } = this.state;
+ let segsByDay = groupSegsByDay(allSegs); // sparse array
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.a6, { unit: "day" }, (nowDate, todayRange) => {
+ let innerNodes = [];
+ for (let dayIndex = 0; dayIndex < segsByDay.length; dayIndex += 1) {
+ let daySegs = segsByDay[dayIndex];
+ if (daySegs) { // sparse array, so might be undefined
+ let dayStr = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bt)(dayDates[dayIndex]);
+ let dateHeaderId = dateHeaderIdRoot + '-' + dayStr;
+ // append a day header
+ innerNodes.push((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(ListViewHeaderRow, { key: dayStr, cellId: dateHeaderId, dayDate: dayDates[dayIndex], todayRange: todayRange }));
+ daySegs = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bP)(daySegs, options.eventOrder);
+ for (let seg of daySegs) {
+ innerNodes.push((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(ListViewEventRow, Object.assign({ key: dayStr + ':' + seg.eventRange.instance.instanceId /* are multiple segs for an instanceId */, seg: seg, isDragging: false, isResizing: false, isDateSelecting: false, isSelected: false, timeHeaderId: timeHeaderId, eventHeaderId: eventHeaderId, dateHeaderId: dateHeaderId }, (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bQ)(seg, todayRange, nowDate))));
+ }
+ }
+ }
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("table", { className: 'fc-list-table ' + theme.getClass('table') },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("thead", null,
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("tr", null,
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("th", { scope: "col", id: timeHeaderId }, options.timeHint),
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("th", { scope: "col", "aria-hidden": true }),
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("th", { scope: "col", id: eventHeaderId }, options.eventHint))),
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("tbody", null, innerNodes)));
+ }));
+ }
+ _eventStoreToSegs(eventStore, eventUiBases, dayRanges) {
+ return this.eventRangesToSegs((0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ad)(eventStore, eventUiBases, this.props.dateProfile.activeRange, this.context.options.nextDayThreshold).fg, dayRanges);
+ }
+ eventRangesToSegs(eventRanges, dayRanges) {
+ let segs = [];
+ for (let eventRange of eventRanges) {
+ segs.push(...this.eventRangeToSegs(eventRange, dayRanges));
+ }
+ return segs;
+ }
+ eventRangeToSegs(eventRange, dayRanges) {
+ let { dateEnv } = this.context;
+ let { nextDayThreshold } = this.context.options;
+ let range = eventRange.range;
+ let allDay = eventRange.def.allDay;
+ let dayIndex;
+ let segRange;
+ let seg;
+ let segs = [];
+ for (dayIndex = 0; dayIndex < dayRanges.length; dayIndex += 1) {
+ segRange = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.o)(range, dayRanges[dayIndex]);
+ if (segRange) {
+ seg = {
+ component: this,
+ eventRange,
+ start: segRange.start,
+ end: segRange.end,
+ isStart: eventRange.isStart && segRange.start.valueOf() === range.start.valueOf(),
+ isEnd: eventRange.isEnd && segRange.end.valueOf() === range.end.valueOf(),
+ dayIndex,
+ };
+ segs.push(seg);
+ // detect when range won't go fully into the next day,
+ // and mutate the latest seg to the be the end.
+ if (!seg.isEnd && !allDay &&
+ dayIndex + 1 < dayRanges.length &&
+ range.end <
+ dateEnv.add(dayRanges[dayIndex + 1].start, nextDayThreshold)) {
+ seg.end = range.end;
+ seg.isEnd = true;
+ break;
+ }
+ }
+ }
+ return segs;
+ }
+}
+function renderNoEventsInner(renderProps) {
+ return renderProps.text;
+}
+function computeDateVars(dateProfile) {
+ let dayStart = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.q)(dateProfile.renderRange.start);
+ let viewEnd = dateProfile.renderRange.end;
+ let dayDates = [];
+ let dayRanges = [];
+ while (dayStart < viewEnd) {
+ dayDates.push(dayStart);
+ dayRanges.push({
+ start: dayStart,
+ end: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.t)(dayStart, 1),
+ });
+ dayStart = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.t)(dayStart, 1);
+ }
+ return { dayDates, dayRanges };
+}
+// Returns a sparse array of arrays, segs grouped by their dayIndex
+function groupSegsByDay(segs) {
+ let segsByDay = []; // sparse array
+ let i;
+ let seg;
+ for (i = 0; i < segs.length; i += 1) {
+ seg = segs[i];
+ (segsByDay[seg.dayIndex] || (segsByDay[seg.dayIndex] = []))
+ .push(seg);
+ }
+ return segsByDay;
+}
+
+var css_248z = ":root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:\"\";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}";
+(0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ct)(css_248z);
+
+
+
+
+/***/ }),
+
+/***/ "./node_modules/@fullcalendar/timegrid/index.js":
+/*!******************************************************!*\
+ !*** ./node_modules/@fullcalendar/timegrid/index.js ***!
+ \******************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ index)
+/* harmony export */ });
+/* harmony import */ var _fullcalendar_core_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fullcalendar/core/index.js */ "./node_modules/@fullcalendar/core/index.js");
+/* harmony import */ var _internal_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./internal.js */ "./node_modules/@fullcalendar/timegrid/internal.js");
+
+
+
+
+
+
+const OPTION_REFINERS = {
+ allDaySlot: Boolean,
+};
+
+var index = (0,_fullcalendar_core_index_js__WEBPACK_IMPORTED_MODULE_0__.createPlugin)({
+ name: '@fullcalendar/timegrid',
+ initialView: 'timeGridWeek',
+ optionRefiners: OPTION_REFINERS,
+ views: {
+ timeGrid: {
+ component: _internal_js__WEBPACK_IMPORTED_MODULE_1__.DayTimeColsView,
+ usesMinMaxTime: true,
+ allDaySlot: true,
+ slotDuration: '00:30:00',
+ slotEventOverlap: true, // a bad name. confused with overlap/constraint system
+ },
+ timeGridDay: {
+ type: 'timeGrid',
+ duration: { days: 1 },
+ },
+ timeGridWeek: {
+ type: 'timeGrid',
+ duration: { weeks: 1 },
+ },
+ },
+});
+
+
+
+
+/***/ }),
+
+/***/ "./node_modules/@fullcalendar/timegrid/internal.js":
+/*!*********************************************************!*\
+ !*** ./node_modules/@fullcalendar/timegrid/internal.js ***!
+ \*********************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ DayTimeCols: () => (/* binding */ DayTimeCols),
+/* harmony export */ DayTimeColsSlicer: () => (/* binding */ DayTimeColsSlicer),
+/* harmony export */ DayTimeColsView: () => (/* binding */ DayTimeColsView),
+/* harmony export */ TimeCols: () => (/* binding */ TimeCols),
+/* harmony export */ TimeColsSlatsCoords: () => (/* binding */ TimeColsSlatsCoords),
+/* harmony export */ TimeColsView: () => (/* binding */ TimeColsView),
+/* harmony export */ buildDayRanges: () => (/* binding */ buildDayRanges),
+/* harmony export */ buildSlatMetas: () => (/* binding */ buildSlatMetas),
+/* harmony export */ buildTimeColsModel: () => (/* binding */ buildTimeColsModel)
+/* harmony export */ });
+/* harmony import */ var _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fullcalendar/core/internal.js */ "./node_modules/@fullcalendar/core/internal-common.js");
+/* harmony import */ var _fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fullcalendar/core/preact.js */ "./node_modules/preact/dist/preact.module.js");
+/* harmony import */ var _fullcalendar_daygrid_internal_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fullcalendar/daygrid/internal.js */ "./node_modules/@fullcalendar/daygrid/internal.js");
+
+
+
+
+class AllDaySplitter extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.aW {
+ getKeyInfo() {
+ return {
+ allDay: {},
+ timed: {},
+ };
+ }
+ getKeysForDateSpan(dateSpan) {
+ if (dateSpan.allDay) {
+ return ['allDay'];
+ }
+ return ['timed'];
+ }
+ getKeysForEventDef(eventDef) {
+ if (!eventDef.allDay) {
+ return ['timed'];
+ }
+ if ((0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bN)(eventDef)) {
+ return ['timed', 'allDay'];
+ }
+ return ['allDay'];
+ }
+}
+
+const DEFAULT_SLAT_LABEL_FORMAT = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.x)({
+ hour: 'numeric',
+ minute: '2-digit',
+ omitZeroMinute: true,
+ meridiem: 'short',
+});
+function TimeColsAxisCell(props) {
+ let classNames = [
+ 'fc-timegrid-slot',
+ 'fc-timegrid-slot-label',
+ props.isLabeled ? 'fc-scrollgrid-shrink' : 'fc-timegrid-slot-minor',
+ ];
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.V.Consumer, null, (context) => {
+ if (!props.isLabeled) {
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("td", { className: classNames.join(' '), "data-time": props.isoTimeStr }));
+ }
+ let { dateEnv, options, viewApi } = context;
+ let labelFormat = // TODO: fully pre-parse
+ options.slotLabelFormat == null ? DEFAULT_SLAT_LABEL_FORMAT :
+ Array.isArray(options.slotLabelFormat) ? (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.x)(options.slotLabelFormat[0]) :
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.x)(options.slotLabelFormat);
+ let renderProps = {
+ level: 0,
+ time: props.time,
+ date: dateEnv.toDate(props.date),
+ view: viewApi,
+ text: dateEnv.format(props.date, labelFormat),
+ };
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.C, { elTag: "td", elClasses: classNames, elAttrs: {
+ 'data-time': props.isoTimeStr,
+ }, renderProps: renderProps, generatorName: "slotLabelContent", customGenerator: options.slotLabelContent, defaultGenerator: renderInnerContent, classNameGenerator: options.slotLabelClassNames, didMount: options.slotLabelDidMount, willUnmount: options.slotLabelWillUnmount }, (InnerContent) => ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: "fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame" },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(InnerContent, { elTag: "div", elClasses: [
+ 'fc-timegrid-slot-label-cushion',
+ 'fc-scrollgrid-shrink-cushion',
+ ] })))));
+ }));
+}
+function renderInnerContent(props) {
+ return props.text;
+}
+
+class TimeBodyAxis extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.B {
+ render() {
+ return this.props.slatMetas.map((slatMeta) => ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("tr", { key: slatMeta.key },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(TimeColsAxisCell, Object.assign({}, slatMeta)))));
+ }
+}
+
+const DEFAULT_WEEK_NUM_FORMAT = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.x)({ week: 'short' });
+const AUTO_ALL_DAY_MAX_EVENT_ROWS = 5;
+class TimeColsView extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bc {
+ constructor() {
+ super(...arguments);
+ this.allDaySplitter = new AllDaySplitter(); // for use by subclasses
+ this.headerElRef = (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createRef)();
+ this.rootElRef = (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createRef)();
+ this.scrollerElRef = (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createRef)();
+ this.state = {
+ slatCoords: null,
+ };
+ this.handleScrollTopRequest = (scrollTop) => {
+ let scrollerEl = this.scrollerElRef.current;
+ if (scrollerEl) { // TODO: not sure how this could ever be null. weirdness with the reducer
+ scrollerEl.scrollTop = scrollTop;
+ }
+ };
+ /* Header Render Methods
+ ------------------------------------------------------------------------------------------------------------------*/
+ this.renderHeadAxis = (rowKey, frameHeight = '') => {
+ let { options } = this.context;
+ let { dateProfile } = this.props;
+ let range = dateProfile.renderRange;
+ let dayCnt = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bj)(range.start, range.end);
+ // only do in day views (to avoid doing in week views that dont need it)
+ let navLinkAttrs = (dayCnt === 1)
+ ? (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.a_)(this.context, range.start, 'week')
+ : {};
+ if (options.weekNumbers && rowKey === 'day') {
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cn, { elTag: "th", elClasses: [
+ 'fc-timegrid-axis',
+ 'fc-scrollgrid-shrink',
+ ], elAttrs: {
+ 'aria-hidden': true,
+ }, date: range.start, defaultFormat: DEFAULT_WEEK_NUM_FORMAT }, (InnerContent) => ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: [
+ 'fc-timegrid-axis-frame',
+ 'fc-scrollgrid-shrink-frame',
+ 'fc-timegrid-axis-frame-liquid',
+ ].join(' '), style: { height: frameHeight } },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(InnerContent, { elTag: "a", elClasses: [
+ 'fc-timegrid-axis-cushion',
+ 'fc-scrollgrid-shrink-cushion',
+ 'fc-scrollgrid-sync-inner',
+ ], elAttrs: navLinkAttrs })))));
+ }
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("th", { "aria-hidden": true, className: "fc-timegrid-axis" },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: "fc-timegrid-axis-frame", style: { height: frameHeight } })));
+ };
+ /* Table Component Render Methods
+ ------------------------------------------------------------------------------------------------------------------*/
+ // only a one-way height sync. we don't send the axis inner-content height to the DayGrid,
+ // but DayGrid still needs to have classNames on inner elements in order to measure.
+ this.renderTableRowAxis = (rowHeight) => {
+ let { options, viewApi } = this.context;
+ let renderProps = {
+ text: options.allDayText,
+ view: viewApi,
+ };
+ return (
+ // TODO: make reusable hook. used in list view too
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.C, { elTag: "td", elClasses: [
+ 'fc-timegrid-axis',
+ 'fc-scrollgrid-shrink',
+ ], elAttrs: {
+ 'aria-hidden': true,
+ }, renderProps: renderProps, generatorName: "allDayContent", customGenerator: options.allDayContent, defaultGenerator: renderAllDayInner, classNameGenerator: options.allDayClassNames, didMount: options.allDayDidMount, willUnmount: options.allDayWillUnmount }, (InnerContent) => ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: [
+ 'fc-timegrid-axis-frame',
+ 'fc-scrollgrid-shrink-frame',
+ rowHeight == null ? ' fc-timegrid-axis-frame-liquid' : '',
+ ].join(' '), style: { height: rowHeight } },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(InnerContent, { elTag: "span", elClasses: [
+ 'fc-timegrid-axis-cushion',
+ 'fc-scrollgrid-shrink-cushion',
+ 'fc-scrollgrid-sync-inner',
+ ] })))));
+ };
+ this.handleSlatCoords = (slatCoords) => {
+ this.setState({ slatCoords });
+ };
+ }
+ // rendering
+ // ----------------------------------------------------------------------------------------------------
+ renderSimpleLayout(headerRowContent, allDayContent, timeContent) {
+ let { context, props } = this;
+ let sections = [];
+ let stickyHeaderDates = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ca)(context.options);
+ if (headerRowContent) {
+ sections.push({
+ type: 'header',
+ key: 'header',
+ isSticky: stickyHeaderDates,
+ chunk: {
+ elRef: this.headerElRef,
+ tableClassName: 'fc-col-header',
+ rowContent: headerRowContent,
+ },
+ });
+ }
+ if (allDayContent) {
+ sections.push({
+ type: 'body',
+ key: 'all-day',
+ chunk: { content: allDayContent },
+ });
+ sections.push({
+ type: 'body',
+ key: 'all-day-divider',
+ outerContent: ( // TODO: rename to cellContent so don't need to define <tr>?
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("tr", { role: "presentation", className: "fc-scrollgrid-section" },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("td", { className: 'fc-timegrid-divider ' + context.theme.getClass('tableCellShaded') }))),
+ });
+ }
+ sections.push({
+ type: 'body',
+ key: 'body',
+ liquid: true,
+ expandRows: Boolean(context.options.expandRows),
+ chunk: {
+ scrollerElRef: this.scrollerElRef,
+ content: timeContent,
+ },
+ });
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cq, { elRef: this.rootElRef, elClasses: ['fc-timegrid'], viewSpec: context.viewSpec },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bZ, { liquid: !props.isHeightAuto && !props.forPrint, collapsibleWidth: props.forPrint, cols: [{ width: 'shrink' }], sections: sections })));
+ }
+ renderHScrollLayout(headerRowContent, allDayContent, timeContent, colCnt, dayMinWidth, slatMetas, slatCoords) {
+ let ScrollGrid = this.context.pluginHooks.scrollGridImpl;
+ if (!ScrollGrid) {
+ throw new Error('No ScrollGrid implementation');
+ }
+ let { context, props } = this;
+ let stickyHeaderDates = !props.forPrint && (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ca)(context.options);
+ let stickyFooterScrollbar = !props.forPrint && (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.c9)(context.options);
+ let sections = [];
+ if (headerRowContent) {
+ sections.push({
+ type: 'header',
+ key: 'header',
+ isSticky: stickyHeaderDates,
+ syncRowHeights: true,
+ chunks: [
+ {
+ key: 'axis',
+ rowContent: (arg) => ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("tr", { role: "presentation" }, this.renderHeadAxis('day', arg.rowSyncHeights[0]))),
+ },
+ {
+ key: 'cols',
+ elRef: this.headerElRef,
+ tableClassName: 'fc-col-header',
+ rowContent: headerRowContent,
+ },
+ ],
+ });
+ }
+ if (allDayContent) {
+ sections.push({
+ type: 'body',
+ key: 'all-day',
+ syncRowHeights: true,
+ chunks: [
+ {
+ key: 'axis',
+ rowContent: (contentArg) => ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("tr", { role: "presentation" }, this.renderTableRowAxis(contentArg.rowSyncHeights[0]))),
+ },
+ {
+ key: 'cols',
+ content: allDayContent,
+ },
+ ],
+ });
+ sections.push({
+ key: 'all-day-divider',
+ type: 'body',
+ outerContent: ( // TODO: rename to cellContent so don't need to define <tr>?
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("tr", { role: "presentation", className: "fc-scrollgrid-section" },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("td", { colSpan: 2, className: 'fc-timegrid-divider ' + context.theme.getClass('tableCellShaded') }))),
+ });
+ }
+ let isNowIndicator = context.options.nowIndicator;
+ sections.push({
+ type: 'body',
+ key: 'body',
+ liquid: true,
+ expandRows: Boolean(context.options.expandRows),
+ chunks: [
+ {
+ key: 'axis',
+ content: (arg) => (
+ // TODO: make this now-indicator arrow more DRY with TimeColsContent
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: "fc-timegrid-axis-chunk" },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("table", { "aria-hidden": true, style: { height: arg.expandRows ? arg.clientHeight : '' } },
+ arg.tableColGroupNode,
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("tbody", null,
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(TimeBodyAxis, { slatMetas: slatMetas }))),
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: "fc-timegrid-now-indicator-container" },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.a6, { unit: isNowIndicator ? 'minute' : 'day' /* hacky */ }, (nowDate) => {
+ let nowIndicatorTop = isNowIndicator &&
+ slatCoords &&
+ slatCoords.safeComputeTop(nowDate); // might return void
+ if (typeof nowIndicatorTop === 'number') {
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ch, { elClasses: ['fc-timegrid-now-indicator-arrow'], elStyle: { top: nowIndicatorTop }, isAxis: true, date: nowDate }));
+ }
+ return null;
+ })))),
+ },
+ {
+ key: 'cols',
+ scrollerElRef: this.scrollerElRef,
+ content: timeContent,
+ },
+ ],
+ });
+ if (stickyFooterScrollbar) {
+ sections.push({
+ key: 'footer',
+ type: 'footer',
+ isSticky: true,
+ chunks: [
+ {
+ key: 'axis',
+ content: _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.c8,
+ },
+ {
+ key: 'cols',
+ content: _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.c8,
+ },
+ ],
+ });
+ }
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cq, { elRef: this.rootElRef, elClasses: ['fc-timegrid'], viewSpec: context.viewSpec },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(ScrollGrid, { liquid: !props.isHeightAuto && !props.forPrint, forPrint: props.forPrint, collapsibleWidth: false, colGroups: [
+ { width: 'shrink', cols: [{ width: 'shrink' }] },
+ { cols: [{ span: colCnt, minWidth: dayMinWidth }] },
+ ], sections: sections })));
+ }
+ /* Dimensions
+ ------------------------------------------------------------------------------------------------------------------*/
+ getAllDayMaxEventProps() {
+ let { dayMaxEvents, dayMaxEventRows } = this.context.options;
+ if (dayMaxEvents === true || dayMaxEventRows === true) { // is auto?
+ dayMaxEvents = undefined;
+ dayMaxEventRows = AUTO_ALL_DAY_MAX_EVENT_ROWS; // make sure "auto" goes to a real number
+ }
+ return { dayMaxEvents, dayMaxEventRows };
+ }
+}
+function renderAllDayInner(renderProps) {
+ return renderProps.text;
+}
+
+class TimeColsSlatsCoords {
+ constructor(positions, dateProfile, slotDuration) {
+ this.positions = positions;
+ this.dateProfile = dateProfile;
+ this.slotDuration = slotDuration;
+ }
+ safeComputeTop(date) {
+ let { dateProfile } = this;
+ if ((0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.G)(dateProfile.currentRange, date)) {
+ let startOfDayDate = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.q)(date);
+ let timeMs = date.valueOf() - startOfDayDate.valueOf();
+ if (timeMs >= (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bq)(dateProfile.slotMinTime) &&
+ timeMs < (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bq)(dateProfile.slotMaxTime)) {
+ return this.computeTimeTop((0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.d)(timeMs));
+ }
+ }
+ return null;
+ }
+ // Computes the top coordinate, relative to the bounds of the grid, of the given date.
+ // A `startOfDayDate` must be given for avoiding ambiguity over how to treat midnight.
+ computeDateTop(when, startOfDayDate) {
+ if (!startOfDayDate) {
+ startOfDayDate = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.q)(when);
+ }
+ return this.computeTimeTop((0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.d)(when.valueOf() - startOfDayDate.valueOf()));
+ }
+ // Computes the top coordinate, relative to the bounds of the grid, of the given time (a Duration).
+ // This is a makeshify way to compute the time-top. Assumes all slatMetas dates are uniform.
+ // Eventually allow computation with arbirary slat dates.
+ computeTimeTop(duration) {
+ let { positions, dateProfile } = this;
+ let len = positions.els.length;
+ // floating-point value of # of slots covered
+ let slatCoverage = (duration.milliseconds - (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bq)(dateProfile.slotMinTime)) / (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bq)(this.slotDuration);
+ let slatIndex;
+ let slatRemainder;
+ // compute a floating-point number for how many slats should be progressed through.
+ // from 0 to number of slats (inclusive)
+ // constrained because slotMinTime/slotMaxTime might be customized.
+ slatCoverage = Math.max(0, slatCoverage);
+ slatCoverage = Math.min(len, slatCoverage);
+ // an integer index of the furthest whole slat
+ // from 0 to number slats (*exclusive*, so len-1)
+ slatIndex = Math.floor(slatCoverage);
+ slatIndex = Math.min(slatIndex, len - 1);
+ // how much further through the slatIndex slat (from 0.0-1.0) must be covered in addition.
+ // could be 1.0 if slatCoverage is covering *all* the slots
+ slatRemainder = slatCoverage - slatIndex;
+ return positions.tops[slatIndex] +
+ positions.getHeight(slatIndex) * slatRemainder;
+ }
+}
+
+class TimeColsSlatsBody extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.B {
+ render() {
+ let { props, context } = this;
+ let { options } = context;
+ let { slatElRefs } = props;
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("tbody", null, props.slatMetas.map((slatMeta, i) => {
+ let renderProps = {
+ time: slatMeta.time,
+ date: context.dateEnv.toDate(slatMeta.date),
+ view: context.viewApi,
+ };
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("tr", { key: slatMeta.key, ref: slatElRefs.createRef(slatMeta.key) },
+ props.axis && ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(TimeColsAxisCell, Object.assign({}, slatMeta))),
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.C, { elTag: "td", elClasses: [
+ 'fc-timegrid-slot',
+ 'fc-timegrid-slot-lane',
+ !slatMeta.isLabeled && 'fc-timegrid-slot-minor',
+ ], elAttrs: {
+ 'data-time': slatMeta.isoTimeStr,
+ }, renderProps: renderProps, generatorName: "slotLaneContent", customGenerator: options.slotLaneContent, classNameGenerator: options.slotLaneClassNames, didMount: options.slotLaneDidMount, willUnmount: options.slotLaneWillUnmount })));
+ })));
+ }
+}
+
+/*
+for the horizontal "slats" that run width-wise. Has a time axis on a side. Depends on RTL.
+*/
+class TimeColsSlats extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.B {
+ constructor() {
+ super(...arguments);
+ this.rootElRef = (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createRef)();
+ this.slatElRefs = new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cd();
+ }
+ render() {
+ let { props, context } = this;
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { ref: this.rootElRef, className: "fc-timegrid-slots" },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("table", { "aria-hidden": true, className: context.theme.getClass('table'), style: {
+ minWidth: props.tableMinWidth,
+ width: props.clientWidth,
+ height: props.minHeight,
+ } },
+ props.tableColGroupNode /* relies on there only being a single <col> for the axis */,
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(TimeColsSlatsBody, { slatElRefs: this.slatElRefs, axis: props.axis, slatMetas: props.slatMetas }))));
+ }
+ componentDidMount() {
+ this.updateSizing();
+ }
+ componentDidUpdate() {
+ this.updateSizing();
+ }
+ componentWillUnmount() {
+ if (this.props.onCoords) {
+ this.props.onCoords(null);
+ }
+ }
+ updateSizing() {
+ let { context, props } = this;
+ if (props.onCoords &&
+ props.clientWidth !== null // means sizing has stabilized
+ ) {
+ let rootEl = this.rootElRef.current;
+ if (rootEl.offsetHeight) { // not hidden by css
+ props.onCoords(new TimeColsSlatsCoords(new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.b8(this.rootElRef.current, collectSlatEls(this.slatElRefs.currentMap, props.slatMetas), false, true), this.props.dateProfile, context.options.slotDuration));
+ }
+ }
+ }
+}
+function collectSlatEls(elMap, slatMetas) {
+ return slatMetas.map((slatMeta) => elMap[slatMeta.key]);
+}
+
+function splitSegsByCol(segs, colCnt) {
+ let segsByCol = [];
+ let i;
+ for (i = 0; i < colCnt; i += 1) {
+ segsByCol.push([]);
+ }
+ if (segs) {
+ for (i = 0; i < segs.length; i += 1) {
+ segsByCol[segs[i].col].push(segs[i]);
+ }
+ }
+ return segsByCol;
+}
+function splitInteractionByCol(ui, colCnt) {
+ let byRow = [];
+ if (!ui) {
+ for (let i = 0; i < colCnt; i += 1) {
+ byRow[i] = null;
+ }
+ }
+ else {
+ for (let i = 0; i < colCnt; i += 1) {
+ byRow[i] = {
+ affectedInstances: ui.affectedInstances,
+ isEvent: ui.isEvent,
+ segs: [],
+ };
+ }
+ for (let seg of ui.segs) {
+ byRow[seg.col].segs.push(seg);
+ }
+ }
+ return byRow;
+}
+
+class TimeColMoreLink extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.B {
+ render() {
+ let { props } = this;
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.co, { elClasses: ['fc-timegrid-more-link'], elStyle: {
+ top: props.top,
+ bottom: props.bottom,
+ }, allDayDate: null, moreCnt: props.hiddenSegs.length, allSegs: props.hiddenSegs, hiddenSegs: props.hiddenSegs, extraDateSpan: props.extraDateSpan, dateProfile: props.dateProfile, todayRange: props.todayRange, popoverContent: () => renderPlainFgSegs(props.hiddenSegs, props), defaultGenerator: renderMoreLinkInner, forceTimed: true }, (InnerContent) => ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(InnerContent, { elTag: "div", elClasses: ['fc-timegrid-more-link-inner', 'fc-sticky'] }))));
+ }
+}
+function renderMoreLinkInner(props) {
+ return props.shortText;
+}
+
+// segInputs assumed sorted
+function buildPositioning(segInputs, strictOrder, maxStackCnt) {
+ let hierarchy = new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.by();
+ if (strictOrder != null) {
+ hierarchy.strictOrder = strictOrder;
+ }
+ if (maxStackCnt != null) {
+ hierarchy.maxStackCnt = maxStackCnt;
+ }
+ let hiddenEntries = hierarchy.addSegs(segInputs);
+ let hiddenGroups = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bC)(hiddenEntries);
+ let web = buildWeb(hierarchy);
+ web = stretchWeb(web, 1); // all levelCoords/thickness will have 0.0-1.0
+ let segRects = webToRects(web);
+ return { segRects, hiddenGroups };
+}
+function buildWeb(hierarchy) {
+ const { entriesByLevel } = hierarchy;
+ const buildNode = cacheable((level, lateral) => level + ':' + lateral, (level, lateral) => {
+ let siblingRange = findNextLevelSegs(hierarchy, level, lateral);
+ let nextLevelRes = buildNodes(siblingRange, buildNode);
+ let entry = entriesByLevel[level][lateral];
+ return [
+ Object.assign(Object.assign({}, entry), { nextLevelNodes: nextLevelRes[0] }),
+ entry.thickness + nextLevelRes[1], // the pressure builds
+ ];
+ });
+ return buildNodes(entriesByLevel.length
+ ? { level: 0, lateralStart: 0, lateralEnd: entriesByLevel[0].length }
+ : null, buildNode)[0];
+}
+function buildNodes(siblingRange, buildNode) {
+ if (!siblingRange) {
+ return [[], 0];
+ }
+ let { level, lateralStart, lateralEnd } = siblingRange;
+ let lateral = lateralStart;
+ let pairs = [];
+ while (lateral < lateralEnd) {
+ pairs.push(buildNode(level, lateral));
+ lateral += 1;
+ }
+ pairs.sort(cmpDescPressures);
+ return [
+ pairs.map(extractNode),
+ pairs[0][1], // first item's pressure
+ ];
+}
+function cmpDescPressures(a, b) {
+ return b[1] - a[1];
+}
+function extractNode(a) {
+ return a[0];
+}
+function findNextLevelSegs(hierarchy, subjectLevel, subjectLateral) {
+ let { levelCoords, entriesByLevel } = hierarchy;
+ let subjectEntry = entriesByLevel[subjectLevel][subjectLateral];
+ let afterSubject = levelCoords[subjectLevel] + subjectEntry.thickness;
+ let levelCnt = levelCoords.length;
+ let level = subjectLevel;
+ // skip past levels that are too high up
+ for (; level < levelCnt && levelCoords[level] < afterSubject; level += 1)
+ ; // do nothing
+ for (; level < levelCnt; level += 1) {
+ let entries = entriesByLevel[level];
+ let entry;
+ let searchIndex = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bB)(entries, subjectEntry.span.start, _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bA);
+ let lateralStart = searchIndex[0] + searchIndex[1]; // if exact match (which doesn't collide), go to next one
+ let lateralEnd = lateralStart;
+ while ( // loop through entries that horizontally intersect
+ (entry = entries[lateralEnd]) && // but not past the whole seg list
+ entry.span.start < subjectEntry.span.end) {
+ lateralEnd += 1;
+ }
+ if (lateralStart < lateralEnd) {
+ return { level, lateralStart, lateralEnd };
+ }
+ }
+ return null;
+}
+function stretchWeb(topLevelNodes, totalThickness) {
+ const stretchNode = cacheable((node, startCoord, prevThickness) => (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bz)(node), (node, startCoord, prevThickness) => {
+ let { nextLevelNodes, thickness } = node;
+ let allThickness = thickness + prevThickness;
+ let thicknessFraction = thickness / allThickness;
+ let endCoord;
+ let newChildren = [];
+ if (!nextLevelNodes.length) {
+ endCoord = totalThickness;
+ }
+ else {
+ for (let childNode of nextLevelNodes) {
+ if (endCoord === undefined) {
+ let res = stretchNode(childNode, startCoord, allThickness);
+ endCoord = res[0];
+ newChildren.push(res[1]);
+ }
+ else {
+ let res = stretchNode(childNode, endCoord, 0);
+ newChildren.push(res[1]);
+ }
+ }
+ }
+ let newThickness = (endCoord - startCoord) * thicknessFraction;
+ return [endCoord - newThickness, Object.assign(Object.assign({}, node), { thickness: newThickness, nextLevelNodes: newChildren })];
+ });
+ return topLevelNodes.map((node) => stretchNode(node, 0, 0)[1]);
+}
+// not sorted in any particular order
+function webToRects(topLevelNodes) {
+ let rects = [];
+ const processNode = cacheable((node, levelCoord, stackDepth) => (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bz)(node), (node, levelCoord, stackDepth) => {
+ let rect = Object.assign(Object.assign({}, node), { levelCoord,
+ stackDepth, stackForward: 0 });
+ rects.push(rect);
+ return (rect.stackForward = processNodes(node.nextLevelNodes, levelCoord + node.thickness, stackDepth + 1) + 1);
+ });
+ function processNodes(nodes, levelCoord, stackDepth) {
+ let stackForward = 0;
+ for (let node of nodes) {
+ stackForward = Math.max(processNode(node, levelCoord, stackDepth), stackForward);
+ }
+ return stackForward;
+ }
+ processNodes(topLevelNodes, 0, 0);
+ return rects; // TODO: sort rects by levelCoord to be consistent with toRects?
+}
+// TODO: move to general util
+function cacheable(keyFunc, workFunc) {
+ const cache = {};
+ return (...args) => {
+ let key = keyFunc(...args);
+ return (key in cache)
+ ? cache[key]
+ : (cache[key] = workFunc(...args));
+ };
+}
+
+function computeSegVCoords(segs, colDate, slatCoords = null, eventMinHeight = 0) {
+ let vcoords = [];
+ if (slatCoords) {
+ for (let i = 0; i < segs.length; i += 1) {
+ let seg = segs[i];
+ let spanStart = slatCoords.computeDateTop(seg.start, colDate);
+ let spanEnd = Math.max(spanStart + (eventMinHeight || 0), // :(
+ slatCoords.computeDateTop(seg.end, colDate));
+ vcoords.push({
+ start: Math.round(spanStart),
+ end: Math.round(spanEnd), //
+ });
+ }
+ }
+ return vcoords;
+}
+function computeFgSegPlacements(segs, segVCoords, // might not have for every seg
+eventOrderStrict, eventMaxStack) {
+ let segInputs = [];
+ let dumbSegs = []; // segs without coords
+ for (let i = 0; i < segs.length; i += 1) {
+ let vcoords = segVCoords[i];
+ if (vcoords) {
+ segInputs.push({
+ index: i,
+ thickness: 1,
+ span: vcoords,
+ });
+ }
+ else {
+ dumbSegs.push(segs[i]);
+ }
+ }
+ let { segRects, hiddenGroups } = buildPositioning(segInputs, eventOrderStrict, eventMaxStack);
+ let segPlacements = [];
+ for (let segRect of segRects) {
+ segPlacements.push({
+ seg: segs[segRect.index],
+ rect: segRect,
+ });
+ }
+ for (let dumbSeg of dumbSegs) {
+ segPlacements.push({ seg: dumbSeg, rect: null });
+ }
+ return { segPlacements, hiddenGroups };
+}
+
+const DEFAULT_TIME_FORMAT = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.x)({
+ hour: 'numeric',
+ minute: '2-digit',
+ meridiem: false,
+});
+class TimeColEvent extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.B {
+ render() {
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cg, Object.assign({}, this.props, { elClasses: [
+ 'fc-timegrid-event',
+ 'fc-v-event',
+ this.props.isShort && 'fc-timegrid-event-short',
+ ], defaultTimeFormat: DEFAULT_TIME_FORMAT })));
+ }
+}
+
+class TimeCol extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.B {
+ constructor() {
+ super(...arguments);
+ this.sortEventSegs = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.z)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bP);
+ }
+ // TODO: memoize event-placement?
+ render() {
+ let { props, context } = this;
+ let { options } = context;
+ let isSelectMirror = options.selectMirror;
+ let mirrorSegs = // yuck
+ (props.eventDrag && props.eventDrag.segs) ||
+ (props.eventResize && props.eventResize.segs) ||
+ (isSelectMirror && props.dateSelectionSegs) ||
+ [];
+ let interactionAffectedInstances = // TODO: messy way to compute this
+ (props.eventDrag && props.eventDrag.affectedInstances) ||
+ (props.eventResize && props.eventResize.affectedInstances) ||
+ {};
+ let sortedFgSegs = this.sortEventSegs(props.fgEventSegs, options.eventOrder);
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ci, { elTag: "td", elRef: props.elRef, elClasses: [
+ 'fc-timegrid-col',
+ ...(props.extraClassNames || []),
+ ], elAttrs: Object.assign({ role: 'gridcell' }, props.extraDataAttrs), date: props.date, dateProfile: props.dateProfile, todayRange: props.todayRange, extraRenderProps: props.extraRenderProps }, (InnerContent) => ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: "fc-timegrid-col-frame" },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: "fc-timegrid-col-bg" },
+ this.renderFillSegs(props.businessHourSegs, 'non-business'),
+ this.renderFillSegs(props.bgEventSegs, 'bg-event'),
+ this.renderFillSegs(props.dateSelectionSegs, 'highlight')),
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: "fc-timegrid-col-events" }, this.renderFgSegs(sortedFgSegs, interactionAffectedInstances, false, false, false)),
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: "fc-timegrid-col-events" }, this.renderFgSegs(mirrorSegs, {}, Boolean(props.eventDrag), Boolean(props.eventResize), Boolean(isSelectMirror), 'mirror')),
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: "fc-timegrid-now-indicator-container" }, this.renderNowIndicator(props.nowIndicatorSegs)),
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cj)(options) && ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(InnerContent, { elTag: "div", elClasses: ['fc-timegrid-col-misc'] }))))));
+ }
+ renderFgSegs(sortedFgSegs, segIsInvisible, isDragging, isResizing, isDateSelecting, forcedKey) {
+ let { props } = this;
+ if (props.forPrint) {
+ return renderPlainFgSegs(sortedFgSegs, props);
+ }
+ return this.renderPositionedFgSegs(sortedFgSegs, segIsInvisible, isDragging, isResizing, isDateSelecting, forcedKey);
+ }
+ renderPositionedFgSegs(segs, // if not mirror, needs to be sorted
+ segIsInvisible, isDragging, isResizing, isDateSelecting, forcedKey) {
+ let { eventMaxStack, eventShortHeight, eventOrderStrict, eventMinHeight } = this.context.options;
+ let { date, slatCoords, eventSelection, todayRange, nowDate } = this.props;
+ let isMirror = isDragging || isResizing || isDateSelecting;
+ let segVCoords = computeSegVCoords(segs, date, slatCoords, eventMinHeight);
+ let { segPlacements, hiddenGroups } = computeFgSegPlacements(segs, segVCoords, eventOrderStrict, eventMaxStack);
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
+ this.renderHiddenGroups(hiddenGroups, segs),
+ segPlacements.map((segPlacement) => {
+ let { seg, rect } = segPlacement;
+ let instanceId = seg.eventRange.instance.instanceId;
+ let isVisible = isMirror || Boolean(!segIsInvisible[instanceId] && rect);
+ let vStyle = computeSegVStyle(rect && rect.span);
+ let hStyle = (!isMirror && rect) ? this.computeSegHStyle(rect) : { left: 0, right: 0 };
+ let isInset = Boolean(rect) && rect.stackForward > 0;
+ let isShort = Boolean(rect) && (rect.span.end - rect.span.start) < eventShortHeight; // look at other places for this problem
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: 'fc-timegrid-event-harness' +
+ (isInset ? ' fc-timegrid-event-harness-inset' : ''), key: forcedKey || instanceId, style: Object.assign(Object.assign({ visibility: isVisible ? '' : 'hidden' }, vStyle), hStyle) },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(TimeColEvent, Object.assign({ seg: seg, isDragging: isDragging, isResizing: isResizing, isDateSelecting: isDateSelecting, isSelected: instanceId === eventSelection, isShort: isShort }, (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bQ)(seg, todayRange, nowDate)))));
+ })));
+ }
+ // will already have eventMinHeight applied because segInputs already had it
+ renderHiddenGroups(hiddenGroups, segs) {
+ let { extraDateSpan, dateProfile, todayRange, nowDate, eventSelection, eventDrag, eventResize } = this.props;
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, hiddenGroups.map((hiddenGroup) => {
+ let positionCss = computeSegVStyle(hiddenGroup.span);
+ let hiddenSegs = compileSegsFromEntries(hiddenGroup.entries, segs);
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(TimeColMoreLink, { key: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bu)((0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cp)(hiddenSegs)), hiddenSegs: hiddenSegs, top: positionCss.top, bottom: positionCss.bottom, extraDateSpan: extraDateSpan, dateProfile: dateProfile, todayRange: todayRange, nowDate: nowDate, eventSelection: eventSelection, eventDrag: eventDrag, eventResize: eventResize }));
+ })));
+ }
+ renderFillSegs(segs, fillType) {
+ let { props, context } = this;
+ let segVCoords = computeSegVCoords(segs, props.date, props.slatCoords, context.options.eventMinHeight); // don't assume all populated
+ let children = segVCoords.map((vcoords, i) => {
+ let seg = segs[i];
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { key: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bR)(seg.eventRange), className: "fc-timegrid-bg-harness", style: computeSegVStyle(vcoords) }, fillType === 'bg-event' ?
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cm, Object.assign({ seg: seg }, (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bQ)(seg, props.todayRange, props.nowDate))) :
+ (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cl)(fillType)));
+ });
+ return (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, children);
+ }
+ renderNowIndicator(segs) {
+ let { slatCoords, date } = this.props;
+ if (!slatCoords) {
+ return null;
+ }
+ return segs.map((seg, i) => ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ch
+ // key doesn't matter. will only ever be one
+ , {
+ // key doesn't matter. will only ever be one
+ key: i, elClasses: ['fc-timegrid-now-indicator-line'], elStyle: {
+ top: slatCoords.computeDateTop(seg.start, date),
+ }, isAxis: false, date: date })));
+ }
+ computeSegHStyle(segHCoords) {
+ let { isRtl, options } = this.context;
+ let shouldOverlap = options.slotEventOverlap;
+ let nearCoord = segHCoords.levelCoord; // the left side if LTR. the right side if RTL. floating-point
+ let farCoord = segHCoords.levelCoord + segHCoords.thickness; // the right side if LTR. the left side if RTL. floating-point
+ let left; // amount of space from left edge, a fraction of the total width
+ let right; // amount of space from right edge, a fraction of the total width
+ if (shouldOverlap) {
+ // double the width, but don't go beyond the maximum forward coordinate (1.0)
+ farCoord = Math.min(1, nearCoord + (farCoord - nearCoord) * 2);
+ }
+ if (isRtl) {
+ left = 1 - farCoord;
+ right = nearCoord;
+ }
+ else {
+ left = nearCoord;
+ right = 1 - farCoord;
+ }
+ let props = {
+ zIndex: segHCoords.stackDepth + 1,
+ left: left * 100 + '%',
+ right: right * 100 + '%',
+ };
+ if (shouldOverlap && !segHCoords.stackForward) {
+ // add padding to the edge so that forward stacked events don't cover the resizer's icon
+ props[isRtl ? 'marginLeft' : 'marginRight'] = 10 * 2; // 10 is a guesstimate of the icon's width
+ }
+ return props;
+ }
+}
+function renderPlainFgSegs(sortedFgSegs, { todayRange, nowDate, eventSelection, eventDrag, eventResize }) {
+ let hiddenInstances = (eventDrag ? eventDrag.affectedInstances : null) ||
+ (eventResize ? eventResize.affectedInstances : null) ||
+ {};
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, sortedFgSegs.map((seg) => {
+ let instanceId = seg.eventRange.instance.instanceId;
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { key: instanceId, style: { visibility: hiddenInstances[instanceId] ? 'hidden' : '' } },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(TimeColEvent, Object.assign({ seg: seg, isDragging: false, isResizing: false, isDateSelecting: false, isSelected: instanceId === eventSelection, isShort: false }, (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bQ)(seg, todayRange, nowDate)))));
+ })));
+}
+function computeSegVStyle(segVCoords) {
+ if (!segVCoords) {
+ return { top: '', bottom: '' };
+ }
+ return {
+ top: segVCoords.start,
+ bottom: -segVCoords.end,
+ };
+}
+function compileSegsFromEntries(segEntries, allSegs) {
+ return segEntries.map((segEntry) => allSegs[segEntry.index]);
+}
+
+class TimeColsContent extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.B {
+ constructor() {
+ super(...arguments);
+ this.splitFgEventSegs = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.z)(splitSegsByCol);
+ this.splitBgEventSegs = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.z)(splitSegsByCol);
+ this.splitBusinessHourSegs = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.z)(splitSegsByCol);
+ this.splitNowIndicatorSegs = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.z)(splitSegsByCol);
+ this.splitDateSelectionSegs = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.z)(splitSegsByCol);
+ this.splitEventDrag = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.z)(splitInteractionByCol);
+ this.splitEventResize = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.z)(splitInteractionByCol);
+ this.rootElRef = (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createRef)();
+ this.cellElRefs = new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.cd();
+ }
+ render() {
+ let { props, context } = this;
+ let nowIndicatorTop = context.options.nowIndicator &&
+ props.slatCoords &&
+ props.slatCoords.safeComputeTop(props.nowDate); // might return void
+ let colCnt = props.cells.length;
+ let fgEventSegsByRow = this.splitFgEventSegs(props.fgEventSegs, colCnt);
+ let bgEventSegsByRow = this.splitBgEventSegs(props.bgEventSegs, colCnt);
+ let businessHourSegsByRow = this.splitBusinessHourSegs(props.businessHourSegs, colCnt);
+ let nowIndicatorSegsByRow = this.splitNowIndicatorSegs(props.nowIndicatorSegs, colCnt);
+ let dateSelectionSegsByRow = this.splitDateSelectionSegs(props.dateSelectionSegs, colCnt);
+ let eventDragByRow = this.splitEventDrag(props.eventDrag, colCnt);
+ let eventResizeByRow = this.splitEventResize(props.eventResize, colCnt);
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: "fc-timegrid-cols", ref: this.rootElRef },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("table", { role: "presentation", style: {
+ minWidth: props.tableMinWidth,
+ width: props.clientWidth,
+ } },
+ props.tableColGroupNode,
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("tbody", { role: "presentation" },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("tr", { role: "row" },
+ props.axis && ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("td", { "aria-hidden": true, className: "fc-timegrid-col fc-timegrid-axis" },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: "fc-timegrid-col-frame" },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: "fc-timegrid-now-indicator-container" }, typeof nowIndicatorTop === 'number' && ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ch, { elClasses: ['fc-timegrid-now-indicator-arrow'], elStyle: { top: nowIndicatorTop }, isAxis: true, date: props.nowDate })))))),
+ props.cells.map((cell, i) => ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(TimeCol, { key: cell.key, elRef: this.cellElRefs.createRef(cell.key), dateProfile: props.dateProfile, date: cell.date, nowDate: props.nowDate, todayRange: props.todayRange, extraRenderProps: cell.extraRenderProps, extraDataAttrs: cell.extraDataAttrs, extraClassNames: cell.extraClassNames, extraDateSpan: cell.extraDateSpan, fgEventSegs: fgEventSegsByRow[i], bgEventSegs: bgEventSegsByRow[i], businessHourSegs: businessHourSegsByRow[i], nowIndicatorSegs: nowIndicatorSegsByRow[i], dateSelectionSegs: dateSelectionSegsByRow[i], eventDrag: eventDragByRow[i], eventResize: eventResizeByRow[i], slatCoords: props.slatCoords, eventSelection: props.eventSelection, forPrint: props.forPrint }))))))));
+ }
+ componentDidMount() {
+ this.updateCoords();
+ }
+ componentDidUpdate() {
+ this.updateCoords();
+ }
+ updateCoords() {
+ let { props } = this;
+ if (props.onColCoords &&
+ props.clientWidth !== null // means sizing has stabilized
+ ) {
+ props.onColCoords(new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.b8(this.rootElRef.current, collectCellEls(this.cellElRefs.currentMap, props.cells), true, // horizontal
+ false));
+ }
+ }
+}
+function collectCellEls(elMap, cells) {
+ return cells.map((cell) => elMap[cell.key]);
+}
+
+/* A component that renders one or more columns of vertical time slots
+----------------------------------------------------------------------------------------------------------------------*/
+class TimeCols extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bc {
+ constructor() {
+ super(...arguments);
+ this.processSlotOptions = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.z)(processSlotOptions);
+ this.state = {
+ slatCoords: null,
+ };
+ this.handleRootEl = (el) => {
+ if (el) {
+ this.context.registerInteractiveComponent(this, {
+ el,
+ isHitComboAllowed: this.props.isHitComboAllowed,
+ });
+ }
+ else {
+ this.context.unregisterInteractiveComponent(this);
+ }
+ };
+ this.handleScrollRequest = (request) => {
+ let { onScrollTopRequest } = this.props;
+ let { slatCoords } = this.state;
+ if (onScrollTopRequest && slatCoords) {
+ if (request.time) {
+ let top = slatCoords.computeTimeTop(request.time);
+ top = Math.ceil(top); // zoom can give weird floating-point values. rather scroll a little bit further
+ if (top) {
+ top += 1; // to overcome top border that slots beyond the first have. looks better
+ }
+ onScrollTopRequest(top);
+ }
+ return true;
+ }
+ return false;
+ };
+ this.handleColCoords = (colCoords) => {
+ this.colCoords = colCoords;
+ };
+ this.handleSlatCoords = (slatCoords) => {
+ this.setState({ slatCoords });
+ if (this.props.onSlatCoords) {
+ this.props.onSlatCoords(slatCoords);
+ }
+ };
+ }
+ render() {
+ let { props, state } = this;
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { className: "fc-timegrid-body", ref: this.handleRootEl, style: {
+ // these props are important to give this wrapper correct dimensions for interactions
+ // TODO: if we set it here, can we avoid giving to inner tables?
+ width: props.clientWidth,
+ minWidth: props.tableMinWidth,
+ } },
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(TimeColsSlats, { axis: props.axis, dateProfile: props.dateProfile, slatMetas: props.slatMetas, clientWidth: props.clientWidth, minHeight: props.expandRows ? props.clientHeight : '', tableMinWidth: props.tableMinWidth, tableColGroupNode: props.axis ? props.tableColGroupNode : null /* axis depends on the colgroup's shrinking */, onCoords: this.handleSlatCoords }),
+ (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(TimeColsContent, { cells: props.cells, axis: props.axis, dateProfile: props.dateProfile, businessHourSegs: props.businessHourSegs, bgEventSegs: props.bgEventSegs, fgEventSegs: props.fgEventSegs, dateSelectionSegs: props.dateSelectionSegs, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, todayRange: props.todayRange, nowDate: props.nowDate, nowIndicatorSegs: props.nowIndicatorSegs, clientWidth: props.clientWidth, tableMinWidth: props.tableMinWidth, tableColGroupNode: props.tableColGroupNode, slatCoords: state.slatCoords, onColCoords: this.handleColCoords, forPrint: props.forPrint })));
+ }
+ componentDidMount() {
+ this.scrollResponder = this.context.createScrollResponder(this.handleScrollRequest);
+ }
+ componentDidUpdate(prevProps) {
+ this.scrollResponder.update(prevProps.dateProfile !== this.props.dateProfile);
+ }
+ componentWillUnmount() {
+ this.scrollResponder.detach();
+ }
+ queryHit(positionLeft, positionTop) {
+ let { dateEnv, options } = this.context;
+ let { colCoords } = this;
+ let { dateProfile } = this.props;
+ let { slatCoords } = this.state;
+ let { snapDuration, snapsPerSlot } = this.processSlotOptions(this.props.slotDuration, options.snapDuration);
+ let colIndex = colCoords.leftToIndex(positionLeft);
+ let slatIndex = slatCoords.positions.topToIndex(positionTop);
+ if (colIndex != null && slatIndex != null) {
+ let cell = this.props.cells[colIndex];
+ let slatTop = slatCoords.positions.tops[slatIndex];
+ let slatHeight = slatCoords.positions.getHeight(slatIndex);
+ let partial = (positionTop - slatTop) / slatHeight; // floating point number between 0 and 1
+ let localSnapIndex = Math.floor(partial * snapsPerSlot); // the snap # relative to start of slat
+ let snapIndex = slatIndex * snapsPerSlot + localSnapIndex;
+ let dayDate = this.props.cells[colIndex].date;
+ let time = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bn)(dateProfile.slotMinTime, (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bm)(snapDuration, snapIndex));
+ let start = dateEnv.add(dayDate, time);
+ let end = dateEnv.add(start, snapDuration);
+ return {
+ dateProfile,
+ dateSpan: Object.assign({ range: { start, end }, allDay: false }, cell.extraDateSpan),
+ dayEl: colCoords.els[colIndex],
+ rect: {
+ left: colCoords.lefts[colIndex],
+ right: colCoords.rights[colIndex],
+ top: slatTop,
+ bottom: slatTop + slatHeight,
+ },
+ layer: 0,
+ };
+ }
+ return null;
+ }
+}
+function processSlotOptions(slotDuration, snapDurationOverride) {
+ let snapDuration = snapDurationOverride || slotDuration;
+ let snapsPerSlot = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.br)(slotDuration, snapDuration);
+ if (snapsPerSlot === null) {
+ snapDuration = slotDuration;
+ snapsPerSlot = 1;
+ // TODO: say warning?
+ }
+ return { snapDuration, snapsPerSlot };
+}
+
+class DayTimeColsSlicer extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bU {
+ sliceRange(range, dayRanges) {
+ let segs = [];
+ for (let col = 0; col < dayRanges.length; col += 1) {
+ let segRange = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.o)(range, dayRanges[col]);
+ if (segRange) {
+ segs.push({
+ start: segRange.start,
+ end: segRange.end,
+ isStart: segRange.start.valueOf() === range.start.valueOf(),
+ isEnd: segRange.end.valueOf() === range.end.valueOf(),
+ col,
+ });
+ }
+ }
+ return segs;
+ }
+}
+
+class DayTimeCols extends _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bc {
+ constructor() {
+ super(...arguments);
+ this.buildDayRanges = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.z)(buildDayRanges);
+ this.slicer = new DayTimeColsSlicer();
+ this.timeColsRef = (0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createRef)();
+ }
+ render() {
+ let { props, context } = this;
+ let { dateProfile, dayTableModel } = props;
+ let { nowIndicator, nextDayThreshold } = context.options;
+ let dayRanges = this.buildDayRanges(dayTableModel, dateProfile, context.dateEnv);
+ // give it the first row of cells
+ // TODO: would move this further down hierarchy, but sliceNowDate needs it
+ return ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.a6, { unit: nowIndicator ? 'minute' : 'day' }, (nowDate, todayRange) => ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(TimeCols, Object.assign({ ref: this.timeColsRef }, this.slicer.sliceProps(props, dateProfile, null, context, dayRanges), { forPrint: props.forPrint, axis: props.axis, dateProfile: dateProfile, slatMetas: props.slatMetas, slotDuration: props.slotDuration, cells: dayTableModel.cells[0], tableColGroupNode: props.tableColGroupNode, tableMinWidth: props.tableMinWidth, clientWidth: props.clientWidth, clientHeight: props.clientHeight, expandRows: props.expandRows, nowDate: nowDate, nowIndicatorSegs: nowIndicator && this.slicer.sliceNowDate(nowDate, dateProfile, nextDayThreshold, context, dayRanges), todayRange: todayRange, onScrollTopRequest: props.onScrollTopRequest, onSlatCoords: props.onSlatCoords })))));
+ }
+}
+function buildDayRanges(dayTableModel, dateProfile, dateEnv) {
+ let ranges = [];
+ for (let date of dayTableModel.headerDates) {
+ ranges.push({
+ start: dateEnv.add(date, dateProfile.slotMinTime),
+ end: dateEnv.add(date, dateProfile.slotMaxTime),
+ });
+ }
+ return ranges;
+}
+
+// potential nice values for the slot-duration and interval-duration
+// from largest to smallest
+const STOCK_SUB_DURATIONS = [
+ { hours: 1 },
+ { minutes: 30 },
+ { minutes: 15 },
+ { seconds: 30 },
+ { seconds: 15 },
+];
+function buildSlatMetas(slotMinTime, slotMaxTime, explicitLabelInterval, slotDuration, dateEnv) {
+ let dayStart = new Date(0);
+ let slatTime = slotMinTime;
+ let slatIterator = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.d)(0);
+ let labelInterval = explicitLabelInterval || computeLabelInterval(slotDuration);
+ let metas = [];
+ while ((0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bq)(slatTime) < (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bq)(slotMaxTime)) {
+ let date = dateEnv.add(dayStart, slatTime);
+ let isLabeled = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.br)(slatIterator, labelInterval) !== null;
+ metas.push({
+ date,
+ time: slatTime,
+ key: date.toISOString(),
+ isoTimeStr: (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bs)(date),
+ isLabeled,
+ });
+ slatTime = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bn)(slatTime, slotDuration);
+ slatIterator = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bn)(slatIterator, slotDuration);
+ }
+ return metas;
+}
+// Computes an automatic value for slotLabelInterval
+function computeLabelInterval(slotDuration) {
+ let i;
+ let labelInterval;
+ let slotsPerLabel;
+ // find the smallest stock label interval that results in more than one slots-per-label
+ for (i = STOCK_SUB_DURATIONS.length - 1; i >= 0; i -= 1) {
+ labelInterval = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.d)(STOCK_SUB_DURATIONS[i]);
+ slotsPerLabel = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.br)(labelInterval, slotDuration);
+ if (slotsPerLabel !== null && slotsPerLabel > 1) {
+ return labelInterval;
+ }
+ }
+ return slotDuration; // fall back
+}
+
+class DayTimeColsView extends TimeColsView {
+ constructor() {
+ super(...arguments);
+ this.buildTimeColsModel = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.z)(buildTimeColsModel);
+ this.buildSlatMetas = (0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.z)(buildSlatMetas);
+ }
+ render() {
+ let { options, dateEnv, dateProfileGenerator } = this.context;
+ let { props } = this;
+ let { dateProfile } = props;
+ let dayTableModel = this.buildTimeColsModel(dateProfile, dateProfileGenerator);
+ let splitProps = this.allDaySplitter.splitProps(props);
+ let slatMetas = this.buildSlatMetas(dateProfile.slotMinTime, dateProfile.slotMaxTime, options.slotLabelInterval, options.slotDuration, dateEnv);
+ let { dayMinWidth } = options;
+ let hasAttachedAxis = !dayMinWidth;
+ let hasDetachedAxis = dayMinWidth;
+ let headerContent = options.dayHeaders && ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bI, { dates: dayTableModel.headerDates, dateProfile: dateProfile, datesRepDistinctDays: true, renderIntro: hasAttachedAxis ? this.renderHeadAxis : null }));
+ let allDayContent = (options.allDaySlot !== false) && ((contentArg) => ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(_fullcalendar_daygrid_internal_js__WEBPACK_IMPORTED_MODULE_2__.DayTable, Object.assign({}, splitProps.allDay, { dateProfile: dateProfile, dayTableModel: dayTableModel, nextDayThreshold: options.nextDayThreshold, tableMinWidth: contentArg.tableMinWidth, colGroupNode: contentArg.tableColGroupNode, renderRowIntro: hasAttachedAxis ? this.renderTableRowAxis : null, showWeekNumbers: false, expandRows: false, headerAlignElRef: this.headerElRef, clientWidth: contentArg.clientWidth, clientHeight: contentArg.clientHeight, forPrint: props.forPrint }, this.getAllDayMaxEventProps()))));
+ let timeGridContent = (contentArg) => ((0,_fullcalendar_core_preact_js__WEBPACK_IMPORTED_MODULE_1__.createElement)(DayTimeCols, Object.assign({}, splitProps.timed, { dayTableModel: dayTableModel, dateProfile: dateProfile, axis: hasAttachedAxis, slotDuration: options.slotDuration, slatMetas: slatMetas, forPrint: props.forPrint, tableColGroupNode: contentArg.tableColGroupNode, tableMinWidth: contentArg.tableMinWidth, clientWidth: contentArg.clientWidth, clientHeight: contentArg.clientHeight, onSlatCoords: this.handleSlatCoords, expandRows: contentArg.expandRows, onScrollTopRequest: this.handleScrollTopRequest })));
+ return hasDetachedAxis
+ ? this.renderHScrollLayout(headerContent, allDayContent, timeGridContent, dayTableModel.colCnt, dayMinWidth, slatMetas, this.state.slatCoords)
+ : this.renderSimpleLayout(headerContent, allDayContent, timeGridContent);
+ }
+}
+function buildTimeColsModel(dateProfile, dateProfileGenerator) {
+ let daySeries = new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bM(dateProfile.renderRange, dateProfileGenerator);
+ return new _fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.bT(daySeries, false);
+}
+
+var css_248z = ".fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:\"\\00a0\"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:\"\\00a0-\\00a0\"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}";
+(0,_fullcalendar_core_internal_js__WEBPACK_IMPORTED_MODULE_0__.ct)(css_248z);
+
+
+
+
+/***/ }),
+
+/***/ "./node_modules/preact/compat/dist/compat.module.js":
+/*!**********************************************************!*\
+ !*** ./node_modules/preact/compat/dist/compat.module.js ***!
+ \**********************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ Children: () => (/* binding */ O),
+/* harmony export */ Component: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.Component),
+/* harmony export */ Fragment: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.Fragment),
+/* harmony export */ PureComponent: () => (/* binding */ w),
+/* harmony export */ StrictMode: () => (/* binding */ vn),
+/* harmony export */ Suspense: () => (/* binding */ D),
+/* harmony export */ SuspenseList: () => (/* binding */ V),
+/* harmony export */ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: () => (/* binding */ rn),
+/* harmony export */ cloneElement: () => (/* binding */ cn),
+/* harmony export */ createContext: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.createContext),
+/* harmony export */ createElement: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.createElement),
+/* harmony export */ createFactory: () => (/* binding */ on),
+/* harmony export */ createPortal: () => (/* binding */ j),
+/* harmony export */ createRef: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.createRef),
+/* harmony export */ "default": () => (/* binding */ bn),
+/* harmony export */ findDOMNode: () => (/* binding */ an),
+/* harmony export */ flushSync: () => (/* binding */ hn),
+/* harmony export */ forwardRef: () => (/* binding */ k),
+/* harmony export */ hydrate: () => (/* binding */ q),
+/* harmony export */ isValidElement: () => (/* binding */ ln),
+/* harmony export */ lazy: () => (/* binding */ M),
+/* harmony export */ memo: () => (/* binding */ R),
+/* harmony export */ render: () => (/* binding */ Y),
+/* harmony export */ startTransition: () => (/* binding */ dn),
+/* harmony export */ unmountComponentAtNode: () => (/* binding */ fn),
+/* harmony export */ unstable_batchedUpdates: () => (/* binding */ sn),
+/* harmony export */ useCallback: () => (/* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useCallback),
+/* harmony export */ useContext: () => (/* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useContext),
+/* harmony export */ useDebugValue: () => (/* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useDebugValue),
+/* harmony export */ useDeferredValue: () => (/* binding */ pn),
+/* harmony export */ useEffect: () => (/* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect),
+/* harmony export */ useErrorBoundary: () => (/* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useErrorBoundary),
+/* harmony export */ useId: () => (/* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useId),
+/* harmony export */ useImperativeHandle: () => (/* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle),
+/* harmony export */ useInsertionEffect: () => (/* binding */ yn),
+/* harmony export */ useLayoutEffect: () => (/* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect),
+/* harmony export */ useMemo: () => (/* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useMemo),
+/* harmony export */ useReducer: () => (/* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useReducer),
+/* harmony export */ useRef: () => (/* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useRef),
+/* harmony export */ useState: () => (/* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState),
+/* harmony export */ useSyncExternalStore: () => (/* binding */ _n),
+/* harmony export */ useTransition: () => (/* binding */ mn),
+/* harmony export */ version: () => (/* binding */ un)
+/* harmony export */ });
+/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! preact */ "./node_modules/preact/dist/preact.module.js");
+/* harmony import */ var preact_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! preact/hooks */ "./node_modules/preact/hooks/dist/hooks.module.js");
+function g(n,t){for(var e in t)n[e]=t[e];return n}function C(n,t){for(var e in n)if("__source"!==e&&!(e in t))return!0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return!0;return!1}function E(n,t){return n===t&&(0!==n||1/n==1/t)||n!=n&&t!=t}function w(n){this.props=n}function R(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return!r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:C(this.props,n)}function u(e){return this.shouldComponentUpdate=r,(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.prototype.isReactComponent=!0,u.__f=!0,u}(w.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).isPureReactComponent=!0,w.prototype.shouldComponentUpdate=function(n,t){return C(this.props,n)||C(this.state,t)};var x=preact__WEBPACK_IMPORTED_MODULE_0__.options.__b;preact__WEBPACK_IMPORTED_MODULE_0__.options.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),x&&x(n)};var N="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function k(n){function t(t){var e=g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=N,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var A=function(n,t){return null==n?null:(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)((0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).map(t))},O={map:A,forEach:A,count:function(n){return n?(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).length:0},only:function(n){var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n);if(1!==t.length)throw"Children.only";return t[0]},toArray:preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray},T=preact__WEBPACK_IMPORTED_MODULE_0__.options.__e;preact__WEBPACK_IMPORTED_MODULE_0__.options.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);T(n,t,e,r)};var I=preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount;function L(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c()}),n.__c.__H=null),null!=(n=g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return L(n,t,e)})),n}function U(n,t,e){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return U(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=e)),n}function D(){this.__u=0,this.t=null,this.__b=null}function F(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function M(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n},function(n){u=n}),u)throw u;if(!r)throw e;return (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(r,o)}return o.displayName="Lazy",o.__f=!0,o}function V(){this.u=null,this.o=null}preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),I&&I(n)},(D.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=F(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l())};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=U(n,n.__c.__P,n.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i)},D.prototype.componentWillUnmount=function(){this.t=[]},D.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=L(this.__b,r,o.__O=o.__P)}this.__b=null}var i=e.__a&&(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,n.fallback);return i&&(i.__h=null),[(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,e.__a?null:n.children),i]};var W=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2]}};function P(n){return this.getChildContext=function(){return n.context},n.children}function $(n){var e=this,r=n.i;e.componentWillUnmount=function(){(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,e.l),e.l=null,e.i=null},e.i&&e.i!==r&&e.componentWillUnmount(),n.__v?(e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,t){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(P,{context:e.context},n.__v),e.l)):e.l&&e.componentWillUnmount()}function j(n,e){var r=(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)($,{__v:n,i:e});return r.containerInfo=e,r}(V.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__a=function(n){var t=this,e=F(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),W(t,n,r)):u()};e?e(o):o()}},V.prototype.render=function(n){this.u=null,this.o=new Map;var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},V.prototype.componentDidUpdate=V.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){W(n,e,t)})};var z="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,B=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,H="undefined"!=typeof document,Z=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};function Y(n,t,e){return null==t.__k&&(t.textContent=""),(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(n,t),"function"==typeof e&&e(),n?n.__c:null}function q(n,t,e){return (0,preact__WEBPACK_IMPORTED_MODULE_0__.hydrate)(n,t),"function"==typeof e&&e(),n?n.__c:null}preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var G=preact__WEBPACK_IMPORTED_MODULE_0__.options.event;function J(){}function K(){return this.cancelBubble}function Q(){return this.defaultPrevented}preact__WEBPACK_IMPORTED_MODULE_0__.options.event=function(n){return G&&(n=G(n)),n.persist=J,n.isPropagationStopped=K,n.isDefaultPrevented=Q,n.nativeEvent=n};var X,nn={configurable:!0,get:function(){return this.class}},tn=preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode;preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode=function(n){var t=n.type,e=n.props,u=e;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in u={},e){var l=e[i];H&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in e&&null==l||("defaultValue"===i&&"value"in e&&null==e.value?i="value":"download"===i&&!0===l?l="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Z(e.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&B.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===l&&(l=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),u[i]&&(i="oninputCapture")),u[i]=l)}"select"==t&&u.multiple&&Array.isArray(u.value)&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(e.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),"select"==t&&null!=u.defaultValue&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(e.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value})),n.props=u,e.class!=e.className&&(nn.enumerable="className"in e,null!=e.className&&(u.class=e.className),Object.defineProperty(u,"className",nn))}n.$$typeof=z,tn&&tn(n)};var en=preact__WEBPACK_IMPORTED_MODULE_0__.options.__r;preact__WEBPACK_IMPORTED_MODULE_0__.options.__r=function(n){en&&en(n),X=n.__c};var rn={ReactCurrentDispatcher:{current:{readContext:function(n){return X.__n[n.__c].props.value}}}},un="17.0.2";function on(n){return preact__WEBPACK_IMPORTED_MODULE_0__.createElement.bind(null,n)}function ln(n){return!!n&&n.$$typeof===z}function cn(n){return ln(n)?preact__WEBPACK_IMPORTED_MODULE_0__.cloneElement.apply(null,arguments):n}function fn(n){return!!n.__k&&((0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,n),!0)}function an(n){return n&&(n.base||1===n.nodeType&&n)||null}var sn=function(n,t){return n(t)},hn=function(n,t){return n(t)},vn=preact__WEBPACK_IMPORTED_MODULE_0__.Fragment;function dn(n){n()}function pn(n){return n}function mn(){return[!1,dn]}var yn=preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect;function _n(n,t){var e=t(),r=(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState)({h:{__:e,v:t}}),u=r[0].h,o=r[1];return (0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(function(){u.__=e,u.v=t,E(u.__,t())||o({h:u})},[n,e,t]),(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function(){return E(u.__,u.v())||o({h:u}),n(function(){E(u.__,u.v())||o({h:u})})},[n]),e}var bn={useState:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState,useId:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useId,useReducer:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useReducer,useEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect,useLayoutEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect,useInsertionEffect:yn,useTransition:mn,useDeferredValue:pn,useSyncExternalStore:_n,startTransition:dn,useRef:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useRef,useImperativeHandle:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle,useMemo:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useMemo,useCallback:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useCallback,useContext:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useContext,useDebugValue:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useDebugValue,version:"17.0.2",Children:O,render:Y,hydrate:q,unmountComponentAtNode:fn,createPortal:j,createElement:preact__WEBPACK_IMPORTED_MODULE_0__.createElement,createContext:preact__WEBPACK_IMPORTED_MODULE_0__.createContext,createFactory:on,cloneElement:cn,createRef:preact__WEBPACK_IMPORTED_MODULE_0__.createRef,Fragment:preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,isValidElement:ln,findDOMNode:an,Component:preact__WEBPACK_IMPORTED_MODULE_0__.Component,PureComponent:w,memo:R,forwardRef:k,flushSync:hn,unstable_batchedUpdates:sn,StrictMode:vn,Suspense:D,SuspenseList:V,lazy:M,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:rn};
+//# sourceMappingURL=compat.module.js.map
+
+
+/***/ }),
+
+/***/ "./node_modules/preact/dist/preact.module.js":
+/*!***************************************************!*\
+ !*** ./node_modules/preact/dist/preact.module.js ***!
+ \***************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ Component: () => (/* binding */ x),
+/* harmony export */ Fragment: () => (/* binding */ _),
+/* harmony export */ cloneElement: () => (/* binding */ F),
+/* harmony export */ createContext: () => (/* binding */ G),
+/* harmony export */ createElement: () => (/* binding */ y),
+/* harmony export */ createRef: () => (/* binding */ d),
+/* harmony export */ h: () => (/* binding */ y),
+/* harmony export */ hydrate: () => (/* binding */ E),
+/* harmony export */ isValidElement: () => (/* binding */ i),
+/* harmony export */ options: () => (/* binding */ l),
+/* harmony export */ render: () => (/* binding */ D),
+/* harmony export */ toChildArray: () => (/* binding */ j)
+/* harmony export */ });
+var n,l,u,i,t,r,o,f,e,c={},s=[],a=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(n,l){for(var u in l)n[u]=l[u];return n}function v(n){var l=n.parentNode;l&&l.removeChild(n)}function y(l,u,i){var t,r,o,f={};for(o in u)"key"==o?t=u[o]:"ref"==o?r=u[o]:f[o]=u[o];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps)void 0===f[o]&&(f[o]=l.defaultProps[o]);return p(l,f,t,r,null)}function p(n,i,t,r,o){var f={type:n,props:i,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++u:o};return null==o&&null!=l.vnode&&l.vnode(f),f}function d(){return{current:null}}function _(n){return n.children}function k(n,l,u,i,t){var r;for(r in u)"children"===r||"key"===r||r in l||g(n,r,null,u[r],i);for(r in l)t&&"function"!=typeof l[r]||"children"===r||"key"===r||"value"===r||"checked"===r||u[r]===l[r]||g(n,r,l[r],u[r],i)}function b(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a.test(l)?u:u+"px"}function g(n,l,u,i,t){var r;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||b(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||b(n.style,l,u[l])}else if("o"===l[0]&&"n"===l[1])r=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?i||n.addEventListener(l,r?w:m,r):n.removeEventListener(l,r?w:m,r);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&-1==l.indexOf("-")?n.removeAttribute(l):n.setAttribute(l,u))}}function m(n){t=!0;try{return this.l[n.type+!1](l.event?l.event(n):n)}finally{t=!1}}function w(n){t=!0;try{return this.l[n.type+!0](l.event?l.event(n):n)}finally{t=!1}}function x(n,l){this.props=n,this.context=l}function A(n,l){if(null==l)return n.__?A(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?A(n):null}function P(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return P(n)}}function C(n){t?setTimeout(n):f(n)}function T(n){(!n.__d&&(n.__d=!0)&&r.push(n)&&!$.__r++||o!==l.debounceRendering)&&((o=l.debounceRendering)||C)($)}function $(){var n,l,u,i,t,o,f,e;for(r.sort(function(n,l){return n.__v.__b-l.__v.__b});n=r.shift();)n.__d&&(l=r.length,i=void 0,t=void 0,f=(o=(u=n).__v).__e,(e=u.__P)&&(i=[],(t=h({},o)).__v=o.__v+1,M(e,o,t,u.__n,void 0!==e.ownerSVGElement,null!=o.__h?[f]:null,i,null==f?A(o):f,o.__h),N(i,o),o.__e!=f&&P(o)),r.length>l&&r.sort(function(n,l){return n.__v.__b-l.__v.__b}));$.__r=0}function H(n,l,u,i,t,r,o,f,e,a){var h,v,y,d,k,b,g,m=i&&i.__k||s,w=m.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(d=u.__k[h]=null==(d=l[h])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?p(null,d,null,null,d):Array.isArray(d)?p(_,{children:d},null,null,null):d.__b>0?p(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)){if(d.__=u,d.__b=u.__b+1,null===(y=m[h])||y&&d.key==y.key&&d.type===y.type)m[h]=void 0;else for(v=0;v<w;v++){if((y=m[v])&&d.key==y.key&&d.type===y.type){m[v]=void 0;break}y=null}M(n,d,y=y||c,t,r,o,f,e,a),k=d.__e,(v=d.ref)&&y.ref!=v&&(g||(g=[]),y.ref&&g.push(y.ref,null,d),g.push(v,d.__c||k,d)),null!=k?(null==b&&(b=k),"function"==typeof d.type&&d.__k===y.__k?d.__d=e=I(d,e,n):e=z(n,d,y,m,k,e),"function"==typeof u.type&&(u.__d=e)):e&&y.__e==e&&e.parentNode!=n&&(e=A(y))}for(u.__e=b,h=w;h--;)null!=m[h]&&("function"==typeof u.type&&null!=m[h].__e&&m[h].__e==u.__d&&(u.__d=L(i).nextSibling),q(m[h],m[h]));if(g)for(h=0;h<g.length;h++)S(g[h],g[++h],g[++h])}function I(n,l,u){for(var i,t=n.__k,r=0;t&&r<t.length;r++)(i=t[r])&&(i.__=n,l="function"==typeof i.type?I(i,l,u):z(u,i,i,t,i.__e,l));return l}function j(n,l){return l=l||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some(function(n){j(n,l)}):l.push(n)),l}function z(n,l,u,i,t,r){var o,f,e;if(void 0!==l.__d)o=l.__d,l.__d=void 0;else if(null==u||t!=r||null==t.parentNode)n:if(null==r||r.parentNode!==n)n.appendChild(t),o=null;else{for(f=r,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,r),o=r}return void 0!==o?o:t.nextSibling}function L(n){var l,u,i;if(null==n.type||"string"==typeof n.type)return n.__e;if(n.__k)for(l=n.__k.length-1;l>=0;l--)if((u=n.__k[l])&&(i=L(u)))return i;return null}function M(n,u,i,t,r,o,f,e,c){var s,a,v,y,p,d,k,b,g,m,w,A,P,C,T,$=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,o=[e]),(s=l.__b)&&s(u);try{n:if("function"==typeof $){if(b=u.props,g=(s=$.contextType)&&t[s.__c],m=s?g?g.props.value:s.__:t,i.__c?k=(a=u.__c=i.__c).__=a.__E:("prototype"in $&&$.prototype.render?u.__c=a=new $(b,m):(u.__c=a=new x(b,m),a.constructor=$,a.render=B),g&&g.sub(a),a.props=b,a.state||(a.state={}),a.context=m,a.__n=t,v=a.__d=!0,a.__h=[],a._sb=[]),null==a.__s&&(a.__s=a.state),null!=$.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=h({},a.__s)),h(a.__s,$.getDerivedStateFromProps(b,a.__s))),y=a.props,p=a.state,a.__v=u,v)null==$.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==$.getDerivedStateFromProps&&b!==y&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(b,m),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(b,a.__s,m)||u.__v===i.__v){for(u.__v!==i.__v&&(a.props=b,a.state=a.__s,a.__d=!1),u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u)}),w=0;w<a._sb.length;w++)a.__h.push(a._sb[w]);a._sb=[],a.__h.length&&f.push(a);break n}null!=a.componentWillUpdate&&a.componentWillUpdate(b,a.__s,m),null!=a.componentDidUpdate&&a.__h.push(function(){a.componentDidUpdate(y,p,d)})}if(a.context=m,a.props=b,a.__P=n,A=l.__r,P=0,"prototype"in $&&$.prototype.render){for(a.state=a.__s,a.__d=!1,A&&A(u),s=a.render(a.props,a.state,a.context),C=0;C<a._sb.length;C++)a.__h.push(a._sb[C]);a._sb=[]}else do{a.__d=!1,A&&A(u),s=a.render(a.props,a.state,a.context),a.state=a.__s}while(a.__d&&++P<25);a.state=a.__s,null!=a.getChildContext&&(t=h(h({},t),a.getChildContext())),v||null==a.getSnapshotBeforeUpdate||(d=a.getSnapshotBeforeUpdate(y,p)),T=null!=s&&s.type===_&&null==s.key?s.props.children:s,H(n,Array.isArray(T)?T:[T],u,i,t,r,o,f,e,c),a.base=u.__e,u.__h=null,a.__h.length&&f.push(a),k&&(a.__E=a.__=null),a.__e=!1}else null==o&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=O(i.__e,u,i,t,r,o,f,c);(s=l.diffed)&&s(u)}catch(n){u.__v=null,(c||null!=o)&&(u.__e=e,u.__h=!!c,o[o.indexOf(e)]=null),l.__e(n,u,i)}}function N(n,u){l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function O(l,u,i,t,r,o,f,e){var s,a,h,y=i.props,p=u.props,d=u.type,_=0;if("svg"===d&&(r=!0),null!=o)for(;_<o.length;_++)if((s=o[_])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,o[_]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=r?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),o=null,e=!1}if(null===d)y===p||e&&l.data===p||(l.data=p);else{if(o=o&&n.call(l.childNodes),a=(y=i.props||c).dangerouslySetInnerHTML,h=p.dangerouslySetInnerHTML,!e){if(null!=o)for(y={},_=0;_<l.attributes.length;_++)y[l.attributes[_].name]=l.attributes[_].value;(h||a)&&(h&&(a&&h.__html==a.__html||h.__html===l.innerHTML)||(l.innerHTML=h&&h.__html||""))}if(k(l,p,y,r,e),h)u.__k=[];else if(_=u.props.children,H(l,Array.isArray(_)?_:[_],u,i,t,r&&"foreignObject"!==d,o,f,o?o[0]:i.__k&&A(i,0),e),null!=o)for(_=o.length;_--;)null!=o[_]&&v(o[_]);e||("value"in p&&void 0!==(_=p.value)&&(_!==l.value||"progress"===d&&!_||"option"===d&&_!==y.value)&&g(l,"value",_,y.value,!1),"checked"in p&&void 0!==(_=p.checked)&&_!==l.checked&&g(l,"checked",_,y.checked,!1))}return l}function S(n,u,i){try{"function"==typeof n?n(u):n.current=u}catch(n){l.__e(n,i)}}function q(n,u,i){var t,r;if(l.unmount&&l.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||S(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount()}catch(n){l.__e(n,u)}t.base=t.__P=null,n.__c=void 0}if(t=n.__k)for(r=0;r<t.length;r++)t[r]&&q(t[r],u,i||"function"!=typeof n.type);i||null==n.__e||v(n.__e),n.__=n.__e=n.__d=void 0}function B(n,l,u){return this.constructor(n,u)}function D(u,i,t){var r,o,f;l.__&&l.__(u,i),o=(r="function"==typeof t)?null:t&&t.__k||i.__k,f=[],M(i,u=(!r&&t||i).__k=y(_,null,[u]),o||c,c,void 0!==i.ownerSVGElement,!r&&t?[t]:o?null:i.firstChild?n.call(i.childNodes):null,f,!r&&t?t:o?o.__e:i.firstChild,r),N(f,u)}function E(n,l){D(n,l,E)}function F(l,u,i){var t,r,o,f=h({},l.props);for(o in u)"key"==o?t=u[o]:"ref"==o?r=u[o]:f[o]=u[o];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),p(l.type,f,t||l.key,r||l.ref,null)}function G(n,l){var u={__c:l="__cC"+e++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,T(n)})},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=s.slice,l={__e:function(n,l,u,i){for(var t,r,o;l=l.__;)if((t=l.__c)&&!t.__)try{if((r=t.constructor)&&null!=r.getDerivedStateFromError&&(t.setState(r.getDerivedStateFromError(n)),o=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),o=t.__d),o)return t.__E=t}catch(l){n=l}throw n}},u=0,i=function(n){return null!=n&&void 0===n.constructor},t=!1,x.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof n&&(n=n(h({},u),this.props)),n&&h(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),T(this))},x.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),T(this))},x.prototype.render=_,r=[],f="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,$.__r=0,e=0;
+//# sourceMappingURL=preact.module.js.map
+
+
+/***/ }),
+
+/***/ "./node_modules/preact/hooks/dist/hooks.module.js":
+/*!********************************************************!*\
+ !*** ./node_modules/preact/hooks/dist/hooks.module.js ***!
+ \********************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ useCallback: () => (/* binding */ T),
+/* harmony export */ useContext: () => (/* binding */ q),
+/* harmony export */ useDebugValue: () => (/* binding */ x),
+/* harmony export */ useEffect: () => (/* binding */ h),
+/* harmony export */ useErrorBoundary: () => (/* binding */ P),
+/* harmony export */ useId: () => (/* binding */ V),
+/* harmony export */ useImperativeHandle: () => (/* binding */ A),
+/* harmony export */ useLayoutEffect: () => (/* binding */ s),
+/* harmony export */ useMemo: () => (/* binding */ F),
+/* harmony export */ useReducer: () => (/* binding */ y),
+/* harmony export */ useRef: () => (/* binding */ _),
+/* harmony export */ useState: () => (/* binding */ p)
+/* harmony export */ });
+/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! preact */ "./node_modules/preact/dist/preact.module.js");
+var t,r,u,i,o=0,f=[],c=[],e=preact__WEBPACK_IMPORTED_MODULE_0__.options.__b,a=preact__WEBPACK_IMPORTED_MODULE_0__.options.__r,v=preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed,l=preact__WEBPACK_IMPORTED_MODULE_0__.options.__c,m=preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount;function d(t,u){preact__WEBPACK_IMPORTED_MODULE_0__.options.__h&&preact__WEBPACK_IMPORTED_MODULE_0__.options.__h(r,t,o||u),o=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function p(n){return o=1,y(B,n)}function y(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=r,!r.u)){r.u=!0;var f=r.shouldComponentUpdate;r.shouldComponentUpdate=function(n,t,r){if(!o.__c.__H)return!0;var u=o.__c.__H.__.filter(function(n){return n.__c});if(u.every(function(n){return!n.__N}))return!f||f.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}}),!(!i&&o.__c.props===n)&&(!f||f.call(this,n,t,r))}}return o.__N||o.__}function h(u,i){var o=d(t++,3);!preact__WEBPACK_IMPORTED_MODULE_0__.options.__s&&z(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o))}function s(u,i){var o=d(t++,4);!preact__WEBPACK_IMPORTED_MODULE_0__.options.__s&&z(o.__H,i)&&(o.__=u,o.i=i,r.__h.push(o))}function _(n){return o=5,F(function(){return{current:n}},[])}function A(n,t,r){o=6,s(function(){return"function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n))}function F(n,r){var u=d(t++,7);return z(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T(n,t){return o=8,F(function(){return n},t)}function q(n){var u=r.context[n.__c],i=d(t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function x(t,r){preact__WEBPACK_IMPORTED_MODULE_0__.options.useDebugValue&&preact__WEBPACK_IMPORTED_MODULE_0__.options.useDebugValue(r?r(t):t)}function P(n){var u=d(t++,10),i=p();return u.__=n,r.componentDidCatch||(r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n)}),[i[0],function(){i[1](void 0)}]}function V(){var n=d(t++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++}return n.__}function b(){for(var t;t=f.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k),t.__H.__h.forEach(w),t.__H.__h=[]}catch(r){t.__H.__h=[],preact__WEBPACK_IMPORTED_MODULE_0__.options.__e(r,t.__v)}}preact__WEBPACK_IMPORTED_MODULE_0__.options.__b=function(n){r=null,e&&e(n)},preact__WEBPACK_IMPORTED_MODULE_0__.options.__r=function(n){a&&a(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0})):(i.__h.forEach(k),i.__h.forEach(w),i.__h=[])),u=r},preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f.push(o)&&i===preact__WEBPACK_IMPORTED_MODULE_0__.options.requestAnimationFrame||((i=preact__WEBPACK_IMPORTED_MODULE_0__.options.requestAnimationFrame)||j)(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c})),u=r=null},preact__WEBPACK_IMPORTED_MODULE_0__.options.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k),t.__h=t.__h.filter(function(n){return!n.__||w(n)})}catch(u){r.some(function(n){n.__h&&(n.__h=[])}),r=[],preact__WEBPACK_IMPORTED_MODULE_0__.options.__e(u,t.__v)}}),l&&l(t,r)},preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount=function(t){m&&m(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k(n)}catch(n){r=n}}),u.__H=void 0,r&&preact__WEBPACK_IMPORTED_MODULE_0__.options.__e(r,u.__v))};var g="function"==typeof requestAnimationFrame;function j(n){var t,r=function(){clearTimeout(u),g&&cancelAnimationFrame(t),setTimeout(n)},u=setTimeout(r,100);g&&(t=requestAnimationFrame(r))}function k(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t}function w(n){var t=r;n.__c=n.__(),r=t}function z(n,t){return!n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B(n,t){return"function"==typeof t?t(n):t}
+//# sourceMappingURL=hooks.module.js.map
+
+
+/***/ })
+
+/******/ });
+/************************************************************************/
+/******/ // The module cache
+/******/ var __webpack_module_cache__ = {};
+/******/
+/******/ // The require function
+/******/ function __webpack_require__(moduleId) {
+/******/ // Check if module is in cache
+/******/ var cachedModule = __webpack_module_cache__[moduleId];
+/******/ if (cachedModule !== undefined) {
+/******/ return cachedModule.exports;
+/******/ }
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = __webpack_module_cache__[moduleId] = {
+/******/ // no module.id needed
+/******/ // no module.loaded needed
+/******/ exports: {}
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/************************************************************************/
+/******/ /* webpack/runtime/define property getters */
+/******/ (() => {
+/******/ // define getter functions for harmony exports
+/******/ __webpack_require__.d = (exports, definition) => {
+/******/ for(var key in definition) {
+/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
+/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
+/******/ }
+/******/ }
+/******/ };
+/******/ })();
+/******/
+/******/ /* webpack/runtime/hasOwnProperty shorthand */
+/******/ (() => {
+/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
+/******/ })();
+/******/
+/******/ /* webpack/runtime/make namespace object */
+/******/ (() => {
+/******/ // define __esModule on exports
+/******/ __webpack_require__.r = (exports) => {
+/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
+/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
+/******/ }
+/******/ Object.defineProperty(exports, '__esModule', { value: true });
+/******/ };
+/******/ })();
+/******/
+/************************************************************************/
+var __webpack_exports__ = {};
+// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
+(() => {
+/*!*************************************************!*\
+ !*** ./resources/assets/js/snipeit-calendar.js ***!
+ \*************************************************/
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _fullcalendar_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fullcalendar/core */ "./node_modules/@fullcalendar/core/index.js");
+/* harmony import */ var _fullcalendar_daygrid__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fullcalendar/daygrid */ "./node_modules/@fullcalendar/daygrid/index.js");
+/* harmony import */ var _fullcalendar_interaction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fullcalendar/interaction */ "./node_modules/@fullcalendar/interaction/index.js");
+/* harmony import */ var _fullcalendar_list__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fullcalendar/list */ "./node_modules/@fullcalendar/list/index.js");
+/* harmony import */ var _fullcalendar_timegrid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fullcalendar/timegrid */ "./node_modules/@fullcalendar/timegrid/index.js");
+/**
+ * Snipe-IT calendar init.
+ *
+ * Thin wrapper around FullCalendar v6 that per-entity calendar pages
+ * call via a single global (window.snipeitCalendar.init). The reason
+ * for the wrapper is that we expect several calendar views over time
+ * (maintenances is the first, but expected asset checkins, upcoming
+ * audits, user end_dates and similar are already on the list) and
+ * having each blade page duplicate the FullCalendar wiring would
+ * create N places to keep in sync when we upgrade or change defaults.
+ *
+ * Usage from a blade page:
+ *
+ * <div id="my-calendar"></div>
+ * <script>
+ * window.snipeitCalendar.init('my-calendar', {
+ * events: '/api/v1/whatever/events', // JSON feed URL
+ * initialView: 'dayGridMonth', // optional, default
+ * locale: 'en', // optional
+ * });
+ * </script>
+ *
+ * The events endpoint must return FullCalendar's event object shape:
+ * [ { id, title, start, end?, url?, color?, extendedProps? }, ... ]
+ * FullCalendar sends `start` and `end` query params for the range it
+ * needs; the server can either honor them (recommended) or ignore
+ * and always return the full set.
+ */
+
+
+
+
+
+
+
+/**
+ * Fetch events from our own /api/v1/... endpoints with the session
+ * X-CSRF-TOKEN header attached, matching how every bootstrap-table
+ * datatable authenticates browser calls to Snipe-IT's API. Without
+ * this header the /api/v1/* routes reject session-authed browser
+ * requests, and the calendar renders empty even though the query
+ * returns rows. Passes through FullCalendar's `start` and `end`
+ * range as query params so the server-side range filter works.
+ *
+ * The optional `state` object lets per-calendar UI (like filter
+ * buttons) inject additional query params into every fetch. Read on
+ * each call so mutating state.filter and triggering refetchEvents()
+ * ships the new value on the very next request without rebuilding
+ * the events source. `state.filter` can be a string (legacy single-
+ * select mode, unified maintenance events endpoint) or a Set of
+ * strings (multi-select mode - passed as ?filter=a,b so the endpoint
+ * can WHERE-IN them).
+ */
+function fetchEventsFromSnipeApi(url, state) {
+ return function (fetchInfo, successCallback, failureCallback) {
+ var csrfMeta = document.querySelector('meta[name="csrf-token"]');
+ var csrfToken = csrfMeta ? csrfMeta.getAttribute('content') : '';
+ var separator = url.includes('?') ? '&' : '?';
+ var params = new URLSearchParams({
+ start: fetchInfo.startStr,
+ end: fetchInfo.endStr
+ });
+ if (state && state.limit) {
+ params.set('limit', String(state.limit));
+ }
+ if (state && state.filter) {
+ if (state.filter instanceof Set && state.filter.size > 0) {
+ params.set('filter', Array.from(state.filter).join(','));
+ Array.from(state.filter).forEach(function (v) {
+ params.append('event_type[]', v);
+ });
+ } else if (typeof state.filter === 'string') {
+ params.set('filter', state.filter);
+ }
+ }
+ fetch(url + separator + params.toString(), {
+ method: 'GET',
+ credentials: 'same-origin',
+ headers: {
+ 'Accept': 'application/json',
+ 'X-CSRF-TOKEN': csrfToken,
+ 'X-Requested-With': 'XMLHttpRequest'
+ }
+ }).then(function (response) {
+ if (!response.ok) {
+ throw new Error('Events fetch failed: ' + response.status);
+ }
+ return response.json();
+ }).then(function (data) {
+ // Backend wraps events in { events, truncated, total }
+ // so the frontend can surface a "narrowing filters"
+ // banner when the server-side cap is hit. Tolerates the
+ // bare-array shape too so any legacy caller keeps
+ // working.
+ var events = Array.isArray(data) ? data : data.events || [];
+ if (state && typeof state.onFetchMeta === 'function') {
+ state.onFetchMeta({
+ truncated: !!(data && data.truncated),
+ total: data ? data.total : events.length,
+ returned: events.length
+ });
+ }
+ successCallback(events);
+ })["catch"](function (err) {
+ failureCallback(err);
+ });
+ };
+}
+
+/**
+ * Build FullCalendar customButtons + toolbar-slot string from a
+ * per-calendar filter-button config. Two modes:
+ *
+ * - Single-select (default): each click sets state.filter to that
+ * button's name and clears the others. Matches the
+ * "completed / active / due_soon" pattern used by the maintenance-
+ * scoped events endpoint.
+ * - Multi-select (opts.multi === true): each click toggles that
+ * button's name in a Set on state.filter. Empty Set = "show
+ * everything". Matches the unified calendar's "show maintenance
+ * / audits / checkins / etc." checkbox-cluster UI.
+ *
+ * Also flips a `.fc-button-active` class on the just-clicked button
+ * so users see which filter(s) are currently applied.
+ */
+function buildFilterButtons(filterButtons, state, getCalendar, opts) {
+ var multi = !!(opts && opts.multi);
+ var urlStateEnabled = !(opts && opts.urlState === false);
+ if (multi && !(state.filter instanceof Set)) {
+ // Normalize state.filter to a Set for multi mode - callers
+ // can pass a plain array (or null / undefined) in config and
+ // we'll wrap it up.
+ state.filter = new Set(Array.isArray(state.filter) ? state.filter : []);
+ }
+
+ // Render as native DOM in a container that lives above the
+ // calendar element. Previously these were injected into
+ // FullCalendar's headerToolbar `left` slot, which shoved the
+ // month title far to the right on views where the title is
+ // centered. Native-DOM rendering keeps FC's own toolbar
+ // (prev/next/today/title/views) intact and gives filters their
+ // own row above.
+ var container = document.createElement('div');
+ container.className = 'snipeit-calendar-filters';
+ container.setAttribute('role', 'group');
+ container.setAttribute('aria-label', 'Calendar filters');
+ var buttonNodes = {};
+ filterButtons.forEach(function (btn) {
+ var buttonEl = document.createElement('button');
+ buttonEl.type = 'button';
+ // .btn-theme is Snipe-IT's own themed-color button chrome
+ // (defined in overrides.less); .snipeit-calendar-filter-button
+ // is our own hook that layers the checkmark + selected-state
+ // ring on top. FullCalendar's .fc-button styles are scoped
+ // inside `.fc` and don't apply to buttons rendered outside the
+ // calendar element, which is why the earlier fc-button chrome
+ // fell back to OS defaults.
+ buttonEl.className = 'btn btn-theme btn-sm snipeit-calendar-filter-button';
+ buttonEl.textContent = btn.text;
+ buttonEl.setAttribute('aria-pressed', 'false');
+ buttonEl.dataset.filterName = btn.name;
+ buttonEl.addEventListener('click', function () {
+ if (multi) {
+ if (state.filter.has(btn.name)) {
+ state.filter["delete"](btn.name);
+ buttonEl.classList.remove('active');
+ buttonEl.setAttribute('aria-pressed', 'false');
+ } else {
+ state.filter.add(btn.name);
+ buttonEl.classList.add('active');
+ buttonEl.setAttribute('aria-pressed', 'true');
+ }
+ } else {
+ state.filter = btn.name;
+ Object.keys(buttonNodes).forEach(function (otherName) {
+ buttonNodes[otherName].classList.remove('active');
+ buttonNodes[otherName].setAttribute('aria-pressed', 'false');
+ });
+ buttonEl.classList.add('active');
+ buttonEl.setAttribute('aria-pressed', 'true');
+ }
+ if (urlStateEnabled) {
+ writeUrlState({
+ filter: serializeFilterForUrl(state.filter)
+ });
+ }
+ var calendar = getCalendar();
+ if (calendar) calendar.refetchEvents();
+ });
+ container.appendChild(buttonEl);
+ buttonNodes[btn.name] = buttonEl;
+ });
+ return {
+ container: container,
+ buttonNodes: buttonNodes
+ };
+}
+
+/**
+ * Convert a PHP date() format string (what Snipe-IT stores in
+ * settings.date_display_format and user overrides thereof) into a
+ * FullCalendar / Cmdlet-style format string. Only handles the tokens
+ * Snipe-IT actually uses in its shipped date-format options; unknown
+ * tokens pass through as literal characters, which is safe because
+ * the Cmdlet parser treats them as verbatim text.
+ *
+ * Used to feed dayPopoverFormat + potentially other locale-aware
+ * FullCalendar format slots so the calendar's date labels read the
+ * same way dates read in the rest of the app.
+ */
+function phpDateFormatToFullCalendar(phpFormat) {
+ if (!phpFormat) return '';
+ var map = {
+ 'Y': 'yyyy',
+ 'y': 'yy',
+ 'F': 'MMMM',
+ 'M': 'MMM',
+ 'm': 'MM',
+ 'n': 'M',
+ 'l': 'dddd',
+ 'D': 'ddd',
+ 'd': 'dd',
+ 'j': 'd',
+ 'H': 'HH',
+ 'G': 'H',
+ 'h': 'hh',
+ 'g': 'h',
+ 'i': 'mm',
+ 's': 'ss',
+ 'a': 'a',
+ 'A': 'A'
+ };
+ var out = '';
+ for (var i = 0; i < phpFormat.length; i++) {
+ var c = phpFormat[i];
+ out += Object.prototype.hasOwnProperty.call(map, c) ? map[c] : c;
+ }
+ return out;
+}
+
+/**
+ * URL <-> calendar-state syncing. Reads ?date, ?view, ?filter on
+ * init and applies them as initial state; writes them back on
+ * navigation (prev/next/today), view change, and filter click so
+ * the current URL is always a shareable deep-link into the exact
+ * state the user is looking at.
+ *
+ * ?date=YYYY-MM-DD - FullCalendar's initialDate
+ * ?view=dayGridMonth - initialView (whatever plugins support)
+ * ?filter=a,b,c - comma-separated event_type list (multi
+ * mode) or single event_type (single mode)
+ *
+ * Uses replaceState rather than pushState so a scroll through
+ * months doesn't stuff the browser back-stack with every visited
+ * date. Users who want history entries can bookmark specific URLs.
+ */
+function readUrlState() {
+ var params = new URLSearchParams(window.location.search);
+ return {
+ date: params.get('date'),
+ view: params.get('view'),
+ filter: params.get('filter')
+ };
+}
+
+/**
+ * Format a Date as YYYY-MM-DD using its LOCAL components. FullCalendar
+ * hands us a Date whose midnight is in the browser's local timezone;
+ * calling .toISOString() first shifts it to UTC and then serializes,
+ * which subtracts hours in UTC+N zones. That collapsed "Aug 1 local"
+ * into "Jul 31 UTC" for anyone east of Greenwich, so reloading after
+ * a Today click bounced them to the prior month. Reading local
+ * getFullYear/getMonth/getDate keeps the calendar day stable no
+ * matter the timezone.
+ */
+function toLocalYmd(date) {
+ var y = date.getFullYear();
+ var m = String(date.getMonth() + 1).padStart(2, '0');
+ var d = String(date.getDate()).padStart(2, '0');
+ return y + '-' + m + '-' + d;
+}
+function writeUrlState(patch) {
+ var params = new URLSearchParams(window.location.search);
+ Object.keys(patch).forEach(function (key) {
+ var value = patch[key];
+ if (value === null || value === undefined || value === '') {
+ params["delete"](key);
+ } else {
+ params.set(key, value);
+ }
+ });
+ var qs = params.toString();
+ var url = window.location.pathname + (qs ? '?' + qs : '') + window.location.hash;
+ window.history.replaceState(null, '', url);
+}
+function serializeFilterForUrl(filter) {
+ if (filter instanceof Set) {
+ return filter.size > 0 ? Array.from(filter).join(',') : null;
+ }
+ if (typeof filter === 'string' && filter) {
+ return filter;
+ }
+ return null;
+}
+function init(elementId, config) {
+ var el = document.getElementById(elementId);
+ if (!el) {
+ return null;
+ }
+
+ // URL-state read-in. Callers opt out with `urlState: false` in
+ // config (default is on), for e.g. dashboard-widget calendars
+ // that shouldn't try to steal the page's URL. Read once at init
+ // time; the initial state comes from URL if present, from
+ // config otherwise.
+ var urlStateEnabled = config.urlState !== false;
+ var urlState = urlStateEnabled ? readUrlState() : {
+ date: null,
+ view: null,
+ filter: null
+ };
+
+ // Shared state that fetchEventsFromSnipeApi reads on each fetch.
+ // The filter-buttons machinery below mutates state.filter and
+ // triggers refetchEvents(), which re-runs the fetcher, which
+ // picks up the new filter as a query param. Externalizing state
+ // lets buttons and any future controls (search box, category
+ // multi-select, etc.) coordinate through one object.
+ var initialFilter = config.filter || null;
+ if (urlState.filter) {
+ // Multi-mode caller (filterMulti: true) always parses to an
+ // array; single-mode gets the raw string. buildFilterButtons
+ // wraps the array as a Set later.
+ initialFilter = config.filterMulti ? urlState.filter.split(',').filter(Boolean) : urlState.filter;
+ }
+ var state = {
+ filter: initialFilter,
+ limit: config.limit || null,
+ onFetchMeta: typeof config.onFetchMeta === 'function' ? config.onFetchMeta : null
+ };
+
+ // Late-bind calendar so button handlers can grab the instance
+ // (the calendar isn't constructed yet at the time customButtons
+ // is defined). Assigned right before .render() below.
+ var calendarInstance = null;
+ var getCalendar = function getCalendar() {
+ return calendarInstance;
+ };
+
+ // Callers pass `events` as a URL (most common: our own /api/v1
+ // events endpoint). Wrap that URL in the CSRF-authed fetcher so
+ // the API accepts the request. Callers who pass a function
+ // themselves get to skip this and manage the fetch on their own.
+ var eventsSource = config.events;
+ if (typeof eventsSource === 'string') {
+ eventsSource = fetchEventsFromSnipeApi(eventsSource, state);
+ }
+
+ // If the caller declared filter buttons, build a standalone DOM
+ // container that gets inserted *above* the calendar element (not
+ // into FullCalendar's headerToolbar). Keeps the FC toolbar clean
+ // so the month title stays centered instead of getting shoved to
+ // the right by an inline row of filter chips.
+ var filterContainer = null;
+ var filterButtonNodes = {};
+ if (Array.isArray(config.filterButtons) && config.filterButtons.length > 0) {
+ var built = buildFilterButtons(config.filterButtons, state, getCalendar, {
+ multi: !!config.filterMulti,
+ urlState: urlStateEnabled
+ });
+ filterContainer = built.container;
+ filterButtonNodes = built.buttonNodes;
+ el.parentNode.insertBefore(filterContainer, el);
+ }
+ var options = Object.assign({
+ initialView: urlState.view || 'dayGridMonth',
+ initialDate: urlState.date || undefined,
+ headerToolbar: {
+ left: 'prev,next today',
+ center: 'title',
+ right: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek'
+ },
+ height: 'auto',
+ // firstDay follows the site-wide week_start (0=Sun, 1=Mon,
+ // etc.) that layouts/default.blade.php already publishes
+ // via window.snipeit.settings.first_day_of_week. Falls back
+ // to 0 (Sunday) when the calendar is loaded on a page that
+ // hasn't set it.
+ firstDay: window.snipeit && window.snipeit.settings && typeof window.snipeit.settings.first_day_of_week === 'number' ? window.snipeit.settings.first_day_of_week : 0,
+ // If the event object carries a `url`, clicking it navigates
+ // via a normal same-tab link rather than a popup. Individual
+ // callers can override with their own eventClick handler.
+ eventClick: config.eventClick || function (info) {
+ if (info.event.url) {
+ info.jsEvent.preventDefault();
+ window.location.href = info.event.url;
+ }
+ },
+ // datesSet fires on every navigation (prev/next/today) AND
+ // on view change AND on initial render. Write the current
+ // date + view back to the URL so scrolling around leaves
+ // a shareable link at every step. Skipped when the caller
+ // opted out of URL syncing via urlState: false.
+ datesSet: function datesSet(arg) {
+ if (!urlStateEnabled) return;
+ writeUrlState({
+ date: toLocalYmd(arg.view.currentStart),
+ view: arg.view.type
+ });
+ }
+ },
+ // Allow per-page overrides for any of the above.
+ config);
+
+ // plugins + events are always set by us - callers can't drop the
+ // plugins without breaking the calendar, and the wrapped events
+ // source above needs to win over the raw string from config.
+ // dayGrid: month view (default calendar page look).
+ // timeGrid: week/day views with hour-of-day rails, matches
+ // https://fullcalendar.io/docs/timegrid-view.
+ // list: agenda-style list view used by dashboard/today widgets
+ // and as a text-first alternative for a11y users.
+ // interaction: click / drag / select handlers - always required.
+ options.plugins = [_fullcalendar_daygrid__WEBPACK_IMPORTED_MODULE_0__["default"], _fullcalendar_timegrid__WEBPACK_IMPORTED_MODULE_1__["default"], _fullcalendar_list__WEBPACK_IMPORTED_MODULE_2__["default"], _fullcalendar_interaction__WEBPACK_IMPORTED_MODULE_3__["default"]];
+ options.events = eventsSource;
+
+ // dayPopoverFormat controls the header of the "+N more" popover
+ // for days that carry too many events to fit inline. When the
+ // caller passes a phpDateFormat (from the site's setting or the
+ // per-user override), convert to FullCalendar's token style so
+ // the popover date reads the same as dates elsewhere in Snipe-IT.
+ // Left as-is if the caller doesn't provide one - FullCalendar's
+ // locale-aware default takes over.
+ if (config.phpDateFormat && !options.dayPopoverFormat) {
+ options.dayPopoverFormat = phpDateFormatToFullCalendar(config.phpDateFormat);
+ }
+ calendarInstance = new _fullcalendar_core__WEBPACK_IMPORTED_MODULE_4__.Calendar(el, options);
+ calendarInstance.render();
+
+ // Prime the "active" visual state on the initially-selected
+ // filter button(s) so the UI reflects state.filter from the
+ // start. Single-mode uses one string; multi-mode uses a Set.
+ if (filterContainer) {
+ var initialActive = state.filter instanceof Set ? Array.from(state.filter) : state.filter ? [state.filter] : [];
+ initialActive.forEach(function (name) {
+ var btn = filterButtonNodes[name];
+ if (btn) {
+ btn.classList.add('active');
+ btn.setAttribute('aria-pressed', 'true');
+ }
+ });
+ }
+ return calendarInstance;
+}
+window.snipeitCalendar = {
+ init: init
+};
+})();
+
+/******/ })()
+;
+//# sourceMappingURL=snipeit-calendar.js.map
\ No newline at end of file
diff --git a/public/js/dist/snipeit-calendar.js.map b/public/js/dist/snipeit-calendar.js.map
new file mode 100644
index 0000000000..1240cfb22c
--- /dev/null
+++ b/public/js/dist/snipeit-calendar.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"/js/dist/snipeit-calendar.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAo/C;AACt7C;AACM;AAC7C;;AAEvB;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,WAAW;AACrC,SAAS;AACT,KAAK;AACL,uBAAuB,UAAU,YAAY,0BAA0B;AACvE,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C;AAC1C;AACA;AACA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA,mCAAmC,OAAO;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,sDAAU;AAC3B,wBAAwB;AACxB,UAAU,OAAO;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,sDAAI;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD;AAChD;AACA,4DAA4D;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA,8DAA8D;AAC9D;AACA,sDAAsD;AACtD,kDAAkD;AAClD,oDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA,4BAA4B;AAC5B,0BAA0B;AAC1B,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,WAAW;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,sDAAa,wCAAwC,sDAAa;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA,2DAA2D;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D;AAC5D;AACA,wDAAwD;AACxD,sDAAsD;AACtD,uDAAuD;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,4BAA4B,kDAAK;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D;AAC5D;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA,gDAAgD,oCAAoC,kDAAkD;AACtI,iDAAiD,qCAAqC,oDAAoD;AAC1I;AACA;;AAEA;AACA,WAAW,sDAAO;AAClB;AACA;AACA;AACA,UAAU,mBAAmB;AAC7B;AACA,UAAU,YAAY;AACtB;AACA;AACA;AACA;AACA,2DAA2D,kDAAa;AACxE;AACA;AACA,0EAA0E,iBAAiB,oBAAoB;AAC/G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,qDAAa,CAAC,kDAAe,+BAA+B,qDAAa,CAAC,kDAAgB,IAAI,yBAAyB,sDAAmB,+DAA+D,gBAAgB,oDAAoD,qKAAqK;AAC7c;;AAEA;AACA;AACA;AACA;AACA,WAAW,sDAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB,wBAAwB,sDAA2B;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;AACA;AACA;AACA,4BAA4B,kDAAoB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,kDAAoB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,sDAAc;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iDAAiD,6BAA6B,4CAA4C;AAC1H;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,wBAAwB;AACxB;AACA;AACA,oEAAoE;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,sDAAW;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAoE;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC;AACzC;AACA;AACA,WAAW,sDAAU;AACrB;AACA;AACA,yCAAyC,sDAAU;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,uBAAuB;AACjC;AACA,kBAAkB,sDAAI;AACtB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,cAAc,YAAY;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL,yCAAyC,kBAAkB,0CAA0C;AACrG;AACA;AACA;AACA;AACA;AACA,6CAA6C,iBAAiB,0CAA0C,kBAAkB,+BAA+B,GAAG;AAC5J;AACA;AACA;AACA;AACA,WAAW,sDAAU;AACrB;AACA;AACA,mBAAmB,sDAAwB;AAC3C;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,sDAAgB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA,wBAAwB;AACxB,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA,4EAA4E;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,sDAAkB;AAC3C;AACA;AACA;AACA;AACA,4CAA4C;AAC5C;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA,6BAA6B,sDAAkB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,sDAAkB;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,KAAK;AACL,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,gBAAgB,UAAU;AAC1B;AACA,QAAQ,sDAAW,iBAAiB,sDAAyB,wDAAwD,WAAW;AAChI,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA,iBAAiB,kDAAQ;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,gBAAgB,OAAO;AACvB;AACA,QAAQ,sDAAW;AACnB,8BAA8B,qBAAqB;AACnD,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,UAAU,mBAAmB;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,kDAAQ;AACxB,eAAe,kDAAc;AAC7B,aAAa,kDAAc;AAC3B,cAAc,kDAAc;AAC5B,gBAAgB,kDAAQ;AACxB,cAAc,kDAAQ;AACtB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,sDAAiB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,kCAAkC,sDAAe,iBAAiB,oDAAoD;AACtH;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,+BAA+B,sDAAW;AAC1C,oBAAoB,sDAAU;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,sDAAO;AAC/B;AACA;AACA;AACA,wBAAwB,sDAAO;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,sDAAO;AAC3B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL,CAAC;AACD;AACA;AACA;AACA;AACA,yBAAyB,sDAAiB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,wBAAwB,2BAA2B;AACnD;AACA,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA,sEAAsE,EAAE,sDAAyB,+CAA+C,uBAAuB;AACvK;;AAEA;AACA,UAAU,UAAU;AACpB;AACA,qCAAqC,sDAAc;AACnD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,iCAAiC,kDAAa;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA,uDAAuD,sDAAe;AACtE;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,UAAU,mBAAmB;AAC7B;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB,kCAAkC;AACnD;AACA,eAAe,sDAAa;AAC5B;AACA;AACA,iBAAiB;AACjB;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,sCAAsC,sDAAO;AAC7C,kCAAkC,sDAAO;AACzC,2BAA2B,sDAAO;AAClC;AACA,4BAA4B,sDAAO;AACnC,0BAA0B,sDAAO;AACjC,6BAA6B,sDAAO;AACpC,8BAA8B,sDAAO;AACrC,yCAAyC,sDAAa;AACtD,4BAA4B,sDAAO;AACnC,gCAAgC,sDAAa;AAC7C,oCAAoC,sDAAO,uBAAuB,kDAAY;AAC9E,iCAAiC,sDAAO;AACxC,yCAAyC,sDAAa;AACtD,0BAA0B,sDAAO;AACjC;AACA,2BAA2B,kDAAO;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,sDAAmB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B,wBAAwB,sDAAqB;AAC7C,kCAAkC,sDAAqB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D;AAC5D;AACA;AACA;AACA;AACA,mDAAmD;AACnD;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA,kEAAkE,8BAA8B;AAChG;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,cAAc,wBAAwB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2BAA2B;AACzC,oGAAoG;AACpG;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,sDAAmB;AAChC;AACA;AACA;AACA,yBAAyB,sDAAgB;AACzC,wEAAwE;AACxE;AACA;AACA;AACA,cAAc,qCAAqC,0CAA0C;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D;AAC5D;AACA,8EAA8E;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,eAAe;AAC7B;AACA;AACA;AACA,2EAA2E,+OAA+O;AAC1T;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,sDAAqB;AAC1E,yEAAyE,sDAAqB;AAC9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,2EAA2E;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,kBAAkB,EAAE,sDAAe;AACjD,YAAY,kDAAoB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qIAAqI,EAAE,kDAAoB,GAAG,kDAA0B,GAAG,kDAAwB;AACnN;AACA,kBAAkB,sDAAe;AACjC,YAAY,kDAAoB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sHAAsH,kDAA0B;AAChJ;AACA,gBAAgB,kDAA0B;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,SAAS;AAClD;AACA,cAAc,wBAAwB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,iBAAiB;AACjB;AACA;AACA,kBAAkB,sDAAe;AACjC,YAAY,kDAAoB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA,6GAA6G,EAAE,kDAAoB,GAAG,kDAA0B,GAAG,kDAAwB,GAAG,kDAAoB;AAClN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,kDAA0B;AAC3C,oBAAoB,kDAA0B;AAC9C;AACA;AACA;AACA;AACA,qBAAqB,kDAA0B;AAC/C,wBAAwB,kDAA0B;AAClD,4EAA4E;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,kDAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,uEAAuE,kDAAoB;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,sDAAO;AAClB;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,UAAU;AACpB;AACA,2BAA2B,sDAAa;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,yBAAyB,sDAAa;AACtC;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,sDAAkB;AAC7B;AACA;AACA;AACA,wCAAwC,WAAW;AACnD,sCAAsC,SAAS;AAC/C;AACA;;AAEA,6BAA6B,kDAAa;AAC1C;AACA;AACA,eAAe,qDAAa,UAAU,+BAA+B;AACrE;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB;AACA;AACA;AACA,kBAAkB,8DAA8D;AAChF;AACA;AACA,8BAA8B,qDAAa,SAAS,kDAAkD;AACtG;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,WAAW;AACtD;AACA;AACA;AACA,8BAA8B,qDAAa,aAAa,6MAA6M,8BAA8B,qDAAa,WAAW,oCAAoC;AAC/V;AACA;AACA;AACA;AACA,mBAAmB,qDAAa,UAAU,2BAA2B;AACrE;AACA;AACA;AACA;;AAEA,sBAAsB,kDAAa;AACnC;AACA,cAAc,wBAAwB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,qDAAa,UAAU,iCAAiC;AACxE;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,gBAAgB,qDAAa,mBAAmB,0PAA0P;AAC1S;AACA;;AAEA,0BAA0B,kDAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,sDAAM;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,eAAe;AAC7B,cAAc,cAAc;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,wBAAwB;AAC3D;AACA;AACA;AACA;AACA;AACA,gBAAgB,qDAAa,UAAU,oGAAoG,yBAAyB;AACpK;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,qCAAqC;AACjE;AACA;AACA;;AAEA;AACA;AACA;AACA,4BAA4B,kDAAW;AACvC;AACA;AACA;AACA,kBAAkB,YAAY;AAC9B,kBAAkB,UAAU;AAC5B,sBAAsB,sDAAQ;AAC9B;AACA;AACA;AACA;AACA,sCAAsC,sDAAc;AACpD;AACA;AACA;AACA,+BAA+B,kDAAS;AACxC;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,uBAAuB,sDAAgB;AACvC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,4BAA4B,kDAAW;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,sDAAQ,WAAW;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,uDAAuB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB,kBAAkB,sDAAQ;AAC1B;AACA;AACA;AACA,2BAA2B,kDAAS;AACpC;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA,8BAA8B,mDAAa;AAC3C;AACA;AACA,gCAAgC,sDAAO,CAAC,mDAAgB;AACxD,yCAAyC,sDAAO;AAChD,iCAAiC,sDAAO;AACxC,yBAAyB,iDAAS;AAClC,yBAAyB,iDAAS;AAClC;AACA;AACA;AACA,yBAAyB,uDAAc;AACvC;AACA;AACA;AACA;AACA,2BAA2B,uDAAwB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,mDAAwB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,mDAAwB;AAC3C;AACA;AACA;AACA,gCAAgC,kDAAa;AAC7C,yDAAyD;AACzD,yDAAyD,0BAA0B;AACnF,SAAS;AACT;AACA,kBAAkB,UAAU;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,yBAAyB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kEAAkE;AAClE;AACA;AACA;AACA;AACA;AACA,gBAAgB,qDAAa,CAAC,kDAAe,aAAa,oBAAoB;AAC9E,YAAY,qDAAa,CAAC,mDAAQ,IAAI,aAAa;AACnD;AACA,wBAAwB,qDAAa,CAAC,4CAAQ;AAC9C,6CAA6C,qDAAa,0BAA0B,6GAA6G;AACjM,oBAAoB,qDAAa,gBAAgB,+FAA+F;AAChJ;AACA;AACA,6CAA6C,qDAAa,0BAA0B,oGAAoG;AACxL,aAAa;AACb;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA,cAAc,kBAAkB;AAChC;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,kBAAkB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA,eAAe,qDAAa,CAAC,4CAAQ,IAAI;AACzC;AACA;AACA,cAAc,cAAc;AAC5B,cAAc,WAAW;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,qDAAa,gCAAgC;AAC7D;AACA;AACA;AACA;AACA,uEAAuE;AACvE;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,sDAAmB;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,mDAAY;AACnC,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,cAAc;AACpC,gBAAgB,uDAAS;AACzB,oBAAoB,8CAAM,CAAC,qDAAa,CAAC,mDAAY,IAAI,8FAA8F;AACvJ;AACA;AACA,gCAAgC,qDAAa,CAAC,mDAAQ,aAAa,mCAAmC;AACtG,4BAA4B,qDAAa,kCAAkC,gDAAgD;AAC3H,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA,gBAAgB,8CAAM;AACtB;AACA;AACA;AACA;AACA,QAAQ,uDAAiB;AACzB;AACA,gCAAgC,kDAAa;AAC7C;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,uDAAS;AACjB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,sDAAa;AAC1B,kBAAkB,YAAY;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,uDAAc;AACtB;AACA;;AAEA,2CAA2C;AAC3C;AACA,oBAAoB,sDAAe;AACnC;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,oFAAoF,GAAG;AACvF,oBAAoB,sDAAe;AACnC;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,kDAAoB;AAC9C,KAAK;AACL;AACA;AACA;AACA,mFAAmF;AACnF,eAAe,kDAAO,+BAA+B,UAAU,kDAAoB,sCAAsC,eAAe,QAAQ;AAChJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,uDAAe;AAC1B;;AAEA;;AAE+G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC7qE9E;AAC2C;AAC/B;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,QAAQ;AACpB;AACA,sBAAsB;AACtB;AACA;AACA,0CAA0C;AAC1C;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sBAAsB,2BAA2B,wBAAwB,wCAAwC,6BAA6B,uBAAuB,4BAA4B,6BAA6B,iCAAiC,mCAAmC,uCAAuC,oCAAoC,wCAAwC,4BAA4B,gCAAgC,2BAA2B,kDAAkD,gCAAgC,kCAAkC,iCAAiC,uCAAuC,wCAAwC,0CAA0C,4BAA4B,0BAA0B,0CAA0C,yCAAyC,6BAA6B,0CAA0C,mBAAmB,IAAI,aAAa,sBAAsB,cAAc,iCAAiC,sBAAsB,UAAU,yBAAyB,iBAAiB,cAAc,OAAO,kBAAkB,cAAc,UAAU,mBAAmB,oBAAoB,eAAe,0BAA0B,0BAA0B,kBAAkB,cAAc,gBAAgB,kBAAkB,cAAc,iBAAiB,4CAA4C,wCAAwC,sCAAsC,kBAAkB,WAAW,oBAAoB,kBAAkB,gBAAgB,sCAAsC,cAAc,4jGAA4jG,SAAS,WAAW,mCAAmC,kCAAkC,qBAAqB,8BAA8B,kBAAkB,oBAAoB,gBAAgB,WAAW,cAAc,kBAAkB,oBAAoB,yBAAyB,sBAAsB,iBAAiB,UAAU,6BAA6B,mBAAmB,8BAA8B,mBAAmB,8BAA8B,mBAAmB,+BAA+B,mBAAmB,6BAA6B,mBAAmB,4BAA4B,mBAAmB,kBAAkB,mBAAmB,eAAe,gBAAgB,oBAAoB,kBAAkB,oBAAoB,SAAS,iBAAiB,oBAAoB,qBAAqB,mBAAmB,0CAA0C,eAAe,0BAA0B,8BAA8B,eAAe,eAAe,6BAA6B,6BAA6B,oBAAoB,qBAAqB,cAAc,gBAAgB,gBAAgB,mBAAmB,kBAAkB,yBAAyB,sBAAsB,iBAAiB,sBAAsB,qBAAqB,qBAAqB,qBAAqB,0CAA0C,UAAU,wBAAwB,YAAY,uBAAuB,2CAA2C,2CAA2C,kCAAkC,6BAA6B,iDAAiD,iDAAiD,kCAAkC,gCAAgC,2CAA2C,2CAA2C,kCAAkC,6BAA6B,0CAA0C,oGAAoG,kDAAkD,kDAAkD,kCAAkC,gHAAgH,0CAA0C,wBAAwB,gBAAgB,sBAAsB,qBAAqB,oBAAoB,kBAAkB,sBAAsB,gCAAgC,cAAc,kBAAkB,oKAAoK,UAAU,gEAAgE,4BAA4B,yBAAyB,iBAAiB,+DAA+D,6BAA6B,0BAA0B,gEAAgE,6BAA6B,0BAA0B,kBAAkB,+DAA+D,4BAA4B,yBAAyB,gBAAgB,mBAAmB,aAAa,8BAA8B,kCAAkC,oBAAoB,kCAAkC,iBAAiB,sBAAsB,iBAAiB,SAAS,mDAAmD,kBAAkB,mDAAmD,mBAAmB,kCAAkC,2BAA2B,iBAAiB,iCAAiC,kBAAkB,wBAAwB,YAAY,iCAAiC,SAAS,OAAO,kBAAkB,QAAQ,MAAM,yBAAyB,cAAc,gBAAgB,kBAAkB,gCAAgC,YAAY,oDAAoD,cAAc,kCAAkC,wCAAwC,4CAA4C,mBAAmB,WAAW,yBAAyB,yBAAyB,0BAA0B,wBAAwB,mBAAmB,sBAAsB,yBAAyB,qBAAqB,0BAA0B,YAAY,0FAA0F,WAAW,qCAAqC,YAAY,6BAA6B,oBAAoB,mBAAmB,wEAAwE,sBAAsB,8EAA8E,2BAA2B,oCAAoC,mCAAmC,gBAAgB,UAAU,iEAAiE,MAAM,iEAAiE,SAAS,+BAA+B,WAAW,mBAAmB,WAAW,gBAAgB,qBAAqB,YAAY,kBAAkB,qCAAqC,SAAS,OAAO,kBAAkB,QAAQ,MAAM,gCAAgC,qBAAqB,gBAAgB,wDAAwD,SAAS,OAAO,kBAAkB,QAAQ,MAAM,qBAAqB,wCAAwC,iBAAiB,oCAAoC,mCAAmC,iCAAiC,oCAAoC,kBAAkB,YAAY,kBAAkB,qCAAqC,yCAAyC,sCAAsC,4BAA4B,qBAAqB,6CAA6C,eAAe,yBAAyB,kBAAkB,UAAU,2CAA2C,YAAY,qCAAqC,oCAAoC,4BAA4B,aAAa,kBAAkB,UAAU,uEAAuE,cAAc,qCAAqC,mCAAmC,qBAAqB,8DAA8D,mBAAmB,sDAAsD,+CAA+C,8CAA8C,4CAA4C,aAAa,aAAa,WAAW,kBAAkB,YAAY,UAAU,mCAAmC,oCAAoC,iDAAiD,SAAS,aAAa,OAAO,kBAAkB,QAAQ,MAAM,UAAU,+CAA+C,kDAAkD,YAAY,aAAa,UAAU,kBAAkB,WAAW,SAAS,UAAU,YAAY,0CAA0C,8CAA8C,cAAc,2BAA2B,iCAAiC,iCAAiC,aAAa,2BAA2B,eAAe,gBAAgB,sCAAsC,YAAY,cAAc,YAAY,4BAA4B,qBAAqB,OAAO,eAAe,gBAAgB,QAAQ,mBAAmB,qCAAqC,aAAa,UAAU,4HAA4H,4BAA4B,oBAAoB,yBAAyB,4HAA4H,6BAA6B,qBAAqB,0BAA0B,sDAAsD,SAAS,MAAM,wCAAwC,0JAA0J,gBAAgB,iDAAiD,0JAA0J,gBAAgB,kDAAkD,gDAAgD,6DAA6D,QAAQ,8IAA8I,uDAAuD,8IAA8I,wDAAwD,gBAAgB,qCAAqC,kBAAkB,aAAa,uBAAuB,mBAAmB,aAAa,mBAAmB,8BAA8B,gBAAgB,sBAAsB,aAAa,sBAAsB,eAAe,gBAAgB,YAAY,+BAA+B,mCAAmC,wCAAwC,sCAAsC,sCAAsC;AACngc;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,cAAc;AAC5B;AACA;AACA;AACA;AACA,cAAc,cAAc;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,uBAAuB;AAC3C;AACA,wBAAwB,oBAAoB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,oBAAoB;AACxC,8CAA8C;AAC9C,wBAAwB,uBAAuB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,IAAI;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,sDAAsD;AACtD,KAAK;AACL;AACA;AACA;AACA;AACA,2BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,mBAAmB;AACnC;AACA;AACA;AACA,kBAAkB,uCAAuC;AACzD,kBAAkB,wBAAwB;AAC1C;AACA;AACA,yBAAyB,aAAa;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,uBAAuB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uEAAuE;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA,6BAA6B,iCAAiC;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,2BAA2B;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,EAAE,IAAI,EAAE;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,0BAA0B,GAAG,kBAAkB;AACjE;AACA,iBAAiB,KAAK,EAAE,MAAM,EAAE,WAAW,kBAAkB,OAAO;AACpE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,gBAAgB;AAC/B,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC;AACzC,uBAAuB;AACvB;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA6D;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,sCAAsC;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,sBAAsB;AAC9D,uCAAuC,qBAAqB;AAC5D;AACA,wCAAwC;AACxC;AACA,oBAAoB;AACpB;AACA,wCAAwC;AACxC,iCAAiC;AACjC;AACA;AACA;AACA,cAAc,SAAS;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA,sDAAsD;AACtD,kDAAkD,uBAAuB;AACzE;AACA,0DAA0D;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,QAAQ;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,gDAAgD;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,+BAA+B;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAoE;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA,QAAQ,iBAAiB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,iEAAiE;AACjE;AACA;AACA,kDAAkD,QAAQ;AAC1D;AACA,0DAA0D;AAC1D;AACA;AACA;AACA,0CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,QAAQ;AAC9C;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,cAAc;AAC3C;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wBAAwB,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,2BAA2B,EAAE,QAAQ,EAAE;AACpH;AACA;AACA;AACA,mLAAmL,MAAM;AACzL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,SAAS;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,uDAAuD;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6EAA6E;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wEAAwE;AACxE,8CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,oBAAoB,EAAE,UAAU;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,oBAAoB,EAAE,wCAAwC;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,2CAAc,oBAAoB;AACjE;AACA;AACA;AACA;AACA,IAAI,2CAAc;AAClB,IAAI,0CAAa,CAAC,iDAAoB,kBAAkB;AACxD;AACA;AACA;AACA,IAAI,2CAAc;AAClB;AACA,4BAA4B,6CAAgB;AAC5C,eAAe,OAAO,iDAAoB,UAAU;AACpD,0BAA0B,gBAAgB;AAC1C;AACA;AACA;AACA,sBAAsB,iDAAoB;AAC1C;AACA;AACA;AACA,4DAA4D;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,0BAA0B;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wCAAwC,GAAG;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA,4BAA4B,6CAAS;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mEAAmE;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,UAAU;AAC9B,oBAAoB,gBAAgB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,iBAAiB;AACjC,gBAAgB,UAAU;AAC1B,gBAAgB,iDAAiD;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,iDAAa;AAC1D;AACA;AACA;AACA;AACA;AACA,+FAA+F;AAC/F;AACA,sDAAsD;AACtD;AACA;AACA;AACA;AACA;AACA,sBAAsB,sDAAc;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,qDAAa;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C;AACA;AACA;AACA,gBAAgB,iBAAiB;AACjC,gBAAgB,gDAAgD;AAChE;AACA;AACA;AACA,oEAAoE;AACpE,mCAAmC,YAAY,qDAAqD;AACpG;AACA;AACA;AACA;AACA,gBAAgB,kCAAkC;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,oBAAoB,YAAY;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,+BAA+B,6CAAS;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA,uBAAuB,qDAAa;AACpC;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,qDAAa,kDAAkD,YAAY,2IAA2I;AACzO;AACA;AACA;AACA;AACA;AACA,6HAA6H,6BAA6B,aAAa;AACvK;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4HAA4H,6BAA6B,aAAa;AACtK;AACA;AACA;AACA;AACA;AACA,WAAW,qDAAa,oCAAoC,oNAAoN;AAChR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc,iBAAiB;AAC/B,cAAc,UAAU;AACxB,4BAA4B;AAC5B,gBAAgB,qDAAa,qBAAqB;AAClD;AACA;AACA,6MAA6M;AAC7M;AACA;AACA;AACA;AACA,cAAc,cAAc;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,UAAU,QAAQ,mBAAmB;AACrC;AACA;AACA;AACA;AACA,gBAAgB,mBAAmB;AACnC;AACA;AACA,uCAAuC;AACvC,kCAAkC,6BAA6B;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC,8BAA8B,iCAAiC;AAC/D;AACA;AACA;AACA;AACA,4DAA4D;AAC5D;AACA;AACA,UAAU,aAAa;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD;AACjD;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC;AACzC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,UAAU;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,UAAU;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAAgE;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,0BAA0B;AACxC;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,gCAAgC,QAAQ;AACxC;AACA;AACA;AACA;AACA,cAAc,oDAAoD;AAClE,cAAc,aAAa;AAC3B;AACA;AACA;AACA,2CAA2C;AAC3C;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,cAAc,yBAAyB;AACvC;AACA;AACA;AACA;AACA;AACA,kBAAkB,gBAAgB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,yBAAyB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,iBAAiB;AACjB;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,gBAAgB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,SAAS;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD;AACtD,kCAAkC;AAClC;AACA;AACA;AACA,mCAAmC;AACnC;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA;AACA,mDAAmD;AACnD;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,aAAa;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB,2BAA2B;AAC/C;AACA;AACA,kBAAkB,SAAS;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,gCAAgC;AAC1C,UAAU,kBAAkB;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,WAAW;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mEAAmE,oDAAoD,yBAAyB;AAChJ;AACA,UAAU,iBAAiB;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,8BAA8B;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,SAAS;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,oCAAoC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA,4CAA4C;AAC5C,iDAAiD;AACjD;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,UAAU,kBAAkB;AAC5B;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,wDAAwD;AACxD;AACA,8CAA8C;AAC9C,0DAA0D;AAC1D;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA,mBAAmB;AACnB;AACA,+CAA+C;AAC/C;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;AACA,kCAAkC,QAAQ,UAAU;AACpD;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,0BAA0B;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,OAAO;AACjB;AACA;AACA;AACA,6BAA6B;AAC7B;AACA,6CAA6C,eAAe;AAC5D;AACA;AACA,aAAa,0JAA0J;AACvK,KAAK;AACL,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,kBAAkB;AAC9B;AACA;AACA;AACA;AACA,gBAAgB,WAAW;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,WAAW;AAC3B;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,GAAG;AACxB;AACA;AACA;AACA;AACA;AACA,mDAAmD;AACnD;AACA;AACA,WAAW;AACX;AACA;AACA,qEAAqE;AACrE;AACA;;AAEA;AACA,oEAAoE,sDAAsD,wFAAwF;AAClN;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,mBAAmB;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA,2DAA2D,+BAA+B,kCAAkC,mCAAmC;AAC/J;AACA,2DAA2D;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,UAAU;AACpB;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,eAAe;AAChD,aAAa;AACb;AACA;AACA;AACA;AACA,iCAAiC,aAAa;AAC9C,aAAa;AACb;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA,uBAAuB;AACvB;AACA;AACA,uBAAuB;AACvB;AACA;AACA,iCAAiC,IAAI;AACrC,aAAa;AACb;AACA;AACA,gDAAgD,KAAK;AACrD;AACA;AACA;AACA;AACA,6BAA6B,aAAa;AAC1C,SAAS;AACT;AACA,qCAAqC;AACrC,cAAc,UAAU;AACxB;AACA,uCAAuC;AACvC;AACA,kGAAkG;AAClG;AACA,8BAA8B,wBAAwB;AACtD;AACA;AACA,8BAA8B,YAAY;AAC1C;AACA;AACA;AACA,iCAAiC;AACjC,cAAc,UAAU;AACxB;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA,8BAA8B,UAAU;AACxC;AACA;AACA,8BAA8B,iBAAiB,iBAAiB;AAChE;AACA;AACA;AACA,+CAA+C;AAC/C,cAAc,UAAU;AACxB,8BAA8B;AAC9B;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,uCAAuC;AACzE;AACA;AACA,kCAAkC,qCAAqC;AACvE;AACA;AACA,mBAAmB;AACnB;AACA,8BAA8B,uCAAuC;AACrE;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,0BAA0B,mBAAmB;AAC7C;AACA;AACA;AACA;AACA,qBAAqB;AACrB,0BAA0B,iBAAiB;AAC3C;AACA;AACA;AACA;AACA,qBAAqB;AACrB,0BAA0B,mBAAmB;AAC7C;AACA;AACA,kCAAkC;AAClC,8BAA8B;AAC9B,cAAc,mBAAmB;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,eAAe;AACrC;AACA;AACA,cAAc,UAAU;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,aAAa;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,kEAAkE;AAClE;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb,SAAS;AACT;AACA;AACA,cAAc,WAAW;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,eAAe;AACf,oBAAoB;AACpB,mBAAmB;AACnB,kBAAkB;AAClB,gBAAgB;AAChB,oBAAoB,yCAAyC;AAC7D,0BAA0B;AAC1B,6BAA6B;AAC7B,uBAAuB;AACvB,oBAAoB;AACpB,kBAAkB;AAClB,4BAA4B;AAC5B,wBAAwB;AACxB,sBAAsB;AACtB;AACA,uBAAuB;AACvB,0BAA0B;AAC1B,+BAA+B;AAC/B;AACA,cAAc,KAAK;AACnB,cAAc,mBAAmB;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,kBAAkB;AAClC;AACA,gBAAgB;AAChB,gBAAgB;AAChB;AACA;AACA;AACA,UAAU,kBAAkB;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,aAAa;AACvB;AACA;AACA,yDAAyD;AACzD,mDAAmD;AACnD,uDAAuD,wCAAwC;AAC/F,gFAAgF;AAChF;AACA;AACA,UAAU,cAAc;AACxB;AACA,UAAU,UAAU;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,mBAAmB;AAC7B,UAAU,oCAAoC;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,qBAAqB,GAAG,qCAAqC;AAC1E;AACA;AACA;AACA,UAAU,gBAAgB;AAC1B,UAAU,MAAM;AAChB;AACA,iBAAiB;AACjB;AACA,UAAU,mBAAmB;AAC7B,UAAU,mBAAmB;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,QAAQ;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,gCAAgC;AAC1C;AACA;AACA,UAAU,SAAS;AACnB;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA,SAAS,UAAU;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,sDAAsD,qBAAqB;AACpH;AACA;AACA,yCAAyC,8CAA8C,4BAA4B;AACnH;AACA;AACA;AACA;AACA;AACA,mDAAmD,UAAU;AAC7D,+CAA+C,UAAU;AACzD;AACA;AACA;AACA,+BAA+B,iBAAiB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,gBAAgB;AAChD,aAAa;AACb;AACA;AACA;AACA,gCAAgC,iBAAiB;AACjD,aAAa;AACb;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,UAAU;AACxB,cAAc,WAAW;AACzB;AACA;AACA;AACA;AACA;AACA,4BAA4B,kBAAkB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,UAAU;AACxB;AACA;AACA;AACA;AACA,cAAc,UAAU;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,6CAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,eAAe;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA,cAAc,mBAAmB;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yEAAyE;AACzE;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA,qBAAqB,6CAA6C;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,qBAAqB;AACnC;AACA;AACA;AACA;AACA,mDAAmD,YAAY;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D;AAC5D;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,0BAA0B,UAAU;AACpC;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,cAAc,2BAA2B;AACzC;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,cAAc;AACtC;AACA;AACA;AACA,wBAAwB,cAAc;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,UAAU;AACxB;AACA;AACA;AACA;AACA,cAAc,UAAU;AACxB;AACA;AACA;AACA,cAAc,UAAU;AACxB,4DAA4D,UAAU;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sFAAsF,SAAS;AAC/F,yBAAyB;AACzB,4BAA4B,iCAAiC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,wBAAwB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,eAAe;AACnE,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA,wCAAwC;AACxC,kEAAkE;AAClE;AACA,wEAAwE,YAAY,KAAK;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,UAAU;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA,cAAc,kBAAkB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,2BAA2B;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,2BAA2B;AAC3B,4BAA4B,mDAAmD;AAC/E;AACA;AACA;AACA;AACA;AACA,wBAAwB,kCAAkC;AAC1D;AACA;AACA,wBAAwB,8CAA8C;AACtE;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,MAAM;AACnD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mDAAmD;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA,gFAAgF;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,kBAAkB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,kBAAkB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qCAAqC,gDAAgD;AACrF,sCAAsC,cAAc;AACpD;AACA,YAAY,gCAAgC;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,mGAAmG;AAClI;AACA,gBAAgB,4BAA4B;AAC5C;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA8D;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0EAA0E;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yFAAyF;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,gBAAgB;AAC9B;AACA;AACA,oBAAoB,SAAS;AAC7B;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA,cAAc,gBAAgB;AAC9B;AACA;AACA,oBAAoB,SAAS;AAC7B;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,SAAS;AAC7B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD;AAChD;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,4BAA4B;AAC5B,+BAA+B;AAC/B,+BAA+B;AAC/B,kCAAkC;AAClC,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA8D,YAAY,gEAAgE;AAC1I;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,gDAAgD;AACxE,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,wBAAwB,4CAA4C;AACpE,aAAa;AACb;AACA;AACA;AACA,cAAc,8BAA8B;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,sDAAsD;AACpE;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,0BAA0B;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iGAAiG;AACjG,4DAA4D;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,8BAA8B;AAC5C;AACA;AACA,4BAA4B,kBAAkB;AAC9C;AACA;AACA;AACA,yDAAyD,YAAY,sDAAsD;AAC3H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B,8DAA8D;AAC9D;AACA;AACA,mDAAmD;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,iBAAiB;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iCAAiC,kBAAkB,GAAG;AACtD;AACA;AACA,iCAAiC,sEAAsE,GAAG;AAC1G;AACA,6BAA6B,iBAAiB,GAAG;AACjD;;AAEA,yCAAyC;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc,mCAAmC;AACjD,cAAc,QAAQ;AACtB,cAAc,oBAAoB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA,sEAAsE,iCAAiC,6BAA6B,MAAM;AAC1I,gBAAgB,qDAAa,qBAAqB,6DAA6D,oHAAoH,mSAAmS,uBAAuB,qDAAa,UAAU,uCAAuC,0BAA0B,qDAAa,mBAAmB;AACrpB;AACA;AACA,eAAe;AACf;AACA;;AAEA,yCAAyC,iBAAiB;AAC1D;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,mCAAmC;AACjD,4DAA4D;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oFAAoF;AACpF,kBAAkB,eAAe,eAAe,8BAA8B,MAAM;AACpF,gBAAgB,qDAAa,qBAAqB;AAClD;AACA;AACA;AACA,wCAAwC,8CAA8C,mSAAmS,qBAAqB,qDAAa,UAAU,uCAAuC;AAC5c,YAAY,qDAAa,iBAAiB;AAC1C;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,UAAU;AACxB,cAAc,wDAAwD;AACtE;AACA,gBAAgB,qDAAa,aAAa,aAAa,4BAA4B,qDAAa,SAAS,aAAa;AACtH;AACA,yDAAyD,qDAAa,kBAAkB,+IAA+I,MAAM,qDAAa,iBAAiB,gFAAgF;AAC3V;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc,MAAM;AACpB;AACA;AACA;AACA,6BAA6B;AAC7B;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D;AAC5D,sEAAsE;AACtE;AACA;AACA;AACA,0DAA0D;AAC1D,yDAAyD;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,UAAU;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,2BAA2B;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,mBAAmB;AAC7C;AACA,8BAA8B,mBAAmB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,mBAAmB;AAC7C;AACA;AACA;AACA;AACA;AACA,cAAc,SAAS;AACvB;AACA;AACA;AACA,kBAAkB,wBAAwB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC;AACzC;AACA;AACA,cAAc,eAAe;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,qCAAqC,SAAS,kCAAkC,iBAAiB;AACjG,yCAAyC;AACzC;AACA;AACA;AACA;AACA;AACA,4IAA4I;AAC5I;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,eAAe,4BAA4B;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU,YAAY;AACtB;AACA;AACA;AACA;AACA;AACA,6BAA6B,wBAAwB,YAAY;AACjE;AACA;AACA;AACA;AACA;AACA,6BAA6B,eAAe;AAC5C;AACA;AACA;AACA,gCAAgC,uMAAuM;AACvO;AACA;AACA,uDAAuD;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA,UAAU,kCAAkC;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,eAAe;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAA0D;AAC1D;AACA,gEAAgE,mBAAmB,yDAAyD;AAC5I;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA,mBAAmB;AACnB,+DAA+D;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,kBAAkB;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,gBAAgB;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C;AAC1C;AACA;AACA,wDAAwD;AACxD;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,UAAU,YAAY;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,2BAA2B;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,qDAAa,UAAU;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,KAAK;AACnB;AACA,cAAc,WAAW;AACzB,wBAAwB,qBAAqB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,KAAK;AACnB;AACA,cAAc,WAAW;AACzB,wBAAwB,qBAAqB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D;AAC5D;AACA;AACA;AACA;AACA;AACA,0DAA0D;AAC1D;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,qBAAqB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA,iDAAiD;AACjD;AACA;AACA;AACA,yDAAyD;AACzD;AACA;AACA;AACA,UAAU,aAAa;AACvB;AACA;AACA,QAAQ,qDAAa;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS,yBAAyB,qDAAa;AAC/C;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,UAAU;AAClC,0BAA0B,qDAAa,UAAU;AACjD;AACA;AACA,mBAAmB;AACnB;AACA;AACA,WAAW,qDAAa,eAAe;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,mBAAmB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,qDAAa,UAAU;AACnC;AACA;AACA,WAAW;AACX;AACA;AACA,UAAU,oBAAoB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,wBAAwB;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC,qCAAqC;AACrC;AACA;AACA;AACA,8CAA8C,wCAAwC;AACtF;AACA;AACA;AACA,cAAc,wBAAwB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B,eAAe,qDAAa;AAC5B;AACA;AACA,qBAAqB,sBAAsB;AAC3C,SAAS,kDAAkD,qDAAa,2FAA2F,qDAAa,2FAA2F,qDAAa,sDAAsD,qDAAa;AAC3V;AACA;AACA;AACA,oBAAoB,qDAAa,CAAC,4CAAQ,IAAI,wBAAwB;AACtE;AACA,gBAAgB,qDAAa,SAAS,2HAA2H;AACjK;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,gEAAgE;AAC9E,wEAAwE;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C,SAAS;AACT,eAAe,qDAAa;AAC5B;AACA;AACA,SAAS,EAAE,qDAAa,UAAU,iCAAiC,8CAA8C,GAAG;AACpH,YAAY,qDAAa,aAAa;AACtC,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,+BAA+B;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,iBAAiB;AACjC,gBAAgB,UAAU;AAC1B,gBAAgB,MAAM;AACtB,gBAAgB,aAAa;AAC7B,gBAAgB,KAAK;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,qDAAa,qBAAqB;AAClD;AACA;AACA;AACA,sSAAsS;AACtS;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B,cAAc,UAAU;AACxB,cAAc,MAAM;AACpB,cAAc,KAAK;AACnB;AACA;AACA,gBAAgB,qDAAa,iCAAiC,gCAAgC;AAC9F;AACA;AACA,aAAa,wGAAwG,uCAAuC,qDAAa,CAAC,4CAAQ;AAClL,YAAY,qDAAa,iBAAiB,uDAAuD,oCAAoC;AACrI,0DAA0D,qDAAa,UAAU,sDAAsD;AACvI,wDAAwD,qDAAa,UAAU,oDAAoD;AACnI;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,YAAY,qDAAa,UAAU,kCAAkC;AACrE,gCAAgC,qDAAa,UAAU,4BAA4B;AACnF,QAAQ,qDAAa,UAAU,uCAAuC;AACtE,YAAY,qDAAa,UAAU,uCAAuC,4BAA4B,qDAAa,CAAC,4CAAQ;AAC5H;;AAEA,0CAA0C,qDAAa;AACvD,UAAU,UAAU;AACpB;AACA;AACA;AACA;AACA;AACA,YAAY,qDAAa,qBAAqB,qXAAqX;AACna,CAAC;;AAED,yCAAyC,gBAAgB;AACzD;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B,cAAc,UAAU;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,gBAAgB,qDAAa,qBAAqB,+EAA+E,+CAA+C,IAAI,0CAA0C;AAC9N;AACA;AACA;AACA;AACA,wJAAwJ;AACxJ;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,2CAA2C;AACrD;AACA;AACA,uDAAuD,+CAA+C,cAAc;AACpH,uBAAuB;AACvB;;AAEA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,MAAM;AACpB,gBAAgB,qDAAa,mBAAmB,qDAAqD,oDAAoD,uQAAuQ;AACha;AACA;AACA;AACA,UAAU,QAAQ;AAClB,qBAAqB,qDAAa,UAAU,6BAA6B;AACzE;AACA;AACA,YAAY,qDAAa,UAAU,iBAAiB,SAAS,GAAG;AAChE;;AAEA,wCAAwC,qDAAa;AACrD,UAAU,mBAAmB;AAC7B,UAAU,OAAO;AACjB;AACA,+CAA+C;AAC/C;AACA,wBAAwB;AACxB,YAAY,qDAAa;AACzB,QAAQ,iYAAiY;AACzY,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,UAAU;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B,cAAc,eAAe;AAC7B;AACA;AACA;AACA;AACA,eAAe,2DAAY,CAAC,qDAAa,wBAAwB,sBAAsB,yGAAyG;AAChM,YAAY,qDAAa,UAAU,mEAAmE;AACtG,gBAAgB,qDAAa,WAAW,kDAAkD;AAC1F,gBAAgB,qDAAa,WAAW,wHAAwH;AAChK,YAAY,qDAAa,UAAU,kEAAkE;AACrG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,4BAA4B;AAC1C,cAAc,SAAS;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,mBAAmB;AACjC,cAAc,QAAQ;AACtB,cAAc,qCAAqC;AACnD;AACA,gBAAgB,qDAAa,qBAAqB,6FAA6F,2CAA2C,qDAAa,YAAY,qTAAqT;AACxgB,iDAAiD,qDAAa,iBAAiB,mDAAmD;AAClI;AACA;AACA;AACA,cAAc,gBAAgB;AAC9B;AACA;AACA;AACA;AACA,0CAA0C;AAC1C;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,iBAAiB;AACnC,kBAAkB,gBAAgB;AAClC;AACA;AACA,sBAAsB,uBAAuB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,gCAAgC,qBAAqB;AACrD;AACA,0DAA0D;AAC1D;AACA;AACA;AACA;AACA,4BAA4B,sBAAsB;AAClD;AACA;AACA;AACA,cAAc,eAAe;AAC7B,gBAAgB,qDAAa;AAC7B,kBAAkB,gCAAgC;AAClD,kBAAkB,eAAe;AACjC,kBAAkB,UAAU;AAC5B;AACA;AACA;AACA,sBAAsB,SAAS,EAAE,aAAa;AAC9C;AACA;AACA;AACA,+BAA+B,QAAQ;AACvC;AACA;AACA;AACA,oBAAoB,qDAAa,CAAC,4CAAQ;AAC1C,2CAA2C,qDAAa,qBAAqB;AAC7E;AACA;AACA,oGAAoG,6DAA6D,gHAAgH,wSAAwS;AACzjB,wCAAwC,qDAAa,gBAAgB;AACrE;AACA,uIAAuI;AACvI,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,aAAa;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEmvJ;;;;;;;;;;;;;;;;;AC72OxrJ;AAC4B;AAC/C;AACF;;AAEtC,YAAY,yEAAY;AACxB;AACA;AACA;AACA;AACA,uBAAuB,qDAAY;AACnC,uCAAuC,mEAAyB;AAChE,SAAS;AACT;AACA;AACA,wBAAwB,SAAS;AACjC,SAAS;AACT;AACA;AACA,wBAAwB,UAAU;AAClC,SAAS;AACT;AACA;AACA,wBAAwB,WAAW;AACnC;AACA,SAAS;AACT;AACA;AACA,wBAAwB,UAAU;AAClC,SAAS;AACT,KAAK;AACL,CAAC;;AAE2B;;;;;;;;;;;;;;;;;;;;;;;;;ACjCisB;AAC3oB;;AAElF;AACA;AACA;AACA;AACA,wBAAwB,8DAAa;AACrC;AACA;AACA,2BAA2B,uEAAS;AACpC;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA,gCAAgC,kEAAoB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,qBAAqB,sBAAsB;AAC3C,SAAS;AACT,gBAAgB,2EAAa,CAAC,8DAAa,IAAI,uDAAuD;AACtG,YAAY,2EAAa,CAAC,8DAAgB,IAAI,2IAA2I;AACzL;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B,mDAAmD,kEAAoB;AACvE,uDAAuD,kEAAwB;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,8DAAgB;AACjD,qBAAqB;AACrB,aAAa;AACb;AACA,gBAAgB,2EAAa,CAAC,8DAAa,IAAI,uDAAuD;AACtG,YAAY,2EAAa,eAAe,0HAA0H,SAAS,qCAAqC,GAAG,uBAAuB;AAC1O;AACA;;AAEA;AACA;AACA,oBAAoB,YAAY;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,YAAY;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,YAAY;AACpC;AACA;AACA;AACA;AACA,wBAAwB,YAAY;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wCAAwC,iEAAe;AACvD;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,UAAU,UAAU;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,8BAA8B,6DAAa;AAC3C;AACA,cAAc,QAAQ;AACtB,gBAAgB,2EAAa,CAAC,8DAAa,kBAAkB,WAAW,sOAAsO;AAC9S;AACA;;AAEA,iCAAiC,6DAAa;AAC9C;AACA,cAAc,iBAAiB;AAC/B,cAAc,UAAU;AACxB,cAAc,MAAM;AACpB;AACA,uBAAuB,kEAAgB;AACvC,gBAAgB,2EAAa,CAAC,8DAAc,kBAAkB,WAAW,8EAA8E,kEAAiB,2HAA2H;AACnS;AACA;AACA;AACA,YAAY,2EAAa,CAAC,kEAAQ;AAClC,QAAQ,2EAAa,UAAU,4CAA4C,uEAAuE;AAClJ,iCAAiC,2EAAa,UAAU,4BAA4B;AACpF,QAAQ,2EAAa,UAAU,6BAA6B,6BAA6B,2EAAa,CAAC,kEAAQ;AAC/G;;AAEA,gCAAgC,6DAAa;AAC7C;AACA;AACA,2BAA2B,iEAAO;AAClC;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,yBAAyB;AACvC,gBAAgB,2EAAa,CAAC,8DAAiB,IAAI;AACnD;AACA;AACA;AACA,wBAAwB,2EAAa,CAAC,kEAAQ;AAC9C;AACA,4BAA4B,2EAAa,UAAU;AACnD;AACA,2BAA2B,6BAA6B,2EAAa,qCAAqC,6GAA6G,EAAE,kEAAU,8BAA8B,2EAAa,kCAAkC,wJAAwJ,EAAE,kEAAU;AACpd,iBAAiB;AACjB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA,gCAAgC,iEAAe,GAAG,gBAAgB;AAClE,wBAAwB,8DAAa;AACrC;AACA;AACA,yBAAyB,uEAAS;AAClC;AACA,yBAAyB,kEAAc;AACvC;AACA;AACA,YAAY,iEAAM;AAClB,YAAY,iEAAM;AAClB;AACA;AACA;AACA,cAAc,mCAAmC;AACjD,cAAc,mBAAmB;AACjC,cAAc,oBAAoB;AAClC;AACA;AACA;AACA,gBAAgB,2EAAa,CAAC,8DAAgB,IAAI;AAClD;AACA;AACA,oEAAoE,kDAAkD,uCAAuC,IAAI,MAAM,kBAAkB,mNAAmN,kCAAkC,2EAAa,UAAU,4FAA4F,8BAA8B;AAC/jB,qCAAqC,2EAAa,CAAC,8DAAmB,IAAI,4DAA4D,kEAAiB,6EAA6E;AACpO;AACA,wCAAwC,kEAAuB,mCAAmC,2EAAa,UAAU,iCAAiC;AAC1J,gBAAgB,2EAAa,iBAAiB;AAC9C;AACA;AACA,8DAA8D,EAAE,kEAAiB,oBAAoB,uBAAuB,GAAG;AAC/H;AACA,YAAY,2EAAa,UAAU,0CAA0C,wBAAwB;AACrG,gBAAgB,2EAAa,QAAQ,oCAAoC;AACzE,YAAY,2EAAa,UAAU,+DAA+D;AAClG;AACA,gBAAgB,2EAAa,UAAU,6CAA6C,kCAAkC;AACtH,oBAAoB,2EAAa,sBAAsB,uVAAuV;AAC9Y,YAAY,2EAAa,UAAU,gCAAgC;AACnE;AACA;AACA;AACA,kCAAkC,2EAAa,CAAC,kEAAQ;AACxD;AACA;AACA,YAAY,uCAAuC;AACnD,2BAA2B,kEAAK;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,2DAA2D;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,qCAAqC,oBAAoB;AACzD;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,sBAAsB,oBAAoB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,yCAAyC,sBAAsB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,sBAAsB,oBAAoB;AAC1C;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,oBAAoB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kEAAkE;AAClE;AACA,iEAAiE;AACjE,8DAA8D;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,sBAAsB,cAAc;AACpC;AACA;AACA;AACA,wCAAwC,qBAAqB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,iEAAe;AACrC;AACA,aAAa,iEAAO;AACpB,KAAK;AACL,yCAAyC,UAAU;AACnD;AACA,8CAA8C,oBAAoB,yBAAyB;AAC3F;AACA;AACA,SAAS,gKAAgK;AACzK;AACA,kCAAkC,8DAAY;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,iBAAiB;AACjC,2DAA2D,kEAAa;AACxE;AACA,4BAA4B,+BAA+B;AAC3D;AACA;AACA;AACA;AACA;AACA,gBAAgB,8BAA8B;AAC9C,gBAAgB,gDAAgD;AAChE;AACA;AACA,oCAAoC,kEAAa;AACjD;AACA;AACA;AACA,sEAAsE,oBAAoB,MAAM,kEAAc,kCAAkC;AAChJ;AACA;AACA,0CAA0C,kEAAa;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,8DAAa;AACpC;AACA;AACA,8BAA8B,8DAAM,IAAI;AACxC,+BAA+B,8DAAM,IAAI;AACzC,4BAA4B,8DAAM,IAAI;AACtC,kCAAkC,8DAAM,IAAI;AAC5C,yBAAyB,uEAAS;AAClC;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA,yCAAyC;AACzC;AACA;AACA;AACA;AACA,cAAc,wBAAwB;AACtC,cAAc,UAAU;AACxB;AACA;AACA;AACA;AACA;AACA,cAAc,oEAAoE,wBAAwB,kEAAa;AACvH;AACA;AACA;AACA;AACA,gBAAgB,2EAAa,SAAS,kCAAkC;AACxE;AACA;AACA;AACA,gJAAgJ;AAChJ,wBAAwB,2EAAa,cAAc;AACnD,oBAAoB,2EAAa,CAAC,kEAAQ;AAC1C,wBAAwB,2EAAa,CAAC,kEAAQ;AAC9C,wBAAwB,2EAAa,CAAC,kEAAQ;AAC9C,oBAAoB,2EAAa,CAAC,kEAAQ;AAC1C;AACA;AACA,kHAAkH;AAClH,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,iEAAY;AACvC;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,8DAA8D;AAC9D;AACA;AACA,kEAAkE;AAClE;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,kEAAkE;AAClE;AACA;AACA;AACA;AACA;AACA,cAAc,UAAU;AACxB,cAAc,iBAAiB;AAC/B,cAAc,iBAAiB;AAC/B,oEAAoE;AACpE;AACA;AACA;AACA;AACA,sBAAsB,MAAM;AAC5B,sBAAsB,aAAa;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,2EAAa,UAAU;AAClD;AACA;AACA;AACA;AACA;AACA,uBAAuB,6BAA6B,2EAAa,qCAAqC,6HAA6H,EAAE,kEAAU,wBAAwB,2EAAa,kCAAkC,uLAAuL,EAAE,kEAAU;AACzf;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,aAAa;AAC3B,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,2BAA2B,2EAAa,UAAU,KAAK,kEAAkB,2EAA2E;AACpJ,oBAAoB,2EAAa,CAAC,8DAAO,kBAAkB,UAAU,EAAE,kEAAU;AACjF,oBAAoB,kEAAU;AAC9B;AACA;AACA,eAAe,2EAAa,CAAC,kEAAQ,IAAI;AACzC;AACA;AACA,cAAc,4BAA4B;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,8DAAa;AAC5D;AACA;AACA;AACA,gDAAgD,8DAAa;AAC7D;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAA0D;AAC1D;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,6DAAY;AAC5B,CAAC;AACD;AACA;AACA;AACA;AACA,gEAAgE;AAChE;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wBAAwB,8DAAa;AACrC;AACA;AACA,qCAAqC,iEAAO;AAC5C,gCAAgC,iEAAO;AACvC,gCAAgC,iEAAO;AACvC,sCAAsC,iEAAO;AAC7C,8BAA8B,iEAAO;AACrC,gCAAgC,iEAAO;AACvC,2BAA2B,8DAAM;AACjC;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,2EAAa,CAAC,8DAAQ,IAAI,aAAa,4BAA4B,2EAAa,CAAC,kEAAQ,yCAAyC,2EAAa,aAAa;AAC5K;AACA;AACA,+oBAA+oB;AAC/oB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,8DAAa;AAC7C;AACA,gCAAgC,8DAAa;AAC7C;AACA;AACA;AACA;AACA,cAAc,6BAA6B;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,kDAAkD;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA,kBAAkB,iEAAO;AACzB,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,8DAAa;AACjC;AACA;AACA,qBAAqB,uEAAS;AAC9B;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,4CAA4C;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,2EAAa,UAAU;AACvC;AACA;AACA;AACA;AACA,eAAe;AACf,YAAY,2EAAa,YAAY;AACrC;AACA;AACA;AACA,mBAAmB;AACnB;AACA,gBAAgB,2EAAa,YAAY,sBAAsB;AAC/D,oBAAoB,2EAAa,cAAc,gkBAAgkB;AAC/mB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sEAAsE;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,kEAAiB,0BAA0B;AACjG;AACA;AACA;AACA,sDAAsD,kEAAe,0BAA0B;AAC/F;AACA;AACA;AACA;;AAEA,6BAA6B,8DAAM;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,8DAAa;AACpC;AACA;AACA;AACA,wBAAwB,uEAAS;AACjC;AACA;AACA,cAAc,iBAAiB;AAC/B,gBAAgB,2EAAa,wBAAwB,oBAAoB,4GAA4G,ocAAoc;AACznB;AACA;;AAEA;AACA;AACA;AACA,kCAAkC,iEAAO;AACzC,yBAAyB,uEAAS;AAClC,wBAAwB,uEAAS;AACjC;AACA;AACA;AACA,cAAc,gCAAgC;AAC9C,cAAc,QAAQ;AACtB;AACA,mDAAmD,2EAAa,CAAC,8DAAS,IAAI,yIAAyI;AACvN,2CAA2C,2EAAa,aAAa,4tBAA4tB;AACjyB;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,8DAAc;AACtC,eAAe,8DAAa;AAC5B;;AAEA,wCAAwC,6DAAoB;AAC5D;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,UAAU,wBAAwB;AAClC,UAAU,aAAa;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,kEAAQ;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA,4EAA4E,iEAAO;AACnF;AACA,QAAQ,kEAAS;AACjB,cAAc,kEAAQ;AACtB;AACA,aAAa;AACb;;AAEA,sBAAsB,iCAAiC,qLAAqL,WAAW,aAAa,cAAc,qBAAqB,kBAAkB,UAAU,iCAAiC,0CAA0C,0BAA0B,gBAAgB,kBAAkB,wBAAwB,aAAa,2BAA2B,sCAAsC,WAAW,2BAA2B,YAAY,kBAAkB,UAAU,4BAA4B,gBAAgB,gBAAgB,2BAA2B,eAAe,qDAAqD,OAAO,kBAAkB,QAAQ,uDAAuD,eAAe,kBAAkB,oDAAoD,kBAAkB,8BAA8B,kBAAkB,kCAAkC,OAAO,kBAAkB,QAAQ,MAAM,2BAA2B,SAAS,kBAAkB,MAAM,wCAAwC,UAAU,oCAAoC,UAAU,qCAAqC,UAAU,sBAAsB,eAAe,UAAU,sCAAsC,UAAU,2BAA2B,gBAAgB,aAAa,mEAAmE,WAAW,aAAa,cAAc,0BAA0B,kBAAkB,eAAe,cAAc,eAAe,eAAe,gBAAgB,YAAY,kBAAkB,mBAAmB,UAAU,gCAAgC,gCAAgC,4BAA4B,4CAA4C,mCAAmC,gBAAgB,YAAY,kBAAkB,kBAAkB,MAAM,UAAU,sCAAsC,gBAAgB,aAAa,oGAAoG,gBAAgB,oGAAoG,iBAAiB,wCAAwC,WAAW,0CAA0C,wBAAwB,OAAO,wCAAwC,YAAY,0CAA0C,wBAAwB,QAAQ,sCAAsC,gBAAgB,kBAAkB,kBAAkB,oCAAoC,kBAAkB,mBAAmB,uCAAuC,gBAAgB,+EAA+E,YAAY,sBAAsB,mBAAmB,aAAa,cAAc,sCAAsC,YAAY,cAAc,gBAAgB,YAAY,gBAAgB,kEAAkE,0BAA0B,+CAA+C,aAAa,UAAU,sBAAsB,oFAAoF,wDAAwD,uBAAuB,SAAS,aAAa,QAAQ,mDAAmD,iBAAiB,mDAAmD,gBAAgB;AACp9G,kEAAY;;AAE2J;;;;;;;;;;;;;;;;;;;AC39B5G;AAC83B;;AAEz7B,8DAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+EAA+E;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA,oFAAoF;AACpF;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,2BAA2B,6DAAO;AAClC;AACA,4EAA4E,eAAe;AAC3F;AACA;AACA;AACA;AACA,oFAAoF,eAAe;AACnG;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,iEAAc;AACnD;AACA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,iEAAc;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wEAAwE;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2EAA2E;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,EAAE,8DAAM;AACb;AACA;AACA;AACA;AACA;AACA;AACA,kEAAkE,gBAAgB;AAClF;AACA;AACA;AACA;AACA;AACA,qEAAqE,gBAAgB;AACrF;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA,kCAAkC;AAClC;AACA,yCAAyC;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC,yCAAyC;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uEAAuE;AACvE;AACA;AACA;AACA,QAAQ,kEAAU;AAClB;AACA;AACA,SAAS;AACT,QAAQ,kEAAkB;AAC1B;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,YAAY,kEAAa;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,kEAAU;AACtB;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,sEAAsE;AACtE;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,kEAAU;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,8BAA8B,8DAAgB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,8DAAuB;AACzC;AACA;AACA;AACA;AACA;AACA,eAAe,kEAAgB;AAC/B;AACA;;AAEA;AACA;AACA,kBAAkB,8DAAsB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,cAAc;AAC5B,cAAc,gBAAgB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,gBAAgB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD;AACA,0DAA0D;AAC1D,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,8DAAe;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC;AACA,oCAAoC;AACpC,iCAAiC;AACjC;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA,gBAAgB,kEAAgB;AAChC,gBAAgB,kEAAkB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD,yEAAyE;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC,0BAA0B,iBAAiB;AAC3C;AACA,mEAAmE;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,kEAAc;AAC9B,gBAAgB,kEAAgB;AAChC,uDAAuD;AACvD;AACA;AACA,0CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,eAAe;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,kEAAW;AACnC;AACA,4BAA4B,kEAAkB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA,iBAAiB,kEAAe;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA,8BAA8B;AAC9B;AACA,kBAAkB,WAAW;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,6DAAO;AAClC;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA,gDAAgD;AAChD,0BAA0B,kEAAW;AACrC,4BAA4B,kEAAc;AAC1C;AACA;AACA;AACA;AACA,wCAAwC,kEAAc;AACtD;AACA,oCAAoC,kEAAa;AACjD;AACA;AACA,+BAA+B,kEAAU;AACzC;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,iEAAO;AACrC;AACA;AACA,SAAS;AACT;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,iCAAiC;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,WAAW;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,kEAAkB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,kEAAgB;AAC3B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,uBAAuB;AAC9E;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,2BAA2B,6DAAW;AACtC;AACA;AACA;AACA,kBAAkB,WAAW;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,YAAY;AAC9B,kBAAkB,UAAU;AAC5B;AACA,sBAAsB,uBAAuB;AAC7C;AACA,0BAA0B,UAAU;AACpC,4DAA4D,iEAAiE,mGAAmG;AAChO;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4EAA4E,kEAA0B;AACtG;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,4BAA4B,6DAAW;AACvC;AACA;AACA;AACA;AACA,kBAAkB,sBAAsB;AACxC,kBAAkB,UAAU;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA6D;AAC7D;AACA;AACA,kBAAkB,UAAU;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,kEAAoB;AAC3D;AACA;AACA;AACA;AACA;AACA,mCAAmC,gDAAgD;AACnF;AACA,iCAAiC;AACjC,mCAAmC,wBAAwB;AAC3D;AACA;AACA,gBAAgB,kEAAY;AAC5B;AACA;AACA,gBAAgB,kEAAa;AAC7B;AACA;AACA,oDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA,gBAAgB,kEAAiB;AACjC;AACA;AACA;AACA,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB;AACA;AACA;AACA;AACA,4EAA4E,kEAA0B;AACtG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,UAAU;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,8DAAc;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;;AAEA,4BAA4B,6DAAW;AACvC;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA,kBAAkB,sBAAsB;AACxC,kBAAkB,SAAS;AAC3B,kBAAkB,UAAU;AAC5B;AACA;AACA,+CAA+C,iEAAQ;AACvD;AACA;AACA,kCAAkC,kEAAiB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,iEAAc;AAClD;AACA;AACA;AACA,iBAAiB,iEAAc,mCAAmC;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,uCAAuC;AACrF;AACA;AACA;AACA;AACA,0CAA0C,wBAAwB;AAClE;AACA;AACA,yDAAyD;AACzD;AACA;AACA,+BAA+B,6DAAS;AACxC;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,iEAAqB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,kEAAyB;AACzE;AACA,6BAA6B,kEAAkB;AAC/C;AACA;AACA;AACA,wDAAwD,iEAAqB;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,kEAAY;AAC5B;AACA;AACA,gBAAgB,kEAAa;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,kCAAkC;AACxD;AACA;AACA,mCAAmC,6DAAS;AAC5C;AACA;AACA,sBAAsB,WAAW;AACjC,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,kDAAkD,6DAAS;AAC3D;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA,2CAA2C,iEAAc;AACzD;AACA;AACA;AACA;AACA,iCAAiC;AACjC,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA,gHAAgH,mCAAmC,6FAA6F;AAChP;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,iEAAc;AACzD;AACA;AACA;AACA;AACA,iCAAiC;AACjC,6BAA6B;AAC7B;AACA,mGAAmG,qBAAqB,4CAA4C;AACpK;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA,gDAAgD,6DAAS;AACzD;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,2CAA2C,iEAAc;AACzD;AACA;AACA;AACA;AACA,iCAAiC;AACjC,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA,+FAA+F,wEAAwE,gFAAgF;AACvP,uGAAuG,kBAAkB,yDAAyD;AAClL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB;AACA;AACA;AACA;AACA,4EAA4E,8DAAwB;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,iEAAqB;AAC5D;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA,uCAAuC,0BAA0B;AACjE;AACA;AACA;AACA,mCAAmC,+BAA+B;AAClE;AACA;AACA;AACA;AACA,cAAc,mBAAmB;AACjC;AACA,wCAAwC,0BAA0B;AAClE;AACA;AACA;AACA,uCAAuC,0BAA0B;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,iEAAU;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,kEAAS;AACzB;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,UAAU;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA,4BAA4B,6DAAW;AACvC;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA,kBAAkB,YAAY;AAC9B;AACA,sBAAsB,iEAAQ;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,UAAU;AAC5B;AACA,kCAAkC,kEAAiB;AACnD;AACA;AACA,+BAA+B,iEAAQ;AACvC;AACA;AACA;AACA,2BAA2B,6DAAS;AACpC;AACA;AACA,aAAa;AACb;AACA;AACA,kBAAkB,UAAU;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,iEAAqB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,kEAAyB;AACjE;AACA,qBAAqB,kEAAkB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,mCAAmC,4BAA4B;AAC/D;AACA;AACA,gBAAgB,kEAAY;AAC5B;AACA;AACA,gBAAgB,kEAAa;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,UAAU;AAC5B;AACA;AACA,+BAA+B,6DAAS;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,0CAA0C,6DAAS;AACnD;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,mCAAmC,iEAAc;AACjD;AACA;AACA;AACA;AACA,yBAAyB;AACzB,qBAAqB;AACrB;AACA,qFAAqF,qBAAqB,qEAAqE,iEAAc,8CAA8C,iEAAc,mDAAmD;AAC5S;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,YAAY;AAC1B;AACA;AACA;AACA;AACA,4EAA4E,kEAA0B;AACtG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,iEAAc;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,kEAAS;AACzB;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;;AAEA;AACA;AACA;AACA,gDAAgD;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,kEAAqB;AAC9C,mCAAmC,iEAAc;AACjD,kCAAkC,iEAAc,kCAAkC;AAClF;AACA;AACA,kBAAkB,UAAU;AAC5B,kBAAkB,kBAAkB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,wBAAwB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,6DAAQ;AAC/B;AACA;AACA,eAAe,6DAAQ;AACvB,oBAAoB,6DAAQ;AAC5B,mBAAmB,6DAAQ;AAC3B,eAAe,6DAAQ;AACvB,sBAAsB,6DAAQ;AAC9B,qBAAqB,6DAAQ;AAC7B,iBAAiB,6DAAQ;AACzB,UAAU,6DAAQ;AAClB,kBAAkB,6DAAQ;AAC1B,gBAAgB,6DAAQ;AACxB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,WAAW;AAC7B;AACA;AACA;AACA;AACA,gCAAgC,iEAAqB;AACrD,+BAA+B,iEAAqB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,kEAAiB;AACjE,iCAAiC,kEAAkB;AACnD;AACA,oDAAoD,iEAAqB;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,kEAAY;AAC5B;AACA;AACA,gBAAgB,kEAAa;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,mCAAmC;AACrD;AACA;AACA;AACA;AACA;AACA,uFAAuF,wEAAwE,mEAAmE;AAClO;AACA,uCAAuC,kEAAiB;AACxD;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA,mCAAmC,6DAAS;AAC5C;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B,yBAAyB;AACzB;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,uEAAuE,8DAAwB;AAC/F,4CAA4C;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,kEAAa;AAChC;AACA;AACA,mBAAmB,kEAAa;AAChC;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,0BAA0B;AAC7D;AACA;AACA,mCAAmC,+BAA+B;AAClE;AACA;AACA;AACA;AACA,6CAA6C,0BAA0B;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,kEAAc;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA,UAAU,iBAAiB,EAAE,kEAAc;AAC3C,cAAc,kEAAa;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,kEAAkB;AAC1B,mBAAmB,kEAAmB,cAAc,YAAY;AAChE,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,iBAAiB;AAC3B,WAAW,kEAAa;AACxB;AACA,8DAAM;AACN;AACA,iBAAiB,8DAAM;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA,kBAAkB,WAAW;AAC7B,kBAAkB,8BAA8B;AAChD;AACA;AACA;AACA,sCAAsC,6DAAoB;AAC1D;AACA;AACA,+DAA+D,6DAAoB;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D;AAC5D;AACA;AACA;AACA,mEAAmE;AACnE;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,8DAAe;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,YAAY,yEAAY;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAEgF;;;;;;;;;;;;;;;;;;AC7kEtB;AAClB;AACkC;AACrC;;AAEtC;AACA;AACA;AACA,wBAAwB,6DAAQ;AAChC,qBAAqB,6DAAQ;AAC7B,sBAAsB,6DAAQ;AAC9B,yBAAyB,6DAAQ;AACjC;AACA;AACA;AACA,oCAAoC,iEAAe;AACnD;;AAEA,YAAY,yEAAY;AACxB;AACA;AACA;AACA;AACA,uBAAuB,kDAAQ;AAC/B;AACA,6BAA6B,gDAAgD;AAC7E,SAAS;AACT;AACA;AACA,wBAAwB,SAAS;AACjC,6BAA6B,iBAAiB;AAC9C,SAAS;AACT;AACA;AACA,wBAAwB,UAAU;AAClC,6BAA6B,iBAAiB;AAC9C,iCAAiC,gDAAgD;AACjF,SAAS;AACT;AACA;AACA,wBAAwB,UAAU;AAClC,iCAAiC,iBAAiB;AAClD,SAAS;AACT;AACA;AACA,wBAAwB,SAAS;AACjC,iCAAiC,iBAAiB;AAClD,SAAS;AACT,KAAK;AACL,CAAC;;AAE2B;;;;;;;;;;;;;;;;;ACnD0X;AAC/U;;AAEvE,gCAAgC,6DAAa;AAC7C;AACA;AACA;AACA,oBAAoB,kEAAc;AAClC;AACA;AACA;AACA,cAAc,mCAAmC;AACjD,cAAc,8BAA8B;AAC5C,cAAc,SAAS;AACvB,sBAAsB,kEAAW;AACjC;AACA;AACA;AACA;AACA,0CAA0C;AAC1C;AACA,oCAAoC,kEAAiB,2CAA2C,kEAAiB,uCAAuC;AACxJ;AACA,gBAAgB,2EAAa,CAAC,6DAAgB,IAAI;AAClD;AACA,mBAAmB,kEAAgB;AACnC;AACA,6BAA6B,kEAAe;AAC5C,aAAa,iRAAiR;AAC9R,QAAQ,2EAAa,SAAS,sEAAsE;AACpG,YAAY,2EAAa,iBAAiB;AAC1C;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA,YAAY,2EAAa,CAAC,kEAAQ;AAClC,uBAAuB,2EAAa,sBAAsB,iDAAiD;AAC3G,uDAAuD,2EAAa,sBAAsB,yDAAyD;AACnJ;;AAEA,4BAA4B,iEAAe;AAC3C;AACA;AACA;AACA,CAAC;AACD,+BAA+B,6DAAa;AAC5C;AACA,cAAc,iBAAiB;AAC/B,cAAc,UAAU;AACxB,cAAc,iDAAiD;AAC/D;AACA,gBAAgB,2EAAa,CAAC,8DAAc,kBAAkB,WAAW;AACzE;AACA;AACA,gKAAgK,uCAAuC,2EAAa,CAAC,kEAAQ;AAC7N;AACA,YAAY,2EAAa,SAAS,yDAAyD;AAC3F,gBAAgB,2EAAa,WAAW;AACxC;AACA,uBAAuB;AACvB,YAAY,2EAAa,iBAAiB,4DAA4D,YAAY,eAAe,EAAE,aAAa,KAAK;AACrJ;AACA;AACA;AACA,2BAA2B,kEAAiB;AAC5C,YAAY,2EAAa,sBAAsB;AAC/C;AACA;AACA,UAAU,UAAU;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,kEAAe,0BAA0B;AAC1D;AACA,2BAA2B,kEAAgB;AAC3C;AACA;AACA,2BAA2B,kEAAgB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kEAAgB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,2EAAa,CAAC,6DAAgB,IAAI;AACtD,gCAAgC,cAAc,EAAE,aAAa;AAC7D,iBAAiB,iQAAiQ;AAClR;AACA,gBAAgB,2EAAa,SAAS,iCAAiC;AACvE;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,8DAAa;AACpC;AACA;AACA,+BAA+B,iEAAO;AACtC,gCAAgC,iEAAO;AACvC;AACA,0BAA0B,kEAAc;AACxC,2BAA2B,kEAAc;AACzC,8BAA8B,kEAAc;AAC5C;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B,cAAc,sBAAsB;AACpC;AACA,gBAAgB,2EAAa,CAAC,8DAAa,IAAI;AAC/C;AACA;AACA;AACA;AACA;AACA,2CAA2C;AAC3C,YAAY,2EAAa,CAAC,8DAAQ,IAAI,uIAAuI;AAC7K;AACA;AACA;AACA;AACA,cAAc,mBAAmB;AACjC;AACA;AACA;AACA;AACA,gBAAgB,2EAAa,CAAC,6DAAgB,IAAI,uTAAuT,qBAAqB,2EAAa,iBAAiB,oDAAoD;AAChd;AACA;AACA,cAAc,iBAAiB;AAC/B,cAAc,gDAAgD;AAC9D,iDAAiD;AACjD,gBAAgB,2EAAa,CAAC,8DAAQ,IAAI,aAAa;AACvD;AACA,mCAAmC,6BAA6B;AAChE;AACA,+BAA+B;AAC/B,iCAAiC,kEAAe;AAChD;AACA;AACA,oCAAoC,2EAAa,sBAAsB,wFAAwF;AAC/J,8BAA8B,kEAAa;AAC3C;AACA,wCAAwC,2EAAa,mCAAmC,mRAAmR,EAAE,kEAAU;AACvX;AACA;AACA;AACA,oBAAoB,2EAAa,YAAY,uDAAuD;AACpG,gBAAgB,2EAAa;AAC7B,oBAAoB,2EAAa;AACjC,wBAAwB,2EAAa,SAAS,gCAAgC;AAC9E,wBAAwB,2EAAa,SAAS,mCAAmC;AACjF,wBAAwB,2EAAa,SAAS,iCAAiC;AAC/E,gBAAgB,2EAAa;AAC7B,SAAS;AACT;AACA;AACA,sCAAsC,kEAAe;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,UAAU;AACxB,cAAc,mBAAmB;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,6BAA6B;AACxD,uBAAuB,iEAAe;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,iEAAU;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,iEAAO;AACxB,SAAS;AACT,mBAAmB,iEAAO;AAC1B;AACA,aAAa;AACb;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA,gBAAgB,iBAAiB;AACjC;AACA;AACA;AACA;AACA;AACA;;AAEA,sBAAsB,+BAA+B,uCAAuC,4BAA4B,wCAAwC,mBAAmB,mBAAmB,4CAA4C,aAAa,YAAY,uBAAuB,2BAA2B,aAAa,mBAAmB,oBAAoB,WAAW,wBAAwB,cAAc,eAAe,mCAAmC,mCAAmC,gBAAgB,MAAM,yBAAyB,cAAc,kBAAkB,2CAA2C,aAAa,sBAAsB,UAAU,+CAA+C,iBAAiB,+BAA+B,WAAW,aAAa,cAAc,wCAAwC,4CAA4C,6EAA6E,WAAW,6EAA6E,YAAY,wDAAwD,gBAAgB,wDAAwD,eAAe,uCAAuC,eAAe,4BAA4B,qDAAqD,mDAAmD,mBAAmB,UAAU,uBAAuB,iFAAiF,qDAAqD,uBAAuB,qBAAqB,SAAS,QAAQ,2BAA2B,cAAc,qBAAqB,+CAA+C,0BAA0B;AAC/uD,kEAAY;;AAEQ;;;;;;;;;;;;;;;;;AC1QuC;AACX;AACR;AACF;AACK;;AAE3C;AACA;AACA;;AAEA,YAAY,yEAAY;AACxB;AACA;AACA;AACA;AACA;AACA,uBAAuB,yDAAe;AACtC;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,wBAAwB,SAAS;AACjC,SAAS;AACT;AACA;AACA,wBAAwB,UAAU;AAClC,SAAS;AACT,KAAK;AACL,CAAC;;AAE2B;;;;;;;;;;;;;;;;;;;;;;;;;;ACjC8zB;AACxwB;AACrB;;AAE7D,6BAA6B,8DAAQ;AACrC;AACA;AACA,sBAAsB;AACtB,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,kEAAc;AAC1B;AACA;AACA;AACA;AACA;;AAEA,kCAAkC,iEAAe;AACjD;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,2EAAa,CAAC,6DAAe;AACzC;AACA,oBAAoB,2EAAa,SAAS,gEAAgE;AAC1G;AACA,cAAc,4BAA4B;AAC1C;AACA;AACA,qDAAqD,iEAAe;AACpE,gBAAgB,iEAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,2EAAa,CAAC,6DAAgB,IAAI;AAClD;AACA,aAAa,iRAAiR,qBAAqB,2EAAa,UAAU,sEAAsE;AAChZ,YAAY,2EAAa,iBAAiB;AAC1C;AACA;AACA,mBAAmB;AACnB,KAAK;AACL;AACA;AACA;AACA;;AAEA,2BAA2B,6DAAa;AACxC;AACA,uDAAuD,2EAAa,SAAS,mBAAmB;AAChG,YAAY,2EAAa,mCAAmC;AAC5D;AACA;;AAEA,gCAAgC,iEAAe,GAAG,eAAe;AACjE;AACA,2BAA2B,8DAAa;AACxC;AACA;AACA,oDAAoD;AACpD,2BAA2B,uEAAS;AACpC,yBAAyB,uEAAS;AAClC,6BAA6B,uEAAS;AACtC;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,UAAU;AAC5B,kBAAkB,cAAc;AAChC;AACA,yBAAyB,kEAAQ;AACjC;AACA;AACA,kBAAkB,kEAAiB;AACnC;AACA;AACA,wBAAwB,2EAAa,CAAC,8DAAmB,IAAI;AAC7D;AACA;AACA;AACA;AACA,qBAAqB,6DAA6D,qBAAqB,2EAAa,UAAU;AAC9H;AACA;AACA;AACA,0CAA0C,uBAAuB;AACjE,oBAAoB,2EAAa,iBAAiB;AAClD;AACA;AACA;AACA,kDAAkD;AAClD;AACA,oBAAoB,2EAAa,SAAS,oDAAoD;AAC9F,gBAAgB,2EAAa,UAAU,8CAA8C,uBAAuB;AAC5G;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,mBAAmB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,2EAAa,CAAC,6DAAgB,IAAI;AAC9C;AACA;AACA;AACA;AACA,iBAAiB,iQAAiQ,qBAAqB,2EAAa,UAAU;AAC9T;AACA;AACA;AACA,sCAAsC,qBAAqB;AAC3D,gBAAgB,2EAAa,iBAAiB;AAC9C;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA,4BAA4B,YAAY;AACxC;AACA;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA,gCAAgC,kEAAoB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,yBAAyB,wBAAwB;AACjD,aAAa;AACb;AACA;AACA;AACA;AACA,gBAAgB,2EAAa,SAAS,0DAA0D;AAChG,oBAAoB,2EAAa,SAAS,+EAA+E;AACzH,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT,gBAAgB,2EAAa,CAAC,8DAAa,IAAI,+EAA+E;AAC9H,YAAY,2EAAa,CAAC,8DAAgB,IAAI,2FAA2F,iBAAiB,uBAAuB;AACjL;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B,mDAAmD,kEAAoB;AACvE,uDAAuD,kEAAwB;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,2EAAa,SAAS,sBAAsB;AAC1F,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,2EAAa,SAAS,sBAAsB;AACjG,qBAAqB;AACrB;AACA;AACA;AACA,qBAAqB;AACrB;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,gBAAgB,2EAAa,SAAS,0DAA0D;AAChG,oBAAoB,2EAAa,SAAS,2FAA2F;AACrI,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,2EAAa,UAAU,qCAAqC;AAChF,wBAAwB,2EAAa,YAAY,8BAA8B,kDAAkD;AACjI;AACA,4BAA4B,2EAAa;AACzC,gCAAgC,2EAAa,iBAAiB,sBAAsB;AACpF,wBAAwB,2EAAa,UAAU,kDAAkD;AACjG,4BAA4B,2EAAa,CAAC,8DAAQ,IAAI,qDAAqD;AAC3G;AACA;AACA,wEAAwE;AACxE;AACA,4CAA4C,2EAAa,CAAC,8DAAqB,IAAI,2DAA2D,sBAAsB,+BAA+B;AACnM;AACA;AACA,6BAA6B;AAC7B,iBAAiB;AACjB;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,8DAAgB;AACjD,qBAAqB;AACrB;AACA;AACA,iCAAiC,8DAAgB;AACjD,qBAAqB;AACrB;AACA,aAAa;AACb;AACA,gBAAgB,2EAAa,CAAC,8DAAa,IAAI,+EAA+E;AAC9H,YAAY,2EAAa,eAAe;AACxC,sBAAsB,0BAA0B,iBAAiB,GAAG;AACpE,sBAAsB,SAAS,qCAAqC,GAAG;AACvE,uCAAuC;AACvC;AACA;AACA;AACA;AACA,cAAc,gCAAgC;AAC9C,iEAAiE;AACjE;AACA,2DAA2D;AAC3D;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,cAAc;AAC5B,YAAY,iEAAmB;AAC/B,iCAAiC,iEAAU;AAC3C;AACA,0BAA0B,kEAAS;AACnC,yBAAyB,kEAAS;AAClC,2CAA2C,iEAAc;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,iEAAU;AACvC;AACA,mCAAmC,iEAAc;AACjD;AACA;AACA;AACA;AACA;AACA,cAAc,yBAAyB;AACvC;AACA;AACA,oDAAoD,kEAAS,6BAA6B,kEAAS;AACnG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,gCAAgC,6DAAa;AAC7C;AACA,cAAc,iBAAiB;AAC/B,cAAc,UAAU;AACxB,cAAc,aAAa;AAC3B,gBAAgB,2EAAa;AAC7B;AACA;AACA;AACA;AACA;AACA,oBAAoB,2EAAa,SAAS,4DAA4D;AACtG,+BAA+B,2EAAa,mCAAmC;AAC/E,gBAAgB,2EAAa,CAAC,6DAAgB,IAAI;AAClD;AACA;AACA;AACA;AACA;AACA,qBAAqB,sOAAsO;AAC3P,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA,4BAA4B,6DAAa;AACzC;AACA;AACA,yBAAyB,uEAAS;AAClC,8BAA8B,8DAAM;AACpC;AACA;AACA,cAAc,iBAAiB;AAC/B,gBAAgB,2EAAa,UAAU,qDAAqD;AAC5F,YAAY,2EAAa,YAAY;AACrC;AACA;AACA;AACA,mBAAmB;AACnB;AACA,gBAAgB,2EAAa,sBAAsB,2EAA2E;AAC9H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA,uCAAuC;AACvC,2DAA2D,8DAAa;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,YAAY;AAC5B;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,YAAY;AACpC;AACA;AACA;AACA;AACA,wBAAwB,YAAY;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,8BAA8B,6DAAa;AAC3C;AACA,cAAc,QAAQ;AACtB,gBAAgB,2EAAa,CAAC,8DAAiB,IAAI;AACnD;AACA;AACA,aAAa,4UAA4U,qBAAqB,2EAAa,iBAAiB,uEAAuE;AACnd;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,wBAAwB,8DAAY;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kEAAwB;AAC/C;AACA,8BAA8B;AAC9B;AACA,aAAa;AACb;AACA;AACA,YAAY,iBAAiB;AAC7B;AACA;AACA;AACA;AACA;AACA,0CAA0C,YAAY,iCAAiC;AACvF;AACA;AACA,KAAK;AACL;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,kCAAkC;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,8BAA8B;AACxC;AACA;AACA;AACA;AACA;AACA,WAAW,uDAAuD;AAClE,UAAU;AACV,WAAW,kBAAkB;AAC7B;AACA;AACA,0BAA0B,kEAAY,mCAAmC,8DAAe;AACxF,4DAA4D;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,uEAAuE,kEAAa;AACpF,cAAc,4BAA4B;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uEAAuE,WAAW,sDAAsD;AACxI,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,oEAAoE,kEAAa;AACjF,iDAAiD,WAAW;AAC5D,yCAAyC;AACzC;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,UAAU,yBAAyB;AACnC;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,6BAA6B,0BAA0B;AACvD;AACA,aAAa;AACb;;AAEA,4BAA4B,iEAAe;AAC3C;AACA;AACA;AACA,CAAC;AACD,2BAA2B,6DAAa;AACxC;AACA,gBAAgB,2EAAa,CAAC,8DAAa,kBAAkB,gBAAgB;AAC7E;AACA;AACA;AACA,uDAAuD;AACvD;AACA;;AAEA,sBAAsB,6DAAa;AACnC;AACA;AACA,6BAA6B,iEAAO,CAAC,8DAAa;AAClD;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B,cAAc,UAAU;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,2EAAa,CAAC,8DAAgB,IAAI;AAClD;AACA;AACA,wCAAwC,kBAAkB,mJAAmJ,qBAAqB,2EAAa,UAAU,oCAAoC;AAC7R,YAAY,2EAAa,UAAU,iCAAiC;AACpE;AACA;AACA;AACA,YAAY,2EAAa,UAAU,qCAAqC;AACxE,YAAY,2EAAa,UAAU,qCAAqC,kCAAkC;AAC1G,YAAY,2EAAa,UAAU,kDAAkD;AACrF,YAAY,kEAAuB,cAAc,2EAAa,iBAAiB,mDAAmD;AAClI;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,oEAAoE;AAClF,cAAc,wDAAwD;AACtE;AACA;AACA,cAAc,8BAA8B;AAC5C,gBAAgB,2EAAa,CAAC,kEAAQ;AACtC;AACA;AACA,sBAAsB,YAAY;AAClC;AACA;AACA;AACA,mFAAmF;AACnF;AACA,qGAAqG;AACrG,wBAAwB,2EAAa,UAAU;AAC/C,gJAAgJ,uCAAuC,oBAAoB;AAC3M,oBAAoB,2EAAa,+BAA+B,yJAAyJ,EAAE,kEAAU;AACrO,aAAa;AACb;AACA;AACA;AACA,cAAc,0FAA0F;AACxG,gBAAgB,2EAAa,CAAC,kEAAQ;AACtC;AACA;AACA,oBAAoB,2EAAa,oBAAoB,KAAK,kEAAc,CAAC,kEAAuB,2QAA2Q;AAC3W,SAAS;AACT;AACA;AACA,cAAc,iBAAiB;AAC/B,gHAAgH;AAChH;AACA;AACA,oBAAoB,2EAAa,UAAU,KAAK,kEAAkB,yFAAyF;AAC3J,gBAAgB,2EAAa,CAAC,8DAAO,kBAAkB,UAAU,EAAE,kEAAU;AAC7E,gBAAgB,kEAAU;AAC1B,SAAS;AACT,eAAe,2EAAa,CAAC,kEAAQ;AACrC;AACA;AACA,cAAc,mBAAmB;AACjC;AACA;AACA;AACA,qCAAqC,2EAAa,CAAC,8DAAqB;AACxE;AACA;AACA;AACA;AACA;AACA,aAAa,6BAA6B;AAC1C;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA,+CAA+C;AAC/C,qEAAqE;AACrE,kBAAkB;AAClB,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kEAAkE;AAClE;AACA;AACA;AACA;AACA,2CAA2C,6DAA6D;AACxG;AACA;AACA;AACA,YAAY,2EAAa,CAAC,kEAAQ;AAClC;AACA,gBAAgB,2EAAa,UAAU,0BAA0B,2DAA2D;AAC5H,YAAY,2EAAa,+BAA+B,mIAAmI,EAAE,kEAAU;AACvM,KAAK;AACL;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,8BAA8B,6DAAa;AAC3C;AACA;AACA,gCAAgC,iEAAO;AACvC,gCAAgC,iEAAO;AACvC,qCAAqC,iEAAO;AAC5C,qCAAqC,iEAAO;AAC5C,sCAAsC,iEAAO;AAC7C,8BAA8B,iEAAO;AACrC,gCAAgC,iEAAO;AACvC,yBAAyB,uEAAS;AAClC,8BAA8B,8DAAM;AACpC;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA,4DAA4D;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,2EAAa,UAAU,oDAAoD;AAC3F,YAAY,2EAAa,YAAY;AACrC;AACA;AACA,mBAAmB;AACnB;AACA,gBAAgB,2EAAa,YAAY,sBAAsB;AAC/D,oBAAoB,2EAAa,SAAS,aAAa;AACvD,uCAAuC,2EAAa,SAAS,oEAAoE;AACjI,4BAA4B,2EAAa,UAAU,oCAAoC;AACvF,gCAAgC,2EAAa,UAAU,kDAAkD,0CAA0C,2EAAa,CAAC,8DAAqB,IAAI,2DAA2D,sBAAsB,qCAAqC;AAChT,sDAAsD,2EAAa,YAAY,kqBAAkqB;AACjvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA,kCAAkC,8DAAa;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,8DAAa;AACpC;AACA;AACA,kCAAkC,iEAAO;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,qBAAqB;AACvC,kBAAkB,aAAa;AAC/B;AACA;AACA;AACA,0CAA0C;AAC1C;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,YAAY;AACxC;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,eAAe;AAC7B,gBAAgB,2EAAa,UAAU;AACvC;AACA;AACA;AACA;AACA,eAAe;AACf,YAAY,2EAAa,kBAAkB,yVAAyV;AACpY,YAAY,2EAAa,oBAAoB,ymBAAymB;AACtpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,mBAAmB;AACjC,cAAc,YAAY;AAC1B,cAAc,cAAc;AAC5B,cAAc,aAAa;AAC3B,cAAc,6BAA6B;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA,gEAAgE;AAChE,qEAAqE;AACrE;AACA;AACA,uBAAuB,kEAAY,0BAA0B,kEAAgB;AAC7E;AACA;AACA;AACA;AACA,0CAA0C,SAAS,YAAY,iBAAiB;AAChF;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kEAAoB;AAC3C;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA,gCAAgC,8DAAM;AACtC;AACA;AACA,0BAA0B,wBAAwB;AAClD,2BAA2B,iEAAe;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;;AAEA,0BAA0B,8DAAa;AACvC;AACA;AACA,8BAA8B,iEAAO;AACrC;AACA,2BAA2B,uEAAS;AACpC;AACA;AACA,cAAc,iBAAiB;AAC/B,cAAc,6BAA6B;AAC3C,cAAc,iCAAiC;AAC/C;AACA;AACA;AACA,gBAAgB,2EAAa,CAAC,8DAAQ,IAAI,uCAAuC,4BAA4B,2EAAa,2BAA2B,uBAAuB,0EAA0E,qkBAAqkB;AAC3zB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM,UAAU;AAChB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB;AACA;AACA;AACA;AACA,uBAAuB,iEAAc;AACrC;AACA;AACA,WAAW,kEAAS,aAAa,kEAAS;AAC1C;AACA,wBAAwB,kEAAoB;AAC5C;AACA;AACA;AACA;AACA,wBAAwB,kEAAmB;AAC3C;AACA,SAAS;AACT,mBAAmB,kEAAY;AAC/B,uBAAuB,kEAAY;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,QAAQ;AACrD,wBAAwB,iEAAc;AACtC,wBAAwB,kEAAoB;AAC5C;AACA;AACA;AACA;AACA,yBAAyB;AACzB;;AAEA;AACA;AACA;AACA,kCAAkC,iEAAO;AACzC,8BAA8B,iEAAO;AACrC;AACA;AACA,cAAc,yCAAyC;AACvD,cAAc,QAAQ;AACtB,cAAc,cAAc;AAC5B;AACA;AACA;AACA,cAAc,cAAc;AAC5B;AACA;AACA,mDAAmD,2EAAa,CAAC,8DAAS,IAAI,mJAAmJ;AACjO,gFAAgF,2EAAa,CAAC,uEAAQ,kBAAkB,uBAAuB,gbAAgb;AAC/jB,+CAA+C,2EAAa,8BAA8B,sBAAsB,kcAAkc;AACljB;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,8DAAc;AACtC,eAAe,8DAAa;AAC5B;;AAEA,4BAA4B,0CAA0C,8CAA8C,cAAc,2BAA2B,iCAAiC,YAAY,iCAAiC,aAAa,sBAAsB,YAAY,2BAA2B,YAAY,cAAc,gBAAgB,gBAAgB,sCAAsC,YAAY,cAAc,aAAa,4BAA4B,SAAS,gBAAgB,gBAAgB,MAAM,iCAAiC,yBAAyB,0BAA0B,mBAAmB,+BAA+B,4BAA4B,6BAA6B,sBAAsB,qCAAqC,WAAW,YAAY,oCAAoC,gBAAgB,kCAAkC,gBAAgB,sDAAsD,yCAAyC,OAAO,QAAQ,4DAA4D,+CAA+C,0DAA0D,kDAAkD,gDAAgD,SAAS,6DAA6D,sDAAsD,qDAAqD,oDAAoD,wDAAwD,kCAAkC,UAAU,yBAAyB,gBAAgB,sBAAsB,gBAAgB,kBAAkB,UAAU,4BAA4B,kBAAkB,yDAAyD,kBAAkB,UAAU,sBAAsB,gBAAgB,aAAa,mCAAmC,mBAAmB,4BAA4B,wBAAwB,oCAAoC,qBAAqB,mBAAmB,4BAA4B,sBAAsB,kEAAkE,cAAc,mCAAmC,YAAY,4BAA4B,mBAAmB,aAAa,yBAAyB,gBAAgB,8BAA8B,cAAc,eAAe,gDAAgD,iBAAiB,gDAAgD,gBAAgB,+CAA+C,SAAS,YAAY,OAAO,kBAAkB,QAAQ,MAAM,kCAAkC,0CAA0C,2BAA2B,gBAAgB,kBAAkB,uDAAuD,SAAS,YAAY,OAAO,kBAAkB,QAAQ,MAAM,mCAAmC,SAAS,OAAO,kBAAkB,QAAQ,MAAM,yCAAyC,YAAY,oIAAoI,OAAO,kBAAkB,QAAQ,MAAM,wBAAwB,UAAU,yCAAyC,UAAU,qCAAqC,UAAU,sCAAsC,UAAU,4BAA4B,OAAO,kBAAkB,QAAQ,4BAA4B,UAAU,yCAAyC,SAAS,gBAAgB,0CAA0C,oBAAoB,0CAA0C,oBAAoB,2BAA2B,kBAAkB,8CAA8C,SAAS,OAAO,kBAAkB,QAAQ,MAAM,8GAA8G,6CAA6C,0CAA0C,kBAAkB,oCAAoC,mBAAmB,kBAAkB,kCAAkC,kBAAkB,kCAAkC,oCAAoC,kBAAkB,mBAAmB,8CAA8C,mBAAmB,gBAAgB,8CAA8C,0BAA0B,yCAAyC,oCAAoC,uBAAuB,wCAAwC,qCAAqC,eAAe,kBAAkB,kBAAkB,aAAa,6BAA6B,gBAAgB,MAAM,yCAAyC,QAAQ,yCAAyC,OAAO,yEAAyE,oBAAoB,oCAAoC,2CAA2C,mBAAmB,qBAAqB,OAAO,kBAAkB,QAAQ,UAAU,qCAAqC,2CAA2C,mBAAmB,gBAAgB,kBAAkB,UAAU,mDAAmD,gCAAgC,6BAA6B,2BAA2B,OAAO,mDAAmD,gCAAgC,6BAA6B,2BAA2B,QAAQ;AAC/2K,kEAAY;;AAEgJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACxnCwU,gBAAgB,yBAAyB,SAAS,gBAAgB,qDAAqD,uDAAuD,SAAS,gBAAgB,4CAA4C,cAAc,aAAa,gBAAgB,cAAc,gCAAgC,oFAAoF,cAAc,oCAAoC,qDAAC,MAAM,oGAAoG,iBAAiB,6CAAC,0EAA0E,yCAAyC,MAAM,2CAAC,KAAK,2CAAC,iBAAiB,mEAAmE,oFAAoF,cAAc,cAAc,UAAU,IAAI,qCAAqC,+HAA+H,oBAAoB,oBAAoB,oDAAC,CAAC,oDAAC,YAAY,IAAI,kCAAkC,SAAS,oDAAC,aAAa,kBAAkB,MAAM,oDAAC,IAAI,qCAAqC,YAAY,SAAS,gDAAC,CAAC,GAAG,2CAAC,KAAK,2CAAC,uBAAuB,wBAAwB,OAAO,8EAA8E,YAAY,MAAM,2CAAC,SAAS,kBAAkB,+DAA+D,kCAAkC,+BAA+B,uFAAuF,gBAAgB,KAAK,kBAAkB,yDAAyD,gBAAgB,yFAAyF,aAAa,qCAAqC,cAAc,eAAe,0BAA0B,cAAc,UAAU,cAAc,+BAA+B,eAAe,aAAa,IAAI,YAAY,cAAc,OAAO,qDAAC,MAAM,uCAAuC,aAAa,wBAAwB,2CAAC,qBAAqB,YAAY,uDAAuD,kBAAkB,6CAAC,oBAAoB,mBAAmB,gCAAgC,iCAAiC,iCAAiC,QAAQ,iBAAiB,aAAa,gBAAgB,kBAAkB,sCAAsC,MAAM,gBAAgB,eAAe,EAAE,YAAY,kBAAkB,cAAc,wBAAwB,uBAAuB,cAAc,6CAA6C,UAAU,kCAAkC,aAAa,iBAAiB,0DAA0D,0CAA0C,cAAc,aAAa,qDAAC,CAAC,4CAAC,kBAAkB,wBAAwB,qDAAC,CAAC,4CAAC,iCAAiC,sBAAsB,yGAAyG,EAAE,EAAE,KAAK,WAAW,WAAW,mBAAmB,aAAa,cAAc,uCAAuC,iBAAiB,YAAY,cAAc,iBAAiB,kCAAkC,8CAAC,6BAA6B,gEAAgE,8DAA8D,2CAA2C,4BAA4B,2CAA2C,yBAAyB,6EAA6E,EAAE,8CAAC,CAAC,qDAAC,IAAI,kBAAkB,4CAA4C,gBAAgB,MAAM,qDAAC,IAAI,UAAU,EAAE,2BAA2B,iBAAiB,6CAAC,kBAAkB,mCAAmC,0BAA0B,iBAAiB,8CAA8C,YAAY,gCAAgC,2BAA2B,MAAM,oDAAC,aAAa,mDAAmD,mBAAmB,IAAI,sCAAsC,kBAAkB,yEAAyE,WAAW,6BAA6B,SAAS,GAAG,0ZAA0Z,oGAAoG,kBAAkB,uCAAuC,8CAAC,6CAA6C,kBAAkB,OAAO,+CAAC,6CAA6C,6CAAC,8BAA8B,8FAA8F,sBAAsB,6CAAC,cAAc,+BAA+B,yBAAyB,iBAAiB,8BAA8B,oCAAoC,GAAG,EAAE,EAAE,MAAM,2CAAC,OAAO,cAAc,aAAa,yBAAyB,aAAa,6BAA6B,2CAAC,mBAAmB,gGAAgG,UAAU,+BAA+B,mBAAmB,IAAI,2CAAC,OAAO,2CAAC,mBAAmB,2BAA2B,uBAAuB,0BAA0B,iBAAiB,IAAI,WAAW,yiBAAyiB,0DAA0D,oDAAC,iCAAiC,oDAAoD,+CAA+C,oDAAC,iCAAiC,oGAAoG,oJAAoJ,wBAAwB,OAAO,2CAAC,KAAK,2CAAC,iBAAiB,mBAAmB,QAAQ,wBAAwB,SAAS,wBAAwB,mCAAmC,aAAa,eAAe,OAAO,iDAAC,cAAc,eAAe,0BAA0B,eAAe,aAAa,gDAAC,yBAAyB,eAAe,gBAAgB,8CAAC,aAAa,eAAe,4CAA4C,qBAAqB,YAAY,kBAAkB,YAAY,IAAI,4CAAC,CAAC,eAAe,IAAI,eAAe,SAAS,cAAc,cAAc,OAAO,yDAAC,CAAC,iBAAiB,YAAY,sDAAC,EAAE,GAAG,UAAU,kBAAkB,OAAO,6DAAC,YAAY,6BAA6B,IAAI,EAAE,UAAU,uDAAC,YAAY,yBAAyB,IAAI,eAAe,kBAAkB,IAAI,EAAE,EAAE,QAAQ,QAAQ,SAAS,kDAAC,OAAO,+CAAC,YAAY,oDAAC,WAAW,mDAAC,iBAAiB,yDAAC,8GAA8G,gDAAC,qBAAqB,6DAAC,SAAS,iDAAC,aAAa,qDAAC,YAAY,oDAAC,eAAe,uDAAC,uGAAuG,iDAAC,eAAe,iDAAC,4CAA4C,6CAAC,UAAU,4CAAC,4CAA4C,6CAAC,mLAA+rB;AACllS;;;;;;;;;;;;;;;;;;;;;;;;;;ACDA,0BAA0B,4EAA4E,gBAAgB,yBAAyB,SAAS,cAAc,mBAAmB,oBAAoB,kBAAkB,eAAe,qDAAqD,wLAAwL,uBAAuB,sBAAsB,OAAO,8HAA8H,4CAA4C,aAAa,OAAO,cAAc,cAAc,kBAAkB,sBAAsB,MAAM,iEAAiE,8HAA8H,kBAAkB,gGAAgG,sBAAsB,MAAM,yDAAyD,KAAK,sFAAsF,kDAAkD,wIAAwI,iFAAiF,uCAAuC,0DAA0D,kHAAkH,kBAAkB,QAAQ,UAAU,sGAAsG,cAAc,KAAK,IAAI,+CAA+C,QAAQ,MAAM,cAAc,KAAK,IAAI,+CAA+C,QAAQ,MAAM,gBAAgB,4BAA4B,gBAAgB,0DAA0D,UAAU,eAAe,oDAAoD,0CAA0C,cAAc,QAAQ,gCAAgC,8BAA8B,eAAe,wCAAwC,uBAAuB,MAAM,aAAa,cAAc,qBAAqB,cAAc,oGAAoG,aAAa,oBAAoB,yBAAyB,2BAA2B,EAAE,YAAY,kFAAkF,+JAA+J,2BAA2B,GAAG,QAAQ,gCAAgC,2CAA2C,iBAAiB,WAAW,yKAAyK,WAAW,4EAA4E,sFAAsF,aAAa,IAAI,KAAK,4CAA4C,YAAY,MAAM,OAAO,oSAAoS,gBAAgB,IAAI,iHAAiH,aAAa,WAAW,0BAA0B,kBAAkB,sBAAsB,cAAc,+EAA+E,SAAS,gBAAgB,kFAAkF,OAAO,eAAe,wBAAwB,UAAU,uCAAuC,iGAAiG,KAAK,YAAY,8BAA8B,qBAAqB,wBAAwB,kCAAkC,cAAc,UAAU,sDAAsD,8BAA8B,KAAK,uCAAuC,YAAY,8BAA8B,2CAA2C,sCAAsC,sEAAsE,IAAI,2BAA2B,yPAAyP,+IAA+I,qOAAqO,KAAK,+MAA+M,wGAAwG,YAAY,MAAM,eAAe,yBAAyB,iCAAiC,QAAQ,gHAAgH,4BAA4B,EAAE,kFAAkF,6EAA6E,eAAe,yBAAyB,SAAS,QAAQ,qEAAqE,qBAAqB,gDAAgD,iRAAiR,mFAAmF,mBAAmB,SAAS,gFAAgF,gBAAgB,qCAAqC,IAAI,oCAAoC,UAAU,EAAE,SAAS,gBAAgB,EAAE,4BAA4B,2CAA2C,kCAAkC,WAAW,8EAA8E,cAAc,MAAM,YAAY,8CAA8C,2GAA2G,6CAA6C,KAAK,sGAAsG,mBAAmB,KAAK,sBAAsB,kDAAkD,4FAA4F,2BAA2B,sIAAsI,IAAI,qBAAqB,oNAAoN,SAAS,kBAAkB,IAAI,sCAAsC,SAAS,YAAY,kBAAkB,QAAQ,mGAAmG,8BAA8B,yBAAyB,SAAS,WAAW,+BAA+B,mBAAmB,WAAW,iDAAiD,iDAAiD,kBAAkB,6BAA6B,kBAAkB,UAAU,2OAA2O,gBAAgB,SAAS,kBAAkB,gBAAgB,UAAU,qDAAqD,oHAAoH,gBAAgB,OAAO,6CAA6C,qBAAqB,sBAAsB,QAAQ,wCAAwC,0CAA0C,SAAS,wCAAwC,+CAA+C,cAAc,EAAE,sBAAsB,UAAU,6BAA6B,kCAAkC,uCAAuC,eAAe,8CAA8C,aAAa,sBAAsB,cAAc,OAAO,yBAAyB,mKAAmK,4BAA4B,SAAS,IAAI,SAAS,mBAAmB,uCAAuC,yCAAyC,MAAM,8DAA8D,4CAA4C,4EAA4E,qCAAqC,oDAAoD,8HAA6T;AAC37U;;;;;;;;;;;;;;;;;;;;;;;;;;;ACDiC,4BAA4B,2CAAC,OAAO,2CAAC,OAAO,2CAAC,UAAU,2CAAC,OAAO,2CAAC,SAAS,gBAAgB,2CAAC,MAAM,2CAAC,mBAAmB,qBAAqB,aAAa,EAAE,kCAAkC,MAAM,UAAU,cAAc,kBAAkB,kBAAkB,eAAe,uDAAuD,wCAAwC,2CAA2C,GAAG,iBAAiB,OAAO,8BAA8B,wCAAwC,uBAAuB,sCAAsC,aAAa,EAAE,uBAAuB,aAAa,+BAA+B,SAAS,6BAA6B,UAAU,cAAc,6CAA6C,oDAAoD,mBAAmB,gBAAgB,eAAe,CAAC,2CAAC,mDAAmD,gBAAgB,eAAe,CAAC,2CAAC,+CAA+C,cAAc,wBAAwB,OAAO,WAAW,KAAK,kBAAkB,iBAAiB,8CAA8C,eAAe,8BAA8B,sBAAsB,SAAS,wBAAwB,gBAAgB,eAAe,uDAAuD,gBAAgB,wBAAwB,SAAS,IAAI,cAAc,kCAAkC,mEAAmE,gBAAgB,2CAAC,gBAAgB,2CAAC,yBAAyB,cAAc,sBAAsB,sEAAsE,wBAAwB,mBAAmB,aAAa,EAAE,aAAa,gBAAgB,UAAU,gBAAgB,8BAA8B,QAAQ,2BAA2B,yBAAyB,YAAY,aAAa,UAAU,YAAY,qBAAqB,uDAAuD,SAAS,aAAa,2CAAC,eAAe,2CAAC,iBAAiB,eAAe,CAAC,2CAAC,iBAAiB,YAAY,oBAAoB,sDAAsD,6CAA6C,qDAAqD,CAAC,2CAAC,oBAAoB,QAAQ,YAAY,iDAAiD,2CAAC,4BAA4B,2CAAC,6DAA6D,4DAA4D,YAAY,CAAC,2CAAC,mBAAmB,mBAAmB,IAAI,gDAAgD,kBAAkB,EAAE,SAAS,mBAAmB,kBAAkB,OAAO,2CAAC,eAAe,YAAY,CAAC,2CAAC,qBAAqB,QAAQ,cAAc,wCAAwC,IAAI,KAAK,SAAS,KAAK,kBAAkB,2CAAC,gBAAgB,+CAA+C,cAAc,mBAAmB,yDAAyD,qBAAqB,gCAAgC,cAAc,gBAAgB,6CAA6C,cAAc,QAAQ,iBAAiB,gBAAgB,oDAAoD,gBAAgB,EAAE,gBAAgB,kCAAmP;AACh8G;;;;;;;UCDA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAE8C;AACI;AACQ;AACd;AACQ;;AAEpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASK,uBAAuBA,CAACC,GAAG,EAAEC,KAAK,EAAE;EACzC,OAAO,UAAUC,SAAS,EAAEC,eAAe,EAAEC,eAAe,EAAE;IAC1D,IAAMC,QAAQ,GAAGC,QAAQ,CAACC,aAAa,CAAC,yBAAyB,CAAC;IAClE,IAAMC,SAAS,GAAGH,QAAQ,GAAGA,QAAQ,CAACI,YAAY,CAAC,SAAS,CAAC,GAAG,EAAE;IAElE,IAAMC,SAAS,GAAGV,GAAG,CAACW,QAAQ,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG;IAC/C,IAAMC,MAAM,GAAG,IAAIC,eAAe,CAAC;MAC/BC,KAAK,EAAEZ,SAAS,CAACa,QAAQ;MACzBC,GAAG,EAAEd,SAAS,CAACe;IACnB,CAAC,CAAC;IACF,IAAIhB,KAAK,IAAIA,KAAK,CAACiB,KAAK,EAAE;MACtBN,MAAM,CAACO,GAAG,CAAC,OAAO,EAAEC,MAAM,CAACnB,KAAK,CAACiB,KAAK,CAAC,CAAC;IAC5C;IACA,IAAIjB,KAAK,IAAIA,KAAK,CAACoB,MAAM,EAAE;MACvB,IAAIpB,KAAK,CAACoB,MAAM,YAAYC,GAAG,IAAIrB,KAAK,CAACoB,MAAM,CAACE,IAAI,GAAG,CAAC,EAAE;QACtDX,MAAM,CAACO,GAAG,CAAC,QAAQ,EAAEK,KAAK,CAACC,IAAI,CAACxB,KAAK,CAACoB,MAAM,CAAC,CAACK,IAAI,CAAC,GAAG,CAAC,CAAC;QACxDF,KAAK,CAACC,IAAI,CAACxB,KAAK,CAACoB,MAAM,CAAC,CAACM,OAAO,CAAC,UAAUC,CAAC,EAAE;UAC1ChB,MAAM,CAACiB,MAAM,CAAC,cAAc,EAAED,CAAC,CAAC;QACpC,CAAC,CAAC;MACN,CAAC,MAAM,IAAI,OAAO3B,KAAK,CAACoB,MAAM,KAAK,QAAQ,EAAE;QACzCT,MAAM,CAACO,GAAG,CAAC,QAAQ,EAAElB,KAAK,CAACoB,MAAM,CAAC;MACtC;IACJ;IAEAS,KAAK,CAAC9B,GAAG,GAAGU,SAAS,GAAGE,MAAM,CAACmB,QAAQ,CAAC,CAAC,EAAE;MACvCC,MAAM,EAAE,KAAK;MACbC,WAAW,EAAE,aAAa;MAC1BC,OAAO,EAAE;QACL,QAAQ,EAAE,kBAAkB;QAC5B,cAAc,EAAE1B,SAAS;QACzB,kBAAkB,EAAE;MACxB;IACJ,CAAC,CAAC,CACG2B,IAAI,CAAC,UAAUC,QAAQ,EAAE;MACtB,IAAI,CAACA,QAAQ,CAACC,EAAE,EAAE;QACd,MAAM,IAAIC,KAAK,CAAC,uBAAuB,GAAGF,QAAQ,CAACG,MAAM,CAAC;MAC9D;MACA,OAAOH,QAAQ,CAACI,IAAI,CAAC,CAAC;IAC1B,CAAC,CAAC,CACDL,IAAI,CAAC,UAAUM,IAAI,EAAE;MAClB;MACA;MACA;MACA;MACA;MACA,IAAMC,MAAM,GAAGlB,KAAK,CAACmB,OAAO,CAACF,IAAI,CAAC,GAAGA,IAAI,GAAIA,IAAI,CAACC,MAAM,IAAI,EAAG;MAC/D,IAAIzC,KAAK,IAAI,OAAOA,KAAK,CAAC2C,WAAW,KAAK,UAAU,EAAE;QAClD3C,KAAK,CAAC2C,WAAW,CAAC;UACdC,SAAS,EAAE,CAAC,EAAEJ,IAAI,IAAIA,IAAI,CAACI,SAAS,CAAC;UACrCC,KAAK,EAAEL,IAAI,GAAGA,IAAI,CAACK,KAAK,GAAGJ,MAAM,CAACK,MAAM;UACxCC,QAAQ,EAAEN,MAAM,CAACK;QACrB,CAAC,CAAC;MACN;MACA5C,eAAe,CAACuC,MAAM,CAAC;IAC3B,CAAC,CAAC,SACI,CAAC,UAAUO,GAAG,EAAE;MAClB7C,eAAe,CAAC6C,GAAG,CAAC;IACxB,CAAC,CAAC;EACV,CAAC;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,kBAAkBA,CAACC,aAAa,EAAElD,KAAK,EAAEmD,WAAW,EAAEC,IAAI,EAAE;EACjE,IAAMC,KAAK,GAAG,CAAC,EAAED,IAAI,IAAIA,IAAI,CAACC,KAAK,CAAC;EACpC,IAAMC,eAAe,GAAG,EAAEF,IAAI,IAAIA,IAAI,CAACG,QAAQ,KAAK,KAAK,CAAC;EAC1D,IAAIF,KAAK,IAAI,EAAErD,KAAK,CAACoB,MAAM,YAAYC,GAAG,CAAC,EAAE;IACzC;IACA;IACA;IACArB,KAAK,CAACoB,MAAM,GAAG,IAAIC,GAAG,CAACE,KAAK,CAACmB,OAAO,CAAC1C,KAAK,CAACoB,MAAM,CAAC,GAAGpB,KAAK,CAACoB,MAAM,GAAG,EAAE,CAAC;EAC3E;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,IAAMoC,SAAS,GAAGnD,QAAQ,CAACoD,aAAa,CAAC,KAAK,CAAC;EAC/CD,SAAS,CAACE,SAAS,GAAG,0BAA0B;EAChDF,SAAS,CAACG,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC;EACvCH,SAAS,CAACG,YAAY,CAAC,YAAY,EAAE,kBAAkB,CAAC;EAExD,IAAMC,WAAW,GAAG,CAAC,CAAC;EACtBV,aAAa,CAACxB,OAAO,CAAC,UAAUmC,GAAG,EAAE;IACjC,IAAMC,QAAQ,GAAGzD,QAAQ,CAACoD,aAAa,CAAC,QAAQ,CAAC;IACjDK,QAAQ,CAACC,IAAI,GAAG,QAAQ;IACxB;IACA;IACA;IACA;IACA;IACA;IACA;IACAD,QAAQ,CAACJ,SAAS,GAAG,qDAAqD;IAC1EI,QAAQ,CAACE,WAAW,GAAGH,GAAG,CAACI,IAAI;IAC/BH,QAAQ,CAACH,YAAY,CAAC,cAAc,EAAE,OAAO,CAAC;IAC9CG,QAAQ,CAACI,OAAO,CAACC,UAAU,GAAGN,GAAG,CAACO,IAAI;IACtCN,QAAQ,CAACO,gBAAgB,CAAC,OAAO,EAAE,YAAY;MAC3C,IAAIhB,KAAK,EAAE;QACP,IAAIrD,KAAK,CAACoB,MAAM,CAACkD,GAAG,CAACT,GAAG,CAACO,IAAI,CAAC,EAAE;UAC5BpE,KAAK,CAACoB,MAAM,UAAO,CAACyC,GAAG,CAACO,IAAI,CAAC;UAC7BN,QAAQ,CAACS,SAAS,CAACC,MAAM,CAAC,QAAQ,CAAC;UACnCV,QAAQ,CAACH,YAAY,CAAC,cAAc,EAAE,OAAO,CAAC;QAClD,CAAC,MAAM;UACH3D,KAAK,CAACoB,MAAM,CAACqD,GAAG,CAACZ,GAAG,CAACO,IAAI,CAAC;UAC1BN,QAAQ,CAACS,SAAS,CAACE,GAAG,CAAC,QAAQ,CAAC;UAChCX,QAAQ,CAACH,YAAY,CAAC,cAAc,EAAE,MAAM,CAAC;QACjD;MACJ,CAAC,MAAM;QACH3D,KAAK,CAACoB,MAAM,GAAGyC,GAAG,CAACO,IAAI;QACvBM,MAAM,CAACC,IAAI,CAACf,WAAW,CAAC,CAAClC,OAAO,CAAC,UAAUkD,SAAS,EAAE;UAClDhB,WAAW,CAACgB,SAAS,CAAC,CAACL,SAAS,CAACC,MAAM,CAAC,QAAQ,CAAC;UACjDZ,WAAW,CAACgB,SAAS,CAAC,CAACjB,YAAY,CAAC,cAAc,EAAE,OAAO,CAAC;QAChE,CAAC,CAAC;QACFG,QAAQ,CAACS,SAAS,CAACE,GAAG,CAAC,QAAQ,CAAC;QAChCX,QAAQ,CAACH,YAAY,CAAC,cAAc,EAAE,MAAM,CAAC;MACjD;MACA,IAAIL,eAAe,EAAE;QACjBuB,aAAa,CAAC;UAAEzD,MAAM,EAAE0D,qBAAqB,CAAC9E,KAAK,CAACoB,MAAM;QAAE,CAAC,CAAC;MAClE;MACA,IAAM2D,QAAQ,GAAG5B,WAAW,CAAC,CAAC;MAC9B,IAAI4B,QAAQ,EAAEA,QAAQ,CAACC,aAAa,CAAC,CAAC;IAC1C,CAAC,CAAC;IACFxB,SAAS,CAACyB,WAAW,CAACnB,QAAQ,CAAC;IAC/BF,WAAW,CAACC,GAAG,CAACO,IAAI,CAAC,GAAGN,QAAQ;EACpC,CAAC,CAAC;EAEF,OAAO;IAAEN,SAAS,EAAEA,SAAS;IAAEI,WAAW,EAAEA;EAAY,CAAC;AAC7D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASsB,2BAA2BA,CAACC,SAAS,EAAE;EAC5C,IAAI,CAACA,SAAS,EAAE,OAAO,EAAE;EACzB,IAAMC,GAAG,GAAG;IACR,GAAG,EAAE,MAAM;IAAE,GAAG,EAAE,IAAI;IACtB,GAAG,EAAE,MAAM;IAAE,GAAG,EAAE,KAAK;IAAE,GAAG,EAAE,IAAI;IAAE,GAAG,EAAE,GAAG;IAC5C,GAAG,EAAE,MAAM;IAAE,GAAG,EAAE,KAAK;IAAE,GAAG,EAAE,IAAI;IAAE,GAAG,EAAE,GAAG;IAC5C,GAAG,EAAE,IAAI;IAAE,GAAG,EAAE,GAAG;IAAE,GAAG,EAAE,IAAI;IAAE,GAAG,EAAE,GAAG;IACxC,GAAG,EAAE,IAAI;IAAE,GAAG,EAAE,IAAI;IAAE,GAAG,EAAE,GAAG;IAAE,GAAG,EAAE;EACzC,CAAC;EACD,IAAIC,GAAG,GAAG,EAAE;EACZ,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGH,SAAS,CAACrC,MAAM,EAAEwC,CAAC,EAAE,EAAE;IACvC,IAAMC,CAAC,GAAGJ,SAAS,CAACG,CAAC,CAAC;IACtBD,GAAG,IAAIX,MAAM,CAACc,SAAS,CAACC,cAAc,CAACC,IAAI,CAACN,GAAG,EAAEG,CAAC,CAAC,GAAGH,GAAG,CAACG,CAAC,CAAC,GAAGA,CAAC;EACpE;EACA,OAAOF,GAAG;AACd;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASM,YAAYA,CAAA,EAAG;EACpB,IAAMhF,MAAM,GAAG,IAAIC,eAAe,CAACgF,MAAM,CAACC,QAAQ,CAACC,MAAM,CAAC;EAC1D,OAAO;IACHC,IAAI,EAAEpF,MAAM,CAACqF,GAAG,CAAC,MAAM,CAAC;IACxBC,IAAI,EAAEtF,MAAM,CAACqF,GAAG,CAAC,MAAM,CAAC;IACxB5E,MAAM,EAAET,MAAM,CAACqF,GAAG,CAAC,QAAQ;EAC/B,CAAC;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASE,UAAUA,CAACH,IAAI,EAAE;EACtB,IAAMI,CAAC,GAAGJ,IAAI,CAACK,WAAW,CAAC,CAAC;EAC5B,IAAMC,CAAC,GAAGlF,MAAM,CAAC4E,IAAI,CAACO,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;EACtD,IAAMC,CAAC,GAAGrF,MAAM,CAAC4E,IAAI,CAACU,OAAO,CAAC,CAAC,CAAC,CAACF,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;EACjD,OAAOJ,CAAC,GAAG,GAAG,GAAGE,CAAC,GAAG,GAAG,GAAGG,CAAC;AAChC;AAEA,SAAS3B,aAAaA,CAAC6B,KAAK,EAAE;EAC1B,IAAM/F,MAAM,GAAG,IAAIC,eAAe,CAACgF,MAAM,CAACC,QAAQ,CAACC,MAAM,CAAC;EAC1DpB,MAAM,CAACC,IAAI,CAAC+B,KAAK,CAAC,CAAChF,OAAO,CAAC,UAAUiF,GAAG,EAAE;IACtC,IAAMC,KAAK,GAAGF,KAAK,CAACC,GAAG,CAAC;IACxB,IAAIC,KAAK,KAAK,IAAI,IAAIA,KAAK,KAAKC,SAAS,IAAID,KAAK,KAAK,EAAE,EAAE;MACvDjG,MAAM,UAAO,CAACgG,GAAG,CAAC;IACtB,CAAC,MAAM;MACHhG,MAAM,CAACO,GAAG,CAACyF,GAAG,EAAEC,KAAK,CAAC;IAC1B;EACJ,CAAC,CAAC;EACF,IAAME,EAAE,GAAGnG,MAAM,CAACmB,QAAQ,CAAC,CAAC;EAC5B,IAAM/B,GAAG,GAAG6F,MAAM,CAACC,QAAQ,CAACkB,QAAQ,IAAID,EAAE,GAAG,GAAG,GAAGA,EAAE,GAAG,EAAE,CAAC,GAAGlB,MAAM,CAACC,QAAQ,CAACmB,IAAI;EAClFpB,MAAM,CAACqB,OAAO,CAACC,YAAY,CAAC,IAAI,EAAE,EAAE,EAAEnH,GAAG,CAAC;AAC9C;AAEA,SAAS+E,qBAAqBA,CAAC1D,MAAM,EAAE;EACnC,IAAIA,MAAM,YAAYC,GAAG,EAAE;IACvB,OAAOD,MAAM,CAACE,IAAI,GAAG,CAAC,GAAGC,KAAK,CAACC,IAAI,CAACJ,MAAM,CAAC,CAACK,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI;EAChE;EACA,IAAI,OAAOL,MAAM,KAAK,QAAQ,IAAIA,MAAM,EAAE;IACtC,OAAOA,MAAM;EACjB;EACA,OAAO,IAAI;AACf;AAEA,SAAS+F,IAAIA,CAACC,SAAS,EAAEC,MAAM,EAAE;EAC7B,IAAMC,EAAE,GAAGjH,QAAQ,CAACkH,cAAc,CAACH,SAAS,CAAC;EAC7C,IAAI,CAACE,EAAE,EAAE;IACL,OAAO,IAAI;EACf;;EAEA;EACA;EACA;EACA;EACA;EACA,IAAMhE,eAAe,GAAG+D,MAAM,CAAC9D,QAAQ,KAAK,KAAK;EACjD,IAAMA,QAAQ,GAAGD,eAAe,GAAGqC,YAAY,CAAC,CAAC,GAAG;IAAEI,IAAI,EAAE,IAAI;IAAEE,IAAI,EAAE,IAAI;IAAE7E,MAAM,EAAE;EAAK,CAAC;;EAE5F;EACA;EACA;EACA;EACA;EACA;EACA,IAAIoG,aAAa,GAAGH,MAAM,CAACjG,MAAM,IAAI,IAAI;EACzC,IAAImC,QAAQ,CAACnC,MAAM,EAAE;IACjB;IACA;IACA;IACAoG,aAAa,GAAGH,MAAM,CAACI,WAAW,GAC5BlE,QAAQ,CAACnC,MAAM,CAACsG,KAAK,CAAC,GAAG,CAAC,CAACtG,MAAM,CAACuG,OAAO,CAAC,GAC1CpE,QAAQ,CAACnC,MAAM;EACzB;EACA,IAAMpB,KAAK,GAAG;IACVoB,MAAM,EAAEoG,aAAa;IACrBvG,KAAK,EAAEoG,MAAM,CAACpG,KAAK,IAAI,IAAI;IAC3B0B,WAAW,EAAE,OAAO0E,MAAM,CAAC1E,WAAW,KAAK,UAAU,GAAG0E,MAAM,CAAC1E,WAAW,GAAG;EACjF,CAAC;;EAED;EACA;EACA;EACA,IAAIiF,gBAAgB,GAAG,IAAI;EAC3B,IAAMzE,WAAW,GAAG,SAAdA,WAAWA,CAAA,EAAe;IAAE,OAAOyE,gBAAgB;EAAE,CAAC;;EAE5D;EACA;EACA;EACA;EACA,IAAIC,YAAY,GAAGR,MAAM,CAAC5E,MAAM;EAChC,IAAI,OAAOoF,YAAY,KAAK,QAAQ,EAAE;IAClCA,YAAY,GAAG/H,uBAAuB,CAAC+H,YAAY,EAAE7H,KAAK,CAAC;EAC/D;;EAEA;EACA;EACA;EACA;EACA;EACA,IAAI8H,eAAe,GAAG,IAAI;EAC1B,IAAIC,iBAAiB,GAAG,CAAC,CAAC;EAC1B,IAAIxG,KAAK,CAACmB,OAAO,CAAC2E,MAAM,CAACnE,aAAa,CAAC,IAAImE,MAAM,CAACnE,aAAa,CAACJ,MAAM,GAAG,CAAC,EAAE;IACxE,IAAMkF,KAAK,GAAG/E,kBAAkB,CAACoE,MAAM,CAACnE,aAAa,EAAElD,KAAK,EAAEmD,WAAW,EAAE;MACvEE,KAAK,EAAE,CAAC,CAACgE,MAAM,CAACI,WAAW;MAC3BlE,QAAQ,EAAED;IACd,CAAC,CAAC;IACFwE,eAAe,GAAGE,KAAK,CAACxE,SAAS;IACjCuE,iBAAiB,GAAGC,KAAK,CAACpE,WAAW;IACrC0D,EAAE,CAACW,UAAU,CAACC,YAAY,CAACJ,eAAe,EAAER,EAAE,CAAC;EACnD;EAEA,IAAMa,OAAO,GAAGzD,MAAM,CAAC0D,MAAM,CACzB;IACIC,WAAW,EAAE9E,QAAQ,CAAC0C,IAAI,IAAI,cAAc;IAC5CqC,WAAW,EAAE/E,QAAQ,CAACwC,IAAI,IAAIc,SAAS;IACvC0B,aAAa,EAAE;MACXC,IAAI,EAAE,iBAAiB;MACvBC,MAAM,EAAE,OAAO;MACfC,KAAK,EAAE;IACX,CAAC;IACDC,MAAM,EAAE,MAAM;IACd;IACA;IACA;IACA;IACA;IACAC,QAAQ,EAAGhD,MAAM,CAACiD,OAAO,IAAIjD,MAAM,CAACiD,OAAO,CAACC,QAAQ,IAAI,OAAOlD,MAAM,CAACiD,OAAO,CAACC,QAAQ,CAACC,iBAAiB,KAAK,QAAQ,GAC/GnD,MAAM,CAACiD,OAAO,CAACC,QAAQ,CAACC,iBAAiB,GACzC,CAAC;IACP;IACA;IACA;IACAC,UAAU,EAAE3B,MAAM,CAAC2B,UAAU,IAAI,UAAUC,IAAI,EAAE;MAC7C,IAAIA,IAAI,CAACC,KAAK,CAACnJ,GAAG,EAAE;QAChBkJ,IAAI,CAACE,OAAO,CAACC,cAAc,CAAC,CAAC;QAC7BxD,MAAM,CAACC,QAAQ,CAACwD,IAAI,GAAGJ,IAAI,CAACC,KAAK,CAACnJ,GAAG;MACzC;IACJ,CAAC;IACD;IACA;IACA;IACA;IACA;IACAuJ,QAAQ,EAAE,SAAAA,SAAUC,GAAG,EAAE;MACrB,IAAI,CAACjG,eAAe,EAAE;MACtBuB,aAAa,CAAC;QACVkB,IAAI,EAAEG,UAAU,CAACqD,GAAG,CAACtD,IAAI,CAACuD,YAAY,CAAC;QACvCvD,IAAI,EAAEsD,GAAG,CAACtD,IAAI,CAAClC;MACnB,CAAC,CAAC;IACN;EACJ,CAAC;EACD;EACAsD,MACJ,CAAC;;EAED;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACAc,OAAO,CAACsB,OAAO,GAAG,CAAC/J,6DAAa,EAAEG,8DAAc,EAAED,0DAAU,EAAED,iEAAiB,CAAC;EAChFwI,OAAO,CAAC1F,MAAM,GAAGoF,YAAY;;EAE7B;EACA;EACA;EACA;EACA;EACA;EACA;EACA,IAAIR,MAAM,CAACqC,aAAa,IAAI,CAACvB,OAAO,CAACwB,gBAAgB,EAAE;IACnDxB,OAAO,CAACwB,gBAAgB,GAAGzE,2BAA2B,CAACmC,MAAM,CAACqC,aAAa,CAAC;EAChF;EAEA9B,gBAAgB,GAAG,IAAInI,wDAAQ,CAAC6H,EAAE,EAAEa,OAAO,CAAC;EAC5CP,gBAAgB,CAACgC,MAAM,CAAC,CAAC;;EAEzB;EACA;EACA;EACA,IAAI9B,eAAe,EAAE;IACjB,IAAM+B,aAAa,GAAG7J,KAAK,CAACoB,MAAM,YAAYC,GAAG,GAC3CE,KAAK,CAACC,IAAI,CAACxB,KAAK,CAACoB,MAAM,CAAC,GACvBpB,KAAK,CAACoB,MAAM,GAAG,CAACpB,KAAK,CAACoB,MAAM,CAAC,GAAG,EAAG;IAC1CyI,aAAa,CAACnI,OAAO,CAAC,UAAU0C,IAAI,EAAE;MAClC,IAAMP,GAAG,GAAGkE,iBAAiB,CAAC3D,IAAI,CAAC;MACnC,IAAIP,GAAG,EAAE;QACLA,GAAG,CAACU,SAAS,CAACE,GAAG,CAAC,QAAQ,CAAC;QAC3BZ,GAAG,CAACF,YAAY,CAAC,cAAc,EAAE,MAAM,CAAC;MAC5C;IACJ,CAAC,CAAC;EACN;EAEA,OAAOiE,gBAAgB;AAC3B;AAEAhC,MAAM,CAACkE,eAAe,GAAG;EAAE3C,IAAI,EAAJA;AAAK,CAAC,C","sources":["webpack:///./node_modules/@fullcalendar/core/index.js","webpack:///./node_modules/@fullcalendar/core/internal-common.js","webpack:///./node_modules/@fullcalendar/daygrid/index.js","webpack:///./node_modules/@fullcalendar/daygrid/internal.js","webpack:///./node_modules/@fullcalendar/interaction/index.js","webpack:///./node_modules/@fullcalendar/list/index.js","webpack:///./node_modules/@fullcalendar/list/internal.js","webpack:///./node_modules/@fullcalendar/timegrid/index.js","webpack:///./node_modules/@fullcalendar/timegrid/internal.js","webpack:///./node_modules/preact/compat/dist/compat.module.js","webpack:///./node_modules/preact/dist/preact.module.js","webpack:///./node_modules/preact/hooks/dist/hooks.module.js","webpack:///webpack/bootstrap","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///./resources/assets/js/snipeit-calendar.js"],"sourcesContent":["import { m as mergeProps, g as guid, i as isArraysEqual, T as Theme, a as mapHash, B as BaseComponent, V as ViewContextType, C as ContentContainer, b as buildViewClassNames, c as greatestDurationDenominator, d as createDuration, e as BASE_OPTION_DEFAULTS, f as arrayToHash, h as filterHash, j as buildEventSourceRefiners, p as parseEventSource, k as formatWithOrdinals, u as unpromisify, l as buildRangeApiWithTimeZone, n as identity, r as requestJson, s as subtractDurations, o as intersectRanges, q as startOfDay, t as addDays, v as hashValuesToArray, w as buildEventApis, D as DelayedRunner, x as createFormatter, y as diffWholeDays, z as memoize, A as memoizeObjArg, E as isPropsEqual, F as Emitter, G as rangeContainsMarker, H as createEmptyEventStore, I as reduceEventStore, J as rezoneEventStoreDates, K as mergeRawOptions, L as BASE_OPTION_REFINERS, M as CALENDAR_LISTENER_REFINERS, N as CALENDAR_OPTION_REFINERS, O as COMPLEX_OPTION_COMPARATORS, P as VIEW_OPTION_REFINERS, Q as DateEnv, R as DateProfileGenerator, S as createEventUi, U as parseBusinessHours, W as setRef, X as Interaction, Y as getElSeg, Z as elementClosest, _ as EventImpl, $ as listenBySelector, a0 as listenToHoverBySelector, a1 as PureComponent, a2 as buildViewContext, a3 as getUniqueDomId, a4 as parseInteractionSettings, a5 as interactionSettingsStore, a6 as NowTimer, a7 as CalendarImpl, a8 as flushSync, a9 as CalendarRoot, aa as RenderId, ab as ensureElHasStyles, ac as applyStyleProp, ad as sliceEventStore } from './internal-common.js';\nexport { ae as JsonRequestError } from './internal-common.js';\nimport { createElement, createRef, Fragment, render } from 'preact';\nimport 'preact/compat';\n\nconst globalLocales = [];\n\nconst MINIMAL_RAW_EN_LOCALE = {\n code: 'en',\n week: {\n dow: 0,\n doy: 4, // 4 days need to be within the year to be considered the first week\n },\n direction: 'ltr',\n buttonText: {\n prev: 'prev',\n next: 'next',\n prevYear: 'prev year',\n nextYear: 'next year',\n year: 'year',\n today: 'today',\n month: 'month',\n week: 'week',\n day: 'day',\n list: 'list',\n },\n weekText: 'W',\n weekTextLong: 'Week',\n closeHint: 'Close',\n timeHint: 'Time',\n eventHint: 'Event',\n allDayText: 'all-day',\n moreLinkText: 'more',\n noEventsText: 'No events to display',\n};\nconst RAW_EN_LOCALE = Object.assign(Object.assign({}, MINIMAL_RAW_EN_LOCALE), { \n // Includes things we don't want other locales to inherit,\n // things that derive from other translatable strings.\n buttonHints: {\n prev: 'Previous $0',\n next: 'Next $0',\n today(buttonText, unit) {\n return (unit === 'day')\n ? 'Today'\n : `This ${buttonText}`;\n },\n }, viewHint: '$0 view', navLinkHint: 'Go to $0', moreLinkHint(eventCnt) {\n return `Show ${eventCnt} more event${eventCnt === 1 ? '' : 's'}`;\n } });\nfunction organizeRawLocales(explicitRawLocales) {\n let defaultCode = explicitRawLocales.length > 0 ? explicitRawLocales[0].code : 'en';\n let allRawLocales = globalLocales.concat(explicitRawLocales);\n let rawLocaleMap = {\n en: RAW_EN_LOCALE,\n };\n for (let rawLocale of allRawLocales) {\n rawLocaleMap[rawLocale.code] = rawLocale;\n }\n return {\n map: rawLocaleMap,\n defaultCode,\n };\n}\nfunction buildLocale(inputSingular, available) {\n if (typeof inputSingular === 'object' && !Array.isArray(inputSingular)) {\n return parseLocale(inputSingular.code, [inputSingular.code], inputSingular);\n }\n return queryLocale(inputSingular, available);\n}\nfunction queryLocale(codeArg, available) {\n let codes = [].concat(codeArg || []); // will convert to array\n let raw = queryRawLocale(codes, available) || RAW_EN_LOCALE;\n return parseLocale(codeArg, codes, raw);\n}\nfunction queryRawLocale(codes, available) {\n for (let i = 0; i < codes.length; i += 1) {\n let parts = codes[i].toLocaleLowerCase().split('-');\n for (let j = parts.length; j > 0; j -= 1) {\n let simpleId = parts.slice(0, j).join('-');\n if (available[simpleId]) {\n return available[simpleId];\n }\n }\n }\n return null;\n}\nfunction parseLocale(codeArg, codes, raw) {\n let merged = mergeProps([MINIMAL_RAW_EN_LOCALE, raw], ['buttonText']);\n delete merged.code; // don't want this part of the options\n let { week } = merged;\n delete merged.week;\n return {\n codeArg,\n codes,\n week,\n simpleNumberFormat: new Intl.NumberFormat(codeArg),\n options: merged,\n };\n}\n\n// TODO: easier way to add new hooks? need to update a million things\nfunction createPlugin(input) {\n return {\n id: guid(),\n name: input.name,\n premiumReleaseDate: input.premiumReleaseDate ? new Date(input.premiumReleaseDate) : undefined,\n deps: input.deps || [],\n reducers: input.reducers || [],\n isLoadingFuncs: input.isLoadingFuncs || [],\n contextInit: [].concat(input.contextInit || []),\n eventRefiners: input.eventRefiners || {},\n eventDefMemberAdders: input.eventDefMemberAdders || [],\n eventSourceRefiners: input.eventSourceRefiners || {},\n isDraggableTransformers: input.isDraggableTransformers || [],\n eventDragMutationMassagers: input.eventDragMutationMassagers || [],\n eventDefMutationAppliers: input.eventDefMutationAppliers || [],\n dateSelectionTransformers: input.dateSelectionTransformers || [],\n datePointTransforms: input.datePointTransforms || [],\n dateSpanTransforms: input.dateSpanTransforms || [],\n views: input.views || {},\n viewPropsTransformers: input.viewPropsTransformers || [],\n isPropsValid: input.isPropsValid || null,\n externalDefTransforms: input.externalDefTransforms || [],\n viewContainerAppends: input.viewContainerAppends || [],\n eventDropTransformers: input.eventDropTransformers || [],\n componentInteractions: input.componentInteractions || [],\n calendarInteractions: input.calendarInteractions || [],\n themeClasses: input.themeClasses || {},\n eventSourceDefs: input.eventSourceDefs || [],\n cmdFormatter: input.cmdFormatter,\n recurringTypes: input.recurringTypes || [],\n namedTimeZonedImpl: input.namedTimeZonedImpl,\n initialView: input.initialView || '',\n elementDraggingImpl: input.elementDraggingImpl,\n optionChangeHandlers: input.optionChangeHandlers || {},\n scrollGridImpl: input.scrollGridImpl || null,\n listenerRefiners: input.listenerRefiners || {},\n optionRefiners: input.optionRefiners || {},\n propSetHandlers: input.propSetHandlers || {},\n };\n}\nfunction buildPluginHooks(pluginDefs, globalDefs) {\n let currentPluginIds = {};\n let hooks = {\n premiumReleaseDate: undefined,\n reducers: [],\n isLoadingFuncs: [],\n contextInit: [],\n eventRefiners: {},\n eventDefMemberAdders: [],\n eventSourceRefiners: {},\n isDraggableTransformers: [],\n eventDragMutationMassagers: [],\n eventDefMutationAppliers: [],\n dateSelectionTransformers: [],\n datePointTransforms: [],\n dateSpanTransforms: [],\n views: {},\n viewPropsTransformers: [],\n isPropsValid: null,\n externalDefTransforms: [],\n viewContainerAppends: [],\n eventDropTransformers: [],\n componentInteractions: [],\n calendarInteractions: [],\n themeClasses: {},\n eventSourceDefs: [],\n cmdFormatter: null,\n recurringTypes: [],\n namedTimeZonedImpl: null,\n initialView: '',\n elementDraggingImpl: null,\n optionChangeHandlers: {},\n scrollGridImpl: null,\n listenerRefiners: {},\n optionRefiners: {},\n propSetHandlers: {},\n };\n function addDefs(defs) {\n for (let def of defs) {\n const pluginName = def.name;\n const currentId = currentPluginIds[pluginName];\n if (currentId === undefined) {\n currentPluginIds[pluginName] = def.id;\n addDefs(def.deps);\n hooks = combineHooks(hooks, def);\n }\n else if (currentId !== def.id) {\n // different ID than the one already added\n console.warn(`Duplicate plugin '${pluginName}'`);\n }\n }\n }\n if (pluginDefs) {\n addDefs(pluginDefs);\n }\n addDefs(globalDefs);\n return hooks;\n}\nfunction buildBuildPluginHooks() {\n let currentOverrideDefs = [];\n let currentGlobalDefs = [];\n let currentHooks;\n return (overrideDefs, globalDefs) => {\n if (!currentHooks || !isArraysEqual(overrideDefs, currentOverrideDefs) || !isArraysEqual(globalDefs, currentGlobalDefs)) {\n currentHooks = buildPluginHooks(overrideDefs, globalDefs);\n }\n currentOverrideDefs = overrideDefs;\n currentGlobalDefs = globalDefs;\n return currentHooks;\n };\n}\nfunction combineHooks(hooks0, hooks1) {\n return {\n premiumReleaseDate: compareOptionalDates(hooks0.premiumReleaseDate, hooks1.premiumReleaseDate),\n reducers: hooks0.reducers.concat(hooks1.reducers),\n isLoadingFuncs: hooks0.isLoadingFuncs.concat(hooks1.isLoadingFuncs),\n contextInit: hooks0.contextInit.concat(hooks1.contextInit),\n eventRefiners: Object.assign(Object.assign({}, hooks0.eventRefiners), hooks1.eventRefiners),\n eventDefMemberAdders: hooks0.eventDefMemberAdders.concat(hooks1.eventDefMemberAdders),\n eventSourceRefiners: Object.assign(Object.assign({}, hooks0.eventSourceRefiners), hooks1.eventSourceRefiners),\n isDraggableTransformers: hooks0.isDraggableTransformers.concat(hooks1.isDraggableTransformers),\n eventDragMutationMassagers: hooks0.eventDragMutationMassagers.concat(hooks1.eventDragMutationMassagers),\n eventDefMutationAppliers: hooks0.eventDefMutationAppliers.concat(hooks1.eventDefMutationAppliers),\n dateSelectionTransformers: hooks0.dateSelectionTransformers.concat(hooks1.dateSelectionTransformers),\n datePointTransforms: hooks0.datePointTransforms.concat(hooks1.datePointTransforms),\n dateSpanTransforms: hooks0.dateSpanTransforms.concat(hooks1.dateSpanTransforms),\n views: Object.assign(Object.assign({}, hooks0.views), hooks1.views),\n viewPropsTransformers: hooks0.viewPropsTransformers.concat(hooks1.viewPropsTransformers),\n isPropsValid: hooks1.isPropsValid || hooks0.isPropsValid,\n externalDefTransforms: hooks0.externalDefTransforms.concat(hooks1.externalDefTransforms),\n viewContainerAppends: hooks0.viewContainerAppends.concat(hooks1.viewContainerAppends),\n eventDropTransformers: hooks0.eventDropTransformers.concat(hooks1.eventDropTransformers),\n calendarInteractions: hooks0.calendarInteractions.concat(hooks1.calendarInteractions),\n componentInteractions: hooks0.componentInteractions.concat(hooks1.componentInteractions),\n themeClasses: Object.assign(Object.assign({}, hooks0.themeClasses), hooks1.themeClasses),\n eventSourceDefs: hooks0.eventSourceDefs.concat(hooks1.eventSourceDefs),\n cmdFormatter: hooks1.cmdFormatter || hooks0.cmdFormatter,\n recurringTypes: hooks0.recurringTypes.concat(hooks1.recurringTypes),\n namedTimeZonedImpl: hooks1.namedTimeZonedImpl || hooks0.namedTimeZonedImpl,\n initialView: hooks0.initialView || hooks1.initialView,\n elementDraggingImpl: hooks0.elementDraggingImpl || hooks1.elementDraggingImpl,\n optionChangeHandlers: Object.assign(Object.assign({}, hooks0.optionChangeHandlers), hooks1.optionChangeHandlers),\n scrollGridImpl: hooks1.scrollGridImpl || hooks0.scrollGridImpl,\n listenerRefiners: Object.assign(Object.assign({}, hooks0.listenerRefiners), hooks1.listenerRefiners),\n optionRefiners: Object.assign(Object.assign({}, hooks0.optionRefiners), hooks1.optionRefiners),\n propSetHandlers: Object.assign(Object.assign({}, hooks0.propSetHandlers), hooks1.propSetHandlers),\n };\n}\nfunction compareOptionalDates(date0, date1) {\n if (date0 === undefined) {\n return date1;\n }\n if (date1 === undefined) {\n return date0;\n }\n return new Date(Math.max(date0.valueOf(), date1.valueOf()));\n}\n\nclass StandardTheme extends Theme {\n}\nStandardTheme.prototype.classes = {\n root: 'fc-theme-standard',\n tableCellShaded: 'fc-cell-shaded',\n buttonGroup: 'fc-button-group',\n button: 'fc-button fc-button-primary',\n buttonActive: 'fc-button-active',\n};\nStandardTheme.prototype.baseIconClass = 'fc-icon';\nStandardTheme.prototype.iconClasses = {\n close: 'fc-icon-x',\n prev: 'fc-icon-chevron-left',\n next: 'fc-icon-chevron-right',\n prevYear: 'fc-icon-chevrons-left',\n nextYear: 'fc-icon-chevrons-right',\n};\nStandardTheme.prototype.rtlIconClasses = {\n prev: 'fc-icon-chevron-right',\n next: 'fc-icon-chevron-left',\n prevYear: 'fc-icon-chevrons-right',\n nextYear: 'fc-icon-chevrons-left',\n};\nStandardTheme.prototype.iconOverrideOption = 'buttonIcons'; // TODO: make TS-friendly\nStandardTheme.prototype.iconOverrideCustomButtonOption = 'icon';\nStandardTheme.prototype.iconOverridePrefix = 'fc-icon-';\n\nfunction compileViewDefs(defaultConfigs, overrideConfigs) {\n let hash = {};\n let viewType;\n for (viewType in defaultConfigs) {\n ensureViewDef(viewType, hash, defaultConfigs, overrideConfigs);\n }\n for (viewType in overrideConfigs) {\n ensureViewDef(viewType, hash, defaultConfigs, overrideConfigs);\n }\n return hash;\n}\nfunction ensureViewDef(viewType, hash, defaultConfigs, overrideConfigs) {\n if (hash[viewType]) {\n return hash[viewType];\n }\n let viewDef = buildViewDef(viewType, hash, defaultConfigs, overrideConfigs);\n if (viewDef) {\n hash[viewType] = viewDef;\n }\n return viewDef;\n}\nfunction buildViewDef(viewType, hash, defaultConfigs, overrideConfigs) {\n let defaultConfig = defaultConfigs[viewType];\n let overrideConfig = overrideConfigs[viewType];\n let queryProp = (name) => ((defaultConfig && defaultConfig[name] !== null) ? defaultConfig[name] :\n ((overrideConfig && overrideConfig[name] !== null) ? overrideConfig[name] : null));\n let theComponent = queryProp('component');\n let superType = queryProp('superType');\n let superDef = null;\n if (superType) {\n if (superType === viewType) {\n throw new Error('Can\\'t have a custom view type that references itself');\n }\n superDef = ensureViewDef(superType, hash, defaultConfigs, overrideConfigs);\n }\n if (!theComponent && superDef) {\n theComponent = superDef.component;\n }\n if (!theComponent) {\n return null; // don't throw a warning, might be settings for a single-unit view\n }\n return {\n type: viewType,\n component: theComponent,\n defaults: Object.assign(Object.assign({}, (superDef ? superDef.defaults : {})), (defaultConfig ? defaultConfig.rawOptions : {})),\n overrides: Object.assign(Object.assign({}, (superDef ? superDef.overrides : {})), (overrideConfig ? overrideConfig.rawOptions : {})),\n };\n}\n\nfunction parseViewConfigs(inputs) {\n return mapHash(inputs, parseViewConfig);\n}\nfunction parseViewConfig(input) {\n let rawOptions = typeof input === 'function' ?\n { component: input } :\n input;\n let { component } = rawOptions;\n if (rawOptions.content) {\n // TODO: remove content/classNames/didMount/etc from options?\n component = createViewHookComponent(rawOptions);\n }\n else if (component && !(component.prototype instanceof BaseComponent)) {\n // WHY?: people were using `component` property for `content`\n // TODO: converge on one setting name\n component = createViewHookComponent(Object.assign(Object.assign({}, rawOptions), { content: component }));\n }\n return {\n superType: rawOptions.type,\n component: component,\n rawOptions, // includes type and component too :(\n };\n}\nfunction createViewHookComponent(options) {\n return (viewProps) => (createElement(ViewContextType.Consumer, null, (context) => (createElement(ContentContainer, { elTag: \"div\", elClasses: buildViewClassNames(context.viewSpec), renderProps: Object.assign(Object.assign({}, viewProps), { nextDayThreshold: context.options.nextDayThreshold }), generatorName: undefined, customGenerator: options.content, classNameGenerator: options.classNames, didMount: options.didMount, willUnmount: options.willUnmount }))));\n}\n\nfunction buildViewSpecs(defaultInputs, optionOverrides, dynamicOptionOverrides, localeDefaults) {\n let defaultConfigs = parseViewConfigs(defaultInputs);\n let overrideConfigs = parseViewConfigs(optionOverrides.views);\n let viewDefs = compileViewDefs(defaultConfigs, overrideConfigs);\n return mapHash(viewDefs, (viewDef) => buildViewSpec(viewDef, overrideConfigs, optionOverrides, dynamicOptionOverrides, localeDefaults));\n}\nfunction buildViewSpec(viewDef, overrideConfigs, optionOverrides, dynamicOptionOverrides, localeDefaults) {\n let durationInput = viewDef.overrides.duration ||\n viewDef.defaults.duration ||\n dynamicOptionOverrides.duration ||\n optionOverrides.duration;\n let duration = null;\n let durationUnit = '';\n let singleUnit = '';\n let singleUnitOverrides = {};\n if (durationInput) {\n duration = createDurationCached(durationInput);\n if (duration) { // valid?\n let denom = greatestDurationDenominator(duration);\n durationUnit = denom.unit;\n if (denom.value === 1) {\n singleUnit = durationUnit;\n singleUnitOverrides = overrideConfigs[durationUnit] ? overrideConfigs[durationUnit].rawOptions : {};\n }\n }\n }\n let queryButtonText = (optionsSubset) => {\n let buttonTextMap = optionsSubset.buttonText || {};\n let buttonTextKey = viewDef.defaults.buttonTextKey;\n if (buttonTextKey != null && buttonTextMap[buttonTextKey] != null) {\n return buttonTextMap[buttonTextKey];\n }\n if (buttonTextMap[viewDef.type] != null) {\n return buttonTextMap[viewDef.type];\n }\n if (buttonTextMap[singleUnit] != null) {\n return buttonTextMap[singleUnit];\n }\n return null;\n };\n let queryButtonTitle = (optionsSubset) => {\n let buttonHints = optionsSubset.buttonHints || {};\n let buttonKey = viewDef.defaults.buttonTextKey; // use same key as text\n if (buttonKey != null && buttonHints[buttonKey] != null) {\n return buttonHints[buttonKey];\n }\n if (buttonHints[viewDef.type] != null) {\n return buttonHints[viewDef.type];\n }\n if (buttonHints[singleUnit] != null) {\n return buttonHints[singleUnit];\n }\n return null;\n };\n return {\n type: viewDef.type,\n component: viewDef.component,\n duration,\n durationUnit,\n singleUnit,\n optionDefaults: viewDef.defaults,\n optionOverrides: Object.assign(Object.assign({}, singleUnitOverrides), viewDef.overrides),\n buttonTextOverride: queryButtonText(dynamicOptionOverrides) ||\n queryButtonText(optionOverrides) || // constructor-specified buttonText lookup hash takes precedence\n viewDef.overrides.buttonText,\n buttonTextDefault: queryButtonText(localeDefaults) ||\n viewDef.defaults.buttonText ||\n queryButtonText(BASE_OPTION_DEFAULTS) ||\n viewDef.type,\n // not DRY\n buttonTitleOverride: queryButtonTitle(dynamicOptionOverrides) ||\n queryButtonTitle(optionOverrides) ||\n viewDef.overrides.buttonHint,\n buttonTitleDefault: queryButtonTitle(localeDefaults) ||\n viewDef.defaults.buttonHint ||\n queryButtonTitle(BASE_OPTION_DEFAULTS),\n // will eventually fall back to buttonText\n };\n}\n// hack to get memoization working\nlet durationInputMap = {};\nfunction createDurationCached(durationInput) {\n let json = JSON.stringify(durationInput);\n let res = durationInputMap[json];\n if (res === undefined) {\n res = createDuration(durationInput);\n durationInputMap[json] = res;\n }\n return res;\n}\n\nfunction reduceViewType(viewType, action) {\n switch (action.type) {\n case 'CHANGE_VIEW_TYPE':\n viewType = action.viewType;\n }\n return viewType;\n}\n\nfunction reduceCurrentDate(currentDate, action) {\n switch (action.type) {\n case 'CHANGE_DATE':\n return action.dateMarker;\n default:\n return currentDate;\n }\n}\n// should be initialized once and stay constant\n// this will change too\nfunction getInitialDate(options, dateEnv, nowManager) {\n let initialDateInput = options.initialDate;\n // compute the initial ambig-timezone date\n if (initialDateInput != null) {\n return dateEnv.createMarker(initialDateInput);\n }\n return nowManager.getDateMarker();\n}\n\nfunction reduceDynamicOptionOverrides(dynamicOptionOverrides, action) {\n switch (action.type) {\n case 'SET_OPTION':\n return Object.assign(Object.assign({}, dynamicOptionOverrides), { [action.optionName]: action.rawOptionValue });\n default:\n return dynamicOptionOverrides;\n }\n}\n\nfunction reduceDateProfile(currentDateProfile, action, currentDate, dateProfileGenerator) {\n let dp;\n switch (action.type) {\n case 'CHANGE_VIEW_TYPE':\n return dateProfileGenerator.build(action.dateMarker || currentDate);\n case 'CHANGE_DATE':\n return dateProfileGenerator.build(action.dateMarker);\n case 'PREV':\n dp = dateProfileGenerator.buildPrev(currentDateProfile, currentDate);\n if (dp.isValid) {\n return dp;\n }\n break;\n case 'NEXT':\n dp = dateProfileGenerator.buildNext(currentDateProfile, currentDate);\n if (dp.isValid) {\n return dp;\n }\n break;\n }\n return currentDateProfile;\n}\n\nfunction initEventSources(calendarOptions, dateProfile, context) {\n let activeRange = dateProfile ? dateProfile.activeRange : null;\n return addSources({}, parseInitialSources(calendarOptions, context), activeRange, context);\n}\nfunction reduceEventSources(eventSources, action, dateProfile, context) {\n let activeRange = dateProfile ? dateProfile.activeRange : null; // need this check?\n switch (action.type) {\n case 'ADD_EVENT_SOURCES': // already parsed\n return addSources(eventSources, action.sources, activeRange, context);\n case 'REMOVE_EVENT_SOURCE':\n return removeSource(eventSources, action.sourceId);\n case 'PREV': // TODO: how do we track all actions that affect dateProfile :(\n case 'NEXT':\n case 'CHANGE_DATE':\n case 'CHANGE_VIEW_TYPE':\n if (dateProfile) {\n return fetchDirtySources(eventSources, activeRange, context);\n }\n return eventSources;\n case 'FETCH_EVENT_SOURCES':\n return fetchSourcesByIds(eventSources, action.sourceIds ? // why no type?\n arrayToHash(action.sourceIds) :\n excludeStaticSources(eventSources, context), activeRange, action.isRefetch || false, context);\n case 'RECEIVE_EVENTS':\n case 'RECEIVE_EVENT_ERROR':\n return receiveResponse(eventSources, action.sourceId, action.fetchId, action.fetchRange);\n case 'REMOVE_ALL_EVENT_SOURCES':\n return {};\n default:\n return eventSources;\n }\n}\nfunction reduceEventSourcesNewTimeZone(eventSources, dateProfile, context) {\n let activeRange = dateProfile ? dateProfile.activeRange : null; // need this check?\n return fetchSourcesByIds(eventSources, excludeStaticSources(eventSources, context), activeRange, true, context);\n}\nfunction computeEventSourcesLoading(eventSources) {\n for (let sourceId in eventSources) {\n if (eventSources[sourceId].isFetching) {\n return true;\n }\n }\n return false;\n}\nfunction addSources(eventSourceHash, sources, fetchRange, context) {\n let hash = {};\n for (let source of sources) {\n hash[source.sourceId] = source;\n }\n if (fetchRange) {\n hash = fetchDirtySources(hash, fetchRange, context);\n }\n return Object.assign(Object.assign({}, eventSourceHash), hash);\n}\nfunction removeSource(eventSourceHash, sourceId) {\n return filterHash(eventSourceHash, (eventSource) => eventSource.sourceId !== sourceId);\n}\nfunction fetchDirtySources(sourceHash, fetchRange, context) {\n return fetchSourcesByIds(sourceHash, filterHash(sourceHash, (eventSource) => isSourceDirty(eventSource, fetchRange, context)), fetchRange, false, context);\n}\nfunction isSourceDirty(eventSource, fetchRange, context) {\n if (!doesSourceNeedRange(eventSource, context)) {\n return !eventSource.latestFetchId;\n }\n return !context.options.lazyFetching ||\n !eventSource.fetchRange ||\n eventSource.isFetching || // always cancel outdated in-progress fetches\n fetchRange.start < eventSource.fetchRange.start ||\n fetchRange.end > eventSource.fetchRange.end;\n}\nfunction fetchSourcesByIds(prevSources, sourceIdHash, fetchRange, isRefetch, context) {\n let nextSources = {};\n for (let sourceId in prevSources) {\n let source = prevSources[sourceId];\n if (sourceIdHash[sourceId]) {\n nextSources[sourceId] = fetchSource(source, fetchRange, isRefetch, context);\n }\n else {\n nextSources[sourceId] = source;\n }\n }\n return nextSources;\n}\nfunction fetchSource(eventSource, fetchRange, isRefetch, context) {\n let { options, calendarApi } = context;\n let sourceDef = context.pluginHooks.eventSourceDefs[eventSource.sourceDefId];\n let fetchId = guid();\n sourceDef.fetch({\n eventSource,\n range: fetchRange,\n isRefetch,\n context,\n }, (res) => {\n let { rawEvents } = res;\n if (options.eventSourceSuccess) {\n rawEvents = options.eventSourceSuccess.call(calendarApi, rawEvents, res.response) || rawEvents;\n }\n if (eventSource.success) {\n rawEvents = eventSource.success.call(calendarApi, rawEvents, res.response) || rawEvents;\n }\n context.dispatch({\n type: 'RECEIVE_EVENTS',\n sourceId: eventSource.sourceId,\n fetchId,\n fetchRange,\n rawEvents,\n });\n }, (error) => {\n let errorHandled = false;\n if (options.eventSourceFailure) {\n options.eventSourceFailure.call(calendarApi, error);\n errorHandled = true;\n }\n if (eventSource.failure) {\n eventSource.failure(error);\n errorHandled = true;\n }\n if (!errorHandled) {\n console.warn(error.message, error);\n }\n context.dispatch({\n type: 'RECEIVE_EVENT_ERROR',\n sourceId: eventSource.sourceId,\n fetchId,\n fetchRange,\n error,\n });\n });\n return Object.assign(Object.assign({}, eventSource), { isFetching: true, latestFetchId: fetchId });\n}\nfunction receiveResponse(sourceHash, sourceId, fetchId, fetchRange) {\n let eventSource = sourceHash[sourceId];\n if (eventSource && // not already removed\n fetchId === eventSource.latestFetchId) {\n return Object.assign(Object.assign({}, sourceHash), { [sourceId]: Object.assign(Object.assign({}, eventSource), { isFetching: false, fetchRange }) });\n }\n return sourceHash;\n}\nfunction excludeStaticSources(eventSources, context) {\n return filterHash(eventSources, (eventSource) => doesSourceNeedRange(eventSource, context));\n}\nfunction parseInitialSources(rawOptions, context) {\n let refiners = buildEventSourceRefiners(context);\n let rawSources = [].concat(rawOptions.eventSources || []);\n let sources = []; // parsed\n if (rawOptions.initialEvents) {\n rawSources.unshift(rawOptions.initialEvents);\n }\n if (rawOptions.events) {\n rawSources.unshift(rawOptions.events);\n }\n for (let rawSource of rawSources) {\n let source = parseEventSource(rawSource, context, refiners);\n if (source) {\n sources.push(source);\n }\n }\n return sources;\n}\nfunction doesSourceNeedRange(eventSource, context) {\n let defs = context.pluginHooks.eventSourceDefs;\n return !defs[eventSource.sourceDefId].ignoreRange;\n}\n\nfunction reduceDateSelection(currentSelection, action) {\n switch (action.type) {\n case 'UNSELECT_DATES':\n return null;\n case 'SELECT_DATES':\n return action.selection;\n default:\n return currentSelection;\n }\n}\n\nfunction reduceSelectedEvent(currentInstanceId, action) {\n switch (action.type) {\n case 'UNSELECT_EVENT':\n return '';\n case 'SELECT_EVENT':\n return action.eventInstanceId;\n default:\n return currentInstanceId;\n }\n}\n\nfunction reduceEventDrag(currentDrag, action) {\n let newDrag;\n switch (action.type) {\n case 'UNSET_EVENT_DRAG':\n return null;\n case 'SET_EVENT_DRAG':\n newDrag = action.state;\n return {\n affectedEvents: newDrag.affectedEvents,\n mutatedEvents: newDrag.mutatedEvents,\n isEvent: newDrag.isEvent,\n };\n default:\n return currentDrag;\n }\n}\n\nfunction reduceEventResize(currentResize, action) {\n let newResize;\n switch (action.type) {\n case 'UNSET_EVENT_RESIZE':\n return null;\n case 'SET_EVENT_RESIZE':\n newResize = action.state;\n return {\n affectedEvents: newResize.affectedEvents,\n mutatedEvents: newResize.mutatedEvents,\n isEvent: newResize.isEvent,\n };\n default:\n return currentResize;\n }\n}\n\nfunction parseToolbars(calendarOptions, calendarOptionOverrides, theme, viewSpecs, calendarApi) {\n let header = calendarOptions.headerToolbar ? parseToolbar(calendarOptions.headerToolbar, calendarOptions, calendarOptionOverrides, theme, viewSpecs, calendarApi) : null;\n let footer = calendarOptions.footerToolbar ? parseToolbar(calendarOptions.footerToolbar, calendarOptions, calendarOptionOverrides, theme, viewSpecs, calendarApi) : null;\n return { header, footer };\n}\nfunction parseToolbar(sectionStrHash, calendarOptions, calendarOptionOverrides, theme, viewSpecs, calendarApi) {\n let sectionWidgets = {};\n let viewsWithButtons = [];\n let hasTitle = false;\n for (let sectionName in sectionStrHash) {\n let sectionStr = sectionStrHash[sectionName];\n let sectionRes = parseSection(sectionStr, calendarOptions, calendarOptionOverrides, theme, viewSpecs, calendarApi);\n sectionWidgets[sectionName] = sectionRes.widgets;\n viewsWithButtons.push(...sectionRes.viewsWithButtons);\n hasTitle = hasTitle || sectionRes.hasTitle;\n }\n return { sectionWidgets, viewsWithButtons, hasTitle };\n}\n/*\nBAD: querying icons and text here. should be done at render time\n*/\nfunction parseSection(sectionStr, calendarOptions, // defaults+overrides, then refined\ncalendarOptionOverrides, // overrides only!, unrefined :(\ntheme, viewSpecs, calendarApi) {\n let isRtl = calendarOptions.direction === 'rtl';\n let calendarCustomButtons = calendarOptions.customButtons || {};\n let calendarButtonTextOverrides = calendarOptionOverrides.buttonText || {};\n let calendarButtonText = calendarOptions.buttonText || {};\n let calendarButtonHintOverrides = calendarOptionOverrides.buttonHints || {};\n let calendarButtonHints = calendarOptions.buttonHints || {};\n let sectionSubstrs = sectionStr ? sectionStr.split(' ') : [];\n let viewsWithButtons = [];\n let hasTitle = false;\n let widgets = sectionSubstrs.map((buttonGroupStr) => (buttonGroupStr.split(',').map((buttonName) => {\n if (buttonName === 'title') {\n hasTitle = true;\n return { buttonName };\n }\n let customButtonProps;\n let viewSpec;\n let buttonClick;\n let buttonIcon; // only one of these will be set\n let buttonText; // \"\n let buttonHint;\n // ^ for the title=\"\" attribute, for accessibility\n if ((customButtonProps = calendarCustomButtons[buttonName])) {\n buttonClick = (ev) => {\n if (customButtonProps.click) {\n customButtonProps.click.call(ev.target, ev, ev.target); // TODO: use Calendar this context?\n }\n };\n (buttonIcon = theme.getCustomButtonIconClass(customButtonProps)) ||\n (buttonIcon = theme.getIconClass(buttonName, isRtl)) ||\n (buttonText = customButtonProps.text);\n buttonHint = customButtonProps.hint || customButtonProps.text;\n }\n else if ((viewSpec = viewSpecs[buttonName])) {\n viewsWithButtons.push(buttonName);\n buttonClick = () => {\n calendarApi.changeView(buttonName);\n };\n (buttonText = viewSpec.buttonTextOverride) ||\n (buttonIcon = theme.getIconClass(buttonName, isRtl)) ||\n (buttonText = viewSpec.buttonTextDefault);\n let textFallback = viewSpec.buttonTextOverride ||\n viewSpec.buttonTextDefault;\n buttonHint = formatWithOrdinals(viewSpec.buttonTitleOverride ||\n viewSpec.buttonTitleDefault ||\n calendarOptions.viewHint, [textFallback, buttonName], // view-name = buttonName\n textFallback);\n }\n else if (calendarApi[buttonName]) { // a calendarApi method\n buttonClick = () => {\n calendarApi[buttonName]();\n };\n (buttonText = calendarButtonTextOverrides[buttonName]) ||\n (buttonIcon = theme.getIconClass(buttonName, isRtl)) ||\n (buttonText = calendarButtonText[buttonName]); // everything else is considered default\n if (buttonName === 'prevYear' || buttonName === 'nextYear') {\n let prevOrNext = buttonName === 'prevYear' ? 'prev' : 'next';\n buttonHint = formatWithOrdinals(calendarButtonHintOverrides[prevOrNext] ||\n calendarButtonHints[prevOrNext], [\n calendarButtonText.year || 'year',\n 'year',\n ], calendarButtonText[buttonName]);\n }\n else {\n buttonHint = (navUnit) => formatWithOrdinals(calendarButtonHintOverrides[buttonName] ||\n calendarButtonHints[buttonName], [\n calendarButtonText[navUnit] || navUnit,\n navUnit,\n ], calendarButtonText[buttonName]);\n }\n }\n return { buttonName, buttonClick, buttonIcon, buttonText, buttonHint };\n })));\n return { widgets, viewsWithButtons, hasTitle };\n}\n\n// always represents the current view. otherwise, it'd need to change value every time date changes\nclass ViewImpl {\n constructor(type, getCurrentData, dateEnv) {\n this.type = type;\n this.getCurrentData = getCurrentData;\n this.dateEnv = dateEnv;\n }\n get calendar() {\n return this.getCurrentData().calendarApi;\n }\n get title() {\n return this.getCurrentData().viewTitle;\n }\n get activeStart() {\n return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start);\n }\n get activeEnd() {\n return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end);\n }\n get currentStart() {\n return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start);\n }\n get currentEnd() {\n return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end);\n }\n getOption(name) {\n return this.getCurrentData().options[name]; // are the view-specific options\n }\n}\n\nlet eventSourceDef$2 = {\n ignoreRange: true,\n parseMeta(refined) {\n if (Array.isArray(refined.events)) {\n return refined.events;\n }\n return null;\n },\n fetch(arg, successCallback) {\n successCallback({\n rawEvents: arg.eventSource.meta,\n });\n },\n};\nconst arrayEventSourcePlugin = createPlugin({\n name: 'array-event-source',\n eventSourceDefs: [eventSourceDef$2],\n});\n\nlet eventSourceDef$1 = {\n parseMeta(refined) {\n if (typeof refined.events === 'function') {\n return refined.events;\n }\n return null;\n },\n fetch(arg, successCallback, errorCallback) {\n const { dateEnv } = arg.context;\n const func = arg.eventSource.meta;\n unpromisify(func.bind(null, buildRangeApiWithTimeZone(arg.range, dateEnv)), (rawEvents) => successCallback({ rawEvents }), errorCallback);\n },\n};\nconst funcEventSourcePlugin = createPlugin({\n name: 'func-event-source',\n eventSourceDefs: [eventSourceDef$1],\n});\n\nconst JSON_FEED_EVENT_SOURCE_REFINERS = {\n method: String,\n extraParams: identity,\n startParam: String,\n endParam: String,\n timeZoneParam: String,\n};\n\nlet eventSourceDef = {\n parseMeta(refined) {\n if (refined.url && (refined.format === 'json' || !refined.format)) {\n return {\n url: refined.url,\n format: 'json',\n method: (refined.method || 'GET').toUpperCase(),\n extraParams: refined.extraParams,\n startParam: refined.startParam,\n endParam: refined.endParam,\n timeZoneParam: refined.timeZoneParam,\n };\n }\n return null;\n },\n fetch(arg, successCallback, errorCallback) {\n const { meta } = arg.eventSource;\n const requestParams = buildRequestParams(meta, arg.range, arg.context);\n requestJson(meta.method, meta.url, requestParams).then(([rawEvents, response]) => {\n successCallback({ rawEvents, response });\n }, errorCallback);\n },\n};\nconst jsonFeedEventSourcePlugin = createPlugin({\n name: 'json-event-source',\n eventSourceRefiners: JSON_FEED_EVENT_SOURCE_REFINERS,\n eventSourceDefs: [eventSourceDef],\n});\nfunction buildRequestParams(meta, range, context) {\n let { dateEnv, options } = context;\n let startParam;\n let endParam;\n let timeZoneParam;\n let customRequestParams;\n let params = {};\n startParam = meta.startParam;\n if (startParam == null) {\n startParam = options.startParam;\n }\n endParam = meta.endParam;\n if (endParam == null) {\n endParam = options.endParam;\n }\n timeZoneParam = meta.timeZoneParam;\n if (timeZoneParam == null) {\n timeZoneParam = options.timeZoneParam;\n }\n // retrieve any outbound GET/POST data from the options\n if (typeof meta.extraParams === 'function') {\n // supplied as a function that returns a key/value object\n customRequestParams = meta.extraParams();\n }\n else {\n // probably supplied as a straight key/value object\n customRequestParams = meta.extraParams || {};\n }\n Object.assign(params, customRequestParams);\n params[startParam] = dateEnv.formatIso(range.start);\n params[endParam] = dateEnv.formatIso(range.end);\n if (dateEnv.timeZone !== 'local') {\n params[timeZoneParam] = dateEnv.timeZone;\n }\n return params;\n}\n\nconst SIMPLE_RECURRING_REFINERS = {\n daysOfWeek: identity,\n startTime: createDuration,\n endTime: createDuration,\n duration: createDuration,\n startRecur: identity,\n endRecur: identity,\n};\n\nlet recurring = {\n parse(refined, dateEnv) {\n if (refined.daysOfWeek || refined.startTime || refined.endTime || refined.startRecur || refined.endRecur) {\n let recurringData = {\n daysOfWeek: refined.daysOfWeek || null,\n startTime: refined.startTime || null,\n endTime: refined.endTime || null,\n startRecur: refined.startRecur ? dateEnv.createMarker(refined.startRecur) : null,\n endRecur: refined.endRecur ? dateEnv.createMarker(refined.endRecur) : null,\n dateEnv,\n };\n let duration;\n if (refined.duration) {\n duration = refined.duration;\n }\n if (!duration && refined.startTime && refined.endTime) {\n duration = subtractDurations(refined.endTime, refined.startTime);\n }\n return {\n allDayGuess: Boolean(!refined.startTime && !refined.endTime),\n duration,\n typeData: recurringData, // doesn't need endTime anymore but oh well\n };\n }\n return null;\n },\n expand(typeData, framingRange, dateEnv) {\n let clippedFramingRange = intersectRanges(framingRange, { start: typeData.startRecur, end: typeData.endRecur });\n if (clippedFramingRange) {\n return expandRanges(typeData.daysOfWeek, typeData.startTime, typeData.dateEnv, dateEnv, clippedFramingRange);\n }\n return [];\n },\n};\nconst simpleRecurringEventsPlugin = createPlugin({\n name: 'simple-recurring-event',\n recurringTypes: [recurring],\n eventRefiners: SIMPLE_RECURRING_REFINERS,\n});\nfunction expandRanges(daysOfWeek, startTime, eventDateEnv, calendarDateEnv, framingRange) {\n let dowHash = daysOfWeek ? arrayToHash(daysOfWeek) : null;\n let dayMarker = startOfDay(framingRange.start);\n let endMarker = framingRange.end;\n let instanceStarts = [];\n // https://github.com/fullcalendar/fullcalendar/issues/7934\n if (startTime) {\n if (startTime.milliseconds < 0) {\n // possible for next-day to have negative business hours that go into current day\n endMarker = addDays(endMarker, 1);\n }\n else if (startTime.milliseconds >= 1000 * 60 * 60 * 24) {\n // possible for prev-day to have >24hr business hours that go into current day\n dayMarker = addDays(dayMarker, -1);\n }\n }\n while (dayMarker < endMarker) {\n let instanceStart;\n // if everyday, or this particular day-of-week\n if (!dowHash || dowHash[dayMarker.getUTCDay()]) {\n if (startTime) {\n instanceStart = calendarDateEnv.add(dayMarker, startTime);\n }\n else {\n instanceStart = dayMarker;\n }\n instanceStarts.push(calendarDateEnv.createMarker(eventDateEnv.toDate(instanceStart)));\n }\n dayMarker = addDays(dayMarker, 1);\n }\n return instanceStarts;\n}\n\nconst changeHandlerPlugin = createPlugin({\n name: 'change-handler',\n optionChangeHandlers: {\n events(events, context) {\n handleEventSources([events], context);\n },\n eventSources: handleEventSources,\n },\n});\n/*\nBUG: if `event` was supplied, all previously-given `eventSources` will be wiped out\n*/\nfunction handleEventSources(inputs, context) {\n let unfoundSources = hashValuesToArray(context.getCurrentData().eventSources);\n if (unfoundSources.length === 1 &&\n inputs.length === 1 &&\n Array.isArray(unfoundSources[0]._raw) &&\n Array.isArray(inputs[0])) {\n context.dispatch({\n type: 'RESET_RAW_EVENTS',\n sourceId: unfoundSources[0].sourceId,\n rawEvents: inputs[0],\n });\n return;\n }\n let newInputs = [];\n for (let input of inputs) {\n let inputFound = false;\n for (let i = 0; i < unfoundSources.length; i += 1) {\n if (unfoundSources[i]._raw === input) {\n unfoundSources.splice(i, 1); // delete\n inputFound = true;\n break;\n }\n }\n if (!inputFound) {\n newInputs.push(input);\n }\n }\n for (let unfoundSource of unfoundSources) {\n context.dispatch({\n type: 'REMOVE_EVENT_SOURCE',\n sourceId: unfoundSource.sourceId,\n });\n }\n for (let newInput of newInputs) {\n context.calendarApi.addEventSource(newInput);\n }\n}\n\nfunction handleDateProfile(dateProfile, context) {\n context.emitter.trigger('datesSet', Object.assign(Object.assign({}, buildRangeApiWithTimeZone(dateProfile.activeRange, context.dateEnv)), { view: context.viewApi }));\n}\n\nfunction handleEventStore(eventStore, context) {\n let { emitter } = context;\n if (emitter.hasHandlers('eventsSet')) {\n emitter.trigger('eventsSet', buildEventApis(eventStore, context));\n }\n}\n\n/*\nthis array is exposed on the root namespace so that UMD plugins can add to it.\nsee the rollup-bundles script.\n*/\nconst globalPlugins = [\n arrayEventSourcePlugin,\n funcEventSourcePlugin,\n jsonFeedEventSourcePlugin,\n simpleRecurringEventsPlugin,\n changeHandlerPlugin,\n createPlugin({\n name: 'misc',\n isLoadingFuncs: [\n (state) => computeEventSourcesLoading(state.eventSources),\n ],\n propSetHandlers: {\n dateProfile: handleDateProfile,\n eventStore: handleEventStore,\n },\n }),\n];\n\nclass TaskRunner {\n constructor(runTaskOption, drainedOption) {\n this.runTaskOption = runTaskOption;\n this.drainedOption = drainedOption;\n this.queue = [];\n this.delayedRunner = new DelayedRunner(this.drain.bind(this));\n }\n request(task, delay) {\n this.queue.push(task);\n this.delayedRunner.request(delay);\n }\n pause(scope) {\n this.delayedRunner.pause(scope);\n }\n resume(scope, force) {\n this.delayedRunner.resume(scope, force);\n }\n drain() {\n let { queue } = this;\n while (queue.length) {\n let completedTasks = [];\n let task;\n while ((task = queue.shift())) {\n this.runTask(task);\n completedTasks.push(task);\n }\n this.drained(completedTasks);\n } // keep going, in case new tasks were added in the drained handler\n }\n runTask(task) {\n if (this.runTaskOption) {\n this.runTaskOption(task);\n }\n }\n drained(completedTasks) {\n if (this.drainedOption) {\n this.drainedOption(completedTasks);\n }\n }\n}\n\n// Computes what the title at the top of the calendarApi should be for this view\nfunction buildTitle(dateProfile, viewOptions, dateEnv) {\n let range;\n // for views that span a large unit of time, show the proper interval, ignoring stray days before and after\n if (/^(year|month)$/.test(dateProfile.currentRangeUnit)) {\n range = dateProfile.currentRange;\n }\n else { // for day units or smaller, use the actual day range\n range = dateProfile.activeRange;\n }\n return dateEnv.formatRange(range.start, range.end, createFormatter(viewOptions.titleFormat || buildTitleFormat(dateProfile)), {\n isEndExclusive: dateProfile.isRangeAllDay,\n defaultSeparator: viewOptions.titleRangeSeparator,\n });\n}\n// Generates the format string that should be used to generate the title for the current date range.\n// Attempts to compute the most appropriate format if not explicitly specified with `titleFormat`.\nfunction buildTitleFormat(dateProfile) {\n let { currentRangeUnit } = dateProfile;\n if (currentRangeUnit === 'year') {\n return { year: 'numeric' };\n }\n if (currentRangeUnit === 'month') {\n return { year: 'numeric', month: 'long' }; // like \"September 2014\"\n }\n let days = diffWholeDays(dateProfile.currentRange.start, dateProfile.currentRange.end);\n if (days !== null && days > 1) {\n // multi-day range. shorter, like \"Sep 9 - 10 2014\"\n return { year: 'numeric', month: 'short', day: 'numeric' };\n }\n // one day. longer, like \"September 9 2014\"\n return { year: 'numeric', month: 'long', day: 'numeric' };\n}\n\n/*\nTODO: test switching timezones when NO timezone plugin\n*/\nclass CalendarNowManager {\n constructor() {\n this.resetListeners = new Set();\n }\n handleInput(dateEnv, // will change if timezone setup changed\n nowInput) {\n const oldDateEnv = this.dateEnv;\n if (dateEnv !== oldDateEnv) {\n if (typeof nowInput === 'function') {\n this.nowFn = nowInput;\n }\n else if (!oldDateEnv) { // first time?\n this.nowAnchorDate = dateEnv.toDate(nowInput\n ? dateEnv.createMarker(nowInput)\n : dateEnv.createNowMarker());\n this.nowAnchorQueried = Date.now();\n }\n this.dateEnv = dateEnv;\n // not first time? fire reset handlers\n if (oldDateEnv) {\n for (const resetListener of this.resetListeners.values()) {\n resetListener();\n }\n }\n }\n }\n getDateMarker() {\n return this.nowAnchorDate\n ? this.dateEnv.timestampToMarker(this.nowAnchorDate.valueOf() +\n (Date.now() - this.nowAnchorQueried))\n : this.dateEnv.createMarker(this.nowFn());\n }\n addResetListener(handler) {\n this.resetListeners.add(handler);\n }\n removeResetListener(handler) {\n this.resetListeners.delete(handler);\n }\n}\n\n// in future refactor, do the redux-style function(state=initial) for initial-state\n// also, whatever is happening in constructor, have it happen in action queue too\nclass CalendarDataManager {\n constructor(props) {\n this.computeCurrentViewData = memoize(this._computeCurrentViewData);\n this.organizeRawLocales = memoize(organizeRawLocales);\n this.buildLocale = memoize(buildLocale);\n this.buildPluginHooks = buildBuildPluginHooks();\n this.buildDateEnv = memoize(buildDateEnv$1);\n this.buildTheme = memoize(buildTheme);\n this.parseToolbars = memoize(parseToolbars);\n this.buildViewSpecs = memoize(buildViewSpecs);\n this.buildDateProfileGenerator = memoizeObjArg(buildDateProfileGenerator);\n this.buildViewApi = memoize(buildViewApi);\n this.buildViewUiProps = memoizeObjArg(buildViewUiProps);\n this.buildEventUiBySource = memoize(buildEventUiBySource, isPropsEqual);\n this.buildEventUiBases = memoize(buildEventUiBases);\n this.parseContextBusinessHours = memoizeObjArg(parseContextBusinessHours);\n this.buildTitle = memoize(buildTitle);\n this.nowManager = new CalendarNowManager();\n this.emitter = new Emitter();\n this.actionRunner = new TaskRunner(this._handleAction.bind(this), this.updateData.bind(this));\n this.currentCalendarOptionsInput = {};\n this.currentCalendarOptionsRefined = {};\n this.currentViewOptionsInput = {};\n this.currentViewOptionsRefined = {};\n this.currentCalendarOptionsRefiners = {};\n this.optionsForRefining = [];\n this.optionsForHandling = [];\n this.getCurrentData = () => this.data;\n this.dispatch = (action) => {\n this.actionRunner.request(action); // protects against recursive calls to _handleAction\n };\n this.props = props;\n this.actionRunner.pause();\n this.nowManager = new CalendarNowManager();\n let dynamicOptionOverrides = {};\n let optionsData = this.computeOptionsData(props.optionOverrides, dynamicOptionOverrides, props.calendarApi);\n let currentViewType = optionsData.calendarOptions.initialView || optionsData.pluginHooks.initialView;\n let currentViewData = this.computeCurrentViewData(currentViewType, optionsData, props.optionOverrides, dynamicOptionOverrides);\n // wire things up\n // TODO: not DRY\n props.calendarApi.currentDataManager = this;\n this.emitter.setThisContext(props.calendarApi);\n this.emitter.setOptions(currentViewData.options);\n let calendarContext = {\n nowManager: this.nowManager,\n dateEnv: optionsData.dateEnv,\n options: optionsData.calendarOptions,\n pluginHooks: optionsData.pluginHooks,\n calendarApi: props.calendarApi,\n dispatch: this.dispatch,\n emitter: this.emitter,\n getCurrentData: this.getCurrentData,\n };\n let currentDate = getInitialDate(optionsData.calendarOptions, optionsData.dateEnv, this.nowManager);\n let dateProfile = currentViewData.dateProfileGenerator.build(currentDate);\n if (!rangeContainsMarker(dateProfile.activeRange, currentDate)) {\n currentDate = dateProfile.currentRange.start;\n }\n // needs to be after setThisContext\n for (let callback of optionsData.pluginHooks.contextInit) {\n callback(calendarContext);\n }\n // NOT DRY\n let eventSources = initEventSources(optionsData.calendarOptions, dateProfile, calendarContext);\n let initialState = {\n dynamicOptionOverrides,\n currentViewType,\n currentDate,\n dateProfile,\n businessHours: this.parseContextBusinessHours(calendarContext),\n eventSources,\n eventUiBases: {},\n eventStore: createEmptyEventStore(),\n renderableEventStore: createEmptyEventStore(),\n dateSelection: null,\n eventSelection: '',\n eventDrag: null,\n eventResize: null,\n selectionConfig: this.buildViewUiProps(calendarContext).selectionConfig,\n };\n let contextAndState = Object.assign(Object.assign({}, calendarContext), initialState);\n for (let reducer of optionsData.pluginHooks.reducers) {\n Object.assign(initialState, reducer(null, null, contextAndState));\n }\n if (computeIsLoading(initialState, calendarContext)) {\n this.emitter.trigger('loading', true); // NOT DRY\n }\n this.state = initialState;\n this.updateData();\n this.actionRunner.resume();\n }\n resetOptions(optionOverrides, changedOptionNames) {\n let { props } = this;\n if (changedOptionNames === undefined) {\n props.optionOverrides = optionOverrides;\n }\n else {\n props.optionOverrides = Object.assign(Object.assign({}, (props.optionOverrides || {})), optionOverrides);\n this.optionsForRefining.push(...changedOptionNames);\n }\n if (changedOptionNames === undefined || changedOptionNames.length) {\n this.actionRunner.request({\n type: 'NOTHING',\n });\n }\n }\n _handleAction(action) {\n let { props, state, emitter } = this;\n let dynamicOptionOverrides = reduceDynamicOptionOverrides(state.dynamicOptionOverrides, action);\n let optionsData = this.computeOptionsData(props.optionOverrides, dynamicOptionOverrides, props.calendarApi);\n let currentViewType = reduceViewType(state.currentViewType, action);\n let currentViewData = this.computeCurrentViewData(currentViewType, optionsData, props.optionOverrides, dynamicOptionOverrides);\n // wire things up\n // TODO: not DRY\n props.calendarApi.currentDataManager = this;\n emitter.setThisContext(props.calendarApi);\n emitter.setOptions(currentViewData.options);\n let calendarContext = {\n nowManager: this.nowManager,\n dateEnv: optionsData.dateEnv,\n options: optionsData.calendarOptions,\n pluginHooks: optionsData.pluginHooks,\n calendarApi: props.calendarApi,\n dispatch: this.dispatch,\n emitter,\n getCurrentData: this.getCurrentData,\n };\n let { currentDate, dateProfile } = state;\n if (this.data && this.data.dateProfileGenerator !== currentViewData.dateProfileGenerator) { // hack\n dateProfile = currentViewData.dateProfileGenerator.build(currentDate);\n }\n currentDate = reduceCurrentDate(currentDate, action);\n dateProfile = reduceDateProfile(dateProfile, action, currentDate, currentViewData.dateProfileGenerator);\n if (action.type === 'PREV' || // TODO: move this logic into DateProfileGenerator\n action.type === 'NEXT' || // \"\n !rangeContainsMarker(dateProfile.currentRange, currentDate)) {\n currentDate = dateProfile.currentRange.start;\n }\n let eventSources = reduceEventSources(state.eventSources, action, dateProfile, calendarContext);\n let eventStore = reduceEventStore(state.eventStore, action, eventSources, dateProfile, calendarContext);\n let isEventsLoading = computeEventSourcesLoading(eventSources); // BAD. also called in this func in computeIsLoading\n let renderableEventStore = (isEventsLoading && !currentViewData.options.progressiveEventRendering) ?\n (state.renderableEventStore || eventStore) : // try from previous state\n eventStore;\n let { eventUiSingleBase, selectionConfig } = this.buildViewUiProps(calendarContext); // will memoize obj\n let eventUiBySource = this.buildEventUiBySource(eventSources);\n let eventUiBases = this.buildEventUiBases(renderableEventStore.defs, eventUiSingleBase, eventUiBySource);\n let newState = {\n dynamicOptionOverrides,\n currentViewType,\n currentDate,\n dateProfile,\n eventSources,\n eventStore,\n renderableEventStore,\n selectionConfig,\n eventUiBases,\n businessHours: this.parseContextBusinessHours(calendarContext),\n dateSelection: reduceDateSelection(state.dateSelection, action),\n eventSelection: reduceSelectedEvent(state.eventSelection, action),\n eventDrag: reduceEventDrag(state.eventDrag, action),\n eventResize: reduceEventResize(state.eventResize, action),\n };\n let contextAndState = Object.assign(Object.assign({}, calendarContext), newState);\n for (let reducer of optionsData.pluginHooks.reducers) {\n Object.assign(newState, reducer(state, action, contextAndState)); // give the OLD state, for old value\n }\n let wasLoading = computeIsLoading(state, calendarContext);\n let isLoading = computeIsLoading(newState, calendarContext);\n // TODO: use propSetHandlers in plugin system\n if (!wasLoading && isLoading) {\n emitter.trigger('loading', true);\n }\n else if (wasLoading && !isLoading) {\n emitter.trigger('loading', false);\n }\n this.state = newState;\n if (props.onAction) {\n props.onAction(action);\n }\n }\n updateData() {\n let { props, state } = this;\n let oldData = this.data;\n let optionsData = this.computeOptionsData(props.optionOverrides, state.dynamicOptionOverrides, props.calendarApi);\n let currentViewData = this.computeCurrentViewData(state.currentViewType, optionsData, props.optionOverrides, state.dynamicOptionOverrides);\n let data = this.data = Object.assign(Object.assign(Object.assign({ nowManager: this.nowManager, viewTitle: this.buildTitle(state.dateProfile, currentViewData.options, optionsData.dateEnv), calendarApi: props.calendarApi, dispatch: this.dispatch, emitter: this.emitter, getCurrentData: this.getCurrentData }, optionsData), currentViewData), state);\n let changeHandlers = optionsData.pluginHooks.optionChangeHandlers;\n let oldCalendarOptions = oldData && oldData.calendarOptions;\n let newCalendarOptions = optionsData.calendarOptions;\n if (oldCalendarOptions && oldCalendarOptions !== newCalendarOptions) {\n if (oldCalendarOptions.timeZone !== newCalendarOptions.timeZone) {\n // hack\n state.eventSources = data.eventSources = reduceEventSourcesNewTimeZone(data.eventSources, state.dateProfile, data);\n state.eventStore = data.eventStore = rezoneEventStoreDates(data.eventStore, oldData.dateEnv, data.dateEnv);\n state.renderableEventStore = data.renderableEventStore = rezoneEventStoreDates(data.renderableEventStore, oldData.dateEnv, data.dateEnv);\n }\n for (let optionName in changeHandlers) {\n if (this.optionsForHandling.indexOf(optionName) !== -1 ||\n oldCalendarOptions[optionName] !== newCalendarOptions[optionName]) {\n changeHandlers[optionName](newCalendarOptions[optionName], data);\n }\n }\n }\n this.optionsForHandling = [];\n if (props.onData) {\n props.onData(data);\n }\n }\n computeOptionsData(optionOverrides, dynamicOptionOverrides, calendarApi) {\n // TODO: blacklist options that are handled by optionChangeHandlers\n if (!this.optionsForRefining.length &&\n optionOverrides === this.stableOptionOverrides &&\n dynamicOptionOverrides === this.stableDynamicOptionOverrides) {\n return this.stableCalendarOptionsData;\n }\n let { refinedOptions, pluginHooks, localeDefaults, availableLocaleData, extra, } = this.processRawCalendarOptions(optionOverrides, dynamicOptionOverrides);\n warnUnknownOptions(extra);\n let dateEnv = this.buildDateEnv(refinedOptions.timeZone, refinedOptions.locale, refinedOptions.weekNumberCalculation, refinedOptions.firstDay, refinedOptions.weekText, pluginHooks, availableLocaleData, refinedOptions.defaultRangeSeparator);\n let viewSpecs = this.buildViewSpecs(pluginHooks.views, this.stableOptionOverrides, this.stableDynamicOptionOverrides, localeDefaults);\n let theme = this.buildTheme(refinedOptions, pluginHooks);\n let toolbarConfig = this.parseToolbars(refinedOptions, this.stableOptionOverrides, theme, viewSpecs, calendarApi);\n return this.stableCalendarOptionsData = {\n calendarOptions: refinedOptions,\n pluginHooks,\n dateEnv,\n viewSpecs,\n theme,\n toolbarConfig,\n localeDefaults,\n availableRawLocales: availableLocaleData.map,\n };\n }\n // always called from behind a memoizer\n processRawCalendarOptions(optionOverrides, dynamicOptionOverrides) {\n let { locales, locale } = mergeRawOptions([\n BASE_OPTION_DEFAULTS,\n optionOverrides,\n dynamicOptionOverrides,\n ]);\n let availableLocaleData = this.organizeRawLocales(locales);\n let availableRawLocales = availableLocaleData.map;\n let localeDefaults = this.buildLocale(locale || availableLocaleData.defaultCode, availableRawLocales).options;\n let pluginHooks = this.buildPluginHooks(optionOverrides.plugins || [], globalPlugins);\n let refiners = this.currentCalendarOptionsRefiners = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, BASE_OPTION_REFINERS), CALENDAR_LISTENER_REFINERS), CALENDAR_OPTION_REFINERS), pluginHooks.listenerRefiners), pluginHooks.optionRefiners);\n let extra = {};\n let raw = mergeRawOptions([\n BASE_OPTION_DEFAULTS,\n localeDefaults,\n optionOverrides,\n dynamicOptionOverrides,\n ]);\n let refined = {};\n let currentRaw = this.currentCalendarOptionsInput;\n let currentRefined = this.currentCalendarOptionsRefined;\n let anyChanges = false;\n for (let optionName in raw) {\n if (this.optionsForRefining.indexOf(optionName) === -1 && (raw[optionName] === currentRaw[optionName] || (COMPLEX_OPTION_COMPARATORS[optionName] &&\n (optionName in currentRaw) &&\n COMPLEX_OPTION_COMPARATORS[optionName](currentRaw[optionName], raw[optionName])))) {\n refined[optionName] = currentRefined[optionName];\n }\n else if (refiners[optionName]) {\n refined[optionName] = refiners[optionName](raw[optionName]);\n anyChanges = true;\n }\n else {\n extra[optionName] = currentRaw[optionName];\n }\n }\n if (anyChanges) {\n this.currentCalendarOptionsInput = raw;\n this.currentCalendarOptionsRefined = refined;\n this.stableOptionOverrides = optionOverrides;\n this.stableDynamicOptionOverrides = dynamicOptionOverrides;\n }\n this.optionsForHandling.push(...this.optionsForRefining);\n this.optionsForRefining = [];\n return {\n rawOptions: this.currentCalendarOptionsInput,\n refinedOptions: this.currentCalendarOptionsRefined,\n pluginHooks,\n availableLocaleData,\n localeDefaults,\n extra,\n };\n }\n _computeCurrentViewData(viewType, optionsData, optionOverrides, dynamicOptionOverrides) {\n let viewSpec = optionsData.viewSpecs[viewType];\n if (!viewSpec) {\n throw new Error(`viewType \"${viewType}\" is not available. Please make sure you've loaded all neccessary plugins`);\n }\n let { refinedOptions, extra } = this.processRawViewOptions(viewSpec, optionsData.pluginHooks, optionsData.localeDefaults, optionOverrides, dynamicOptionOverrides);\n warnUnknownOptions(extra);\n this.nowManager.handleInput(optionsData.dateEnv, refinedOptions.now);\n let dateProfileGenerator = this.buildDateProfileGenerator({\n dateProfileGeneratorClass: viewSpec.optionDefaults.dateProfileGeneratorClass,\n nowManager: this.nowManager,\n duration: viewSpec.duration,\n durationUnit: viewSpec.durationUnit,\n usesMinMaxTime: viewSpec.optionDefaults.usesMinMaxTime,\n dateEnv: optionsData.dateEnv,\n calendarApi: this.props.calendarApi,\n slotMinTime: refinedOptions.slotMinTime,\n slotMaxTime: refinedOptions.slotMaxTime,\n showNonCurrentDates: refinedOptions.showNonCurrentDates,\n dayCount: refinedOptions.dayCount,\n dateAlignment: refinedOptions.dateAlignment,\n dateIncrement: refinedOptions.dateIncrement,\n hiddenDays: refinedOptions.hiddenDays,\n weekends: refinedOptions.weekends,\n validRangeInput: refinedOptions.validRange,\n visibleRangeInput: refinedOptions.visibleRange,\n fixedWeekCount: refinedOptions.fixedWeekCount,\n });\n let viewApi = this.buildViewApi(viewType, this.getCurrentData, optionsData.dateEnv);\n return { viewSpec, options: refinedOptions, dateProfileGenerator, viewApi };\n }\n processRawViewOptions(viewSpec, pluginHooks, localeDefaults, optionOverrides, dynamicOptionOverrides) {\n let raw = mergeRawOptions([\n BASE_OPTION_DEFAULTS,\n viewSpec.optionDefaults,\n localeDefaults,\n optionOverrides,\n viewSpec.optionOverrides,\n dynamicOptionOverrides,\n ]);\n let refiners = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, BASE_OPTION_REFINERS), CALENDAR_LISTENER_REFINERS), CALENDAR_OPTION_REFINERS), VIEW_OPTION_REFINERS), pluginHooks.listenerRefiners), pluginHooks.optionRefiners);\n let refined = {};\n let currentRaw = this.currentViewOptionsInput;\n let currentRefined = this.currentViewOptionsRefined;\n let anyChanges = false;\n let extra = {};\n for (let optionName in raw) {\n if (raw[optionName] === currentRaw[optionName] ||\n (COMPLEX_OPTION_COMPARATORS[optionName] &&\n COMPLEX_OPTION_COMPARATORS[optionName](raw[optionName], currentRaw[optionName]))) {\n refined[optionName] = currentRefined[optionName];\n }\n else {\n if (raw[optionName] === this.currentCalendarOptionsInput[optionName] ||\n (COMPLEX_OPTION_COMPARATORS[optionName] &&\n COMPLEX_OPTION_COMPARATORS[optionName](raw[optionName], this.currentCalendarOptionsInput[optionName]))) {\n if (optionName in this.currentCalendarOptionsRefined) { // might be an \"extra\" prop\n refined[optionName] = this.currentCalendarOptionsRefined[optionName];\n }\n }\n else if (refiners[optionName]) {\n refined[optionName] = refiners[optionName](raw[optionName]);\n }\n else {\n extra[optionName] = raw[optionName];\n }\n anyChanges = true;\n }\n }\n if (anyChanges) {\n this.currentViewOptionsInput = raw;\n this.currentViewOptionsRefined = refined;\n }\n return {\n rawOptions: this.currentViewOptionsInput,\n refinedOptions: this.currentViewOptionsRefined,\n extra,\n };\n }\n}\nfunction buildDateEnv$1(timeZone, explicitLocale, weekNumberCalculation, firstDay, weekText, pluginHooks, availableLocaleData, defaultSeparator) {\n let locale = buildLocale(explicitLocale || availableLocaleData.defaultCode, availableLocaleData.map);\n return new DateEnv({\n calendarSystem: 'gregory',\n timeZone,\n namedTimeZoneImpl: pluginHooks.namedTimeZonedImpl,\n locale,\n weekNumberCalculation,\n firstDay,\n weekText,\n cmdFormatter: pluginHooks.cmdFormatter,\n defaultSeparator,\n });\n}\nfunction buildTheme(options, pluginHooks) {\n let ThemeClass = pluginHooks.themeClasses[options.themeSystem] || StandardTheme;\n return new ThemeClass(options);\n}\nfunction buildDateProfileGenerator(props) {\n let DateProfileGeneratorClass = props.dateProfileGeneratorClass || DateProfileGenerator;\n return new DateProfileGeneratorClass(props);\n}\nfunction buildViewApi(type, getCurrentData, dateEnv) {\n return new ViewImpl(type, getCurrentData, dateEnv);\n}\nfunction buildEventUiBySource(eventSources) {\n return mapHash(eventSources, (eventSource) => eventSource.ui);\n}\nfunction buildEventUiBases(eventDefs, eventUiSingleBase, eventUiBySource) {\n let eventUiBases = { '': eventUiSingleBase };\n for (let defId in eventDefs) {\n let def = eventDefs[defId];\n if (def.sourceId && eventUiBySource[def.sourceId]) {\n eventUiBases[defId] = eventUiBySource[def.sourceId];\n }\n }\n return eventUiBases;\n}\nfunction buildViewUiProps(calendarContext) {\n let { options } = calendarContext;\n return {\n eventUiSingleBase: createEventUi({\n display: options.eventDisplay,\n editable: options.editable,\n startEditable: options.eventStartEditable,\n durationEditable: options.eventDurationEditable,\n constraint: options.eventConstraint,\n overlap: typeof options.eventOverlap === 'boolean' ? options.eventOverlap : undefined,\n allow: options.eventAllow,\n backgroundColor: options.eventBackgroundColor,\n borderColor: options.eventBorderColor,\n textColor: options.eventTextColor,\n color: options.eventColor,\n // classNames: options.eventClassNames // render hook will handle this\n }, calendarContext),\n selectionConfig: createEventUi({\n constraint: options.selectConstraint,\n overlap: typeof options.selectOverlap === 'boolean' ? options.selectOverlap : undefined,\n allow: options.selectAllow,\n }, calendarContext),\n };\n}\nfunction computeIsLoading(state, context) {\n for (let isLoadingFunc of context.pluginHooks.isLoadingFuncs) {\n if (isLoadingFunc(state)) {\n return true;\n }\n }\n return false;\n}\nfunction parseContextBusinessHours(calendarContext) {\n return parseBusinessHours(calendarContext.options.businessHours, calendarContext);\n}\nfunction warnUnknownOptions(options, viewName) {\n for (let optionName in options) {\n console.warn(`Unknown option '${optionName}'` +\n (viewName ? ` for view '${viewName}'` : ''));\n }\n}\n\nclass ToolbarSection extends BaseComponent {\n render() {\n let children = this.props.widgetGroups.map((widgetGroup) => this.renderWidgetGroup(widgetGroup));\n return createElement('div', { className: 'fc-toolbar-chunk' }, ...children);\n }\n renderWidgetGroup(widgetGroup) {\n let { props } = this;\n let { theme } = this.context;\n let children = [];\n let isOnlyButtons = true;\n for (let widget of widgetGroup) {\n let { buttonName, buttonClick, buttonText, buttonIcon, buttonHint } = widget;\n if (buttonName === 'title') {\n isOnlyButtons = false;\n children.push(createElement(\"h2\", { className: \"fc-toolbar-title\", id: props.titleId }, props.title));\n }\n else {\n let isPressed = buttonName === props.activeButton;\n let isDisabled = (!props.isTodayEnabled && buttonName === 'today') ||\n (!props.isPrevEnabled && buttonName === 'prev') ||\n (!props.isNextEnabled && buttonName === 'next');\n let buttonClasses = [`fc-${buttonName}-button`, theme.getClass('button')];\n if (isPressed) {\n buttonClasses.push(theme.getClass('buttonActive'));\n }\n children.push(createElement(\"button\", { type: \"button\", title: typeof buttonHint === 'function' ? buttonHint(props.navUnit) : buttonHint, disabled: isDisabled, \"aria-pressed\": isPressed, className: buttonClasses.join(' '), onClick: buttonClick }, buttonText || (buttonIcon ? createElement(\"span\", { className: buttonIcon, role: \"img\" }) : '')));\n }\n }\n if (children.length > 1) {\n let groupClassName = (isOnlyButtons && theme.getClass('buttonGroup')) || '';\n return createElement('div', { className: groupClassName }, ...children);\n }\n return children[0];\n }\n}\n\nclass Toolbar extends BaseComponent {\n render() {\n let { model, extraClassName } = this.props;\n let forceLtr = false;\n let startContent;\n let endContent;\n let sectionWidgets = model.sectionWidgets;\n let centerContent = sectionWidgets.center;\n if (sectionWidgets.left) {\n forceLtr = true;\n startContent = sectionWidgets.left;\n }\n else {\n startContent = sectionWidgets.start;\n }\n if (sectionWidgets.right) {\n forceLtr = true;\n endContent = sectionWidgets.right;\n }\n else {\n endContent = sectionWidgets.end;\n }\n let classNames = [\n extraClassName || '',\n 'fc-toolbar',\n forceLtr ? 'fc-toolbar-ltr' : '',\n ];\n return (createElement(\"div\", { className: classNames.join(' ') },\n this.renderSection('start', startContent || []),\n this.renderSection('center', centerContent || []),\n this.renderSection('end', endContent || [])));\n }\n renderSection(key, widgetGroups) {\n let { props } = this;\n return (createElement(ToolbarSection, { key: key, widgetGroups: widgetGroups, title: props.title, navUnit: props.navUnit, activeButton: props.activeButton, isTodayEnabled: props.isTodayEnabled, isPrevEnabled: props.isPrevEnabled, isNextEnabled: props.isNextEnabled, titleId: props.titleId }));\n }\n}\n\nclass ViewHarness extends BaseComponent {\n constructor() {\n super(...arguments);\n this.state = {\n availableWidth: null,\n };\n this.handleEl = (el) => {\n this.el = el;\n setRef(this.props.elRef, el);\n this.updateAvailableWidth();\n };\n this.handleResize = () => {\n this.updateAvailableWidth();\n };\n }\n render() {\n let { props, state } = this;\n let { aspectRatio } = props;\n let classNames = [\n 'fc-view-harness',\n (aspectRatio || props.liquid || props.height)\n ? 'fc-view-harness-active' // harness controls the height\n : 'fc-view-harness-passive', // let the view do the height\n ];\n let height = '';\n let paddingBottom = '';\n if (aspectRatio) {\n if (state.availableWidth !== null) {\n height = state.availableWidth / aspectRatio;\n }\n else {\n // while waiting to know availableWidth, we can't set height to *zero*\n // because will cause lots of unnecessary scrollbars within scrollgrid.\n // BETTER: don't start rendering ANYTHING yet until we know container width\n // NOTE: why not always use paddingBottom? Causes height oscillation (issue 5606)\n paddingBottom = `${(1 / aspectRatio) * 100}%`;\n }\n }\n else {\n height = props.height || '';\n }\n return (createElement(\"div\", { \"aria-labelledby\": props.labeledById, ref: this.handleEl, className: classNames.join(' '), style: { height, paddingBottom } }, props.children));\n }\n componentDidMount() {\n this.context.addResizeHandler(this.handleResize);\n }\n componentWillUnmount() {\n this.context.removeResizeHandler(this.handleResize);\n }\n updateAvailableWidth() {\n if (this.el && // needed. but why?\n this.props.aspectRatio // aspectRatio is the only height setting that needs availableWidth\n ) {\n this.setState({ availableWidth: this.el.offsetWidth });\n }\n }\n}\n\n/*\nDetects when the user clicks on an event within a DateComponent\n*/\nclass EventClicking extends Interaction {\n constructor(settings) {\n super(settings);\n this.handleSegClick = (ev, segEl) => {\n let { component } = this;\n let { context } = component;\n let seg = getElSeg(segEl);\n if (seg && // might be the <div> surrounding the more link\n component.isValidSegDownEl(ev.target)) {\n // our way to simulate a link click for elements that can't be <a> tags\n // grab before trigger fired in case trigger trashes DOM thru rerendering\n let hasUrlContainer = elementClosest(ev.target, '.fc-event-forced-url');\n let url = hasUrlContainer ? hasUrlContainer.querySelector('a[href]').href : '';\n context.emitter.trigger('eventClick', {\n el: segEl,\n event: new EventImpl(component.context, seg.eventRange.def, seg.eventRange.instance),\n jsEvent: ev,\n view: context.viewApi,\n });\n if (url && !ev.defaultPrevented) {\n window.location.href = url;\n }\n }\n };\n this.destroy = listenBySelector(settings.el, 'click', '.fc-event', // on both fg and bg events\n this.handleSegClick);\n }\n}\n\n/*\nTriggers events and adds/removes core classNames when the user's pointer\nenters/leaves event-elements of a component.\n*/\nclass EventHovering extends Interaction {\n constructor(settings) {\n super(settings);\n // for simulating an eventMouseLeave when the event el is destroyed while mouse is over it\n this.handleEventElRemove = (el) => {\n if (el === this.currentSegEl) {\n this.handleSegLeave(null, this.currentSegEl);\n }\n };\n this.handleSegEnter = (ev, segEl) => {\n if (getElSeg(segEl)) { // TODO: better way to make sure not hovering over more+ link or its wrapper\n this.currentSegEl = segEl;\n this.triggerEvent('eventMouseEnter', ev, segEl);\n }\n };\n this.handleSegLeave = (ev, segEl) => {\n if (this.currentSegEl) {\n this.currentSegEl = null;\n this.triggerEvent('eventMouseLeave', ev, segEl);\n }\n };\n this.removeHoverListeners = listenToHoverBySelector(settings.el, '.fc-event', // on both fg and bg events\n this.handleSegEnter, this.handleSegLeave);\n }\n destroy() {\n this.removeHoverListeners();\n }\n triggerEvent(publicEvName, ev, segEl) {\n let { component } = this;\n let { context } = component;\n let seg = getElSeg(segEl);\n if (!ev || component.isValidSegDownEl(ev.target)) {\n context.emitter.trigger(publicEvName, {\n el: segEl,\n event: new EventImpl(context, seg.eventRange.def, seg.eventRange.instance),\n jsEvent: ev,\n view: context.viewApi,\n });\n }\n }\n}\n\nclass CalendarContent extends PureComponent {\n constructor() {\n super(...arguments);\n this.buildViewContext = memoize(buildViewContext);\n this.buildViewPropTransformers = memoize(buildViewPropTransformers);\n this.buildToolbarProps = memoize(buildToolbarProps);\n this.headerRef = createRef();\n this.footerRef = createRef();\n this.interactionsStore = {};\n // eslint-disable-next-line\n this.state = {\n viewLabelId: getUniqueDomId(),\n };\n // Component Registration\n // -----------------------------------------------------------------------------------------------------------------\n this.registerInteractiveComponent = (component, settingsInput) => {\n let settings = parseInteractionSettings(component, settingsInput);\n let DEFAULT_INTERACTIONS = [\n EventClicking,\n EventHovering,\n ];\n let interactionClasses = DEFAULT_INTERACTIONS.concat(this.props.pluginHooks.componentInteractions);\n let interactions = interactionClasses.map((TheInteractionClass) => new TheInteractionClass(settings));\n this.interactionsStore[component.uid] = interactions;\n interactionSettingsStore[component.uid] = settings;\n };\n this.unregisterInteractiveComponent = (component) => {\n let listeners = this.interactionsStore[component.uid];\n if (listeners) {\n for (let listener of listeners) {\n listener.destroy();\n }\n delete this.interactionsStore[component.uid];\n }\n delete interactionSettingsStore[component.uid];\n };\n // Resizing\n // -----------------------------------------------------------------------------------------------------------------\n this.resizeRunner = new DelayedRunner(() => {\n this.props.emitter.trigger('_resize', true); // should window resizes be considered \"forced\" ?\n this.props.emitter.trigger('windowResize', { view: this.props.viewApi });\n });\n this.handleWindowResize = (ev) => {\n let { options } = this.props;\n if (options.handleWindowResize &&\n ev.target === window // avoid jqui events\n ) {\n this.resizeRunner.request(options.windowResizeDelay);\n }\n };\n }\n /*\n renders INSIDE of an outer div\n */\n render() {\n let { props } = this;\n let { toolbarConfig, options } = props;\n let viewVGrow = false;\n let viewHeight = '';\n let viewAspectRatio;\n if (props.isHeightAuto || props.forPrint) {\n viewHeight = '';\n }\n else if (options.height != null) {\n viewVGrow = true;\n }\n else if (options.contentHeight != null) {\n viewHeight = options.contentHeight;\n }\n else {\n viewAspectRatio = Math.max(options.aspectRatio, 0.5); // prevent from getting too tall\n }\n let viewContext = this.buildViewContext(props.viewSpec, props.viewApi, props.options, props.dateProfileGenerator, props.dateEnv, props.nowManager, props.theme, props.pluginHooks, props.dispatch, props.getCurrentData, props.emitter, props.calendarApi, this.registerInteractiveComponent, this.unregisterInteractiveComponent);\n let viewLabelId = (toolbarConfig.header && toolbarConfig.header.hasTitle)\n ? this.state.viewLabelId\n : undefined;\n return (createElement(ViewContextType.Provider, { value: viewContext },\n createElement(NowTimer, { unit: \"day\" }, (nowDate) => {\n let toolbarProps = this.buildToolbarProps(props.viewSpec, props.dateProfile, props.dateProfileGenerator, props.currentDate, nowDate, props.viewTitle);\n return (createElement(Fragment, null,\n toolbarConfig.header && (createElement(Toolbar, Object.assign({ ref: this.headerRef, extraClassName: \"fc-header-toolbar\", model: toolbarConfig.header, titleId: viewLabelId }, toolbarProps))),\n createElement(ViewHarness, { liquid: viewVGrow, height: viewHeight, aspectRatio: viewAspectRatio, labeledById: viewLabelId },\n this.renderView(props),\n this.buildAppendContent()),\n toolbarConfig.footer && (createElement(Toolbar, Object.assign({ ref: this.footerRef, extraClassName: \"fc-footer-toolbar\", model: toolbarConfig.footer, titleId: \"\" }, toolbarProps)))));\n })));\n }\n componentDidMount() {\n let { props } = this;\n this.calendarInteractions = props.pluginHooks.calendarInteractions\n .map((CalendarInteractionClass) => new CalendarInteractionClass(props));\n window.addEventListener('resize', this.handleWindowResize);\n let { propSetHandlers } = props.pluginHooks;\n for (let propName in propSetHandlers) {\n propSetHandlers[propName](props[propName], props);\n }\n }\n componentDidUpdate(prevProps) {\n let { props } = this;\n let { propSetHandlers } = props.pluginHooks;\n for (let propName in propSetHandlers) {\n if (props[propName] !== prevProps[propName]) {\n propSetHandlers[propName](props[propName], props);\n }\n }\n }\n componentWillUnmount() {\n window.removeEventListener('resize', this.handleWindowResize);\n this.resizeRunner.clear();\n for (let interaction of this.calendarInteractions) {\n interaction.destroy();\n }\n this.props.emitter.trigger('_unmount');\n }\n buildAppendContent() {\n let { props } = this;\n let children = props.pluginHooks.viewContainerAppends.map((buildAppendContent) => buildAppendContent(props));\n return createElement(Fragment, {}, ...children);\n }\n renderView(props) {\n let { pluginHooks } = props;\n let { viewSpec } = props;\n let viewProps = {\n dateProfile: props.dateProfile,\n businessHours: props.businessHours,\n eventStore: props.renderableEventStore,\n eventUiBases: props.eventUiBases,\n dateSelection: props.dateSelection,\n eventSelection: props.eventSelection,\n eventDrag: props.eventDrag,\n eventResize: props.eventResize,\n isHeightAuto: props.isHeightAuto,\n forPrint: props.forPrint,\n };\n let transformers = this.buildViewPropTransformers(pluginHooks.viewPropsTransformers);\n for (let transformer of transformers) {\n Object.assign(viewProps, transformer.transform(viewProps, props));\n }\n let ViewComponent = viewSpec.component;\n return (createElement(ViewComponent, Object.assign({}, viewProps)));\n }\n}\nfunction buildToolbarProps(viewSpec, dateProfile, dateProfileGenerator, currentDate, now, title) {\n // don't force any date-profiles to valid date profiles (the `false`) so that we can tell if it's invalid\n let todayInfo = dateProfileGenerator.build(now, undefined, false); // TODO: need `undefined` or else INFINITE LOOP for some reason\n let prevInfo = dateProfileGenerator.buildPrev(dateProfile, currentDate, false);\n let nextInfo = dateProfileGenerator.buildNext(dateProfile, currentDate, false);\n return {\n title,\n activeButton: viewSpec.type,\n navUnit: viewSpec.singleUnit,\n isTodayEnabled: todayInfo.isValid && !rangeContainsMarker(dateProfile.currentRange, now),\n isPrevEnabled: prevInfo.isValid,\n isNextEnabled: nextInfo.isValid,\n };\n}\n// Plugin\n// -----------------------------------------------------------------------------------------------------------------\nfunction buildViewPropTransformers(theClasses) {\n return theClasses.map((TheClass) => new TheClass());\n}\n\nclass Calendar extends CalendarImpl {\n constructor(el, optionOverrides = {}) {\n super();\n this.isRendering = false;\n this.isRendered = false;\n this.currentClassNames = [];\n this.customContentRenderId = 0;\n this.handleAction = (action) => {\n // actions we know we want to render immediately\n switch (action.type) {\n case 'SET_EVENT_DRAG':\n case 'SET_EVENT_RESIZE':\n this.renderRunner.tryDrain();\n }\n };\n this.handleData = (data) => {\n this.currentData = data;\n this.renderRunner.request(data.calendarOptions.rerenderDelay);\n };\n this.handleRenderRequest = () => {\n if (this.isRendering) {\n this.isRendered = true;\n let { currentData } = this;\n flushSync(() => {\n render(createElement(CalendarRoot, { options: currentData.calendarOptions, theme: currentData.theme, emitter: currentData.emitter }, (classNames, height, isHeightAuto, forPrint) => {\n this.setClassNames(classNames);\n this.setHeight(height);\n return (createElement(RenderId.Provider, { value: this.customContentRenderId },\n createElement(CalendarContent, Object.assign({ isHeightAuto: isHeightAuto, forPrint: forPrint }, currentData))));\n }), this.el);\n });\n }\n else if (this.isRendered) {\n this.isRendered = false;\n render(null, this.el);\n this.setClassNames([]);\n this.setHeight('');\n }\n };\n ensureElHasStyles(el);\n this.el = el;\n this.renderRunner = new DelayedRunner(this.handleRenderRequest);\n new CalendarDataManager({\n optionOverrides,\n calendarApi: this,\n onAction: this.handleAction,\n onData: this.handleData,\n });\n }\n render() {\n let wasRendering = this.isRendering;\n if (!wasRendering) {\n this.isRendering = true;\n }\n else {\n this.customContentRenderId += 1;\n }\n this.renderRunner.request();\n if (wasRendering) {\n this.updateSize();\n }\n }\n destroy() {\n if (this.isRendering) {\n this.isRendering = false;\n this.renderRunner.request();\n }\n }\n updateSize() {\n flushSync(() => {\n super.updateSize();\n });\n }\n batchRendering(func) {\n this.renderRunner.pause('batchRendering');\n func();\n this.renderRunner.resume('batchRendering');\n }\n pauseRendering() {\n this.renderRunner.pause('pauseRendering');\n }\n resumeRendering() {\n this.renderRunner.resume('pauseRendering', true);\n }\n resetOptions(optionOverrides, changedOptionNames) {\n this.currentDataManager.resetOptions(optionOverrides, changedOptionNames);\n }\n setClassNames(classNames) {\n if (!isArraysEqual(classNames, this.currentClassNames)) {\n let { classList } = this.el;\n for (let className of this.currentClassNames) {\n classList.remove(className);\n }\n for (let className of classNames) {\n classList.add(className);\n }\n this.currentClassNames = classNames;\n }\n }\n setHeight(height) {\n applyStyleProp(this.el, 'height', height);\n }\n}\n\nfunction formatDate(dateInput, options = {}) {\n let dateEnv = buildDateEnv(options);\n let formatter = createFormatter(options);\n let dateMeta = dateEnv.createMarkerMeta(dateInput);\n if (!dateMeta) { // TODO: warning?\n return '';\n }\n return dateEnv.format(dateMeta.marker, formatter, {\n forcedTzo: dateMeta.forcedTzo,\n });\n}\nfunction formatRange(startInput, endInput, options) {\n let dateEnv = buildDateEnv(typeof options === 'object' && options ? options : {}); // pass in if non-null object\n let formatter = createFormatter(options);\n let startMeta = dateEnv.createMarkerMeta(startInput);\n let endMeta = dateEnv.createMarkerMeta(endInput);\n if (!startMeta || !endMeta) { // TODO: warning?\n return '';\n }\n return dateEnv.formatRange(startMeta.marker, endMeta.marker, formatter, {\n forcedStartTzo: startMeta.forcedTzo,\n forcedEndTzo: endMeta.forcedTzo,\n isEndExclusive: options.isEndExclusive,\n defaultSeparator: BASE_OPTION_DEFAULTS.defaultRangeSeparator,\n });\n}\n// TODO: more DRY and optimized\nfunction buildDateEnv(settings) {\n let locale = buildLocale(settings.locale || 'en', organizeRawLocales([]).map); // TODO: don't hardcode 'en' everywhere\n return new DateEnv(Object.assign(Object.assign({ timeZone: BASE_OPTION_DEFAULTS.timeZone, calendarSystem: 'gregory' }, settings), { locale }));\n}\n\n// HELPERS\n/*\nif nextDayThreshold is specified, slicing is done in an all-day fashion.\nyou can get nextDayThreshold from context.nextDayThreshold\n*/\nfunction sliceEvents(props, allDay) {\n return sliceEventStore(props.eventStore, props.eventUiBases, props.dateProfile.activeRange, allDay ? props.nextDayThreshold : null).fg;\n}\n\nconst version = '6.1.21';\n\nexport { Calendar, createPlugin, formatDate, formatRange, globalLocales, globalPlugins, sliceEvents, version };\n","import * as preact from 'preact';\nimport { Component, createElement, isValidElement, Fragment } from 'preact';\nimport { createPortal } from 'preact/compat';\n\nconst styleTexts = [];\nconst styleEls = new Map();\nfunction injectStyles(styleText) {\n styleTexts.push(styleText);\n styleEls.forEach((styleEl) => {\n appendStylesTo(styleEl, styleText);\n });\n}\nfunction ensureElHasStyles(el) {\n if (el.isConnected && // sometimes true if SSR system simulates DOM\n el.getRootNode // sometimes undefined if SSR system simulates DOM\n ) {\n registerStylesRoot(el.getRootNode());\n }\n}\nfunction registerStylesRoot(rootNode) {\n let styleEl = styleEls.get(rootNode);\n if (!styleEl || !styleEl.isConnected) {\n styleEl = rootNode.querySelector('style[data-fullcalendar]');\n if (!styleEl) {\n styleEl = document.createElement('style');\n styleEl.setAttribute('data-fullcalendar', '');\n const nonce = getNonceValue();\n if (nonce) {\n styleEl.nonce = nonce;\n }\n const parentEl = rootNode === document ? document.head : rootNode;\n const insertBefore = rootNode === document\n ? parentEl.querySelector('script,link[rel=stylesheet],link[as=style],style')\n : parentEl.firstChild;\n parentEl.insertBefore(styleEl, insertBefore);\n }\n styleEls.set(rootNode, styleEl);\n hydrateStylesRoot(styleEl);\n }\n}\nfunction hydrateStylesRoot(styleEl) {\n for (const styleText of styleTexts) {\n appendStylesTo(styleEl, styleText);\n }\n}\nfunction appendStylesTo(styleEl, styleText) {\n const { sheet } = styleEl;\n const ruleCnt = sheet.cssRules.length;\n styleText.split('}').forEach((styleStr, i) => {\n styleStr = styleStr.trim();\n if (styleStr) {\n sheet.insertRule(styleStr + '}', ruleCnt + i);\n }\n });\n}\n// nonce\n// -------------------------------------------------------------------------------------------------\nlet queriedNonceValue;\nfunction getNonceValue() {\n if (queriedNonceValue === undefined) {\n queriedNonceValue = queryNonceValue();\n }\n return queriedNonceValue;\n}\n/*\nTODO: discourage meta tag and instead put nonce attribute on placeholder <style> tag\n*/\nfunction queryNonceValue() {\n const metaWithNonce = document.querySelector('meta[name=\"csp-nonce\"]');\n if (metaWithNonce && metaWithNonce.hasAttribute('content')) {\n return metaWithNonce.getAttribute('content');\n }\n const elWithNonce = document.querySelector('script[nonce]');\n if (elWithNonce) {\n return elWithNonce.nonce || '';\n }\n return '';\n}\n// main\n// -------------------------------------------------------------------------------------------------\nif (typeof document !== 'undefined') {\n registerStylesRoot(document);\n}\n\nvar css_248z = \":root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url(\\\"data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=\\\") format(\\\"truetype\\\")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:\\\"\\\\e900\\\"}.fc-icon-chevron-right:before{content:\\\"\\\\e901\\\"}.fc-icon-chevrons-left:before{content:\\\"\\\\e902\\\"}.fc-icon-chevrons-right:before{content:\\\"\\\\e903\\\"}.fc-icon-minus-square:before{content:\\\"\\\\e904\\\"}.fc-icon-plus-square:before{content:\\\"\\\\e905\\\"}.fc-icon-x:before{content:\\\"\\\\e906\\\"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:\\\"\\\";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:\\\"\\\";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:\\\"\\\";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}\";\ninjectStyles(css_248z);\n\nclass DelayedRunner {\n constructor(drainedOption) {\n this.drainedOption = drainedOption;\n this.isRunning = false;\n this.isDirty = false;\n this.pauseDepths = {};\n this.timeoutId = 0;\n }\n request(delay) {\n this.isDirty = true;\n if (!this.isPaused()) {\n this.clearTimeout();\n if (delay == null) {\n this.tryDrain();\n }\n else {\n this.timeoutId = setTimeout(// NOT OPTIMAL! TODO: look at debounce\n this.tryDrain.bind(this), delay);\n }\n }\n }\n pause(scope = '') {\n let { pauseDepths } = this;\n pauseDepths[scope] = (pauseDepths[scope] || 0) + 1;\n this.clearTimeout();\n }\n resume(scope = '', force) {\n let { pauseDepths } = this;\n if (scope in pauseDepths) {\n if (force) {\n delete pauseDepths[scope];\n }\n else {\n pauseDepths[scope] -= 1;\n let depth = pauseDepths[scope];\n if (depth <= 0) {\n delete pauseDepths[scope];\n }\n }\n this.tryDrain();\n }\n }\n isPaused() {\n return Object.keys(this.pauseDepths).length;\n }\n tryDrain() {\n if (!this.isRunning && !this.isPaused()) {\n this.isRunning = true;\n while (this.isDirty) {\n this.isDirty = false;\n this.drained(); // might set isDirty to true again\n }\n this.isRunning = false;\n }\n }\n clear() {\n this.clearTimeout();\n this.isDirty = false;\n this.pauseDepths = {};\n }\n clearTimeout() {\n if (this.timeoutId) {\n clearTimeout(this.timeoutId);\n this.timeoutId = 0;\n }\n }\n drained() {\n if (this.drainedOption) {\n this.drainedOption();\n }\n }\n}\n\nfunction removeElement(el) {\n if (el.parentNode) {\n el.parentNode.removeChild(el);\n }\n}\n// Querying\n// ----------------------------------------------------------------------------------------------------------------\nfunction elementClosest(el, selector) {\n if (el.closest) {\n return el.closest(selector);\n // really bad fallback for IE\n // from https://developer.mozilla.org/en-US/docs/Web/API/Element/closest\n }\n if (!document.documentElement.contains(el)) {\n return null;\n }\n do {\n if (elementMatches(el, selector)) {\n return el;\n }\n el = (el.parentElement || el.parentNode);\n } while (el !== null && el.nodeType === 1);\n return null;\n}\nfunction elementMatches(el, selector) {\n let method = el.matches || el.matchesSelector || el.msMatchesSelector;\n return method.call(el, selector);\n}\n// accepts multiple subject els\n// returns a real array. good for methods like forEach\n// TODO: accept the document\nfunction findElements(container, selector) {\n let containers = container instanceof HTMLElement ? [container] : container;\n let allMatches = [];\n for (let i = 0; i < containers.length; i += 1) {\n let matches = containers[i].querySelectorAll(selector);\n for (let j = 0; j < matches.length; j += 1) {\n allMatches.push(matches[j]);\n }\n }\n return allMatches;\n}\n// accepts multiple subject els\n// only queries direct child elements // TODO: rename to findDirectChildren!\nfunction findDirectChildren(parent, selector) {\n let parents = parent instanceof HTMLElement ? [parent] : parent;\n let allMatches = [];\n for (let i = 0; i < parents.length; i += 1) {\n let childNodes = parents[i].children; // only ever elements\n for (let j = 0; j < childNodes.length; j += 1) {\n let childNode = childNodes[j];\n if (!selector || elementMatches(childNode, selector)) {\n allMatches.push(childNode);\n }\n }\n }\n return allMatches;\n}\n// Style\n// ----------------------------------------------------------------------------------------------------------------\nconst PIXEL_PROP_RE = /(top|left|right|bottom|width|height)$/i;\nfunction applyStyle(el, props) {\n for (let propName in props) {\n applyStyleProp(el, propName, props[propName]);\n }\n}\nfunction applyStyleProp(el, name, val) {\n if (val == null) {\n el.style[name] = '';\n }\n else if (typeof val === 'number' && PIXEL_PROP_RE.test(name)) {\n el.style[name] = `${val}px`;\n }\n else {\n el.style[name] = val;\n }\n}\n// Event Handling\n// ----------------------------------------------------------------------------------------------------------------\n// if intercepting bubbled events at the document/window/body level,\n// and want to see originating element (the 'target'), use this util instead\n// of `ev.target` because it goes within web-component boundaries.\nfunction getEventTargetViaRoot(ev) {\n var _a, _b;\n return (_b = (_a = ev.composedPath) === null || _a === void 0 ? void 0 : _a.call(ev)[0]) !== null && _b !== void 0 ? _b : ev.target;\n}\n// Unique ID for DOM attribute\nlet guid$1 = 0;\nfunction getUniqueDomId() {\n guid$1 += 1;\n return 'fc-dom-' + guid$1;\n}\n\n// Stops a mouse/touch event from doing it's native browser action\nfunction preventDefault(ev) {\n ev.preventDefault();\n}\n// Event Delegation\n// ----------------------------------------------------------------------------------------------------------------\nfunction buildDelegationHandler(selector, handler) {\n return (ev) => {\n let matchedChild = elementClosest(ev.target, selector);\n if (matchedChild) {\n handler.call(matchedChild, ev, matchedChild);\n }\n };\n}\nfunction listenBySelector(container, eventType, selector, handler) {\n let attachedHandler = buildDelegationHandler(selector, handler);\n container.addEventListener(eventType, attachedHandler);\n return () => {\n container.removeEventListener(eventType, attachedHandler);\n };\n}\nfunction listenToHoverBySelector(container, selector, onMouseEnter, onMouseLeave) {\n let currentMatchedChild;\n return listenBySelector(container, 'mouseover', selector, (mouseOverEv, matchedChild) => {\n if (matchedChild !== currentMatchedChild) {\n currentMatchedChild = matchedChild;\n onMouseEnter(mouseOverEv, matchedChild);\n let realOnMouseLeave = (mouseLeaveEv) => {\n currentMatchedChild = null;\n onMouseLeave(mouseLeaveEv, matchedChild);\n matchedChild.removeEventListener('mouseleave', realOnMouseLeave);\n };\n // listen to the next mouseleave, and then unattach\n matchedChild.addEventListener('mouseleave', realOnMouseLeave);\n }\n });\n}\n// Animation\n// ----------------------------------------------------------------------------------------------------------------\nconst transitionEventNames = [\n 'webkitTransitionEnd',\n 'otransitionend',\n 'oTransitionEnd',\n 'msTransitionEnd',\n 'transitionend',\n];\n// triggered only when the next single subsequent transition finishes\nfunction whenTransitionDone(el, callback) {\n let realCallback = (ev) => {\n callback(ev);\n transitionEventNames.forEach((eventName) => {\n el.removeEventListener(eventName, realCallback);\n });\n };\n transitionEventNames.forEach((eventName) => {\n el.addEventListener(eventName, realCallback); // cross-browser way to determine when the transition finishes\n });\n}\n// ARIA workarounds\n// ----------------------------------------------------------------------------------------------------------------\nfunction createAriaClickAttrs(handler) {\n return Object.assign({ onClick: handler }, createAriaKeyboardAttrs(handler));\n}\nfunction createAriaKeyboardAttrs(handler) {\n return {\n tabIndex: 0,\n onKeyDown(ev) {\n if (ev.key === 'Enter' || ev.key === ' ') {\n handler(ev);\n ev.preventDefault(); // if space, don't scroll down page\n }\n },\n };\n}\n\nlet guidNumber = 0;\nfunction guid() {\n guidNumber += 1;\n return String(guidNumber);\n}\n/* FullCalendar-specific DOM Utilities\n----------------------------------------------------------------------------------------------------------------------*/\n// Make the mouse cursor express that an event is not allowed in the current area\nfunction disableCursor() {\n document.body.classList.add('fc-not-allowed');\n}\n// Returns the mouse cursor to its original look\nfunction enableCursor() {\n document.body.classList.remove('fc-not-allowed');\n}\n/* Selection\n----------------------------------------------------------------------------------------------------------------------*/\nfunction preventSelection(el) {\n el.style.userSelect = 'none';\n el.style.webkitUserSelect = 'none';\n el.addEventListener('selectstart', preventDefault);\n}\nfunction allowSelection(el) {\n el.style.userSelect = '';\n el.style.webkitUserSelect = '';\n el.removeEventListener('selectstart', preventDefault);\n}\n/* Context Menu\n----------------------------------------------------------------------------------------------------------------------*/\nfunction preventContextMenu(el) {\n el.addEventListener('contextmenu', preventDefault);\n}\nfunction allowContextMenu(el) {\n el.removeEventListener('contextmenu', preventDefault);\n}\nfunction parseFieldSpecs(input) {\n let specs = [];\n let tokens = [];\n let i;\n let token;\n if (typeof input === 'string') {\n tokens = input.split(/\\s*,\\s*/);\n }\n else if (typeof input === 'function') {\n tokens = [input];\n }\n else if (Array.isArray(input)) {\n tokens = input;\n }\n for (i = 0; i < tokens.length; i += 1) {\n token = tokens[i];\n if (typeof token === 'string') {\n specs.push(token.charAt(0) === '-' ?\n { field: token.substring(1), order: -1 } :\n { field: token, order: 1 });\n }\n else if (typeof token === 'function') {\n specs.push({ func: token });\n }\n }\n return specs;\n}\nfunction compareByFieldSpecs(obj0, obj1, fieldSpecs) {\n let i;\n let cmp;\n for (i = 0; i < fieldSpecs.length; i += 1) {\n cmp = compareByFieldSpec(obj0, obj1, fieldSpecs[i]);\n if (cmp) {\n return cmp;\n }\n }\n return 0;\n}\nfunction compareByFieldSpec(obj0, obj1, fieldSpec) {\n if (fieldSpec.func) {\n return fieldSpec.func(obj0, obj1);\n }\n return flexibleCompare(obj0[fieldSpec.field], obj1[fieldSpec.field])\n * (fieldSpec.order || 1);\n}\nfunction flexibleCompare(a, b) {\n if (!a && !b) {\n return 0;\n }\n if (b == null) {\n return -1;\n }\n if (a == null) {\n return 1;\n }\n if (typeof a === 'string' || typeof b === 'string') {\n return String(a).localeCompare(String(b));\n }\n return a - b;\n}\n/* String Utilities\n----------------------------------------------------------------------------------------------------------------------*/\nfunction padStart(val, len) {\n let s = String(val);\n return '000'.substr(0, len - s.length) + s;\n}\nfunction formatWithOrdinals(formatter, args, fallbackText) {\n if (typeof formatter === 'function') {\n return formatter(...args);\n }\n if (typeof formatter === 'string') { // non-blank string\n return args.reduce((str, arg, index) => (str.replace('$' + index, arg || '')), formatter);\n }\n return fallbackText;\n}\n/* Number Utilities\n----------------------------------------------------------------------------------------------------------------------*/\nfunction compareNumbers(a, b) {\n return a - b;\n}\nfunction isInt(n) {\n return n % 1 === 0;\n}\n/* FC-specific DOM dimension stuff\n----------------------------------------------------------------------------------------------------------------------*/\nfunction computeSmallestCellWidth(cellEl) {\n let allWidthEl = cellEl.querySelector('.fc-scrollgrid-shrink-frame');\n let contentWidthEl = cellEl.querySelector('.fc-scrollgrid-shrink-cushion');\n if (!allWidthEl) {\n throw new Error('needs fc-scrollgrid-shrink-frame className'); // TODO: use const\n }\n if (!contentWidthEl) {\n throw new Error('needs fc-scrollgrid-shrink-cushion className');\n }\n return cellEl.getBoundingClientRect().width - allWidthEl.getBoundingClientRect().width + // the cell padding+border\n contentWidthEl.getBoundingClientRect().width;\n}\n\nconst INTERNAL_UNITS = ['years', 'months', 'days', 'milliseconds'];\nconst PARSE_RE = /^(-?)(?:(\\d+)\\.)?(\\d+):(\\d\\d)(?::(\\d\\d)(?:\\.(\\d\\d\\d))?)?/;\n// Parsing and Creation\nfunction createDuration(input, unit) {\n if (typeof input === 'string') {\n return parseString(input);\n }\n if (typeof input === 'object' && input) { // non-null object\n return parseObject(input);\n }\n if (typeof input === 'number') {\n return parseObject({ [unit || 'milliseconds']: input });\n }\n return null;\n}\nfunction parseString(s) {\n let m = PARSE_RE.exec(s);\n if (m) {\n let sign = m[1] ? -1 : 1;\n return {\n years: 0,\n months: 0,\n days: sign * (m[2] ? parseInt(m[2], 10) : 0),\n milliseconds: sign * ((m[3] ? parseInt(m[3], 10) : 0) * 60 * 60 * 1000 + // hours\n (m[4] ? parseInt(m[4], 10) : 0) * 60 * 1000 + // minutes\n (m[5] ? parseInt(m[5], 10) : 0) * 1000 + // seconds\n (m[6] ? parseInt(m[6], 10) : 0) // ms\n ),\n };\n }\n return null;\n}\nfunction parseObject(obj) {\n let duration = {\n years: obj.years || obj.year || 0,\n months: obj.months || obj.month || 0,\n days: obj.days || obj.day || 0,\n milliseconds: (obj.hours || obj.hour || 0) * 60 * 60 * 1000 + // hours\n (obj.minutes || obj.minute || 0) * 60 * 1000 + // minutes\n (obj.seconds || obj.second || 0) * 1000 + // seconds\n (obj.milliseconds || obj.millisecond || obj.ms || 0), // ms\n };\n let weeks = obj.weeks || obj.week;\n if (weeks) {\n duration.days += weeks * 7;\n duration.specifiedWeeks = true;\n }\n return duration;\n}\n// Equality\nfunction durationsEqual(d0, d1) {\n return d0.years === d1.years &&\n d0.months === d1.months &&\n d0.days === d1.days &&\n d0.milliseconds === d1.milliseconds;\n}\nfunction asCleanDays(dur) {\n if (!dur.years && !dur.months && !dur.milliseconds) {\n return dur.days;\n }\n return 0;\n}\n// Simple Math\nfunction addDurations(d0, d1) {\n return {\n years: d0.years + d1.years,\n months: d0.months + d1.months,\n days: d0.days + d1.days,\n milliseconds: d0.milliseconds + d1.milliseconds,\n };\n}\nfunction subtractDurations(d1, d0) {\n return {\n years: d1.years - d0.years,\n months: d1.months - d0.months,\n days: d1.days - d0.days,\n milliseconds: d1.milliseconds - d0.milliseconds,\n };\n}\nfunction multiplyDuration(d, n) {\n return {\n years: d.years * n,\n months: d.months * n,\n days: d.days * n,\n milliseconds: d.milliseconds * n,\n };\n}\n// Conversions\n// \"Rough\" because they are based on average-case Gregorian months/years\nfunction asRoughYears(dur) {\n return asRoughDays(dur) / 365;\n}\nfunction asRoughMonths(dur) {\n return asRoughDays(dur) / 30;\n}\nfunction asRoughDays(dur) {\n return asRoughMs(dur) / 864e5;\n}\nfunction asRoughMinutes(dur) {\n return asRoughMs(dur) / (1000 * 60);\n}\nfunction asRoughSeconds(dur) {\n return asRoughMs(dur) / 1000;\n}\nfunction asRoughMs(dur) {\n return dur.years * (365 * 864e5) +\n dur.months * (30 * 864e5) +\n dur.days * 864e5 +\n dur.milliseconds;\n}\n// Advanced Math\nfunction wholeDivideDurations(numerator, denominator) {\n let res = null;\n for (let i = 0; i < INTERNAL_UNITS.length; i += 1) {\n let unit = INTERNAL_UNITS[i];\n if (denominator[unit]) {\n let localRes = numerator[unit] / denominator[unit];\n if (!isInt(localRes) || (res !== null && res !== localRes)) {\n return null;\n }\n res = localRes;\n }\n else if (numerator[unit]) {\n // needs to divide by something but can't!\n return null;\n }\n }\n return res;\n}\nfunction greatestDurationDenominator(dur) {\n let ms = dur.milliseconds;\n if (ms) {\n if (ms % 1000 !== 0) {\n return { unit: 'millisecond', value: ms };\n }\n if (ms % (1000 * 60) !== 0) {\n return { unit: 'second', value: ms / 1000 };\n }\n if (ms % (1000 * 60 * 60) !== 0) {\n return { unit: 'minute', value: ms / (1000 * 60) };\n }\n if (ms) {\n return { unit: 'hour', value: ms / (1000 * 60 * 60) };\n }\n }\n if (dur.days) {\n if (dur.specifiedWeeks && dur.days % 7 === 0) {\n return { unit: 'week', value: dur.days / 7 };\n }\n return { unit: 'day', value: dur.days };\n }\n if (dur.months) {\n return { unit: 'month', value: dur.months };\n }\n if (dur.years) {\n return { unit: 'year', value: dur.years };\n }\n return { unit: 'millisecond', value: 0 };\n}\n\n// TODO: new util arrayify?\nfunction removeExact(array, exactVal) {\n let removeCnt = 0;\n let i = 0;\n while (i < array.length) {\n if (array[i] === exactVal) {\n array.splice(i, 1);\n removeCnt += 1;\n }\n else {\n i += 1;\n }\n }\n return removeCnt;\n}\nfunction isArraysEqual(a0, a1, equalityFunc) {\n if (a0 === a1) {\n return true;\n }\n let len = a0.length;\n let i;\n if (len !== a1.length) { // not array? or not same length?\n return false;\n }\n for (i = 0; i < len; i += 1) {\n if (!(equalityFunc ? equalityFunc(a0[i], a1[i]) : a0[i] === a1[i])) {\n return false;\n }\n }\n return true;\n}\n\nconst DAY_IDS = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'];\n// Adding\nfunction addWeeks(m, n) {\n let a = dateToUtcArray(m);\n a[2] += n * 7;\n return arrayToUtcDate(a);\n}\nfunction addDays(m, n) {\n let a = dateToUtcArray(m);\n a[2] += n;\n return arrayToUtcDate(a);\n}\nfunction addMs(m, n) {\n let a = dateToUtcArray(m);\n a[6] += n;\n return arrayToUtcDate(a);\n}\n// Diffing (all return floats)\n// TODO: why not use ranges?\nfunction diffWeeks(m0, m1) {\n return diffDays(m0, m1) / 7;\n}\nfunction diffDays(m0, m1) {\n return (m1.valueOf() - m0.valueOf()) / (1000 * 60 * 60 * 24);\n}\nfunction diffHours(m0, m1) {\n return (m1.valueOf() - m0.valueOf()) / (1000 * 60 * 60);\n}\nfunction diffMinutes(m0, m1) {\n return (m1.valueOf() - m0.valueOf()) / (1000 * 60);\n}\nfunction diffSeconds(m0, m1) {\n return (m1.valueOf() - m0.valueOf()) / 1000;\n}\nfunction diffDayAndTime(m0, m1) {\n let m0day = startOfDay(m0);\n let m1day = startOfDay(m1);\n return {\n years: 0,\n months: 0,\n days: Math.round(diffDays(m0day, m1day)),\n milliseconds: (m1.valueOf() - m1day.valueOf()) - (m0.valueOf() - m0day.valueOf()),\n };\n}\n// Diffing Whole Units\nfunction diffWholeWeeks(m0, m1) {\n let d = diffWholeDays(m0, m1);\n if (d !== null && d % 7 === 0) {\n return d / 7;\n }\n return null;\n}\nfunction diffWholeDays(m0, m1) {\n if (timeAsMs(m0) === timeAsMs(m1)) {\n return Math.round(diffDays(m0, m1));\n }\n return null;\n}\n// Start-Of\nfunction startOfDay(m) {\n return arrayToUtcDate([\n m.getUTCFullYear(),\n m.getUTCMonth(),\n m.getUTCDate(),\n ]);\n}\nfunction startOfHour(m) {\n return arrayToUtcDate([\n m.getUTCFullYear(),\n m.getUTCMonth(),\n m.getUTCDate(),\n m.getUTCHours(),\n ]);\n}\nfunction startOfMinute(m) {\n return arrayToUtcDate([\n m.getUTCFullYear(),\n m.getUTCMonth(),\n m.getUTCDate(),\n m.getUTCHours(),\n m.getUTCMinutes(),\n ]);\n}\nfunction startOfSecond(m) {\n return arrayToUtcDate([\n m.getUTCFullYear(),\n m.getUTCMonth(),\n m.getUTCDate(),\n m.getUTCHours(),\n m.getUTCMinutes(),\n m.getUTCSeconds(),\n ]);\n}\n// Week Computation\nfunction weekOfYear(marker, dow, doy) {\n let y = marker.getUTCFullYear();\n let w = weekOfGivenYear(marker, y, dow, doy);\n if (w < 1) {\n return weekOfGivenYear(marker, y - 1, dow, doy);\n }\n let nextW = weekOfGivenYear(marker, y + 1, dow, doy);\n if (nextW >= 1) {\n return Math.min(w, nextW);\n }\n return w;\n}\nfunction weekOfGivenYear(marker, year, dow, doy) {\n let firstWeekStart = arrayToUtcDate([year, 0, 1 + firstWeekOffset(year, dow, doy)]);\n let dayStart = startOfDay(marker);\n let days = Math.round(diffDays(firstWeekStart, dayStart));\n return Math.floor(days / 7) + 1; // zero-indexed\n}\n// start-of-first-week - start-of-year\nfunction firstWeekOffset(year, dow, doy) {\n // first-week day -- which january is always in the first week (4 for iso, 1 for other)\n let fwd = 7 + dow - doy;\n // first-week day local weekday -- which local weekday is fwd\n let fwdlw = (7 + arrayToUtcDate([year, 0, fwd]).getUTCDay() - dow) % 7;\n return -fwdlw + fwd - 1;\n}\n// Array Conversion\nfunction dateToLocalArray(date) {\n return [\n date.getFullYear(),\n date.getMonth(),\n date.getDate(),\n date.getHours(),\n date.getMinutes(),\n date.getSeconds(),\n date.getMilliseconds(),\n ];\n}\nfunction arrayToLocalDate(a) {\n return new Date(a[0], a[1] || 0, a[2] == null ? 1 : a[2], // day of month\n a[3] || 0, a[4] || 0, a[5] || 0);\n}\nfunction dateToUtcArray(date) {\n return [\n date.getUTCFullYear(),\n date.getUTCMonth(),\n date.getUTCDate(),\n date.getUTCHours(),\n date.getUTCMinutes(),\n date.getUTCSeconds(),\n date.getUTCMilliseconds(),\n ];\n}\nfunction arrayToUtcDate(a) {\n // according to web standards (and Safari), a month index is required.\n // massage if only given a year.\n if (a.length === 1) {\n a = a.concat([0]);\n }\n return new Date(Date.UTC(...a));\n}\n// Other Utils\nfunction isValidDate(m) {\n return !isNaN(m.valueOf());\n}\nfunction timeAsMs(m) {\n return m.getUTCHours() * 1000 * 60 * 60 +\n m.getUTCMinutes() * 1000 * 60 +\n m.getUTCSeconds() * 1000 +\n m.getUTCMilliseconds();\n}\n\n// timeZoneOffset is in minutes\nfunction buildIsoString(marker, timeZoneOffset, stripZeroTime = false) {\n let s = marker.toISOString();\n s = s.replace('.000', '');\n if (stripZeroTime) {\n s = s.replace('T00:00:00Z', '');\n }\n if (s.length > 10) { // time part wasn't stripped, can add timezone info\n if (timeZoneOffset == null) {\n s = s.replace('Z', '');\n }\n else if (timeZoneOffset !== 0) {\n s = s.replace('Z', formatTimeZoneOffset(timeZoneOffset, true));\n }\n // otherwise, its UTC-0 and we want to keep the Z\n }\n return s;\n}\n// formats the date, but with no time part\n// TODO: somehow merge with buildIsoString and stripZeroTime\n// TODO: rename. omit \"string\"\nfunction formatDayString(marker) {\n return marker.toISOString().replace(/T.*$/, '');\n}\nfunction formatIsoMonthStr(marker) {\n return marker.toISOString().match(/^\\d{4}-\\d{2}/)[0];\n}\n// TODO: use Date::toISOString and use everything after the T?\nfunction formatIsoTimeString(marker) {\n return padStart(marker.getUTCHours(), 2) + ':' +\n padStart(marker.getUTCMinutes(), 2) + ':' +\n padStart(marker.getUTCSeconds(), 2);\n}\nfunction formatTimeZoneOffset(minutes, doIso = false) {\n let sign = minutes < 0 ? '-' : '+';\n let abs = Math.abs(minutes);\n let hours = Math.floor(abs / 60);\n let mins = Math.round(abs % 60);\n if (doIso) {\n return `${sign + padStart(hours, 2)}:${padStart(mins, 2)}`;\n }\n return `GMT${sign}${hours}${mins ? `:${padStart(mins, 2)}` : ''}`;\n}\n\nfunction memoize(workerFunc, resEquality, teardownFunc) {\n let currentArgs;\n let currentRes;\n return function (...newArgs) {\n if (!currentArgs) {\n currentRes = workerFunc.apply(this, newArgs);\n }\n else if (!isArraysEqual(currentArgs, newArgs)) {\n if (teardownFunc) {\n teardownFunc(currentRes);\n }\n let res = workerFunc.apply(this, newArgs);\n if (!resEquality || !resEquality(res, currentRes)) {\n currentRes = res;\n }\n }\n currentArgs = newArgs;\n return currentRes;\n };\n}\nfunction memoizeObjArg(workerFunc, resEquality, teardownFunc) {\n let currentArg;\n let currentRes;\n return (newArg) => {\n if (!currentArg) {\n currentRes = workerFunc.call(this, newArg);\n }\n else if (!isPropsEqual(currentArg, newArg)) {\n if (teardownFunc) {\n teardownFunc(currentRes);\n }\n let res = workerFunc.call(this, newArg);\n if (!resEquality || !resEquality(res, currentRes)) {\n currentRes = res;\n }\n }\n currentArg = newArg;\n return currentRes;\n };\n}\nfunction memoizeArraylike(// used at all?\nworkerFunc, resEquality, teardownFunc) {\n let currentArgSets = [];\n let currentResults = [];\n return (newArgSets) => {\n let currentLen = currentArgSets.length;\n let newLen = newArgSets.length;\n let i = 0;\n for (; i < currentLen; i += 1) {\n if (!newArgSets[i]) { // one of the old sets no longer exists\n if (teardownFunc) {\n teardownFunc(currentResults[i]);\n }\n }\n else if (!isArraysEqual(currentArgSets[i], newArgSets[i])) {\n if (teardownFunc) {\n teardownFunc(currentResults[i]);\n }\n let res = workerFunc.apply(this, newArgSets[i]);\n if (!resEquality || !resEquality(res, currentResults[i])) {\n currentResults[i] = res;\n }\n }\n }\n for (; i < newLen; i += 1) {\n currentResults[i] = workerFunc.apply(this, newArgSets[i]);\n }\n currentArgSets = newArgSets;\n currentResults.splice(newLen); // remove excess\n return currentResults;\n };\n}\nfunction memoizeHashlike(workerFunc, resEquality, teardownFunc) {\n let currentArgHash = {};\n let currentResHash = {};\n return (newArgHash) => {\n let newResHash = {};\n for (let key in newArgHash) {\n if (!currentResHash[key]) {\n newResHash[key] = workerFunc.apply(this, newArgHash[key]);\n }\n else if (!isArraysEqual(currentArgHash[key], newArgHash[key])) {\n if (teardownFunc) {\n teardownFunc(currentResHash[key]);\n }\n let res = workerFunc.apply(this, newArgHash[key]);\n newResHash[key] = (resEquality && resEquality(res, currentResHash[key]))\n ? currentResHash[key]\n : res;\n }\n else {\n newResHash[key] = currentResHash[key];\n }\n }\n currentArgHash = newArgHash;\n currentResHash = newResHash;\n return newResHash;\n };\n}\n\nconst EXTENDED_SETTINGS_AND_SEVERITIES = {\n week: 3,\n separator: 9,\n omitZeroMinute: 9,\n meridiem: 9,\n omitCommas: 9,\n};\nconst STANDARD_DATE_PROP_SEVERITIES = {\n timeZoneName: 7,\n era: 6,\n year: 5,\n month: 4,\n day: 2,\n weekday: 2,\n hour: 1,\n minute: 1,\n second: 1,\n};\nconst MERIDIEM_RE = /\\s*([ap])\\.?m\\.?/i; // eats up leading spaces too\nconst COMMA_RE = /,/g; // we need re for globalness\nconst MULTI_SPACE_RE = /\\s+/g;\nconst LTR_RE = /\\u200e/g; // control character\nconst UTC_RE = /UTC|GMT/;\nclass NativeFormatter {\n constructor(formatSettings) {\n let standardDateProps = {};\n let extendedSettings = {};\n let smallestUnitNum = 9; // the smallest unit in the formatter (9 is a sentinel, beyond max)\n for (let name in formatSettings) {\n if (name in EXTENDED_SETTINGS_AND_SEVERITIES) {\n extendedSettings[name] = formatSettings[name];\n const severity = EXTENDED_SETTINGS_AND_SEVERITIES[name];\n if (severity < 9) {\n smallestUnitNum = Math.min(EXTENDED_SETTINGS_AND_SEVERITIES[name], smallestUnitNum);\n }\n }\n else {\n standardDateProps[name] = formatSettings[name];\n if (name in STANDARD_DATE_PROP_SEVERITIES) { // TODO: what about hour12? no severity\n smallestUnitNum = Math.min(STANDARD_DATE_PROP_SEVERITIES[name], smallestUnitNum);\n }\n }\n }\n this.standardDateProps = standardDateProps;\n this.extendedSettings = extendedSettings;\n this.smallestUnitNum = smallestUnitNum;\n this.buildFormattingFunc = memoize(buildFormattingFunc);\n }\n format(date, context) {\n return this.buildFormattingFunc(this.standardDateProps, this.extendedSettings, context)(date);\n }\n formatRange(start, end, context, betterDefaultSeparator) {\n let { standardDateProps, extendedSettings } = this;\n let diffSeverity = computeMarkerDiffSeverity(start.marker, end.marker, context.calendarSystem);\n if (!diffSeverity) {\n return this.format(start, context);\n }\n let biggestUnitForPartial = diffSeverity;\n if (biggestUnitForPartial > 1 && // the two dates are different in a way that's larger scale than time\n (standardDateProps.year === 'numeric' || standardDateProps.year === '2-digit') &&\n (standardDateProps.month === 'numeric' || standardDateProps.month === '2-digit') &&\n (standardDateProps.day === 'numeric' || standardDateProps.day === '2-digit')) {\n biggestUnitForPartial = 1; // make it look like the dates are only different in terms of time\n }\n let full0 = this.format(start, context);\n let full1 = this.format(end, context);\n if (full0 === full1) {\n return full0;\n }\n let partialDateProps = computePartialFormattingOptions(standardDateProps, biggestUnitForPartial);\n let partialFormattingFunc = buildFormattingFunc(partialDateProps, extendedSettings, context);\n let partial0 = partialFormattingFunc(start);\n let partial1 = partialFormattingFunc(end);\n let insertion = findCommonInsertion(full0, partial0, full1, partial1);\n let separator = extendedSettings.separator || betterDefaultSeparator || context.defaultSeparator || '';\n if (insertion) {\n return insertion.before + partial0 + separator + partial1 + insertion.after;\n }\n return full0 + separator + full1;\n }\n getSmallestUnit() {\n switch (this.smallestUnitNum) {\n case 7:\n case 6:\n case 5:\n return 'year';\n case 4:\n return 'month';\n case 3:\n return 'week';\n case 2:\n return 'day';\n default:\n return 'time'; // really?\n }\n }\n}\nfunction buildFormattingFunc(standardDateProps, extendedSettings, context) {\n let standardDatePropCnt = Object.keys(standardDateProps).length;\n if (standardDatePropCnt === 1 && standardDateProps.timeZoneName === 'short') {\n return (date) => (formatTimeZoneOffset(date.timeZoneOffset));\n }\n if (standardDatePropCnt === 0 && extendedSettings.week) {\n return (date) => (formatWeekNumber(context.computeWeekNumber(date.marker), context.weekText, context.weekTextLong, context.locale, extendedSettings.week));\n }\n return buildNativeFormattingFunc(standardDateProps, extendedSettings, context);\n}\nfunction buildNativeFormattingFunc(standardDateProps, extendedSettings, context) {\n standardDateProps = Object.assign({}, standardDateProps); // copy\n extendedSettings = Object.assign({}, extendedSettings); // copy\n sanitizeSettings(standardDateProps, extendedSettings);\n standardDateProps.timeZone = 'UTC'; // we leverage the only guaranteed timeZone for our UTC markers\n let normalFormat = new Intl.DateTimeFormat(context.locale.codes, standardDateProps);\n let zeroFormat; // needed?\n if (extendedSettings.omitZeroMinute) {\n let zeroProps = Object.assign({}, standardDateProps);\n delete zeroProps.minute; // seconds and ms were already considered in sanitizeSettings\n zeroFormat = new Intl.DateTimeFormat(context.locale.codes, zeroProps);\n }\n return (date) => {\n let { marker } = date;\n let format;\n if (zeroFormat && !marker.getUTCMinutes()) {\n format = zeroFormat;\n }\n else {\n format = normalFormat;\n }\n let s = format.format(marker);\n return postProcess(s, date, standardDateProps, extendedSettings, context);\n };\n}\nfunction sanitizeSettings(standardDateProps, extendedSettings) {\n // deal with a browser inconsistency where formatting the timezone\n // requires that the hour/minute be present.\n if (standardDateProps.timeZoneName) {\n if (!standardDateProps.hour) {\n standardDateProps.hour = '2-digit';\n }\n if (!standardDateProps.minute) {\n standardDateProps.minute = '2-digit';\n }\n }\n // only support short timezone names\n if (standardDateProps.timeZoneName === 'long') {\n standardDateProps.timeZoneName = 'short';\n }\n // if requesting to display seconds, MUST display minutes\n if (extendedSettings.omitZeroMinute && (standardDateProps.second || standardDateProps.millisecond)) {\n delete extendedSettings.omitZeroMinute;\n }\n}\nfunction postProcess(s, date, standardDateProps, extendedSettings, context) {\n s = s.replace(LTR_RE, ''); // remove left-to-right control chars. do first. good for other regexes\n if (standardDateProps.timeZoneName === 'short') {\n s = injectTzoStr(s, (context.timeZone === 'UTC' || date.timeZoneOffset == null) ?\n 'UTC' : // important to normalize for IE, which does \"GMT\"\n formatTimeZoneOffset(date.timeZoneOffset));\n }\n if (extendedSettings.omitCommas) {\n s = s.replace(COMMA_RE, '').trim();\n }\n if (extendedSettings.omitZeroMinute) {\n s = s.replace(':00', ''); // zeroFormat doesn't always achieve this\n }\n // ^ do anything that might create adjacent spaces before this point,\n // because MERIDIEM_RE likes to eat up loading spaces\n if (extendedSettings.meridiem === false) {\n s = s.replace(MERIDIEM_RE, '').trim();\n }\n else if (extendedSettings.meridiem === 'narrow') { // a/p\n s = s.replace(MERIDIEM_RE, (m0, m1) => m1.toLocaleLowerCase());\n }\n else if (extendedSettings.meridiem === 'short') { // am/pm\n s = s.replace(MERIDIEM_RE, (m0, m1) => `${m1.toLocaleLowerCase()}m`);\n }\n else if (extendedSettings.meridiem === 'lowercase') { // other meridiem transformers already converted to lowercase\n s = s.replace(MERIDIEM_RE, (m0) => m0.toLocaleLowerCase());\n }\n s = s.replace(MULTI_SPACE_RE, ' ');\n s = s.trim();\n return s;\n}\nfunction injectTzoStr(s, tzoStr) {\n let replaced = false;\n s = s.replace(UTC_RE, () => {\n replaced = true;\n return tzoStr;\n });\n // IE11 doesn't include UTC/GMT in the original string, so append to end\n if (!replaced) {\n s += ` ${tzoStr}`;\n }\n return s;\n}\nfunction formatWeekNumber(num, weekText, weekTextLong, locale, display) {\n let parts = [];\n if (display === 'long') {\n parts.push(weekTextLong);\n }\n else if (display === 'short' || display === 'narrow') {\n parts.push(weekText);\n }\n if (display === 'long' || display === 'short') {\n parts.push(' ');\n }\n parts.push(locale.simpleNumberFormat.format(num));\n if (locale.options.direction === 'rtl') { // TODO: use control characters instead?\n parts.reverse();\n }\n return parts.join('');\n}\n// Range Formatting Utils\n// 0 = exactly the same\n// 1 = different by time\n// and bigger\nfunction computeMarkerDiffSeverity(d0, d1, ca) {\n if (ca.getMarkerYear(d0) !== ca.getMarkerYear(d1)) {\n return 5;\n }\n if (ca.getMarkerMonth(d0) !== ca.getMarkerMonth(d1)) {\n return 4;\n }\n if (ca.getMarkerDay(d0) !== ca.getMarkerDay(d1)) {\n return 2;\n }\n if (timeAsMs(d0) !== timeAsMs(d1)) {\n return 1;\n }\n return 0;\n}\nfunction computePartialFormattingOptions(options, biggestUnit) {\n let partialOptions = {};\n for (let name in options) {\n if (!(name in STANDARD_DATE_PROP_SEVERITIES) || // not a date part prop (like timeZone)\n STANDARD_DATE_PROP_SEVERITIES[name] <= biggestUnit) {\n partialOptions[name] = options[name];\n }\n }\n return partialOptions;\n}\nfunction findCommonInsertion(full0, partial0, full1, partial1) {\n let i0 = 0;\n while (i0 < full0.length) {\n let found0 = full0.indexOf(partial0, i0);\n if (found0 === -1) {\n break;\n }\n let before0 = full0.substr(0, found0);\n i0 = found0 + partial0.length;\n let after0 = full0.substr(i0);\n let i1 = 0;\n while (i1 < full1.length) {\n let found1 = full1.indexOf(partial1, i1);\n if (found1 === -1) {\n break;\n }\n let before1 = full1.substr(0, found1);\n i1 = found1 + partial1.length;\n let after1 = full1.substr(i1);\n if (before0 === before1 && after0 === after1) {\n return {\n before: before0,\n after: after0,\n };\n }\n }\n }\n return null;\n}\n\nfunction expandZonedMarker(dateInfo, calendarSystem) {\n let a = calendarSystem.markerToArray(dateInfo.marker);\n return {\n marker: dateInfo.marker,\n timeZoneOffset: dateInfo.timeZoneOffset,\n array: a,\n year: a[0],\n month: a[1],\n day: a[2],\n hour: a[3],\n minute: a[4],\n second: a[5],\n millisecond: a[6],\n };\n}\n\nfunction createVerboseFormattingArg(start, end, context, betterDefaultSeparator) {\n let startInfo = expandZonedMarker(start, context.calendarSystem);\n let endInfo = end ? expandZonedMarker(end, context.calendarSystem) : null;\n return {\n date: startInfo,\n start: startInfo,\n end: endInfo,\n timeZone: context.timeZone,\n localeCodes: context.locale.codes,\n defaultSeparator: betterDefaultSeparator || context.defaultSeparator,\n };\n}\n\n/*\nTODO: fix the terminology of \"formatter\" vs \"formatting func\"\n*/\n/*\nAt the time of instantiation, this object does not know which cmd-formatting system it will use.\nIt receives this at the time of formatting, as a setting.\n*/\nclass CmdFormatter {\n constructor(cmdStr) {\n this.cmdStr = cmdStr;\n }\n format(date, context, betterDefaultSeparator) {\n return context.cmdFormatter(this.cmdStr, createVerboseFormattingArg(date, null, context, betterDefaultSeparator));\n }\n formatRange(start, end, context, betterDefaultSeparator) {\n return context.cmdFormatter(this.cmdStr, createVerboseFormattingArg(start, end, context, betterDefaultSeparator));\n }\n}\n\nclass FuncFormatter {\n constructor(func) {\n this.func = func;\n }\n format(date, context, betterDefaultSeparator) {\n return this.func(createVerboseFormattingArg(date, null, context, betterDefaultSeparator));\n }\n formatRange(start, end, context, betterDefaultSeparator) {\n return this.func(createVerboseFormattingArg(start, end, context, betterDefaultSeparator));\n }\n}\n\nfunction createFormatter(input) {\n if (typeof input === 'object' && input) { // non-null object\n return new NativeFormatter(input);\n }\n if (typeof input === 'string') {\n return new CmdFormatter(input);\n }\n if (typeof input === 'function') {\n return new FuncFormatter(input);\n }\n return null;\n}\n\n// base options\n// ------------\nconst BASE_OPTION_REFINERS = {\n navLinkDayClick: identity,\n navLinkWeekClick: identity,\n duration: createDuration,\n bootstrapFontAwesome: identity,\n buttonIcons: identity,\n customButtons: identity,\n defaultAllDayEventDuration: createDuration,\n defaultTimedEventDuration: createDuration,\n nextDayThreshold: createDuration,\n scrollTime: createDuration,\n scrollTimeReset: Boolean,\n slotMinTime: createDuration,\n slotMaxTime: createDuration,\n dayPopoverFormat: createFormatter,\n slotDuration: createDuration,\n snapDuration: createDuration,\n headerToolbar: identity,\n footerToolbar: identity,\n defaultRangeSeparator: String,\n titleRangeSeparator: String,\n forceEventDuration: Boolean,\n dayHeaders: Boolean,\n dayHeaderFormat: createFormatter,\n dayHeaderClassNames: identity,\n dayHeaderContent: identity,\n dayHeaderDidMount: identity,\n dayHeaderWillUnmount: identity,\n dayCellClassNames: identity,\n dayCellContent: identity,\n dayCellDidMount: identity,\n dayCellWillUnmount: identity,\n initialView: String,\n aspectRatio: Number,\n weekends: Boolean,\n weekNumberCalculation: identity,\n weekNumbers: Boolean,\n weekNumberClassNames: identity,\n weekNumberContent: identity,\n weekNumberDidMount: identity,\n weekNumberWillUnmount: identity,\n editable: Boolean,\n viewClassNames: identity,\n viewDidMount: identity,\n viewWillUnmount: identity,\n nowIndicator: Boolean,\n nowIndicatorSnap: identity,\n nowIndicatorClassNames: identity,\n nowIndicatorContent: identity,\n nowIndicatorDidMount: identity,\n nowIndicatorWillUnmount: identity,\n showNonCurrentDates: Boolean,\n lazyFetching: Boolean,\n startParam: String,\n endParam: String,\n timeZoneParam: String,\n timeZone: String,\n locales: identity,\n locale: identity,\n themeSystem: String,\n dragRevertDuration: Number,\n dragScroll: Boolean,\n allDayMaintainDuration: Boolean,\n unselectAuto: Boolean,\n dropAccept: identity,\n eventOrder: parseFieldSpecs,\n eventOrderStrict: Boolean,\n handleWindowResize: Boolean,\n windowResizeDelay: Number,\n longPressDelay: Number,\n eventDragMinDistance: Number,\n expandRows: Boolean,\n height: identity,\n contentHeight: identity,\n direction: String,\n weekNumberFormat: createFormatter,\n eventResizableFromStart: Boolean,\n displayEventTime: Boolean,\n displayEventEnd: Boolean,\n weekText: String,\n weekTextLong: String,\n progressiveEventRendering: Boolean,\n businessHours: identity,\n initialDate: identity,\n now: identity,\n eventDataTransform: identity,\n stickyHeaderDates: identity,\n stickyFooterScrollbar: identity,\n viewHeight: identity,\n defaultAllDay: Boolean,\n eventSourceFailure: identity,\n eventSourceSuccess: identity,\n eventDisplay: String,\n eventStartEditable: Boolean,\n eventDurationEditable: Boolean,\n eventOverlap: identity,\n eventConstraint: identity,\n eventAllow: identity,\n eventBackgroundColor: String,\n eventBorderColor: String,\n eventTextColor: String,\n eventColor: String,\n eventClassNames: identity,\n eventContent: identity,\n eventDidMount: identity,\n eventWillUnmount: identity,\n selectConstraint: identity,\n selectOverlap: identity,\n selectAllow: identity,\n droppable: Boolean,\n unselectCancel: String,\n slotLabelFormat: identity,\n slotLaneClassNames: identity,\n slotLaneContent: identity,\n slotLaneDidMount: identity,\n slotLaneWillUnmount: identity,\n slotLabelClassNames: identity,\n slotLabelContent: identity,\n slotLabelDidMount: identity,\n slotLabelWillUnmount: identity,\n dayMaxEvents: identity,\n dayMaxEventRows: identity,\n dayMinWidth: Number,\n slotLabelInterval: createDuration,\n allDayText: String,\n allDayClassNames: identity,\n allDayContent: identity,\n allDayDidMount: identity,\n allDayWillUnmount: identity,\n slotMinWidth: Number,\n navLinks: Boolean,\n eventTimeFormat: createFormatter,\n rerenderDelay: Number,\n moreLinkText: identity,\n moreLinkHint: identity,\n selectMinDistance: Number,\n selectable: Boolean,\n selectLongPressDelay: Number,\n eventLongPressDelay: Number,\n selectMirror: Boolean,\n eventMaxStack: Number,\n eventMinHeight: Number,\n eventMinWidth: Number,\n eventShortHeight: Number,\n slotEventOverlap: Boolean,\n plugins: identity,\n firstDay: Number,\n dayCount: Number,\n dateAlignment: String,\n dateIncrement: createDuration,\n hiddenDays: identity,\n fixedWeekCount: Boolean,\n validRange: identity,\n visibleRange: identity,\n titleFormat: identity,\n eventInteractive: Boolean,\n // only used by list-view, but languages define the value, so we need it in base options\n noEventsText: String,\n viewHint: identity,\n navLinkHint: identity,\n closeHint: String,\n timeHint: String,\n eventHint: String,\n moreLinkClick: identity,\n moreLinkClassNames: identity,\n moreLinkContent: identity,\n moreLinkDidMount: identity,\n moreLinkWillUnmount: identity,\n monthStartFormat: createFormatter,\n // for connectors\n // (can't be part of plugin system b/c must be provided at runtime)\n handleCustomRendering: identity,\n customRenderingMetaMap: identity,\n customRenderingReplaces: Boolean,\n};\n// do NOT give a type here. need `typeof BASE_OPTION_DEFAULTS` to give real results.\n// raw values.\nconst BASE_OPTION_DEFAULTS = {\n eventDisplay: 'auto',\n defaultRangeSeparator: ' - ',\n titleRangeSeparator: ' \\u2013 ',\n defaultTimedEventDuration: '01:00:00',\n defaultAllDayEventDuration: { day: 1 },\n forceEventDuration: false,\n nextDayThreshold: '00:00:00',\n dayHeaders: true,\n initialView: '',\n aspectRatio: 1.35,\n headerToolbar: {\n start: 'title',\n center: '',\n end: 'today prev,next',\n },\n weekends: true,\n weekNumbers: false,\n weekNumberCalculation: 'local',\n editable: false,\n nowIndicator: false,\n scrollTime: '06:00:00',\n scrollTimeReset: true,\n slotMinTime: '00:00:00',\n slotMaxTime: '24:00:00',\n showNonCurrentDates: true,\n lazyFetching: true,\n startParam: 'start',\n endParam: 'end',\n timeZoneParam: 'timeZone',\n timeZone: 'local',\n locales: [],\n locale: '',\n themeSystem: 'standard',\n dragRevertDuration: 500,\n dragScroll: true,\n allDayMaintainDuration: false,\n unselectAuto: true,\n dropAccept: '*',\n eventOrder: 'start,-duration,allDay,title',\n dayPopoverFormat: { month: 'long', day: 'numeric', year: 'numeric' },\n handleWindowResize: true,\n windowResizeDelay: 100,\n longPressDelay: 1000,\n eventDragMinDistance: 5,\n expandRows: false,\n navLinks: false,\n selectable: false,\n eventMinHeight: 15,\n eventMinWidth: 30,\n eventShortHeight: 30,\n monthStartFormat: { month: 'long', day: 'numeric' },\n nowIndicatorSnap: 'auto',\n};\n// calendar listeners\n// ------------------\nconst CALENDAR_LISTENER_REFINERS = {\n datesSet: identity,\n eventsSet: identity,\n eventAdd: identity,\n eventChange: identity,\n eventRemove: identity,\n windowResize: identity,\n eventClick: identity,\n eventMouseEnter: identity,\n eventMouseLeave: identity,\n select: identity,\n unselect: identity,\n loading: identity,\n // internal\n _unmount: identity,\n _beforeprint: identity,\n _afterprint: identity,\n _noEventDrop: identity,\n _noEventResize: identity,\n _resize: identity,\n _scrollRequest: identity,\n};\n// calendar-specific options\n// -------------------------\nconst CALENDAR_OPTION_REFINERS = {\n buttonText: identity,\n buttonHints: identity,\n views: identity,\n plugins: identity,\n initialEvents: identity,\n events: identity,\n eventSources: identity,\n};\nconst COMPLEX_OPTION_COMPARATORS = {\n headerToolbar: isMaybeObjectsEqual,\n footerToolbar: isMaybeObjectsEqual,\n buttonText: isMaybeObjectsEqual,\n buttonHints: isMaybeObjectsEqual,\n buttonIcons: isMaybeObjectsEqual,\n dateIncrement: isMaybeObjectsEqual,\n plugins: isMaybeArraysEqual,\n events: isMaybeArraysEqual,\n eventSources: isMaybeArraysEqual,\n ['resources']: isMaybeArraysEqual,\n};\nfunction isMaybeObjectsEqual(a, b) {\n if (typeof a === 'object' && typeof b === 'object' && a && b) { // both non-null objects\n return isPropsEqual(a, b);\n }\n return a === b;\n}\nfunction isMaybeArraysEqual(a, b) {\n if (Array.isArray(a) && Array.isArray(b)) {\n return isArraysEqual(a, b);\n }\n return a === b;\n}\n// view-specific options\n// ---------------------\nconst VIEW_OPTION_REFINERS = {\n type: String,\n component: identity,\n buttonText: String,\n buttonTextKey: String,\n dateProfileGeneratorClass: identity,\n usesMinMaxTime: Boolean,\n classNames: identity,\n content: identity,\n didMount: identity,\n willUnmount: identity,\n};\n// util funcs\n// ----------------------------------------------------------------------------------------------------\nfunction mergeRawOptions(optionSets) {\n return mergeProps(optionSets, COMPLEX_OPTION_COMPARATORS);\n}\nfunction refineProps(input, refiners) {\n let refined = {};\n let extra = {};\n for (let propName in refiners) {\n if (propName in input) {\n refined[propName] = refiners[propName](input[propName]);\n }\n }\n for (let propName in input) {\n if (!(propName in refiners)) {\n extra[propName] = input[propName];\n }\n }\n return { refined, extra };\n}\nfunction identity(raw) {\n return raw;\n}\n\nconst { hasOwnProperty } = Object.prototype;\n// Merges an array of objects into a single object.\n// The second argument allows for an array of property names who's object values will be merged together.\nfunction mergeProps(propObjs, complexPropsMap) {\n let dest = {};\n if (complexPropsMap) {\n for (let name in complexPropsMap) {\n if (complexPropsMap[name] === isMaybeObjectsEqual) { // implies that it's object-mergeable\n let complexObjs = [];\n // collect the trailing object values, stopping when a non-object is discovered\n for (let i = propObjs.length - 1; i >= 0; i -= 1) {\n let val = propObjs[i][name];\n if (typeof val === 'object' && val) { // non-null object\n complexObjs.unshift(val);\n }\n else if (val !== undefined) {\n dest[name] = val; // if there were no objects, this value will be used\n break;\n }\n }\n // if the trailing values were objects, use the merged value\n if (complexObjs.length) {\n dest[name] = mergeProps(complexObjs);\n }\n }\n }\n }\n // copy values into the destination, going from last to first\n for (let i = propObjs.length - 1; i >= 0; i -= 1) {\n let props = propObjs[i];\n for (let name in props) {\n if (!(name in dest)) { // if already assigned by previous props or complex props, don't reassign\n dest[name] = props[name];\n }\n }\n }\n return dest;\n}\nfunction filterHash(hash, func) {\n let filtered = {};\n for (let key in hash) {\n if (func(hash[key], key)) {\n filtered[key] = hash[key];\n }\n }\n return filtered;\n}\nfunction mapHash(hash, func) {\n let newHash = {};\n for (let key in hash) {\n newHash[key] = func(hash[key], key);\n }\n return newHash;\n}\nfunction arrayToHash(a) {\n let hash = {};\n for (let item of a) {\n hash[item] = true;\n }\n return hash;\n}\n// TODO: reassess browser support\n// https://caniuse.com/?search=object.values\nfunction hashValuesToArray(obj) {\n let a = [];\n for (let key in obj) {\n a.push(obj[key]);\n }\n return a;\n}\nfunction isPropsEqual(obj0, obj1) {\n if (obj0 === obj1) {\n return true;\n }\n for (let key in obj0) {\n if (hasOwnProperty.call(obj0, key)) {\n if (!(key in obj1)) {\n return false;\n }\n }\n }\n for (let key in obj1) {\n if (hasOwnProperty.call(obj1, key)) {\n if (obj0[key] !== obj1[key]) {\n return false;\n }\n }\n }\n return true;\n}\nconst HANDLER_RE = /^on[A-Z]/;\nfunction isNonHandlerPropsEqual(obj0, obj1) {\n const keys = getUnequalProps(obj0, obj1);\n for (let key of keys) {\n if (!HANDLER_RE.test(key)) {\n return false;\n }\n }\n return true;\n}\nfunction getUnequalProps(obj0, obj1) {\n let keys = [];\n for (let key in obj0) {\n if (hasOwnProperty.call(obj0, key)) {\n if (!(key in obj1)) {\n keys.push(key);\n }\n }\n }\n for (let key in obj1) {\n if (hasOwnProperty.call(obj1, key)) {\n if (obj0[key] !== obj1[key]) {\n keys.push(key);\n }\n }\n }\n return keys;\n}\nfunction compareObjs(oldProps, newProps, equalityFuncs = {}) {\n if (oldProps === newProps) {\n return true;\n }\n // if (debug) {\n // for (let key in newProps) {\n // if (key in oldProps && isObjValsEqual(oldProps[key], newProps[key], equalityFuncs[key])) {\n // // equal\n // } else {\n // if (debug) {\n // console.log('prop difference', key, oldProps[key], newProps[key])\n // }\n // }\n // }\n // // check for props that were omitted in the new\n // for (let key in oldProps) {\n // if (!(key in newProps)) {\n // if (debug) {\n // console.log('prop absent', key)\n // }\n // }\n // }\n // }\n for (let key in newProps) {\n if (key in oldProps && isObjValsEqual(oldProps[key], newProps[key], equalityFuncs[key])) ;\n else {\n return false;\n }\n }\n // check for props that were omitted in the new\n for (let key in oldProps) {\n if (!(key in newProps)) {\n return false;\n }\n }\n return true;\n}\n/*\nassumed \"true\" equality for handler names like \"onReceiveSomething\"\n*/\nfunction isObjValsEqual(val0, val1, comparator) {\n if (val0 === val1 || comparator === true) {\n return true;\n }\n if (comparator) {\n return comparator(val0, val1);\n }\n return false;\n}\nfunction collectFromHash(hash, startIndex = 0, endIndex, step = 1) {\n let res = [];\n if (endIndex == null) {\n endIndex = Object.keys(hash).length;\n }\n for (let i = startIndex; i < endIndex; i += step) {\n let val = hash[i];\n if (val !== undefined) { // will disregard undefined for sparse arrays\n res.push(val);\n }\n }\n return res;\n}\n\nlet calendarSystemClassMap = {};\nfunction registerCalendarSystem(name, theClass) {\n calendarSystemClassMap[name] = theClass;\n}\nfunction createCalendarSystem(name) {\n return new calendarSystemClassMap[name]();\n}\nclass GregorianCalendarSystem {\n getMarkerYear(d) {\n return d.getUTCFullYear();\n }\n getMarkerMonth(d) {\n return d.getUTCMonth();\n }\n getMarkerDay(d) {\n return d.getUTCDate();\n }\n arrayToMarker(arr) {\n return arrayToUtcDate(arr);\n }\n markerToArray(marker) {\n return dateToUtcArray(marker);\n }\n}\nregisterCalendarSystem('gregory', GregorianCalendarSystem);\n\nconst ISO_RE = /^\\s*(\\d{4})(-?(\\d{2})(-?(\\d{2})([T ](\\d{2}):?(\\d{2})(:?(\\d{2})(\\.(\\d+))?)?(Z|(([-+])(\\d{2})(:?(\\d{2}))?))?)?)?)?$/;\nfunction parse(str) {\n let m = ISO_RE.exec(str);\n if (m) {\n let marker = new Date(Date.UTC(Number(m[1]), m[3] ? Number(m[3]) - 1 : 0, Number(m[5] || 1), Number(m[7] || 0), Number(m[8] || 0), Number(m[10] || 0), m[12] ? Number(`0.${m[12]}`) * 1000 : 0));\n if (isValidDate(marker)) {\n let timeZoneOffset = null;\n if (m[13]) {\n timeZoneOffset = (m[15] === '-' ? -1 : 1) * (Number(m[16] || 0) * 60 +\n Number(m[18] || 0));\n }\n return {\n marker,\n isTimeUnspecified: !m[6],\n timeZoneOffset,\n };\n }\n }\n return null;\n}\n\nclass DateEnv {\n constructor(settings) {\n let timeZone = this.timeZone = settings.timeZone;\n let isNamedTimeZone = timeZone !== 'local' && timeZone !== 'UTC';\n if (settings.namedTimeZoneImpl && isNamedTimeZone) {\n this.namedTimeZoneImpl = new settings.namedTimeZoneImpl(timeZone);\n }\n this.canComputeOffset = Boolean(!isNamedTimeZone || this.namedTimeZoneImpl);\n this.calendarSystem = createCalendarSystem(settings.calendarSystem);\n this.locale = settings.locale;\n this.weekDow = settings.locale.week.dow;\n this.weekDoy = settings.locale.week.doy;\n if (settings.weekNumberCalculation === 'ISO') {\n this.weekDow = 1;\n this.weekDoy = 4;\n }\n if (typeof settings.firstDay === 'number') {\n this.weekDow = settings.firstDay;\n }\n if (typeof settings.weekNumberCalculation === 'function') {\n this.weekNumberFunc = settings.weekNumberCalculation;\n }\n this.weekText = settings.weekText != null ? settings.weekText : settings.locale.options.weekText;\n this.weekTextLong = (settings.weekTextLong != null ? settings.weekTextLong : settings.locale.options.weekTextLong) || this.weekText;\n this.cmdFormatter = settings.cmdFormatter;\n this.defaultSeparator = settings.defaultSeparator;\n }\n // Creating / Parsing\n createMarker(input) {\n let meta = this.createMarkerMeta(input);\n if (meta === null) {\n return null;\n }\n return meta.marker;\n }\n createNowMarker() {\n if (this.canComputeOffset) {\n return this.timestampToMarker(new Date().valueOf());\n }\n // if we can't compute the current date val for a timezone,\n // better to give the current local date vals than UTC\n return arrayToUtcDate(dateToLocalArray(new Date()));\n }\n createMarkerMeta(input) {\n if (typeof input === 'string') {\n return this.parse(input);\n }\n let marker = null;\n if (typeof input === 'number') {\n marker = this.timestampToMarker(input);\n }\n else if (input instanceof Date) {\n input = input.valueOf();\n if (!isNaN(input)) {\n marker = this.timestampToMarker(input);\n }\n }\n else if (Array.isArray(input)) {\n marker = arrayToUtcDate(input);\n }\n if (marker === null || !isValidDate(marker)) {\n return null;\n }\n return { marker, isTimeUnspecified: false, forcedTzo: null };\n }\n parse(s) {\n let parts = parse(s);\n if (parts === null) {\n return null;\n }\n let { marker } = parts;\n let forcedTzo = null;\n if (parts.timeZoneOffset !== null) {\n if (this.canComputeOffset) {\n marker = this.timestampToMarker(marker.valueOf() - parts.timeZoneOffset * 60 * 1000);\n }\n else {\n forcedTzo = parts.timeZoneOffset;\n }\n }\n return { marker, isTimeUnspecified: parts.isTimeUnspecified, forcedTzo };\n }\n // Accessors\n getYear(marker) {\n return this.calendarSystem.getMarkerYear(marker);\n }\n getMonth(marker) {\n return this.calendarSystem.getMarkerMonth(marker);\n }\n getDay(marker) {\n return this.calendarSystem.getMarkerDay(marker);\n }\n // Adding / Subtracting\n add(marker, dur) {\n let a = this.calendarSystem.markerToArray(marker);\n a[0] += dur.years;\n a[1] += dur.months;\n a[2] += dur.days;\n a[6] += dur.milliseconds;\n return this.calendarSystem.arrayToMarker(a);\n }\n subtract(marker, dur) {\n let a = this.calendarSystem.markerToArray(marker);\n a[0] -= dur.years;\n a[1] -= dur.months;\n a[2] -= dur.days;\n a[6] -= dur.milliseconds;\n return this.calendarSystem.arrayToMarker(a);\n }\n addYears(marker, n) {\n let a = this.calendarSystem.markerToArray(marker);\n a[0] += n;\n return this.calendarSystem.arrayToMarker(a);\n }\n addMonths(marker, n) {\n let a = this.calendarSystem.markerToArray(marker);\n a[1] += n;\n return this.calendarSystem.arrayToMarker(a);\n }\n // Diffing Whole Units\n diffWholeYears(m0, m1) {\n let { calendarSystem } = this;\n if (timeAsMs(m0) === timeAsMs(m1) &&\n calendarSystem.getMarkerDay(m0) === calendarSystem.getMarkerDay(m1) &&\n calendarSystem.getMarkerMonth(m0) === calendarSystem.getMarkerMonth(m1)) {\n return calendarSystem.getMarkerYear(m1) - calendarSystem.getMarkerYear(m0);\n }\n return null;\n }\n diffWholeMonths(m0, m1) {\n let { calendarSystem } = this;\n if (timeAsMs(m0) === timeAsMs(m1) &&\n calendarSystem.getMarkerDay(m0) === calendarSystem.getMarkerDay(m1)) {\n return (calendarSystem.getMarkerMonth(m1) - calendarSystem.getMarkerMonth(m0)) +\n (calendarSystem.getMarkerYear(m1) - calendarSystem.getMarkerYear(m0)) * 12;\n }\n return null;\n }\n // Range / Duration\n greatestWholeUnit(m0, m1) {\n let n = this.diffWholeYears(m0, m1);\n if (n !== null) {\n return { unit: 'year', value: n };\n }\n n = this.diffWholeMonths(m0, m1);\n if (n !== null) {\n return { unit: 'month', value: n };\n }\n n = diffWholeWeeks(m0, m1);\n if (n !== null) {\n return { unit: 'week', value: n };\n }\n n = diffWholeDays(m0, m1);\n if (n !== null) {\n return { unit: 'day', value: n };\n }\n n = diffHours(m0, m1);\n if (isInt(n)) {\n return { unit: 'hour', value: n };\n }\n n = diffMinutes(m0, m1);\n if (isInt(n)) {\n return { unit: 'minute', value: n };\n }\n n = diffSeconds(m0, m1);\n if (isInt(n)) {\n return { unit: 'second', value: n };\n }\n return { unit: 'millisecond', value: m1.valueOf() - m0.valueOf() };\n }\n countDurationsBetween(m0, m1, d) {\n // TODO: can use greatestWholeUnit\n let diff;\n if (d.years) {\n diff = this.diffWholeYears(m0, m1);\n if (diff !== null) {\n return diff / asRoughYears(d);\n }\n }\n if (d.months) {\n diff = this.diffWholeMonths(m0, m1);\n if (diff !== null) {\n return diff / asRoughMonths(d);\n }\n }\n if (d.days) {\n diff = diffWholeDays(m0, m1);\n if (diff !== null) {\n return diff / asRoughDays(d);\n }\n }\n return (m1.valueOf() - m0.valueOf()) / asRoughMs(d);\n }\n // Start-Of\n // these DON'T return zoned-dates. only UTC start-of dates\n startOf(m, unit) {\n if (unit === 'year') {\n return this.startOfYear(m);\n }\n if (unit === 'month') {\n return this.startOfMonth(m);\n }\n if (unit === 'week') {\n return this.startOfWeek(m);\n }\n if (unit === 'day') {\n return startOfDay(m);\n }\n if (unit === 'hour') {\n return startOfHour(m);\n }\n if (unit === 'minute') {\n return startOfMinute(m);\n }\n if (unit === 'second') {\n return startOfSecond(m);\n }\n return null;\n }\n startOfYear(m) {\n return this.calendarSystem.arrayToMarker([\n this.calendarSystem.getMarkerYear(m),\n ]);\n }\n startOfMonth(m) {\n return this.calendarSystem.arrayToMarker([\n this.calendarSystem.getMarkerYear(m),\n this.calendarSystem.getMarkerMonth(m),\n ]);\n }\n startOfWeek(m) {\n return this.calendarSystem.arrayToMarker([\n this.calendarSystem.getMarkerYear(m),\n this.calendarSystem.getMarkerMonth(m),\n m.getUTCDate() - ((m.getUTCDay() - this.weekDow + 7) % 7),\n ]);\n }\n // Week Number\n computeWeekNumber(marker) {\n if (this.weekNumberFunc) {\n return this.weekNumberFunc(this.toDate(marker));\n }\n return weekOfYear(marker, this.weekDow, this.weekDoy);\n }\n // TODO: choke on timeZoneName: long\n format(marker, formatter, dateOptions = {}) {\n return formatter.format({\n marker,\n timeZoneOffset: dateOptions.forcedTzo != null ?\n dateOptions.forcedTzo :\n this.offsetForMarker(marker),\n }, this);\n }\n formatRange(start, end, formatter, dateOptions = {}) {\n if (dateOptions.isEndExclusive) {\n end = addMs(end, -1);\n }\n return formatter.formatRange({\n marker: start,\n timeZoneOffset: dateOptions.forcedStartTzo != null ?\n dateOptions.forcedStartTzo :\n this.offsetForMarker(start),\n }, {\n marker: end,\n timeZoneOffset: dateOptions.forcedEndTzo != null ?\n dateOptions.forcedEndTzo :\n this.offsetForMarker(end),\n }, this, dateOptions.defaultSeparator);\n }\n /*\n DUMB: the omitTime arg is dumb. if we omit the time, we want to omit the timezone offset. and if we do that,\n might as well use buildIsoString or some other util directly\n */\n formatIso(marker, extraOptions = {}) {\n let timeZoneOffset = null;\n if (!extraOptions.omitTimeZoneOffset) {\n if (extraOptions.forcedTzo != null) {\n timeZoneOffset = extraOptions.forcedTzo;\n }\n else {\n timeZoneOffset = this.offsetForMarker(marker);\n }\n }\n return buildIsoString(marker, timeZoneOffset, extraOptions.omitTime);\n }\n // TimeZone\n timestampToMarker(ms) {\n if (this.timeZone === 'local') {\n return arrayToUtcDate(dateToLocalArray(new Date(ms)));\n }\n if (this.timeZone === 'UTC' || !this.namedTimeZoneImpl) {\n return new Date(ms);\n }\n return arrayToUtcDate(this.namedTimeZoneImpl.timestampToArray(ms));\n }\n offsetForMarker(m) {\n if (this.timeZone === 'local') {\n return -arrayToLocalDate(dateToUtcArray(m)).getTimezoneOffset(); // convert \"inverse\" offset to \"normal\" offset\n }\n if (this.timeZone === 'UTC') {\n return 0;\n }\n if (this.namedTimeZoneImpl) {\n return this.namedTimeZoneImpl.offsetForArray(dateToUtcArray(m));\n }\n return null;\n }\n // Conversion\n toDate(m, forcedTzo) {\n if (this.timeZone === 'local') {\n return arrayToLocalDate(dateToUtcArray(m));\n }\n if (this.timeZone === 'UTC') {\n return new Date(m.valueOf()); // make sure it's a copy\n }\n if (!this.namedTimeZoneImpl) {\n return new Date(m.valueOf() - (forcedTzo || 0));\n }\n return new Date(m.valueOf() -\n this.namedTimeZoneImpl.offsetForArray(dateToUtcArray(m)) * 1000 * 60);\n }\n}\n\nclass Theme {\n constructor(calendarOptions) {\n if (this.iconOverrideOption) {\n this.setIconOverride(calendarOptions[this.iconOverrideOption]);\n }\n }\n setIconOverride(iconOverrideHash) {\n let iconClassesCopy;\n let buttonName;\n if (typeof iconOverrideHash === 'object' && iconOverrideHash) { // non-null object\n iconClassesCopy = Object.assign({}, this.iconClasses);\n for (buttonName in iconOverrideHash) {\n iconClassesCopy[buttonName] = this.applyIconOverridePrefix(iconOverrideHash[buttonName]);\n }\n this.iconClasses = iconClassesCopy;\n }\n else if (iconOverrideHash === false) {\n this.iconClasses = {};\n }\n }\n applyIconOverridePrefix(className) {\n let prefix = this.iconOverridePrefix;\n if (prefix && className.indexOf(prefix) !== 0) { // if not already present\n className = prefix + className;\n }\n return className;\n }\n getClass(key) {\n return this.classes[key] || '';\n }\n getIconClass(buttonName, isRtl) {\n let className;\n if (isRtl && this.rtlIconClasses) {\n className = this.rtlIconClasses[buttonName] || this.iconClasses[buttonName];\n }\n else {\n className = this.iconClasses[buttonName];\n }\n if (className) {\n return `${this.baseIconClass} ${className}`;\n }\n return '';\n }\n getCustomButtonIconClass(customButtonProps) {\n let className;\n if (this.iconOverrideCustomButtonOption) {\n className = customButtonProps[this.iconOverrideCustomButtonOption];\n if (className) {\n return `${this.baseIconClass} ${this.applyIconOverridePrefix(className)}`;\n }\n }\n return '';\n }\n}\nTheme.prototype.classes = {};\nTheme.prototype.iconClasses = {};\nTheme.prototype.baseIconClass = '';\nTheme.prototype.iconOverridePrefix = '';\n\n/*\nNOTE: this can be a public API, especially createElement for hooks.\nSee examples/typescript-scheduler/src/index.ts\n*/\nfunction flushSync(runBeforeFlush) {\n runBeforeFlush();\n let oldDebounceRendering = preact.options.debounceRendering; // orig\n let callbackQ = [];\n function execCallbackSync(callback) {\n callbackQ.push(callback);\n }\n preact.options.debounceRendering = execCallbackSync;\n preact.render(preact.createElement(FakeComponent, {}), document.createElement('div'));\n while (callbackQ.length) {\n callbackQ.shift()();\n }\n preact.options.debounceRendering = oldDebounceRendering;\n}\nclass FakeComponent extends preact.Component {\n render() { return preact.createElement('div', {}); }\n componentDidMount() { this.setState({}); }\n}\n// TODO: use preact/compat instead?\nfunction createContext(defaultValue) {\n let ContextType = preact.createContext(defaultValue);\n let origProvider = ContextType.Provider;\n ContextType.Provider = function () {\n let isNew = !this.getChildContext;\n let children = origProvider.apply(this, arguments); // eslint-disable-line prefer-rest-params\n if (isNew) {\n let subs = [];\n this.shouldComponentUpdate = (_props) => {\n if (this.props.value !== _props.value) {\n subs.forEach((c) => {\n c.context = _props.value;\n c.forceUpdate();\n });\n }\n };\n this.sub = (c) => {\n subs.push(c);\n let old = c.componentWillUnmount;\n c.componentWillUnmount = () => {\n subs.splice(subs.indexOf(c), 1);\n old && old.call(c);\n };\n };\n }\n return children;\n };\n return ContextType;\n}\n\nclass ScrollResponder {\n constructor(execFunc, emitter, scrollTime, scrollTimeReset) {\n this.execFunc = execFunc;\n this.emitter = emitter;\n this.scrollTime = scrollTime;\n this.scrollTimeReset = scrollTimeReset;\n this.handleScrollRequest = (request) => {\n this.queuedRequest = Object.assign({}, this.queuedRequest || {}, request);\n this.drain();\n };\n emitter.on('_scrollRequest', this.handleScrollRequest);\n this.fireInitialScroll();\n }\n detach() {\n this.emitter.off('_scrollRequest', this.handleScrollRequest);\n }\n update(isDatesNew) {\n if (isDatesNew && this.scrollTimeReset) {\n this.fireInitialScroll(); // will drain\n }\n else {\n this.drain();\n }\n }\n fireInitialScroll() {\n this.handleScrollRequest({\n time: this.scrollTime,\n });\n }\n drain() {\n if (this.queuedRequest && this.execFunc(this.queuedRequest)) {\n this.queuedRequest = null;\n }\n }\n}\n\nconst ViewContextType = createContext({}); // for Components\nfunction buildViewContext(viewSpec, viewApi, viewOptions, dateProfileGenerator, dateEnv, nowManager, theme, pluginHooks, dispatch, getCurrentData, emitter, calendarApi, registerInteractiveComponent, unregisterInteractiveComponent) {\n return {\n dateEnv,\n nowManager,\n options: viewOptions,\n pluginHooks,\n emitter,\n dispatch,\n getCurrentData,\n calendarApi,\n viewSpec,\n viewApi,\n dateProfileGenerator,\n theme,\n isRtl: viewOptions.direction === 'rtl',\n addResizeHandler(handler) {\n emitter.on('_resize', handler);\n },\n removeResizeHandler(handler) {\n emitter.off('_resize', handler);\n },\n createScrollResponder(execFunc) {\n return new ScrollResponder(execFunc, emitter, createDuration(viewOptions.scrollTime), viewOptions.scrollTimeReset);\n },\n registerInteractiveComponent,\n unregisterInteractiveComponent,\n };\n}\n\n/* eslint max-classes-per-file: off */\nclass PureComponent extends Component {\n // debug: boolean\n shouldComponentUpdate(nextProps, nextState) {\n const shouldUpdate = !compareObjs(this.props, nextProps, this.propEquality /*, this.debug */) ||\n !compareObjs(this.state, nextState, this.stateEquality /*, this.debug */);\n // if (this.debug && shouldUpdate) {\n // console.log('shouldUpdate!')\n // }\n return shouldUpdate;\n }\n // HACK for freakin' React StrictMode\n safeSetState(newState) {\n if (!compareObjs(this.state, Object.assign(Object.assign({}, this.state), newState), this.stateEquality)) {\n this.setState(newState);\n }\n }\n}\nPureComponent.addPropsEquality = addPropsEquality;\nPureComponent.addStateEquality = addStateEquality;\nPureComponent.contextType = ViewContextType;\nPureComponent.prototype.propEquality = {};\nPureComponent.prototype.stateEquality = {};\nclass BaseComponent extends PureComponent {\n}\nBaseComponent.contextType = ViewContextType;\nfunction addPropsEquality(propEquality) {\n let hash = Object.create(this.prototype.propEquality);\n Object.assign(hash, propEquality);\n this.prototype.propEquality = hash;\n}\nfunction addStateEquality(stateEquality) {\n let hash = Object.create(this.prototype.stateEquality);\n Object.assign(hash, stateEquality);\n this.prototype.stateEquality = hash;\n}\n// use other one\nfunction setRef(ref, current) {\n if (typeof ref === 'function') {\n ref(current);\n }\n else if (ref) {\n // see https://github.com/facebook/react/issues/13029\n ref.current = current;\n }\n}\n\nclass ContentInjector extends BaseComponent {\n constructor() {\n super(...arguments);\n this.id = guid();\n this.queuedDomNodes = [];\n this.currentDomNodes = [];\n this.handleEl = (el) => {\n const { options } = this.context;\n const { generatorName } = this.props;\n if (!options.customRenderingReplaces || !hasCustomRenderingHandler(generatorName, options)) {\n this.updateElRef(el);\n }\n };\n this.updateElRef = (el) => {\n if (this.props.elRef) {\n setRef(this.props.elRef, el);\n }\n };\n }\n render() {\n const { props, context } = this;\n const { options } = context;\n const { customGenerator, defaultGenerator, renderProps } = props;\n const attrs = buildElAttrs(props, [], this.handleEl);\n let useDefault = false;\n let innerContent;\n let queuedDomNodes = [];\n let currentGeneratorMeta;\n if (customGenerator != null) {\n const customGeneratorRes = typeof customGenerator === 'function' ?\n customGenerator(renderProps, createElement) :\n customGenerator;\n if (customGeneratorRes === true) {\n useDefault = true;\n }\n else {\n const isObject = customGeneratorRes && typeof customGeneratorRes === 'object'; // non-null\n if (isObject && ('html' in customGeneratorRes)) {\n attrs.dangerouslySetInnerHTML = { __html: customGeneratorRes.html };\n }\n else if (isObject && ('domNodes' in customGeneratorRes)) {\n queuedDomNodes = Array.prototype.slice.call(customGeneratorRes.domNodes);\n }\n else if (isObject\n ? isValidElement(customGeneratorRes) // vdom node\n : typeof customGeneratorRes !== 'function' // primitive value (like string or number)\n ) {\n // use in vdom\n innerContent = customGeneratorRes;\n }\n else {\n // an exotic object for handleCustomRendering\n currentGeneratorMeta = customGeneratorRes;\n }\n }\n }\n else {\n useDefault = !hasCustomRenderingHandler(props.generatorName, options);\n }\n if (useDefault && defaultGenerator) {\n innerContent = defaultGenerator(renderProps);\n }\n this.queuedDomNodes = queuedDomNodes;\n this.currentGeneratorMeta = currentGeneratorMeta;\n return createElement(props.elTag, attrs, innerContent);\n }\n componentDidMount() {\n this.applyQueueudDomNodes();\n this.triggerCustomRendering(true);\n }\n componentDidUpdate() {\n this.applyQueueudDomNodes();\n this.triggerCustomRendering(true);\n }\n componentWillUnmount() {\n this.triggerCustomRendering(false); // TODO: different API for removal?\n }\n triggerCustomRendering(isActive) {\n var _a;\n const { props, context } = this;\n const { handleCustomRendering, customRenderingMetaMap } = context.options;\n if (handleCustomRendering) {\n const generatorMeta = (_a = this.currentGeneratorMeta) !== null && _a !== void 0 ? _a : customRenderingMetaMap === null || customRenderingMetaMap === void 0 ? void 0 : customRenderingMetaMap[props.generatorName];\n if (generatorMeta) {\n handleCustomRendering(Object.assign(Object.assign({ id: this.id, isActive, containerEl: this.base, reportNewContainerEl: this.updateElRef, // front-end framework tells us about new container els\n generatorMeta }, props), { elClasses: (props.elClasses || []).filter(isTruthy) }));\n }\n }\n }\n applyQueueudDomNodes() {\n const { queuedDomNodes, currentDomNodes } = this;\n const el = this.base;\n if (!isArraysEqual(queuedDomNodes, currentDomNodes)) {\n currentDomNodes.forEach(removeElement);\n for (let newNode of queuedDomNodes) {\n el.appendChild(newNode);\n }\n this.currentDomNodes = queuedDomNodes;\n }\n }\n}\nContentInjector.addPropsEquality({\n elClasses: isArraysEqual,\n elStyle: isPropsEqual,\n elAttrs: isNonHandlerPropsEqual,\n renderProps: isPropsEqual,\n});\n// Util\n/*\nDoes UI-framework provide custom way of rendering that does not use Preact VDOM\nAND does the calendar's options define custom rendering?\nAKA. Should we NOT render the default content?\n*/\nfunction hasCustomRenderingHandler(generatorName, options) {\n var _a;\n return Boolean(options.handleCustomRendering &&\n generatorName &&\n ((_a = options.customRenderingMetaMap) === null || _a === void 0 ? void 0 : _a[generatorName]));\n}\nfunction buildElAttrs(props, extraClassNames, elRef) {\n const attrs = Object.assign(Object.assign({}, props.elAttrs), { ref: elRef });\n if (props.elClasses || extraClassNames) {\n attrs.className = (props.elClasses || [])\n .concat(extraClassNames || [])\n .concat(attrs.className || [])\n .filter(Boolean)\n .join(' ');\n }\n if (props.elStyle) {\n attrs.style = props.elStyle;\n }\n return attrs;\n}\nfunction isTruthy(val) {\n return Boolean(val);\n}\n\nconst RenderId = createContext(0);\n\nclass ContentContainer extends Component {\n constructor() {\n super(...arguments);\n this.InnerContent = InnerContentInjector.bind(undefined, this);\n this.handleEl = (el) => {\n this.el = el;\n if (this.props.elRef) {\n setRef(this.props.elRef, el);\n if (el && this.didMountMisfire) {\n this.componentDidMount();\n }\n }\n };\n }\n render() {\n const { props } = this;\n const generatedClassNames = generateClassNames(props.classNameGenerator, props.renderProps);\n if (props.children) {\n const elAttrs = buildElAttrs(props, generatedClassNames, this.handleEl);\n const children = props.children(this.InnerContent, props.renderProps, elAttrs);\n if (props.elTag) {\n return createElement(props.elTag, elAttrs, children);\n }\n else {\n return children;\n }\n }\n else {\n return createElement((ContentInjector), Object.assign(Object.assign({}, props), { elRef: this.handleEl, elTag: props.elTag || 'div', elClasses: (props.elClasses || []).concat(generatedClassNames), renderId: this.context }));\n }\n }\n componentDidMount() {\n var _a, _b;\n if (this.el) {\n (_b = (_a = this.props).didMount) === null || _b === void 0 ? void 0 : _b.call(_a, Object.assign(Object.assign({}, this.props.renderProps), { el: this.el }));\n }\n else {\n this.didMountMisfire = true;\n }\n }\n componentWillUnmount() {\n var _a, _b;\n (_b = (_a = this.props).willUnmount) === null || _b === void 0 ? void 0 : _b.call(_a, Object.assign(Object.assign({}, this.props.renderProps), { el: this.el }));\n }\n}\nContentContainer.contextType = RenderId;\nfunction InnerContentInjector(containerComponent, props) {\n const parentProps = containerComponent.props;\n return createElement((ContentInjector), Object.assign({ renderProps: parentProps.renderProps, generatorName: parentProps.generatorName, customGenerator: parentProps.customGenerator, defaultGenerator: parentProps.defaultGenerator, renderId: containerComponent.context }, props));\n}\n// Utils\nfunction generateClassNames(classNameGenerator, renderProps) {\n const classNames = typeof classNameGenerator === 'function' ?\n classNameGenerator(renderProps) :\n classNameGenerator || [];\n return typeof classNames === 'string' ? [classNames] : classNames;\n}\n\nclass ViewContainer extends BaseComponent {\n render() {\n let { props, context } = this;\n let { options } = context;\n let renderProps = { view: context.viewApi };\n return (createElement(ContentContainer, { elRef: props.elRef, elTag: props.elTag || 'div', elAttrs: props.elAttrs, elClasses: [\n ...buildViewClassNames(props.viewSpec),\n ...(props.elClasses || []),\n ], elStyle: props.elStyle, renderProps: renderProps, classNameGenerator: options.viewClassNames, generatorName: undefined, didMount: options.viewDidMount, willUnmount: options.viewWillUnmount }, () => props.children));\n }\n}\nfunction buildViewClassNames(viewSpec) {\n return [\n `fc-${viewSpec.type}-view`,\n 'fc-view',\n ];\n}\n\nfunction parseRange(input, dateEnv) {\n let start = null;\n let end = null;\n if (input.start) {\n start = dateEnv.createMarker(input.start);\n }\n if (input.end) {\n end = dateEnv.createMarker(input.end);\n }\n if (!start && !end) {\n return null;\n }\n if (start && end && end < start) {\n return null;\n }\n return { start, end };\n}\n// SIDE-EFFECT: will mutate ranges.\n// Will return a new array result.\nfunction invertRanges(ranges, constraintRange) {\n let invertedRanges = [];\n let { start } = constraintRange; // the end of the previous range. the start of the new range\n let i;\n let dateRange;\n // ranges need to be in order. required for our date-walking algorithm\n ranges.sort(compareRanges);\n for (i = 0; i < ranges.length; i += 1) {\n dateRange = ranges[i];\n // add the span of time before the event (if there is any)\n if (dateRange.start > start) { // compare millisecond time (skip any ambig logic)\n invertedRanges.push({ start, end: dateRange.start });\n }\n if (dateRange.end > start) {\n start = dateRange.end;\n }\n }\n // add the span of time after the last event (if there is any)\n if (start < constraintRange.end) { // compare millisecond time (skip any ambig logic)\n invertedRanges.push({ start, end: constraintRange.end });\n }\n return invertedRanges;\n}\nfunction compareRanges(range0, range1) {\n return range0.start.valueOf() - range1.start.valueOf(); // earlier ranges go first\n}\nfunction intersectRanges(range0, range1) {\n let { start, end } = range0;\n let newRange = null;\n if (range1.start !== null) {\n if (start === null) {\n start = range1.start;\n }\n else {\n start = new Date(Math.max(start.valueOf(), range1.start.valueOf()));\n }\n }\n if (range1.end != null) {\n if (end === null) {\n end = range1.end;\n }\n else {\n end = new Date(Math.min(end.valueOf(), range1.end.valueOf()));\n }\n }\n if (start === null || end === null || start < end) {\n newRange = { start, end };\n }\n return newRange;\n}\nfunction rangesEqual(range0, range1) {\n return (range0.start === null ? null : range0.start.valueOf()) === (range1.start === null ? null : range1.start.valueOf()) &&\n (range0.end === null ? null : range0.end.valueOf()) === (range1.end === null ? null : range1.end.valueOf());\n}\nfunction rangesIntersect(range0, range1) {\n return (range0.end === null || range1.start === null || range0.end > range1.start) &&\n (range0.start === null || range1.end === null || range0.start < range1.end);\n}\nfunction rangeContainsRange(outerRange, innerRange) {\n return (outerRange.start === null || (innerRange.start !== null && innerRange.start >= outerRange.start)) &&\n (outerRange.end === null || (innerRange.end !== null && innerRange.end <= outerRange.end));\n}\nfunction rangeContainsMarker(range, date) {\n return (range.start === null || date >= range.start) &&\n (range.end === null || date < range.end);\n}\n// If the given date is not within the given range, move it inside.\n// (If it's past the end, make it one millisecond before the end).\nfunction constrainMarkerToRange(date, range) {\n if (range.start != null && date < range.start) {\n return range.start;\n }\n if (range.end != null && date >= range.end) {\n return new Date(range.end.valueOf() - 1);\n }\n return date;\n}\n\n/* Date stuff that doesn't belong in datelib core\n----------------------------------------------------------------------------------------------------------------------*/\n// given a timed range, computes an all-day range that has the same exact duration,\n// but whose start time is aligned with the start of the day.\nfunction computeAlignedDayRange(timedRange) {\n let dayCnt = Math.floor(diffDays(timedRange.start, timedRange.end)) || 1;\n let start = startOfDay(timedRange.start);\n let end = addDays(start, dayCnt);\n return { start, end };\n}\n// given a timed range, computes an all-day range based on how for the end date bleeds into the next day\n// TODO: give nextDayThreshold a default arg\nfunction computeVisibleDayRange(timedRange, nextDayThreshold = createDuration(0)) {\n let startDay = null;\n let endDay = null;\n if (timedRange.end) {\n endDay = startOfDay(timedRange.end);\n let endTimeMS = timedRange.end.valueOf() - endDay.valueOf(); // # of milliseconds into `endDay`\n // If the end time is actually inclusively part of the next day and is equal to or\n // beyond the next day threshold, adjust the end to be the exclusive end of `endDay`.\n // Otherwise, leaving it as inclusive will cause it to exclude `endDay`.\n if (endTimeMS && endTimeMS >= asRoughMs(nextDayThreshold)) {\n endDay = addDays(endDay, 1);\n }\n }\n if (timedRange.start) {\n startDay = startOfDay(timedRange.start); // the beginning of the day the range starts\n // If end is within `startDay` but not past nextDayThreshold, assign the default duration of one day.\n if (endDay && endDay <= startDay) {\n endDay = addDays(startDay, 1);\n }\n }\n return { start: startDay, end: endDay };\n}\n// spans from one day into another?\nfunction isMultiDayRange(range) {\n let visibleRange = computeVisibleDayRange(range);\n return diffDays(visibleRange.start, visibleRange.end) > 1;\n}\nfunction diffDates(date0, date1, dateEnv, largeUnit) {\n if (largeUnit === 'year') {\n return createDuration(dateEnv.diffWholeYears(date0, date1), 'year');\n }\n if (largeUnit === 'month') {\n return createDuration(dateEnv.diffWholeMonths(date0, date1), 'month');\n }\n return diffDayAndTime(date0, date1); // returns a duration\n}\n\nclass DateProfileGenerator {\n constructor(props) {\n this.props = props;\n this.initHiddenDays();\n }\n /* Date Range Computation\n ------------------------------------------------------------------------------------------------------------------*/\n // Builds a structure with info about what the dates/ranges will be for the \"prev\" view.\n buildPrev(currentDateProfile, currentDate, forceToValid) {\n let { dateEnv } = this.props;\n let prevDate = dateEnv.subtract(dateEnv.startOf(currentDate, currentDateProfile.currentRangeUnit), // important for start-of-month\n currentDateProfile.dateIncrement);\n return this.build(prevDate, -1, forceToValid);\n }\n // Builds a structure with info about what the dates/ranges will be for the \"next\" view.\n buildNext(currentDateProfile, currentDate, forceToValid) {\n let { dateEnv } = this.props;\n let nextDate = dateEnv.add(dateEnv.startOf(currentDate, currentDateProfile.currentRangeUnit), // important for start-of-month\n currentDateProfile.dateIncrement);\n return this.build(nextDate, 1, forceToValid);\n }\n // Builds a structure holding dates/ranges for rendering around the given date.\n // Optional direction param indicates whether the date is being incremented/decremented\n // from its previous value. decremented = -1, incremented = 1 (default).\n build(currentDate, direction, forceToValid = true) {\n let { props } = this;\n let validRange;\n let currentInfo;\n let isRangeAllDay;\n let renderRange;\n let activeRange;\n let isValid;\n validRange = this.buildValidRange();\n validRange = this.trimHiddenDays(validRange);\n if (forceToValid) {\n currentDate = constrainMarkerToRange(currentDate, validRange);\n }\n currentInfo = this.buildCurrentRangeInfo(currentDate, direction);\n isRangeAllDay = /^(year|month|week|day)$/.test(currentInfo.unit);\n renderRange = this.buildRenderRange(this.trimHiddenDays(currentInfo.range), currentInfo.unit, isRangeAllDay);\n renderRange = this.trimHiddenDays(renderRange);\n activeRange = renderRange;\n if (!props.showNonCurrentDates) {\n activeRange = intersectRanges(activeRange, currentInfo.range);\n }\n activeRange = this.adjustActiveRange(activeRange);\n activeRange = intersectRanges(activeRange, validRange); // might return null\n // it's invalid if the originally requested date is not contained,\n // or if the range is completely outside of the valid range.\n isValid = rangesIntersect(currentInfo.range, validRange);\n // HACK: constrain to render-range so `currentDate` is more useful to view rendering\n if (!rangeContainsMarker(renderRange, currentDate)) {\n currentDate = renderRange.start;\n }\n return {\n currentDate,\n // constraint for where prev/next operations can go and where events can be dragged/resized to.\n // an object with optional start and end properties.\n validRange,\n // range the view is formally responsible for.\n // for example, a month view might have 1st-31st, excluding padded dates\n currentRange: currentInfo.range,\n // name of largest unit being displayed, like \"month\" or \"week\"\n currentRangeUnit: currentInfo.unit,\n isRangeAllDay,\n // dates that display events and accept drag-n-drop\n // will be `null` if no dates accept events\n activeRange,\n // date range with a rendered skeleton\n // includes not-active days that need some sort of DOM\n renderRange,\n // Duration object that denotes the first visible time of any given day\n slotMinTime: props.slotMinTime,\n // Duration object that denotes the exclusive visible end time of any given day\n slotMaxTime: props.slotMaxTime,\n isValid,\n // how far the current date will move for a prev/next operation\n dateIncrement: this.buildDateIncrement(currentInfo.duration),\n // pass a fallback (might be null) ^\n };\n }\n // Builds an object with optional start/end properties.\n // Indicates the minimum/maximum dates to display.\n // not responsible for trimming hidden days.\n buildValidRange() {\n let input = this.props.validRangeInput;\n let simpleInput = typeof input === 'function'\n ? input.call(this.props.calendarApi, this.props.dateEnv.toDate(this.props.nowManager.getDateMarker()))\n : input;\n return this.refineRange(simpleInput) ||\n { start: null, end: null }; // completely open-ended\n }\n // Builds a structure with info about the \"current\" range, the range that is\n // highlighted as being the current month for example.\n // See build() for a description of `direction`.\n // Guaranteed to have `range` and `unit` properties. `duration` is optional.\n buildCurrentRangeInfo(date, direction) {\n let { props } = this;\n let duration = null;\n let unit = null;\n let range = null;\n let dayCount;\n if (props.duration) {\n duration = props.duration;\n unit = props.durationUnit;\n range = this.buildRangeFromDuration(date, direction, duration, unit);\n }\n else if ((dayCount = this.props.dayCount)) {\n unit = 'day';\n range = this.buildRangeFromDayCount(date, direction, dayCount);\n }\n else if ((range = this.buildCustomVisibleRange(date))) {\n unit = props.dateEnv.greatestWholeUnit(range.start, range.end).unit;\n }\n else {\n duration = this.getFallbackDuration();\n unit = greatestDurationDenominator(duration).unit;\n range = this.buildRangeFromDuration(date, direction, duration, unit);\n }\n return { duration, unit, range };\n }\n getFallbackDuration() {\n return createDuration({ day: 1 });\n }\n // Returns a new activeRange to have time values (un-ambiguate)\n // slotMinTime or slotMaxTime causes the range to expand.\n adjustActiveRange(range) {\n let { dateEnv, usesMinMaxTime, slotMinTime, slotMaxTime } = this.props;\n let { start, end } = range;\n if (usesMinMaxTime) {\n // expand active range if slotMinTime is negative (why not when positive?)\n if (asRoughDays(slotMinTime) < 0) {\n start = startOfDay(start); // necessary?\n start = dateEnv.add(start, slotMinTime);\n }\n // expand active range if slotMaxTime is beyond one day (why not when negative?)\n if (asRoughDays(slotMaxTime) > 1) {\n end = startOfDay(end); // necessary?\n end = addDays(end, -1);\n end = dateEnv.add(end, slotMaxTime);\n }\n }\n return { start, end };\n }\n // Builds the \"current\" range when it is specified as an explicit duration.\n // `unit` is the already-computed greatestDurationDenominator unit of duration.\n buildRangeFromDuration(date, direction, duration, unit) {\n let { dateEnv, dateAlignment } = this.props;\n let start;\n let end;\n let res;\n // compute what the alignment should be\n if (!dateAlignment) {\n let { dateIncrement } = this.props;\n if (dateIncrement) {\n // use the smaller of the two units\n if (asRoughMs(dateIncrement) < asRoughMs(duration)) {\n dateAlignment = greatestDurationDenominator(dateIncrement).unit;\n }\n else {\n dateAlignment = unit;\n }\n }\n else {\n dateAlignment = unit;\n }\n }\n // if the view displays a single day or smaller\n if (asRoughDays(duration) <= 1) {\n if (this.isHiddenDay(start)) {\n start = this.skipHiddenDays(start, direction);\n start = startOfDay(start);\n }\n }\n function computeRes() {\n start = dateEnv.startOf(date, dateAlignment);\n end = dateEnv.add(start, duration);\n res = { start, end };\n }\n computeRes();\n // if range is completely enveloped by hidden days, go past the hidden days\n if (!this.trimHiddenDays(res)) {\n date = this.skipHiddenDays(date, direction);\n computeRes();\n }\n return res;\n }\n // Builds the \"current\" range when a dayCount is specified.\n buildRangeFromDayCount(date, direction, dayCount) {\n let { dateEnv, dateAlignment } = this.props;\n let runningCount = 0;\n let start = date;\n let end;\n if (dateAlignment) {\n start = dateEnv.startOf(start, dateAlignment);\n }\n start = startOfDay(start);\n start = this.skipHiddenDays(start, direction);\n end = start;\n do {\n end = addDays(end, 1);\n if (!this.isHiddenDay(end)) {\n runningCount += 1;\n }\n } while (runningCount < dayCount);\n return { start, end };\n }\n // Builds a normalized range object for the \"visible\" range,\n // which is a way to define the currentRange and activeRange at the same time.\n buildCustomVisibleRange(date) {\n let { props } = this;\n let input = props.visibleRangeInput;\n let simpleInput = typeof input === 'function'\n ? input.call(props.calendarApi, props.dateEnv.toDate(date))\n : input;\n let range = this.refineRange(simpleInput);\n if (range && (range.start == null || range.end == null)) {\n return null;\n }\n return range;\n }\n // Computes the range that will represent the element/cells for *rendering*,\n // but which may have voided days/times.\n // not responsible for trimming hidden days.\n buildRenderRange(currentRange, currentRangeUnit, isRangeAllDay) {\n return currentRange;\n }\n // Compute the duration value that should be added/substracted to the current date\n // when a prev/next operation happens.\n buildDateIncrement(fallback) {\n let { dateIncrement } = this.props;\n let customAlignment;\n if (dateIncrement) {\n return dateIncrement;\n }\n if ((customAlignment = this.props.dateAlignment)) {\n return createDuration(1, customAlignment);\n }\n if (fallback) {\n return fallback;\n }\n return createDuration({ days: 1 });\n }\n refineRange(rangeInput) {\n if (rangeInput) {\n let range = parseRange(rangeInput, this.props.dateEnv);\n if (range) {\n range = computeVisibleDayRange(range);\n }\n return range;\n }\n return null;\n }\n /* Hidden Days\n ------------------------------------------------------------------------------------------------------------------*/\n // Initializes internal variables related to calculating hidden days-of-week\n initHiddenDays() {\n let hiddenDays = this.props.hiddenDays || []; // array of day-of-week indices that are hidden\n let isHiddenDayHash = []; // is the day-of-week hidden? (hash with day-of-week-index -> bool)\n let dayCnt = 0;\n let i;\n if (this.props.weekends === false) {\n hiddenDays.push(0, 6); // 0=sunday, 6=saturday\n }\n for (i = 0; i < 7; i += 1) {\n if (!(isHiddenDayHash[i] = hiddenDays.indexOf(i) !== -1)) {\n dayCnt += 1;\n }\n }\n if (!dayCnt) {\n throw new Error('invalid hiddenDays'); // all days were hidden? bad.\n }\n this.isHiddenDayHash = isHiddenDayHash;\n }\n // Remove days from the beginning and end of the range that are computed as hidden.\n // If the whole range is trimmed off, returns null\n trimHiddenDays(range) {\n let { start, end } = range;\n if (start) {\n start = this.skipHiddenDays(start);\n }\n if (end) {\n end = this.skipHiddenDays(end, -1, true);\n }\n if (start == null || end == null || start < end) {\n return { start, end };\n }\n return null;\n }\n // Is the current day hidden?\n // `day` is a day-of-week index (0-6), or a Date (used for UTC)\n isHiddenDay(day) {\n if (day instanceof Date) {\n day = day.getUTCDay();\n }\n return this.isHiddenDayHash[day];\n }\n // Incrementing the current day until it is no longer a hidden day, returning a copy.\n // DOES NOT CONSIDER validRange!\n // If the initial value of `date` is not a hidden day, don't do anything.\n // Pass `isExclusive` as `true` if you are dealing with an end date.\n // `inc` defaults to `1` (increment one day forward each time)\n skipHiddenDays(date, inc = 1, isExclusive = false) {\n while (this.isHiddenDayHash[(date.getUTCDay() + (isExclusive ? inc : 0) + 7) % 7]) {\n date = addDays(date, inc);\n }\n return date;\n }\n}\n\nfunction createEventInstance(defId, range, forcedStartTzo, forcedEndTzo) {\n return {\n instanceId: guid(),\n defId,\n range,\n forcedStartTzo: forcedStartTzo == null ? null : forcedStartTzo,\n forcedEndTzo: forcedEndTzo == null ? null : forcedEndTzo,\n };\n}\n\nfunction parseRecurring(refined, defaultAllDay, dateEnv, recurringTypes) {\n for (let i = 0; i < recurringTypes.length; i += 1) {\n let parsed = recurringTypes[i].parse(refined, dateEnv);\n if (parsed) {\n let { allDay } = refined;\n if (allDay == null) {\n allDay = defaultAllDay;\n if (allDay == null) {\n allDay = parsed.allDayGuess;\n if (allDay == null) {\n allDay = false;\n }\n }\n }\n return {\n allDay,\n duration: parsed.duration,\n typeData: parsed.typeData,\n typeId: i,\n };\n }\n }\n return null;\n}\nfunction expandRecurring(eventStore, framingRange, context) {\n let { dateEnv, pluginHooks, options } = context;\n let { defs, instances } = eventStore;\n // remove existing recurring instances\n // TODO: bad. always expand events as a second step\n instances = filterHash(instances, (instance) => !defs[instance.defId].recurringDef);\n for (let defId in defs) {\n let def = defs[defId];\n if (def.recurringDef) {\n let { duration } = def.recurringDef;\n if (!duration) {\n duration = def.allDay ?\n options.defaultAllDayEventDuration :\n options.defaultTimedEventDuration;\n }\n let starts = expandRecurringRanges(def, duration, framingRange, dateEnv, pluginHooks.recurringTypes);\n for (let start of starts) {\n let instance = createEventInstance(defId, {\n start,\n end: dateEnv.add(start, duration),\n });\n instances[instance.instanceId] = instance;\n }\n }\n }\n return { defs, instances };\n}\n/*\nEvent MUST have a recurringDef\n*/\nfunction expandRecurringRanges(eventDef, duration, framingRange, dateEnv, recurringTypes) {\n let typeDef = recurringTypes[eventDef.recurringDef.typeId];\n let markers = typeDef.expand(eventDef.recurringDef.typeData, {\n start: dateEnv.subtract(framingRange.start, duration),\n end: framingRange.end,\n }, dateEnv);\n // the recurrence plugins don't guarantee that all-day events are start-of-day, so we have to\n if (eventDef.allDay) {\n markers = markers.map(startOfDay);\n }\n return markers;\n}\n\nconst EVENT_NON_DATE_REFINERS = {\n id: String,\n groupId: String,\n title: String,\n url: String,\n interactive: Boolean,\n};\nconst EVENT_DATE_REFINERS = {\n start: identity,\n end: identity,\n date: identity,\n allDay: Boolean,\n};\nconst EVENT_REFINERS = Object.assign(Object.assign(Object.assign({}, EVENT_NON_DATE_REFINERS), EVENT_DATE_REFINERS), { extendedProps: identity });\nfunction parseEvent(raw, eventSource, context, allowOpenRange, refiners = buildEventRefiners(context), defIdMap, instanceIdMap) {\n let { refined, extra } = refineEventDef(raw, context, refiners);\n let defaultAllDay = computeIsDefaultAllDay(eventSource, context);\n let recurringRes = parseRecurring(refined, defaultAllDay, context.dateEnv, context.pluginHooks.recurringTypes);\n if (recurringRes) {\n let def = parseEventDef(refined, extra, eventSource ? eventSource.sourceId : '', recurringRes.allDay, Boolean(recurringRes.duration), context, defIdMap);\n def.recurringDef = {\n typeId: recurringRes.typeId,\n typeData: recurringRes.typeData,\n duration: recurringRes.duration,\n };\n return { def, instance: null };\n }\n let singleRes = parseSingle(refined, defaultAllDay, context, allowOpenRange);\n if (singleRes) {\n let def = parseEventDef(refined, extra, eventSource ? eventSource.sourceId : '', singleRes.allDay, singleRes.hasEnd, context, defIdMap);\n let instance = createEventInstance(def.defId, singleRes.range, singleRes.forcedStartTzo, singleRes.forcedEndTzo);\n if (instanceIdMap && def.publicId && instanceIdMap[def.publicId]) {\n instance.instanceId = instanceIdMap[def.publicId];\n }\n return { def, instance };\n }\n return null;\n}\nfunction refineEventDef(raw, context, refiners = buildEventRefiners(context)) {\n return refineProps(raw, refiners);\n}\nfunction buildEventRefiners(context) {\n return Object.assign(Object.assign(Object.assign({}, EVENT_UI_REFINERS), EVENT_REFINERS), context.pluginHooks.eventRefiners);\n}\n/*\nWill NOT populate extendedProps with the leftover properties.\nWill NOT populate date-related props.\n*/\nfunction parseEventDef(refined, extra, sourceId, allDay, hasEnd, context, defIdMap) {\n let def = {\n title: refined.title || '',\n groupId: refined.groupId || '',\n publicId: refined.id || '',\n url: refined.url || '',\n recurringDef: null,\n defId: ((defIdMap && refined.id) ? defIdMap[refined.id] : '') || guid(),\n sourceId,\n allDay,\n hasEnd,\n interactive: refined.interactive,\n ui: createEventUi(refined, context),\n extendedProps: Object.assign(Object.assign({}, (refined.extendedProps || {})), extra),\n };\n for (let memberAdder of context.pluginHooks.eventDefMemberAdders) {\n Object.assign(def, memberAdder(refined));\n }\n // help out EventImpl from having user modify props\n Object.freeze(def.ui.classNames);\n Object.freeze(def.extendedProps);\n return def;\n}\nfunction parseSingle(refined, defaultAllDay, context, allowOpenRange) {\n let { allDay } = refined;\n let startMeta;\n let startMarker = null;\n let hasEnd = false;\n let endMeta;\n let endMarker = null;\n let startInput = refined.start != null ? refined.start : refined.date;\n startMeta = context.dateEnv.createMarkerMeta(startInput);\n if (startMeta) {\n startMarker = startMeta.marker;\n }\n else if (!allowOpenRange) {\n return null;\n }\n if (refined.end != null) {\n endMeta = context.dateEnv.createMarkerMeta(refined.end);\n }\n if (allDay == null) {\n if (defaultAllDay != null) {\n allDay = defaultAllDay;\n }\n else {\n // fall back to the date props LAST\n allDay = (!startMeta || startMeta.isTimeUnspecified) &&\n (!endMeta || endMeta.isTimeUnspecified);\n }\n }\n if (allDay && startMarker) {\n startMarker = startOfDay(startMarker);\n }\n if (endMeta) {\n endMarker = endMeta.marker;\n if (allDay) {\n endMarker = startOfDay(endMarker);\n }\n if (startMarker && endMarker <= startMarker) {\n endMarker = null;\n }\n }\n if (endMarker) {\n hasEnd = true;\n }\n else if (!allowOpenRange) {\n hasEnd = context.options.forceEventDuration || false;\n endMarker = context.dateEnv.add(startMarker, allDay ?\n context.options.defaultAllDayEventDuration :\n context.options.defaultTimedEventDuration);\n }\n return {\n allDay,\n hasEnd,\n range: { start: startMarker, end: endMarker },\n forcedStartTzo: startMeta ? startMeta.forcedTzo : null,\n forcedEndTzo: endMeta ? endMeta.forcedTzo : null,\n };\n}\nfunction computeIsDefaultAllDay(eventSource, context) {\n let res = null;\n if (eventSource) {\n res = eventSource.defaultAllDay;\n }\n if (res == null) {\n res = context.options.defaultAllDay;\n }\n return res;\n}\n\nfunction parseEvents(rawEvents, eventSource, context, allowOpenRange, defIdMap, instanceIdMap) {\n let eventStore = createEmptyEventStore();\n let eventRefiners = buildEventRefiners(context);\n for (let rawEvent of rawEvents) {\n let tuple = parseEvent(rawEvent, eventSource, context, allowOpenRange, eventRefiners, defIdMap, instanceIdMap);\n if (tuple) {\n eventTupleToStore(tuple, eventStore);\n }\n }\n return eventStore;\n}\nfunction eventTupleToStore(tuple, eventStore = createEmptyEventStore()) {\n eventStore.defs[tuple.def.defId] = tuple.def;\n if (tuple.instance) {\n eventStore.instances[tuple.instance.instanceId] = tuple.instance;\n }\n return eventStore;\n}\n// retrieves events that have the same groupId as the instance specified by `instanceId`\n// or they are the same as the instance.\n// why might instanceId not be in the store? an event from another calendar?\nfunction getRelevantEvents(eventStore, instanceId) {\n let instance = eventStore.instances[instanceId];\n if (instance) {\n let def = eventStore.defs[instance.defId];\n // get events/instances with same group\n let newStore = filterEventStoreDefs(eventStore, (lookDef) => isEventDefsGrouped(def, lookDef));\n // add the original\n // TODO: wish we could use eventTupleToStore or something like it\n newStore.defs[def.defId] = def;\n newStore.instances[instance.instanceId] = instance;\n return newStore;\n }\n return createEmptyEventStore();\n}\nfunction isEventDefsGrouped(def0, def1) {\n return Boolean(def0.groupId && def0.groupId === def1.groupId);\n}\nfunction createEmptyEventStore() {\n return { defs: {}, instances: {} };\n}\nfunction mergeEventStores(store0, store1) {\n return {\n defs: Object.assign(Object.assign({}, store0.defs), store1.defs),\n instances: Object.assign(Object.assign({}, store0.instances), store1.instances),\n };\n}\nfunction filterEventStoreDefs(eventStore, filterFunc) {\n let defs = filterHash(eventStore.defs, filterFunc);\n let instances = filterHash(eventStore.instances, (instance) => (defs[instance.defId] // still exists?\n ));\n return { defs, instances };\n}\nfunction excludeSubEventStore(master, sub) {\n let { defs, instances } = master;\n let filteredDefs = {};\n let filteredInstances = {};\n for (let defId in defs) {\n if (!sub.defs[defId]) { // not explicitly excluded\n filteredDefs[defId] = defs[defId];\n }\n }\n for (let instanceId in instances) {\n if (!sub.instances[instanceId] && // not explicitly excluded\n filteredDefs[instances[instanceId].defId] // def wasn't filtered away\n ) {\n filteredInstances[instanceId] = instances[instanceId];\n }\n }\n return {\n defs: filteredDefs,\n instances: filteredInstances,\n };\n}\n\nfunction normalizeConstraint(input, context) {\n if (Array.isArray(input)) {\n return parseEvents(input, null, context, true); // allowOpenRange=true\n }\n if (typeof input === 'object' && input) { // non-null object\n return parseEvents([input], null, context, true); // allowOpenRange=true\n }\n if (input != null) {\n return String(input);\n }\n return null;\n}\n\nfunction parseClassNames(raw) {\n if (Array.isArray(raw)) {\n return raw;\n }\n if (typeof raw === 'string') {\n return raw.split(/\\s+/);\n }\n return [];\n}\n\n// TODO: better called \"EventSettings\" or \"EventConfig\"\n// TODO: move this file into structs\n// TODO: separate constraint/overlap/allow, because selection uses only that, not other props\nconst EVENT_UI_REFINERS = {\n display: String,\n editable: Boolean,\n startEditable: Boolean,\n durationEditable: Boolean,\n constraint: identity,\n overlap: identity,\n allow: identity,\n className: parseClassNames,\n classNames: parseClassNames,\n color: String,\n backgroundColor: String,\n borderColor: String,\n textColor: String,\n};\nconst EMPTY_EVENT_UI = {\n display: null,\n startEditable: null,\n durationEditable: null,\n constraints: [],\n overlap: null,\n allows: [],\n backgroundColor: '',\n borderColor: '',\n textColor: '',\n classNames: [],\n};\nfunction createEventUi(refined, context) {\n let constraint = normalizeConstraint(refined.constraint, context);\n return {\n display: refined.display || null,\n startEditable: refined.startEditable != null ? refined.startEditable : refined.editable,\n durationEditable: refined.durationEditable != null ? refined.durationEditable : refined.editable,\n constraints: constraint != null ? [constraint] : [],\n overlap: refined.overlap != null ? refined.overlap : null,\n allows: refined.allow != null ? [refined.allow] : [],\n backgroundColor: refined.backgroundColor || refined.color || '',\n borderColor: refined.borderColor || refined.color || '',\n textColor: refined.textColor || '',\n classNames: (refined.className || []).concat(refined.classNames || []), // join singular and plural\n };\n}\n// TODO: prevent against problems with <2 args!\nfunction combineEventUis(uis) {\n return uis.reduce(combineTwoEventUis, EMPTY_EVENT_UI);\n}\nfunction combineTwoEventUis(item0, item1) {\n return {\n display: item1.display != null ? item1.display : item0.display,\n startEditable: item1.startEditable != null ? item1.startEditable : item0.startEditable,\n durationEditable: item1.durationEditable != null ? item1.durationEditable : item0.durationEditable,\n constraints: item0.constraints.concat(item1.constraints),\n overlap: typeof item1.overlap === 'boolean' ? item1.overlap : item0.overlap,\n allows: item0.allows.concat(item1.allows),\n backgroundColor: item1.backgroundColor || item0.backgroundColor,\n borderColor: item1.borderColor || item0.borderColor,\n textColor: item1.textColor || item0.textColor,\n classNames: item0.classNames.concat(item1.classNames),\n };\n}\n\nconst EVENT_SOURCE_REFINERS = {\n id: String,\n defaultAllDay: Boolean,\n url: String,\n format: String,\n events: identity,\n eventDataTransform: identity,\n // for any network-related sources\n success: identity,\n failure: identity,\n};\nfunction parseEventSource(raw, context, refiners = buildEventSourceRefiners(context)) {\n let rawObj;\n if (typeof raw === 'string') {\n rawObj = { url: raw };\n }\n else if (typeof raw === 'function' || Array.isArray(raw)) {\n rawObj = { events: raw };\n }\n else if (typeof raw === 'object' && raw) { // not null\n rawObj = raw;\n }\n if (rawObj) {\n let { refined, extra } = refineProps(rawObj, refiners);\n let metaRes = buildEventSourceMeta(refined, context);\n if (metaRes) {\n return {\n _raw: raw,\n isFetching: false,\n latestFetchId: '',\n fetchRange: null,\n defaultAllDay: refined.defaultAllDay,\n eventDataTransform: refined.eventDataTransform,\n success: refined.success,\n failure: refined.failure,\n publicId: refined.id || '',\n sourceId: guid(),\n sourceDefId: metaRes.sourceDefId,\n meta: metaRes.meta,\n ui: createEventUi(refined, context),\n extendedProps: extra,\n };\n }\n }\n return null;\n}\nfunction buildEventSourceRefiners(context) {\n return Object.assign(Object.assign(Object.assign({}, EVENT_UI_REFINERS), EVENT_SOURCE_REFINERS), context.pluginHooks.eventSourceRefiners);\n}\nfunction buildEventSourceMeta(raw, context) {\n let defs = context.pluginHooks.eventSourceDefs;\n for (let i = defs.length - 1; i >= 0; i -= 1) { // later-added plugins take precedence\n let def = defs[i];\n let meta = def.parseMeta(raw);\n if (meta) {\n return { sourceDefId: i, meta };\n }\n }\n return null;\n}\n\nfunction reduceEventStore(eventStore, action, eventSources, dateProfile, context) {\n switch (action.type) {\n case 'RECEIVE_EVENTS': // raw\n return receiveRawEvents(eventStore, eventSources[action.sourceId], action.fetchId, action.fetchRange, action.rawEvents, context);\n case 'RESET_RAW_EVENTS':\n return resetRawEvents(eventStore, eventSources[action.sourceId], action.rawEvents, dateProfile.activeRange, context);\n case 'ADD_EVENTS': // already parsed, but not expanded\n return addEvent(eventStore, action.eventStore, // new ones\n dateProfile ? dateProfile.activeRange : null, context);\n case 'RESET_EVENTS':\n return action.eventStore;\n case 'MERGE_EVENTS': // already parsed and expanded\n return mergeEventStores(eventStore, action.eventStore);\n case 'PREV': // TODO: how do we track all actions that affect dateProfile :(\n case 'NEXT':\n case 'CHANGE_DATE':\n case 'CHANGE_VIEW_TYPE':\n if (dateProfile) {\n return expandRecurring(eventStore, dateProfile.activeRange, context);\n }\n return eventStore;\n case 'REMOVE_EVENTS':\n return excludeSubEventStore(eventStore, action.eventStore);\n case 'REMOVE_EVENT_SOURCE':\n return excludeEventsBySourceId(eventStore, action.sourceId);\n case 'REMOVE_ALL_EVENT_SOURCES':\n return filterEventStoreDefs(eventStore, (eventDef) => (!eventDef.sourceId // only keep events with no source id\n ));\n case 'REMOVE_ALL_EVENTS':\n return createEmptyEventStore();\n default:\n return eventStore;\n }\n}\nfunction receiveRawEvents(eventStore, eventSource, fetchId, fetchRange, rawEvents, context) {\n if (eventSource && // not already removed\n fetchId === eventSource.latestFetchId // TODO: wish this logic was always in event-sources\n ) {\n let subset = parseEvents(transformRawEvents(rawEvents, eventSource, context), eventSource, context);\n if (fetchRange) {\n subset = expandRecurring(subset, fetchRange, context);\n }\n return mergeEventStores(excludeEventsBySourceId(eventStore, eventSource.sourceId), subset);\n }\n return eventStore;\n}\nfunction resetRawEvents(existingEventStore, eventSource, rawEvents, activeRange, context) {\n const { defIdMap, instanceIdMap } = buildPublicIdMaps(existingEventStore);\n let newEventStore = parseEvents(transformRawEvents(rawEvents, eventSource, context), eventSource, context, false, defIdMap, instanceIdMap);\n return expandRecurring(newEventStore, activeRange, context);\n}\nfunction transformRawEvents(rawEvents, eventSource, context) {\n let calEachTransform = context.options.eventDataTransform;\n let sourceEachTransform = eventSource ? eventSource.eventDataTransform : null;\n if (sourceEachTransform) {\n rawEvents = transformEachRawEvent(rawEvents, sourceEachTransform);\n }\n if (calEachTransform) {\n rawEvents = transformEachRawEvent(rawEvents, calEachTransform);\n }\n return rawEvents;\n}\nfunction transformEachRawEvent(rawEvents, func) {\n let refinedEvents;\n if (!func) {\n refinedEvents = rawEvents;\n }\n else {\n refinedEvents = [];\n for (let rawEvent of rawEvents) {\n let refinedEvent = func(rawEvent);\n if (refinedEvent) {\n refinedEvents.push(refinedEvent);\n }\n else if (refinedEvent == null) {\n refinedEvents.push(rawEvent);\n } // if a different falsy value, do nothing\n }\n }\n return refinedEvents;\n}\nfunction addEvent(eventStore, subset, expandRange, context) {\n if (expandRange) {\n subset = expandRecurring(subset, expandRange, context);\n }\n return mergeEventStores(eventStore, subset);\n}\nfunction rezoneEventStoreDates(eventStore, oldDateEnv, newDateEnv) {\n let { defs } = eventStore;\n let instances = mapHash(eventStore.instances, (instance) => {\n let def = defs[instance.defId];\n if (def.allDay) {\n return instance; // isn't dependent on timezone\n }\n return Object.assign(Object.assign({}, instance), { range: {\n start: newDateEnv.createMarker(oldDateEnv.toDate(instance.range.start, instance.forcedStartTzo)),\n end: newDateEnv.createMarker(oldDateEnv.toDate(instance.range.end, instance.forcedEndTzo)),\n }, forcedStartTzo: newDateEnv.canComputeOffset ? null : instance.forcedStartTzo, forcedEndTzo: newDateEnv.canComputeOffset ? null : instance.forcedEndTzo });\n });\n return { defs, instances };\n}\nfunction excludeEventsBySourceId(eventStore, sourceId) {\n return filterEventStoreDefs(eventStore, (eventDef) => eventDef.sourceId !== sourceId);\n}\n// QUESTION: why not just return instances? do a general object-property-exclusion util\nfunction excludeInstances(eventStore, removals) {\n return {\n defs: eventStore.defs,\n instances: filterHash(eventStore.instances, (instance) => !removals[instance.instanceId]),\n };\n}\nfunction buildPublicIdMaps(eventStore) {\n const { defs, instances } = eventStore;\n const defIdMap = {};\n const instanceIdMap = {};\n for (let defId in defs) {\n const def = defs[defId];\n const { publicId } = def;\n if (publicId) {\n defIdMap[publicId] = defId;\n }\n }\n for (let instanceId in instances) {\n const instance = instances[instanceId];\n const def = defs[instance.defId];\n const { publicId } = def;\n if (publicId) {\n instanceIdMap[publicId] = instanceId;\n }\n }\n return { defIdMap, instanceIdMap };\n}\n\nclass Emitter {\n constructor() {\n this.handlers = {};\n this.thisContext = null;\n }\n setThisContext(thisContext) {\n this.thisContext = thisContext;\n }\n setOptions(options) {\n this.options = options;\n }\n on(type, handler) {\n addToHash(this.handlers, type, handler);\n }\n off(type, handler) {\n removeFromHash(this.handlers, type, handler);\n }\n trigger(type, ...args) {\n let attachedHandlers = this.handlers[type] || [];\n let optionHandler = this.options && this.options[type];\n let handlers = [].concat(optionHandler || [], attachedHandlers);\n for (let handler of handlers) {\n handler.apply(this.thisContext, args);\n }\n }\n hasHandlers(type) {\n return Boolean((this.handlers[type] && this.handlers[type].length) ||\n (this.options && this.options[type]));\n }\n}\nfunction addToHash(hash, type, handler) {\n (hash[type] || (hash[type] = []))\n .push(handler);\n}\nfunction removeFromHash(hash, type, handler) {\n if (handler) {\n if (hash[type]) {\n hash[type] = hash[type].filter((func) => func !== handler);\n }\n }\n else {\n delete hash[type]; // remove all handler funcs for this type\n }\n}\n\nconst DEF_DEFAULTS = {\n startTime: '09:00',\n endTime: '17:00',\n daysOfWeek: [1, 2, 3, 4, 5],\n display: 'inverse-background',\n classNames: 'fc-non-business',\n groupId: '_businessHours', // so multiple defs get grouped\n};\n/*\nTODO: pass around as EventDefHash!!!\n*/\nfunction parseBusinessHours(input, context) {\n return parseEvents(refineInputs(input), null, context);\n}\nfunction refineInputs(input) {\n let rawDefs;\n if (input === true) {\n rawDefs = [{}]; // will get DEF_DEFAULTS verbatim\n }\n else if (Array.isArray(input)) {\n // if specifying an array, every sub-definition NEEDS a day-of-week\n rawDefs = input.filter((rawDef) => rawDef.daysOfWeek);\n }\n else if (typeof input === 'object' && input) { // non-null object\n rawDefs = [input];\n }\n else { // is probably false\n rawDefs = [];\n }\n rawDefs = rawDefs.map((rawDef) => (Object.assign(Object.assign({}, DEF_DEFAULTS), rawDef)));\n return rawDefs;\n}\n\nfunction triggerDateSelect(selection, pev, context) {\n context.emitter.trigger('select', Object.assign(Object.assign({}, buildDateSpanApiWithContext(selection, context)), { jsEvent: pev ? pev.origEvent : null, view: context.viewApi || context.calendarApi.view }));\n}\nfunction triggerDateUnselect(pev, context) {\n context.emitter.trigger('unselect', {\n jsEvent: pev ? pev.origEvent : null,\n view: context.viewApi || context.calendarApi.view,\n });\n}\nfunction buildDateSpanApiWithContext(dateSpan, context) {\n let props = {};\n for (let transform of context.pluginHooks.dateSpanTransforms) {\n Object.assign(props, transform(dateSpan, context));\n }\n Object.assign(props, buildDateSpanApi(dateSpan, context.dateEnv));\n return props;\n}\n// Given an event's allDay status and start date, return what its fallback end date should be.\n// TODO: rename to computeDefaultEventEnd\nfunction getDefaultEventEnd(allDay, marker, context) {\n let { dateEnv, options } = context;\n let end = marker;\n if (allDay) {\n end = startOfDay(end);\n end = dateEnv.add(end, options.defaultAllDayEventDuration);\n }\n else {\n end = dateEnv.add(end, options.defaultTimedEventDuration);\n }\n return end;\n}\n\n// applies the mutation to ALL defs/instances within the event store\nfunction applyMutationToEventStore(eventStore, eventConfigBase, mutation, context) {\n let eventConfigs = compileEventUis(eventStore.defs, eventConfigBase);\n let dest = createEmptyEventStore();\n for (let defId in eventStore.defs) {\n let def = eventStore.defs[defId];\n dest.defs[defId] = applyMutationToEventDef(def, eventConfigs[defId], mutation, context);\n }\n for (let instanceId in eventStore.instances) {\n let instance = eventStore.instances[instanceId];\n let def = dest.defs[instance.defId]; // important to grab the newly modified def\n dest.instances[instanceId] = applyMutationToEventInstance(instance, def, eventConfigs[instance.defId], mutation, context);\n }\n return dest;\n}\nfunction applyMutationToEventDef(eventDef, eventConfig, mutation, context) {\n let standardProps = mutation.standardProps || {};\n // if hasEnd has not been specified, guess a good value based on deltas.\n // if duration will change, there's no way the default duration will persist,\n // and thus, we need to mark the event as having a real end\n if (standardProps.hasEnd == null &&\n eventConfig.durationEditable &&\n (mutation.startDelta || mutation.endDelta)) {\n standardProps.hasEnd = true; // TODO: is this mutation okay?\n }\n let copy = Object.assign(Object.assign(Object.assign({}, eventDef), standardProps), { ui: Object.assign(Object.assign({}, eventDef.ui), standardProps.ui) });\n if (mutation.extendedProps) {\n copy.extendedProps = Object.assign(Object.assign({}, copy.extendedProps), mutation.extendedProps);\n }\n for (let applier of context.pluginHooks.eventDefMutationAppliers) {\n applier(copy, mutation, context);\n }\n if (!copy.hasEnd && context.options.forceEventDuration) {\n copy.hasEnd = true;\n }\n return copy;\n}\nfunction applyMutationToEventInstance(eventInstance, eventDef, // must first be modified by applyMutationToEventDef\neventConfig, mutation, context) {\n let { dateEnv } = context;\n let forceAllDay = mutation.standardProps && mutation.standardProps.allDay === true;\n let clearEnd = mutation.standardProps && mutation.standardProps.hasEnd === false;\n let copy = Object.assign({}, eventInstance);\n if (forceAllDay) {\n copy.range = computeAlignedDayRange(copy.range);\n }\n if (mutation.datesDelta && eventConfig.startEditable) {\n copy.range = {\n start: dateEnv.add(copy.range.start, mutation.datesDelta),\n end: dateEnv.add(copy.range.end, mutation.datesDelta),\n };\n }\n if (mutation.startDelta && eventConfig.durationEditable) {\n copy.range = {\n start: dateEnv.add(copy.range.start, mutation.startDelta),\n end: copy.range.end,\n };\n }\n if (mutation.endDelta && eventConfig.durationEditable) {\n copy.range = {\n start: copy.range.start,\n end: dateEnv.add(copy.range.end, mutation.endDelta),\n };\n }\n if (clearEnd) {\n copy.range = {\n start: copy.range.start,\n end: getDefaultEventEnd(eventDef.allDay, copy.range.start, context),\n };\n }\n // in case event was all-day but the supplied deltas were not\n // better util for this?\n if (eventDef.allDay) {\n copy.range = {\n start: startOfDay(copy.range.start),\n end: startOfDay(copy.range.end),\n };\n }\n // handle invalid durations\n if (copy.range.end < copy.range.start) {\n copy.range.end = getDefaultEventEnd(eventDef.allDay, copy.range.start, context);\n }\n return copy;\n}\n\nclass EventSourceImpl {\n constructor(context, internalEventSource) {\n this.context = context;\n this.internalEventSource = internalEventSource;\n }\n remove() {\n this.context.dispatch({\n type: 'REMOVE_EVENT_SOURCE',\n sourceId: this.internalEventSource.sourceId,\n });\n }\n refetch() {\n this.context.dispatch({\n type: 'FETCH_EVENT_SOURCES',\n sourceIds: [this.internalEventSource.sourceId],\n isRefetch: true,\n });\n }\n get id() {\n return this.internalEventSource.publicId;\n }\n get url() {\n return this.internalEventSource.meta.url;\n }\n get format() {\n return this.internalEventSource.meta.format; // TODO: bad. not guaranteed\n }\n}\n\nclass EventImpl {\n // instance will be null if expressing a recurring event that has no current instances,\n // OR if trying to validate an incoming external event that has no dates assigned\n constructor(context, def, instance) {\n this._context = context;\n this._def = def;\n this._instance = instance || null;\n }\n /*\n TODO: make event struct more responsible for this\n */\n setProp(name, val) {\n if (name in EVENT_DATE_REFINERS) {\n console.warn('Could not set date-related prop \\'name\\'. Use one of the date-related methods instead.');\n // TODO: make proper aliasing system?\n }\n else if (name === 'id') {\n val = EVENT_NON_DATE_REFINERS[name](val);\n this.mutate({\n standardProps: { publicId: val }, // hardcoded internal name\n });\n }\n else if (name in EVENT_NON_DATE_REFINERS) {\n val = EVENT_NON_DATE_REFINERS[name](val);\n this.mutate({\n standardProps: { [name]: val },\n });\n }\n else if (name in EVENT_UI_REFINERS) {\n let ui = EVENT_UI_REFINERS[name](val);\n if (name === 'color') {\n ui = { backgroundColor: val, borderColor: val };\n }\n else if (name === 'editable') {\n ui = { startEditable: val, durationEditable: val };\n }\n else {\n ui = { [name]: val };\n }\n this.mutate({\n standardProps: { ui },\n });\n }\n else {\n console.warn(`Could not set prop '${name}'. Use setExtendedProp instead.`);\n }\n }\n setExtendedProp(name, val) {\n this.mutate({\n extendedProps: { [name]: val },\n });\n }\n setStart(startInput, options = {}) {\n let { dateEnv } = this._context;\n let start = dateEnv.createMarker(startInput);\n if (start && this._instance) { // TODO: warning if parsed bad\n let instanceRange = this._instance.range;\n let startDelta = diffDates(instanceRange.start, start, dateEnv, options.granularity); // what if parsed bad!?\n if (options.maintainDuration) {\n this.mutate({ datesDelta: startDelta });\n }\n else {\n this.mutate({ startDelta });\n }\n }\n }\n setEnd(endInput, options = {}) {\n let { dateEnv } = this._context;\n let end;\n if (endInput != null) {\n end = dateEnv.createMarker(endInput);\n if (!end) {\n return; // TODO: warning if parsed bad\n }\n }\n if (this._instance) {\n if (end) {\n let endDelta = diffDates(this._instance.range.end, end, dateEnv, options.granularity);\n this.mutate({ endDelta });\n }\n else {\n this.mutate({ standardProps: { hasEnd: false } });\n }\n }\n }\n setDates(startInput, endInput, options = {}) {\n let { dateEnv } = this._context;\n let standardProps = { allDay: options.allDay };\n let start = dateEnv.createMarker(startInput);\n let end;\n if (!start) {\n return; // TODO: warning if parsed bad\n }\n if (endInput != null) {\n end = dateEnv.createMarker(endInput);\n if (!end) { // TODO: warning if parsed bad\n return;\n }\n }\n if (this._instance) {\n let instanceRange = this._instance.range;\n // when computing the diff for an event being converted to all-day,\n // compute diff off of the all-day values the way event-mutation does.\n if (options.allDay === true) {\n instanceRange = computeAlignedDayRange(instanceRange);\n }\n let startDelta = diffDates(instanceRange.start, start, dateEnv, options.granularity);\n if (end) {\n let endDelta = diffDates(instanceRange.end, end, dateEnv, options.granularity);\n if (durationsEqual(startDelta, endDelta)) {\n this.mutate({ datesDelta: startDelta, standardProps });\n }\n else {\n this.mutate({ startDelta, endDelta, standardProps });\n }\n }\n else { // means \"clear the end\"\n standardProps.hasEnd = false;\n this.mutate({ datesDelta: startDelta, standardProps });\n }\n }\n }\n moveStart(deltaInput) {\n let delta = createDuration(deltaInput);\n if (delta) { // TODO: warning if parsed bad\n this.mutate({ startDelta: delta });\n }\n }\n moveEnd(deltaInput) {\n let delta = createDuration(deltaInput);\n if (delta) { // TODO: warning if parsed bad\n this.mutate({ endDelta: delta });\n }\n }\n moveDates(deltaInput) {\n let delta = createDuration(deltaInput);\n if (delta) { // TODO: warning if parsed bad\n this.mutate({ datesDelta: delta });\n }\n }\n setAllDay(allDay, options = {}) {\n let standardProps = { allDay };\n let { maintainDuration } = options;\n if (maintainDuration == null) {\n maintainDuration = this._context.options.allDayMaintainDuration;\n }\n if (this._def.allDay !== allDay) {\n standardProps.hasEnd = maintainDuration;\n }\n this.mutate({ standardProps });\n }\n formatRange(formatInput) {\n let { dateEnv } = this._context;\n let instance = this._instance;\n let formatter = createFormatter(formatInput);\n if (this._def.hasEnd) {\n return dateEnv.formatRange(instance.range.start, instance.range.end, formatter, {\n forcedStartTzo: instance.forcedStartTzo,\n forcedEndTzo: instance.forcedEndTzo,\n });\n }\n return dateEnv.format(instance.range.start, formatter, {\n forcedTzo: instance.forcedStartTzo,\n });\n }\n mutate(mutation) {\n let instance = this._instance;\n if (instance) {\n let def = this._def;\n let context = this._context;\n let { eventStore } = context.getCurrentData();\n let relevantEvents = getRelevantEvents(eventStore, instance.instanceId);\n let eventConfigBase = {\n '': {\n display: '',\n startEditable: true,\n durationEditable: true,\n constraints: [],\n overlap: null,\n allows: [],\n backgroundColor: '',\n borderColor: '',\n textColor: '',\n classNames: [],\n },\n };\n relevantEvents = applyMutationToEventStore(relevantEvents, eventConfigBase, mutation, context);\n let oldEvent = new EventImpl(context, def, instance); // snapshot\n this._def = relevantEvents.defs[def.defId];\n this._instance = relevantEvents.instances[instance.instanceId];\n context.dispatch({\n type: 'MERGE_EVENTS',\n eventStore: relevantEvents,\n });\n context.emitter.trigger('eventChange', {\n oldEvent,\n event: this,\n relatedEvents: buildEventApis(relevantEvents, context, instance),\n revert() {\n context.dispatch({\n type: 'RESET_EVENTS',\n eventStore, // the ORIGINAL store\n });\n },\n });\n }\n }\n remove() {\n let context = this._context;\n let asStore = eventApiToStore(this);\n context.dispatch({\n type: 'REMOVE_EVENTS',\n eventStore: asStore,\n });\n context.emitter.trigger('eventRemove', {\n event: this,\n relatedEvents: [],\n revert() {\n context.dispatch({\n type: 'MERGE_EVENTS',\n eventStore: asStore,\n });\n },\n });\n }\n get source() {\n let { sourceId } = this._def;\n if (sourceId) {\n return new EventSourceImpl(this._context, this._context.getCurrentData().eventSources[sourceId]);\n }\n return null;\n }\n get start() {\n return this._instance ?\n this._context.dateEnv.toDate(this._instance.range.start) :\n null;\n }\n get end() {\n return (this._instance && this._def.hasEnd) ?\n this._context.dateEnv.toDate(this._instance.range.end) :\n null;\n }\n get startStr() {\n let instance = this._instance;\n if (instance) {\n return this._context.dateEnv.formatIso(instance.range.start, {\n omitTime: this._def.allDay,\n forcedTzo: instance.forcedStartTzo,\n });\n }\n return '';\n }\n get endStr() {\n let instance = this._instance;\n if (instance && this._def.hasEnd) {\n return this._context.dateEnv.formatIso(instance.range.end, {\n omitTime: this._def.allDay,\n forcedTzo: instance.forcedEndTzo,\n });\n }\n return '';\n }\n // computable props that all access the def\n // TODO: find a TypeScript-compatible way to do this at scale\n get id() { return this._def.publicId; }\n get groupId() { return this._def.groupId; }\n get allDay() { return this._def.allDay; }\n get title() { return this._def.title; }\n get url() { return this._def.url; }\n get display() { return this._def.ui.display || 'auto'; } // bad. just normalize the type earlier\n get startEditable() { return this._def.ui.startEditable; }\n get durationEditable() { return this._def.ui.durationEditable; }\n get constraint() { return this._def.ui.constraints[0] || null; }\n get overlap() { return this._def.ui.overlap; }\n get allow() { return this._def.ui.allows[0] || null; }\n get backgroundColor() { return this._def.ui.backgroundColor; }\n get borderColor() { return this._def.ui.borderColor; }\n get textColor() { return this._def.ui.textColor; }\n // NOTE: user can't modify these because Object.freeze was called in event-def parsing\n get classNames() { return this._def.ui.classNames; }\n get extendedProps() { return this._def.extendedProps; }\n toPlainObject(settings = {}) {\n let def = this._def;\n let { ui } = def;\n let { startStr, endStr } = this;\n let res = {\n allDay: def.allDay,\n };\n if (def.title) {\n res.title = def.title;\n }\n if (startStr) {\n res.start = startStr;\n }\n if (endStr) {\n res.end = endStr;\n }\n if (def.publicId) {\n res.id = def.publicId;\n }\n if (def.groupId) {\n res.groupId = def.groupId;\n }\n if (def.url) {\n res.url = def.url;\n }\n if (ui.display && ui.display !== 'auto') {\n res.display = ui.display;\n }\n // TODO: what about recurring-event properties???\n // TODO: include startEditable/durationEditable/constraint/overlap/allow\n if (settings.collapseColor && ui.backgroundColor && ui.backgroundColor === ui.borderColor) {\n res.color = ui.backgroundColor;\n }\n else {\n if (ui.backgroundColor) {\n res.backgroundColor = ui.backgroundColor;\n }\n if (ui.borderColor) {\n res.borderColor = ui.borderColor;\n }\n }\n if (ui.textColor) {\n res.textColor = ui.textColor;\n }\n if (ui.classNames.length) {\n res.classNames = ui.classNames;\n }\n if (Object.keys(def.extendedProps).length) {\n if (settings.collapseExtendedProps) {\n Object.assign(res, def.extendedProps);\n }\n else {\n res.extendedProps = def.extendedProps;\n }\n }\n return res;\n }\n toJSON() {\n return this.toPlainObject();\n }\n}\nfunction eventApiToStore(eventApi) {\n let def = eventApi._def;\n let instance = eventApi._instance;\n return {\n defs: { [def.defId]: def },\n instances: instance\n ? { [instance.instanceId]: instance }\n : {},\n };\n}\nfunction buildEventApis(eventStore, context, excludeInstance) {\n let { defs, instances } = eventStore;\n let eventApis = [];\n let excludeInstanceId = excludeInstance ? excludeInstance.instanceId : '';\n for (let id in instances) {\n let instance = instances[id];\n let def = defs[instance.defId];\n if (instance.instanceId !== excludeInstanceId) {\n eventApis.push(new EventImpl(context, def, instance));\n }\n }\n return eventApis;\n}\n\n/*\nSpecifying nextDayThreshold signals that all-day ranges should be sliced.\n*/\nfunction sliceEventStore(eventStore, eventUiBases, framingRange, nextDayThreshold) {\n let inverseBgByGroupId = {};\n let inverseBgByDefId = {};\n let defByGroupId = {};\n let bgRanges = [];\n let fgRanges = [];\n let eventUis = compileEventUis(eventStore.defs, eventUiBases);\n for (let defId in eventStore.defs) {\n let def = eventStore.defs[defId];\n let ui = eventUis[def.defId];\n if (ui.display === 'inverse-background') {\n if (def.groupId) {\n inverseBgByGroupId[def.groupId] = [];\n if (!defByGroupId[def.groupId]) {\n defByGroupId[def.groupId] = def;\n }\n }\n else {\n inverseBgByDefId[defId] = [];\n }\n }\n }\n for (let instanceId in eventStore.instances) {\n let instance = eventStore.instances[instanceId];\n let def = eventStore.defs[instance.defId];\n let ui = eventUis[def.defId];\n let origRange = instance.range;\n let normalRange = (!def.allDay && nextDayThreshold) ?\n computeVisibleDayRange(origRange, nextDayThreshold) :\n origRange;\n let slicedRange = intersectRanges(normalRange, framingRange);\n if (slicedRange) {\n if (ui.display === 'inverse-background') {\n if (def.groupId) {\n inverseBgByGroupId[def.groupId].push(slicedRange);\n }\n else {\n inverseBgByDefId[instance.defId].push(slicedRange);\n }\n }\n else if (ui.display !== 'none') {\n (ui.display === 'background' ? bgRanges : fgRanges).push({\n def,\n ui,\n instance,\n range: slicedRange,\n isStart: normalRange.start && normalRange.start.valueOf() === slicedRange.start.valueOf(),\n isEnd: normalRange.end && normalRange.end.valueOf() === slicedRange.end.valueOf(),\n });\n }\n }\n }\n for (let groupId in inverseBgByGroupId) { // BY GROUP\n let ranges = inverseBgByGroupId[groupId];\n let invertedRanges = invertRanges(ranges, framingRange);\n for (let invertedRange of invertedRanges) {\n let def = defByGroupId[groupId];\n let ui = eventUis[def.defId];\n bgRanges.push({\n def,\n ui,\n instance: null,\n range: invertedRange,\n isStart: false,\n isEnd: false,\n });\n }\n }\n for (let defId in inverseBgByDefId) {\n let ranges = inverseBgByDefId[defId];\n let invertedRanges = invertRanges(ranges, framingRange);\n for (let invertedRange of invertedRanges) {\n bgRanges.push({\n def: eventStore.defs[defId],\n ui: eventUis[defId],\n instance: null,\n range: invertedRange,\n isStart: false,\n isEnd: false,\n });\n }\n }\n return { bg: bgRanges, fg: fgRanges };\n}\nfunction hasBgRendering(def) {\n return def.ui.display === 'background' || def.ui.display === 'inverse-background';\n}\nfunction setElSeg(el, seg) {\n el.fcSeg = seg;\n}\nfunction getElSeg(el) {\n return el.fcSeg ||\n el.parentNode.fcSeg || // for the harness\n null;\n}\n// event ui computation\nfunction compileEventUis(eventDefs, eventUiBases) {\n return mapHash(eventDefs, (eventDef) => compileEventUi(eventDef, eventUiBases));\n}\nfunction compileEventUi(eventDef, eventUiBases) {\n let uis = [];\n if (eventUiBases['']) {\n uis.push(eventUiBases['']);\n }\n if (eventUiBases[eventDef.defId]) {\n uis.push(eventUiBases[eventDef.defId]);\n }\n uis.push(eventDef.ui);\n return combineEventUis(uis);\n}\nfunction sortEventSegs(segs, eventOrderSpecs) {\n let objs = segs.map(buildSegCompareObj);\n objs.sort((obj0, obj1) => compareByFieldSpecs(obj0, obj1, eventOrderSpecs));\n return objs.map((c) => c._seg);\n}\n// returns a object with all primitive props that can be compared\nfunction buildSegCompareObj(seg) {\n let { eventRange } = seg;\n let eventDef = eventRange.def;\n let range = eventRange.instance ? eventRange.instance.range : eventRange.range;\n let start = range.start ? range.start.valueOf() : 0; // TODO: better support for open-range events\n let end = range.end ? range.end.valueOf() : 0; // \"\n return Object.assign(Object.assign(Object.assign({}, eventDef.extendedProps), eventDef), { id: eventDef.publicId, start,\n end, duration: end - start, allDay: Number(eventDef.allDay), _seg: seg });\n}\nfunction computeSegDraggable(seg, context) {\n let { pluginHooks } = context;\n let transformers = pluginHooks.isDraggableTransformers;\n let { def, ui } = seg.eventRange;\n let val = ui.startEditable;\n for (let transformer of transformers) {\n val = transformer(val, def, ui, context);\n }\n return val;\n}\nfunction computeSegStartResizable(seg, context) {\n return seg.isStart && seg.eventRange.ui.durationEditable && context.options.eventResizableFromStart;\n}\nfunction computeSegEndResizable(seg, context) {\n return seg.isEnd && seg.eventRange.ui.durationEditable;\n}\nfunction buildSegTimeText(seg, timeFormat, context, defaultDisplayEventTime, // defaults to true\ndefaultDisplayEventEnd, // defaults to true\nstartOverride, endOverride) {\n let { dateEnv, options } = context;\n let { displayEventTime, displayEventEnd } = options;\n let eventDef = seg.eventRange.def;\n let eventInstance = seg.eventRange.instance;\n if (displayEventTime == null) {\n displayEventTime = defaultDisplayEventTime !== false;\n }\n if (displayEventEnd == null) {\n displayEventEnd = defaultDisplayEventEnd !== false;\n }\n let wholeEventStart = eventInstance.range.start;\n let wholeEventEnd = eventInstance.range.end;\n let segStart = startOverride || seg.start || seg.eventRange.range.start;\n let segEnd = endOverride || seg.end || seg.eventRange.range.end;\n let isStartDay = startOfDay(wholeEventStart).valueOf() === startOfDay(segStart).valueOf();\n let isEndDay = startOfDay(addMs(wholeEventEnd, -1)).valueOf() === startOfDay(addMs(segEnd, -1)).valueOf();\n if (displayEventTime && !eventDef.allDay && (isStartDay || isEndDay)) {\n segStart = isStartDay ? wholeEventStart : segStart;\n segEnd = isEndDay ? wholeEventEnd : segEnd;\n if (displayEventEnd && eventDef.hasEnd) {\n return dateEnv.formatRange(segStart, segEnd, timeFormat, {\n forcedStartTzo: startOverride ? null : eventInstance.forcedStartTzo,\n forcedEndTzo: endOverride ? null : eventInstance.forcedEndTzo,\n });\n }\n return dateEnv.format(segStart, timeFormat, {\n forcedTzo: startOverride ? null : eventInstance.forcedStartTzo, // nooooo, same\n });\n }\n return '';\n}\nfunction getSegMeta(seg, todayRange, nowDate) {\n let segRange = seg.eventRange.range;\n return {\n isPast: segRange.end <= (nowDate || todayRange.start),\n isFuture: segRange.start >= (nowDate || todayRange.end),\n isToday: todayRange && rangeContainsMarker(todayRange, segRange.start),\n };\n}\nfunction getEventClassNames(props) {\n let classNames = ['fc-event'];\n if (props.isMirror) {\n classNames.push('fc-event-mirror');\n }\n if (props.isDraggable) {\n classNames.push('fc-event-draggable');\n }\n if (props.isStartResizable || props.isEndResizable) {\n classNames.push('fc-event-resizable');\n }\n if (props.isDragging) {\n classNames.push('fc-event-dragging');\n }\n if (props.isResizing) {\n classNames.push('fc-event-resizing');\n }\n if (props.isSelected) {\n classNames.push('fc-event-selected');\n }\n if (props.isStart) {\n classNames.push('fc-event-start');\n }\n if (props.isEnd) {\n classNames.push('fc-event-end');\n }\n if (props.isPast) {\n classNames.push('fc-event-past');\n }\n if (props.isToday) {\n classNames.push('fc-event-today');\n }\n if (props.isFuture) {\n classNames.push('fc-event-future');\n }\n return classNames;\n}\nfunction buildEventRangeKey(eventRange) {\n return eventRange.instance\n ? eventRange.instance.instanceId\n : `${eventRange.def.defId}:${eventRange.range.start.toISOString()}`;\n // inverse-background events don't have specific instances. TODO: better solution\n}\nfunction getSegAnchorAttrs(seg, context) {\n let { def, instance } = seg.eventRange;\n let { url } = def;\n if (url) {\n return { href: url };\n }\n let { emitter, options } = context;\n let { eventInteractive } = options;\n if (eventInteractive == null) {\n eventInteractive = def.interactive;\n if (eventInteractive == null) {\n eventInteractive = Boolean(emitter.hasHandlers('eventClick'));\n }\n }\n // mock what happens in EventClicking\n if (eventInteractive) {\n // only attach keyboard-related handlers because click handler is already done in EventClicking\n return createAriaKeyboardAttrs((ev) => {\n emitter.trigger('eventClick', {\n el: ev.target,\n event: new EventImpl(context, def, instance),\n jsEvent: ev,\n view: context.viewApi,\n });\n });\n }\n return {};\n}\n\nconst STANDARD_PROPS = {\n start: identity,\n end: identity,\n allDay: Boolean,\n};\nfunction parseDateSpan(raw, dateEnv, defaultDuration) {\n let span = parseOpenDateSpan(raw, dateEnv);\n let { range } = span;\n if (!range.start) {\n return null;\n }\n if (!range.end) {\n if (defaultDuration == null) {\n return null;\n }\n range.end = dateEnv.add(range.start, defaultDuration);\n }\n return span;\n}\n/*\nTODO: somehow combine with parseRange?\nWill return null if the start/end props were present but parsed invalidly.\n*/\nfunction parseOpenDateSpan(raw, dateEnv) {\n let { refined: standardProps, extra } = refineProps(raw, STANDARD_PROPS);\n let startMeta = standardProps.start ? dateEnv.createMarkerMeta(standardProps.start) : null;\n let endMeta = standardProps.end ? dateEnv.createMarkerMeta(standardProps.end) : null;\n let { allDay } = standardProps;\n if (allDay == null) {\n allDay = (startMeta && startMeta.isTimeUnspecified) &&\n (!endMeta || endMeta.isTimeUnspecified);\n }\n return Object.assign({ range: {\n start: startMeta ? startMeta.marker : null,\n end: endMeta ? endMeta.marker : null,\n }, allDay }, extra);\n}\nfunction isDateSpansEqual(span0, span1) {\n return rangesEqual(span0.range, span1.range) &&\n span0.allDay === span1.allDay &&\n isSpanPropsEqual(span0, span1);\n}\n// the NON-DATE-RELATED props\nfunction isSpanPropsEqual(span0, span1) {\n for (let propName in span1) {\n if (propName !== 'range' && propName !== 'allDay') {\n if (span0[propName] !== span1[propName]) {\n return false;\n }\n }\n }\n // are there any props that span0 has that span1 DOESN'T have?\n // both have range/allDay, so no need to special-case.\n for (let propName in span0) {\n if (!(propName in span1)) {\n return false;\n }\n }\n return true;\n}\nfunction buildDateSpanApi(span, dateEnv) {\n return Object.assign(Object.assign({}, buildRangeApi(span.range, dateEnv, span.allDay)), { allDay: span.allDay });\n}\nfunction buildRangeApiWithTimeZone(range, dateEnv, omitTime) {\n return Object.assign(Object.assign({}, buildRangeApi(range, dateEnv, omitTime)), { timeZone: dateEnv.timeZone });\n}\nfunction buildRangeApi(range, dateEnv, omitTime) {\n return {\n start: dateEnv.toDate(range.start),\n end: dateEnv.toDate(range.end),\n startStr: dateEnv.formatIso(range.start, { omitTime }),\n endStr: dateEnv.formatIso(range.end, { omitTime }),\n };\n}\nfunction fabricateEventRange(dateSpan, eventUiBases, context) {\n let res = refineEventDef({ editable: false }, context);\n let def = parseEventDef(res.refined, res.extra, '', // sourceId\n dateSpan.allDay, true, // hasEnd\n context);\n return {\n def,\n ui: compileEventUi(def, eventUiBases),\n instance: createEventInstance(def.defId, dateSpan.range),\n range: dateSpan.range,\n isStart: true,\n isEnd: true,\n };\n}\n\n/*\ngiven a function that resolves a result asynchronously.\nthe function can either call passed-in success and failure callbacks,\nor it can return a promise.\nif you need to pass additional params to func, bind them first.\n*/\nfunction unpromisify(func, normalizedSuccessCallback, normalizedFailureCallback) {\n // guard against success/failure callbacks being called more than once\n // and guard against a promise AND callback being used together.\n let isResolved = false;\n let wrappedSuccess = function (res) {\n if (!isResolved) {\n isResolved = true;\n normalizedSuccessCallback(res);\n }\n };\n let wrappedFailure = function (error) {\n if (!isResolved) {\n isResolved = true;\n normalizedFailureCallback(error);\n }\n };\n let res = func(wrappedSuccess, wrappedFailure);\n if (res && typeof res.then === 'function') {\n res.then(wrappedSuccess, wrappedFailure);\n }\n}\n\nclass JsonRequestError extends Error {\n constructor(message, response) {\n super(message);\n this.response = response;\n }\n}\nfunction requestJson(method, url, params) {\n method = method.toUpperCase();\n const fetchOptions = {\n method,\n };\n if (method === 'GET') {\n url += (url.indexOf('?') === -1 ? '?' : '&') +\n new URLSearchParams(params);\n }\n else {\n fetchOptions.body = new URLSearchParams(params);\n fetchOptions.headers = {\n 'Content-Type': 'application/x-www-form-urlencoded',\n };\n }\n return fetch(url, fetchOptions).then((fetchRes) => {\n if (fetchRes.ok) {\n return fetchRes.json().then((parsedResponse) => {\n return [parsedResponse, fetchRes];\n }, () => {\n throw new JsonRequestError('Failure parsing JSON', fetchRes);\n });\n }\n else {\n throw new JsonRequestError('Request failed', fetchRes);\n }\n });\n}\n\nlet canVGrowWithinCell;\nfunction getCanVGrowWithinCell() {\n if (canVGrowWithinCell == null) {\n canVGrowWithinCell = computeCanVGrowWithinCell();\n }\n return canVGrowWithinCell;\n}\nfunction computeCanVGrowWithinCell() {\n // for SSR, because this function is call immediately at top-level\n // TODO: just make this logic execute top-level, immediately, instead of doing lazily\n if (typeof document === 'undefined') {\n return true;\n }\n let el = document.createElement('div');\n el.style.position = 'absolute';\n el.style.top = '0px';\n el.style.left = '0px';\n el.innerHTML = '<table><tr><td><div></div></td></tr></table>';\n el.querySelector('table').style.height = '100px';\n el.querySelector('div').style.height = '100%';\n document.body.appendChild(el);\n let div = el.querySelector('div');\n let possible = div.offsetHeight > 0;\n document.body.removeChild(el);\n return possible;\n}\n\nclass CalendarRoot extends BaseComponent {\n constructor() {\n super(...arguments);\n this.state = {\n forPrint: false,\n };\n this.handleBeforePrint = () => {\n flushSync(() => {\n this.setState({ forPrint: true });\n });\n };\n this.handleAfterPrint = () => {\n flushSync(() => {\n this.setState({ forPrint: false });\n });\n };\n }\n render() {\n let { props } = this;\n let { options } = props;\n let { forPrint } = this.state;\n let isHeightAuto = forPrint || options.height === 'auto' || options.contentHeight === 'auto';\n let height = (!isHeightAuto && options.height != null) ? options.height : '';\n let classNames = [\n 'fc',\n forPrint ? 'fc-media-print' : 'fc-media-screen',\n `fc-direction-${options.direction}`,\n props.theme.getClass('root'),\n ];\n if (!getCanVGrowWithinCell()) {\n classNames.push('fc-liquid-hack');\n }\n return props.children(classNames, height, isHeightAuto, forPrint);\n }\n componentDidMount() {\n let { emitter } = this.props;\n emitter.on('_beforeprint', this.handleBeforePrint);\n emitter.on('_afterprint', this.handleAfterPrint);\n }\n componentWillUnmount() {\n let { emitter } = this.props;\n emitter.off('_beforeprint', this.handleBeforePrint);\n emitter.off('_afterprint', this.handleAfterPrint);\n }\n}\n\nclass Interaction {\n constructor(settings) {\n this.component = settings.component;\n this.isHitComboAllowed = settings.isHitComboAllowed || null;\n }\n destroy() {\n }\n}\nfunction parseInteractionSettings(component, input) {\n return {\n component,\n el: input.el,\n useEventCenter: input.useEventCenter != null ? input.useEventCenter : true,\n isHitComboAllowed: input.isHitComboAllowed || null,\n };\n}\nfunction interactionSettingsToStore(settings) {\n return {\n [settings.component.uid]: settings,\n };\n}\n// global state\nconst interactionSettingsStore = {};\n\nclass NowTimer extends Component {\n constructor(props, context) {\n super(props, context);\n this.handleRefresh = () => {\n let timing = this.computeTiming();\n if (timing.state.nowDate.valueOf() !== this.state.nowDate.valueOf()) {\n this.setState(timing.state);\n }\n this.clearTimeout();\n this.setTimeout(timing.waitMs);\n };\n this.handleVisibilityChange = () => {\n if (!document.hidden) {\n this.handleRefresh();\n }\n };\n this.state = this.computeTiming().state;\n }\n render() {\n let { props, state } = this;\n return props.children(state.nowDate, state.todayRange);\n }\n componentDidMount() {\n this.setTimeout();\n this.context.nowManager.addResetListener(this.handleRefresh);\n // fired tab becomes visible after being hidden\n document.addEventListener('visibilitychange', this.handleVisibilityChange);\n }\n componentDidUpdate(prevProps) {\n if (prevProps.unit !== this.props.unit) {\n this.clearTimeout();\n this.setTimeout();\n }\n }\n componentWillUnmount() {\n this.clearTimeout();\n this.context.nowManager.removeResetListener(this.handleRefresh);\n document.removeEventListener('visibilitychange', this.handleVisibilityChange);\n }\n computeTiming() {\n let { props, context } = this;\n let unroundedNow = context.nowManager.getDateMarker();\n let { nowIndicatorSnap } = context.options;\n if (nowIndicatorSnap === 'auto') {\n nowIndicatorSnap =\n // large unit?\n /year|month|week|day/.test(props.unit) ||\n // if slotDuration 30 mins for example, would NOT appear to snap (legacy behavior)\n (props.unitValue || 1) === 1;\n }\n let nowDate;\n let waitMs;\n if (nowIndicatorSnap) {\n nowDate = context.dateEnv.startOf(unroundedNow, props.unit); // aka currentUnitStart\n let nextUnitStart = context.dateEnv.add(nowDate, createDuration(1, props.unit));\n waitMs = nextUnitStart.valueOf() - unroundedNow.valueOf();\n }\n else {\n nowDate = unroundedNow;\n waitMs = 1000 * 60; // 1 minute\n }\n // there is a max setTimeout ms value (https://stackoverflow.com/a/3468650/96342)\n // ensure no longer than a day\n waitMs = Math.min(1000 * 60 * 60 * 24, waitMs);\n return {\n state: { nowDate, todayRange: buildDayRange(nowDate) },\n waitMs,\n };\n }\n setTimeout(waitMs = this.computeTiming().waitMs) {\n // NOTE: timeout could take longer than expected if tab sleeps,\n // which is why we listen to 'visibilitychange'\n this.timeoutId = setTimeout(() => {\n // NOTE: timeout could also return *earlier* than expected, and we need to wait 2 ms more\n // This is why use use same waitMs from computeTiming, so we don't skip an interval while\n // .setState() is executing\n const timing = this.computeTiming();\n this.setState(timing.state, () => {\n this.setTimeout(timing.waitMs);\n });\n }, waitMs);\n }\n clearTimeout() {\n if (this.timeoutId) {\n clearTimeout(this.timeoutId);\n }\n }\n}\nNowTimer.contextType = ViewContextType;\nfunction buildDayRange(date) {\n let start = startOfDay(date);\n let end = addDays(start, 1);\n return { start, end };\n}\n\nclass CalendarImpl {\n getCurrentData() {\n return this.currentDataManager.getCurrentData();\n }\n dispatch(action) {\n this.currentDataManager.dispatch(action);\n }\n get view() { return this.getCurrentData().viewApi; }\n batchRendering(callback) {\n callback();\n }\n updateSize() {\n this.trigger('_resize', true);\n }\n // Options\n // -----------------------------------------------------------------------------------------------------------------\n setOption(name, val) {\n this.dispatch({\n type: 'SET_OPTION',\n optionName: name,\n rawOptionValue: val,\n });\n }\n getOption(name) {\n return this.currentDataManager.currentCalendarOptionsInput[name];\n }\n getAvailableLocaleCodes() {\n return Object.keys(this.getCurrentData().availableRawLocales);\n }\n // Trigger\n // -----------------------------------------------------------------------------------------------------------------\n on(handlerName, handler) {\n let { currentDataManager } = this;\n if (currentDataManager.currentCalendarOptionsRefiners[handlerName]) {\n currentDataManager.emitter.on(handlerName, handler);\n }\n else {\n console.warn(`Unknown listener name '${handlerName}'`);\n }\n }\n off(handlerName, handler) {\n this.currentDataManager.emitter.off(handlerName, handler);\n }\n // not meant for public use\n trigger(handlerName, ...args) {\n this.currentDataManager.emitter.trigger(handlerName, ...args);\n }\n // View\n // -----------------------------------------------------------------------------------------------------------------\n changeView(viewType, dateOrRange) {\n this.batchRendering(() => {\n this.unselect();\n if (dateOrRange) {\n if (dateOrRange.start && dateOrRange.end) { // a range\n this.dispatch({\n type: 'CHANGE_VIEW_TYPE',\n viewType,\n });\n this.dispatch({\n type: 'SET_OPTION',\n optionName: 'visibleRange',\n rawOptionValue: dateOrRange,\n });\n }\n else {\n let { dateEnv } = this.getCurrentData();\n this.dispatch({\n type: 'CHANGE_VIEW_TYPE',\n viewType,\n dateMarker: dateEnv.createMarker(dateOrRange),\n });\n }\n }\n else {\n this.dispatch({\n type: 'CHANGE_VIEW_TYPE',\n viewType,\n });\n }\n });\n }\n // Forces navigation to a view for the given date.\n // `viewType` can be a specific view name or a generic one like \"week\" or \"day\".\n // needs to change\n zoomTo(dateMarker, viewType) {\n let state = this.getCurrentData();\n let spec;\n viewType = viewType || 'day'; // day is default zoom\n spec = state.viewSpecs[viewType] || this.getUnitViewSpec(viewType);\n this.unselect();\n if (spec) {\n this.dispatch({\n type: 'CHANGE_VIEW_TYPE',\n viewType: spec.type,\n dateMarker,\n });\n }\n else {\n this.dispatch({\n type: 'CHANGE_DATE',\n dateMarker,\n });\n }\n }\n // Given a duration singular unit, like \"week\" or \"day\", finds a matching view spec.\n // Preference is given to views that have corresponding buttons.\n getUnitViewSpec(unit) {\n let { viewSpecs, toolbarConfig } = this.getCurrentData();\n let viewTypes = [].concat(toolbarConfig.header ? toolbarConfig.header.viewsWithButtons : [], toolbarConfig.footer ? toolbarConfig.footer.viewsWithButtons : []);\n let i;\n let spec;\n for (let viewType in viewSpecs) {\n viewTypes.push(viewType);\n }\n for (i = 0; i < viewTypes.length; i += 1) {\n spec = viewSpecs[viewTypes[i]];\n if (spec) {\n if (spec.singleUnit === unit) {\n return spec;\n }\n }\n }\n return null;\n }\n // Current Date\n // -----------------------------------------------------------------------------------------------------------------\n prev() {\n this.unselect();\n this.dispatch({ type: 'PREV' });\n }\n next() {\n this.unselect();\n this.dispatch({ type: 'NEXT' });\n }\n prevYear() {\n let state = this.getCurrentData();\n this.unselect();\n this.dispatch({\n type: 'CHANGE_DATE',\n dateMarker: state.dateEnv.addYears(state.currentDate, -1),\n });\n }\n nextYear() {\n let state = this.getCurrentData();\n this.unselect();\n this.dispatch({\n type: 'CHANGE_DATE',\n dateMarker: state.dateEnv.addYears(state.currentDate, 1),\n });\n }\n today() {\n let state = this.getCurrentData();\n this.unselect();\n this.dispatch({\n type: 'CHANGE_DATE',\n dateMarker: state.nowManager.getDateMarker(),\n });\n }\n gotoDate(zonedDateInput) {\n let state = this.getCurrentData();\n this.unselect();\n this.dispatch({\n type: 'CHANGE_DATE',\n dateMarker: state.dateEnv.createMarker(zonedDateInput),\n });\n }\n incrementDate(deltaInput) {\n let state = this.getCurrentData();\n let delta = createDuration(deltaInput);\n if (delta) { // else, warn about invalid input?\n this.unselect();\n this.dispatch({\n type: 'CHANGE_DATE',\n dateMarker: state.dateEnv.add(state.currentDate, delta),\n });\n }\n }\n getDate() {\n let state = this.getCurrentData();\n return state.dateEnv.toDate(state.currentDate);\n }\n // Date Formatting Utils\n // -----------------------------------------------------------------------------------------------------------------\n formatDate(d, formatter) {\n let { dateEnv } = this.getCurrentData();\n return dateEnv.format(dateEnv.createMarker(d), createFormatter(formatter));\n }\n // `settings` is for formatter AND isEndExclusive\n formatRange(d0, d1, settings) {\n let { dateEnv } = this.getCurrentData();\n return dateEnv.formatRange(dateEnv.createMarker(d0), dateEnv.createMarker(d1), createFormatter(settings), settings);\n }\n formatIso(d, omitTime) {\n let { dateEnv } = this.getCurrentData();\n return dateEnv.formatIso(dateEnv.createMarker(d), { omitTime });\n }\n // Date Selection / Event Selection / DayClick\n // -----------------------------------------------------------------------------------------------------------------\n select(dateOrObj, endDate) {\n let selectionInput;\n if (endDate == null) {\n if (dateOrObj.start != null) {\n selectionInput = dateOrObj;\n }\n else {\n selectionInput = {\n start: dateOrObj,\n end: null,\n };\n }\n }\n else {\n selectionInput = {\n start: dateOrObj,\n end: endDate,\n };\n }\n let state = this.getCurrentData();\n let selection = parseDateSpan(selectionInput, state.dateEnv, createDuration({ days: 1 }));\n if (selection) { // throw parse error otherwise?\n this.dispatch({ type: 'SELECT_DATES', selection });\n triggerDateSelect(selection, null, state);\n }\n }\n unselect(pev) {\n let state = this.getCurrentData();\n if (state.dateSelection) {\n this.dispatch({ type: 'UNSELECT_DATES' });\n triggerDateUnselect(pev, state);\n }\n }\n // Public Events API\n // -----------------------------------------------------------------------------------------------------------------\n addEvent(eventInput, sourceInput) {\n if (eventInput instanceof EventImpl) {\n let def = eventInput._def;\n let instance = eventInput._instance;\n let currentData = this.getCurrentData();\n // not already present? don't want to add an old snapshot\n if (!currentData.eventStore.defs[def.defId]) {\n this.dispatch({\n type: 'ADD_EVENTS',\n eventStore: eventTupleToStore({ def, instance }), // TODO: better util for two args?\n });\n this.triggerEventAdd(eventInput);\n }\n return eventInput;\n }\n let state = this.getCurrentData();\n let eventSource;\n if (sourceInput instanceof EventSourceImpl) {\n eventSource = sourceInput.internalEventSource;\n }\n else if (typeof sourceInput === 'boolean') {\n if (sourceInput) { // true. part of the first event source\n [eventSource] = hashValuesToArray(state.eventSources);\n }\n }\n else if (sourceInput != null) { // an ID. accepts a number too\n let sourceApi = this.getEventSourceById(sourceInput); // TODO: use an internal function\n if (!sourceApi) {\n console.warn(`Could not find an event source with ID \"${sourceInput}\"`); // TODO: test\n return null;\n }\n eventSource = sourceApi.internalEventSource;\n }\n let tuple = parseEvent(eventInput, eventSource, state, false);\n if (tuple) {\n let newEventApi = new EventImpl(state, tuple.def, tuple.def.recurringDef ? null : tuple.instance);\n this.dispatch({\n type: 'ADD_EVENTS',\n eventStore: eventTupleToStore(tuple),\n });\n this.triggerEventAdd(newEventApi);\n return newEventApi;\n }\n return null;\n }\n triggerEventAdd(eventApi) {\n let { emitter } = this.getCurrentData();\n emitter.trigger('eventAdd', {\n event: eventApi,\n relatedEvents: [],\n revert: () => {\n this.dispatch({\n type: 'REMOVE_EVENTS',\n eventStore: eventApiToStore(eventApi),\n });\n },\n });\n }\n // TODO: optimize\n getEventById(id) {\n let state = this.getCurrentData();\n let { defs, instances } = state.eventStore;\n id = String(id);\n for (let defId in defs) {\n let def = defs[defId];\n if (def.publicId === id) {\n if (def.recurringDef) {\n return new EventImpl(state, def, null);\n }\n for (let instanceId in instances) {\n let instance = instances[instanceId];\n if (instance.defId === def.defId) {\n return new EventImpl(state, def, instance);\n }\n }\n }\n }\n return null;\n }\n getEvents() {\n let currentData = this.getCurrentData();\n return buildEventApis(currentData.eventStore, currentData);\n }\n removeAllEvents() {\n this.dispatch({ type: 'REMOVE_ALL_EVENTS' });\n }\n // Public Event Sources API\n // -----------------------------------------------------------------------------------------------------------------\n getEventSources() {\n let state = this.getCurrentData();\n let sourceHash = state.eventSources;\n let sourceApis = [];\n for (let internalId in sourceHash) {\n sourceApis.push(new EventSourceImpl(state, sourceHash[internalId]));\n }\n return sourceApis;\n }\n getEventSourceById(id) {\n let state = this.getCurrentData();\n let sourceHash = state.eventSources;\n id = String(id);\n for (let sourceId in sourceHash) {\n if (sourceHash[sourceId].publicId === id) {\n return new EventSourceImpl(state, sourceHash[sourceId]);\n }\n }\n return null;\n }\n addEventSource(sourceInput) {\n let state = this.getCurrentData();\n if (sourceInput instanceof EventSourceImpl) {\n // not already present? don't want to add an old snapshot\n if (!state.eventSources[sourceInput.internalEventSource.sourceId]) {\n this.dispatch({\n type: 'ADD_EVENT_SOURCES',\n sources: [sourceInput.internalEventSource],\n });\n }\n return sourceInput;\n }\n let eventSource = parseEventSource(sourceInput, state);\n if (eventSource) { // TODO: error otherwise?\n this.dispatch({ type: 'ADD_EVENT_SOURCES', sources: [eventSource] });\n return new EventSourceImpl(state, eventSource);\n }\n return null;\n }\n removeAllEventSources() {\n this.dispatch({ type: 'REMOVE_ALL_EVENT_SOURCES' });\n }\n refetchEvents() {\n this.dispatch({ type: 'FETCH_EVENT_SOURCES', isRefetch: true });\n }\n // Scroll\n // -----------------------------------------------------------------------------------------------------------------\n scrollToTime(timeInput) {\n let time = createDuration(timeInput);\n if (time) {\n this.trigger('_scrollRequest', { time });\n }\n }\n}\n\nfunction pointInsideRect(point, rect) {\n return point.left >= rect.left &&\n point.left < rect.right &&\n point.top >= rect.top &&\n point.top < rect.bottom;\n}\n// Returns a new rectangle that is the intersection of the two rectangles. If they don't intersect, returns false\nfunction intersectRects(rect1, rect2) {\n let res = {\n left: Math.max(rect1.left, rect2.left),\n right: Math.min(rect1.right, rect2.right),\n top: Math.max(rect1.top, rect2.top),\n bottom: Math.min(rect1.bottom, rect2.bottom),\n };\n if (res.left < res.right && res.top < res.bottom) {\n return res;\n }\n return false;\n}\nfunction translateRect(rect, deltaX, deltaY) {\n return {\n left: rect.left + deltaX,\n right: rect.right + deltaX,\n top: rect.top + deltaY,\n bottom: rect.bottom + deltaY,\n };\n}\n// Returns a new point that will have been moved to reside within the given rectangle\nfunction constrainPoint(point, rect) {\n return {\n left: Math.min(Math.max(point.left, rect.left), rect.right),\n top: Math.min(Math.max(point.top, rect.top), rect.bottom),\n };\n}\n// Returns a point that is the center of the given rectangle\nfunction getRectCenter(rect) {\n return {\n left: (rect.left + rect.right) / 2,\n top: (rect.top + rect.bottom) / 2,\n };\n}\n// Subtracts point2's coordinates from point1's coordinates, returning a delta\nfunction diffPoints(point1, point2) {\n return {\n left: point1.left - point2.left,\n top: point1.top - point2.top,\n };\n}\n\nconst EMPTY_EVENT_STORE = createEmptyEventStore(); // for purecomponents. TODO: keep elsewhere\nclass Splitter {\n constructor() {\n this.getKeysForEventDefs = memoize(this._getKeysForEventDefs);\n this.splitDateSelection = memoize(this._splitDateSpan);\n this.splitEventStore = memoize(this._splitEventStore);\n this.splitIndividualUi = memoize(this._splitIndividualUi);\n this.splitEventDrag = memoize(this._splitInteraction);\n this.splitEventResize = memoize(this._splitInteraction);\n this.eventUiBuilders = {}; // TODO: typescript protection\n }\n splitProps(props) {\n let keyInfos = this.getKeyInfo(props);\n let defKeys = this.getKeysForEventDefs(props.eventStore);\n let dateSelections = this.splitDateSelection(props.dateSelection);\n let individualUi = this.splitIndividualUi(props.eventUiBases, defKeys); // the individual *bases*\n let eventStores = this.splitEventStore(props.eventStore, defKeys);\n let eventDrags = this.splitEventDrag(props.eventDrag);\n let eventResizes = this.splitEventResize(props.eventResize);\n let splitProps = {};\n this.eventUiBuilders = mapHash(keyInfos, (info, key) => this.eventUiBuilders[key] || memoize(buildEventUiForKey));\n for (let key in keyInfos) {\n let keyInfo = keyInfos[key];\n let eventStore = eventStores[key] || EMPTY_EVENT_STORE;\n let buildEventUi = this.eventUiBuilders[key];\n splitProps[key] = {\n businessHours: keyInfo.businessHours || props.businessHours,\n dateSelection: dateSelections[key] || null,\n eventStore,\n eventUiBases: buildEventUi(props.eventUiBases[''], keyInfo.ui, individualUi[key]),\n eventSelection: eventStore.instances[props.eventSelection] ? props.eventSelection : '',\n eventDrag: eventDrags[key] || null,\n eventResize: eventResizes[key] || null,\n };\n }\n return splitProps;\n }\n _splitDateSpan(dateSpan) {\n let dateSpans = {};\n if (dateSpan) {\n let keys = this.getKeysForDateSpan(dateSpan);\n for (let key of keys) {\n dateSpans[key] = dateSpan;\n }\n }\n return dateSpans;\n }\n _getKeysForEventDefs(eventStore) {\n return mapHash(eventStore.defs, (eventDef) => this.getKeysForEventDef(eventDef));\n }\n _splitEventStore(eventStore, defKeys) {\n let { defs, instances } = eventStore;\n let splitStores = {};\n for (let defId in defs) {\n for (let key of defKeys[defId]) {\n if (!splitStores[key]) {\n splitStores[key] = createEmptyEventStore();\n }\n splitStores[key].defs[defId] = defs[defId];\n }\n }\n for (let instanceId in instances) {\n let instance = instances[instanceId];\n for (let key of defKeys[instance.defId]) {\n if (splitStores[key]) { // must have already been created\n splitStores[key].instances[instanceId] = instance;\n }\n }\n }\n return splitStores;\n }\n _splitIndividualUi(eventUiBases, defKeys) {\n let splitHashes = {};\n for (let defId in eventUiBases) {\n if (defId) { // not the '' key\n for (let key of defKeys[defId]) {\n if (!splitHashes[key]) {\n splitHashes[key] = {};\n }\n splitHashes[key][defId] = eventUiBases[defId];\n }\n }\n }\n return splitHashes;\n }\n _splitInteraction(interaction) {\n let splitStates = {};\n if (interaction) {\n let affectedStores = this._splitEventStore(interaction.affectedEvents, this._getKeysForEventDefs(interaction.affectedEvents));\n // can't rely on defKeys because event data is mutated\n let mutatedKeysByDefId = this._getKeysForEventDefs(interaction.mutatedEvents);\n let mutatedStores = this._splitEventStore(interaction.mutatedEvents, mutatedKeysByDefId);\n let populate = (key) => {\n if (!splitStates[key]) {\n splitStates[key] = {\n affectedEvents: affectedStores[key] || EMPTY_EVENT_STORE,\n mutatedEvents: mutatedStores[key] || EMPTY_EVENT_STORE,\n isEvent: interaction.isEvent,\n };\n }\n };\n for (let key in affectedStores) {\n populate(key);\n }\n for (let key in mutatedStores) {\n populate(key);\n }\n }\n return splitStates;\n }\n}\nfunction buildEventUiForKey(allUi, eventUiForKey, individualUi) {\n let baseParts = [];\n if (allUi) {\n baseParts.push(allUi);\n }\n if (eventUiForKey) {\n baseParts.push(eventUiForKey);\n }\n let stuff = {\n '': combineEventUis(baseParts),\n };\n if (individualUi) {\n Object.assign(stuff, individualUi);\n }\n return stuff;\n}\n\nfunction getDateMeta(date, todayRange, nowDate, dateProfile) {\n return {\n dow: date.getUTCDay(),\n isDisabled: Boolean(dateProfile && (!dateProfile.activeRange || !rangeContainsMarker(dateProfile.activeRange, date))),\n isOther: Boolean(dateProfile && !rangeContainsMarker(dateProfile.currentRange, date)),\n isToday: Boolean(todayRange && rangeContainsMarker(todayRange, date)),\n isPast: Boolean(nowDate ? (date < nowDate) : todayRange ? (date < todayRange.start) : false),\n isFuture: Boolean(nowDate ? (date > nowDate) : todayRange ? (date >= todayRange.end) : false),\n };\n}\nfunction getDayClassNames(meta, theme) {\n let classNames = [\n 'fc-day',\n `fc-day-${DAY_IDS[meta.dow]}`,\n ];\n if (meta.isDisabled) {\n classNames.push('fc-day-disabled');\n }\n else {\n if (meta.isToday) {\n classNames.push('fc-day-today');\n classNames.push(theme.getClass('today'));\n }\n if (meta.isPast) {\n classNames.push('fc-day-past');\n }\n if (meta.isFuture) {\n classNames.push('fc-day-future');\n }\n if (meta.isOther) {\n classNames.push('fc-day-other');\n }\n }\n return classNames;\n}\nfunction getSlotClassNames(meta, theme) {\n let classNames = [\n 'fc-slot',\n `fc-slot-${DAY_IDS[meta.dow]}`,\n ];\n if (meta.isDisabled) {\n classNames.push('fc-slot-disabled');\n }\n else {\n if (meta.isToday) {\n classNames.push('fc-slot-today');\n classNames.push(theme.getClass('today'));\n }\n if (meta.isPast) {\n classNames.push('fc-slot-past');\n }\n if (meta.isFuture) {\n classNames.push('fc-slot-future');\n }\n }\n return classNames;\n}\n\nconst DAY_FORMAT = createFormatter({ year: 'numeric', month: 'long', day: 'numeric' });\nconst WEEK_FORMAT = createFormatter({ week: 'long' });\nfunction buildNavLinkAttrs(context, dateMarker, viewType = 'day', isTabbable = true) {\n const { dateEnv, options, calendarApi } = context;\n let dateStr = dateEnv.format(dateMarker, viewType === 'week' ? WEEK_FORMAT : DAY_FORMAT);\n if (options.navLinks) {\n let zonedDate = dateEnv.toDate(dateMarker);\n const handleInteraction = (ev) => {\n let customAction = viewType === 'day' ? options.navLinkDayClick :\n viewType === 'week' ? options.navLinkWeekClick : null;\n if (typeof customAction === 'function') {\n customAction.call(calendarApi, dateEnv.toDate(dateMarker), ev);\n }\n else {\n if (typeof customAction === 'string') {\n viewType = customAction;\n }\n calendarApi.zoomTo(dateMarker, viewType);\n }\n };\n return Object.assign({ title: formatWithOrdinals(options.navLinkHint, [dateStr, zonedDate], dateStr), 'data-navlink': '' }, (isTabbable\n ? createAriaClickAttrs(handleInteraction)\n : { onClick: handleInteraction }));\n }\n return { 'aria-label': dateStr };\n}\n\nlet _isRtlScrollbarOnLeft = null;\nfunction getIsRtlScrollbarOnLeft() {\n if (_isRtlScrollbarOnLeft === null) {\n _isRtlScrollbarOnLeft = computeIsRtlScrollbarOnLeft();\n }\n return _isRtlScrollbarOnLeft;\n}\nfunction computeIsRtlScrollbarOnLeft() {\n let outerEl = document.createElement('div');\n applyStyle(outerEl, {\n position: 'absolute',\n top: -1000,\n left: 0,\n border: 0,\n padding: 0,\n overflow: 'scroll',\n direction: 'rtl',\n });\n outerEl.innerHTML = '<div></div>';\n document.body.appendChild(outerEl);\n let innerEl = outerEl.firstChild;\n let res = innerEl.getBoundingClientRect().left > outerEl.getBoundingClientRect().left;\n removeElement(outerEl);\n return res;\n}\n\nlet _scrollbarWidths;\nfunction getScrollbarWidths() {\n if (!_scrollbarWidths) {\n _scrollbarWidths = computeScrollbarWidths();\n }\n return _scrollbarWidths;\n}\nfunction computeScrollbarWidths() {\n let el = document.createElement('div');\n el.style.overflow = 'scroll';\n el.style.position = 'absolute';\n el.style.top = '-9999px';\n el.style.left = '-9999px';\n document.body.appendChild(el);\n let res = computeScrollbarWidthsForEl(el);\n document.body.removeChild(el);\n return res;\n}\n// WARNING: will include border\nfunction computeScrollbarWidthsForEl(el) {\n return {\n x: el.offsetHeight - el.clientHeight,\n y: el.offsetWidth - el.clientWidth,\n };\n}\n\nfunction computeEdges(el, getPadding = false) {\n let computedStyle = window.getComputedStyle(el);\n let borderLeft = parseInt(computedStyle.borderLeftWidth, 10) || 0;\n let borderRight = parseInt(computedStyle.borderRightWidth, 10) || 0;\n let borderTop = parseInt(computedStyle.borderTopWidth, 10) || 0;\n let borderBottom = parseInt(computedStyle.borderBottomWidth, 10) || 0;\n let badScrollbarWidths = computeScrollbarWidthsForEl(el); // includes border!\n let scrollbarLeftRight = badScrollbarWidths.y - borderLeft - borderRight;\n let scrollbarBottom = badScrollbarWidths.x - borderTop - borderBottom;\n let res = {\n borderLeft,\n borderRight,\n borderTop,\n borderBottom,\n scrollbarBottom,\n scrollbarLeft: 0,\n scrollbarRight: 0,\n };\n if (getIsRtlScrollbarOnLeft() && computedStyle.direction === 'rtl') { // is the scrollbar on the left side?\n res.scrollbarLeft = scrollbarLeftRight;\n }\n else {\n res.scrollbarRight = scrollbarLeftRight;\n }\n if (getPadding) {\n res.paddingLeft = parseInt(computedStyle.paddingLeft, 10) || 0;\n res.paddingRight = parseInt(computedStyle.paddingRight, 10) || 0;\n res.paddingTop = parseInt(computedStyle.paddingTop, 10) || 0;\n res.paddingBottom = parseInt(computedStyle.paddingBottom, 10) || 0;\n }\n return res;\n}\nfunction computeInnerRect(el, goWithinPadding = false, doFromWindowViewport) {\n let outerRect = doFromWindowViewport ? el.getBoundingClientRect() : computeRect(el);\n let edges = computeEdges(el, goWithinPadding);\n let res = {\n left: outerRect.left + edges.borderLeft + edges.scrollbarLeft,\n right: outerRect.right - edges.borderRight - edges.scrollbarRight,\n top: outerRect.top + edges.borderTop,\n bottom: outerRect.bottom - edges.borderBottom - edges.scrollbarBottom,\n };\n if (goWithinPadding) {\n res.left += edges.paddingLeft;\n res.right -= edges.paddingRight;\n res.top += edges.paddingTop;\n res.bottom -= edges.paddingBottom;\n }\n return res;\n}\nfunction computeRect(el) {\n let rect = el.getBoundingClientRect();\n return {\n left: rect.left + window.scrollX,\n top: rect.top + window.scrollY,\n right: rect.right + window.scrollX,\n bottom: rect.bottom + window.scrollY,\n };\n}\nfunction computeClippedClientRect(el) {\n let clippingParents = getClippingParents(el);\n let rect = el.getBoundingClientRect();\n for (let clippingParent of clippingParents) {\n let intersection = intersectRects(rect, clippingParent.getBoundingClientRect());\n if (intersection) {\n rect = intersection;\n }\n else {\n return null;\n }\n }\n return rect;\n}\n// does not return window\nfunction getClippingParents(el) {\n let parents = [];\n while (el instanceof HTMLElement) { // will stop when gets to document or null\n let computedStyle = window.getComputedStyle(el);\n if (computedStyle.position === 'fixed') {\n break;\n }\n if ((/(auto|scroll)/).test(computedStyle.overflow + computedStyle.overflowY + computedStyle.overflowX)) {\n parents.push(el);\n }\n el = el.parentNode;\n }\n return parents;\n}\n\n/*\nRecords offset information for a set of elements, relative to an origin element.\nCan record the left/right OR the top/bottom OR both.\nProvides methods for querying the cache by position.\n*/\nclass PositionCache {\n constructor(originEl, els, isHorizontal, isVertical) {\n this.els = els;\n let originClientRect = this.originClientRect = originEl.getBoundingClientRect(); // relative to viewport top-left\n if (isHorizontal) {\n this.buildElHorizontals(originClientRect.left);\n }\n if (isVertical) {\n this.buildElVerticals(originClientRect.top);\n }\n }\n // Populates the left/right internal coordinate arrays\n buildElHorizontals(originClientLeft) {\n let lefts = [];\n let rights = [];\n for (let el of this.els) {\n let rect = el.getBoundingClientRect();\n lefts.push(rect.left - originClientLeft);\n rights.push(rect.right - originClientLeft);\n }\n this.lefts = lefts;\n this.rights = rights;\n }\n // Populates the top/bottom internal coordinate arrays\n buildElVerticals(originClientTop) {\n let tops = [];\n let bottoms = [];\n for (let el of this.els) {\n let rect = el.getBoundingClientRect();\n tops.push(rect.top - originClientTop);\n bottoms.push(rect.bottom - originClientTop);\n }\n this.tops = tops;\n this.bottoms = bottoms;\n }\n // Given a left offset (from document left), returns the index of the el that it horizontally intersects.\n // If no intersection is made, returns undefined.\n leftToIndex(leftPosition) {\n let { lefts, rights } = this;\n let len = lefts.length;\n let i;\n for (i = 0; i < len; i += 1) {\n if (leftPosition >= lefts[i] && leftPosition < rights[i]) {\n return i;\n }\n }\n return undefined; // TODO: better\n }\n // Given a top offset (from document top), returns the index of the el that it vertically intersects.\n // If no intersection is made, returns undefined.\n topToIndex(topPosition) {\n let { tops, bottoms } = this;\n let len = tops.length;\n let i;\n for (i = 0; i < len; i += 1) {\n if (topPosition >= tops[i] && topPosition < bottoms[i]) {\n return i;\n }\n }\n return undefined; // TODO: better\n }\n // Gets the width of the element at the given index\n getWidth(leftIndex) {\n return this.rights[leftIndex] - this.lefts[leftIndex];\n }\n // Gets the height of the element at the given index\n getHeight(topIndex) {\n return this.bottoms[topIndex] - this.tops[topIndex];\n }\n similarTo(otherCache) {\n return similarNumArrays(this.tops || [], otherCache.tops || []) &&\n similarNumArrays(this.bottoms || [], otherCache.bottoms || []) &&\n similarNumArrays(this.lefts || [], otherCache.lefts || []) &&\n similarNumArrays(this.rights || [], otherCache.rights || []);\n }\n}\nfunction similarNumArrays(a, b) {\n const len = a.length;\n if (len !== b.length) {\n return false;\n }\n for (let i = 0; i < len; i++) {\n if (Math.round(a[i]) !== Math.round(b[i])) {\n return false;\n }\n }\n return true;\n}\n\n/* eslint max-classes-per-file: \"off\" */\n/*\nAn object for getting/setting scroll-related information for an element.\nInternally, this is done very differently for window versus DOM element,\nso this object serves as a common interface.\n*/\nclass ScrollController {\n getMaxScrollTop() {\n return this.getScrollHeight() - this.getClientHeight();\n }\n getMaxScrollLeft() {\n return this.getScrollWidth() - this.getClientWidth();\n }\n canScrollVertically() {\n return this.getMaxScrollTop() > 0;\n }\n canScrollHorizontally() {\n return this.getMaxScrollLeft() > 0;\n }\n canScrollUp() {\n return this.getScrollTop() > 0;\n }\n canScrollDown() {\n return this.getScrollTop() < this.getMaxScrollTop();\n }\n canScrollLeft() {\n return this.getScrollLeft() > 0;\n }\n canScrollRight() {\n return this.getScrollLeft() < this.getMaxScrollLeft();\n }\n}\nclass ElementScrollController extends ScrollController {\n constructor(el) {\n super();\n this.el = el;\n }\n getScrollTop() {\n return this.el.scrollTop;\n }\n getScrollLeft() {\n return this.el.scrollLeft;\n }\n setScrollTop(top) {\n this.el.scrollTop = top;\n }\n setScrollLeft(left) {\n this.el.scrollLeft = left;\n }\n getScrollWidth() {\n return this.el.scrollWidth;\n }\n getScrollHeight() {\n return this.el.scrollHeight;\n }\n getClientHeight() {\n return this.el.clientHeight;\n }\n getClientWidth() {\n return this.el.clientWidth;\n }\n}\nclass WindowScrollController extends ScrollController {\n getScrollTop() {\n return window.scrollY;\n }\n getScrollLeft() {\n return window.scrollX;\n }\n setScrollTop(n) {\n window.scroll(window.scrollX, n);\n }\n setScrollLeft(n) {\n window.scroll(n, window.scrollY);\n }\n getScrollWidth() {\n return document.documentElement.scrollWidth;\n }\n getScrollHeight() {\n return document.documentElement.scrollHeight;\n }\n getClientHeight() {\n return document.documentElement.clientHeight;\n }\n getClientWidth() {\n return document.documentElement.clientWidth;\n }\n}\n\n/*\nan INTERACTABLE date component\n\nPURPOSES:\n- hook up to fg, fill, and mirror renderers\n- interface for dragging and hits\n*/\nclass DateComponent extends BaseComponent {\n constructor() {\n super(...arguments);\n this.uid = guid();\n }\n // Hit System\n // -----------------------------------------------------------------------------------------------------------------\n prepareHits() {\n }\n queryHit(positionLeft, positionTop, elWidth, elHeight) {\n return null; // this should be abstract\n }\n // Pointer Interaction Utils\n // -----------------------------------------------------------------------------------------------------------------\n isValidSegDownEl(el) {\n return !this.props.eventDrag && // HACK\n !this.props.eventResize && // HACK\n !elementClosest(el, '.fc-event-mirror');\n }\n isValidDateDownEl(el) {\n return !elementClosest(el, '.fc-event:not(.fc-bg-event)') &&\n !elementClosest(el, '.fc-more-link') && // a \"more..\" link\n !elementClosest(el, 'a[data-navlink]') && // a clickable nav link\n !elementClosest(el, '.fc-popover'); // hack\n }\n}\n\nclass NamedTimeZoneImpl {\n constructor(timeZoneName) {\n this.timeZoneName = timeZoneName;\n }\n}\n\nclass SegHierarchy {\n constructor(getEntryThickness = (entry) => {\n // if no thickness known, assume 1 (if 0, so small it always fits)\n return entry.thickness || 1;\n }) {\n this.getEntryThickness = getEntryThickness;\n // settings\n this.strictOrder = false;\n this.allowReslicing = false;\n this.maxCoord = -1; // -1 means no max\n this.maxStackCnt = -1; // -1 means no max\n this.levelCoords = []; // ordered\n this.entriesByLevel = []; // parallel with levelCoords\n this.stackCnts = {}; // TODO: use better technique!?\n }\n addSegs(inputs) {\n let hiddenEntries = [];\n for (let input of inputs) {\n this.insertEntry(input, hiddenEntries);\n }\n return hiddenEntries;\n }\n insertEntry(entry, hiddenEntries) {\n let insertion = this.findInsertion(entry);\n if (this.isInsertionValid(insertion, entry)) {\n this.insertEntryAt(entry, insertion);\n }\n else {\n this.handleInvalidInsertion(insertion, entry, hiddenEntries);\n }\n }\n isInsertionValid(insertion, entry) {\n return (this.maxCoord === -1 || insertion.levelCoord + this.getEntryThickness(entry) <= this.maxCoord) &&\n (this.maxStackCnt === -1 || insertion.stackCnt < this.maxStackCnt);\n }\n handleInvalidInsertion(insertion, entry, hiddenEntries) {\n if (this.allowReslicing && insertion.touchingEntry) {\n const hiddenEntry = Object.assign(Object.assign({}, entry), { span: intersectSpans(entry.span, insertion.touchingEntry.span) });\n hiddenEntries.push(hiddenEntry);\n this.splitEntry(entry, insertion.touchingEntry, hiddenEntries);\n }\n else {\n hiddenEntries.push(entry);\n }\n }\n /*\n Does NOT add what hit the `barrier` into hiddenEntries. Should already be done.\n */\n splitEntry(entry, barrier, hiddenEntries) {\n let entrySpan = entry.span;\n let barrierSpan = barrier.span;\n if (entrySpan.start < barrierSpan.start) {\n this.insertEntry({\n index: entry.index,\n thickness: entry.thickness,\n span: { start: entrySpan.start, end: barrierSpan.start },\n }, hiddenEntries);\n }\n if (entrySpan.end > barrierSpan.end) {\n this.insertEntry({\n index: entry.index,\n thickness: entry.thickness,\n span: { start: barrierSpan.end, end: entrySpan.end },\n }, hiddenEntries);\n }\n }\n insertEntryAt(entry, insertion) {\n let { entriesByLevel, levelCoords } = this;\n if (insertion.lateral === -1) {\n // create a new level\n insertAt(levelCoords, insertion.level, insertion.levelCoord);\n insertAt(entriesByLevel, insertion.level, [entry]);\n }\n else {\n // insert into existing level\n insertAt(entriesByLevel[insertion.level], insertion.lateral, entry);\n }\n this.stackCnts[buildEntryKey(entry)] = insertion.stackCnt;\n }\n /*\n does not care about limits\n */\n findInsertion(newEntry) {\n let { levelCoords, entriesByLevel, strictOrder, stackCnts } = this;\n let levelCnt = levelCoords.length;\n let candidateCoord = 0;\n let touchingLevel = -1;\n let touchingLateral = -1;\n let touchingEntry = null;\n let stackCnt = 0;\n for (let trackingLevel = 0; trackingLevel < levelCnt; trackingLevel += 1) {\n const trackingCoord = levelCoords[trackingLevel];\n // if the current level is past the placed entry, we have found a good empty space and can stop.\n // if strictOrder, keep finding more lateral intersections.\n if (!strictOrder && trackingCoord >= candidateCoord + this.getEntryThickness(newEntry)) {\n break;\n }\n let trackingEntries = entriesByLevel[trackingLevel];\n let trackingEntry;\n let searchRes = binarySearch(trackingEntries, newEntry.span.start, getEntrySpanEnd); // find first entry after newEntry's end\n let lateralIndex = searchRes[0] + searchRes[1]; // if exact match (which doesn't collide), go to next one\n while ( // loop through entries that horizontally intersect\n (trackingEntry = trackingEntries[lateralIndex]) && // but not past the whole entry list\n trackingEntry.span.start < newEntry.span.end // and not entirely past newEntry\n ) {\n let trackingEntryBottom = trackingCoord + this.getEntryThickness(trackingEntry);\n // intersects into the top of the candidate?\n if (trackingEntryBottom > candidateCoord) {\n candidateCoord = trackingEntryBottom;\n touchingEntry = trackingEntry;\n touchingLevel = trackingLevel;\n touchingLateral = lateralIndex;\n }\n // butts up against top of candidate? (will happen if just intersected as well)\n if (trackingEntryBottom === candidateCoord) {\n // accumulate the highest possible stackCnt of the trackingEntries that butt up\n stackCnt = Math.max(stackCnt, stackCnts[buildEntryKey(trackingEntry)] + 1);\n }\n lateralIndex += 1;\n }\n }\n // the destination level will be after touchingEntry's level. find it\n let destLevel = 0;\n if (touchingEntry) {\n destLevel = touchingLevel + 1;\n while (destLevel < levelCnt && levelCoords[destLevel] < candidateCoord) {\n destLevel += 1;\n }\n }\n // if adding to an existing level, find where to insert\n let destLateral = -1;\n if (destLevel < levelCnt && levelCoords[destLevel] === candidateCoord) {\n destLateral = binarySearch(entriesByLevel[destLevel], newEntry.span.end, getEntrySpanEnd)[0];\n }\n return {\n touchingLevel,\n touchingLateral,\n touchingEntry,\n stackCnt,\n levelCoord: candidateCoord,\n level: destLevel,\n lateral: destLateral,\n };\n }\n // sorted by levelCoord (lowest to highest)\n toRects() {\n let { entriesByLevel, levelCoords } = this;\n let levelCnt = entriesByLevel.length;\n let rects = [];\n for (let level = 0; level < levelCnt; level += 1) {\n let entries = entriesByLevel[level];\n let levelCoord = levelCoords[level];\n for (let entry of entries) {\n rects.push(Object.assign(Object.assign({}, entry), { thickness: this.getEntryThickness(entry), levelCoord }));\n }\n }\n return rects;\n }\n}\nfunction getEntrySpanEnd(entry) {\n return entry.span.end;\n}\nfunction buildEntryKey(entry) {\n return entry.index + ':' + entry.span.start;\n}\n// returns groups with entries sorted by input order\nfunction groupIntersectingEntries(entries) {\n let merges = [];\n for (let entry of entries) {\n let filteredMerges = [];\n let hungryMerge = {\n span: entry.span,\n entries: [entry],\n };\n for (let merge of merges) {\n if (intersectSpans(merge.span, hungryMerge.span)) {\n hungryMerge = {\n entries: merge.entries.concat(hungryMerge.entries),\n span: joinSpans(merge.span, hungryMerge.span),\n };\n }\n else {\n filteredMerges.push(merge);\n }\n }\n filteredMerges.push(hungryMerge);\n merges = filteredMerges;\n }\n return merges;\n}\nfunction joinSpans(span0, span1) {\n return {\n start: Math.min(span0.start, span1.start),\n end: Math.max(span0.end, span1.end),\n };\n}\nfunction intersectSpans(span0, span1) {\n let start = Math.max(span0.start, span1.start);\n let end = Math.min(span0.end, span1.end);\n if (start < end) {\n return { start, end };\n }\n return null;\n}\n// general util\n// ---------------------------------------------------------------------------------------------------------------------\nfunction insertAt(arr, index, item) {\n arr.splice(index, 0, item);\n}\nfunction binarySearch(a, searchVal, getItemVal) {\n let startIndex = 0;\n let endIndex = a.length; // exclusive\n if (!endIndex || searchVal < getItemVal(a[startIndex])) { // no items OR before first item\n return [0, 0];\n }\n if (searchVal > getItemVal(a[endIndex - 1])) { // after last item\n return [endIndex, 0];\n }\n while (startIndex < endIndex) {\n let middleIndex = Math.floor(startIndex + (endIndex - startIndex) / 2);\n let middleVal = getItemVal(a[middleIndex]);\n if (searchVal < middleVal) {\n endIndex = middleIndex;\n }\n else if (searchVal > middleVal) {\n startIndex = middleIndex + 1;\n }\n else { // equal!\n return [middleIndex, 1];\n }\n }\n return [startIndex, 0];\n}\n\n/*\nAn abstraction for a dragging interaction originating on an event.\nDoes higher-level things than PointerDragger, such as possibly:\n- a \"mirror\" that moves with the pointer\n- a minimum number of pixels or other criteria for a true drag to begin\n\nsubclasses must emit:\n- pointerdown\n- dragstart\n- dragmove\n- pointerup\n- dragend\n*/\nclass ElementDragging {\n constructor(el, selector) {\n this.emitter = new Emitter();\n }\n destroy() {\n }\n setMirrorIsVisible(bool) {\n // optional if subclass doesn't want to support a mirror\n }\n setMirrorNeedsRevert(bool) {\n // optional if subclass doesn't want to support a mirror\n }\n setAutoScrollEnabled(bool) {\n // optional\n }\n}\n\n// TODO: get rid of this in favor of options system,\n// tho it's really easy to access this globally rather than pass thru options.\nconst config = {};\n\n/*\nInformation about what will happen when an external element is dragged-and-dropped\nonto a calendar. Contains information for creating an event.\n*/\nconst DRAG_META_REFINERS = {\n startTime: createDuration,\n duration: createDuration,\n create: Boolean,\n sourceId: String,\n};\nfunction parseDragMeta(raw) {\n let { refined, extra } = refineProps(raw, DRAG_META_REFINERS);\n return {\n startTime: refined.startTime || null,\n duration: refined.duration || null,\n create: refined.create != null ? refined.create : true,\n sourceId: refined.sourceId,\n leftoverProps: extra,\n };\n}\n\n// Computes a default column header formatting string if `colFormat` is not explicitly defined\nfunction computeFallbackHeaderFormat(datesRepDistinctDays, dayCnt) {\n // if more than one week row, or if there are a lot of columns with not much space,\n // put just the day numbers will be in each cell\n if (!datesRepDistinctDays || dayCnt > 10) {\n return createFormatter({ weekday: 'short' }); // \"Sat\"\n }\n if (dayCnt > 1) {\n return createFormatter({ weekday: 'short', month: 'numeric', day: 'numeric', omitCommas: true }); // \"Sat 11/12\"\n }\n return createFormatter({ weekday: 'long' }); // \"Saturday\"\n}\n\nconst CLASS_NAME = 'fc-col-header-cell'; // do the cushion too? no\nfunction renderInner$1(renderProps) {\n return renderProps.text;\n}\n\n// BAD name for this class now. used in the Header\nclass TableDateCell extends BaseComponent {\n render() {\n let { dateEnv, options, theme, viewApi } = this.context;\n let { props } = this;\n let { date, dateProfile } = props;\n let dayMeta = getDateMeta(date, props.todayRange, null, dateProfile);\n let classNames = [CLASS_NAME].concat(getDayClassNames(dayMeta, theme));\n let text = dateEnv.format(date, props.dayHeaderFormat);\n // if colCnt is 1, we are already in a day-view and don't need a navlink\n let navLinkAttrs = (!dayMeta.isDisabled && props.colCnt > 1)\n ? buildNavLinkAttrs(this.context, date)\n : {};\n let publicDate = dateEnv.toDate(date);\n // workaround for Luxon (and maybe moment) returning prior-days when start-of-day\n // in DST gap: https://github.com/fullcalendar/fullcalendar/issues/7633\n if (dateEnv.namedTimeZoneImpl) {\n publicDate = addMs(publicDate, 3600000); // add an hour\n }\n let renderProps = Object.assign(Object.assign(Object.assign({ date: publicDate, view: viewApi }, props.extraRenderProps), { text }), dayMeta);\n return (createElement(ContentContainer, { elTag: \"th\", elClasses: classNames, elAttrs: Object.assign({ role: 'columnheader', colSpan: props.colSpan, 'data-date': !dayMeta.isDisabled ? formatDayString(date) : undefined }, props.extraDataAttrs), renderProps: renderProps, generatorName: \"dayHeaderContent\", customGenerator: options.dayHeaderContent, defaultGenerator: renderInner$1, classNameGenerator: options.dayHeaderClassNames, didMount: options.dayHeaderDidMount, willUnmount: options.dayHeaderWillUnmount }, (InnerContainer) => (createElement(\"div\", { className: \"fc-scrollgrid-sync-inner\" }, !dayMeta.isDisabled && (createElement(InnerContainer, { elTag: \"a\", elAttrs: navLinkAttrs, elClasses: [\n 'fc-col-header-cell-cushion',\n props.isSticky && 'fc-sticky',\n ] }))))));\n }\n}\n\nconst WEEKDAY_FORMAT = createFormatter({ weekday: 'long' });\nclass TableDowCell extends BaseComponent {\n render() {\n let { props } = this;\n let { dateEnv, theme, viewApi, options } = this.context;\n let date = addDays(new Date(259200000), props.dow); // start with Sun, 04 Jan 1970 00:00:00 GMT\n let dateMeta = {\n dow: props.dow,\n isDisabled: false,\n isFuture: false,\n isPast: false,\n isToday: false,\n isOther: false,\n };\n let text = dateEnv.format(date, props.dayHeaderFormat);\n let renderProps = Object.assign(Object.assign(Object.assign(Object.assign({ // TODO: make this public?\n date }, dateMeta), { view: viewApi }), props.extraRenderProps), { text });\n return (createElement(ContentContainer, { elTag: \"th\", elClasses: [\n CLASS_NAME,\n ...getDayClassNames(dateMeta, theme),\n ...(props.extraClassNames || []),\n ], elAttrs: Object.assign({ role: 'columnheader', colSpan: props.colSpan }, props.extraDataAttrs), renderProps: renderProps, generatorName: \"dayHeaderContent\", customGenerator: options.dayHeaderContent, defaultGenerator: renderInner$1, classNameGenerator: options.dayHeaderClassNames, didMount: options.dayHeaderDidMount, willUnmount: options.dayHeaderWillUnmount }, (InnerContent) => (createElement(\"div\", { className: \"fc-scrollgrid-sync-inner\" },\n createElement(InnerContent, { elTag: \"a\", elClasses: [\n 'fc-col-header-cell-cushion',\n props.isSticky && 'fc-sticky',\n ], elAttrs: {\n 'aria-label': dateEnv.format(date, WEEKDAY_FORMAT),\n } })))));\n }\n}\n\nclass DayHeader extends BaseComponent {\n constructor() {\n super(...arguments);\n this.createDayHeaderFormatter = memoize(createDayHeaderFormatter);\n }\n render() {\n let { context } = this;\n let { dates, dateProfile, datesRepDistinctDays, renderIntro } = this.props;\n let dayHeaderFormat = this.createDayHeaderFormatter(context.options.dayHeaderFormat, datesRepDistinctDays, dates.length);\n return (createElement(NowTimer, { unit: \"day\" }, (nowDate, todayRange) => (createElement(\"tr\", { role: \"row\" },\n renderIntro && renderIntro('day'),\n dates.map((date) => (datesRepDistinctDays ? (createElement(TableDateCell, { key: date.toISOString(), date: date, dateProfile: dateProfile, todayRange: todayRange, colCnt: dates.length, dayHeaderFormat: dayHeaderFormat })) : (createElement(TableDowCell, { key: date.getUTCDay(), dow: date.getUTCDay(), dayHeaderFormat: dayHeaderFormat }))))))));\n }\n}\nfunction createDayHeaderFormatter(explicitFormat, datesRepDistinctDays, dateCnt) {\n return explicitFormat || computeFallbackHeaderFormat(datesRepDistinctDays, dateCnt);\n}\n\nclass DaySeriesModel {\n constructor(range, dateProfileGenerator) {\n let date = range.start;\n let { end } = range;\n let indices = [];\n let dates = [];\n let dayIndex = -1;\n while (date < end) { // loop each day from start to end\n if (dateProfileGenerator.isHiddenDay(date)) {\n indices.push(dayIndex + 0.5); // mark that it's between indices\n }\n else {\n dayIndex += 1;\n indices.push(dayIndex);\n dates.push(date);\n }\n date = addDays(date, 1);\n }\n this.dates = dates;\n this.indices = indices;\n this.cnt = dates.length;\n }\n sliceRange(range) {\n let firstIndex = this.getDateDayIndex(range.start); // inclusive first index\n let lastIndex = this.getDateDayIndex(addDays(range.end, -1)); // inclusive last index\n let clippedFirstIndex = Math.max(0, firstIndex);\n let clippedLastIndex = Math.min(this.cnt - 1, lastIndex);\n // deal with in-between indices\n clippedFirstIndex = Math.ceil(clippedFirstIndex); // in-between starts round to next cell\n clippedLastIndex = Math.floor(clippedLastIndex); // in-between ends round to prev cell\n if (clippedFirstIndex <= clippedLastIndex) {\n return {\n firstIndex: clippedFirstIndex,\n lastIndex: clippedLastIndex,\n isStart: firstIndex === clippedFirstIndex,\n isEnd: lastIndex === clippedLastIndex,\n };\n }\n return null;\n }\n // Given a date, returns its chronolocial cell-index from the first cell of the grid.\n // If the date lies between cells (because of hiddenDays), returns a floating-point value between offsets.\n // If before the first offset, returns a negative number.\n // If after the last offset, returns an offset past the last cell offset.\n // Only works for *start* dates of cells. Will not work for exclusive end dates for cells.\n getDateDayIndex(date) {\n let { indices } = this;\n let dayOffset = Math.floor(diffDays(this.dates[0], date));\n if (dayOffset < 0) {\n return indices[0] - 1;\n }\n if (dayOffset >= indices.length) {\n return indices[indices.length - 1] + 1;\n }\n return indices[dayOffset];\n }\n}\n\nclass DayTableModel {\n constructor(daySeries, breakOnWeeks) {\n let { dates } = daySeries;\n let daysPerRow;\n let firstDay;\n let rowCnt;\n if (breakOnWeeks) {\n // count columns until the day-of-week repeats\n firstDay = dates[0].getUTCDay();\n for (daysPerRow = 1; daysPerRow < dates.length; daysPerRow += 1) {\n if (dates[daysPerRow].getUTCDay() === firstDay) {\n break;\n }\n }\n rowCnt = Math.ceil(dates.length / daysPerRow);\n }\n else {\n rowCnt = 1;\n daysPerRow = dates.length;\n }\n this.rowCnt = rowCnt;\n this.colCnt = daysPerRow;\n this.daySeries = daySeries;\n this.cells = this.buildCells();\n this.headerDates = this.buildHeaderDates();\n }\n buildCells() {\n let rows = [];\n for (let row = 0; row < this.rowCnt; row += 1) {\n let cells = [];\n for (let col = 0; col < this.colCnt; col += 1) {\n cells.push(this.buildCell(row, col));\n }\n rows.push(cells);\n }\n return rows;\n }\n buildCell(row, col) {\n let date = this.daySeries.dates[row * this.colCnt + col];\n return {\n key: date.toISOString(),\n date,\n };\n }\n buildHeaderDates() {\n let dates = [];\n for (let col = 0; col < this.colCnt; col += 1) {\n dates.push(this.cells[0][col].date);\n }\n return dates;\n }\n sliceRange(range) {\n let { colCnt } = this;\n let seriesSeg = this.daySeries.sliceRange(range);\n let segs = [];\n if (seriesSeg) {\n let { firstIndex, lastIndex } = seriesSeg;\n let index = firstIndex;\n while (index <= lastIndex) {\n let row = Math.floor(index / colCnt);\n let nextIndex = Math.min((row + 1) * colCnt, lastIndex + 1);\n segs.push({\n row,\n firstCol: index % colCnt,\n lastCol: (nextIndex - 1) % colCnt,\n isStart: seriesSeg.isStart && index === firstIndex,\n isEnd: seriesSeg.isEnd && (nextIndex - 1) === lastIndex,\n });\n index = nextIndex;\n }\n }\n return segs;\n }\n}\n\nclass Slicer {\n constructor() {\n this.sliceBusinessHours = memoize(this._sliceBusinessHours);\n this.sliceDateSelection = memoize(this._sliceDateSpan);\n this.sliceEventStore = memoize(this._sliceEventStore);\n this.sliceEventDrag = memoize(this._sliceInteraction);\n this.sliceEventResize = memoize(this._sliceInteraction);\n this.forceDayIfListItem = false; // hack\n }\n sliceProps(props, dateProfile, nextDayThreshold, context, ...extraArgs) {\n let { eventUiBases } = props;\n let eventSegs = this.sliceEventStore(props.eventStore, eventUiBases, dateProfile, nextDayThreshold, ...extraArgs);\n return {\n dateSelectionSegs: this.sliceDateSelection(props.dateSelection, dateProfile, nextDayThreshold, eventUiBases, context, ...extraArgs),\n businessHourSegs: this.sliceBusinessHours(props.businessHours, dateProfile, nextDayThreshold, context, ...extraArgs),\n fgEventSegs: eventSegs.fg,\n bgEventSegs: eventSegs.bg,\n eventDrag: this.sliceEventDrag(props.eventDrag, eventUiBases, dateProfile, nextDayThreshold, ...extraArgs),\n eventResize: this.sliceEventResize(props.eventResize, eventUiBases, dateProfile, nextDayThreshold, ...extraArgs),\n eventSelection: props.eventSelection,\n }; // TODO: give interactionSegs?\n }\n sliceNowDate(// does not memoize\n date, dateProfile, nextDayThreshold, context, ...extraArgs) {\n return this._sliceDateSpan({ range: { start: date, end: addMs(date, 1) }, allDay: false }, // add 1 ms, protect against null range\n dateProfile, nextDayThreshold, {}, context, ...extraArgs);\n }\n _sliceBusinessHours(businessHours, dateProfile, nextDayThreshold, context, ...extraArgs) {\n if (!businessHours) {\n return [];\n }\n return this._sliceEventStore(expandRecurring(businessHours, computeActiveRange(dateProfile, Boolean(nextDayThreshold)), context), {}, dateProfile, nextDayThreshold, ...extraArgs).bg;\n }\n _sliceEventStore(eventStore, eventUiBases, dateProfile, nextDayThreshold, ...extraArgs) {\n if (eventStore) {\n let rangeRes = sliceEventStore(eventStore, eventUiBases, computeActiveRange(dateProfile, Boolean(nextDayThreshold)), nextDayThreshold);\n return {\n bg: this.sliceEventRanges(rangeRes.bg, extraArgs),\n fg: this.sliceEventRanges(rangeRes.fg, extraArgs),\n };\n }\n return { bg: [], fg: [] };\n }\n _sliceInteraction(interaction, eventUiBases, dateProfile, nextDayThreshold, ...extraArgs) {\n if (!interaction) {\n return null;\n }\n let rangeRes = sliceEventStore(interaction.mutatedEvents, eventUiBases, computeActiveRange(dateProfile, Boolean(nextDayThreshold)), nextDayThreshold);\n return {\n segs: this.sliceEventRanges(rangeRes.fg, extraArgs),\n affectedInstances: interaction.affectedEvents.instances,\n isEvent: interaction.isEvent,\n };\n }\n _sliceDateSpan(dateSpan, dateProfile, nextDayThreshold, eventUiBases, context, ...extraArgs) {\n if (!dateSpan) {\n return [];\n }\n let activeRange = computeActiveRange(dateProfile, Boolean(nextDayThreshold));\n let activeDateSpanRange = intersectRanges(dateSpan.range, activeRange);\n if (activeDateSpanRange) {\n dateSpan = Object.assign(Object.assign({}, dateSpan), { range: activeDateSpanRange });\n let eventRange = fabricateEventRange(dateSpan, eventUiBases, context);\n let segs = this.sliceRange(dateSpan.range, ...extraArgs);\n for (let seg of segs) {\n seg.eventRange = eventRange;\n }\n return segs;\n }\n return [];\n }\n /*\n \"complete\" seg means it has component and eventRange\n */\n sliceEventRanges(eventRanges, extraArgs) {\n let segs = [];\n for (let eventRange of eventRanges) {\n segs.push(...this.sliceEventRange(eventRange, extraArgs));\n }\n return segs;\n }\n /*\n \"complete\" seg means it has component and eventRange\n */\n sliceEventRange(eventRange, extraArgs) {\n let dateRange = eventRange.range;\n // hack to make multi-day events that are being force-displayed as list-items to take up only one day\n if (this.forceDayIfListItem && eventRange.ui.display === 'list-item') {\n dateRange = {\n start: dateRange.start,\n end: addDays(dateRange.start, 1),\n };\n }\n let segs = this.sliceRange(dateRange, ...extraArgs);\n for (let seg of segs) {\n seg.eventRange = eventRange;\n seg.isStart = eventRange.isStart && seg.isStart;\n seg.isEnd = eventRange.isEnd && seg.isEnd;\n }\n return segs;\n }\n}\n/*\nfor incorporating slotMinTime/slotMaxTime if appropriate\nTODO: should be part of DateProfile!\nTimelineDateProfile already does this btw\n*/\nfunction computeActiveRange(dateProfile, isComponentAllDay) {\n let range = dateProfile.activeRange;\n if (isComponentAllDay) {\n return range;\n }\n return {\n start: addMs(range.start, dateProfile.slotMinTime.milliseconds),\n end: addMs(range.end, dateProfile.slotMaxTime.milliseconds - 864e5), // 864e5 = ms in a day\n };\n}\n\n// high-level segmenting-aware tester functions\n// ------------------------------------------------------------------------------------------------------------------------\nfunction isInteractionValid(interaction, dateProfile, context) {\n let { instances } = interaction.mutatedEvents;\n for (let instanceId in instances) {\n if (!rangeContainsRange(dateProfile.validRange, instances[instanceId].range)) {\n return false;\n }\n }\n return isNewPropsValid({ eventDrag: interaction }, context); // HACK: the eventDrag props is used for ALL interactions\n}\nfunction isDateSelectionValid(dateSelection, dateProfile, context) {\n if (!rangeContainsRange(dateProfile.validRange, dateSelection.range)) {\n return false;\n }\n return isNewPropsValid({ dateSelection }, context);\n}\nfunction isNewPropsValid(newProps, context) {\n let calendarState = context.getCurrentData();\n let props = Object.assign({ businessHours: calendarState.businessHours, dateSelection: '', eventStore: calendarState.eventStore, eventUiBases: calendarState.eventUiBases, eventSelection: '', eventDrag: null, eventResize: null }, newProps);\n return (context.pluginHooks.isPropsValid || isPropsValid)(props, context);\n}\nfunction isPropsValid(state, context, dateSpanMeta = {}, filterConfig) {\n if (state.eventDrag && !isInteractionPropsValid(state, context, dateSpanMeta, filterConfig)) {\n return false;\n }\n if (state.dateSelection && !isDateSelectionPropsValid(state, context, dateSpanMeta, filterConfig)) {\n return false;\n }\n return true;\n}\n// Moving Event Validation\n// ------------------------------------------------------------------------------------------------------------------------\nfunction isInteractionPropsValid(state, context, dateSpanMeta, filterConfig) {\n let currentState = context.getCurrentData();\n let interaction = state.eventDrag; // HACK: the eventDrag props is used for ALL interactions\n let subjectEventStore = interaction.mutatedEvents;\n let subjectDefs = subjectEventStore.defs;\n let subjectInstances = subjectEventStore.instances;\n let subjectConfigs = compileEventUis(subjectDefs, interaction.isEvent ?\n state.eventUiBases :\n { '': currentState.selectionConfig });\n if (filterConfig) {\n subjectConfigs = mapHash(subjectConfigs, filterConfig);\n }\n // exclude the subject events. TODO: exclude defs too?\n let otherEventStore = excludeInstances(state.eventStore, interaction.affectedEvents.instances);\n let otherDefs = otherEventStore.defs;\n let otherInstances = otherEventStore.instances;\n let otherConfigs = compileEventUis(otherDefs, state.eventUiBases);\n for (let subjectInstanceId in subjectInstances) {\n let subjectInstance = subjectInstances[subjectInstanceId];\n let subjectRange = subjectInstance.range;\n let subjectConfig = subjectConfigs[subjectInstance.defId];\n let subjectDef = subjectDefs[subjectInstance.defId];\n // constraint\n if (!allConstraintsPass(subjectConfig.constraints, subjectRange, otherEventStore, state.businessHours, context)) {\n return false;\n }\n // overlap\n let { eventOverlap } = context.options;\n let eventOverlapFunc = typeof eventOverlap === 'function' ? eventOverlap : null;\n for (let otherInstanceId in otherInstances) {\n let otherInstance = otherInstances[otherInstanceId];\n // intersect! evaluate\n if (rangesIntersect(subjectRange, otherInstance.range)) {\n let otherOverlap = otherConfigs[otherInstance.defId].overlap;\n // consider the other event's overlap. only do this if the subject event is a \"real\" event\n if (otherOverlap === false && interaction.isEvent) {\n return false;\n }\n if (subjectConfig.overlap === false) {\n return false;\n }\n if (eventOverlapFunc && !eventOverlapFunc(new EventImpl(context, otherDefs[otherInstance.defId], otherInstance), // still event\n new EventImpl(context, subjectDef, subjectInstance))) {\n return false;\n }\n }\n }\n // allow (a function)\n let calendarEventStore = currentState.eventStore; // need global-to-calendar, not local to component (splittable)state\n for (let subjectAllow of subjectConfig.allows) {\n let subjectDateSpan = Object.assign(Object.assign({}, dateSpanMeta), { range: subjectInstance.range, allDay: subjectDef.allDay });\n let origDef = calendarEventStore.defs[subjectDef.defId];\n let origInstance = calendarEventStore.instances[subjectInstanceId];\n let eventApi;\n if (origDef) { // was previously in the calendar\n eventApi = new EventImpl(context, origDef, origInstance);\n }\n else { // was an external event\n eventApi = new EventImpl(context, subjectDef); // no instance, because had no dates\n }\n if (!subjectAllow(buildDateSpanApiWithContext(subjectDateSpan, context), eventApi)) {\n return false;\n }\n }\n }\n return true;\n}\n// Date Selection Validation\n// ------------------------------------------------------------------------------------------------------------------------\nfunction isDateSelectionPropsValid(state, context, dateSpanMeta, filterConfig) {\n let relevantEventStore = state.eventStore;\n let relevantDefs = relevantEventStore.defs;\n let relevantInstances = relevantEventStore.instances;\n let selection = state.dateSelection;\n let selectionRange = selection.range;\n let { selectionConfig } = context.getCurrentData();\n if (filterConfig) {\n selectionConfig = filterConfig(selectionConfig);\n }\n // constraint\n if (!allConstraintsPass(selectionConfig.constraints, selectionRange, relevantEventStore, state.businessHours, context)) {\n return false;\n }\n // overlap\n let { selectOverlap } = context.options;\n let selectOverlapFunc = typeof selectOverlap === 'function' ? selectOverlap : null;\n for (let relevantInstanceId in relevantInstances) {\n let relevantInstance = relevantInstances[relevantInstanceId];\n // intersect! evaluate\n if (rangesIntersect(selectionRange, relevantInstance.range)) {\n if (selectionConfig.overlap === false) {\n return false;\n }\n if (selectOverlapFunc && !selectOverlapFunc(new EventImpl(context, relevantDefs[relevantInstance.defId], relevantInstance), null)) {\n return false;\n }\n }\n }\n // allow (a function)\n for (let selectionAllow of selectionConfig.allows) {\n let fullDateSpan = Object.assign(Object.assign({}, dateSpanMeta), selection);\n if (!selectionAllow(buildDateSpanApiWithContext(fullDateSpan, context), null)) {\n return false;\n }\n }\n return true;\n}\n// Constraint Utils\n// ------------------------------------------------------------------------------------------------------------------------\nfunction allConstraintsPass(constraints, subjectRange, otherEventStore, businessHoursUnexpanded, context) {\n for (let constraint of constraints) {\n if (!anyRangesContainRange(constraintToRanges(constraint, subjectRange, otherEventStore, businessHoursUnexpanded, context), subjectRange)) {\n return false;\n }\n }\n return true;\n}\nfunction constraintToRanges(constraint, subjectRange, // for expanding a recurring constraint, or expanding business hours\notherEventStore, // for if constraint is an even group ID\nbusinessHoursUnexpanded, // for if constraint is 'businessHours'\ncontext) {\n if (constraint === 'businessHours') {\n return eventStoreToRanges(expandRecurring(businessHoursUnexpanded, subjectRange, context));\n }\n if (typeof constraint === 'string') { // an group ID\n return eventStoreToRanges(filterEventStoreDefs(otherEventStore, (eventDef) => eventDef.groupId === constraint));\n }\n if (typeof constraint === 'object' && constraint) { // non-null object\n return eventStoreToRanges(expandRecurring(constraint, subjectRange, context));\n }\n return []; // if it's false\n}\n// TODO: move to event-store file?\nfunction eventStoreToRanges(eventStore) {\n let { instances } = eventStore;\n let ranges = [];\n for (let instanceId in instances) {\n ranges.push(instances[instanceId].range);\n }\n return ranges;\n}\n// TODO: move to geom file?\nfunction anyRangesContainRange(outerRanges, innerRange) {\n for (let outerRange of outerRanges) {\n if (rangeContainsRange(outerRange, innerRange)) {\n return true;\n }\n }\n return false;\n}\n\nconst VISIBLE_HIDDEN_RE = /^(visible|hidden)$/;\nclass Scroller extends BaseComponent {\n constructor() {\n super(...arguments);\n this.handleEl = (el) => {\n this.el = el;\n setRef(this.props.elRef, el);\n };\n }\n render() {\n let { props } = this;\n let { liquid, liquidIsAbsolute } = props;\n let isAbsolute = liquid && liquidIsAbsolute;\n let className = ['fc-scroller'];\n if (liquid) {\n if (liquidIsAbsolute) {\n className.push('fc-scroller-liquid-absolute');\n }\n else {\n className.push('fc-scroller-liquid');\n }\n }\n return (createElement(\"div\", { ref: this.handleEl, className: className.join(' '), style: {\n overflowX: props.overflowX,\n overflowY: props.overflowY,\n left: (isAbsolute && -(props.overcomeLeft || 0)) || '',\n right: (isAbsolute && -(props.overcomeRight || 0)) || '',\n bottom: (isAbsolute && -(props.overcomeBottom || 0)) || '',\n marginLeft: (!isAbsolute && -(props.overcomeLeft || 0)) || '',\n marginRight: (!isAbsolute && -(props.overcomeRight || 0)) || '',\n marginBottom: (!isAbsolute && -(props.overcomeBottom || 0)) || '',\n maxHeight: props.maxHeight || '',\n } }, props.children));\n }\n needsXScrolling() {\n if (VISIBLE_HIDDEN_RE.test(this.props.overflowX)) {\n return false;\n }\n // testing scrollWidth>clientWidth is unreliable cross-browser when pixel heights aren't integers.\n // much more reliable to see if children are taller than the scroller, even tho doesn't account for\n // inner-child margins and absolute positioning\n let { el } = this;\n let realClientWidth = this.el.getBoundingClientRect().width - this.getYScrollbarWidth();\n let { children } = el;\n for (let i = 0; i < children.length; i += 1) {\n let childEl = children[i];\n if (childEl.getBoundingClientRect().width > realClientWidth) {\n return true;\n }\n }\n return false;\n }\n needsYScrolling() {\n if (VISIBLE_HIDDEN_RE.test(this.props.overflowY)) {\n return false;\n }\n // testing scrollHeight>clientHeight is unreliable cross-browser when pixel heights aren't integers.\n // much more reliable to see if children are taller than the scroller, even tho doesn't account for\n // inner-child margins and absolute positioning\n let { el } = this;\n let realClientHeight = this.el.getBoundingClientRect().height - this.getXScrollbarWidth();\n let { children } = el;\n for (let i = 0; i < children.length; i += 1) {\n let childEl = children[i];\n if (childEl.getBoundingClientRect().height > realClientHeight) {\n return true;\n }\n }\n return false;\n }\n getXScrollbarWidth() {\n if (VISIBLE_HIDDEN_RE.test(this.props.overflowX)) {\n return 0;\n }\n return this.el.offsetHeight - this.el.clientHeight; // only works because we guarantee no borders. TODO: add to CSS with important?\n }\n getYScrollbarWidth() {\n if (VISIBLE_HIDDEN_RE.test(this.props.overflowY)) {\n return 0;\n }\n return this.el.offsetWidth - this.el.clientWidth; // only works because we guarantee no borders. TODO: add to CSS with important?\n }\n}\n\n/*\nTODO: somehow infer OtherArgs from masterCallback?\nTODO: infer RefType from masterCallback if provided\n*/\nclass RefMap {\n constructor(masterCallback) {\n this.masterCallback = masterCallback;\n this.currentMap = {};\n this.depths = {};\n this.callbackMap = {};\n this.handleValue = (val, key) => {\n let { depths, currentMap } = this;\n let removed = false;\n let added = false;\n if (val !== null) {\n // for bug... ACTUALLY: can probably do away with this now that callers don't share numeric indices anymore\n removed = (key in currentMap);\n currentMap[key] = val;\n depths[key] = (depths[key] || 0) + 1;\n added = true;\n }\n else {\n depths[key] -= 1;\n if (!depths[key]) {\n delete currentMap[key];\n delete this.callbackMap[key];\n removed = true;\n }\n }\n if (this.masterCallback) {\n if (removed) {\n this.masterCallback(null, String(key));\n }\n if (added) {\n this.masterCallback(val, String(key));\n }\n }\n };\n }\n createRef(key) {\n let refCallback = this.callbackMap[key];\n if (!refCallback) {\n refCallback = this.callbackMap[key] = (val) => {\n this.handleValue(val, String(key));\n };\n }\n return refCallback;\n }\n // TODO: check callers that don't care about order. should use getAll instead\n // NOTE: this method has become less valuable now that we are encouraged to map order by some other index\n // TODO: provide ONE array-export function, buildArray, which fails on non-numeric indexes. caller can manipulate and \"collect\"\n collect(startIndex, endIndex, step) {\n return collectFromHash(this.currentMap, startIndex, endIndex, step);\n }\n getAll() {\n return hashValuesToArray(this.currentMap);\n }\n}\n\nfunction computeShrinkWidth(chunkEls) {\n let shrinkCells = findElements(chunkEls, '.fc-scrollgrid-shrink');\n let largestWidth = 0;\n for (let shrinkCell of shrinkCells) {\n largestWidth = Math.max(largestWidth, computeSmallestCellWidth(shrinkCell));\n }\n return Math.ceil(largestWidth); // <table> elements work best with integers. round up to ensure contents fits\n}\nfunction getSectionHasLiquidHeight(props, sectionConfig) {\n return props.liquid && sectionConfig.liquid; // does the section do liquid-height? (need to have whole scrollgrid liquid-height as well)\n}\nfunction getAllowYScrolling(props, sectionConfig) {\n return sectionConfig.maxHeight != null || // if its possible for the height to max out, we might need scrollbars\n getSectionHasLiquidHeight(props, sectionConfig); // if the section is liquid height, it might condense enough to require scrollbars\n}\n// TODO: ONLY use `arg`. force out internal function to use same API\nfunction renderChunkContent(sectionConfig, chunkConfig, arg, isHeader) {\n let { expandRows } = arg;\n let content = typeof chunkConfig.content === 'function' ?\n chunkConfig.content(arg) :\n createElement('table', {\n role: 'presentation',\n className: [\n chunkConfig.tableClassName,\n sectionConfig.syncRowHeights ? 'fc-scrollgrid-sync-table' : '',\n ].join(' '),\n style: {\n minWidth: arg.tableMinWidth,\n width: arg.clientWidth,\n height: expandRows ? arg.clientHeight : '', // css `height` on a <table> serves as a min-height\n },\n }, arg.tableColGroupNode, createElement(isHeader ? 'thead' : 'tbody', {\n role: 'presentation',\n }, typeof chunkConfig.rowContent === 'function'\n ? chunkConfig.rowContent(arg)\n : chunkConfig.rowContent));\n return content;\n}\nfunction isColPropsEqual(cols0, cols1) {\n return isArraysEqual(cols0, cols1, isPropsEqual);\n}\nfunction renderMicroColGroup(cols, shrinkWidth) {\n let colNodes = [];\n /*\n for ColProps with spans, it would have been great to make a single <col span=\"\">\n HOWEVER, Chrome was getting messing up distributing the width to <td>/<th> elements with colspans.\n SOLUTION: making individual <col> elements makes Chrome behave.\n */\n for (let colProps of cols) {\n let span = colProps.span || 1;\n for (let i = 0; i < span; i += 1) {\n colNodes.push(createElement(\"col\", { style: {\n width: colProps.width === 'shrink' ? sanitizeShrinkWidth(shrinkWidth) : (colProps.width || ''),\n minWidth: colProps.minWidth || '',\n } }));\n }\n }\n return createElement('colgroup', {}, ...colNodes);\n}\nfunction sanitizeShrinkWidth(shrinkWidth) {\n /* why 4? if we do 0, it will kill any border, which are needed for computeSmallestCellWidth\n 4 accounts for 2 2-pixel borders. TODO: better solution? */\n return shrinkWidth == null ? 4 : shrinkWidth;\n}\nfunction hasShrinkWidth(cols) {\n for (let col of cols) {\n if (col.width === 'shrink') {\n return true;\n }\n }\n return false;\n}\nfunction getScrollGridClassNames(liquid, context) {\n let classNames = [\n 'fc-scrollgrid',\n context.theme.getClass('table'),\n ];\n if (liquid) {\n classNames.push('fc-scrollgrid-liquid');\n }\n return classNames;\n}\nfunction getSectionClassNames(sectionConfig, wholeTableVGrow) {\n let classNames = [\n 'fc-scrollgrid-section',\n `fc-scrollgrid-section-${sectionConfig.type}`,\n sectionConfig.className, // used?\n ];\n if (wholeTableVGrow && sectionConfig.liquid && sectionConfig.maxHeight == null) {\n classNames.push('fc-scrollgrid-section-liquid');\n }\n if (sectionConfig.isSticky) {\n classNames.push('fc-scrollgrid-section-sticky');\n }\n return classNames;\n}\nfunction renderScrollShim(arg) {\n return (createElement(\"div\", { className: \"fc-scrollgrid-sticky-shim\", style: {\n width: arg.clientWidth,\n minWidth: arg.tableMinWidth,\n } }));\n}\nfunction getStickyHeaderDates(options) {\n let { stickyHeaderDates } = options;\n if (stickyHeaderDates == null || stickyHeaderDates === 'auto') {\n stickyHeaderDates = options.height === 'auto' || options.viewHeight === 'auto';\n }\n return stickyHeaderDates;\n}\nfunction getStickyFooterScrollbar(options) {\n let { stickyFooterScrollbar } = options;\n if (stickyFooterScrollbar == null || stickyFooterScrollbar === 'auto') {\n stickyFooterScrollbar = options.height === 'auto' || options.viewHeight === 'auto';\n }\n return stickyFooterScrollbar;\n}\n\nclass SimpleScrollGrid extends BaseComponent {\n constructor() {\n super(...arguments);\n this.processCols = memoize((a) => a, isColPropsEqual); // so we get same `cols` props every time\n // yucky to memoize VNodes, but much more efficient for consumers\n this.renderMicroColGroup = memoize(renderMicroColGroup);\n this.scrollerRefs = new RefMap();\n this.scrollerElRefs = new RefMap(this._handleScrollerEl.bind(this));\n this.state = {\n shrinkWidth: null,\n forceYScrollbars: false,\n scrollerClientWidths: {},\n scrollerClientHeights: {},\n };\n // TODO: can do a really simple print-view. dont need to join rows\n this.handleSizing = () => {\n this.safeSetState(Object.assign({ shrinkWidth: this.computeShrinkWidth() }, this.computeScrollerDims()));\n };\n }\n render() {\n let { props, state, context } = this;\n let sectionConfigs = props.sections || [];\n let cols = this.processCols(props.cols);\n let microColGroupNode = this.renderMicroColGroup(cols, state.shrinkWidth);\n let classNames = getScrollGridClassNames(props.liquid, context);\n if (props.collapsibleWidth) {\n classNames.push('fc-scrollgrid-collapsible');\n }\n // TODO: make DRY\n let configCnt = sectionConfigs.length;\n let configI = 0;\n let currentConfig;\n let headSectionNodes = [];\n let bodySectionNodes = [];\n let footSectionNodes = [];\n while (configI < configCnt && (currentConfig = sectionConfigs[configI]).type === 'header') {\n headSectionNodes.push(this.renderSection(currentConfig, microColGroupNode, true));\n configI += 1;\n }\n while (configI < configCnt && (currentConfig = sectionConfigs[configI]).type === 'body') {\n bodySectionNodes.push(this.renderSection(currentConfig, microColGroupNode, false));\n configI += 1;\n }\n while (configI < configCnt && (currentConfig = sectionConfigs[configI]).type === 'footer') {\n footSectionNodes.push(this.renderSection(currentConfig, microColGroupNode, true));\n configI += 1;\n }\n // firefox bug: when setting height on table and there is a thead or tfoot,\n // the necessary height:100% on the liquid-height body section forces the *whole* table to be taller. (bug #5524)\n // use getCanVGrowWithinCell as a way to detect table-stupid firefox.\n // if so, use a simpler dom structure, jam everything into a lone tbody.\n let isBuggy = !getCanVGrowWithinCell();\n const roleAttrs = { role: 'rowgroup' };\n return createElement('table', {\n role: 'grid',\n className: classNames.join(' '),\n style: { height: props.height },\n }, Boolean(!isBuggy && headSectionNodes.length) && createElement('thead', roleAttrs, ...headSectionNodes), Boolean(!isBuggy && bodySectionNodes.length) && createElement('tbody', roleAttrs, ...bodySectionNodes), Boolean(!isBuggy && footSectionNodes.length) && createElement('tfoot', roleAttrs, ...footSectionNodes), isBuggy && createElement('tbody', roleAttrs, ...headSectionNodes, ...bodySectionNodes, ...footSectionNodes));\n }\n renderSection(sectionConfig, microColGroupNode, isHeader) {\n if ('outerContent' in sectionConfig) {\n return (createElement(Fragment, { key: sectionConfig.key }, sectionConfig.outerContent));\n }\n return (createElement(\"tr\", { key: sectionConfig.key, role: \"presentation\", className: getSectionClassNames(sectionConfig, this.props.liquid).join(' ') }, this.renderChunkTd(sectionConfig, microColGroupNode, sectionConfig.chunk, isHeader)));\n }\n renderChunkTd(sectionConfig, microColGroupNode, chunkConfig, isHeader) {\n if ('outerContent' in chunkConfig) {\n return chunkConfig.outerContent;\n }\n let { props } = this;\n let { forceYScrollbars, scrollerClientWidths, scrollerClientHeights } = this.state;\n let needsYScrolling = getAllowYScrolling(props, sectionConfig); // TODO: do lazily. do in section config?\n let isLiquid = getSectionHasLiquidHeight(props, sectionConfig);\n // for `!props.liquid` - is WHOLE scrollgrid natural height?\n // TODO: do same thing in advanced scrollgrid? prolly not b/c always has horizontal scrollbars\n let overflowY = !props.liquid ? 'visible' :\n forceYScrollbars ? 'scroll' :\n !needsYScrolling ? 'hidden' :\n 'auto';\n let sectionKey = sectionConfig.key;\n let content = renderChunkContent(sectionConfig, chunkConfig, {\n tableColGroupNode: microColGroupNode,\n tableMinWidth: '',\n clientWidth: (!props.collapsibleWidth && scrollerClientWidths[sectionKey] !== undefined) ? scrollerClientWidths[sectionKey] : null,\n clientHeight: scrollerClientHeights[sectionKey] !== undefined ? scrollerClientHeights[sectionKey] : null,\n expandRows: sectionConfig.expandRows,\n syncRowHeights: false,\n rowSyncHeights: [],\n reportRowHeightChange: () => { },\n }, isHeader);\n return createElement(isHeader ? 'th' : 'td', {\n ref: chunkConfig.elRef,\n role: 'presentation',\n }, createElement(\"div\", { className: `fc-scroller-harness${isLiquid ? ' fc-scroller-harness-liquid' : ''}` },\n createElement(Scroller, { ref: this.scrollerRefs.createRef(sectionKey), elRef: this.scrollerElRefs.createRef(sectionKey), overflowY: overflowY, overflowX: !props.liquid ? 'visible' : 'hidden' /* natural height? */, maxHeight: sectionConfig.maxHeight, liquid: isLiquid, liquidIsAbsolute // because its within a harness\n : true }, content)));\n }\n _handleScrollerEl(scrollerEl, key) {\n let section = getSectionByKey(this.props.sections, key);\n if (section) {\n setRef(section.chunk.scrollerElRef, scrollerEl);\n }\n }\n componentDidMount() {\n this.handleSizing();\n this.context.addResizeHandler(this.handleSizing);\n }\n componentDidUpdate() {\n // TODO: need better solution when state contains non-sizing things\n this.handleSizing();\n }\n componentWillUnmount() {\n this.context.removeResizeHandler(this.handleSizing);\n }\n computeShrinkWidth() {\n return hasShrinkWidth(this.props.cols)\n ? computeShrinkWidth(this.scrollerElRefs.getAll())\n : 0;\n }\n computeScrollerDims() {\n let scrollbarWidth = getScrollbarWidths();\n let { scrollerRefs, scrollerElRefs } = this;\n let forceYScrollbars = false;\n let scrollerClientWidths = {};\n let scrollerClientHeights = {};\n for (let sectionKey in scrollerRefs.currentMap) {\n let scroller = scrollerRefs.currentMap[sectionKey];\n if (scroller && scroller.needsYScrolling()) {\n forceYScrollbars = true;\n break;\n }\n }\n for (let section of this.props.sections) {\n let sectionKey = section.key;\n let scrollerEl = scrollerElRefs.currentMap[sectionKey];\n if (scrollerEl) {\n let harnessEl = scrollerEl.parentNode; // TODO: weird way to get this. need harness b/c doesn't include table borders\n scrollerClientWidths[sectionKey] = Math.floor(harnessEl.getBoundingClientRect().width - (forceYScrollbars\n ? scrollbarWidth.y // use global because scroller might not have scrollbars yet but will need them in future\n : 0));\n scrollerClientHeights[sectionKey] = Math.floor(harnessEl.getBoundingClientRect().height);\n }\n }\n return { forceYScrollbars, scrollerClientWidths, scrollerClientHeights };\n }\n}\nSimpleScrollGrid.addStateEquality({\n scrollerClientWidths: isPropsEqual,\n scrollerClientHeights: isPropsEqual,\n});\nfunction getSectionByKey(sections, key) {\n for (let section of sections) {\n if (section.key === key) {\n return section;\n }\n }\n return null;\n}\n\nclass EventContainer extends BaseComponent {\n constructor() {\n super(...arguments);\n // memo\n this.buildPublicEvent = memoize((context, eventDef, eventInstance) => new EventImpl(context, eventDef, eventInstance));\n this.handleEl = (el) => {\n this.el = el;\n setRef(this.props.elRef, el);\n if (el) {\n setElSeg(el, this.props.seg);\n }\n };\n }\n render() {\n const { props, context } = this;\n const { options } = context;\n const { seg } = props;\n const { eventRange } = seg;\n const { ui } = eventRange;\n const renderProps = {\n event: this.buildPublicEvent(context, eventRange.def, eventRange.instance),\n view: context.viewApi,\n timeText: props.timeText,\n textColor: ui.textColor,\n backgroundColor: ui.backgroundColor,\n borderColor: ui.borderColor,\n isDraggable: !props.disableDragging && computeSegDraggable(seg, context),\n isStartResizable: !props.disableResizing && computeSegStartResizable(seg, context),\n isEndResizable: !props.disableResizing && computeSegEndResizable(seg),\n isMirror: Boolean(props.isDragging || props.isResizing || props.isDateSelecting),\n isStart: Boolean(seg.isStart),\n isEnd: Boolean(seg.isEnd),\n isPast: Boolean(props.isPast),\n isFuture: Boolean(props.isFuture),\n isToday: Boolean(props.isToday),\n isSelected: Boolean(props.isSelected),\n isDragging: Boolean(props.isDragging),\n isResizing: Boolean(props.isResizing),\n };\n return (createElement(ContentContainer, { elRef: this.handleEl, elTag: props.elTag, elAttrs: props.elAttrs, elClasses: [\n ...getEventClassNames(renderProps),\n ...seg.eventRange.ui.classNames,\n ...(props.elClasses || []),\n ], elStyle: props.elStyle, renderProps: renderProps, generatorName: \"eventContent\", customGenerator: options.eventContent, defaultGenerator: props.defaultGenerator, classNameGenerator: options.eventClassNames, didMount: options.eventDidMount, willUnmount: options.eventWillUnmount }, props.children));\n }\n componentDidUpdate(prevProps) {\n if (this.el && this.props.seg !== prevProps.seg) {\n setElSeg(this.el, this.props.seg);\n }\n }\n}\n\n// should not be a purecomponent\nclass StandardEvent extends BaseComponent {\n render() {\n let { props, context } = this;\n let { options } = context;\n let { seg } = props;\n let { ui } = seg.eventRange;\n let timeFormat = options.eventTimeFormat || props.defaultTimeFormat;\n let timeText = buildSegTimeText(seg, timeFormat, context, props.defaultDisplayEventTime, props.defaultDisplayEventEnd);\n return (createElement(EventContainer, Object.assign({}, props /* includes elRef */, { elTag: \"a\", elStyle: {\n borderColor: ui.borderColor,\n backgroundColor: ui.backgroundColor,\n }, elAttrs: getSegAnchorAttrs(seg, context), defaultGenerator: renderInnerContent$1, timeText: timeText }), (InnerContent, eventContentArg) => (createElement(Fragment, null,\n createElement(InnerContent, { elTag: \"div\", elClasses: ['fc-event-main'], elStyle: { color: eventContentArg.textColor } }),\n Boolean(eventContentArg.isStartResizable) && (createElement(\"div\", { className: \"fc-event-resizer fc-event-resizer-start\" })),\n Boolean(eventContentArg.isEndResizable) && (createElement(\"div\", { className: \"fc-event-resizer fc-event-resizer-end\" }))))));\n }\n}\nStandardEvent.addPropsEquality({\n seg: isPropsEqual,\n});\nfunction renderInnerContent$1(innerProps) {\n return (createElement(\"div\", { className: \"fc-event-main-frame\" },\n innerProps.timeText && (createElement(\"div\", { className: \"fc-event-time\" }, innerProps.timeText)),\n createElement(\"div\", { className: \"fc-event-title-container\" },\n createElement(\"div\", { className: \"fc-event-title fc-sticky\" }, innerProps.event.title || createElement(Fragment, null, \"\\u00A0\")))));\n}\n\nconst NowIndicatorContainer = (props) => (createElement(ViewContextType.Consumer, null, (context) => {\n let { options } = context;\n let renderProps = {\n isAxis: props.isAxis,\n date: context.dateEnv.toDate(props.date),\n view: context.viewApi,\n };\n return (createElement(ContentContainer, { elRef: props.elRef, elTag: props.elTag || 'div', elAttrs: props.elAttrs, elClasses: props.elClasses, elStyle: props.elStyle, renderProps: renderProps, generatorName: \"nowIndicatorContent\", customGenerator: options.nowIndicatorContent, classNameGenerator: options.nowIndicatorClassNames, didMount: options.nowIndicatorDidMount, willUnmount: options.nowIndicatorWillUnmount }, props.children));\n}));\n\nconst DAY_NUM_FORMAT = createFormatter({ day: 'numeric' });\nclass DayCellContainer extends BaseComponent {\n constructor() {\n super(...arguments);\n this.refineRenderProps = memoizeObjArg(refineRenderProps);\n }\n render() {\n let { props, context } = this;\n let { options } = context;\n let renderProps = this.refineRenderProps({\n date: props.date,\n dateProfile: props.dateProfile,\n todayRange: props.todayRange,\n isMonthStart: props.isMonthStart || false,\n showDayNumber: props.showDayNumber,\n extraRenderProps: props.extraRenderProps,\n viewApi: context.viewApi,\n dateEnv: context.dateEnv,\n monthStartFormat: options.monthStartFormat,\n });\n return (createElement(ContentContainer, { elRef: props.elRef, elTag: props.elTag, elAttrs: Object.assign(Object.assign({}, props.elAttrs), (renderProps.isDisabled ? {} : { 'data-date': formatDayString(props.date) })), elClasses: [\n ...getDayClassNames(renderProps, context.theme),\n ...(props.elClasses || []),\n ], elStyle: props.elStyle, renderProps: renderProps, generatorName: \"dayCellContent\", customGenerator: options.dayCellContent, defaultGenerator: props.defaultGenerator, classNameGenerator: \n // don't use custom classNames if disabled\n renderProps.isDisabled ? undefined : options.dayCellClassNames, didMount: options.dayCellDidMount, willUnmount: options.dayCellWillUnmount }, props.children));\n }\n}\nfunction hasCustomDayCellContent(options) {\n return Boolean(options.dayCellContent || hasCustomRenderingHandler('dayCellContent', options));\n}\nfunction refineRenderProps(raw) {\n let { date, dateEnv, dateProfile, isMonthStart } = raw;\n let dayMeta = getDateMeta(date, raw.todayRange, null, dateProfile);\n let dayNumberText = raw.showDayNumber ? (dateEnv.format(date, isMonthStart ? raw.monthStartFormat : DAY_NUM_FORMAT)) : '';\n return Object.assign(Object.assign(Object.assign({ date: dateEnv.toDate(date), view: raw.viewApi }, dayMeta), { isMonthStart,\n dayNumberText }), raw.extraRenderProps);\n}\n\nclass BgEvent extends BaseComponent {\n render() {\n let { props } = this;\n let { seg } = props;\n return (createElement(EventContainer, { elTag: \"div\", elClasses: ['fc-bg-event'], elStyle: { backgroundColor: seg.eventRange.ui.backgroundColor }, defaultGenerator: renderInnerContent, seg: seg, timeText: \"\", isDragging: false, isResizing: false, isDateSelecting: false, isSelected: false, isPast: props.isPast, isFuture: props.isFuture, isToday: props.isToday, disableDragging: true, disableResizing: true }));\n }\n}\nfunction renderInnerContent(props) {\n let { title } = props.event;\n return title && (createElement(\"div\", { className: \"fc-event-title\" }, props.event.title));\n}\nfunction renderFill(fillType) {\n return (createElement(\"div\", { className: `fc-${fillType}` }));\n}\n\nconst WeekNumberContainer = (props) => (createElement(ViewContextType.Consumer, null, (context) => {\n let { dateEnv, options } = context;\n let { date } = props;\n let format = options.weekNumberFormat || props.defaultFormat;\n let num = dateEnv.computeWeekNumber(date); // TODO: somehow use for formatting as well?\n let text = dateEnv.format(date, format);\n let renderProps = { num, text, date };\n return (createElement(ContentContainer // why isn't WeekNumberContentArg being auto-detected?\n , { elRef: props.elRef, elTag: props.elTag, elAttrs: props.elAttrs, elClasses: props.elClasses, elStyle: props.elStyle, renderProps: renderProps, generatorName: \"weekNumberContent\", customGenerator: options.weekNumberContent, defaultGenerator: renderInner, classNameGenerator: options.weekNumberClassNames, didMount: options.weekNumberDidMount, willUnmount: options.weekNumberWillUnmount }, props.children));\n}));\nfunction renderInner(innerProps) {\n return innerProps.text;\n}\n\nconst PADDING_FROM_VIEWPORT = 10;\nclass Popover extends BaseComponent {\n constructor() {\n super(...arguments);\n this.state = {\n titleId: getUniqueDomId(),\n };\n this.handleRootEl = (el) => {\n this.rootEl = el;\n if (this.props.elRef) {\n setRef(this.props.elRef, el);\n }\n };\n // Triggered when the user clicks *anywhere* in the document, for the autoHide feature\n this.handleDocumentMouseDown = (ev) => {\n // only hide the popover if the click happened outside the popover\n const target = getEventTargetViaRoot(ev);\n if (!this.rootEl.contains(target)) {\n this.handleCloseClick();\n }\n };\n this.handleDocumentKeyDown = (ev) => {\n if (ev.key === 'Escape') {\n this.handleCloseClick();\n }\n };\n this.handleCloseClick = () => {\n let { onClose } = this.props;\n if (onClose) {\n onClose();\n }\n };\n }\n render() {\n let { theme, options } = this.context;\n let { props, state } = this;\n let classNames = [\n 'fc-popover',\n theme.getClass('popover'),\n ].concat(props.extraClassNames || []);\n return createPortal(createElement(\"div\", Object.assign({}, props.extraAttrs, { id: props.id, className: classNames.join(' '), \"aria-labelledby\": state.titleId, ref: this.handleRootEl }),\n createElement(\"div\", { className: 'fc-popover-header ' + theme.getClass('popoverHeader') },\n createElement(\"span\", { className: \"fc-popover-title\", id: state.titleId }, props.title),\n createElement(\"span\", { className: 'fc-popover-close ' + theme.getIconClass('close'), title: options.closeHint, onClick: this.handleCloseClick })),\n createElement(\"div\", { className: 'fc-popover-body ' + theme.getClass('popoverContent') }, props.children)), props.parentEl);\n }\n componentDidMount() {\n document.addEventListener('mousedown', this.handleDocumentMouseDown);\n document.addEventListener('keydown', this.handleDocumentKeyDown);\n this.updateSize();\n }\n componentWillUnmount() {\n document.removeEventListener('mousedown', this.handleDocumentMouseDown);\n document.removeEventListener('keydown', this.handleDocumentKeyDown);\n }\n updateSize() {\n let { isRtl } = this.context;\n let { alignmentEl, alignGridTop } = this.props;\n let { rootEl } = this;\n let alignmentRect = computeClippedClientRect(alignmentEl);\n if (alignmentRect) {\n let popoverDims = rootEl.getBoundingClientRect();\n // position relative to viewport\n let popoverTop = alignGridTop\n ? elementClosest(alignmentEl, '.fc-scrollgrid').getBoundingClientRect().top\n : alignmentRect.top;\n let popoverLeft = isRtl ? alignmentRect.right - popoverDims.width : alignmentRect.left;\n // constrain\n popoverTop = Math.max(popoverTop, PADDING_FROM_VIEWPORT);\n popoverLeft = Math.min(popoverLeft, document.documentElement.clientWidth - PADDING_FROM_VIEWPORT - popoverDims.width);\n popoverLeft = Math.max(popoverLeft, PADDING_FROM_VIEWPORT);\n let origin = rootEl.offsetParent.getBoundingClientRect();\n applyStyle(rootEl, {\n top: popoverTop - origin.top,\n left: popoverLeft - origin.left,\n });\n }\n }\n}\n\nclass MorePopover extends DateComponent {\n constructor() {\n super(...arguments);\n this.handleRootEl = (rootEl) => {\n this.rootEl = rootEl;\n if (rootEl) {\n this.context.registerInteractiveComponent(this, {\n el: rootEl,\n useEventCenter: false,\n });\n }\n else {\n this.context.unregisterInteractiveComponent(this);\n }\n };\n }\n render() {\n let { options, dateEnv } = this.context;\n let { props } = this;\n let { startDate, todayRange, dateProfile } = props;\n let title = dateEnv.format(startDate, options.dayPopoverFormat);\n return (createElement(DayCellContainer, { elRef: this.handleRootEl, date: startDate, dateProfile: dateProfile, todayRange: todayRange }, (InnerContent, renderProps, elAttrs) => (createElement(Popover, { elRef: elAttrs.ref, id: props.id, title: title, extraClassNames: ['fc-more-popover'].concat(elAttrs.className || []), extraAttrs: elAttrs /* TODO: make these time-based when not whole-day? */, parentEl: props.parentEl, alignmentEl: props.alignmentEl, alignGridTop: props.alignGridTop, onClose: props.onClose },\n hasCustomDayCellContent(options) && (createElement(InnerContent, { elTag: \"div\", elClasses: ['fc-more-popover-misc'] })),\n props.children))));\n }\n queryHit(positionLeft, positionTop, elWidth, elHeight) {\n let { rootEl, props } = this;\n if (positionLeft >= 0 && positionLeft < elWidth &&\n positionTop >= 0 && positionTop < elHeight) {\n return {\n dateProfile: props.dateProfile,\n dateSpan: Object.assign({ allDay: !props.forceTimed, range: {\n start: props.startDate,\n end: props.endDate,\n } }, props.extraDateSpan),\n dayEl: rootEl,\n rect: {\n left: 0,\n top: 0,\n right: elWidth,\n bottom: elHeight,\n },\n layer: 1, // important when comparing with hits from other components\n };\n }\n return null;\n }\n}\n\nclass MoreLinkContainer extends BaseComponent {\n constructor() {\n super(...arguments);\n this.state = {\n isPopoverOpen: false,\n popoverId: getUniqueDomId(),\n };\n this.handleLinkEl = (linkEl) => {\n this.linkEl = linkEl;\n if (this.props.elRef) {\n setRef(this.props.elRef, linkEl);\n }\n };\n this.handleClick = (ev) => {\n let { props, context } = this;\n let { moreLinkClick } = context.options;\n let date = computeRange(props).start;\n function buildPublicSeg(seg) {\n let { def, instance, range } = seg.eventRange;\n return {\n event: new EventImpl(context, def, instance),\n start: context.dateEnv.toDate(range.start),\n end: context.dateEnv.toDate(range.end),\n isStart: seg.isStart,\n isEnd: seg.isEnd,\n };\n }\n if (typeof moreLinkClick === 'function') {\n moreLinkClick = moreLinkClick({\n date,\n allDay: Boolean(props.allDayDate),\n allSegs: props.allSegs.map(buildPublicSeg),\n hiddenSegs: props.hiddenSegs.map(buildPublicSeg),\n jsEvent: ev,\n view: context.viewApi,\n });\n }\n if (!moreLinkClick || moreLinkClick === 'popover') {\n this.setState({ isPopoverOpen: true });\n }\n else if (typeof moreLinkClick === 'string') { // a view name\n context.calendarApi.zoomTo(date, moreLinkClick);\n }\n };\n this.handlePopoverClose = () => {\n this.setState({ isPopoverOpen: false });\n };\n }\n render() {\n let { props, state } = this;\n return (createElement(ViewContextType.Consumer, null, (context) => {\n let { viewApi, options, calendarApi } = context;\n let { moreLinkText } = options;\n let { moreCnt } = props;\n let range = computeRange(props);\n let text = typeof moreLinkText === 'function' // TODO: eventually use formatWithOrdinals\n ? moreLinkText.call(calendarApi, moreCnt)\n : `+${moreCnt} ${moreLinkText}`;\n let hint = formatWithOrdinals(options.moreLinkHint, [moreCnt], text);\n let renderProps = {\n num: moreCnt,\n shortText: `+${moreCnt}`,\n text,\n view: viewApi,\n };\n return (createElement(Fragment, null,\n Boolean(props.moreCnt) && (createElement(ContentContainer, { elTag: props.elTag || 'a', elRef: this.handleLinkEl, elClasses: [\n ...(props.elClasses || []),\n 'fc-more-link',\n ], elStyle: props.elStyle, elAttrs: Object.assign(Object.assign(Object.assign({}, props.elAttrs), createAriaClickAttrs(this.handleClick)), { title: hint, 'aria-expanded': state.isPopoverOpen, 'aria-controls': state.isPopoverOpen ? state.popoverId : '' }), renderProps: renderProps, generatorName: \"moreLinkContent\", customGenerator: options.moreLinkContent, defaultGenerator: props.defaultGenerator || renderMoreLinkInner, classNameGenerator: options.moreLinkClassNames, didMount: options.moreLinkDidMount, willUnmount: options.moreLinkWillUnmount }, props.children)),\n state.isPopoverOpen && (createElement(MorePopover, { id: state.popoverId, startDate: range.start, endDate: range.end, dateProfile: props.dateProfile, todayRange: props.todayRange, extraDateSpan: props.extraDateSpan, parentEl: this.parentEl, alignmentEl: props.alignmentElRef ?\n props.alignmentElRef.current :\n this.linkEl, alignGridTop: props.alignGridTop, forceTimed: props.forceTimed, onClose: this.handlePopoverClose }, props.popoverContent()))));\n }));\n }\n componentDidMount() {\n this.updateParentEl();\n }\n componentDidUpdate() {\n this.updateParentEl();\n }\n updateParentEl() {\n if (this.linkEl) {\n this.parentEl = elementClosest(this.linkEl, '.fc-view-harness');\n }\n }\n}\nfunction renderMoreLinkInner(props) {\n return props.text;\n}\nfunction computeRange(props) {\n if (props.allDayDate) {\n return {\n start: props.allDayDate,\n end: addDays(props.allDayDate, 1),\n };\n }\n let { hiddenSegs } = props;\n return {\n start: computeEarliestSegStart(hiddenSegs),\n end: computeLatestSegEnd(hiddenSegs),\n };\n}\nfunction computeEarliestSegStart(segs) {\n return segs.reduce(pickEarliestStart).eventRange.range.start;\n}\nfunction pickEarliestStart(seg0, seg1) {\n return seg0.eventRange.range.start < seg1.eventRange.range.start ? seg0 : seg1;\n}\nfunction computeLatestSegEnd(segs) {\n return segs.reduce(pickLatestEnd).eventRange.range.end;\n}\nfunction pickLatestEnd(seg0, seg1) {\n return seg0.eventRange.range.end > seg1.eventRange.range.end ? seg0 : seg1;\n}\n\nclass Store {\n constructor() {\n this.handlers = [];\n }\n set(value) {\n this.currentValue = value;\n for (let handler of this.handlers) {\n handler(value);\n }\n }\n subscribe(handler) {\n this.handlers.push(handler);\n if (this.currentValue !== undefined) {\n handler(this.currentValue);\n }\n }\n}\n\n/*\nSubscribers will get a LIST of CustomRenderings\n*/\nclass CustomRenderingStore extends Store {\n constructor() {\n super(...arguments);\n this.map = new Map();\n }\n // for consistent order\n handle(customRendering) {\n const { map } = this;\n let updated = false;\n if (customRendering.isActive) {\n map.set(customRendering.id, customRendering);\n updated = true;\n }\n else if (map.has(customRendering.id)) {\n map.delete(customRendering.id);\n updated = true;\n }\n if (updated) {\n this.set(map);\n }\n }\n}\n\nexport { listenBySelector as $, memoizeObjArg as A, BaseComponent as B, ContentContainer as C, DelayedRunner as D, isPropsEqual as E, Emitter as F, rangeContainsMarker as G, createEmptyEventStore as H, reduceEventStore as I, rezoneEventStoreDates as J, mergeRawOptions as K, BASE_OPTION_REFINERS as L, CALENDAR_LISTENER_REFINERS as M, CALENDAR_OPTION_REFINERS as N, COMPLEX_OPTION_COMPARATORS as O, VIEW_OPTION_REFINERS as P, DateEnv as Q, DateProfileGenerator as R, createEventUi as S, Theme as T, parseBusinessHours as U, ViewContextType as V, setRef as W, Interaction as X, getElSeg as Y, elementClosest as Z, EventImpl as _, mapHash as a, preventDefault as a$, listenToHoverBySelector as a0, PureComponent as a1, buildViewContext as a2, getUniqueDomId as a3, parseInteractionSettings as a4, interactionSettingsStore as a5, NowTimer as a6, CalendarImpl as a7, flushSync as a8, CalendarRoot as a9, memoizeArraylike as aA, memoizeHashlike as aB, intersectRects as aC, pointInsideRect as aD, constrainPoint as aE, getRectCenter as aF, diffPoints as aG, translateRect as aH, compareObjs as aI, collectFromHash as aJ, findElements as aK, findDirectChildren as aL, removeElement as aM, applyStyle as aN, elementMatches as aO, getEventTargetViaRoot as aP, parseClassNames as aQ, getCanVGrowWithinCell as aR, mergeEventStores as aS, getRelevantEvents as aT, eventTupleToStore as aU, combineEventUis as aV, Splitter as aW, getDayClassNames as aX, getDateMeta as aY, getSlotClassNames as aZ, buildNavLinkAttrs as a_, RenderId as aa, ensureElHasStyles as ab, applyStyleProp as ac, sliceEventStore as ad, JsonRequestError as ae, createContext as af, refineProps as ag, createEventInstance as ah, parseEventDef as ai, refineEventDef as aj, padStart as ak, isInt as al, parseFieldSpecs as am, compareByFieldSpecs as an, flexibleCompare as ao, preventSelection as ap, allowSelection as aq, preventContextMenu as ar, allowContextMenu as as, compareNumbers as at, enableCursor as au, disableCursor as av, computeVisibleDayRange as aw, isMultiDayRange as ax, diffDates as ay, removeExact as az, buildViewClassNames as b, renderMicroColGroup as b$, whenTransitionDone as b0, computeInnerRect as b1, computeEdges as b2, getClippingParents as b3, computeRect as b4, rangesEqual as b5, rangesIntersect as b6, rangeContainsRange as b7, PositionCache as b8, ScrollController as b9, getEntrySpanEnd as bA, binarySearch as bB, groupIntersectingEntries as bC, intersectSpans as bD, interactionSettingsToStore as bE, ElementDragging as bF, config as bG, parseDragMeta as bH, DayHeader as bI, computeFallbackHeaderFormat as bJ, TableDateCell as bK, TableDowCell as bL, DaySeriesModel as bM, hasBgRendering as bN, buildSegTimeText as bO, sortEventSegs as bP, getSegMeta as bQ, buildEventRangeKey as bR, getSegAnchorAttrs as bS, DayTableModel as bT, Slicer as bU, applyMutationToEventStore as bV, isPropsValid as bW, isInteractionValid as bX, isDateSelectionValid as bY, SimpleScrollGrid as bZ, hasShrinkWidth as b_, ElementScrollController as ba, WindowScrollController as bb, DateComponent as bc, isDateSpansEqual as bd, addMs as be, addWeeks as bf, diffWeeks as bg, diffWholeWeeks as bh, diffDayAndTime as bi, diffDays as bj, isValidDate as bk, asCleanDays as bl, multiplyDuration as bm, addDurations as bn, asRoughMinutes as bo, asRoughSeconds as bp, asRoughMs as bq, wholeDivideDurations as br, formatIsoTimeString as bs, formatDayString as bt, buildIsoString as bu, formatIsoMonthStr as bv, NamedTimeZoneImpl as bw, parse as bx, SegHierarchy as by, buildEntryKey as bz, greatestDurationDenominator as c, getScrollGridClassNames as c0, getSectionClassNames as c1, getSectionHasLiquidHeight as c2, getAllowYScrolling as c3, renderChunkContent as c4, computeShrinkWidth as c5, sanitizeShrinkWidth as c6, isColPropsEqual as c7, renderScrollShim as c8, getStickyFooterScrollbar as c9, getStickyHeaderDates as ca, Scroller as cb, getScrollbarWidths as cc, RefMap as cd, getIsRtlScrollbarOnLeft as ce, ScrollResponder as cf, StandardEvent as cg, NowIndicatorContainer as ch, DayCellContainer as ci, hasCustomDayCellContent as cj, EventContainer as ck, renderFill as cl, BgEvent as cm, WeekNumberContainer as cn, MoreLinkContainer as co, computeEarliestSegStart as cp, ViewContainer as cq, triggerDateSelect as cr, getDefaultEventEnd as cs, injectStyles as ct, buildElAttrs as cu, CustomRenderingStore as cv, createDuration as d, BASE_OPTION_DEFAULTS as e, arrayToHash as f, guid as g, filterHash as h, isArraysEqual as i, buildEventSourceRefiners as j, formatWithOrdinals as k, buildRangeApiWithTimeZone as l, mergeProps as m, identity as n, intersectRanges as o, parseEventSource as p, startOfDay as q, requestJson as r, subtractDurations as s, addDays as t, unpromisify as u, hashValuesToArray as v, buildEventApis as w, createFormatter as x, diffWholeDays as y, memoize as z };\n","import { createPlugin } from '@fullcalendar/core/index.js';\nimport { DayGridView as DayTableView, TableDateProfileGenerator } from './internal.js';\nimport '@fullcalendar/core/internal.js';\nimport '@fullcalendar/core/preact.js';\n\nvar index = createPlugin({\n name: '@fullcalendar/daygrid',\n initialView: 'dayGridMonth',\n views: {\n dayGrid: {\n component: DayTableView,\n dateProfileGeneratorClass: TableDateProfileGenerator,\n },\n dayGridDay: {\n type: 'dayGrid',\n duration: { days: 1 },\n },\n dayGridWeek: {\n type: 'dayGrid',\n duration: { weeks: 1 },\n },\n dayGridMonth: {\n type: 'dayGrid',\n duration: { months: 1 },\n fixedWeekCount: true,\n },\n dayGridYear: {\n type: 'dayGrid',\n duration: { years: 1 },\n },\n },\n});\n\nexport { index as default };\n","import { DateComponent, getStickyHeaderDates, ViewContainer, SimpleScrollGrid, getStickyFooterScrollbar, renderScrollShim, createFormatter, BaseComponent, StandardEvent, buildSegTimeText, EventContainer, getSegAnchorAttrs, memoize, MoreLinkContainer, getSegMeta, getUniqueDomId, setRef, DayCellContainer, WeekNumberContainer, buildNavLinkAttrs, hasCustomDayCellContent, addMs, intersectRanges, addDays, SegHierarchy, buildEntryKey, intersectSpans, RefMap, sortEventSegs, isPropsEqual, buildEventRangeKey, BgEvent, renderFill, PositionCache, NowTimer, formatIsoMonthStr, formatDayString, Slicer, DayHeader, DaySeriesModel, DayTableModel, DateProfileGenerator, addWeeks, diffWeeks, injectStyles } from '@fullcalendar/core/internal.js';\nimport { createRef, createElement, Fragment } from '@fullcalendar/core/preact.js';\n\n/* An abstract class for the daygrid views, as well as month view. Renders one or more rows of day cells.\n----------------------------------------------------------------------------------------------------------------------*/\n// It is a manager for a Table subcomponent, which does most of the heavy lifting.\n// It is responsible for managing width/height.\nclass TableView extends DateComponent {\n constructor() {\n super(...arguments);\n this.headerElRef = createRef();\n }\n renderSimpleLayout(headerRowContent, bodyContent) {\n let { props, context } = this;\n let sections = [];\n let stickyHeaderDates = getStickyHeaderDates(context.options);\n if (headerRowContent) {\n sections.push({\n type: 'header',\n key: 'header',\n isSticky: stickyHeaderDates,\n chunk: {\n elRef: this.headerElRef,\n tableClassName: 'fc-col-header',\n rowContent: headerRowContent,\n },\n });\n }\n sections.push({\n type: 'body',\n key: 'body',\n liquid: true,\n chunk: { content: bodyContent },\n });\n return (createElement(ViewContainer, { elClasses: ['fc-daygrid'], viewSpec: context.viewSpec },\n createElement(SimpleScrollGrid, { liquid: !props.isHeightAuto && !props.forPrint, collapsibleWidth: props.forPrint, cols: [] /* TODO: make optional? */, sections: sections })));\n }\n renderHScrollLayout(headerRowContent, bodyContent, colCnt, dayMinWidth) {\n let ScrollGrid = this.context.pluginHooks.scrollGridImpl;\n if (!ScrollGrid) {\n throw new Error('No ScrollGrid implementation');\n }\n let { props, context } = this;\n let stickyHeaderDates = !props.forPrint && getStickyHeaderDates(context.options);\n let stickyFooterScrollbar = !props.forPrint && getStickyFooterScrollbar(context.options);\n let sections = [];\n if (headerRowContent) {\n sections.push({\n type: 'header',\n key: 'header',\n isSticky: stickyHeaderDates,\n chunks: [{\n key: 'main',\n elRef: this.headerElRef,\n tableClassName: 'fc-col-header',\n rowContent: headerRowContent,\n }],\n });\n }\n sections.push({\n type: 'body',\n key: 'body',\n liquid: true,\n chunks: [{\n key: 'main',\n content: bodyContent,\n }],\n });\n if (stickyFooterScrollbar) {\n sections.push({\n type: 'footer',\n key: 'footer',\n isSticky: true,\n chunks: [{\n key: 'main',\n content: renderScrollShim,\n }],\n });\n }\n return (createElement(ViewContainer, { elClasses: ['fc-daygrid'], viewSpec: context.viewSpec },\n createElement(ScrollGrid, { liquid: !props.isHeightAuto && !props.forPrint, forPrint: props.forPrint, collapsibleWidth: props.forPrint, colGroups: [{ cols: [{ span: colCnt, minWidth: dayMinWidth }] }], sections: sections })));\n }\n}\n\nfunction splitSegsByRow(segs, rowCnt) {\n let byRow = [];\n for (let i = 0; i < rowCnt; i += 1) {\n byRow[i] = [];\n }\n for (let seg of segs) {\n byRow[seg.row].push(seg);\n }\n return byRow;\n}\nfunction splitSegsByFirstCol(segs, colCnt) {\n let byCol = [];\n for (let i = 0; i < colCnt; i += 1) {\n byCol[i] = [];\n }\n for (let seg of segs) {\n byCol[seg.firstCol].push(seg);\n }\n return byCol;\n}\nfunction splitInteractionByRow(ui, rowCnt) {\n let byRow = [];\n if (!ui) {\n for (let i = 0; i < rowCnt; i += 1) {\n byRow[i] = null;\n }\n }\n else {\n for (let i = 0; i < rowCnt; i += 1) {\n byRow[i] = {\n affectedInstances: ui.affectedInstances,\n isEvent: ui.isEvent,\n segs: [],\n };\n }\n for (let seg of ui.segs) {\n byRow[seg.row].segs.push(seg);\n }\n }\n return byRow;\n}\n\nconst DEFAULT_TABLE_EVENT_TIME_FORMAT = createFormatter({\n hour: 'numeric',\n minute: '2-digit',\n omitZeroMinute: true,\n meridiem: 'narrow',\n});\nfunction hasListItemDisplay(seg) {\n let { display } = seg.eventRange.ui;\n return display === 'list-item' || (display === 'auto' &&\n !seg.eventRange.def.allDay &&\n seg.firstCol === seg.lastCol && // can't be multi-day\n seg.isStart && // \"\n seg.isEnd // \"\n );\n}\n\nclass TableBlockEvent extends BaseComponent {\n render() {\n let { props } = this;\n return (createElement(StandardEvent, Object.assign({}, props, { elClasses: ['fc-daygrid-event', 'fc-daygrid-block-event', 'fc-h-event'], defaultTimeFormat: DEFAULT_TABLE_EVENT_TIME_FORMAT, defaultDisplayEventEnd: props.defaultDisplayEventEnd, disableResizing: !props.seg.eventRange.def.allDay })));\n }\n}\n\nclass TableListItemEvent extends BaseComponent {\n render() {\n let { props, context } = this;\n let { options } = context;\n let { seg } = props;\n let timeFormat = options.eventTimeFormat || DEFAULT_TABLE_EVENT_TIME_FORMAT;\n let timeText = buildSegTimeText(seg, timeFormat, context, true, props.defaultDisplayEventEnd);\n return (createElement(EventContainer, Object.assign({}, props, { elTag: \"a\", elClasses: ['fc-daygrid-event', 'fc-daygrid-dot-event'], elAttrs: getSegAnchorAttrs(props.seg, context), defaultGenerator: renderInnerContent, timeText: timeText, isResizing: false, isDateSelecting: false })));\n }\n}\nfunction renderInnerContent(renderProps) {\n return (createElement(Fragment, null,\n createElement(\"div\", { className: \"fc-daygrid-event-dot\", style: { borderColor: renderProps.borderColor || renderProps.backgroundColor } }),\n renderProps.timeText && (createElement(\"div\", { className: \"fc-event-time\" }, renderProps.timeText)),\n createElement(\"div\", { className: \"fc-event-title\" }, renderProps.event.title || createElement(Fragment, null, \"\\u00A0\"))));\n}\n\nclass TableCellMoreLink extends BaseComponent {\n constructor() {\n super(...arguments);\n this.compileSegs = memoize(compileSegs);\n }\n render() {\n let { props } = this;\n let { allSegs, invisibleSegs } = this.compileSegs(props.singlePlacements);\n return (createElement(MoreLinkContainer, { elClasses: ['fc-daygrid-more-link'], dateProfile: props.dateProfile, todayRange: props.todayRange, allDayDate: props.allDayDate, moreCnt: props.moreCnt, allSegs: allSegs, hiddenSegs: invisibleSegs, alignmentElRef: props.alignmentElRef, alignGridTop: props.alignGridTop, extraDateSpan: props.extraDateSpan, popoverContent: () => {\n let isForcedInvisible = (props.eventDrag ? props.eventDrag.affectedInstances : null) ||\n (props.eventResize ? props.eventResize.affectedInstances : null) ||\n {};\n return (createElement(Fragment, null, allSegs.map((seg) => {\n let instanceId = seg.eventRange.instance.instanceId;\n return (createElement(\"div\", { className: \"fc-daygrid-event-harness\", key: instanceId, style: {\n visibility: isForcedInvisible[instanceId] ? 'hidden' : '',\n } }, hasListItemDisplay(seg) ? (createElement(TableListItemEvent, Object.assign({ seg: seg, isDragging: false, isSelected: instanceId === props.eventSelection, defaultDisplayEventEnd: false }, getSegMeta(seg, props.todayRange)))) : (createElement(TableBlockEvent, Object.assign({ seg: seg, isDragging: false, isResizing: false, isDateSelecting: false, isSelected: instanceId === props.eventSelection, defaultDisplayEventEnd: false }, getSegMeta(seg, props.todayRange))))));\n })));\n } }));\n }\n}\nfunction compileSegs(singlePlacements) {\n let allSegs = [];\n let invisibleSegs = [];\n for (let placement of singlePlacements) {\n allSegs.push(placement.seg);\n if (!placement.isVisible) {\n invisibleSegs.push(placement.seg);\n }\n }\n return { allSegs, invisibleSegs };\n}\n\nconst DEFAULT_WEEK_NUM_FORMAT = createFormatter({ week: 'narrow' });\nclass TableCell extends DateComponent {\n constructor() {\n super(...arguments);\n this.rootElRef = createRef();\n this.state = {\n dayNumberId: getUniqueDomId(),\n };\n this.handleRootEl = (el) => {\n setRef(this.rootElRef, el);\n setRef(this.props.elRef, el);\n };\n }\n render() {\n let { context, props, state, rootElRef } = this;\n let { options, dateEnv } = context;\n let { date, dateProfile } = props;\n // TODO: memoize this?\n const isMonthStart = props.showDayNumber &&\n shouldDisplayMonthStart(date, dateProfile.currentRange, dateEnv);\n return (createElement(DayCellContainer, { elTag: \"td\", elRef: this.handleRootEl, elClasses: [\n 'fc-daygrid-day',\n ...(props.extraClassNames || []),\n ], elAttrs: Object.assign(Object.assign(Object.assign({}, props.extraDataAttrs), (props.showDayNumber ? { 'aria-labelledby': state.dayNumberId } : {})), { role: 'gridcell' }), defaultGenerator: renderTopInner, date: date, dateProfile: dateProfile, todayRange: props.todayRange, showDayNumber: props.showDayNumber, isMonthStart: isMonthStart, extraRenderProps: props.extraRenderProps }, (InnerContent, renderProps) => (createElement(\"div\", { ref: props.innerElRef, className: \"fc-daygrid-day-frame fc-scrollgrid-sync-inner\", style: { minHeight: props.minHeight } },\n props.showWeekNumber && (createElement(WeekNumberContainer, { elTag: \"a\", elClasses: ['fc-daygrid-week-number'], elAttrs: buildNavLinkAttrs(context, date, 'week'), date: date, defaultFormat: DEFAULT_WEEK_NUM_FORMAT })),\n !renderProps.isDisabled &&\n (props.showDayNumber || hasCustomDayCellContent(options) || props.forceDayTop) ? (createElement(\"div\", { className: \"fc-daygrid-day-top\" },\n createElement(InnerContent, { elTag: \"a\", elClasses: [\n 'fc-daygrid-day-number',\n isMonthStart && 'fc-daygrid-month-start',\n ], elAttrs: Object.assign(Object.assign({}, buildNavLinkAttrs(context, date)), { id: state.dayNumberId }) }))) : props.showDayNumber ? (\n // for creating correct amount of space (see issue #7162)\n createElement(\"div\", { className: \"fc-daygrid-day-top\", style: { visibility: 'hidden' } },\n createElement(\"a\", { className: \"fc-daygrid-day-number\" }, \"\\u00A0\"))) : undefined,\n createElement(\"div\", { className: \"fc-daygrid-day-events\", ref: props.fgContentElRef },\n props.fgContent,\n createElement(\"div\", { className: \"fc-daygrid-day-bottom\", style: { marginTop: props.moreMarginTop } },\n createElement(TableCellMoreLink, { allDayDate: date, singlePlacements: props.singlePlacements, moreCnt: props.moreCnt, alignmentElRef: rootElRef, alignGridTop: !props.showDayNumber, extraDateSpan: props.extraDateSpan, dateProfile: props.dateProfile, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, todayRange: props.todayRange }))),\n createElement(\"div\", { className: \"fc-daygrid-day-bg\" }, props.bgContent)))));\n }\n}\nfunction renderTopInner(props) {\n return props.dayNumberText || createElement(Fragment, null, \"\\u00A0\");\n}\nfunction shouldDisplayMonthStart(date, currentRange, dateEnv) {\n const { start: currentStart, end: currentEnd } = currentRange;\n const currentEndIncl = addMs(currentEnd, -1);\n const currentFirstYear = dateEnv.getYear(currentStart);\n const currentFirstMonth = dateEnv.getMonth(currentStart);\n const currentLastYear = dateEnv.getYear(currentEndIncl);\n const currentLastMonth = dateEnv.getMonth(currentEndIncl);\n // spans more than one month?\n return !(currentFirstYear === currentLastYear && currentFirstMonth === currentLastMonth) &&\n Boolean(\n // first date in current view?\n date.valueOf() === currentStart.valueOf() ||\n // a month-start that's within the current range?\n (dateEnv.getDay(date) === 1 && date.valueOf() < currentEnd.valueOf()));\n}\n\nfunction generateSegKey(seg) {\n return seg.eventRange.instance.instanceId + ':' + seg.firstCol;\n}\nfunction generateSegUid(seg) {\n return generateSegKey(seg) + ':' + seg.lastCol;\n}\nfunction computeFgSegPlacement(segs, // assumed already sorted\ndayMaxEvents, dayMaxEventRows, strictOrder, segHeights, maxContentHeight, cells) {\n let hierarchy = new DayGridSegHierarchy((segEntry) => {\n // TODO: more DRY with generateSegUid\n let segUid = segs[segEntry.index].eventRange.instance.instanceId +\n ':' + segEntry.span.start +\n ':' + (segEntry.span.end - 1);\n // if no thickness known, assume 1 (if 0, so small it always fits)\n return segHeights[segUid] || 1;\n });\n hierarchy.allowReslicing = true;\n hierarchy.strictOrder = strictOrder;\n if (dayMaxEvents === true || dayMaxEventRows === true) {\n hierarchy.maxCoord = maxContentHeight;\n hierarchy.hiddenConsumes = true;\n }\n else if (typeof dayMaxEvents === 'number') {\n hierarchy.maxStackCnt = dayMaxEvents;\n }\n else if (typeof dayMaxEventRows === 'number') {\n hierarchy.maxStackCnt = dayMaxEventRows;\n hierarchy.hiddenConsumes = true;\n }\n // create segInputs only for segs with known heights\n let segInputs = [];\n let unknownHeightSegs = [];\n for (let i = 0; i < segs.length; i += 1) {\n let seg = segs[i];\n let segUid = generateSegUid(seg);\n let eventHeight = segHeights[segUid];\n if (eventHeight != null) {\n segInputs.push({\n index: i,\n span: {\n start: seg.firstCol,\n end: seg.lastCol + 1,\n },\n });\n }\n else {\n unknownHeightSegs.push(seg);\n }\n }\n let hiddenEntries = hierarchy.addSegs(segInputs);\n let segRects = hierarchy.toRects();\n let { singleColPlacements, multiColPlacements, leftoverMargins } = placeRects(segRects, segs, cells);\n let moreCnts = [];\n let moreMarginTops = [];\n // add segs with unknown heights\n for (let seg of unknownHeightSegs) {\n multiColPlacements[seg.firstCol].push({\n seg,\n isVisible: false,\n isAbsolute: true,\n absoluteTop: 0,\n marginTop: 0,\n });\n for (let col = seg.firstCol; col <= seg.lastCol; col += 1) {\n singleColPlacements[col].push({\n seg: resliceSeg(seg, col, col + 1, cells),\n isVisible: false,\n isAbsolute: false,\n absoluteTop: 0,\n marginTop: 0,\n });\n }\n }\n // add the hidden entries\n for (let col = 0; col < cells.length; col += 1) {\n moreCnts.push(0);\n }\n for (let hiddenEntry of hiddenEntries) {\n let seg = segs[hiddenEntry.index];\n let hiddenSpan = hiddenEntry.span;\n multiColPlacements[hiddenSpan.start].push({\n seg: resliceSeg(seg, hiddenSpan.start, hiddenSpan.end, cells),\n isVisible: false,\n isAbsolute: true,\n absoluteTop: 0,\n marginTop: 0,\n });\n for (let col = hiddenSpan.start; col < hiddenSpan.end; col += 1) {\n moreCnts[col] += 1;\n singleColPlacements[col].push({\n seg: resliceSeg(seg, col, col + 1, cells),\n isVisible: false,\n isAbsolute: false,\n absoluteTop: 0,\n marginTop: 0,\n });\n }\n }\n // deal with leftover margins\n for (let col = 0; col < cells.length; col += 1) {\n moreMarginTops.push(leftoverMargins[col]);\n }\n return { singleColPlacements, multiColPlacements, moreCnts, moreMarginTops };\n}\n// rects ordered by top coord, then left\nfunction placeRects(allRects, segs, cells) {\n let rectsByEachCol = groupRectsByEachCol(allRects, cells.length);\n let singleColPlacements = [];\n let multiColPlacements = [];\n let leftoverMargins = [];\n for (let col = 0; col < cells.length; col += 1) {\n let rects = rectsByEachCol[col];\n // compute all static segs in singlePlacements\n let singlePlacements = [];\n let currentHeight = 0;\n let currentMarginTop = 0;\n for (let rect of rects) {\n let seg = segs[rect.index];\n singlePlacements.push({\n seg: resliceSeg(seg, col, col + 1, cells),\n isVisible: true,\n isAbsolute: false,\n absoluteTop: rect.levelCoord,\n marginTop: rect.levelCoord - currentHeight,\n });\n currentHeight = rect.levelCoord + rect.thickness;\n }\n // compute mixed static/absolute segs in multiPlacements\n let multiPlacements = [];\n currentHeight = 0;\n currentMarginTop = 0;\n for (let rect of rects) {\n let seg = segs[rect.index];\n let isAbsolute = rect.span.end - rect.span.start > 1; // multi-column?\n let isFirstCol = rect.span.start === col;\n currentMarginTop += rect.levelCoord - currentHeight; // amount of space since bottom of previous seg\n currentHeight = rect.levelCoord + rect.thickness; // height will now be bottom of current seg\n if (isAbsolute) {\n currentMarginTop += rect.thickness;\n if (isFirstCol) {\n multiPlacements.push({\n seg: resliceSeg(seg, rect.span.start, rect.span.end, cells),\n isVisible: true,\n isAbsolute: true,\n absoluteTop: rect.levelCoord,\n marginTop: 0,\n });\n }\n }\n else if (isFirstCol) {\n multiPlacements.push({\n seg: resliceSeg(seg, rect.span.start, rect.span.end, cells),\n isVisible: true,\n isAbsolute: false,\n absoluteTop: rect.levelCoord,\n marginTop: currentMarginTop, // claim the margin\n });\n currentMarginTop = 0;\n }\n }\n singleColPlacements.push(singlePlacements);\n multiColPlacements.push(multiPlacements);\n leftoverMargins.push(currentMarginTop);\n }\n return { singleColPlacements, multiColPlacements, leftoverMargins };\n}\nfunction groupRectsByEachCol(rects, colCnt) {\n let rectsByEachCol = [];\n for (let col = 0; col < colCnt; col += 1) {\n rectsByEachCol.push([]);\n }\n for (let rect of rects) {\n for (let col = rect.span.start; col < rect.span.end; col += 1) {\n rectsByEachCol[col].push(rect);\n }\n }\n return rectsByEachCol;\n}\nfunction resliceSeg(seg, spanStart, spanEnd, cells) {\n if (seg.firstCol === spanStart && seg.lastCol === spanEnd - 1) {\n return seg;\n }\n let eventRange = seg.eventRange;\n let origRange = eventRange.range;\n let slicedRange = intersectRanges(origRange, {\n start: cells[spanStart].date,\n end: addDays(cells[spanEnd - 1].date, 1),\n });\n return Object.assign(Object.assign({}, seg), { firstCol: spanStart, lastCol: spanEnd - 1, eventRange: {\n def: eventRange.def,\n ui: Object.assign(Object.assign({}, eventRange.ui), { durationEditable: false }),\n instance: eventRange.instance,\n range: slicedRange,\n }, isStart: seg.isStart && slicedRange.start.valueOf() === origRange.start.valueOf(), isEnd: seg.isEnd && slicedRange.end.valueOf() === origRange.end.valueOf() });\n}\nclass DayGridSegHierarchy extends SegHierarchy {\n constructor() {\n super(...arguments);\n // config\n this.hiddenConsumes = false;\n // allows us to keep hidden entries in the hierarchy so they take up space\n this.forceHidden = {};\n }\n addSegs(segInputs) {\n const hiddenSegs = super.addSegs(segInputs);\n const { entriesByLevel } = this;\n const excludeHidden = (entry) => !this.forceHidden[buildEntryKey(entry)];\n // remove the forced-hidden segs\n for (let level = 0; level < entriesByLevel.length; level += 1) {\n entriesByLevel[level] = entriesByLevel[level].filter(excludeHidden);\n }\n return hiddenSegs;\n }\n handleInvalidInsertion(insertion, entry, hiddenEntries) {\n const { entriesByLevel, forceHidden } = this;\n const { touchingEntry, touchingLevel, touchingLateral } = insertion;\n // the entry that the new insertion is touching must be hidden\n if (this.hiddenConsumes && touchingEntry) {\n const touchingEntryId = buildEntryKey(touchingEntry);\n if (!forceHidden[touchingEntryId]) {\n if (this.allowReslicing) {\n // split up the touchingEntry, reinsert it\n const hiddenEntry = Object.assign(Object.assign({}, touchingEntry), { span: intersectSpans(touchingEntry.span, entry.span) });\n // reinsert the area that turned into a \"more\" link (so no other entries try to\n // occupy the space) but mark it forced-hidden\n const hiddenEntryId = buildEntryKey(hiddenEntry);\n forceHidden[hiddenEntryId] = true;\n entriesByLevel[touchingLevel][touchingLateral] = hiddenEntry;\n hiddenEntries.push(hiddenEntry);\n this.splitEntry(touchingEntry, entry, hiddenEntries);\n }\n else {\n forceHidden[touchingEntryId] = true;\n hiddenEntries.push(touchingEntry);\n }\n }\n }\n // will try to reslice...\n super.handleInvalidInsertion(insertion, entry, hiddenEntries);\n }\n}\n\nclass TableRow extends DateComponent {\n constructor() {\n super(...arguments);\n this.cellElRefs = new RefMap(); // the <td>\n this.frameElRefs = new RefMap(); // the fc-daygrid-day-frame\n this.fgElRefs = new RefMap(); // the fc-daygrid-day-events\n this.segHarnessRefs = new RefMap(); // indexed by \"instanceId:firstCol\"\n this.rootElRef = createRef();\n this.state = {\n framePositions: null,\n maxContentHeight: null,\n segHeights: {},\n };\n this.handleResize = (isForced) => {\n if (isForced) {\n this.updateSizing(true); // isExternal=true\n }\n };\n }\n render() {\n let { props, state, context } = this;\n let { options } = context;\n let colCnt = props.cells.length;\n let businessHoursByCol = splitSegsByFirstCol(props.businessHourSegs, colCnt);\n let bgEventSegsByCol = splitSegsByFirstCol(props.bgEventSegs, colCnt);\n let highlightSegsByCol = splitSegsByFirstCol(this.getHighlightSegs(), colCnt);\n let mirrorSegsByCol = splitSegsByFirstCol(this.getMirrorSegs(), colCnt);\n let { singleColPlacements, multiColPlacements, moreCnts, moreMarginTops } = computeFgSegPlacement(sortEventSegs(props.fgEventSegs, options.eventOrder), props.dayMaxEvents, props.dayMaxEventRows, options.eventOrderStrict, state.segHeights, state.maxContentHeight, props.cells);\n let isForcedInvisible = // TODO: messy way to compute this\n (props.eventDrag && props.eventDrag.affectedInstances) ||\n (props.eventResize && props.eventResize.affectedInstances) ||\n {};\n return (createElement(\"tr\", { ref: this.rootElRef, role: \"row\" },\n props.renderIntro && props.renderIntro(),\n props.cells.map((cell, col) => {\n let normalFgNodes = this.renderFgSegs(col, props.forPrint ? singleColPlacements[col] : multiColPlacements[col], props.todayRange, isForcedInvisible);\n let mirrorFgNodes = this.renderFgSegs(col, buildMirrorPlacements(mirrorSegsByCol[col], multiColPlacements), props.todayRange, {}, Boolean(props.eventDrag), Boolean(props.eventResize), false);\n return (createElement(TableCell, { key: cell.key, elRef: this.cellElRefs.createRef(cell.key), innerElRef: this.frameElRefs.createRef(cell.key) /* FF <td> problem, but okay to use for left/right. TODO: rename prop */, dateProfile: props.dateProfile, date: cell.date, showDayNumber: props.showDayNumbers, showWeekNumber: props.showWeekNumbers && col === 0, forceDayTop: props.showWeekNumbers /* even displaying weeknum for row, not necessarily day */, todayRange: props.todayRange, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, extraRenderProps: cell.extraRenderProps, extraDataAttrs: cell.extraDataAttrs, extraClassNames: cell.extraClassNames, extraDateSpan: cell.extraDateSpan, moreCnt: moreCnts[col], moreMarginTop: moreMarginTops[col], singlePlacements: singleColPlacements[col], fgContentElRef: this.fgElRefs.createRef(cell.key), fgContent: ( // Fragment scopes the keys\n createElement(Fragment, null,\n createElement(Fragment, null, normalFgNodes),\n createElement(Fragment, null, mirrorFgNodes))), bgContent: ( // Fragment scopes the keys\n createElement(Fragment, null,\n this.renderFillSegs(highlightSegsByCol[col], 'highlight'),\n this.renderFillSegs(businessHoursByCol[col], 'non-business'),\n this.renderFillSegs(bgEventSegsByCol[col], 'bg-event'))), minHeight: props.cellMinHeight }));\n })));\n }\n componentDidMount() {\n this.updateSizing(true);\n this.context.addResizeHandler(this.handleResize);\n }\n componentDidUpdate(prevProps, prevState) {\n let currentProps = this.props;\n this.updateSizing(!isPropsEqual(prevProps, currentProps));\n }\n componentWillUnmount() {\n this.context.removeResizeHandler(this.handleResize);\n }\n getHighlightSegs() {\n let { props } = this;\n if (props.eventDrag && props.eventDrag.segs.length) { // messy check\n return props.eventDrag.segs;\n }\n if (props.eventResize && props.eventResize.segs.length) { // messy check\n return props.eventResize.segs;\n }\n return props.dateSelectionSegs;\n }\n getMirrorSegs() {\n let { props } = this;\n if (props.eventResize && props.eventResize.segs.length) { // messy check\n return props.eventResize.segs;\n }\n return [];\n }\n renderFgSegs(col, segPlacements, todayRange, isForcedInvisible, isDragging, isResizing, isDateSelecting) {\n let { context } = this;\n let { eventSelection } = this.props;\n let { framePositions } = this.state;\n let defaultDisplayEventEnd = this.props.cells.length === 1; // colCnt === 1\n let isMirror = isDragging || isResizing || isDateSelecting;\n let nodes = [];\n if (framePositions) {\n for (let placement of segPlacements) {\n let { seg } = placement;\n let { instanceId } = seg.eventRange.instance;\n let isVisible = placement.isVisible && !isForcedInvisible[instanceId];\n let isAbsolute = placement.isAbsolute;\n let left = '';\n let right = '';\n if (isAbsolute) {\n if (context.isRtl) {\n right = 0;\n left = framePositions.lefts[seg.lastCol] - framePositions.lefts[seg.firstCol];\n }\n else {\n left = 0;\n right = framePositions.rights[seg.firstCol] - framePositions.rights[seg.lastCol];\n }\n }\n /*\n known bug: events that are force to be list-item but span multiple days still take up space in later columns\n todo: in print view, for multi-day events, don't display title within non-start/end segs\n */\n nodes.push(createElement(\"div\", { className: 'fc-daygrid-event-harness' + (isAbsolute ? ' fc-daygrid-event-harness-abs' : ''), key: generateSegKey(seg), ref: isMirror ? null : this.segHarnessRefs.createRef(generateSegUid(seg)), style: {\n visibility: isVisible ? '' : 'hidden',\n marginTop: isAbsolute ? '' : placement.marginTop,\n top: isAbsolute ? placement.absoluteTop : '',\n left,\n right,\n } }, hasListItemDisplay(seg) ? (createElement(TableListItemEvent, Object.assign({ seg: seg, isDragging: isDragging, isSelected: instanceId === eventSelection, defaultDisplayEventEnd: defaultDisplayEventEnd }, getSegMeta(seg, todayRange)))) : (createElement(TableBlockEvent, Object.assign({ seg: seg, isDragging: isDragging, isResizing: isResizing, isDateSelecting: isDateSelecting, isSelected: instanceId === eventSelection, defaultDisplayEventEnd: defaultDisplayEventEnd }, getSegMeta(seg, todayRange))))));\n }\n }\n return nodes;\n }\n renderFillSegs(segs, fillType) {\n let { isRtl } = this.context;\n let { todayRange } = this.props;\n let { framePositions } = this.state;\n let nodes = [];\n if (framePositions) {\n for (let seg of segs) {\n let leftRightCss = isRtl ? {\n right: 0,\n left: framePositions.lefts[seg.lastCol] - framePositions.lefts[seg.firstCol],\n } : {\n left: 0,\n right: framePositions.rights[seg.firstCol] - framePositions.rights[seg.lastCol],\n };\n nodes.push(createElement(\"div\", { key: buildEventRangeKey(seg.eventRange), className: \"fc-daygrid-bg-harness\", style: leftRightCss }, fillType === 'bg-event' ?\n createElement(BgEvent, Object.assign({ seg: seg }, getSegMeta(seg, todayRange))) :\n renderFill(fillType)));\n }\n }\n return createElement(Fragment, {}, ...nodes);\n }\n updateSizing(isExternalSizingChange) {\n let { props, state, frameElRefs } = this;\n if (!props.forPrint &&\n props.clientWidth !== null // positioning ready?\n ) {\n if (isExternalSizingChange) {\n let frameEls = props.cells.map((cell) => frameElRefs.currentMap[cell.key]);\n if (frameEls.length) {\n let originEl = this.rootElRef.current;\n let newPositionCache = new PositionCache(originEl, frameEls, true, // isHorizontal\n false);\n if (!state.framePositions || !state.framePositions.similarTo(newPositionCache)) {\n this.setState({\n framePositions: new PositionCache(originEl, frameEls, true, // isHorizontal\n false),\n });\n }\n }\n }\n const oldSegHeights = this.state.segHeights;\n const newSegHeights = this.querySegHeights();\n const limitByContentHeight = props.dayMaxEvents === true || props.dayMaxEventRows === true;\n this.safeSetState({\n // HACK to prevent oscillations of events being shown/hidden from max-event-rows\n // Essentially, once you compute an element's height, never null-out.\n // TODO: always display all events, as visibility:hidden?\n segHeights: Object.assign(Object.assign({}, oldSegHeights), newSegHeights),\n maxContentHeight: limitByContentHeight ? this.computeMaxContentHeight() : null,\n });\n }\n }\n querySegHeights() {\n let segElMap = this.segHarnessRefs.currentMap;\n let segHeights = {};\n // get the max height amongst instance segs\n for (let segUid in segElMap) {\n let height = Math.round(segElMap[segUid].getBoundingClientRect().height);\n segHeights[segUid] = Math.max(segHeights[segUid] || 0, height);\n }\n return segHeights;\n }\n computeMaxContentHeight() {\n let firstKey = this.props.cells[0].key;\n let cellEl = this.cellElRefs.currentMap[firstKey];\n let fcContainerEl = this.fgElRefs.currentMap[firstKey];\n return cellEl.getBoundingClientRect().bottom - fcContainerEl.getBoundingClientRect().top;\n }\n getCellEls() {\n let elMap = this.cellElRefs.currentMap;\n return this.props.cells.map((cell) => elMap[cell.key]);\n }\n}\nTableRow.addStateEquality({\n segHeights: isPropsEqual,\n});\nfunction buildMirrorPlacements(mirrorSegs, colPlacements) {\n if (!mirrorSegs.length) {\n return [];\n }\n let topsByInstanceId = buildAbsoluteTopHash(colPlacements); // TODO: cache this at first render?\n return mirrorSegs.map((seg) => ({\n seg,\n isVisible: true,\n isAbsolute: true,\n absoluteTop: topsByInstanceId[seg.eventRange.instance.instanceId],\n marginTop: 0,\n }));\n}\nfunction buildAbsoluteTopHash(colPlacements) {\n let topsByInstanceId = {};\n for (let placements of colPlacements) {\n for (let placement of placements) {\n topsByInstanceId[placement.seg.eventRange.instance.instanceId] = placement.absoluteTop;\n }\n }\n return topsByInstanceId;\n}\n\nclass TableRows extends DateComponent {\n constructor() {\n super(...arguments);\n this.splitBusinessHourSegs = memoize(splitSegsByRow);\n this.splitBgEventSegs = memoize(splitAllDaySegsByRow);\n this.splitFgEventSegs = memoize(splitSegsByRow);\n this.splitDateSelectionSegs = memoize(splitSegsByRow);\n this.splitEventDrag = memoize(splitInteractionByRow);\n this.splitEventResize = memoize(splitInteractionByRow);\n this.rowRefs = new RefMap();\n }\n render() {\n let { props, context } = this;\n let rowCnt = props.cells.length;\n let businessHourSegsByRow = this.splitBusinessHourSegs(props.businessHourSegs, rowCnt);\n let bgEventSegsByRow = this.splitBgEventSegs(props.bgEventSegs, rowCnt);\n let fgEventSegsByRow = this.splitFgEventSegs(props.fgEventSegs, rowCnt);\n let dateSelectionSegsByRow = this.splitDateSelectionSegs(props.dateSelectionSegs, rowCnt);\n let eventDragByRow = this.splitEventDrag(props.eventDrag, rowCnt);\n let eventResizeByRow = this.splitEventResize(props.eventResize, rowCnt);\n // for DayGrid view with many rows, force a min-height on cells so doesn't appear squished\n // choose 7 because a month view will have max 6 rows\n let cellMinHeight = (rowCnt >= 7 && props.clientWidth) ?\n props.clientWidth / context.options.aspectRatio / 6 :\n null;\n return (createElement(NowTimer, { unit: \"day\" }, (nowDate, todayRange) => (createElement(Fragment, null, props.cells.map((cells, row) => (createElement(TableRow, { ref: this.rowRefs.createRef(row), key: cells.length\n ? cells[0].date.toISOString() /* best? or put key on cell? or use diff formatter? */\n : row // in case there are no cells (like when resource view is loading)\n , showDayNumbers: rowCnt > 1, showWeekNumbers: props.showWeekNumbers, todayRange: todayRange, dateProfile: props.dateProfile, cells: cells, renderIntro: props.renderRowIntro, businessHourSegs: businessHourSegsByRow[row], eventSelection: props.eventSelection, bgEventSegs: bgEventSegsByRow[row], fgEventSegs: fgEventSegsByRow[row], dateSelectionSegs: dateSelectionSegsByRow[row], eventDrag: eventDragByRow[row], eventResize: eventResizeByRow[row], dayMaxEvents: props.dayMaxEvents, dayMaxEventRows: props.dayMaxEventRows, clientWidth: props.clientWidth, clientHeight: props.clientHeight, cellMinHeight: cellMinHeight, forPrint: props.forPrint })))))));\n }\n componentDidMount() {\n this.registerInteractiveComponent();\n }\n componentDidUpdate() {\n // for if started with zero cells\n this.registerInteractiveComponent();\n }\n registerInteractiveComponent() {\n if (!this.rootEl) {\n // HACK: need a daygrid wrapper parent to do positioning\n // NOTE: a daygrid resource view w/o resources can have zero cells\n const firstCellEl = this.rowRefs.currentMap[0].getCellEls()[0];\n const rootEl = firstCellEl ? firstCellEl.closest('.fc-daygrid-body') : null;\n if (rootEl) {\n this.rootEl = rootEl;\n this.context.registerInteractiveComponent(this, {\n el: rootEl,\n isHitComboAllowed: this.props.isHitComboAllowed,\n });\n }\n }\n }\n componentWillUnmount() {\n if (this.rootEl) {\n this.context.unregisterInteractiveComponent(this);\n this.rootEl = null;\n }\n }\n // Hit System\n // ----------------------------------------------------------------------------------------------------\n prepareHits() {\n this.rowPositions = new PositionCache(this.rootEl, this.rowRefs.collect().map((rowObj) => rowObj.getCellEls()[0]), // first cell el in each row. TODO: not optimal\n false, true);\n this.colPositions = new PositionCache(this.rootEl, this.rowRefs.currentMap[0].getCellEls(), // cell els in first row\n true, // horizontal\n false);\n }\n queryHit(positionLeft, positionTop) {\n let { colPositions, rowPositions } = this;\n let col = colPositions.leftToIndex(positionLeft);\n let row = rowPositions.topToIndex(positionTop);\n if (row != null && col != null) {\n let cell = this.props.cells[row][col];\n return {\n dateProfile: this.props.dateProfile,\n dateSpan: Object.assign({ range: this.getCellRange(row, col), allDay: true }, cell.extraDateSpan),\n dayEl: this.getCellEl(row, col),\n rect: {\n left: colPositions.lefts[col],\n right: colPositions.rights[col],\n top: rowPositions.tops[row],\n bottom: rowPositions.bottoms[row],\n },\n layer: 0,\n };\n }\n return null;\n }\n getCellEl(row, col) {\n return this.rowRefs.currentMap[row].getCellEls()[col]; // TODO: not optimal\n }\n getCellRange(row, col) {\n let start = this.props.cells[row][col].date;\n let end = addDays(start, 1);\n return { start, end };\n }\n}\nfunction splitAllDaySegsByRow(segs, rowCnt) {\n return splitSegsByRow(segs.filter(isSegAllDay), rowCnt);\n}\nfunction isSegAllDay(seg) {\n return seg.eventRange.def.allDay;\n}\n\nclass Table extends DateComponent {\n constructor() {\n super(...arguments);\n this.elRef = createRef();\n this.needsScrollReset = false;\n }\n render() {\n let { props } = this;\n let { dayMaxEventRows, dayMaxEvents, expandRows } = props;\n let limitViaBalanced = dayMaxEvents === true || dayMaxEventRows === true;\n // if rows can't expand to fill fixed height, can't do balanced-height event limit\n // TODO: best place to normalize these options?\n if (limitViaBalanced && !expandRows) {\n limitViaBalanced = false;\n dayMaxEventRows = null;\n dayMaxEvents = null;\n }\n let classNames = [\n 'fc-daygrid-body',\n limitViaBalanced ? 'fc-daygrid-body-balanced' : 'fc-daygrid-body-unbalanced',\n expandRows ? '' : 'fc-daygrid-body-natural', // will height of one row depend on the others?\n ];\n return (createElement(\"div\", { ref: this.elRef, className: classNames.join(' '), style: {\n // these props are important to give this wrapper correct dimensions for interactions\n // TODO: if we set it here, can we avoid giving to inner tables?\n width: props.clientWidth,\n minWidth: props.tableMinWidth,\n } },\n createElement(\"table\", { role: \"presentation\", className: \"fc-scrollgrid-sync-table\", style: {\n width: props.clientWidth,\n minWidth: props.tableMinWidth,\n height: expandRows ? props.clientHeight : '',\n } },\n props.colGroupNode,\n createElement(\"tbody\", { role: \"presentation\" },\n createElement(TableRows, { dateProfile: props.dateProfile, cells: props.cells, renderRowIntro: props.renderRowIntro, showWeekNumbers: props.showWeekNumbers, clientWidth: props.clientWidth, clientHeight: props.clientHeight, businessHourSegs: props.businessHourSegs, bgEventSegs: props.bgEventSegs, fgEventSegs: props.fgEventSegs, dateSelectionSegs: props.dateSelectionSegs, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, dayMaxEvents: dayMaxEvents, dayMaxEventRows: dayMaxEventRows, forPrint: props.forPrint, isHitComboAllowed: props.isHitComboAllowed })))));\n }\n componentDidMount() {\n this.requestScrollReset();\n }\n componentDidUpdate(prevProps) {\n if (prevProps.dateProfile !== this.props.dateProfile) {\n this.requestScrollReset();\n }\n else {\n this.flushScrollReset();\n }\n }\n requestScrollReset() {\n this.needsScrollReset = true;\n this.flushScrollReset();\n }\n flushScrollReset() {\n if (this.needsScrollReset &&\n this.props.clientWidth // sizes computed?\n ) {\n const subjectEl = getScrollSubjectEl(this.elRef.current, this.props.dateProfile);\n if (subjectEl) {\n const originEl = subjectEl.closest('.fc-daygrid-body');\n const scrollEl = originEl.closest('.fc-scroller');\n const scrollTop = subjectEl.getBoundingClientRect().top -\n originEl.getBoundingClientRect().top;\n scrollEl.scrollTop = scrollTop ? (scrollTop + 1) : 0; // overcome border\n }\n this.needsScrollReset = false;\n }\n }\n}\nfunction getScrollSubjectEl(containerEl, dateProfile) {\n let el;\n if (dateProfile.currentRangeUnit.match(/year|month/)) {\n el = containerEl.querySelector(`[data-date=\"${formatIsoMonthStr(dateProfile.currentDate)}-01\"]`);\n // even if view is month-based, first-of-month might be hidden...\n }\n if (!el) {\n el = containerEl.querySelector(`[data-date=\"${formatDayString(dateProfile.currentDate)}\"]`);\n // could still be hidden if an interior-view hidden day\n }\n return el;\n}\n\nclass DayTableSlicer extends Slicer {\n constructor() {\n super(...arguments);\n this.forceDayIfListItem = true;\n }\n sliceRange(dateRange, dayTableModel) {\n return dayTableModel.sliceRange(dateRange);\n }\n}\n\nclass DayTable extends DateComponent {\n constructor() {\n super(...arguments);\n this.slicer = new DayTableSlicer();\n this.tableRef = createRef();\n }\n render() {\n let { props, context } = this;\n return (createElement(Table, Object.assign({ ref: this.tableRef }, this.slicer.sliceProps(props, props.dateProfile, props.nextDayThreshold, context, props.dayTableModel), { dateProfile: props.dateProfile, cells: props.dayTableModel.cells, colGroupNode: props.colGroupNode, tableMinWidth: props.tableMinWidth, renderRowIntro: props.renderRowIntro, dayMaxEvents: props.dayMaxEvents, dayMaxEventRows: props.dayMaxEventRows, showWeekNumbers: props.showWeekNumbers, expandRows: props.expandRows, headerAlignElRef: props.headerAlignElRef, clientWidth: props.clientWidth, clientHeight: props.clientHeight, forPrint: props.forPrint })));\n }\n}\n\nclass DayTableView extends TableView {\n constructor() {\n super(...arguments);\n this.buildDayTableModel = memoize(buildDayTableModel);\n this.headerRef = createRef();\n this.tableRef = createRef();\n // can't override any lifecycle methods from parent\n }\n render() {\n let { options, dateProfileGenerator } = this.context;\n let { props } = this;\n let dayTableModel = this.buildDayTableModel(props.dateProfile, dateProfileGenerator);\n let headerContent = options.dayHeaders && (createElement(DayHeader, { ref: this.headerRef, dateProfile: props.dateProfile, dates: dayTableModel.headerDates, datesRepDistinctDays: dayTableModel.rowCnt === 1 }));\n let bodyContent = (contentArg) => (createElement(DayTable, { ref: this.tableRef, dateProfile: props.dateProfile, dayTableModel: dayTableModel, businessHours: props.businessHours, dateSelection: props.dateSelection, eventStore: props.eventStore, eventUiBases: props.eventUiBases, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, nextDayThreshold: options.nextDayThreshold, colGroupNode: contentArg.tableColGroupNode, tableMinWidth: contentArg.tableMinWidth, dayMaxEvents: options.dayMaxEvents, dayMaxEventRows: options.dayMaxEventRows, showWeekNumbers: options.weekNumbers, expandRows: !props.isHeightAuto, headerAlignElRef: this.headerElRef, clientWidth: contentArg.clientWidth, clientHeight: contentArg.clientHeight, forPrint: props.forPrint }));\n return options.dayMinWidth\n ? this.renderHScrollLayout(headerContent, bodyContent, dayTableModel.colCnt, options.dayMinWidth)\n : this.renderSimpleLayout(headerContent, bodyContent);\n }\n}\nfunction buildDayTableModel(dateProfile, dateProfileGenerator) {\n let daySeries = new DaySeriesModel(dateProfile.renderRange, dateProfileGenerator);\n return new DayTableModel(daySeries, /year|month|week/.test(dateProfile.currentRangeUnit));\n}\n\nclass TableDateProfileGenerator extends DateProfileGenerator {\n // Computes the date range that will be rendered\n buildRenderRange(currentRange, currentRangeUnit, isRangeAllDay) {\n let renderRange = super.buildRenderRange(currentRange, currentRangeUnit, isRangeAllDay);\n let { props } = this;\n return buildDayTableRenderRange({\n currentRange: renderRange,\n snapToWeek: /^(year|month)$/.test(currentRangeUnit),\n fixedWeekCount: props.fixedWeekCount,\n dateEnv: props.dateEnv,\n });\n }\n}\nfunction buildDayTableRenderRange(props) {\n let { dateEnv, currentRange } = props;\n let { start, end } = currentRange;\n let endOfWeek;\n // year and month views should be aligned with weeks. this is already done for week\n if (props.snapToWeek) {\n start = dateEnv.startOfWeek(start);\n // make end-of-week if not already\n endOfWeek = dateEnv.startOfWeek(end);\n if (endOfWeek.valueOf() !== end.valueOf()) {\n end = addWeeks(endOfWeek, 1);\n }\n }\n // ensure 6 weeks\n if (props.fixedWeekCount) {\n // TODO: instead of these date-math gymnastics (for multimonth view),\n // compute dateprofiles of all months, then use start of first and end of last.\n let lastMonthRenderStart = dateEnv.startOfWeek(dateEnv.startOfMonth(addDays(currentRange.end, -1)));\n let rowCnt = Math.ceil(// could be partial weeks due to hiddenDays\n diffWeeks(lastMonthRenderStart, end));\n end = addWeeks(end, 6 - rowCnt);\n }\n return { start, end };\n}\n\nvar css_248z = \":root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:\\\"\\\";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:\\\"\\\";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}\";\ninjectStyles(css_248z);\n\nexport { DayTableView as DayGridView, DayTable, DayTableSlicer, Table, TableDateProfileGenerator, TableRows, TableView, buildDayTableModel, buildDayTableRenderRange };\n","import { createPlugin } from '@fullcalendar/core/index.js';\nimport { config, Emitter, elementClosest, applyStyle, whenTransitionDone, removeElement, ScrollController, ElementScrollController, computeInnerRect, WindowScrollController, ElementDragging, preventSelection, preventContextMenu, allowSelection, allowContextMenu, computeRect, getClippingParents, pointInsideRect, constrainPoint, intersectRects, getRectCenter, diffPoints, mapHash, rangeContainsRange, isDateSpansEqual, Interaction, interactionSettingsToStore, isDateSelectionValid, enableCursor, disableCursor, triggerDateSelect, compareNumbers, getElSeg, getRelevantEvents, EventImpl, createEmptyEventStore, applyMutationToEventStore, isInteractionValid, buildEventApis, interactionSettingsStore, startOfDay, diffDates, createDuration, getEventTargetViaRoot, identity, eventTupleToStore, parseDragMeta, elementMatches, refineEventDef, parseEventDef, getDefaultEventEnd, createEventInstance, BASE_OPTION_DEFAULTS } from '@fullcalendar/core/internal.js';\n\nconfig.touchMouseIgnoreWait = 500;\nlet ignoreMouseDepth = 0;\nlet listenerCnt = 0;\nlet isWindowTouchMoveCancelled = false;\n/*\nUses a \"pointer\" abstraction, which monitors UI events for both mouse and touch.\nTracks when the pointer \"drags\" on a certain element, meaning down+move+up.\n\nAlso, tracks if there was touch-scrolling.\nAlso, can prevent touch-scrolling from happening.\nAlso, can fire pointermove events when scrolling happens underneath, even when no real pointer movement.\n\nemits:\n- pointerdown\n- pointermove\n- pointerup\n*/\nclass PointerDragging {\n constructor(containerEl) {\n this.subjectEl = null;\n // options that can be directly assigned by caller\n this.selector = ''; // will cause subjectEl in all emitted events to be this element\n this.handleSelector = '';\n this.shouldIgnoreMove = false;\n this.shouldWatchScroll = true; // for simulating pointermove on scroll\n // internal states\n this.isDragging = false;\n this.isTouchDragging = false;\n this.wasTouchScroll = false;\n // Mouse\n // ----------------------------------------------------------------------------------------------------\n this.handleMouseDown = (ev) => {\n if (!this.shouldIgnoreMouse() &&\n isPrimaryMouseButton(ev) &&\n this.tryStart(ev)) {\n let pev = this.createEventFromMouse(ev, true);\n this.emitter.trigger('pointerdown', pev);\n this.initScrollWatch(pev);\n if (!this.shouldIgnoreMove) {\n document.addEventListener('mousemove', this.handleMouseMove);\n }\n document.addEventListener('mouseup', this.handleMouseUp);\n }\n };\n this.handleMouseMove = (ev) => {\n let pev = this.createEventFromMouse(ev);\n this.recordCoords(pev);\n this.emitter.trigger('pointermove', pev);\n };\n this.handleMouseUp = (ev) => {\n document.removeEventListener('mousemove', this.handleMouseMove);\n document.removeEventListener('mouseup', this.handleMouseUp);\n this.emitter.trigger('pointerup', this.createEventFromMouse(ev));\n this.cleanup(); // call last so that pointerup has access to props\n };\n // Touch\n // ----------------------------------------------------------------------------------------------------\n this.handleTouchStart = (ev) => {\n if (this.tryStart(ev)) {\n this.isTouchDragging = true;\n let pev = this.createEventFromTouch(ev, true);\n this.emitter.trigger('pointerdown', pev);\n this.initScrollWatch(pev);\n // unlike mouse, need to attach to target, not document\n // https://stackoverflow.com/a/45760014\n let targetEl = ev.target;\n if (!this.shouldIgnoreMove) {\n targetEl.addEventListener('touchmove', this.handleTouchMove);\n }\n targetEl.addEventListener('touchend', this.handleTouchEnd);\n targetEl.addEventListener('touchcancel', this.handleTouchEnd); // treat it as a touch end\n // attach a handler to get called when ANY scroll action happens on the page.\n // this was impossible to do with normal on/off because 'scroll' doesn't bubble.\n // http://stackoverflow.com/a/32954565/96342\n window.addEventListener('scroll', this.handleTouchScroll, true);\n }\n };\n this.handleTouchMove = (ev) => {\n let pev = this.createEventFromTouch(ev);\n this.recordCoords(pev);\n this.emitter.trigger('pointermove', pev);\n };\n this.handleTouchEnd = (ev) => {\n if (this.isDragging) { // done to guard against touchend followed by touchcancel\n let targetEl = ev.target;\n targetEl.removeEventListener('touchmove', this.handleTouchMove);\n targetEl.removeEventListener('touchend', this.handleTouchEnd);\n targetEl.removeEventListener('touchcancel', this.handleTouchEnd);\n window.removeEventListener('scroll', this.handleTouchScroll, true); // useCaptured=true\n this.emitter.trigger('pointerup', this.createEventFromTouch(ev));\n this.cleanup(); // call last so that pointerup has access to props\n this.isTouchDragging = false;\n startIgnoringMouse();\n }\n };\n this.handleTouchScroll = () => {\n this.wasTouchScroll = true;\n };\n this.handleScroll = (ev) => {\n if (!this.shouldIgnoreMove) {\n let pageX = (window.scrollX - this.prevScrollX) + this.prevPageX;\n let pageY = (window.scrollY - this.prevScrollY) + this.prevPageY;\n this.emitter.trigger('pointermove', {\n origEvent: ev,\n isTouch: this.isTouchDragging,\n subjectEl: this.subjectEl,\n pageX,\n pageY,\n deltaX: pageX - this.origPageX,\n deltaY: pageY - this.origPageY,\n });\n }\n };\n this.containerEl = containerEl;\n this.emitter = new Emitter();\n containerEl.addEventListener('mousedown', this.handleMouseDown);\n containerEl.addEventListener('touchstart', this.handleTouchStart, { passive: true });\n listenerCreated();\n }\n destroy() {\n this.containerEl.removeEventListener('mousedown', this.handleMouseDown);\n this.containerEl.removeEventListener('touchstart', this.handleTouchStart, { passive: true });\n listenerDestroyed();\n }\n tryStart(ev) {\n let subjectEl = this.querySubjectEl(ev);\n let downEl = ev.target;\n if (subjectEl &&\n (!this.handleSelector || elementClosest(downEl, this.handleSelector))) {\n this.subjectEl = subjectEl;\n this.isDragging = true; // do this first so cancelTouchScroll will work\n this.wasTouchScroll = false;\n return true;\n }\n return false;\n }\n cleanup() {\n isWindowTouchMoveCancelled = false;\n this.isDragging = false;\n this.subjectEl = null;\n // keep wasTouchScroll around for later access\n this.destroyScrollWatch();\n }\n querySubjectEl(ev) {\n if (this.selector) {\n return elementClosest(ev.target, this.selector);\n }\n return this.containerEl;\n }\n shouldIgnoreMouse() {\n return ignoreMouseDepth || this.isTouchDragging;\n }\n // can be called by user of this class, to cancel touch-based scrolling for the current drag\n cancelTouchScroll() {\n if (this.isDragging) {\n isWindowTouchMoveCancelled = true;\n }\n }\n // Scrolling that simulates pointermoves\n // ----------------------------------------------------------------------------------------------------\n initScrollWatch(ev) {\n if (this.shouldWatchScroll) {\n this.recordCoords(ev);\n window.addEventListener('scroll', this.handleScroll, true); // useCapture=true\n }\n }\n recordCoords(ev) {\n if (this.shouldWatchScroll) {\n this.prevPageX = ev.pageX;\n this.prevPageY = ev.pageY;\n this.prevScrollX = window.scrollX;\n this.prevScrollY = window.scrollY;\n }\n }\n destroyScrollWatch() {\n if (this.shouldWatchScroll) {\n window.removeEventListener('scroll', this.handleScroll, true); // useCaptured=true\n }\n }\n // Event Normalization\n // ----------------------------------------------------------------------------------------------------\n createEventFromMouse(ev, isFirst) {\n let deltaX = 0;\n let deltaY = 0;\n // TODO: repeat code\n if (isFirst) {\n this.origPageX = ev.pageX;\n this.origPageY = ev.pageY;\n }\n else {\n deltaX = ev.pageX - this.origPageX;\n deltaY = ev.pageY - this.origPageY;\n }\n return {\n origEvent: ev,\n isTouch: false,\n subjectEl: this.subjectEl,\n pageX: ev.pageX,\n pageY: ev.pageY,\n deltaX,\n deltaY,\n };\n }\n createEventFromTouch(ev, isFirst) {\n let touches = ev.touches;\n let pageX;\n let pageY;\n let deltaX = 0;\n let deltaY = 0;\n // if touch coords available, prefer,\n // because FF would give bad ev.pageX ev.pageY\n if (touches && touches.length) {\n pageX = touches[0].pageX;\n pageY = touches[0].pageY;\n }\n else {\n pageX = ev.pageX;\n pageY = ev.pageY;\n }\n // TODO: repeat code\n if (isFirst) {\n this.origPageX = pageX;\n this.origPageY = pageY;\n }\n else {\n deltaX = pageX - this.origPageX;\n deltaY = pageY - this.origPageY;\n }\n return {\n origEvent: ev,\n isTouch: true,\n subjectEl: this.subjectEl,\n pageX,\n pageY,\n deltaX,\n deltaY,\n };\n }\n}\n// Returns a boolean whether this was a left mouse click and no ctrl key (which means right click on Mac)\nfunction isPrimaryMouseButton(ev) {\n return ev.button === 0 && !ev.ctrlKey;\n}\n// Ignoring fake mouse events generated by touch\n// ----------------------------------------------------------------------------------------------------\nfunction startIgnoringMouse() {\n ignoreMouseDepth += 1;\n setTimeout(() => {\n ignoreMouseDepth -= 1;\n }, config.touchMouseIgnoreWait);\n}\n// We want to attach touchmove as early as possible for Safari\n// ----------------------------------------------------------------------------------------------------\nfunction listenerCreated() {\n listenerCnt += 1;\n if (listenerCnt === 1) {\n window.addEventListener('touchmove', onWindowTouchMove, { passive: false });\n }\n}\nfunction listenerDestroyed() {\n listenerCnt -= 1;\n if (!listenerCnt) {\n window.removeEventListener('touchmove', onWindowTouchMove, { passive: false });\n }\n}\nfunction onWindowTouchMove(ev) {\n if (isWindowTouchMoveCancelled) {\n ev.preventDefault();\n }\n}\n\n/*\nAn effect in which an element follows the movement of a pointer across the screen.\nThe moving element is a clone of some other element.\nMust call start + handleMove + stop.\n*/\nclass ElementMirror {\n constructor() {\n this.isVisible = false; // must be explicitly enabled\n this.sourceEl = null;\n this.mirrorEl = null;\n this.sourceElRect = null; // screen coords relative to viewport\n // options that can be set directly by caller\n this.parentNode = document.body; // HIGHLY SUGGESTED to set this to sidestep ShadowDOM issues\n this.zIndex = 9999;\n this.revertDuration = 0;\n }\n start(sourceEl, pageX, pageY) {\n this.sourceEl = sourceEl;\n this.sourceElRect = this.sourceEl.getBoundingClientRect();\n this.origScreenX = pageX - window.scrollX;\n this.origScreenY = pageY - window.scrollY;\n this.deltaX = 0;\n this.deltaY = 0;\n this.updateElPosition();\n }\n handleMove(pageX, pageY) {\n this.deltaX = (pageX - window.scrollX) - this.origScreenX;\n this.deltaY = (pageY - window.scrollY) - this.origScreenY;\n this.updateElPosition();\n }\n // can be called before start\n setIsVisible(bool) {\n if (bool) {\n if (!this.isVisible) {\n if (this.mirrorEl) {\n this.mirrorEl.style.display = '';\n }\n this.isVisible = bool; // needs to happen before updateElPosition\n this.updateElPosition(); // because was not updating the position while invisible\n }\n }\n else if (this.isVisible) {\n if (this.mirrorEl) {\n this.mirrorEl.style.display = 'none';\n }\n this.isVisible = bool;\n }\n }\n // always async\n stop(needsRevertAnimation, callback) {\n let done = () => {\n this.cleanup();\n callback();\n };\n if (needsRevertAnimation &&\n this.mirrorEl &&\n this.isVisible &&\n this.revertDuration && // if 0, transition won't work\n (this.deltaX || this.deltaY) // if same coords, transition won't work\n ) {\n this.doRevertAnimation(done, this.revertDuration);\n }\n else {\n setTimeout(done, 0);\n }\n }\n doRevertAnimation(callback, revertDuration) {\n let mirrorEl = this.mirrorEl;\n let finalSourceElRect = this.sourceEl.getBoundingClientRect(); // because autoscrolling might have happened\n mirrorEl.style.transition =\n 'top ' + revertDuration + 'ms,' +\n 'left ' + revertDuration + 'ms';\n applyStyle(mirrorEl, {\n left: finalSourceElRect.left,\n top: finalSourceElRect.top,\n });\n whenTransitionDone(mirrorEl, () => {\n mirrorEl.style.transition = '';\n callback();\n });\n }\n cleanup() {\n if (this.mirrorEl) {\n removeElement(this.mirrorEl);\n this.mirrorEl = null;\n }\n this.sourceEl = null;\n }\n updateElPosition() {\n if (this.sourceEl && this.isVisible) {\n applyStyle(this.getMirrorEl(), {\n left: this.sourceElRect.left + this.deltaX,\n top: this.sourceElRect.top + this.deltaY,\n });\n }\n }\n getMirrorEl() {\n let sourceElRect = this.sourceElRect;\n let mirrorEl = this.mirrorEl;\n if (!mirrorEl) {\n mirrorEl = this.mirrorEl = this.sourceEl.cloneNode(true); // cloneChildren=true\n // we don't want long taps or any mouse interaction causing selection/menus.\n // would use preventSelection(), but that prevents selectstart, causing problems.\n mirrorEl.style.userSelect = 'none';\n mirrorEl.style.webkitUserSelect = 'none';\n mirrorEl.style.pointerEvents = 'none';\n mirrorEl.classList.add('fc-event-dragging');\n applyStyle(mirrorEl, {\n position: 'fixed',\n zIndex: this.zIndex,\n visibility: '',\n boxSizing: 'border-box',\n width: sourceElRect.right - sourceElRect.left,\n height: sourceElRect.bottom - sourceElRect.top,\n right: 'auto',\n bottom: 'auto',\n margin: 0,\n });\n this.parentNode.appendChild(mirrorEl);\n }\n return mirrorEl;\n }\n}\n\n/*\nIs a cache for a given element's scroll information (all the info that ScrollController stores)\nin addition the \"client rectangle\" of the element.. the area within the scrollbars.\n\nThe cache can be in one of two modes:\n- doesListening:false - ignores when the container is scrolled by someone else\n- doesListening:true - watch for scrolling and update the cache\n*/\nclass ScrollGeomCache extends ScrollController {\n constructor(scrollController, doesListening) {\n super();\n this.handleScroll = () => {\n this.scrollTop = this.scrollController.getScrollTop();\n this.scrollLeft = this.scrollController.getScrollLeft();\n this.handleScrollChange();\n };\n this.scrollController = scrollController;\n this.doesListening = doesListening;\n this.scrollTop = this.origScrollTop = scrollController.getScrollTop();\n this.scrollLeft = this.origScrollLeft = scrollController.getScrollLeft();\n this.scrollWidth = scrollController.getScrollWidth();\n this.scrollHeight = scrollController.getScrollHeight();\n this.clientWidth = scrollController.getClientWidth();\n this.clientHeight = scrollController.getClientHeight();\n this.clientRect = this.computeClientRect(); // do last in case it needs cached values\n if (this.doesListening) {\n this.getEventTarget().addEventListener('scroll', this.handleScroll);\n }\n }\n destroy() {\n if (this.doesListening) {\n this.getEventTarget().removeEventListener('scroll', this.handleScroll);\n }\n }\n getScrollTop() {\n return this.scrollTop;\n }\n getScrollLeft() {\n return this.scrollLeft;\n }\n setScrollTop(top) {\n this.scrollController.setScrollTop(top);\n if (!this.doesListening) {\n // we are not relying on the element to normalize out-of-bounds scroll values\n // so we need to sanitize ourselves\n this.scrollTop = Math.max(Math.min(top, this.getMaxScrollTop()), 0);\n this.handleScrollChange();\n }\n }\n setScrollLeft(top) {\n this.scrollController.setScrollLeft(top);\n if (!this.doesListening) {\n // we are not relying on the element to normalize out-of-bounds scroll values\n // so we need to sanitize ourselves\n this.scrollLeft = Math.max(Math.min(top, this.getMaxScrollLeft()), 0);\n this.handleScrollChange();\n }\n }\n getClientWidth() {\n return this.clientWidth;\n }\n getClientHeight() {\n return this.clientHeight;\n }\n getScrollWidth() {\n return this.scrollWidth;\n }\n getScrollHeight() {\n return this.scrollHeight;\n }\n handleScrollChange() {\n }\n}\n\nclass ElementScrollGeomCache extends ScrollGeomCache {\n constructor(el, doesListening) {\n super(new ElementScrollController(el), doesListening);\n }\n getEventTarget() {\n return this.scrollController.el;\n }\n computeClientRect() {\n return computeInnerRect(this.scrollController.el);\n }\n}\n\nclass WindowScrollGeomCache extends ScrollGeomCache {\n constructor(doesListening) {\n super(new WindowScrollController(), doesListening);\n }\n getEventTarget() {\n return window;\n }\n computeClientRect() {\n return {\n left: this.scrollLeft,\n right: this.scrollLeft + this.clientWidth,\n top: this.scrollTop,\n bottom: this.scrollTop + this.clientHeight,\n };\n }\n // the window is the only scroll object that changes it's rectangle relative\n // to the document's topleft as it scrolls\n handleScrollChange() {\n this.clientRect = this.computeClientRect();\n }\n}\n\n// If available we are using native \"performance\" API instead of \"Date\"\n// Read more about it on MDN:\n// https://developer.mozilla.org/en-US/docs/Web/API/Performance\nconst getTime = typeof performance === 'function' ? performance.now : Date.now;\n/*\nFor a pointer interaction, automatically scrolls certain scroll containers when the pointer\napproaches the edge.\n\nThe caller must call start + handleMove + stop.\n*/\nclass AutoScroller {\n constructor() {\n // options that can be set by caller\n this.isEnabled = true;\n this.scrollQuery = [window, '.fc-scroller'];\n this.edgeThreshold = 50; // pixels\n this.maxVelocity = 300; // pixels per second\n // internal state\n this.pointerScreenX = null;\n this.pointerScreenY = null;\n this.isAnimating = false;\n this.scrollCaches = null;\n // protect against the initial pointerdown being too close to an edge and starting the scroll\n this.everMovedUp = false;\n this.everMovedDown = false;\n this.everMovedLeft = false;\n this.everMovedRight = false;\n this.animate = () => {\n if (this.isAnimating) { // wasn't cancelled between animation calls\n let edge = this.computeBestEdge(this.pointerScreenX + window.scrollX, this.pointerScreenY + window.scrollY);\n if (edge) {\n let now = getTime();\n this.handleSide(edge, (now - this.msSinceRequest) / 1000);\n this.requestAnimation(now);\n }\n else {\n this.isAnimating = false; // will stop animation\n }\n }\n };\n }\n start(pageX, pageY, scrollStartEl) {\n if (this.isEnabled) {\n this.scrollCaches = this.buildCaches(scrollStartEl);\n this.pointerScreenX = null;\n this.pointerScreenY = null;\n this.everMovedUp = false;\n this.everMovedDown = false;\n this.everMovedLeft = false;\n this.everMovedRight = false;\n this.handleMove(pageX, pageY);\n }\n }\n handleMove(pageX, pageY) {\n if (this.isEnabled) {\n let pointerScreenX = pageX - window.scrollX;\n let pointerScreenY = pageY - window.scrollY;\n let yDelta = this.pointerScreenY === null ? 0 : pointerScreenY - this.pointerScreenY;\n let xDelta = this.pointerScreenX === null ? 0 : pointerScreenX - this.pointerScreenX;\n if (yDelta < 0) {\n this.everMovedUp = true;\n }\n else if (yDelta > 0) {\n this.everMovedDown = true;\n }\n if (xDelta < 0) {\n this.everMovedLeft = true;\n }\n else if (xDelta > 0) {\n this.everMovedRight = true;\n }\n this.pointerScreenX = pointerScreenX;\n this.pointerScreenY = pointerScreenY;\n if (!this.isAnimating) {\n this.isAnimating = true;\n this.requestAnimation(getTime());\n }\n }\n }\n stop() {\n if (this.isEnabled) {\n this.isAnimating = false; // will stop animation\n for (let scrollCache of this.scrollCaches) {\n scrollCache.destroy();\n }\n this.scrollCaches = null;\n }\n }\n requestAnimation(now) {\n this.msSinceRequest = now;\n requestAnimationFrame(this.animate);\n }\n handleSide(edge, seconds) {\n let { scrollCache } = edge;\n let { edgeThreshold } = this;\n let invDistance = edgeThreshold - edge.distance;\n let velocity = // the closer to the edge, the faster we scroll\n ((invDistance * invDistance) / (edgeThreshold * edgeThreshold)) * // quadratic\n this.maxVelocity * seconds;\n let sign = 1;\n switch (edge.name) {\n case 'left':\n sign = -1;\n // falls through\n case 'right':\n scrollCache.setScrollLeft(scrollCache.getScrollLeft() + velocity * sign);\n break;\n case 'top':\n sign = -1;\n // falls through\n case 'bottom':\n scrollCache.setScrollTop(scrollCache.getScrollTop() + velocity * sign);\n break;\n }\n }\n // left/top are relative to document topleft\n computeBestEdge(left, top) {\n let { edgeThreshold } = this;\n let bestSide = null;\n let scrollCaches = this.scrollCaches || [];\n for (let scrollCache of scrollCaches) {\n let rect = scrollCache.clientRect;\n let leftDist = left - rect.left;\n let rightDist = rect.right - left;\n let topDist = top - rect.top;\n let bottomDist = rect.bottom - top;\n // completely within the rect?\n if (leftDist >= 0 && rightDist >= 0 && topDist >= 0 && bottomDist >= 0) {\n if (topDist <= edgeThreshold && this.everMovedUp && scrollCache.canScrollUp() &&\n (!bestSide || bestSide.distance > topDist)) {\n bestSide = { scrollCache, name: 'top', distance: topDist };\n }\n if (bottomDist <= edgeThreshold && this.everMovedDown && scrollCache.canScrollDown() &&\n (!bestSide || bestSide.distance > bottomDist)) {\n bestSide = { scrollCache, name: 'bottom', distance: bottomDist };\n }\n /*\n TODO: fix broken RTL scrolling. canScrollLeft always returning false\n https://github.com/fullcalendar/fullcalendar/issues/4837\n */\n if (leftDist <= edgeThreshold && this.everMovedLeft && scrollCache.canScrollLeft() &&\n (!bestSide || bestSide.distance > leftDist)) {\n bestSide = { scrollCache, name: 'left', distance: leftDist };\n }\n if (rightDist <= edgeThreshold && this.everMovedRight && scrollCache.canScrollRight() &&\n (!bestSide || bestSide.distance > rightDist)) {\n bestSide = { scrollCache, name: 'right', distance: rightDist };\n }\n }\n }\n return bestSide;\n }\n buildCaches(scrollStartEl) {\n return this.queryScrollEls(scrollStartEl).map((el) => {\n if (el === window) {\n return new WindowScrollGeomCache(false); // false = don't listen to user-generated scrolls\n }\n return new ElementScrollGeomCache(el, false); // false = don't listen to user-generated scrolls\n });\n }\n queryScrollEls(scrollStartEl) {\n let els = [];\n for (let query of this.scrollQuery) {\n if (typeof query === 'object') {\n els.push(query);\n }\n else {\n /*\n TODO: in the future, always have auto-scroll happen on element where current Hit came from\n Ticket: https://github.com/fullcalendar/fullcalendar/issues/4593\n */\n els.push(...Array.prototype.slice.call(scrollStartEl.getRootNode().querySelectorAll(query)));\n }\n }\n return els;\n }\n}\n\n/*\nMonitors dragging on an element. Has a number of high-level features:\n- minimum distance required before dragging\n- minimum wait time (\"delay\") before dragging\n- a mirror element that follows the pointer\n*/\nclass FeaturefulElementDragging extends ElementDragging {\n constructor(containerEl, selector) {\n super(containerEl);\n this.containerEl = containerEl;\n // options that can be directly set by caller\n // the caller can also set the PointerDragging's options as well\n this.delay = null;\n this.minDistance = 0;\n this.touchScrollAllowed = true; // prevents drag from starting and blocks scrolling during drag\n this.mirrorNeedsRevert = false;\n this.isInteracting = false; // is the user validly moving the pointer? lasts until pointerup\n this.isDragging = false; // is it INTENTFULLY dragging? lasts until after revert animation\n this.isDelayEnded = false;\n this.isDistanceSurpassed = false;\n this.delayTimeoutId = null;\n this.onPointerDown = (ev) => {\n if (!this.isDragging) { // so new drag doesn't happen while revert animation is going\n this.isInteracting = true;\n this.isDelayEnded = false;\n this.isDistanceSurpassed = false;\n preventSelection(document.body);\n preventContextMenu(document.body);\n // prevent links from being visited if there's an eventual drag.\n // also prevents selection in older browsers (maybe?).\n // not necessary for touch, besides, browser would complain about passiveness.\n if (!ev.isTouch) {\n ev.origEvent.preventDefault();\n }\n this.emitter.trigger('pointerdown', ev);\n if (this.isInteracting && // not destroyed via pointerdown handler\n !this.pointer.shouldIgnoreMove) {\n // actions related to initiating dragstart+dragmove+dragend...\n this.mirror.setIsVisible(false); // reset. caller must set-visible\n this.mirror.start(ev.subjectEl, ev.pageX, ev.pageY); // must happen on first pointer down\n this.startDelay(ev);\n if (!this.minDistance) {\n this.handleDistanceSurpassed(ev);\n }\n }\n }\n };\n this.onPointerMove = (ev) => {\n if (this.isInteracting) {\n this.emitter.trigger('pointermove', ev);\n if (!this.isDistanceSurpassed) {\n let minDistance = this.minDistance;\n let distanceSq; // current distance from the origin, squared\n let { deltaX, deltaY } = ev;\n distanceSq = deltaX * deltaX + deltaY * deltaY;\n if (distanceSq >= minDistance * minDistance) { // use pythagorean theorem\n this.handleDistanceSurpassed(ev);\n }\n }\n if (this.isDragging) {\n // a real pointer move? (not one simulated by scrolling)\n if (ev.origEvent.type !== 'scroll') {\n this.mirror.handleMove(ev.pageX, ev.pageY);\n this.autoScroller.handleMove(ev.pageX, ev.pageY);\n }\n this.emitter.trigger('dragmove', ev);\n }\n }\n };\n this.onPointerUp = (ev) => {\n if (this.isInteracting) {\n this.isInteracting = false;\n allowSelection(document.body);\n allowContextMenu(document.body);\n this.emitter.trigger('pointerup', ev); // can potentially set mirrorNeedsRevert\n if (this.isDragging) {\n this.autoScroller.stop();\n this.tryStopDrag(ev); // which will stop the mirror\n }\n if (this.delayTimeoutId) {\n clearTimeout(this.delayTimeoutId);\n this.delayTimeoutId = null;\n }\n }\n };\n let pointer = this.pointer = new PointerDragging(containerEl);\n pointer.emitter.on('pointerdown', this.onPointerDown);\n pointer.emitter.on('pointermove', this.onPointerMove);\n pointer.emitter.on('pointerup', this.onPointerUp);\n if (selector) {\n pointer.selector = selector;\n }\n this.mirror = new ElementMirror();\n this.autoScroller = new AutoScroller();\n }\n destroy() {\n this.pointer.destroy();\n // HACK: simulate a pointer-up to end the current drag\n // TODO: fire 'dragend' directly and stop interaction. discourage use of pointerup event (b/c might not fire)\n this.onPointerUp({});\n }\n startDelay(ev) {\n if (typeof this.delay === 'number') {\n this.delayTimeoutId = setTimeout(() => {\n this.delayTimeoutId = null;\n this.handleDelayEnd(ev);\n }, this.delay); // not assignable to number!\n }\n else {\n this.handleDelayEnd(ev);\n }\n }\n handleDelayEnd(ev) {\n this.isDelayEnded = true;\n this.tryStartDrag(ev);\n }\n handleDistanceSurpassed(ev) {\n this.isDistanceSurpassed = true;\n this.tryStartDrag(ev);\n }\n tryStartDrag(ev) {\n if (this.isDelayEnded && this.isDistanceSurpassed) {\n if (!this.pointer.wasTouchScroll || this.touchScrollAllowed) {\n this.isDragging = true;\n this.mirrorNeedsRevert = false;\n this.autoScroller.start(ev.pageX, ev.pageY, this.containerEl);\n this.emitter.trigger('dragstart', ev);\n if (this.touchScrollAllowed === false) {\n this.pointer.cancelTouchScroll();\n }\n }\n }\n }\n tryStopDrag(ev) {\n // .stop() is ALWAYS asynchronous, which we NEED because we want all pointerup events\n // that come from the document to fire beforehand. much more convenient this way.\n this.mirror.stop(this.mirrorNeedsRevert, this.stopDrag.bind(this, ev));\n }\n stopDrag(ev) {\n this.isDragging = false;\n this.emitter.trigger('dragend', ev);\n }\n // fill in the implementations...\n setIgnoreMove(bool) {\n this.pointer.shouldIgnoreMove = bool;\n }\n setMirrorIsVisible(bool) {\n this.mirror.setIsVisible(bool);\n }\n setMirrorNeedsRevert(bool) {\n this.mirrorNeedsRevert = bool;\n }\n setAutoScrollEnabled(bool) {\n this.autoScroller.isEnabled = bool;\n }\n}\n\n/*\nWhen this class is instantiated, it records the offset of an element (relative to the document topleft),\nand continues to monitor scrolling, updating the cached coordinates if it needs to.\nDoes not access the DOM after instantiation, so highly performant.\n\nAlso keeps track of all scrolling/overflow:hidden containers that are parents of the given element\nand an determine if a given point is inside the combined clipping rectangle.\n*/\nclass OffsetTracker {\n constructor(el) {\n this.el = el;\n this.origRect = computeRect(el);\n // will work fine for divs that have overflow:hidden\n this.scrollCaches = getClippingParents(el).map((scrollEl) => new ElementScrollGeomCache(scrollEl, true));\n }\n destroy() {\n for (let scrollCache of this.scrollCaches) {\n scrollCache.destroy();\n }\n }\n computeLeft() {\n let left = this.origRect.left;\n for (let scrollCache of this.scrollCaches) {\n left += scrollCache.origScrollLeft - scrollCache.getScrollLeft();\n }\n return left;\n }\n computeTop() {\n let top = this.origRect.top;\n for (let scrollCache of this.scrollCaches) {\n top += scrollCache.origScrollTop - scrollCache.getScrollTop();\n }\n return top;\n }\n isWithinClipping(pageX, pageY) {\n let point = { left: pageX, top: pageY };\n for (let scrollCache of this.scrollCaches) {\n if (!isIgnoredClipping(scrollCache.getEventTarget()) &&\n !pointInsideRect(point, scrollCache.clientRect)) {\n return false;\n }\n }\n return true;\n }\n}\n// certain clipping containers should never constrain interactions, like <html> and <body>\n// https://github.com/fullcalendar/fullcalendar/issues/3615\nfunction isIgnoredClipping(node) {\n let tagName = node.tagName;\n return tagName === 'HTML' || tagName === 'BODY';\n}\n\n/*\nTracks movement over multiple droppable areas (aka \"hits\")\nthat exist in one or more DateComponents.\nRelies on an existing draggable.\n\nemits:\n- pointerdown\n- dragstart\n- hitchange - fires initially, even if not over a hit\n- pointerup\n- (hitchange - again, to null, if ended over a hit)\n- dragend\n*/\nclass HitDragging {\n constructor(dragging, droppableStore) {\n // options that can be set by caller\n this.useSubjectCenter = false;\n this.requireInitial = true; // if doesn't start out on a hit, won't emit any events\n this.disablePointCheck = false;\n this.initialHit = null;\n this.movingHit = null;\n this.finalHit = null; // won't ever be populated if shouldIgnoreMove\n this.handlePointerDown = (ev) => {\n let { dragging } = this;\n this.initialHit = null;\n this.movingHit = null;\n this.finalHit = null;\n this.prepareHits();\n this.processFirstCoord(ev);\n if (this.initialHit || !this.requireInitial) {\n dragging.setIgnoreMove(false);\n // TODO: fire this before computing processFirstCoord, so listeners can cancel. this gets fired by almost every handler :(\n this.emitter.trigger('pointerdown', ev);\n }\n else {\n dragging.setIgnoreMove(true);\n }\n };\n this.handleDragStart = (ev) => {\n this.emitter.trigger('dragstart', ev);\n this.handleMove(ev, true); // force = fire even if initially null\n };\n this.handleDragMove = (ev) => {\n this.emitter.trigger('dragmove', ev);\n this.handleMove(ev);\n };\n this.handlePointerUp = (ev) => {\n this.releaseHits();\n this.emitter.trigger('pointerup', ev);\n };\n this.handleDragEnd = (ev) => {\n if (this.movingHit) {\n this.emitter.trigger('hitupdate', null, true, ev);\n }\n this.finalHit = this.movingHit;\n this.movingHit = null;\n this.emitter.trigger('dragend', ev);\n };\n this.droppableStore = droppableStore;\n dragging.emitter.on('pointerdown', this.handlePointerDown);\n dragging.emitter.on('dragstart', this.handleDragStart);\n dragging.emitter.on('dragmove', this.handleDragMove);\n dragging.emitter.on('pointerup', this.handlePointerUp);\n dragging.emitter.on('dragend', this.handleDragEnd);\n this.dragging = dragging;\n this.emitter = new Emitter();\n }\n // sets initialHit\n // sets coordAdjust\n processFirstCoord(ev) {\n let origPoint = { left: ev.pageX, top: ev.pageY };\n let adjustedPoint = origPoint;\n let subjectEl = ev.subjectEl;\n let subjectRect;\n if (subjectEl instanceof HTMLElement) { // i.e. not a Document/ShadowRoot\n subjectRect = computeRect(subjectEl);\n adjustedPoint = constrainPoint(adjustedPoint, subjectRect);\n }\n let initialHit = this.initialHit = this.queryHitForOffset(adjustedPoint.left, adjustedPoint.top);\n if (initialHit) {\n if (this.useSubjectCenter && subjectRect) {\n let slicedSubjectRect = intersectRects(subjectRect, initialHit.rect);\n if (slicedSubjectRect) {\n adjustedPoint = getRectCenter(slicedSubjectRect);\n }\n }\n this.coordAdjust = diffPoints(adjustedPoint, origPoint);\n }\n else {\n this.coordAdjust = { left: 0, top: 0 };\n }\n }\n handleMove(ev, forceHandle) {\n let hit = this.queryHitForOffset(ev.pageX + this.coordAdjust.left, ev.pageY + this.coordAdjust.top);\n if (forceHandle || !isHitsEqual(this.movingHit, hit)) {\n this.movingHit = hit;\n this.emitter.trigger('hitupdate', hit, false, ev);\n }\n }\n prepareHits() {\n this.offsetTrackers = mapHash(this.droppableStore, (interactionSettings) => {\n interactionSettings.component.prepareHits();\n return new OffsetTracker(interactionSettings.el);\n });\n }\n releaseHits() {\n let { offsetTrackers } = this;\n for (let id in offsetTrackers) {\n offsetTrackers[id].destroy();\n }\n this.offsetTrackers = {};\n }\n queryHitForOffset(offsetLeft, offsetTop) {\n let { droppableStore, offsetTrackers } = this;\n let bestHit = null;\n for (let id in droppableStore) {\n let component = droppableStore[id].component;\n let offsetTracker = offsetTrackers[id];\n if (offsetTracker && // wasn't destroyed mid-drag\n offsetTracker.isWithinClipping(offsetLeft, offsetTop)) {\n let originLeft = offsetTracker.computeLeft();\n let originTop = offsetTracker.computeTop();\n let positionLeft = offsetLeft - originLeft;\n let positionTop = offsetTop - originTop;\n let { origRect } = offsetTracker;\n let width = origRect.right - origRect.left;\n let height = origRect.bottom - origRect.top;\n if (\n // must be within the element's bounds\n positionLeft >= 0 && positionLeft < width &&\n positionTop >= 0 && positionTop < height) {\n let hit = component.queryHit(positionLeft, positionTop, width, height);\n if (hit && (\n // make sure the hit is within activeRange, meaning it's not a dead cell\n rangeContainsRange(hit.dateProfile.activeRange, hit.dateSpan.range)) &&\n // Ensure the component we are querying for the hit is accessibly my the pointer\n // Prevents obscured calendars (ex: under a modal dialog) from accepting hit\n // https://github.com/fullcalendar/fullcalendar/issues/5026\n (this.disablePointCheck ||\n offsetTracker.el.contains(offsetTracker.el.getRootNode().elementFromPoint(\n // add-back origins to get coordinate relative to top-left of window viewport\n positionLeft + originLeft - window.scrollX, positionTop + originTop - window.scrollY))) &&\n (!bestHit || hit.layer > bestHit.layer)) {\n hit.componentId = id;\n hit.context = component.context;\n // TODO: better way to re-orient rectangle\n hit.rect.left += originLeft;\n hit.rect.right += originLeft;\n hit.rect.top += originTop;\n hit.rect.bottom += originTop;\n bestHit = hit;\n }\n }\n }\n }\n return bestHit;\n }\n}\nfunction isHitsEqual(hit0, hit1) {\n if (!hit0 && !hit1) {\n return true;\n }\n if (Boolean(hit0) !== Boolean(hit1)) {\n return false;\n }\n return isDateSpansEqual(hit0.dateSpan, hit1.dateSpan);\n}\n\nfunction buildDatePointApiWithContext(dateSpan, context) {\n let props = {};\n for (let transform of context.pluginHooks.datePointTransforms) {\n Object.assign(props, transform(dateSpan, context));\n }\n Object.assign(props, buildDatePointApi(dateSpan, context.dateEnv));\n return props;\n}\nfunction buildDatePointApi(span, dateEnv) {\n return {\n date: dateEnv.toDate(span.range.start),\n dateStr: dateEnv.formatIso(span.range.start, { omitTime: span.allDay }),\n allDay: span.allDay,\n };\n}\n\n/*\nMonitors when the user clicks on a specific date/time of a component.\nA pointerdown+pointerup on the same \"hit\" constitutes a click.\n*/\nclass DateClicking extends Interaction {\n constructor(settings) {\n super(settings);\n this.handlePointerDown = (pev) => {\n let { dragging } = this;\n let downEl = pev.origEvent.target;\n // do this in pointerdown (not dragend) because DOM might be mutated by the time dragend is fired\n dragging.setIgnoreMove(!this.component.isValidDateDownEl(downEl));\n };\n // won't even fire if moving was ignored\n this.handleDragEnd = (ev) => {\n let { component } = this;\n let { pointer } = this.dragging;\n if (!pointer.wasTouchScroll) {\n let { initialHit, finalHit } = this.hitDragging;\n if (initialHit && finalHit && isHitsEqual(initialHit, finalHit)) {\n let { context } = component;\n let arg = Object.assign(Object.assign({}, buildDatePointApiWithContext(initialHit.dateSpan, context)), { dayEl: initialHit.dayEl, jsEvent: ev.origEvent, view: context.viewApi || context.calendarApi.view });\n context.emitter.trigger('dateClick', arg);\n }\n }\n };\n // we DO want to watch pointer moves because otherwise finalHit won't get populated\n this.dragging = new FeaturefulElementDragging(settings.el);\n this.dragging.autoScroller.isEnabled = false;\n let hitDragging = this.hitDragging = new HitDragging(this.dragging, interactionSettingsToStore(settings));\n hitDragging.emitter.on('pointerdown', this.handlePointerDown);\n hitDragging.emitter.on('dragend', this.handleDragEnd);\n }\n destroy() {\n this.dragging.destroy();\n }\n}\n\n/*\nTracks when the user selects a portion of time of a component,\nconstituted by a drag over date cells, with a possible delay at the beginning of the drag.\n*/\nclass DateSelecting extends Interaction {\n constructor(settings) {\n super(settings);\n this.dragSelection = null;\n this.handlePointerDown = (ev) => {\n let { component, dragging } = this;\n let { options } = component.context;\n let canSelect = options.selectable &&\n component.isValidDateDownEl(ev.origEvent.target);\n // don't bother to watch expensive moves if component won't do selection\n dragging.setIgnoreMove(!canSelect);\n // if touch, require user to hold down\n dragging.delay = ev.isTouch ? getComponentTouchDelay$1(component) : null;\n };\n this.handleDragStart = (ev) => {\n this.component.context.calendarApi.unselect(ev); // unselect previous selections\n };\n this.handleHitUpdate = (hit, isFinal) => {\n let { context } = this.component;\n let dragSelection = null;\n let isInvalid = false;\n if (hit) {\n let initialHit = this.hitDragging.initialHit;\n let disallowed = hit.componentId === initialHit.componentId\n && this.isHitComboAllowed\n && !this.isHitComboAllowed(initialHit, hit);\n if (!disallowed) {\n dragSelection = joinHitsIntoSelection(initialHit, hit, context.pluginHooks.dateSelectionTransformers);\n }\n if (!dragSelection || !isDateSelectionValid(dragSelection, hit.dateProfile, context)) {\n isInvalid = true;\n dragSelection = null;\n }\n }\n if (dragSelection) {\n context.dispatch({ type: 'SELECT_DATES', selection: dragSelection });\n }\n else if (!isFinal) { // only unselect if moved away while dragging\n context.dispatch({ type: 'UNSELECT_DATES' });\n }\n if (!isInvalid) {\n enableCursor();\n }\n else {\n disableCursor();\n }\n if (!isFinal) {\n this.dragSelection = dragSelection; // only clear if moved away from all hits while dragging\n }\n };\n this.handlePointerUp = (pev) => {\n if (this.dragSelection) {\n // selection is already rendered, so just need to report selection\n triggerDateSelect(this.dragSelection, pev, this.component.context);\n this.dragSelection = null;\n }\n };\n let { component } = settings;\n let { options } = component.context;\n let dragging = this.dragging = new FeaturefulElementDragging(settings.el);\n dragging.touchScrollAllowed = false;\n dragging.minDistance = options.selectMinDistance || 0;\n dragging.autoScroller.isEnabled = options.dragScroll;\n let hitDragging = this.hitDragging = new HitDragging(this.dragging, interactionSettingsToStore(settings));\n hitDragging.emitter.on('pointerdown', this.handlePointerDown);\n hitDragging.emitter.on('dragstart', this.handleDragStart);\n hitDragging.emitter.on('hitupdate', this.handleHitUpdate);\n hitDragging.emitter.on('pointerup', this.handlePointerUp);\n }\n destroy() {\n this.dragging.destroy();\n }\n}\nfunction getComponentTouchDelay$1(component) {\n let { options } = component.context;\n let delay = options.selectLongPressDelay;\n if (delay == null) {\n delay = options.longPressDelay;\n }\n return delay;\n}\nfunction joinHitsIntoSelection(hit0, hit1, dateSelectionTransformers) {\n let dateSpan0 = hit0.dateSpan;\n let dateSpan1 = hit1.dateSpan;\n let ms = [\n dateSpan0.range.start,\n dateSpan0.range.end,\n dateSpan1.range.start,\n dateSpan1.range.end,\n ];\n ms.sort(compareNumbers);\n let props = {};\n for (let transformer of dateSelectionTransformers) {\n let res = transformer(hit0, hit1);\n if (res === false) {\n return null;\n }\n if (res) {\n Object.assign(props, res);\n }\n }\n props.range = { start: ms[0], end: ms[3] };\n props.allDay = dateSpan0.allDay;\n return props;\n}\n\nclass EventDragging extends Interaction {\n constructor(settings) {\n super(settings);\n // internal state\n this.subjectEl = null;\n this.subjectSeg = null; // the seg being selected/dragged\n this.isDragging = false;\n this.eventRange = null;\n this.relevantEvents = null; // the events being dragged\n this.receivingContext = null;\n this.validMutation = null;\n this.mutatedRelevantEvents = null;\n this.handlePointerDown = (ev) => {\n let origTarget = ev.origEvent.target;\n let { component, dragging } = this;\n let { mirror } = dragging;\n let { options } = component.context;\n let initialContext = component.context;\n this.subjectEl = ev.subjectEl;\n let subjectSeg = this.subjectSeg = getElSeg(ev.subjectEl);\n let eventRange = this.eventRange = subjectSeg.eventRange;\n let eventInstanceId = eventRange.instance.instanceId;\n this.relevantEvents = getRelevantEvents(initialContext.getCurrentData().eventStore, eventInstanceId);\n dragging.minDistance = ev.isTouch ? 0 : options.eventDragMinDistance;\n dragging.delay =\n // only do a touch delay if touch and this event hasn't been selected yet\n (ev.isTouch && eventInstanceId !== component.props.eventSelection) ?\n getComponentTouchDelay(component) :\n null;\n if (options.fixedMirrorParent) {\n mirror.parentNode = options.fixedMirrorParent;\n }\n else {\n mirror.parentNode = elementClosest(origTarget, '.fc');\n }\n mirror.revertDuration = options.dragRevertDuration;\n let isValid = component.isValidSegDownEl(origTarget) &&\n !elementClosest(origTarget, '.fc-event-resizer'); // NOT on a resizer\n dragging.setIgnoreMove(!isValid);\n // disable dragging for elements that are resizable (ie, selectable)\n // but are not draggable\n this.isDragging = isValid &&\n ev.subjectEl.classList.contains('fc-event-draggable');\n };\n this.handleDragStart = (ev) => {\n let initialContext = this.component.context;\n let eventRange = this.eventRange;\n let eventInstanceId = eventRange.instance.instanceId;\n if (ev.isTouch) {\n // need to select a different event?\n if (eventInstanceId !== this.component.props.eventSelection) {\n initialContext.dispatch({ type: 'SELECT_EVENT', eventInstanceId });\n }\n }\n else {\n // if now using mouse, but was previous touch interaction, clear selected event\n initialContext.dispatch({ type: 'UNSELECT_EVENT' });\n }\n if (this.isDragging) {\n initialContext.calendarApi.unselect(ev); // unselect *date* selection\n initialContext.emitter.trigger('eventDragStart', {\n el: this.subjectEl,\n event: new EventImpl(initialContext, eventRange.def, eventRange.instance),\n jsEvent: ev.origEvent,\n view: initialContext.viewApi,\n });\n }\n };\n this.handleHitUpdate = (hit, isFinal) => {\n if (!this.isDragging) {\n return;\n }\n let relevantEvents = this.relevantEvents;\n let initialHit = this.hitDragging.initialHit;\n let initialContext = this.component.context;\n // states based on new hit\n let receivingContext = null;\n let mutation = null;\n let mutatedRelevantEvents = null;\n let isInvalid = false;\n let interaction = {\n affectedEvents: relevantEvents,\n mutatedEvents: createEmptyEventStore(),\n isEvent: true,\n };\n if (hit) {\n receivingContext = hit.context;\n let receivingOptions = receivingContext.options;\n if (initialContext === receivingContext ||\n (receivingOptions.editable && receivingOptions.droppable)) {\n mutation = computeEventMutation(initialHit, hit, this.eventRange.instance.range.start, receivingContext.getCurrentData().pluginHooks.eventDragMutationMassagers);\n if (mutation) {\n mutatedRelevantEvents = applyMutationToEventStore(relevantEvents, receivingContext.getCurrentData().eventUiBases, mutation, receivingContext);\n interaction.mutatedEvents = mutatedRelevantEvents;\n if (!isInteractionValid(interaction, hit.dateProfile, receivingContext)) {\n isInvalid = true;\n mutation = null;\n mutatedRelevantEvents = null;\n interaction.mutatedEvents = createEmptyEventStore();\n }\n }\n }\n else {\n receivingContext = null;\n }\n }\n this.displayDrag(receivingContext, interaction);\n if (!isInvalid) {\n enableCursor();\n }\n else {\n disableCursor();\n }\n if (!isFinal) {\n if (initialContext === receivingContext && // TODO: write test for this\n isHitsEqual(initialHit, hit)) {\n mutation = null;\n }\n this.dragging.setMirrorNeedsRevert(!mutation);\n // render the mirror if no already-rendered mirror\n // TODO: wish we could somehow wait for dispatch to guarantee render\n this.dragging.setMirrorIsVisible(!hit || !this.subjectEl.getRootNode().querySelector('.fc-event-mirror'));\n // assign states based on new hit\n this.receivingContext = receivingContext;\n this.validMutation = mutation;\n this.mutatedRelevantEvents = mutatedRelevantEvents;\n }\n };\n this.handlePointerUp = () => {\n if (!this.isDragging) {\n this.cleanup(); // because handleDragEnd won't fire\n }\n };\n this.handleDragEnd = (ev) => {\n if (this.isDragging) {\n let initialContext = this.component.context;\n let initialView = initialContext.viewApi;\n let { receivingContext, validMutation } = this;\n let eventDef = this.eventRange.def;\n let eventInstance = this.eventRange.instance;\n let eventApi = new EventImpl(initialContext, eventDef, eventInstance);\n let relevantEvents = this.relevantEvents;\n let mutatedRelevantEvents = this.mutatedRelevantEvents;\n let { finalHit } = this.hitDragging;\n this.clearDrag(); // must happen after revert animation\n initialContext.emitter.trigger('eventDragStop', {\n el: this.subjectEl,\n event: eventApi,\n jsEvent: ev.origEvent,\n view: initialView,\n });\n if (validMutation) {\n // dropped within same calendar\n if (receivingContext === initialContext) {\n let updatedEventApi = new EventImpl(initialContext, mutatedRelevantEvents.defs[eventDef.defId], eventInstance ? mutatedRelevantEvents.instances[eventInstance.instanceId] : null);\n initialContext.dispatch({\n type: 'MERGE_EVENTS',\n eventStore: mutatedRelevantEvents,\n });\n let eventChangeArg = {\n oldEvent: eventApi,\n event: updatedEventApi,\n relatedEvents: buildEventApis(mutatedRelevantEvents, initialContext, eventInstance),\n revert() {\n initialContext.dispatch({\n type: 'MERGE_EVENTS',\n eventStore: relevantEvents, // the pre-change data\n });\n },\n };\n let transformed = {};\n for (let transformer of initialContext.getCurrentData().pluginHooks.eventDropTransformers) {\n Object.assign(transformed, transformer(validMutation, initialContext));\n }\n initialContext.emitter.trigger('eventDrop', Object.assign(Object.assign(Object.assign({}, eventChangeArg), transformed), { el: ev.subjectEl, delta: validMutation.datesDelta, jsEvent: ev.origEvent, view: initialView }));\n initialContext.emitter.trigger('eventChange', eventChangeArg);\n // dropped in different calendar\n }\n else if (receivingContext) {\n let eventRemoveArg = {\n event: eventApi,\n relatedEvents: buildEventApis(relevantEvents, initialContext, eventInstance),\n revert() {\n initialContext.dispatch({\n type: 'MERGE_EVENTS',\n eventStore: relevantEvents,\n });\n },\n };\n initialContext.emitter.trigger('eventLeave', Object.assign(Object.assign({}, eventRemoveArg), { draggedEl: ev.subjectEl, view: initialView }));\n initialContext.dispatch({\n type: 'REMOVE_EVENTS',\n eventStore: relevantEvents,\n });\n initialContext.emitter.trigger('eventRemove', eventRemoveArg);\n let addedEventDef = mutatedRelevantEvents.defs[eventDef.defId];\n let addedEventInstance = mutatedRelevantEvents.instances[eventInstance.instanceId];\n let addedEventApi = new EventImpl(receivingContext, addedEventDef, addedEventInstance);\n receivingContext.dispatch({\n type: 'MERGE_EVENTS',\n eventStore: mutatedRelevantEvents,\n });\n let eventAddArg = {\n event: addedEventApi,\n relatedEvents: buildEventApis(mutatedRelevantEvents, receivingContext, addedEventInstance),\n revert() {\n receivingContext.dispatch({\n type: 'REMOVE_EVENTS',\n eventStore: mutatedRelevantEvents,\n });\n },\n };\n receivingContext.emitter.trigger('eventAdd', eventAddArg);\n if (ev.isTouch) {\n receivingContext.dispatch({\n type: 'SELECT_EVENT',\n eventInstanceId: eventInstance.instanceId,\n });\n }\n receivingContext.emitter.trigger('drop', Object.assign(Object.assign({}, buildDatePointApiWithContext(finalHit.dateSpan, receivingContext)), { draggedEl: ev.subjectEl, jsEvent: ev.origEvent, view: finalHit.context.viewApi }));\n receivingContext.emitter.trigger('eventReceive', Object.assign(Object.assign({}, eventAddArg), { draggedEl: ev.subjectEl, view: finalHit.context.viewApi }));\n }\n }\n else {\n initialContext.emitter.trigger('_noEventDrop');\n }\n }\n this.cleanup();\n };\n let { component } = this;\n let { options } = component.context;\n let dragging = this.dragging = new FeaturefulElementDragging(settings.el);\n dragging.pointer.selector = EventDragging.SELECTOR;\n dragging.touchScrollAllowed = false;\n dragging.autoScroller.isEnabled = options.dragScroll;\n let hitDragging = this.hitDragging = new HitDragging(this.dragging, interactionSettingsStore);\n hitDragging.useSubjectCenter = settings.useEventCenter;\n hitDragging.emitter.on('pointerdown', this.handlePointerDown);\n hitDragging.emitter.on('dragstart', this.handleDragStart);\n hitDragging.emitter.on('hitupdate', this.handleHitUpdate);\n hitDragging.emitter.on('pointerup', this.handlePointerUp);\n hitDragging.emitter.on('dragend', this.handleDragEnd);\n }\n destroy() {\n this.dragging.destroy();\n }\n // render a drag state on the next receivingCalendar\n displayDrag(nextContext, state) {\n let initialContext = this.component.context;\n let prevContext = this.receivingContext;\n // does the previous calendar need to be cleared?\n if (prevContext && prevContext !== nextContext) {\n // does the initial calendar need to be cleared?\n // if so, don't clear all the way. we still need to to hide the affectedEvents\n if (prevContext === initialContext) {\n prevContext.dispatch({\n type: 'SET_EVENT_DRAG',\n state: {\n affectedEvents: state.affectedEvents,\n mutatedEvents: createEmptyEventStore(),\n isEvent: true,\n },\n });\n // completely clear the old calendar if it wasn't the initial\n }\n else {\n prevContext.dispatch({ type: 'UNSET_EVENT_DRAG' });\n }\n }\n if (nextContext) {\n nextContext.dispatch({ type: 'SET_EVENT_DRAG', state });\n }\n }\n clearDrag() {\n let initialCalendar = this.component.context;\n let { receivingContext } = this;\n if (receivingContext) {\n receivingContext.dispatch({ type: 'UNSET_EVENT_DRAG' });\n }\n // the initial calendar might have an dummy drag state from displayDrag\n if (initialCalendar !== receivingContext) {\n initialCalendar.dispatch({ type: 'UNSET_EVENT_DRAG' });\n }\n }\n cleanup() {\n this.subjectSeg = null;\n this.isDragging = false;\n this.eventRange = null;\n this.relevantEvents = null;\n this.receivingContext = null;\n this.validMutation = null;\n this.mutatedRelevantEvents = null;\n }\n}\n// TODO: test this in IE11\n// QUESTION: why do we need it on the resizable???\nEventDragging.SELECTOR = '.fc-event-draggable, .fc-event-resizable';\nfunction computeEventMutation(hit0, hit1, eventInstanceStart, massagers) {\n let dateSpan0 = hit0.dateSpan;\n let dateSpan1 = hit1.dateSpan;\n let date0 = dateSpan0.range.start;\n let date1 = dateSpan1.range.start;\n let standardProps = {};\n if (dateSpan0.allDay !== dateSpan1.allDay) {\n standardProps.allDay = dateSpan1.allDay;\n standardProps.hasEnd = hit1.context.options.allDayMaintainDuration;\n if (dateSpan1.allDay) {\n // means date1 is already start-of-day,\n // but date0 needs to be converted\n date0 = startOfDay(eventInstanceStart);\n }\n else {\n // Moving from allDate->timed\n // Doesn't matter where on the event the drag began, mutate the event's start-date to date1\n date0 = eventInstanceStart;\n }\n }\n let delta = diffDates(date0, date1, hit0.context.dateEnv, hit0.componentId === hit1.componentId ?\n hit0.largeUnit :\n null);\n if (delta.milliseconds) { // has hours/minutes/seconds\n standardProps.allDay = false;\n }\n let mutation = {\n datesDelta: delta,\n standardProps,\n };\n for (let massager of massagers) {\n massager(mutation, hit0, hit1);\n }\n return mutation;\n}\nfunction getComponentTouchDelay(component) {\n let { options } = component.context;\n let delay = options.eventLongPressDelay;\n if (delay == null) {\n delay = options.longPressDelay;\n }\n return delay;\n}\n\nclass EventResizing extends Interaction {\n constructor(settings) {\n super(settings);\n // internal state\n this.draggingSegEl = null;\n this.draggingSeg = null; // TODO: rename to resizingSeg? subjectSeg?\n this.eventRange = null;\n this.relevantEvents = null;\n this.validMutation = null;\n this.mutatedRelevantEvents = null;\n this.handlePointerDown = (ev) => {\n let { component } = this;\n let segEl = this.querySegEl(ev);\n let seg = getElSeg(segEl);\n let eventRange = this.eventRange = seg.eventRange;\n this.dragging.minDistance = component.context.options.eventDragMinDistance;\n // if touch, need to be working with a selected event\n this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(ev.origEvent.target) ||\n (ev.isTouch && this.component.props.eventSelection !== eventRange.instance.instanceId));\n };\n this.handleDragStart = (ev) => {\n let { context } = this.component;\n let eventRange = this.eventRange;\n this.relevantEvents = getRelevantEvents(context.getCurrentData().eventStore, this.eventRange.instance.instanceId);\n let segEl = this.querySegEl(ev);\n this.draggingSegEl = segEl;\n this.draggingSeg = getElSeg(segEl);\n context.calendarApi.unselect();\n context.emitter.trigger('eventResizeStart', {\n el: segEl,\n event: new EventImpl(context, eventRange.def, eventRange.instance),\n jsEvent: ev.origEvent,\n view: context.viewApi,\n });\n };\n this.handleHitUpdate = (hit, isFinal, ev) => {\n let { context } = this.component;\n let relevantEvents = this.relevantEvents;\n let initialHit = this.hitDragging.initialHit;\n let eventInstance = this.eventRange.instance;\n let mutation = null;\n let mutatedRelevantEvents = null;\n let isInvalid = false;\n let interaction = {\n affectedEvents: relevantEvents,\n mutatedEvents: createEmptyEventStore(),\n isEvent: true,\n };\n if (hit) {\n let disallowed = hit.componentId === initialHit.componentId\n && this.isHitComboAllowed\n && !this.isHitComboAllowed(initialHit, hit);\n if (!disallowed) {\n mutation = computeMutation(initialHit, hit, ev.subjectEl.classList.contains('fc-event-resizer-start'), eventInstance.range);\n }\n }\n if (mutation) {\n mutatedRelevantEvents = applyMutationToEventStore(relevantEvents, context.getCurrentData().eventUiBases, mutation, context);\n interaction.mutatedEvents = mutatedRelevantEvents;\n if (!isInteractionValid(interaction, hit.dateProfile, context)) {\n isInvalid = true;\n mutation = null;\n mutatedRelevantEvents = null;\n interaction.mutatedEvents = null;\n }\n }\n if (mutatedRelevantEvents) {\n context.dispatch({\n type: 'SET_EVENT_RESIZE',\n state: interaction,\n });\n }\n else {\n context.dispatch({ type: 'UNSET_EVENT_RESIZE' });\n }\n if (!isInvalid) {\n enableCursor();\n }\n else {\n disableCursor();\n }\n if (!isFinal) {\n if (mutation && isHitsEqual(initialHit, hit)) {\n mutation = null;\n }\n this.validMutation = mutation;\n this.mutatedRelevantEvents = mutatedRelevantEvents;\n }\n };\n this.handleDragEnd = (ev) => {\n let { context } = this.component;\n let eventDef = this.eventRange.def;\n let eventInstance = this.eventRange.instance;\n let eventApi = new EventImpl(context, eventDef, eventInstance);\n let relevantEvents = this.relevantEvents;\n let mutatedRelevantEvents = this.mutatedRelevantEvents;\n context.emitter.trigger('eventResizeStop', {\n el: this.draggingSegEl,\n event: eventApi,\n jsEvent: ev.origEvent,\n view: context.viewApi,\n });\n if (this.validMutation) {\n let updatedEventApi = new EventImpl(context, mutatedRelevantEvents.defs[eventDef.defId], eventInstance ? mutatedRelevantEvents.instances[eventInstance.instanceId] : null);\n context.dispatch({\n type: 'MERGE_EVENTS',\n eventStore: mutatedRelevantEvents,\n });\n let eventChangeArg = {\n oldEvent: eventApi,\n event: updatedEventApi,\n relatedEvents: buildEventApis(mutatedRelevantEvents, context, eventInstance),\n revert() {\n context.dispatch({\n type: 'MERGE_EVENTS',\n eventStore: relevantEvents, // the pre-change events\n });\n },\n };\n context.emitter.trigger('eventResize', Object.assign(Object.assign({}, eventChangeArg), { el: this.draggingSegEl, startDelta: this.validMutation.startDelta || createDuration(0), endDelta: this.validMutation.endDelta || createDuration(0), jsEvent: ev.origEvent, view: context.viewApi }));\n context.emitter.trigger('eventChange', eventChangeArg);\n }\n else {\n context.emitter.trigger('_noEventResize');\n }\n // reset all internal state\n this.draggingSeg = null;\n this.relevantEvents = null;\n this.validMutation = null;\n // okay to keep eventInstance around. useful to set it in handlePointerDown\n };\n let { component } = settings;\n let dragging = this.dragging = new FeaturefulElementDragging(settings.el);\n dragging.pointer.selector = '.fc-event-resizer';\n dragging.touchScrollAllowed = false;\n dragging.autoScroller.isEnabled = component.context.options.dragScroll;\n let hitDragging = this.hitDragging = new HitDragging(this.dragging, interactionSettingsToStore(settings));\n hitDragging.emitter.on('pointerdown', this.handlePointerDown);\n hitDragging.emitter.on('dragstart', this.handleDragStart);\n hitDragging.emitter.on('hitupdate', this.handleHitUpdate);\n hitDragging.emitter.on('dragend', this.handleDragEnd);\n }\n destroy() {\n this.dragging.destroy();\n }\n querySegEl(ev) {\n return elementClosest(ev.subjectEl, '.fc-event');\n }\n}\nfunction computeMutation(hit0, hit1, isFromStart, instanceRange) {\n let dateEnv = hit0.context.dateEnv;\n let date0 = hit0.dateSpan.range.start;\n let date1 = hit1.dateSpan.range.start;\n let delta = diffDates(date0, date1, dateEnv, hit0.largeUnit);\n if (isFromStart) {\n if (dateEnv.add(instanceRange.start, delta) < instanceRange.end) {\n return { startDelta: delta };\n }\n }\n else if (dateEnv.add(instanceRange.end, delta) > instanceRange.start) {\n return { endDelta: delta };\n }\n return null;\n}\n\nclass UnselectAuto {\n constructor(context) {\n this.context = context;\n this.isRecentPointerDateSelect = false; // wish we could use a selector to detect date selection, but uses hit system\n this.matchesCancel = false;\n this.matchesEvent = false;\n this.onSelect = (selectInfo) => {\n if (selectInfo.jsEvent) {\n this.isRecentPointerDateSelect = true;\n }\n };\n this.onDocumentPointerDown = (pev) => {\n let unselectCancel = this.context.options.unselectCancel;\n let downEl = getEventTargetViaRoot(pev.origEvent);\n this.matchesCancel = !!elementClosest(downEl, unselectCancel);\n this.matchesEvent = !!elementClosest(downEl, EventDragging.SELECTOR); // interaction started on an event?\n };\n this.onDocumentPointerUp = (pev) => {\n let { context } = this;\n let { documentPointer } = this;\n let calendarState = context.getCurrentData();\n // touch-scrolling should never unfocus any type of selection\n if (!documentPointer.wasTouchScroll) {\n if (calendarState.dateSelection && // an existing date selection?\n !this.isRecentPointerDateSelect // a new pointer-initiated date selection since last onDocumentPointerUp?\n ) {\n let unselectAuto = context.options.unselectAuto;\n if (unselectAuto && (!unselectAuto || !this.matchesCancel)) {\n context.calendarApi.unselect(pev);\n }\n }\n if (calendarState.eventSelection && // an existing event selected?\n !this.matchesEvent // interaction DIDN'T start on an event\n ) {\n context.dispatch({ type: 'UNSELECT_EVENT' });\n }\n }\n this.isRecentPointerDateSelect = false;\n };\n let documentPointer = this.documentPointer = new PointerDragging(document);\n documentPointer.shouldIgnoreMove = true;\n documentPointer.shouldWatchScroll = false;\n documentPointer.emitter.on('pointerdown', this.onDocumentPointerDown);\n documentPointer.emitter.on('pointerup', this.onDocumentPointerUp);\n /*\n TODO: better way to know about whether there was a selection with the pointer\n */\n context.emitter.on('select', this.onSelect);\n }\n destroy() {\n this.context.emitter.off('select', this.onSelect);\n this.documentPointer.destroy();\n }\n}\n\nconst OPTION_REFINERS = {\n fixedMirrorParent: identity,\n};\nconst LISTENER_REFINERS = {\n dateClick: identity,\n eventDragStart: identity,\n eventDragStop: identity,\n eventDrop: identity,\n eventResizeStart: identity,\n eventResizeStop: identity,\n eventResize: identity,\n drop: identity,\n eventReceive: identity,\n eventLeave: identity,\n};\n\n/*\nGiven an already instantiated draggable object for one-or-more elements,\nInterprets any dragging as an attempt to drag an events that lives outside\nof a calendar onto a calendar.\n*/\nclass ExternalElementDragging {\n constructor(dragging, suppliedDragMeta) {\n this.receivingContext = null;\n this.droppableEvent = null; // will exist for all drags, even if create:false\n this.suppliedDragMeta = null;\n this.dragMeta = null;\n this.handleDragStart = (ev) => {\n this.dragMeta = this.buildDragMeta(ev.subjectEl);\n };\n this.handleHitUpdate = (hit, isFinal, ev) => {\n let { dragging } = this.hitDragging;\n let receivingContext = null;\n let droppableEvent = null;\n let isInvalid = false;\n let interaction = {\n affectedEvents: createEmptyEventStore(),\n mutatedEvents: createEmptyEventStore(),\n isEvent: this.dragMeta.create,\n };\n if (hit) {\n receivingContext = hit.context;\n if (this.canDropElOnCalendar(ev.subjectEl, receivingContext)) {\n droppableEvent = computeEventForDateSpan(hit.dateSpan, this.dragMeta, receivingContext);\n interaction.mutatedEvents = eventTupleToStore(droppableEvent);\n isInvalid = !isInteractionValid(interaction, hit.dateProfile, receivingContext);\n if (isInvalid) {\n interaction.mutatedEvents = createEmptyEventStore();\n droppableEvent = null;\n }\n }\n }\n this.displayDrag(receivingContext, interaction);\n // show mirror if no already-rendered mirror element OR if we are shutting down the mirror (?)\n // TODO: wish we could somehow wait for dispatch to guarantee render\n dragging.setMirrorIsVisible(isFinal || !droppableEvent || !document.querySelector('.fc-event-mirror'));\n if (!isInvalid) {\n enableCursor();\n }\n else {\n disableCursor();\n }\n if (!isFinal) {\n dragging.setMirrorNeedsRevert(!droppableEvent);\n this.receivingContext = receivingContext;\n this.droppableEvent = droppableEvent;\n }\n };\n this.handleDragEnd = (pev) => {\n let { receivingContext, droppableEvent } = this;\n this.clearDrag();\n if (receivingContext && droppableEvent) {\n let finalHit = this.hitDragging.finalHit;\n let finalView = finalHit.context.viewApi;\n let dragMeta = this.dragMeta;\n receivingContext.emitter.trigger('drop', Object.assign(Object.assign({}, buildDatePointApiWithContext(finalHit.dateSpan, receivingContext)), { draggedEl: pev.subjectEl, jsEvent: pev.origEvent, view: finalView }));\n if (dragMeta.create) {\n let addingEvents = eventTupleToStore(droppableEvent);\n receivingContext.dispatch({\n type: 'MERGE_EVENTS',\n eventStore: addingEvents,\n });\n if (pev.isTouch) {\n receivingContext.dispatch({\n type: 'SELECT_EVENT',\n eventInstanceId: droppableEvent.instance.instanceId,\n });\n }\n // signal that an external event landed\n receivingContext.emitter.trigger('eventReceive', {\n event: new EventImpl(receivingContext, droppableEvent.def, droppableEvent.instance),\n relatedEvents: [],\n revert() {\n receivingContext.dispatch({\n type: 'REMOVE_EVENTS',\n eventStore: addingEvents,\n });\n },\n draggedEl: pev.subjectEl,\n view: finalView,\n });\n }\n }\n this.receivingContext = null;\n this.droppableEvent = null;\n };\n let hitDragging = this.hitDragging = new HitDragging(dragging, interactionSettingsStore);\n hitDragging.requireInitial = false; // will start outside of a component\n hitDragging.emitter.on('dragstart', this.handleDragStart);\n hitDragging.emitter.on('hitupdate', this.handleHitUpdate);\n hitDragging.emitter.on('dragend', this.handleDragEnd);\n this.suppliedDragMeta = suppliedDragMeta;\n }\n buildDragMeta(subjectEl) {\n if (typeof this.suppliedDragMeta === 'object') {\n return parseDragMeta(this.suppliedDragMeta);\n }\n if (typeof this.suppliedDragMeta === 'function') {\n return parseDragMeta(this.suppliedDragMeta(subjectEl));\n }\n return getDragMetaFromEl(subjectEl);\n }\n displayDrag(nextContext, state) {\n let prevContext = this.receivingContext;\n if (prevContext && prevContext !== nextContext) {\n prevContext.dispatch({ type: 'UNSET_EVENT_DRAG' });\n }\n if (nextContext) {\n nextContext.dispatch({ type: 'SET_EVENT_DRAG', state });\n }\n }\n clearDrag() {\n if (this.receivingContext) {\n this.receivingContext.dispatch({ type: 'UNSET_EVENT_DRAG' });\n }\n }\n canDropElOnCalendar(el, receivingContext) {\n let dropAccept = receivingContext.options.dropAccept;\n if (typeof dropAccept === 'function') {\n return dropAccept.call(receivingContext.calendarApi, el);\n }\n if (typeof dropAccept === 'string' && dropAccept) {\n return Boolean(elementMatches(el, dropAccept));\n }\n return true;\n }\n}\n// Utils for computing event store from the DragMeta\n// ----------------------------------------------------------------------------------------------------\nfunction computeEventForDateSpan(dateSpan, dragMeta, context) {\n let defProps = Object.assign({}, dragMeta.leftoverProps);\n for (let transform of context.pluginHooks.externalDefTransforms) {\n Object.assign(defProps, transform(dateSpan, dragMeta));\n }\n let { refined, extra } = refineEventDef(defProps, context);\n let def = parseEventDef(refined, extra, dragMeta.sourceId, dateSpan.allDay, context.options.forceEventDuration || Boolean(dragMeta.duration), // hasEnd\n context);\n let start = dateSpan.range.start;\n // only rely on time info if drop zone is all-day,\n // otherwise, we already know the time\n if (dateSpan.allDay && dragMeta.startTime) {\n start = context.dateEnv.add(start, dragMeta.startTime);\n }\n let end = dragMeta.duration ?\n context.dateEnv.add(start, dragMeta.duration) :\n getDefaultEventEnd(dateSpan.allDay, start, context);\n let instance = createEventInstance(def.defId, { start, end });\n return { def, instance };\n}\n// Utils for extracting data from element\n// ----------------------------------------------------------------------------------------------------\nfunction getDragMetaFromEl(el) {\n let str = getEmbeddedElData(el, 'event');\n let obj = str ?\n JSON.parse(str) :\n { create: false }; // if no embedded data, assume no event creation\n return parseDragMeta(obj);\n}\nconfig.dataAttrPrefix = '';\nfunction getEmbeddedElData(el, name) {\n let prefix = config.dataAttrPrefix;\n let prefixedName = (prefix ? prefix + '-' : '') + name;\n return el.getAttribute('data-' + prefixedName) || '';\n}\n\n/*\nMakes an element (that is *external* to any calendar) draggable.\nCan pass in data that determines how an event will be created when dropped onto a calendar.\nLeverages FullCalendar's internal drag-n-drop functionality WITHOUT a third-party drag system.\n*/\nclass ExternalDraggable {\n constructor(el, settings = {}) {\n this.handlePointerDown = (ev) => {\n let { dragging } = this;\n let { minDistance, longPressDelay } = this.settings;\n dragging.minDistance =\n minDistance != null ?\n minDistance :\n (ev.isTouch ? 0 : BASE_OPTION_DEFAULTS.eventDragMinDistance);\n dragging.delay =\n ev.isTouch ? // TODO: eventually read eventLongPressDelay instead vvv\n (longPressDelay != null ? longPressDelay : BASE_OPTION_DEFAULTS.longPressDelay) :\n 0;\n };\n this.handleDragStart = (ev) => {\n if (ev.isTouch &&\n this.dragging.delay &&\n ev.subjectEl.classList.contains('fc-event')) {\n this.dragging.mirror.getMirrorEl().classList.add('fc-event-selected');\n }\n };\n this.settings = settings;\n let dragging = this.dragging = new FeaturefulElementDragging(el);\n dragging.touchScrollAllowed = false;\n if (settings.itemSelector != null) {\n dragging.pointer.selector = settings.itemSelector;\n }\n if (settings.appendTo != null) {\n dragging.mirror.parentNode = settings.appendTo; // TODO: write tests\n }\n dragging.emitter.on('pointerdown', this.handlePointerDown);\n dragging.emitter.on('dragstart', this.handleDragStart);\n new ExternalElementDragging(dragging, settings.eventData); // eslint-disable-line no-new\n }\n destroy() {\n this.dragging.destroy();\n }\n}\n\n/*\nDetects when a *THIRD-PARTY* drag-n-drop system interacts with elements.\nThe third-party system is responsible for drawing the visuals effects of the drag.\nThis class simply monitors for pointer movements and fires events.\nIt also has the ability to hide the moving element (the \"mirror\") during the drag.\n*/\nclass InferredElementDragging extends ElementDragging {\n constructor(containerEl) {\n super(containerEl);\n this.shouldIgnoreMove = false;\n this.mirrorSelector = '';\n this.currentMirrorEl = null;\n this.handlePointerDown = (ev) => {\n this.emitter.trigger('pointerdown', ev);\n if (!this.shouldIgnoreMove) {\n // fire dragstart right away. does not support delay or min-distance\n this.emitter.trigger('dragstart', ev);\n }\n };\n this.handlePointerMove = (ev) => {\n if (!this.shouldIgnoreMove) {\n this.emitter.trigger('dragmove', ev);\n }\n };\n this.handlePointerUp = (ev) => {\n this.emitter.trigger('pointerup', ev);\n if (!this.shouldIgnoreMove) {\n // fire dragend right away. does not support a revert animation\n this.emitter.trigger('dragend', ev);\n }\n };\n let pointer = this.pointer = new PointerDragging(containerEl);\n pointer.emitter.on('pointerdown', this.handlePointerDown);\n pointer.emitter.on('pointermove', this.handlePointerMove);\n pointer.emitter.on('pointerup', this.handlePointerUp);\n }\n destroy() {\n this.pointer.destroy();\n }\n setIgnoreMove(bool) {\n this.shouldIgnoreMove = bool;\n }\n setMirrorIsVisible(bool) {\n if (bool) {\n // restore a previously hidden element.\n // use the reference in case the selector class has already been removed.\n if (this.currentMirrorEl) {\n this.currentMirrorEl.style.visibility = '';\n this.currentMirrorEl = null;\n }\n }\n else {\n let mirrorEl = this.mirrorSelector\n // TODO: somehow query FullCalendars WITHIN shadow-roots\n ? document.querySelector(this.mirrorSelector)\n : null;\n if (mirrorEl) {\n this.currentMirrorEl = mirrorEl;\n mirrorEl.style.visibility = 'hidden';\n }\n }\n }\n}\n\n/*\nBridges third-party drag-n-drop systems with FullCalendar.\nMust be instantiated and destroyed by caller.\n*/\nclass ThirdPartyDraggable {\n constructor(containerOrSettings, settings) {\n let containerEl = document;\n if (\n // wish we could just test instanceof EventTarget, but doesn't work in IE11\n containerOrSettings === document ||\n containerOrSettings instanceof Element) {\n containerEl = containerOrSettings;\n settings = settings || {};\n }\n else {\n settings = (containerOrSettings || {});\n }\n let dragging = this.dragging = new InferredElementDragging(containerEl);\n if (typeof settings.itemSelector === 'string') {\n dragging.pointer.selector = settings.itemSelector;\n }\n else if (containerEl === document) {\n dragging.pointer.selector = '[data-event]';\n }\n if (typeof settings.mirrorSelector === 'string') {\n dragging.mirrorSelector = settings.mirrorSelector;\n }\n let externalDragging = new ExternalElementDragging(dragging, settings.eventData);\n // The hit-detection system requires that the dnd-mirror-element be pointer-events:none,\n // but this can't be guaranteed for third-party draggables, so disable\n externalDragging.hitDragging.disablePointCheck = true;\n }\n destroy() {\n this.dragging.destroy();\n }\n}\n\nvar index = createPlugin({\n name: '@fullcalendar/interaction',\n componentInteractions: [DateClicking, DateSelecting, EventDragging, EventResizing],\n calendarInteractions: [UnselectAuto],\n elementDraggingImpl: FeaturefulElementDragging,\n optionRefiners: OPTION_REFINERS,\n listenerRefiners: LISTENER_REFINERS,\n});\n\nexport { ExternalDraggable as Draggable, ThirdPartyDraggable, index as default };\n","import { createPlugin } from '@fullcalendar/core/index.js';\nimport { ListView } from './internal.js';\nimport { identity, createFormatter } from '@fullcalendar/core/internal.js';\nimport '@fullcalendar/core/preact.js';\n\nconst OPTION_REFINERS = {\n listDayFormat: createFalsableFormatter,\n listDaySideFormat: createFalsableFormatter,\n noEventsClassNames: identity,\n noEventsContent: identity,\n noEventsDidMount: identity,\n noEventsWillUnmount: identity,\n // noEventsText is defined in base options\n};\nfunction createFalsableFormatter(input) {\n return input === false ? null : createFormatter(input);\n}\n\nvar index = createPlugin({\n name: '@fullcalendar/list',\n optionRefiners: OPTION_REFINERS,\n views: {\n list: {\n component: ListView,\n buttonTextKey: 'list',\n listDayFormat: { month: 'long', day: 'numeric', year: 'numeric' }, // like \"January 1, 2016\"\n },\n listDay: {\n type: 'list',\n duration: { days: 1 },\n listDayFormat: { weekday: 'long' }, // day-of-week is all we need. full date is probably in headerToolbar\n },\n listWeek: {\n type: 'list',\n duration: { weeks: 1 },\n listDayFormat: { weekday: 'long' },\n listDaySideFormat: { month: 'long', day: 'numeric', year: 'numeric' },\n },\n listMonth: {\n type: 'list',\n duration: { month: 1 },\n listDaySideFormat: { weekday: 'long' }, // day-of-week is nice-to-have\n },\n listYear: {\n type: 'list',\n duration: { year: 1 },\n listDaySideFormat: { weekday: 'long' }, // day-of-week is nice-to-have\n },\n },\n});\n\nexport { index as default };\n","import { BaseComponent, getUniqueDomId, getDateMeta, buildNavLinkAttrs, ContentContainer, getDayClassNames, formatDayString, createFormatter, EventContainer, getSegAnchorAttrs, isMultiDayRange, buildSegTimeText, DateComponent, memoize, ViewContainer, Scroller, NowTimer, sortEventSegs, getSegMeta, sliceEventStore, intersectRanges, startOfDay, addDays, injectStyles } from '@fullcalendar/core/internal.js';\nimport { createElement, Fragment } from '@fullcalendar/core/preact.js';\n\nclass ListViewHeaderRow extends BaseComponent {\n constructor() {\n super(...arguments);\n this.state = {\n textId: getUniqueDomId(),\n };\n }\n render() {\n let { theme, dateEnv, options, viewApi } = this.context;\n let { cellId, dayDate, todayRange } = this.props;\n let { textId } = this.state;\n let dayMeta = getDateMeta(dayDate, todayRange);\n // will ever be falsy?\n let text = options.listDayFormat ? dateEnv.format(dayDate, options.listDayFormat) : '';\n // will ever be falsy? also, BAD NAME \"alt\"\n let sideText = options.listDaySideFormat ? dateEnv.format(dayDate, options.listDaySideFormat) : '';\n let renderProps = Object.assign({ date: dateEnv.toDate(dayDate), view: viewApi, textId,\n text,\n sideText, navLinkAttrs: buildNavLinkAttrs(this.context, dayDate), sideNavLinkAttrs: buildNavLinkAttrs(this.context, dayDate, 'day', false) }, dayMeta);\n // TODO: make a reusable HOC for dayHeader (used in daygrid/timegrid too)\n return (createElement(ContentContainer, { elTag: \"tr\", elClasses: [\n 'fc-list-day',\n ...getDayClassNames(dayMeta, theme),\n ], elAttrs: {\n 'data-date': formatDayString(dayDate),\n }, renderProps: renderProps, generatorName: \"dayHeaderContent\", customGenerator: options.dayHeaderContent, defaultGenerator: renderInnerContent, classNameGenerator: options.dayHeaderClassNames, didMount: options.dayHeaderDidMount, willUnmount: options.dayHeaderWillUnmount }, (InnerContent) => ( // TODO: force-hide top border based on :first-child\n createElement(\"th\", { scope: \"colgroup\", colSpan: 3, id: cellId, \"aria-labelledby\": textId },\n createElement(InnerContent, { elTag: \"div\", elClasses: [\n 'fc-list-day-cushion',\n theme.getClass('tableCellShaded'),\n ] })))));\n }\n}\nfunction renderInnerContent(props) {\n return (createElement(Fragment, null,\n props.text && (createElement(\"a\", Object.assign({ id: props.textId, className: \"fc-list-day-text\" }, props.navLinkAttrs), props.text)),\n props.sideText && ( /* not keyboard tabbable */createElement(\"a\", Object.assign({ \"aria-hidden\": true, className: \"fc-list-day-side-text\" }, props.sideNavLinkAttrs), props.sideText))));\n}\n\nconst DEFAULT_TIME_FORMAT = createFormatter({\n hour: 'numeric',\n minute: '2-digit',\n meridiem: 'short',\n});\nclass ListViewEventRow extends BaseComponent {\n render() {\n let { props, context } = this;\n let { options } = context;\n let { seg, timeHeaderId, eventHeaderId, dateHeaderId } = props;\n let timeFormat = options.eventTimeFormat || DEFAULT_TIME_FORMAT;\n return (createElement(EventContainer, Object.assign({}, props, { elTag: \"tr\", elClasses: [\n 'fc-list-event',\n seg.eventRange.def.url && 'fc-event-forced-url',\n ], defaultGenerator: () => renderEventInnerContent(seg, context) /* weird */, seg: seg, timeText: \"\", disableDragging: true, disableResizing: true }), (InnerContent, eventContentArg) => (createElement(Fragment, null,\n buildTimeContent(seg, timeFormat, context, timeHeaderId, dateHeaderId),\n createElement(\"td\", { \"aria-hidden\": true, className: \"fc-list-event-graphic\" },\n createElement(\"span\", { className: \"fc-list-event-dot\", style: {\n borderColor: eventContentArg.borderColor || eventContentArg.backgroundColor,\n } })),\n createElement(InnerContent, { elTag: \"td\", elClasses: ['fc-list-event-title'], elAttrs: { headers: `${eventHeaderId} ${dateHeaderId}` } })))));\n }\n}\nfunction renderEventInnerContent(seg, context) {\n let interactiveAttrs = getSegAnchorAttrs(seg, context);\n return (createElement(\"a\", Object.assign({}, interactiveAttrs), seg.eventRange.def.title));\n}\nfunction buildTimeContent(seg, timeFormat, context, timeHeaderId, dateHeaderId) {\n let { options } = context;\n if (options.displayEventTime !== false) {\n let eventDef = seg.eventRange.def;\n let eventInstance = seg.eventRange.instance;\n let doAllDay = false;\n let timeText;\n if (eventDef.allDay) {\n doAllDay = true;\n }\n else if (isMultiDayRange(seg.eventRange.range)) { // TODO: use (!isStart || !isEnd) instead?\n if (seg.isStart) {\n timeText = buildSegTimeText(seg, timeFormat, context, null, null, eventInstance.range.start, seg.end);\n }\n else if (seg.isEnd) {\n timeText = buildSegTimeText(seg, timeFormat, context, null, null, seg.start, eventInstance.range.end);\n }\n else {\n doAllDay = true;\n }\n }\n else {\n timeText = buildSegTimeText(seg, timeFormat, context);\n }\n if (doAllDay) {\n let renderProps = {\n text: context.options.allDayText,\n view: context.viewApi,\n };\n return (createElement(ContentContainer, { elTag: \"td\", elClasses: ['fc-list-event-time'], elAttrs: {\n headers: `${timeHeaderId} ${dateHeaderId}`,\n }, renderProps: renderProps, generatorName: \"allDayContent\", customGenerator: options.allDayContent, defaultGenerator: renderAllDayInner, classNameGenerator: options.allDayClassNames, didMount: options.allDayDidMount, willUnmount: options.allDayWillUnmount }));\n }\n return (createElement(\"td\", { className: \"fc-list-event-time\" }, timeText));\n }\n return null;\n}\nfunction renderAllDayInner(renderProps) {\n return renderProps.text;\n}\n\n/*\nResponsible for the scroller, and forwarding event-related actions into the \"grid\".\n*/\nclass ListView extends DateComponent {\n constructor() {\n super(...arguments);\n this.computeDateVars = memoize(computeDateVars);\n this.eventStoreToSegs = memoize(this._eventStoreToSegs);\n this.state = {\n timeHeaderId: getUniqueDomId(),\n eventHeaderId: getUniqueDomId(),\n dateHeaderIdRoot: getUniqueDomId(),\n };\n this.setRootEl = (rootEl) => {\n if (rootEl) {\n this.context.registerInteractiveComponent(this, {\n el: rootEl,\n });\n }\n else {\n this.context.unregisterInteractiveComponent(this);\n }\n };\n }\n render() {\n let { props, context } = this;\n let { dayDates, dayRanges } = this.computeDateVars(props.dateProfile);\n let eventSegs = this.eventStoreToSegs(props.eventStore, props.eventUiBases, dayRanges);\n return (createElement(ViewContainer, { elRef: this.setRootEl, elClasses: [\n 'fc-list',\n context.theme.getClass('table'),\n context.options.stickyHeaderDates !== false ?\n 'fc-list-sticky' :\n '',\n ], viewSpec: context.viewSpec },\n createElement(Scroller, { liquid: !props.isHeightAuto, overflowX: props.isHeightAuto ? 'visible' : 'hidden', overflowY: props.isHeightAuto ? 'visible' : 'auto' }, eventSegs.length > 0 ?\n this.renderSegList(eventSegs, dayDates) :\n this.renderEmptyMessage())));\n }\n renderEmptyMessage() {\n let { options, viewApi } = this.context;\n let renderProps = {\n text: options.noEventsText,\n view: viewApi,\n };\n return (createElement(ContentContainer, { elTag: \"div\", elClasses: ['fc-list-empty'], renderProps: renderProps, generatorName: \"noEventsContent\", customGenerator: options.noEventsContent, defaultGenerator: renderNoEventsInner, classNameGenerator: options.noEventsClassNames, didMount: options.noEventsDidMount, willUnmount: options.noEventsWillUnmount }, (InnerContent) => (createElement(InnerContent, { elTag: \"div\", elClasses: ['fc-list-empty-cushion'] }))));\n }\n renderSegList(allSegs, dayDates) {\n let { theme, options } = this.context;\n let { timeHeaderId, eventHeaderId, dateHeaderIdRoot } = this.state;\n let segsByDay = groupSegsByDay(allSegs); // sparse array\n return (createElement(NowTimer, { unit: \"day\" }, (nowDate, todayRange) => {\n let innerNodes = [];\n for (let dayIndex = 0; dayIndex < segsByDay.length; dayIndex += 1) {\n let daySegs = segsByDay[dayIndex];\n if (daySegs) { // sparse array, so might be undefined\n let dayStr = formatDayString(dayDates[dayIndex]);\n let dateHeaderId = dateHeaderIdRoot + '-' + dayStr;\n // append a day header\n innerNodes.push(createElement(ListViewHeaderRow, { key: dayStr, cellId: dateHeaderId, dayDate: dayDates[dayIndex], todayRange: todayRange }));\n daySegs = sortEventSegs(daySegs, options.eventOrder);\n for (let seg of daySegs) {\n innerNodes.push(createElement(ListViewEventRow, Object.assign({ key: dayStr + ':' + seg.eventRange.instance.instanceId /* are multiple segs for an instanceId */, seg: seg, isDragging: false, isResizing: false, isDateSelecting: false, isSelected: false, timeHeaderId: timeHeaderId, eventHeaderId: eventHeaderId, dateHeaderId: dateHeaderId }, getSegMeta(seg, todayRange, nowDate))));\n }\n }\n }\n return (createElement(\"table\", { className: 'fc-list-table ' + theme.getClass('table') },\n createElement(\"thead\", null,\n createElement(\"tr\", null,\n createElement(\"th\", { scope: \"col\", id: timeHeaderId }, options.timeHint),\n createElement(\"th\", { scope: \"col\", \"aria-hidden\": true }),\n createElement(\"th\", { scope: \"col\", id: eventHeaderId }, options.eventHint))),\n createElement(\"tbody\", null, innerNodes)));\n }));\n }\n _eventStoreToSegs(eventStore, eventUiBases, dayRanges) {\n return this.eventRangesToSegs(sliceEventStore(eventStore, eventUiBases, this.props.dateProfile.activeRange, this.context.options.nextDayThreshold).fg, dayRanges);\n }\n eventRangesToSegs(eventRanges, dayRanges) {\n let segs = [];\n for (let eventRange of eventRanges) {\n segs.push(...this.eventRangeToSegs(eventRange, dayRanges));\n }\n return segs;\n }\n eventRangeToSegs(eventRange, dayRanges) {\n let { dateEnv } = this.context;\n let { nextDayThreshold } = this.context.options;\n let range = eventRange.range;\n let allDay = eventRange.def.allDay;\n let dayIndex;\n let segRange;\n let seg;\n let segs = [];\n for (dayIndex = 0; dayIndex < dayRanges.length; dayIndex += 1) {\n segRange = intersectRanges(range, dayRanges[dayIndex]);\n if (segRange) {\n seg = {\n component: this,\n eventRange,\n start: segRange.start,\n end: segRange.end,\n isStart: eventRange.isStart && segRange.start.valueOf() === range.start.valueOf(),\n isEnd: eventRange.isEnd && segRange.end.valueOf() === range.end.valueOf(),\n dayIndex,\n };\n segs.push(seg);\n // detect when range won't go fully into the next day,\n // and mutate the latest seg to the be the end.\n if (!seg.isEnd && !allDay &&\n dayIndex + 1 < dayRanges.length &&\n range.end <\n dateEnv.add(dayRanges[dayIndex + 1].start, nextDayThreshold)) {\n seg.end = range.end;\n seg.isEnd = true;\n break;\n }\n }\n }\n return segs;\n }\n}\nfunction renderNoEventsInner(renderProps) {\n return renderProps.text;\n}\nfunction computeDateVars(dateProfile) {\n let dayStart = startOfDay(dateProfile.renderRange.start);\n let viewEnd = dateProfile.renderRange.end;\n let dayDates = [];\n let dayRanges = [];\n while (dayStart < viewEnd) {\n dayDates.push(dayStart);\n dayRanges.push({\n start: dayStart,\n end: addDays(dayStart, 1),\n });\n dayStart = addDays(dayStart, 1);\n }\n return { dayDates, dayRanges };\n}\n// Returns a sparse array of arrays, segs grouped by their dayIndex\nfunction groupSegsByDay(segs) {\n let segsByDay = []; // sparse array\n let i;\n let seg;\n for (i = 0; i < segs.length; i += 1) {\n seg = segs[i];\n (segsByDay[seg.dayIndex] || (segsByDay[seg.dayIndex] = []))\n .push(seg);\n }\n return segsByDay;\n}\n\nvar css_248z = \":root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:\\\"\\\";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}\";\ninjectStyles(css_248z);\n\nexport { ListView };\n","import { createPlugin } from '@fullcalendar/core/index.js';\nimport { DayTimeColsView } from './internal.js';\nimport '@fullcalendar/core/internal.js';\nimport '@fullcalendar/core/preact.js';\nimport '@fullcalendar/daygrid/internal.js';\n\nconst OPTION_REFINERS = {\n allDaySlot: Boolean,\n};\n\nvar index = createPlugin({\n name: '@fullcalendar/timegrid',\n initialView: 'timeGridWeek',\n optionRefiners: OPTION_REFINERS,\n views: {\n timeGrid: {\n component: DayTimeColsView,\n usesMinMaxTime: true,\n allDaySlot: true,\n slotDuration: '00:30:00',\n slotEventOverlap: true, // a bad name. confused with overlap/constraint system\n },\n timeGridDay: {\n type: 'timeGrid',\n duration: { days: 1 },\n },\n timeGridWeek: {\n type: 'timeGrid',\n duration: { weeks: 1 },\n },\n },\n});\n\nexport { index as default };\n","import { Splitter, hasBgRendering, createFormatter, ViewContextType, ContentContainer, BaseComponent, DateComponent, diffDays, buildNavLinkAttrs, WeekNumberContainer, getStickyHeaderDates, ViewContainer, SimpleScrollGrid, getStickyFooterScrollbar, NowTimer, NowIndicatorContainer, renderScrollShim, rangeContainsMarker, startOfDay, asRoughMs, createDuration, RefMap, PositionCache, MoreLinkContainer, SegHierarchy, groupIntersectingEntries, binarySearch, getEntrySpanEnd, buildEntryKey, StandardEvent, memoize, sortEventSegs, DayCellContainer, hasCustomDayCellContent, getSegMeta, buildIsoString, computeEarliestSegStart, buildEventRangeKey, BgEvent, renderFill, addDurations, multiplyDuration, wholeDivideDurations, Slicer, intersectRanges, formatIsoTimeString, DayHeader, DaySeriesModel, DayTableModel, injectStyles } from '@fullcalendar/core/internal.js';\nimport { createElement, createRef, Fragment } from '@fullcalendar/core/preact.js';\nimport { DayTable } from '@fullcalendar/daygrid/internal.js';\n\nclass AllDaySplitter extends Splitter {\n getKeyInfo() {\n return {\n allDay: {},\n timed: {},\n };\n }\n getKeysForDateSpan(dateSpan) {\n if (dateSpan.allDay) {\n return ['allDay'];\n }\n return ['timed'];\n }\n getKeysForEventDef(eventDef) {\n if (!eventDef.allDay) {\n return ['timed'];\n }\n if (hasBgRendering(eventDef)) {\n return ['timed', 'allDay'];\n }\n return ['allDay'];\n }\n}\n\nconst DEFAULT_SLAT_LABEL_FORMAT = createFormatter({\n hour: 'numeric',\n minute: '2-digit',\n omitZeroMinute: true,\n meridiem: 'short',\n});\nfunction TimeColsAxisCell(props) {\n let classNames = [\n 'fc-timegrid-slot',\n 'fc-timegrid-slot-label',\n props.isLabeled ? 'fc-scrollgrid-shrink' : 'fc-timegrid-slot-minor',\n ];\n return (createElement(ViewContextType.Consumer, null, (context) => {\n if (!props.isLabeled) {\n return (createElement(\"td\", { className: classNames.join(' '), \"data-time\": props.isoTimeStr }));\n }\n let { dateEnv, options, viewApi } = context;\n let labelFormat = // TODO: fully pre-parse\n options.slotLabelFormat == null ? DEFAULT_SLAT_LABEL_FORMAT :\n Array.isArray(options.slotLabelFormat) ? createFormatter(options.slotLabelFormat[0]) :\n createFormatter(options.slotLabelFormat);\n let renderProps = {\n level: 0,\n time: props.time,\n date: dateEnv.toDate(props.date),\n view: viewApi,\n text: dateEnv.format(props.date, labelFormat),\n };\n return (createElement(ContentContainer, { elTag: \"td\", elClasses: classNames, elAttrs: {\n 'data-time': props.isoTimeStr,\n }, renderProps: renderProps, generatorName: \"slotLabelContent\", customGenerator: options.slotLabelContent, defaultGenerator: renderInnerContent, classNameGenerator: options.slotLabelClassNames, didMount: options.slotLabelDidMount, willUnmount: options.slotLabelWillUnmount }, (InnerContent) => (createElement(\"div\", { className: \"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame\" },\n createElement(InnerContent, { elTag: \"div\", elClasses: [\n 'fc-timegrid-slot-label-cushion',\n 'fc-scrollgrid-shrink-cushion',\n ] })))));\n }));\n}\nfunction renderInnerContent(props) {\n return props.text;\n}\n\nclass TimeBodyAxis extends BaseComponent {\n render() {\n return this.props.slatMetas.map((slatMeta) => (createElement(\"tr\", { key: slatMeta.key },\n createElement(TimeColsAxisCell, Object.assign({}, slatMeta)))));\n }\n}\n\nconst DEFAULT_WEEK_NUM_FORMAT = createFormatter({ week: 'short' });\nconst AUTO_ALL_DAY_MAX_EVENT_ROWS = 5;\nclass TimeColsView extends DateComponent {\n constructor() {\n super(...arguments);\n this.allDaySplitter = new AllDaySplitter(); // for use by subclasses\n this.headerElRef = createRef();\n this.rootElRef = createRef();\n this.scrollerElRef = createRef();\n this.state = {\n slatCoords: null,\n };\n this.handleScrollTopRequest = (scrollTop) => {\n let scrollerEl = this.scrollerElRef.current;\n if (scrollerEl) { // TODO: not sure how this could ever be null. weirdness with the reducer\n scrollerEl.scrollTop = scrollTop;\n }\n };\n /* Header Render Methods\n ------------------------------------------------------------------------------------------------------------------*/\n this.renderHeadAxis = (rowKey, frameHeight = '') => {\n let { options } = this.context;\n let { dateProfile } = this.props;\n let range = dateProfile.renderRange;\n let dayCnt = diffDays(range.start, range.end);\n // only do in day views (to avoid doing in week views that dont need it)\n let navLinkAttrs = (dayCnt === 1)\n ? buildNavLinkAttrs(this.context, range.start, 'week')\n : {};\n if (options.weekNumbers && rowKey === 'day') {\n return (createElement(WeekNumberContainer, { elTag: \"th\", elClasses: [\n 'fc-timegrid-axis',\n 'fc-scrollgrid-shrink',\n ], elAttrs: {\n 'aria-hidden': true,\n }, date: range.start, defaultFormat: DEFAULT_WEEK_NUM_FORMAT }, (InnerContent) => (createElement(\"div\", { className: [\n 'fc-timegrid-axis-frame',\n 'fc-scrollgrid-shrink-frame',\n 'fc-timegrid-axis-frame-liquid',\n ].join(' '), style: { height: frameHeight } },\n createElement(InnerContent, { elTag: \"a\", elClasses: [\n 'fc-timegrid-axis-cushion',\n 'fc-scrollgrid-shrink-cushion',\n 'fc-scrollgrid-sync-inner',\n ], elAttrs: navLinkAttrs })))));\n }\n return (createElement(\"th\", { \"aria-hidden\": true, className: \"fc-timegrid-axis\" },\n createElement(\"div\", { className: \"fc-timegrid-axis-frame\", style: { height: frameHeight } })));\n };\n /* Table Component Render Methods\n ------------------------------------------------------------------------------------------------------------------*/\n // only a one-way height sync. we don't send the axis inner-content height to the DayGrid,\n // but DayGrid still needs to have classNames on inner elements in order to measure.\n this.renderTableRowAxis = (rowHeight) => {\n let { options, viewApi } = this.context;\n let renderProps = {\n text: options.allDayText,\n view: viewApi,\n };\n return (\n // TODO: make reusable hook. used in list view too\n createElement(ContentContainer, { elTag: \"td\", elClasses: [\n 'fc-timegrid-axis',\n 'fc-scrollgrid-shrink',\n ], elAttrs: {\n 'aria-hidden': true,\n }, renderProps: renderProps, generatorName: \"allDayContent\", customGenerator: options.allDayContent, defaultGenerator: renderAllDayInner, classNameGenerator: options.allDayClassNames, didMount: options.allDayDidMount, willUnmount: options.allDayWillUnmount }, (InnerContent) => (createElement(\"div\", { className: [\n 'fc-timegrid-axis-frame',\n 'fc-scrollgrid-shrink-frame',\n rowHeight == null ? ' fc-timegrid-axis-frame-liquid' : '',\n ].join(' '), style: { height: rowHeight } },\n createElement(InnerContent, { elTag: \"span\", elClasses: [\n 'fc-timegrid-axis-cushion',\n 'fc-scrollgrid-shrink-cushion',\n 'fc-scrollgrid-sync-inner',\n ] })))));\n };\n this.handleSlatCoords = (slatCoords) => {\n this.setState({ slatCoords });\n };\n }\n // rendering\n // ----------------------------------------------------------------------------------------------------\n renderSimpleLayout(headerRowContent, allDayContent, timeContent) {\n let { context, props } = this;\n let sections = [];\n let stickyHeaderDates = getStickyHeaderDates(context.options);\n if (headerRowContent) {\n sections.push({\n type: 'header',\n key: 'header',\n isSticky: stickyHeaderDates,\n chunk: {\n elRef: this.headerElRef,\n tableClassName: 'fc-col-header',\n rowContent: headerRowContent,\n },\n });\n }\n if (allDayContent) {\n sections.push({\n type: 'body',\n key: 'all-day',\n chunk: { content: allDayContent },\n });\n sections.push({\n type: 'body',\n key: 'all-day-divider',\n outerContent: ( // TODO: rename to cellContent so don't need to define <tr>?\n createElement(\"tr\", { role: \"presentation\", className: \"fc-scrollgrid-section\" },\n createElement(\"td\", { className: 'fc-timegrid-divider ' + context.theme.getClass('tableCellShaded') }))),\n });\n }\n sections.push({\n type: 'body',\n key: 'body',\n liquid: true,\n expandRows: Boolean(context.options.expandRows),\n chunk: {\n scrollerElRef: this.scrollerElRef,\n content: timeContent,\n },\n });\n return (createElement(ViewContainer, { elRef: this.rootElRef, elClasses: ['fc-timegrid'], viewSpec: context.viewSpec },\n createElement(SimpleScrollGrid, { liquid: !props.isHeightAuto && !props.forPrint, collapsibleWidth: props.forPrint, cols: [{ width: 'shrink' }], sections: sections })));\n }\n renderHScrollLayout(headerRowContent, allDayContent, timeContent, colCnt, dayMinWidth, slatMetas, slatCoords) {\n let ScrollGrid = this.context.pluginHooks.scrollGridImpl;\n if (!ScrollGrid) {\n throw new Error('No ScrollGrid implementation');\n }\n let { context, props } = this;\n let stickyHeaderDates = !props.forPrint && getStickyHeaderDates(context.options);\n let stickyFooterScrollbar = !props.forPrint && getStickyFooterScrollbar(context.options);\n let sections = [];\n if (headerRowContent) {\n sections.push({\n type: 'header',\n key: 'header',\n isSticky: stickyHeaderDates,\n syncRowHeights: true,\n chunks: [\n {\n key: 'axis',\n rowContent: (arg) => (createElement(\"tr\", { role: \"presentation\" }, this.renderHeadAxis('day', arg.rowSyncHeights[0]))),\n },\n {\n key: 'cols',\n elRef: this.headerElRef,\n tableClassName: 'fc-col-header',\n rowContent: headerRowContent,\n },\n ],\n });\n }\n if (allDayContent) {\n sections.push({\n type: 'body',\n key: 'all-day',\n syncRowHeights: true,\n chunks: [\n {\n key: 'axis',\n rowContent: (contentArg) => (createElement(\"tr\", { role: \"presentation\" }, this.renderTableRowAxis(contentArg.rowSyncHeights[0]))),\n },\n {\n key: 'cols',\n content: allDayContent,\n },\n ],\n });\n sections.push({\n key: 'all-day-divider',\n type: 'body',\n outerContent: ( // TODO: rename to cellContent so don't need to define <tr>?\n createElement(\"tr\", { role: \"presentation\", className: \"fc-scrollgrid-section\" },\n createElement(\"td\", { colSpan: 2, className: 'fc-timegrid-divider ' + context.theme.getClass('tableCellShaded') }))),\n });\n }\n let isNowIndicator = context.options.nowIndicator;\n sections.push({\n type: 'body',\n key: 'body',\n liquid: true,\n expandRows: Boolean(context.options.expandRows),\n chunks: [\n {\n key: 'axis',\n content: (arg) => (\n // TODO: make this now-indicator arrow more DRY with TimeColsContent\n createElement(\"div\", { className: \"fc-timegrid-axis-chunk\" },\n createElement(\"table\", { \"aria-hidden\": true, style: { height: arg.expandRows ? arg.clientHeight : '' } },\n arg.tableColGroupNode,\n createElement(\"tbody\", null,\n createElement(TimeBodyAxis, { slatMetas: slatMetas }))),\n createElement(\"div\", { className: \"fc-timegrid-now-indicator-container\" },\n createElement(NowTimer, { unit: isNowIndicator ? 'minute' : 'day' /* hacky */ }, (nowDate) => {\n let nowIndicatorTop = isNowIndicator &&\n slatCoords &&\n slatCoords.safeComputeTop(nowDate); // might return void\n if (typeof nowIndicatorTop === 'number') {\n return (createElement(NowIndicatorContainer, { elClasses: ['fc-timegrid-now-indicator-arrow'], elStyle: { top: nowIndicatorTop }, isAxis: true, date: nowDate }));\n }\n return null;\n })))),\n },\n {\n key: 'cols',\n scrollerElRef: this.scrollerElRef,\n content: timeContent,\n },\n ],\n });\n if (stickyFooterScrollbar) {\n sections.push({\n key: 'footer',\n type: 'footer',\n isSticky: true,\n chunks: [\n {\n key: 'axis',\n content: renderScrollShim,\n },\n {\n key: 'cols',\n content: renderScrollShim,\n },\n ],\n });\n }\n return (createElement(ViewContainer, { elRef: this.rootElRef, elClasses: ['fc-timegrid'], viewSpec: context.viewSpec },\n createElement(ScrollGrid, { liquid: !props.isHeightAuto && !props.forPrint, forPrint: props.forPrint, collapsibleWidth: false, colGroups: [\n { width: 'shrink', cols: [{ width: 'shrink' }] },\n { cols: [{ span: colCnt, minWidth: dayMinWidth }] },\n ], sections: sections })));\n }\n /* Dimensions\n ------------------------------------------------------------------------------------------------------------------*/\n getAllDayMaxEventProps() {\n let { dayMaxEvents, dayMaxEventRows } = this.context.options;\n if (dayMaxEvents === true || dayMaxEventRows === true) { // is auto?\n dayMaxEvents = undefined;\n dayMaxEventRows = AUTO_ALL_DAY_MAX_EVENT_ROWS; // make sure \"auto\" goes to a real number\n }\n return { dayMaxEvents, dayMaxEventRows };\n }\n}\nfunction renderAllDayInner(renderProps) {\n return renderProps.text;\n}\n\nclass TimeColsSlatsCoords {\n constructor(positions, dateProfile, slotDuration) {\n this.positions = positions;\n this.dateProfile = dateProfile;\n this.slotDuration = slotDuration;\n }\n safeComputeTop(date) {\n let { dateProfile } = this;\n if (rangeContainsMarker(dateProfile.currentRange, date)) {\n let startOfDayDate = startOfDay(date);\n let timeMs = date.valueOf() - startOfDayDate.valueOf();\n if (timeMs >= asRoughMs(dateProfile.slotMinTime) &&\n timeMs < asRoughMs(dateProfile.slotMaxTime)) {\n return this.computeTimeTop(createDuration(timeMs));\n }\n }\n return null;\n }\n // Computes the top coordinate, relative to the bounds of the grid, of the given date.\n // A `startOfDayDate` must be given for avoiding ambiguity over how to treat midnight.\n computeDateTop(when, startOfDayDate) {\n if (!startOfDayDate) {\n startOfDayDate = startOfDay(when);\n }\n return this.computeTimeTop(createDuration(when.valueOf() - startOfDayDate.valueOf()));\n }\n // Computes the top coordinate, relative to the bounds of the grid, of the given time (a Duration).\n // This is a makeshify way to compute the time-top. Assumes all slatMetas dates are uniform.\n // Eventually allow computation with arbirary slat dates.\n computeTimeTop(duration) {\n let { positions, dateProfile } = this;\n let len = positions.els.length;\n // floating-point value of # of slots covered\n let slatCoverage = (duration.milliseconds - asRoughMs(dateProfile.slotMinTime)) / asRoughMs(this.slotDuration);\n let slatIndex;\n let slatRemainder;\n // compute a floating-point number for how many slats should be progressed through.\n // from 0 to number of slats (inclusive)\n // constrained because slotMinTime/slotMaxTime might be customized.\n slatCoverage = Math.max(0, slatCoverage);\n slatCoverage = Math.min(len, slatCoverage);\n // an integer index of the furthest whole slat\n // from 0 to number slats (*exclusive*, so len-1)\n slatIndex = Math.floor(slatCoverage);\n slatIndex = Math.min(slatIndex, len - 1);\n // how much further through the slatIndex slat (from 0.0-1.0) must be covered in addition.\n // could be 1.0 if slatCoverage is covering *all* the slots\n slatRemainder = slatCoverage - slatIndex;\n return positions.tops[slatIndex] +\n positions.getHeight(slatIndex) * slatRemainder;\n }\n}\n\nclass TimeColsSlatsBody extends BaseComponent {\n render() {\n let { props, context } = this;\n let { options } = context;\n let { slatElRefs } = props;\n return (createElement(\"tbody\", null, props.slatMetas.map((slatMeta, i) => {\n let renderProps = {\n time: slatMeta.time,\n date: context.dateEnv.toDate(slatMeta.date),\n view: context.viewApi,\n };\n return (createElement(\"tr\", { key: slatMeta.key, ref: slatElRefs.createRef(slatMeta.key) },\n props.axis && (createElement(TimeColsAxisCell, Object.assign({}, slatMeta))),\n createElement(ContentContainer, { elTag: \"td\", elClasses: [\n 'fc-timegrid-slot',\n 'fc-timegrid-slot-lane',\n !slatMeta.isLabeled && 'fc-timegrid-slot-minor',\n ], elAttrs: {\n 'data-time': slatMeta.isoTimeStr,\n }, renderProps: renderProps, generatorName: \"slotLaneContent\", customGenerator: options.slotLaneContent, classNameGenerator: options.slotLaneClassNames, didMount: options.slotLaneDidMount, willUnmount: options.slotLaneWillUnmount })));\n })));\n }\n}\n\n/*\nfor the horizontal \"slats\" that run width-wise. Has a time axis on a side. Depends on RTL.\n*/\nclass TimeColsSlats extends BaseComponent {\n constructor() {\n super(...arguments);\n this.rootElRef = createRef();\n this.slatElRefs = new RefMap();\n }\n render() {\n let { props, context } = this;\n return (createElement(\"div\", { ref: this.rootElRef, className: \"fc-timegrid-slots\" },\n createElement(\"table\", { \"aria-hidden\": true, className: context.theme.getClass('table'), style: {\n minWidth: props.tableMinWidth,\n width: props.clientWidth,\n height: props.minHeight,\n } },\n props.tableColGroupNode /* relies on there only being a single <col> for the axis */,\n createElement(TimeColsSlatsBody, { slatElRefs: this.slatElRefs, axis: props.axis, slatMetas: props.slatMetas }))));\n }\n componentDidMount() {\n this.updateSizing();\n }\n componentDidUpdate() {\n this.updateSizing();\n }\n componentWillUnmount() {\n if (this.props.onCoords) {\n this.props.onCoords(null);\n }\n }\n updateSizing() {\n let { context, props } = this;\n if (props.onCoords &&\n props.clientWidth !== null // means sizing has stabilized\n ) {\n let rootEl = this.rootElRef.current;\n if (rootEl.offsetHeight) { // not hidden by css\n props.onCoords(new TimeColsSlatsCoords(new PositionCache(this.rootElRef.current, collectSlatEls(this.slatElRefs.currentMap, props.slatMetas), false, true), this.props.dateProfile, context.options.slotDuration));\n }\n }\n }\n}\nfunction collectSlatEls(elMap, slatMetas) {\n return slatMetas.map((slatMeta) => elMap[slatMeta.key]);\n}\n\nfunction splitSegsByCol(segs, colCnt) {\n let segsByCol = [];\n let i;\n for (i = 0; i < colCnt; i += 1) {\n segsByCol.push([]);\n }\n if (segs) {\n for (i = 0; i < segs.length; i += 1) {\n segsByCol[segs[i].col].push(segs[i]);\n }\n }\n return segsByCol;\n}\nfunction splitInteractionByCol(ui, colCnt) {\n let byRow = [];\n if (!ui) {\n for (let i = 0; i < colCnt; i += 1) {\n byRow[i] = null;\n }\n }\n else {\n for (let i = 0; i < colCnt; i += 1) {\n byRow[i] = {\n affectedInstances: ui.affectedInstances,\n isEvent: ui.isEvent,\n segs: [],\n };\n }\n for (let seg of ui.segs) {\n byRow[seg.col].segs.push(seg);\n }\n }\n return byRow;\n}\n\nclass TimeColMoreLink extends BaseComponent {\n render() {\n let { props } = this;\n return (createElement(MoreLinkContainer, { elClasses: ['fc-timegrid-more-link'], elStyle: {\n top: props.top,\n bottom: props.bottom,\n }, allDayDate: null, moreCnt: props.hiddenSegs.length, allSegs: props.hiddenSegs, hiddenSegs: props.hiddenSegs, extraDateSpan: props.extraDateSpan, dateProfile: props.dateProfile, todayRange: props.todayRange, popoverContent: () => renderPlainFgSegs(props.hiddenSegs, props), defaultGenerator: renderMoreLinkInner, forceTimed: true }, (InnerContent) => (createElement(InnerContent, { elTag: \"div\", elClasses: ['fc-timegrid-more-link-inner', 'fc-sticky'] }))));\n }\n}\nfunction renderMoreLinkInner(props) {\n return props.shortText;\n}\n\n// segInputs assumed sorted\nfunction buildPositioning(segInputs, strictOrder, maxStackCnt) {\n let hierarchy = new SegHierarchy();\n if (strictOrder != null) {\n hierarchy.strictOrder = strictOrder;\n }\n if (maxStackCnt != null) {\n hierarchy.maxStackCnt = maxStackCnt;\n }\n let hiddenEntries = hierarchy.addSegs(segInputs);\n let hiddenGroups = groupIntersectingEntries(hiddenEntries);\n let web = buildWeb(hierarchy);\n web = stretchWeb(web, 1); // all levelCoords/thickness will have 0.0-1.0\n let segRects = webToRects(web);\n return { segRects, hiddenGroups };\n}\nfunction buildWeb(hierarchy) {\n const { entriesByLevel } = hierarchy;\n const buildNode = cacheable((level, lateral) => level + ':' + lateral, (level, lateral) => {\n let siblingRange = findNextLevelSegs(hierarchy, level, lateral);\n let nextLevelRes = buildNodes(siblingRange, buildNode);\n let entry = entriesByLevel[level][lateral];\n return [\n Object.assign(Object.assign({}, entry), { nextLevelNodes: nextLevelRes[0] }),\n entry.thickness + nextLevelRes[1], // the pressure builds\n ];\n });\n return buildNodes(entriesByLevel.length\n ? { level: 0, lateralStart: 0, lateralEnd: entriesByLevel[0].length }\n : null, buildNode)[0];\n}\nfunction buildNodes(siblingRange, buildNode) {\n if (!siblingRange) {\n return [[], 0];\n }\n let { level, lateralStart, lateralEnd } = siblingRange;\n let lateral = lateralStart;\n let pairs = [];\n while (lateral < lateralEnd) {\n pairs.push(buildNode(level, lateral));\n lateral += 1;\n }\n pairs.sort(cmpDescPressures);\n return [\n pairs.map(extractNode),\n pairs[0][1], // first item's pressure\n ];\n}\nfunction cmpDescPressures(a, b) {\n return b[1] - a[1];\n}\nfunction extractNode(a) {\n return a[0];\n}\nfunction findNextLevelSegs(hierarchy, subjectLevel, subjectLateral) {\n let { levelCoords, entriesByLevel } = hierarchy;\n let subjectEntry = entriesByLevel[subjectLevel][subjectLateral];\n let afterSubject = levelCoords[subjectLevel] + subjectEntry.thickness;\n let levelCnt = levelCoords.length;\n let level = subjectLevel;\n // skip past levels that are too high up\n for (; level < levelCnt && levelCoords[level] < afterSubject; level += 1)\n ; // do nothing\n for (; level < levelCnt; level += 1) {\n let entries = entriesByLevel[level];\n let entry;\n let searchIndex = binarySearch(entries, subjectEntry.span.start, getEntrySpanEnd);\n let lateralStart = searchIndex[0] + searchIndex[1]; // if exact match (which doesn't collide), go to next one\n let lateralEnd = lateralStart;\n while ( // loop through entries that horizontally intersect\n (entry = entries[lateralEnd]) && // but not past the whole seg list\n entry.span.start < subjectEntry.span.end) {\n lateralEnd += 1;\n }\n if (lateralStart < lateralEnd) {\n return { level, lateralStart, lateralEnd };\n }\n }\n return null;\n}\nfunction stretchWeb(topLevelNodes, totalThickness) {\n const stretchNode = cacheable((node, startCoord, prevThickness) => buildEntryKey(node), (node, startCoord, prevThickness) => {\n let { nextLevelNodes, thickness } = node;\n let allThickness = thickness + prevThickness;\n let thicknessFraction = thickness / allThickness;\n let endCoord;\n let newChildren = [];\n if (!nextLevelNodes.length) {\n endCoord = totalThickness;\n }\n else {\n for (let childNode of nextLevelNodes) {\n if (endCoord === undefined) {\n let res = stretchNode(childNode, startCoord, allThickness);\n endCoord = res[0];\n newChildren.push(res[1]);\n }\n else {\n let res = stretchNode(childNode, endCoord, 0);\n newChildren.push(res[1]);\n }\n }\n }\n let newThickness = (endCoord - startCoord) * thicknessFraction;\n return [endCoord - newThickness, Object.assign(Object.assign({}, node), { thickness: newThickness, nextLevelNodes: newChildren })];\n });\n return topLevelNodes.map((node) => stretchNode(node, 0, 0)[1]);\n}\n// not sorted in any particular order\nfunction webToRects(topLevelNodes) {\n let rects = [];\n const processNode = cacheable((node, levelCoord, stackDepth) => buildEntryKey(node), (node, levelCoord, stackDepth) => {\n let rect = Object.assign(Object.assign({}, node), { levelCoord,\n stackDepth, stackForward: 0 });\n rects.push(rect);\n return (rect.stackForward = processNodes(node.nextLevelNodes, levelCoord + node.thickness, stackDepth + 1) + 1);\n });\n function processNodes(nodes, levelCoord, stackDepth) {\n let stackForward = 0;\n for (let node of nodes) {\n stackForward = Math.max(processNode(node, levelCoord, stackDepth), stackForward);\n }\n return stackForward;\n }\n processNodes(topLevelNodes, 0, 0);\n return rects; // TODO: sort rects by levelCoord to be consistent with toRects?\n}\n// TODO: move to general util\nfunction cacheable(keyFunc, workFunc) {\n const cache = {};\n return (...args) => {\n let key = keyFunc(...args);\n return (key in cache)\n ? cache[key]\n : (cache[key] = workFunc(...args));\n };\n}\n\nfunction computeSegVCoords(segs, colDate, slatCoords = null, eventMinHeight = 0) {\n let vcoords = [];\n if (slatCoords) {\n for (let i = 0; i < segs.length; i += 1) {\n let seg = segs[i];\n let spanStart = slatCoords.computeDateTop(seg.start, colDate);\n let spanEnd = Math.max(spanStart + (eventMinHeight || 0), // :(\n slatCoords.computeDateTop(seg.end, colDate));\n vcoords.push({\n start: Math.round(spanStart),\n end: Math.round(spanEnd), //\n });\n }\n }\n return vcoords;\n}\nfunction computeFgSegPlacements(segs, segVCoords, // might not have for every seg\neventOrderStrict, eventMaxStack) {\n let segInputs = [];\n let dumbSegs = []; // segs without coords\n for (let i = 0; i < segs.length; i += 1) {\n let vcoords = segVCoords[i];\n if (vcoords) {\n segInputs.push({\n index: i,\n thickness: 1,\n span: vcoords,\n });\n }\n else {\n dumbSegs.push(segs[i]);\n }\n }\n let { segRects, hiddenGroups } = buildPositioning(segInputs, eventOrderStrict, eventMaxStack);\n let segPlacements = [];\n for (let segRect of segRects) {\n segPlacements.push({\n seg: segs[segRect.index],\n rect: segRect,\n });\n }\n for (let dumbSeg of dumbSegs) {\n segPlacements.push({ seg: dumbSeg, rect: null });\n }\n return { segPlacements, hiddenGroups };\n}\n\nconst DEFAULT_TIME_FORMAT = createFormatter({\n hour: 'numeric',\n minute: '2-digit',\n meridiem: false,\n});\nclass TimeColEvent extends BaseComponent {\n render() {\n return (createElement(StandardEvent, Object.assign({}, this.props, { elClasses: [\n 'fc-timegrid-event',\n 'fc-v-event',\n this.props.isShort && 'fc-timegrid-event-short',\n ], defaultTimeFormat: DEFAULT_TIME_FORMAT })));\n }\n}\n\nclass TimeCol extends BaseComponent {\n constructor() {\n super(...arguments);\n this.sortEventSegs = memoize(sortEventSegs);\n }\n // TODO: memoize event-placement?\n render() {\n let { props, context } = this;\n let { options } = context;\n let isSelectMirror = options.selectMirror;\n let mirrorSegs = // yuck\n (props.eventDrag && props.eventDrag.segs) ||\n (props.eventResize && props.eventResize.segs) ||\n (isSelectMirror && props.dateSelectionSegs) ||\n [];\n let interactionAffectedInstances = // TODO: messy way to compute this\n (props.eventDrag && props.eventDrag.affectedInstances) ||\n (props.eventResize && props.eventResize.affectedInstances) ||\n {};\n let sortedFgSegs = this.sortEventSegs(props.fgEventSegs, options.eventOrder);\n return (createElement(DayCellContainer, { elTag: \"td\", elRef: props.elRef, elClasses: [\n 'fc-timegrid-col',\n ...(props.extraClassNames || []),\n ], elAttrs: Object.assign({ role: 'gridcell' }, props.extraDataAttrs), date: props.date, dateProfile: props.dateProfile, todayRange: props.todayRange, extraRenderProps: props.extraRenderProps }, (InnerContent) => (createElement(\"div\", { className: \"fc-timegrid-col-frame\" },\n createElement(\"div\", { className: \"fc-timegrid-col-bg\" },\n this.renderFillSegs(props.businessHourSegs, 'non-business'),\n this.renderFillSegs(props.bgEventSegs, 'bg-event'),\n this.renderFillSegs(props.dateSelectionSegs, 'highlight')),\n createElement(\"div\", { className: \"fc-timegrid-col-events\" }, this.renderFgSegs(sortedFgSegs, interactionAffectedInstances, false, false, false)),\n createElement(\"div\", { className: \"fc-timegrid-col-events\" }, this.renderFgSegs(mirrorSegs, {}, Boolean(props.eventDrag), Boolean(props.eventResize), Boolean(isSelectMirror), 'mirror')),\n createElement(\"div\", { className: \"fc-timegrid-now-indicator-container\" }, this.renderNowIndicator(props.nowIndicatorSegs)),\n hasCustomDayCellContent(options) && (createElement(InnerContent, { elTag: \"div\", elClasses: ['fc-timegrid-col-misc'] }))))));\n }\n renderFgSegs(sortedFgSegs, segIsInvisible, isDragging, isResizing, isDateSelecting, forcedKey) {\n let { props } = this;\n if (props.forPrint) {\n return renderPlainFgSegs(sortedFgSegs, props);\n }\n return this.renderPositionedFgSegs(sortedFgSegs, segIsInvisible, isDragging, isResizing, isDateSelecting, forcedKey);\n }\n renderPositionedFgSegs(segs, // if not mirror, needs to be sorted\n segIsInvisible, isDragging, isResizing, isDateSelecting, forcedKey) {\n let { eventMaxStack, eventShortHeight, eventOrderStrict, eventMinHeight } = this.context.options;\n let { date, slatCoords, eventSelection, todayRange, nowDate } = this.props;\n let isMirror = isDragging || isResizing || isDateSelecting;\n let segVCoords = computeSegVCoords(segs, date, slatCoords, eventMinHeight);\n let { segPlacements, hiddenGroups } = computeFgSegPlacements(segs, segVCoords, eventOrderStrict, eventMaxStack);\n return (createElement(Fragment, null,\n this.renderHiddenGroups(hiddenGroups, segs),\n segPlacements.map((segPlacement) => {\n let { seg, rect } = segPlacement;\n let instanceId = seg.eventRange.instance.instanceId;\n let isVisible = isMirror || Boolean(!segIsInvisible[instanceId] && rect);\n let vStyle = computeSegVStyle(rect && rect.span);\n let hStyle = (!isMirror && rect) ? this.computeSegHStyle(rect) : { left: 0, right: 0 };\n let isInset = Boolean(rect) && rect.stackForward > 0;\n let isShort = Boolean(rect) && (rect.span.end - rect.span.start) < eventShortHeight; // look at other places for this problem\n return (createElement(\"div\", { className: 'fc-timegrid-event-harness' +\n (isInset ? ' fc-timegrid-event-harness-inset' : ''), key: forcedKey || instanceId, style: Object.assign(Object.assign({ visibility: isVisible ? '' : 'hidden' }, vStyle), hStyle) },\n createElement(TimeColEvent, Object.assign({ seg: seg, isDragging: isDragging, isResizing: isResizing, isDateSelecting: isDateSelecting, isSelected: instanceId === eventSelection, isShort: isShort }, getSegMeta(seg, todayRange, nowDate)))));\n })));\n }\n // will already have eventMinHeight applied because segInputs already had it\n renderHiddenGroups(hiddenGroups, segs) {\n let { extraDateSpan, dateProfile, todayRange, nowDate, eventSelection, eventDrag, eventResize } = this.props;\n return (createElement(Fragment, null, hiddenGroups.map((hiddenGroup) => {\n let positionCss = computeSegVStyle(hiddenGroup.span);\n let hiddenSegs = compileSegsFromEntries(hiddenGroup.entries, segs);\n return (createElement(TimeColMoreLink, { key: buildIsoString(computeEarliestSegStart(hiddenSegs)), hiddenSegs: hiddenSegs, top: positionCss.top, bottom: positionCss.bottom, extraDateSpan: extraDateSpan, dateProfile: dateProfile, todayRange: todayRange, nowDate: nowDate, eventSelection: eventSelection, eventDrag: eventDrag, eventResize: eventResize }));\n })));\n }\n renderFillSegs(segs, fillType) {\n let { props, context } = this;\n let segVCoords = computeSegVCoords(segs, props.date, props.slatCoords, context.options.eventMinHeight); // don't assume all populated\n let children = segVCoords.map((vcoords, i) => {\n let seg = segs[i];\n return (createElement(\"div\", { key: buildEventRangeKey(seg.eventRange), className: \"fc-timegrid-bg-harness\", style: computeSegVStyle(vcoords) }, fillType === 'bg-event' ?\n createElement(BgEvent, Object.assign({ seg: seg }, getSegMeta(seg, props.todayRange, props.nowDate))) :\n renderFill(fillType)));\n });\n return createElement(Fragment, null, children);\n }\n renderNowIndicator(segs) {\n let { slatCoords, date } = this.props;\n if (!slatCoords) {\n return null;\n }\n return segs.map((seg, i) => (createElement(NowIndicatorContainer\n // key doesn't matter. will only ever be one\n , { \n // key doesn't matter. will only ever be one\n key: i, elClasses: ['fc-timegrid-now-indicator-line'], elStyle: {\n top: slatCoords.computeDateTop(seg.start, date),\n }, isAxis: false, date: date })));\n }\n computeSegHStyle(segHCoords) {\n let { isRtl, options } = this.context;\n let shouldOverlap = options.slotEventOverlap;\n let nearCoord = segHCoords.levelCoord; // the left side if LTR. the right side if RTL. floating-point\n let farCoord = segHCoords.levelCoord + segHCoords.thickness; // the right side if LTR. the left side if RTL. floating-point\n let left; // amount of space from left edge, a fraction of the total width\n let right; // amount of space from right edge, a fraction of the total width\n if (shouldOverlap) {\n // double the width, but don't go beyond the maximum forward coordinate (1.0)\n farCoord = Math.min(1, nearCoord + (farCoord - nearCoord) * 2);\n }\n if (isRtl) {\n left = 1 - farCoord;\n right = nearCoord;\n }\n else {\n left = nearCoord;\n right = 1 - farCoord;\n }\n let props = {\n zIndex: segHCoords.stackDepth + 1,\n left: left * 100 + '%',\n right: right * 100 + '%',\n };\n if (shouldOverlap && !segHCoords.stackForward) {\n // add padding to the edge so that forward stacked events don't cover the resizer's icon\n props[isRtl ? 'marginLeft' : 'marginRight'] = 10 * 2; // 10 is a guesstimate of the icon's width\n }\n return props;\n }\n}\nfunction renderPlainFgSegs(sortedFgSegs, { todayRange, nowDate, eventSelection, eventDrag, eventResize }) {\n let hiddenInstances = (eventDrag ? eventDrag.affectedInstances : null) ||\n (eventResize ? eventResize.affectedInstances : null) ||\n {};\n return (createElement(Fragment, null, sortedFgSegs.map((seg) => {\n let instanceId = seg.eventRange.instance.instanceId;\n return (createElement(\"div\", { key: instanceId, style: { visibility: hiddenInstances[instanceId] ? 'hidden' : '' } },\n createElement(TimeColEvent, Object.assign({ seg: seg, isDragging: false, isResizing: false, isDateSelecting: false, isSelected: instanceId === eventSelection, isShort: false }, getSegMeta(seg, todayRange, nowDate)))));\n })));\n}\nfunction computeSegVStyle(segVCoords) {\n if (!segVCoords) {\n return { top: '', bottom: '' };\n }\n return {\n top: segVCoords.start,\n bottom: -segVCoords.end,\n };\n}\nfunction compileSegsFromEntries(segEntries, allSegs) {\n return segEntries.map((segEntry) => allSegs[segEntry.index]);\n}\n\nclass TimeColsContent extends BaseComponent {\n constructor() {\n super(...arguments);\n this.splitFgEventSegs = memoize(splitSegsByCol);\n this.splitBgEventSegs = memoize(splitSegsByCol);\n this.splitBusinessHourSegs = memoize(splitSegsByCol);\n this.splitNowIndicatorSegs = memoize(splitSegsByCol);\n this.splitDateSelectionSegs = memoize(splitSegsByCol);\n this.splitEventDrag = memoize(splitInteractionByCol);\n this.splitEventResize = memoize(splitInteractionByCol);\n this.rootElRef = createRef();\n this.cellElRefs = new RefMap();\n }\n render() {\n let { props, context } = this;\n let nowIndicatorTop = context.options.nowIndicator &&\n props.slatCoords &&\n props.slatCoords.safeComputeTop(props.nowDate); // might return void\n let colCnt = props.cells.length;\n let fgEventSegsByRow = this.splitFgEventSegs(props.fgEventSegs, colCnt);\n let bgEventSegsByRow = this.splitBgEventSegs(props.bgEventSegs, colCnt);\n let businessHourSegsByRow = this.splitBusinessHourSegs(props.businessHourSegs, colCnt);\n let nowIndicatorSegsByRow = this.splitNowIndicatorSegs(props.nowIndicatorSegs, colCnt);\n let dateSelectionSegsByRow = this.splitDateSelectionSegs(props.dateSelectionSegs, colCnt);\n let eventDragByRow = this.splitEventDrag(props.eventDrag, colCnt);\n let eventResizeByRow = this.splitEventResize(props.eventResize, colCnt);\n return (createElement(\"div\", { className: \"fc-timegrid-cols\", ref: this.rootElRef },\n createElement(\"table\", { role: \"presentation\", style: {\n minWidth: props.tableMinWidth,\n width: props.clientWidth,\n } },\n props.tableColGroupNode,\n createElement(\"tbody\", { role: \"presentation\" },\n createElement(\"tr\", { role: \"row\" },\n props.axis && (createElement(\"td\", { \"aria-hidden\": true, className: \"fc-timegrid-col fc-timegrid-axis\" },\n createElement(\"div\", { className: \"fc-timegrid-col-frame\" },\n createElement(\"div\", { className: \"fc-timegrid-now-indicator-container\" }, typeof nowIndicatorTop === 'number' && (createElement(NowIndicatorContainer, { elClasses: ['fc-timegrid-now-indicator-arrow'], elStyle: { top: nowIndicatorTop }, isAxis: true, date: props.nowDate })))))),\n props.cells.map((cell, i) => (createElement(TimeCol, { key: cell.key, elRef: this.cellElRefs.createRef(cell.key), dateProfile: props.dateProfile, date: cell.date, nowDate: props.nowDate, todayRange: props.todayRange, extraRenderProps: cell.extraRenderProps, extraDataAttrs: cell.extraDataAttrs, extraClassNames: cell.extraClassNames, extraDateSpan: cell.extraDateSpan, fgEventSegs: fgEventSegsByRow[i], bgEventSegs: bgEventSegsByRow[i], businessHourSegs: businessHourSegsByRow[i], nowIndicatorSegs: nowIndicatorSegsByRow[i], dateSelectionSegs: dateSelectionSegsByRow[i], eventDrag: eventDragByRow[i], eventResize: eventResizeByRow[i], slatCoords: props.slatCoords, eventSelection: props.eventSelection, forPrint: props.forPrint }))))))));\n }\n componentDidMount() {\n this.updateCoords();\n }\n componentDidUpdate() {\n this.updateCoords();\n }\n updateCoords() {\n let { props } = this;\n if (props.onColCoords &&\n props.clientWidth !== null // means sizing has stabilized\n ) {\n props.onColCoords(new PositionCache(this.rootElRef.current, collectCellEls(this.cellElRefs.currentMap, props.cells), true, // horizontal\n false));\n }\n }\n}\nfunction collectCellEls(elMap, cells) {\n return cells.map((cell) => elMap[cell.key]);\n}\n\n/* A component that renders one or more columns of vertical time slots\n----------------------------------------------------------------------------------------------------------------------*/\nclass TimeCols extends DateComponent {\n constructor() {\n super(...arguments);\n this.processSlotOptions = memoize(processSlotOptions);\n this.state = {\n slatCoords: null,\n };\n this.handleRootEl = (el) => {\n if (el) {\n this.context.registerInteractiveComponent(this, {\n el,\n isHitComboAllowed: this.props.isHitComboAllowed,\n });\n }\n else {\n this.context.unregisterInteractiveComponent(this);\n }\n };\n this.handleScrollRequest = (request) => {\n let { onScrollTopRequest } = this.props;\n let { slatCoords } = this.state;\n if (onScrollTopRequest && slatCoords) {\n if (request.time) {\n let top = slatCoords.computeTimeTop(request.time);\n top = Math.ceil(top); // zoom can give weird floating-point values. rather scroll a little bit further\n if (top) {\n top += 1; // to overcome top border that slots beyond the first have. looks better\n }\n onScrollTopRequest(top);\n }\n return true;\n }\n return false;\n };\n this.handleColCoords = (colCoords) => {\n this.colCoords = colCoords;\n };\n this.handleSlatCoords = (slatCoords) => {\n this.setState({ slatCoords });\n if (this.props.onSlatCoords) {\n this.props.onSlatCoords(slatCoords);\n }\n };\n }\n render() {\n let { props, state } = this;\n return (createElement(\"div\", { className: \"fc-timegrid-body\", ref: this.handleRootEl, style: {\n // these props are important to give this wrapper correct dimensions for interactions\n // TODO: if we set it here, can we avoid giving to inner tables?\n width: props.clientWidth,\n minWidth: props.tableMinWidth,\n } },\n createElement(TimeColsSlats, { axis: props.axis, dateProfile: props.dateProfile, slatMetas: props.slatMetas, clientWidth: props.clientWidth, minHeight: props.expandRows ? props.clientHeight : '', tableMinWidth: props.tableMinWidth, tableColGroupNode: props.axis ? props.tableColGroupNode : null /* axis depends on the colgroup's shrinking */, onCoords: this.handleSlatCoords }),\n createElement(TimeColsContent, { cells: props.cells, axis: props.axis, dateProfile: props.dateProfile, businessHourSegs: props.businessHourSegs, bgEventSegs: props.bgEventSegs, fgEventSegs: props.fgEventSegs, dateSelectionSegs: props.dateSelectionSegs, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, todayRange: props.todayRange, nowDate: props.nowDate, nowIndicatorSegs: props.nowIndicatorSegs, clientWidth: props.clientWidth, tableMinWidth: props.tableMinWidth, tableColGroupNode: props.tableColGroupNode, slatCoords: state.slatCoords, onColCoords: this.handleColCoords, forPrint: props.forPrint })));\n }\n componentDidMount() {\n this.scrollResponder = this.context.createScrollResponder(this.handleScrollRequest);\n }\n componentDidUpdate(prevProps) {\n this.scrollResponder.update(prevProps.dateProfile !== this.props.dateProfile);\n }\n componentWillUnmount() {\n this.scrollResponder.detach();\n }\n queryHit(positionLeft, positionTop) {\n let { dateEnv, options } = this.context;\n let { colCoords } = this;\n let { dateProfile } = this.props;\n let { slatCoords } = this.state;\n let { snapDuration, snapsPerSlot } = this.processSlotOptions(this.props.slotDuration, options.snapDuration);\n let colIndex = colCoords.leftToIndex(positionLeft);\n let slatIndex = slatCoords.positions.topToIndex(positionTop);\n if (colIndex != null && slatIndex != null) {\n let cell = this.props.cells[colIndex];\n let slatTop = slatCoords.positions.tops[slatIndex];\n let slatHeight = slatCoords.positions.getHeight(slatIndex);\n let partial = (positionTop - slatTop) / slatHeight; // floating point number between 0 and 1\n let localSnapIndex = Math.floor(partial * snapsPerSlot); // the snap # relative to start of slat\n let snapIndex = slatIndex * snapsPerSlot + localSnapIndex;\n let dayDate = this.props.cells[colIndex].date;\n let time = addDurations(dateProfile.slotMinTime, multiplyDuration(snapDuration, snapIndex));\n let start = dateEnv.add(dayDate, time);\n let end = dateEnv.add(start, snapDuration);\n return {\n dateProfile,\n dateSpan: Object.assign({ range: { start, end }, allDay: false }, cell.extraDateSpan),\n dayEl: colCoords.els[colIndex],\n rect: {\n left: colCoords.lefts[colIndex],\n right: colCoords.rights[colIndex],\n top: slatTop,\n bottom: slatTop + slatHeight,\n },\n layer: 0,\n };\n }\n return null;\n }\n}\nfunction processSlotOptions(slotDuration, snapDurationOverride) {\n let snapDuration = snapDurationOverride || slotDuration;\n let snapsPerSlot = wholeDivideDurations(slotDuration, snapDuration);\n if (snapsPerSlot === null) {\n snapDuration = slotDuration;\n snapsPerSlot = 1;\n // TODO: say warning?\n }\n return { snapDuration, snapsPerSlot };\n}\n\nclass DayTimeColsSlicer extends Slicer {\n sliceRange(range, dayRanges) {\n let segs = [];\n for (let col = 0; col < dayRanges.length; col += 1) {\n let segRange = intersectRanges(range, dayRanges[col]);\n if (segRange) {\n segs.push({\n start: segRange.start,\n end: segRange.end,\n isStart: segRange.start.valueOf() === range.start.valueOf(),\n isEnd: segRange.end.valueOf() === range.end.valueOf(),\n col,\n });\n }\n }\n return segs;\n }\n}\n\nclass DayTimeCols extends DateComponent {\n constructor() {\n super(...arguments);\n this.buildDayRanges = memoize(buildDayRanges);\n this.slicer = new DayTimeColsSlicer();\n this.timeColsRef = createRef();\n }\n render() {\n let { props, context } = this;\n let { dateProfile, dayTableModel } = props;\n let { nowIndicator, nextDayThreshold } = context.options;\n let dayRanges = this.buildDayRanges(dayTableModel, dateProfile, context.dateEnv);\n // give it the first row of cells\n // TODO: would move this further down hierarchy, but sliceNowDate needs it\n return (createElement(NowTimer, { unit: nowIndicator ? 'minute' : 'day' }, (nowDate, todayRange) => (createElement(TimeCols, Object.assign({ ref: this.timeColsRef }, this.slicer.sliceProps(props, dateProfile, null, context, dayRanges), { forPrint: props.forPrint, axis: props.axis, dateProfile: dateProfile, slatMetas: props.slatMetas, slotDuration: props.slotDuration, cells: dayTableModel.cells[0], tableColGroupNode: props.tableColGroupNode, tableMinWidth: props.tableMinWidth, clientWidth: props.clientWidth, clientHeight: props.clientHeight, expandRows: props.expandRows, nowDate: nowDate, nowIndicatorSegs: nowIndicator && this.slicer.sliceNowDate(nowDate, dateProfile, nextDayThreshold, context, dayRanges), todayRange: todayRange, onScrollTopRequest: props.onScrollTopRequest, onSlatCoords: props.onSlatCoords })))));\n }\n}\nfunction buildDayRanges(dayTableModel, dateProfile, dateEnv) {\n let ranges = [];\n for (let date of dayTableModel.headerDates) {\n ranges.push({\n start: dateEnv.add(date, dateProfile.slotMinTime),\n end: dateEnv.add(date, dateProfile.slotMaxTime),\n });\n }\n return ranges;\n}\n\n// potential nice values for the slot-duration and interval-duration\n// from largest to smallest\nconst STOCK_SUB_DURATIONS = [\n { hours: 1 },\n { minutes: 30 },\n { minutes: 15 },\n { seconds: 30 },\n { seconds: 15 },\n];\nfunction buildSlatMetas(slotMinTime, slotMaxTime, explicitLabelInterval, slotDuration, dateEnv) {\n let dayStart = new Date(0);\n let slatTime = slotMinTime;\n let slatIterator = createDuration(0);\n let labelInterval = explicitLabelInterval || computeLabelInterval(slotDuration);\n let metas = [];\n while (asRoughMs(slatTime) < asRoughMs(slotMaxTime)) {\n let date = dateEnv.add(dayStart, slatTime);\n let isLabeled = wholeDivideDurations(slatIterator, labelInterval) !== null;\n metas.push({\n date,\n time: slatTime,\n key: date.toISOString(),\n isoTimeStr: formatIsoTimeString(date),\n isLabeled,\n });\n slatTime = addDurations(slatTime, slotDuration);\n slatIterator = addDurations(slatIterator, slotDuration);\n }\n return metas;\n}\n// Computes an automatic value for slotLabelInterval\nfunction computeLabelInterval(slotDuration) {\n let i;\n let labelInterval;\n let slotsPerLabel;\n // find the smallest stock label interval that results in more than one slots-per-label\n for (i = STOCK_SUB_DURATIONS.length - 1; i >= 0; i -= 1) {\n labelInterval = createDuration(STOCK_SUB_DURATIONS[i]);\n slotsPerLabel = wholeDivideDurations(labelInterval, slotDuration);\n if (slotsPerLabel !== null && slotsPerLabel > 1) {\n return labelInterval;\n }\n }\n return slotDuration; // fall back\n}\n\nclass DayTimeColsView extends TimeColsView {\n constructor() {\n super(...arguments);\n this.buildTimeColsModel = memoize(buildTimeColsModel);\n this.buildSlatMetas = memoize(buildSlatMetas);\n }\n render() {\n let { options, dateEnv, dateProfileGenerator } = this.context;\n let { props } = this;\n let { dateProfile } = props;\n let dayTableModel = this.buildTimeColsModel(dateProfile, dateProfileGenerator);\n let splitProps = this.allDaySplitter.splitProps(props);\n let slatMetas = this.buildSlatMetas(dateProfile.slotMinTime, dateProfile.slotMaxTime, options.slotLabelInterval, options.slotDuration, dateEnv);\n let { dayMinWidth } = options;\n let hasAttachedAxis = !dayMinWidth;\n let hasDetachedAxis = dayMinWidth;\n let headerContent = options.dayHeaders && (createElement(DayHeader, { dates: dayTableModel.headerDates, dateProfile: dateProfile, datesRepDistinctDays: true, renderIntro: hasAttachedAxis ? this.renderHeadAxis : null }));\n let allDayContent = (options.allDaySlot !== false) && ((contentArg) => (createElement(DayTable, Object.assign({}, splitProps.allDay, { dateProfile: dateProfile, dayTableModel: dayTableModel, nextDayThreshold: options.nextDayThreshold, tableMinWidth: contentArg.tableMinWidth, colGroupNode: contentArg.tableColGroupNode, renderRowIntro: hasAttachedAxis ? this.renderTableRowAxis : null, showWeekNumbers: false, expandRows: false, headerAlignElRef: this.headerElRef, clientWidth: contentArg.clientWidth, clientHeight: contentArg.clientHeight, forPrint: props.forPrint }, this.getAllDayMaxEventProps()))));\n let timeGridContent = (contentArg) => (createElement(DayTimeCols, Object.assign({}, splitProps.timed, { dayTableModel: dayTableModel, dateProfile: dateProfile, axis: hasAttachedAxis, slotDuration: options.slotDuration, slatMetas: slatMetas, forPrint: props.forPrint, tableColGroupNode: contentArg.tableColGroupNode, tableMinWidth: contentArg.tableMinWidth, clientWidth: contentArg.clientWidth, clientHeight: contentArg.clientHeight, onSlatCoords: this.handleSlatCoords, expandRows: contentArg.expandRows, onScrollTopRequest: this.handleScrollTopRequest })));\n return hasDetachedAxis\n ? this.renderHScrollLayout(headerContent, allDayContent, timeGridContent, dayTableModel.colCnt, dayMinWidth, slatMetas, this.state.slatCoords)\n : this.renderSimpleLayout(headerContent, allDayContent, timeGridContent);\n }\n}\nfunction buildTimeColsModel(dateProfile, dateProfileGenerator) {\n let daySeries = new DaySeriesModel(dateProfile.renderRange, dateProfileGenerator);\n return new DayTableModel(daySeries, false);\n}\n\nvar css_248z = \".fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:\\\"\\\\00a0\\\"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:\\\"\\\\00a0-\\\\00a0\\\"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}\";\ninjectStyles(css_248z);\n\nexport { DayTimeCols, DayTimeColsSlicer, DayTimeColsView, TimeCols, TimeColsSlatsCoords, TimeColsView, buildDayRanges, buildSlatMetas, buildTimeColsModel };\n","import{Component as n,createElement as t,options as e,toChildArray as r,Fragment as u,render as o,hydrate as i,createContext as l,createRef as c,cloneElement as f}from\"preact\";export{Component,Fragment,createContext,createElement,createRef}from\"preact\";import{useState as a,useId as s,useReducer as h,useEffect as v,useLayoutEffect as d,useRef as p,useImperativeHandle as m,useMemo as y,useCallback as _,useContext as b,useDebugValue as S}from\"preact/hooks\";export*from\"preact/hooks\";function g(n,t){for(var e in t)n[e]=t[e];return n}function C(n,t){for(var e in n)if(\"__source\"!==e&&!(e in t))return!0;for(var r in t)if(\"__source\"!==r&&n[r]!==t[r])return!0;return!1}function E(n,t){return n===t&&(0!==n||1/n==1/t)||n!=n&&t!=t}function w(n){this.props=n}function R(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return!r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:C(this.props,n)}function u(e){return this.shouldComponentUpdate=r,t(n,e)}return u.displayName=\"Memo(\"+(n.displayName||n.name)+\")\",u.prototype.isReactComponent=!0,u.__f=!0,u}(w.prototype=new n).isPureReactComponent=!0,w.prototype.shouldComponentUpdate=function(n,t){return C(this.props,n)||C(this.state,t)};var x=e.__b;e.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),x&&x(n)};var N=\"undefined\"!=typeof Symbol&&Symbol.for&&Symbol.for(\"react.forward_ref\")||3911;function k(n){function t(t){var e=g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=N,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName=\"ForwardRef(\"+(n.displayName||n.name)+\")\",t}var A=function(n,t){return null==n?null:r(r(n).map(t))},O={map:A,forEach:A,count:function(n){return n?r(n).length:0},only:function(n){var t=r(n);if(1!==t.length)throw\"Children.only\";return t[0]},toArray:r},T=e.__e;e.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);T(n,t,e,r)};var I=e.unmount;function L(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){\"function\"==typeof n.__c&&n.__c()}),n.__c.__H=null),null!=(n=g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return L(n,t,e)})),n}function U(n,t,e){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return U(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=e)),n}function D(){this.__u=0,this.t=null,this.__b=null}function F(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function M(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n},function(n){u=n}),u)throw u;if(!r)throw e;return t(r,o)}return o.displayName=\"Lazy\",o.__f=!0,o}function V(){this.u=null,this.o=null}e.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),I&&I(n)},(D.prototype=new n).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=F(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l())};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=U(n,n.__c.__P,n.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i)},D.prototype.componentWillUnmount=function(){this.t=[]},D.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement(\"div\"),o=this.__v.__k[0].__c;this.__v.__k[0]=L(this.__b,r,o.__O=o.__P)}this.__b=null}var i=e.__a&&t(u,null,n.fallback);return i&&(i.__h=null),[t(u,null,e.__a?null:n.children),i]};var W=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&(\"t\"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2]}};function P(n){return this.getChildContext=function(){return n.context},n.children}function $(n){var e=this,r=n.i;e.componentWillUnmount=function(){o(null,e.l),e.l=null,e.i=null},e.i&&e.i!==r&&e.componentWillUnmount(),n.__v?(e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,t){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),o(t(P,{context:e.context},n.__v),e.l)):e.l&&e.componentWillUnmount()}function j(n,e){var r=t($,{__v:n,i:e});return r.containerInfo=e,r}(V.prototype=new n).__a=function(n){var t=this,e=F(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),W(t,n,r)):u()};e?e(o):o()}},V.prototype.render=function(n){this.u=null,this.o=new Map;var t=r(n.children);n.revealOrder&&\"b\"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},V.prototype.componentDidUpdate=V.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){W(n,e,t)})};var z=\"undefined\"!=typeof Symbol&&Symbol.for&&Symbol.for(\"react.element\")||60103,B=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,H=\"undefined\"!=typeof document,Z=function(n){return(\"undefined\"!=typeof Symbol&&\"symbol\"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};function Y(n,t,e){return null==t.__k&&(t.textContent=\"\"),o(n,t),\"function\"==typeof e&&e(),n?n.__c:null}function q(n,t,e){return i(n,t),\"function\"==typeof e&&e(),n?n.__c:null}n.prototype.isReactComponent={},[\"componentWillMount\",\"componentWillReceiveProps\",\"componentWillUpdate\"].forEach(function(t){Object.defineProperty(n.prototype,t,{configurable:!0,get:function(){return this[\"UNSAFE_\"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var G=e.event;function J(){}function K(){return this.cancelBubble}function Q(){return this.defaultPrevented}e.event=function(n){return G&&(n=G(n)),n.persist=J,n.isPropagationStopped=K,n.isDefaultPrevented=Q,n.nativeEvent=n};var X,nn={configurable:!0,get:function(){return this.class}},tn=e.vnode;e.vnode=function(n){var t=n.type,e=n.props,u=e;if(\"string\"==typeof t){var o=-1===t.indexOf(\"-\");for(var i in u={},e){var l=e[i];H&&\"children\"===i&&\"noscript\"===t||\"value\"===i&&\"defaultValue\"in e&&null==l||(\"defaultValue\"===i&&\"value\"in e&&null==e.value?i=\"value\":\"download\"===i&&!0===l?l=\"\":/ondoubleclick/i.test(i)?i=\"ondblclick\":/^onchange(textarea|input)/i.test(i+t)&&!Z(e.type)?i=\"oninput\":/^onfocus$/i.test(i)?i=\"onfocusin\":/^onblur$/i.test(i)?i=\"onfocusout\":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&B.test(i)?i=i.replace(/[A-Z0-9]/g,\"-$&\").toLowerCase():null===l&&(l=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),u[i]&&(i=\"oninputCapture\")),u[i]=l)}\"select\"==t&&u.multiple&&Array.isArray(u.value)&&(u.value=r(e.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),\"select\"==t&&null!=u.defaultValue&&(u.value=r(e.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value})),n.props=u,e.class!=e.className&&(nn.enumerable=\"className\"in e,null!=e.className&&(u.class=e.className),Object.defineProperty(u,\"className\",nn))}n.$$typeof=z,tn&&tn(n)};var en=e.__r;e.__r=function(n){en&&en(n),X=n.__c};var rn={ReactCurrentDispatcher:{current:{readContext:function(n){return X.__n[n.__c].props.value}}}},un=\"17.0.2\";function on(n){return t.bind(null,n)}function ln(n){return!!n&&n.$$typeof===z}function cn(n){return ln(n)?f.apply(null,arguments):n}function fn(n){return!!n.__k&&(o(null,n),!0)}function an(n){return n&&(n.base||1===n.nodeType&&n)||null}var sn=function(n,t){return n(t)},hn=function(n,t){return n(t)},vn=u;function dn(n){n()}function pn(n){return n}function mn(){return[!1,dn]}var yn=d;function _n(n,t){var e=t(),r=a({h:{__:e,v:t}}),u=r[0].h,o=r[1];return d(function(){u.__=e,u.v=t,E(u.__,t())||o({h:u})},[n,e,t]),v(function(){return E(u.__,u.v())||o({h:u}),n(function(){E(u.__,u.v())||o({h:u})})},[n]),e}var bn={useState:a,useId:s,useReducer:h,useEffect:v,useLayoutEffect:d,useInsertionEffect:yn,useTransition:mn,useDeferredValue:pn,useSyncExternalStore:_n,startTransition:dn,useRef:p,useImperativeHandle:m,useMemo:y,useCallback:_,useContext:b,useDebugValue:S,version:\"17.0.2\",Children:O,render:Y,hydrate:q,unmountComponentAtNode:fn,createPortal:j,createElement:t,createContext:l,createFactory:on,cloneElement:cn,createRef:c,Fragment:u,isValidElement:ln,findDOMNode:an,Component:n,PureComponent:w,memo:R,forwardRef:k,flushSync:hn,unstable_batchedUpdates:sn,StrictMode:vn,Suspense:D,SuspenseList:V,lazy:M,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:rn};export{O as Children,w as PureComponent,vn as StrictMode,D as Suspense,V as SuspenseList,rn as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,cn as cloneElement,on as createFactory,j as createPortal,bn as default,an as findDOMNode,hn as flushSync,k as forwardRef,q as hydrate,ln as isValidElement,M as lazy,R as memo,Y as render,dn as startTransition,fn as unmountComponentAtNode,sn as unstable_batchedUpdates,pn as useDeferredValue,yn as useInsertionEffect,_n as useSyncExternalStore,mn as useTransition,un as version};\n//# sourceMappingURL=compat.module.js.map\n","var n,l,u,i,t,r,o,f,e,c={},s=[],a=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(n,l){for(var u in l)n[u]=l[u];return n}function v(n){var l=n.parentNode;l&&l.removeChild(n)}function y(l,u,i){var t,r,o,f={};for(o in u)\"key\"==o?t=u[o]:\"ref\"==o?r=u[o]:f[o]=u[o];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),\"function\"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps)void 0===f[o]&&(f[o]=l.defaultProps[o]);return p(l,f,t,r,null)}function p(n,i,t,r,o){var f={type:n,props:i,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++u:o};return null==o&&null!=l.vnode&&l.vnode(f),f}function d(){return{current:null}}function _(n){return n.children}function k(n,l,u,i,t){var r;for(r in u)\"children\"===r||\"key\"===r||r in l||g(n,r,null,u[r],i);for(r in l)t&&\"function\"!=typeof l[r]||\"children\"===r||\"key\"===r||\"value\"===r||\"checked\"===r||u[r]===l[r]||g(n,r,l[r],u[r],i)}function b(n,l,u){\"-\"===l[0]?n.setProperty(l,null==u?\"\":u):n[l]=null==u?\"\":\"number\"!=typeof u||a.test(l)?u:u+\"px\"}function g(n,l,u,i,t){var r;n:if(\"style\"===l)if(\"string\"==typeof u)n.style.cssText=u;else{if(\"string\"==typeof i&&(n.style.cssText=i=\"\"),i)for(l in i)u&&l in u||b(n.style,l,\"\");if(u)for(l in u)i&&u[l]===i[l]||b(n.style,l,u[l])}else if(\"o\"===l[0]&&\"n\"===l[1])r=l!==(l=l.replace(/Capture$/,\"\")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?i||n.addEventListener(l,r?w:m,r):n.removeEventListener(l,r?w:m,r);else if(\"dangerouslySetInnerHTML\"!==l){if(t)l=l.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(\"width\"!==l&&\"height\"!==l&&\"href\"!==l&&\"list\"!==l&&\"form\"!==l&&\"tabIndex\"!==l&&\"download\"!==l&&l in n)try{n[l]=null==u?\"\":u;break n}catch(n){}\"function\"==typeof u||(null==u||!1===u&&-1==l.indexOf(\"-\")?n.removeAttribute(l):n.setAttribute(l,u))}}function m(n){t=!0;try{return this.l[n.type+!1](l.event?l.event(n):n)}finally{t=!1}}function w(n){t=!0;try{return this.l[n.type+!0](l.event?l.event(n):n)}finally{t=!1}}function x(n,l){this.props=n,this.context=l}function A(n,l){if(null==l)return n.__?A(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return\"function\"==typeof n.type?A(n):null}function P(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return P(n)}}function C(n){t?setTimeout(n):f(n)}function T(n){(!n.__d&&(n.__d=!0)&&r.push(n)&&!$.__r++||o!==l.debounceRendering)&&((o=l.debounceRendering)||C)($)}function $(){var n,l,u,i,t,o,f,e;for(r.sort(function(n,l){return n.__v.__b-l.__v.__b});n=r.shift();)n.__d&&(l=r.length,i=void 0,t=void 0,f=(o=(u=n).__v).__e,(e=u.__P)&&(i=[],(t=h({},o)).__v=o.__v+1,M(e,o,t,u.__n,void 0!==e.ownerSVGElement,null!=o.__h?[f]:null,i,null==f?A(o):f,o.__h),N(i,o),o.__e!=f&&P(o)),r.length>l&&r.sort(function(n,l){return n.__v.__b-l.__v.__b}));$.__r=0}function H(n,l,u,i,t,r,o,f,e,a){var h,v,y,d,k,b,g,m=i&&i.__k||s,w=m.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(d=u.__k[h]=null==(d=l[h])||\"boolean\"==typeof d?null:\"string\"==typeof d||\"number\"==typeof d||\"bigint\"==typeof d?p(null,d,null,null,d):Array.isArray(d)?p(_,{children:d},null,null,null):d.__b>0?p(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)){if(d.__=u,d.__b=u.__b+1,null===(y=m[h])||y&&d.key==y.key&&d.type===y.type)m[h]=void 0;else for(v=0;v<w;v++){if((y=m[v])&&d.key==y.key&&d.type===y.type){m[v]=void 0;break}y=null}M(n,d,y=y||c,t,r,o,f,e,a),k=d.__e,(v=d.ref)&&y.ref!=v&&(g||(g=[]),y.ref&&g.push(y.ref,null,d),g.push(v,d.__c||k,d)),null!=k?(null==b&&(b=k),\"function\"==typeof d.type&&d.__k===y.__k?d.__d=e=I(d,e,n):e=z(n,d,y,m,k,e),\"function\"==typeof u.type&&(u.__d=e)):e&&y.__e==e&&e.parentNode!=n&&(e=A(y))}for(u.__e=b,h=w;h--;)null!=m[h]&&(\"function\"==typeof u.type&&null!=m[h].__e&&m[h].__e==u.__d&&(u.__d=L(i).nextSibling),q(m[h],m[h]));if(g)for(h=0;h<g.length;h++)S(g[h],g[++h],g[++h])}function I(n,l,u){for(var i,t=n.__k,r=0;t&&r<t.length;r++)(i=t[r])&&(i.__=n,l=\"function\"==typeof i.type?I(i,l,u):z(u,i,i,t,i.__e,l));return l}function j(n,l){return l=l||[],null==n||\"boolean\"==typeof n||(Array.isArray(n)?n.some(function(n){j(n,l)}):l.push(n)),l}function z(n,l,u,i,t,r){var o,f,e;if(void 0!==l.__d)o=l.__d,l.__d=void 0;else if(null==u||t!=r||null==t.parentNode)n:if(null==r||r.parentNode!==n)n.appendChild(t),o=null;else{for(f=r,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,r),o=r}return void 0!==o?o:t.nextSibling}function L(n){var l,u,i;if(null==n.type||\"string\"==typeof n.type)return n.__e;if(n.__k)for(l=n.__k.length-1;l>=0;l--)if((u=n.__k[l])&&(i=L(u)))return i;return null}function M(n,u,i,t,r,o,f,e,c){var s,a,v,y,p,d,k,b,g,m,w,A,P,C,T,$=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,o=[e]),(s=l.__b)&&s(u);try{n:if(\"function\"==typeof $){if(b=u.props,g=(s=$.contextType)&&t[s.__c],m=s?g?g.props.value:s.__:t,i.__c?k=(a=u.__c=i.__c).__=a.__E:(\"prototype\"in $&&$.prototype.render?u.__c=a=new $(b,m):(u.__c=a=new x(b,m),a.constructor=$,a.render=B),g&&g.sub(a),a.props=b,a.state||(a.state={}),a.context=m,a.__n=t,v=a.__d=!0,a.__h=[],a._sb=[]),null==a.__s&&(a.__s=a.state),null!=$.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=h({},a.__s)),h(a.__s,$.getDerivedStateFromProps(b,a.__s))),y=a.props,p=a.state,a.__v=u,v)null==$.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==$.getDerivedStateFromProps&&b!==y&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(b,m),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(b,a.__s,m)||u.__v===i.__v){for(u.__v!==i.__v&&(a.props=b,a.state=a.__s,a.__d=!1),u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u)}),w=0;w<a._sb.length;w++)a.__h.push(a._sb[w]);a._sb=[],a.__h.length&&f.push(a);break n}null!=a.componentWillUpdate&&a.componentWillUpdate(b,a.__s,m),null!=a.componentDidUpdate&&a.__h.push(function(){a.componentDidUpdate(y,p,d)})}if(a.context=m,a.props=b,a.__P=n,A=l.__r,P=0,\"prototype\"in $&&$.prototype.render){for(a.state=a.__s,a.__d=!1,A&&A(u),s=a.render(a.props,a.state,a.context),C=0;C<a._sb.length;C++)a.__h.push(a._sb[C]);a._sb=[]}else do{a.__d=!1,A&&A(u),s=a.render(a.props,a.state,a.context),a.state=a.__s}while(a.__d&&++P<25);a.state=a.__s,null!=a.getChildContext&&(t=h(h({},t),a.getChildContext())),v||null==a.getSnapshotBeforeUpdate||(d=a.getSnapshotBeforeUpdate(y,p)),T=null!=s&&s.type===_&&null==s.key?s.props.children:s,H(n,Array.isArray(T)?T:[T],u,i,t,r,o,f,e,c),a.base=u.__e,u.__h=null,a.__h.length&&f.push(a),k&&(a.__E=a.__=null),a.__e=!1}else null==o&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=O(i.__e,u,i,t,r,o,f,c);(s=l.diffed)&&s(u)}catch(n){u.__v=null,(c||null!=o)&&(u.__e=e,u.__h=!!c,o[o.indexOf(e)]=null),l.__e(n,u,i)}}function N(n,u){l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function O(l,u,i,t,r,o,f,e){var s,a,h,y=i.props,p=u.props,d=u.type,_=0;if(\"svg\"===d&&(r=!0),null!=o)for(;_<o.length;_++)if((s=o[_])&&\"setAttribute\"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,o[_]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=r?document.createElementNS(\"http://www.w3.org/2000/svg\",d):document.createElement(d,p.is&&p),o=null,e=!1}if(null===d)y===p||e&&l.data===p||(l.data=p);else{if(o=o&&n.call(l.childNodes),a=(y=i.props||c).dangerouslySetInnerHTML,h=p.dangerouslySetInnerHTML,!e){if(null!=o)for(y={},_=0;_<l.attributes.length;_++)y[l.attributes[_].name]=l.attributes[_].value;(h||a)&&(h&&(a&&h.__html==a.__html||h.__html===l.innerHTML)||(l.innerHTML=h&&h.__html||\"\"))}if(k(l,p,y,r,e),h)u.__k=[];else if(_=u.props.children,H(l,Array.isArray(_)?_:[_],u,i,t,r&&\"foreignObject\"!==d,o,f,o?o[0]:i.__k&&A(i,0),e),null!=o)for(_=o.length;_--;)null!=o[_]&&v(o[_]);e||(\"value\"in p&&void 0!==(_=p.value)&&(_!==l.value||\"progress\"===d&&!_||\"option\"===d&&_!==y.value)&&g(l,\"value\",_,y.value,!1),\"checked\"in p&&void 0!==(_=p.checked)&&_!==l.checked&&g(l,\"checked\",_,y.checked,!1))}return l}function S(n,u,i){try{\"function\"==typeof n?n(u):n.current=u}catch(n){l.__e(n,i)}}function q(n,u,i){var t,r;if(l.unmount&&l.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||S(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount()}catch(n){l.__e(n,u)}t.base=t.__P=null,n.__c=void 0}if(t=n.__k)for(r=0;r<t.length;r++)t[r]&&q(t[r],u,i||\"function\"!=typeof n.type);i||null==n.__e||v(n.__e),n.__=n.__e=n.__d=void 0}function B(n,l,u){return this.constructor(n,u)}function D(u,i,t){var r,o,f;l.__&&l.__(u,i),o=(r=\"function\"==typeof t)?null:t&&t.__k||i.__k,f=[],M(i,u=(!r&&t||i).__k=y(_,null,[u]),o||c,c,void 0!==i.ownerSVGElement,!r&&t?[t]:o?null:i.firstChild?n.call(i.childNodes):null,f,!r&&t?t:o?o.__e:i.firstChild,r),N(f,u)}function E(n,l){D(n,l,E)}function F(l,u,i){var t,r,o,f=h({},l.props);for(o in u)\"key\"==o?t=u[o]:\"ref\"==o?r=u[o]:f[o]=u[o];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),p(l.type,f,t||l.key,r||l.ref,null)}function G(n,l){var u={__c:l=\"__cC\"+e++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,T(n)})},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=s.slice,l={__e:function(n,l,u,i){for(var t,r,o;l=l.__;)if((t=l.__c)&&!t.__)try{if((r=t.constructor)&&null!=r.getDerivedStateFromError&&(t.setState(r.getDerivedStateFromError(n)),o=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),o=t.__d),o)return t.__E=t}catch(l){n=l}throw n}},u=0,i=function(n){return null!=n&&void 0===n.constructor},t=!1,x.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),\"function\"==typeof n&&(n=n(h({},u),this.props)),n&&h(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),T(this))},x.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),T(this))},x.prototype.render=_,r=[],f=\"function\"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,$.__r=0,e=0;export{x as Component,_ as Fragment,F as cloneElement,G as createContext,y as createElement,d as createRef,y as h,E as hydrate,i as isValidElement,l as options,D as render,j as toChildArray};\n//# sourceMappingURL=preact.module.js.map\n","import{options as n}from\"preact\";var t,r,u,i,o=0,f=[],c=[],e=n.__b,a=n.__r,v=n.diffed,l=n.__c,m=n.unmount;function d(t,u){n.__h&&n.__h(r,t,o||u),o=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function p(n){return o=1,y(B,n)}function y(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=r,!r.u)){r.u=!0;var f=r.shouldComponentUpdate;r.shouldComponentUpdate=function(n,t,r){if(!o.__c.__H)return!0;var u=o.__c.__H.__.filter(function(n){return n.__c});if(u.every(function(n){return!n.__N}))return!f||f.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}}),!(!i&&o.__c.props===n)&&(!f||f.call(this,n,t,r))}}return o.__N||o.__}function h(u,i){var o=d(t++,3);!n.__s&&z(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o))}function s(u,i){var o=d(t++,4);!n.__s&&z(o.__H,i)&&(o.__=u,o.i=i,r.__h.push(o))}function _(n){return o=5,F(function(){return{current:n}},[])}function A(n,t,r){o=6,s(function(){return\"function\"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n))}function F(n,r){var u=d(t++,7);return z(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T(n,t){return o=8,F(function(){return n},t)}function q(n){var u=r.context[n.__c],i=d(t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function x(t,r){n.useDebugValue&&n.useDebugValue(r?r(t):t)}function P(n){var u=d(t++,10),i=p();return u.__=n,r.componentDidCatch||(r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n)}),[i[0],function(){i[1](void 0)}]}function V(){var n=d(t++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__=\"P\"+i[0]+\"-\"+i[1]++}return n.__}function b(){for(var t;t=f.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k),t.__H.__h.forEach(w),t.__H.__h=[]}catch(r){t.__H.__h=[],n.__e(r,t.__v)}}n.__b=function(n){r=null,e&&e(n)},n.__r=function(n){a&&a(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0})):(i.__h.forEach(k),i.__h.forEach(w),i.__h=[])),u=r},n.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f.push(o)&&i===n.requestAnimationFrame||((i=n.requestAnimationFrame)||j)(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c})),u=r=null},n.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k),t.__h=t.__h.filter(function(n){return!n.__||w(n)})}catch(u){r.some(function(n){n.__h&&(n.__h=[])}),r=[],n.__e(u,t.__v)}}),l&&l(t,r)},n.unmount=function(t){m&&m(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k(n)}catch(n){r=n}}),u.__H=void 0,r&&n.__e(r,u.__v))};var g=\"function\"==typeof requestAnimationFrame;function j(n){var t,r=function(){clearTimeout(u),g&&cancelAnimationFrame(t),setTimeout(n)},u=setTimeout(r,100);g&&(t=requestAnimationFrame(r))}function k(n){var t=r,u=n.__c;\"function\"==typeof u&&(n.__c=void 0,u()),r=t}function w(n){var t=r;n.__c=n.__(),r=t}function z(n,t){return!n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B(n,t){return\"function\"==typeof t?t(n):t}export{T as useCallback,q as useContext,x as useDebugValue,h as useEffect,P as useErrorBoundary,V as useId,A as useImperativeHandle,s as useLayoutEffect,F as useMemo,y as useReducer,_ as useRef,p as useState};\n//# sourceMappingURL=hooks.module.js.map\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Snipe-IT calendar init.\n *\n * Thin wrapper around FullCalendar v6 that per-entity calendar pages\n * call via a single global (window.snipeitCalendar.init). The reason\n * for the wrapper is that we expect several calendar views over time\n * (maintenances is the first, but expected asset checkins, upcoming\n * audits, user end_dates and similar are already on the list) and\n * having each blade page duplicate the FullCalendar wiring would\n * create N places to keep in sync when we upgrade or change defaults.\n *\n * Usage from a blade page:\n *\n * <div id=\"my-calendar\"></div>\n * <script>\n * window.snipeitCalendar.init('my-calendar', {\n * events: '/api/v1/whatever/events', // JSON feed URL\n * initialView: 'dayGridMonth', // optional, default\n * locale: 'en', // optional\n * });\n * </script>\n *\n * The events endpoint must return FullCalendar's event object shape:\n * [ { id, title, start, end?, url?, color?, extendedProps? }, ... ]\n * FullCalendar sends `start` and `end` query params for the range it\n * needs; the server can either honor them (recommended) or ignore\n * and always return the full set.\n */\n\nimport { Calendar } from '@fullcalendar/core';\nimport dayGridPlugin from '@fullcalendar/daygrid';\nimport interactionPlugin from '@fullcalendar/interaction';\nimport listPlugin from '@fullcalendar/list';\nimport timeGridPlugin from '@fullcalendar/timegrid';\n\n/**\n * Fetch events from our own /api/v1/... endpoints with the session\n * X-CSRF-TOKEN header attached, matching how every bootstrap-table\n * datatable authenticates browser calls to Snipe-IT's API. Without\n * this header the /api/v1/* routes reject session-authed browser\n * requests, and the calendar renders empty even though the query\n * returns rows. Passes through FullCalendar's `start` and `end`\n * range as query params so the server-side range filter works.\n *\n * The optional `state` object lets per-calendar UI (like filter\n * buttons) inject additional query params into every fetch. Read on\n * each call so mutating state.filter and triggering refetchEvents()\n * ships the new value on the very next request without rebuilding\n * the events source. `state.filter` can be a string (legacy single-\n * select mode, unified maintenance events endpoint) or a Set of\n * strings (multi-select mode - passed as ?filter=a,b so the endpoint\n * can WHERE-IN them).\n */\nfunction fetchEventsFromSnipeApi(url, state) {\n return function (fetchInfo, successCallback, failureCallback) {\n const csrfMeta = document.querySelector('meta[name=\"csrf-token\"]');\n const csrfToken = csrfMeta ? csrfMeta.getAttribute('content') : '';\n\n const separator = url.includes('?') ? '&' : '?';\n const params = new URLSearchParams({\n start: fetchInfo.startStr,\n end: fetchInfo.endStr,\n });\n if (state && state.limit) {\n params.set('limit', String(state.limit));\n }\n if (state && state.filter) {\n if (state.filter instanceof Set && state.filter.size > 0) {\n params.set('filter', Array.from(state.filter).join(','));\n Array.from(state.filter).forEach(function (v) {\n params.append('event_type[]', v);\n });\n } else if (typeof state.filter === 'string') {\n params.set('filter', state.filter);\n }\n }\n\n fetch(url + separator + params.toString(), {\n method: 'GET',\n credentials: 'same-origin',\n headers: {\n 'Accept': 'application/json',\n 'X-CSRF-TOKEN': csrfToken,\n 'X-Requested-With': 'XMLHttpRequest',\n },\n })\n .then(function (response) {\n if (!response.ok) {\n throw new Error('Events fetch failed: ' + response.status);\n }\n return response.json();\n })\n .then(function (data) {\n // Backend wraps events in { events, truncated, total }\n // so the frontend can surface a \"narrowing filters\"\n // banner when the server-side cap is hit. Tolerates the\n // bare-array shape too so any legacy caller keeps\n // working.\n const events = Array.isArray(data) ? data : (data.events || []);\n if (state && typeof state.onFetchMeta === 'function') {\n state.onFetchMeta({\n truncated: !!(data && data.truncated),\n total: data ? data.total : events.length,\n returned: events.length,\n });\n }\n successCallback(events);\n })\n .catch(function (err) {\n failureCallback(err);\n });\n };\n}\n\n/**\n * Build FullCalendar customButtons + toolbar-slot string from a\n * per-calendar filter-button config. Two modes:\n *\n * - Single-select (default): each click sets state.filter to that\n * button's name and clears the others. Matches the\n * \"completed / active / due_soon\" pattern used by the maintenance-\n * scoped events endpoint.\n * - Multi-select (opts.multi === true): each click toggles that\n * button's name in a Set on state.filter. Empty Set = \"show\n * everything\". Matches the unified calendar's \"show maintenance\n * / audits / checkins / etc.\" checkbox-cluster UI.\n *\n * Also flips a `.fc-button-active` class on the just-clicked button\n * so users see which filter(s) are currently applied.\n */\nfunction buildFilterButtons(filterButtons, state, getCalendar, opts) {\n const multi = !!(opts && opts.multi);\n const urlStateEnabled = !(opts && opts.urlState === false);\n if (multi && !(state.filter instanceof Set)) {\n // Normalize state.filter to a Set for multi mode - callers\n // can pass a plain array (or null / undefined) in config and\n // we'll wrap it up.\n state.filter = new Set(Array.isArray(state.filter) ? state.filter : []);\n }\n\n // Render as native DOM in a container that lives above the\n // calendar element. Previously these were injected into\n // FullCalendar's headerToolbar `left` slot, which shoved the\n // month title far to the right on views where the title is\n // centered. Native-DOM rendering keeps FC's own toolbar\n // (prev/next/today/title/views) intact and gives filters their\n // own row above.\n const container = document.createElement('div');\n container.className = 'snipeit-calendar-filters';\n container.setAttribute('role', 'group');\n container.setAttribute('aria-label', 'Calendar filters');\n\n const buttonNodes = {};\n filterButtons.forEach(function (btn) {\n const buttonEl = document.createElement('button');\n buttonEl.type = 'button';\n // .btn-theme is Snipe-IT's own themed-color button chrome\n // (defined in overrides.less); .snipeit-calendar-filter-button\n // is our own hook that layers the checkmark + selected-state\n // ring on top. FullCalendar's .fc-button styles are scoped\n // inside `.fc` and don't apply to buttons rendered outside the\n // calendar element, which is why the earlier fc-button chrome\n // fell back to OS defaults.\n buttonEl.className = 'btn btn-theme btn-sm snipeit-calendar-filter-button';\n buttonEl.textContent = btn.text;\n buttonEl.setAttribute('aria-pressed', 'false');\n buttonEl.dataset.filterName = btn.name;\n buttonEl.addEventListener('click', function () {\n if (multi) {\n if (state.filter.has(btn.name)) {\n state.filter.delete(btn.name);\n buttonEl.classList.remove('active');\n buttonEl.setAttribute('aria-pressed', 'false');\n } else {\n state.filter.add(btn.name);\n buttonEl.classList.add('active');\n buttonEl.setAttribute('aria-pressed', 'true');\n }\n } else {\n state.filter = btn.name;\n Object.keys(buttonNodes).forEach(function (otherName) {\n buttonNodes[otherName].classList.remove('active');\n buttonNodes[otherName].setAttribute('aria-pressed', 'false');\n });\n buttonEl.classList.add('active');\n buttonEl.setAttribute('aria-pressed', 'true');\n }\n if (urlStateEnabled) {\n writeUrlState({ filter: serializeFilterForUrl(state.filter) });\n }\n const calendar = getCalendar();\n if (calendar) calendar.refetchEvents();\n });\n container.appendChild(buttonEl);\n buttonNodes[btn.name] = buttonEl;\n });\n\n return { container: container, buttonNodes: buttonNodes };\n}\n\n/**\n * Convert a PHP date() format string (what Snipe-IT stores in\n * settings.date_display_format and user overrides thereof) into a\n * FullCalendar / Cmdlet-style format string. Only handles the tokens\n * Snipe-IT actually uses in its shipped date-format options; unknown\n * tokens pass through as literal characters, which is safe because\n * the Cmdlet parser treats them as verbatim text.\n *\n * Used to feed dayPopoverFormat + potentially other locale-aware\n * FullCalendar format slots so the calendar's date labels read the\n * same way dates read in the rest of the app.\n */\nfunction phpDateFormatToFullCalendar(phpFormat) {\n if (!phpFormat) return '';\n const map = {\n 'Y': 'yyyy', 'y': 'yy',\n 'F': 'MMMM', 'M': 'MMM', 'm': 'MM', 'n': 'M',\n 'l': 'dddd', 'D': 'ddd', 'd': 'dd', 'j': 'd',\n 'H': 'HH', 'G': 'H', 'h': 'hh', 'g': 'h',\n 'i': 'mm', 's': 'ss', 'a': 'a', 'A': 'A',\n };\n let out = '';\n for (let i = 0; i < phpFormat.length; i++) {\n const c = phpFormat[i];\n out += Object.prototype.hasOwnProperty.call(map, c) ? map[c] : c;\n }\n return out;\n}\n\n/**\n * URL <-> calendar-state syncing. Reads ?date, ?view, ?filter on\n * init and applies them as initial state; writes them back on\n * navigation (prev/next/today), view change, and filter click so\n * the current URL is always a shareable deep-link into the exact\n * state the user is looking at.\n *\n * ?date=YYYY-MM-DD - FullCalendar's initialDate\n * ?view=dayGridMonth - initialView (whatever plugins support)\n * ?filter=a,b,c - comma-separated event_type list (multi\n * mode) or single event_type (single mode)\n *\n * Uses replaceState rather than pushState so a scroll through\n * months doesn't stuff the browser back-stack with every visited\n * date. Users who want history entries can bookmark specific URLs.\n */\nfunction readUrlState() {\n const params = new URLSearchParams(window.location.search);\n return {\n date: params.get('date'),\n view: params.get('view'),\n filter: params.get('filter'),\n };\n}\n\n/**\n * Format a Date as YYYY-MM-DD using its LOCAL components. FullCalendar\n * hands us a Date whose midnight is in the browser's local timezone;\n * calling .toISOString() first shifts it to UTC and then serializes,\n * which subtracts hours in UTC+N zones. That collapsed \"Aug 1 local\"\n * into \"Jul 31 UTC\" for anyone east of Greenwich, so reloading after\n * a Today click bounced them to the prior month. Reading local\n * getFullYear/getMonth/getDate keeps the calendar day stable no\n * matter the timezone.\n */\nfunction toLocalYmd(date) {\n const y = date.getFullYear();\n const m = String(date.getMonth() + 1).padStart(2, '0');\n const d = String(date.getDate()).padStart(2, '0');\n return y + '-' + m + '-' + d;\n}\n\nfunction writeUrlState(patch) {\n const params = new URLSearchParams(window.location.search);\n Object.keys(patch).forEach(function (key) {\n const value = patch[key];\n if (value === null || value === undefined || value === '') {\n params.delete(key);\n } else {\n params.set(key, value);\n }\n });\n const qs = params.toString();\n const url = window.location.pathname + (qs ? '?' + qs : '') + window.location.hash;\n window.history.replaceState(null, '', url);\n}\n\nfunction serializeFilterForUrl(filter) {\n if (filter instanceof Set) {\n return filter.size > 0 ? Array.from(filter).join(',') : null;\n }\n if (typeof filter === 'string' && filter) {\n return filter;\n }\n return null;\n}\n\nfunction init(elementId, config) {\n const el = document.getElementById(elementId);\n if (!el) {\n return null;\n }\n\n // URL-state read-in. Callers opt out with `urlState: false` in\n // config (default is on), for e.g. dashboard-widget calendars\n // that shouldn't try to steal the page's URL. Read once at init\n // time; the initial state comes from URL if present, from\n // config otherwise.\n const urlStateEnabled = config.urlState !== false;\n const urlState = urlStateEnabled ? readUrlState() : { date: null, view: null, filter: null };\n\n // Shared state that fetchEventsFromSnipeApi reads on each fetch.\n // The filter-buttons machinery below mutates state.filter and\n // triggers refetchEvents(), which re-runs the fetcher, which\n // picks up the new filter as a query param. Externalizing state\n // lets buttons and any future controls (search box, category\n // multi-select, etc.) coordinate through one object.\n let initialFilter = config.filter || null;\n if (urlState.filter) {\n // Multi-mode caller (filterMulti: true) always parses to an\n // array; single-mode gets the raw string. buildFilterButtons\n // wraps the array as a Set later.\n initialFilter = config.filterMulti\n ? urlState.filter.split(',').filter(Boolean)\n : urlState.filter;\n }\n const state = {\n filter: initialFilter,\n limit: config.limit || null,\n onFetchMeta: typeof config.onFetchMeta === 'function' ? config.onFetchMeta : null,\n };\n\n // Late-bind calendar so button handlers can grab the instance\n // (the calendar isn't constructed yet at the time customButtons\n // is defined). Assigned right before .render() below.\n let calendarInstance = null;\n const getCalendar = function () { return calendarInstance; };\n\n // Callers pass `events` as a URL (most common: our own /api/v1\n // events endpoint). Wrap that URL in the CSRF-authed fetcher so\n // the API accepts the request. Callers who pass a function\n // themselves get to skip this and manage the fetch on their own.\n let eventsSource = config.events;\n if (typeof eventsSource === 'string') {\n eventsSource = fetchEventsFromSnipeApi(eventsSource, state);\n }\n\n // If the caller declared filter buttons, build a standalone DOM\n // container that gets inserted *above* the calendar element (not\n // into FullCalendar's headerToolbar). Keeps the FC toolbar clean\n // so the month title stays centered instead of getting shoved to\n // the right by an inline row of filter chips.\n let filterContainer = null;\n let filterButtonNodes = {};\n if (Array.isArray(config.filterButtons) && config.filterButtons.length > 0) {\n const built = buildFilterButtons(config.filterButtons, state, getCalendar, {\n multi: !!config.filterMulti,\n urlState: urlStateEnabled,\n });\n filterContainer = built.container;\n filterButtonNodes = built.buttonNodes;\n el.parentNode.insertBefore(filterContainer, el);\n }\n\n const options = Object.assign(\n {\n initialView: urlState.view || 'dayGridMonth',\n initialDate: urlState.date || undefined,\n headerToolbar: {\n left: 'prev,next today',\n center: 'title',\n right: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek',\n },\n height: 'auto',\n // firstDay follows the site-wide week_start (0=Sun, 1=Mon,\n // etc.) that layouts/default.blade.php already publishes\n // via window.snipeit.settings.first_day_of_week. Falls back\n // to 0 (Sunday) when the calendar is loaded on a page that\n // hasn't set it.\n firstDay: (window.snipeit && window.snipeit.settings && typeof window.snipeit.settings.first_day_of_week === 'number')\n ? window.snipeit.settings.first_day_of_week\n : 0,\n // If the event object carries a `url`, clicking it navigates\n // via a normal same-tab link rather than a popup. Individual\n // callers can override with their own eventClick handler.\n eventClick: config.eventClick || function (info) {\n if (info.event.url) {\n info.jsEvent.preventDefault();\n window.location.href = info.event.url;\n }\n },\n // datesSet fires on every navigation (prev/next/today) AND\n // on view change AND on initial render. Write the current\n // date + view back to the URL so scrolling around leaves\n // a shareable link at every step. Skipped when the caller\n // opted out of URL syncing via urlState: false.\n datesSet: function (arg) {\n if (!urlStateEnabled) return;\n writeUrlState({\n date: toLocalYmd(arg.view.currentStart),\n view: arg.view.type,\n });\n },\n },\n // Allow per-page overrides for any of the above.\n config,\n );\n\n // plugins + events are always set by us - callers can't drop the\n // plugins without breaking the calendar, and the wrapped events\n // source above needs to win over the raw string from config.\n // dayGrid: month view (default calendar page look).\n // timeGrid: week/day views with hour-of-day rails, matches\n // https://fullcalendar.io/docs/timegrid-view.\n // list: agenda-style list view used by dashboard/today widgets\n // and as a text-first alternative for a11y users.\n // interaction: click / drag / select handlers - always required.\n options.plugins = [dayGridPlugin, timeGridPlugin, listPlugin, interactionPlugin];\n options.events = eventsSource;\n\n // dayPopoverFormat controls the header of the \"+N more\" popover\n // for days that carry too many events to fit inline. When the\n // caller passes a phpDateFormat (from the site's setting or the\n // per-user override), convert to FullCalendar's token style so\n // the popover date reads the same as dates elsewhere in Snipe-IT.\n // Left as-is if the caller doesn't provide one - FullCalendar's\n // locale-aware default takes over.\n if (config.phpDateFormat && !options.dayPopoverFormat) {\n options.dayPopoverFormat = phpDateFormatToFullCalendar(config.phpDateFormat);\n }\n\n calendarInstance = new Calendar(el, options);\n calendarInstance.render();\n\n // Prime the \"active\" visual state on the initially-selected\n // filter button(s) so the UI reflects state.filter from the\n // start. Single-mode uses one string; multi-mode uses a Set.\n if (filterContainer) {\n const initialActive = state.filter instanceof Set\n ? Array.from(state.filter)\n : (state.filter ? [state.filter] : []);\n initialActive.forEach(function (name) {\n const btn = filterButtonNodes[name];\n if (btn) {\n btn.classList.add('active');\n btn.setAttribute('aria-pressed', 'true');\n }\n });\n }\n\n return calendarInstance;\n}\n\nwindow.snipeitCalendar = { init };\n"],"names":["Calendar","dayGridPlugin","interactionPlugin","listPlugin","timeGridPlugin","fetchEventsFromSnipeApi","url","state","fetchInfo","successCallback","failureCallback","csrfMeta","document","querySelector","csrfToken","getAttribute","separator","includes","params","URLSearchParams","start","startStr","end","endStr","limit","set","String","filter","Set","size","Array","from","join","forEach","v","append","fetch","toString","method","credentials","headers","then","response","ok","Error","status","json","data","events","isArray","onFetchMeta","truncated","total","length","returned","err","buildFilterButtons","filterButtons","getCalendar","opts","multi","urlStateEnabled","urlState","container","createElement","className","setAttribute","buttonNodes","btn","buttonEl","type","textContent","text","dataset","filterName","name","addEventListener","has","classList","remove","add","Object","keys","otherName","writeUrlState","serializeFilterForUrl","calendar","refetchEvents","appendChild","phpDateFormatToFullCalendar","phpFormat","map","out","i","c","prototype","hasOwnProperty","call","readUrlState","window","location","search","date","get","view","toLocalYmd","y","getFullYear","m","getMonth","padStart","d","getDate","patch","key","value","undefined","qs","pathname","hash","history","replaceState","init","elementId","config","el","getElementById","initialFilter","filterMulti","split","Boolean","calendarInstance","eventsSource","filterContainer","filterButtonNodes","built","parentNode","insertBefore","options","assign","initialView","initialDate","headerToolbar","left","center","right","height","firstDay","snipeit","settings","first_day_of_week","eventClick","info","event","jsEvent","preventDefault","href","datesSet","arg","currentStart","plugins","phpDateFormat","dayPopoverFormat","render","initialActive","snipeitCalendar"],"sourceRoot":""}
\ No newline at end of file
diff --git a/public/mix-manifest.json b/public/mix-manifest.json
index fdf561255a..5b3ec41a96 100644
--- a/public/mix-manifest.json
+++ b/public/mix-manifest.json
@@ -1,9 +1,10 @@
{
"/js/dist/all.js": "/js/dist/all.js?id=2c22fbc200ecdda01cad9bbb465f1287",
- "/css/build/overrides.css": "/css/build/overrides.css?id=f74b26a2c56c0fcf9ba0b71e4936a006",
- "/css/build/app.css": "/css/build/app.css?id=5339c4d59ea8a38bf2e61c3150a497e2",
+ "/js/dist/snipeit-calendar.js": "/js/dist/snipeit-calendar.js?id=3fbe458e605823483b2008d9cb29a347",
+ "/css/build/overrides.css": "/css/build/overrides.css?id=375332d47bf6a467f8ffdc68636d6e07",
+ "/css/build/app.css": "/css/build/app.css?id=8a6dcab04095b9981ce6abe50b8c5b42",
"/css/build/AdminLTE.css": "/css/build/AdminLTE.css?id=ee0ed88465dd878588ed044eefb67723",
- "/css/dist/all.css": "/css/dist/all.css?id=018236919137006c92c64481c0be7645",
+ "/css/dist/all.css": "/css/dist/all.css?id=987304172b4a191ca35d3d2dd6cdac9f",
"/css/dist/signature-pad.css": "/css/dist/signature-pad.css?id=6a89d3cd901305e66ced1cf5f13147f7",
"/css/dist/signature-pad.min.css": "/css/dist/signature-pad.min.css?id=6a89d3cd901305e66ced1cf5f13147f7",
"/js/select2/i18n/af.js": "/js/select2/i18n/af.js?id=4f6fcd73488ce79fae1b7a90aceaecde",
diff --git a/resources/assets/js/snipeit-calendar.js b/resources/assets/js/snipeit-calendar.js
new file mode 100644
index 0000000000..946fa697f0
--- /dev/null
+++ b/resources/assets/js/snipeit-calendar.js
@@ -0,0 +1,453 @@
+/**
+ * Snipe-IT calendar init.
+ *
+ * Thin wrapper around FullCalendar v6 that per-entity calendar pages
+ * call via a single global (window.snipeitCalendar.init). The reason
+ * for the wrapper is that we expect several calendar views over time
+ * (maintenances is the first, but expected asset checkins, upcoming
+ * audits, user end_dates and similar are already on the list) and
+ * having each blade page duplicate the FullCalendar wiring would
+ * create N places to keep in sync when we upgrade or change defaults.
+ *
+ * Usage from a blade page:
+ *
+ * <div id="my-calendar"></div>
+ * <script>
+ * window.snipeitCalendar.init('my-calendar', {
+ * events: '/api/v1/whatever/events', // JSON feed URL
+ * initialView: 'dayGridMonth', // optional, default
+ * locale: 'en', // optional
+ * });
+ * </script>
+ *
+ * The events endpoint must return FullCalendar's event object shape:
+ * [ { id, title, start, end?, url?, color?, extendedProps? }, ... ]
+ * FullCalendar sends `start` and `end` query params for the range it
+ * needs; the server can either honor them (recommended) or ignore
+ * and always return the full set.
+ */
+
+import { Calendar } from '@fullcalendar/core';
+import dayGridPlugin from '@fullcalendar/daygrid';
+import interactionPlugin from '@fullcalendar/interaction';
+import listPlugin from '@fullcalendar/list';
+import timeGridPlugin from '@fullcalendar/timegrid';
+
+/**
+ * Fetch events from our own /api/v1/... endpoints with the session
+ * X-CSRF-TOKEN header attached, matching how every bootstrap-table
+ * datatable authenticates browser calls to Snipe-IT's API. Without
+ * this header the /api/v1/* routes reject session-authed browser
+ * requests, and the calendar renders empty even though the query
+ * returns rows. Passes through FullCalendar's `start` and `end`
+ * range as query params so the server-side range filter works.
+ *
+ * The optional `state` object lets per-calendar UI (like filter
+ * buttons) inject additional query params into every fetch. Read on
+ * each call so mutating state.filter and triggering refetchEvents()
+ * ships the new value on the very next request without rebuilding
+ * the events source. `state.filter` can be a string (legacy single-
+ * select mode, unified maintenance events endpoint) or a Set of
+ * strings (multi-select mode - passed as ?filter=a,b so the endpoint
+ * can WHERE-IN them).
+ */
+function fetchEventsFromSnipeApi(url, state) {
+ return function (fetchInfo, successCallback, failureCallback) {
+ const csrfMeta = document.querySelector('meta[name="csrf-token"]');
+ const csrfToken = csrfMeta ? csrfMeta.getAttribute('content') : '';
+
+ const separator = url.includes('?') ? '&' : '?';
+ const params = new URLSearchParams({
+ start: fetchInfo.startStr,
+ end: fetchInfo.endStr,
+ });
+ if (state && state.limit) {
+ params.set('limit', String(state.limit));
+ }
+ if (state && state.filter) {
+ if (state.filter instanceof Set && state.filter.size > 0) {
+ params.set('filter', Array.from(state.filter).join(','));
+ Array.from(state.filter).forEach(function (v) {
+ params.append('event_type[]', v);
+ });
+ } else if (typeof state.filter === 'string') {
+ params.set('filter', state.filter);
+ }
+ }
+
+ fetch(url + separator + params.toString(), {
+ method: 'GET',
+ credentials: 'same-origin',
+ headers: {
+ 'Accept': 'application/json',
+ 'X-CSRF-TOKEN': csrfToken,
+ 'X-Requested-With': 'XMLHttpRequest',
+ },
+ })
+ .then(function (response) {
+ if (!response.ok) {
+ throw new Error('Events fetch failed: ' + response.status);
+ }
+ return response.json();
+ })
+ .then(function (data) {
+ // Backend wraps events in { events, truncated, total }
+ // so the frontend can surface a "narrowing filters"
+ // banner when the server-side cap is hit. Tolerates the
+ // bare-array shape too so any legacy caller keeps
+ // working.
+ const events = Array.isArray(data) ? data : (data.events || []);
+ if (state && typeof state.onFetchMeta === 'function') {
+ state.onFetchMeta({
+ truncated: !!(data && data.truncated),
+ total: data ? data.total : events.length,
+ returned: events.length,
+ });
+ }
+ successCallback(events);
+ })
+ .catch(function (err) {
+ failureCallback(err);
+ });
+ };
+}
+
+/**
+ * Build FullCalendar customButtons + toolbar-slot string from a
+ * per-calendar filter-button config. Two modes:
+ *
+ * - Single-select (default): each click sets state.filter to that
+ * button's name and clears the others. Matches the
+ * "completed / active / due_soon" pattern used by the maintenance-
+ * scoped events endpoint.
+ * - Multi-select (opts.multi === true): each click toggles that
+ * button's name in a Set on state.filter. Empty Set = "show
+ * everything". Matches the unified calendar's "show maintenance
+ * / audits / checkins / etc." checkbox-cluster UI.
+ *
+ * Also flips a `.fc-button-active` class on the just-clicked button
+ * so users see which filter(s) are currently applied.
+ */
+function buildFilterButtons(filterButtons, state, getCalendar, opts) {
+ const multi = !!(opts && opts.multi);
+ const urlStateEnabled = !(opts && opts.urlState === false);
+ if (multi && !(state.filter instanceof Set)) {
+ // Normalize state.filter to a Set for multi mode - callers
+ // can pass a plain array (or null / undefined) in config and
+ // we'll wrap it up.
+ state.filter = new Set(Array.isArray(state.filter) ? state.filter : []);
+ }
+
+ // Render as native DOM in a container that lives above the
+ // calendar element. Previously these were injected into
+ // FullCalendar's headerToolbar `left` slot, which shoved the
+ // month title far to the right on views where the title is
+ // centered. Native-DOM rendering keeps FC's own toolbar
+ // (prev/next/today/title/views) intact and gives filters their
+ // own row above.
+ const container = document.createElement('div');
+ container.className = 'snipeit-calendar-filters';
+ container.setAttribute('role', 'group');
+ container.setAttribute('aria-label', 'Calendar filters');
+
+ const buttonNodes = {};
+ filterButtons.forEach(function (btn) {
+ const buttonEl = document.createElement('button');
+ buttonEl.type = 'button';
+ // .btn-theme is Snipe-IT's own themed-color button chrome
+ // (defined in overrides.less); .snipeit-calendar-filter-button
+ // is our own hook that layers the checkmark + selected-state
+ // ring on top. FullCalendar's .fc-button styles are scoped
+ // inside `.fc` and don't apply to buttons rendered outside the
+ // calendar element, which is why the earlier fc-button chrome
+ // fell back to OS defaults.
+ buttonEl.className = 'btn btn-theme btn-sm snipeit-calendar-filter-button';
+ buttonEl.textContent = btn.text;
+ buttonEl.setAttribute('aria-pressed', 'false');
+ buttonEl.dataset.filterName = btn.name;
+ buttonEl.addEventListener('click', function () {
+ if (multi) {
+ if (state.filter.has(btn.name)) {
+ state.filter.delete(btn.name);
+ buttonEl.classList.remove('active');
+ buttonEl.setAttribute('aria-pressed', 'false');
+ } else {
+ state.filter.add(btn.name);
+ buttonEl.classList.add('active');
+ buttonEl.setAttribute('aria-pressed', 'true');
+ }
+ } else {
+ state.filter = btn.name;
+ Object.keys(buttonNodes).forEach(function (otherName) {
+ buttonNodes[otherName].classList.remove('active');
+ buttonNodes[otherName].setAttribute('aria-pressed', 'false');
+ });
+ buttonEl.classList.add('active');
+ buttonEl.setAttribute('aria-pressed', 'true');
+ }
+ if (urlStateEnabled) {
+ writeUrlState({ filter: serializeFilterForUrl(state.filter) });
+ }
+ const calendar = getCalendar();
+ if (calendar) calendar.refetchEvents();
+ });
+ container.appendChild(buttonEl);
+ buttonNodes[btn.name] = buttonEl;
+ });
+
+ return { container: container, buttonNodes: buttonNodes };
+}
+
+/**
+ * Convert a PHP date() format string (what Snipe-IT stores in
+ * settings.date_display_format and user overrides thereof) into a
+ * FullCalendar / Cmdlet-style format string. Only handles the tokens
+ * Snipe-IT actually uses in its shipped date-format options; unknown
+ * tokens pass through as literal characters, which is safe because
+ * the Cmdlet parser treats them as verbatim text.
+ *
+ * Used to feed dayPopoverFormat + potentially other locale-aware
+ * FullCalendar format slots so the calendar's date labels read the
+ * same way dates read in the rest of the app.
+ */
+function phpDateFormatToFullCalendar(phpFormat) {
+ if (!phpFormat) return '';
+ const map = {
+ 'Y': 'yyyy', 'y': 'yy',
+ 'F': 'MMMM', 'M': 'MMM', 'm': 'MM', 'n': 'M',
+ 'l': 'dddd', 'D': 'ddd', 'd': 'dd', 'j': 'd',
+ 'H': 'HH', 'G': 'H', 'h': 'hh', 'g': 'h',
+ 'i': 'mm', 's': 'ss', 'a': 'a', 'A': 'A',
+ };
+ let out = '';
+ for (let i = 0; i < phpFormat.length; i++) {
+ const c = phpFormat[i];
+ out += Object.prototype.hasOwnProperty.call(map, c) ? map[c] : c;
+ }
+ return out;
+}
+
+/**
+ * URL <-> calendar-state syncing. Reads ?date, ?view, ?filter on
+ * init and applies them as initial state; writes them back on
+ * navigation (prev/next/today), view change, and filter click so
+ * the current URL is always a shareable deep-link into the exact
+ * state the user is looking at.
+ *
+ * ?date=YYYY-MM-DD - FullCalendar's initialDate
+ * ?view=dayGridMonth - initialView (whatever plugins support)
+ * ?filter=a,b,c - comma-separated event_type list (multi
+ * mode) or single event_type (single mode)
+ *
+ * Uses replaceState rather than pushState so a scroll through
+ * months doesn't stuff the browser back-stack with every visited
+ * date. Users who want history entries can bookmark specific URLs.
+ */
+function readUrlState() {
+ const params = new URLSearchParams(window.location.search);
+ return {
+ date: params.get('date'),
+ view: params.get('view'),
+ filter: params.get('filter'),
+ };
+}
+
+/**
+ * Format a Date as YYYY-MM-DD using its LOCAL components. FullCalendar
+ * hands us a Date whose midnight is in the browser's local timezone;
+ * calling .toISOString() first shifts it to UTC and then serializes,
+ * which subtracts hours in UTC+N zones. That collapsed "Aug 1 local"
+ * into "Jul 31 UTC" for anyone east of Greenwich, so reloading after
+ * a Today click bounced them to the prior month. Reading local
+ * getFullYear/getMonth/getDate keeps the calendar day stable no
+ * matter the timezone.
+ */
+function toLocalYmd(date) {
+ const y = date.getFullYear();
+ const m = String(date.getMonth() + 1).padStart(2, '0');
+ const d = String(date.getDate()).padStart(2, '0');
+ return y + '-' + m + '-' + d;
+}
+
+function writeUrlState(patch) {
+ const params = new URLSearchParams(window.location.search);
+ Object.keys(patch).forEach(function (key) {
+ const value = patch[key];
+ if (value === null || value === undefined || value === '') {
+ params.delete(key);
+ } else {
+ params.set(key, value);
+ }
+ });
+ const qs = params.toString();
+ const url = window.location.pathname + (qs ? '?' + qs : '') + window.location.hash;
+ window.history.replaceState(null, '', url);
+}
+
+function serializeFilterForUrl(filter) {
+ if (filter instanceof Set) {
+ return filter.size > 0 ? Array.from(filter).join(',') : null;
+ }
+ if (typeof filter === 'string' && filter) {
+ return filter;
+ }
+ return null;
+}
+
+function init(elementId, config) {
+ const el = document.getElementById(elementId);
+ if (!el) {
+ return null;
+ }
+
+ // URL-state read-in. Callers opt out with `urlState: false` in
+ // config (default is on), for e.g. dashboard-widget calendars
+ // that shouldn't try to steal the page's URL. Read once at init
+ // time; the initial state comes from URL if present, from
+ // config otherwise.
+ const urlStateEnabled = config.urlState !== false;
+ const urlState = urlStateEnabled ? readUrlState() : { date: null, view: null, filter: null };
+
+ // Shared state that fetchEventsFromSnipeApi reads on each fetch.
+ // The filter-buttons machinery below mutates state.filter and
+ // triggers refetchEvents(), which re-runs the fetcher, which
+ // picks up the new filter as a query param. Externalizing state
+ // lets buttons and any future controls (search box, category
+ // multi-select, etc.) coordinate through one object.
+ let initialFilter = config.filter || null;
+ if (urlState.filter) {
+ // Multi-mode caller (filterMulti: true) always parses to an
+ // array; single-mode gets the raw string. buildFilterButtons
+ // wraps the array as a Set later.
+ initialFilter = config.filterMulti
+ ? urlState.filter.split(',').filter(Boolean)
+ : urlState.filter;
+ }
+ const state = {
+ filter: initialFilter,
+ limit: config.limit || null,
+ onFetchMeta: typeof config.onFetchMeta === 'function' ? config.onFetchMeta : null,
+ };
+
+ // Late-bind calendar so button handlers can grab the instance
+ // (the calendar isn't constructed yet at the time customButtons
+ // is defined). Assigned right before .render() below.
+ let calendarInstance = null;
+ const getCalendar = function () { return calendarInstance; };
+
+ // Callers pass `events` as a URL (most common: our own /api/v1
+ // events endpoint). Wrap that URL in the CSRF-authed fetcher so
+ // the API accepts the request. Callers who pass a function
+ // themselves get to skip this and manage the fetch on their own.
+ let eventsSource = config.events;
+ if (typeof eventsSource === 'string') {
+ eventsSource = fetchEventsFromSnipeApi(eventsSource, state);
+ }
+
+ // If the caller declared filter buttons, build a standalone DOM
+ // container that gets inserted *above* the calendar element (not
+ // into FullCalendar's headerToolbar). Keeps the FC toolbar clean
+ // so the month title stays centered instead of getting shoved to
+ // the right by an inline row of filter chips.
+ let filterContainer = null;
+ let filterButtonNodes = {};
+ if (Array.isArray(config.filterButtons) && config.filterButtons.length > 0) {
+ const built = buildFilterButtons(config.filterButtons, state, getCalendar, {
+ multi: !!config.filterMulti,
+ urlState: urlStateEnabled,
+ });
+ filterContainer = built.container;
+ filterButtonNodes = built.buttonNodes;
+ el.parentNode.insertBefore(filterContainer, el);
+ }
+
+ const options = Object.assign(
+ {
+ initialView: urlState.view || 'dayGridMonth',
+ initialDate: urlState.date || undefined,
+ headerToolbar: {
+ left: 'prev,next today',
+ center: 'title',
+ right: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek',
+ },
+ height: 'auto',
+ // firstDay follows the site-wide week_start (0=Sun, 1=Mon,
+ // etc.) that layouts/default.blade.php already publishes
+ // via window.snipeit.settings.first_day_of_week. Falls back
+ // to 0 (Sunday) when the calendar is loaded on a page that
+ // hasn't set it.
+ firstDay: (window.snipeit && window.snipeit.settings && typeof window.snipeit.settings.first_day_of_week === 'number')
+ ? window.snipeit.settings.first_day_of_week
+ : 0,
+ // If the event object carries a `url`, clicking it navigates
+ // via a normal same-tab link rather than a popup. Individual
+ // callers can override with their own eventClick handler.
+ eventClick: config.eventClick || function (info) {
+ if (info.event.url) {
+ info.jsEvent.preventDefault();
+ window.location.href = info.event.url;
+ }
+ },
+ // datesSet fires on every navigation (prev/next/today) AND
+ // on view change AND on initial render. Write the current
+ // date + view back to the URL so scrolling around leaves
+ // a shareable link at every step. Skipped when the caller
+ // opted out of URL syncing via urlState: false.
+ datesSet: function (arg) {
+ if (!urlStateEnabled) return;
+ writeUrlState({
+ date: toLocalYmd(arg.view.currentStart),
+ view: arg.view.type,
+ });
+ },
+ },
+ // Allow per-page overrides for any of the above.
+ config,
+ );
+
+ // plugins + events are always set by us - callers can't drop the
+ // plugins without breaking the calendar, and the wrapped events
+ // source above needs to win over the raw string from config.
+ // dayGrid: month view (default calendar page look).
+ // timeGrid: week/day views with hour-of-day rails, matches
+ // https://fullcalendar.io/docs/timegrid-view.
+ // list: agenda-style list view used by dashboard/today widgets
+ // and as a text-first alternative for a11y users.
+ // interaction: click / drag / select handlers - always required.
+ options.plugins = [dayGridPlugin, timeGridPlugin, listPlugin, interactionPlugin];
+ options.events = eventsSource;
+
+ // dayPopoverFormat controls the header of the "+N more" popover
+ // for days that carry too many events to fit inline. When the
+ // caller passes a phpDateFormat (from the site's setting or the
+ // per-user override), convert to FullCalendar's token style so
+ // the popover date reads the same as dates elsewhere in Snipe-IT.
+ // Left as-is if the caller doesn't provide one - FullCalendar's
+ // locale-aware default takes over.
+ if (config.phpDateFormat && !options.dayPopoverFormat) {
+ options.dayPopoverFormat = phpDateFormatToFullCalendar(config.phpDateFormat);
+ }
+
+ calendarInstance = new Calendar(el, options);
+ calendarInstance.render();
+
+ // Prime the "active" visual state on the initially-selected
+ // filter button(s) so the UI reflects state.filter from the
+ // start. Single-mode uses one string; multi-mode uses a Set.
+ if (filterContainer) {
+ const initialActive = state.filter instanceof Set
+ ? Array.from(state.filter)
+ : (state.filter ? [state.filter] : []);
+ initialActive.forEach(function (name) {
+ const btn = filterButtonNodes[name];
+ if (btn) {
+ btn.classList.add('active');
+ btn.setAttribute('aria-pressed', 'true');
+ }
+ });
+ }
+
+ return calendarInstance;
+}
+
+window.snipeitCalendar = { init };
diff --git a/resources/assets/less/overrides.less b/resources/assets/less/overrides.less
index 0bf6da83b3..eb8529efa3 100644
--- a/resources/assets/less/overrides.less
+++ b/resources/assets/less/overrides.less
@@ -3481,3 +3481,180 @@ dl.table-display {
margin-left: 0;
}
}
+
+// ============================================================================
+// FullCalendar v6 dark-mode overrides.
+//
+// FullCalendar's stock CSS reads from a fixed palette of light neutrals for
+// header cells, gridlines, and hour-axis text. In light mode that reads fine
+// against the AdminLTE box background; in dark mode the light-neutral rules
+// produce a wash of near-white cells and pale grid strokes that lack
+// contrast against the dark box. Rebind them to the same tokens the rest of
+// the app already uses.
+// ============================================================================
+
+[data-theme="dark"] {
+ .fc {
+ --fc-border-color: var(--box-header-top-border-color);
+ --fc-page-bg-color: var(--box-bg);
+ --fc-neutral-bg-color: ~"hsl(from var(--box-bg) h s calc(l + 5))";
+ --fc-neutral-text-color: var(--color-fg);
+ --fc-list-event-hover-bg-color: ~"hsl(from var(--box-bg) h s calc(l + 8))";
+ --fc-today-bg-color: ~"hsl(from var(--main-theme-color) h s calc(l - 25) / 0.25)";
+
+ .fc-col-header-cell,
+ .fc-list-day-cushion {
+ background-color: ~"hsl(from var(--box-bg) h s calc(l + 5))";
+ color: var(--color-fg);
+ }
+
+ .fc-col-header-cell-cushion,
+ .fc-daygrid-day-number,
+ .fc-timegrid-axis-cushion,
+ .fc-timegrid-slot-label-cushion,
+ .fc-list-day-text,
+ .fc-list-day-side-text,
+ .fc-list-event-title,
+ .fc-list-event-time {
+ color: var(--color-fg);
+ }
+
+ .fc-scrollgrid,
+ .fc-scrollgrid td,
+ .fc-scrollgrid th,
+ .fc-timegrid-slot,
+ .fc-daygrid-day {
+ border-color: var(--box-header-top-border-color);
+ }
+ }
+}
+
+// ============================================================================
+// Dashboard equal-height rows.
+//
+// AdminLTE 2 / Bootstrap 3 don't stretch sibling .box heights within a row,
+// so a col-md-8 + col-md-4 pair looks lopsided any time the wider box has
+// more content than the narrower one. This wrapper turns the row into a
+// flex container and forces every child .box to fill its column's height.
+// Applied only on rows opted-in via `dashboard-row-eq` so the rule doesn't
+// leak into other admin pages that happen to use .row + .box.
+// ============================================================================
+
+// Row-wrapper margin lives outside the media query so successive rows stay
+// gutter-separated at every breakpoint, mobile included.
+.dashboard-row-eq {
+ margin-bottom: 20px;
+}
+
+// Equal-height flex layout ONLY on md and up. Below md, Bootstrap 3 collapses
+// .col-md-* to full-width stacked blocks; forcing flex there causes every
+// widget in the row to stretch to the tallest sibling in the flow, which
+// leaves the small widgets with huge whitespace gaps on a phone. Falling
+// back to BS3's stock block layout below md keeps mobile clean.
+@media (min-width: 992px) {
+ .dashboard-row-eq {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: stretch;
+ }
+
+ .dashboard-row-eq > [class*="col-"] {
+ display: flex;
+ flex-direction: column;
+ float: none; // BS3 gives cols float:left, which suppresses flex behavior
+ }
+
+ .dashboard-row-eq > [class*="col-"] > .box {
+ display: flex;
+ flex-direction: column;
+ flex: 1 1 auto;
+ width: 100%;
+ min-height: 100%;
+ }
+
+ // Ensure the box-body absorbs slack inside a stretched box, so header stays
+ // pinned to the top and any footer/link stays at the bottom instead of the
+ // body content leaving whitespace beneath itself.
+ .dashboard-row-eq > [class*="col-"] > .box > .box-body {
+ flex: 1 1 auto;
+ }
+
+ // AdminLTE flips a .collapsed-box class on the .box when the header
+ // +/- toggle collapses the body. Without this override, the box would
+ // stay stretched to the col's full height and the collapse would have
+ // no visible effect. Let the collapsed box shrink to its own content
+ // (just the header) so the toggle behaves like it does on non-flex
+ // dashboards. Neighboring boxes stay stretched to their previous
+ // heights.
+ .dashboard-row-eq > [class*="col-"] > .box.collapsed-box {
+ flex: 0 0 auto;
+ min-height: 0;
+ }
+}
+
+// ============================================================================
+// FullCalendar filter buttons render as a native DOM row above the
+// calendar element (see buildFilterButtons in snipeit-calendar.js).
+// Kept out of FullCalendar's headerToolbar so the calendar's own
+// prev/next/today/title/views row isn't pushed off-center by an
+// inline row of filter chips.
+// ============================================================================
+
+.snipeit-calendar-filters {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+ margin-bottom: 12px;
+ padding-bottom: 8px;
+ border-bottom: 1px solid var(--box-header-top-border-color, #ddd);
+}
+
+.snipeit-calendar-filter-button {
+ // Reserve horizontal space for the checkmark glyph up-front via a
+ // transparent placeholder so the button doesn't grow when its
+ // .active class is added. Without this the ::before content on
+ // `.active` shifts every other button in the row when a filter is
+ // toggled and makes the whole row jump.
+ padding: 4px 10px;
+ font-size: 13px;
+
+ &::before {
+ content: "\2713\00a0";
+ font-weight: bold;
+ visibility: hidden;
+ }
+}
+
+// ============================================================================
+// Calendar filter-button active-state styling (both themes).
+//
+// buildFilterButtons flips `.active` on selected filters. Bootstrap 3's
+// stock `.btn-default.active` only nudges the background a few shades
+// darker, which reads as "hovered" not "selected" and Snipe reported she
+// couldn't tell which filters were on. Force the active state to the
+// app's primary theme color with an inset border ring and a leading
+// checkmark glyph so a viewer can spot which filters are active without
+// squinting. Kept a11y-friendly with a real ::before content marker
+// rather than color alone (aria-pressed is toggled in JS on top of it).
+// ============================================================================
+
+.snipeit-calendar-filter-button.active,
+.snipeit-calendar-filter-button.active:hover,
+.snipeit-calendar-filter-button.active:focus,
+.snipeit-calendar-filter-button.active:active {
+ background-color: var(--main-theme-color) !important;
+ background-image: none !important;
+ border-color: ~"hsl(from var(--main-theme-color) h s calc(l - 15))" !important;
+ color: var(--nav-primary-text-color) !important;
+ box-shadow: inset 0 0 0 2px ~"hsl(from var(--main-theme-color) h s calc(l - 25))" !important;
+}
+
+.snipeit-calendar-filter-button.active::before {
+ visibility: visible;
+}
+
+.snipeit-calendar-filter-button.active:focus {
+ box-shadow: inset 0 0 0 2px ~"hsl(from var(--main-theme-color) h s calc(l - 25))",
+ 0 0 0 3px ~"hsl(from var(--main-theme-color) h s calc(l + 20) / 0.5)" !important;
+}
+
diff --git a/webpack.mix.js b/webpack.mix.js
index 134577354a..ba7f38ba5a 100644
--- a/webpack.mix.js
+++ b/webpack.mix.js
@@ -89,6 +89,21 @@ mix
"./public/js/dist/all.js"
).sourceMaps(true, 'source-map', 'source-map').version();
+/**
+ * Standalone chunk for calendar pages. FullCalendar v6 is
+ * ES-module-first and ~200KB; keeping it out of the always-loaded
+ * all.js bundle so pages that don't render a calendar don't pay the
+ * cost. Exposes window.snipeitCalendar.init(elementId, config) so
+ * per-entity calendar blades (maintenances, upcoming audits, expected
+ * checkins, user end-dates, etc.) share the same init path and only
+ * differ in which JSON events endpoint they hit.
+ */
+mix
+ .js(
+ './resources/assets/js/snipeit-calendar.js',
+ './public/js/dist/snipeit-calendar.js'
+ ).sourceMaps(true, 'source-map', 'source-map').version();
+
/**