Skip to content

The Unified and Autonomous Development Platform

Some improvements over performance and usability

Robin Shend35cf26d803b
diff --git a/pom.xml b/pom.xml
index dac5bb6237..5ad38e3638 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,7 +9,7 @@
<version>1.2.3</version>
</parent>
<artifactId>server</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
<packaging>pom</packaging>
<build>
<finalName>${project.groupId}.${project.artifactId}-${project.version}</finalName>
@@ -637,7 +637,7 @@
</repositories>
<properties>
<commons.version>3.0.3</commons.version>
- <agent.version>2.1.6</agent.version>
+ <agent.version>2.1.7</agent.version>
<slf4j.version>2.0.9</slf4j.version>
<logback.version>1.4.14</logback.version>
<antlr.version>4.7.2</antlr.version>
diff --git a/server-core/pom.xml b/server-core/pom.xml
index ff886fa602..e9026083e9 100644
--- a/server-core/pom.xml
+++ b/server-core/pom.xml
@@ -7,7 +7,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<build>
<plugins>
diff --git a/server-core/src/main/java/io/onedev/server/commandhandler/Upgrade.java b/server-core/src/main/java/io/onedev/server/commandhandler/Upgrade.java
index 6381c9372f..5ebfa43c72 100644
--- a/server-core/src/main/java/io/onedev/server/commandhandler/Upgrade.java
+++ b/server-core/src/main/java/io/onedev/server/commandhandler/Upgrade.java
@@ -940,6 +940,10 @@ public class Upgrade extends AbstractPlugin {
wrapperConf += "\r\nwrapper.disable_console_input=TRUE";
wrapperConf = wrapperConf.replaceAll("\r\n(\r\n)+\r\n", "\r\n\r\n");
+ wrapperConf = wrapperConf.replaceAll("\n(\n)+\n", "\n\n");
+ wrapperConf = wrapperConf.replace(
+ "wrapperConfwrapper.java.additional.30=--add-modules=java.se",
+ "wrapper.java.additional.30=--add-modules=java.se");
var lines = Splitter.on('\n').trimResults().splitToList(wrapperConf);
if (lines.stream().noneMatch(it -> it.contains("-XX:MaxRAMPercentage"))) {
diff --git a/server-core/src/main/java/io/onedev/server/data/migration/DataMigrator.java b/server-core/src/main/java/io/onedev/server/data/migration/DataMigrator.java
index f0ac0a8590..d3c599c8d5 100644
--- a/server-core/src/main/java/io/onedev/server/data/migration/DataMigrator.java
+++ b/server-core/src/main/java/io/onedev/server/data/migration/DataMigrator.java
@@ -13,10 +13,8 @@ import io.onedev.server.model.*;
import io.onedev.server.model.support.TimeGroups;
import io.onedev.server.ssh.SshKeyUtils;
import io.onedev.server.util.CryptoUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.util.Pair;
-import io.onedev.server.util.date.Day;
-import io.onedev.server.util.date.Month;
-import io.onedev.server.util.date.Week;
import io.onedev.server.util.patternset.PatternSet;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.tuple.Triple;
@@ -41,11 +39,9 @@ import java.nio.file.Path;
import java.security.GeneralSecurityException;
import java.security.PublicKey;
import java.text.MessageFormat;
-import java.time.Instant;
-import java.time.OffsetDateTime;
-import java.time.ZoneId;
-import java.time.ZonedDateTime;
+import java.time.*;
import java.time.format.DateTimeFormatter;
+import java.time.temporal.TemporalAdjusters;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -62,7 +58,7 @@ public class DataMigrator {
private static final Logger logger = LoggerFactory.getLogger(DataMigrator.class);
private static final DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSS'Z'");
-
+
private void migrate5(File dataDir, Stack<Integer> versions) {
for (File file : dataDir.listFiles()) {
if (file.getName().startsWith("Configs.xml")) {
@@ -6701,7 +6697,7 @@ public class DataMigrator {
throw new RuntimeException(e);
}
}
-
+
Map<Long, List<IssueStateHistory>> histories = new HashMap<>();
var id = 1L;
for (File file : dataDir.listFiles()) {
@@ -6710,7 +6706,7 @@ public class DataMigrator {
for (Element element : dom.getRootElement().elements()) {
Element dataElement = element.element("data");
var className = dataElement.attributeValue("class");
- if (className.contains("IssueStateChangeData")
+ if (className.contains("IssueStateChangeData")
|| className.contains("IssueBatchUpdateData")) {
var oldState = dataElement.elementText("oldState").trim();
var newState = dataElement.elementText("newState").trim();
@@ -6722,7 +6718,7 @@ public class DataMigrator {
history.setTimeGroups(TimeGroups.of(history.getDate()));
history.setIssue(new Issue());
history.getIssue().setId(Long.parseLong(element.elementText("issue").trim()));
- histories.computeIfAbsent(history.getIssue().getId(), it->new ArrayList<>()).add(history);
+ histories.computeIfAbsent(history.getIssue().getId(), it -> new ArrayList<>()).add(history);
}
}
}
@@ -6738,9 +6734,9 @@ public class DataMigrator {
if (finishDateElement != null) {
var finishDate = parseDate(finishDateElement.getText().trim());
var finishTimeGroupsElement = element.addElement("finishTimeGroups");
- finishTimeGroupsElement.addElement("day").setText(String.valueOf(new Day(finishDate).getValue()));
- finishTimeGroupsElement.addElement("week").setText(String.valueOf(new Week(finishDate).getValue()));
- finishTimeGroupsElement.addElement("month").setText(String.valueOf(new Month(finishDate).getValue()));
+ finishTimeGroupsElement.addElement("day").setText(String.valueOf(DateUtils.toLocalDate(finishDate).toEpochDay()));
+ finishTimeGroupsElement.addElement("week").setText(String.valueOf(DateUtils.toLocalDate(finishDate).with(TemporalAdjusters.previousOrSame(DayOfWeek.MONDAY)).toEpochDay()));
+ finishTimeGroupsElement.addElement("month").setText(String.valueOf(DateUtils.toLocalDate(finishDate).with(TemporalAdjusters.firstDayOfMonth()).toEpochDay()));
if (runningDateElement != null)
element.addElement("runningDuration").setText(String.valueOf(finishDate.getTime() - parseDate(runningDateElement.getText().trim()).getTime()));
}
@@ -6753,43 +6749,43 @@ public class DataMigrator {
for (Element element : dom.getRootElement().elements()) {
var submitDate = parseDate(element.elementText("submitDate").trim());
var submitTimeGroupsElement = element.addElement("submitTimeGroups");
- submitTimeGroupsElement.addElement("day").setText(String.valueOf(new Day(submitDate).getValue()));
- submitTimeGroupsElement.addElement("week").setText(String.valueOf(new Week(submitDate).getValue()));
- submitTimeGroupsElement.addElement("month").setText(String.valueOf(new Month(submitDate).getValue()));
-
+ submitTimeGroupsElement.addElement("day").setText(String.valueOf(DateUtils.toLocalDate(submitDate).toEpochDay()));
+ submitTimeGroupsElement.addElement("week").setText(String.valueOf(DateUtils.toLocalDate(submitDate).with(TemporalAdjusters.previousOrSame(DayOfWeek.MONDAY)).toEpochDay()));
+ submitTimeGroupsElement.addElement("month").setText(String.valueOf(DateUtils.toLocalDate(submitDate).with(TemporalAdjusters.firstDayOfMonth()).toEpochDay()));
+
if (!element.element("status").equals("OPEN")) {
var closeDate = parseDate(element.element("lastActivity").elementText("date").trim());
element.addElement("closeDate").addAttribute("class", "sql-timestamp").setText(formatDate(closeDate));
element.addElement("duration").setText(String.valueOf(closeDate.getTime() - submitDate.getTime()));
var closeTimeGroupsElement = element.addElement("closeTimeGroups");
- closeTimeGroupsElement.addElement("day").setText(String.valueOf(new Day(closeDate).getValue()));
- closeTimeGroupsElement.addElement("week").setText(String.valueOf(new Week(closeDate).getValue()));
- closeTimeGroupsElement.addElement("month").setText(String.valueOf(new Month(closeDate).getValue()));
+ closeTimeGroupsElement.addElement("day").setText(String.valueOf(DateUtils.toLocalDate(closeDate).toEpochDay()));
+ closeTimeGroupsElement.addElement("week").setText(String.valueOf(DateUtils.toLocalDate(closeDate).with(TemporalAdjusters.previousOrSame(DayOfWeek.MONDAY)).toEpochDay()));
+ closeTimeGroupsElement.addElement("month").setText(String.valueOf(DateUtils.toLocalDate(closeDate).with(TemporalAdjusters.firstDayOfMonth()).toEpochDay()));
}
}
dom.writeToFile(file, false);
}
}
-
+
VersionedXmlDoc historiesDom;
File historiesDomFile = new File(dataDir, "IssueStateHistorys.xml");
historiesDom = new VersionedXmlDoc();
Element listElement = historiesDom.addElement("list");
-
- for (var value: histories.values()) {
+
+ for (var value : histories.values()) {
value.sort(comparing(IssueStateHistory::getDate));
- for(int i=0; i<value.size()-1; i++) {
+ for (int i = 0; i < value.size() - 1; i++) {
var history = value.get(i);
- var nextHistory = value.get(i+1);
+ var nextHistory = value.get(i + 1);
history.setDuration(nextHistory.getDate().getTime() - history.getDate().getTime());
migrate171_createHistoryElement(listElement, history);
}
if (!value.isEmpty())
- migrate171_createHistoryElement(listElement, value.get(value.size()-1));
+ migrate171_createHistoryElement(listElement, value.get(value.size() - 1));
}
historiesDom.writeToFile(historiesDomFile, true);
}
-
+
private static Date parseDate(String dateString) {
if (dateString.endsWith("Z")) {
Instant instant = Instant.parse(dateString);
@@ -6799,12 +6795,12 @@ public class DataMigrator {
return Date.from(offsetDateTime.toInstant());
}
}
-
+
private static String formatDate(Date date) {
ZonedDateTime zdt = ZonedDateTime.ofInstant(date.toInstant(), ZoneId.of("UTC"));
return zdt.format(dateTimeFormatter);
}
-
+
private Element migrate171_createHistoryElement(Element parentElement, IssueStateHistory history) {
var historyElement = parentElement.addElement("io.onedev.server.model.IssueStateHistory");
historyElement.addAttribute("revision", "0.0");
@@ -6813,12 +6809,12 @@ public class DataMigrator {
historyElement.addElement("state").setText(history.getState());
historyElement.addElement("date").addAttribute("class", "sql-timestamp").setText(formatDate(history.getDate()));
var timeGroupsElement = historyElement.addElement("timeGroups");
- timeGroupsElement.addElement("day").setText(String.valueOf(new Day(history.getDate()).getValue()));
- timeGroupsElement.addElement("week").setText(String.valueOf(new Week(history.getDate()).getValue()));
- timeGroupsElement.addElement("month").setText(String.valueOf(new Month(history.getDate()).getValue()));
+ timeGroupsElement.addElement("day").setText(String.valueOf(DateUtils.toLocalDate(history.getDate()).toEpochDay()));
+ timeGroupsElement.addElement("week").setText(String.valueOf(DateUtils.toLocalDate(history.getDate()).with(TemporalAdjusters.previousOrSame(DayOfWeek.MONDAY)).toEpochDay()));
+ timeGroupsElement.addElement("month").setText(String.valueOf(DateUtils.toLocalDate(history.getDate()).with(TemporalAdjusters.firstDayOfMonth()).toEpochDay()));
if (history.getDuration() != null)
historyElement.addElement("duration").setText(history.getDuration().toString());
- return historyElement;
+ return historyElement;
}
private void migrate172(File dataDir, Stack<Integer> versions) {
@@ -6847,7 +6843,7 @@ public class DataMigrator {
} catch (IOException e) {
throw new RuntimeException(e);
}
-
+
for (File file : dataDir.listFiles()) {
if (file.getName().startsWith("Settings.xml")) {
VersionedXmlDoc dom = VersionedXmlDoc.fromFile(file);
@@ -6877,7 +6873,7 @@ public class DataMigrator {
if (key.equals("ISSUE")) {
Element valueElement = element.element("value");
if (valueElement != null) {
- for (var stateSpecElement: valueElement.element("stateSpecs").elements()) {
+ for (var stateSpecElement : valueElement.element("stateSpecs").elements()) {
initialState = stateSpecElement.elementText("name").trim();
break;
}
@@ -6886,12 +6882,12 @@ public class DataMigrator {
}
} else if (file.getName().startsWith("IssueStateHistorys.xml")) {
FileUtils.deleteFile(file);
- }
+ }
}
-
+
Map<Long, List<IssueStateHistory>> histories = new HashMap<>();
var id = 1L;
-
+
for (File file : dataDir.listFiles()) {
if (file.getName().startsWith("Issues.xml")) {
if (initialState != null) {
@@ -6924,7 +6920,7 @@ public class DataMigrator {
history.setTimeGroups(TimeGroups.of(history.getDate()));
history.setIssue(new Issue());
history.getIssue().setId(Long.parseLong(element.elementText("issue").trim()));
- histories.computeIfAbsent(history.getIssue().getId(), it->new ArrayList<>()).add(history);
+ histories.computeIfAbsent(history.getIssue().getId(), it -> new ArrayList<>()).add(history);
}
}
}
@@ -6936,16 +6932,16 @@ public class DataMigrator {
historiesDom = new VersionedXmlDoc();
Element listElement = historiesDom.addElement("list");
- for (var value: histories.values()) {
+ for (var value : histories.values()) {
value.sort(comparing(IssueStateHistory::getDate));
- for(int i=0; i<value.size()-1; i++) {
+ for (int i = 0; i < value.size() - 1; i++) {
var history = value.get(i);
- var nextHistory = value.get(i+1);
+ var nextHistory = value.get(i + 1);
history.setDuration(nextHistory.getDate().getTime() - history.getDate().getTime());
migrate171_createHistoryElement(listElement, history);
}
if (!value.isEmpty())
- migrate171_createHistoryElement(listElement, value.get(value.size()-1));
+ migrate171_createHistoryElement(listElement, value.get(value.size() - 1));
}
historiesDom.writeToFile(historiesDomFile, true);
}
@@ -6983,7 +6979,7 @@ public class DataMigrator {
} else {
transitionSpecElement.setName("io.onedev.server.model.support.issue.transitionspec.IssueStateTransitedSpec");
}
- for (var childElement: triggerElement.elements()) {
+ for (var childElement : triggerElement.elements()) {
if (!childElement.getName().equals("buttonLabel")) {
childElement.detach();
transitionSpecElement.add(childElement);
@@ -7003,5 +6999,42 @@ public class DataMigrator {
}
}
}
+
+ private void migrate176_timeGroups(Element timeGroupsElement, String dateString) {
+ var localDate = DateUtils.toLocalDate(parseDate(dateString));
+ timeGroupsElement.clearContent();
+ timeGroupsElement.addElement("day").setText(String.valueOf(localDate.toEpochDay()));
+ timeGroupsElement.addElement("week").setText(String.valueOf(localDate.with(TemporalAdjusters.previousOrSame(DayOfWeek.MONDAY)).toEpochDay()));
+ timeGroupsElement.addElement("month").setText(String.valueOf(localDate.with(TemporalAdjusters.firstDayOfMonth()).toEpochDay()));
+ }
+
+ private void migrate176(File dataDir, Stack<Integer> versions) {
+ for (File file : dataDir.listFiles()) {
+ if (file.getName().startsWith("Builds.xml")) {
+ VersionedXmlDoc dom = VersionedXmlDoc.fromFile(file);
+ for (Element element : dom.getRootElement().elements()) {
+ var finishDate = element.elementText("finishDate");
+ if (finishDate != null)
+ migrate176_timeGroups(element.element("finishTimeGroups"), finishDate.trim());
+ }
+ dom.writeToFile(file, false);
+ } else if (file.getName().startsWith("PullRequests.xml")) {
+ VersionedXmlDoc dom = VersionedXmlDoc.fromFile(file);
+ for (Element element : dom.getRootElement().elements()) {
+ migrate176_timeGroups(element.element("submitTimeGroups"), element.elementText("submitDate").trim());
+ var closeDate = element.elementText("closeDate");
+ if (closeDate != null)
+ migrate176_timeGroups(element.element("closeTimeGroups"), closeDate.trim());
+ }
+ dom.writeToFile(file, false);
+ } else if (file.getName().startsWith("IssueStateHistorys.xml")) {
+ VersionedXmlDoc dom = VersionedXmlDoc.fromFile(file);
+ for (Element element : dom.getRootElement().elements()) {
+ migrate176_timeGroups(element.element("timeGroups"), element.elementText("date").trim());
+ }
+ dom.writeToFile(file, false);
+ }
+ }
+ }
-}
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/server-core/src/main/java/io/onedev/server/entitymanager/IssueManager.java b/server-core/src/main/java/io/onedev/server/entitymanager/IssueManager.java
index cab58ebe86..68f49b949f 100644
--- a/server-core/src/main/java/io/onedev/server/entitymanager/IssueManager.java
+++ b/server-core/src/main/java/io/onedev/server/entitymanager/IssueManager.java
@@ -50,7 +50,7 @@ public interface IssueManager extends EntityManager<Issue> {
From<Issue, Issue> issue);
List<Issue> query(@Nullable ProjectScope projectScope, EntityQuery<Issue> issueQuery,
- boolean loadFieldsAndLinks, int firstResult, int maxResults);
+ boolean loadExtraInfo, int firstResult, int maxResults);
int count(@Nullable ProjectScope projectScope, @Nullable Criteria<Issue> issueCriteria);
diff --git a/server-core/src/main/java/io/onedev/server/entitymanager/IssueScheduleManager.java b/server-core/src/main/java/io/onedev/server/entitymanager/IssueScheduleManager.java
index 78d48aa808..35ab498908 100644
--- a/server-core/src/main/java/io/onedev/server/entitymanager/IssueScheduleManager.java
+++ b/server-core/src/main/java/io/onedev/server/entitymanager/IssueScheduleManager.java
@@ -1,6 +1,7 @@
package io.onedev.server.entitymanager;
import java.util.Collection;
+import java.util.List;
import io.onedev.server.model.Issue;
import io.onedev.server.model.IssueSchedule;
@@ -12,4 +13,7 @@ public interface IssueScheduleManager extends EntityManager<IssueSchedule> {
void syncIterations(Issue issue, Collection<Iteration> iterations);
void create(IssueSchedule schedule);
+
+ void populateSchedules(Collection<Issue> issues);
+
}
\ No newline at end of file
diff --git a/server-core/src/main/java/io/onedev/server/entitymanager/impl/DefaultIssueManager.java b/server-core/src/main/java/io/onedev/server/entitymanager/impl/DefaultIssueManager.java
index 07aa05d8a9..e5a510f330 100644
--- a/server-core/src/main/java/io/onedev/server/entitymanager/impl/DefaultIssueManager.java
+++ b/server-core/src/main/java/io/onedev/server/entitymanager/impl/DefaultIssueManager.java
@@ -93,6 +93,8 @@ public class DefaultIssueManager extends BaseEntityManager<Issue> implements Iss
private final IssueLinkManager linkManager;
+ private final IssueScheduleManager scheduleManager;
+
private final ClusterManager clusterManager;
private final IssueTouchManager touchManager;
@@ -107,7 +109,8 @@ public class DefaultIssueManager extends BaseEntityManager<Issue> implements Iss
SettingManager settingManager, ListenerRegistry listenerRegistry,
ProjectManager projectManager, UserManager userManager, ClusterManager clusterManager,
RoleManager roleManager, LinkSpecManager linkSpecManager, IssueLinkManager linkManager,
- IssueAuthorizationManager authorizationManager, IssueTouchManager touchManager) {
+ IssueAuthorizationManager authorizationManager, IssueTouchManager touchManager,
+ IssueScheduleManager scheduleManager) {
super(dao);
this.fieldManager = fieldManager;
this.queryPersonalizationManager = queryPersonalizationManager;
@@ -122,6 +125,7 @@ public class DefaultIssueManager extends BaseEntityManager<Issue> implements Iss
this.authorizationManager = authorizationManager;
this.clusterManager = clusterManager;
this.touchManager = touchManager;
+ this.scheduleManager = scheduleManager;
numberGenerator = new SequenceGenerator(Issue.class, clusterManager, dao);
}
@@ -243,7 +247,7 @@ public class DefaultIssueManager extends BaseEntityManager<Issue> implements Iss
@Sessional
@Override
public List<Issue> query(@Nullable ProjectScope projectScope, EntityQuery<Issue> issueQuery,
- boolean loadFieldsAndLinks, int firstResult, int maxResults) {
+ boolean loadExtraInfo, int firstResult, int maxResults) {
CriteriaBuilder builder = getSession().getCriteriaBuilder();
CriteriaQuery<Issue> criteriaQuery = builder.createQuery(Issue.class);
Root<Issue> root = criteriaQuery.from(Issue.class);
@@ -255,9 +259,10 @@ public class DefaultIssueManager extends BaseEntityManager<Issue> implements Iss
query.setFirstResult(firstResult);
query.setMaxResults(maxResults);
List<Issue> issues = query.getResultList();
- if (loadFieldsAndLinks && !issues.isEmpty()) {
+ if (loadExtraInfo && !issues.isEmpty()) {
fieldManager.populateFields(issues);
linkManager.populateLinks(issues);
+ scheduleManager.populateSchedules(issues);
}
return issues;
}
diff --git a/server-core/src/main/java/io/onedev/server/entitymanager/impl/DefaultIssueScheduleManager.java b/server-core/src/main/java/io/onedev/server/entitymanager/impl/DefaultIssueScheduleManager.java
index fa79e22821..70301f9558 100644
--- a/server-core/src/main/java/io/onedev/server/entitymanager/impl/DefaultIssueScheduleManager.java
+++ b/server-core/src/main/java/io/onedev/server/entitymanager/impl/DefaultIssueScheduleManager.java
@@ -1,20 +1,24 @@
package io.onedev.server.entitymanager.impl;
-import java.util.Collection;
-import java.util.Iterator;
-
-import javax.inject.Inject;
-import javax.inject.Singleton;
-
import com.google.common.base.Preconditions;
import io.onedev.server.entitymanager.IssueScheduleManager;
import io.onedev.server.model.Issue;
import io.onedev.server.model.IssueSchedule;
import io.onedev.server.model.Iteration;
+import io.onedev.server.persistence.annotation.Sessional;
import io.onedev.server.persistence.annotation.Transactional;
import io.onedev.server.persistence.dao.BaseEntityManager;
import io.onedev.server.persistence.dao.Dao;
+import javax.inject.Inject;
+import javax.inject.Singleton;
+import javax.persistence.criteria.CriteriaBuilder;
+import javax.persistence.criteria.CriteriaQuery;
+import javax.persistence.criteria.Root;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+
@Singleton
public class DefaultIssueScheduleManager extends BaseEntityManager<IssueSchedule>
implements IssueScheduleManager {
@@ -52,4 +56,22 @@ public class DefaultIssueScheduleManager extends BaseEntityManager<IssueSchedule
dao.persist(schedule);
}
+ @Sessional
+ @Override
+ public void populateSchedules(Collection<Issue> issues) {
+ CriteriaBuilder builder = getSession().getCriteriaBuilder();
+ CriteriaQuery<IssueSchedule> query = builder.createQuery(IssueSchedule.class);
+
+ Root<IssueSchedule> root = query.from(IssueSchedule.class);
+ query.select(root);
+
+ query.where(root.get(IssueSchedule.PROP_ISSUE).in(issues));
+
+ for (Issue issue: issues)
+ issue.setSchedules(new ArrayList<>());
+
+ for (IssueSchedule schedule: getSession().createQuery(query).getResultList())
+ schedule.getIssue().getSchedules().add(schedule);
+ }
+
}
diff --git a/server-core/src/main/java/io/onedev/server/entitymanager/impl/DefaultIssueStateHistoryManager.java b/server-core/src/main/java/io/onedev/server/entitymanager/impl/DefaultIssueStateHistoryManager.java
index cc4c06cbdd..534b6e575b 100644
--- a/server-core/src/main/java/io/onedev/server/entitymanager/impl/DefaultIssueStateHistoryManager.java
+++ b/server-core/src/main/java/io/onedev/server/entitymanager/impl/DefaultIssueStateHistoryManager.java
@@ -146,5 +146,5 @@ public class DefaultIssueStateHistoryManager extends BaseEntityManager<IssueStat
}
return stats;
}
-
+
}
diff --git a/server-core/src/main/java/io/onedev/server/entitymanager/impl/DefaultStopwatchManager.java b/server-core/src/main/java/io/onedev/server/entitymanager/impl/DefaultStopwatchManager.java
index 8e0042d787..e925aa1231 100644
--- a/server-core/src/main/java/io/onedev/server/entitymanager/impl/DefaultStopwatchManager.java
+++ b/server-core/src/main/java/io/onedev/server/entitymanager/impl/DefaultStopwatchManager.java
@@ -20,7 +20,7 @@ import io.onedev.server.persistence.dao.BaseEntityManager;
import io.onedev.server.persistence.dao.Dao;
import io.onedev.server.taskschedule.SchedulableTask;
import io.onedev.server.taskschedule.TaskScheduler;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import org.hibernate.criterion.Restrictions;
import org.quartz.CronScheduleBuilder;
import org.quartz.ScheduleBuilder;
diff --git a/server-core/src/main/java/io/onedev/server/git/GitContributor.java b/server-core/src/main/java/io/onedev/server/git/GitContributor.java
index 4037327643..4ed9906404 100644
--- a/server-core/src/main/java/io/onedev/server/git/GitContributor.java
+++ b/server-core/src/main/java/io/onedev/server/git/GitContributor.java
@@ -1,11 +1,9 @@
package io.onedev.server.git;
-import java.io.Serializable;
-import java.util.Map;
-
import org.eclipse.jgit.lib.PersonIdent;
-import io.onedev.server.util.date.Day;
+import java.io.Serializable;
+import java.util.Map;
public class GitContributor implements Serializable {
@@ -15,9 +13,9 @@ public class GitContributor implements Serializable {
private final GitContribution totalContribution;
- private final Map<Day, Integer> dailyContributions;
+ private final Map<Integer, Integer> dailyContributions;
- public GitContributor(PersonIdent author, GitContribution totalContribution, Map<Day, Integer> dailyContributions) {
+ public GitContributor(PersonIdent author, GitContribution totalContribution, Map<Integer, Integer> dailyContributions) {
this.author = author;
this.totalContribution = totalContribution;
this.dailyContributions = dailyContributions;
@@ -31,7 +29,7 @@ public class GitContributor implements Serializable {
return totalContribution;
}
- public Map<Day, Integer> getDailyContributions() {
+ public Map<Integer, Integer> getDailyContributions() {
return dailyContributions;
}
diff --git a/server-core/src/main/java/io/onedev/server/model/AbstractEntity.java b/server-core/src/main/java/io/onedev/server/model/AbstractEntity.java
index cc7d3fdb91..323be905a0 100644
--- a/server-core/src/main/java/io/onedev/server/model/AbstractEntity.java
+++ b/server-core/src/main/java/io/onedev/server/model/AbstractEntity.java
@@ -28,6 +28,8 @@ public abstract class AbstractEntity implements Serializable, Comparable<Abstrac
public static final String PROP_ID = "id";
+ public static final String NAME_ID = "Id";
+
public static final String PROP_NUMBER_SCOPE = "numberScope";
public static final String NAME_NUMBER = "Number";
diff --git a/server-core/src/main/java/io/onedev/server/model/IssueSchedule.java b/server-core/src/main/java/io/onedev/server/model/IssueSchedule.java
index 500a41fcd7..2ce4ca614d 100644
--- a/server-core/src/main/java/io/onedev/server/model/IssueSchedule.java
+++ b/server-core/src/main/java/io/onedev/server/model/IssueSchedule.java
@@ -1,18 +1,11 @@
package io.onedev.server.model;
-import java.util.Date;
-
-import javax.persistence.Entity;
-import javax.persistence.FetchType;
-import javax.persistence.Index;
-import javax.persistence.JoinColumn;
-import javax.persistence.ManyToOne;
-import javax.persistence.Table;
-import javax.persistence.UniqueConstraint;
-
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
+import javax.persistence.*;
+import java.util.Date;
+
@Entity
@Table(
indexes={@Index(columnList="o_issue_id"), @Index(columnList="o_iteration_id")},
@@ -31,7 +24,7 @@ public class IssueSchedule extends AbstractEntity {
public static String PROP_DATE = "date";
- @ManyToOne(fetch=FetchType.LAZY)
+ @ManyToOne
@JoinColumn(nullable=false)
private Issue issue;
diff --git a/server-core/src/main/java/io/onedev/server/model/Project.java b/server-core/src/main/java/io/onedev/server/model/Project.java
index 36932bc378..4aa66f509f 100644
--- a/server-core/src/main/java/io/onedev/server/model/Project.java
+++ b/server-core/src/main/java/io/onedev/server/model/Project.java
@@ -163,10 +163,11 @@ public class Project extends AbstractEntity implements LabelSupport<ProjectLabel
public static final String NULL_SERVICE_DESK_PREFIX = "<$NullServiceDesk$>";
public static final List<String> QUERY_FIELDS = Lists.newArrayList(
- NAME_NAME, NAME_KEY, NAME_PATH, NAME_LABEL, NAME_SERVICE_DESK_NAME, NAME_DESCRIPTION, NAME_LAST_ACTIVITY_DATE, NAME_LAST_COMMIT_DATE);
+ NAME_NAME, NAME_KEY, NAME_PATH, NAME_LABEL, NAME_SERVICE_DESK_NAME, NAME_ID, NAME_DESCRIPTION, NAME_LAST_ACTIVITY_DATE, NAME_LAST_COMMIT_DATE);
public static final Map<String, String> ORDER_FIELDS = CollectionUtils.newLinkedHashMap(
NAME_PATH, PROP_PATH,
+ NAME_ID, PROP_ID,
NAME_NAME, PROP_NAME,
NAME_KEY, PROP_KEY,
NAME_SERVICE_DESK_NAME, PROP_SERVICE_DESK_NAME,
diff --git a/server-core/src/main/java/io/onedev/server/model/support/TimeGroups.java b/server-core/src/main/java/io/onedev/server/model/support/TimeGroups.java
index 0bcbe69fa5..110235a8be 100644
--- a/server-core/src/main/java/io/onedev/server/model/support/TimeGroups.java
+++ b/server-core/src/main/java/io/onedev/server/model/support/TimeGroups.java
@@ -1,12 +1,11 @@
package io.onedev.server.model.support;
-import io.onedev.server.util.date.Day;
-import io.onedev.server.util.date.Hour;
-import io.onedev.server.util.date.Month;
-import io.onedev.server.util.date.Week;
+import io.onedev.server.util.DateUtils;
import javax.persistence.Embeddable;
import java.io.Serializable;
+import java.time.DayOfWeek;
+import java.time.temporal.TemporalAdjusters;
import java.util.Date;
@Embeddable
@@ -52,9 +51,10 @@ public class TimeGroups implements Serializable {
public static TimeGroups of(Date date) {
var timeGroups = new TimeGroups();
- timeGroups.setMonth(new Month(date).getValue());
- timeGroups.setWeek(new Week(date).getValue());
- timeGroups.setDay(new Day(date).getValue());
+ var localDate = DateUtils.toLocalDate(date);
+ timeGroups.setMonth((int) localDate.with(TemporalAdjusters.firstDayOfMonth()).toEpochDay());
+ timeGroups.setWeek((int) localDate.with(TemporalAdjusters.previousOrSame(DayOfWeek.MONDAY)).toEpochDay());
+ timeGroups.setDay((int) localDate.toEpochDay());
return timeGroups;
}
}
diff --git a/server-core/src/main/java/io/onedev/server/rest/resource/IssueWorkResource.java b/server-core/src/main/java/io/onedev/server/rest/resource/IssueWorkResource.java
index 1f22a5cca2..7bc726a184 100644
--- a/server-core/src/main/java/io/onedev/server/rest/resource/IssueWorkResource.java
+++ b/server-core/src/main/java/io/onedev/server/rest/resource/IssueWorkResource.java
@@ -5,7 +5,7 @@ import io.onedev.server.entitymanager.IssueWorkManager;
import io.onedev.server.model.IssueWork;
import io.onedev.server.rest.annotation.Api;
import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import org.apache.shiro.authz.UnauthorizedException;
import javax.inject.Inject;
diff --git a/server-core/src/main/java/io/onedev/server/rest/resource/ProjectResource.java b/server-core/src/main/java/io/onedev/server/rest/resource/ProjectResource.java
index f985448350..638380b5b2 100644
--- a/server-core/src/main/java/io/onedev/server/rest/resource/ProjectResource.java
+++ b/server-core/src/main/java/io/onedev/server/rest/resource/ProjectResource.java
@@ -22,8 +22,7 @@ import io.onedev.server.rest.annotation.Api;
import io.onedev.server.rest.resource.support.RestConstants;
import io.onedev.server.search.entity.project.ProjectQuery;
import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.util.date.DateUtils;
-import io.onedev.server.util.date.Day;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.util.facade.ProjectFacade;
import io.onedev.server.web.UrlManager;
import io.onedev.server.web.page.project.setting.ContributedProjectSetting;
@@ -223,11 +222,10 @@ public class ProjectResource {
if (count > RestConstants.MAX_PAGE_SIZE)
throw new InvalidParamException("Count should not be greater than " + RestConstants.MAX_PAGE_SIZE);
- Day sinceDay = new Day(LocalDate.parse(since));
- Day untilDay = new Day(LocalDate.parse(until));
+ int sinceDay = (int) LocalDate.parse(since).toEpochDay();
+ int untilDay = (int) LocalDate.parse(until).toEpochDay();
- return commitInfoManager.getTopContributors(project.getId(),
- count, type, sinceDay.getValue(), untilDay.getValue());
+ return commitInfoManager.getTopContributors(project.getId(), count, type, sinceDay, untilDay);
}
@SuppressWarnings("unused")
diff --git a/server-core/src/main/java/io/onedev/server/search/commit/AfterCriteria.java b/server-core/src/main/java/io/onedev/server/search/commit/AfterCriteria.java
index 1efe86c9b1..d458cc1ff2 100644
--- a/server-core/src/main/java/io/onedev/server/search/commit/AfterCriteria.java
+++ b/server-core/src/main/java/io/onedev/server/search/commit/AfterCriteria.java
@@ -11,7 +11,7 @@ import com.google.common.base.Preconditions;
import io.onedev.server.event.project.RefUpdated;
import io.onedev.server.git.command.RevListOptions;
import io.onedev.server.model.Project;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
public class AfterCriteria extends CommitCriteria {
diff --git a/server-core/src/main/java/io/onedev/server/search/commit/BeforeCriteria.java b/server-core/src/main/java/io/onedev/server/search/commit/BeforeCriteria.java
index 2a166e7fa2..bcdfda1292 100644
--- a/server-core/src/main/java/io/onedev/server/search/commit/BeforeCriteria.java
+++ b/server-core/src/main/java/io/onedev/server/search/commit/BeforeCriteria.java
@@ -11,7 +11,7 @@ import com.google.common.base.Preconditions;
import io.onedev.server.event.project.RefUpdated;
import io.onedev.server.git.command.RevListOptions;
import io.onedev.server.model.Project;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
public class BeforeCriteria extends CommitCriteria {
diff --git a/server-core/src/main/java/io/onedev/server/search/entity/EntityQuery.java b/server-core/src/main/java/io/onedev/server/search/entity/EntityQuery.java
index 911cb1b933..0864d8a193 100644
--- a/server-core/src/main/java/io/onedev/server/search/entity/EntityQuery.java
+++ b/server-core/src/main/java/io/onedev/server/search/entity/EntityQuery.java
@@ -10,7 +10,7 @@ import io.onedev.server.entityreference.BuildReference;
import io.onedev.server.entityreference.IssueReference;
import io.onedev.server.entityreference.PullRequestReference;
import io.onedev.server.model.*;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.util.ProjectScopedCommit;
import io.onedev.server.util.ProjectScopedRevision;
import io.onedev.server.util.criteria.Criteria;
diff --git a/server-core/src/main/java/io/onedev/server/search/entity/issue/LastActivityDateCriteria.java b/server-core/src/main/java/io/onedev/server/search/entity/issue/LastActivityDateCriteria.java
index 56b1161c61..6c6f222587 100644
--- a/server-core/src/main/java/io/onedev/server/search/entity/issue/LastActivityDateCriteria.java
+++ b/server-core/src/main/java/io/onedev/server/search/entity/issue/LastActivityDateCriteria.java
@@ -11,7 +11,7 @@ import javax.persistence.criteria.Predicate;
import io.onedev.server.model.Issue;
import io.onedev.server.model.support.LastActivity;
import io.onedev.server.search.entity.EntityQuery;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.util.criteria.Criteria;
public class LastActivityDateCriteria extends Criteria<Issue> {
diff --git a/server-core/src/main/java/io/onedev/server/search/entity/project/IdCriteria.java b/server-core/src/main/java/io/onedev/server/search/entity/project/IdCriteria.java
new file mode 100644
index 0000000000..14b4007acd
--- /dev/null
+++ b/server-core/src/main/java/io/onedev/server/search/entity/project/IdCriteria.java
@@ -0,0 +1,47 @@
+package io.onedev.server.search.entity.project;
+
+import io.onedev.server.model.Project;
+import io.onedev.server.util.criteria.Criteria;
+
+import javax.persistence.criteria.CriteriaBuilder;
+import javax.persistence.criteria.CriteriaQuery;
+import javax.persistence.criteria.From;
+import javax.persistence.criteria.Predicate;
+
+public class IdCriteria extends Criteria<Project> {
+
+ private static final long serialVersionUID = 1L;
+
+ private final long value;
+
+ private final int operator;
+
+ public IdCriteria(long value, int operator) {
+ this.value = value;
+ this.operator = operator;
+ }
+
+ @Override
+ public Predicate getPredicate(CriteriaQuery<?> query, From<Project, Project> from, CriteriaBuilder builder) {
+ if (operator == ProjectQueryLexer.Is)
+ return builder.equal(from.get(Project.PROP_ID), value);
+ else
+ return builder.not(builder.equal(from.get(Project.PROP_ID), value));
+ }
+
+ @Override
+ public boolean matches(Project project) {
+ if (operator == ProjectQueryLexer.Is)
+ return project.getId().equals(value);
+ else
+ return !project.getId().equals(value);
+ }
+
+ @Override
+ public String toStringWithoutParens() {
+ return Criteria.quote(Project.NAME_ID) + " "
+ + ProjectQuery.getRuleName(operator) + " "
+ + Criteria.quote(String.valueOf(value));
+ }
+
+}
diff --git a/server-core/src/main/java/io/onedev/server/search/entity/project/ProjectQuery.java b/server-core/src/main/java/io/onedev/server/search/entity/project/ProjectQuery.java
index 81f70106e8..aa9dc02b66 100644
--- a/server-core/src/main/java/io/onedev/server/search/entity/project/ProjectQuery.java
+++ b/server-core/src/main/java/io/onedev/server/search/entity/project/ProjectQuery.java
@@ -144,6 +144,8 @@ public class ProjectQuery extends EntityQuery<Project> {
case Is:
case IsNot:
switch (fieldName) {
+ case Project.NAME_ID:
+ return new IdCriteria(getLongValue(value), operator);
case Project.NAME_NAME:
return new NameCriteria(value, operator);
case Project.NAME_KEY:
@@ -230,6 +232,7 @@ public class ProjectQuery extends EntityQuery<Project> {
case Is:
case IsNot:
if (!fieldName.equals(Project.NAME_NAME)
+ && !fieldName.equals(Project.NAME_ID)
&& !fieldName.equals(Project.NAME_KEY)
&& !fieldName.equals(Project.NAME_LABEL)
&& !fieldName.equals(Project.NAME_SERVICE_DESK_NAME)
diff --git a/server-core/src/main/java/io/onedev/server/util/date/DateUtils.java b/server-core/src/main/java/io/onedev/server/util/DateUtils.java
similarity index 96%
rename from server-core/src/main/java/io/onedev/server/util/date/DateUtils.java
rename to server-core/src/main/java/io/onedev/server/util/DateUtils.java
index 43582e2f7a..bcceb5db25 100644
--- a/server-core/src/main/java/io/onedev/server/util/date/DateUtils.java
+++ b/server-core/src/main/java/io/onedev/server/util/DateUtils.java
@@ -1,10 +1,9 @@
-package io.onedev.server.util.date;
+package io.onedev.server.util;
import com.google.common.collect.Lists;
import com.joestelmach.natty.DateGroup;
import com.joestelmach.natty.Parser;
import io.onedev.k8shelper.KubernetesHelper;
-import io.onedev.server.util.Constants;
import org.joda.time.DateTime;
import org.joda.time.format.ISODateTimeFormat;
import org.ocpsoft.prettytime.PrettyTime;
@@ -66,4 +65,5 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
public static Date toDate(LocalDateTime localDateTime) {
return Date.from(localDateTime.atZone(ZoneId.systemDefault()).toInstant());
}
+
}
\ No newline at end of file
diff --git a/server-core/src/main/java/io/onedev/server/util/date/Day.java b/server-core/src/main/java/io/onedev/server/util/date/Day.java
deleted file mode 100644
index 0dd99fe09e..0000000000
--- a/server-core/src/main/java/io/onedev/server/util/date/Day.java
+++ /dev/null
@@ -1,110 +0,0 @@
-package io.onedev.server.util.date;
-
-import java.io.Serializable;
-import java.time.LocalDate;
-import java.util.Date;
-
-import org.apache.commons.lang3.builder.EqualsBuilder;
-import org.apache.commons.lang3.builder.HashCodeBuilder;
-import org.joda.time.DateTime;
-
-import io.onedev.server.rest.annotation.Api;
-
-@Api(description="Date in yyyy-MM-dd format", example="2021-01-01")
-public class Day implements Serializable, Comparable<Day> {
-
- private static final long serialVersionUID = 1L;
-
- private final int year;
-
- private final int monthOfYear;
-
- private final int dayOfMonth;
-
- public Day(Date date) {
- this(new DateTime(date));
- }
-
- public Day(DateTime dateTime) {
- this(dateTime.getYear(), dateTime.getMonthOfYear(), dateTime.getDayOfMonth());
- }
-
- public Day(int year, int monthOfYear, int dayOfMonth) {
- this.year = year;
- this.monthOfYear = monthOfYear;
- this.dayOfMonth = dayOfMonth;
- }
-
- public Day(LocalDate date) {
- this(date.getYear(), date.getMonthValue(), date.getDayOfMonth());
- }
-
- public Day(int value) {
- this(value>>>16, (value&0x0000ffff)>>>8, value&0x000000ff);
- }
-
- public int getValue() {
- return (year<<16) | (monthOfYear<<8) | dayOfMonth;
- }
-
- public DateTime getDate() {
- return new DateTime(year, monthOfYear, dayOfMonth, 0, 0);
- }
-
- @Override
- public int compareTo(Day day) {
- if (year < day.year)
- return -1;
- else if (year > day.year)
- return 1;
- else if (monthOfYear < day.monthOfYear)
- return -1;
- else if (monthOfYear > day.monthOfYear)
- return 1;
- else
- return dayOfMonth - day.dayOfMonth;
- }
-
- public int getYear() {
- return year;
- }
-
- public int getMonthOfYear() {
- return monthOfYear;
- }
-
- public int getDayOfMonth() {
- return dayOfMonth;
- }
-
- @Override
- public boolean equals(Object other) {
- if (this == other) {
- return true;
- } else if (other instanceof Day) {
- Day otherDay = (Day) other;
- return new EqualsBuilder()
- .append(year, otherDay.year)
- .append(monthOfYear, otherDay.monthOfYear)
- .append(dayOfMonth, otherDay.dayOfMonth)
- .isEquals();
- } else {
- return false;
- }
- }
-
- @Override
- public int hashCode() {
- return new HashCodeBuilder(17, 37)
- .append(year)
- .append(monthOfYear)
- .append(dayOfMonth)
- .toHashCode();
- }
-
- @Override
- public String toString() {
- return String.format("%02d-%02d", monthOfYear, dayOfMonth);
- }
-
-}
diff --git a/server-core/src/main/java/io/onedev/server/util/date/Hour.java b/server-core/src/main/java/io/onedev/server/util/date/Hour.java
deleted file mode 100644
index 1509eaed95..0000000000
--- a/server-core/src/main/java/io/onedev/server/util/date/Hour.java
+++ /dev/null
@@ -1,117 +0,0 @@
-package io.onedev.server.util.date;
-
-import io.onedev.server.rest.annotation.Api;
-import org.apache.commons.lang3.builder.EqualsBuilder;
-import org.apache.commons.lang3.builder.HashCodeBuilder;
-import org.joda.time.DateTime;
-
-import java.io.Serializable;
-import java.time.LocalDate;
-import java.util.Date;
-
-public class Hour implements Serializable, Comparable<Hour> {
-
- private static final long serialVersionUID = 1L;
-
- private final int year;
-
- private final int monthOfYear;
-
- private final int dayOfMonth;
-
- private final int hourOfDay;
-
- public Hour(Date date) {
- this(new DateTime(date));
- }
-
- public Hour(DateTime dateTime) {
- this(dateTime.getYear(), dateTime.getMonthOfYear(), dateTime.getDayOfMonth(), dateTime.getHourOfDay());
- }
-
- public Hour(int year, int monthOfYear, int dayOfMonth, int hourOfDay) {
- this.year = year;
- this.monthOfYear = monthOfYear;
- this.dayOfMonth = dayOfMonth;
- this.hourOfDay = hourOfDay;
- }
-
- public Hour(int value) {
- this(value>>>16, (value&0x0000ffff)>>>12, (value&0x00000fff)>>>6, value&0x0000003f);
- }
-
- public int getValue() {
- return (year<<16) | (monthOfYear<<12) | (dayOfMonth<<6) | hourOfDay;
- }
-
- public DateTime getDate() {
- return new DateTime(year, monthOfYear, dayOfMonth, hourOfDay, 0);
- }
-
- @Override
- public int compareTo(Hour hour) {
- if (year < hour.year)
- return -1;
- else if (year > hour.year)
- return 1;
- else if (monthOfYear < hour.monthOfYear)
- return -1;
- else if (monthOfYear > hour.monthOfYear)
- return 1;
- else if (dayOfMonth < hour.dayOfMonth)
- return -1;
- else if (dayOfMonth > hour.dayOfMonth)
- return 1;
- else
- return hourOfDay - hour.hourOfDay;
- }
-
- public int getYear() {
- return year;
- }
-
- public int getMonthOfYear() {
- return monthOfYear;
- }
-
- public int getDayOfMonth() {
- return dayOfMonth;
- }
-
- public int getHourOfDay() {
- return hourOfDay;
- }
-
- @Override
- public boolean equals(Object other) {
- if (this == other) {
- return true;
- } else if (other instanceof Hour) {
- Hour otherHour = (Hour) other;
- return new EqualsBuilder()
- .append(year, otherHour.year)
- .append(monthOfYear, otherHour.monthOfYear)
- .append(dayOfMonth, otherHour.dayOfMonth)
- .append(hourOfDay, otherHour.hourOfDay)
- .isEquals();
- } else {
- return false;
- }
- }
-
- @Override
- public int hashCode() {
- return new HashCodeBuilder(17, 37)
- .append(year)
- .append(monthOfYear)
- .append(dayOfMonth)
- .append(hourOfDay)
- .toHashCode();
- }
-
- @Override
- public String toString() {
- return String.format("%02d", hourOfDay);
- }
-
-}
diff --git a/server-core/src/main/java/io/onedev/server/util/date/Month.java b/server-core/src/main/java/io/onedev/server/util/date/Month.java
deleted file mode 100644
index 7c81060499..0000000000
--- a/server-core/src/main/java/io/onedev/server/util/date/Month.java
+++ /dev/null
@@ -1,89 +0,0 @@
-package io.onedev.server.util.date;
-
-import org.apache.commons.lang3.builder.EqualsBuilder;
-import org.apache.commons.lang3.builder.HashCodeBuilder;
-import org.joda.time.DateTime;
-
-import java.io.Serializable;
-import java.util.Date;
-
-public class Month implements Serializable, Comparable<Month> {
-
- private static final long serialVersionUID = 1L;
-
- private final int year;
-
- private final int monthOfYear;
-
- public Month(Date date) {
- this(new DateTime(date));
- }
-
- public Month(DateTime dateTime) {
- this(dateTime.getYear(), dateTime.getMonthOfYear());
- }
-
- public Month(int year, int monthOfYear) {
- this.year = year;
- this.monthOfYear = monthOfYear;
- }
-
- public Month(int value) {
- this(value>>>16, value&0x0000ffff);
- }
-
- public int getValue() {
- return (year<<16) | monthOfYear;
- }
-
- public DateTime getDate() {
- return new DateTime(year, monthOfYear, 1, 0, 0);
- }
-
- @Override
- public int compareTo(Month month) {
- if (year < month.year)
- return -1;
- else if (year > month.year)
- return 1;
- else
- return monthOfYear - month.monthOfYear;
- }
-
- public int getYear() {
- return year;
- }
-
- public int getMonthOfYear() {
- return monthOfYear;
- }
-
- @Override
- public boolean equals(Object other) {
- if (this == other) {
- return true;
- } else if (other instanceof Month) {
- Month otherDay = (Month) other;
- return new EqualsBuilder()
- .append(year, otherDay.year)
- .append(monthOfYear, otherDay.monthOfYear)
- .isEquals();
- } else {
- return false;
- }
- }
-
- @Override
- public int hashCode() {
- return new HashCodeBuilder(17, 37)
- .append(year)
- .append(monthOfYear)
- .toHashCode();
- }
-
- @Override
- public String toString() {
- return String.format("%04d-%02d", year, monthOfYear);
- }
-
-}
diff --git a/server-core/src/main/java/io/onedev/server/util/date/Week.java b/server-core/src/main/java/io/onedev/server/util/date/Week.java
deleted file mode 100644
index 28798dbcc9..0000000000
--- a/server-core/src/main/java/io/onedev/server/util/date/Week.java
+++ /dev/null
@@ -1,89 +0,0 @@
-package io.onedev.server.util.date;
-
-import org.apache.commons.lang3.builder.EqualsBuilder;
-import org.apache.commons.lang3.builder.HashCodeBuilder;
-import org.joda.time.DateTime;
-
-import java.io.Serializable;
-import java.util.Date;
-
-public class Week implements Serializable, Comparable<Week> {
-
- private static final long serialVersionUID = 1L;
-
- private final int weekyear;
-
- private final int weekOfWeekyear;
-
- public Week(Date date) {
- this(new DateTime(date));
- }
-
- public Week(DateTime dateTime) {
- this(dateTime.getWeekyear(), dateTime.getWeekOfWeekyear());
- }
-
- public Week(int weekyear, int weekOfWeekyear) {
- this.weekyear = weekyear;
- this.weekOfWeekyear = weekOfWeekyear;
- }
-
- public Week(int value) {
- this(value>>>16, value&0x0000ffff);
- }
-
- public int getValue() {
- return (weekyear<<16) | weekOfWeekyear;
- }
-
- public DateTime getDate() {
- return new DateTime().withWeekyear(weekyear).withWeekOfWeekyear(weekOfWeekyear).withDayOfWeek(1).withHourOfDay(0).withMinuteOfHour(0);
- }
-
- @Override
- public int compareTo(Week week) {
- if (weekyear < week.weekyear)
- return -1;
- else if (weekyear > week.weekyear)
- return 1;
- else
- return weekOfWeekyear - week.weekOfWeekyear;
- }
-
- public int getWeekyear() {
- return weekyear;
- }
-
- public int getWeekOfWeekyear() {
- return weekOfWeekyear;
- }
-
- @Override
- public boolean equals(Object other) {
- if (this == other) {
- return true;
- } else if (other instanceof Week) {
- Week otherWeek = (Week) other;
- return new EqualsBuilder()
- .append(weekyear, otherWeek.weekyear)
- .append(weekOfWeekyear, otherWeek.weekOfWeekyear)
- .isEquals();
- } else {
- return false;
- }
- }
-
- @Override
- public int hashCode() {
- return new HashCodeBuilder(17, 37)
- .append(weekyear)
- .append(weekOfWeekyear)
- .toHashCode();
- }
-
- @Override
- public String toString() {
- return String.format("w%02d", weekOfWeekyear);
- }
-
-}
diff --git a/server-core/src/main/java/io/onedev/server/web/asset/day/DayResourceReference.java b/server-core/src/main/java/io/onedev/server/web/asset/day/DayResourceReference.java
deleted file mode 100644
index 0d6994ac02..0000000000
--- a/server-core/src/main/java/io/onedev/server/web/asset/day/DayResourceReference.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package io.onedev.server.web.asset.day;
-
-import io.onedev.server.web.page.base.BaseDependentResourceReference;
-
-public class DayResourceReference extends BaseDependentResourceReference {
-
- private static final long serialVersionUID = 1L;
-
- public DayResourceReference() {
- super(DayResourceReference.class, "day.js");
- }
-
-}
diff --git a/server-core/src/main/java/io/onedev/server/web/asset/day/day.js b/server-core/src/main/java/io/onedev/server/web/asset/day/day.js
deleted file mode 100644
index 1a5159b22b..0000000000
--- a/server-core/src/main/java/io/onedev/server/web/asset/day/day.js
+++ /dev/null
@@ -1,44 +0,0 @@
-onedev.server.day = {
- format: function(day) {
- return day.year%100 + "-" + (day.monthOfYear + 1) + "-" + day.dayOfMonth;
- },
- compare: function(day1, day2) {
- if (day1.year < day2.year)
- return -1;
- else if (day1.year > day2.year)
- return 1;
- else if (day1.monthOfYear < day2.monthOfYear)
- return -1;
- else if (day1.monthOfYear > day2.monthOfYear)
- return 1;
- else
- return day1.dayOfMonth - day2.dayOfMonth;
- },
- fromDate: function(date) {
- return {
- year: date.getFullYear(),
- monthOfYear: date.getMonth(),
- dayOfMonth: date.getDate()
- }
- },
- toDate: function(day) {
- return new Date(day.year, day.monthOfYear, day.dayOfMonth, 0, 0, 0, 0);
- },
- fromValue: function(dayValue) {
- return {
- year: dayValue>>>16,
- monthOfYear: ((dayValue&0x0000ffff)>>>8),
- dayOfMonth: dayValue&0x000000ff
- }
- },
- toValue: function(day) {
- return (day.year<<16) | (day.monthOfYear<<8) | day.dayOfMonth;
- },
- plus(day, numberOfDays) {
- return onedev.server.day.fromDate(onedev.server.day.toDate({
- year: day.year,
- monthOfYear: day.monthOfYear,
- dayOfMonth: day.dayOfMonth+numberOfDays
- }));
- }
-}
\ No newline at end of file
diff --git a/server-core/src/main/java/io/onedev/server/web/asset/jsjoda/JsJodaResourceReference.java b/server-core/src/main/java/io/onedev/server/web/asset/jsjoda/JsJodaResourceReference.java
new file mode 100644
index 0000000000..d94072fc2f
--- /dev/null
+++ b/server-core/src/main/java/io/onedev/server/web/asset/jsjoda/JsJodaResourceReference.java
@@ -0,0 +1,13 @@
+package io.onedev.server.web.asset.jsjoda;
+
+import io.onedev.server.web.page.base.BaseDependentResourceReference;
+
+public class JsJodaResourceReference extends BaseDependentResourceReference {
+
+ private static final long serialVersionUID = 1L;
+
+ public JsJodaResourceReference() {
+ super(JsJodaResourceReference.class, "js-joda.min.js");
+ }
+
+}
diff --git a/server-core/src/main/java/io/onedev/server/web/asset/jsjoda/js-joda.min.js b/server-core/src/main/java/io/onedev/server/web/asset/jsjoda/js-joda.min.js
new file mode 100644
index 0000000000..8efca59bc6
--- /dev/null
+++ b/server-core/src/main/java/io/onedev/server/web/asset/jsjoda/js-joda.min.js
@@ -0,0 +1,5 @@
+//! @version js-joda - 1.11.0
+//! @copyright (c) 2015-present, Philipp Thürwächter, Pattrick Hüper & js-joda contributors
+//! @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
+//! @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
+var JSJoda=function(t){"use strict";function e(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:Error;function o(t){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,e&&e.apply(this,arguments),this.toString=function(){return this.name+": "+this.message}}return(o.prototype=new n).name=t,o.prototype.constructor=o}var T=e("DateTimeException",function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,n=t||this.name;null!==e&&e instanceof Error&&(n+="\n-------\nCaused by: "+e.stack+"\n-------\n");this.message=n}),d=e("DateTimeParseException",function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,r=t||this.name;r+=": "+e+", at index: "+n,null!==o&&o instanceof Error&&(r+="\n-------\nCaused by: "+o.stack+"\n-------\n");this.message=r,this.parsedString=function(){return e},this.errorIndex=function(){return n}}),h=e("UnsupportedTemporalTypeException",null,T),E=e("ArithmeticException"),c=e("IllegalArgumentException"),i=e("IllegalStateException"),s=e("NullPointerException");function S(t,e,n){if(!t)throw n?new n(e):new Error(e)}function y(t,e){if(null==t)throw new s(e+" must not be null");return t}function l(t,e,n){if(!(t instanceof e))throw new c(n+" must be an instance of "+(e.name?e.name:e)+(t&&t.constructor&&t.constructor.name?", but is "+t.constructor.name:""));return t}function n(t){throw new TypeError('abstract method "'+t+'" is not implemented')}var o=Object.freeze({assert:S,requireNonNull:y,requireInstance:l,abstractMethodFail:n});var r=9007199254740991,a=-9007199254740991,g=function(){function u(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u)}return u.intDiv=function(t,e){var n=t/e;return n=u.roundDown(n),u.safeZero(n)},u.intMod=function(t,e){var n=t-u.intDiv(t,e)*e;return n=u.roundDown(n),u.safeZero(n)},u.roundDown=function(t){return t<0?Math.ceil(t):Math.floor(t)},u.floorDiv=function(t,e){var n=Math.floor(t/e);return u.safeZero(n)},u.floorMod=function(t,e){var n=t-u.floorDiv(t,e)*e;return u.safeZero(n)},u.safeAdd=function(t,e){if(u.verifyInt(t),u.verifyInt(e),0===t)return u.safeZero(e);if(0===e)return u.safeZero(t);var n=u.safeToInt(t+e);if(n===t||n===e)throw new E("Invalid addition beyond MAX_SAFE_INTEGER!");return n},u.safeSubtract=function(t,e){return u.verifyInt(t),u.verifyInt(e),0===t&&0===e?0:0===t?u.safeZero(-1*e):0===e?u.safeZero(t):u.safeToInt(t-e)},u.safeMultiply=function(t,e){if(u.verifyInt(t),u.verifyInt(e),1===t)return u.safeZero(e);if(1===e)return u.safeZero(t);if(0===t||0===e)return 0;var n=u.safeToInt(t*e);if(n/e!==t||t===a&&-1===e||e===a&&-1===t)throw new E("Multiplication overflows: "+t+" * "+e);return n},u.parseInt=function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(t){var e=parseInt(t);return u.safeToInt(e)}),u.safeToInt=function(t){return u.verifyInt(t),u.safeZero(t)},u.verifyInt=function(t){if(null==t)throw new E("Invalid value: '"+t+"', using null or undefined as argument");if(isNaN(t))throw new E("Invalid int value, using NaN as argument");if(t%1!=0)throw new E("Invalid value: '"+t+"' is a float");if(r<t||t<a)throw new E("Calculation overflows an int: "+t)},u.safeZero=function(t){return 0===t?0:+t},u.compareNumbers=function(t,e){return t<e?-1:e<t?1:0},u.smi=function(t){return t>>>1&1073741824|3221225471&t},u.hash=function(t){if(t!=t||t===1/0)return 0;for(var e=t;4294967295<t;)e^=t/=4294967295;return u.smi(e)},u.hashCode=function(){for(var t=17,e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];var r=n,i=Array.isArray(r),s=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(s>=r.length)break;a=r[s++]}else{if((s=r.next()).done)break;a=s.value}t=(t<<5)-t+u.hash(a)}return u.hash(t)},u}();g.MAX_SAFE_INTEGER=r,g.MIN_SAFE_INTEGER=a;var u=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this._name=t}return e.prototype.equals=function(t){return this===t},e.prototype.toString=function(){return this._name},e.prototype.toJSON=function(){return this.toString()},e}();var p=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.prototype.get=function(t){n("get")},t.prototype.units=function(){n("units")},t.prototype.addTo=function(t){n("addTo")},t.prototype.subtractFrom=function(t){n("subtractFrom")},t}();var f=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.prototype.duration=function(){n("duration")},t.prototype.isDurationEstimated=function(){n("isDurationEstimated")},t.prototype.isDateBased=function(){n("isDateBased")},t.prototype.isTimeBased=function(){n("isTimeBased")},t.prototype.isSupportedBy=function(t){n("isSupportedBy")},t.prototype.addTo=function(t,e){n("addTo")},t.prototype.between=function(t,e){n("between")},t}();var _=function(o){function _(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,_);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,o.call(this));return n._seconds=g.safeToInt(t),n._nanos=g.safeToInt(e),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(_,o),_.ofDays=function(t){return _._create(g.safeMultiply(t,Ee.SECONDS_PER_DAY),0)},_.ofHours=function(t){return _._create(g.safeMultiply(t,Ee.SECONDS_PER_HOUR),0)},_.ofMinutes=function(t){return _._create(g.safeMultiply(t,Ee.SECONDS_PER_MINUTE),0)},_.ofSeconds=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=g.safeAdd(t,g.floorDiv(e,Ee.NANOS_PER_SECOND)),o=g.floorMod(e,Ee.NANOS_PER_SECOND);return _._create(n,o)},_.ofMillis=function(t){var e=g.intDiv(t,1e3),n=g.intMod(t,1e3);return n<0&&(n+=1e3,e--),_._create(e,1e6*n)},_.ofNanos=function(t){var e=g.intDiv(t,Ee.NANOS_PER_SECOND),n=g.intMod(t,Ee.NANOS_PER_SECOND);return n<0&&(n+=Ee.NANOS_PER_SECOND,e--),this._create(e,n)},_.of=function(t,e){return _.ZERO.plus(t,e)},_.from=function(e){y(e,"amount"),l(e,p);var n=_.ZERO;return e.units().forEach(function(t){n=n.plus(e.get(t),t)}),n},_.between=function(t,e){y(t,"startInclusive"),y(e,"endExclusive");var n=t.until(e,m.SECONDS),o=0;if(t.isSupported(R.NANO_OF_SECOND)&&e.isSupported(R.NANO_OF_SECOND))try{var r=t.getLong(R.NANO_OF_SECOND);if(o=e.getLong(R.NANO_OF_SECOND)-r,0<n&&o<0)o+=Ee.NANOS_PER_SECOND;else if(n<0&&0<o)o-=Ee.NANOS_PER_SECOND;else if(0===n&&0!==o){var i=e.with(R.NANO_OF_SECOND,r);n=t.until(i,m.SECONDS)}}catch(t){}return this.ofSeconds(n,o)},_.parse=function(e){y(e,"text");var t=new RegExp("([-+]?)P(?:([-+]?[0-9]+)D)?(T(?:([-+]?[0-9]+)H)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]{0,9}))?S)?)?","i").exec(e);if(null!==t&&"T"===t[3]==!1){var n="-"===t[1],o=t[2],r=t[4],i=t[5],s=t[6],a=t[7];if(null!=o||null!=r||null!=i||null!=s){var u=_._parseNumber(e,o,Ee.SECONDS_PER_DAY,"days"),p=_._parseNumber(e,r,Ee.SECONDS_PER_HOUR,"hours"),f=_._parseNumber(e,i,Ee.SECONDS_PER_MINUTE,"minutes"),c=_._parseNumber(e,s,1,"seconds"),h=null!=s&&"-"===s.charAt(0),l=_._parseFraction(e,a,h?-1:1);try{return _._create(n,u,p,f,c,l)}catch(t){throw new d("Text cannot be parsed to a Duration: overflow",e,0,t)}}}throw new d("Text cannot be parsed to a Duration",e,0)},_._parseNumber=function(e,t,n,o){if(null==t)return 0;try{return"+"===t[0]&&(t=t.substring(1)),g.safeMultiply(parseFloat(t),n)}catch(t){throw new d("Text cannot be parsed to a Duration: "+o,e,0,t)}},_._parseFraction=function(t,e,n){return null==e||0===e.length?0:(e=(e+"000000000").substring(0,9),parseFloat(e)*n)},_._create=function(){return arguments.length<=2?_._createSecondsNanos(arguments[0],arguments[1]):_._createNegateDaysHoursMinutesSecondsNanos(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},_._createNegateDaysHoursMinutesSecondsNanos=function(t,e,n,o,r,i){var s=g.safeAdd(e,g.safeAdd(n,g.safeAdd(o,r)));return t?_.ofSeconds(s,i).negated():_.ofSeconds(s,i)},_._createSecondsNanos=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return 0==(t|e)?_.ZERO:new _(t,e)},_.prototype.get=function(t){if(t===m.SECONDS)return this._seconds;if(t===m.NANOS)return this._nanos;throw new h("Unsupported unit: "+t)},_.prototype.units=function(){return[m.SECONDS,m.NANOS]},_.prototype.isZero=function(){return 0==(this._seconds|this._nanos)},_.prototype.isNegative=function(){return this._seconds<0},_.prototype.seconds=function(){return this._seconds},_.prototype.nano=function(){return this._nanos},_.prototype.withSeconds=function(t){return _._create(t,this._nanos)},_.prototype.withNanos=function(t){return R.NANO_OF_SECOND.checkValidIntValue(t),_._create(this._seconds,t)},_.prototype.plusDuration=function(t){return y(t,"duration"),this.plus(t.seconds(),t.nano())},_.prototype.plus=function(t,e){return 1===arguments.length?this.plusDuration(t):2===arguments.length&&e instanceof f?this.plusAmountUnit(t,e):this.plusSecondsNanos(t,e)},_.prototype.plusAmountUnit=function(t,e){if(y(t,"amountToAdd"),y(e,"unit"),e===m.DAYS)return this.plusSecondsNanos(g.safeMultiply(t,Ee.SECONDS_PER_DAY),0);if(e.isDurationEstimated())throw new h("Unit must not have an estimated duration");if(0===t)return this;if(e instanceof m){switch(e){case m.NANOS:return this.plusNanos(t);case m.MICROS:return this.plusSecondsNanos(1e3*g.intDiv(t,1e9),1e3*g.intMod(t,1e9));case m.MILLIS:return this.plusMillis(t);case m.SECONDS:return this.plusSeconds(t)}return this.plusSecondsNanos(g.safeMultiply(e.duration().seconds(),t),0)}var n=e.duration().multipliedBy(t);return this.plusSecondsNanos(n.seconds(),n.nano())},_.prototype.plusDays=function(t){return this.plusSecondsNanos(g.safeMultiply(t,Ee.SECONDS_PER_DAY),0)},_.prototype.plusHours=function(t){return this.plusSecondsNanos(g.safeMultiply(t,Ee.SECONDS_PER_HOUR),0)},_.prototype.plusMinutes=function(t){return this.plusSecondsNanos(g.safeMultiply(t,Ee.SECONDS_PER_MINUTE),0)},_.prototype.plusSeconds=function(t){return this.plusSecondsNanos(t,0)},_.prototype.plusMillis=function(t){return this.plusSecondsNanos(g.intDiv(t,1e3),1e6*g.intMod(t,1e3))},_.prototype.plusNanos=function(t){return this.plusSecondsNanos(0,t)},_.prototype.plusSecondsNanos=function(t,e){if(y(t,"secondsToAdd"),y(e,"nanosToAdd"),0==(t|e))return this;var n=g.safeAdd(this._seconds,t);n=g.safeAdd(n,g.intDiv(e,Ee.NANOS_PER_SECOND)),e=g.intMod(e,Ee.NANOS_PER_SECOND);var o=g.safeAdd(this._nanos,e);return _.ofSeconds(n,o)},_.prototype.minus=function(t,e){return 1===arguments.length?this.minusDuration(t):this.minusAmountUnit(t,e)},_.prototype.minusDuration=function(t){y(t,"duration");var e=t.seconds(),n=t.nano();return e===a?this.plus(r,-n):this.plus(-e,-n)},_.prototype.minusAmountUnit=function(t,e){return y(t,"amountToSubtract"),y(e,"unit"),t===a?this.plusAmountUnit(r,e):this.plusAmountUnit(-t,e)},_.prototype.minusDays=function(t){return t===a?this.plusDays(r):this.plusDays(-t)},_.prototype.minusHours=function(t){return t===a?this.plusHours(r):this.plusHours(-t)},_.prototype.minusMinutes=function(t){return t===a?this.plusMinutes(r):this.plusMinutes(-t)},_.prototype.minusSeconds=function(t){return t===a?this.plusSeconds(r):this.plusSeconds(-t)},_.prototype.minusMillis=function(t){return t===a?this.plusMillis(r):this.plusMillis(-t)},_.prototype.minusNanos=function(t){return t===a?this.plusNanos(r):this.plusNanos(-t)},_.prototype.multipliedBy=function(t){if(0===t)return _.ZERO;if(1===t)return this;var e=g.safeMultiply(this._seconds,t),n=g.safeMultiply(this._nanos,t);return e+=g.intDiv(n,Ee.NANOS_PER_SECOND),n=g.intMod(n,Ee.NANOS_PER_SECOND),_.ofSeconds(e,n)},_.prototype.dividedBy=function(t){if(0===t)throw new E("Cannot divide by zero");if(1===t)return this;var e=g.intDiv(this._seconds,t),n=g.roundDown((this._seconds/t-e)*Ee.NANOS_PER_SECOND),o=g.intDiv(this._nanos,t);return _.ofSeconds(e,o=n+o)},_.prototype.negated=function(){return this.multipliedBy(-1)},_.prototype.abs=function(){return this.isNegative()?this.negated():this},_.prototype.addTo=function(t){return y(t,"temporal"),0!==this._seconds&&(t=t.plus(this._seconds,m.SECONDS)),0!==this._nanos&&(t=t.plus(this._nanos,m.NANOS)),t},_.prototype.subtractFrom=function(t){return y(t,"temporal"),0!==this._seconds&&(t=t.minus(this._seconds,m.SECONDS)),0!==this._nanos&&(t=t.minus(this._nanos,m.NANOS)),t},_.prototype.toDays=function(){return g.intDiv(this._seconds,Ee.SECONDS_PER_DAY)},_.prototype.toHours=function(){return g.intDiv(this._seconds,Ee.SECONDS_PER_HOUR)},_.prototype.toMinutes=function(){return g.intDiv(this._seconds,Ee.SECONDS_PER_MINUTE)},_.prototype.toMillis=function(){var t=Math.round(g.safeMultiply(this._seconds,1e3));return t=g.safeAdd(t,g.intDiv(this._nanos,1e6))},_.prototype.toNanos=function(){var t=g.safeMultiply(this._seconds,Ee.NANOS_PER_SECOND);return t=g.safeAdd(t,this._nanos)},_.prototype.compareTo=function(t){y(t,"otherDuration"),l(t,_,"otherDuration");var e=g.compareNumbers(this._seconds,t.seconds());return 0!==e?e:this._nanos-t.nano()},_.prototype.equals=function(t){return this===t||t instanceof _&&(this.seconds()===t.seconds()&&this.nano()===t.nano())},_.prototype.toString=function(){if(this===_.ZERO)return"PT0S";var t=g.intDiv(this._seconds,Ee.SECONDS_PER_HOUR),e=g.intDiv(g.intMod(this._seconds,Ee.SECONDS_PER_HOUR),Ee.SECONDS_PER_MINUTE),n=g.intMod(this._seconds,Ee.SECONDS_PER_MINUTE),o="PT";if(0!==t&&(o+=t+"H"),0!==e&&(o+=e+"M"),0===n&&0===this._nanos&&2<o.length)return o;if(n<0&&0<this._nanos?o+=-1===n?"-0":n+1:o+=n,0<this._nanos){o+=".";var r=void 0;for(o+=r=(r=n<0?""+(2*Ee.NANOS_PER_SECOND-this._nanos):""+(Ee.NANOS_PER_SECOND+this._nanos)).slice(1,r.length);"0"===o.charAt(o.length-1);)o=o.slice(0,o.length-1)}return o+="S"},_.prototype.toJSON=function(){return this.toString()},_}(p);var O=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)};var m=function(o){function r(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,o.call(this));return n._name=t,n._duration=e,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,o),r.prototype.duration=function(){return this._duration},r.prototype.isDurationEstimated=function(){return this.isDateBased()||this===r.FOREVER},r.prototype.isDateBased=function(){return 0<=this.compareTo(r.DAYS)&&this!==r.FOREVER},r.prototype.isTimeBased=function(){return this.compareTo(r.DAYS)<0},r.prototype.isSupportedBy=function(e){if(this===r.FOREVER)return!1;try{return e.plus(1,this),!0}catch(t){try{return e.plus(-1,this),!0}catch(t){return!1}}},r.prototype.addTo=function(t,e){return t.plus(e,this)},r.prototype.between=function(t,e){return t.until(e,this)},r.prototype.toString=function(){return this._name},r.prototype.compareTo=function(t){return this.duration().compareTo(t.duration())},r}(f);var N=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)};var D=function(){function r(t,e,n,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),S(!(e<t),"Smallest minimum value '"+t+"' must be less than largest minimum value '"+e+"'",c),S(!(o<n),"Smallest maximum value '"+n+"' must be less than largest maximum value '"+o+"'",c),S(!(o<e),"Minimum value '"+e+"' must be less than maximum value '"+o+"'",c),this._minSmallest=t,this._minLargest=e,this._maxLargest=o,this._maxSmallest=n}return r.prototype.isFixed=function(){return this._minSmallest===this._minLargest&&this._maxSmallest===this._maxLargest},r.prototype.minimum=function(){return this._minSmallest},r.prototype.largestMinimum=function(){return this._minLargest},r.prototype.maximum=function(){return this._maxLargest},r.prototype.smallestMaximum=function(){return this._maxSmallest},r.prototype.isValidValue=function(t){return this.minimum()<=t&&t<=this.maximum()},r.prototype.checkValidValue=function(t,e){if(!this.isValidValue(t))return S(!1,null!=e?"Invalid value for "+e+" (valid values "+this.toString()+"): "+t:"Invalid value (valid values "+this.toString()+"): "+t,T)},r.prototype.checkValidIntValue=function(t,e){if(!1===this.isValidIntValue(t))throw new T("Invalid int value for "+e+": "+t);return t},r.prototype.isValidIntValue=function(t){return this.isIntValue()&&this.isValidValue(t)},r.prototype.isIntValue=function(){return this.minimum()>=g.MIN_SAFE_INTEGER&&this.maximum()<=g.MAX_SAFE_INTEGER},r.prototype.equals=function(t){return t===this||t instanceof r&&(this._minSmallest===t._minSmallest&&this._minLargest===t._minLargest&&this._maxSmallest===t._maxSmallest&&this._maxLargest===t._maxLargest)},r.prototype.hashCode=function(){return g.hashCode(this._minSmallest,this._minLargest,this._maxSmallest,this._maxLargest)},r.prototype.toString=function(){var t=this.minimum()+(this.minimum()!==this.largestMinimum()?"/"+this.largestMinimum():"");return t+=" - ",t+=this.smallestMaximum()+(this.smallestMaximum()!==this.maximum()?"/"+this.maximum():"")},r.of=function(){return 2===arguments.length?new r(arguments[0],arguments[0],arguments[1],arguments[1]):3===arguments.length?new r(arguments[0],arguments[0],arguments[1],arguments[2]):4===arguments.length?new r(arguments[0],arguments[1],arguments[2],arguments[3]):S(!1,"Invalid number of arguments "+arguments.length,c)},r}();var R=function(i){function s(t,e,n,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this));return r._name=t,r._baseUnit=e,r._rangeUnit=n,r._range=o,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(s,i),s.byName=function(t){for(var e in s)if(s.hasOwnProperty(e)&&s[e]instanceof s&&s[e].name()===t)return s[e]},s.prototype.name=function(){return this._name},s.prototype.baseUnit=function(){return this._baseUnit},s.prototype.rangeUnit=function(){return this._rangeUnit},s.prototype.range=function(){return this._range},s.prototype.displayName=function(){return this.toString()},s.prototype.checkValidValue=function(t){return this.range().checkValidValue(t,this.name())},s.prototype.isDateBased=function(){return this===s.DAY_OF_WEEK||this===s.ALIGNED_DAY_OF_WEEK_IN_MONTH||this===s.ALIGNED_DAY_OF_WEEK_IN_YEAR||this===s.DAY_OF_MONTH||this===s.DAY_OF_YEAR||this===s.EPOCH_DAY||this===s.ALIGNED_WEEK_OF_MONTH||this===s.ALIGNED_WEEK_OF_YEAR||this===s.MONTH_OF_YEAR||this===s.YEAR_OF_ERA||this===s.YEAR||this===s.ERA},s.prototype.isTimeBased=function(){return this===s.NANO_OF_SECOND||this===s.NANO_OF_DAY||this===s.MICRO_OF_SECOND||this===s.MICRO_OF_DAY||this===s.MILLI_OF_SECOND||this===s.MILLI_OF_DAY||this===s.SECOND_OF_MINUTE||this===s.SECOND_OF_DAY||this===s.MINUTE_OF_HOUR||this===s.MINUTE_OF_DAY||this===s.HOUR_OF_AMPM||this===s.CLOCK_HOUR_OF_AMPM||this===s.HOUR_OF_DAY||this===s.CLOCK_HOUR_OF_DAY||this===s.AMPM_OF_DAY},s.prototype.rangeRefinedBy=function(t){return t.range(this)},s.prototype.checkValidIntValue=function(t){return this.range().checkValidIntValue(t,this)},s.prototype.getFrom=function(t){return t.getLong(this)},s.prototype.toString=function(){return this.name()},s.prototype.equals=function(t){return this===t},s}(N);var A=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.zoneId=function(){return t.ZONE_ID},t.chronology=function(){return t.CHRONO},t.precision=function(){return t.PRECISION},t.zone=function(){return t.ZONE},t.offset=function(){return t.OFFSET},t.localDate=function(){return t.LOCAL_DATE},t.localTime=function(){return t.LOCAL_TIME},t}();var w=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.prototype.query=function(t){return t===A.zoneId()||t===A.chronology()||t===A.precision()?null:t.queryFrom(this)},t.prototype.get=function(t){return this.range(t).checkValidIntValue(this.getLong(t),t)},t.prototype.range=function(t){if(t instanceof R){if(this.isSupported(t))return t.range();throw new h("Unsupported field: "+t)}return t.rangeRefinedBy(this)},t}();var v=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(w);function M(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function I(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function b(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var C=function(t){function e(){return M(this,e),I(this,t.apply(this,arguments))}return b(e,t),e.prototype.queryFrom=function(t){n("queryFrom")},e}(u);function Y(t,e){var n=function(t){function e(){return M(this,e),I(this,t.apply(this,arguments))}return b(e,t),e}(C);return n.prototype.queryFrom=e,new n(t)}var F=function(o){function r(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,o.call(this));return n._ordinal=t,n._name=e,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,o),r.prototype.ordinal=function(){return this._ordinal},r.prototype.name=function(){return this._name},r.values=function(){return L.slice()},r.valueOf=function(t){for(var e=0;e<L.length&&L[e].name()!==t;e++);return r.of(e+1)},r.of=function(t){if(t<1||7<t)throw new T("Invalid value for DayOfWeek: "+t);return L[t-1]},r.from=function(e){if(S(null!=e,"temporal",s),e instanceof r)return e;try{return r.of(e.get(R.DAY_OF_WEEK))}catch(t){throw t instanceof T?new T("Unable to obtain DayOfWeek from TemporalAccessor: "+e+", type "+(null!=e.constructor?e.constructor.name:""),t):t}},r.prototype.value=function(){return this._ordinal+1},r.prototype.getDisplayName=function(t,e){throw new c("Pattern using (localized) text not implemented yet!")},r.prototype.isSupported=function(t){return t instanceof R?t===R.DAY_OF_WEEK:null!=t&&t.isSupportedBy(this)},r.prototype.range=function(t){if(t===R.DAY_OF_WEEK)return t.range();if(t instanceof R)throw new h("Unsupported field: "+t);return t.rangeRefinedBy(this)},r.prototype.get=function(t){return t===R.DAY_OF_WEEK?this.value():this.range(t).checkValidIntValue(this.getLong(t),t)},r.prototype.getLong=function(t){if(t===R.DAY_OF_WEEK)return this.value();if(t instanceof R)throw new h("Unsupported field: "+t);return t.getFrom(this)},r.prototype.plus=function(t){var e=g.floorMod(t,7);return L[g.floorMod(this._ordinal+(e+7),7)]},r.prototype.minus=function(t){return this.plus(-1*g.floorMod(t,7))},r.prototype.query=function(t){return t===A.precision()?m.DAYS:t===A.localDate()||t===A.localTime()||t===A.chronology()||t===A.zone()||t===A.zoneId()||t===A.offset()?null:(S(null!=t,"query",s),t.queryFrom(this))},r.prototype.adjustInto=function(t){return y(t,"temporal"),t.with(R.DAY_OF_WEEK,this.value())},r.prototype.equals=function(t){return this===t},r.prototype.toString=function(){return this._name},r.prototype.compareTo=function(t){return y(t,"other"),l(t,r,"other"),this._ordinal-t._ordinal},r.prototype.toJSON=function(){return this.toString()},r}(v),L=void 0;var P=function(o){function r(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,o.call(this));return n._value=g.safeToInt(t),n._name=e,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,o),r.prototype.value=function(){return this._value},r.prototype.ordinal=function(){return this._value-1},r.prototype.name=function(){return this._name},r.prototype.getDisplayName=function(t,e){throw new c("Pattern using (localized) text not implemented yet!")},r.prototype.isSupported=function(t){return null!==t&&(t instanceof R?t===R.MONTH_OF_YEAR:null!=t&&t.isSupportedBy(this))},r.prototype.get=function(t){return t===R.MONTH_OF_YEAR?this.value():this.range(t).checkValidIntValue(this.getLong(t),t)},r.prototype.getLong=function(t){if(t===R.MONTH_OF_YEAR)return this.value();if(t instanceof R)throw new h("Unsupported field: "+t);return t.getFrom(this)},r.prototype.plus=function(t){var e=g.intMod(t,12)+12,n=g.intMod(this.value()+e,12);return r.of(n=0===n?12:n)},r.prototype.minus=function(t){return this.plus(-1*g.intMod(t,12))},r.prototype.length=function(t){switch(this){case r.FEBRUARY:return t?29:28;case r.APRIL:case r.JUNE:case r.SEPTEMBER:case r.NOVEMBER:return 30;default:return 31}},r.prototype.minLength=function(){switch(this){case r.FEBRUARY:return 28;case r.APRIL:case r.JUNE:case r.SEPTEMBER:case r.NOVEMBER:return 30;default:return 31}},r.prototype.maxLength=function(){switch(this){case r.FEBRUARY:return 29;case r.APRIL:case r.JUNE:case r.SEPTEMBER:case r.NOVEMBER:return 30;default:return 31}},r.prototype.firstDayOfYear=function(t){var e=t?1:0;switch(this){case r.JANUARY:return 1;case r.FEBRUARY:return 32;case r.MARCH:return 60+e;case r.APRIL:return 91+e;case r.MAY:return 121+e;case r.JUNE:return 152+e;case r.JULY:return 182+e;case r.AUGUST:return 213+e;case r.SEPTEMBER:return 244+e;case r.OCTOBER:return 274+e;case r.NOVEMBER:return 305+e;case r.DECEMBER:default:return 335+e}},r.prototype.firstMonthOfQuarter=function(){switch(this){case r.JANUARY:case r.FEBRUARY:case r.MARCH:return r.JANUARY;case r.APRIL:case r.MAY:case r.JUNE:return r.APRIL;case r.JULY:case r.AUGUST:case r.SEPTEMBER:return r.JULY;case r.OCTOBER:case r.NOVEMBER:case r.DECEMBER:default:return r.OCTOBER}},r.prototype.query=function(t){return S(null!=t,"query() parameter must not be null",T),t===A.chronology()?fe.INSTANCE:t===A.precision()?m.MONTHS:o.prototype.query.call(this,t)},r.prototype.toString=function(){switch(this){case r.JANUARY:return"JANUARY";case r.FEBRUARY:return"FEBRUARY";case r.MARCH:return"MARCH";case r.APRIL:return"APRIL";case r.MAY:return"MAY";case r.JUNE:return"JUNE";case r.JULY:return"JULY";case r.AUGUST:return"AUGUST";case r.SEPTEMBER:return"SEPTEMBER";case r.OCTOBER:return"OCTOBER";case r.NOVEMBER:return"NOVEMBER";case r.DECEMBER:return"DECEMBER";default:return"unknown Month, value: "+this.value()}},r.prototype.toJSON=function(){return this.toString()},r.prototype.adjustInto=function(t){return t.with(R.MONTH_OF_YEAR,this.value())},r.prototype.compareTo=function(t){return y(t,"other"),l(t,r,"other"),this._value-t._value},r.prototype.equals=function(t){return this===t},r.valueOf=function(t){for(var e=0;e<U.length&&U[e].name()!==t;e++);return r.of(e+1)},r.values=function(){return U.slice()},r.of=function(t){return(t<1||12<t)&&S(!1,"Invalid value for MonthOfYear: "+t,T),U[t-1]},r.from=function(e){if(e instanceof r)return e;try{return r.of(e.get(R.MONTH_OF_YEAR))}catch(t){throw new T("Unable to obtain Month from TemporalAccessor: "+e+" of type "+(e&&null!=e.constructor?e.constructor.name:""),t)}},r}(v),U=void 0;function V(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var H=/([-+]?)P(?:([-+]?[0-9]+)Y)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)W)?(?:([-+]?[0-9]+)D)?/,x=function(a){function c(t,e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var o=V(this,a.call(this)),r=g.safeToInt(t),i=g.safeToInt(e),s=g.safeToInt(n);return 0==(r|i|s)?(c.ZERO||(o._years=r,o._months=i,o._days=s,c.ZERO=o),V(o,c.ZERO)):(o._years=r,o._months=i,o._days=s,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(c,a),c.ofYears=function(t){return c.create(t,0,0)},c.ofMonths=function(t){return c.create(0,t,0)},c.ofWeeks=function(t){return c.create(0,0,g.safeMultiply(t,7))},c.ofDays=function(t){return c.create(0,0,t)},c.of=function(t,e,n){return c.create(t,e,n)},c.from=function(t){if(t instanceof c)return t;y(t,"amount");for(var e=0,n=0,o=0,r=t.units(),i=0;i<r.length;i++){var s=r[i],a=t.get(s);if(s===m.YEARS)e=g.safeToInt(a);else if(s===m.MONTHS)n=g.safeToInt(a);else{if(s!==m.DAYS)throw new T("Unit must be Years, Months or Days, but was "+s);o=g.safeToInt(a)}}return c.create(e,n,o)},c.between=function(t,e){return y(t,"startDate"),y(e,"endDate"),l(t,_e,"startDate"),l(e,_e,"endDate"),t.until(e)},c.parse=function(e){y(e,"text");try{return c._parse(e)}catch(t){throw t instanceof E?new d("Text cannot be parsed to a Period",e,0,t):t}},c._parse=function(t){var e=H.exec(t);if(null!=e){var n="-"===e[1]?-1:1,o=e[2],r=e[3],i=e[4],s=e[5];if(null!=o||null!=r||null!=i||null!=s){var a=c._parseNumber(t,o,n),u=c._parseNumber(t,r,n),p=c._parseNumber(t,i,n),f=c._parseNumber(t,s,n);return f=g.safeAdd(f,g.safeMultiply(p,7)),c.create(a,u,f)}}throw new d("Text cannot be parsed to a Period",t,0)},c._parseNumber=function(t,e,n){if(null==e)return 0;var o=g.parseInt(e);return g.safeMultiply(o,n)},c.create=function(t,e,n){return new c(t,e,n)},c.prototype.units=function(){return[m.YEARS,m.MONTHS,m.DAYS]},c.prototype.chronology=function(){return fe.INSTANCE},c.prototype.get=function(t){if(t===m.YEARS)return this._years;if(t===m.MONTHS)return this._months;if(t===m.DAYS)return this._days;throw new h("Unsupported unit: "+t)},c.prototype.isZero=function(){return this===c.ZERO},c.prototype.isNegative=function(){return this._years<0||this._months<0||this._days<0},c.prototype.years=function(){return this._years},c.prototype.months=function(){return this._months},c.prototype.days=function(){return this._days},c.prototype.withYears=function(t){return t===this._years?this:c.create(t,this._months,this._days)},c.prototype.withMonths=function(t){return t===this._months?this:c.create(this._years,t,this._days)},c.prototype.withDays=function(t){return t===this._days?this:c.create(this._years,this._months,t)},c.prototype.plus=function(t){var e=c.from(t);return c.create(g.safeAdd(this._years,e._years),g.safeAdd(this._months,e._months),g.safeAdd(this._days,e._days))},c.prototype.plusYears=function(t){return 0===t?this:c.create(g.safeToInt(g.safeAdd(this._years,t)),this._months,this._days)},c.prototype.plusMonths=function(t){return 0===t?this:c.create(this._years,g.safeToInt(g.safeAdd(this._months,t)),this._days)},c.prototype.plusDays=function(t){return 0===t?this:c.create(this._years,this._months,g.safeToInt(g.safeAdd(this._days,t)))},c.prototype.minus=function(t){var e=c.from(t);return c.create(g.safeSubtract(this._years,e._years),g.safeSubtract(this._months,e._months),g.safeSubtract(this._days,e._days))},c.prototype.minusYears=function(t){return this.plusYears(-1*t)},c.prototype.minusMonths=function(t){return this.plusMonths(-1*t)},c.prototype.minusDays=function(t){return this.plusDays(-1*t)},c.prototype.multipliedBy=function(t){return this===c.ZERO||1===t?this:c.create(g.safeMultiply(this._years,t),g.safeMultiply(this._months,t),g.safeMultiply(this._days,t))},c.prototype.negated=function(){return this.multipliedBy(-1)},c.prototype.normalized=function(){var t=this.toTotalMonths(),e=g.intDiv(t,12),n=g.intMod(t,12);return e===this._years&&n===this._months?this:c.create(g.safeToInt(e),n,this._days)},c.prototype.toTotalMonths=function(){return 12*this._years+this._months},c.prototype.addTo=function(t){return y(t,"temporal"),0!==this._years?t=0!==this._months?t.plus(this.toTotalMonths(),m.MONTHS):t.plus(this._years,m.YEARS):0!==this._months&&(t=t.plus(this._months,m.MONTHS)),0!==this._days&&(t=t.plus(this._days,m.DAYS)),t},c.prototype.subtractFrom=function(t){return y(t,"temporal"),0!==this._years?t=0!==this._months?t.minus(this.toTotalMonths(),m.MONTHS):t.minus(this._years,m.YEARS):0!==this._months&&(t=t.minus(this._months,m.MONTHS)),0!==this._days&&(t=t.minus(this._days,m.DAYS)),t},c.prototype.equals=function(t){if(this===t)return!0;if(t instanceof c){var e=t;return this._years===e._years&&this._months===e._months&&this._days===e._days}return!1},c.prototype.hashCode=function(){return g.hashCode(this._years,this._months,this._days)},c.prototype.toString=function(){if(this===c.ZERO)return"P0D";var t="P";return 0!==this._years&&(t+=this._years+"Y"),0!==this._months&&(t+=this._months+"M"),0!==this._days&&(t+=this._days+"D"),t},c.prototype.toJSON=function(){return this.toString()},c}(p);var W=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this._index=t,this._errorIndex=-1}return e.prototype.getIndex=function(){return this._index},e.prototype.setIndex=function(t){this._index=t},e.prototype.getErrorIndex=function(){return this._errorIndex},e.prototype.setErrorIndex=function(t){this._errorIndex=t},e}();var k=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._map={}}return t.prototype.putAll=function(t){for(var e in t._map)this._map[e]=t._map[e];return this},t.prototype.containsKey=function(t){return this._map.hasOwnProperty(t.name())&&void 0!==this.get(t)},t.prototype.get=function(t){return this._map[t.name()]},t.prototype.put=function(t,e){return this.set(t,e)},t.prototype.set=function(t,e){return this._map[t.name()]=e,this},t.prototype.retainAll=function(t){for(var e={},n=0;n<t.length;n++){var o=t[n].name();e[o]=this._map[o]}return this._map=e,this},t.prototype.remove=function(t){var e=t.name(),n=this._map[e];return this._map[e]=void 0,n},t.prototype.keySet=function(){return this._map},t.prototype.clear=function(){this._map={}},t}();var j=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(u);j.STRICT=new j("STRICT"),j.SMART=new j("SMART"),j.LENIENT=new j("LENIENT");var B=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.isSupported=function(t){return t instanceof R?t.isDateBased():t instanceof m?t.isDateBased():null!=t&&t.isSupportedBy(this)},t.prototype.query=function(t){return t===A.chronology()?this.chronology():t===A.precision()?m.DAYS:t===A.localDate()?_e.ofEpochDay(this.toEpochDay()):t===A.localTime()||t===A.zone()||t===A.zoneId()||t===A.offset()?null:e.prototype.query.call(this,t)},t.prototype.adjustInto=function(t){return t.with(R.EPOCH_DAY,this.toEpochDay())},t.prototype.format=function(t){return y(t,"formatter"),l(t,Gt,"formatter"),t.format(this)},t}(v);var q=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.startsWith=function(t,e){return 0===t.indexOf(e)},t.hashCode=function(t){var e=t.length;if(0===e)return 0;for(var n=0,o=0;o<e;o++){n=(n<<5)-n+t.charCodeAt(o),n|=0}return g.smi(n)},t}();var Z=function(){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.systemDefault=function(){throw new T("not supported operation")},e.getAvailableZoneIds=function(){throw new T("not supported operation")},e.of=function(t){throw new T("not supported operation"+t)},e.ofOffset=function(t,e){throw new T("not supported operation"+t+e)},e.from=function(t){throw new T("not supported operation"+t)},e.prototype.id=function(){n("ZoneId.id")},e.prototype.rules=function(){n("ZoneId.rules")},e.prototype.normalized=function(){var t=this.rules();return t.isFixedOffset()?t.offset(me.EPOCH):this},e.prototype.equals=function(t){return this===t||t instanceof e&&this.id()===t.id()},e.prototype.hashCode=function(){return q.hashCode(this.id())},e.prototype.toString=function(){return this.id()},e.prototype.toJSON=function(){return this.toString()},e}();function z(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var K=function(){function t(){z(this,t)}return t.of=function(t){return y(t,"offset"),new G(t)},t.prototype.isFixedOffset=function(){n("ZoneRules.isFixedOffset")},t.prototype.offset=function(t){return t instanceof me?this.offsetOfInstant(t):this.offsetOfLocalDateTime(t)},t.prototype.offsetOfInstant=function(t){n("ZoneRules.offsetInstant")},t.prototype.offsetOfEpochMilli=function(t){n("ZoneRules.offsetOfEpochMilli")},t.prototype.offsetOfLocalDateTime=function(t){n("ZoneRules.offsetLocalDateTime")},t.prototype.validOffsets=function(t){n("ZoneRules.validOffsets")},t.prototype.transition=function(t){n("ZoneRules.transition")},t.prototype.standardOffset=function(t){n("ZoneRules.standardOffset")},t.prototype.daylightSavings=function(t){n("ZoneRules.daylightSavings")},t.prototype.isDaylightSavings=function(t){n("ZoneRules.isDaylightSavings")},t.prototype.isValidOffset=function(t,e){n("ZoneRules.isValidOffset")},t.prototype.nextTransition=function(t){n("ZoneRules.nextTransition")},t.prototype.previousTransition=function(t){n("ZoneRules.previousTransition")},t.prototype.transitions=function(){n("ZoneRules.transitions")},t.prototype.transitionRules=function(){n("ZoneRules.transitionRules")},t.prototype.toString=function(){n("ZoneRules.toString")},t.prototype.toJSON=function(){return this.toString()},t}(),G=function(n){function o(t){z(this,o);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,n.call(this));return e._offset=t,e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(o,n),o.prototype.isFixedOffset=function(){return!0},o.prototype.offsetOfInstant=function(){return this._offset},o.prototype.offsetOfEpochMilli=function(){return this._offset},o.prototype.offsetOfLocalDateTime=function(){return this._offset},o.prototype.validOffsets=function(){return[this._offset]},o.prototype.transition=function(){return null},o.prototype.standardOffset=function(){return this._offset},o.prototype.daylightSavings=function(){return _.ZERO},o.prototype.isDaylightSavings=function(){return!1},o.prototype.isValidOffset=function(t,e){return this._offset.equals(e)},o.prototype.nextTransition=function(){return null},o.prototype.previousTransition=function(){return null},o.prototype.transitions=function(){return[]},o.prototype.transitionRules=function(){return[]},o.prototype.equals=function(t){return this===t||t instanceof o&&this._offset.equals(t._offset)},o.prototype.toString=function(){return"FixedRules:"+this._offset.toString()},o}(K);var X={},J={},Q=function(n){function s(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,n.call(this));return s._validateTotalSeconds(t),e._totalSeconds=g.safeToInt(t),e._rules=K.of(e),e._id=s._buildId(t),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(s,n),s.prototype.totalSeconds=function(){return this._totalSeconds},s.prototype.id=function(){return this._id},s._buildId=function(t){if(0===t)return"Z";var e=Math.abs(t),n=g.intDiv(e,Ee.SECONDS_PER_HOUR),o=g.intMod(g.intDiv(e,Ee.SECONDS_PER_MINUTE),Ee.MINUTES_PER_HOUR),r=(t<0?"-":"+")+(n<10?"0":"")+n+(o<10?":0":":")+o,i=g.intMod(e,Ee.SECONDS_PER_MINUTE);return 0!==i&&(r+=(i<10?":0":":")+i),r},s._validateTotalSeconds=function(t){if(Math.abs(t)>s.MAX_SECONDS)throw new T("Zone offset not in valid range: -18:00 to +18:00")},s._validate=function(t,e,n){if(t<-18||18<t)throw new T("Zone offset hours not in valid range: value "+t+" is not in the range -18 to 18");if(0<t){if(e<0||n<0)throw new T("Zone offset minutes and seconds must be positive because hours is positive")}else if(t<0){if(0<e||0<n)throw new T("Zone offset minutes and seconds must be negative because hours is negative")}else if(0<e&&n<0||e<0&&0<n)throw new T("Zone offset minutes and seconds must have the same sign");if(59<Math.abs(e))throw new T("Zone offset minutes not in valid range: abs(value) "+Math.abs(e)+" is not in the range 0 to 59");if(59<Math.abs(n))throw new T("Zone offset seconds not in valid range: abs(value) "+Math.abs(n)+" is not in the range 0 to 59");if(18===Math.abs(t)&&(0<Math.abs(e)||0<Math.abs(n)))throw new T("Zone offset not in valid range: -18:00 to +18:00")},s.of=function(t){y(t,"offsetId");var e=J[t];if(null!=e)return e;var n=void 0,o=void 0,r=void 0;switch(t.length){case 2:t=t[0]+"0"+t[1];case 3:n=s._parseNumber(t,1,!1),r=o=0;break;case 5:n=s._parseNumber(t,1,!1),o=s._parseNumber(t,3,!1),r=0;break;case 6:n=s._parseNumber(t,1,!1),o=s._parseNumber(t,4,!0),r=0;break;case 7:n=s._parseNumber(t,1,!1),o=s._parseNumber(t,3,!1),r=s._parseNumber(t,5,!1);break;case 9:n=s._parseNumber(t,1,!1),o=s._parseNumber(t,4,!0),r=s._parseNumber(t,7,!0);break;default:throw new T("Invalid ID for ZoneOffset, invalid format: "+t)}var i=t[0];if("+"!==i&&"-"!==i)throw new T("Invalid ID for ZoneOffset, plus/minus not found when expected: "+t);return"-"===i?s.ofHoursMinutesSeconds(-n,-o,-r):s.ofHoursMinutesSeconds(n,o,r)},s._parseNumber=function(t,e,n){if(n&&":"!==t[e-1])throw new T("Invalid ID for ZoneOffset, colon not found when expected: "+t);var o=t[e],r=t[e+1];if(o<"0"||"9"<o||r<"0"||"9"<r)throw new T("Invalid ID for ZoneOffset, non numeric characters found: "+t);return 10*(o.charCodeAt(0)-48)+(r.charCodeAt(0)-48)},s.ofHours=function(t){return s.ofHoursMinutesSeconds(t,0,0)},s.ofHoursMinutes=function(t,e){return s.ofHoursMinutesSeconds(t,e,0)},s.ofHoursMinutesSeconds=function(t,e,n){s._validate(t,e,n);var o=t*Ee.SECONDS_PER_HOUR+e*Ee.SECONDS_PER_MINUTE+n;return s.ofTotalSeconds(o)},s.ofTotalMinutes=function(t){var e=t*Ee.SECONDS_PER_MINUTE;return s.ofTotalSeconds(e)},s.ofTotalSeconds=function(t){if(t%(15*Ee.SECONDS_PER_MINUTE)!=0)return new s(t);var e=t,n=X[e];return null==n&&(n=new s(t),X[e]=n,J[n.id()]=n),n},s.prototype.rules=function(){return this._rules},s.prototype.get=function(t){return this.getLong(t)},s.prototype.getLong=function(t){if(t===R.OFFSET_SECONDS)return this._totalSeconds;if(t instanceof R)throw new T("Unsupported field: "+t);return t.getFrom(this)},s.prototype.query=function(t){return y(t,"query"),t===A.offset()||t===A.zone()?this:t===A.localDate()||t===A.localTime()||t===A.precision()||t===A.chronology()||t===A.zoneId()?null:t.queryFrom(this)},s.prototype.adjustInto=function(t){return t.with(R.OFFSET_SECONDS,this._totalSeconds)},s.prototype.compareTo=function(t){return y(t,"other"),t._totalSeconds-this._totalSeconds},s.prototype.equals=function(t){return this===t||t instanceof s&&this._totalSeconds===t._totalSeconds},s.prototype.hashCode=function(){return this._totalSeconds},s.prototype.toString=function(){return this._id},s}(Z);var $=function(e){function o(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.call(this));return t.fieldValues=new k,t.chrono=null,t.zone=null,t.date=null,t.time=null,t.leapSecond=!1,t.excessDays=null,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(o,e),o.create=function(t,e){var n=new o;return n._addFieldValue(t,e),n},o.prototype.getFieldValue0=function(t){return this.fieldValues.get(t)},o.prototype._addFieldValue=function(t,e){y(t,"field");var n=this.getFieldValue0(t);if(null!=n&&n!==e)throw new T("Conflict found: "+t+" "+n+" differs from "+t+" "+e+": "+this);return this._putFieldValue0(t,e)},o.prototype._putFieldValue0=function(t,e){return this.fieldValues.put(t,e),this},o.prototype.resolve=function(t,e){return null!=e&&this.fieldValues.retainAll(e),this._mergeDate(t),this._mergeTime(t),this._resolveTimeInferZeroes(t),null!=this.excessDays&&!1===this.excessDays.isZero()&&null!=this.date&&null!=this.time&&(this.date=this.date.plus(this.excessDays),this.excessDays=x.ZERO),this._resolveInstant(),this},o.prototype._mergeDate=function(t){this._checkDate(fe.INSTANCE.resolveDate(this.fieldValues,t))},o.prototype._checkDate=function(t){if(null!=t)for(var e in this._addObject(t),this.fieldValues.keySet()){var n=R.byName(e);if(n&&void 0!==this.fieldValues.get(n)&&n.isDateBased()){var o=void 0;try{o=t.getLong(n)}catch(t){if(t instanceof T)continue;throw t}var r=this.fieldValues.get(n);if(o!==r)throw new T("Conflict found: Field "+n+" "+o+" differs from "+n+" "+r+" derived from "+t)}}},o.prototype._mergeTime=function(t){if(this.fieldValues.containsKey(R.CLOCK_HOUR_OF_DAY)){var e=this.fieldValues.remove(R.CLOCK_HOUR_OF_DAY);t!==j.LENIENT&&(t===j.SMART&&0===e||R.CLOCK_HOUR_OF_DAY.checkValidValue(e)),this._addFieldValue(R.HOUR_OF_DAY,24===e?0:e)}if(this.fieldValues.containsKey(R.CLOCK_HOUR_OF_AMPM)){var n=this.fieldValues.remove(R.CLOCK_HOUR_OF_AMPM);t!==j.LENIENT&&(t===j.SMART&&0===n||R.CLOCK_HOUR_OF_AMPM.checkValidValue(n)),this._addFieldValue(R.HOUR_OF_AMPM,12===n?0:n)}if(t!==j.LENIENT&&(this.fieldValues.containsKey(R.AMPM_OF_DAY)&&R.AMPM_OF_DAY.checkValidValue(this.fieldValues.get(R.AMPM_OF_DAY)),this.fieldValues.containsKey(R.HOUR_OF_AMPM)&&R.HOUR_OF_AMPM.checkValidValue(this.fieldValues.get(R.HOUR_OF_AMPM))),this.fieldValues.containsKey(R.AMPM_OF_DAY)&&this.fieldValues.containsKey(R.HOUR_OF_AMPM)){var o=this.fieldValues.remove(R.AMPM_OF_DAY),r=this.fieldValues.remove(R.HOUR_OF_AMPM);this._addFieldValue(R.HOUR_OF_DAY,12*o+r)}if(this.fieldValues.containsKey(R.NANO_OF_DAY)){var i=this.fieldValues.remove(R.NANO_OF_DAY);t!==j.LENIENT&&R.NANO_OF_DAY.checkValidValue(i),this._addFieldValue(R.SECOND_OF_DAY,g.intDiv(i,1e9)),this._addFieldValue(R.NANO_OF_SECOND,g.intMod(i,1e9))}if(this.fieldValues.containsKey(R.MICRO_OF_DAY)){var s=this.fieldValues.remove(R.MICRO_OF_DAY);t!==j.LENIENT&&R.MICRO_OF_DAY.checkValidValue(s),this._addFieldValue(R.SECOND_OF_DAY,g.intDiv(s,1e6)),this._addFieldValue(R.MICRO_OF_SECOND,g.intMod(s,1e6))}if(this.fieldValues.containsKey(R.MILLI_OF_DAY)){var a=this.fieldValues.remove(R.MILLI_OF_DAY);t!==j.LENIENT&&R.MILLI_OF_DAY.checkValidValue(a),this._addFieldValue(R.SECOND_OF_DAY,g.intDiv(a,1e3)),this._addFieldValue(R.MILLI_OF_SECOND,g.intMod(a,1e3))}if(this.fieldValues.containsKey(R.SECOND_OF_DAY)){var u=this.fieldValues.remove(R.SECOND_OF_DAY);t!==j.LENIENT&&R.SECOND_OF_DAY.checkValidValue(u),this._addFieldValue(R.HOUR_OF_DAY,g.intDiv(u,3600)),this._addFieldValue(R.MINUTE_OF_HOUR,g.intMod(g.intDiv(u,60),60)),this._addFieldValue(R.SECOND_OF_MINUTE,g.intMod(u,60))}if(this.fieldValues.containsKey(R.MINUTE_OF_DAY)){var p=this.fieldValues.remove(R.MINUTE_OF_DAY);t!==j.LENIENT&&R.MINUTE_OF_DAY.checkValidValue(p),this._addFieldValue(R.HOUR_OF_DAY,g.intDiv(p,60)),this._addFieldValue(R.MINUTE_OF_HOUR,g.intMod(p,60))}if(t!==j.LENIENT&&(this.fieldValues.containsKey(R.MILLI_OF_SECOND)&&R.MILLI_OF_SECOND.checkValidValue(this.fieldValues.get(R.MILLI_OF_SECOND)),this.fieldValues.containsKey(R.MICRO_OF_SECOND)&&R.MICRO_OF_SECOND.checkValidValue(this.fieldValues.get(R.MICRO_OF_SECOND))),this.fieldValues.containsKey(R.MILLI_OF_SECOND)&&this.fieldValues.containsKey(R.MICRO_OF_SECOND)){var f=this.fieldValues.remove(R.MILLI_OF_SECOND),c=this.fieldValues.get(R.MICRO_OF_SECOND);this._putFieldValue0(R.MICRO_OF_SECOND,1e3*f+g.intMod(c,1e3))}if(this.fieldValues.containsKey(R.MICRO_OF_SECOND)&&this.fieldValues.containsKey(R.NANO_OF_SECOND)){var h=this.fieldValues.get(R.NANO_OF_SECOND);this._putFieldValue0(R.MICRO_OF_SECOND,g.intDiv(h,1e3)),this.fieldValues.remove(R.MICRO_OF_SECOND)}if(this.fieldValues.containsKey(R.MILLI_OF_SECOND)&&this.fieldValues.containsKey(R.NANO_OF_SECOND)){var l=this.fieldValues.get(R.NANO_OF_SECOND);this._putFieldValue0(R.MILLI_OF_SECOND,g.intDiv(l,1e6)),this.fieldValues.remove(R.MILLI_OF_SECOND)}if(this.fieldValues.containsKey(R.MICRO_OF_SECOND)){var _=this.fieldValues.remove(R.MICRO_OF_SECOND);this._putFieldValue0(R.NANO_OF_SECOND,1e3*_)}else if(this.fieldValues.containsKey(R.MILLI_OF_SECOND)){var d=this.fieldValues.remove(R.MILLI_OF_SECOND);this._putFieldValue0(R.NANO_OF_SECOND,1e6*d)}},o.prototype._resolveTimeInferZeroes=function(t){var e=this.fieldValues.get(R.HOUR_OF_DAY),n=this.fieldValues.get(R.MINUTE_OF_HOUR),o=this.fieldValues.get(R.SECOND_OF_MINUTE),r=this.fieldValues.get(R.NANO_OF_SECOND);if(null!=e&&(null!=n||null==o&&null==r)&&(null==n||null!=o||null==r)){if(t!==j.LENIENT){if(null!=e){t!==j.SMART||24!==e||null!=n&&0!==n||null!=o&&0!==o||null!=r&&0!==r||(e=0,this.excessDays=x.ofDays(1));var i=R.HOUR_OF_DAY.checkValidIntValue(e);if(null!=n){var s=R.MINUTE_OF_HOUR.checkValidIntValue(n);if(null!=o){var a=R.SECOND_OF_MINUTE.checkValidIntValue(o);if(null!=r){var u=R.NANO_OF_SECOND.checkValidIntValue(r);this._addObject(Ee.of(i,s,a,u))}else this._addObject(Ee.of(i,s,a))}else null==r&&this._addObject(Ee.of(i,s))}else null==o&&null==r&&this._addObject(Ee.of(i,0))}}else if(null!=e){var p=e;if(null!=n)if(null!=o){null==r&&(r=0);var f=g.safeMultiply(p,36e11);f=g.safeAdd(f,g.safeMultiply(n,6e10)),f=g.safeAdd(f,g.safeMultiply(o,1e9)),f=g.safeAdd(f,r);var c=g.floorDiv(f,864e11),h=g.floorMod(f,864e11);this._addObject(Ee.ofNanoOfDay(h)),this.excessDays=x.ofDays(c)}else{var l=g.safeMultiply(p,3600);l=g.safeAdd(l,g.safeMultiply(n,60));var _=g.floorDiv(l,86400),d=g.floorMod(l,86400);this._addObject(Ee.ofSecondOfDay(d)),this.excessDays=x.ofDays(_)}else{var y=g.safeToInt(g.floorDiv(p,24));p=g.floorMod(p,24),this._addObject(Ee.of(p,0)),this.excessDays=x.ofDays(y)}}this.fieldValues.remove(R.HOUR_OF_DAY),this.fieldValues.remove(R.MINUTE_OF_HOUR),this.fieldValues.remove(R.SECOND_OF_MINUTE),this.fieldValues.remove(R.NANO_OF_SECOND)}},o.prototype._addObject=function(t){t instanceof B?this.date=t:t instanceof Ee&&(this.time=t)},o.prototype._resolveInstant=function(){if(null!=this.date&&null!=this.time){var t=this.fieldValues.get(R.OFFSET_SECONDS);if(null!=t){var e=Q.ofTotalSeconds(t),n=this.date.atTime(this.time).atZone(e).getLong(R.INSTANT_SECONDS);this.fieldValues.put(R.INSTANT_SECONDS,n)}else if(null!=this.zone){var o=this.date.atTime(this.time).atZone(this.zone).getLong(R.INSTANT_SECONDS);this.fieldValues.put(R.INSTANT_SECONDS,o)}}},o.prototype.build=function(t){return t.queryFrom(this)},o.prototype.isSupported=function(t){return null!=t&&(this.fieldValues.containsKey(t)&&void 0!==this.fieldValues.get(t)||null!=this.date&&this.date.isSupported(t)||null!=this.time&&this.time.isSupported(t))},o.prototype.getLong=function(t){y(t,"field");var e=this.getFieldValue0(t);if(null!=e)return e;if(null!=this.date&&this.date.isSupported(t))return this.date.getLong(t);if(null!=this.time&&this.time.isSupported(t))return this.time.getLong(t);throw new T("Field not found: "+t)},o.prototype.query=function(t){return t===A.zoneId()?this.zone:t===A.chronology()?this.chrono:t===A.localDate()?null!=this.date?_e.from(this.date):null:t===A.localTime()?this.time:t===A.zone()||t===A.offset()?t.queryFrom(this):t===A.precision()?null:t.queryFrom(this)},o}(v);function tt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var et=function(){function t(){if(tt(this,t),1===arguments.length){if(arguments[0]instanceof t)return void this._constructorSelf.apply(this,arguments);this._constructorFormatter.apply(this,arguments)}else this._constructorParam.apply(this,arguments);this._caseSensitive=!0,this._strict=!0,this._parsed=[new nt(this)]}return t.prototype._constructorParam=function(t,e,n){this._locale=t,this._symbols=e,this._overrideChronology=n},t.prototype._constructorFormatter=function(t){this._locale=t.locale(),this._symbols=t.decimalStyle(),this._overrideChronology=t.chronology()},t.prototype._constructorSelf=function(t){this._locale=t._locale,this._symbols=t._symbols,this._overrideChronology=t._overrideChronology,this._overrideZone=t._overrideZone,this._caseSensitive=t._caseSensitive,this._strict=t._strict,this._parsed=[new nt(this)]},t.prototype.copy=function(){return new t(this)},t.prototype.symbols=function(){return this._symbols},t.prototype.isStrict=function(){return this._strict},t.prototype.setStrict=function(t){this._strict=t},t.prototype.locale=function(){return this._locale},t.prototype.setLocale=function(t){this._locale=t},t.prototype.startOptional=function(){this._parsed.push(this.currentParsed().copy())},t.prototype.endOptional=function(t){t?this._parsed.splice(this._parsed.length-2,1):this._parsed.splice(this._parsed.length-1,1)},t.prototype.isCaseSensitive=function(){return this._caseSensitive},t.prototype.setCaseSensitive=function(t){this._caseSensitive=t},t.prototype.subSequenceEquals=function(t,e,n,o,r){if(e+r>t.length||o+r>n.length)return!1;this.isCaseSensitive()||(t=t.toLowerCase(),n=n.toLowerCase());for(var i=0;i<r;i++){if(t[e+i]!==n[o+i])return!1}return!0},t.prototype.charEquals=function(t,e){return this.isCaseSensitive()?t===e:this.charEqualsIgnoreCase(t,e)},t.prototype.charEqualsIgnoreCase=function(t,e){return t===e||t.toLowerCase()===e.toLowerCase()},t.prototype.setParsedField=function(t,e,n,o){var r=this.currentParsed().fieldValues,i=r.get(t);return r.set(t,e),null!=i&&i!==e?~n:o},t.prototype.setParsedZone=function(t){y(t,"zone"),this.currentParsed().zone=t},t.prototype.getParsed=function(t){return this.currentParsed().fieldValues.get(t)},t.prototype.toParsed=function(){return this.currentParsed()},t.prototype.currentParsed=function(){return this._parsed[this._parsed.length-1]},t.prototype.setParsedLeapSecond=function(){this.currentParsed().leapSecond=!0},t.prototype.getEffectiveChronology=function(){var t=this.currentParsed().chrono;return null==t&&null==(t=this._overrideChronology)&&(t=fe.INSTANCE),t},t}(),nt=function(n){function o(t){tt(this,o);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,n.call(this));return e.chrono=null,e.zone=null,e.fieldValues=new k,e.leapSecond=!1,e.dateTimeParseContext=t,e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(o,n),o.prototype.copy=function(){var t=new o;return t.chrono=this.chrono,t.zone=this.zone,t.fieldValues.putAll(this.fieldValues),t.leapSecond=this.leapSecond,t.dateTimeParseContext=this.dateTimeParseContext,t},o.prototype.toString=function(){return this.fieldValues+", "+this.chrono+", "+this.zone},o.prototype.isSupported=function(t){return this.fieldValues.containsKey(t)},o.prototype.get=function(t){var e=this.fieldValues.get(t);return S(null!=e),e},o.prototype.query=function(t){return t===A.chronology()?this.chrono:t===A.zoneId()||t===A.zone()?this.zone:n.prototype.query.call(this,t)},o.prototype.toBuilder=function(){var t=new $;return t.fieldValues.putAll(this.fieldValues),t.chrono=this.dateTimeParseContext.getEffectiveChronology(),null!=this.zone?t.zone=this.zone:t.zone=this.overrideZone,t.leapSecond=this.leapSecond,t.excessDays=this.excessDays,t},o}(v);var ot=function(){function o(t,e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),2===arguments.length&&e instanceof Gt?(this._temporal=o.adjust(t,e),this._locale=e.locale(),this._symbols=e.decimalStyle()):(this._temporal=t,this._locale=e,this._symbols=n),this._optional=0}return o.adjust=function(t,e){return t},o.prototype.symbols=function(){return this._symbols},o.prototype.startOptional=function(){this._optional++},o.prototype.endOptional=function(){this._optional--},o.prototype.getValueQuery=function(t){var e=this._temporal.query(t);if(null==e&&0===this._optional)throw new T("Unable to extract value: "+this._temporal);return e},o.prototype.getValue=function(t){try{return this._temporal.getLong(t)}catch(t){if(t instanceof T&&0<this._optional)return null;throw t}},o.prototype.temporal=function(){return this._temporal},o.prototype.locale=function(){return this._locale},o.prototype.setDateTime=function(t){this._temporal=t},o.prototype.setLocale=function(t){this._locale=t},o}();function rt(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function it(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function st(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var at=function t(){st(this,t)},ut=[0,90,181,273,0,91,182,274],pt=function(t){function s(){return st(this,s),rt(this,t.apply(this,arguments))}return it(s,t),s.prototype.isDateBased=function(){return!0},s.prototype.isTimeBased=function(){return!1},s.prototype._isIso=function(){return!0},s._getWeekRangeByLocalDate=function(t){var e=s._getWeekBasedYear(t);return D.of(1,s._getWeekRangeByYear(e))},s._getWeekRangeByYear=function(t){var e=_e.of(t,1,1);return e.dayOfWeek()===F.THURSDAY||e.dayOfWeek()===F.WEDNESDAY&&e.isLeapYear()?53:52},s._getWeek=function(t){var e=t.dayOfWeek().ordinal(),n=t.dayOfYear()-1,o=n+(3-e),r=o-7*g.intDiv(o,7)-3;if(r<-3&&(r+=7),n<r)return s._getWeekRangeByLocalDate(t.withDayOfYear(180).minusYears(1)).maximum();var i=g.intDiv(n-r,7)+1;return 53===i&&!1===(-3===r||-2===r&&t.isLeapYear())&&(i=1),i},s._getWeekBasedYear=function(t){var e=t.year(),n=t.dayOfYear();if(n<=3)n-t.dayOfWeek().ordinal()<-2&&e--;else if(363<=n){var o=t.dayOfWeek().ordinal();0<=(n=n-363-(t.isLeapYear()?1:0))-o&&e++}return e},s.prototype.getDisplayName=function(){return this.toString()},s.prototype.resolve=function(){return null},s.prototype.name=function(){return this.toString()},s}(N),ft=function(t){function e(){return st(this,e),rt(this,t.apply(this,arguments))}return it(e,t),e.prototype.toString=function(){return"DayOfQuarter"},e.prototype.baseUnit=function(){return m.DAYS},e.prototype.rangeUnit=function(){return mt},e.prototype.range=function(){return D.of(1,90,92)},e.prototype.isSupportedBy=function(t){return t.isSupported(R.DAY_OF_YEAR)&&t.isSupported(R.MONTH_OF_YEAR)&&t.isSupported(R.YEAR)&&this._isIso(t)},e.prototype.rangeRefinedBy=function(t){if(!1===t.isSupported(this))throw new h("Unsupported field: DayOfQuarter");var e=t.getLong(yt);if(1!==e)return 2===e?D.of(1,91):3===e||4===e?D.of(1,92):this.range();var n=t.getLong(R.YEAR);return fe.isLeapYear(n)?D.of(1,91):D.of(1,90)},e.prototype.getFrom=function(t){if(!1===t.isSupported(this))throw new h("Unsupported field: DayOfQuarter");var e=t.get(R.DAY_OF_YEAR),n=t.get(R.MONTH_OF_YEAR),o=t.getLong(R.YEAR);return e-ut[g.intDiv(n-1,3)+(fe.isLeapYear(o)?4:0)]},e.prototype.adjustInto=function(t,e){var n=this.getFrom(t);return this.range().checkValidValue(e,this),t.with(R.DAY_OF_YEAR,t.getLong(R.DAY_OF_YEAR)+(e-n))},e.prototype.resolve=function(t,e,n){var o=t.get(R.YEAR),r=t.get(yt);if(null==o||null==r)return null;var i=R.YEAR.checkValidIntValue(o),s=t.get(dt),a=void 0;if(n===j.LENIENT){var u=r;a=(a=(a=_e.of(i,1,1)).plusMonths(g.safeMultiply(g.safeSubtract(u,1),3))).plusDays(g.safeSubtract(s,1))}else{var p=yt.range().checkValidIntValue(r,yt);if(n===j.STRICT){var f=92;1===p?f=fe.isLeapYear(i)?91:90:2===p&&(f=91),D.of(1,f).checkValidValue(s,this)}else this.range().checkValidValue(s,this);a=_e.of(i,3*(p-1)+1,1).plusDays(s-1)}return t.remove(this),t.remove(R.YEAR),t.remove(yt),a},e}(pt),ct=function(t){function e(){return st(this,e),rt(this,t.apply(this,arguments))}return it(e,t),e.prototype.toString=function(){return"QuarterOfYear"},e.prototype.baseUnit=function(){return mt},e.prototype.rangeUnit=function(){return m.YEARS},e.prototype.range=function(){return D.of(1,4)},e.prototype.isSupportedBy=function(t){return t.isSupported(R.MONTH_OF_YEAR)&&this._isIso(t)},e.prototype.rangeRefinedBy=function(t){return this.range()},e.prototype.getFrom=function(t){if(!1===t.isSupported(this))throw new h("Unsupported field: QuarterOfYear");var e=t.getLong(R.MONTH_OF_YEAR);return g.intDiv(e+2,3)},e.prototype.adjustInto=function(t,e){var n=this.getFrom(t);return this.range().checkValidValue(e,this),t.with(R.MONTH_OF_YEAR,t.getLong(R.MONTH_OF_YEAR)+3*(e-n))},e}(pt),ht=function(t){function e(){return st(this,e),rt(this,t.apply(this,arguments))}return it(e,t),e.prototype.toString=function(){return"WeekOfWeekBasedYear"},e.prototype.baseUnit=function(){return m.WEEKS},e.prototype.rangeUnit=function(){return St},e.prototype.range=function(){return D.of(1,52,53)},e.prototype.isSupportedBy=function(t){return t.isSupported(R.EPOCH_DAY)&&this._isIso(t)},e.prototype.rangeRefinedBy=function(t){if(!1===t.isSupported(this))throw new h("Unsupported field: WeekOfWeekBasedYear");return pt._getWeekRangeByLocalDate(_e.from(t))},e.prototype.getFrom=function(t){if(!1===t.isSupported(this))throw new h("Unsupported field: WeekOfWeekBasedYear");return pt._getWeek(_e.from(t))},e.prototype.adjustInto=function(t,e){return this.range().checkValidValue(e,this),t.plus(g.safeSubtract(e,this.getFrom(t)),m.WEEKS)},e.prototype.resolve=function(t,e,n){var o=t.get(Et),r=t.get(R.DAY_OF_WEEK);if(null==o||null==r)return null;var i=Et.range().checkValidIntValue(o,Et),s=t.get(Ot),a=void 0;if(n===j.LENIENT){var u=r,p=0;7<u?(p=g.intDiv(u-1,7),u=g.intMod(u-1,7)+1):u<1&&(p=g.intDiv(u,7)-1,u=g.intMod(u,7)+7),a=_e.of(i,1,4).plusWeeks(s-1).plusWeeks(p).with(R.DAY_OF_WEEK,u)}else{var f=R.DAY_OF_WEEK.checkValidIntValue(r);if(n===j.STRICT){var c=_e.of(i,1,4);pt._getWeekRangeByLocalDate(c).checkValidValue(s,this)}else this.range().checkValidValue(s,this);a=_e.of(i,1,4).plusWeeks(s-1).with(R.DAY_OF_WEEK,f)}return t.remove(this),t.remove(Et),t.remove(R.DAY_OF_WEEK),a},e.prototype.getDisplayName=function(){return"Week"},e}(pt),lt=function(t){function e(){return st(this,e),rt(this,t.apply(this,arguments))}return it(e,t),e.prototype.toString=function(){return"WeekBasedYear"},e.prototype.baseUnit=function(){return St},e.prototype.rangeUnit=function(){return m.FOREVER},e.prototype.range=function(){return R.YEAR.range()},e.prototype.isSupportedBy=function(t){return t.isSupported(R.EPOCH_DAY)&&this._isIso(t)},e.prototype.rangeRefinedBy=function(t){return R.YEAR.range()},e.prototype.getFrom=function(t){if(!1===t.isSupported(this))throw new h("Unsupported field: WeekBasedYear");return pt._getWeekBasedYear(_e.from(t))},e.prototype.adjustInto=function(t,e){if(!1===this.isSupportedBy(t))throw new h("Unsupported field: WeekBasedYear");var n=this.range().checkValidIntValue(e,Et),o=_e.from(t),r=o.get(R.DAY_OF_WEEK),i=pt._getWeek(o);53===i&&52===pt._getWeekRangeByYear(n)&&(i=52);var s=_e.of(n,1,4),a=r-s.get(R.DAY_OF_WEEK)+7*(i-1);return s=s.plusDays(a),t.with(s)},e}(pt),_t=function(o){function r(t,e){st(this,r);var n=rt(this,o.call(this));return n._name=t,n._duration=e,n}return it(r,o),r.prototype.duration=function(){return this._duration},r.prototype.isDurationEstimated=function(){return!0},r.prototype.isDateBased=function(){return!0},r.prototype.isTimeBased=function(){return!1},r.prototype.isSupportedBy=function(t){return t.isSupported(R.EPOCH_DAY)},r.prototype.addTo=function(t,e){switch(this){case St:var n=g.safeAdd(t.get(Et),e);return t.with(Et,n);case mt:return t.plus(g.intDiv(e,256),m.YEARS).plus(3*g.intMod(e,256),m.MONTHS);default:throw new i("Unreachable")}},r.prototype.between=function(t,e){switch(this){case St:return g.safeSubtract(e.getLong(Et),t.getLong(Et));case mt:return g.intDiv(t.until(e,m.MONTHS),3);default:throw new i("Unreachable")}},r.prototype.toString=function(){return name},r}(f),dt=null,yt=null,Ot=null,Et=null,St=null,mt=null;var Nt=function(){function r(t,e,n,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),this._zeroDigit=t,this._zeroDigitCharCode=t.charCodeAt(0),this._positiveSign=e,this._negativeSign=n,this._decimalSeparator=o}return r.prototype.positiveSign=function(){return this._positiveSign},r.prototype.withPositiveSign=function(t){return t===this._positiveSign?this:new r(this._zeroDigit,t,this._negativeSign,this._decimalSeparator)},r.prototype.negativeSign=function(){return this._negativeSign},r.prototype.withNegativeSign=function(t){return t===this._negativeSign?this:new r(this._zeroDigit,this._positiveSign,t,this._decimalSeparator)},r.prototype.zeroDigit=function(){return this._zeroDigit},r.prototype.withZeroDigit=function(t){return t===this._zeroDigit?this:new r(t,this._positiveSign,this._negativeSign,this._decimalSeparator)},r.prototype.decimalSeparator=function(){return this._decimalSeparator},r.prototype.withDecimalSeparator=function(t){return t===this._decimalSeparator?this:new r(this._zeroDigit,this._positiveSign,this._negativeSign,t)},r.prototype.convertToDigit=function(t){var e=t.charCodeAt(0)-this._zeroDigitCharCode;return 0<=e&&e<=9?e:-1},r.prototype.convertNumberToI18N=function(t){if("0"===this._zeroDigit)return t;for(var e=this._zeroDigitCharCode-"0".charCodeAt(0),n="",o=0;o<t.length;o++)n+=String.fromCharCode(t.charCodeAt(o)+e);return n},r.prototype.equals=function(t){return this===t||t instanceof r&&(this._zeroDigit===t._zeroDigit&&this._positiveSign===t._positiveSign&&this._negativeSign===t._negativeSign&&this._decimalSeparator===t._decimalSeparator)},r.prototype.hashCode=function(){return this._zeroDigit+this._positiveSign+this._negativeSign+this._decimalSeparator},r.prototype.toString=function(){return"DecimalStyle["+this._zeroDigit+this._positiveSign+this._negativeSign+this._decimalSeparator+"]"},r.of=function(){throw new Error("not yet supported")},r.availableLocales=function(){throw new Error("not yet supported")},r}();Nt.STANDARD=new Nt("0","+","-",".");var Dt=function(t){function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(o,t),o.prototype.parse=function(t,e,n){switch(this){case o.NORMAL:return!t||!e;case o.ALWAYS:case o.EXCEEDS_PAD:return!0;default:return!e&&!n}},o}(u);Dt.NORMAL=new Dt("NORMAL"),Dt.NEVER=new Dt("NEVER"),Dt.ALWAYS=new Dt("ALWAYS"),Dt.EXCEEDS_PAD=new Dt("EXCEEDS_PAD"),Dt.NOT_NEGATIVE=new Dt("NOT_NEGATIVE");var At=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.isStandalone=function(){switch(this){case e.FULL_STANDALONE:case e.SHORT_STANDALONE:case e.NARROW_STANDALONE:return!0;default:return!1}},e.prototype.asStandalone=function(){switch(this){case e.FULL:return e.FULL_STANDALONE;case e.SHORT:return e.SHORT_STANDALONE;case e.NARROW:return e.NARROW_STANDALONE;default:return this}},e.prototype.asNormal=function(){switch(this){case e.FULL_STANDALONE:return e.FULL;case e.SHORT_STANDALONE:return e.SHORT;case e.NARROW_STANDALONE:return e.NARROW;default:return this}},e}(u);At.FULL=new At("FULL"),At.FULL_STANDALONE=new At("FULL_STANDALONE"),At.SHORT=new At("SHORT"),At.SHORT_STANDALONE=new At("SHORT_STANDALONE"),At.NARROW=new At("NARROW"),At.NARROW_STANDALONE=new At("NARROW_STANDALONE");var wt=function(){function e(t){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),1<t.length)throw new c('invalid literal, too long: "'+t+'"');this._literal=t}return e.prototype.print=function(t,e){return e.append(this._literal),!0},e.prototype.parse=function(t,e,n){if(n===e.length)return~n;var o=e.charAt(n);return!1===t.charEquals(this._literal,o)?~n:n+this._literal.length},e.prototype.toString=function(){return"'"===this._literal?"''":"'"+this._literal+"'"},e}();var vt=function(){function n(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this._printerParsers=t,this._optional=e}return n.prototype.withOptional=function(t){return t===this._optional?this:new n(this._printerParsers,t)},n.prototype.print=function(t,e){var n=e.length();this._optional&&t.startOptional();try{for(var o=0;o<this._printerParsers.length;o++){if(!1===this._printerParsers[o].print(t,e))return e.setLength(n),!0}}finally{this._optional&&t.endOptional()}return!0},n.prototype.parse=function(t,e,n){if(this._optional){t.startOptional();for(var o=n,r=0;r<this._printerParsers.length;r++){if((o=this._printerParsers[r].parse(t,e,o))<0)return t.endOptional(!1),n}return t.endOptional(!0),o}for(var i=0;i<this._printerParsers.length;i++){if((n=this._printerParsers[i].parse(t,e,n))<0)break}return n},n.prototype.toString=function(){var t="";if(null!=this._printerParsers){t+=this._optional?"[":"(";for(var e=0;e<this._printerParsers.length;e++){t+=this._printerParsers[e].toString()}t+=this._optional?"]":")"}return t},n}();var Tt=function(){function r(t,e,n,o){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),y(t,"field"),!1===t.range().isFixed())throw new c("Field must have a fixed set of values: "+t);if(e<0||9<e)throw new c("Minimum width must be from 0 to 9 inclusive but was "+e);if(n<1||9<n)throw new c("Maximum width must be from 1 to 9 inclusive but was "+n);if(n<e)throw new c("Maximum width must exceed or equal the minimum width but "+n+" < "+e);this.field=t,this.minWidth=e,this.maxWidth=n,this.decimalPoint=o}return r.prototype.print=function(t,e){var n=t.getValue(this.field);if(null===n)return!1;var o=t.symbols();if(0===n){if(0<this.minWidth){this.decimalPoint&&e.append(o.decimalSeparator());for(var r=0;r<this.minWidth;r++)e.append(o.zeroDigit())}}else{var i=this.convertToFraction(n,o.zeroDigit()),s=Math.min(Math.max(i.length,this.minWidth),this.maxWidth);if(0<1*(i=i.substr(0,s)))for(;i.length>this.minWidth&&"0"===i[i.length-1];)i=i.substr(0,i.length-1);var a=i;a=o.convertNumberToI18N(a),this.decimalPoint&&e.append(o.decimalSeparator()),e.append(a)}return!0},r.prototype.parse=function(t,e,n){var o=t.isStrict()?this.minWidth:0,r=t.isStrict()?this.maxWidth:9,i=e.length;if(n===i)return 0<o?~n:n;if(this.decimalPoint){if(e[n]!==t.symbols().decimalSeparator())return 0<o?~n:n;n++}var s=n+o;if(i<s)return~n;for(var a=Math.min(n+r,i),u=0,p=n;p<a;){var f=e.charAt(p++),c=t.symbols().convertToDigit(f);if(c<0){if(p<s)return~n;p--;break}u=10*u+c}var h=p-n,l=Math.pow(10,h),_=this.convertFromFraction(u,l);return t.setParsedField(this.field,_,n,p)},r.prototype.convertToFraction=function(t,e){var n=this.field.range();n.checkValidValue(t,this.field);for(var o=n.minimum(),r=n.maximum()-o+1,i=t-o,s=""+g.intDiv(1e9*i,r);s.length<9;)s=e+s;return s},r.prototype.convertFromFraction=function(t,e){var n=this.field.range(),o=n.minimum(),r=n.maximum()-o+1;return g.intDiv(t*r,e)},r.prototype.toString=function(){var t=this.decimalPoint?",DecimalPoint":"";return"Fraction("+this.field+","+this.minWidth+","+this.maxWidth+t+")"},r}();function gt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Rt=[0,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9],Mt=function(){function i(t,e,n,o){var r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0;gt(this,i),this._field=t,this._minWidth=e,this._maxWidth=n,this._signStyle=o,this._subsequentWidth=r}return i.prototype.field=function(){return this._field},i.prototype.minWidth=function(){return this._minWidth},i.prototype.maxWidth=function(){return this._maxWidth},i.prototype.signStyle=function(){return this._signStyle},i.prototype.withFixedWidth=function(){return-1===this._subsequentWidth?this:new i(this._field,this._minWidth,this._maxWidth,this._signStyle,-1)},i.prototype.withSubsequentWidth=function(t){return new i(this._field,this._minWidth,this._maxWidth,this._signStyle,this._subsequentWidth+t)},i.prototype._isFixedWidth=function(){return-1===this._subsequentWidth||0<this._subsequentWidth&&this._minWidth===this._maxWidth&&this._signStyle===Dt.NOT_NEGATIVE},i.prototype.print=function(t,e){var n=t.getValue(this._field);if(null==n)return!1;var o=this._getValue(t,n),r=t.symbols(),i=""+Math.abs(o);if(i.length>this._maxWidth)throw new T("Field "+this._field+" cannot be printed as the value "+o+" exceeds the maximum print width of "+this._maxWidth);if(i=r.convertNumberToI18N(i),0<=o)switch(this._signStyle){case Dt.EXCEEDS_PAD:this._minWidth<15&&o>=Rt[this._minWidth]&&e.append(r.positiveSign());break;case Dt.ALWAYS:e.append(r.positiveSign())}else switch(this._signStyle){case Dt.NORMAL:case Dt.EXCEEDS_PAD:case Dt.ALWAYS:e.append(r.negativeSign());break;case Dt.NOT_NEGATIVE:throw new T("Field "+this._field+" cannot be printed as the value "+o+" cannot be negative according to the SignStyle")}for(var s=0;s<this._minWidth-i.length;s++)e.append(r.zeroDigit());return e.append(i),!0},i.prototype.parse=function(t,e,n){var o=e.length;if(n===o)return~n;S(0<=n&&n<o);var r=e.charAt(n),i=!1,s=!1;if(r===t.symbols().positiveSign()){if(!1===this._signStyle.parse(!0,t.isStrict(),this._minWidth===this._maxWidth))return~n;s=!0,n++}else if(r===t.symbols().negativeSign()){if(!1===this._signStyle.parse(!1,t.isStrict(),this._minWidth===this._maxWidth))return~n;i=!0,n++}else if(this._signStyle===Dt.ALWAYS&&t.isStrict())return~n;var a=t.isStrict()||this._isFixedWidth()?this._minWidth:1,u=n+a;if(o<u)return~n;for(var p=(t.isStrict()||this._isFixedWidth()?this._maxWidth:9)+Math.max(this._subsequentWidth,0),f=0,c=n,h=0;h<2;h++){for(var l=Math.min(c+p,o);c<l;){var _=e.charAt(c++),d=t.symbols().convertToDigit(_);if(d<0){if(--c<u)return~n;break}if(15<c-n)throw new E("number text exceeds length");f=10*f+d}if(!(0<this._subsequentWidth&&0===h))break;var y=c-n;p=Math.max(a,y-this._subsequentWidth),c=n,f=0}if(i){if(0===f&&t.isStrict())return~(n-1);0!==f&&(f=-f)}else if(this._signStyle===Dt.EXCEEDS_PAD&&t.isStrict()){var O=c-n;if(s){if(O<=this._minWidth)return~(n-1)}else if(O>this._minWidth)return~n}return this._setValue(t,f,n,c)},i.prototype._getValue=function(t,e){return e},i.prototype._setValue=function(t,e,n,o){return t.setParsedField(this._field,e,n,o)},i.prototype.toString=function(){return 1===this._minWidth&&15===this._maxWidth&&this._signStyle===Dt.NORMAL?"Value("+this._field+")":this._minWidth===this._maxWidth&&this._signStyle===Dt.NOT_NEGATIVE?"Value("+this._field+","+this._minWidth+")":"Value("+this._field+","+this._minWidth+","+this._maxWidth+","+this._signStyle+")"},i}(),It=function(s){function a(t,e,n,o,r){gt(this,a);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,s.call(this,t,e,n,Dt.NOT_NEGATIVE));if(e<1||10<e)throw new c("The width must be from 1 to 10 inclusive but was "+e);if(n<1||10<n)throw new c("The maxWidth must be from 1 to 10 inclusive but was "+n);if(n<e)throw new c("The maxWidth must be greater than the width");if(null===r){if(!1===t.range().isValidValue(o))throw new c("The base value must be within the range of the field");if(o+Rt[e]>g.MAX_SAFE_INTEGER)throw new T("Unable to add printer-parser as the range exceeds the capacity of an int")}return i._baseValue=o,i._baseDate=r,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(a,s),a.prototype._getValue=function(t,e){var n=Math.abs(e),o=this._baseValue;null!==this._baseDate&&(t.temporal(),o=fe.INSTANCE.date(this._baseDate).get(this._field));return o<=e&&e<o+Rt[this._minWidth]?n%Rt[this._minWidth]:n%Rt[this._maxWidth]},a.prototype._setValue=function(t,e,n,o){var r=this._baseValue;null!=this._baseDate&&(r=t.getEffectiveChronology().date(this._baseDate).get(this._field));if(o-n===this._minWidth&&0<=e){var i=Rt[this._minWidth],s=r-r%i;(e=0<r?s+e:s-e)<r&&(e+=i)}return t.setParsedField(this._field,e,n,o)},a.prototype.withFixedWidth=function(){return-1===this._subsequentWidth?this:new a(this._field,this._minWidth,this._maxWidth,this._baseValue,this._baseDate,-1)},a.prototype.withSubsequentWidth=function(t){return new a(this._field,this._minWidth,this._maxWidth,this._baseValue,this._baseDate,this._subsequentWidth+t)},a.prototype.isFixedWidth=function(t){return!1!==t.isStrict()&&s.prototype.isFixedWidth.call(this,t)},a.prototype.toString=function(){return"ReducedValue("+this._field+","+this._minWidth+","+this._maxWidth+","+(null!=this._baseDate?this._baseDate:this._baseValue)+")"},a}(Mt);var bt=["+HH","+HHmm","+HH:mm","+HHMM","+HH:MM","+HHMMss","+HH:MM:ss","+HHMMSS","+HH:MM:SS"],Ct=function(){function n(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),y(t,"noOffsetText"),y(e,"pattern"),this.noOffsetText=t,this.type=this._checkPattern(e)}return n.prototype._checkPattern=function(t){for(var e=0;e<bt.length;e++)if(bt[e]===t)return e;throw new c("Invalid zone offset pattern: "+t)},n.prototype.print=function(t,e){var n=t.getValue(R.OFFSET_SECONDS);if(null==n)return!1;var o=g.safeToInt(n);if(0===o)e.append(this.noOffsetText);else{var r=Math.abs(g.intMod(g.intDiv(o,3600),100)),i=Math.abs(g.intMod(g.intDiv(o,60),60)),s=Math.abs(g.intMod(o,60)),a=e.length(),u=r;e.append(o<0?"-":"+").appendChar(g.intDiv(r,10)+"0").appendChar(g.intMod(r,10)+"0"),(3<=this.type||1<=this.type&&0<i)&&(e.append(this.type%2==0?":":"").appendChar(g.intDiv(i,10)+"0").appendChar(i%10+"0"),u+=i,(7<=this.type||5<=this.type&&0<s)&&(e.append(this.type%2==0?":":"").appendChar(g.intDiv(s,10)+"0").appendChar(s%10+"0"),u+=s)),0===u&&(e.setLength(a),e.append(this.noOffsetText))}return!0},n.prototype.parse=function(t,e,n){var o=e.length,r=this.noOffsetText.length;if(0===r){if(n===o)return t.setParsedField(R.OFFSET_SECONDS,0,n,n)}else{if(n===o)return~n;if(t.subSequenceEquals(e,n,this.noOffsetText,0,r))return t.setParsedField(R.OFFSET_SECONDS,0,n,n+r)}var i=e[n];if("+"===i||"-"===i){var s="-"===i?-1:1,a=[0,0,0,0];if(a[0]=n+1,!1===(this._parseNumber(a,1,e,!0)||this._parseNumber(a,2,e,3<=this.type)||this._parseNumber(a,3,e,!1))){var u=g.safeZero(s*(3600*a[1]+60*a[2]+a[3]));return t.setParsedField(R.OFFSET_SECONDS,u,n,a[0])}}return 0===r?t.setParsedField(R.OFFSET_SECONDS,0,n,n+r):~n},n.prototype._parseNumber=function(t,e,n,o){if((this.type+3)/2<e)return!1;var r=t[0];if(this.type%2==0&&1<e){if(r+1>n.length||":"!==n[r])return o;r++}if(r+2>n.length)return o;var i=n[r++],s=n[r++];if(i<"0"||"9"<i||s<"0"||"9"<s)return o;var a=10*(i.charCodeAt(0)-48)+(s.charCodeAt(0)-48);return a<0||59<a?o:(t[e]=a,t[0]=r,!1)},n.prototype.toString=function(){var t=this.noOffsetText.replace("'","''");return"Offset("+bt[this.type]+",'"+t+"')"},n}();Ct.INSTANCE_ID=new Ct("Z","+HH:MM:ss"),Ct.PATTERNS=bt;var Yt=function(){function o(t,e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),this._printerParser=t,this._padWidth=e,this._padChar=n}return o.prototype.print=function(t,e){var n=e.length();if(!1===this._printerParser.print(t,e))return!1;var o=e.length()-n;if(o>this._padWidth)throw new T("Cannot print as output of "+o+" characters exceeds pad width of "+this._padWidth);for(var r=0;r<this._padWidth-o;r++)e.insert(n,this._padChar);return!0},o.prototype.parse=function(t,e,n){var o=t.isStrict(),r=t.isCaseSensitive();if(S(!(n>e.length)),S(0<=n),n===e.length)return~n;var i=n+this._padWidth;if(i>e.length){if(o)return~n;i=e.length}for(var s=n;s<i&&(r?e[s]===this._padChar:t.charEquals(e[s],this._padChar));)s++;e=e.substring(0,i);var a=this._printerParser.parse(t,e,s);return a!==i&&o?~(n+s):a},o.prototype.toString=function(){return"Pad("+this._printerParser+","+this._padWidth+(" "===this._padChar?")":",'"+this._padChar+"')")},o}();var Ft=function(t){function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(o,t),o.prototype.print=function(){return!0},o.prototype.parse=function(t,e,n){switch(this){case o.SENSITIVE:t.setCaseSensitive(!0);break;case o.INSENSITIVE:t.setCaseSensitive(!1);break;case o.STRICT:t.setStrict(!0);break;case o.LENIENT:t.setStrict(!1)}return n},o.prototype.toString=function(){switch(this){case o.SENSITIVE:return"ParseCaseSensitive(true)";case o.INSENSITIVE:return"ParseCaseSensitive(false)";case o.STRICT:return"ParseStrict(true)";case o.LENIENT:return"ParseStrict(false)"}},o}(u);Ft.SENSITIVE=new Ft("SENSITIVE"),Ft.INSENSITIVE=new Ft("INSENSITIVE"),Ft.STRICT=new Ft("STRICT"),Ft.LENIENT=new Ft("LENIENT");var Lt=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this._literal=t}return e.prototype.print=function(t,e){return e.append(this._literal),!0},e.prototype.parse=function(t,e,n){return S(!(e.length<n||n<0)),!1===t.subSequenceEquals(e,n,this._literal,0,this._literal.length)?~n:n+this._literal.length},e.prototype.toString=function(){return"'"+this._literal.replace("'","''")+"'"},e}();var Pt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.getRules=function(t){throw new T("unsupported ZoneId:"+t)},t.getAvailableZoneIds=function(){return[]},t}();var Ut=function(o){function r(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,o.call(this));return n._id=t,n._rules=e,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,o),r.ofId=function(t){return new r(t,Pt.getRules(t))},r.prototype.id=function(){return this._id},r.prototype.rules=function(){return this._rules},r}(Z);function Vt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Ht=function(){function n(t,e){Vt(this,n),this.query=t,this.description=e}return n.prototype.print=function(t,e){var n=t.getValueQuery(this.query);return null!=n&&(e.append(n.id()),!0)},n.prototype.parse=function(t,e,n){var o=e.length;if(o<n)return~n;if(n===o)return~n;var r=e.charAt(n);if("+"===r||"-"===r){var i=t.copy(),s=Ct.INSTANCE_ID.parse(i,e,n);if(s<0)return s;var a=i.getParsed(R.OFFSET_SECONDS),u=Q.ofTotalSeconds(a);return t.setParsedZone(u),s}if(n+2<=o){var p=e.charAt(n+1);if(t.charEquals(r,"U")&&t.charEquals(p,"T"))return n+3<=o&&t.charEquals(e.charAt(n+2),"C")?this._parsePrefixedOffset(t,e,n,n+3):this._parsePrefixedOffset(t,e,n,n+2);if(t.charEquals(r,"G")&&n+3<=o&&t.charEquals(p,"M")&&t.charEquals(e.charAt(n+2),"T"))return this._parsePrefixedOffset(t,e,n,n+3)}if("SYSTEM"===e.substr(n,6))return t.setParsedZone(Z.systemDefault()),n+6;if(t.charEquals(r,"Z"))return t.setParsedZone(Q.UTC),n+1;var f=Pt.getAvailableZoneIds();kt.size!==f.length&&(kt=xt.createTreeMap(f));for(var c=o-n,h=kt.treeMap,l=null,_=0;null!=h;){var d=e.substr(n,Math.min(h.length,c));null!=(h=h.get(d))&&h.isLeaf&&(l=d,_=h.length)}return null!=l?(t.setParsedZone(Ut.ofId(l)),n+_):~n},n.prototype._parsePrefixedOffset=function(t,e,n,o){var r=e.substring(n,o).toUpperCase(),i=t.copy();if(o<e.length&&t.charEquals(e.charAt(o),"Z"))return t.setParsedZone(Z.ofOffset(r,Q.UTC)),o;var s=Ct.INSTANCE_ID.parse(i,e,o);if(s<0)return t.setParsedZone(Z.ofOffset(r,Q.UTC)),o;var a=i.getParsed(R.OFFSET_SECONDS),u=Q.ofTotalSeconds(a);return t.setParsedZone(Z.ofOffset(r,u)),s},n.prototype.toString=function(){return this.description},n}(),xt=function(){function r(t,e){Vt(this,r),this.size=t,this.treeMap=e}return r.createTreeMap=function(t){for(var e=t.sort(function(t,e){return t.length-e.length}),n=new Wt(e[0].length,!1),o=0;o<e.length;o++)n.add(e[o]);return new r(e.length,n)},r}(),Wt=function(){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];Vt(this,r),this.length=t,this.isLeaf=e,this._treeMap={}}return r.prototype.add=function(t){var e=t.length;if(e===this.length)this._treeMap[t]=new r(e,!0);else if(e>this.length){var n=t.substr(0,this.length),o=this._treeMap[n];null==o&&(o=new r(e,!1),this._treeMap[n]=o),o.add(t)}},r.prototype.get=function(t){return this._treeMap[t]},r}(),kt=new xt([]);function jt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Bt=function(){function o(){jt(this,o),(this._active=this)._parent=null,this._printerParsers=[],this._optional=!1,this._padNextWidth=0,this._padNextChar=null,this._valueParserIndex=-1}return o._of=function(t,e){y(t,"parent"),y(e,"optional");var n=new o;return n._parent=t,n._optional=e,n},o.prototype.parseCaseSensitive=function(){return this._appendInternalPrinterParser(Ft.SENSITIVE),this},o.prototype.parseCaseInsensitive=function(){return this._appendInternalPrinterParser(Ft.INSENSITIVE),this},o.prototype.parseStrict=function(){return this._appendInternalPrinterParser(Ft.STRICT),this},o.prototype.parseLenient=function(){return this._appendInternalPrinterParser(Ft.LENIENT),this},o.prototype.appendValue=function(){return 1===arguments.length?this._appendValue1.apply(this,arguments):2===arguments.length?this._appendValue2.apply(this,arguments):this._appendValue4.apply(this,arguments)},o.prototype._appendValue1=function(t){return y(t),this._appendValuePrinterParser(new Mt(t,1,15,Dt.NORMAL)),this},o.prototype._appendValue2=function(t,e){if(y(t),e<1||15<e)throw new c("The width must be from 1 to 15 inclusive but was "+e);var n=new Mt(t,e,e,Dt.NOT_NEGATIVE);return this._appendValuePrinterParser(n),this},o.prototype._appendValue4=function(t,e,n,o){if(y(t),y(o),e===n&&o===Dt.NOT_NEGATIVE)return this._appendValue2(t,n);if(e<1||15<e)throw new c("The minimum width must be from 1 to 15 inclusive but was "+e);if(n<1||15<n)throw new c("The minimum width must be from 1 to 15 inclusive but was "+n);if(n<e)throw new c("The maximum width must exceed or equal the minimum width but "+n+" < "+e);var r=new Mt(t,e,n,o);return this._appendValuePrinterParser(r),this},o.prototype.appendValueReduced=function(){return 4===arguments.length&&arguments[3]instanceof B?this._appendValueReducedFieldWidthMaxWidthBaseDate.apply(this,arguments):this._appendValueReducedFieldWidthMaxWidthBaseValue.apply(this,arguments)},o.prototype._appendValueReducedFieldWidthMaxWidthBaseValue=function(t,e,n,o){y(t,"field");var r=new It(t,e,n,o,null);return this._appendValuePrinterParser(r),this},o.prototype._appendValueReducedFieldWidthMaxWidthBaseDate=function(t,e,n,o){y(t,"field"),y(o,"baseDate"),l(o,B,"baseDate");var r=new It(t,e,n,0,o);return this._appendValuePrinterParser(r),this},o.prototype._appendValuePrinterParser=function(t){if(S(null!=t),0<=this._active._valueParserIndex&&this._active._printerParsers[this._active._valueParserIndex]instanceof Mt){var e=this._active._valueParserIndex,n=this._active._printerParsers[e];t.minWidth()===t.maxWidth()&&t.signStyle()===Dt.NOT_NEGATIVE?(n=n.withSubsequentWidth(t.maxWidth()),this._appendInternal(t.withFixedWidth()),this._active._valueParserIndex=e):(n=n.withFixedWidth(),this._active._valueParserIndex=this._appendInternal(t)),this._active._printerParsers[e]=n}else this._active._valueParserIndex=this._appendInternal(t);return this},o.prototype.appendFraction=function(t,e,n,o){return this._appendInternal(new Tt(t,e,n,o)),this},o.prototype.appendInstant=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:-2;if(t<-2||9<t)throw new c("Invalid fractional digits: "+t);return this._appendInternal(new zt(t)),this},o.prototype.appendOffsetId=function(){return this._appendInternal(Ct.INSTANCE_ID),this},o.prototype.appendOffset=function(t,e){return this._appendInternalPrinterParser(new Ct(e,t)),this},o.prototype.appendZoneId=function(){return this._appendInternal(new Ht(A.zoneId(),"ZoneId()")),this},o.prototype.appendPattern=function(t){return y(t,"pattern"),this._parsePattern(t),this},o.prototype.appendZoneText=function(){throw new c("Pattern using (localized) text not implemented, use js-joda-locale plugin!")},o.prototype.appendText=function(){throw new c("Pattern using (localized) text not implemented, use js-joda-locale plugin!")},o.prototype.appendLocalizedOffset=function(){throw new c("Pattern using (localized) text not implemented, use js-joda-locale plugin!")},o.prototype.appendWeekField=function(){throw new c("Pattern using (localized) text not implemented, use js-joda-locale plugin!")},o.prototype._parsePattern=function(t){for(var e={G:R.ERA,y:R.YEAR_OF_ERA,u:R.YEAR,Q:at.QUARTER_OF_YEAR,q:at.QUARTER_OF_YEAR,M:R.MONTH_OF_YEAR,L:R.MONTH_OF_YEAR,D:R.DAY_OF_YEAR,d:R.DAY_OF_MONTH,F:R.ALIGNED_DAY_OF_WEEK_IN_MONTH,E:R.DAY_OF_WEEK,c:R.DAY_OF_WEEK,e:R.DAY_OF_WEEK,a:R.AMPM_OF_DAY,H:R.HOUR_OF_DAY,k:R.CLOCK_HOUR_OF_DAY,K:R.HOUR_OF_AMPM,h:R.CLOCK_HOUR_OF_AMPM,m:R.MINUTE_OF_HOUR,s:R.SECOND_OF_MINUTE,S:R.NANO_OF_SECOND,A:R.MILLI_OF_DAY,n:R.NANO_OF_SECOND,N:R.NANO_OF_DAY},n=0;n<t.length;n++){var o=t.charAt(n);if("A"<=o&&o<="Z"||"a"<=o&&o<="z"){for(var r=n++;n<t.length&&t.charAt(n)===o;n++);var i=n-r;if("p"===o){var s=0;if(n<t.length&&("A"<=(o=t.charAt(n))&&o<="Z"||"a"<=o&&o<="z")){for(s=i,r=n++;n<t.length&&t.charAt(n)===o;n++);i=n-r}if(0===s)throw new c("Pad letter 'p' must be followed by valid pad pattern: "+t);this.padNext(s)}var a=e[o];if(null!=a)this._parseField(o,i,a);else if("z"===o){if(4<i)throw new c("Too many pattern letters: "+o);4===i?this.appendZoneText(At.FULL):this.appendZoneText(At.SHORT)}else if("V"===o){if(2!==i)throw new c("Pattern letter count must be 2: "+o);this.appendZoneId()}else if("Z"===o)if(i<4)this.appendOffset("+HHMM","+0000");else if(4===i)this.appendLocalizedOffset(At.FULL);else{if(5!==i)throw new c("Too many pattern letters: "+o);this.appendOffset("+HH:MM:ss","Z")}else if("O"===o)if(1===i)this.appendLocalizedOffset(At.SHORT);else{if(4!==i)throw new c("Pattern letter count must be 1 or 4: "+o);this.appendLocalizedOffset(At.FULL)}else if("X"===o){if(5<i)throw new c("Too many pattern letters: "+o);this.appendOffset(Ct.PATTERNS[i+(1===i?0:1)],"Z")}else if("x"===o){if(5<i)throw new c("Too many pattern letters: "+o);var u=1===i?"+00":i%2==0?"+0000":"+00:00";this.appendOffset(Ct.PATTERNS[i+(1===i?0:1)],u)}else if("W"===o){if(1<i)throw new c("Too many pattern letters: "+o);this.appendWeekField("W",i)}else if("w"===o){if(2<i)throw new c("Too many pattern letters: "+o);this.appendWeekField("w",i)}else{if("Y"!==o)throw new c("Unknown pattern letter: "+o);this.appendWeekField("Y",i)}n--}else if("'"===o){for(var p=n++;n<t.length;n++)if("'"===t.charAt(n)){if(!(n+1<t.length&&"'"===t.charAt(n+1)))break;n++}if(n>=t.length)throw new c("Pattern ends with an incomplete string literal: "+t);var f=t.substring(p+1,n);0===f.length?this.appendLiteral("'"):this.appendLiteral(f.replace("''","'"))}else if("["===o)this.optionalStart();else if("]"===o){if(null===this._active._parent)throw new c("Pattern invalid as it contains ] without previous [");this.optionalEnd()}else{if("{"===o||"}"===o||"#"===o)throw new c("Pattern includes reserved character: '"+o+"'");this.appendLiteral(o)}}},o.prototype._parseField=function(t,e,n){switch(t){case"u":case"y":2===e?this.appendValueReduced(n,2,2,It.BASE_DATE):e<4?this.appendValue(n,e,15,Dt.NORMAL):this.appendValue(n,e,15,Dt.EXCEEDS_PAD);break;case"M":case"Q":switch(e){case 1:this.appendValue(n);break;case 2:this.appendValue(n,2);break;case 3:this.appendText(n,At.SHORT);break;case 4:this.appendText(n,At.FULL);break;case 5:this.appendText(n,At.NARROW);break;default:throw new c("Too many pattern letters: "+t)}break;case"L":case"q":switch(e){case 1:this.appendValue(n);break;case 2:this.appendValue(n,2);break;case 3:this.appendText(n,At.SHORT_STANDALONE);break;case 4:this.appendText(n,At.FULL_STANDALONE);break;case 5:this.appendText(n,At.NARROW_STANDALONE);break;default:throw new c("Too many pattern letters: "+t)}break;case"e":switch(e){case 1:case 2:this.appendWeekField("e",e);break;case 3:this.appendText(n,At.SHORT);break;case 4:this.appendText(n,At.FULL);break;case 5:this.appendText(n,At.NARROW);break;default:throw new c("Too many pattern letters: "+t)}break;case"c":switch(e){case 1:this.appendWeekField("c",e);break;case 2:throw new c("Invalid number of pattern letters: "+t);case 3:this.appendText(n,At.SHORT_STANDALONE);break;case 4:this.appendText(n,At.FULL_STANDALONE);break;case 5:this.appendText(n,At.NARROW_STANDALONE);break;default:throw new c("Too many pattern letters: "+t)}break;case"a":if(1!==e)throw new c("Too many pattern letters: "+t);this.appendText(n,At.SHORT);break;case"E":case"G":switch(e){case 1:case 2:case 3:this.appendText(n,At.SHORT);break;case 4:this.appendText(n,At.FULL);break;case 5:this.appendText(n,At.NARROW);break;default:throw new c("Too many pattern letters: "+t)}break;case"S":this.appendFraction(R.NANO_OF_SECOND,e,e,!1);break;case"F":if(1!==e)throw new c("Too many pattern letters: "+t);this.appendValue(n);break;case"d":case"h":case"H":case"k":case"K":case"m":case"s":if(1===e)this.appendValue(n);else{if(2!==e)throw new c("Too many pattern letters: "+t);this.appendValue(n,e)}break;case"D":if(1===e)this.appendValue(n);else{if(!(e<=3))throw new c("Too many pattern letters: "+t);this.appendValue(n,e)}break;default:1===e?this.appendValue(n):this.appendValue(n,e)}},o.prototype.padNext=function(){return 1===arguments.length?this._padNext1.apply(this,arguments):this._padNext2.apply(this,arguments)},o.prototype._padNext1=function(t){return this._padNext2(t," ")},o.prototype._padNext2=function(t,e){if(t<1)throw new c("The pad width must be at least one but was "+t);return this._active._padNextWidth=t,this._active._padNextChar=e,this._active._valueParserIndex=-1,this},o.prototype.optionalStart=function(){return this._active._valueParserIndex=-1,this._active=o._of(this._active,!0),this},o.prototype.optionalEnd=function(){if(null==this._active._parent)throw new i("Cannot call optionalEnd() as there was no previous call to optionalStart()");if(0<this._active._printerParsers.length){var t=new vt(this._active._printerParsers,this._active._optional);this._active=this._active._parent,this._appendInternal(t)}else this._active=this._active._parent;return this},o.prototype._appendInternal=function(t){return S(null!=t),0<this._active._padNextWidth&&(null!=t&&(t=new Yt(t,this._active._padNextWidth,this._active._padNextChar)),this._active._padNextWidth=0,this._active._padNextChar=0),this._active._printerParsers.push(t),this._active._valueParserIndex=-1,this._active._printerParsers.length-1},o.prototype.appendLiteral=function(t){return S(null!=t),0<t.length&&(1===t.length?this._appendInternalPrinterParser(new wt(t.charAt(0))):this._appendInternalPrinterParser(new Lt(t))),this},o.prototype._appendInternalPrinterParser=function(t){return S(null!=t),0<this._active._padNextWidth&&(null!=t&&(t=new Yt(t,this._active._padNextWidth,this._active._padNextChar)),this._active._padNextWidth=0,this._active._padNextChar=0),this._active._printerParsers.push(t),this._active._valueParserIndex=-1,this._active._printerParsers.length-1},o.prototype.append=function(t){return y(t,"formatter"),this._appendInternal(t._toPrinterParser(!1)),this},o.prototype.toFormatter=function(){for(var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:j.SMART;null!=this._active._parent;)this.optionalEnd();var e=new vt(this._printerParsers,!1);return new Gt(e,null,Nt.STANDARD,t,null,null,null)},o}(),qt=31556952e4,Zt=62167219200,zt=function(){function e(t){jt(this,e),this.fractionalDigits=t}return e.prototype.print=function(t,e){var n=t.getValue(R.INSTANT_SECONDS),o=0;if(t.temporal().isSupported(R.NANO_OF_SECOND)&&(o=t.temporal().getLong(R.NANO_OF_SECOND)),null==n)return!1;var r=n,i=R.NANO_OF_SECOND.checkValidIntValue(o);if(-Zt<=r){var s=r-qt+Zt,a=g.floorDiv(s,qt)+1,u=g.floorMod(s,qt),p=ye.ofEpochSecond(u-Zt,0,Q.UTC);0<a&&e.append("+").append(a),e.append(p),0===p.second()&&e.append(":00")}else{var f=r+Zt,c=g.intDiv(f,qt),h=g.intMod(f,qt),l=ye.ofEpochSecond(h-Zt,0,Q.UTC),_=e.length();e.append(l),0===l.second()&&e.append(":00"),c<0&&(-1e4===l.year()?e.replace(_,_+2,""+(c-1)):0===h?e.insert(_,c):e.insert(_+1,Math.abs(c)))}if(-2===this.fractionalDigits)0!==i&&(e.append("."),0===g.intMod(i,1e6)?e.append((""+(g.intDiv(i,1e6)+1e3)).substring(1)):0===g.intMod(i,1e3)?e.append((""+(g.intDiv(i,1e3)+1e6)).substring(1)):e.append((""+(i+1e9)).substring(1)));else if(0<this.fractionalDigits||-1===this.fractionalDigits&&0<i){e.append(".");for(var d=1e8,y=0;-1===this.fractionalDigits&&0<i||y<this.fractionalDigits;y++){var O=g.intDiv(i,d);e.append(O),i-=O*d,d=g.intDiv(d,10)}}return e.append("Z"),!0},e.prototype.parse=function(t,e,n){var o=t.copy(),r=this.fractionalDigits<0?0:this.fractionalDigits,i=this.fractionalDigits<0?9:this.fractionalDigits,s=(new Bt).append(Gt.ISO_LOCAL_DATE).appendLiteral("T").appendValue(R.HOUR_OF_DAY,2).appendLiteral(":").appendValue(R.MINUTE_OF_HOUR,2).appendLiteral(":").appendValue(R.SECOND_OF_MINUTE,2).appendFraction(R.NANO_OF_SECOND,r,i,!0).appendLiteral("Z").toFormatter()._toPrinterParser(!1).parse(o,e,n);if(s<0)return s;var a=o.getParsed(R.YEAR),u=o.getParsed(R.MONTH_OF_YEAR),p=o.getParsed(R.DAY_OF_MONTH),f=o.getParsed(R.HOUR_OF_DAY),c=o.getParsed(R.MINUTE_OF_HOUR),h=o.getParsed(R.SECOND_OF_MINUTE),l=o.getParsed(R.NANO_OF_SECOND),_=null!=h?h:0,d=null!=l?l:0,y=g.intMod(a,1e4),O=0;24===f&&0===c&&0===_&&0===d?(f=0,O=1):23===f&&59===c&&60===_&&(t.setParsedLeapSecond(),_=59);var E=void 0;try{E=ye.of(y,u,p,f,c,_,0).plusDays(O).toEpochSecond(Q.UTC),E+=g.safeMultiply(g.intDiv(a,1e4),qt)}catch(t){return~n}var S=s;return S=t.setParsedField(R.INSTANT_SECONDS,E,n,S),t.setParsedField(R.NANO_OF_SECOND,d,n,S)},e.prototype.toString=function(){return"Instant()"},e}();var Kt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._str=""}return t.prototype.append=function(t){return this._str+=t,this},t.prototype.appendChar=function(t){return this._str+=t[0],this},t.prototype.insert=function(t,e){return this._str=this._str.slice(0,t)+e+this._str.slice(t),this},t.prototype.replace=function(t,e,n){return this._str=this._str.slice(0,t)+n+this._str.slice(e),this},t.prototype.length=function(){return this._str.length},t.prototype.setLength=function(t){return this._str=this._str.slice(0,t),this},t.prototype.toString=function(){return this._str},t}();var Gt=function(){function a(t,e,n,o,r){var i=5<arguments.length&&void 0!==arguments[5]?arguments[5]:fe.INSTANCE,s=arguments[6];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),S(null!=t),S(null!=n),S(null!=o),this._printerParser=t,this._locale=e,this._decimalStyle=n,this._resolverStyle=o,this._resolverFields=r,this._chrono=i,this._zone=s}return a.parsedExcessDays=function(){return a.PARSED_EXCESS_DAYS},a.parsedLeapSecond=function(){return a.PARSED_LEAP_SECOND},a.ofPattern=function(t){return(new Bt).appendPattern(t).toFormatter()},a.prototype.locale=function(){return this._locale},a.prototype.decimalStyle=function(){return this._decimalStyle},a.prototype.chronology=function(){return this._chrono},a.prototype.withChronology=function(t){return null!=this._chrono&&this._chrono.equals(t)?this:new a(this._printerParser,this._locale,this._decimalStyle,this._resolverStyle,this._resolverFields,t,this._zone)},a.prototype.withLocale=function(){return this},a.prototype.withResolverStyle=function(t){return y(t,"resolverStyle"),t.equals(this._resolverStyle)?this:new a(this._printerParser,this._locale,this._decimalStyle,t,this._resolverFields,this._chrono,this._zone)},a.prototype.format=function(t){var e=new Kt(32);return this._formatTo(t,e),e.toString()},a.prototype._formatTo=function(t,e){y(t,"temporal"),y(e,"appendable");var n=new ot(t,this);this._printerParser.print(n,e)},a.prototype.parse=function(t,e){return 1===arguments.length?this.parse1(t):this.parse2(t,e)},a.prototype.parse1=function(e){y(e,"text");try{return this._parseToBuilder(e,null).resolve(this._resolverStyle,this._resolverFields)}catch(t){throw t instanceof d?t:this._createError(e,t)}},a.prototype.parse2=function(e,t){y(e,"text"),y(t,"type");try{return this._parseToBuilder(e,null).resolve(this._resolverStyle,this._resolverFields).build(t)}catch(t){throw t instanceof d?t:this._createError(e,t)}},a.prototype._createError=function(t,e){var n="";return n=64<t.length?t.substring(0,64)+"...":t,new d("Text '"+n+"' could not be parsed: "+e.message,t,0,e)},a.prototype._parseToBuilder=function(t,e){var n=null!=e?e:new W(0),o=this._parseUnresolved0(t,n);if(null==o||0<=n.getErrorIndex()||null==e&&n.getIndex()<t.length){var r="";throw r=64<t.length?t.substr(0,64).toString()+"...":t,0<=n.getErrorIndex()?new d("Text '"+r+"' could not be parsed at index "+n.getErrorIndex(),t,n.getErrorIndex()):new d("Text '"+r+"' could not be parsed, unparsed text found at index "+n.getIndex(),t,n.getIndex())}return o.toBuilder()},a.prototype.parseUnresolved=function(t,e){return this._parseUnresolved0(t,e)},a.prototype._parseUnresolved0=function(t,e){S(null!=t,"text",s),S(null!=e,"position",s);var n=new et(this),o=e.getIndex();return(o=this._printerParser.parse(n,t,o))<0?(e.setErrorIndex(~o),null):(e.setIndex(o),n.toParsed())},a.prototype._toPrinterParser=function(t){return this._printerParser.withOptional(t)},a.prototype.toString=function(){var t=this._printerParser.toString();return 0===t.indexOf("[")?t:t.substring(1,t.length-1)},a}();var Xt=function(o){function r(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,o.call(this));return n._month=g.safeToInt(t),n._day=g.safeToInt(e),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,o),r.now=function(t){return 0===arguments.length?r.now0():1===arguments.length&&t instanceof Z?r.nowZoneId(t):r.nowClock(t)},r.now0=function(){return this.nowClock(we.systemDefaultZone())},r.nowZoneId=function(t){return y(t,"zone"),this.nowClock(we.system(t))},r.nowClock=function(t){y(t,"clock");var e=_e.now(t);return r.of(e.month(),e.dayOfMonth())},r.of=function(t,e){return 2===arguments.length&&t instanceof P?r.ofMonthNumber(t,e):r.ofNumberNumber(t,e)},r.ofMonthNumber=function(t,e){if(y(t,"month"),R.DAY_OF_MONTH.checkValidValue(e),e>t.maxLength())throw new T("Illegal value for DayOfMonth field, value "+e+" is not valid for month "+t.toString());return new r(t.value(),e)},r.ofNumberNumber=function(t,e){return y(t,"month"),y(e,"dayOfMonth"),r.of(P.of(t),e)},r.from=function(e){if(y(e,"temporal"),l(e,w,"temporal"),e instanceof r)return e;try{return r.of(e.get(R.MONTH_OF_YEAR),e.get(R.DAY_OF_MONTH))}catch(t){throw new T("Unable to obtain MonthDay from TemporalAccessor: "+e+", type "+(e&&null!=e.constructor?e.constructor.name:""))}},r.parse=function(t,e){return 1===arguments.length?r.parseString(t):r.parseStringFormatter(t,e)},r.parseString=function(t){return r.parseStringFormatter(t,Jt)},r.parseStringFormatter=function(t,e){return y(t,"text"),y(e,"formatter"),l(e,Gt,"formatter"),e.parse(t,r.FROM)},r.prototype.monthValue=function(){return this._month},r.prototype.month=function(){return P.of(this._month)},r.prototype.dayOfMonth=function(){return this._day},r.prototype.isSupported=function(t){return t instanceof R?t===R.MONTH_OF_YEAR||t===R.DAY_OF_MONTH:null!=t&&t.isSupportedBy(this)},r.prototype.range=function(t){return t===R.MONTH_OF_YEAR?t.range():t===R.DAY_OF_MONTH?D.of(1,this.month().minLength(),this.month().maxLength()):o.prototype.range.call(this,t)},r.prototype.get=function(t){return this.range(t).checkValidIntValue(this.getLong(t),t)},r.prototype.getLong=function(t){if(y(t,"field"),t instanceof R){switch(t){case R.DAY_OF_MONTH:return this._day;case R.MONTH_OF_YEAR:return this._month}throw new h("Unsupported field: "+t)}return t.getFrom(this)},r.prototype.isValidYear=function(t){return!1==(29===this._day&&2===this._month&&!1===te.isLeap(t))},r.prototype.withMonth=function(t){return this.with(P.of(t))},r.prototype.with=function(t){if(y(t,"month"),t.value()===this._month)return this;var e=Math.min(this._day,t.maxLength());return new r(t.value(),e)},r.prototype.withDayOfMonth=function(t){return t===this._day?this:r.of(this._month,t)},r.prototype.query=function(t){return y(t,"query"),l(t,C,"query"),t===A.chronology()?fe.INSTANCE:o.prototype.query.call(this,t)},r.prototype.adjustInto=function(t){return y(t,"temporal"),(t=t.with(R.MONTH_OF_YEAR,this._month)).with(R.DAY_OF_MONTH,Math.min(t.range(R.DAY_OF_MONTH).maximum(),this._day))},r.prototype.atYear=function(t){return _e.of(t,this._month,this.isValidYear(t)?this._day:28)},r.prototype.compareTo=function(t){y(t,"other"),l(t,r,"other");var e=this._month-t.monthValue();return 0===e&&(e=this._day-t.dayOfMonth()),e},r.prototype.isAfter=function(t){return y(t,"other"),l(t,r,"other"),0<this.compareTo(t)},r.prototype.isBefore=function(t){return y(t,"other"),l(t,r,"other"),this.compareTo(t)<0},r.prototype.equals=function(t){if(this===t)return!0;if(t instanceof r){var e=t;return this.monthValue()===e.monthValue()&&this.dayOfMonth()===e.dayOfMonth()}return!1},r.prototype.toString=function(){return"--"+(this._month<10?"0":"")+this._month+(this._day<10?"-0":"-")+this._day},r.prototype.toJSON=function(){return this.toString()},r.prototype.format=function(t){return y(t,"formatter"),l(t,Gt,"formatter"),t.format(this)},r}(v),Jt=void 0;var Qt=function(o){function r(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,o.call(this));return n._year=g.safeToInt(t),n._month=g.safeToInt(e),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,o),r.now=function(t){return 0===arguments.length?r.now0():1===arguments.length&&t instanceof Z?r.nowZoneId(t):r.nowClock(t)},r.now0=function(){return r.nowClock(we.systemDefaultZone())},r.nowZoneId=function(t){return r.nowClock(we.system(t))},r.nowClock=function(t){var e=_e.now(t);return r.of(e.year(),e.month())},r.of=function(t,e){return 2===arguments.length&&e instanceof P?r.ofNumberMonth(t,e):r.ofNumberNumber(t,e)},r.ofNumberMonth=function(t,e){return y(e,"month"),l(e,P,"month"),r.ofNumberNumber(t,e.value())},r.ofNumberNumber=function(t,e){return y(t,"year"),y(e,"month"),R.YEAR.checkValidValue(t),R.MONTH_OF_YEAR.checkValidValue(e),new r(t,e)},r.from=function(e){if(y(e,"temporal"),e instanceof r)return e;try{return r.of(e.get(R.YEAR),e.get(R.MONTH_OF_YEAR))}catch(t){throw new T("Unable to obtain YearMonth from TemporalAccessor: "+e+", type "+(e&&null!=e.constructor?e.constructor.name:""))}},r.parse=function(t,e){return 1===arguments.length?r.parseString(t):r.parseStringFormatter(t,e)},r.parseString=function(t){return r.parseStringFormatter(t,$t)},r.parseStringFormatter=function(t,e){return y(e,"formatter"),e.parse(t,r.FROM)},r.prototype.isSupported=function(t){return 1===arguments.length&&t instanceof N?this.isSupportedField(t):this.isSupportedUnit(t)},r.prototype.isSupportedField=function(t){return t instanceof R?t===R.YEAR||t===R.MONTH_OF_YEAR||t===R.PROLEPTIC_MONTH||t===R.YEAR_OF_ERA||t===R.ERA:null!=t&&t.isSupportedBy(this)},r.prototype.isSupportedUnit=function(t){return t instanceof m?t===m.MONTHS||t===m.YEARS||t===m.DECADES||t===m.CENTURIES||t===m.MILLENNIA||t===m.ERAS:null!=t&&t.isSupportedBy(this)},r.prototype.range=function(t){return t===R.YEAR_OF_ERA?this.year()<=0?D.of(1,te.MAX_VALUE+1):D.of(1,te.MAX_VALUE):o.prototype.range.call(this,t)},r.prototype.get=function(t){return y(t,"field"),l(t,N,"field"),this.range(t).checkValidIntValue(this.getLong(t),t)},r.prototype.getLong=function(t){if(y(t,"field"),l(t,N,"field"),t instanceof R){switch(t){case R.MONTH_OF_YEAR:return this._month;case R.PROLEPTIC_MONTH:return this._getProlepticMonth();case R.YEAR_OF_ERA:return this._year<1?1-this._year:this._year;case R.YEAR:return this._year;case R.ERA:return this._year<1?0:1}throw new h("Unsupported field: "+t)}return t.getFrom(this)},r.prototype._getProlepticMonth=function(){return g.safeAdd(g.safeMultiply(this._year,12),this._month-1)},r.prototype.year=function(){return this._year},r.prototype.monthValue=function(){return this._month},r.prototype.month=function(){return P.of(this._month)},r.prototype.isLeapYear=function(){return fe.isLeapYear(this._year)},r.prototype.isValidDay=function(t){return 1<=t&&t<=this.lengthOfMonth()},r.prototype.lengthOfMonth=function(){return this.month().length(this.isLeapYear())},r.prototype.lengthOfYear=function(){return this.isLeapYear()?366:365},r.prototype.with=function(t,e){return 1===arguments.length?this.withAdjuster(t):2===arguments.length&&t instanceof N?this.withFieldValue(t,e):this.withYearMonth(t,e)},r.prototype.withYearMonth=function(t,e){return y(t),y(e),this._year===t&&this._month===e?this:new r(t,e)},r.prototype.withAdjuster=function(t){return y(t,"adjuster"),t.adjustInto(this)},r.prototype.withFieldValue=function(t,e){if(y(t,"field"),l(t,N,"field"),t instanceof R){var n=t;switch(n.checkValidValue(e),n){case R.MONTH_OF_YEAR:return this.withMonth(e);case R.PROLEPTIC_MONTH:return this.plusMonths(e-this.getLong(R.PROLEPTIC_MONTH));case R.YEAR_OF_ERA:return this.withYear(this._year<1?1-e:e);case R.YEAR:return this.withYear(e);case R.ERA:return this.getLong(R.ERA)===e?this:this.withYear(1-this._year)}throw new h("Unsupported field: "+t)}return t.adjustInto(this,e)},r.prototype.withYear=function(t){return R.YEAR.checkValidValue(t),this.withYearMonth(t,this._month)},r.prototype.withMonth=function(t){return R.MONTH_OF_YEAR.checkValidValue(t),this.withYearMonth(this._year,t)},r.prototype.plus=function(t,e){return 1===arguments.length?this.plusAmount(t):this.plusAmountUnit(t,e)},r.prototype.plusAmount=function(t){return y(t,"amount"),l(t,p,"amount"),t.addTo(this)},r.prototype.plusAmountUnit=function(t,e){if(y(e,"unit"),l(e,f,"unit"),e instanceof m){switch(e){case m.MONTHS:return this.plusMonths(t);case m.YEARS:return this.plusYears(t);case m.DECADES:return this.plusYears(g.safeMultiply(t,10));case m.CENTURIES:return this.plusYears(g.safeMultiply(t,100));case m.MILLENNIA:return this.plusYears(g.safeMultiply(t,1e3));case m.ERAS:return this.with(R.ERA,g.safeAdd(this.getLong(R.ERA),t))}throw new h("Unsupported unit: "+e)}return e.addTo(this,t)},r.prototype.plusYears=function(t){if(0===t)return this;var e=R.YEAR.checkValidIntValue(this._year+t);return this.withYearMonth(e,this._month)},r.prototype.plusMonths=function(t){if(0===t)return this;var e=12*this._year+(this._month-1)+t,n=R.YEAR.checkValidIntValue(g.floorDiv(e,12)),o=g.floorMod(e,12)+1;return this.withYearMonth(n,o)},r.prototype.minus=function(t,e){return 1===arguments.length?this.minusAmount(t):this.minusAmountUnit(t,e)},r.prototype.minusAmount=function(t){return y(t,"amount"),t.subtractFrom(this)},r.prototype.minusAmountUnit=function(t,e){return t===g.MIN_SAFE_INTEGER?this.plusAmountUnit(g.MAX_SAFE_INTEGER,e).plusAmountUnit(1,e):this.plusAmountUnit(-t,e)},r.prototype.minusYears=function(t){return t===g.MIN_SAFE_INTEGER?this.plusYears(g.MIN_SAFE_INTEGER).plusYears(1):this.plusYears(-t)},r.prototype.minusMonths=function(t){return t===g.MIN_SAFE_INTEGER?this.plusMonths(Math.MAX_SAFE_INTEGER).plusMonths(1):this.plusMonths(-t)},r.prototype.query=function(t){return y(t,"query"),l(t,C,"query"),t===A.chronology()?fe.INSTANCE:t===A.precision()?m.MONTHS:t===A.localDate()||t===A.localTime()||t===A.zone()||t===A.zoneId()||t===A.offset()?null:o.prototype.query.call(this,t)},r.prototype.adjustInto=function(t){return y(t,"temporal"),l(t,v,"temporal"),t.with(R.PROLEPTIC_MONTH,this._getProlepticMonth())},r.prototype.until=function(t,e){y(t,"endExclusive"),y(e,"unit"),l(t,v,"endExclusive"),l(e,f,"unit");var n=r.from(t);if(e instanceof m){var o=n._getProlepticMonth()-this._getProlepticMonth();switch(e){case m.MONTHS:return o;case m.YEARS:return o/12;case m.DECADES:return o/120;case m.CENTURIES:return o/1200;case m.MILLENNIA:return o/12e3;case m.ERAS:return n.getLong(R.ERA)-this.getLong(R.ERA)}throw new h("Unsupported unit: "+e)}return e.between(this,n)},r.prototype.atDay=function(t){return _e.of(this._year,this._month,t)},r.prototype.atEndOfMonth=function(){return _e.of(this._year,this._month,this.lengthOfMonth())},r.prototype.compareTo=function(t){y(t,"other"),l(t,r,"other");var e=this._year-t.year();return 0===e&&(e=this._month-t.monthValue()),e},r.prototype.isAfter=function(t){return 0<this.compareTo(t)},r.prototype.isBefore=function(t){return this.compareTo(t)<0},r.prototype.equals=function(t){if(this===t)return!0;if(t instanceof r){var e=t;return this.year()===e.year()&&this.monthValue()===e.monthValue()}return!1},r.prototype.toString=function(){return $t.format(this)},r.prototype.toJSON=function(){return this.toString()},r.prototype.format=function(t){return y(t,"formatter"),t.format(this)},r}(v),$t=void 0;var te=function(n){function o(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,n.call(this));return e._year=g.safeToInt(t),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(o,n),o.prototype.value=function(){return this._year},o.now=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:void 0;return void 0===t?o.now0():t instanceof Z?o.nowZoneId(t):o.nowClock(t)},o.now0=function(){return o.nowClock(we.systemDefaultZone())},o.nowZoneId=function(t){return y(t,"zone"),l(t,Z,"zone"),o.nowClock(we.system(t))},o.nowClock=function(t){y(t,"clock"),l(t,we,"clock");var e=_e.now(t);return o.of(e.year())},o.of=function(t){return y(t,"isoYear"),R.YEAR.checkValidValue(t),new o(t)},o.from=function(e){if(y(e,"temporal"),l(e,w,"temporal"),e instanceof o)return e;try{return o.of(e.get(R.YEAR))}catch(t){throw new T("Unable to obtain Year from TemporalAccessor: "+e+", type "+(e&&null!=e.constructor?e.constructor.name:""))}},o.parse=function(t,e){return arguments.length<=1?o.parseText(t):o.parseTextFormatter(t,e)},o.parseText=function(t){return y(t,"text"),o.parse(t,ee)},o.parseTextFormatter=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:ee;return y(t,"text"),y(e,"formatter"),l(e,Gt,"formatter"),e.parse(t,o.FROM)},o.isLeap=function(t){return 0===g.intMod(t,4)&&(0!==g.intMod(t,100)||0===g.intMod(t,400))},o.prototype.isSupported=function(t){return 1===arguments.length&&t instanceof N?this.isSupportedField(t):this.isSupportedUnit(t)},o.prototype.isSupportedField=function(t){return t instanceof R?t===R.YEAR||t===R.YEAR_OF_ERA||t===R.ERA:null!=t&&t.isSupportedBy(this)},o.prototype.isSupportedUnit=function(t){return t instanceof m?t===m.YEARS||t===m.DECADES||t===m.CENTURIES||t===m.MILLENNIA||t===m.ERAS:null!=t&&t.isSupportedBy(this)},o.prototype.range=function(t){if(this.isSupported(t))return t.range();if(t instanceof R)throw new h("Unsupported field: "+t);return n.prototype.range.call(this,t)},o.prototype.get=function(t){return this.range(t).checkValidIntValue(this.getLong(t),t)},o.prototype.getLong=function(t){if(y(t,"field"),t instanceof R){switch(t){case R.YEAR_OF_ERA:return this._year<1?1-this._year:this._year;case R.YEAR:return this._year;case R.ERA:return this._year<1?0:1}throw new h("Unsupported field: "+t)}return t.getFrom(this)},o.prototype.isLeap=function(){return o.isLeap(this._year)},o.prototype.with=function(t,e){return 2===arguments.length&&t instanceof N?this.withFieldValue(t,e):this.withAdjuster(t)},o.prototype.withAdjuster=function(t){return y(t,"adjuster"),t.adjustInto(this)},o.prototype.withFieldValue=function(t,e){if(y(t,"field"),l(t,N,"field"),t instanceof R){switch(t.checkValidValue(e),t){case R.YEAR_OF_ERA:return o.of(this._year<1?1-e:e);case R.YEAR:return o.of(e);case R.ERA:return this.getLong(R.ERA)===e?this:o.of(1-this._year)}throw new h("Unsupported field: "+t)}return t.adjustInto(this,e)},o.prototype.plus=function(t,e){return 1===arguments.length?this.plusAmount(t):this.plusAmountToAddUnit(t,e)},o.prototype.plusAmount=function(t){return y(t,"amount"),l(t,p,"amount"),t.addTo(this)},o.prototype.plusAmountToAddUnit=function(t,e){if(y(t,"amountToAdd"),y(e,"unit"),l(e,f,"unit"),e instanceof m){switch(e){case m.YEARS:return this.plusYears(t);case m.DECADES:return this.plusYears(g.safeMultiply(t,10));case m.CENTURIES:return this.plusYears(g.safeMultiply(t,100));case m.MILLENNIA:return this.plusYears(g.safeMultiply(t,1e3));case m.ERAS:return this.with(R.ERA,g.safeAdd(this.getLong(R.ERA),t))}throw new h("Unsupported unit: "+e)}return e.addTo(this,t)},o.prototype.plusYears=function(t){return 0===t?this:o.of(R.YEAR.checkValidIntValue(g.safeAdd(this._year,t)))},o.prototype.minus=function(t,e){return 1===arguments.length?this.minusAmount(t):this.minusAmountToSubtractUnit(t,e)},o.prototype.minusAmount=function(t){return y(t,"amount"),l(t,p,"amount"),t.subtractFrom(this)},o.prototype.minusAmountToSubtractUnit=function(t,e){return y(t,"amountToSubtract"),y(e,"unit"),l(e,f,"unit"),t===g.MIN_SAFE_INTEGER?this.plus(g.MAX_SAFE_INTEGER,e).plus(1,e):this.plus(-t,e)},o.prototype.minusYears=function(t){return t===g.MIN_SAFE_INTEGER?this.plusYears(g.MAX_SAFE_INTEGER).plusYears(1):this.plusYears(-t)},o.prototype.adjustInto=function(t){return y(t,"temporal"),t.with(R.YEAR,this._year)},o.prototype.isValidMonthDay=function(t){return null!=t&&t.isValidYear(this._year)},o.prototype.length=function(){return this.isLeap()?366:365},o.prototype.atDay=function(t){return _e.ofYearDay(this._year,t)},o.prototype.atMonth=function(t){return 1===arguments.length&&t instanceof P?this.atMonthMonth(t):this.atMonthNumber(t)},o.prototype.atMonthMonth=function(t){return y(t,"month"),l(t,P,"month"),Qt.of(this._year,t)},o.prototype.atMonthNumber=function(t){return y(t,"month"),Qt.of(this._year,t)},o.prototype.atMonthDay=function(t){return y(t,"monthDay"),l(t,Xt,"monthDay"),t.atYear(this._year)},o.prototype.query=function(t){return y(t,"query()"),l(t,C,"query()"),t===A.chronology()?fe.INSTANCE:t===A.precision()?m.YEARS:t===A.localDate()||t===A.localTime()||t===A.zone()||t===A.zoneId()||t===A.offset()?null:n.prototype.query.call(this,t)},o.prototype.compareTo=function(t){return y(t,"other"),l(t,o,"other"),this._year-t._year},o.prototype.isAfter=function(t){return y(t,"other"),l(t,o,"other"),this._year>t._year},o.prototype.isBefore=function(t){return y(t,"other"),l(t,o,"other"),this._year<t._year},o.prototype.format=function(t){return y(t,"formatter"),l(t,Gt,"formatter"),t.format(this)},o.prototype.equals=function(t){return this===t||t instanceof o&&this.value()===t.value()},o.prototype.toString=function(){return""+this._year},o.prototype.toJSON=function(){return this.toString()},o}(v),ee=void 0;var ne=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.prototype.adjustInto=function(t){n("adjustInto")},t}();function oe(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function re(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function ie(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var se=function(){function t(){ie(this,t)}return t.firstDayOfMonth=function(){return ae.FIRST_DAY_OF_MONTH},t.lastDayOfMonth=function(){return ae.LAST_DAY_OF_MONTH},t.firstDayOfNextMonth=function(){return ae.FIRST_DAY_OF_NEXT_MONTH},t.firstDayOfYear=function(){return ae.FIRST_DAY_OF_YEAR},t.lastDayOfYear=function(){return ae.LAST_DAY_OF_YEAR},t.firstDayOfNextYear=function(){return ae.FIRST_DAY_OF_NEXT_YEAR},t.firstInMonth=function(t){return y(t,"dayOfWeek"),new ue(1,t)},t.lastInMonth=function(t){return y(t,"dayOfWeek"),new ue(-1,t)},t.dayOfWeekInMonth=function(t,e){return y(e,"dayOfWeek"),new ue(t,e)},t.next=function(t){return new pe(2,t)},t.nextOrSame=function(t){return new pe(0,t)},t.previous=function(t){return new pe(3,t)},t.previousOrSame=function(t){return new pe(1,t)},t}(),ae=function(n){function o(t){ie(this,o);var e=oe(this,n.call(this));return e._ordinal=t,e}return re(o,n),o.prototype.adjustInto=function(t){switch(this._ordinal){case 0:return t.with(R.DAY_OF_MONTH,1);case 1:return t.with(R.DAY_OF_MONTH,t.range(R.DAY_OF_MONTH).maximum());case 2:return t.with(R.DAY_OF_MONTH,1).plus(1,m.MONTHS);case 3:return t.with(R.DAY_OF_YEAR,1);case 4:return t.with(R.DAY_OF_YEAR,t.range(R.DAY_OF_YEAR).maximum());case 5:return t.with(R.DAY_OF_YEAR,1).plus(1,m.YEARS)}throw new i("Unreachable")},o}(ne);ae.FIRST_DAY_OF_MONTH=new ae(0),ae.LAST_DAY_OF_MONTH=new ae(1),ae.FIRST_DAY_OF_NEXT_MONTH=new ae(2),ae.FIRST_DAY_OF_YEAR=new ae(3),ae.LAST_DAY_OF_YEAR=new ae(4),ae.FIRST_DAY_OF_NEXT_YEAR=new ae(5);var ue=function(o){function r(t,e){ie(this,r);var n=oe(this,o.call(this));return n._ordinal=t,n._dowValue=e.value(),n}return re(r,o),r.prototype.adjustInto=function(t){if(0<=this._ordinal){var e=t.with(R.DAY_OF_MONTH,1),n=e.get(R.DAY_OF_WEEK),o=g.intMod(this._dowValue-n+7,7);return o+=7*(this._ordinal-1),e.plus(o,m.DAYS)}var r=t.with(R.DAY_OF_MONTH,t.range(R.DAY_OF_MONTH).maximum()),i=r.get(R.DAY_OF_WEEK),s=this._dowValue-i;return s=0===s?0:0<s?s-7:s,s-=7*(-this._ordinal-1),r.plus(s,m.DAYS)},r}(ne),pe=function(o){function r(t,e){ie(this,r);var n=oe(this,o.call(this));return y(e,"dayOfWeek"),n._relative=t,n._dowValue=e.value(),n}return re(r,o),r.prototype.adjustInto=function(t){var e=t.get(R.DAY_OF_WEEK);if(this._relative<2&&e===this._dowValue)return t;if(0==(1&this._relative)){var n=e-this._dowValue;return t.plus(0<=n?7-n:-n,m.DAYS)}var o=this._dowValue-e;return t.minus(0<=o?7-o:-o,m.DAYS)},r}(ne);var fe=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.isLeapYear=function(t){return 0==(3&t)&&(t%100!=0||t%400==0)},e.prototype._updateResolveMap=function(t,e,n){y(t,"fieldValues"),y(e,"field");var o=t.get(e);if(null!=o&&o!==n)throw new T("Invalid state, field: "+e+" "+o+" conflicts with "+e+" "+n);t.put(e,n)},e.prototype.resolveDate=function(t,e){if(t.containsKey(R.EPOCH_DAY))return _e.ofEpochDay(t.remove(R.EPOCH_DAY));var n=t.remove(R.PROLEPTIC_MONTH);null!=n&&(e!==j.LENIENT&&R.PROLEPTIC_MONTH.checkValidValue(n),this._updateResolveMap(t,R.MONTH_OF_YEAR,g.floorMod(n,12)+1),this._updateResolveMap(t,R.YEAR,g.floorDiv(n,12)));var o=t.remove(R.YEAR_OF_ERA);if(null!=o){e!==j.LENIENT&&R.YEAR_OF_ERA.checkValidValue(o);var r=t.remove(R.ERA);if(null==r){var i=t.get(R.YEAR);e===j.STRICT?null!=i?this._updateResolveMap(t,R.YEAR,0<i?o:g.safeSubtract(1,o)):t.put(R.YEAR_OF_ERA,o):this._updateResolveMap(t,R.YEAR,null==i||0<i?o:g.safeSubtract(1,o))}else if(1===r)this._updateResolveMap(t,R.YEAR,o);else{if(0!==r)throw new T("Invalid value for era: "+r);this._updateResolveMap(t,R.YEAR,g.safeSubtract(1,o))}}else t.containsKey(R.ERA)&&R.ERA.checkValidValue(t.get(R.ERA));if(t.containsKey(R.YEAR)){if(t.containsKey(R.MONTH_OF_YEAR)&&t.containsKey(R.DAY_OF_MONTH)){var s=R.YEAR.checkValidIntValue(t.remove(R.YEAR)),a=t.remove(R.MONTH_OF_YEAR),u=t.remove(R.DAY_OF_MONTH);if(e!==j.LENIENT)return e===j.SMART&&(R.DAY_OF_MONTH.checkValidValue(u),4===a||6===a||9===a||11===a?u=Math.min(u,30):2===a&&(u=Math.min(u,P.FEBRUARY.length(te.isLeap(s))))),_e.of(s,a,u);var p=a-1,f=u-1;return _e.of(s,1,1).plusMonths(p).plusDays(f)}if(t.containsKey(R.DAY_OF_YEAR)){var c=R.YEAR.checkValidIntValue(t.remove(R.YEAR));if(e===j.LENIENT){var h=g.safeSubtract(t.remove(R.DAY_OF_YEAR),1);return _e.ofYearDay(c,1).plusDays(h)}var l=R.DAY_OF_YEAR.checkValidIntValue(t.remove(R.DAY_OF_YEAR));return _e.ofYearDay(c,l)}if(t.containsKey(R.ALIGNED_WEEK_OF_YEAR)){if(t.containsKey(R.ALIGNED_DAY_OF_WEEK_IN_YEAR)){var _=R.YEAR.checkValidIntValue(t.remove(R.YEAR));if(e===j.LENIENT){var d=g.safeSubtract(t.remove(R.ALIGNED_WEEK_OF_YEAR),1),y=g.safeSubtract(t.remove(R.ALIGNED_DAY_OF_WEEK_IN_YEAR),1);return _e.of(_,1,1).plusWeeks(d).plusDays(y)}var O=R.ALIGNED_WEEK_OF_YEAR.checkValidIntValue(t.remove(R.ALIGNED_WEEK_OF_YEAR)),E=R.ALIGNED_DAY_OF_WEEK_IN_YEAR.checkValidIntValue(t.remove(R.ALIGNED_DAY_OF_WEEK_IN_YEAR)),S=_e.of(_,1,1).plusDays(7*(O-1)+(E-1));if(e===j.STRICT&&S.get(R.YEAR)!==_)throw new T("Strict mode rejected date parsed to a different year");return S}if(t.containsKey(R.DAY_OF_WEEK)){var m=R.YEAR.checkValidIntValue(t.remove(R.YEAR));if(e===j.LENIENT){var N=g.safeSubtract(t.remove(R.ALIGNED_WEEK_OF_YEAR),1),D=g.safeSubtract(t.remove(R.DAY_OF_WEEK),1);return _e.of(m,1,1).plusWeeks(N).plusDays(D)}var A=R.ALIGNED_WEEK_OF_YEAR.checkValidIntValue(t.remove(R.ALIGNED_WEEK_OF_YEAR)),w=R.DAY_OF_WEEK.checkValidIntValue(t.remove(R.DAY_OF_WEEK)),v=_e.of(m,1,1).plusWeeks(A-1).with(se.nextOrSame(F.of(w)));if(e===j.STRICT&&v.get(R.YEAR)!==m)throw new T("Strict mode rejected date parsed to a different month");return v}}}return null},e.prototype.date=function(t){return _e.from(t)},e}(u);var ce=function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,e),n.prototype.query=function(t){return t===A.zoneId()||t===A.zone()?this.zone():t===A.chronology()?this.toLocalDate().chronology():t===A.precision()?m.NANOS:t===A.offset()?this.offset():t===A.localDate()?_e.ofEpochDay(this.toLocalDate().toEpochDay()):t===A.localTime()?this.toLocalTime():e.prototype.query.call(this,t)},n.prototype.format=function(t){return y(t,"formatter"),t.format(this)},n.prototype.toInstant=function(){return me.ofEpochSecond(this.toEpochSecond(),this.toLocalTime().nano())},n.prototype.toEpochSecond=function(){var t=86400*this.toLocalDate().toEpochDay()+this.toLocalTime().toSecondOfDay();return t-=this.offset().totalSeconds()},n.prototype.compareTo=function(t){y(t,"other");var e=g.compareNumbers(this.toEpochSecond(),t.toEpochSecond());return 0===e&&0===(e=this.toLocalTime().nano()-t.toLocalTime().nano())&&0===(e=this.toLocalDateTime().compareTo(t.toLocalDateTime()))&&(e=function(t,e){if(t<e)return-1;if(e<t)return 1;return 0}(this.zone().id(),t.zone().id())),e},n.prototype.isAfter=function(t){y(t,"other");var e=this.toEpochSecond(),n=t.toEpochSecond();return n<e||e===n&&this.toLocalTime().nano()>t.toLocalTime().nano()},n.prototype.isBefore=function(t){y(t,"other");var e=this.toEpochSecond(),n=t.toEpochSecond();return e<n||e===n&&this.toLocalTime().nano()<t.toLocalTime().nano()},n.prototype.isEqual=function(t){return y(t,"other"),this.toEpochSecond()===t.toEpochSecond()&&this.toLocalTime().nano()===t.toLocalTime().nano()},n.prototype.equals=function(t){return this===t||t instanceof n&&0===this.compareTo(t)},n}(v);var he=function(r){function p(t,e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),y(t,"dateTime"),y(e,"offset"),y(n,"zone");var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,r.call(this));return o._dateTime=t,o._offset=e,o._zone=n,o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(p,r),p.now=function(t){var e=void 0;return e=t instanceof Z?we.system(t):null==t?we.systemDefaultZone():t,p.ofInstant(e.instant(),e.zone())},p.of=function(){return arguments.length<=2?p.of2.apply(this,arguments):3===arguments.length&&arguments[0]instanceof _e?p.of3.apply(this,arguments):p.of8.apply(this,arguments)},p.of3=function(t,e,n){return p.of2(ye.of(t,e),n)},p.of2=function(t,e){return p.ofLocal(t,e,null)},p.of8=function(t,e,n,o,r,i,s,a){var u=ye.of(t,e,n,o,r,i,s);return p.ofLocal(u,a,null)},p.ofLocal=function(t,e,n){if(y(t,"localDateTime"),y(e,"zone"),e instanceof Q)return new p(t,e,e);var o=null,r=e.rules(),i=r.validOffsets(t);if(1===i.length)o=i[0];else if(0===i.length){var s=r.transition(t);t=t.plusSeconds(s.duration().seconds()),o=s.offsetAfter()}else o=null!=n&&i.some(function(t){return t.equals(n)})?n:y(i[0],"offset");return new p(t,o,e)},p.ofInstant=function(){return 2===arguments.length?p.ofInstant2.apply(this,arguments):p.ofInstant3.apply(this,arguments)},p.ofInstant2=function(t,e){return y(t,"instant"),y(e,"zone"),p._create(t.epochSecond(),t.nano(),e)},p.ofInstant3=function(t,e,n){return y(t,"localDateTime"),y(e,"offset"),y(n,"zone"),p._create(t.toEpochSecond(e),t.nano(),n)},p._create=function(t,e,n){var o=n.rules(),r=me.ofEpochSecond(t,e),i=o.offset(r);return new p(ye.ofEpochSecond(t,e,i),i,n)},p.ofStrict=function(t,e,n){y(t,"localDateTime"),y(e,"offset"),y(n,"zone");var o=n.rules();if(!1!==o.isValidOffset(t,e))return new p(t,e,n);var r=o.transition(t);if(null!=r&&r.isGap())throw new T("LocalDateTime "+t+" does not exist in zone "+n+" due to a gap in the local time-line, typically caused by daylight savings");throw new T('ZoneOffset "'+e+'" is not valid for LocalDateTime "'+t+'" in zone "'+n+'"')},p.ofLenient=function(t,e,n){if(y(t,"localDateTime"),y(e,"offset"),y(n,"zone"),n instanceof Q&&!1===e.equals(n))throw new c("ZoneId must match ZoneOffset");return new p(t,e,n)},p.from=function(t){if(y(t,"temporal"),t instanceof p)return t;var e=Z.from(t);if(t.isSupported(R.INSTANT_SECONDS)){var n=p._from(t,e);if(null!=n)return n}var o=ye.from(t);return p.of2(o,e)},p._from=function(t,e){try{return p.__from(t,e)}catch(t){if(!(t instanceof T))throw t}},p.__from=function(t,e){var n=t.getLong(R.INSTANT_SECONDS),o=t.get(R.NANO_OF_SECOND);return p._create(n,o,e)},p.parse=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Gt.ISO_ZONED_DATE_TIME;return y(e,"formatter"),e.parse(t,p.FROM)},p.prototype._resolveLocal=function(t){return y(t,"newDateTime"),p.ofLocal(t,this._zone,this._offset)},p.prototype._resolveInstant=function(t){return p.ofInstant3(t,this._offset,this._zone)},p.prototype._resolveOffset=function(t){return!1===t.equals(this._offset)&&this._zone.rules().isValidOffset(this._dateTime,t)?new p(this._dateTime,t,this._zone):this},p.prototype.isSupported=function(t){return t instanceof R||(t instanceof m?t.isDateBased()||t.isTimeBased():null!=t&&t.isSupportedBy(this))},p.prototype.range=function(t){return t instanceof R?t===R.INSTANT_SECONDS||t===R.OFFSET_SECONDS?t.range():this._dateTime.range(t):t.rangeRefinedBy(this)},p.prototype.get=function(t){return this.getLong(t)},p.prototype.getLong=function(t){if(t instanceof R){switch(t){case R.INSTANT_SECONDS:return this.toEpochSecond();case R.OFFSET_SECONDS:return this._offset.totalSeconds()}return this._dateTime.getLong(t)}return y(t,"field"),t.getFrom(this)},p.prototype.offset=function(){return this._offset},p.prototype.withEarlierOffsetAtOverlap=function(){var t=this._zone.rules().transition(this._dateTime);if(null!=t&&t.isOverlap()){var e=t.offsetBefore();if(!1===e.equals(this._offset))return new p(this._dateTime,e,this._zone)}return this},p.prototype.withLaterOffsetAtOverlap=function(){var t=this._zone.rules().transition(this.toLocalDateTime());if(null!=t){var e=t.offsetAfter();if(!1===e.equals(this._offset))return new p(this._dateTime,e,this._zone)}return this},p.prototype.zone=function(){return this._zone},p.prototype.withZoneSameLocal=function(t){return y(t,"zone"),this._zone.equals(t)?this:p.ofLocal(this._dateTime,t,this._offset)},p.prototype.withZoneSameInstant=function(t){return y(t,"zone"),this._zone.equals(t)?this:p._create(this._dateTime.toEpochSecond(this._offset),this._dateTime.nano(),t)},p.prototype.withFixedOffsetZone=function(){return this._zone.equals(this._offset)?this:new p(this._dateTime,this._offset,this._offset)},p.prototype.year=function(){return this._dateTime.year()},p.prototype.monthValue=function(){return this._dateTime.monthValue()},p.prototype.month=function(){return this._dateTime.month()},p.prototype.dayOfMonth=function(){return this._dateTime.dayOfMonth()},p.prototype.dayOfYear=function(){return this._dateTime.dayOfYear()},p.prototype.dayOfWeek=function(){return this._dateTime.dayOfWeek()},p.prototype.hour=function(){return this._dateTime.hour()},p.prototype.minute=function(){return this._dateTime.minute()},p.prototype.second=function(){return this._dateTime.second()},p.prototype.nano=function(){return this._dateTime.nano()},p.prototype.with=function(){return 1===arguments.length?this.withTemporalAdjuster.apply(this,arguments):this.with2.apply(this,arguments)},p.prototype.withTemporalAdjuster=function(t){if(t instanceof _e)return this._resolveLocal(ye.of(t,this._dateTime.toLocalTime()));if(t instanceof Ee)return this._resolveLocal(ye.of(this._dateTime.toLocalDate(),t));if(t instanceof ye)return this._resolveLocal(t);if(t instanceof me){var e=t;return p._create(e.epochSecond(),e.nano(),this._zone)}return t instanceof Q?this._resolveOffset(t):(y(t,"adjuster"),t.adjustInto(this))},p.prototype.with2=function(t,e){if(t instanceof R){switch(t){case R.INSTANT_SECONDS:return p._create(e,this.nano(),this._zone);case R.OFFSET_SECONDS:var n=Q.ofTotalSeconds(t.checkValidIntValue(e));return this._resolveOffset(n)}return this._resolveLocal(this._dateTime.with(t,e))}return t.adjustInto(this,e)},p.prototype.withYear=function(t){return this._resolveLocal(this._dateTime.withYear(t))},p.prototype.withMonth=function(t){return this._resolveLocal(this._dateTime.withMonth(t))},p.prototype.withDayOfMonth=function(t){return this._resolveLocal(this._dateTime.withDayOfMonth(t))},p.prototype.withDayOfYear=function(t){return this._resolveLocal(this._dateTime.withDayOfYear(t))},p.prototype.withHour=function(t){return this._resolveLocal(this._dateTime.withHour(t))},p.prototype.withMinute=function(t){return this._resolveLocal(this._dateTime.withMinute(t))},p.prototype.withSecond=function(t){return this._resolveLocal(this._dateTime.withSecond(t))},p.prototype.withNano=function(t){return this._resolveLocal(this._dateTime.withNano(t))},p.prototype.truncatedTo=function(t){return this._resolveLocal(this._dateTime.truncatedTo(t))},p.prototype.plus=function(){return 1===arguments.length?this.plusTemporalAmount.apply(this,arguments):this.plus2.apply(this,arguments)},p.prototype.plusTemporalAmount=function(t){return y(t),t.addTo(this)},p.prototype.plus2=function(t,e){return e instanceof m?e.isDateBased()?this._resolveLocal(this._dateTime.plus(t,e)):this._resolveInstant(this._dateTime.plus(t,e)):(y(e,"unit"),e.addTo(this,t))},p.prototype.plusYears=function(t){return this._resolveLocal(this._dateTime.plusYears(t))},p.prototype.plusMonths=function(t){return this._resolveLocal(this._dateTime.plusMonths(t))},p.prototype.plusWeeks=function(t){return this._resolveLocal(this._dateTime.plusWeeks(t))},p.prototype.plusDays=function(t){return this._resolveLocal(this._dateTime.plusDays(t))},p.prototype.plusHours=function(t){return this._resolveInstant(this._dateTime.plusHours(t))},p.prototype.plusMinutes=function(t){return this._resolveInstant(this._dateTime.plusMinutes(t))},p.prototype.plusSeconds=function(t){return this._resolveInstant(this._dateTime.plusSeconds(t))},p.prototype.plusNanos=function(t){return this._resolveInstant(this._dateTime.plusNanos(t))},p.prototype.minus=function(){return 1===arguments.length?this.minusTemporalAmount.apply(this,arguments):this.minus2.apply(this,arguments)},p.prototype.minusTemporalAmount=function(t){return y(t,"amount"),t.subtractFrom(this)},p.prototype.minus2=function(t,e){return this.plus2(-1*t,e)},p.prototype.minusYears=function(t){return this.plusYears(-1*t)},p.prototype.minusMonths=function(t){return this.plusMonths(-1*t)},p.prototype.minusWeeks=function(t){return this.plusWeeks(-1*t)},p.prototype.minusDays=function(t){return this.plusDays(-1*t)},p.prototype.minusHours=function(t){return this.plusHours(-1*t)},p.prototype.minusMinutes=function(t){return this.plusMinutes(-1*t)},p.prototype.minusSeconds=function(t){return this.plusSeconds(-1*t)},p.prototype.minusNanos=function(t){return this.plusNanos(-1*t)},p.prototype.query=function(t){return t===A.localDate()?this.toLocalDate():(y(t,"query"),r.prototype.query.call(this,t))},p.prototype.until=function(t,e){var n=p.from(t);if(e instanceof m){if(n=n.withZoneSameInstant(this._zone),e.isDateBased())return this._dateTime.until(n._dateTime,e);var o=this._offset.totalSeconds()-n._offset.totalSeconds(),r=n._dateTime.plusSeconds(o);return this._dateTime.until(r,e)}return e.between(this,n)},p.prototype.toLocalDateTime=function(){return this._dateTime},p.prototype.toLocalDate=function(){return this._dateTime.toLocalDate()},p.prototype.toLocalTime=function(){return this._dateTime.toLocalTime()},p.prototype.equals=function(t){return this===t||t instanceof p&&(this._dateTime.equals(t._dateTime)&&this._offset.equals(t._offset)&&this._zone.equals(t._zone))},p.prototype.hashCode=function(){return g.hashCode(this._dateTime.hashCode(),this._offset.hashCode(),this._zone.hashCode())},p.prototype.toString=function(){var t=this._dateTime.toString()+this._offset.toString();return this._offset!==this._zone&&(t+="["+this._zone.toString()+"]"),t},p.prototype.toJSON=function(){return this.toString()},p.prototype.format=function(t){return r.prototype.format.call(this,t)},p}(ce);var le=146097,_e=function(r){function p(t,e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,r.call(this));return e instanceof P&&(e=e.value()),o._year=g.safeToInt(t),o._month=g.safeToInt(e),o._day=g.safeToInt(n),p._validate(o._year,o._month,o._day),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(p,r),p.now=function(t){var e=void 0;return e=null==t?we.systemDefaultZone():t instanceof Z?we.system(t):t,p.ofInstant(e.instant(),e.zone())},p.ofInstant=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Z.systemDefault();y(t,"instant");var n=e.rules().offset(t),o=t.epochSecond()+n.totalSeconds(),r=g.floorDiv(o,Ee.SECONDS_PER_DAY);return p.ofEpochDay(r)},p.of=function(t,e,n){return new p(t,e,n)},p.ofYearDay=function(t,e){R.YEAR.checkValidValue(t);var n=fe.isLeapYear(t);366===e&&!1===n&&S(!1,"Invalid date 'DayOfYear 366' as '"+t+"' is not a leap year",T);var o=P.of(Math.floor((e-1)/31+1));o.firstDayOfYear(n)+o.length(n)-1<e&&(o=o.plus(1));var r=e-o.firstDayOfYear(n)+1;return new p(t,o.value(),r)},p.ofEpochDay=function(){var t=void 0,e=void 0,n=void 0,o=void 0,r=void 0;r=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:0)+719528,(r-=60)<(t=0)&&(t=400*(e=g.intDiv(r+1,le)-1),r+=-e*le),(n=r-(365*(o=g.intDiv(400*r+591,le))+g.intDiv(o,4)-g.intDiv(o,100)+g.intDiv(o,400)))<0&&(n=r-(365*--o+g.intDiv(o,4)-g.intDiv(o,100)+g.intDiv(o,400))),o+=t;var i=n,s=g.intDiv(5*i+2,153),a=(s+2)%12+1,u=i-g.intDiv(306*s+5,10)+1;return new p(o+=g.intDiv(s,10),a,u)},p.from=function(t){y(t,"temporal");var e=t.query(A.localDate());if(null==e)throw new T("Unable to obtain LocalDate from TemporalAccessor: "+t+", type "+(null!=t.constructor?t.constructor.name:""));return e},p.parse=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Gt.ISO_LOCAL_DATE;return S(null!=e,"formatter",s),e.parse(t,p.FROM)},p._resolvePreviousValid=function(t,e,n){switch(e){case 2:n=Math.min(n,fe.isLeapYear(t)?29:28);break;case 4:case 6:case 9:case 11:n=Math.min(n,30)}return p.of(t,e,n)},p._validate=function(t,e,n){var o=void 0;if(R.YEAR.checkValidValue(t),R.MONTH_OF_YEAR.checkValidValue(e),R.DAY_OF_MONTH.checkValidValue(n),28<n){switch(o=31,e){case 2:o=fe.isLeapYear(t)?29:28;break;case 4:case 6:case 9:case 11:o=30}o<n&&S(!1,29===n?"Invalid date 'February 29' as '"+t+"' is not a leap year":"Invalid date '"+t+"' '"+e+"' '"+n+"'",T)}},p.prototype.isSupported=function(t){return r.prototype.isSupported.call(this,t)},p.prototype.range=function(t){if(t instanceof R){if(t.isDateBased()){switch(t){case R.DAY_OF_MONTH:return D.of(1,this.lengthOfMonth());case R.DAY_OF_YEAR:return D.of(1,this.lengthOfYear());case R.ALIGNED_WEEK_OF_MONTH:return D.of(1,this.month()===P.FEBRUARY&&!1===this.isLeapYear()?4:5);case R.YEAR_OF_ERA:return this._year<=0?D.of(1,te.MAX_VALUE+1):D.of(1,te.MAX_VALUE)}return t.range()}throw new h("Unsupported field: "+t)}return t.rangeRefinedBy(this)},p.prototype.get=function(t){return this.getLong(t)},p.prototype.getLong=function(t){return S(null!=t,"",s),t instanceof R?this._get0(t):t.getFrom(this)},p.prototype._get0=function(t){switch(t){case R.DAY_OF_WEEK:return this.dayOfWeek().value();case R.ALIGNED_DAY_OF_WEEK_IN_MONTH:return g.intMod(this._day-1,7)+1;case R.ALIGNED_DAY_OF_WEEK_IN_YEAR:return g.intMod(this.dayOfYear()-1,7)+1;case R.DAY_OF_MONTH:return this._day;case R.DAY_OF_YEAR:return this.dayOfYear();case R.EPOCH_DAY:return this.toEpochDay();case R.ALIGNED_WEEK_OF_MONTH:return g.intDiv(this._day-1,7)+1;case R.ALIGNED_WEEK_OF_YEAR:return g.intDiv(this.dayOfYear()-1,7)+1;case R.MONTH_OF_YEAR:return this._month;case R.PROLEPTIC_MONTH:return this._prolepticMonth();case R.YEAR_OF_ERA:return 1<=this._year?this._year:1-this._year;case R.YEAR:return this._year;case R.ERA:return 1<=this._year?1:0}throw new h("Unsupported field: "+t)},p.prototype._prolepticMonth=function(){return 12*this._year+(this._month-1)},p.prototype.chronology=function(){return fe.INSTANCE},p.prototype.year=function(){return this._year},p.prototype.monthValue=function(){return this._month},p.prototype.month=function(){return P.of(this._month)},p.prototype.dayOfMonth=function(){return this._day},p.prototype.dayOfYear=function(){return this.month().firstDayOfYear(this.isLeapYear())+this._day-1},p.prototype.dayOfWeek=function(){var t=g.floorMod(this.toEpochDay()+3,7);return F.of(t+1)},p.prototype.isLeapYear=function(){return fe.isLeapYear(this._year)},p.prototype.lengthOfMonth=function(){switch(this._month){case 2:return this.isLeapYear()?29:28;case 4:case 6:case 9:case 11:return 30;default:return 31}},p.prototype.lengthOfYear=function(){return this.isLeapYear()?366:365},p.prototype.with=function(t,e){return arguments.length<2?this.withTemporalAdjuster(t):this.withFieldAndValue(t,e)},p.prototype.withTemporalAdjuster=function(t){return y(t,"adjuster"),t instanceof p?t:(S("function"==typeof t.adjustInto,"adjuster",c),t.adjustInto(this))},p.prototype.withFieldAndValue=function(t,e){if(S(null!=t,"field",s),t instanceof R){var n=t;switch(n.checkValidValue(e),n){case R.DAY_OF_WEEK:return this.plusDays(e-this.dayOfWeek().value());case R.ALIGNED_DAY_OF_WEEK_IN_MONTH:return this.plusDays(e-this.getLong(R.ALIGNED_DAY_OF_WEEK_IN_MONTH));case R.ALIGNED_DAY_OF_WEEK_IN_YEAR:return this.plusDays(e-this.getLong(R.ALIGNED_DAY_OF_WEEK_IN_YEAR));case R.DAY_OF_MONTH:return this.withDayOfMonth(e);case R.DAY_OF_YEAR:return this.withDayOfYear(e);case R.EPOCH_DAY:return p.ofEpochDay(e);case R.ALIGNED_WEEK_OF_MONTH:return this.plusWeeks(e-this.getLong(R.ALIGNED_WEEK_OF_MONTH));case R.ALIGNED_WEEK_OF_YEAR:return this.plusWeeks(e-this.getLong(R.ALIGNED_WEEK_OF_YEAR));case R.MONTH_OF_YEAR:return this.withMonth(e);case R.PROLEPTIC_MONTH:return this.plusMonths(e-this.getLong(R.PROLEPTIC_MONTH));case R.YEAR_OF_ERA:return this.withYear(1<=this._year?e:1-e);case R.YEAR:return this.withYear(e);case R.ERA:return this.getLong(R.ERA)===e?this:this.withYear(1-this._year)}throw new h("Unsupported field: "+t)}return t.adjustInto(this,e)},p.prototype.withYear=function(t){return this._year===t?this:(R.YEAR.checkValidValue(t),p._resolvePreviousValid(t,this._month,this._day))},p.prototype.withMonth=function(t){var e=t instanceof P?t.value():t;return this._month===e?this:(R.MONTH_OF_YEAR.checkValidValue(e),p._resolvePreviousValid(this._year,e,this._day))},p.prototype.withDayOfMonth=function(t){return this._day===t?this:p.of(this._year,this._month,t)},p.prototype.withDayOfYear=function(t){return this.dayOfYear()===t?this:p.ofYearDay(this._year,t)},p.prototype.plus=function(t,e){return arguments.length<2?this.plus1(t):this.plus2(t,e)},p.prototype.plus1=function(t){return y(t,"amount"),t.addTo(this)},p.prototype.plus2=function(t,e){if(y(t,"amountToAdd"),y(e,"unit"),e instanceof m){switch(e){case m.DAYS:return this.plusDays(t);case m.WEEKS:return this.plusWeeks(t);case m.MONTHS:return this.plusMonths(t);case m.YEARS:return this.plusYears(t);case m.DECADES:return this.plusYears(g.safeMultiply(t,10));case m.CENTURIES:return this.plusYears(g.safeMultiply(t,100));case m.MILLENNIA:return this.plusYears(g.safeMultiply(t,1e3));case m.ERAS:return this.with(R.ERA,g.safeAdd(this.getLong(R.ERA),t))}throw new h("Unsupported unit: "+e)}return e.addTo(this,t)},p.prototype.plusYears=function(t){if(0===t)return this;var e=R.YEAR.checkValidIntValue(this._year+t);return p._resolvePreviousValid(e,this._month,this._day)},p.prototype.plusMonths=function(t){if(0===t)return this;var e=12*this._year+(this._month-1)+t,n=R.YEAR.checkValidIntValue(g.floorDiv(e,12)),o=g.floorMod(e,12)+1;return p._resolvePreviousValid(n,o,this._day)},p.prototype.plusWeeks=function(t){return this.plusDays(g.safeMultiply(t,7))},p.prototype.plusDays=function(t){if(0===t)return this;var e=g.safeAdd(this.toEpochDay(),t);return p.ofEpochDay(e)},p.prototype.minus=function(t,e){return arguments.length<2?this.minus1(t):this.minus2(t,e)},p.prototype.minus1=function(t){return y(t,"amount"),t.subtractFrom(this)},p.prototype.minus2=function(t,e){return y(t,"amountToSubtract"),y(e,"unit"),this.plus2(-1*t,e)},p.prototype.minusYears=function(t){return this.plusYears(-1*t)},p.prototype.minusMonths=function(t){return this.plusMonths(-1*t)},p.prototype.minusWeeks=function(t){return this.plusWeeks(-1*t)},p.prototype.minusDays=function(t){return this.plusDays(-1*t)},p.prototype.query=function(t){return y(t,"query"),t===A.localDate()?this:r.prototype.query.call(this,t)},p.prototype.adjustInto=function(t){return r.prototype.adjustInto.call(this,t)},p.prototype.until=function(t,e){return arguments.length<2?this.until1(t):this.until2(t,e)},p.prototype.until2=function(t,e){var n=p.from(t);if(e instanceof m){switch(e){case m.DAYS:return this.daysUntil(n);case m.WEEKS:return g.intDiv(this.daysUntil(n),7);case m.MONTHS:return this._monthsUntil(n);case m.YEARS:return g.intDiv(this._monthsUntil(n),12);case m.DECADES:return g.intDiv(this._monthsUntil(n),120);case m.CENTURIES:return g.intDiv(this._monthsUntil(n),1200);case m.MILLENNIA:return g.intDiv(this._monthsUntil(n),12e3);case m.ERAS:return n.getLong(R.ERA)-this.getLong(R.ERA)}throw new h("Unsupported unit: "+e)}return e.between(this,n)},p.prototype.daysUntil=function(t){return t.toEpochDay()-this.toEpochDay()},p.prototype._monthsUntil=function(t){var e=32*this._prolepticMonth()+this.dayOfMonth(),n=32*t._prolepticMonth()+t.dayOfMonth();return g.intDiv(n-e,32)},p.prototype.until1=function(t){var e=p.from(t),n=e._prolepticMonth()-this._prolepticMonth(),o=e._day-this._day;if(0<n&&o<0){n--;var r=this.plusMonths(n);o=e.toEpochDay()-r.toEpochDay()}else n<0&&0<o&&(n++,o-=e.lengthOfMonth());var i=g.intDiv(n,12),s=g.intMod(n,12);return x.of(i,s,o)},p.prototype.atTime=function(){return 1===arguments.length?this.atTime1.apply(this,arguments):this.atTime4.apply(this,arguments)},p.prototype.atTime1=function(t){return ye.of(this,t)},p.prototype.atTime4=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0;return this.atTime1(Ee.of(t,e,n,o))},p.prototype.atStartOfDay=function(t){return null!=t?this.atStartOfDayWithZone(t):ye.of(this,Ee.MIDNIGHT)},p.prototype.atStartOfDayWithZone=function(t){y(t,"zone");var e=this.atTime(Ee.MIDNIGHT);if(t instanceof Q==!1){var n=t.rules().transition(e);null!=n&&n.isGap()&&(e=n.dateTimeAfter())}return he.of(e,t)},p.prototype.toEpochDay=function(){var t=this._year,e=this._month,n=0;return n+=365*t,0<=t?n+=g.intDiv(t+3,4)-g.intDiv(t+99,100)+g.intDiv(t+399,400):n-=g.intDiv(t,-4)-g.intDiv(t,-100)+g.intDiv(t,-400),n+=g.intDiv(367*e-362,12),n+=this.dayOfMonth()-1,2<e&&(n--,fe.isLeapYear(t)||n--),n-719528},p.prototype.compareTo=function(t){return y(t,"other"),l(t,p,"other"),this._compareTo0(t)},p.prototype._compareTo0=function(t){var e=this._year-t._year;return 0===e&&0===(e=this._month-t._month)&&(e=this._day-t._day),e},p.prototype.isAfter=function(t){return 0<this.compareTo(t)},p.prototype.isBefore=function(t){return this.compareTo(t)<0},p.prototype.isEqual=function(t){return 0===this.compareTo(t)},p.prototype.equals=function(t){return this===t||t instanceof p&&0===this._compareTo0(t)},p.prototype.hashCode=function(){var t=this._year,e=this._month,n=this._day;return g.hash(4294965248&t^(t<<11)+(e<<6)+n)},p.prototype.toString=function(){var t=this._year,e=this._month,n=this._day;return(Math.abs(t)<1e3?t<0?"-"+(""+(t-1e4)).slice(-4):(""+(t+1e4)).slice(-4):9999<t?"+"+t:""+t)+(e<10?"-0"+e:"-"+e)+(n<10?"-0"+n:"-"+n)},p.prototype.toJSON=function(){return this.toString()},p.prototype.format=function(t){return y(t,"formatter"),l(t,Gt,"formatter"),r.prototype.format.call(this,t)},p}(B);var de=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.chronology=function(){return this.toLocalDate().chronology()},t.prototype.query=function(t){return t===A.chronology()?this.chronology():t===A.precision()?m.NANOS:t===A.localDate()?_e.ofEpochDay(this.toLocalDate().toEpochDay()):t===A.localTime()?this.toLocalTime():t===A.zone()||t===A.zoneId()||t===A.offset()?null:e.prototype.query.call(this,t)},t.prototype.adjustInto=function(t){return t.with(R.EPOCH_DAY,this.toLocalDate().toEpochDay()).with(R.NANO_OF_DAY,this.toLocalTime().toNanoOfDay())},t.prototype.toInstant=function(t){return l(t,Q,"zoneId"),me.ofEpochSecond(this.toEpochSecond(t),this.toLocalTime().nano())},t.prototype.toEpochSecond=function(t){y(t,"offset");var e=86400*this.toLocalDate().toEpochDay()+this.toLocalTime().toSecondOfDay();return e-=t.totalSeconds(),g.safeToInt(e)},t}(v);var ye=function(o){function u(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,o.call(this));return l(t,_e,"date"),l(e,Ee,"time"),n._date=t,n._time=e,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(u,o),u.now=function(t){return u._now(null==t?we.systemDefaultZone():t instanceof we?t:we.system(t))},u._now=function(t){return y(t,"clock"),u.ofInstant(t.instant(),t.zone())},u._ofEpochMillis=function(t,e){var n=g.floorDiv(t,1e3)+e.totalSeconds(),o=g.floorDiv(n,Ee.SECONDS_PER_DAY),r=g.floorMod(n,Ee.SECONDS_PER_DAY),i=1e6*g.floorMod(t,1e3);return new u(_e.ofEpochDay(o),Ee.ofSecondOfDay(r,i))},u.of=function(){return 2===arguments.length&&(arguments[0]instanceof _e||arguments[1]instanceof Ee)?u.ofDateAndTime.apply(this,arguments):u.ofNumbers.apply(this,arguments)},u.ofNumbers=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0,s=6<arguments.length&&void 0!==arguments[6]?arguments[6]:0;return new u(_e.of(t,e,n),Ee.of(o,r,i,s))},u.ofDateAndTime=function(t,e){return y(t,"date"),y(e,"time"),new u(t,e)},u.ofInstant=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Z.systemDefault();y(t,"instant"),l(t,me,"instant"),y(e,"zone");var n=e.rules().offset(t);return u.ofEpochSecond(t.epochSecond(),t.nano(),n)},u.ofEpochSecond=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=arguments[2];2===arguments.length&&e instanceof Q&&(n=e,e=0),y(n,"offset");var o=t+n.totalSeconds(),r=g.floorDiv(o,Ee.SECONDS_PER_DAY),i=g.floorMod(o,Ee.SECONDS_PER_DAY);return new u(_e.ofEpochDay(r),Ee.ofSecondOfDay(i,e))},u.from=function(e){if(y(e,"temporal"),e instanceof u)return e;if(e instanceof he)return e.toLocalDateTime();try{return new u(_e.from(e),Ee.from(e))}catch(t){throw new T("Unable to obtain LocalDateTime TemporalAccessor: "+e+", type "+(null!=e.constructor?e.constructor.name:""))}},u.parse=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Gt.ISO_LOCAL_DATE_TIME;return y(e,"formatter"),e.parse(t,u.FROM)},u.prototype._withDateTime=function(t,e){return this._date===t&&this._time===e?this:new u(t,e)},u.prototype.isSupported=function(t){return t instanceof R?t.isDateBased()||t.isTimeBased():t instanceof m?t.isDateBased()||t.isTimeBased():null!=t&&t.isSupportedBy(this)},u.prototype.range=function(t){return t instanceof R?t.isTimeBased()?this._time.range(t):this._date.range(t):t.rangeRefinedBy(this)},u.prototype.get=function(t){return t instanceof R?t.isTimeBased()?this._time.get(t):this._date.get(t):o.prototype.get.call(this,t)},u.prototype.getLong=function(t){return y(t,"field"),t instanceof R?t.isTimeBased()?this._time.getLong(t):this._date.getLong(t):t.getFrom(this)},u.prototype.year=function(){return this._date.year()},u.prototype.monthValue=function(){return this._date.monthValue()},u.prototype.month=function(){return this._date.month()},u.prototype.dayOfMonth=function(){return this._date.dayOfMonth()},u.prototype.dayOfYear=function(){return this._date.dayOfYear()},u.prototype.dayOfWeek=function(){return this._date.dayOfWeek()},u.prototype.hour=function(){return this._time.hour()},u.prototype.minute=function(){return this._time.minute()},u.prototype.second=function(){return this._time.second()},u.prototype.nano=function(){return this._time.nano()},u.prototype.with=function(t,e){return 1===arguments.length?this.withTemporalAdjuster(t):this.with2(t,e)},u.prototype.withTemporalAdjuster=function(t){return y(t,"adjuster"),t instanceof _e?this._withDateTime(t,this._time):t instanceof Ee?this._withDateTime(this._date,t):t instanceof u?t:(S("function"==typeof t.adjustInto,"adjuster",c),t.adjustInto(this))},u.prototype.with2=function(t,e){return y(t,"field"),t instanceof R?t.isTimeBased()?this._withDateTime(this._date,this._time.with(t,e)):this._withDateTime(this._date.with(t,e),this._time):t.adjustInto(this,e)},u.prototype.withYear=function(t){return this._withDateTime(this._date.withYear(t),this._time)},u.prototype.withMonth=function(t){return this._withDateTime(this._date.withMonth(t),this._time)},u.prototype.withDayOfMonth=function(t){return this._withDateTime(this._date.withDayOfMonth(t),this._time)},u.prototype.withDayOfYear=function(t){return this._withDateTime(this._date.withDayOfYear(t),this._time)},u.prototype.withHour=function(t){var e=this._time.withHour(t);return this._withDateTime(this._date,e)},u.prototype.withMinute=function(t){var e=this._time.withMinute(t);return this._withDateTime(this._date,e)},u.prototype.withSecond=function(t){var e=this._time.withSecond(t);return this._withDateTime(this._date,e)},u.prototype.withNano=function(t){var e=this._time.withNano(t);return this._withDateTime(this._date,e)},u.prototype.truncatedTo=function(t){return this._withDateTime(this._date,this._time.truncatedTo(t))},u.prototype.plus=function(t,e){return 1===arguments.length?this.plusTemporalAmount(t):this.plus2(t,e)},u.prototype.plusTemporalAmount=function(t){return y(t,"amount"),t.addTo(this)},u.prototype.plus2=function(t,e){if(y(e,"unit"),e instanceof m){switch(e){case m.NANOS:return this.plusNanos(t);case m.MICROS:return this.plusDays(g.intDiv(t,Ee.MICROS_PER_DAY)).plusNanos(1e3*g.intMod(t,Ee.MICROS_PER_DAY));case m.MILLIS:return this.plusDays(g.intDiv(t,Ee.MILLIS_PER_DAY)).plusNanos(1e6*g.intMod(t,Ee.MILLIS_PER_DAY));case m.SECONDS:return this.plusSeconds(t);case m.MINUTES:return this.plusMinutes(t);case m.HOURS:return this.plusHours(t);case m.HALF_DAYS:return this.plusDays(g.intDiv(t,256)).plusHours(12*g.intMod(t,256))}return this._withDateTime(this._date.plus(t,e),this._time)}return e.addTo(this,t)},u.prototype.plusYears=function(t){var e=this._date.plusYears(t);return this._withDateTime(e,this._time)},u.prototype.plusMonths=function(t){var e=this._date.plusMonths(t);return this._withDateTime(e,this._time)},u.prototype.plusWeeks=function(t){var e=this._date.plusWeeks(t);return this._withDateTime(e,this._time)},u.prototype.plusDays=function(t){var e=this._date.plusDays(t);return this._withDateTime(e,this._time)},u.prototype.plusHours=function(t){return this._plusWithOverflow(this._date,t,0,0,0,1)},u.prototype.plusMinutes=function(t){return this._plusWithOverflow(this._date,0,t,0,0,1)},u.prototype.plusSeconds=function(t){return this._plusWithOverflow(this._date,0,0,t,0,1)},u.prototype.plusNanos=function(t){return this._plusWithOverflow(this._date,0,0,0,t,1)},u.prototype.minus=function(t,e){return 1===arguments.length?this.minusTemporalAmount(t):this.minus2(t,e)},u.prototype.minusTemporalAmount=function(t){return y(t,"amount"),t.subtractFrom(this)},u.prototype.minus2=function(t,e){return y(e,"unit"),this.plus2(-1*t,e)},u.prototype.minusYears=function(t){return this.plusYears(-1*t)},u.prototype.minusMonths=function(t){return this.plusMonths(-1*t)},u.prototype.minusWeeks=function(t){return this.plusWeeks(-1*t)},u.prototype.minusDays=function(t){return this.plusDays(-1*t)},u.prototype.minusHours=function(t){return this._plusWithOverflow(this._date,t,0,0,0,-1)},u.prototype.minusMinutes=function(t){return this._plusWithOverflow(this._date,0,t,0,0,-1)},u.prototype.minusSeconds=function(t){return this._plusWithOverflow(this._date,0,0,t,0,-1)},u.prototype.minusNanos=function(t){return this._plusWithOverflow(this._date,0,0,0,t,-1)},u.prototype._plusWithOverflow=function(t,e,n,o,r,i){if(0==(e|n|o|r))return this._withDateTime(t,this._time);var s=g.intDiv(r,Ee.NANOS_PER_DAY)+g.intDiv(o,Ee.SECONDS_PER_DAY)+g.intDiv(n,Ee.MINUTES_PER_DAY)+g.intDiv(e,Ee.HOURS_PER_DAY);s*=i;var a=g.intMod(r,Ee.NANOS_PER_DAY)+g.intMod(o,Ee.SECONDS_PER_DAY)*Ee.NANOS_PER_SECOND+g.intMod(n,Ee.MINUTES_PER_DAY)*Ee.NANOS_PER_MINUTE+g.intMod(e,Ee.HOURS_PER_DAY)*Ee.NANOS_PER_HOUR,u=this._time.toNanoOfDay();a=a*i+u,s+=g.floorDiv(a,Ee.NANOS_PER_DAY);var p=g.floorMod(a,Ee.NANOS_PER_DAY),f=p===u?this._time:Ee.ofNanoOfDay(p);return this._withDateTime(t.plusDays(s),f)},u.prototype.query=function(t){return y(t,"query"),t===A.localDate()?this.toLocalDate():o.prototype.query.call(this,t)},u.prototype.adjustInto=function(t){return o.prototype.adjustInto.call(this,t)},u.prototype.until=function(t,e){y(t,"endExclusive"),y(e,"unit");var n=u.from(t);if(e instanceof m){if(e.isTimeBased()){var o=this._date.daysUntil(n._date),r=n._time.toNanoOfDay()-this._time.toNanoOfDay();0<o&&r<0?(o--,r+=Ee.NANOS_PER_DAY):o<0&&0<r&&(o++,r-=Ee.NANOS_PER_DAY);var i=o;switch(e){case m.NANOS:return i=g.safeMultiply(i,Ee.NANOS_PER_DAY),g.safeAdd(i,r);case m.MICROS:return i=g.safeMultiply(i,Ee.MICROS_PER_DAY),g.safeAdd(i,g.intDiv(r,1e3));case m.MILLIS:return i=g.safeMultiply(i,Ee.MILLIS_PER_DAY),g.safeAdd(i,g.intDiv(r,1e6));case m.SECONDS:return i=g.safeMultiply(i,Ee.SECONDS_PER_DAY),g.safeAdd(i,g.intDiv(r,Ee.NANOS_PER_SECOND));case m.MINUTES:return i=g.safeMultiply(i,Ee.MINUTES_PER_DAY),g.safeAdd(i,g.intDiv(r,Ee.NANOS_PER_MINUTE));case m.HOURS:return i=g.safeMultiply(i,Ee.HOURS_PER_DAY),g.safeAdd(i,g.intDiv(r,Ee.NANOS_PER_HOUR));case m.HALF_DAYS:return i=g.safeMultiply(i,2),g.safeAdd(i,g.intDiv(r,12*Ee.NANOS_PER_HOUR))}throw new h("Unsupported unit: "+e)}var s=n._date,a=n._time;return s.isAfter(this._date)&&a.isBefore(this._time)?s=s.minusDays(1):s.isBefore(this._date)&&a.isAfter(this._time)&&(s=s.plusDays(1)),this._date.until(s,e)}return e.between(this,n)},u.prototype.atZone=function(t){return he.of(this,t)},u.prototype.toLocalDate=function(){return this._date},u.prototype.toLocalTime=function(){return this._time},u.prototype.compareTo=function(t){return y(t,"other"),l(t,u,"other"),this._compareTo0(t)},u.prototype._compareTo0=function(t){var e=this._date.compareTo(t.toLocalDate());return 0===e&&(e=this._time.compareTo(t.toLocalTime())),e},u.prototype.isAfter=function(t){return 0<this.compareTo(t)},u.prototype.isBefore=function(t){return this.compareTo(t)<0},u.prototype.isEqual=function(t){return 0===this.compareTo(t)},u.prototype.equals=function(t){return this===t||t instanceof u&&(this._date.equals(t._date)&&this._time.equals(t._time))},u.prototype.hashCode=function(){return this._date.hashCode()^this._time.hashCode()},u.prototype.toString=function(){return this._date.toString()+"T"+this._time.toString()},u.prototype.toJSON=function(){return this.toString()},u.prototype.format=function(t){return y(t,"formatter"),t.format(this)},u}(de);function Oe(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var Ee=function(p){function f(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f);var r=Oe(this,p.call(this)),i=g.safeToInt(t),s=g.safeToInt(e),a=g.safeToInt(n),u=g.safeToInt(o);return f._validate(i,s,a,u),0==(s|a|u)?(f.HOURS[i]||(r._hour=i,r._minute=s,r._second=a,r._nano=u,f.HOURS[i]=r),Oe(r,f.HOURS[i])):(r._hour=i,r._minute=s,r._second=a,r._nano=u,r)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(f,p),f.now=function(t){return f._now(null==t?we.systemDefaultZone():t instanceof we?t:we.system(t))},f._now=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:we.systemDefaultZone();return y(t,"clock"),f.ofInstant(t.instant(),t.zone())},f.ofInstant=function(t){var e=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:Z.systemDefault()).rules().offset(t),n=g.intMod(t.epochSecond(),f.SECONDS_PER_DAY);return(n=g.intMod(n+e.totalSeconds(),f.SECONDS_PER_DAY))<0&&(n+=f.SECONDS_PER_DAY),f.ofSecondOfDay(n,t.nano())},f.of=function(t,e,n,o){return new f(t,e,n,o)},f.ofSecondOfDay=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;R.SECOND_OF_DAY.checkValidValue(t),R.NANO_OF_SECOND.checkValidValue(e);var n=g.intDiv(t,f.SECONDS_PER_HOUR);t-=n*f.SECONDS_PER_HOUR;var o=g.intDiv(t,f.SECONDS_PER_MINUTE);return new f(n,o,t-=o*f.SECONDS_PER_MINUTE,e)},f.ofNanoOfDay=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;R.NANO_OF_DAY.checkValidValue(t);var e=g.intDiv(t,f.NANOS_PER_HOUR);t-=e*f.NANOS_PER_HOUR;var n=g.intDiv(t,f.NANOS_PER_MINUTE);t-=n*f.NANOS_PER_MINUTE;var o=g.intDiv(t,f.NANOS_PER_SECOND);return new f(e,n,o,t-=o*f.NANOS_PER_SECOND)},f.from=function(t){y(t,"temporal");var e=t.query(A.localTime());if(null==e)throw new T("Unable to obtain LocalTime TemporalAccessor: "+t+", type "+(null!=t.constructor?t.constructor.name:""));return e},f.parse=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Gt.ISO_LOCAL_TIME;return y(e,"formatter"),e.parse(t,f.FROM)},f._validate=function(t,e,n,o){R.HOUR_OF_DAY.checkValidValue(t),R.MINUTE_OF_HOUR.checkValidValue(e),R.SECOND_OF_MINUTE.checkValidValue(n),R.NANO_OF_SECOND.checkValidValue(o)},f.prototype.isSupported=function(t){return t instanceof R?t.isTimeBased():t instanceof m?t.isTimeBased():null!=t&&t.isSupportedBy(this)},f.prototype.range=function(t){return y(t),p.prototype.range.call(this,t)},f.prototype.get=function(t){return this.getLong(t)},f.prototype.getLong=function(t){return y(t,"field"),t instanceof R?this._get0(t):t.getFrom(this)},f.prototype._get0=function(t){switch(t){case R.NANO_OF_SECOND:return this._nano;case R.NANO_OF_DAY:return this.toNanoOfDay();case R.MICRO_OF_SECOND:return g.intDiv(this._nano,1e3);case R.MICRO_OF_DAY:return g.intDiv(this.toNanoOfDay(),1e3);case R.MILLI_OF_SECOND:return g.intDiv(this._nano,1e6);case R.MILLI_OF_DAY:return g.intDiv(this.toNanoOfDay(),1e6);case R.SECOND_OF_MINUTE:return this._second;case R.SECOND_OF_DAY:return this.toSecondOfDay();case R.MINUTE_OF_HOUR:return this._minute;case R.MINUTE_OF_DAY:return 60*this._hour+this._minute;case R.HOUR_OF_AMPM:return g.intMod(this._hour,12);case R.CLOCK_HOUR_OF_AMPM:var e=g.intMod(this._hour,12);return e%12==0?12:e;case R.HOUR_OF_DAY:return this._hour;case R.CLOCK_HOUR_OF_DAY:return 0===this._hour?24:this._hour;case R.AMPM_OF_DAY:return g.intDiv(this._hour,12)}throw new h("Unsupported field: "+t)},f.prototype.hour=function(){return this._hour},f.prototype.minute=function(){return this._minute},f.prototype.second=function(){return this._second},f.prototype.nano=function(){return this._nano},f.prototype.with=function(t,e){return arguments.length<2?this.withTemporalAdjuster(t):this.with2(t,e)},f.prototype.withTemporalAdjuster=function(t){return y(t,"adjuster"),t instanceof f?t:(S("function"==typeof t.adjustInto,"adjuster",c),t.adjustInto(this))},f.prototype.with2=function(t,e){if(y(t,"field"),l(t,N,"field"),t instanceof R){switch(t.checkValidValue(e),t){case R.NANO_OF_SECOND:return this.withNano(e);case R.NANO_OF_DAY:return f.ofNanoOfDay(e);case R.MICRO_OF_SECOND:return this.withNano(1e3*e);case R.MICRO_OF_DAY:return f.ofNanoOfDay(1e3*e);case R.MILLI_OF_SECOND:return this.withNano(1e6*e);case R.MILLI_OF_DAY:return f.ofNanoOfDay(1e6*e);case R.SECOND_OF_MINUTE:return this.withSecond(e);case R.SECOND_OF_DAY:return this.plusSeconds(e-this.toSecondOfDay());case R.MINUTE_OF_HOUR:return this.withMinute(e);case R.MINUTE_OF_DAY:return this.plusMinutes(e-(60*this._hour+this._minute));case R.HOUR_OF_AMPM:return this.plusHours(e-g.intMod(this._hour,12));case R.CLOCK_HOUR_OF_AMPM:return this.plusHours((12===e?0:e)-g.intMod(this._hour,12));case R.HOUR_OF_DAY:return this.withHour(e);case R.CLOCK_HOUR_OF_DAY:return this.withHour(24===e?0:e);case R.AMPM_OF_DAY:return this.plusHours(12*(e-g.intDiv(this._hour,12)))}throw new h("Unsupported field: "+t)}return t.adjustInto(this,e)},f.prototype.withHour=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;return this._hour===t?this:new f(t,this._minute,this._second,this._nano)},f.prototype.withMinute=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;return this._minute===t?this:new f(this._hour,t,this._second,this._nano)},f.prototype.withSecond=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;return this._second===t?this:new f(this._hour,this._minute,t,this._nano)},f.prototype.withNano=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;return this._nano===t?this:new f(this._hour,this._minute,this._second,t)},f.prototype.truncatedTo=function(t){if(y(t,"unit"),t===m.NANOS)return this;var e=t.duration();if(e.seconds()>f.SECONDS_PER_DAY)throw new T("Unit is too large to be used for truncation");var n=e.toNanos();if(0!==g.intMod(f.NANOS_PER_DAY,n))throw new T("Unit must divide into a standard day without remainder");var o=this.toNanoOfDay();return f.ofNanoOfDay(g.intDiv(o,n)*n)},f.prototype.plus=function(t,e){return arguments.length<2?this.plus1(t):this.plus2(t,e)},f.prototype.plus1=function(t){return y(t,"amount"),t.addTo(this)},f.prototype.plus2=function(t,e){if(y(e,"unit"),e instanceof m){switch(e){case m.NANOS:return this.plusNanos(t);case m.MICROS:return this.plusNanos(1e3*g.intMod(t,f.MICROS_PER_DAY));case m.MILLIS:return this.plusNanos(1e6*g.intMod(t,f.MILLIS_PER_DAY));case m.SECONDS:return this.plusSeconds(t);case m.MINUTES:return this.plusMinutes(t);case m.HOURS:return this.plusHours(t);case m.HALF_DAYS:return this.plusHours(12*g.intMod(t,2))}throw new h("Unsupported unit: "+e)}return e.addTo(this,t)},f.prototype.plusHours=function(t){return 0===t?this:new f(g.intMod(g.intMod(t,f.HOURS_PER_DAY)+this._hour+f.HOURS_PER_DAY,f.HOURS_PER_DAY),this._minute,this._second,this._nano)},f.prototype.plusMinutes=function(t){if(0===t)return this;var e=this._hour*f.MINUTES_PER_HOUR+this._minute,n=g.intMod(g.intMod(t,f.MINUTES_PER_DAY)+e+f.MINUTES_PER_DAY,f.MINUTES_PER_DAY);return e===n?this:new f(g.intDiv(n,f.MINUTES_PER_HOUR),g.intMod(n,f.MINUTES_PER_HOUR),this._second,this._nano)},f.prototype.plusSeconds=function(t){if(0===t)return this;var e=this._hour*f.SECONDS_PER_HOUR+this._minute*f.SECONDS_PER_MINUTE+this._second,n=g.intMod(g.intMod(t,f.SECONDS_PER_DAY)+e+f.SECONDS_PER_DAY,f.SECONDS_PER_DAY);return e===n?this:new f(g.intDiv(n,f.SECONDS_PER_HOUR),g.intMod(g.intDiv(n,f.SECONDS_PER_MINUTE),f.MINUTES_PER_HOUR),g.intMod(n,f.SECONDS_PER_MINUTE),this._nano)},f.prototype.plusNanos=function(t){if(0===t)return this;var e=this.toNanoOfDay(),n=g.intMod(g.intMod(t,f.NANOS_PER_DAY)+e+f.NANOS_PER_DAY,f.NANOS_PER_DAY);return e===n?this:new f(g.intDiv(n,f.NANOS_PER_HOUR),g.intMod(g.intDiv(n,f.NANOS_PER_MINUTE),f.MINUTES_PER_HOUR),g.intMod(g.intDiv(n,f.NANOS_PER_SECOND),f.SECONDS_PER_MINUTE),g.intMod(n,f.NANOS_PER_SECOND))},f.prototype.minus=function(t,e){return arguments.length<2?this.minus1(t):this.minus2(t,e)},f.prototype.minus1=function(t){return y(t,"amount"),t.subtractFrom(this)},f.prototype.minus2=function(t,e){return y(e,"unit"),this.plus2(-1*t,e)},f.prototype.minusHours=function(t){return this.plusHours(-1*g.intMod(t,f.HOURS_PER_DAY))},f.prototype.minusMinutes=function(t){return this.plusMinutes(-1*g.intMod(t,f.MINUTES_PER_DAY))},f.prototype.minusSeconds=function(t){return this.plusSeconds(-1*g.intMod(t,f.SECONDS_PER_DAY))},f.prototype.minusNanos=function(t){return this.plusNanos(-1*g.intMod(t,f.NANOS_PER_DAY))},f.prototype.query=function(t){return y(t,"query"),t===A.precision()?m.NANOS:t===A.localTime()?this:t===A.chronology()||t===A.zoneId()||t===A.zone()||t===A.offset()||t===A.localDate()?null:t.queryFrom(this)},f.prototype.adjustInto=function(t){return t.with(f.NANO_OF_DAY,this.toNanoOfDay())},f.prototype.until=function(t,e){y(t,"endExclusive"),y(e,"unit");var n=f.from(t);if(e instanceof m){var o=n.toNanoOfDay()-this.toNanoOfDay();switch(e){case m.NANOS:return o;case m.MICROS:return g.intDiv(o,1e3);case m.MILLIS:return g.intDiv(o,1e6);case m.SECONDS:return g.intDiv(o,f.NANOS_PER_SECOND);case m.MINUTES:return g.intDiv(o,f.NANOS_PER_MINUTE);case m.HOURS:return g.intDiv(o,f.NANOS_PER_HOUR);case m.HALF_DAYS:return g.intDiv(o,12*f.NANOS_PER_HOUR)}throw new h("Unsupported unit: "+e)}return e.between(this,n)},f.prototype.atDate=function(t){return ye.of(t,this)},f.prototype.toSecondOfDay=function(){var t=this._hour*f.SECONDS_PER_HOUR;return t+=this._minute*f.SECONDS_PER_MINUTE,t+=this._second},f.prototype.toNanoOfDay=function(){var t=this._hour*f.NANOS_PER_HOUR;return t+=this._minute*f.NANOS_PER_MINUTE,t+=this._second*f.NANOS_PER_SECOND,t+=this._nano},f.prototype.compareTo=function(t){y(t,"other"),l(t,f,"other");var e=g.compareNumbers(this._hour,t._hour);return 0===e&&0===(e=g.compareNumbers(this._minute,t._minute))&&0===(e=g.compareNumbers(this._second,t._second))&&(e=g.compareNumbers(this._nano,t._nano)),e},f.prototype.isAfter=function(t){return 0<this.compareTo(t)},f.prototype.isBefore=function(t){return this.compareTo(t)<0},f.prototype.equals=function(t){return this===t||t instanceof f&&(this._hour===t._hour&&this._minute===t._minute&&this._second===t._second&&this._nano===t._nano)},f.prototype.hashCode=function(){var t=this.toNanoOfDay();return g.hash(t)},f.prototype.toString=function(){var t="",e=this._hour,n=this._minute,o=this._second,r=this._nano;return t+=e<10?"0":"",t+=e,t+=n<10?":0":":",t+=n,(0<o||0<r)&&(t+=o<10?":0":":",t+=o,0<r&&(t+=".",0===g.intMod(r,1e6)?t+=(""+(g.intDiv(r,1e6)+1e3)).substring(1):0===g.intMod(r,1e3)?t+=(""+(g.intDiv(r,1e3)+1e6)).substring(1):t+=(""+(r+1e9)).substring(1))),t},f.prototype.toJSON=function(){return this.toString()},f.prototype.format=function(t){return y(t,"formatter"),t.format(this)},f}(v);Ee.HOURS_PER_DAY=24,Ee.MINUTES_PER_HOUR=60,Ee.MINUTES_PER_DAY=Ee.MINUTES_PER_HOUR*Ee.HOURS_PER_DAY,Ee.SECONDS_PER_MINUTE=60,Ee.SECONDS_PER_HOUR=Ee.SECONDS_PER_MINUTE*Ee.MINUTES_PER_HOUR,Ee.SECONDS_PER_DAY=Ee.SECONDS_PER_HOUR*Ee.HOURS_PER_DAY,Ee.MILLIS_PER_DAY=1e3*Ee.SECONDS_PER_DAY,Ee.MICROS_PER_DAY=1e6*Ee.SECONDS_PER_DAY,Ee.NANOS_PER_SECOND=1e9,Ee.NANOS_PER_MINUTE=Ee.NANOS_PER_SECOND*Ee.SECONDS_PER_MINUTE,Ee.NANOS_PER_HOUR=Ee.NANOS_PER_MINUTE*Ee.MINUTES_PER_HOUR,Ee.NANOS_PER_DAY=Ee.NANOS_PER_HOUR*Ee.HOURS_PER_DAY;var Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var me=function(o){function r(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,o.call(this));return r._validate(t,e),n._seconds=g.safeToInt(t),n._nanos=g.safeToInt(e),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,o),r.now=function(){return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:we.systemUTC()).instant()},r.ofEpochSecond=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=t+g.floorDiv(e,Ee.NANOS_PER_SECOND),o=g.floorMod(e,Ee.NANOS_PER_SECOND);return r._create(n,o)},r.ofEpochMilli=function(t){var e=g.floorDiv(t,1e3),n=g.floorMod(t,1e3);return r._create(e,1e6*n)},r.from=function(e){try{var t=e.getLong(R.INSTANT_SECONDS),n=e.get(R.NANO_OF_SECOND);return r.ofEpochSecond(t,n)}catch(t){throw new T("Unable to obtain Instant from TemporalAccessor: "+e+", type "+(void 0===e?"undefined":Se(e)),t)}},r.parse=function(t){return Gt.ISO_INSTANT.parse(t,r.FROM)},r._create=function(t,e){return 0===t&&0===e?r.EPOCH:new r(t,e)},r._validate=function(t,e){if(t<r.MIN_SECONDS||r.MAX_SECONDS<t)throw new T("Instant exceeds minimum or maximum instant");if(e<0||e>Ee.NANOS_PER_SECOND)throw new T("Instant exceeds minimum or maximum instant")},r.prototype.isSupported=function(t){return t instanceof R?t===R.INSTANT_SECONDS||t===R.NANO_OF_SECOND||t===R.MICRO_OF_SECOND||t===R.MILLI_OF_SECOND:t instanceof m?t.isTimeBased()||t===m.DAYS:null!=t&&t.isSupportedBy(this)},r.prototype.range=function(t){return o.prototype.range.call(this,t)},r.prototype.get=function(t){return this.getLong(t)},r.prototype.getLong=function(t){if(t instanceof R){switch(t){case R.NANO_OF_SECOND:return this._nanos;case R.MICRO_OF_SECOND:return g.intDiv(this._nanos,1e3);case R.MILLI_OF_SECOND:return g.intDiv(this._nanos,1e6);case R.INSTANT_SECONDS:return this._seconds}throw new h("Unsupported field: "+t)}return t.getFrom(this)},r.prototype.epochSecond=function(){return this._seconds},r.prototype.nano=function(){return this._nanos},r.prototype.with=function(t,e){return 1===arguments.length?this.withTemporalAdjuster(t):this.with2(t,e)},r.prototype.withTemporalAdjuster=function(t){return y(t,"adjuster"),t.adjustInto(this)},r.prototype.with2=function(t,e){if(y(t,"field"),t instanceof R){switch(t.checkValidValue(e),t){case R.MILLI_OF_SECOND:var n=1e6*e;return n!==this._nanos?r._create(this._seconds,n):this;case R.MICRO_OF_SECOND:var o=1e3*e;return o!==this._nanos?r._create(this._seconds,o):this;case R.NANO_OF_SECOND:return e!==this._nanos?r._create(this._seconds,e):this;case R.INSTANT_SECONDS:return e!==this._seconds?r._create(e,this._nanos):this}throw new h("Unsupported field: "+t)}return t.adjustInto(this,e)},r.prototype.truncatedTo=function(t){if(y(t,"unit"),t===m.NANOS)return this;var e=t.duration();if(e.seconds()>Ee.SECONDS_PER_DAY)throw new T("Unit is too large to be used for truncation");var n=e.toNanos();if(0!==g.intMod(Ee.NANOS_PER_DAY,n))throw new T("Unit must divide into a standard day without remainder");var o=g.intMod(this._seconds,Ee.SECONDS_PER_DAY)*Ee.NANOS_PER_SECOND+this._nanos,r=g.intDiv(o,n)*n;return this.plusNanos(r-o)},r.prototype.plus=function(t,e){return 1===arguments.length?this.plus1(t):this.plus2(t,e)},r.prototype.plus1=function(t){return y(t,"amount"),t.addTo(this)},r.prototype.plus2=function(t,e){if(y(t,"amountToAdd"),y(e,"unit"),l(e,f),e instanceof m){switch(e){case m.NANOS:return this.plusNanos(t);case m.MICROS:return this._plus(g.intDiv(t,1e6),1e3*g.intMod(t,1e6));case m.MILLIS:return this.plusMillis(t);case m.SECONDS:return this.plusSeconds(t);case m.MINUTES:return this.plusSeconds(g.safeMultiply(t,Ee.SECONDS_PER_MINUTE));case m.HOURS:return this.plusSeconds(g.safeMultiply(t,Ee.SECONDS_PER_HOUR));case m.HALF_DAYS:return this.plusSeconds(g.safeMultiply(t,Ee.SECONDS_PER_DAY/2));case m.DAYS:return this.plusSeconds(g.safeMultiply(t,Ee.SECONDS_PER_DAY))}throw new h("Unsupported unit: "+e)}return e.addTo(this,t)},r.prototype.plusSeconds=function(t){return this._plus(t,0)},r.prototype.plusMillis=function(t){return this._plus(g.intDiv(t,1e3),1e6*g.intMod(t,1e3))},r.prototype.plusNanos=function(t){return this._plus(0,t)},r.prototype._plus=function(t,e){if(0==(t|e))return this;var n=this._seconds+t;n+=g.intDiv(e,Ee.NANOS_PER_SECOND);var o=this._nanos+e%Ee.NANOS_PER_SECOND;return r.ofEpochSecond(n,o)},r.prototype.minus=function(t,e){return 1===arguments.length?this.minus1(t):this.minus2(t,e)},r.prototype.minus1=function(t){return y(t,"amount"),t.subtractFrom(this)},r.prototype.minus2=function(t,e){return this.plus2(-1*t,e)},r.prototype.minusSeconds=function(t){return this.plusSeconds(-1*t)},r.prototype.minusMillis=function(t){return this.plusMillis(-1*t)},r.prototype.minusNanos=function(t){return this.plusNanos(-1*t)},r.prototype.query=function(t){return y(t,"query"),t===A.precision()?m.NANOS:t===A.localDate()||t===A.localTime()||t===A.chronology()||t===A.zoneId()||t===A.zone()||t===A.offset()?null:t.queryFrom(this)},r.prototype.adjustInto=function(t){return y(t,"temporal"),t.with(R.INSTANT_SECONDS,this._seconds).with(R.NANO_OF_SECOND,this._nanos)},r.prototype.until=function(t,e){y(t,"endExclusive"),y(e,"unit");var n=r.from(t);if(e instanceof m){switch(e){case m.NANOS:return this._nanosUntil(n);case m.MICROS:return g.intDiv(this._nanosUntil(n),1e3);case m.MILLIS:return g.safeSubtract(n.toEpochMilli(),this.toEpochMilli());case m.SECONDS:return this._secondsUntil(n);case m.MINUTES:return g.intDiv(this._secondsUntil(n),Ee.SECONDS_PER_MINUTE);case m.HOURS:return g.intDiv(this._secondsUntil(n),Ee.SECONDS_PER_HOUR);case m.HALF_DAYS:return g.intDiv(this._secondsUntil(n),12*Ee.SECONDS_PER_HOUR);case m.DAYS:return g.intDiv(this._secondsUntil(n),Ee.SECONDS_PER_DAY)}throw new h("Unsupported unit: "+e)}return e.between(this,n)},r.prototype._nanosUntil=function(t){var e=g.safeSubtract(t.epochSecond(),this.epochSecond()),n=g.safeMultiply(e,Ee.NANOS_PER_SECOND);return g.safeAdd(n,t.nano()-this.nano())},r.prototype._secondsUntil=function(t){var e=g.safeSubtract(t.epochSecond(),this.epochSecond()),n=t.nano()-this.nano();return 0<e&&n<0?e--:e<0&&0<n&&e++,e},r.prototype.atZone=function(t){return he.ofInstant(this,t)},r.prototype.toEpochMilli=function(){return g.safeMultiply(this._seconds,1e3)+g.intDiv(this._nanos,1e6)},r.prototype.compareTo=function(t){y(t,"otherInstant"),l(t,r,"otherInstant");var e=g.compareNumbers(this._seconds,t._seconds);return 0!==e?e:this._nanos-t._nanos},r.prototype.isAfter=function(t){return 0<this.compareTo(t)},r.prototype.isBefore=function(t){return this.compareTo(t)<0},r.prototype.equals=function(t){return this===t||t instanceof r&&(this.epochSecond()===t.epochSecond()&&this.nano()===t.nano())},r.prototype.hashCode=function(){return g.hashCode(this._seconds,this._nanos)},r.prototype.toString=function(){return Gt.ISO_INSTANT.format(this)},r.prototype.toJSON=function(){return this.toString()},r}(v);function Ne(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function De(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function Ae(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var we=function(){function t(){Ae(this,t)}return t.systemUTC=function(){return new ve(Q.UTC)},t.systemDefaultZone=function(){return new ve(Z.systemDefault())},t.system=function(t){return new ve(t)},t.fixed=function(t,e){return new Te(t,e)},t.offset=function(t,e){return new ge(t,e)},t.prototype.millis=function(){n("Clock.millis")},t.prototype.instant=function(){n("Clock.instant")},t.prototype.zone=function(){n("Clock.zone")},t.prototype.withZone=function(){n("Clock.withZone")},t}(),ve=function(n){function o(t){Ae(this,o),y(t,"zone");var e=Ne(this,n.call(this));return e._zone=t,e}return De(o,n),o.prototype.zone=function(){return this._zone},o.prototype.millis=function(){return(new Date).getTime()},o.prototype.instant=function(){return me.ofEpochMilli(this.millis())},o.prototype.equals=function(t){return t instanceof o&&this._zone.equals(t._zone)},o.prototype.withZone=function(t){return t.equals(this._zone)?this:new o(t)},o.prototype.toString=function(){return"SystemClock["+this._zone.toString()+"]"},o}(we),Te=function(o){function r(t,e){Ae(this,r);var n=Ne(this,o.call(this));return n._instant=t,n._zoneId=e,n}return De(r,o),r.prototype.instant=function(){return this._instant},r.prototype.millis=function(){return this._instant.toEpochMilli()},r.prototype.zone=function(){return this._zoneId},r.prototype.toString=function(){return"FixedClock[]"},r.prototype.equals=function(t){return t instanceof r&&(this._instant.equals(t._instant)&&this._zoneId.equals(t._zoneId))},r.prototype.withZone=function(t){return t.equals(this._zoneId)?this:new r(this._instant,t)},r}(we),ge=function(o){function r(t,e){Ae(this,r);var n=Ne(this,o.call(this));return n._baseClock=t,n._offset=e,n}return De(r,o),r.prototype.zone=function(){return this._baseClock.zone()},r.prototype.withZone=function(t){return t.equals(this._baseClock.zone())?this:new r(this._baseClock.withZone(t),this._offset)},r.prototype.millis=function(){return this._baseClock.millis()+this._offset.toMillis()},r.prototype.instant=function(){return this._baseClock.instant().plus(this._offset)},r.prototype.equals=function(t){return t instanceof r&&(this._baseClock.equals(t._baseClock)&&this._offset.equals(t._offset))},r.prototype.toString=function(){return"OffsetClock["+this._baseClock+","+this._offset+"]"},r}(we);var Re=function(){function o(t,e,n){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),y(t,"transition"),y(e,"offsetBefore"),y(n,"offsetAfter"),e.equals(n))throw new c("Offsets must not be equal");if(0!==t.nano())throw new c("Nano-of-second must be zero");this._transition=t instanceof ye?t:ye.ofEpochSecond(t,0,e),this._offsetBefore=e,this._offsetAfter=n}return o.of=function(t,e,n){return new o(t,e,n)},o.prototype.instant=function(){return this._transition.toInstant(this._offsetBefore)},o.prototype.toEpochSecond=function(){return this._transition.toEpochSecond(this._offsetBefore)},o.prototype.dateTimeBefore=function(){return this._transition},o.prototype.dateTimeAfter=function(){return this._transition.plusSeconds(this.durationSeconds())},o.prototype.offsetBefore=function(){return this._offsetBefore},o.prototype.offsetAfter=function(){return this._offsetAfter},o.prototype.duration=function(){return _.ofSeconds(this.durationSeconds())},o.prototype.durationSeconds=function(){return this._offsetAfter.totalSeconds()-this._offsetBefore.totalSeconds()},o.prototype.isGap=function(){return this._offsetAfter.totalSeconds()>this._offsetBefore.totalSeconds()},o.prototype.isOverlap=function(){return this._offsetAfter.totalSeconds()<this._offsetBefore.totalSeconds()},o.prototype.isValidOffset=function(t){return!this.isGap()&&(this._offsetBefore.equals(t)||this._offsetAfter.equals(t))},o.prototype.validOffsets=function(){return this.isGap()?[]:[this._offsetBefore,this._offsetAfter]},o.prototype.compareTo=function(t){return this.instant().compareTo(t.instant())},o.prototype.equals=function(t){if(t===this)return!0;if(t instanceof o){var e=t;return this._transition.equals(e._transition)&&this._offsetBefore.equals(e.offsetBefore())&&this._offsetAfter.equals(e.offsetAfter())}return!1},o.prototype.hashCode=function(){return this._transition.hashCode()^this._offsetBefore.hashCode()^this._offsetAfter.hashCode()>>>16},o.prototype.toString=function(){return"Transition["+(this.isGap()?"Gap":"Overlap")+" at "+this._transition.toString()+this._offsetBefore.toString()+" to "+this._offsetAfter+"]"},o}();var Me=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.isFixedOffset=function(){return!1},e.prototype.offsetOfInstant=function(t){var e=new Date(t.toEpochMilli()).getTimezoneOffset();return Q.ofTotalMinutes(-1*e)},e.prototype.offsetOfEpochMilli=function(t){var e=new Date(t).getTimezoneOffset();return Q.ofTotalMinutes(-1*e)},e.prototype.offsetOfLocalDateTime=function(t){var e=1e3*t.toEpochSecond(Q.UTC),n=new Date(e).getTimezoneOffset(),o=new Date(e+6e4*n).getTimezoneOffset();return Q.ofTotalMinutes(-1*o)},e.prototype.validOffsets=function(t){return[this.offsetOfLocalDateTime(t)]},e.prototype.transition=function(){return null},e.prototype.standardOffset=function(t){return this.offsetOfInstant(t)},e.prototype.daylightSavings=function(){this._throwNotSupported()},e.prototype.isDaylightSavings=function(){this._throwNotSupported()},e.prototype.isValidOffset=function(t,e){return this.offsetOfLocalDateTime(t).equals(e)},e.prototype.nextTransition=function(){this._throwNotSupported()},e.prototype.previousTransition=function(){this._throwNotSupported()},e.prototype.transitions=function(){this._throwNotSupported()},e.prototype.transitionRules=function(){this._throwNotSupported()},e.prototype._throwNotSupported=function(){throw new T("not supported operation")},e.prototype.equals=function(t){return this===t||t instanceof e},e.prototype.toString=function(){return"SYSTEM"},e}(K);var Ie=function(e){function n(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.call(this));return t._rules=new Me,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,e),n.prototype.rules=function(){return this._rules},n.prototype.equals=function(t){return this===t},n.prototype.id=function(){return"SYSTEM"},n}(Z);var be=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.systemDefault=function(){return Ce},t.getAvailableZoneIds=function(){return Pt.getAvailableZoneIds()},t.of=function(t){if(y(t,"zoneId"),"Z"===t)return Q.UTC;if(1===t.length)throw new T("Invalid zone: "+t);if(q.startsWith(t,"+")||q.startsWith(t,"-"))return Q.of(t);if("UTC"===t||"GMT"===t||"GMT0"===t||"UT"===t)return new Ut(t,Q.UTC.rules());if(q.startsWith(t,"UTC+")||q.startsWith(t,"GMT+")||q.startsWith(t,"UTC-")||q.startsWith(t,"GMT-")){var e=Q.of(t.substring(3));return 0===e.totalSeconds()?new Ut(t.substring(0,3),e.rules()):new Ut(t.substring(0,3)+e.id(),e.rules())}if(q.startsWith(t,"UT+")||q.startsWith(t,"UT-")){var n=Q.of(t.substring(2));return 0===n.totalSeconds()?new Ut("UT",n.rules()):new Ut("UT"+n.id(),n.rules())}return"SYSTEM"===t?Z.systemDefault():Ut.ofId(t)},t.ofOffset=function(t,e){if(y(t,"prefix"),y(e,"offset"),0===t.length)return e;if("GMT"===t||"UTC"===t||"UT"===t)return 0===e.totalSeconds()?new Ut(t,e.rules()):new Ut(t+e.id(),e.rules());throw new c("Invalid prefix, must be GMT, UTC or UT: "+t)},t.from=function(t){y(t,"temporal");var e=t.query(A.zone());if(null==e)throw new T("Unable to obtain ZoneId from TemporalAccessor: "+t+", type "+(null!=t.constructor?t.constructor.name:""));return e},t}(),Ce=null;var Ye=!1;Ye||(Ye=!0,O.MIN_VALUE=-999999,O.MAX_VALUE=999999,_.ZERO=new _(0,0),m.NANOS=new m("Nanos",_.ofNanos(1)),m.MICROS=new m("Micros",_.ofNanos(1e3)),m.MILLIS=new m("Millis",_.ofNanos(1e6)),m.SECONDS=new m("Seconds",_.ofSeconds(1)),m.MINUTES=new m("Minutes",_.ofSeconds(60)),m.HOURS=new m("Hours",_.ofSeconds(3600)),m.HALF_DAYS=new m("HalfDays",_.ofSeconds(43200)),m.DAYS=new m("Days",_.ofSeconds(86400)),m.WEEKS=new m("Weeks",_.ofSeconds(604800)),m.MONTHS=new m("Months",_.ofSeconds(2629746)),m.YEARS=new m("Years",_.ofSeconds(31556952)),m.DECADES=new m("Decades",_.ofSeconds(315569520)),m.CENTURIES=new m("Centuries",_.ofSeconds(3155695200)),m.MILLENNIA=new m("Millennia",_.ofSeconds(31556952e3)),m.ERAS=new m("Eras",_.ofSeconds(31556952*(O.MAX_VALUE+1))),m.FOREVER=new m("Forever",_.ofSeconds(g.MAX_SAFE_INTEGER,999999999)),R.NANO_OF_SECOND=new R("NanoOfSecond",m.NANOS,m.SECONDS,D.of(0,999999999)),R.NANO_OF_DAY=new R("NanoOfDay",m.NANOS,m.DAYS,D.of(0,864e11-1)),R.MICRO_OF_SECOND=new R("MicroOfSecond",m.MICROS,m.SECONDS,D.of(0,999999)),R.MICRO_OF_DAY=new R("MicroOfDay",m.MICROS,m.DAYS,D.of(0,864e8-1)),R.MILLI_OF_SECOND=new R("MilliOfSecond",m.MILLIS,m.SECONDS,D.of(0,999)),R.MILLI_OF_DAY=new R("MilliOfDay",m.MILLIS,m.DAYS,D.of(0,864e5-1)),R.SECOND_OF_MINUTE=new R("SecondOfMinute",m.SECONDS,m.MINUTES,D.of(0,59)),R.SECOND_OF_DAY=new R("SecondOfDay",m.SECONDS,m.DAYS,D.of(0,86399)),R.MINUTE_OF_HOUR=new R("MinuteOfHour",m.MINUTES,m.HOURS,D.of(0,59)),R.MINUTE_OF_DAY=new R("MinuteOfDay",m.MINUTES,m.DAYS,D.of(0,1439)),R.HOUR_OF_AMPM=new R("HourOfAmPm",m.HOURS,m.HALF_DAYS,D.of(0,11)),R.CLOCK_HOUR_OF_AMPM=new R("ClockHourOfAmPm",m.HOURS,m.HALF_DAYS,D.of(1,12)),R.HOUR_OF_DAY=new R("HourOfDay",m.HOURS,m.DAYS,D.of(0,23)),R.CLOCK_HOUR_OF_DAY=new R("ClockHourOfDay",m.HOURS,m.DAYS,D.of(1,24)),R.AMPM_OF_DAY=new R("AmPmOfDay",m.HALF_DAYS,m.DAYS,D.of(0,1)),R.DAY_OF_WEEK=new R("DayOfWeek",m.DAYS,m.WEEKS,D.of(1,7)),R.ALIGNED_DAY_OF_WEEK_IN_MONTH=new R("AlignedDayOfWeekInMonth",m.DAYS,m.WEEKS,D.of(1,7)),R.ALIGNED_DAY_OF_WEEK_IN_YEAR=new R("AlignedDayOfWeekInYear",m.DAYS,m.WEEKS,D.of(1,7)),R.DAY_OF_MONTH=new R("DayOfMonth",m.DAYS,m.MONTHS,D.of(1,28,31),"day"),R.DAY_OF_YEAR=new R("DayOfYear",m.DAYS,m.YEARS,D.of(1,365,366)),R.EPOCH_DAY=new R("EpochDay",m.DAYS,m.FOREVER,D.of(Math.floor(365.25*O.MIN_VALUE),Math.floor(365.25*O.MAX_VALUE))),R.ALIGNED_WEEK_OF_MONTH=new R("AlignedWeekOfMonth",m.WEEKS,m.MONTHS,D.of(1,4,5)),R.ALIGNED_WEEK_OF_YEAR=new R("AlignedWeekOfYear",m.WEEKS,m.YEARS,D.of(1,53)),R.MONTH_OF_YEAR=new R("MonthOfYear",m.MONTHS,m.YEARS,D.of(1,12),"month"),R.PROLEPTIC_MONTH=new R("ProlepticMonth",m.MONTHS,m.FOREVER,D.of(12*O.MIN_VALUE,12*O.MAX_VALUE+11)),R.YEAR_OF_ERA=new R("YearOfEra",m.YEARS,m.FOREVER,D.of(1,O.MAX_VALUE,O.MAX_VALUE+1)),R.YEAR=new R("Year",m.YEARS,m.FOREVER,D.of(O.MIN_VALUE,O.MAX_VALUE),"year"),R.ERA=new R("Era",m.ERAS,m.FOREVER,D.of(0,1)),R.INSTANT_SECONDS=new R("InstantSeconds",m.SECONDS,m.FOREVER,D.of(a,r)),R.OFFSET_SECONDS=new R("OffsetSeconds",m.SECONDS,m.FOREVER,D.of(-64800,64800)),function(){Ee.HOURS=[];for(var t=0;t<24;t++)Ee.of(t,0,0,0);Ee.MIN=Ee.HOURS[0],Ee.MAX=new Ee(23,59,59,999999999),Ee.MIDNIGHT=Ee.HOURS[0],Ee.NOON=Ee.HOURS[12],Ee.FROM=Y("LocalTime.FROM",function(t){return Ee.from(t)})}(),dt=new ft,yt=new ct,Ot=new ht,Et=new lt,St=new _t("WeekBasedYears",_.ofSeconds(31556952)),mt=new _t("QuarterYears",_.ofSeconds(7889238)),at.DAY_OF_QUARTER=dt,at.QUARTER_OF_YEAR=yt,at.WEEK_OF_WEEK_BASED_YEAR=Ot,at.WEEK_BASED_YEAR=Et,at.WEEK_BASED_YEARS=St,at.QUARTER_YEARS=mt,_e.prototype.isoWeekOfWeekyear=function(){return this.get(at.WEEK_OF_WEEK_BASED_YEAR)},_e.prototype.isoWeekyear=function(){return this.get(at.WEEK_BASED_YEAR)},A.ZONE_ID=Y("ZONE_ID",function(t){return t.query(A.ZONE_ID)}),A.CHRONO=Y("CHRONO",function(t){return t.query(A.CHRONO)}),A.PRECISION=Y("PRECISION",function(t){return t.query(A.PRECISION)}),A.OFFSET=Y("OFFSET",function(t){return t.isSupported(R.OFFSET_SECONDS)?Q.ofTotalSeconds(t.get(R.OFFSET_SECONDS)):null}),A.ZONE=Y("ZONE",function(t){var e=t.query(A.ZONE_ID);return null!=e?e:t.query(A.OFFSET)}),A.LOCAL_DATE=Y("LOCAL_DATE",function(t){return t.isSupported(R.EPOCH_DAY)?_e.ofEpochDay(t.getLong(R.EPOCH_DAY)):null}),A.LOCAL_TIME=Y("LOCAL_TIME",function(t){return t.isSupported(R.NANO_OF_DAY)?Ee.ofNanoOfDay(t.getLong(R.NANO_OF_DAY)):null}),F.MONDAY=new F(0,"MONDAY"),F.TUESDAY=new F(1,"TUESDAY"),F.WEDNESDAY=new F(2,"WEDNESDAY"),F.THURSDAY=new F(3,"THURSDAY"),F.FRIDAY=new F(4,"FRIDAY"),F.SATURDAY=new F(5,"SATURDAY"),F.SUNDAY=new F(6,"SUNDAY"),F.FROM=Y("DayOfWeek.FROM",function(t){return F.from(t)}),L=[F.MONDAY,F.TUESDAY,F.WEDNESDAY,F.THURSDAY,F.FRIDAY,F.SATURDAY,F.SUNDAY],me.MIN_SECONDS=-31619119219200,me.MAX_SECONDS=31494816403199,me.EPOCH=new me(0,0),me.MIN=me.ofEpochSecond(me.MIN_SECONDS,0),me.MAX=me.ofEpochSecond(me.MAX_SECONDS,999999999),me.FROM=Y("Instant.FROM",function(t){return me.from(t)}),_e.MIN=_e.of(O.MIN_VALUE,1,1),_e.MAX=_e.of(O.MAX_VALUE,12,31),_e.EPOCH_0=_e.ofEpochDay(0),_e.FROM=Y("LocalDate.FROM",function(t){return _e.from(t)}),ye.MIN=ye.of(_e.MIN,Ee.MIN),ye.MAX=ye.of(_e.MAX,Ee.MAX),ye.FROM=Y("LocalDateTime.FROM",function(t){return ye.from(t)}),te.MIN_VALUE=O.MIN_VALUE,te.MAX_VALUE=O.MAX_VALUE,ee=(new Bt).appendValue(R.YEAR,4,10,Dt.EXCEEDS_PAD).toFormatter(),te.FROM=Y("Year.FROM",function(t){return te.from(t)}),P.JANUARY=new P(1,"JANUARY"),P.FEBRUARY=new P(2,"FEBRUARY"),P.MARCH=new P(3,"MARCH"),P.APRIL=new P(4,"APRIL"),P.MAY=new P(5,"MAY"),P.JUNE=new P(6,"JUNE"),P.JULY=new P(7,"JULY"),P.AUGUST=new P(8,"AUGUST"),P.SEPTEMBER=new P(9,"SEPTEMBER"),P.OCTOBER=new P(10,"OCTOBER"),P.NOVEMBER=new P(11,"NOVEMBER"),P.DECEMBER=new P(12,"DECEMBER"),U=[P.JANUARY,P.FEBRUARY,P.MARCH,P.APRIL,P.MAY,P.JUNE,P.JULY,P.AUGUST,P.SEPTEMBER,P.OCTOBER,P.NOVEMBER,P.DECEMBER],$t=(new Bt).appendValue(R.YEAR,4,10,Dt.EXCEEDS_PAD).appendLiteral("-").appendValue(R.MONTH_OF_YEAR,2).toFormatter(),Qt.FROM=Y("YearMonth.FROM",function(t){return Qt.from(t)}),Jt=(new Bt).appendLiteral("--").appendValue(R.MONTH_OF_YEAR,2).appendLiteral("-").appendValue(R.DAY_OF_MONTH,2).toFormatter(),Xt.FROM=Y("MonthDay.FROM",function(t){return Xt.from(t)}),x.ofDays(0),Q.MAX_SECONDS=18*Ee.SECONDS_PER_HOUR,Q.UTC=Q.ofTotalSeconds(0),Q.MIN=Q.ofTotalSeconds(-Q.MAX_SECONDS),Q.MAX=Q.ofTotalSeconds(Q.MAX_SECONDS),he.FROM=Y("ZonedDateTime.FROM",function(t){return he.from(t)}),Ce=new Ie,Z.systemDefault=be.systemDefault,Z.getAvailableZoneIds=be.getAvailableZoneIds,Z.of=be.of,Z.ofOffset=be.ofOffset,Z.from=be.from,Q.from=be.from,Z.SYSTEM=Ce,Z.UTC=Q.ofTotalSeconds(0),fe.INSTANCE=new fe("IsoChronology"),Gt.ISO_LOCAL_DATE=(new Bt).appendValue(R.YEAR,4,10,Dt.EXCEEDS_PAD).appendLiteral("-").appendValue(R.MONTH_OF_YEAR,2).appendLiteral("-").appendValue(R.DAY_OF_MONTH,2).toFormatter(j.STRICT).withChronology(fe.INSTANCE),Gt.ISO_LOCAL_TIME=(new Bt).appendValue(R.HOUR_OF_DAY,2).appendLiteral(":").appendValue(R.MINUTE_OF_HOUR,2).optionalStart().appendLiteral(":").appendValue(R.SECOND_OF_MINUTE,2).optionalStart().appendFraction(R.NANO_OF_SECOND,0,9,!0).toFormatter(j.STRICT),Gt.ISO_LOCAL_DATE_TIME=(new Bt).parseCaseInsensitive().append(Gt.ISO_LOCAL_DATE).appendLiteral("T").append(Gt.ISO_LOCAL_TIME).toFormatter(j.STRICT).withChronology(fe.INSTANCE),Gt.ISO_INSTANT=(new Bt).parseCaseInsensitive().appendInstant().toFormatter(j.STRICT),Gt.ISO_OFFSET_DATE_TIME=(new Bt).parseCaseInsensitive().append(Gt.ISO_LOCAL_DATE_TIME).appendOffsetId().toFormatter(j.STRICT).withChronology(fe.INSTANCE),Gt.ISO_ZONED_DATE_TIME=(new Bt).append(Gt.ISO_OFFSET_DATE_TIME).optionalStart().appendLiteral("[").parseCaseSensitive().appendZoneId().appendLiteral("]").toFormatter(j.STRICT).withChronology(fe.INSTANCE),Gt.PARSED_EXCESS_DAYS=Y("PARSED_EXCESS_DAYS",function(t){return t instanceof $?t.excessDays:x.ZERO}),Gt.PARSED_LEAP_SECOND=Y("PARSED_LEAP_SECOND",function(t){return t instanceof $&&t.leapSecond}),It.BASE_DATE=_e.of(2e3,1,1),Bt.CompositePrinterParser=vt,Bt.PadPrinterParserDecorator=Yt,Bt.SettingsParser=Ft,Bt.CharLiteralPrinterParser=Lt,Bt.StringLiteralPrinterParser=Lt,Bt.CharLiteralPrinterParser=wt,Bt.NumberPrinterParser=Mt,Bt.ReducedPrinterParser=It,Bt.FractionPrinterParser=Tt,Bt.OffsetIdPrinterParser=Ct,Bt.ZoneIdPrinterParser=Ht);var Fe=function(){function o(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var n=void 0;if(t instanceof _e)e=null==e?Z.systemDefault():e,n=t.atStartOfDay(e);else if(t instanceof ye)e=null==e?Z.systemDefault():e,n=t.atZone(e);else{if(!(t instanceof he))throw new c("unsupported instance for convert operation:"+t);n=null==e?t:t.withZoneSameInstant(e)}this.instant=n.toInstant()}return o.prototype.toDate=function(){return new Date(this.instant.toEpochMilli())},o.prototype.toEpochMilli=function(){return this.instant.toEpochMilli()},o}();function Le(t,e){return new Fe(t,e)}function Pe(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var Ue=function(o){function r(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Z.systemDefault();!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var n=Pe(this,o.call(this));return n._zone=e,t instanceof Date?(n._epochMilli=t.getTime(),Pe(n)):"function"==typeof t.toDate&&t.toDate()instanceof Date?(n._epochMilli=t.toDate().getTime(),Pe(n)):(S(!1,"date must be either a javascript date or a moment"),n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,o),r.prototype.query=function(t){return y(t,"query"),t===A.localDate()?_e.ofInstant(me.ofEpochMilli(this._epochMilli),this._zone):t===A.localTime()?Ee.ofInstant(me.ofEpochMilli(this._epochMilli),this._zone):t===A.zone()?this._zone:o.prototype.query.call(this,t)},r.prototype.get=function(t){return this.getLong(t)},r.prototype.getLong=function(t){if(y(t,"field"),t instanceof R){switch(t){case R.NANO_OF_SECOND:return 1e6*g.floorMod(this._epochMilli,1e3);case R.INSTANT_SECONDS:return g.floorDiv(this._epochMilli,1e3)}throw new h("Unsupported field: "+t)}return t.getFrom(this)},r.prototype.isSupported=function(t){return t===R.INSTANT_SECONDS||t===R.NANO_OF_SECOND},r}(w);function Ve(t,e){return new Ue(t,e)}var He,xe,We={assert:o,DateTimeBuilder:$,DateTimeParseContext:et,DateTimePrintContext:ot,MathUtil:g,StringUtil:q,StringBuilder:Kt},ke={_:We,convert:Le,nativeJs:Ve,ArithmeticException:E,DateTimeException:T,DateTimeParseException:d,IllegalArgumentException:c,IllegalStateException:i,UnsupportedTemporalTypeException:h,NullPointerException:s,Clock:we,DayOfWeek:F,Duration:_,Instant:me,LocalDate:_e,LocalTime:Ee,LocalDateTime:ye,Month:P,MonthDay:Xt,Period:x,Year:te,YearConstants:O,YearMonth:Qt,ZonedDateTime:he,ZoneOffset:Q,ZoneId:Z,ZoneRegion:Ut,ZoneOffsetTransition:Re,ZoneRules:K,ZoneRulesProvider:Pt,ChronoLocalDate:B,ChronoLocalDateTime:de,ChronoZonedDateTime:ce,IsoChronology:fe,ChronoField:R,ChronoUnit:m,IsoFields:at,Temporal:v,TemporalAccessor:w,TemporalAdjuster:ne,TemporalAdjusters:se,TemporalAmount:p,TemporalField:N,TemporalQueries:A,TemporalQuery:C,TemporalUnit:f,ValueRange:D,DateTimeFormatter:Gt,DateTimeFormatterBuilder:Bt,DecimalStyle:Nt,ResolverStyle:j,SignStyle:Dt,TextStyle:At},je=(He=ke,xe=[],function(t){return~xe.indexOf(t)||(t(He),xe.push(t)),He});return ke.use=je,t._=We,t.use=je,t.convert=Le,t.nativeJs=Ve,t.ArithmeticException=E,t.DateTimeException=T,t.DateTimeParseException=d,t.IllegalArgumentException=c,t.IllegalStateException=i,t.UnsupportedTemporalTypeException=h,t.NullPointerException=s,t.Clock=we,t.DayOfWeek=F,t.Duration=_,t.Instant=me,t.LocalDate=_e,t.LocalTime=Ee,t.LocalDateTime=ye,t.Month=P,t.MonthDay=Xt,t.Period=x,t.Year=te,t.YearConstants=O,t.YearMonth=Qt,t.ZonedDateTime=he,t.ZoneOffset=Q,t.ZoneId=Z,t.ZoneRegion=Ut,t.ZoneOffsetTransition=Re,t.ZoneRules=K,t.ZoneRulesProvider=Pt,t.ChronoLocalDate=B,t.ChronoLocalDateTime=de,t.ChronoZonedDateTime=ce,t.IsoChronology=fe,t.ChronoField=R,t.ChronoUnit=m,t.IsoFields=at,t.Temporal=v,t.TemporalAccessor=w,t.TemporalAdjuster=ne,t.TemporalAdjusters=se,t.TemporalAmount=p,t.TemporalField=N,t.TemporalQueries=A,t.TemporalQuery=C,t.TemporalUnit=f,t.ValueRange=D,t.DateTimeFormatter=Gt,t.DateTimeFormatterBuilder=Bt,t.DecimalStyle=Nt,t.ResolverStyle=j,t.SignStyle=Dt,t.TextStyle=At,t}({});
diff --git a/server-core/src/main/java/io/onedev/server/web/behavior/AgentQueryBehavior.java b/server-core/src/main/java/io/onedev/server/web/behavior/AgentQueryBehavior.java
index 05da9a9655..53b2c2775d 100644
--- a/server-core/src/main/java/io/onedev/server/web/behavior/AgentQueryBehavior.java
+++ b/server-core/src/main/java/io/onedev/server/web/behavior/AgentQueryBehavior.java
@@ -17,7 +17,7 @@ import io.onedev.server.model.Agent;
import io.onedev.server.search.entity.agent.AgentQuery;
import io.onedev.server.search.entity.agent.AgentQueryLexer;
import io.onedev.server.search.entity.agent.AgentQueryParser;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.behavior.inputassist.ANTLRAssistBehavior;
import io.onedev.server.web.behavior.inputassist.InputAssistBehavior;
import io.onedev.server.web.util.SuggestionUtils;
diff --git a/server-core/src/main/java/io/onedev/server/web/behavior/BuildMetricQueryBehavior.java b/server-core/src/main/java/io/onedev/server/web/behavior/BuildMetricQueryBehavior.java
index 1cffc0b88c..63ccc95f24 100644
--- a/server-core/src/main/java/io/onedev/server/web/behavior/BuildMetricQueryBehavior.java
+++ b/server-core/src/main/java/io/onedev/server/web/behavior/BuildMetricQueryBehavior.java
@@ -27,7 +27,7 @@ import io.onedev.server.model.support.BuildMetric;
import io.onedev.server.search.buildmetric.BuildMetricQuery;
import io.onedev.server.search.entity.EntityQuery;
import io.onedev.server.search.buildmetric.BuildMetricQueryParser;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.behavior.inputassist.ANTLRAssistBehavior;
import io.onedev.server.web.util.SuggestionUtils;
diff --git a/server-core/src/main/java/io/onedev/server/web/behavior/BuildQueryBehavior.java b/server-core/src/main/java/io/onedev/server/web/behavior/BuildQueryBehavior.java
index 2d7e4f5bb6..0da9145d23 100644
--- a/server-core/src/main/java/io/onedev/server/web/behavior/BuildQueryBehavior.java
+++ b/server-core/src/main/java/io/onedev/server/web/behavior/BuildQueryBehavior.java
@@ -18,7 +18,7 @@ import io.onedev.server.model.Project;
import io.onedev.server.search.entity.build.BuildQuery;
import io.onedev.server.search.entity.build.BuildQueryLexer;
import io.onedev.server.search.entity.build.BuildQueryParser;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.behavior.inputassist.ANTLRAssistBehavior;
import io.onedev.server.web.behavior.inputassist.InputAssistBehavior;
import io.onedev.server.web.util.SuggestionUtils;
diff --git a/server-core/src/main/java/io/onedev/server/web/behavior/CodeCommentQueryBehavior.java b/server-core/src/main/java/io/onedev/server/web/behavior/CodeCommentQueryBehavior.java
index 79f5658f14..bb8c773f9f 100644
--- a/server-core/src/main/java/io/onedev/server/web/behavior/CodeCommentQueryBehavior.java
+++ b/server-core/src/main/java/io/onedev/server/web/behavior/CodeCommentQueryBehavior.java
@@ -15,7 +15,7 @@ import io.onedev.server.model.Project;
import io.onedev.server.search.entity.codecomment.CodeCommentQuery;
import io.onedev.server.search.entity.codecomment.CodeCommentQueryParser;
import io.onedev.server.search.entity.project.ProjectQuery;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.behavior.inputassist.ANTLRAssistBehavior;
import io.onedev.server.web.util.SuggestionUtils;
import org.apache.commons.lang3.StringUtils;
diff --git a/server-core/src/main/java/io/onedev/server/web/behavior/IssueQueryBehavior.java b/server-core/src/main/java/io/onedev/server/web/behavior/IssueQueryBehavior.java
index 6df9d89662..d151b125bd 100644
--- a/server-core/src/main/java/io/onedev/server/web/behavior/IssueQueryBehavior.java
+++ b/server-core/src/main/java/io/onedev/server/web/behavior/IssueQueryBehavior.java
@@ -26,7 +26,7 @@ import io.onedev.server.search.entity.issue.IssueQueryParseOption;
import io.onedev.server.search.entity.issue.IssueQueryParser;
import io.onedev.server.search.entity.project.ProjectQuery;
import io.onedev.server.util.ComponentContext;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.behavior.inputassist.ANTLRAssistBehavior;
import io.onedev.server.web.behavior.inputassist.InputAssistBehavior;
import io.onedev.server.web.util.SuggestionUtils;
diff --git a/server-core/src/main/java/io/onedev/server/web/behavior/PackQueryBehavior.java b/server-core/src/main/java/io/onedev/server/web/behavior/PackQueryBehavior.java
index 7074699f26..6ea3ec6c66 100644
--- a/server-core/src/main/java/io/onedev/server/web/behavior/PackQueryBehavior.java
+++ b/server-core/src/main/java/io/onedev/server/web/behavior/PackQueryBehavior.java
@@ -16,7 +16,7 @@ import io.onedev.server.model.Project;
import io.onedev.server.search.entity.pack.PackQuery;
import io.onedev.server.search.entity.pack.PackQueryLexer;
import io.onedev.server.search.entity.pack.PackQueryParser;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.behavior.inputassist.ANTLRAssistBehavior;
import io.onedev.server.web.behavior.inputassist.InputAssistBehavior;
import io.onedev.server.web.util.SuggestionUtils;
diff --git a/server-core/src/main/java/io/onedev/server/web/behavior/ProjectQueryBehavior.java b/server-core/src/main/java/io/onedev/server/web/behavior/ProjectQueryBehavior.java
index 631755fe28..e2bc6d608b 100644
--- a/server-core/src/main/java/io/onedev/server/web/behavior/ProjectQueryBehavior.java
+++ b/server-core/src/main/java/io/onedev/server/web/behavior/ProjectQueryBehavior.java
@@ -20,7 +20,7 @@ import io.onedev.server.search.entity.project.ProjectQueryLexer;
import io.onedev.server.search.entity.project.ProjectQueryParser;
import io.onedev.server.security.SecurityUtils;
import io.onedev.server.security.permission.AccessProject;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.util.facade.ProjectCache;
import io.onedev.server.web.behavior.inputassist.ANTLRAssistBehavior;
import io.onedev.server.web.util.SuggestionUtils;
diff --git a/server-core/src/main/java/io/onedev/server/web/behavior/PullRequestQueryBehavior.java b/server-core/src/main/java/io/onedev/server/web/behavior/PullRequestQueryBehavior.java
index 18f05f81eb..7719110ef1 100644
--- a/server-core/src/main/java/io/onedev/server/web/behavior/PullRequestQueryBehavior.java
+++ b/server-core/src/main/java/io/onedev/server/web/behavior/PullRequestQueryBehavior.java
@@ -15,7 +15,7 @@ import io.onedev.server.model.PullRequest;
import io.onedev.server.model.support.pullrequest.MergeStrategy;
import io.onedev.server.search.entity.project.ProjectQuery;
import io.onedev.server.search.entity.pullrequest.PullRequestQueryParser;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.behavior.inputassist.ANTLRAssistBehavior;
import io.onedev.server.web.behavior.inputassist.InputAssistBehavior;
import io.onedev.server.web.util.SuggestionUtils;
diff --git a/server-core/src/main/java/io/onedev/server/web/behavior/blamemessage/BlameMessageBehavior.java b/server-core/src/main/java/io/onedev/server/web/behavior/blamemessage/BlameMessageBehavior.java
index 460fb2c07f..feb634e57b 100644
--- a/server-core/src/main/java/io/onedev/server/web/behavior/blamemessage/BlameMessageBehavior.java
+++ b/server-core/src/main/java/io/onedev/server/web/behavior/blamemessage/BlameMessageBehavior.java
@@ -11,7 +11,7 @@ import org.eclipse.jgit.revwalk.RevCommit;
import org.unbescape.javascript.JavaScriptEscape;
import io.onedev.server.model.Project;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.behavior.AbstractPostAjaxBehavior;
public abstract class BlameMessageBehavior extends AbstractPostAjaxBehavior {
diff --git a/server-core/src/main/java/io/onedev/server/web/component/build/list/BuildListPanel.java b/server-core/src/main/java/io/onedev/server/web/component/build/list/BuildListPanel.java
index 1df0baa905..e3c858df0c 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/build/list/BuildListPanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/component/build/list/BuildListPanel.java
@@ -20,7 +20,7 @@ import io.onedev.server.security.SecurityUtils;
import io.onedev.server.security.permission.JobPermission;
import io.onedev.server.security.permission.RunJob;
import io.onedev.server.util.Input;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.WebConstants;
import io.onedev.server.web.WebSession;
import io.onedev.server.web.behavior.BuildQueryBehavior;
diff --git a/server-core/src/main/java/io/onedev/server/web/component/build/side/BuildSidePanel.java b/server-core/src/main/java/io/onedev/server/web/component/build/side/BuildSidePanel.java
index f2172b71c8..2e9a02ab8c 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/build/side/BuildSidePanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/component/build/side/BuildSidePanel.java
@@ -13,7 +13,7 @@ import io.onedev.server.model.BuildLabel;
import io.onedev.server.model.Project;
import io.onedev.server.model.PullRequest;
import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.util.Input;
import io.onedev.server.util.criteria.Criteria;
import io.onedev.server.web.asset.emoji.Emojis;
diff --git a/server-core/src/main/java/io/onedev/server/web/component/codecomment/CodeCommentListPanel.java b/server-core/src/main/java/io/onedev/server/web/component/codecomment/CodeCommentListPanel.java
index 9afcdc48ef..9ddbc765c2 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/codecomment/CodeCommentListPanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/component/codecomment/CodeCommentListPanel.java
@@ -11,7 +11,7 @@ import io.onedev.server.search.entity.EntitySort;
import io.onedev.server.search.entity.codecomment.CodeCommentQuery;
import io.onedev.server.search.entity.codecomment.UnresolvedCriteria;
import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.util.Provider;
import io.onedev.server.util.UrlUtils;
import io.onedev.server.web.UrlManager;
diff --git a/server-core/src/main/java/io/onedev/server/web/component/codecomment/CodeCommentPanel.java b/server-core/src/main/java/io/onedev/server/web/component/codecomment/CodeCommentPanel.java
index e663a66abd..162a7caabb 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/codecomment/CodeCommentPanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/component/codecomment/CodeCommentPanel.java
@@ -11,7 +11,7 @@ import io.onedev.server.model.*;
import io.onedev.server.model.support.CompareContext;
import io.onedev.server.security.SecurityUtils;
import io.onedev.server.util.UrlUtils;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.UrlManager;
import io.onedev.server.web.ajaxlistener.ConfirmClickListener;
import io.onedev.server.web.ajaxlistener.ConfirmLeaveListener;
diff --git a/server-core/src/main/java/io/onedev/server/web/component/contributorpanel/ContributorPanel.java b/server-core/src/main/java/io/onedev/server/web/component/contributorpanel/ContributorPanel.java
index 2c40589ad8..94dd942313 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/contributorpanel/ContributorPanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/component/contributorpanel/ContributorPanel.java
@@ -6,7 +6,7 @@ import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.panel.Panel;
import org.eclipse.jgit.lib.PersonIdent;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.component.user.ident.Mode;
import io.onedev.server.web.component.user.ident.PersonIdentPanel;
diff --git a/server-core/src/main/java/io/onedev/server/web/component/diff/blob/text/BlobTextDiffPanel.java b/server-core/src/main/java/io/onedev/server/web/component/diff/blob/text/BlobTextDiffPanel.java
index 34686e9af4..9fe3ad8e99 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/diff/blob/text/BlobTextDiffPanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/component/diff/blob/text/BlobTextDiffPanel.java
@@ -56,7 +56,7 @@ import io.onedev.server.model.Project;
import io.onedev.server.model.PullRequest;
import io.onedev.server.search.code.hit.QueryHit;
import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.util.Pair;
import io.onedev.server.util.diff.DiffBlock;
import io.onedev.server.util.diff.DiffMatchPatch.Operation;
diff --git a/server-core/src/main/java/io/onedev/server/web/component/issue/activities/activity/IssueChangePanel.java b/server-core/src/main/java/io/onedev/server/web/component/issue/activities/activity/IssueChangePanel.java
index a7fdc13290..c4d9ac92a0 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/issue/activities/activity/IssueChangePanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/component/issue/activities/activity/IssueChangePanel.java
@@ -9,7 +9,7 @@ import org.apache.wicket.model.IModel;
import io.onedev.server.model.IssueChange;
import io.onedev.server.notification.ActivityDetail;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
@SuppressWarnings("serial")
class IssueChangePanel extends GenericPanel<IssueChange> {
diff --git a/server-core/src/main/java/io/onedev/server/web/component/issue/activities/activity/IssueCommentedPanel.java b/server-core/src/main/java/io/onedev/server/web/component/issue/activities/activity/IssueCommentedPanel.java
index aed0c09c79..c9c02b9cbb 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/issue/activities/activity/IssueCommentedPanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/component/issue/activities/activity/IssueCommentedPanel.java
@@ -5,13 +5,11 @@ import io.onedev.server.OneDev;
import io.onedev.server.attachment.AttachmentSupport;
import io.onedev.server.attachment.ProjectAttachmentSupport;
import io.onedev.server.entitymanager.IssueCommentManager;
-import io.onedev.server.entitymanager.UserManager;
import io.onedev.server.model.IssueComment;
import io.onedev.server.model.Project;
import io.onedev.server.model.User;
import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.util.date.DateUtils;
-import io.onedev.server.util.facade.UserCache;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.component.comment.CommentPanel;
import io.onedev.server.web.component.markdown.ContentVersionSupport;
import io.onedev.server.web.page.base.BasePage;
@@ -25,7 +23,6 @@ import org.apache.wicket.markup.html.panel.GenericPanel;
import org.apache.wicket.model.IModel;
import org.jetbrains.annotations.Nullable;
-import java.util.ArrayList;
import java.util.List;
@SuppressWarnings("serial")
diff --git a/server-core/src/main/java/io/onedev/server/web/component/issue/activities/activity/IssueOpenedPanel.java b/server-core/src/main/java/io/onedev/server/web/component/issue/activities/activity/IssueOpenedPanel.java
index 2277c553d8..805de56713 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/issue/activities/activity/IssueOpenedPanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/component/issue/activities/activity/IssueOpenedPanel.java
@@ -8,7 +8,7 @@ import io.onedev.server.model.Issue;
import io.onedev.server.model.Project;
import io.onedev.server.model.User;
import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.component.comment.CommentPanel;
import io.onedev.server.web.component.markdown.ContentVersionSupport;
import io.onedev.server.web.page.base.BasePage;
diff --git a/server-core/src/main/java/io/onedev/server/web/component/issue/activities/activity/IssueWorkPanel.java b/server-core/src/main/java/io/onedev/server/web/component/issue/activities/activity/IssueWorkPanel.java
index a94d7ff4d0..10bda55b8a 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/issue/activities/activity/IssueWorkPanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/component/issue/activities/activity/IssueWorkPanel.java
@@ -5,7 +5,7 @@ import io.onedev.server.entitymanager.IssueWorkManager;
import io.onedev.server.entitymanager.SettingManager;
import io.onedev.server.model.IssueWork;
import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.ajaxlistener.ConfirmClickListener;
import io.onedev.server.web.component.markdown.MarkdownViewer;
import io.onedev.server.web.editable.BeanContext;
@@ -26,7 +26,7 @@ import org.apache.wicket.markup.html.panel.GenericPanel;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;
-import static io.onedev.server.util.date.DateUtils.formatDateTime;
+import static io.onedev.server.util.DateUtils.formatDateTime;
@SuppressWarnings("serial")
class IssueWorkPanel extends GenericPanel<IssueWork> {
diff --git a/server-core/src/main/java/io/onedev/server/web/component/issue/list/IssueListPanel.java b/server-core/src/main/java/io/onedev/server/web/component/issue/list/IssueListPanel.java
index d6a5278af0..2eae75377a 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/issue/list/IssueListPanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/component/issue/list/IssueListPanel.java
@@ -25,7 +25,7 @@ import io.onedev.server.timetracking.TimeTrackingManager;
import io.onedev.server.util.Input;
import io.onedev.server.util.LinkSide;
import io.onedev.server.util.ProjectScope;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.util.facade.ProjectCache;
import io.onedev.server.util.watch.WatchStatus;
import io.onedev.server.web.WebConstants;
diff --git a/server-core/src/main/java/io/onedev/server/web/component/issue/progress/TimingDetailPanel.java b/server-core/src/main/java/io/onedev/server/web/component/issue/progress/TimingDetailPanel.java
index f46cea0241..f06d06c1e8 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/issue/progress/TimingDetailPanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/component/issue/progress/TimingDetailPanel.java
@@ -11,7 +11,7 @@ import io.onedev.server.model.IssueWork;
import io.onedev.server.model.Stopwatch;
import io.onedev.server.security.SecurityUtils;
import io.onedev.server.timetracking.TimeTrackingManager;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.component.beaneditmodal.BeanEditModalPanel;
import io.onedev.server.web.page.base.BasePage;
import io.onedev.server.web.util.editbean.IssueWorkBean;
diff --git a/server-core/src/main/java/io/onedev/server/web/component/iteration/IterationDateLabel.java b/server-core/src/main/java/io/onedev/server/web/component/iteration/IterationDateLabel.java
index 6b90980196..ba827543c4 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/iteration/IterationDateLabel.java
+++ b/server-core/src/main/java/io/onedev/server/web/component/iteration/IterationDateLabel.java
@@ -8,7 +8,7 @@ import org.apache.wicket.model.IModel;
import org.apache.wicket.model.LoadableDetachableModel;
import io.onedev.server.model.Iteration;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.component.svg.SpriteImage;
@SuppressWarnings("serial")
diff --git a/server-core/src/main/java/io/onedev/server/web/component/iteration/burndown/IterationBurndownPanel.java b/server-core/src/main/java/io/onedev/server/web/component/iteration/burndown/IterationBurndownPanel.java
index 743d0b8eb0..f0bad4abd3 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/iteration/burndown/IterationBurndownPanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/component/iteration/burndown/IterationBurndownPanel.java
@@ -23,7 +23,7 @@ import javax.annotation.Nullable;
import java.time.LocalDate;
import java.util.*;
-import static io.onedev.server.util.date.DateUtils.toLocalDate;
+import static io.onedev.server.util.DateUtils.toLocalDate;
import static io.onedev.server.web.component.iteration.burndown.BurndownIndicators.*;
public class IterationBurndownPanel extends GenericPanel<Iteration> {
diff --git a/server-core/src/main/java/io/onedev/server/web/component/markdown/MarkdownViewer.java b/server-core/src/main/java/io/onedev/server/web/component/markdown/MarkdownViewer.java
index b0170cf685..ef6a24d42e 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/markdown/MarkdownViewer.java
+++ b/server-core/src/main/java/io/onedev/server/web/component/markdown/MarkdownViewer.java
@@ -13,7 +13,7 @@ import io.onedev.server.model.Project;
import io.onedev.server.model.User;
import io.onedev.server.security.SecurityUtils;
import io.onedev.server.util.ColorUtils;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.asset.emoji.Emojis;
import io.onedev.server.web.asset.lozad.LozadResourceReference;
import io.onedev.server.web.avatar.AvatarManager;
diff --git a/server-core/src/main/java/io/onedev/server/web/component/pack/list/PackListPanel.java b/server-core/src/main/java/io/onedev/server/web/component/pack/list/PackListPanel.java
index fb91286f2f..8366a305b2 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/pack/list/PackListPanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/component/pack/list/PackListPanel.java
@@ -11,7 +11,7 @@ import io.onedev.server.search.entity.pack.PackQuery;
import io.onedev.server.search.entity.pack.PackQueryLexer;
import io.onedev.server.search.entity.pack.TypeCriteria;
import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.WebConstants;
import io.onedev.server.web.WebSession;
import io.onedev.server.web.behavior.PackQueryBehavior;
diff --git a/server-core/src/main/java/io/onedev/server/web/component/pack/side/PackSidePanel.java b/server-core/src/main/java/io/onedev/server/web/component/pack/side/PackSidePanel.java
index 63498e66af..3e88116c4f 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/pack/side/PackSidePanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/component/pack/side/PackSidePanel.java
@@ -15,7 +15,7 @@ import io.onedev.server.search.entity.issue.IssueQuery;
import io.onedev.server.search.entity.issue.IssueQueryLexer;
import io.onedev.server.search.entity.issue.IssueQueryParseOption;
import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.WebConstants;
import io.onedev.server.web.component.entity.labels.EntityLabelsPanel;
import io.onedev.server.web.component.pack.choice.PackChoiceProvider;
diff --git a/server-core/src/main/java/io/onedev/server/web/component/pullrequest/list/PullRequestListPanel.java b/server-core/src/main/java/io/onedev/server/web/component/pullrequest/list/PullRequestListPanel.java
index 15193931af..99eb0b5b16 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/pullrequest/list/PullRequestListPanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/component/pullrequest/list/PullRequestListPanel.java
@@ -18,7 +18,7 @@ import io.onedev.server.search.entity.EntitySort;
import io.onedev.server.search.entity.pullrequest.PullRequestQuery;
import io.onedev.server.security.SecurityUtils;
import io.onedev.server.security.permission.ReadCode;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.util.watch.WatchStatus;
import io.onedev.server.web.WebConstants;
import io.onedev.server.web.WebSession;
diff --git a/server-core/src/main/java/io/onedev/server/web/component/user/sshkey/SshKeyListPanel.java b/server-core/src/main/java/io/onedev/server/web/component/user/sshkey/SshKeyListPanel.java
index 732c36c80b..fee679a15e 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/user/sshkey/SshKeyListPanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/component/user/sshkey/SshKeyListPanel.java
@@ -3,7 +3,7 @@ package io.onedev.server.web.component.user.sshkey;
import io.onedev.server.OneDev;
import io.onedev.server.entitymanager.SshKeyManager;
import io.onedev.server.model.SshKey;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.ajaxlistener.ConfirmClickListener;
import io.onedev.server.web.component.datatable.DefaultDataTable;
import io.onedev.server.web.util.LoadableDetachableDataProvider;
diff --git a/server-core/src/main/java/io/onedev/server/web/editable/date/DateEditSupport.java b/server-core/src/main/java/io/onedev/server/web/editable/date/DateEditSupport.java
index 71e5e9131f..764f1498c6 100644
--- a/server-core/src/main/java/io/onedev/server/web/editable/date/DateEditSupport.java
+++ b/server-core/src/main/java/io/onedev/server/web/editable/date/DateEditSupport.java
@@ -7,7 +7,7 @@ import org.apache.wicket.Component;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.model.IModel;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.editable.EditSupport;
import io.onedev.server.web.editable.EmptyValueLabel;
import io.onedev.server.web.editable.PropertyContext;
diff --git a/server-core/src/main/java/io/onedev/server/web/page/admin/serverinformation/ServerInformationPage.java b/server-core/src/main/java/io/onedev/server/web/page/admin/serverinformation/ServerInformationPage.java
index 4d5cbf5c77..e1336fac28 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/admin/serverinformation/ServerInformationPage.java
+++ b/server-core/src/main/java/io/onedev/server/web/page/admin/serverinformation/ServerInformationPage.java
@@ -2,7 +2,7 @@ package io.onedev.server.web.page.admin.serverinformation;
import io.onedev.server.OneDev;
import io.onedev.server.cluster.ClusterManager;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.page.admin.ServerDetailPage;
import org.apache.wicket.markup.ComponentTag;
import org.apache.wicket.markup.html.basic.Label;
diff --git a/server-core/src/main/java/io/onedev/server/web/page/base/base.js b/server-core/src/main/java/io/onedev/server/web/page/base/base.js
index f40386b16d..7c040148b6 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/base/base.js
+++ b/server-core/src/main/java/io/onedev/server/web/page/base/base.js
@@ -29,50 +29,6 @@ if (!Element.prototype.scrollIntoViewIfNeeded) {
}
onedev.server = {
- day: {
- format: function(day) {
- return day.year + "-" + (day.monthOfYear + 1) + "-" + day.dayOfMonth;
- },
- compare: function(day1, day2) {
- if (day1.year < day2.year)
- return -1;
- else if (day1.year > day2.year)
- return 1;
- else if (day1.monthOfYear < day2.monthOfYear)
- return -1;
- else if (day1.monthOfYear > day2.monthOfYear)
- return 1;
- else
- return day1.dayOfMonth - day2.dayOfMonth;
- },
- fromDate: function(date) {
- return {
- year: date.getFullYear(),
- monthOfYear: date.getMonth(),
- dayOfMonth: date.getDate()
- }
- },
- toDate: function(day) {
- return new Date(day.year, day.monthOfYear, day.dayOfMonth, 0, 0, 0, 0);
- },
- fromValue: function(dayValue) {
- return {
- year: dayValue>>>16,
- monthOfYear: ((dayValue&0x0000ffff)>>>8),
- dayOfMonth: dayValue&0x000000ff
- }
- },
- toValue: function(day) {
- return (day.year<<16) | (day.monthOfYear<<8) | day.dayOfMonth;
- },
- plus(day, numberOfDays) {
- return onedev.server.day.fromDate(onedev.server.day.toDate({
- year: day.year,
- monthOfYear: day.monthOfYear,
- dayOfMonth: day.dayOfMonth+numberOfDays
- }));
- }
- },
form: {
/*
* This function can be called to mark enclosing form of specified element dirty. It should be
diff --git a/server-core/src/main/java/io/onedev/server/web/page/layout/LayoutPage.java b/server-core/src/main/java/io/onedev/server/web/page/layout/LayoutPage.java
index 7fc183e27f..178ce59c46 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/layout/LayoutPage.java
+++ b/server-core/src/main/java/io/onedev/server/web/page/layout/LayoutPage.java
@@ -15,7 +15,7 @@ import io.onedev.server.model.support.administration.BrandingSetting;
import io.onedev.server.persistence.dao.EntityCriteria;
import io.onedev.server.security.SecurityUtils;
import io.onedev.server.updatecheck.UpdateCheckManager;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.WebConstants;
import io.onedev.server.web.behavior.AbstractPostAjaxBehavior;
import io.onedev.server.web.behavior.ChangeObserver;
diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/blob/render/folder/LastCommitsResource.java b/server-core/src/main/java/io/onedev/server/web/page/project/blob/render/folder/LastCommitsResource.java
index 59f2b5cac0..ee6d9a803f 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/project/blob/render/folder/LastCommitsResource.java
+++ b/server-core/src/main/java/io/onedev/server/web/page/project/blob/render/folder/LastCommitsResource.java
@@ -10,7 +10,7 @@ import io.onedev.server.model.Project;
import io.onedev.server.model.User;
import io.onedev.server.persistence.dao.Dao;
import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.asset.emoji.Emojis;
import io.onedev.server.web.avatar.AvatarManager;
import io.onedev.server.web.page.project.commits.CommitDetailPage;
diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/blob/render/source/SourceViewPanel.java b/server-core/src/main/java/io/onedev/server/web/page/project/blob/render/source/SourceViewPanel.java
index a2c863cdc7..52b0d3ee87 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/project/blob/render/source/SourceViewPanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/page/project/blob/render/source/SourceViewPanel.java
@@ -27,7 +27,7 @@ import io.onedev.server.model.support.Mark;
import io.onedev.server.search.code.CodeSearchManager;
import io.onedev.server.search.code.hit.QueryHit;
import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.util.Similarities;
import io.onedev.server.util.diff.DiffUtils;
import io.onedev.server.util.patternset.PatternSet;
diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/artifacts/BuildArtifactsPage.java b/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/artifacts/BuildArtifactsPage.java
index baad88cdab..0366cf9ec1 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/artifacts/BuildArtifactsPage.java
+++ b/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/artifacts/BuildArtifactsPage.java
@@ -5,7 +5,7 @@ import io.onedev.server.OneDev;
import io.onedev.server.entitymanager.BuildManager;
import io.onedev.server.model.Build;
import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.util.artifact.ArtifactInfo;
import io.onedev.server.util.artifact.DirectoryInfo;
import io.onedev.server.util.artifact.FileInfo;
diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestChangePanel.java b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestChangePanel.java
index 4d9553c68d..1cd3d5b3df 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestChangePanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestChangePanel.java
@@ -11,7 +11,7 @@ import org.apache.wicket.model.IModel;
import io.onedev.server.model.PullRequest;
import io.onedev.server.model.PullRequestChange;
import io.onedev.server.notification.ActivityDetail;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.page.project.pullrequests.detail.activities.SinceChangesLink;
@SuppressWarnings("serial")
diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestCommentedPanel.java b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestCommentedPanel.java
index 6b3fafb729..4b44d05692 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestCommentedPanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestCommentedPanel.java
@@ -10,7 +10,7 @@ import io.onedev.server.model.PullRequest;
import io.onedev.server.model.PullRequestComment;
import io.onedev.server.model.User;
import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.component.comment.CommentPanel;
import io.onedev.server.web.component.markdown.ContentVersionSupport;
import io.onedev.server.web.page.base.BasePage;
diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestOpenedPanel.java b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestOpenedPanel.java
index abc15fa7d7..f2115650a5 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestOpenedPanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestOpenedPanel.java
@@ -8,7 +8,7 @@ import io.onedev.server.model.Project;
import io.onedev.server.model.PullRequest;
import io.onedev.server.model.User;
import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.component.comment.CommentPanel;
import io.onedev.server.web.component.markdown.ContentVersionSupport;
import io.onedev.server.web.page.base.BasePage;
diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestUpdatedPanel.java b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestUpdatedPanel.java
index afe0f9b5d5..25be1b393f 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestUpdatedPanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestUpdatedPanel.java
@@ -6,7 +6,7 @@ import io.onedev.server.git.GitUtils;
import io.onedev.server.model.Project;
import io.onedev.server.model.PullRequest;
import io.onedev.server.model.PullRequestUpdate;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.WebConstants;
import io.onedev.server.web.behavior.ChangeObserver;
import io.onedev.server.web.component.commit.message.CommitMessagePanel;
diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/setting/build/CacheManagementPage.java b/server-core/src/main/java/io/onedev/server/web/page/project/setting/build/CacheManagementPage.java
index bca6656156..503c61345e 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/project/setting/build/CacheManagementPage.java
+++ b/server-core/src/main/java/io/onedev/server/web/page/project/setting/build/CacheManagementPage.java
@@ -5,7 +5,7 @@ import io.onedev.server.entitymanager.JobCacheManager;
import io.onedev.server.entitymanager.ProjectManager;
import io.onedev.server.model.JobCache;
import io.onedev.server.persistence.dao.EntityCriteria;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.web.WebConstants;
import io.onedev.server.web.component.datatable.DefaultDataTable;
import io.onedev.server.web.editable.BeanContext;
diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/stats/code/CodeContribsPage.java b/server-core/src/main/java/io/onedev/server/web/page/project/stats/code/CodeContribsPage.java
index 206e0b7e90..e3e716d5dc 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/project/stats/code/CodeContribsPage.java
+++ b/server-core/src/main/java/io/onedev/server/web/page/project/stats/code/CodeContribsPage.java
@@ -1,8 +1,13 @@
package io.onedev.server.web.page.project.stats.code;
-import java.util.HashMap;
-import java.util.Map;
-
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import io.onedev.server.OneDev;
+import io.onedev.server.git.GitContribution;
+import io.onedev.server.security.SecurityUtils;
+import io.onedev.server.web.behavior.AbstractPostAjaxBehavior;
+import io.onedev.server.web.component.user.card.PersonCardPanel;
+import io.onedev.server.xodus.CommitInfoManager;
import org.apache.wicket.Component;
import org.apache.wicket.ajax.AbstractDefaultAjaxBehavior;
import org.apache.wicket.ajax.AjaxRequestTarget;
@@ -15,16 +20,8 @@ import org.apache.wicket.request.cycle.RequestCycle;
import org.apache.wicket.request.mapper.parameter.PageParameters;
import org.eclipse.jgit.lib.PersonIdent;
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.ObjectMapper;
-
-import io.onedev.server.OneDev;
-import io.onedev.server.git.GitContribution;
-import io.onedev.server.xodus.CommitInfoManager;
-import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.util.date.Day;
-import io.onedev.server.web.behavior.AbstractPostAjaxBehavior;
-import io.onedev.server.web.component.user.card.PersonCardPanel;
+import java.util.HashMap;
+import java.util.Map;
@SuppressWarnings("serial")
public class CodeContribsPage extends CodeStatsPage {
@@ -75,12 +72,12 @@ public class CodeContribsPage extends CodeStatsPage {
CommitInfoManager commitInfoManager = OneDev.getInstance(CommitInfoManager.class);
Map<Integer, Integer[]> data = new HashMap<>();
- Map<Day, GitContribution> overallContributions =
+ Map<Integer, GitContribution> overallContributions =
commitInfoManager.getOverallContributions(getProject().getId());
- for (Map.Entry<Day, GitContribution> entry: overallContributions.entrySet()) {
+ for (Map.Entry<Integer, GitContribution> entry: overallContributions.entrySet()) {
GitContribution contribution = entry.getValue();
Integer[] dataValue = new Integer[] {contribution.getCommits(), contribution.getAdditions(), contribution.getDeletions()};
- data.put(entry.getKey().getValue(), dataValue);
+ data.put(entry.getKey(), dataValue);
}
PageParameters params = TopContributorsResource.paramsOf(getProject());
diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/stats/code/CodeStatsResourceReference.java b/server-core/src/main/java/io/onedev/server/web/page/project/stats/code/CodeStatsResourceReference.java
index bfb8d7c5ce..a609ae2f2e 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/project/stats/code/CodeStatsResourceReference.java
+++ b/server-core/src/main/java/io/onedev/server/web/page/project/stats/code/CodeStatsResourceReference.java
@@ -1,17 +1,16 @@
package io.onedev.server.web.page.project.stats.code;
-import java.util.List;
-
+import io.onedev.server.web.asset.doneevents.DoneEventsResourceReference;
+import io.onedev.server.web.asset.echarts.EChartsResourceReference;
+import io.onedev.server.web.asset.hover.HoverResourceReference;
+import io.onedev.server.web.asset.jsjoda.JsJodaResourceReference;
+import io.onedev.server.web.page.base.BaseDependentResourceReference;
import org.apache.wicket.markup.head.CssHeaderItem;
import org.apache.wicket.markup.head.HeaderItem;
import org.apache.wicket.markup.head.JavaScriptHeaderItem;
import org.apache.wicket.request.resource.CssResourceReference;
-import io.onedev.server.web.asset.day.DayResourceReference;
-import io.onedev.server.web.asset.doneevents.DoneEventsResourceReference;
-import io.onedev.server.web.asset.echarts.EChartsResourceReference;
-import io.onedev.server.web.asset.hover.HoverResourceReference;
-import io.onedev.server.web.page.base.BaseDependentResourceReference;
+import java.util.List;
public class CodeStatsResourceReference extends BaseDependentResourceReference {
@@ -27,7 +26,7 @@ public class CodeStatsResourceReference extends BaseDependentResourceReference {
dependencies.add(JavaScriptHeaderItem.forReference(new EChartsResourceReference()));
dependencies.add(JavaScriptHeaderItem.forReference(new DoneEventsResourceReference()));
dependencies.add(JavaScriptHeaderItem.forReference(new HoverResourceReference()));
- dependencies.add(JavaScriptHeaderItem.forReference(new DayResourceReference()));
+ dependencies.add(JavaScriptHeaderItem.forReference(new JsJodaResourceReference()));
dependencies.add(CssHeaderItem.forReference(
new CssResourceReference(CodeStatsResourceReference.class, "code-stats.css")));
return dependencies;
diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/stats/code/SourceLinesPage.java b/server-core/src/main/java/io/onedev/server/web/page/project/stats/code/SourceLinesPage.java
index e9c535ffb4..33202b12e9 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/project/stats/code/SourceLinesPage.java
+++ b/server-core/src/main/java/io/onedev/server/web/page/project/stats/code/SourceLinesPage.java
@@ -1,20 +1,17 @@
package io.onedev.server.web.page.project.stats.code;
-import java.util.HashMap;
-import java.util.Map;
-
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import io.onedev.server.OneDev;
+import io.onedev.server.xodus.CommitInfoManager;
import org.apache.wicket.Component;
import org.apache.wicket.markup.head.IHeaderResponse;
import org.apache.wicket.markup.head.OnDomReadyHeaderItem;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.request.mapper.parameter.PageParameters;
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.ObjectMapper;
-
-import io.onedev.server.OneDev;
-import io.onedev.server.xodus.CommitInfoManager;
-import io.onedev.server.util.date.Day;
+import java.util.HashMap;
+import java.util.Map;
@SuppressWarnings("serial")
public class SourceLinesPage extends CodeStatsPage {
@@ -27,11 +24,11 @@ public class SourceLinesPage extends CodeStatsPage {
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
- Map<Day, Map<String, Integer>> lineIncrements = OneDev.getInstance(CommitInfoManager.class)
+ Map<Integer, Map<String, Integer>> lineIncrements = OneDev.getInstance(CommitInfoManager.class)
.getLineIncrements(getProject().getId());
Map<Integer, Map<String, Integer>> data = new HashMap<>();
- for (Map.Entry<Day, Map<String, Integer>> entry: lineIncrements.entrySet())
- data.put(entry.getKey().getValue(), entry.getValue());
+ for (Map.Entry<Integer, Map<String, Integer>> entry: lineIncrements.entrySet())
+ data.put(entry.getKey(), entry.getValue());
try {
ObjectMapper mapper = OneDev.getInstance(ObjectMapper.class);
String jsonOfData = mapper.writeValueAsString(data);
diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/stats/code/TopContributorsResource.java b/server-core/src/main/java/io/onedev/server/web/page/project/stats/code/TopContributorsResource.java
index 01d0301677..b3c440be69 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/project/stats/code/TopContributorsResource.java
+++ b/server-core/src/main/java/io/onedev/server/web/page/project/stats/code/TopContributorsResource.java
@@ -1,39 +1,39 @@
package io.onedev.server.web.page.project.stats.code;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
+import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.Lists;
+import io.onedev.server.OneDev;
import io.onedev.server.entitymanager.EmailAddressManager;
+import io.onedev.server.git.GitContribution;
+import io.onedev.server.git.GitContributor;
import io.onedev.server.model.EmailAddress;
+import io.onedev.server.model.Project;
+import io.onedev.server.persistence.dao.Dao;
import io.onedev.server.search.commit.AfterCriteria;
import io.onedev.server.search.commit.AuthorCriteria;
import io.onedev.server.search.commit.BeforeCriteria;
import io.onedev.server.search.commit.CommitQuery;
+import io.onedev.server.security.SecurityUtils;
+import io.onedev.server.util.DateUtils;
+import io.onedev.server.web.avatar.AvatarManager;
import io.onedev.server.web.page.project.commits.ProjectCommitsPage;
+import io.onedev.server.xodus.CommitInfoManager;
import org.apache.shiro.authz.UnauthorizedException;
import org.apache.wicket.request.cycle.RequestCycle;
import org.apache.wicket.request.mapper.parameter.PageParameters;
import org.apache.wicket.request.resource.AbstractResource;
-
-import com.fasterxml.jackson.databind.ObjectMapper;
-
-import io.onedev.server.OneDev;
-import io.onedev.server.git.GitContribution;
-import io.onedev.server.git.GitContributor;
-import io.onedev.server.xodus.CommitInfoManager;
-import io.onedev.server.model.Project;
-import io.onedev.server.persistence.dao.Dao;
-import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.util.date.Day;
-import io.onedev.server.web.avatar.AvatarManager;
import org.eclipse.jgit.lib.PersonIdent;
+import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
+import java.io.IOException;
+import java.time.LocalDate;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
class TopContributorsResource extends AbstractResource {
private static final long serialVersionUID = 1L;
@@ -68,8 +68,8 @@ class TopContributorsResource extends AbstractResource {
throw new UnauthorizedException();
DateTimeFormatter formatter = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss");
- String fromDate = formatter.print(new Day(fromDay).getDate());
- String toDate = formatter.print(new Day(toDay).getDate().plusDays(1));
+ String fromDate = formatter.print(new DateTime(DateUtils.toDate(LocalDate.ofEpochDay(fromDay).atTime(0, 0, 0, 0))));
+ String toDate = formatter.print(new DateTime(DateUtils.toDate(LocalDate.ofEpochDay(toDay).plusDays(1).atTime(0, 0, 0, 0))));
List<GitContributor> topContributors = OneDev.getInstance(CommitInfoManager.class)
.getTopContributors(project.getId(), TOP_CONTRIBUTORS, type, fromDay, toDay);
@@ -109,8 +109,8 @@ class TopContributorsResource extends AbstractResource {
ProjectCommitsPage.class, ProjectCommitsPage.paramsOf(project, query.toString(), null)));
Map<Integer, Integer> dailyContributionsData = new HashMap<>();
- for (Map.Entry<Day, Integer> entry: contributor.getDailyContributions().entrySet())
- dailyContributionsData.put(entry.getKey().getValue(), entry.getValue());
+ for (Map.Entry<Integer, Integer> entry: contributor.getDailyContributions().entrySet())
+ dailyContributionsData.put(entry.getKey(), entry.getValue());
contributorData.put("dailyContributions", dailyContributionsData);
data.add(contributorData);
diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/stats/code/code-stats.js b/server-core/src/main/java/io/onedev/server/web/page/project/stats/code/code-stats.js
index 3d7034595b..88cffed34b 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/project/stats/code/code-stats.js
+++ b/server-core/src/main/java/io/onedev/server/web/page/project/stats/code/code-stats.js
@@ -9,7 +9,10 @@ onedev.server.codeStats = {
value: useKilo? (value/1000).toFixed(1) + " k": value
}
},
-
+ formatDay: function(day) {
+ var localDate = JSJoda.LocalDate.ofEpochDay(day);
+ return localDate.year()%100 + "-" + localDate.monthValue() + "-" + localDate.dayOfMonth();
+ },
contribs: {
onDomReady : function(overallContributions, topContributorsDataUrl, userCardCallback, darkMode) {
var $contribs = $(".code-contribs");
@@ -22,7 +25,7 @@ onedev.server.codeStats = {
var contribDays = [];
for (var day in overallContributions)
- contribDays.push(day);
+ contribDays.push(Number(day));
contribDays.sort(function(day1, day2) {
return day1 - day2;
@@ -34,8 +37,7 @@ onedev.server.codeStats = {
var currentDay = contribDays[0];
while (currentDay <= lastDay) {
days.push(currentDay);
- var currentDayObj = onedev.server.day.fromValue(currentDay);
- currentDay = onedev.server.day.toValue(onedev.server.day.plus(currentDayObj, 1));
+ currentDay++;
}
var fromDay = days[0];
@@ -43,9 +45,9 @@ onedev.server.codeStats = {
function updateDateRange() {
$contribs.find(".date-range").text(
- onedev.server.day.format(onedev.server.day.fromValue(fromDay))
+ onedev.server.codeStats.formatDay(fromDay)
+ " ~ "
- + onedev.server.day.format(onedev.server.day.fromValue(toDay)));
+ + onedev.server.codeStats.formatDay(toDay));
}
var $contribType = $contribs.find(".contrib-type");
@@ -56,7 +58,7 @@ onedev.server.codeStats = {
var overallXAxisData = [];
for (var i=0; i<days.length; i++) {
- overallXAxisData.push(onedev.server.day.format(onedev.server.day.fromValue(days[i])));
+ overallXAxisData.push(onedev.server.codeStats.formatDay(days[i]));
}
function getOverallSeriesData() {
@@ -179,7 +181,7 @@ onedev.server.codeStats = {
var xAxisData = [];
for (var i=0; i<days.length; i++) {
if (days[i] >= fromDay && days[i] <= toDay)
- xAxisData.push(onedev.server.day.format(onedev.server.day.fromValue(days[i])));
+ xAxisData.push(onedev.server.codeStats.formatDay(days[i]));
}
var maxValue = 0;
@@ -348,7 +350,7 @@ onedev.server.codeStats = {
var incrementDays = [];
for (var day in lineIncrements) {
delete lineIncrements[day]["@class"];
- incrementDays.push(day);
+ incrementDays.push(Number(day));
var incrementsOnDay = lineIncrements[day];
for (var language in incrementsOnDay) {
var increment = incrementsOnDay[language];
@@ -392,9 +394,8 @@ onedev.server.codeStats = {
else
dailyLines.push(increments);
}
- var currentDayObj = onedev.server.day.fromValue(currentDay);
- xAxisData.push(onedev.server.day.format(currentDayObj));
- currentDay = onedev.server.day.toValue(onedev.server.day.plus(currentDayObj, 1));
+ xAxisData.push(onedev.server.codeStats.formatDay(currentDay));
+ currentDay++;
}
var chart = echarts.init($chart[0]);
diff --git a/server-core/src/main/java/io/onedev/server/web/page/test/TestResourceReference.java b/server-core/src/main/java/io/onedev/server/web/page/test/TestResourceReference.java
index 4ef6ca28cd..bfa619945d 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/test/TestResourceReference.java
+++ b/server-core/src/main/java/io/onedev/server/web/page/test/TestResourceReference.java
@@ -1,9 +1,11 @@
package io.onedev.server.web.page.test;
+import io.onedev.server.web.asset.jsjoda.JsJodaResourceReference;
import io.onedev.server.web.page.base.BaseDependentCssResourceReference;
import io.onedev.server.web.page.base.BaseDependentResourceReference;
import org.apache.wicket.markup.head.CssHeaderItem;
import org.apache.wicket.markup.head.HeaderItem;
+import org.apache.wicket.markup.head.JavaScriptHeaderItem;
import java.util.List;
@@ -18,6 +20,7 @@ public class TestResourceReference extends BaseDependentResourceReference {
@Override
public List<HeaderItem> getDependencies() {
List<HeaderItem> dependencies = super.getDependencies();
+ dependencies.add(JavaScriptHeaderItem.forReference(new JsJodaResourceReference()));
dependencies.add(CssHeaderItem.forReference(new BaseDependentCssResourceReference(
TestResourceReference.class, "test.css")));
return dependencies;
diff --git a/server-core/src/main/java/io/onedev/server/web/util/StatsGroup.java b/server-core/src/main/java/io/onedev/server/web/util/StatsGroup.java
index ce98a10425..72f9a338be 100644
--- a/server-core/src/main/java/io/onedev/server/web/util/StatsGroup.java
+++ b/server-core/src/main/java/io/onedev/server/web/util/StatsGroup.java
@@ -1,18 +1,14 @@
package io.onedev.server.web.util;
import io.onedev.server.model.support.TimeGroups;
-import io.onedev.server.util.date.Day;
-import io.onedev.server.util.date.Month;
-import io.onedev.server.util.date.Week;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.lang3.tuple.Pair;
import javax.annotation.Nullable;
import javax.persistence.criteria.Path;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-import java.util.Map;
+import java.time.LocalDate;
+import java.time.temporal.WeekFields;
+import java.util.*;
public enum StatsGroup {
@@ -24,13 +20,15 @@ public enum StatsGroup {
@Override
public String toString(int groupValue) {
- return new Day(groupValue).toString();
+ var localDate = LocalDate.ofEpochDay(groupValue);
+ return String.format("%02d-%02d", localDate.getMonthValue(), localDate.getDayOfMonth());
}
@Override
public int getNext(int groupValue) {
- return new Day(new Day(groupValue).getDate().plusDays(1)).getValue();
+ return (int) LocalDate.ofEpochDay(groupValue).plusDays(1).toEpochDay();
}
+
},
BY_WEEK {
@@ -41,12 +39,14 @@ public enum StatsGroup {
@Override
public String toString(int groupValue) {
- return new Week(groupValue).toString();
+ var localDate = LocalDate.ofEpochDay(groupValue);
+ var weekFields = WeekFields.of(Locale.getDefault());
+ return String.format("w%02d", localDate.get(weekFields.weekOfWeekBasedYear()));
}
@Override
public int getNext(int groupValue) {
- return new Week(new Week(groupValue).getDate().plusWeeks(1)).getValue();
+ return (int) LocalDate.ofEpochDay(groupValue).plusWeeks(1).toEpochDay();
}
},
@@ -59,12 +59,13 @@ public enum StatsGroup {
@Override
public String toString(int groupValue) {
- return new Month(groupValue).toString();
+ var localDate = LocalDate.ofEpochDay(groupValue);
+ return String.format("%04d-%02d", localDate.getYear(), localDate.getMonthValue());
}
@Override
public int getNext(int groupValue) {
- return new Month(new Month(groupValue).getDate().plusMonths(1)).getValue();
+ return (int) LocalDate.ofEpochDay(groupValue).plusMonths(1).toEpochDay();
}
};
diff --git a/server-core/src/main/java/io/onedev/server/xodus/CommitInfoManager.java b/server-core/src/main/java/io/onedev/server/xodus/CommitInfoManager.java
index c828442fb2..caba61129c 100644
--- a/server-core/src/main/java/io/onedev/server/xodus/CommitInfoManager.java
+++ b/server-core/src/main/java/io/onedev/server/xodus/CommitInfoManager.java
@@ -9,7 +9,6 @@ import org.eclipse.jgit.lib.ObjectId;
import io.onedev.server.git.GitContribution;
import io.onedev.server.git.GitContributor;
-import io.onedev.server.util.date.Day;
import io.onedev.server.util.NameAndEmail;
import io.onedev.server.util.facade.EmailAddressFacade;
@@ -50,7 +49,7 @@ public interface CommitInfoManager {
* @return
* map of day to contribution
*/
- Map<Day, GitContribution> getOverallContributions(Long projectId);
+ Map<Integer, GitContribution> getOverallContributions(Long projectId);
/**
* Get list of top contributors
@@ -79,7 +78,7 @@ public interface CommitInfoManager {
* @return
* line statistics data
*/
- Map<Day, Map<String, Integer>> getLineIncrements(Long projectId);
+ Map<Integer, Map<String, Integer>> getLineIncrements(Long projectId);
Collection<ObjectId> getFixCommits(Long projectId, Long issueId);
diff --git a/server-core/src/main/java/io/onedev/server/xodus/DefaultCommitInfoManager.java b/server-core/src/main/java/io/onedev/server/xodus/DefaultCommitInfoManager.java
index 5805e6733c..91ab4af263 100644
--- a/server-core/src/main/java/io/onedev/server/xodus/DefaultCommitInfoManager.java
+++ b/server-core/src/main/java/io/onedev/server/xodus/DefaultCommitInfoManager.java
@@ -36,7 +36,6 @@ import io.onedev.server.util.*;
import io.onedev.server.util.concurrent.BatchWorkManager;
import io.onedev.server.util.concurrent.BatchWorker;
import io.onedev.server.util.concurrent.Prioritized;
-import io.onedev.server.util.date.Day;
import io.onedev.server.util.facade.EmailAddressFacade;
import io.onedev.server.util.facade.UserFacade;
import io.onedev.server.util.patternset.PatternSet;
@@ -82,7 +81,7 @@ public class DefaultCommitInfoManager extends AbstractMultiEnvironmentManager
private static final Logger logger = LoggerFactory.getLogger(DefaultCommitInfoManager.class);
- private static final int INFO_VERSION = 16;
+ private static final int INFO_VERSION = 17;
private static final long LOG_FILE_SIZE = 256 * 1024;
@@ -506,8 +505,8 @@ public class DefaultCommitInfoManager extends AbstractMultiEnvironmentManager
@Override
public void process(LogCommit currentCommit) {
if (currentCommit.getCommitDate() != null && currentCommit.getParentHashes().size() <= 1) {
- int dayValue = new Day(currentCommit.getCommitDate()).getValue();
- updateContribution(overallContributions, dayValue, currentCommit, filePatterns);
+ int day = (int) DateUtils.toLocalDate(currentCommit.getCommitDate()).toEpochDay();
+ updateContribution(overallContributions, day, currentCommit, filePatterns);
if (currentCommit.getAuthor() != null) {
NameAndEmail author = new NameAndEmail(currentCommit.getAuthor());
@@ -515,11 +514,11 @@ public class DefaultCommitInfoManager extends AbstractMultiEnvironmentManager
int userIndex = readInt(userToIndexStore, txn, authorKey, -1);
Preconditions.checkState(userIndex != -1);
- Map<Integer, GitContribution> contributionsOnDay = dailyContributionsCache.get(dayValue);
+ Map<Integer, GitContribution> contributionsOnDay = dailyContributionsCache.get(day);
if (contributionsOnDay == null) {
contributionsOnDay = deserializeContributions(readBytes(
- dailyContributionsStore, txn, new IntByteIterable(dayValue)));
- dailyContributionsCache.put(dayValue, contributionsOnDay);
+ dailyContributionsStore, txn, new IntByteIterable(day)));
+ dailyContributionsCache.put(day, contributionsOnDay);
}
updateContribution(contributionsOnDay, userIndex, currentCommit, filePatterns);
}
@@ -753,12 +752,12 @@ public class DefaultCommitInfoManager extends AbstractMultiEnvironmentManager
private void updateLineStats(Transaction txn, LogCommit currentCommit, Map<Integer, Map<String, Integer>> lineStats,
PatternSet filePatterns) {
- int dayValue = new Day(currentCommit.getCommitDate()).getValue();
+ int day = (int) DateUtils.toLocalDate(currentCommit.getCommitDate()).toEpochDay();
- Map<String, Integer> lineStatsOnDay = lineStats.get(dayValue);
+ Map<String, Integer> lineStatsOnDay = lineStats.get(day);
if (lineStatsOnDay == null) {
lineStatsOnDay = new HashMap<>();
- lineStats.put(dayValue, lineStatsOnDay);
+ lineStats.put(day, lineStatsOnDay);
}
Map<String, Integer> languageLines = new HashMap<>();
@@ -880,24 +879,24 @@ public class DefaultCommitInfoManager extends AbstractMultiEnvironmentManager
}
@Override
- public Map<Day, Map<String, Integer>> getLineIncrements(Long projectId) {
+ public Map<Integer, Map<String, Integer>> getLineIncrements(Long projectId) {
return projectManager.runOnActiveServer(projectId, new ClusterTask<>() {
private static final long serialVersionUID = 1L;
@Override
- public Map<Day, Map<String, Integer>> call() throws Exception {
+ public Map<Integer, Map<String, Integer>> call() throws Exception {
Environment env = getEnv(projectId.toString());
Store store = getStore(env, DEFAULT_STORE);
return env.computeInReadonlyTransaction(txn -> {
- Map<Day, Map<String, Integer>> lineIncrements = new HashMap<>();
+ Map<Integer, Map<String, Integer>> lineIncrements = new HashMap<>();
byte[] bytes = readBytes(store, txn, LINE_STATS_KEY);
if (bytes != null) {
@SuppressWarnings("unchecked")
var storedMap = (Map<Integer, Map<String, Integer>>) SerializationUtils.deserialize(bytes);
for (var entry : storedMap.entrySet())
- lineIncrements.put(new Day(entry.getKey()), entry.getValue());
+ lineIncrements.put(entry.getKey(), entry.getValue());
}
return lineIncrements;
});
@@ -1285,21 +1284,21 @@ public class DefaultCommitInfoManager extends AbstractMultiEnvironmentManager
@Sessional
@Override
- public Map<Day, GitContribution> getOverallContributions(Long projectId) {
+ public Map<Integer, GitContribution> getOverallContributions(Long projectId) {
return projectManager.runOnActiveServer(projectId, new ClusterTask<>() {
private static final long serialVersionUID = 1L;
@Override
- public Map<Day, GitContribution> call() {
+ public Map<Integer, GitContribution> call() {
Environment env = getEnv(projectId.toString());
Store store = getStore(env, DEFAULT_STORE);
return env.computeInReadonlyTransaction(txn -> {
- Map<Day, GitContribution> overallContributions = new HashMap<>();
+ Map<Integer, GitContribution> overallContributions = new HashMap<>();
for (Map.Entry<Integer, GitContribution> entry :
deserializeContributions(readBytes(store, txn, OVERALL_CONTRIBUTIONS_KEY)).entrySet()) {
- overallContributions.put(new Day(entry.getKey()), entry.getValue());
+ overallContributions.put(entry.getKey(), entry.getValue());
}
return overallContributions;
});
@@ -1404,24 +1403,23 @@ public class DefaultCommitInfoManager extends AbstractMultiEnvironmentManager
Set<NameAndEmail> topUserSet = new HashSet<>(topUsers);
- Map<NameAndEmail, Map<Day, Integer>> userContributions = new HashMap<>();
+ Map<NameAndEmail, Map<Integer, Integer>> userContributions = new HashMap<>();
for (Map.Entry<Integer, Map<Integer, GitContribution>> dayEntry : contributionsByDay.entrySet()) {
for (Map.Entry<Integer, GitContribution> userEntry : dayEntry.getValue().entrySet()) {
NameAndEmail user = getUser(txn, users, userEntry.getKey());
if (user != null && topUserSet.contains(user)) {
- Map<Day, Integer> contributionsOfUser = userContributions.get(user);
+ Map<Integer, Integer> contributionsOfUser = userContributions.get(user);
if (contributionsOfUser == null) {
contributionsOfUser = new HashMap<>();
userContributions.put(user, contributionsOfUser);
}
- Day day = new Day(dayEntry.getKey());
if (type == GitContribution.Type.COMMITS)
- contributionsOfUser.put(day, userEntry.getValue().getCommits());
+ contributionsOfUser.put(dayEntry.getKey(), userEntry.getValue().getCommits());
else if (type == GitContribution.Type.ADDITIONS)
- contributionsOfUser.put(day, userEntry.getValue().getAdditions());
+ contributionsOfUser.put(dayEntry.getKey(), userEntry.getValue().getAdditions());
else
- contributionsOfUser.put(day, userEntry.getValue().getDeletions());
+ contributionsOfUser.put(dayEntry.getKey(), userEntry.getValue().getDeletions());
}
}
}
diff --git a/server-core/src/main/java/io/onedev/server/xodus/DefaultIssueInfoManager.java b/server-core/src/main/java/io/onedev/server/xodus/DefaultIssueInfoManager.java
index d33075a1e1..1c0dc43a3b 100644
--- a/server-core/src/main/java/io/onedev/server/xodus/DefaultIssueInfoManager.java
+++ b/server-core/src/main/java/io/onedev/server/xodus/DefaultIssueInfoManager.java
@@ -39,7 +39,7 @@ import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
-import static io.onedev.server.util.date.DateUtils.toLocalDate;
+import static io.onedev.server.util.DateUtils.toLocalDate;
import static java.lang.Long.valueOf;
@Singleton
diff --git a/server-ee b/server-ee
index 4383666a99..c381dd450b 160000
--- a/server-ee
+++ b/server-ee
@@ -1 +1 @@
-Subproject commit 4383666a99e71011d699b330a5fc758d15533a45
+Subproject commit c381dd450b30faa470a3c76943beca68baadaff6
diff --git a/server-plugin/pom.xml b/server-plugin/pom.xml
index 2e1636a7bf..c83afdfd83 100644
--- a/server-plugin/pom.xml
+++ b/server-plugin/pom.xml
@@ -6,7 +6,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-archetype/pom.xml b/server-plugin/server-plugin-archetype/pom.xml
index ff4bf7c331..885b3a0f01 100644
--- a/server-plugin/server-plugin-archetype/pom.xml
+++ b/server-plugin/server-plugin-archetype/pom.xml
@@ -6,7 +6,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<build>
<resources>
diff --git a/server-plugin/server-plugin-authenticator-ldap/pom.xml b/server-plugin/server-plugin-authenticator-ldap/pom.xml
index 5b248e70c6..573f27358f 100644
--- a/server-plugin/server-plugin-authenticator-ldap/pom.xml
+++ b/server-plugin/server-plugin-authenticator-ldap/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.authenticator.ldap.LdapModule</moduleClass>
diff --git a/server-plugin/server-plugin-buildspec-dotnet/pom.xml b/server-plugin/server-plugin-buildspec-dotnet/pom.xml
index 8e36d71a02..b8d29a8436 100644
--- a/server-plugin/server-plugin-buildspec-dotnet/pom.xml
+++ b/server-plugin/server-plugin-buildspec-dotnet/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-buildspec-gradle/pom.xml b/server-plugin/server-plugin-buildspec-gradle/pom.xml
index 37ee229ca8..ddb471eb4d 100644
--- a/server-plugin/server-plugin-buildspec-gradle/pom.xml
+++ b/server-plugin/server-plugin-buildspec-gradle/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-buildspec-maven/pom.xml b/server-plugin/server-plugin-buildspec-maven/pom.xml
index 79145fce2a..be74e2af65 100644
--- a/server-plugin/server-plugin-buildspec-maven/pom.xml
+++ b/server-plugin/server-plugin-buildspec-maven/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-buildspec-node/pom.xml b/server-plugin/server-plugin-buildspec-node/pom.xml
index 995e8f81a4..0b8e41eb0e 100644
--- a/server-plugin/server-plugin-buildspec-node/pom.xml
+++ b/server-plugin/server-plugin-buildspec-node/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.buildspec.node.NodePluginModule</moduleClass>
diff --git a/server-plugin/server-plugin-executor-kubernetes/pom.xml b/server-plugin/server-plugin-executor-kubernetes/pom.xml
index aaf52984a3..ec1eb4523d 100644
--- a/server-plugin/server-plugin-executor-kubernetes/pom.xml
+++ b/server-plugin/server-plugin-executor-kubernetes/pom.xml
@@ -6,7 +6,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.executor.kubernetes.KubernetesModule</moduleClass>
diff --git a/server-plugin/server-plugin-executor-remotedocker/pom.xml b/server-plugin/server-plugin-executor-remotedocker/pom.xml
index 3b3060d4fd..3be323ae6e 100644
--- a/server-plugin/server-plugin-executor-remotedocker/pom.xml
+++ b/server-plugin/server-plugin-executor-remotedocker/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-executor-remoteshell/pom.xml b/server-plugin/server-plugin-executor-remoteshell/pom.xml
index 5c6a2e1b69..0bae517ec7 100644
--- a/server-plugin/server-plugin-executor-remoteshell/pom.xml
+++ b/server-plugin/server-plugin-executor-remoteshell/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-executor-serverdocker/pom.xml b/server-plugin/server-plugin-executor-serverdocker/pom.xml
index 59f9f458d3..9ff9303eff 100644
--- a/server-plugin/server-plugin-executor-serverdocker/pom.xml
+++ b/server-plugin/server-plugin-executor-serverdocker/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.executor.serverdocker.ServerDockerModule</moduleClass>
diff --git a/server-plugin/server-plugin-executor-servershell/pom.xml b/server-plugin/server-plugin-executor-servershell/pom.xml
index b7319f65f7..bb441fd56b 100644
--- a/server-plugin/server-plugin-executor-servershell/pom.xml
+++ b/server-plugin/server-plugin-executor-servershell/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.executor.servershell.ServerShellModule</moduleClass>
diff --git a/server-plugin/server-plugin-import-bitbucketcloud/pom.xml b/server-plugin/server-plugin-import-bitbucketcloud/pom.xml
index 348e1f8432..ca10f21c45 100644
--- a/server-plugin/server-plugin-import-bitbucketcloud/pom.xml
+++ b/server-plugin/server-plugin-import-bitbucketcloud/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.imports.bitbucketcloud.BitbucketModule</moduleClass>
diff --git a/server-plugin/server-plugin-import-gitea/pom.xml b/server-plugin/server-plugin-import-gitea/pom.xml
index 93c2663f2a..d6b3e439c0 100644
--- a/server-plugin/server-plugin-import-gitea/pom.xml
+++ b/server-plugin/server-plugin-import-gitea/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.imports.gitea.GiteaModule</moduleClass>
diff --git a/server-plugin/server-plugin-import-gitea/src/main/java/io/onedev/server/plugin/imports/gitea/ImportServer.java b/server-plugin/server-plugin-import-gitea/src/main/java/io/onedev/server/plugin/imports/gitea/ImportServer.java
index 1c7c98c621..64aa24df24 100644
--- a/server-plugin/server-plugin-import-gitea/src/main/java/io/onedev/server/plugin/imports/gitea/ImportServer.java
+++ b/server-plugin/server-plugin-import-gitea/src/main/java/io/onedev/server/plugin/imports/gitea/ImportServer.java
@@ -23,7 +23,7 @@ import io.onedev.server.model.support.issue.field.spec.FieldSpec;
import io.onedev.server.persistence.TransactionManager;
import io.onedev.server.persistence.dao.Dao;
import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.util.JerseyUtils;
import io.onedev.server.util.JerseyUtils.PageDataConsumer;
import io.onedev.server.util.Pair;
diff --git a/server-plugin/server-plugin-import-github/pom.xml b/server-plugin/server-plugin-import-github/pom.xml
index dbc5d9c811..8c507b4c2a 100644
--- a/server-plugin/server-plugin-import-github/pom.xml
+++ b/server-plugin/server-plugin-import-github/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.imports.github.GitHubModule</moduleClass>
diff --git a/server-plugin/server-plugin-import-gitlab/pom.xml b/server-plugin/server-plugin-import-gitlab/pom.xml
index 3dd9b3896b..99c0487b46 100644
--- a/server-plugin/server-plugin-import-gitlab/pom.xml
+++ b/server-plugin/server-plugin-import-gitlab/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.imports.gitlab.GitLabModule</moduleClass>
diff --git a/server-plugin/server-plugin-import-jiracloud/pom.xml b/server-plugin/server-plugin-import-jiracloud/pom.xml
index aa2030ea62..87198ce695 100644
--- a/server-plugin/server-plugin-import-jiracloud/pom.xml
+++ b/server-plugin/server-plugin-import-jiracloud/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.imports.jiracloud.JiraModule</moduleClass>
diff --git a/server-plugin/server-plugin-import-jiracloud/src/main/java/io/onedev/server/plugin/imports/jiracloud/ImportServer.java b/server-plugin/server-plugin-import-jiracloud/src/main/java/io/onedev/server/plugin/imports/jiracloud/ImportServer.java
index 9a9381c901..417041d3b0 100644
--- a/server-plugin/server-plugin-import-jiracloud/src/main/java/io/onedev/server/plugin/imports/jiracloud/ImportServer.java
+++ b/server-plugin/server-plugin-import-jiracloud/src/main/java/io/onedev/server/plugin/imports/jiracloud/ImportServer.java
@@ -26,7 +26,7 @@ import io.onedev.server.model.support.issue.field.spec.FieldSpec;
import io.onedev.server.persistence.TransactionManager;
import io.onedev.server.persistence.dao.Dao;
import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.util.JerseyUtils;
import io.onedev.server.util.JerseyUtils.PageDataConsumer;
import io.onedev.server.util.Pair;
diff --git a/server-plugin/server-plugin-import-url/pom.xml b/server-plugin/server-plugin-import-url/pom.xml
index 891caff82f..0d6e4924be 100644
--- a/server-plugin/server-plugin-import-url/pom.xml
+++ b/server-plugin/server-plugin-import-url/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.imports.url.UrlModule</moduleClass>
diff --git a/server-plugin/server-plugin-import-youtrack/pom.xml b/server-plugin/server-plugin-import-youtrack/pom.xml
index 915808ed8f..86238ccbb1 100644
--- a/server-plugin/server-plugin-import-youtrack/pom.xml
+++ b/server-plugin/server-plugin-import-youtrack/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.imports.youtrack.YouTrackModule</moduleClass>
diff --git a/server-plugin/server-plugin-import-youtrack/src/main/java/io/onedev/server/plugin/imports/youtrack/ImportServer.java b/server-plugin/server-plugin-import-youtrack/src/main/java/io/onedev/server/plugin/imports/youtrack/ImportServer.java
index 6090f95f04..da4385a19b 100644
--- a/server-plugin/server-plugin-import-youtrack/src/main/java/io/onedev/server/plugin/imports/youtrack/ImportServer.java
+++ b/server-plugin/server-plugin-import-youtrack/src/main/java/io/onedev/server/plugin/imports/youtrack/ImportServer.java
@@ -24,7 +24,7 @@ import io.onedev.server.model.support.issue.field.spec.userchoicefield.UserChoic
import io.onedev.server.persistence.TransactionManager;
import io.onedev.server.persistence.dao.Dao;
import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.util.date.DateUtils;
+import io.onedev.server.util.DateUtils;
import io.onedev.server.util.JerseyUtils;
import io.onedev.server.util.JerseyUtils.PageDataConsumer;
import io.onedev.server.util.Pair;
diff --git a/server-plugin/server-plugin-mailservice-gmail/pom.xml b/server-plugin/server-plugin-mailservice-gmail/pom.xml
index 8cbe11aa97..e55196ef95 100644
--- a/server-plugin/server-plugin-mailservice-gmail/pom.xml
+++ b/server-plugin/server-plugin-mailservice-gmail/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.mailservice.gmail.GmailModule</moduleClass>
diff --git a/server-plugin/server-plugin-mailservice-office365/pom.xml b/server-plugin/server-plugin-mailservice-office365/pom.xml
index 125788ba55..8ab0db6248 100644
--- a/server-plugin/server-plugin-mailservice-office365/pom.xml
+++ b/server-plugin/server-plugin-mailservice-office365/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.mailservice.office365.Office365Module</moduleClass>
diff --git a/server-plugin/server-plugin-mailservice-smtpimap/pom.xml b/server-plugin/server-plugin-mailservice-smtpimap/pom.xml
index f654e5dabb..3e1e39e997 100644
--- a/server-plugin/server-plugin-mailservice-smtpimap/pom.xml
+++ b/server-plugin/server-plugin-mailservice-smtpimap/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.mailservice.smtpimap.SmtpImapModule</moduleClass>
diff --git a/server-plugin/server-plugin-notification-discord/pom.xml b/server-plugin/server-plugin-notification-discord/pom.xml
index 878ad59236..f0ea58e0c1 100644
--- a/server-plugin/server-plugin-notification-discord/pom.xml
+++ b/server-plugin/server-plugin-notification-discord/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.notification.discord.DiscordModule</moduleClass>
diff --git a/server-plugin/server-plugin-notification-ntfy/pom.xml b/server-plugin/server-plugin-notification-ntfy/pom.xml
index ad123c8c09..0b6ca1fa5e 100644
--- a/server-plugin/server-plugin-notification-ntfy/pom.xml
+++ b/server-plugin/server-plugin-notification-ntfy/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.notification.ntfy.NtfyModule</moduleClass>
diff --git a/server-plugin/server-plugin-notification-slack/pom.xml b/server-plugin/server-plugin-notification-slack/pom.xml
index 7bb0604214..500ba7c371 100644
--- a/server-plugin/server-plugin-notification-slack/pom.xml
+++ b/server-plugin/server-plugin-notification-slack/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.notification.slack.SlackModule</moduleClass>
diff --git a/server-plugin/server-plugin-pack-container/pom.xml b/server-plugin/server-plugin-pack-container/pom.xml
index 516cd48a4c..eebc82f263 100644
--- a/server-plugin/server-plugin-pack-container/pom.xml
+++ b/server-plugin/server-plugin-pack-container/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-pack-gem/pom.xml b/server-plugin/server-plugin-pack-gem/pom.xml
index bc2ee5e47d..d939336d17 100644
--- a/server-plugin/server-plugin-pack-gem/pom.xml
+++ b/server-plugin/server-plugin-pack-gem/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-pack-maven/pom.xml b/server-plugin/server-plugin-pack-maven/pom.xml
index 914419f19f..54d8e609d0 100644
--- a/server-plugin/server-plugin-pack-maven/pom.xml
+++ b/server-plugin/server-plugin-pack-maven/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-pack-npm/pom.xml b/server-plugin/server-plugin-pack-npm/pom.xml
index ffda933478..f21dd324ce 100644
--- a/server-plugin/server-plugin-pack-npm/pom.xml
+++ b/server-plugin/server-plugin-pack-npm/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-pack-nuget/pom.xml b/server-plugin/server-plugin-pack-nuget/pom.xml
index 18a14aa2ca..7e33a4879c 100644
--- a/server-plugin/server-plugin-pack-nuget/pom.xml
+++ b/server-plugin/server-plugin-pack-nuget/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-pack-pypi/pom.xml b/server-plugin/server-plugin-pack-pypi/pom.xml
index 1edb086d46..12a6c870f4 100644
--- a/server-plugin/server-plugin-pack-pypi/pom.xml
+++ b/server-plugin/server-plugin-pack-pypi/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-report-checkstyle/pom.xml b/server-plugin/server-plugin-report-checkstyle/pom.xml
index 7e88088f1c..ad92e0a55e 100644
--- a/server-plugin/server-plugin-report-checkstyle/pom.xml
+++ b/server-plugin/server-plugin-report-checkstyle/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-report-clover/pom.xml b/server-plugin/server-plugin-report-clover/pom.xml
index 94f06d0336..ab69231c12 100644
--- a/server-plugin/server-plugin-report-clover/pom.xml
+++ b/server-plugin/server-plugin-report-clover/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-report-cobertura/pom.xml b/server-plugin/server-plugin-report-cobertura/pom.xml
index e82ec79eb8..c25fd35472 100644
--- a/server-plugin/server-plugin-report-cobertura/pom.xml
+++ b/server-plugin/server-plugin-report-cobertura/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-report-coverage/pom.xml b/server-plugin/server-plugin-report-coverage/pom.xml
index 6fde6c1095..97c339eb34 100644
--- a/server-plugin/server-plugin-report-coverage/pom.xml
+++ b/server-plugin/server-plugin-report-coverage/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.report.coverage.CoverageModule</moduleClass>
diff --git a/server-plugin/server-plugin-report-cpd/pom.xml b/server-plugin/server-plugin-report-cpd/pom.xml
index a2e833c2e3..d43e5630ba 100644
--- a/server-plugin/server-plugin-report-cpd/pom.xml
+++ b/server-plugin/server-plugin-report-cpd/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-report-html/pom.xml b/server-plugin/server-plugin-report-html/pom.xml
index 9f68378dea..0fd7c8b533 100644
--- a/server-plugin/server-plugin-report-html/pom.xml
+++ b/server-plugin/server-plugin-report-html/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.report.html.HtmlModule</moduleClass>
diff --git a/server-plugin/server-plugin-report-jacoco/pom.xml b/server-plugin/server-plugin-report-jacoco/pom.xml
index 05e9088d0b..fe6c0bc849 100644
--- a/server-plugin/server-plugin-report-jacoco/pom.xml
+++ b/server-plugin/server-plugin-report-jacoco/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-report-jest/pom.xml b/server-plugin/server-plugin-report-jest/pom.xml
index dffc375a80..a051e2ea05 100644
--- a/server-plugin/server-plugin-report-jest/pom.xml
+++ b/server-plugin/server-plugin-report-jest/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-report-junit/pom.xml b/server-plugin/server-plugin-report-junit/pom.xml
index 06e6c85d9a..56b007b78a 100644
--- a/server-plugin/server-plugin-report-junit/pom.xml
+++ b/server-plugin/server-plugin-report-junit/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-report-markdown/pom.xml b/server-plugin/server-plugin-report-markdown/pom.xml
index b20c261795..38eff083b2 100644
--- a/server-plugin/server-plugin-report-markdown/pom.xml
+++ b/server-plugin/server-plugin-report-markdown/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.report.markdown.MarkdownModule</moduleClass>
diff --git a/server-plugin/server-plugin-report-pmd/pom.xml b/server-plugin/server-plugin-report-pmd/pom.xml
index df1df34c81..d7b291c5aa 100644
--- a/server-plugin/server-plugin-report-pmd/pom.xml
+++ b/server-plugin/server-plugin-report-pmd/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-report-problem/pom.xml b/server-plugin/server-plugin-report-problem/pom.xml
index f901664f1c..adbdf45283 100644
--- a/server-plugin/server-plugin-report-problem/pom.xml
+++ b/server-plugin/server-plugin-report-problem/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.report.problem.ProblemModule</moduleClass>
diff --git a/server-plugin/server-plugin-report-roslynator/pom.xml b/server-plugin/server-plugin-report-roslynator/pom.xml
index ac8ab54429..6be7c78ab3 100644
--- a/server-plugin/server-plugin-report-roslynator/pom.xml
+++ b/server-plugin/server-plugin-report-roslynator/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-report-spotbugs/pom.xml b/server-plugin/server-plugin-report-spotbugs/pom.xml
index 3cf5a5449e..e5983693ef 100644
--- a/server-plugin/server-plugin-report-spotbugs/pom.xml
+++ b/server-plugin/server-plugin-report-spotbugs/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-report-trx/pom.xml b/server-plugin/server-plugin-report-trx/pom.xml
index c6b4419265..b22e266d38 100644
--- a/server-plugin/server-plugin-report-trx/pom.xml
+++ b/server-plugin/server-plugin-report-trx/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-plugin/server-plugin-report-unittest/pom.xml b/server-plugin/server-plugin-report-unittest/pom.xml
index 7e99af4f50..47cca7b004 100644
--- a/server-plugin/server-plugin-report-unittest/pom.xml
+++ b/server-plugin/server-plugin-report-unittest/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.report.unittest.UnitTestModule</moduleClass>
diff --git a/server-plugin/server-plugin-sso-discord/pom.xml b/server-plugin/server-plugin-sso-discord/pom.xml
index 4a3d82a435..7843d46a50 100644
--- a/server-plugin/server-plugin-sso-discord/pom.xml
+++ b/server-plugin/server-plugin-sso-discord/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.sso.discord.DiscordModule</moduleClass>
diff --git a/server-plugin/server-plugin-sso-openid/pom.xml b/server-plugin/server-plugin-sso-openid/pom.xml
index 33299a7638..95b79cd8cf 100644
--- a/server-plugin/server-plugin-sso-openid/pom.xml
+++ b/server-plugin/server-plugin-sso-openid/pom.xml
@@ -6,7 +6,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server-plugin</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<properties>
<moduleClass>io.onedev.server.plugin.sso.openid.OpenIdModule</moduleClass>
diff --git a/server-product/pom.xml b/server-product/pom.xml
index 034b4346e8..ca583c9911 100644
--- a/server-product/pom.xml
+++ b/server-product/pom.xml
@@ -7,7 +7,7 @@
<parent>
<groupId>io.onedev</groupId>
<artifactId>server</artifactId>
- <version>11.0.7</version>
+ <version>11.0.8</version>
</parent>
<dependencies>
<dependency>
diff --git a/server-product/src/test/java/io/onedev/server/product/Test.java b/server-product/src/test/java/io/onedev/server/product/Test.java
index 7b23876e74..6daeba527d 100644
--- a/server-product/src/test/java/io/onedev/server/product/Test.java
+++ b/server-product/src/test/java/io/onedev/server/product/Test.java
@@ -5,4 +5,5 @@ public class Test {
@org.junit.Test
public void test() {
}
+
}
\ No newline at end of file