@emqx/shared-ui-utils 0.0.21 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1292 -1204
- package/dist/index.umd.cjs +32 -27
- package/dist/tools.d.ts +11 -0
- package/dist/useBatchSettings.d.ts +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var i = /* @__PURE__ */ ((e) => (e.All = "ALL", e.Read = "READ", e.Write = "WRITE", e.Describe = "DESCRIBE", e.Create = "CREATE", e.Delete = "DELETE", e.Alter = "ALTER", e))(i || {}), m$1 = /* @__PURE__ */ ((e) => (e.Allow = "ALLOW", e.Deny = "DENY", e))(m$1 || {}), o = /* @__PURE__ */ ((e) => (e.Topic = "TOPIC", e.Group = "GROUP", e.Cluster = "CLUSTER", e))(o || {}), r = /* @__PURE__ */ ((e) => (e.Webhook = "http", e.MQTT = "mqtt", e.InfluxDB = "influxdb", e.MySQL = "mysql", e.KafkaProducer = "kafka_producer", e.KafkaConsumer = "kafka_consumer", e.Redis = "redis", e.GCPProducer = "gcp_pubsub_producer", e.GCPConsumer = "gcp_pubsub_consumer", e.MongoDB = "mongodb", e.PgSQL = "pgsql", e.TimescaleDB = "timescale", e.MatrixDB = "matrix", e.TDengine = "tdengine", e.ClickHouse = "clickhouse", e.DynamoDB = "dynamo", e.Cassandra = "cassandra", e.MicrosoftSQLServer = "sqlserver", e.RocketMQ = "rocketmq", e.IoTDB = "iotdb", e.OpenTSDB = "opents", e.OracleDatabase = "oracle", e.RabbitMQ = "rabbitmq", e.Pulsar = "pulsar", e.HStream = "hstreamdb", e.AzureEventHubs = "azure_event_hub_producer", e.AmazonKinesis = "kinesis", e.GreptimeDB = "greptimedb", e.Confluent = "confluent_producer", e.SysKeeperProxy = "syskeeper_proxy", e.SysKeeperForwarder = "syskeeper_forwarder", e.Elasticsearch = "elasticsearch", e.S3 = "s3", e.AzureBlobStorage = "azure_blob_storage", e.Couchbase = "couchbase", e.Datalayers = "datalayers", e.Snowflake = "snowflake", e.Tablestore = "tablestore", e.DiskLog = "disk_log", e.S3Tables = "s3tables", e.Doris = "doris", e))(r || {}), a = /* @__PURE__ */ ((e) => (e.Message = "message", e.Event = "event", e))(a || {});
|
|
1
|
+
var i = /* @__PURE__ */ ((e) => (e.All = "ALL", e.Read = "READ", e.Write = "WRITE", e.Describe = "DESCRIBE", e.Create = "CREATE", e.Delete = "DELETE", e.Alter = "ALTER", e))(i || {}), m$1 = /* @__PURE__ */ ((e) => (e.Allow = "ALLOW", e.Deny = "DENY", e))(m$1 || {}), o = /* @__PURE__ */ ((e) => (e.Topic = "TOPIC", e.Group = "GROUP", e.Cluster = "CLUSTER", e))(o || {}), r = /* @__PURE__ */ ((e) => (e.Webhook = "http", e.MQTT = "mqtt", e.InfluxDB = "influxdb", e.MySQL = "mysql", e.KafkaProducer = "kafka_producer", e.KafkaConsumer = "kafka_consumer", e.Redis = "redis", e.GCPProducer = "gcp_pubsub_producer", e.GCPConsumer = "gcp_pubsub_consumer", e.MongoDB = "mongodb", e.PgSQL = "pgsql", e.TimescaleDB = "timescale", e.MatrixDB = "matrix", e.TDengine = "tdengine", e.ClickHouse = "clickhouse", e.DynamoDB = "dynamo", e.Cassandra = "cassandra", e.MicrosoftSQLServer = "sqlserver", e.RocketMQ = "rocketmq", e.IoTDB = "iotdb", e.OpenTSDB = "opents", e.OracleDatabase = "oracle", e.RabbitMQ = "rabbitmq", e.Pulsar = "pulsar", e.HStream = "hstreamdb", e.AzureEventHubs = "azure_event_hub_producer", e.AmazonKinesis = "kinesis", e.GreptimeDB = "greptimedb", e.Confluent = "confluent_producer", e.SysKeeperProxy = "syskeeper_proxy", e.SysKeeperForwarder = "syskeeper_forwarder", e.Elasticsearch = "elasticsearch", e.S3 = "s3", e.AzureBlobStorage = "azure_blob_storage", e.Couchbase = "couchbase", e.Datalayers = "datalayers", e.Snowflake = "snowflake", e.SnowflakeStreaming = "snowflake_streaming", e.Tablestore = "tablestore", e.DiskLog = "disk_log", e.S3Tables = "s3tables", e.Doris = "doris", e.BigQuery = "bigquery", e.AlloyDB = "alloydb", e.CockroachDB = "cockroachdb", e.Redshift = "redshift", e.AWSTimestream = "aws_timestream", e.EMQXTables = "emqx_tables", e))(r || {}), a = /* @__PURE__ */ ((e) => (e.Message = "message", e.Event = "event", e))(a || {});
|
|
2
2
|
const v$1 = "$bridges/", E = "ai_completion";
|
|
3
3
|
r.MQTT, r.RabbitMQ;
|
|
4
4
|
a.Event, a.Message;
|
|
@@ -62,15 +62,22 @@ const O = new RegExp(
|
|
|
62
62
|
const t = e.trim();
|
|
63
63
|
let n, s, c, l = null;
|
|
64
64
|
if (N.test(t) ? l = t.match(/(?<foreach>(.|\n)+)FROM(?<from>(.|\n)+)/) : l = t.match(withConditionSQLReg) || t.match(normalSQLReg), l) {
|
|
65
|
-
const { groups: C } = l, { foreach: A = "", select: L = "", from: B = "", where:
|
|
66
|
-
n = A || L.trim(), s = B.trim(),
|
|
65
|
+
const { groups: C } = l, { foreach: A = "", select: L = "", from: B = "", where: J = "" } = C || {};
|
|
66
|
+
n = A || L.trim(), s = B.trim(), J && (c = J.trim());
|
|
67
67
|
}
|
|
68
68
|
return {
|
|
69
69
|
fieldStr: n,
|
|
70
70
|
fromStr: s,
|
|
71
71
|
whereStr: c
|
|
72
72
|
};
|
|
73
|
-
}, isContainsAIExpression = (e) => O.test(e), getBridgeKey = ({ type: e, name: t }) => `${e}:${t}`, checkNeedRequestAPI = (e) => e || e === void 0,
|
|
73
|
+
}, isContainsAIExpression = (e) => O.test(e), getBridgeKey = ({ type: e, name: t }) => `${e}:${t}`, checkNeedRequestAPI = (e) => e || e === void 0, getKeywordsFromSQL = (e) => {
|
|
74
|
+
const { fieldStr: t = "", fromStr: n = "", whereStr: s = "" } = getKeyPartsFromSQL(e);
|
|
75
|
+
return {
|
|
76
|
+
fieldStr: t,
|
|
77
|
+
fromStr: n,
|
|
78
|
+
whereStr: s
|
|
79
|
+
};
|
|
80
|
+
}, d = {
|
|
74
81
|
title: "Streaming (beta)",
|
|
75
82
|
streams: "Streams",
|
|
76
83
|
streamName: "Stream Name",
|
|
@@ -701,7 +708,26 @@ const O = new RegExp(
|
|
|
701
708
|
multipleFallbackWrong: "Flow 暂不支持编辑多层级备选动作",
|
|
702
709
|
incorrectInputOutputConnection: "请确认所有 Source 节点均正确连接到同一数据处理节点",
|
|
703
710
|
incorrectOutputNodeConnection: "请确认所有 Sink 节点均由同一数据处理节点输出",
|
|
704
|
-
incorrectDefaultNodeConnection: "请确认所有数据处理节点均按照顺序首尾相连"
|
|
711
|
+
incorrectDefaultNodeConnection: "请确认所有数据处理节点均按照顺序首尾相连",
|
|
712
|
+
input: "输入",
|
|
713
|
+
systemPromptDesc: "系统消息,用于引导 AI 模型生成符合预期的输出。例:将输入的 JSON 数据中,值为数字的 value 相加起来,并输出,只需返回输出结果。",
|
|
714
|
+
model: "模型",
|
|
715
|
+
maxTokens: "最大令牌数",
|
|
716
|
+
anthropicVersion: "Anthropic 版本",
|
|
717
|
+
apiKey: "API 密钥",
|
|
718
|
+
baseURL: "基础 URL",
|
|
719
|
+
geminiBaseUrlTips: "当前 Gemini 通过兼容 OpenAI 的接口来与之通信,请输入兼容 OpenAI 的基础 URL。",
|
|
720
|
+
aiOutputAlias: "输出结果别名",
|
|
721
|
+
aiOutputAliasDesc: "输出结果别名,用户在动作或后续处理中引用输出结果。",
|
|
722
|
+
aliasDesc: "别名如包含除字母、数字和下划线以外的字符,或以数字开头,或为 SQL 关键字时,请为别名加上双引号。",
|
|
723
|
+
connectTimeout: "连接超时",
|
|
724
|
+
recvTimeout: "接收数据超时时间",
|
|
725
|
+
checkoutTimeout: "连接池超时时间",
|
|
726
|
+
maxConn: "最大连接数",
|
|
727
|
+
maxConnectionsDesc: "最大并发连接数",
|
|
728
|
+
checkoutTimeoutDesc: "从连接池中为请求 AI 服务的请求分配的超时时间。",
|
|
729
|
+
confirm: "确认",
|
|
730
|
+
baseURLDesc: "默认值为 {url},您也可以输入其他兼容 {name} API 格式的模型基础 URL。"
|
|
705
731
|
}, P = {
|
|
706
732
|
guideSourceNodeLabel: "Source",
|
|
707
733
|
guideSourceNodeDesc: "Drag in multiple nodes to select message and event inputs",
|
|
@@ -734,7 +760,26 @@ const O = new RegExp(
|
|
|
734
760
|
multipleFallbackWrong: "Flow does not support editing multi-level fallback actions",
|
|
735
761
|
incorrectInputOutputConnection: "Please confirm that all source nodes are correctly connected to the same data processing node",
|
|
736
762
|
incorrectOutputNodeConnection: "Please confirm that all sink nodes are output from the same data processing node",
|
|
737
|
-
incorrectDefaultNodeConnection: "Please confirm that all data processing nodes are connected in sequence from start to end"
|
|
763
|
+
incorrectDefaultNodeConnection: "Please confirm that all data processing nodes are connected in sequence from start to end",
|
|
764
|
+
input: "Input",
|
|
765
|
+
systemPromptDesc: "System message, used to guide AI models to generate outputs that meet expectations. Example: Add up the values of numeric keys in the input JSON data and output the result, only return the output result.",
|
|
766
|
+
model: "Model",
|
|
767
|
+
maxTokens: "Max Tokens",
|
|
768
|
+
anthropicVersion: "Anthropic Version",
|
|
769
|
+
apiKey: "API Key",
|
|
770
|
+
baseURL: "Base URL",
|
|
771
|
+
geminiBaseUrlTips: "This Gemini connection uses an OpenAI-compatible API. Please enter a compatible Base URL.",
|
|
772
|
+
aiOutputAlias: "Output Result Alias",
|
|
773
|
+
aiOutputAliasDesc: "Output result alias, used to reference output results in actions or subsequent processing.",
|
|
774
|
+
aliasDesc: "If the alias contains characters other than letters, numbers, and underscores, or starts with a number, or is a SQL keyword, please add double quotes to the alias.",
|
|
775
|
+
connectTimeout: "Connect Timeout",
|
|
776
|
+
recvTimeout: "Receive Timeout",
|
|
777
|
+
checkoutTimeout: "Checkout Timeout",
|
|
778
|
+
maxConn: "Max Connections",
|
|
779
|
+
maxConnectionsDesc: "Maximum number of simultaneous connections to the AI provider.",
|
|
780
|
+
checkoutTimeoutDesc: "Timeout for the checkout from connection pool for a request to the AI provider.",
|
|
781
|
+
confirm: "Confirm",
|
|
782
|
+
baseURLDesc: "The default value is {url}, or you can use any base URL that works with the {name} API format."
|
|
738
783
|
}, x = {
|
|
739
784
|
guideSourceNodeLabel: "ソース",
|
|
740
785
|
guideSourceNodeDesc: "複数のノードをドラッグしてメッセージとイベント入力を選択",
|
|
@@ -769,7 +814,29 @@ const O = new RegExp(
|
|
|
769
814
|
multipleFallbackWrong: "フローは多段階のフォールバックアクションの編集をサポートしていません",
|
|
770
815
|
incorrectInputOutputConnection: "すべてのソースノードが同じデータ処理ノードに正しく接続されていることを確認してください",
|
|
771
816
|
incorrectOutputNodeConnection: "すべてのシンクノードが同じデータ処理ノードから出力されていることを確認してください",
|
|
772
|
-
incorrectDefaultNodeConnection: "すべてのデータ処理ノードが開始から終了まで順に接続されていることを確認してください"
|
|
817
|
+
incorrectDefaultNodeConnection: "すべてのデータ処理ノードが開始から終了まで順に接続されていることを確認してください",
|
|
818
|
+
input: "入力",
|
|
819
|
+
systemPromptDesc: "システムメッセージ。AI モデルに期待どおりの出力を生成させるために使用します。例:入力 JSON データの数値キーの値を合計し、その結果のみを返す。",
|
|
820
|
+
model: "モデル",
|
|
821
|
+
maxTokens: "最大トークン数",
|
|
822
|
+
anthropicVersion: "Anthropic バージョン",
|
|
823
|
+
apiKey: "API キー",
|
|
824
|
+
baseURL: "ベース URL",
|
|
825
|
+
// TODO: ja
|
|
826
|
+
geminiBaseUrlTips: "This Gemini connection uses an OpenAI-compatible API. Please enter a compatible Base URL.",
|
|
827
|
+
aiOutputAlias: "出力結果のエイリアス",
|
|
828
|
+
aiOutputAliasDesc: "出力結果のエイリアス。アクションや後続処理で出力結果を参照するために使用します",
|
|
829
|
+
aliasDesc: "エイリアスに英数字とアンダースコア以外の文字が含まれる場合、数字で始まる場合、または SQL キーワードの場合は、エイリアスを二重引用符で囲んでください",
|
|
830
|
+
// S - TODO: ja
|
|
831
|
+
connectTimeout: "Connect Timeout",
|
|
832
|
+
recvTimeout: "Receive Timeout",
|
|
833
|
+
checkoutTimeout: "Checkout Timeout",
|
|
834
|
+
maxConn: "Max Connections",
|
|
835
|
+
maxConnectionsDesc: "Maximum number of simultaneous connections to the AI provider.",
|
|
836
|
+
checkoutTimeoutDesc: "Timeout for the checkout from connection pool for a request to the AI provider.",
|
|
837
|
+
// E - TODO: ja
|
|
838
|
+
confirm: "確認",
|
|
839
|
+
baseURLDesc: "デフォルト値は {url} です。{name} API 形式と互換性のある任意のベース URL を使用することもできます。"
|
|
773
840
|
};
|
|
774
841
|
/*!
|
|
775
842
|
* shared v9.10.2
|
|
@@ -824,12 +891,12 @@ function generateCodeFrame(e, t = 0, n = e.length) {
|
|
|
824
891
|
l.push(`${L}${" ".repeat(3 - String(L).length)}| ${s[A]}`);
|
|
825
892
|
const B = s[A].length;
|
|
826
893
|
if (A === C) {
|
|
827
|
-
const
|
|
828
|
-
l.push(" | " + " ".repeat(
|
|
894
|
+
const J = t - (c - B) + 1, U = Math.max(1, n > c ? B - J : n - t);
|
|
895
|
+
l.push(" | " + " ".repeat(J) + "^".repeat(U));
|
|
829
896
|
} else if (A > C) {
|
|
830
897
|
if (n > c) {
|
|
831
|
-
const
|
|
832
|
-
l.push(" | " + "^".repeat(
|
|
898
|
+
const J = Math.max(Math.min(n - c, B), 1);
|
|
899
|
+
l.push(" | " + "^".repeat(J));
|
|
833
900
|
}
|
|
834
901
|
c += B + 1;
|
|
835
902
|
}
|
|
@@ -958,38 +1025,38 @@ const RE_HTML_TAG = /<\/?[\w\s="/.':;#-\/]+>/, detectHtmlTag = (e) => RE_HTML_TA
|
|
|
958
1025
|
function createScanner(e) {
|
|
959
1026
|
const t = e;
|
|
960
1027
|
let n = 0, s = 1, c = 1, l = 0;
|
|
961
|
-
const C = (ie) => t[ie] === CHAR_CR && t[ie + 1] === CHAR_LF, A = (ie) => t[ie] === CHAR_LF, L = (ie) => t[ie] === CHAR_PS, B = (ie) => t[ie] === CHAR_LS,
|
|
962
|
-
function
|
|
963
|
-
return l = 0,
|
|
1028
|
+
const C = (ie) => t[ie] === CHAR_CR && t[ie + 1] === CHAR_LF, A = (ie) => t[ie] === CHAR_LF, L = (ie) => t[ie] === CHAR_PS, B = (ie) => t[ie] === CHAR_LS, J = (ie) => C(ie) || A(ie) || L(ie) || B(ie), U = () => n, V = () => s, X = () => c, ce = () => l, se = (ie) => C(ie) || L(ie) || B(ie) ? CHAR_LF : t[ie], ne = () => se(n), q = () => se(n + l);
|
|
1029
|
+
function Y() {
|
|
1030
|
+
return l = 0, J(n) && (s++, c = 0), C(n) && n++, n++, c++, t[n];
|
|
964
1031
|
}
|
|
965
|
-
function
|
|
1032
|
+
function oe() {
|
|
966
1033
|
return C(n + l) && l++, l++, t[n + l];
|
|
967
1034
|
}
|
|
968
|
-
function
|
|
1035
|
+
function re() {
|
|
969
1036
|
n = 0, s = 1, c = 1, l = 0;
|
|
970
1037
|
}
|
|
971
|
-
function
|
|
1038
|
+
function ae(ie = 0) {
|
|
972
1039
|
l = ie;
|
|
973
1040
|
}
|
|
974
|
-
function
|
|
1041
|
+
function te() {
|
|
975
1042
|
const ie = n + l;
|
|
976
1043
|
for (; ie !== n; )
|
|
977
|
-
|
|
1044
|
+
Y();
|
|
978
1045
|
l = 0;
|
|
979
1046
|
}
|
|
980
1047
|
return {
|
|
981
1048
|
index: U,
|
|
982
1049
|
line: V,
|
|
983
|
-
column:
|
|
1050
|
+
column: X,
|
|
984
1051
|
peekOffset: ce,
|
|
985
1052
|
charAt: se,
|
|
986
|
-
currentChar:
|
|
987
|
-
currentPeek:
|
|
988
|
-
next:
|
|
989
|
-
peek:
|
|
990
|
-
reset:
|
|
991
|
-
resetPeek:
|
|
992
|
-
skipToPeek:
|
|
1053
|
+
currentChar: ne,
|
|
1054
|
+
currentPeek: q,
|
|
1055
|
+
next: Y,
|
|
1056
|
+
peek: oe,
|
|
1057
|
+
reset: re,
|
|
1058
|
+
resetPeek: ae,
|
|
1059
|
+
skipToPeek: te
|
|
993
1060
|
};
|
|
994
1061
|
}
|
|
995
1062
|
const EOF = void 0, DOT = ".", LITERAL_DELIMITER = "'", ERROR_DOMAIN$3 = "tokenizer";
|
|
@@ -1006,23 +1073,23 @@ function createTokenizer(e, t = {}) {
|
|
|
1006
1073
|
braceNest: 0,
|
|
1007
1074
|
inLinked: !1,
|
|
1008
1075
|
text: ""
|
|
1009
|
-
}, B = () => L, { onError:
|
|
1010
|
-
function U(R, I, F, ...
|
|
1076
|
+
}, B = () => L, { onError: J } = t;
|
|
1077
|
+
function U(R, I, F, ...G) {
|
|
1011
1078
|
const j = B();
|
|
1012
|
-
if (I.column += F, I.offset += F,
|
|
1079
|
+
if (I.column += F, I.offset += F, J) {
|
|
1013
1080
|
const K = n ? createLocation(j.startLoc, I) : null, Z = createCompileError(R, K, {
|
|
1014
1081
|
domain: ERROR_DOMAIN$3,
|
|
1015
|
-
args:
|
|
1082
|
+
args: G
|
|
1016
1083
|
});
|
|
1017
|
-
|
|
1084
|
+
J(Z);
|
|
1018
1085
|
}
|
|
1019
1086
|
}
|
|
1020
1087
|
function V(R, I, F) {
|
|
1021
1088
|
R.endLoc = l(), R.currentType = I;
|
|
1022
|
-
const
|
|
1023
|
-
return n && (
|
|
1089
|
+
const G = { type: I };
|
|
1090
|
+
return n && (G.loc = createLocation(R.startLoc, R.endLoc)), F != null && (G.value = F), G;
|
|
1024
1091
|
}
|
|
1025
|
-
const
|
|
1092
|
+
const X = (R) => V(
|
|
1026
1093
|
R,
|
|
1027
1094
|
14
|
|
1028
1095
|
/* TokenTypes.EOF */
|
|
@@ -1036,11 +1103,11 @@ function createTokenizer(e, t = {}) {
|
|
|
1036
1103
|
I += R.currentPeek(), R.peek();
|
|
1037
1104
|
return I;
|
|
1038
1105
|
}
|
|
1039
|
-
function
|
|
1106
|
+
function ne(R) {
|
|
1040
1107
|
const I = se(R);
|
|
1041
1108
|
return R.skipToPeek(), I;
|
|
1042
1109
|
}
|
|
1043
|
-
function
|
|
1110
|
+
function q(R) {
|
|
1044
1111
|
if (R === EOF)
|
|
1045
1112
|
return !1;
|
|
1046
1113
|
const I = R.charCodeAt(0);
|
|
@@ -1048,71 +1115,71 @@ function createTokenizer(e, t = {}) {
|
|
|
1048
1115
|
I >= 65 && I <= 90 || // A-Z
|
|
1049
1116
|
I === 95;
|
|
1050
1117
|
}
|
|
1051
|
-
function
|
|
1118
|
+
function Y(R) {
|
|
1052
1119
|
if (R === EOF)
|
|
1053
1120
|
return !1;
|
|
1054
1121
|
const I = R.charCodeAt(0);
|
|
1055
1122
|
return I >= 48 && I <= 57;
|
|
1056
1123
|
}
|
|
1057
|
-
function
|
|
1124
|
+
function oe(R, I) {
|
|
1058
1125
|
const { currentType: F } = I;
|
|
1059
1126
|
if (F !== 2)
|
|
1060
1127
|
return !1;
|
|
1061
1128
|
se(R);
|
|
1062
|
-
const
|
|
1063
|
-
return R.resetPeek(),
|
|
1129
|
+
const G = q(R.currentPeek());
|
|
1130
|
+
return R.resetPeek(), G;
|
|
1064
1131
|
}
|
|
1065
|
-
function
|
|
1132
|
+
function re(R, I) {
|
|
1066
1133
|
const { currentType: F } = I;
|
|
1067
1134
|
if (F !== 2)
|
|
1068
1135
|
return !1;
|
|
1069
1136
|
se(R);
|
|
1070
|
-
const
|
|
1137
|
+
const G = R.currentPeek() === "-" ? R.peek() : R.currentPeek(), j = Y(G);
|
|
1071
1138
|
return R.resetPeek(), j;
|
|
1072
1139
|
}
|
|
1073
|
-
function
|
|
1140
|
+
function ae(R, I) {
|
|
1074
1141
|
const { currentType: F } = I;
|
|
1075
1142
|
if (F !== 2)
|
|
1076
1143
|
return !1;
|
|
1077
1144
|
se(R);
|
|
1078
|
-
const
|
|
1079
|
-
return R.resetPeek(),
|
|
1145
|
+
const G = R.currentPeek() === LITERAL_DELIMITER;
|
|
1146
|
+
return R.resetPeek(), G;
|
|
1080
1147
|
}
|
|
1081
|
-
function
|
|
1148
|
+
function te(R, I) {
|
|
1082
1149
|
const { currentType: F } = I;
|
|
1083
1150
|
if (F !== 8)
|
|
1084
1151
|
return !1;
|
|
1085
1152
|
se(R);
|
|
1086
|
-
const
|
|
1087
|
-
return R.resetPeek(),
|
|
1153
|
+
const G = R.currentPeek() === ".";
|
|
1154
|
+
return R.resetPeek(), G;
|
|
1088
1155
|
}
|
|
1089
1156
|
function ie(R, I) {
|
|
1090
1157
|
const { currentType: F } = I;
|
|
1091
1158
|
if (F !== 9)
|
|
1092
1159
|
return !1;
|
|
1093
1160
|
se(R);
|
|
1094
|
-
const
|
|
1095
|
-
return R.resetPeek(),
|
|
1161
|
+
const G = q(R.currentPeek());
|
|
1162
|
+
return R.resetPeek(), G;
|
|
1096
1163
|
}
|
|
1097
|
-
function
|
|
1164
|
+
function H(R, I) {
|
|
1098
1165
|
const { currentType: F } = I;
|
|
1099
1166
|
if (!(F === 8 || F === 12))
|
|
1100
1167
|
return !1;
|
|
1101
1168
|
se(R);
|
|
1102
|
-
const
|
|
1103
|
-
return R.resetPeek(),
|
|
1169
|
+
const G = R.currentPeek() === ":";
|
|
1170
|
+
return R.resetPeek(), G;
|
|
1104
1171
|
}
|
|
1105
1172
|
function $(R, I) {
|
|
1106
1173
|
const { currentType: F } = I;
|
|
1107
1174
|
if (F !== 10)
|
|
1108
1175
|
return !1;
|
|
1109
|
-
const
|
|
1176
|
+
const G = () => {
|
|
1110
1177
|
const K = R.currentPeek();
|
|
1111
|
-
return K === "{" ?
|
|
1112
|
-
}, j =
|
|
1178
|
+
return K === "{" ? q(R.peek()) : K === "@" || K === "%" || K === "|" || K === ":" || K === "." || K === CHAR_SP || !K ? !1 : K === CHAR_LF ? (R.peek(), G()) : q(K);
|
|
1179
|
+
}, j = G();
|
|
1113
1180
|
return R.resetPeek(), j;
|
|
1114
1181
|
}
|
|
1115
|
-
function
|
|
1182
|
+
function Q(R) {
|
|
1116
1183
|
se(R);
|
|
1117
1184
|
const I = R.currentPeek() === "|";
|
|
1118
1185
|
return R.resetPeek(), I;
|
|
@@ -1128,35 +1195,35 @@ function createTokenizer(e, t = {}) {
|
|
|
1128
1195
|
const F = (j = !1, K = "", Z = !1) => {
|
|
1129
1196
|
const z = R.currentPeek();
|
|
1130
1197
|
return z === "{" ? K === "%" ? !1 : j : z === "@" || !z ? K === "%" ? !0 : j : z === "%" ? (R.peek(), F(j, "%", !0)) : z === "|" ? K === "%" || Z ? !0 : !(K === CHAR_SP || K === CHAR_LF) : z === CHAR_SP ? (R.peek(), F(!0, CHAR_SP, Z)) : z === CHAR_LF ? (R.peek(), F(!0, CHAR_LF, Z)) : !0;
|
|
1131
|
-
},
|
|
1132
|
-
return I && R.resetPeek(),
|
|
1198
|
+
}, G = F();
|
|
1199
|
+
return I && R.resetPeek(), G;
|
|
1133
1200
|
}
|
|
1134
|
-
function
|
|
1201
|
+
function me(R, I) {
|
|
1135
1202
|
const F = R.currentChar();
|
|
1136
1203
|
return F === EOF ? EOF : I(F) ? (R.next(), F) : null;
|
|
1137
1204
|
}
|
|
1138
|
-
function
|
|
1139
|
-
return
|
|
1140
|
-
const
|
|
1141
|
-
return
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1205
|
+
function Oe(R) {
|
|
1206
|
+
return me(R, (F) => {
|
|
1207
|
+
const G = F.charCodeAt(0);
|
|
1208
|
+
return G >= 97 && G <= 122 || // a-z
|
|
1209
|
+
G >= 65 && G <= 90 || // A-Z
|
|
1210
|
+
G >= 48 && G <= 57 || // 0-9
|
|
1211
|
+
G === 95 || // _
|
|
1212
|
+
G === 36;
|
|
1146
1213
|
});
|
|
1147
1214
|
}
|
|
1148
1215
|
function Ae(R) {
|
|
1149
|
-
return
|
|
1150
|
-
const
|
|
1151
|
-
return
|
|
1216
|
+
return me(R, (F) => {
|
|
1217
|
+
const G = F.charCodeAt(0);
|
|
1218
|
+
return G >= 48 && G <= 57;
|
|
1152
1219
|
});
|
|
1153
1220
|
}
|
|
1154
1221
|
function Ce(R) {
|
|
1155
|
-
return
|
|
1156
|
-
const
|
|
1157
|
-
return
|
|
1158
|
-
|
|
1159
|
-
|
|
1222
|
+
return me(R, (F) => {
|
|
1223
|
+
const G = F.charCodeAt(0);
|
|
1224
|
+
return G >= 48 && G <= 57 || // 0-9
|
|
1225
|
+
G >= 65 && G <= 70 || // A-F
|
|
1226
|
+
G >= 97 && G <= 102;
|
|
1160
1227
|
});
|
|
1161
1228
|
}
|
|
1162
1229
|
function Ee(R) {
|
|
@@ -1166,11 +1233,11 @@ function createTokenizer(e, t = {}) {
|
|
|
1166
1233
|
return F;
|
|
1167
1234
|
}
|
|
1168
1235
|
function Re(R) {
|
|
1169
|
-
|
|
1236
|
+
ne(R);
|
|
1170
1237
|
const I = R.currentChar();
|
|
1171
1238
|
return I !== "%" && U(CompileErrorCodes.EXPECTED_TOKEN, l(), 0, I), R.next(), "%";
|
|
1172
1239
|
}
|
|
1173
|
-
function
|
|
1240
|
+
function Te(R) {
|
|
1174
1241
|
let I = "";
|
|
1175
1242
|
for (; ; ) {
|
|
1176
1243
|
const F = R.currentChar();
|
|
@@ -1185,7 +1252,7 @@ function createTokenizer(e, t = {}) {
|
|
|
1185
1252
|
if (de(R))
|
|
1186
1253
|
I += F, R.next();
|
|
1187
1254
|
else {
|
|
1188
|
-
if (
|
|
1255
|
+
if (Q(R))
|
|
1189
1256
|
break;
|
|
1190
1257
|
I += F, R.next();
|
|
1191
1258
|
}
|
|
@@ -1195,22 +1262,22 @@ function createTokenizer(e, t = {}) {
|
|
|
1195
1262
|
return I;
|
|
1196
1263
|
}
|
|
1197
1264
|
function Fe(R) {
|
|
1198
|
-
|
|
1265
|
+
ne(R);
|
|
1199
1266
|
let I = "", F = "";
|
|
1200
|
-
for (; I =
|
|
1267
|
+
for (; I = Oe(R); )
|
|
1201
1268
|
F += I;
|
|
1202
1269
|
return R.currentChar() === EOF && U(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, l(), 0), F;
|
|
1203
1270
|
}
|
|
1204
|
-
function
|
|
1205
|
-
|
|
1271
|
+
function ke(R) {
|
|
1272
|
+
ne(R);
|
|
1206
1273
|
let I = "";
|
|
1207
1274
|
return R.currentChar() === "-" ? (R.next(), I += `-${Ee(R)}`) : I += Ee(R), R.currentChar() === EOF && U(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, l(), 0), I;
|
|
1208
1275
|
}
|
|
1209
1276
|
function he(R) {
|
|
1210
|
-
|
|
1277
|
+
ne(R), ce(R, "'");
|
|
1211
1278
|
let I = "", F = "";
|
|
1212
|
-
const
|
|
1213
|
-
for (; I =
|
|
1279
|
+
const G = (K) => K !== LITERAL_DELIMITER && K !== CHAR_LF;
|
|
1280
|
+
for (; I = me(R, G); )
|
|
1214
1281
|
I === "\\" ? F += Le(R) : F += I;
|
|
1215
1282
|
const j = R.currentChar();
|
|
1216
1283
|
return j === CHAR_LF || j === EOF ? (U(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, l(), 0), j === CHAR_LF && (R.next(), ce(R, "'")), F) : (ce(R, "'"), F);
|
|
@@ -1231,46 +1298,46 @@ function createTokenizer(e, t = {}) {
|
|
|
1231
1298
|
}
|
|
1232
1299
|
function fe(R, I, F) {
|
|
1233
1300
|
ce(R, I);
|
|
1234
|
-
let
|
|
1301
|
+
let G = "";
|
|
1235
1302
|
for (let j = 0; j < F; j++) {
|
|
1236
1303
|
const K = Ce(R);
|
|
1237
1304
|
if (!K) {
|
|
1238
|
-
U(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE, l(), 0, `\\${I}${
|
|
1305
|
+
U(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE, l(), 0, `\\${I}${G}${R.currentChar()}`);
|
|
1239
1306
|
break;
|
|
1240
1307
|
}
|
|
1241
|
-
|
|
1308
|
+
G += K;
|
|
1242
1309
|
}
|
|
1243
|
-
return `\\${I}${
|
|
1310
|
+
return `\\${I}${G}`;
|
|
1244
1311
|
}
|
|
1245
1312
|
function Pe(R) {
|
|
1246
|
-
|
|
1313
|
+
ne(R);
|
|
1247
1314
|
let I = "", F = "";
|
|
1248
|
-
const
|
|
1249
|
-
for (; I =
|
|
1315
|
+
const G = (j) => j !== "{" && j !== "}" && j !== CHAR_SP && j !== CHAR_LF;
|
|
1316
|
+
for (; I = me(R, G); )
|
|
1250
1317
|
F += I;
|
|
1251
1318
|
return F;
|
|
1252
1319
|
}
|
|
1253
|
-
function
|
|
1320
|
+
function Me(R) {
|
|
1254
1321
|
let I = "", F = "";
|
|
1255
|
-
for (; I =
|
|
1322
|
+
for (; I = Oe(R); )
|
|
1256
1323
|
F += I;
|
|
1257
1324
|
return F;
|
|
1258
1325
|
}
|
|
1259
1326
|
function De(R) {
|
|
1260
|
-
const I = (F = !1,
|
|
1327
|
+
const I = (F = !1, G) => {
|
|
1261
1328
|
const j = R.currentChar();
|
|
1262
|
-
return j === "{" || j === "%" || j === "@" || j === "|" || j === "(" || j === ")" || !j || j === CHAR_SP ?
|
|
1329
|
+
return j === "{" || j === "%" || j === "@" || j === "|" || j === "(" || j === ")" || !j || j === CHAR_SP ? G : j === CHAR_LF || j === DOT ? (G += j, R.next(), I(F, G)) : (G += j, R.next(), I(!0, G));
|
|
1263
1330
|
};
|
|
1264
1331
|
return I(!1, "");
|
|
1265
1332
|
}
|
|
1266
1333
|
function Ie(R) {
|
|
1267
|
-
|
|
1334
|
+
ne(R);
|
|
1268
1335
|
const I = ce(
|
|
1269
1336
|
R,
|
|
1270
1337
|
"|"
|
|
1271
1338
|
/* TokenChars.Pipe */
|
|
1272
1339
|
);
|
|
1273
|
-
return
|
|
1340
|
+
return ne(R), I;
|
|
1274
1341
|
}
|
|
1275
1342
|
function be(R, I) {
|
|
1276
1343
|
let F = null;
|
|
@@ -1281,30 +1348,30 @@ function createTokenizer(e, t = {}) {
|
|
|
1281
1348
|
2,
|
|
1282
1349
|
"{"
|
|
1283
1350
|
/* TokenChars.BraceLeft */
|
|
1284
|
-
),
|
|
1351
|
+
), ne(R), I.braceNest++, F;
|
|
1285
1352
|
case "}":
|
|
1286
1353
|
return I.braceNest > 0 && I.currentType === 2 && U(CompileErrorCodes.EMPTY_PLACEHOLDER, l(), 0), R.next(), F = V(
|
|
1287
1354
|
I,
|
|
1288
1355
|
3,
|
|
1289
1356
|
"}"
|
|
1290
1357
|
/* TokenChars.BraceRight */
|
|
1291
|
-
), I.braceNest--, I.braceNest > 0 &&
|
|
1358
|
+
), I.braceNest--, I.braceNest > 0 && ne(R), I.inLinked && I.braceNest === 0 && (I.inLinked = !1), F;
|
|
1292
1359
|
case "@":
|
|
1293
|
-
return I.braceNest > 0 && U(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, l(), 0), F = D(R, I) ||
|
|
1360
|
+
return I.braceNest > 0 && U(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, l(), 0), F = D(R, I) || X(I), I.braceNest = 0, F;
|
|
1294
1361
|
default: {
|
|
1295
1362
|
let j = !0, K = !0, Z = !0;
|
|
1296
|
-
if (
|
|
1363
|
+
if (Q(R))
|
|
1297
1364
|
return I.braceNest > 0 && U(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, l(), 0), F = V(I, 1, Ie(R)), I.braceNest = 0, I.inLinked = !1, F;
|
|
1298
1365
|
if (I.braceNest > 0 && (I.currentType === 5 || I.currentType === 6 || I.currentType === 7))
|
|
1299
1366
|
return U(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, l(), 0), I.braceNest = 0, M(R, I);
|
|
1300
|
-
if (j =
|
|
1301
|
-
return F = V(I, 5, Fe(R)),
|
|
1302
|
-
if (K =
|
|
1303
|
-
return F = V(I, 6,
|
|
1304
|
-
if (Z =
|
|
1305
|
-
return F = V(I, 7, he(R)),
|
|
1367
|
+
if (j = oe(R, I))
|
|
1368
|
+
return F = V(I, 5, Fe(R)), ne(R), F;
|
|
1369
|
+
if (K = re(R, I))
|
|
1370
|
+
return F = V(I, 6, ke(R)), ne(R), F;
|
|
1371
|
+
if (Z = ae(R, I))
|
|
1372
|
+
return F = V(I, 7, he(R)), ne(R), F;
|
|
1306
1373
|
if (!j && !K && !Z)
|
|
1307
|
-
return F = V(I, 13, Pe(R)), U(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER, l(), 0, F.value),
|
|
1374
|
+
return F = V(I, 13, Pe(R)), U(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER, l(), 0, F.value), ne(R), F;
|
|
1308
1375
|
break;
|
|
1309
1376
|
}
|
|
1310
1377
|
}
|
|
@@ -1312,32 +1379,32 @@ function createTokenizer(e, t = {}) {
|
|
|
1312
1379
|
}
|
|
1313
1380
|
function D(R, I) {
|
|
1314
1381
|
const { currentType: F } = I;
|
|
1315
|
-
let
|
|
1382
|
+
let G = null;
|
|
1316
1383
|
const j = R.currentChar();
|
|
1317
1384
|
switch ((F === 8 || F === 9 || F === 12 || F === 10) && (j === CHAR_LF || j === CHAR_SP) && U(CompileErrorCodes.INVALID_LINKED_FORMAT, l(), 0), j) {
|
|
1318
1385
|
case "@":
|
|
1319
|
-
return R.next(),
|
|
1386
|
+
return R.next(), G = V(
|
|
1320
1387
|
I,
|
|
1321
1388
|
8,
|
|
1322
1389
|
"@"
|
|
1323
1390
|
/* TokenChars.LinkedAlias */
|
|
1324
|
-
), I.inLinked = !0,
|
|
1391
|
+
), I.inLinked = !0, G;
|
|
1325
1392
|
case ".":
|
|
1326
|
-
return
|
|
1393
|
+
return ne(R), R.next(), V(
|
|
1327
1394
|
I,
|
|
1328
1395
|
9,
|
|
1329
1396
|
"."
|
|
1330
1397
|
/* TokenChars.LinkedDot */
|
|
1331
1398
|
);
|
|
1332
1399
|
case ":":
|
|
1333
|
-
return
|
|
1400
|
+
return ne(R), R.next(), V(
|
|
1334
1401
|
I,
|
|
1335
1402
|
10,
|
|
1336
1403
|
":"
|
|
1337
1404
|
/* TokenChars.LinkedDelimiter */
|
|
1338
1405
|
);
|
|
1339
1406
|
default:
|
|
1340
|
-
return
|
|
1407
|
+
return Q(R) ? (G = V(I, 1, Ie(R)), I.braceNest = 0, I.inLinked = !1, G) : te(R, I) || H(R, I) ? (ne(R), D(R, I)) : ie(R, I) ? (ne(R), V(I, 12, Me(R))) : $(R, I) ? (ne(R), j === "{" ? be(R, I) || G : V(I, 11, De(R))) : (F === 8 && U(CompileErrorCodes.INVALID_LINKED_FORMAT, l(), 0), I.braceNest = 0, I.inLinked = !1, M(R, I));
|
|
1341
1408
|
}
|
|
1342
1409
|
}
|
|
1343
1410
|
function M(R, I) {
|
|
@@ -1346,12 +1413,12 @@ function createTokenizer(e, t = {}) {
|
|
|
1346
1413
|
/* TokenTypes.EOF */
|
|
1347
1414
|
};
|
|
1348
1415
|
if (I.braceNest > 0)
|
|
1349
|
-
return be(R, I) ||
|
|
1416
|
+
return be(R, I) || X(I);
|
|
1350
1417
|
if (I.inLinked)
|
|
1351
|
-
return D(R, I) ||
|
|
1418
|
+
return D(R, I) || X(I);
|
|
1352
1419
|
switch (R.currentChar()) {
|
|
1353
1420
|
case "{":
|
|
1354
|
-
return be(R, I) ||
|
|
1421
|
+
return be(R, I) || X(I);
|
|
1355
1422
|
case "}":
|
|
1356
1423
|
return U(CompileErrorCodes.UNBALANCED_CLOSING_BRACE, l(), 0), R.next(), V(
|
|
1357
1424
|
I,
|
|
@@ -1360,23 +1427,23 @@ function createTokenizer(e, t = {}) {
|
|
|
1360
1427
|
/* TokenChars.BraceRight */
|
|
1361
1428
|
);
|
|
1362
1429
|
case "@":
|
|
1363
|
-
return D(R, I) ||
|
|
1430
|
+
return D(R, I) || X(I);
|
|
1364
1431
|
default: {
|
|
1365
|
-
if (
|
|
1432
|
+
if (Q(R))
|
|
1366
1433
|
return F = V(I, 1, Ie(R)), I.braceNest = 0, I.inLinked = !1, F;
|
|
1367
1434
|
const { isModulo: j, hasSpace: K } = pe(R);
|
|
1368
1435
|
if (j)
|
|
1369
|
-
return K ? V(I, 0,
|
|
1436
|
+
return K ? V(I, 0, Te(R)) : V(I, 4, Re(R));
|
|
1370
1437
|
if (de(R))
|
|
1371
|
-
return V(I, 0,
|
|
1438
|
+
return V(I, 0, Te(R));
|
|
1372
1439
|
break;
|
|
1373
1440
|
}
|
|
1374
1441
|
}
|
|
1375
1442
|
return F;
|
|
1376
1443
|
}
|
|
1377
1444
|
function W() {
|
|
1378
|
-
const { currentType: R, offset: I, startLoc: F, endLoc:
|
|
1379
|
-
return L.lastType = R, L.lastOffset = I, L.lastStartLoc = F, L.lastEndLoc =
|
|
1445
|
+
const { currentType: R, offset: I, startLoc: F, endLoc: G } = L;
|
|
1446
|
+
return L.lastType = R, L.lastOffset = I, L.lastStartLoc = F, L.lastEndLoc = G, L.offset = c(), L.startLoc = l(), s.currentChar() === EOF ? V(
|
|
1380
1447
|
L,
|
|
1381
1448
|
14
|
|
1382
1449
|
/* TokenTypes.EOF */
|
|
@@ -1404,134 +1471,134 @@ function fromEscapeSequence(e, t, n) {
|
|
|
1404
1471
|
}
|
|
1405
1472
|
function createParser(e = {}) {
|
|
1406
1473
|
const t = e.location !== !1, { onError: n } = e;
|
|
1407
|
-
function s(
|
|
1408
|
-
const
|
|
1409
|
-
if (
|
|
1410
|
-
const ie = t ? createLocation(
|
|
1474
|
+
function s(q, Y, oe, re, ...ae) {
|
|
1475
|
+
const te = q.currentPosition();
|
|
1476
|
+
if (te.offset += re, te.column += re, n) {
|
|
1477
|
+
const ie = t ? createLocation(oe, te) : null, H = createCompileError(Y, ie, {
|
|
1411
1478
|
domain: ERROR_DOMAIN$2,
|
|
1412
|
-
args:
|
|
1479
|
+
args: ae
|
|
1413
1480
|
});
|
|
1414
|
-
n(
|
|
1481
|
+
n(H);
|
|
1415
1482
|
}
|
|
1416
1483
|
}
|
|
1417
|
-
function c(
|
|
1418
|
-
const
|
|
1419
|
-
return t && (
|
|
1484
|
+
function c(q, Y, oe) {
|
|
1485
|
+
const re = { type: q };
|
|
1486
|
+
return t && (re.start = Y, re.end = Y, re.loc = { start: oe, end: oe }), re;
|
|
1420
1487
|
}
|
|
1421
|
-
function l(
|
|
1422
|
-
|
|
1488
|
+
function l(q, Y, oe, re) {
|
|
1489
|
+
re && (q.type = re), t && (q.end = Y, q.loc && (q.loc.end = oe));
|
|
1423
1490
|
}
|
|
1424
|
-
function C(
|
|
1425
|
-
const
|
|
1426
|
-
return
|
|
1491
|
+
function C(q, Y) {
|
|
1492
|
+
const oe = q.context(), re = c(3, oe.offset, oe.startLoc);
|
|
1493
|
+
return re.value = Y, l(re, q.currentOffset(), q.currentPosition()), re;
|
|
1427
1494
|
}
|
|
1428
|
-
function A(
|
|
1429
|
-
const
|
|
1430
|
-
return
|
|
1495
|
+
function A(q, Y) {
|
|
1496
|
+
const oe = q.context(), { lastOffset: re, lastStartLoc: ae } = oe, te = c(5, re, ae);
|
|
1497
|
+
return te.index = parseInt(Y, 10), q.nextToken(), l(te, q.currentOffset(), q.currentPosition()), te;
|
|
1431
1498
|
}
|
|
1432
|
-
function L(
|
|
1433
|
-
const
|
|
1434
|
-
return
|
|
1499
|
+
function L(q, Y) {
|
|
1500
|
+
const oe = q.context(), { lastOffset: re, lastStartLoc: ae } = oe, te = c(4, re, ae);
|
|
1501
|
+
return te.key = Y, q.nextToken(), l(te, q.currentOffset(), q.currentPosition()), te;
|
|
1435
1502
|
}
|
|
1436
|
-
function B(
|
|
1437
|
-
const
|
|
1438
|
-
return
|
|
1503
|
+
function B(q, Y) {
|
|
1504
|
+
const oe = q.context(), { lastOffset: re, lastStartLoc: ae } = oe, te = c(9, re, ae);
|
|
1505
|
+
return te.value = Y.replace(KNOWN_ESCAPES, fromEscapeSequence), q.nextToken(), l(te, q.currentOffset(), q.currentPosition()), te;
|
|
1439
1506
|
}
|
|
1440
|
-
function q
|
|
1441
|
-
const
|
|
1442
|
-
return
|
|
1443
|
-
nextConsumeToken:
|
|
1444
|
-
node:
|
|
1445
|
-
}) : (
|
|
1446
|
-
node:
|
|
1507
|
+
function J(q) {
|
|
1508
|
+
const Y = q.nextToken(), oe = q.context(), { lastOffset: re, lastStartLoc: ae } = oe, te = c(8, re, ae);
|
|
1509
|
+
return Y.type !== 12 ? (s(q, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER, oe.lastStartLoc, 0), te.value = "", l(te, re, ae), {
|
|
1510
|
+
nextConsumeToken: Y,
|
|
1511
|
+
node: te
|
|
1512
|
+
}) : (Y.value == null && s(q, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, oe.lastStartLoc, 0, getTokenCaption(Y)), te.value = Y.value || "", l(te, q.currentOffset(), q.currentPosition()), {
|
|
1513
|
+
node: te
|
|
1447
1514
|
});
|
|
1448
1515
|
}
|
|
1449
|
-
function U(
|
|
1450
|
-
const
|
|
1451
|
-
return
|
|
1516
|
+
function U(q, Y) {
|
|
1517
|
+
const oe = q.context(), re = c(7, oe.offset, oe.startLoc);
|
|
1518
|
+
return re.value = Y, l(re, q.currentOffset(), q.currentPosition()), re;
|
|
1452
1519
|
}
|
|
1453
|
-
function V(
|
|
1454
|
-
const
|
|
1455
|
-
let
|
|
1456
|
-
if (
|
|
1457
|
-
const
|
|
1458
|
-
|
|
1520
|
+
function V(q) {
|
|
1521
|
+
const Y = q.context(), oe = c(6, Y.offset, Y.startLoc);
|
|
1522
|
+
let re = q.nextToken();
|
|
1523
|
+
if (re.type === 9) {
|
|
1524
|
+
const ae = J(q);
|
|
1525
|
+
oe.modifier = ae.node, re = ae.nextConsumeToken || q.nextToken();
|
|
1459
1526
|
}
|
|
1460
|
-
switch (
|
|
1527
|
+
switch (re.type !== 10 && s(q, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Y.lastStartLoc, 0, getTokenCaption(re)), re = q.nextToken(), re.type === 2 && (re = q.nextToken()), re.type) {
|
|
1461
1528
|
case 11:
|
|
1462
|
-
|
|
1529
|
+
re.value == null && s(q, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Y.lastStartLoc, 0, getTokenCaption(re)), oe.key = U(q, re.value || "");
|
|
1463
1530
|
break;
|
|
1464
1531
|
case 5:
|
|
1465
|
-
|
|
1532
|
+
re.value == null && s(q, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Y.lastStartLoc, 0, getTokenCaption(re)), oe.key = L(q, re.value || "");
|
|
1466
1533
|
break;
|
|
1467
1534
|
case 6:
|
|
1468
|
-
|
|
1535
|
+
re.value == null && s(q, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Y.lastStartLoc, 0, getTokenCaption(re)), oe.key = A(q, re.value || "");
|
|
1469
1536
|
break;
|
|
1470
1537
|
case 7:
|
|
1471
|
-
|
|
1538
|
+
re.value == null && s(q, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Y.lastStartLoc, 0, getTokenCaption(re)), oe.key = B(q, re.value || "");
|
|
1472
1539
|
break;
|
|
1473
1540
|
default: {
|
|
1474
|
-
s(
|
|
1475
|
-
const
|
|
1476
|
-
return
|
|
1477
|
-
nextConsumeToken:
|
|
1478
|
-
node:
|
|
1541
|
+
s(q, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY, Y.lastStartLoc, 0);
|
|
1542
|
+
const ae = q.context(), te = c(7, ae.offset, ae.startLoc);
|
|
1543
|
+
return te.value = "", l(te, ae.offset, ae.startLoc), oe.key = te, l(oe, ae.offset, ae.startLoc), {
|
|
1544
|
+
nextConsumeToken: re,
|
|
1545
|
+
node: oe
|
|
1479
1546
|
};
|
|
1480
1547
|
}
|
|
1481
1548
|
}
|
|
1482
|
-
return l(
|
|
1483
|
-
node:
|
|
1549
|
+
return l(oe, q.currentOffset(), q.currentPosition()), {
|
|
1550
|
+
node: oe
|
|
1484
1551
|
};
|
|
1485
1552
|
}
|
|
1486
|
-
function
|
|
1487
|
-
const
|
|
1488
|
-
|
|
1489
|
-
let
|
|
1553
|
+
function X(q) {
|
|
1554
|
+
const Y = q.context(), oe = Y.currentType === 1 ? q.currentOffset() : Y.offset, re = Y.currentType === 1 ? Y.endLoc : Y.startLoc, ae = c(2, oe, re);
|
|
1555
|
+
ae.items = [];
|
|
1556
|
+
let te = null;
|
|
1490
1557
|
do {
|
|
1491
|
-
const $ =
|
|
1492
|
-
switch (
|
|
1558
|
+
const $ = te || q.nextToken();
|
|
1559
|
+
switch (te = null, $.type) {
|
|
1493
1560
|
case 0:
|
|
1494
|
-
$.value == null && s(
|
|
1561
|
+
$.value == null && s(q, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Y.lastStartLoc, 0, getTokenCaption($)), ae.items.push(C(q, $.value || ""));
|
|
1495
1562
|
break;
|
|
1496
1563
|
case 6:
|
|
1497
|
-
$.value == null && s(
|
|
1564
|
+
$.value == null && s(q, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Y.lastStartLoc, 0, getTokenCaption($)), ae.items.push(A(q, $.value || ""));
|
|
1498
1565
|
break;
|
|
1499
1566
|
case 5:
|
|
1500
|
-
$.value == null && s(
|
|
1567
|
+
$.value == null && s(q, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Y.lastStartLoc, 0, getTokenCaption($)), ae.items.push(L(q, $.value || ""));
|
|
1501
1568
|
break;
|
|
1502
1569
|
case 7:
|
|
1503
|
-
$.value == null && s(
|
|
1570
|
+
$.value == null && s(q, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Y.lastStartLoc, 0, getTokenCaption($)), ae.items.push(B(q, $.value || ""));
|
|
1504
1571
|
break;
|
|
1505
1572
|
case 8: {
|
|
1506
|
-
const
|
|
1507
|
-
|
|
1573
|
+
const Q = V(q);
|
|
1574
|
+
ae.items.push(Q.node), te = Q.nextConsumeToken || null;
|
|
1508
1575
|
break;
|
|
1509
1576
|
}
|
|
1510
1577
|
}
|
|
1511
|
-
} while (
|
|
1512
|
-
const ie =
|
|
1513
|
-
return l(
|
|
1514
|
-
}
|
|
1515
|
-
function ce(
|
|
1516
|
-
const
|
|
1517
|
-
let
|
|
1518
|
-
const ie = c(1,
|
|
1519
|
-
ie.cases = [], ie.cases.push(
|
|
1578
|
+
} while (Y.currentType !== 14 && Y.currentType !== 1);
|
|
1579
|
+
const ie = Y.currentType === 1 ? Y.lastOffset : q.currentOffset(), H = Y.currentType === 1 ? Y.lastEndLoc : q.currentPosition();
|
|
1580
|
+
return l(ae, ie, H), ae;
|
|
1581
|
+
}
|
|
1582
|
+
function ce(q, Y, oe, re) {
|
|
1583
|
+
const ae = q.context();
|
|
1584
|
+
let te = re.items.length === 0;
|
|
1585
|
+
const ie = c(1, Y, oe);
|
|
1586
|
+
ie.cases = [], ie.cases.push(re);
|
|
1520
1587
|
do {
|
|
1521
|
-
const
|
|
1522
|
-
|
|
1523
|
-
} while (
|
|
1524
|
-
return
|
|
1588
|
+
const H = X(q);
|
|
1589
|
+
te || (te = H.items.length === 0), ie.cases.push(H);
|
|
1590
|
+
} while (ae.currentType !== 14);
|
|
1591
|
+
return te && s(q, CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL, oe, 0), l(ie, q.currentOffset(), q.currentPosition()), ie;
|
|
1525
1592
|
}
|
|
1526
|
-
function se(
|
|
1527
|
-
const
|
|
1528
|
-
return
|
|
1593
|
+
function se(q) {
|
|
1594
|
+
const Y = q.context(), { offset: oe, startLoc: re } = Y, ae = X(q);
|
|
1595
|
+
return Y.currentType === 14 ? ae : ce(q, oe, re, ae);
|
|
1529
1596
|
}
|
|
1530
|
-
function
|
|
1531
|
-
const
|
|
1532
|
-
return t &&
|
|
1597
|
+
function ne(q) {
|
|
1598
|
+
const Y = createTokenizer(q, assign({}, e)), oe = Y.context(), re = c(0, oe.offset, oe.startLoc);
|
|
1599
|
+
return t && re.loc && (re.loc.source = q), re.body = se(Y), e.onCacheKey && (re.cacheKey = e.onCacheKey(q)), oe.currentType !== 14 && s(Y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, oe.lastStartLoc, 0, q[oe.offset] || ""), l(re, Y.currentOffset(), Y.currentPosition()), re;
|
|
1533
1600
|
}
|
|
1534
|
-
return { parse:
|
|
1601
|
+
return { parse: ne };
|
|
1535
1602
|
}
|
|
1536
1603
|
function getTokenCaption(e) {
|
|
1537
1604
|
if (e.type === 14)
|
|
@@ -1693,31 +1760,31 @@ function createCodeGenerator(e, t) {
|
|
|
1693
1760
|
};
|
|
1694
1761
|
C && e.loc && (A.source = e.loc.source);
|
|
1695
1762
|
const L = () => A;
|
|
1696
|
-
function B(
|
|
1697
|
-
A.code +=
|
|
1763
|
+
function B(ne, q) {
|
|
1764
|
+
A.code += ne;
|
|
1698
1765
|
}
|
|
1699
|
-
function
|
|
1700
|
-
const
|
|
1701
|
-
B(l ?
|
|
1766
|
+
function J(ne, q = !0) {
|
|
1767
|
+
const Y = q ? c : "";
|
|
1768
|
+
B(l ? Y + " ".repeat(ne) : Y);
|
|
1702
1769
|
}
|
|
1703
|
-
function U(
|
|
1704
|
-
const
|
|
1705
|
-
|
|
1770
|
+
function U(ne = !0) {
|
|
1771
|
+
const q = ++A.indentLevel;
|
|
1772
|
+
ne && J(q);
|
|
1706
1773
|
}
|
|
1707
|
-
function V(
|
|
1708
|
-
const
|
|
1709
|
-
|
|
1774
|
+
function V(ne = !0) {
|
|
1775
|
+
const q = --A.indentLevel;
|
|
1776
|
+
ne && J(q);
|
|
1710
1777
|
}
|
|
1711
|
-
function
|
|
1712
|
-
|
|
1778
|
+
function X() {
|
|
1779
|
+
J(A.indentLevel);
|
|
1713
1780
|
}
|
|
1714
1781
|
return {
|
|
1715
1782
|
context: L,
|
|
1716
1783
|
push: B,
|
|
1717
1784
|
indent: U,
|
|
1718
1785
|
deindent: V,
|
|
1719
|
-
newline:
|
|
1720
|
-
helper: (
|
|
1786
|
+
newline: X,
|
|
1787
|
+
helper: (ne) => `_${ne}`,
|
|
1721
1788
|
needIndent: () => A.needIndent
|
|
1722
1789
|
};
|
|
1723
1790
|
}
|
|
@@ -1817,11 +1884,11 @@ const generate = (e, t = {}) => {
|
|
|
1817
1884
|
needIndent: C
|
|
1818
1885
|
});
|
|
1819
1886
|
L.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), L.indent(C), A.length > 0 && (L.push(`const { ${join(A.map((U) => `${U}: _${U}`), ", ")} } = ctx`), L.newline()), L.push("return "), generateNode(L, e), L.deindent(C), L.push("}"), delete e.helpers;
|
|
1820
|
-
const { code: B, map:
|
|
1887
|
+
const { code: B, map: J } = L.context();
|
|
1821
1888
|
return {
|
|
1822
1889
|
ast: e,
|
|
1823
1890
|
code: B,
|
|
1824
|
-
map:
|
|
1891
|
+
map: J ? J.toJSON() : void 0
|
|
1825
1892
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1826
1893
|
};
|
|
1827
1894
|
};
|
|
@@ -2037,7 +2104,7 @@ function formatSubPath(e) {
|
|
|
2037
2104
|
}
|
|
2038
2105
|
function parse$1(e) {
|
|
2039
2106
|
const t = [];
|
|
2040
|
-
let n = -1, s = 0, c = 0, l, C, A, L, B,
|
|
2107
|
+
let n = -1, s = 0, c = 0, l, C, A, L, B, J, U;
|
|
2041
2108
|
const V = [];
|
|
2042
2109
|
V[
|
|
2043
2110
|
0
|
|
@@ -2075,7 +2142,7 @@ function parse$1(e) {
|
|
|
2075
2142
|
]();
|
|
2076
2143
|
}
|
|
2077
2144
|
};
|
|
2078
|
-
function
|
|
2145
|
+
function X() {
|
|
2079
2146
|
const ce = e[n + 1];
|
|
2080
2147
|
if (s === 5 && ce === "'" || s === 6 && ce === '"')
|
|
2081
2148
|
return n++, A = "\\" + ce, V[
|
|
@@ -2084,8 +2151,8 @@ function parse$1(e) {
|
|
|
2084
2151
|
](), !0;
|
|
2085
2152
|
}
|
|
2086
2153
|
for (; s !== null; )
|
|
2087
|
-
if (n++, l = e[n], !(l === "\\" &&
|
|
2088
|
-
if (L = getPathCharType(l), U = pathStateMachine[s], B = U[L] || U.l || 8, B === 8 || (s = B[0], B[1] !== void 0 && (
|
|
2154
|
+
if (n++, l = e[n], !(l === "\\" && X())) {
|
|
2155
|
+
if (L = getPathCharType(l), U = pathStateMachine[s], B = U[L] || U.l || 8, B === 8 || (s = B[0], B[1] !== void 0 && (J = V[B[1]], J && (A = l, J() === !1))))
|
|
2089
2156
|
return;
|
|
2090
2157
|
if (s === 7)
|
|
2091
2158
|
return t;
|
|
@@ -2123,34 +2190,34 @@ function normalizeNamed(e, t) {
|
|
|
2123
2190
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
2124
2191
|
}
|
|
2125
2192
|
function createMessageContext(e = {}) {
|
|
2126
|
-
const t = e.locale, n = getPluralIndex(e), s = isObject$2(e.pluralRules) && isString$2(t) && isFunction$1(e.pluralRules[t]) ? e.pluralRules[t] : pluralDefault, c = isObject$2(e.pluralRules) && isString$2(t) && isFunction$1(e.pluralRules[t]) ? pluralDefault : void 0, l = (
|
|
2193
|
+
const t = e.locale, n = getPluralIndex(e), s = isObject$2(e.pluralRules) && isString$2(t) && isFunction$1(e.pluralRules[t]) ? e.pluralRules[t] : pluralDefault, c = isObject$2(e.pluralRules) && isString$2(t) && isFunction$1(e.pluralRules[t]) ? pluralDefault : void 0, l = (q) => q[s(n, q.length, c)], C = e.list || [], A = (q) => C[q], L = e.named || {};
|
|
2127
2194
|
isNumber(e.pluralIndex) && normalizeNamed(n, L);
|
|
2128
|
-
const B = (
|
|
2129
|
-
function q
|
|
2130
|
-
const
|
|
2131
|
-
return
|
|
2195
|
+
const B = (q) => L[q];
|
|
2196
|
+
function J(q) {
|
|
2197
|
+
const Y = isFunction$1(e.messages) ? e.messages(q) : isObject$2(e.messages) ? e.messages[q] : !1;
|
|
2198
|
+
return Y || (e.parent ? e.parent.message(q) : DEFAULT_MESSAGE);
|
|
2132
2199
|
}
|
|
2133
|
-
const U = (
|
|
2200
|
+
const U = (q) => e.modifiers ? e.modifiers[q] : DEFAULT_MODIFIER, V = isPlainObject$1(e.processor) && isFunction$1(e.processor.normalize) ? e.processor.normalize : DEFAULT_NORMALIZE, X = isPlainObject$1(e.processor) && isFunction$1(e.processor.interpolate) ? e.processor.interpolate : DEFAULT_INTERPOLATE, ce = isPlainObject$1(e.processor) && isString$2(e.processor.type) ? e.processor.type : DEFAULT_MESSAGE_DATA_TYPE, ne = {
|
|
2134
2201
|
list: A,
|
|
2135
2202
|
named: B,
|
|
2136
2203
|
plural: l,
|
|
2137
|
-
linked: (
|
|
2138
|
-
const [
|
|
2139
|
-
let
|
|
2140
|
-
|
|
2141
|
-
const ie = q
|
|
2204
|
+
linked: (q, ...Y) => {
|
|
2205
|
+
const [oe, re] = Y;
|
|
2206
|
+
let ae = "text", te = "";
|
|
2207
|
+
Y.length === 1 ? isObject$2(oe) ? (te = oe.modifier || te, ae = oe.type || ae) : isString$2(oe) && (te = oe || te) : Y.length === 2 && (isString$2(oe) && (te = oe || te), isString$2(re) && (ae = re || ae));
|
|
2208
|
+
const ie = J(q)(ne), H = (
|
|
2142
2209
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
2143
|
-
|
|
2210
|
+
ae === "vnode" && isArray$1(ie) && te ? ie[0] : ie
|
|
2144
2211
|
);
|
|
2145
|
-
return
|
|
2212
|
+
return te ? U(te)(H, ae) : H;
|
|
2146
2213
|
},
|
|
2147
|
-
message:
|
|
2214
|
+
message: J,
|
|
2148
2215
|
type: ce,
|
|
2149
|
-
interpolate:
|
|
2216
|
+
interpolate: X,
|
|
2150
2217
|
normalize: V,
|
|
2151
2218
|
values: assign$1({}, C, L)
|
|
2152
2219
|
};
|
|
2153
|
-
return
|
|
2220
|
+
return ne;
|
|
2154
2221
|
}
|
|
2155
2222
|
let devtools = null;
|
|
2156
2223
|
function setDevToolsHook(e) {
|
|
@@ -2318,9 +2385,9 @@ const setFallbackContext = (e) => {
|
|
|
2318
2385
|
}, getFallbackContext = () => _fallbackContext;
|
|
2319
2386
|
let _cid = 0;
|
|
2320
2387
|
function createCoreContext(e = {}) {
|
|
2321
|
-
const t = isFunction$1(e.onWarn) ? e.onWarn : warn$2, n = isString$2(e.version) ? e.version : VERSION$1, s = isString$2(e.locale) || isFunction$1(e.locale) ? e.locale : DEFAULT_LOCALE, c = isFunction$1(s) ? DEFAULT_LOCALE : s, l = isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || isString$2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c, C = isPlainObject$1(e.messages) ? e.messages : { [c]: {} }, A = isPlainObject$1(e.datetimeFormats) ? e.datetimeFormats : { [c]: {} }, L = isPlainObject$1(e.numberFormats) ? e.numberFormats : { [c]: {} }, B = assign$1({}, e.modifiers || {}, getDefaultLinkedModifiers()),
|
|
2388
|
+
const t = isFunction$1(e.onWarn) ? e.onWarn : warn$2, n = isString$2(e.version) ? e.version : VERSION$1, s = isString$2(e.locale) || isFunction$1(e.locale) ? e.locale : DEFAULT_LOCALE, c = isFunction$1(s) ? DEFAULT_LOCALE : s, l = isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || isString$2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c, C = isPlainObject$1(e.messages) ? e.messages : { [c]: {} }, A = isPlainObject$1(e.datetimeFormats) ? e.datetimeFormats : { [c]: {} }, L = isPlainObject$1(e.numberFormats) ? e.numberFormats : { [c]: {} }, B = assign$1({}, e.modifiers || {}, getDefaultLinkedModifiers()), J = e.pluralRules || {}, U = isFunction$1(e.missing) ? e.missing : null, V = isBoolean(e.missingWarn) || isRegExp(e.missingWarn) ? e.missingWarn : !0, X = isBoolean(e.fallbackWarn) || isRegExp(e.fallbackWarn) ? e.fallbackWarn : !0, ce = !!e.fallbackFormat, se = !!e.unresolving, ne = isFunction$1(e.postTranslation) ? e.postTranslation : null, q = isPlainObject$1(e.processor) ? e.processor : null, Y = isBoolean(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, oe = !!e.escapeParameter, re = isFunction$1(e.messageCompiler) ? e.messageCompiler : _compiler;
|
|
2322
2389
|
process.env.NODE_ENV !== "production" && isFunction$1(e.messageCompiler) && warnOnce(getWarnMessage$1(CoreWarnCodes.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
2323
|
-
const
|
|
2390
|
+
const ae = isFunction$1(e.messageResolver) ? e.messageResolver : _resolver || resolveWithKeyValue, te = isFunction$1(e.localeFallbacker) ? e.localeFallbacker : _fallbacker || fallbackWithSimple, ie = isObject$2(e.fallbackContext) ? e.fallbackContext : void 0, H = e, $ = isObject$2(H.__datetimeFormatters) ? H.__datetimeFormatters : /* @__PURE__ */ new Map(), Q = isObject$2(H.__numberFormatters) ? H.__numberFormatters : /* @__PURE__ */ new Map(), pe = isObject$2(H.__meta) ? H.__meta : {};
|
|
2324
2391
|
_cid++;
|
|
2325
2392
|
const de = {
|
|
2326
2393
|
version: n,
|
|
@@ -2329,24 +2396,24 @@ function createCoreContext(e = {}) {
|
|
|
2329
2396
|
fallbackLocale: l,
|
|
2330
2397
|
messages: C,
|
|
2331
2398
|
modifiers: B,
|
|
2332
|
-
pluralRules:
|
|
2399
|
+
pluralRules: J,
|
|
2333
2400
|
missing: U,
|
|
2334
2401
|
missingWarn: V,
|
|
2335
|
-
fallbackWarn:
|
|
2402
|
+
fallbackWarn: X,
|
|
2336
2403
|
fallbackFormat: ce,
|
|
2337
2404
|
unresolving: se,
|
|
2338
|
-
postTranslation:
|
|
2339
|
-
processor:
|
|
2340
|
-
warnHtmlMessage:
|
|
2341
|
-
escapeParameter:
|
|
2342
|
-
messageCompiler:
|
|
2343
|
-
messageResolver:
|
|
2344
|
-
localeFallbacker:
|
|
2405
|
+
postTranslation: ne,
|
|
2406
|
+
processor: q,
|
|
2407
|
+
warnHtmlMessage: Y,
|
|
2408
|
+
escapeParameter: oe,
|
|
2409
|
+
messageCompiler: re,
|
|
2410
|
+
messageResolver: ae,
|
|
2411
|
+
localeFallbacker: te,
|
|
2345
2412
|
fallbackContext: ie,
|
|
2346
2413
|
onWarn: t,
|
|
2347
2414
|
__meta: pe
|
|
2348
2415
|
};
|
|
2349
|
-
return de.datetimeFormats = A, de.numberFormats = L, de.__datetimeFormatters = $, de.__numberFormatters =
|
|
2416
|
+
return de.datetimeFormats = A, de.numberFormats = L, de.__datetimeFormatters = $, de.__numberFormatters = Q, process.env.NODE_ENV !== "production" && (de.__v_emitter = H.__v_emitter != null ? H.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && initI18nDevTools(de, n, pe), de;
|
|
2350
2417
|
}
|
|
2351
2418
|
function isTranslateFallbackWarn(e, t) {
|
|
2352
2419
|
return e instanceof RegExp ? e.test(t) : e;
|
|
@@ -2486,33 +2553,33 @@ function compile(e, t) {
|
|
|
2486
2553
|
}
|
|
2487
2554
|
const NOOP_MESSAGE_FUNCTION = () => "", isMessageFunction = (e) => isFunction$1(e);
|
|
2488
2555
|
function translate(e, ...t) {
|
|
2489
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: c, messageCompiler: l, fallbackLocale: C, messages: A } = e, [L, B] = parseTranslateArgs(...t),
|
|
2556
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: c, messageCompiler: l, fallbackLocale: C, messages: A } = e, [L, B] = parseTranslateArgs(...t), J = isBoolean(B.missingWarn) ? B.missingWarn : e.missingWarn, U = isBoolean(B.fallbackWarn) ? B.fallbackWarn : e.fallbackWarn, V = isBoolean(B.escapeParameter) ? B.escapeParameter : e.escapeParameter, X = !!B.resolvedMessage, ce = isString$2(B.default) || isBoolean(B.default) ? isBoolean(B.default) ? l ? L : () => L : B.default : n ? l ? L : () => L : "", se = n || ce !== "", ne = getLocale(e, B);
|
|
2490
2557
|
V && escapeParams(B);
|
|
2491
|
-
let [
|
|
2558
|
+
let [q, Y, oe] = X ? [
|
|
2492
2559
|
L,
|
|
2493
|
-
|
|
2494
|
-
A[
|
|
2495
|
-
] : resolveMessageFormat(e, L,
|
|
2496
|
-
if (!
|
|
2560
|
+
ne,
|
|
2561
|
+
A[ne] || {}
|
|
2562
|
+
] : resolveMessageFormat(e, L, ne, C, U, J), re = q, ae = L;
|
|
2563
|
+
if (!X && !(isString$2(re) || isMessageAST(re) || isMessageFunction(re)) && se && (re = ce, ae = re), !X && (!(isString$2(re) || isMessageAST(re) || isMessageFunction(re)) || !isString$2(Y)))
|
|
2497
2564
|
return c ? NOT_REOSLVED : L;
|
|
2498
|
-
if (process.env.NODE_ENV !== "production" && isString$2(
|
|
2565
|
+
if (process.env.NODE_ENV !== "production" && isString$2(re) && e.messageCompiler == null)
|
|
2499
2566
|
return warn$2(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${L}'.`), L;
|
|
2500
|
-
let
|
|
2567
|
+
let te = !1;
|
|
2501
2568
|
const ie = () => {
|
|
2502
|
-
|
|
2503
|
-
},
|
|
2504
|
-
if (
|
|
2505
|
-
return
|
|
2506
|
-
const $ = getMessageContextOptions(e,
|
|
2569
|
+
te = !0;
|
|
2570
|
+
}, H = isMessageFunction(re) ? re : compileMessageFormat(e, L, Y, re, ae, ie);
|
|
2571
|
+
if (te)
|
|
2572
|
+
return re;
|
|
2573
|
+
const $ = getMessageContextOptions(e, Y, oe, B), Q = createMessageContext($), pe = evaluateMessage(e, H, Q), de = s ? s(pe, L) : pe;
|
|
2507
2574
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2508
|
-
const
|
|
2575
|
+
const me = {
|
|
2509
2576
|
timestamp: Date.now(),
|
|
2510
|
-
key: isString$2(L) ? L : isMessageFunction(
|
|
2511
|
-
locale:
|
|
2512
|
-
format: isString$2(
|
|
2577
|
+
key: isString$2(L) ? L : isMessageFunction(re) ? re.key : "",
|
|
2578
|
+
locale: Y || (isMessageFunction(re) ? re.locale : ""),
|
|
2579
|
+
format: isString$2(re) ? re : isMessageFunction(re) ? re.source : "",
|
|
2513
2580
|
message: de
|
|
2514
2581
|
};
|
|
2515
|
-
|
|
2582
|
+
me.meta = assign$1({}, e.__meta, /* @__PURE__ */ getAdditionalMeta() || {}), translateDevTools(me);
|
|
2516
2583
|
}
|
|
2517
2584
|
return de;
|
|
2518
2585
|
}
|
|
@@ -2522,48 +2589,48 @@ function escapeParams(e) {
|
|
|
2522
2589
|
});
|
|
2523
2590
|
}
|
|
2524
2591
|
function resolveMessageFormat(e, t, n, s, c, l) {
|
|
2525
|
-
const { messages: C, onWarn: A, messageResolver: L, localeFallbacker: B } = e,
|
|
2526
|
-
let U = {}, V,
|
|
2527
|
-
const
|
|
2528
|
-
for (let
|
|
2529
|
-
if (V = se = q
|
|
2592
|
+
const { messages: C, onWarn: A, messageResolver: L, localeFallbacker: B } = e, J = B(e, s, n);
|
|
2593
|
+
let U = {}, V, X = null, ce = n, se = null;
|
|
2594
|
+
const ne = "translate";
|
|
2595
|
+
for (let q = 0; q < J.length; q++) {
|
|
2596
|
+
if (V = se = J[q], process.env.NODE_ENV !== "production" && n !== V && isTranslateFallbackWarn(c, t) && A(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_TRANSLATE, {
|
|
2530
2597
|
key: t,
|
|
2531
2598
|
target: V
|
|
2532
2599
|
})), process.env.NODE_ENV !== "production" && n !== V) {
|
|
2533
|
-
const
|
|
2534
|
-
|
|
2535
|
-
type:
|
|
2600
|
+
const te = e.__v_emitter;
|
|
2601
|
+
te && te.emit("fallback", {
|
|
2602
|
+
type: ne,
|
|
2536
2603
|
key: t,
|
|
2537
2604
|
from: ce,
|
|
2538
2605
|
to: se,
|
|
2539
|
-
groupId: `${
|
|
2606
|
+
groupId: `${ne}:${t}`
|
|
2540
2607
|
});
|
|
2541
2608
|
}
|
|
2542
2609
|
U = C[V] || {};
|
|
2543
|
-
let
|
|
2544
|
-
if (process.env.NODE_ENV !== "production" && inBrowser && (
|
|
2545
|
-
const
|
|
2546
|
-
ie &&
|
|
2610
|
+
let Y = null, oe, re;
|
|
2611
|
+
if (process.env.NODE_ENV !== "production" && inBrowser && (Y = window.performance.now(), oe = "intlify-message-resolve-start", re = "intlify-message-resolve-end", mark && mark(oe)), (X = L(U, t)) === null && (X = U[t]), process.env.NODE_ENV !== "production" && inBrowser) {
|
|
2612
|
+
const te = window.performance.now(), ie = e.__v_emitter;
|
|
2613
|
+
ie && Y && X && ie.emit("message-resolve", {
|
|
2547
2614
|
type: "message-resolve",
|
|
2548
2615
|
key: t,
|
|
2549
|
-
message:
|
|
2550
|
-
time:
|
|
2551
|
-
groupId: `${
|
|
2552
|
-
}),
|
|
2616
|
+
message: X,
|
|
2617
|
+
time: te - Y,
|
|
2618
|
+
groupId: `${ne}:${t}`
|
|
2619
|
+
}), oe && re && mark && measure && (mark(re), measure("intlify message resolve", oe, re));
|
|
2553
2620
|
}
|
|
2554
|
-
if (isString$2(
|
|
2621
|
+
if (isString$2(X) || isMessageAST(X) || isMessageFunction(X))
|
|
2555
2622
|
break;
|
|
2556
|
-
const
|
|
2623
|
+
const ae = handleMissing(
|
|
2557
2624
|
e,
|
|
2558
2625
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2559
2626
|
t,
|
|
2560
2627
|
V,
|
|
2561
2628
|
l,
|
|
2562
|
-
|
|
2629
|
+
ne
|
|
2563
2630
|
);
|
|
2564
|
-
|
|
2631
|
+
ae !== t && (X = ae), ce = se;
|
|
2565
2632
|
}
|
|
2566
|
-
return [
|
|
2633
|
+
return [X, V, U];
|
|
2567
2634
|
}
|
|
2568
2635
|
function compileMessageFormat(e, t, n, s, c, l) {
|
|
2569
2636
|
const { messageCompiler: C, warnHtmlMessage: A } = e;
|
|
@@ -2575,17 +2642,17 @@ function compileMessageFormat(e, t, n, s, c, l) {
|
|
|
2575
2642
|
const V = () => s;
|
|
2576
2643
|
return V.locale = n, V.key = t, V;
|
|
2577
2644
|
}
|
|
2578
|
-
let L = null, B,
|
|
2579
|
-
process.env.NODE_ENV !== "production" && inBrowser && (L = window.performance.now(), B = "intlify-message-compilation-start",
|
|
2645
|
+
let L = null, B, J;
|
|
2646
|
+
process.env.NODE_ENV !== "production" && inBrowser && (L = window.performance.now(), B = "intlify-message-compilation-start", J = "intlify-message-compilation-end", mark && mark(B));
|
|
2580
2647
|
const U = C(s, getCompileContext(e, n, c, s, A, l));
|
|
2581
2648
|
if (process.env.NODE_ENV !== "production" && inBrowser) {
|
|
2582
|
-
const V = window.performance.now(),
|
|
2583
|
-
|
|
2649
|
+
const V = window.performance.now(), X = e.__v_emitter;
|
|
2650
|
+
X && L && X.emit("message-compilation", {
|
|
2584
2651
|
type: "message-compilation",
|
|
2585
2652
|
message: s,
|
|
2586
2653
|
time: V - L,
|
|
2587
2654
|
groupId: `translate:${t}`
|
|
2588
|
-
}), B &&
|
|
2655
|
+
}), B && J && mark && measure && (mark(J), measure("intlify message compilation", B, J));
|
|
2589
2656
|
}
|
|
2590
2657
|
return U.locale = n, U.key = t, U.source = s, U;
|
|
2591
2658
|
}
|
|
@@ -2618,8 +2685,8 @@ function getCompileContext(e, t, n, s, c, l) {
|
|
|
2618
2685
|
warnHtmlMessage: c,
|
|
2619
2686
|
onError: (C) => {
|
|
2620
2687
|
if (l && l(C), process.env.NODE_ENV !== "production") {
|
|
2621
|
-
const A = getSourceForCodeFrame(s), L = `Message compilation error: ${C.message}`, B = C.location && A && generateCodeFrame(A, C.location.start.offset, C.location.end.offset),
|
|
2622
|
-
|
|
2688
|
+
const A = getSourceForCodeFrame(s), L = `Message compilation error: ${C.message}`, B = C.location && A && generateCodeFrame(A, C.location.start.offset, C.location.end.offset), J = e.__v_emitter;
|
|
2689
|
+
J && A && J.emit("compile-error", {
|
|
2623
2690
|
message: A,
|
|
2624
2691
|
error: C.message,
|
|
2625
2692
|
start: C.location && C.location.start.offset,
|
|
@@ -2640,22 +2707,22 @@ function getSourceForCodeFrame(e) {
|
|
|
2640
2707
|
return e.loc.source;
|
|
2641
2708
|
}
|
|
2642
2709
|
function getMessageContextOptions(e, t, n, s) {
|
|
2643
|
-
const { modifiers: c, pluralRules: l, messageResolver: C, fallbackLocale: A, fallbackWarn: L, missingWarn: B, fallbackContext:
|
|
2710
|
+
const { modifiers: c, pluralRules: l, messageResolver: C, fallbackLocale: A, fallbackWarn: L, missingWarn: B, fallbackContext: J } = e, V = {
|
|
2644
2711
|
locale: t,
|
|
2645
2712
|
modifiers: c,
|
|
2646
2713
|
pluralRules: l,
|
|
2647
|
-
messages: (
|
|
2648
|
-
let ce = C(n,
|
|
2649
|
-
if (ce == null &&
|
|
2650
|
-
const [, , se] = resolveMessageFormat(
|
|
2651
|
-
ce = C(se,
|
|
2714
|
+
messages: (X) => {
|
|
2715
|
+
let ce = C(n, X);
|
|
2716
|
+
if (ce == null && J) {
|
|
2717
|
+
const [, , se] = resolveMessageFormat(J, X, t, A, L, B);
|
|
2718
|
+
ce = C(se, X);
|
|
2652
2719
|
}
|
|
2653
2720
|
if (isString$2(ce) || isMessageAST(ce)) {
|
|
2654
2721
|
let se = !1;
|
|
2655
|
-
const
|
|
2722
|
+
const q = compileMessageFormat(e, X, t, ce, X, () => {
|
|
2656
2723
|
se = !0;
|
|
2657
2724
|
});
|
|
2658
|
-
return se ? NOOP_MESSAGE_FUNCTION :
|
|
2725
|
+
return se ? NOOP_MESSAGE_FUNCTION : q;
|
|
2659
2726
|
} else
|
|
2660
2727
|
return isMessageFunction(ce) ? ce : NOOP_MESSAGE_FUNCTION;
|
|
2661
2728
|
}
|
|
@@ -2670,7 +2737,7 @@ function datetime(e, ...t) {
|
|
|
2670
2737
|
const { datetimeFormats: n, unresolving: s, fallbackLocale: c, onWarn: l, localeFallbacker: C } = e, { __datetimeFormatters: A } = e;
|
|
2671
2738
|
if (process.env.NODE_ENV !== "production" && !Availabilities.dateTimeFormat)
|
|
2672
2739
|
return l(getWarnMessage$1(CoreWarnCodes.CANNOT_FORMAT_DATE)), MISSING_RESOLVE_VALUE;
|
|
2673
|
-
const [L, B,
|
|
2740
|
+
const [L, B, J, U] = parseDateTimeArgs(...t), V = isBoolean(J.missingWarn) ? J.missingWarn : e.missingWarn, X = isBoolean(J.fallbackWarn) ? J.fallbackWarn : e.fallbackWarn, ce = !!J.part, se = getLocale(e, J), ne = C(
|
|
2674
2741
|
e,
|
|
2675
2742
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2676
2743
|
c,
|
|
@@ -2678,32 +2745,32 @@ function datetime(e, ...t) {
|
|
|
2678
2745
|
);
|
|
2679
2746
|
if (!isString$2(L) || L === "")
|
|
2680
2747
|
return new Intl.DateTimeFormat(se, U).format(B);
|
|
2681
|
-
let
|
|
2682
|
-
const
|
|
2683
|
-
for (let $ = 0; $ <
|
|
2684
|
-
if (
|
|
2748
|
+
let q = {}, Y, oe = null, re = se, ae = null;
|
|
2749
|
+
const te = "datetime format";
|
|
2750
|
+
for (let $ = 0; $ < ne.length; $++) {
|
|
2751
|
+
if (Y = ae = ne[$], process.env.NODE_ENV !== "production" && se !== Y && isTranslateFallbackWarn(X, L) && l(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_DATE_FORMAT, {
|
|
2685
2752
|
key: L,
|
|
2686
|
-
target:
|
|
2687
|
-
})), process.env.NODE_ENV !== "production" && se !==
|
|
2688
|
-
const
|
|
2689
|
-
|
|
2690
|
-
type:
|
|
2753
|
+
target: Y
|
|
2754
|
+
})), process.env.NODE_ENV !== "production" && se !== Y) {
|
|
2755
|
+
const Q = e.__v_emitter;
|
|
2756
|
+
Q && Q.emit("fallback", {
|
|
2757
|
+
type: te,
|
|
2691
2758
|
key: L,
|
|
2692
|
-
from:
|
|
2693
|
-
to:
|
|
2694
|
-
groupId: `${
|
|
2759
|
+
from: re,
|
|
2760
|
+
to: ae,
|
|
2761
|
+
groupId: `${te}:${L}`
|
|
2695
2762
|
});
|
|
2696
2763
|
}
|
|
2697
|
-
if (
|
|
2764
|
+
if (q = n[Y] || {}, oe = q[L], isPlainObject$1(oe))
|
|
2698
2765
|
break;
|
|
2699
|
-
handleMissing(e, L,
|
|
2766
|
+
handleMissing(e, L, Y, V, te), re = ae;
|
|
2700
2767
|
}
|
|
2701
|
-
if (!isPlainObject$1(
|
|
2768
|
+
if (!isPlainObject$1(oe) || !isString$2(Y))
|
|
2702
2769
|
return s ? NOT_REOSLVED : L;
|
|
2703
|
-
let ie = `${
|
|
2770
|
+
let ie = `${Y}__${L}`;
|
|
2704
2771
|
isEmptyObject(U) || (ie = `${ie}__${JSON.stringify(U)}`);
|
|
2705
|
-
let
|
|
2706
|
-
return
|
|
2772
|
+
let H = A.get(ie);
|
|
2773
|
+
return H || (H = new Intl.DateTimeFormat(Y, assign$1({}, oe, U)), A.set(ie, H)), ce ? H.formatToParts(B) : H.format(B);
|
|
2707
2774
|
}
|
|
2708
2775
|
const DATETIME_FORMAT_OPTIONS_KEYS = [
|
|
2709
2776
|
"localeMatcher",
|
|
@@ -2764,7 +2831,7 @@ function number(e, ...t) {
|
|
|
2764
2831
|
const { numberFormats: n, unresolving: s, fallbackLocale: c, onWarn: l, localeFallbacker: C } = e, { __numberFormatters: A } = e;
|
|
2765
2832
|
if (process.env.NODE_ENV !== "production" && !Availabilities.numberFormat)
|
|
2766
2833
|
return l(getWarnMessage$1(CoreWarnCodes.CANNOT_FORMAT_NUMBER)), MISSING_RESOLVE_VALUE;
|
|
2767
|
-
const [L, B,
|
|
2834
|
+
const [L, B, J, U] = parseNumberArgs(...t), V = isBoolean(J.missingWarn) ? J.missingWarn : e.missingWarn, X = isBoolean(J.fallbackWarn) ? J.fallbackWarn : e.fallbackWarn, ce = !!J.part, se = getLocale(e, J), ne = C(
|
|
2768
2835
|
e,
|
|
2769
2836
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2770
2837
|
c,
|
|
@@ -2772,32 +2839,32 @@ function number(e, ...t) {
|
|
|
2772
2839
|
);
|
|
2773
2840
|
if (!isString$2(L) || L === "")
|
|
2774
2841
|
return new Intl.NumberFormat(se, U).format(B);
|
|
2775
|
-
let
|
|
2776
|
-
const
|
|
2777
|
-
for (let $ = 0; $ <
|
|
2778
|
-
if (
|
|
2842
|
+
let q = {}, Y, oe = null, re = se, ae = null;
|
|
2843
|
+
const te = "number format";
|
|
2844
|
+
for (let $ = 0; $ < ne.length; $++) {
|
|
2845
|
+
if (Y = ae = ne[$], process.env.NODE_ENV !== "production" && se !== Y && isTranslateFallbackWarn(X, L) && l(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT, {
|
|
2779
2846
|
key: L,
|
|
2780
|
-
target:
|
|
2781
|
-
})), process.env.NODE_ENV !== "production" && se !==
|
|
2782
|
-
const
|
|
2783
|
-
|
|
2784
|
-
type:
|
|
2847
|
+
target: Y
|
|
2848
|
+
})), process.env.NODE_ENV !== "production" && se !== Y) {
|
|
2849
|
+
const Q = e.__v_emitter;
|
|
2850
|
+
Q && Q.emit("fallback", {
|
|
2851
|
+
type: te,
|
|
2785
2852
|
key: L,
|
|
2786
|
-
from:
|
|
2787
|
-
to:
|
|
2788
|
-
groupId: `${
|
|
2853
|
+
from: re,
|
|
2854
|
+
to: ae,
|
|
2855
|
+
groupId: `${te}:${L}`
|
|
2789
2856
|
});
|
|
2790
2857
|
}
|
|
2791
|
-
if (
|
|
2858
|
+
if (q = n[Y] || {}, oe = q[L], isPlainObject$1(oe))
|
|
2792
2859
|
break;
|
|
2793
|
-
handleMissing(e, L,
|
|
2860
|
+
handleMissing(e, L, Y, V, te), re = ae;
|
|
2794
2861
|
}
|
|
2795
|
-
if (!isPlainObject$1(
|
|
2862
|
+
if (!isPlainObject$1(oe) || !isString$2(Y))
|
|
2796
2863
|
return s ? NOT_REOSLVED : L;
|
|
2797
|
-
let ie = `${
|
|
2864
|
+
let ie = `${Y}__${L}`;
|
|
2798
2865
|
isEmptyObject(U) || (ie = `${ie}__${JSON.stringify(U)}`);
|
|
2799
|
-
let
|
|
2800
|
-
return
|
|
2866
|
+
let H = A.get(ie);
|
|
2867
|
+
return H || (H = new Intl.NumberFormat(Y, assign$1({}, oe, U)), A.set(ie, H)), ce ? H.formatToParts(B) : H.format(B);
|
|
2801
2868
|
}
|
|
2802
2869
|
const NUMBER_FORMAT_OPTIONS_KEYS = [
|
|
2803
2870
|
"localeMatcher",
|
|
@@ -3273,9 +3340,9 @@ function trigger(e, t, n, s, c, l) {
|
|
|
3273
3340
|
else {
|
|
3274
3341
|
const L = isArray(e), B = L && isIntegerKey(n);
|
|
3275
3342
|
if (L && n === "length") {
|
|
3276
|
-
const
|
|
3343
|
+
const J = Number(s);
|
|
3277
3344
|
C.forEach((U, V) => {
|
|
3278
|
-
(V === "length" || V === ARRAY_ITERATE_KEY || !isSymbol(V) && V >=
|
|
3345
|
+
(V === "length" || V === ARRAY_ITERATE_KEY || !isSymbol(V) && V >= J) && A(U);
|
|
3279
3346
|
});
|
|
3280
3347
|
} else
|
|
3281
3348
|
switch ((n !== void 0 || C.has(void 0)) && A(C.get(n)), B && A(C.get(ARRAY_ITERATE_KEY)), t) {
|
|
@@ -3408,8 +3475,8 @@ function apply$1(e, t, n, s, c, l) {
|
|
|
3408
3475
|
} : n.length > 2 && (B = function(U, V) {
|
|
3409
3476
|
return n.call(this, U, V, e);
|
|
3410
3477
|
}));
|
|
3411
|
-
const
|
|
3412
|
-
return A && c ? c(
|
|
3478
|
+
const J = L.call(C, B, s);
|
|
3479
|
+
return A && c ? c(J) : J;
|
|
3413
3480
|
}
|
|
3414
3481
|
function reduce(e, t, n, s) {
|
|
3415
3482
|
const c = shallowReadArray(e);
|
|
@@ -3531,7 +3598,7 @@ class ReadonlyReactiveHandler extends BaseReactiveHandler {
|
|
|
3531
3598
|
const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler(), readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(), shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(!0), toShallow = (e) => e, getProto = (e) => Reflect.getPrototypeOf(e);
|
|
3532
3599
|
function createIterableMethod(e, t, n) {
|
|
3533
3600
|
return function(...s) {
|
|
3534
|
-
const c = this.__v_raw, l = toRaw(c), C = isMap(l), A = e === "entries" || e === Symbol.iterator && C, L = e === "keys" && C, B = c[e](...s),
|
|
3601
|
+
const c = this.__v_raw, l = toRaw(c), C = isMap(l), A = e === "entries" || e === Symbol.iterator && C, L = e === "keys" && C, B = c[e](...s), J = n ? toShallow : t ? toReadonly : toReactive;
|
|
3535
3602
|
return !t && track(
|
|
3536
3603
|
l,
|
|
3537
3604
|
"iterate",
|
|
@@ -3541,7 +3608,7 @@ function createIterableMethod(e, t, n) {
|
|
|
3541
3608
|
next() {
|
|
3542
3609
|
const { value: U, done: V } = B.next();
|
|
3543
3610
|
return V ? { value: U, done: V } : {
|
|
3544
|
-
value: A ? [
|
|
3611
|
+
value: A ? [J(U[0]), J(U[1])] : J(U),
|
|
3545
3612
|
done: V
|
|
3546
3613
|
};
|
|
3547
3614
|
},
|
|
@@ -3586,7 +3653,7 @@ function createInstrumentations(e, t) {
|
|
|
3586
3653
|
},
|
|
3587
3654
|
forEach(c, l) {
|
|
3588
3655
|
const C = this, A = C.__v_raw, L = toRaw(A), B = t ? toShallow : e ? toReadonly : toReactive;
|
|
3589
|
-
return !e && track(L, "iterate", ITERATE_KEY), A.forEach((
|
|
3656
|
+
return !e && track(L, "iterate", ITERATE_KEY), A.forEach((J, U) => c.call(l, B(J), B(U), C));
|
|
3590
3657
|
}
|
|
3591
3658
|
};
|
|
3592
3659
|
return extend(
|
|
@@ -3607,15 +3674,15 @@ function createInstrumentations(e, t) {
|
|
|
3607
3674
|
const C = toRaw(this), { has: A, get: L } = getProto(C);
|
|
3608
3675
|
let B = A.call(C, c);
|
|
3609
3676
|
B ? process.env.NODE_ENV !== "production" && checkIdentityKeys(C, A, c) : (c = toRaw(c), B = A.call(C, c));
|
|
3610
|
-
const
|
|
3611
|
-
return C.set(c, l), B ? hasChanged(l,
|
|
3677
|
+
const J = L.call(C, c);
|
|
3678
|
+
return C.set(c, l), B ? hasChanged(l, J) && trigger(C, "set", c, l, J) : trigger(C, "add", c, l), this;
|
|
3612
3679
|
},
|
|
3613
3680
|
delete(c) {
|
|
3614
3681
|
const l = toRaw(this), { has: C, get: A } = getProto(l);
|
|
3615
3682
|
let L = C.call(l, c);
|
|
3616
3683
|
L ? process.env.NODE_ENV !== "production" && checkIdentityKeys(l, C, c) : (c = toRaw(c), L = C.call(l, c));
|
|
3617
|
-
const B = A ? A.call(l, c) : void 0,
|
|
3618
|
-
return L && trigger(l, "delete", c, void 0, B),
|
|
3684
|
+
const B = A ? A.call(l, c) : void 0, J = l.delete(c);
|
|
3685
|
+
return L && trigger(l, "delete", c, void 0, B), J;
|
|
3619
3686
|
},
|
|
3620
3687
|
clear() {
|
|
3621
3688
|
const c = toRaw(this), l = c.size !== 0, C = process.env.NODE_ENV !== "production" ? isMap(c) ? new Map(c) : new Set(c) : void 0, A = c.clear();
|
|
@@ -3837,71 +3904,71 @@ function onWatcherCleanup(e, t = !1, n = activeWatcher) {
|
|
|
3837
3904
|
);
|
|
3838
3905
|
}
|
|
3839
3906
|
function watch$1(e, t, n = EMPTY_OBJ) {
|
|
3840
|
-
const { immediate: s, deep: c, once: l, scheduler: C, augmentJob: A, call: L } = n, B = (
|
|
3907
|
+
const { immediate: s, deep: c, once: l, scheduler: C, augmentJob: A, call: L } = n, B = (ae) => {
|
|
3841
3908
|
(n.onWarn || warn)(
|
|
3842
3909
|
"Invalid watch source: ",
|
|
3843
|
-
|
|
3910
|
+
ae,
|
|
3844
3911
|
"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
|
|
3845
3912
|
);
|
|
3846
|
-
},
|
|
3847
|
-
let U, V,
|
|
3848
|
-
if (isRef(e) ? (V = () => e.value, se = isShallow(e)) : isReactive(e) ? (V = () =>
|
|
3849
|
-
if (isRef(
|
|
3850
|
-
return
|
|
3851
|
-
if (isReactive(
|
|
3852
|
-
return
|
|
3853
|
-
if (isFunction(
|
|
3854
|
-
return L ? L(
|
|
3855
|
-
process.env.NODE_ENV !== "production" && B(
|
|
3913
|
+
}, J = (ae) => c ? ae : isShallow(ae) || c === !1 || c === 0 ? traverse(ae, 1) : traverse(ae);
|
|
3914
|
+
let U, V, X, ce, se = !1, ne = !1;
|
|
3915
|
+
if (isRef(e) ? (V = () => e.value, se = isShallow(e)) : isReactive(e) ? (V = () => J(e), se = !0) : isArray(e) ? (ne = !0, se = e.some((ae) => isReactive(ae) || isShallow(ae)), V = () => e.map((ae) => {
|
|
3916
|
+
if (isRef(ae))
|
|
3917
|
+
return ae.value;
|
|
3918
|
+
if (isReactive(ae))
|
|
3919
|
+
return J(ae);
|
|
3920
|
+
if (isFunction(ae))
|
|
3921
|
+
return L ? L(ae, 2) : ae();
|
|
3922
|
+
process.env.NODE_ENV !== "production" && B(ae);
|
|
3856
3923
|
})) : isFunction(e) ? t ? V = L ? () => L(e, 2) : e : V = () => {
|
|
3857
|
-
if (
|
|
3924
|
+
if (X) {
|
|
3858
3925
|
pauseTracking();
|
|
3859
3926
|
try {
|
|
3860
|
-
|
|
3927
|
+
X();
|
|
3861
3928
|
} finally {
|
|
3862
3929
|
resetTracking();
|
|
3863
3930
|
}
|
|
3864
3931
|
}
|
|
3865
|
-
const
|
|
3932
|
+
const ae = activeWatcher;
|
|
3866
3933
|
activeWatcher = U;
|
|
3867
3934
|
try {
|
|
3868
3935
|
return L ? L(e, 3, [ce]) : e(ce);
|
|
3869
3936
|
} finally {
|
|
3870
|
-
activeWatcher =
|
|
3937
|
+
activeWatcher = ae;
|
|
3871
3938
|
}
|
|
3872
3939
|
} : (V = NOOP, process.env.NODE_ENV !== "production" && B(e)), t && c) {
|
|
3873
|
-
const
|
|
3874
|
-
V = () => traverse(
|
|
3940
|
+
const ae = V, te = c === !0 ? 1 / 0 : c;
|
|
3941
|
+
V = () => traverse(ae(), te);
|
|
3875
3942
|
}
|
|
3876
|
-
const
|
|
3877
|
-
U.stop(),
|
|
3943
|
+
const q = getCurrentScope(), Y = () => {
|
|
3944
|
+
U.stop(), q && q.active && remove(q.effects, U);
|
|
3878
3945
|
};
|
|
3879
3946
|
if (l && t) {
|
|
3880
|
-
const
|
|
3881
|
-
t = (...
|
|
3882
|
-
|
|
3947
|
+
const ae = t;
|
|
3948
|
+
t = (...te) => {
|
|
3949
|
+
ae(...te), Y();
|
|
3883
3950
|
};
|
|
3884
3951
|
}
|
|
3885
|
-
let
|
|
3886
|
-
const
|
|
3887
|
-
if (!(!(U.flags & 1) || !U.dirty && !
|
|
3952
|
+
let oe = ne ? new Array(e.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
|
|
3953
|
+
const re = (ae) => {
|
|
3954
|
+
if (!(!(U.flags & 1) || !U.dirty && !ae))
|
|
3888
3955
|
if (t) {
|
|
3889
|
-
const
|
|
3890
|
-
if (c || se || (
|
|
3891
|
-
|
|
3956
|
+
const te = U.run();
|
|
3957
|
+
if (c || se || (ne ? te.some((ie, H) => hasChanged(ie, oe[H])) : hasChanged(te, oe))) {
|
|
3958
|
+
X && X();
|
|
3892
3959
|
const ie = activeWatcher;
|
|
3893
3960
|
activeWatcher = U;
|
|
3894
3961
|
try {
|
|
3895
|
-
const
|
|
3896
|
-
|
|
3962
|
+
const H = [
|
|
3963
|
+
te,
|
|
3897
3964
|
// pass undefined as the old value when it's changed for the first time
|
|
3898
|
-
|
|
3965
|
+
oe === INITIAL_WATCHER_VALUE ? void 0 : ne && oe[0] === INITIAL_WATCHER_VALUE ? [] : oe,
|
|
3899
3966
|
ce
|
|
3900
3967
|
];
|
|
3901
|
-
L ? L(t, 3,
|
|
3968
|
+
L ? L(t, 3, H) : (
|
|
3902
3969
|
// @ts-expect-error
|
|
3903
|
-
t(...
|
|
3904
|
-
),
|
|
3970
|
+
t(...H)
|
|
3971
|
+
), oe = te;
|
|
3905
3972
|
} finally {
|
|
3906
3973
|
activeWatcher = ie;
|
|
3907
3974
|
}
|
|
@@ -3909,17 +3976,17 @@ function watch$1(e, t, n = EMPTY_OBJ) {
|
|
|
3909
3976
|
} else
|
|
3910
3977
|
U.run();
|
|
3911
3978
|
};
|
|
3912
|
-
return A && A(
|
|
3913
|
-
const
|
|
3914
|
-
if (
|
|
3979
|
+
return A && A(re), U = new ReactiveEffect(V), U.scheduler = C ? () => C(re, !1) : re, ce = (ae) => onWatcherCleanup(ae, !1, U), X = U.onStop = () => {
|
|
3980
|
+
const ae = cleanupMap.get(U);
|
|
3981
|
+
if (ae) {
|
|
3915
3982
|
if (L)
|
|
3916
|
-
L(
|
|
3983
|
+
L(ae, 4);
|
|
3917
3984
|
else
|
|
3918
|
-
for (const
|
|
3919
|
-
|
|
3985
|
+
for (const te of ae)
|
|
3986
|
+
te();
|
|
3920
3987
|
cleanupMap.delete(U);
|
|
3921
3988
|
}
|
|
3922
|
-
}, process.env.NODE_ENV !== "production" && (U.onTrack = n.onTrack, U.onTrigger = n.onTrigger), t ? s ?
|
|
3989
|
+
}, process.env.NODE_ENV !== "production" && (U.onTrack = n.onTrack, U.onTrigger = n.onTrigger), t ? s ? re(!0) : oe = U.run() : C ? C(re.bind(null, !0), !0) : U.run(), Y.pause = U.pause.bind(U), Y.resume = U.resume.bind(U), Y.stop = Y, Y;
|
|
3923
3990
|
}
|
|
3924
3991
|
function traverse(e, t = 1 / 0, n) {
|
|
3925
3992
|
if (t <= 0 || !isObject(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
|
|
@@ -4088,10 +4155,10 @@ function handleError(e, t, n, s = !0) {
|
|
|
4088
4155
|
let A = t.parent;
|
|
4089
4156
|
const L = t.proxy, B = process.env.NODE_ENV !== "production" ? ErrorTypeStrings$1[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
4090
4157
|
for (; A; ) {
|
|
4091
|
-
const
|
|
4092
|
-
if (
|
|
4093
|
-
for (let U = 0; U <
|
|
4094
|
-
if (
|
|
4158
|
+
const J = A.ec;
|
|
4159
|
+
if (J) {
|
|
4160
|
+
for (let U = 0; U < J.length; U++)
|
|
4161
|
+
if (J[U](e, L, B) === !1)
|
|
4095
4162
|
return;
|
|
4096
4163
|
}
|
|
4097
4164
|
A = A.parent;
|
|
@@ -4337,9 +4404,9 @@ const createHook = (e) => (t, n = currentInstance) => {
|
|
|
4337
4404
|
return !0;
|
|
4338
4405
|
let B;
|
|
4339
4406
|
if (t[0] !== "$") {
|
|
4340
|
-
const
|
|
4341
|
-
if (
|
|
4342
|
-
switch (
|
|
4407
|
+
const X = C[t];
|
|
4408
|
+
if (X !== void 0)
|
|
4409
|
+
switch (X) {
|
|
4343
4410
|
case 1:
|
|
4344
4411
|
return s[t];
|
|
4345
4412
|
case 2:
|
|
@@ -4365,10 +4432,10 @@ const createHook = (e) => (t, n = currentInstance) => {
|
|
|
4365
4432
|
(!__VUE_OPTIONS_API__ || shouldCacheAccess) && (C[t] = 0);
|
|
4366
4433
|
}
|
|
4367
4434
|
}
|
|
4368
|
-
const
|
|
4435
|
+
const J = publicPropertiesMap[t];
|
|
4369
4436
|
let U, V;
|
|
4370
|
-
if (
|
|
4371
|
-
return t === "$attrs" ? (track(e.attrs, "get", ""), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && track(e, "get", t),
|
|
4437
|
+
if (J)
|
|
4438
|
+
return t === "$attrs" ? (track(e.attrs, "get", ""), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && track(e, "get", t), J(e);
|
|
4372
4439
|
if (
|
|
4373
4440
|
// css module (injected by vue-loader)
|
|
4374
4441
|
(U = A.__cssModules) && (U = U[t])
|
|
@@ -4563,23 +4630,23 @@ function doWatch(e, t, n = EMPTY_OBJ) {
|
|
|
4563
4630
|
let B;
|
|
4564
4631
|
if (isInSSRComponentSetup) {
|
|
4565
4632
|
if (l === "sync") {
|
|
4566
|
-
const
|
|
4567
|
-
B =
|
|
4633
|
+
const X = useSSRContext();
|
|
4634
|
+
B = X.__watcherHandles || (X.__watcherHandles = []);
|
|
4568
4635
|
} else if (!L) {
|
|
4569
|
-
const
|
|
4636
|
+
const X = () => {
|
|
4570
4637
|
};
|
|
4571
|
-
return
|
|
4638
|
+
return X.stop = NOOP, X.resume = NOOP, X.pause = NOOP, X;
|
|
4572
4639
|
}
|
|
4573
4640
|
}
|
|
4574
|
-
const
|
|
4575
|
-
A.call = (
|
|
4641
|
+
const J = currentInstance;
|
|
4642
|
+
A.call = (X, ce, se) => callWithAsyncErrorHandling(X, J, ce, se);
|
|
4576
4643
|
let U = !1;
|
|
4577
|
-
l === "post" ? A.scheduler = (
|
|
4578
|
-
queuePostRenderEffect(
|
|
4579
|
-
} : l !== "sync" && (U = !0, A.scheduler = (
|
|
4580
|
-
ce ?
|
|
4581
|
-
}), A.augmentJob = (
|
|
4582
|
-
t && (
|
|
4644
|
+
l === "post" ? A.scheduler = (X) => {
|
|
4645
|
+
queuePostRenderEffect(X, J && J.suspense);
|
|
4646
|
+
} : l !== "sync" && (U = !0, A.scheduler = (X, ce) => {
|
|
4647
|
+
ce ? X() : queueJob(X);
|
|
4648
|
+
}), A.augmentJob = (X) => {
|
|
4649
|
+
t && (X.flags |= 4), U && (X.flags |= 2, J && (X.id = J.uid, X.i = J));
|
|
4583
4650
|
};
|
|
4584
4651
|
const V = watch$1(e, t, A);
|
|
4585
4652
|
return isInSSRComponentSetup && (B ? B.push(V) : L && V()), V;
|
|
@@ -4695,7 +4762,7 @@ function guardReactiveProps(e) {
|
|
|
4695
4762
|
return e ? isProxy(e) || isInternalObject(e) ? extend({}, e) : e : null;
|
|
4696
4763
|
}
|
|
4697
4764
|
function cloneVNode(e, t, n = !1, s = !1) {
|
|
4698
|
-
const { props: c, ref: l, patchFlag: C, children: A, transition: L } = e, B = t ? mergeProps(c || {}, t) : c,
|
|
4765
|
+
const { props: c, ref: l, patchFlag: C, children: A, transition: L } = e, B = t ? mergeProps(c || {}, t) : c, J = {
|
|
4699
4766
|
__v_isVNode: !0,
|
|
4700
4767
|
__v_skip: !0,
|
|
4701
4768
|
type: e.type,
|
|
@@ -4739,9 +4806,9 @@ function cloneVNode(e, t, n = !1, s = !1) {
|
|
|
4739
4806
|
ce: e.ce
|
|
4740
4807
|
};
|
|
4741
4808
|
return L && s && setTransitionHooks(
|
|
4742
|
-
|
|
4743
|
-
L.clone(
|
|
4744
|
-
),
|
|
4809
|
+
J,
|
|
4810
|
+
L.clone(J)
|
|
4811
|
+
), J;
|
|
4745
4812
|
}
|
|
4746
4813
|
function deepCloneVNode(e) {
|
|
4747
4814
|
const t = cloneVNode(e);
|
|
@@ -4876,7 +4943,7 @@ function initCustomFormatter() {
|
|
|
4876
4943
|
return isObject(U) ? U.__isVue ? ["div", e, "VueInstance"] : isRef(U) ? [
|
|
4877
4944
|
"div",
|
|
4878
4945
|
{},
|
|
4879
|
-
["span", e,
|
|
4946
|
+
["span", e, J(U)],
|
|
4880
4947
|
"<",
|
|
4881
4948
|
// avoid debugger accessing value affecting behavior
|
|
4882
4949
|
A("_value" in U ? U._value : U),
|
|
@@ -4912,8 +4979,8 @@ function initCustomFormatter() {
|
|
|
4912
4979
|
function l(U) {
|
|
4913
4980
|
const V = [];
|
|
4914
4981
|
U.type.props && U.props && V.push(C("props", toRaw(U.props))), U.setupState !== EMPTY_OBJ && V.push(C("setup", U.setupState)), U.data !== EMPTY_OBJ && V.push(C("data", toRaw(U.data)));
|
|
4915
|
-
const
|
|
4916
|
-
|
|
4982
|
+
const X = L(U, "computed");
|
|
4983
|
+
X && V.push(C("computed", X));
|
|
4917
4984
|
const ce = L(U, "inject");
|
|
4918
4985
|
return ce && V.push(C("injected", ce)), V.push([
|
|
4919
4986
|
"div",
|
|
@@ -4944,11 +5011,11 @@ function initCustomFormatter() {
|
|
|
4944
5011
|
{
|
|
4945
5012
|
style: "padding-left:1.25em"
|
|
4946
5013
|
},
|
|
4947
|
-
...Object.keys(V).map((
|
|
5014
|
+
...Object.keys(V).map((X) => [
|
|
4948
5015
|
"div",
|
|
4949
5016
|
{},
|
|
4950
|
-
["span", s,
|
|
4951
|
-
A(V[
|
|
5017
|
+
["span", s, X + ": "],
|
|
5018
|
+
A(V[X], !1)
|
|
4952
5019
|
])
|
|
4953
5020
|
]
|
|
4954
5021
|
] : ["span", {}];
|
|
@@ -4957,20 +5024,20 @@ function initCustomFormatter() {
|
|
|
4957
5024
|
return typeof U == "number" ? ["span", t, U] : typeof U == "string" ? ["span", n, JSON.stringify(U)] : typeof U == "boolean" ? ["span", s, U] : isObject(U) ? ["object", { object: V ? toRaw(U) : U }] : ["span", n, String(U)];
|
|
4958
5025
|
}
|
|
4959
5026
|
function L(U, V) {
|
|
4960
|
-
const
|
|
4961
|
-
if (isFunction(
|
|
5027
|
+
const X = U.type;
|
|
5028
|
+
if (isFunction(X))
|
|
4962
5029
|
return;
|
|
4963
5030
|
const ce = {};
|
|
4964
5031
|
for (const se in U.ctx)
|
|
4965
|
-
B(
|
|
5032
|
+
B(X, se, V) && (ce[se] = U.ctx[se]);
|
|
4966
5033
|
return ce;
|
|
4967
5034
|
}
|
|
4968
|
-
function B(U, V,
|
|
4969
|
-
const ce = U[
|
|
4970
|
-
if (isArray(ce) && ce.includes(V) || isObject(ce) && V in ce || U.extends && B(U.extends, V,
|
|
5035
|
+
function B(U, V, X) {
|
|
5036
|
+
const ce = U[X];
|
|
5037
|
+
if (isArray(ce) && ce.includes(V) || isObject(ce) && V in ce || U.extends && B(U.extends, V, X) || U.mixins && U.mixins.some((se) => B(se, V, X)))
|
|
4971
5038
|
return !0;
|
|
4972
5039
|
}
|
|
4973
|
-
function
|
|
5040
|
+
function J(U) {
|
|
4974
5041
|
return isShallow(U) ? "ShallowRef" : U.effect ? "ComputedRef" : "Ref";
|
|
4975
5042
|
}
|
|
4976
5043
|
window.devtoolsFormatters ? window.devtoolsFormatters.push(c) : window.devtoolsFormatters = [c];
|
|
@@ -5268,45 +5335,45 @@ function createComposer(e = {}, t) {
|
|
|
5268
5335
|
const B = C(
|
|
5269
5336
|
// prettier-ignore
|
|
5270
5337
|
n && L ? n.locale.value : isString$2(e.locale) ? e.locale : DEFAULT_LOCALE
|
|
5271
|
-
),
|
|
5338
|
+
), J = C(
|
|
5272
5339
|
// prettier-ignore
|
|
5273
5340
|
n && L ? n.fallbackLocale.value : isString$2(e.fallbackLocale) || isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : B.value
|
|
5274
|
-
), U = C(getLocaleMessages(B.value, e)), V = C(isPlainObject$1(e.datetimeFormats) ? e.datetimeFormats : { [B.value]: {} }),
|
|
5275
|
-
let ce = n ? n.missingWarn : isBoolean(e.missingWarn) || isRegExp(e.missingWarn) ? e.missingWarn : !0, se = n ? n.fallbackWarn : isBoolean(e.fallbackWarn) || isRegExp(e.fallbackWarn) ? e.fallbackWarn : !0,
|
|
5341
|
+
), U = C(getLocaleMessages(B.value, e)), V = C(isPlainObject$1(e.datetimeFormats) ? e.datetimeFormats : { [B.value]: {} }), X = C(isPlainObject$1(e.numberFormats) ? e.numberFormats : { [B.value]: {} });
|
|
5342
|
+
let ce = n ? n.missingWarn : isBoolean(e.missingWarn) || isRegExp(e.missingWarn) ? e.missingWarn : !0, se = n ? n.fallbackWarn : isBoolean(e.fallbackWarn) || isRegExp(e.fallbackWarn) ? e.fallbackWarn : !0, ne = n ? n.fallbackRoot : isBoolean(e.fallbackRoot) ? e.fallbackRoot : !0, q = !!e.fallbackFormat, Y = isFunction$1(e.missing) ? e.missing : null, oe = isFunction$1(e.missing) ? defineCoreMissingHandler(e.missing) : null, re = isFunction$1(e.postTranslation) ? e.postTranslation : null, ae = n ? n.warnHtmlMessage : isBoolean(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, te = !!e.escapeParameter;
|
|
5276
5343
|
const ie = n ? n.modifiers : isPlainObject$1(e.modifiers) ? e.modifiers : {};
|
|
5277
|
-
let
|
|
5344
|
+
let H = e.pluralRules || n && n.pluralRules, $;
|
|
5278
5345
|
$ = (() => {
|
|
5279
5346
|
c && setFallbackContext(null);
|
|
5280
5347
|
const ee = {
|
|
5281
5348
|
version: VERSION,
|
|
5282
5349
|
locale: B.value,
|
|
5283
|
-
fallbackLocale:
|
|
5350
|
+
fallbackLocale: J.value,
|
|
5284
5351
|
messages: U.value,
|
|
5285
5352
|
modifiers: ie,
|
|
5286
|
-
pluralRules:
|
|
5287
|
-
missing:
|
|
5353
|
+
pluralRules: H,
|
|
5354
|
+
missing: oe === null ? void 0 : oe,
|
|
5288
5355
|
missingWarn: ce,
|
|
5289
5356
|
fallbackWarn: se,
|
|
5290
|
-
fallbackFormat:
|
|
5357
|
+
fallbackFormat: q,
|
|
5291
5358
|
unresolving: !0,
|
|
5292
|
-
postTranslation:
|
|
5293
|
-
warnHtmlMessage:
|
|
5294
|
-
escapeParameter:
|
|
5359
|
+
postTranslation: re === null ? void 0 : re,
|
|
5360
|
+
warnHtmlMessage: ae,
|
|
5361
|
+
escapeParameter: te,
|
|
5295
5362
|
messageResolver: e.messageResolver,
|
|
5296
5363
|
messageCompiler: e.messageCompiler,
|
|
5297
5364
|
__meta: { framework: "vue" }
|
|
5298
5365
|
};
|
|
5299
|
-
ee.datetimeFormats = V.value, ee.numberFormats =
|
|
5366
|
+
ee.datetimeFormats = V.value, ee.numberFormats = X.value, ee.__datetimeFormatters = isPlainObject$1($) ? $.__datetimeFormatters : void 0, ee.__numberFormatters = isPlainObject$1($) ? $.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (ee.__v_emitter = isPlainObject$1($) ? $.__v_emitter : void 0);
|
|
5300
5367
|
const le = createCoreContext(ee);
|
|
5301
5368
|
return c && setFallbackContext(le), le;
|
|
5302
|
-
})(), updateFallbackLocale($, B.value,
|
|
5369
|
+
})(), updateFallbackLocale($, B.value, J.value);
|
|
5303
5370
|
function pe() {
|
|
5304
5371
|
return [
|
|
5305
5372
|
B.value,
|
|
5306
|
-
|
|
5373
|
+
J.value,
|
|
5307
5374
|
U.value,
|
|
5308
5375
|
V.value,
|
|
5309
|
-
|
|
5376
|
+
X.value
|
|
5310
5377
|
];
|
|
5311
5378
|
}
|
|
5312
5379
|
const de = computed({
|
|
@@ -5314,28 +5381,28 @@ function createComposer(e = {}, t) {
|
|
|
5314
5381
|
set: (ee) => {
|
|
5315
5382
|
B.value = ee, $.locale = B.value;
|
|
5316
5383
|
}
|
|
5317
|
-
}),
|
|
5318
|
-
get: () =>
|
|
5384
|
+
}), me = computed({
|
|
5385
|
+
get: () => J.value,
|
|
5319
5386
|
set: (ee) => {
|
|
5320
|
-
|
|
5387
|
+
J.value = ee, $.fallbackLocale = J.value, updateFallbackLocale($, B.value, ee);
|
|
5321
5388
|
}
|
|
5322
|
-
}),
|
|
5389
|
+
}), Oe = computed(() => U.value), Ae = /* @__PURE__ */ computed(() => V.value), Ce = /* @__PURE__ */ computed(() => X.value);
|
|
5323
5390
|
function Ee() {
|
|
5324
|
-
return isFunction$1(
|
|
5391
|
+
return isFunction$1(re) ? re : null;
|
|
5325
5392
|
}
|
|
5326
5393
|
function Re(ee) {
|
|
5327
|
-
|
|
5394
|
+
re = ee, $.postTranslation = ee;
|
|
5328
5395
|
}
|
|
5329
|
-
function
|
|
5330
|
-
return
|
|
5396
|
+
function Te() {
|
|
5397
|
+
return Y;
|
|
5331
5398
|
}
|
|
5332
5399
|
function Fe(ee) {
|
|
5333
|
-
ee !== null && (
|
|
5400
|
+
ee !== null && (oe = defineCoreMissingHandler(ee)), Y = ee, $.missing = oe;
|
|
5334
5401
|
}
|
|
5335
|
-
function
|
|
5402
|
+
function ke(ee, le) {
|
|
5336
5403
|
return ee !== "translate" || !le.resolvedMessage;
|
|
5337
5404
|
}
|
|
5338
|
-
const he = (ee, le,
|
|
5405
|
+
const he = (ee, le, ve, we, je, Be) => {
|
|
5339
5406
|
pe();
|
|
5340
5407
|
let xe;
|
|
5341
5408
|
try {
|
|
@@ -5343,22 +5410,22 @@ function createComposer(e = {}, t) {
|
|
|
5343
5410
|
} finally {
|
|
5344
5411
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, c || ($.fallbackContext = void 0);
|
|
5345
5412
|
}
|
|
5346
|
-
if (
|
|
5347
|
-
isNumber(xe) && xe === NOT_REOSLVED ||
|
|
5413
|
+
if (ve !== "translate exists" && // for not `te` (e.g `t`)
|
|
5414
|
+
isNumber(xe) && xe === NOT_REOSLVED || ve === "translate exists" && !xe) {
|
|
5348
5415
|
const [$e, We] = le();
|
|
5349
|
-
if (process.env.NODE_ENV !== "production" && n && isString$2($e) &&
|
|
5416
|
+
if (process.env.NODE_ENV !== "production" && n && isString$2($e) && ke(ve, We) && (ne && (isTranslateFallbackWarn(se, $e) || isTranslateMissingWarn(ce, $e)) && warn$2(getWarnMessage(I18nWarnCodes.FALLBACK_TO_ROOT, {
|
|
5350
5417
|
key: $e,
|
|
5351
|
-
type:
|
|
5418
|
+
type: ve
|
|
5352
5419
|
})), process.env.NODE_ENV !== "production")) {
|
|
5353
5420
|
const { __v_emitter: Ve } = $;
|
|
5354
|
-
Ve &&
|
|
5355
|
-
type:
|
|
5421
|
+
Ve && ne && Ve.emit("fallback", {
|
|
5422
|
+
type: ve,
|
|
5356
5423
|
key: $e,
|
|
5357
5424
|
to: "global",
|
|
5358
|
-
groupId: `${
|
|
5425
|
+
groupId: `${ve}:${$e}`
|
|
5359
5426
|
});
|
|
5360
5427
|
}
|
|
5361
|
-
return n &&
|
|
5428
|
+
return n && ne ? we(n) : je($e);
|
|
5362
5429
|
} else {
|
|
5363
5430
|
if (Be(xe))
|
|
5364
5431
|
return xe;
|
|
@@ -5369,15 +5436,15 @@ function createComposer(e = {}, t) {
|
|
|
5369
5436
|
return he((le) => Reflect.apply(translate, null, [le, ...ee]), () => parseTranslateArgs(...ee), "translate", (le) => Reflect.apply(le.t, le, [...ee]), (le) => le, (le) => isString$2(le));
|
|
5370
5437
|
}
|
|
5371
5438
|
function fe(...ee) {
|
|
5372
|
-
const [le,
|
|
5439
|
+
const [le, ve, we] = ee;
|
|
5373
5440
|
if (we && !isObject$2(we))
|
|
5374
5441
|
throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);
|
|
5375
|
-
return Le(le,
|
|
5442
|
+
return Le(le, ve, assign$1({ resolvedMessage: !0 }, we || {}));
|
|
5376
5443
|
}
|
|
5377
5444
|
function Pe(...ee) {
|
|
5378
5445
|
return he((le) => Reflect.apply(datetime, null, [le, ...ee]), () => parseDateTimeArgs(...ee), "datetime format", (le) => Reflect.apply(le.d, le, [...ee]), () => MISSING_RESOLVE_VALUE, (le) => isString$2(le));
|
|
5379
5446
|
}
|
|
5380
|
-
function
|
|
5447
|
+
function Me(...ee) {
|
|
5381
5448
|
return he((le) => Reflect.apply(number, null, [le, ...ee]), () => parseNumberArgs(...ee), "number format", (le) => Reflect.apply(le.n, le, [...ee]), () => MISSING_RESOLVE_VALUE, (le) => isString$2(le));
|
|
5382
5449
|
}
|
|
5383
5450
|
function De(ee) {
|
|
@@ -5391,14 +5458,14 @@ function createComposer(e = {}, t) {
|
|
|
5391
5458
|
function D(...ee) {
|
|
5392
5459
|
return he(
|
|
5393
5460
|
(le) => {
|
|
5394
|
-
let
|
|
5461
|
+
let ve;
|
|
5395
5462
|
const we = le;
|
|
5396
5463
|
try {
|
|
5397
|
-
we.processor = be,
|
|
5464
|
+
we.processor = be, ve = Reflect.apply(translate, null, [we, ...ee]);
|
|
5398
5465
|
} finally {
|
|
5399
5466
|
we.processor = null;
|
|
5400
5467
|
}
|
|
5401
|
-
return
|
|
5468
|
+
return ve;
|
|
5402
5469
|
},
|
|
5403
5470
|
() => parseTranslateArgs(...ee),
|
|
5404
5471
|
"translate",
|
|
@@ -5431,21 +5498,21 @@ function createComposer(e = {}, t) {
|
|
|
5431
5498
|
);
|
|
5432
5499
|
}
|
|
5433
5500
|
function R(ee) {
|
|
5434
|
-
|
|
5501
|
+
H = ee, $.pluralRules = H;
|
|
5435
5502
|
}
|
|
5436
5503
|
function I(ee, le) {
|
|
5437
5504
|
return he(() => {
|
|
5438
5505
|
if (!ee)
|
|
5439
5506
|
return !1;
|
|
5440
|
-
const
|
|
5507
|
+
const ve = isString$2(le) ? le : B.value, we = j(ve), je = $.messageResolver(we, ee);
|
|
5441
5508
|
return A ? je != null : isMessageAST(je) || isMessageFunction(je) || isString$2(je);
|
|
5442
|
-
}, () => [ee], "translate exists", (
|
|
5509
|
+
}, () => [ee], "translate exists", (ve) => Reflect.apply(ve.te, ve, [ee, le]), NOOP_RETURN_FALSE, (ve) => isBoolean(ve));
|
|
5443
5510
|
}
|
|
5444
5511
|
function F(ee) {
|
|
5445
5512
|
let le = null;
|
|
5446
|
-
const
|
|
5447
|
-
for (let we = 0; we <
|
|
5448
|
-
const je = U.value[
|
|
5513
|
+
const ve = fallbackWithLocaleChain($, J.value, B.value);
|
|
5514
|
+
for (let we = 0; we < ve.length; we++) {
|
|
5515
|
+
const je = U.value[ve[we]] || {}, Be = $.messageResolver(je, ee);
|
|
5449
5516
|
if (Be != null) {
|
|
5450
5517
|
le = Be;
|
|
5451
5518
|
break;
|
|
@@ -5453,7 +5520,7 @@ function createComposer(e = {}, t) {
|
|
|
5453
5520
|
}
|
|
5454
5521
|
return le;
|
|
5455
5522
|
}
|
|
5456
|
-
function
|
|
5523
|
+
function G(ee) {
|
|
5457
5524
|
const le = F(ee);
|
|
5458
5525
|
return le ?? (n ? n.tm(ee) || {} : {});
|
|
5459
5526
|
}
|
|
@@ -5462,20 +5529,20 @@ function createComposer(e = {}, t) {
|
|
|
5462
5529
|
}
|
|
5463
5530
|
function K(ee, le) {
|
|
5464
5531
|
if (l) {
|
|
5465
|
-
const
|
|
5466
|
-
for (const we in
|
|
5467
|
-
hasOwn$1(
|
|
5468
|
-
le =
|
|
5532
|
+
const ve = { [ee]: le };
|
|
5533
|
+
for (const we in ve)
|
|
5534
|
+
hasOwn$1(ve, we) && handleFlatJson(ve[we]);
|
|
5535
|
+
le = ve[ee];
|
|
5469
5536
|
}
|
|
5470
5537
|
U.value[ee] = le, $.messages = U.value;
|
|
5471
5538
|
}
|
|
5472
5539
|
function Z(ee, le) {
|
|
5473
5540
|
U.value[ee] = U.value[ee] || {};
|
|
5474
|
-
const
|
|
5541
|
+
const ve = { [ee]: le };
|
|
5475
5542
|
if (l)
|
|
5476
|
-
for (const we in
|
|
5477
|
-
hasOwn$1(
|
|
5478
|
-
le =
|
|
5543
|
+
for (const we in ve)
|
|
5544
|
+
hasOwn$1(ve, we) && handleFlatJson(ve[we]);
|
|
5545
|
+
le = ve[ee], deepCopy(le, U.value[ee]), $.messages = U.value;
|
|
5479
5546
|
}
|
|
5480
5547
|
function z(ee) {
|
|
5481
5548
|
return V.value[ee] || {};
|
|
@@ -5483,42 +5550,42 @@ function createComposer(e = {}, t) {
|
|
|
5483
5550
|
function ue(ee, le) {
|
|
5484
5551
|
V.value[ee] = le, $.datetimeFormats = V.value, clearDateTimeFormat($, ee, le);
|
|
5485
5552
|
}
|
|
5486
|
-
function
|
|
5553
|
+
function ge(ee, le) {
|
|
5487
5554
|
V.value[ee] = assign$1(V.value[ee] || {}, le), $.datetimeFormats = V.value, clearDateTimeFormat($, ee, le);
|
|
5488
5555
|
}
|
|
5489
5556
|
function _e(ee) {
|
|
5490
|
-
return
|
|
5557
|
+
return X.value[ee] || {};
|
|
5491
5558
|
}
|
|
5492
5559
|
function ye(ee, le) {
|
|
5493
|
-
|
|
5560
|
+
X.value[ee] = le, $.numberFormats = X.value, clearNumberFormat($, ee, le);
|
|
5494
5561
|
}
|
|
5495
5562
|
function Se(ee, le) {
|
|
5496
|
-
|
|
5563
|
+
X.value[ee] = assign$1(X.value[ee] || {}, le), $.numberFormats = X.value, clearNumberFormat($, ee, le);
|
|
5497
5564
|
}
|
|
5498
5565
|
composerID++, n && inBrowser && (watch(n.locale, (ee) => {
|
|
5499
|
-
L && (B.value = ee, $.locale = ee, updateFallbackLocale($, B.value,
|
|
5566
|
+
L && (B.value = ee, $.locale = ee, updateFallbackLocale($, B.value, J.value));
|
|
5500
5567
|
}), watch(n.fallbackLocale, (ee) => {
|
|
5501
|
-
L && (
|
|
5568
|
+
L && (J.value = ee, $.fallbackLocale = ee, updateFallbackLocale($, B.value, J.value));
|
|
5502
5569
|
}));
|
|
5503
5570
|
const Ne = {
|
|
5504
5571
|
id: composerID,
|
|
5505
5572
|
locale: de,
|
|
5506
|
-
fallbackLocale:
|
|
5573
|
+
fallbackLocale: me,
|
|
5507
5574
|
get inheritLocale() {
|
|
5508
5575
|
return L;
|
|
5509
5576
|
},
|
|
5510
5577
|
set inheritLocale(ee) {
|
|
5511
|
-
L = ee, ee && n && (B.value = n.locale.value,
|
|
5578
|
+
L = ee, ee && n && (B.value = n.locale.value, J.value = n.fallbackLocale.value, updateFallbackLocale($, B.value, J.value));
|
|
5512
5579
|
},
|
|
5513
5580
|
get availableLocales() {
|
|
5514
5581
|
return Object.keys(U.value).sort();
|
|
5515
5582
|
},
|
|
5516
|
-
messages:
|
|
5583
|
+
messages: Oe,
|
|
5517
5584
|
get modifiers() {
|
|
5518
5585
|
return ie;
|
|
5519
5586
|
},
|
|
5520
5587
|
get pluralRules() {
|
|
5521
|
-
return
|
|
5588
|
+
return H || {};
|
|
5522
5589
|
},
|
|
5523
5590
|
get isGlobal() {
|
|
5524
5591
|
return c;
|
|
@@ -5536,28 +5603,28 @@ function createComposer(e = {}, t) {
|
|
|
5536
5603
|
se = ee, $.fallbackWarn = se;
|
|
5537
5604
|
},
|
|
5538
5605
|
get fallbackRoot() {
|
|
5539
|
-
return
|
|
5606
|
+
return ne;
|
|
5540
5607
|
},
|
|
5541
5608
|
set fallbackRoot(ee) {
|
|
5542
|
-
|
|
5609
|
+
ne = ee;
|
|
5543
5610
|
},
|
|
5544
5611
|
get fallbackFormat() {
|
|
5545
|
-
return
|
|
5612
|
+
return q;
|
|
5546
5613
|
},
|
|
5547
5614
|
set fallbackFormat(ee) {
|
|
5548
|
-
|
|
5615
|
+
q = ee, $.fallbackFormat = q;
|
|
5549
5616
|
},
|
|
5550
5617
|
get warnHtmlMessage() {
|
|
5551
|
-
return
|
|
5618
|
+
return ae;
|
|
5552
5619
|
},
|
|
5553
5620
|
set warnHtmlMessage(ee) {
|
|
5554
|
-
|
|
5621
|
+
ae = ee, $.warnHtmlMessage = ee;
|
|
5555
5622
|
},
|
|
5556
5623
|
get escapeParameter() {
|
|
5557
|
-
return
|
|
5624
|
+
return te;
|
|
5558
5625
|
},
|
|
5559
5626
|
set escapeParameter(ee) {
|
|
5560
|
-
|
|
5627
|
+
te = ee, $.escapeParameter = ee;
|
|
5561
5628
|
},
|
|
5562
5629
|
t: Le,
|
|
5563
5630
|
getLocaleMessage: j,
|
|
@@ -5565,35 +5632,35 @@ function createComposer(e = {}, t) {
|
|
|
5565
5632
|
mergeLocaleMessage: Z,
|
|
5566
5633
|
getPostTranslationHandler: Ee,
|
|
5567
5634
|
setPostTranslationHandler: Re,
|
|
5568
|
-
getMissingHandler:
|
|
5635
|
+
getMissingHandler: Te,
|
|
5569
5636
|
setMissingHandler: Fe,
|
|
5570
5637
|
[SetPluralRulesSymbol]: R
|
|
5571
5638
|
};
|
|
5572
|
-
return Ne.datetimeFormats = Ae, Ne.numberFormats = Ce, Ne.rt = fe, Ne.te = I, Ne.tm =
|
|
5639
|
+
return Ne.datetimeFormats = Ae, Ne.numberFormats = Ce, Ne.rt = fe, Ne.te = I, Ne.tm = G, Ne.d = Pe, Ne.n = Me, Ne.getDateTimeFormat = z, Ne.setDateTimeFormat = ue, Ne.mergeDateTimeFormat = ge, Ne.getNumberFormat = _e, Ne.setNumberFormat = ye, Ne.mergeNumberFormat = Se, Ne[InejctWithOptionSymbol] = s, Ne[TranslateVNodeSymbol] = D, Ne[DatetimePartsSymbol] = W, Ne[NumberPartsSymbol] = M, process.env.NODE_ENV !== "production" && (Ne[EnableEmitter] = (ee) => {
|
|
5573
5640
|
$.__v_emitter = ee;
|
|
5574
5641
|
}, Ne[DisableEmitter] = () => {
|
|
5575
5642
|
$.__v_emitter = void 0;
|
|
5576
5643
|
}), Ne;
|
|
5577
5644
|
}
|
|
5578
5645
|
function convertComposerOptions(e) {
|
|
5579
|
-
const t = isString$2(e.locale) ? e.locale : DEFAULT_LOCALE, n = isString$2(e.fallbackLocale) || isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, s = isFunction$1(e.missing) ? e.missing : void 0, c = isBoolean(e.silentTranslationWarn) || isRegExp(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, l = isBoolean(e.silentFallbackWarn) || isRegExp(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, C = isBoolean(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.formatFallbackMessages, L = isPlainObject$1(e.modifiers) ? e.modifiers : {}, B = e.pluralizationRules,
|
|
5646
|
+
const t = isString$2(e.locale) ? e.locale : DEFAULT_LOCALE, n = isString$2(e.fallbackLocale) || isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, s = isFunction$1(e.missing) ? e.missing : void 0, c = isBoolean(e.silentTranslationWarn) || isRegExp(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, l = isBoolean(e.silentFallbackWarn) || isRegExp(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, C = isBoolean(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.formatFallbackMessages, L = isPlainObject$1(e.modifiers) ? e.modifiers : {}, B = e.pluralizationRules, J = isFunction$1(e.postTranslation) ? e.postTranslation : void 0, U = isString$2(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, V = !!e.escapeParameterHtml, X = isBoolean(e.sync) ? e.sync : !0;
|
|
5580
5647
|
process.env.NODE_ENV !== "production" && e.formatter && warn$2(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)), process.env.NODE_ENV !== "production" && e.preserveDirectiveContent && warn$2(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE));
|
|
5581
5648
|
let ce = e.messages;
|
|
5582
5649
|
if (isPlainObject$1(e.sharedMessages)) {
|
|
5583
|
-
const
|
|
5584
|
-
ce = Object.keys(
|
|
5585
|
-
const
|
|
5586
|
-
return assign$1(
|
|
5650
|
+
const te = e.sharedMessages;
|
|
5651
|
+
ce = Object.keys(te).reduce((H, $) => {
|
|
5652
|
+
const Q = H[$] || (H[$] = {});
|
|
5653
|
+
return assign$1(Q, te[$]), H;
|
|
5587
5654
|
}, ce || {});
|
|
5588
5655
|
}
|
|
5589
|
-
const { __i18n: se, __root:
|
|
5656
|
+
const { __i18n: se, __root: ne, __injectWithOption: q } = e, Y = e.datetimeFormats, oe = e.numberFormats, re = e.flatJson, ae = e.translateExistCompatible;
|
|
5590
5657
|
return {
|
|
5591
5658
|
locale: t,
|
|
5592
5659
|
fallbackLocale: n,
|
|
5593
5660
|
messages: ce,
|
|
5594
|
-
flatJson:
|
|
5595
|
-
datetimeFormats:
|
|
5596
|
-
numberFormats:
|
|
5661
|
+
flatJson: re,
|
|
5662
|
+
datetimeFormats: Y,
|
|
5663
|
+
numberFormats: oe,
|
|
5597
5664
|
missing: s,
|
|
5598
5665
|
missingWarn: c,
|
|
5599
5666
|
fallbackWarn: l,
|
|
@@ -5601,15 +5668,15 @@ function convertComposerOptions(e) {
|
|
|
5601
5668
|
fallbackFormat: A,
|
|
5602
5669
|
modifiers: L,
|
|
5603
5670
|
pluralRules: B,
|
|
5604
|
-
postTranslation:
|
|
5671
|
+
postTranslation: J,
|
|
5605
5672
|
warnHtmlMessage: U,
|
|
5606
5673
|
escapeParameter: V,
|
|
5607
5674
|
messageResolver: e.messageResolver,
|
|
5608
|
-
inheritLocale:
|
|
5609
|
-
translateExistCompatible:
|
|
5675
|
+
inheritLocale: X,
|
|
5676
|
+
translateExistCompatible: ae,
|
|
5610
5677
|
__i18n: se,
|
|
5611
|
-
__root:
|
|
5612
|
-
__injectWithOption:
|
|
5678
|
+
__root: ne,
|
|
5679
|
+
__injectWithOption: q
|
|
5613
5680
|
};
|
|
5614
5681
|
}
|
|
5615
5682
|
function createVueI18n(e = {}, t) {
|
|
@@ -5734,13 +5801,13 @@ function createVueI18n(e = {}, t) {
|
|
|
5734
5801
|
// t
|
|
5735
5802
|
t(...l) {
|
|
5736
5803
|
const [C, A, L] = l, B = {};
|
|
5737
|
-
let
|
|
5804
|
+
let J = null, U = null;
|
|
5738
5805
|
if (!isString$2(C))
|
|
5739
5806
|
throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);
|
|
5740
5807
|
const V = C;
|
|
5741
|
-
return isString$2(A) ? B.locale = A : isArray$1(A) ?
|
|
5808
|
+
return isString$2(A) ? B.locale = A : isArray$1(A) ? J = A : isPlainObject$1(A) && (U = A), isArray$1(L) ? J = L : isPlainObject$1(L) && (U = L), Reflect.apply(n.t, n, [
|
|
5742
5809
|
V,
|
|
5743
|
-
|
|
5810
|
+
J || U || {},
|
|
5744
5811
|
B
|
|
5745
5812
|
]);
|
|
5746
5813
|
},
|
|
@@ -5750,13 +5817,13 @@ function createVueI18n(e = {}, t) {
|
|
|
5750
5817
|
// tc
|
|
5751
5818
|
tc(...l) {
|
|
5752
5819
|
const [C, A, L] = l, B = { plural: 1 };
|
|
5753
|
-
let
|
|
5820
|
+
let J = null, U = null;
|
|
5754
5821
|
if (!isString$2(C))
|
|
5755
5822
|
throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);
|
|
5756
5823
|
const V = C;
|
|
5757
|
-
return isString$2(A) ? B.locale = A : isNumber(A) ? B.plural = A : isArray$1(A) ?
|
|
5824
|
+
return isString$2(A) ? B.locale = A : isNumber(A) ? B.plural = A : isArray$1(A) ? J = A : isPlainObject$1(A) && (U = A), isString$2(L) ? B.locale = L : isArray$1(L) ? J = L : isPlainObject$1(L) && (U = L), Reflect.apply(n.t, n, [
|
|
5758
5825
|
V,
|
|
5759
|
-
|
|
5826
|
+
J || U || {},
|
|
5760
5827
|
B
|
|
5761
5828
|
]);
|
|
5762
5829
|
},
|
|
@@ -5882,8 +5949,8 @@ const TranslationImpl = /* @__PURE__ */ defineComponent({
|
|
|
5882
5949
|
return () => {
|
|
5883
5950
|
const l = Object.keys(n).filter((U) => U !== "_"), C = {};
|
|
5884
5951
|
e.locale && (C.locale = e.locale), e.plural !== void 0 && (C.plural = isString$2(e.plural) ? +e.plural : e.plural);
|
|
5885
|
-
const A = getInterpolateArg(t, l), L = c[TranslateVNodeSymbol](e.keypath, A, C), B = assign$1({}, s),
|
|
5886
|
-
return h(
|
|
5952
|
+
const A = getInterpolateArg(t, l), L = c[TranslateVNodeSymbol](e.keypath, A, C), B = assign$1({}, s), J = isString$2(e.tag) || isObject$2(e.tag) ? e.tag : getFragmentableTag();
|
|
5953
|
+
return h(J, B, L);
|
|
5887
5954
|
};
|
|
5888
5955
|
}
|
|
5889
5956
|
}), Translation = TranslationImpl;
|
|
@@ -5895,15 +5962,15 @@ function renderFormatter(e, t, n, s) {
|
|
|
5895
5962
|
return () => {
|
|
5896
5963
|
const C = { part: !0 };
|
|
5897
5964
|
let A = {};
|
|
5898
|
-
e.locale && (C.locale = e.locale), isString$2(e.format) ? C.key = e.format : isObject$2(e.format) && (isString$2(e.format.key) && (C.key = e.format.key), A = Object.keys(e.format).reduce((V,
|
|
5965
|
+
e.locale && (C.locale = e.locale), isString$2(e.format) ? C.key = e.format : isObject$2(e.format) && (isString$2(e.format.key) && (C.key = e.format.key), A = Object.keys(e.format).reduce((V, X) => n.includes(X) ? assign$1({}, V, { [X]: e.format[X] }) : V, {}));
|
|
5899
5966
|
const L = s(e.value, C, A);
|
|
5900
5967
|
let B = [C.key];
|
|
5901
|
-
isArray$1(L) ? B = L.map((V,
|
|
5902
|
-
const ce = c[V.type], se = ce ? ce({ [V.type]: V.value, index:
|
|
5903
|
-
return isVNode(se) && (se[0].key = `${V.type}-${
|
|
5968
|
+
isArray$1(L) ? B = L.map((V, X) => {
|
|
5969
|
+
const ce = c[V.type], se = ce ? ce({ [V.type]: V.value, index: X, parts: L }) : [V.value];
|
|
5970
|
+
return isVNode(se) && (se[0].key = `${V.type}-${X}`), se;
|
|
5904
5971
|
}) : isString$2(L) && (B = [L]);
|
|
5905
|
-
const
|
|
5906
|
-
return h(U,
|
|
5972
|
+
const J = assign$1({}, l), U = isString$2(e.tag) || isObject$2(e.tag) ? e.tag : getFragmentableTag();
|
|
5973
|
+
return h(U, J, B);
|
|
5907
5974
|
};
|
|
5908
5975
|
}
|
|
5909
5976
|
const NumberFormatImpl = /* @__PURE__ */ defineComponent({
|
|
@@ -5969,12 +6036,12 @@ function vTDirective(e) {
|
|
|
5969
6036
|
const { instance: A, modifiers: L, value: B } = C;
|
|
5970
6037
|
if (!A || !A.$)
|
|
5971
6038
|
throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
|
|
5972
|
-
const
|
|
6039
|
+
const J = getComposer$2(e, A.$);
|
|
5973
6040
|
process.env.NODE_ENV !== "production" && L.preserve && warn$2(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE));
|
|
5974
6041
|
const U = parseValue(B);
|
|
5975
6042
|
return [
|
|
5976
|
-
Reflect.apply(
|
|
5977
|
-
|
|
6043
|
+
Reflect.apply(J.t, J, [...makeParams(U)]),
|
|
6044
|
+
J
|
|
5978
6045
|
];
|
|
5979
6046
|
};
|
|
5980
6047
|
return {
|
|
@@ -6361,8 +6428,8 @@ function createI18n(e = {}, t) {
|
|
|
6361
6428
|
function B(V) {
|
|
6362
6429
|
return l.get(V) || null;
|
|
6363
6430
|
}
|
|
6364
|
-
function
|
|
6365
|
-
l.set(V,
|
|
6431
|
+
function J(V, X) {
|
|
6432
|
+
l.set(V, X);
|
|
6366
6433
|
}
|
|
6367
6434
|
function U(V) {
|
|
6368
6435
|
l.delete(V);
|
|
@@ -6378,28 +6445,28 @@ function createI18n(e = {}, t) {
|
|
|
6378
6445
|
return c;
|
|
6379
6446
|
},
|
|
6380
6447
|
// install plugin
|
|
6381
|
-
async install(
|
|
6382
|
-
if ((process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) && (
|
|
6383
|
-
const
|
|
6384
|
-
V.__composerExtend =
|
|
6448
|
+
async install(X, ...ce) {
|
|
6449
|
+
if ((process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) && (X.__VUE_I18N__ = V), X.__VUE_I18N_SYMBOL__ = L, X.provide(X.__VUE_I18N_SYMBOL__, V), isPlainObject$1(ce[0])) {
|
|
6450
|
+
const q = ce[0];
|
|
6451
|
+
V.__composerExtend = q.__composerExtend, V.__vueI18nExtend = q.__vueI18nExtend;
|
|
6385
6452
|
}
|
|
6386
6453
|
let se = null;
|
|
6387
|
-
!n && s && (se = injectGlobalFields(
|
|
6388
|
-
const
|
|
6389
|
-
if (
|
|
6390
|
-
se && se(), V.dispose(),
|
|
6454
|
+
!n && s && (se = injectGlobalFields(X, V.global)), __VUE_I18N_FULL_INSTALL__ && apply(X, V, ...ce), __VUE_I18N_LEGACY_API__ && n && X.mixin(defineMixin(A, A.__composer, V));
|
|
6455
|
+
const ne = X.unmount;
|
|
6456
|
+
if (X.unmount = () => {
|
|
6457
|
+
se && se(), V.dispose(), ne();
|
|
6391
6458
|
}, process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
|
|
6392
|
-
if (!await enableDevTools(
|
|
6459
|
+
if (!await enableDevTools(X, V))
|
|
6393
6460
|
throw createI18nError(I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
6394
|
-
const
|
|
6461
|
+
const Y = createEmitter();
|
|
6395
6462
|
if (n) {
|
|
6396
|
-
const
|
|
6397
|
-
|
|
6463
|
+
const oe = A;
|
|
6464
|
+
oe.__enableEmitter && oe.__enableEmitter(Y);
|
|
6398
6465
|
} else {
|
|
6399
|
-
const
|
|
6400
|
-
|
|
6466
|
+
const oe = A;
|
|
6467
|
+
oe[EnableEmitter] && oe[EnableEmitter](Y);
|
|
6401
6468
|
}
|
|
6402
|
-
|
|
6469
|
+
Y.on("*", addTimelineEvent);
|
|
6403
6470
|
}
|
|
6404
6471
|
},
|
|
6405
6472
|
// global accessor
|
|
@@ -6414,7 +6481,7 @@ function createI18n(e = {}, t) {
|
|
|
6414
6481
|
// @internal
|
|
6415
6482
|
__getInstance: B,
|
|
6416
6483
|
// @internal
|
|
6417
|
-
__setInstance:
|
|
6484
|
+
__setInstance: J,
|
|
6418
6485
|
// @internal
|
|
6419
6486
|
__deleteInstance: U
|
|
6420
6487
|
};
|
|
@@ -6516,13 +6583,13 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6516
6583
|
), L = ref(
|
|
6517
6584
|
// prettier-ignore
|
|
6518
6585
|
!c || C ? n.fallbackLocale.value : isString$2(s.fallbackLocale) || isArray$1(s.fallbackLocale) || isPlainObject$1(s.fallbackLocale) || s.fallbackLocale === !1 ? s.fallbackLocale : A.value
|
|
6519
|
-
), B = ref(getLocaleMessages(A.value, s)),
|
|
6520
|
-
function
|
|
6586
|
+
), B = ref(getLocaleMessages(A.value, s)), J = ref(isPlainObject$1(s.datetimeFormats) ? s.datetimeFormats : { [A.value]: {} }), U = ref(isPlainObject$1(s.numberFormats) ? s.numberFormats : { [A.value]: {} }), V = c ? n.missingWarn : isBoolean(s.missingWarn) || isRegExp(s.missingWarn) ? s.missingWarn : !0, X = c ? n.fallbackWarn : isBoolean(s.fallbackWarn) || isRegExp(s.fallbackWarn) ? s.fallbackWarn : !0, ce = c ? n.fallbackRoot : isBoolean(s.fallbackRoot) ? s.fallbackRoot : !0, se = !!s.fallbackFormat, ne = isFunction$1(s.missing) ? s.missing : null, q = isFunction$1(s.postTranslation) ? s.postTranslation : null, Y = c ? n.warnHtmlMessage : isBoolean(s.warnHtmlMessage) ? s.warnHtmlMessage : !0, oe = !!s.escapeParameter, re = c ? n.modifiers : isPlainObject$1(s.modifiers) ? s.modifiers : {}, ae = s.pluralRules || c && n.pluralRules;
|
|
6587
|
+
function te() {
|
|
6521
6588
|
return [
|
|
6522
6589
|
A.value,
|
|
6523
6590
|
L.value,
|
|
6524
6591
|
B.value,
|
|
6525
|
-
|
|
6592
|
+
J.value,
|
|
6526
6593
|
U.value
|
|
6527
6594
|
];
|
|
6528
6595
|
}
|
|
@@ -6531,26 +6598,26 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6531
6598
|
set: (I) => {
|
|
6532
6599
|
l.value && (l.value.locale.value = I), A.value = I;
|
|
6533
6600
|
}
|
|
6534
|
-
}),
|
|
6601
|
+
}), H = computed({
|
|
6535
6602
|
get: () => l.value ? l.value.fallbackLocale.value : L.value,
|
|
6536
6603
|
set: (I) => {
|
|
6537
6604
|
l.value && (l.value.fallbackLocale.value = I), L.value = I;
|
|
6538
6605
|
}
|
|
6539
|
-
}), $ = computed(() => l.value ? l.value.messages.value : B.value),
|
|
6606
|
+
}), $ = computed(() => l.value ? l.value.messages.value : B.value), Q = computed(() => J.value), pe = computed(() => U.value);
|
|
6540
6607
|
function de() {
|
|
6541
|
-
return l.value ? l.value.getPostTranslationHandler() :
|
|
6608
|
+
return l.value ? l.value.getPostTranslationHandler() : q;
|
|
6542
6609
|
}
|
|
6543
|
-
function
|
|
6610
|
+
function me(I) {
|
|
6544
6611
|
l.value && l.value.setPostTranslationHandler(I);
|
|
6545
6612
|
}
|
|
6546
|
-
function
|
|
6547
|
-
return l.value ? l.value.getMissingHandler() :
|
|
6613
|
+
function Oe() {
|
|
6614
|
+
return l.value ? l.value.getMissingHandler() : ne;
|
|
6548
6615
|
}
|
|
6549
6616
|
function Ae(I) {
|
|
6550
6617
|
l.value && l.value.setMissingHandler(I);
|
|
6551
6618
|
}
|
|
6552
6619
|
function Ce(I) {
|
|
6553
|
-
return
|
|
6620
|
+
return te(), I();
|
|
6554
6621
|
}
|
|
6555
6622
|
function Ee(...I) {
|
|
6556
6623
|
return l.value ? Ce(() => Reflect.apply(l.value.t, null, [...I])) : Ce(() => "");
|
|
@@ -6558,13 +6625,13 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6558
6625
|
function Re(...I) {
|
|
6559
6626
|
return l.value ? Reflect.apply(l.value.rt, null, [...I]) : "";
|
|
6560
6627
|
}
|
|
6561
|
-
function
|
|
6628
|
+
function Te(...I) {
|
|
6562
6629
|
return l.value ? Ce(() => Reflect.apply(l.value.d, null, [...I])) : Ce(() => "");
|
|
6563
6630
|
}
|
|
6564
6631
|
function Fe(...I) {
|
|
6565
6632
|
return l.value ? Ce(() => Reflect.apply(l.value.n, null, [...I])) : Ce(() => "");
|
|
6566
6633
|
}
|
|
6567
|
-
function
|
|
6634
|
+
function ke(I) {
|
|
6568
6635
|
return l.value ? l.value.tm(I) : {};
|
|
6569
6636
|
}
|
|
6570
6637
|
function he(I, F) {
|
|
@@ -6579,11 +6646,11 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6579
6646
|
function Pe(I, F) {
|
|
6580
6647
|
l.value && l.value.mergeLocaleMessage(I, F);
|
|
6581
6648
|
}
|
|
6582
|
-
function
|
|
6649
|
+
function Me(I) {
|
|
6583
6650
|
return l.value ? l.value.getDateTimeFormat(I) : {};
|
|
6584
6651
|
}
|
|
6585
6652
|
function De(I, F) {
|
|
6586
|
-
l.value && (l.value.setDateTimeFormat(I, F),
|
|
6653
|
+
l.value && (l.value.setDateTimeFormat(I, F), J.value[I] = F);
|
|
6587
6654
|
}
|
|
6588
6655
|
function Ie(I, F) {
|
|
6589
6656
|
l.value && l.value.mergeDateTimeFormat(I, F);
|
|
@@ -6602,9 +6669,9 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6602
6669
|
return l.value ? l.value.id : -1;
|
|
6603
6670
|
},
|
|
6604
6671
|
locale: ie,
|
|
6605
|
-
fallbackLocale:
|
|
6672
|
+
fallbackLocale: H,
|
|
6606
6673
|
messages: $,
|
|
6607
|
-
datetimeFormats:
|
|
6674
|
+
datetimeFormats: Q,
|
|
6608
6675
|
numberFormats: pe,
|
|
6609
6676
|
get inheritLocale() {
|
|
6610
6677
|
return l.value ? l.value.inheritLocale : C;
|
|
@@ -6616,10 +6683,10 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6616
6683
|
return l.value ? l.value.availableLocales : Object.keys(B.value);
|
|
6617
6684
|
},
|
|
6618
6685
|
get modifiers() {
|
|
6619
|
-
return l.value ? l.value.modifiers :
|
|
6686
|
+
return l.value ? l.value.modifiers : re;
|
|
6620
6687
|
},
|
|
6621
6688
|
get pluralRules() {
|
|
6622
|
-
return l.value ? l.value.pluralRules :
|
|
6689
|
+
return l.value ? l.value.pluralRules : ae;
|
|
6623
6690
|
},
|
|
6624
6691
|
get isGlobal() {
|
|
6625
6692
|
return l.value ? l.value.isGlobal : !1;
|
|
@@ -6631,7 +6698,7 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6631
6698
|
l.value && (l.value.missingWarn = I);
|
|
6632
6699
|
},
|
|
6633
6700
|
get fallbackWarn() {
|
|
6634
|
-
return l.value ? l.value.fallbackWarn :
|
|
6701
|
+
return l.value ? l.value.fallbackWarn : X;
|
|
6635
6702
|
},
|
|
6636
6703
|
set fallbackWarn(I) {
|
|
6637
6704
|
l.value && (l.value.missingWarn = I);
|
|
@@ -6649,31 +6716,31 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6649
6716
|
l.value && (l.value.fallbackFormat = I);
|
|
6650
6717
|
},
|
|
6651
6718
|
get warnHtmlMessage() {
|
|
6652
|
-
return l.value ? l.value.warnHtmlMessage :
|
|
6719
|
+
return l.value ? l.value.warnHtmlMessage : Y;
|
|
6653
6720
|
},
|
|
6654
6721
|
set warnHtmlMessage(I) {
|
|
6655
6722
|
l.value && (l.value.warnHtmlMessage = I);
|
|
6656
6723
|
},
|
|
6657
6724
|
get escapeParameter() {
|
|
6658
|
-
return l.value ? l.value.escapeParameter :
|
|
6725
|
+
return l.value ? l.value.escapeParameter : oe;
|
|
6659
6726
|
},
|
|
6660
6727
|
set escapeParameter(I) {
|
|
6661
6728
|
l.value && (l.value.escapeParameter = I);
|
|
6662
6729
|
},
|
|
6663
6730
|
t: Ee,
|
|
6664
6731
|
getPostTranslationHandler: de,
|
|
6665
|
-
setPostTranslationHandler:
|
|
6666
|
-
getMissingHandler:
|
|
6732
|
+
setPostTranslationHandler: me,
|
|
6733
|
+
getMissingHandler: Oe,
|
|
6667
6734
|
setMissingHandler: Ae,
|
|
6668
6735
|
rt: Re,
|
|
6669
|
-
d:
|
|
6736
|
+
d: Te,
|
|
6670
6737
|
n: Fe,
|
|
6671
|
-
tm:
|
|
6738
|
+
tm: ke,
|
|
6672
6739
|
te: he,
|
|
6673
6740
|
getLocaleMessage: Le,
|
|
6674
6741
|
setLocaleMessage: fe,
|
|
6675
6742
|
mergeLocaleMessage: Pe,
|
|
6676
|
-
getDateTimeFormat:
|
|
6743
|
+
getDateTimeFormat: Me,
|
|
6677
6744
|
setDateTimeFormat: De,
|
|
6678
6745
|
mergeDateTimeFormat: Ie,
|
|
6679
6746
|
getNumberFormat: be,
|
|
@@ -6683,17 +6750,17 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6683
6750
|
function R(I) {
|
|
6684
6751
|
I.locale.value = A.value, I.fallbackLocale.value = L.value, Object.keys(B.value).forEach((F) => {
|
|
6685
6752
|
I.mergeLocaleMessage(F, B.value[F]);
|
|
6686
|
-
}), Object.keys(
|
|
6687
|
-
I.mergeDateTimeFormat(F,
|
|
6753
|
+
}), Object.keys(J.value).forEach((F) => {
|
|
6754
|
+
I.mergeDateTimeFormat(F, J.value[F]);
|
|
6688
6755
|
}), Object.keys(U.value).forEach((F) => {
|
|
6689
6756
|
I.mergeNumberFormat(F, U.value[F]);
|
|
6690
|
-
}), I.escapeParameter =
|
|
6757
|
+
}), I.escapeParameter = oe, I.fallbackFormat = se, I.fallbackRoot = ce, I.fallbackWarn = X, I.missingWarn = V, I.warnHtmlMessage = Y;
|
|
6691
6758
|
}
|
|
6692
6759
|
return onBeforeMount(() => {
|
|
6693
6760
|
if (e.proxy == null || e.proxy.$i18n == null)
|
|
6694
6761
|
throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
|
|
6695
6762
|
const I = l.value = e.proxy.$i18n.__composer;
|
|
6696
|
-
t === "global" ? (A.value = I.locale.value, L.value = I.fallbackLocale.value, B.value = I.messages.value,
|
|
6763
|
+
t === "global" ? (A.value = I.locale.value, L.value = I.fallbackLocale.value, B.value = I.messages.value, J.value = I.datetimeFormats.value, U.value = I.numberFormats.value) : c && R(I);
|
|
6697
6764
|
}), W;
|
|
6698
6765
|
}
|
|
6699
6766
|
const globalExportProps = [
|
|
@@ -6792,57 +6859,57 @@ License: MIT
|
|
|
6792
6859
|
(function(n, s) {
|
|
6793
6860
|
e.exports = s();
|
|
6794
6861
|
})(commonjsGlobal, function n() {
|
|
6795
|
-
var s = typeof self < "u" ? self : typeof window < "u" ? window : s !== void 0 ? s : {}, c = !s.document && !!s.postMessage, l = s.IS_PAPA_WORKER || !1, C = {}, A = 0, L = { parse: function(
|
|
6796
|
-
var
|
|
6797
|
-
if (ie(
|
|
6862
|
+
var s = typeof self < "u" ? self : typeof window < "u" ? window : s !== void 0 ? s : {}, c = !s.document && !!s.postMessage, l = s.IS_PAPA_WORKER || !1, C = {}, A = 0, L = { parse: function(H, $) {
|
|
6863
|
+
var Q = ($ = $ || {}).dynamicTyping || !1;
|
|
6864
|
+
if (ie(Q) && ($.dynamicTypingFunction = Q, Q = {}), $.dynamicTyping = Q, $.transform = !!ie($.transform) && $.transform, $.worker && L.WORKERS_SUPPORTED) {
|
|
6798
6865
|
var pe = function() {
|
|
6799
6866
|
if (!L.WORKERS_SUPPORTED)
|
|
6800
6867
|
return !1;
|
|
6801
|
-
var
|
|
6802
|
-
return
|
|
6868
|
+
var me = (Ae = s.URL || s.webkitURL || null, Ce = n.toString(), L.BLOB_URL || (L.BLOB_URL = Ae.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ", "(", Ce, ")();"], { type: "text/javascript" })))), Oe = new s.Worker(me), Ae, Ce;
|
|
6869
|
+
return Oe.onmessage = Y, Oe.id = A++, C[Oe.id] = Oe;
|
|
6803
6870
|
}();
|
|
6804
|
-
return pe.userStep = $.step, pe.userChunk = $.chunk, pe.userComplete = $.complete, pe.userError = $.error, $.step = ie($.step), $.chunk = ie($.chunk), $.complete = ie($.complete), $.error = ie($.error), delete $.worker, void pe.postMessage({ input:
|
|
6871
|
+
return pe.userStep = $.step, pe.userChunk = $.chunk, pe.userComplete = $.complete, pe.userError = $.error, $.step = ie($.step), $.chunk = ie($.chunk), $.complete = ie($.complete), $.error = ie($.error), delete $.worker, void pe.postMessage({ input: H, config: $, workerId: pe.id });
|
|
6805
6872
|
}
|
|
6806
6873
|
var de = null;
|
|
6807
|
-
return L.NODE_STREAM_INPUT, typeof
|
|
6808
|
-
return
|
|
6809
|
-
}(
|
|
6810
|
-
}, unparse: function(
|
|
6811
|
-
var
|
|
6812
|
-
`,
|
|
6874
|
+
return L.NODE_STREAM_INPUT, typeof H == "string" ? (H = function(me) {
|
|
6875
|
+
return me.charCodeAt(0) === 65279 ? me.slice(1) : me;
|
|
6876
|
+
}(H), de = $.download ? new U($) : new X($)) : H.readable === !0 && ie(H.read) && ie(H.on) ? de = new ce($) : (s.File && H instanceof File || H instanceof Object) && (de = new V($)), de.stream(H);
|
|
6877
|
+
}, unparse: function(H, $) {
|
|
6878
|
+
var Q = !1, pe = !0, de = ",", me = `\r
|
|
6879
|
+
`, Oe = '"', Ae = Oe + Oe, Ce = !1, Ee = null, Re = !1;
|
|
6813
6880
|
(function() {
|
|
6814
6881
|
if (typeof $ == "object") {
|
|
6815
6882
|
if (typeof $.delimiter != "string" || L.BAD_DELIMITERS.filter(function(he) {
|
|
6816
6883
|
return $.delimiter.indexOf(he) !== -1;
|
|
6817
|
-
}).length || (de = $.delimiter), (typeof $.quotes == "boolean" || typeof $.quotes == "function" || Array.isArray($.quotes)) && (
|
|
6884
|
+
}).length || (de = $.delimiter), (typeof $.quotes == "boolean" || typeof $.quotes == "function" || Array.isArray($.quotes)) && (Q = $.quotes), typeof $.skipEmptyLines != "boolean" && typeof $.skipEmptyLines != "string" || (Ce = $.skipEmptyLines), typeof $.newline == "string" && (me = $.newline), typeof $.quoteChar == "string" && (Oe = $.quoteChar), typeof $.header == "boolean" && (pe = $.header), Array.isArray($.columns)) {
|
|
6818
6885
|
if ($.columns.length === 0)
|
|
6819
6886
|
throw new Error("Option columns is empty");
|
|
6820
6887
|
Ee = $.columns;
|
|
6821
6888
|
}
|
|
6822
|
-
$.escapeChar !== void 0 && (Ae = $.escapeChar +
|
|
6889
|
+
$.escapeChar !== void 0 && (Ae = $.escapeChar + Oe), (typeof $.escapeFormulae == "boolean" || $.escapeFormulae instanceof RegExp) && (Re = $.escapeFormulae instanceof RegExp ? $.escapeFormulae : /^[=+\-@\t\r].*$/);
|
|
6823
6890
|
}
|
|
6824
6891
|
})();
|
|
6825
|
-
var
|
|
6826
|
-
if (typeof
|
|
6827
|
-
if (!
|
|
6828
|
-
return Fe(null,
|
|
6829
|
-
if (typeof
|
|
6830
|
-
return Fe(Ee || Object.keys(
|
|
6831
|
-
} else if (typeof
|
|
6832
|
-
return typeof
|
|
6892
|
+
var Te = new RegExp(ne(Oe), "g");
|
|
6893
|
+
if (typeof H == "string" && (H = JSON.parse(H)), Array.isArray(H)) {
|
|
6894
|
+
if (!H.length || Array.isArray(H[0]))
|
|
6895
|
+
return Fe(null, H, Ce);
|
|
6896
|
+
if (typeof H[0] == "object")
|
|
6897
|
+
return Fe(Ee || Object.keys(H[0]), H, Ce);
|
|
6898
|
+
} else if (typeof H == "object")
|
|
6899
|
+
return typeof H.data == "string" && (H.data = JSON.parse(H.data)), Array.isArray(H.data) && (H.fields || (H.fields = H.meta && H.meta.fields || Ee), H.fields || (H.fields = Array.isArray(H.data[0]) ? H.fields : typeof H.data[0] == "object" ? Object.keys(H.data[0]) : []), Array.isArray(H.data[0]) || typeof H.data[0] == "object" || (H.data = [H.data])), Fe(H.fields || [], H.data || [], Ce);
|
|
6833
6900
|
throw new Error("Unable to serialize unrecognized input");
|
|
6834
6901
|
function Fe(he, Le, fe) {
|
|
6835
6902
|
var Pe = "";
|
|
6836
6903
|
typeof he == "string" && (he = JSON.parse(he)), typeof Le == "string" && (Le = JSON.parse(Le));
|
|
6837
|
-
var
|
|
6838
|
-
if (
|
|
6904
|
+
var Me = Array.isArray(he) && 0 < he.length, De = !Array.isArray(Le[0]);
|
|
6905
|
+
if (Me && pe) {
|
|
6839
6906
|
for (var Ie = 0; Ie < he.length; Ie++)
|
|
6840
|
-
0 < Ie && (Pe += de), Pe +=
|
|
6841
|
-
0 < Le.length && (Pe +=
|
|
6907
|
+
0 < Ie && (Pe += de), Pe += ke(he[Ie], Ie);
|
|
6908
|
+
0 < Le.length && (Pe += me);
|
|
6842
6909
|
}
|
|
6843
6910
|
for (var be = 0; be < Le.length; be++) {
|
|
6844
|
-
var D =
|
|
6845
|
-
if (fe && !
|
|
6911
|
+
var D = Me ? he.length : Le[be].length, M = !1, W = Me ? Object.keys(Le[be]).length === 0 : Le[be].length === 0;
|
|
6912
|
+
if (fe && !Me && (M = fe === "greedy" ? Le[be].join("").trim() === "" : Le[be].length === 1 && Le[be][0].length === 0), fe === "greedy" && Me) {
|
|
6846
6913
|
for (var R = [], I = 0; I < D; I++) {
|
|
6847
6914
|
var F = De ? he[I] : I;
|
|
6848
6915
|
R.push(Le[be][F]);
|
|
@@ -6850,74 +6917,74 @@ License: MIT
|
|
|
6850
6917
|
M = R.join("").trim() === "";
|
|
6851
6918
|
}
|
|
6852
6919
|
if (!M) {
|
|
6853
|
-
for (var
|
|
6854
|
-
0 <
|
|
6855
|
-
var j =
|
|
6856
|
-
Pe +=
|
|
6920
|
+
for (var G = 0; G < D; G++) {
|
|
6921
|
+
0 < G && !W && (Pe += de);
|
|
6922
|
+
var j = Me && De ? he[G] : G;
|
|
6923
|
+
Pe += ke(Le[be][j], G);
|
|
6857
6924
|
}
|
|
6858
|
-
be < Le.length - 1 && (!fe || 0 < D && !W) && (Pe +=
|
|
6925
|
+
be < Le.length - 1 && (!fe || 0 < D && !W) && (Pe += me);
|
|
6859
6926
|
}
|
|
6860
6927
|
}
|
|
6861
6928
|
return Pe;
|
|
6862
6929
|
}
|
|
6863
|
-
function
|
|
6930
|
+
function ke(he, Le) {
|
|
6864
6931
|
if (he == null)
|
|
6865
6932
|
return "";
|
|
6866
6933
|
if (he.constructor === Date)
|
|
6867
6934
|
return JSON.stringify(he).slice(1, 25);
|
|
6868
6935
|
var fe = !1;
|
|
6869
6936
|
Re && typeof he == "string" && Re.test(he) && (he = "'" + he, fe = !0);
|
|
6870
|
-
var Pe = he.toString().replace(
|
|
6871
|
-
return (fe = fe ||
|
|
6937
|
+
var Pe = he.toString().replace(Te, Ae);
|
|
6938
|
+
return (fe = fe || Q === !0 || typeof Q == "function" && Q(he, Le) || Array.isArray(Q) && Q[Le] || function(Me, De) {
|
|
6872
6939
|
for (var Ie = 0; Ie < De.length; Ie++)
|
|
6873
|
-
if (-1 <
|
|
6940
|
+
if (-1 < Me.indexOf(De[Ie]))
|
|
6874
6941
|
return !0;
|
|
6875
6942
|
return !1;
|
|
6876
|
-
}(Pe, L.BAD_DELIMITERS) || -1 < Pe.indexOf(de) || Pe.charAt(0) === " " || Pe.charAt(Pe.length - 1) === " ") ?
|
|
6943
|
+
}(Pe, L.BAD_DELIMITERS) || -1 < Pe.indexOf(de) || Pe.charAt(0) === " " || Pe.charAt(Pe.length - 1) === " ") ? Oe + Pe + Oe : Pe;
|
|
6877
6944
|
}
|
|
6878
6945
|
} };
|
|
6879
6946
|
if (L.RECORD_SEP = String.fromCharCode(30), L.UNIT_SEP = String.fromCharCode(31), L.BYTE_ORDER_MARK = "\uFEFF", L.BAD_DELIMITERS = ["\r", `
|
|
6880
|
-
`, '"', L.BYTE_ORDER_MARK], L.WORKERS_SUPPORTED = !c && !!s.Worker, L.NODE_STREAM_INPUT = 1, L.LocalChunkSize = 10485760, L.RemoteChunkSize = 5242880, L.DefaultDelimiter = ",", L.Parser =
|
|
6947
|
+
`, '"', L.BYTE_ORDER_MARK], L.WORKERS_SUPPORTED = !c && !!s.Worker, L.NODE_STREAM_INPUT = 1, L.LocalChunkSize = 10485760, L.RemoteChunkSize = 5242880, L.DefaultDelimiter = ",", L.Parser = q, L.ParserHandle = se, L.NetworkStreamer = U, L.FileStreamer = V, L.StringStreamer = X, L.ReadableStreamStreamer = ce, s.jQuery) {
|
|
6881
6948
|
var B = s.jQuery;
|
|
6882
|
-
B.fn.parse = function(
|
|
6883
|
-
var $ =
|
|
6884
|
-
return this.each(function(
|
|
6949
|
+
B.fn.parse = function(H) {
|
|
6950
|
+
var $ = H.config || {}, Q = [];
|
|
6951
|
+
return this.each(function(me) {
|
|
6885
6952
|
if (!(B(this).prop("tagName").toUpperCase() === "INPUT" && B(this).attr("type").toLowerCase() === "file" && s.FileReader) || !this.files || this.files.length === 0)
|
|
6886
6953
|
return !0;
|
|
6887
|
-
for (var
|
|
6888
|
-
|
|
6954
|
+
for (var Oe = 0; Oe < this.files.length; Oe++)
|
|
6955
|
+
Q.push({ file: this.files[Oe], inputElem: this, instanceConfig: B.extend({}, $) });
|
|
6889
6956
|
}), pe(), this;
|
|
6890
6957
|
function pe() {
|
|
6891
|
-
if (
|
|
6892
|
-
var
|
|
6893
|
-
if (ie(
|
|
6894
|
-
var Re =
|
|
6958
|
+
if (Q.length !== 0) {
|
|
6959
|
+
var me, Oe, Ae, Ce, Ee = Q[0];
|
|
6960
|
+
if (ie(H.before)) {
|
|
6961
|
+
var Re = H.before(Ee.file, Ee.inputElem);
|
|
6895
6962
|
if (typeof Re == "object") {
|
|
6896
6963
|
if (Re.action === "abort")
|
|
6897
|
-
return
|
|
6964
|
+
return me = "AbortError", Oe = Ee.file, Ae = Ee.inputElem, Ce = Re.reason, void (ie(H.error) && H.error({ name: me }, Oe, Ae, Ce));
|
|
6898
6965
|
if (Re.action === "skip")
|
|
6899
6966
|
return void de();
|
|
6900
6967
|
typeof Re.config == "object" && (Ee.instanceConfig = B.extend(Ee.instanceConfig, Re.config));
|
|
6901
6968
|
} else if (Re === "skip")
|
|
6902
6969
|
return void de();
|
|
6903
6970
|
}
|
|
6904
|
-
var
|
|
6971
|
+
var Te = Ee.instanceConfig.complete;
|
|
6905
6972
|
Ee.instanceConfig.complete = function(Fe) {
|
|
6906
|
-
ie(
|
|
6973
|
+
ie(Te) && Te(Fe, Ee.file, Ee.inputElem), de();
|
|
6907
6974
|
}, L.parse(Ee.file, Ee.instanceConfig);
|
|
6908
6975
|
} else
|
|
6909
|
-
ie(
|
|
6976
|
+
ie(H.complete) && H.complete();
|
|
6910
6977
|
}
|
|
6911
6978
|
function de() {
|
|
6912
|
-
|
|
6979
|
+
Q.splice(0, 1), pe();
|
|
6913
6980
|
}
|
|
6914
6981
|
};
|
|
6915
6982
|
}
|
|
6916
|
-
function
|
|
6983
|
+
function J(H) {
|
|
6917
6984
|
this._handle = null, this._finished = !1, this._completed = !1, this._halted = !1, this._input = null, this._baseIndex = 0, this._partialLine = "", this._rowCount = 0, this._start = 0, this._nextChunk = null, this.isFirstChunk = !0, this._completeResults = { data: [], errors: [], meta: {} }, (function($) {
|
|
6918
|
-
var
|
|
6919
|
-
|
|
6920
|
-
}).call(this,
|
|
6985
|
+
var Q = ae($);
|
|
6986
|
+
Q.chunkSize = parseInt(Q.chunkSize), $.step || $.chunk || (Q.chunkSize = null), this._handle = new se(Q), (this._handle.streamer = this)._config = Q;
|
|
6987
|
+
}).call(this, H), this.parseChunk = function($, Q) {
|
|
6921
6988
|
if (this.isFirstChunk && ie(this._config.beforeFirstChunk)) {
|
|
6922
6989
|
var pe = this._config.beforeFirstChunk($);
|
|
6923
6990
|
pe !== void 0 && ($ = pe);
|
|
@@ -6925,41 +6992,41 @@ License: MIT
|
|
|
6925
6992
|
this.isFirstChunk = !1, this._halted = !1;
|
|
6926
6993
|
var de = this._partialLine + $;
|
|
6927
6994
|
this._partialLine = "";
|
|
6928
|
-
var
|
|
6995
|
+
var me = this._handle.parse(de, this._baseIndex, !this._finished);
|
|
6929
6996
|
if (!this._handle.paused() && !this._handle.aborted()) {
|
|
6930
|
-
var
|
|
6931
|
-
this._finished || (this._partialLine = de.substring(
|
|
6997
|
+
var Oe = me.meta.cursor;
|
|
6998
|
+
this._finished || (this._partialLine = de.substring(Oe - this._baseIndex), this._baseIndex = Oe), me && me.data && (this._rowCount += me.data.length);
|
|
6932
6999
|
var Ae = this._finished || this._config.preview && this._rowCount >= this._config.preview;
|
|
6933
7000
|
if (l)
|
|
6934
|
-
s.postMessage({ results:
|
|
6935
|
-
else if (ie(this._config.chunk) && !
|
|
6936
|
-
if (this._config.chunk(
|
|
7001
|
+
s.postMessage({ results: me, workerId: L.WORKER_ID, finished: Ae });
|
|
7002
|
+
else if (ie(this._config.chunk) && !Q) {
|
|
7003
|
+
if (this._config.chunk(me, this._handle), this._handle.paused() || this._handle.aborted())
|
|
6937
7004
|
return void (this._halted = !0);
|
|
6938
|
-
|
|
7005
|
+
me = void 0, this._completeResults = void 0;
|
|
6939
7006
|
}
|
|
6940
|
-
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(
|
|
7007
|
+
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(me.data), this._completeResults.errors = this._completeResults.errors.concat(me.errors), this._completeResults.meta = me.meta), this._completed || !Ae || !ie(this._config.complete) || me && me.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = !0), Ae || me && me.meta.paused || this._nextChunk(), me;
|
|
6941
7008
|
}
|
|
6942
7009
|
this._halted = !0;
|
|
6943
7010
|
}, this._sendError = function($) {
|
|
6944
7011
|
ie(this._config.error) ? this._config.error($) : l && this._config.error && s.postMessage({ workerId: L.WORKER_ID, error: $, finished: !1 });
|
|
6945
7012
|
};
|
|
6946
7013
|
}
|
|
6947
|
-
function U(
|
|
7014
|
+
function U(H) {
|
|
6948
7015
|
var $;
|
|
6949
|
-
(
|
|
7016
|
+
(H = H || {}).chunkSize || (H.chunkSize = L.RemoteChunkSize), J.call(this, H), this._nextChunk = c ? function() {
|
|
6950
7017
|
this._readChunk(), this._chunkLoaded();
|
|
6951
7018
|
} : function() {
|
|
6952
7019
|
this._readChunk();
|
|
6953
|
-
}, this.stream = function(
|
|
6954
|
-
this._input =
|
|
7020
|
+
}, this.stream = function(Q) {
|
|
7021
|
+
this._input = Q, this._nextChunk();
|
|
6955
7022
|
}, this._readChunk = function() {
|
|
6956
7023
|
if (this._finished)
|
|
6957
7024
|
this._chunkLoaded();
|
|
6958
7025
|
else {
|
|
6959
|
-
if ($ = new XMLHttpRequest(), this._config.withCredentials && ($.withCredentials = this._config.withCredentials), c || ($.onload =
|
|
6960
|
-
var
|
|
6961
|
-
for (var pe in
|
|
6962
|
-
$.setRequestHeader(pe,
|
|
7026
|
+
if ($ = new XMLHttpRequest(), this._config.withCredentials && ($.withCredentials = this._config.withCredentials), c || ($.onload = te(this._chunkLoaded, this), $.onerror = te(this._chunkError, this)), $.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !c), this._config.downloadRequestHeaders) {
|
|
7027
|
+
var Q = this._config.downloadRequestHeaders;
|
|
7028
|
+
for (var pe in Q)
|
|
7029
|
+
$.setRequestHeader(pe, Q[pe]);
|
|
6963
7030
|
}
|
|
6964
7031
|
if (this._config.chunkSize) {
|
|
6965
7032
|
var de = this._start + this._config.chunkSize - 1;
|
|
@@ -6967,136 +7034,136 @@ License: MIT
|
|
|
6967
7034
|
}
|
|
6968
7035
|
try {
|
|
6969
7036
|
$.send(this._config.downloadRequestBody);
|
|
6970
|
-
} catch (
|
|
6971
|
-
this._chunkError(
|
|
7037
|
+
} catch (me) {
|
|
7038
|
+
this._chunkError(me.message);
|
|
6972
7039
|
}
|
|
6973
7040
|
c && $.status === 0 && this._chunkError();
|
|
6974
7041
|
}
|
|
6975
7042
|
}, this._chunkLoaded = function() {
|
|
6976
|
-
$.readyState === 4 && ($.status < 200 || 400 <= $.status ? this._chunkError() : (this._start += this._config.chunkSize ? this._config.chunkSize : $.responseText.length, this._finished = !this._config.chunkSize || this._start >= function(
|
|
6977
|
-
var pe =
|
|
7043
|
+
$.readyState === 4 && ($.status < 200 || 400 <= $.status ? this._chunkError() : (this._start += this._config.chunkSize ? this._config.chunkSize : $.responseText.length, this._finished = !this._config.chunkSize || this._start >= function(Q) {
|
|
7044
|
+
var pe = Q.getResponseHeader("Content-Range");
|
|
6978
7045
|
return pe === null ? -1 : parseInt(pe.substring(pe.lastIndexOf("/") + 1));
|
|
6979
7046
|
}($), this.parseChunk($.responseText)));
|
|
6980
|
-
}, this._chunkError = function(
|
|
6981
|
-
var pe = $.statusText ||
|
|
7047
|
+
}, this._chunkError = function(Q) {
|
|
7048
|
+
var pe = $.statusText || Q;
|
|
6982
7049
|
this._sendError(new Error(pe));
|
|
6983
7050
|
};
|
|
6984
7051
|
}
|
|
6985
|
-
function V(
|
|
6986
|
-
var $,
|
|
6987
|
-
(
|
|
7052
|
+
function V(H) {
|
|
7053
|
+
var $, Q;
|
|
7054
|
+
(H = H || {}).chunkSize || (H.chunkSize = L.LocalChunkSize), J.call(this, H);
|
|
6988
7055
|
var pe = typeof FileReader < "u";
|
|
6989
7056
|
this.stream = function(de) {
|
|
6990
|
-
this._input = de,
|
|
7057
|
+
this._input = de, Q = de.slice || de.webkitSlice || de.mozSlice, pe ? (($ = new FileReader()).onload = te(this._chunkLoaded, this), $.onerror = te(this._chunkError, this)) : $ = new FileReaderSync(), this._nextChunk();
|
|
6991
7058
|
}, this._nextChunk = function() {
|
|
6992
7059
|
this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
|
|
6993
7060
|
}, this._readChunk = function() {
|
|
6994
7061
|
var de = this._input;
|
|
6995
7062
|
if (this._config.chunkSize) {
|
|
6996
|
-
var
|
|
6997
|
-
de =
|
|
7063
|
+
var me = Math.min(this._start + this._config.chunkSize, this._input.size);
|
|
7064
|
+
de = Q.call(de, this._start, me);
|
|
6998
7065
|
}
|
|
6999
|
-
var
|
|
7000
|
-
pe || this._chunkLoaded({ target: { result:
|
|
7066
|
+
var Oe = $.readAsText(de, this._config.encoding);
|
|
7067
|
+
pe || this._chunkLoaded({ target: { result: Oe } });
|
|
7001
7068
|
}, this._chunkLoaded = function(de) {
|
|
7002
7069
|
this._start += this._config.chunkSize, this._finished = !this._config.chunkSize || this._start >= this._input.size, this.parseChunk(de.target.result);
|
|
7003
7070
|
}, this._chunkError = function() {
|
|
7004
7071
|
this._sendError($.error);
|
|
7005
7072
|
};
|
|
7006
7073
|
}
|
|
7007
|
-
function
|
|
7074
|
+
function X(H) {
|
|
7008
7075
|
var $;
|
|
7009
|
-
|
|
7010
|
-
return $ =
|
|
7076
|
+
J.call(this, H = H || {}), this.stream = function(Q) {
|
|
7077
|
+
return $ = Q, this._nextChunk();
|
|
7011
7078
|
}, this._nextChunk = function() {
|
|
7012
7079
|
if (!this._finished) {
|
|
7013
|
-
var
|
|
7014
|
-
return pe ? (
|
|
7080
|
+
var Q, pe = this._config.chunkSize;
|
|
7081
|
+
return pe ? (Q = $.substring(0, pe), $ = $.substring(pe)) : (Q = $, $ = ""), this._finished = !$, this.parseChunk(Q);
|
|
7015
7082
|
}
|
|
7016
7083
|
};
|
|
7017
7084
|
}
|
|
7018
|
-
function ce(
|
|
7019
|
-
|
|
7020
|
-
var $ = [],
|
|
7085
|
+
function ce(H) {
|
|
7086
|
+
J.call(this, H = H || {});
|
|
7087
|
+
var $ = [], Q = !0, pe = !1;
|
|
7021
7088
|
this.pause = function() {
|
|
7022
|
-
|
|
7089
|
+
J.prototype.pause.apply(this, arguments), this._input.pause();
|
|
7023
7090
|
}, this.resume = function() {
|
|
7024
|
-
|
|
7091
|
+
J.prototype.resume.apply(this, arguments), this._input.resume();
|
|
7025
7092
|
}, this.stream = function(de) {
|
|
7026
7093
|
this._input = de, this._input.on("data", this._streamData), this._input.on("end", this._streamEnd), this._input.on("error", this._streamError);
|
|
7027
7094
|
}, this._checkIsFinished = function() {
|
|
7028
7095
|
pe && $.length === 1 && (this._finished = !0);
|
|
7029
7096
|
}, this._nextChunk = function() {
|
|
7030
|
-
this._checkIsFinished(), $.length ? this.parseChunk($.shift()) :
|
|
7031
|
-
}, this._streamData =
|
|
7097
|
+
this._checkIsFinished(), $.length ? this.parseChunk($.shift()) : Q = !0;
|
|
7098
|
+
}, this._streamData = te(function(de) {
|
|
7032
7099
|
try {
|
|
7033
|
-
$.push(typeof de == "string" ? de : de.toString(this._config.encoding)),
|
|
7034
|
-
} catch (
|
|
7035
|
-
this._streamError(
|
|
7100
|
+
$.push(typeof de == "string" ? de : de.toString(this._config.encoding)), Q && (Q = !1, this._checkIsFinished(), this.parseChunk($.shift()));
|
|
7101
|
+
} catch (me) {
|
|
7102
|
+
this._streamError(me);
|
|
7036
7103
|
}
|
|
7037
|
-
}, this), this._streamError =
|
|
7104
|
+
}, this), this._streamError = te(function(de) {
|
|
7038
7105
|
this._streamCleanUp(), this._sendError(de);
|
|
7039
|
-
}, this), this._streamEnd =
|
|
7106
|
+
}, this), this._streamEnd = te(function() {
|
|
7040
7107
|
this._streamCleanUp(), pe = !0, this._streamData("");
|
|
7041
|
-
}, this), this._streamCleanUp =
|
|
7108
|
+
}, this), this._streamCleanUp = te(function() {
|
|
7042
7109
|
this._input.removeListener("data", this._streamData), this._input.removeListener("end", this._streamEnd), this._input.removeListener("error", this._streamError);
|
|
7043
7110
|
}, this);
|
|
7044
7111
|
}
|
|
7045
|
-
function se(
|
|
7046
|
-
var $,
|
|
7047
|
-
if (ie(
|
|
7048
|
-
var Le =
|
|
7049
|
-
|
|
7050
|
-
if (he = be,
|
|
7112
|
+
function se(H) {
|
|
7113
|
+
var $, Q, pe, de = Math.pow(2, 53), me = -de, Oe = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, Ae = /^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/, Ce = this, Ee = 0, Re = 0, Te = !1, Fe = !1, ke = [], he = { data: [], errors: [], meta: {} };
|
|
7114
|
+
if (ie(H.step)) {
|
|
7115
|
+
var Le = H.step;
|
|
7116
|
+
H.step = function(be) {
|
|
7117
|
+
if (he = be, Me())
|
|
7051
7118
|
Pe();
|
|
7052
7119
|
else {
|
|
7053
7120
|
if (Pe(), he.data.length === 0)
|
|
7054
7121
|
return;
|
|
7055
|
-
Ee += be.data.length,
|
|
7122
|
+
Ee += be.data.length, H.preview && Ee > H.preview ? Q.abort() : (he.data = he.data[0], Le(he, Ce));
|
|
7056
7123
|
}
|
|
7057
7124
|
};
|
|
7058
7125
|
}
|
|
7059
7126
|
function fe(be) {
|
|
7060
|
-
return
|
|
7127
|
+
return H.skipEmptyLines === "greedy" ? be.join("").trim() === "" : be.length === 1 && be[0].length === 0;
|
|
7061
7128
|
}
|
|
7062
7129
|
function Pe() {
|
|
7063
|
-
return he && pe && (Ie("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + L.DefaultDelimiter + "'"), pe = !1),
|
|
7130
|
+
return he && pe && (Ie("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + L.DefaultDelimiter + "'"), pe = !1), H.skipEmptyLines && (he.data = he.data.filter(function(be) {
|
|
7064
7131
|
return !fe(be);
|
|
7065
|
-
})),
|
|
7132
|
+
})), Me() && function() {
|
|
7066
7133
|
if (!he)
|
|
7067
7134
|
return;
|
|
7068
7135
|
function be(M, W) {
|
|
7069
|
-
ie(
|
|
7136
|
+
ie(H.transformHeader) && (M = H.transformHeader(M, W)), ke.push(M);
|
|
7070
7137
|
}
|
|
7071
7138
|
if (Array.isArray(he.data[0])) {
|
|
7072
|
-
for (var D = 0;
|
|
7139
|
+
for (var D = 0; Me() && D < he.data.length; D++)
|
|
7073
7140
|
he.data[D].forEach(be);
|
|
7074
7141
|
he.data.splice(0, 1);
|
|
7075
7142
|
} else
|
|
7076
7143
|
he.data.forEach(be);
|
|
7077
7144
|
}(), function() {
|
|
7078
|
-
if (!he || !
|
|
7145
|
+
if (!he || !H.header && !H.dynamicTyping && !H.transform)
|
|
7079
7146
|
return he;
|
|
7080
7147
|
function be(M, W) {
|
|
7081
|
-
var R, I =
|
|
7148
|
+
var R, I = H.header ? {} : [];
|
|
7082
7149
|
for (R = 0; R < M.length; R++) {
|
|
7083
|
-
var F = R,
|
|
7084
|
-
|
|
7150
|
+
var F = R, G = M[R];
|
|
7151
|
+
H.header && (F = R >= ke.length ? "__parsed_extra" : ke[R]), H.transform && (G = H.transform(G, F)), G = De(F, G), F === "__parsed_extra" ? (I[F] = I[F] || [], I[F].push(G)) : I[F] = G;
|
|
7085
7152
|
}
|
|
7086
|
-
return
|
|
7153
|
+
return H.header && (R > ke.length ? Ie("FieldMismatch", "TooManyFields", "Too many fields: expected " + ke.length + " fields but parsed " + R, Re + W) : R < ke.length && Ie("FieldMismatch", "TooFewFields", "Too few fields: expected " + ke.length + " fields but parsed " + R, Re + W)), I;
|
|
7087
7154
|
}
|
|
7088
7155
|
var D = 1;
|
|
7089
|
-
return !he.data.length || Array.isArray(he.data[0]) ? (he.data = he.data.map(be), D = he.data.length) : he.data = be(he.data, 0),
|
|
7156
|
+
return !he.data.length || Array.isArray(he.data[0]) ? (he.data = he.data.map(be), D = he.data.length) : he.data = be(he.data, 0), H.header && he.meta && (he.meta.fields = ke), Re += D, he;
|
|
7090
7157
|
}();
|
|
7091
7158
|
}
|
|
7092
|
-
function
|
|
7093
|
-
return
|
|
7159
|
+
function Me() {
|
|
7160
|
+
return H.header && ke.length === 0;
|
|
7094
7161
|
}
|
|
7095
7162
|
function De(be, D) {
|
|
7096
|
-
return M = be,
|
|
7097
|
-
if (
|
|
7163
|
+
return M = be, H.dynamicTypingFunction && H.dynamicTyping[M] === void 0 && (H.dynamicTyping[M] = H.dynamicTypingFunction(M)), (H.dynamicTyping[M] || H.dynamicTyping) === !0 ? D === "true" || D === "TRUE" || D !== "false" && D !== "FALSE" && (function(W) {
|
|
7164
|
+
if (Oe.test(W)) {
|
|
7098
7165
|
var R = parseFloat(W);
|
|
7099
|
-
if (
|
|
7166
|
+
if (me < R && R < de)
|
|
7100
7167
|
return !0;
|
|
7101
7168
|
}
|
|
7102
7169
|
return !1;
|
|
@@ -7108,141 +7175,141 @@ License: MIT
|
|
|
7108
7175
|
W !== void 0 && (R.row = W), he.errors.push(R);
|
|
7109
7176
|
}
|
|
7110
7177
|
this.parse = function(be, D, M) {
|
|
7111
|
-
var W =
|
|
7112
|
-
if (
|
|
7178
|
+
var W = H.quoteChar || '"';
|
|
7179
|
+
if (H.newline || (H.newline = function(F, G) {
|
|
7113
7180
|
F = F.substring(0, 1048576);
|
|
7114
|
-
var j = new RegExp(
|
|
7181
|
+
var j = new RegExp(ne(G) + "([^]*?)" + ne(G), "gm"), K = (F = F.replace(j, "")).split("\r"), Z = F.split(`
|
|
7115
7182
|
`), z = 1 < Z.length && Z[0].length < K[0].length;
|
|
7116
7183
|
if (K.length === 1 || z)
|
|
7117
7184
|
return `
|
|
7118
7185
|
`;
|
|
7119
|
-
for (var ue = 0,
|
|
7120
|
-
K[
|
|
7186
|
+
for (var ue = 0, ge = 0; ge < K.length; ge++)
|
|
7187
|
+
K[ge][0] === `
|
|
7121
7188
|
` && ue++;
|
|
7122
7189
|
return ue >= K.length / 2 ? `\r
|
|
7123
7190
|
` : "\r";
|
|
7124
|
-
}(be, W)), pe = !1,
|
|
7125
|
-
ie(
|
|
7191
|
+
}(be, W)), pe = !1, H.delimiter)
|
|
7192
|
+
ie(H.delimiter) && (H.delimiter = H.delimiter(be), he.meta.delimiter = H.delimiter);
|
|
7126
7193
|
else {
|
|
7127
|
-
var R = function(F,
|
|
7128
|
-
var z, ue,
|
|
7194
|
+
var R = function(F, G, j, K, Z) {
|
|
7195
|
+
var z, ue, ge, _e;
|
|
7129
7196
|
Z = Z || [",", " ", "|", ";", L.RECORD_SEP, L.UNIT_SEP];
|
|
7130
7197
|
for (var ye = 0; ye < Z.length; ye++) {
|
|
7131
7198
|
var Se = Z[ye], Ne = 0, ee = 0, le = 0;
|
|
7132
|
-
|
|
7133
|
-
for (var
|
|
7134
|
-
if (j && fe(
|
|
7199
|
+
ge = void 0;
|
|
7200
|
+
for (var ve = new q({ comments: K, delimiter: Se, newline: G, preview: 10 }).parse(F), we = 0; we < ve.data.length; we++)
|
|
7201
|
+
if (j && fe(ve.data[we]))
|
|
7135
7202
|
le++;
|
|
7136
7203
|
else {
|
|
7137
|
-
var je =
|
|
7138
|
-
ee += je,
|
|
7204
|
+
var je = ve.data[we].length;
|
|
7205
|
+
ee += je, ge !== void 0 ? 0 < je && (Ne += Math.abs(je - ge), ge = je) : ge = je;
|
|
7139
7206
|
}
|
|
7140
|
-
0 <
|
|
7207
|
+
0 < ve.data.length && (ee /= ve.data.length - le), (ue === void 0 || Ne <= ue) && (_e === void 0 || _e < ee) && 1.99 < ee && (ue = Ne, z = Se, _e = ee);
|
|
7141
7208
|
}
|
|
7142
|
-
return { successful: !!(
|
|
7143
|
-
}(be,
|
|
7144
|
-
R.successful ?
|
|
7209
|
+
return { successful: !!(H.delimiter = z), bestDelimiter: z };
|
|
7210
|
+
}(be, H.newline, H.skipEmptyLines, H.comments, H.delimitersToGuess);
|
|
7211
|
+
R.successful ? H.delimiter = R.bestDelimiter : (pe = !0, H.delimiter = L.DefaultDelimiter), he.meta.delimiter = H.delimiter;
|
|
7145
7212
|
}
|
|
7146
|
-
var I =
|
|
7147
|
-
return
|
|
7213
|
+
var I = ae(H);
|
|
7214
|
+
return H.preview && H.header && I.preview++, $ = be, Q = new q(I), he = Q.parse($, D, M), Pe(), Te ? { meta: { paused: !0 } } : he || { meta: { paused: !1 } };
|
|
7148
7215
|
}, this.paused = function() {
|
|
7149
|
-
return
|
|
7216
|
+
return Te;
|
|
7150
7217
|
}, this.pause = function() {
|
|
7151
|
-
|
|
7218
|
+
Te = !0, Q.abort(), $ = ie(H.chunk) ? "" : $.substring(Q.getCharIndex());
|
|
7152
7219
|
}, this.resume = function() {
|
|
7153
|
-
Ce.streamer._halted ? (
|
|
7220
|
+
Ce.streamer._halted ? (Te = !1, Ce.streamer.parseChunk($, !0)) : setTimeout(Ce.resume, 3);
|
|
7154
7221
|
}, this.aborted = function() {
|
|
7155
7222
|
return Fe;
|
|
7156
7223
|
}, this.abort = function() {
|
|
7157
|
-
Fe = !0,
|
|
7224
|
+
Fe = !0, Q.abort(), he.meta.aborted = !0, ie(H.complete) && H.complete(he), $ = "";
|
|
7158
7225
|
};
|
|
7159
7226
|
}
|
|
7160
|
-
function
|
|
7161
|
-
return
|
|
7227
|
+
function ne(H) {
|
|
7228
|
+
return H.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
7162
7229
|
}
|
|
7163
|
-
function
|
|
7164
|
-
var $,
|
|
7165
|
-
if (
|
|
7230
|
+
function q(H) {
|
|
7231
|
+
var $, Q = (H = H || {}).delimiter, pe = H.newline, de = H.comments, me = H.step, Oe = H.preview, Ae = H.fastMode, Ce = $ = H.quoteChar === void 0 || H.quoteChar === null ? '"' : H.quoteChar;
|
|
7232
|
+
if (H.escapeChar !== void 0 && (Ce = H.escapeChar), (typeof Q != "string" || -1 < L.BAD_DELIMITERS.indexOf(Q)) && (Q = ","), de === Q)
|
|
7166
7233
|
throw new Error("Comment character same as delimiter");
|
|
7167
7234
|
de === !0 ? de = "#" : (typeof de != "string" || -1 < L.BAD_DELIMITERS.indexOf(de)) && (de = !1), pe !== `
|
|
7168
7235
|
` && pe !== "\r" && pe !== `\r
|
|
7169
7236
|
` && (pe = `
|
|
7170
7237
|
`);
|
|
7171
7238
|
var Ee = 0, Re = !1;
|
|
7172
|
-
this.parse = function(
|
|
7173
|
-
if (typeof
|
|
7239
|
+
this.parse = function(Te, Fe, ke) {
|
|
7240
|
+
if (typeof Te != "string")
|
|
7174
7241
|
throw new Error("Input must be a string");
|
|
7175
|
-
var he =
|
|
7176
|
-
if (!
|
|
7242
|
+
var he = Te.length, Le = Q.length, fe = pe.length, Pe = de.length, Me = ie(me), De = [], Ie = [], be = [], D = Ee = 0;
|
|
7243
|
+
if (!Te)
|
|
7177
7244
|
return Be();
|
|
7178
|
-
if (
|
|
7179
|
-
var M =
|
|
7245
|
+
if (H.header && !Fe) {
|
|
7246
|
+
var M = Te.split(pe)[0].split(Q), W = [], R = {}, I = !1;
|
|
7180
7247
|
for (var F in M) {
|
|
7181
|
-
var
|
|
7182
|
-
ie(
|
|
7183
|
-
var j =
|
|
7184
|
-
for (0 < K && (I = !0, j =
|
|
7248
|
+
var G = M[F];
|
|
7249
|
+
ie(H.transformHeader) && (G = H.transformHeader(G, F));
|
|
7250
|
+
var j = G, K = R[G] || 0;
|
|
7251
|
+
for (0 < K && (I = !0, j = G + "_" + K), R[G] = K + 1; W.includes(j); )
|
|
7185
7252
|
j = j + "_" + K;
|
|
7186
7253
|
W.push(j);
|
|
7187
7254
|
}
|
|
7188
7255
|
if (I) {
|
|
7189
|
-
var Z =
|
|
7190
|
-
Z[0] = W.join(
|
|
7256
|
+
var Z = Te.split(pe);
|
|
7257
|
+
Z[0] = W.join(Q), Te = Z.join(pe);
|
|
7191
7258
|
}
|
|
7192
7259
|
}
|
|
7193
|
-
if (Ae || Ae !== !1 &&
|
|
7194
|
-
for (var z =
|
|
7260
|
+
if (Ae || Ae !== !1 && Te.indexOf($) === -1) {
|
|
7261
|
+
for (var z = Te.split(pe), ue = 0; ue < z.length; ue++) {
|
|
7195
7262
|
if (be = z[ue], Ee += be.length, ue !== z.length - 1)
|
|
7196
7263
|
Ee += pe.length;
|
|
7197
|
-
else if (
|
|
7264
|
+
else if (ke)
|
|
7198
7265
|
return Be();
|
|
7199
7266
|
if (!de || be.substring(0, Pe) !== de) {
|
|
7200
|
-
if (
|
|
7201
|
-
if (De = [], le(be.split(
|
|
7267
|
+
if (Me) {
|
|
7268
|
+
if (De = [], le(be.split(Q)), xe(), Re)
|
|
7202
7269
|
return Be();
|
|
7203
7270
|
} else
|
|
7204
|
-
le(be.split(
|
|
7205
|
-
if (
|
|
7206
|
-
return De = De.slice(0,
|
|
7271
|
+
le(be.split(Q));
|
|
7272
|
+
if (Oe && Oe <= ue)
|
|
7273
|
+
return De = De.slice(0, Oe), Be(!0);
|
|
7207
7274
|
}
|
|
7208
7275
|
}
|
|
7209
7276
|
return Be();
|
|
7210
7277
|
}
|
|
7211
|
-
for (var
|
|
7212
|
-
if (
|
|
7213
|
-
if (de && be.length === 0 &&
|
|
7278
|
+
for (var ge = Te.indexOf(Q, Ee), _e = Te.indexOf(pe, Ee), ye = new RegExp(ne(Ce) + ne($), "g"), Se = Te.indexOf($, Ee); ; )
|
|
7279
|
+
if (Te[Ee] !== $)
|
|
7280
|
+
if (de && be.length === 0 && Te.substring(Ee, Ee + Pe) === de) {
|
|
7214
7281
|
if (_e === -1)
|
|
7215
7282
|
return Be();
|
|
7216
|
-
Ee = _e + fe, _e =
|
|
7217
|
-
} else if (
|
|
7218
|
-
be.push(
|
|
7283
|
+
Ee = _e + fe, _e = Te.indexOf(pe, Ee), ge = Te.indexOf(Q, Ee);
|
|
7284
|
+
} else if (ge !== -1 && (ge < _e || _e === -1))
|
|
7285
|
+
be.push(Te.substring(Ee, ge)), Ee = ge + Le, ge = Te.indexOf(Q, Ee);
|
|
7219
7286
|
else {
|
|
7220
7287
|
if (_e === -1)
|
|
7221
7288
|
break;
|
|
7222
|
-
if (be.push(
|
|
7289
|
+
if (be.push(Te.substring(Ee, _e)), je(_e + fe), Me && (xe(), Re))
|
|
7223
7290
|
return Be();
|
|
7224
|
-
if (
|
|
7291
|
+
if (Oe && De.length >= Oe)
|
|
7225
7292
|
return Be(!0);
|
|
7226
7293
|
}
|
|
7227
7294
|
else
|
|
7228
7295
|
for (Se = Ee, Ee++; ; ) {
|
|
7229
|
-
if ((Se =
|
|
7230
|
-
return
|
|
7296
|
+
if ((Se = Te.indexOf($, Se + 1)) === -1)
|
|
7297
|
+
return ke || Ie.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: De.length, index: Ee }), we();
|
|
7231
7298
|
if (Se === he - 1)
|
|
7232
|
-
return we(
|
|
7233
|
-
if ($ !== Ce ||
|
|
7234
|
-
if ($ === Ce || Se === 0 ||
|
|
7235
|
-
|
|
7236
|
-
var Ne =
|
|
7237
|
-
if (
|
|
7238
|
-
be.push(
|
|
7299
|
+
return we(Te.substring(Ee, Se).replace(ye, $));
|
|
7300
|
+
if ($ !== Ce || Te[Se + 1] !== Ce) {
|
|
7301
|
+
if ($ === Ce || Se === 0 || Te[Se - 1] !== Ce) {
|
|
7302
|
+
ge !== -1 && ge < Se + 1 && (ge = Te.indexOf(Q, Se + 1)), _e !== -1 && _e < Se + 1 && (_e = Te.indexOf(pe, Se + 1));
|
|
7303
|
+
var Ne = ve(_e === -1 ? ge : Math.min(ge, _e));
|
|
7304
|
+
if (Te.substr(Se + 1 + Ne, Le) === Q) {
|
|
7305
|
+
be.push(Te.substring(Ee, Se).replace(ye, $)), Te[Ee = Se + 1 + Ne + Le] !== $ && (Se = Te.indexOf($, Ee)), ge = Te.indexOf(Q, Ee), _e = Te.indexOf(pe, Ee);
|
|
7239
7306
|
break;
|
|
7240
7307
|
}
|
|
7241
|
-
var ee =
|
|
7242
|
-
if (
|
|
7243
|
-
if (be.push(
|
|
7308
|
+
var ee = ve(_e);
|
|
7309
|
+
if (Te.substring(Se + 1 + ee, Se + 1 + ee + fe) === pe) {
|
|
7310
|
+
if (be.push(Te.substring(Ee, Se).replace(ye, $)), je(Se + 1 + ee + fe), ge = Te.indexOf(Q, Ee), Se = Te.indexOf($, Ee), Me && (xe(), Re))
|
|
7244
7311
|
return Be();
|
|
7245
|
-
if (
|
|
7312
|
+
if (Oe && De.length >= Oe)
|
|
7246
7313
|
return Be(!0);
|
|
7247
7314
|
break;
|
|
7248
7315
|
}
|
|
@@ -7255,25 +7322,25 @@ License: MIT
|
|
|
7255
7322
|
function le($e) {
|
|
7256
7323
|
De.push($e), D = Ee;
|
|
7257
7324
|
}
|
|
7258
|
-
function
|
|
7325
|
+
function ve($e) {
|
|
7259
7326
|
var We = 0;
|
|
7260
7327
|
if ($e !== -1) {
|
|
7261
|
-
var Ve =
|
|
7328
|
+
var Ve = Te.substring(Se + 1, $e);
|
|
7262
7329
|
Ve && Ve.trim() === "" && (We = Ve.length);
|
|
7263
7330
|
}
|
|
7264
7331
|
return We;
|
|
7265
7332
|
}
|
|
7266
7333
|
function we($e) {
|
|
7267
|
-
return
|
|
7334
|
+
return ke || ($e === void 0 && ($e = Te.substring(Ee)), be.push($e), Ee = he, le(be), Me && xe()), Be();
|
|
7268
7335
|
}
|
|
7269
7336
|
function je($e) {
|
|
7270
|
-
Ee = $e, le(be), be = [], _e =
|
|
7337
|
+
Ee = $e, le(be), be = [], _e = Te.indexOf(pe, Ee);
|
|
7271
7338
|
}
|
|
7272
7339
|
function Be($e) {
|
|
7273
|
-
return { data: De, errors: Ie, meta: { delimiter:
|
|
7340
|
+
return { data: De, errors: Ie, meta: { delimiter: Q, linebreak: pe, aborted: Re, truncated: !!$e, cursor: D + (Fe || 0) } };
|
|
7274
7341
|
}
|
|
7275
7342
|
function xe() {
|
|
7276
|
-
|
|
7343
|
+
me(Be()), De = [], Ie = [];
|
|
7277
7344
|
}
|
|
7278
7345
|
}, this.abort = function() {
|
|
7279
7346
|
Re = !0;
|
|
@@ -7281,55 +7348,55 @@ License: MIT
|
|
|
7281
7348
|
return Ee;
|
|
7282
7349
|
};
|
|
7283
7350
|
}
|
|
7284
|
-
function
|
|
7285
|
-
var $ =
|
|
7351
|
+
function Y(H) {
|
|
7352
|
+
var $ = H.data, Q = C[$.workerId], pe = !1;
|
|
7286
7353
|
if ($.error)
|
|
7287
|
-
|
|
7354
|
+
Q.userError($.error, $.file);
|
|
7288
7355
|
else if ($.results && $.results.data) {
|
|
7289
7356
|
var de = { abort: function() {
|
|
7290
|
-
pe = !0,
|
|
7291
|
-
}, pause:
|
|
7292
|
-
if (ie(
|
|
7293
|
-
for (var
|
|
7357
|
+
pe = !0, oe($.workerId, { data: [], errors: [], meta: { aborted: !0 } });
|
|
7358
|
+
}, pause: re, resume: re };
|
|
7359
|
+
if (ie(Q.userStep)) {
|
|
7360
|
+
for (var me = 0; me < $.results.data.length && (Q.userStep({ data: $.results.data[me], errors: $.results.errors, meta: $.results.meta }, de), !pe); me++)
|
|
7294
7361
|
;
|
|
7295
7362
|
delete $.results;
|
|
7296
7363
|
} else
|
|
7297
|
-
ie(
|
|
7364
|
+
ie(Q.userChunk) && (Q.userChunk($.results, de, $.file), delete $.results);
|
|
7298
7365
|
}
|
|
7299
|
-
$.finished && !pe &&
|
|
7366
|
+
$.finished && !pe && oe($.workerId, $.results);
|
|
7300
7367
|
}
|
|
7301
|
-
function
|
|
7302
|
-
var
|
|
7303
|
-
ie(
|
|
7368
|
+
function oe(H, $) {
|
|
7369
|
+
var Q = C[H];
|
|
7370
|
+
ie(Q.userComplete) && Q.userComplete($), Q.terminate(), delete C[H];
|
|
7304
7371
|
}
|
|
7305
|
-
function
|
|
7372
|
+
function re() {
|
|
7306
7373
|
throw new Error("Not implemented.");
|
|
7307
7374
|
}
|
|
7308
|
-
function
|
|
7309
|
-
if (typeof
|
|
7310
|
-
return
|
|
7311
|
-
var $ = Array.isArray(
|
|
7312
|
-
for (var
|
|
7313
|
-
$[
|
|
7375
|
+
function ae(H) {
|
|
7376
|
+
if (typeof H != "object" || H === null)
|
|
7377
|
+
return H;
|
|
7378
|
+
var $ = Array.isArray(H) ? [] : {};
|
|
7379
|
+
for (var Q in H)
|
|
7380
|
+
$[Q] = ae(H[Q]);
|
|
7314
7381
|
return $;
|
|
7315
7382
|
}
|
|
7316
|
-
function
|
|
7383
|
+
function te(H, $) {
|
|
7317
7384
|
return function() {
|
|
7318
|
-
|
|
7385
|
+
H.apply($, arguments);
|
|
7319
7386
|
};
|
|
7320
7387
|
}
|
|
7321
|
-
function ie(
|
|
7322
|
-
return typeof
|
|
7388
|
+
function ie(H) {
|
|
7389
|
+
return typeof H == "function";
|
|
7323
7390
|
}
|
|
7324
|
-
return l && (s.onmessage = function(
|
|
7325
|
-
var $ =
|
|
7391
|
+
return l && (s.onmessage = function(H) {
|
|
7392
|
+
var $ = H.data;
|
|
7326
7393
|
if (L.WORKER_ID === void 0 && $ && (L.WORKER_ID = $.workerId), typeof $.input == "string")
|
|
7327
7394
|
s.postMessage({ workerId: L.WORKER_ID, results: L.parse($.input, $.config), finished: !0 });
|
|
7328
7395
|
else if (s.File && $.input instanceof File || $.input instanceof Object) {
|
|
7329
|
-
var
|
|
7330
|
-
|
|
7396
|
+
var Q = L.parse($.input, $.config);
|
|
7397
|
+
Q && s.postMessage({ workerId: L.WORKER_ID, results: Q, finished: !0 });
|
|
7331
7398
|
}
|
|
7332
|
-
}), (U.prototype = Object.create(
|
|
7399
|
+
}), (U.prototype = Object.create(J.prototype)).constructor = U, (V.prototype = Object.create(J.prototype)).constructor = V, (X.prototype = Object.create(X.prototype)).constructor = X, (ce.prototype = Object.create(J.prototype)).constructor = ce, L;
|
|
7333
7400
|
});
|
|
7334
7401
|
})(papaparse_min);
|
|
7335
7402
|
var papaparse_minExports = papaparse_min.exports;
|
|
@@ -7389,84 +7456,104 @@ temp,\${payload.temp},
|
|
|
7389
7456
|
hum,\${payload.hum},
|
|
7390
7457
|
precip,\${payload.precip}i,"${n("datalayersTemplateRemark")}"
|
|
7391
7458
|
`
|
|
7392
|
-
}
|
|
7459
|
+
}, l = `Column Category,Timestamp,Measurement,Data Type,Value,Remarks (Optional)
|
|
7460
|
+
tag,now,temp,float,\${payload.temp},"${n("iotdbTemplateRemark")}"
|
|
7461
|
+
field,now,hum,float,\${payload.hum},
|
|
7462
|
+
attribute,now,status,boolean,\${payload.status},
|
|
7463
|
+
attribute,now,clientid,text,\${clientid},
|
|
7464
|
+
`;
|
|
7393
7465
|
return {
|
|
7394
7466
|
filenameMap: s,
|
|
7395
7467
|
templateContentMap: c,
|
|
7396
|
-
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
|
|
7468
|
+
getTemplateContent: (V, X) => V === "iotdb" ? X ? l : c.iotdb : c[V],
|
|
7469
|
+
handleDownloadTemp: (V, X) => {
|
|
7470
|
+
if (V) {
|
|
7471
|
+
const ce = new Blob([V], { type: "text/csv" });
|
|
7472
|
+
createDownloadBlobLink(ce, `${X}_template.csv`);
|
|
7400
7473
|
} else
|
|
7401
7474
|
console.error("Template is empty");
|
|
7402
7475
|
},
|
|
7403
|
-
readFileAndParse: async (
|
|
7404
|
-
const
|
|
7405
|
-
|
|
7406
|
-
if (!
|
|
7407
|
-
return
|
|
7408
|
-
const
|
|
7409
|
-
|
|
7410
|
-
},
|
|
7411
|
-
|
|
7412
|
-
},
|
|
7413
|
-
|
|
7414
|
-
},
|
|
7476
|
+
readFileAndParse: async (V, X) => new Promise((ce, se) => {
|
|
7477
|
+
const ne = new FileReader();
|
|
7478
|
+
ne.onload = (q) => {
|
|
7479
|
+
if (!q.target)
|
|
7480
|
+
return se(new Error("FileReader event target is null"));
|
|
7481
|
+
const Y = q.target.result, oe = Papa.parse(Y, { skipEmptyLines: "greedy" });
|
|
7482
|
+
oe.errors.length > 0 && se(new Error("Failed to parse CSV data: " + oe.errors[0].message)), oe.data.length > X + 1 ? se(new Error(n("uploadMaxRowsError", { max: X }))) : ce(oe.data);
|
|
7483
|
+
}, ne.onerror = () => {
|
|
7484
|
+
se(new Error("An error occurred while reading the file"));
|
|
7485
|
+
}, ne.onabort = () => {
|
|
7486
|
+
se(new Error("File reading was aborted"));
|
|
7487
|
+
}, ne.readAsText(V);
|
|
7415
7488
|
}),
|
|
7416
|
-
processIoTDBData: (
|
|
7489
|
+
processIoTDBData: (V, X) => new Promise((ce, se) => {
|
|
7417
7490
|
try {
|
|
7418
|
-
const
|
|
7419
|
-
(
|
|
7420
|
-
).map((
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7491
|
+
const ne = ["boolean", "int32", "int64", "float", "double", "text"], q = (ae) => ne.includes(ae), Y = ["tag", "field", "attribute"], oe = (ae) => Y.includes(ae), re = V.slice(1).filter(
|
|
7492
|
+
(ae) => ae.length >= 4 && ae.slice(0, 4).every((te) => te && te.trim() !== "")
|
|
7493
|
+
).map((ae) => {
|
|
7494
|
+
if (X) {
|
|
7495
|
+
const [Q, pe, de, me, Oe] = ae;
|
|
7496
|
+
if (!q(me))
|
|
7497
|
+
throw new Error(`Invalid data type: ${me}`);
|
|
7498
|
+
if (!oe(Q))
|
|
7499
|
+
throw new Error(`Invalid column category: ${Q}`);
|
|
7500
|
+
return {
|
|
7501
|
+
column_category: Q,
|
|
7502
|
+
timestamp: pe,
|
|
7503
|
+
measurement: de,
|
|
7504
|
+
data_type: me,
|
|
7505
|
+
value: Oe
|
|
7506
|
+
};
|
|
7507
|
+
}
|
|
7508
|
+
const [te, ie, H, $] = ae;
|
|
7509
|
+
if (!q(H))
|
|
7510
|
+
throw new Error(`Invalid data type: ${H}`);
|
|
7424
7511
|
return {
|
|
7425
|
-
timestamp:
|
|
7426
|
-
measurement:
|
|
7427
|
-
data_type:
|
|
7428
|
-
value:
|
|
7512
|
+
timestamp: te,
|
|
7513
|
+
measurement: ie,
|
|
7514
|
+
data_type: H,
|
|
7515
|
+
value: $
|
|
7429
7516
|
};
|
|
7430
7517
|
});
|
|
7431
|
-
|
|
7432
|
-
} catch (
|
|
7433
|
-
|
|
7518
|
+
ce(re);
|
|
7519
|
+
} catch (ne) {
|
|
7520
|
+
se(ne);
|
|
7434
7521
|
}
|
|
7435
7522
|
}),
|
|
7436
|
-
processTDengineData: (
|
|
7523
|
+
processTDengineData: (V) => new Promise((X, ce) => {
|
|
7437
7524
|
try {
|
|
7438
|
-
const
|
|
7439
|
-
for (let
|
|
7440
|
-
const [
|
|
7441
|
-
if (!
|
|
7525
|
+
const se = "<table>", ne = [], q = [];
|
|
7526
|
+
for (let oe = 1; oe < V.length; oe++) {
|
|
7527
|
+
const [re, ae, te] = V[oe];
|
|
7528
|
+
if (!re || !ae)
|
|
7442
7529
|
continue;
|
|
7443
|
-
|
|
7444
|
-
const
|
|
7445
|
-
if (
|
|
7446
|
-
|
|
7447
|
-
else if (
|
|
7448
|
-
|
|
7530
|
+
ne.push(re);
|
|
7531
|
+
const ie = ["true", "TRUE", "1", "", void 0].includes(te == null ? void 0 : te.trim()), H = ["false", "FALSE", "0"].includes(te == null ? void 0 : te.trim());
|
|
7532
|
+
if (ie)
|
|
7533
|
+
q.push(`'${ae}'`);
|
|
7534
|
+
else if (H)
|
|
7535
|
+
q.push(ae);
|
|
7449
7536
|
else
|
|
7450
7537
|
throw new Error(n("invalidIsCharFlag", { isChar: te }));
|
|
7451
7538
|
}
|
|
7452
|
-
const
|
|
7539
|
+
const Y = `insert into ${se}(${ne.join(", ")}) values (${q.join(
|
|
7453
7540
|
", "
|
|
7454
7541
|
)})`;
|
|
7455
|
-
|
|
7456
|
-
} catch (
|
|
7457
|
-
|
|
7542
|
+
X(Y);
|
|
7543
|
+
} catch (se) {
|
|
7544
|
+
ce(se);
|
|
7458
7545
|
}
|
|
7459
7546
|
}),
|
|
7460
|
-
processInfluxDBData: (
|
|
7547
|
+
processInfluxDBData: (V) => new Promise((X, ce) => {
|
|
7461
7548
|
try {
|
|
7462
|
-
const
|
|
7463
|
-
for (let
|
|
7464
|
-
const [
|
|
7465
|
-
!
|
|
7549
|
+
const se = [];
|
|
7550
|
+
for (let ne = 1; ne < V.length; ne++) {
|
|
7551
|
+
const [q, Y] = V[ne];
|
|
7552
|
+
!q || !Y || se.push({ key: q, value: Y });
|
|
7466
7553
|
}
|
|
7467
|
-
|
|
7468
|
-
} catch (
|
|
7469
|
-
|
|
7554
|
+
X(se);
|
|
7555
|
+
} catch (se) {
|
|
7556
|
+
ce(se);
|
|
7470
7557
|
}
|
|
7471
7558
|
})
|
|
7472
7559
|
};
|
|
@@ -7531,9 +7618,9 @@ precip,\${payload.precip}i,"${n("datalayersTemplateRemark")}"
|
|
|
7531
7618
|
var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exports: {} };
|
|
7532
7619
|
(function(e) {
|
|
7533
7620
|
(function(t) {
|
|
7534
|
-
var n, s = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, c = Math.ceil, l = Math.floor, C = "[BigNumber Error] ", A = C + "Number primitive has more than 15 significant digits: ", L = 1e14, B = 14,
|
|
7535
|
-
function ce(
|
|
7536
|
-
var ie,
|
|
7621
|
+
var n, s = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, c = Math.ceil, l = Math.floor, C = "[BigNumber Error] ", A = C + "Number primitive has more than 15 significant digits: ", L = 1e14, B = 14, J = 9007199254740991, U = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], V = 1e7, X = 1e9;
|
|
7622
|
+
function ce(te) {
|
|
7623
|
+
var ie, H, $, Q = fe.prototype = { constructor: fe, toString: null, valueOf: null }, pe = new fe(1), de = 20, me = 4, Oe = -7, Ae = 21, Ce = -1e7, Ee = 1e7, Re = !1, Te = 1, Fe = 0, ke = {
|
|
7537
7624
|
prefix: "",
|
|
7538
7625
|
groupSize: 3,
|
|
7539
7626
|
secondaryGroupSize: 0,
|
|
@@ -7545,7 +7632,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7545
7632
|
suffix: ""
|
|
7546
7633
|
}, he = "0123456789abcdefghijklmnopqrstuvwxyz", Le = !0;
|
|
7547
7634
|
function fe(D, M) {
|
|
7548
|
-
var W, R, I, F,
|
|
7635
|
+
var W, R, I, F, G, j, K, Z, z = this;
|
|
7549
7636
|
if (!(z instanceof fe))
|
|
7550
7637
|
return new fe(D, M);
|
|
7551
7638
|
if (M == null) {
|
|
@@ -7555,7 +7642,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7555
7642
|
}
|
|
7556
7643
|
if ((j = typeof D == "number") && D * 0 == 0) {
|
|
7557
7644
|
if (z.s = 1 / D < 0 ? (D = -D, -1) : 1, D === ~~D) {
|
|
7558
|
-
for (F = 0,
|
|
7645
|
+
for (F = 0, G = D; G >= 10; G /= 10, F++)
|
|
7559
7646
|
;
|
|
7560
7647
|
F > Ee ? z.c = z.e = null : (z.e = F, z.c = [D]);
|
|
7561
7648
|
return;
|
|
@@ -7566,10 +7653,10 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7566
7653
|
return $(z, Z, j);
|
|
7567
7654
|
z.s = Z.charCodeAt(0) == 45 ? (Z = Z.slice(1), -1) : 1;
|
|
7568
7655
|
}
|
|
7569
|
-
(F = Z.indexOf(".")) > -1 && (Z = Z.replace(".", "")), (
|
|
7656
|
+
(F = Z.indexOf(".")) > -1 && (Z = Z.replace(".", "")), (G = Z.search(/e/i)) > 0 ? (F < 0 && (F = G), F += +Z.slice(G + 1), Z = Z.substring(0, G)) : F < 0 && (F = Z.length);
|
|
7570
7657
|
} else {
|
|
7571
|
-
if (
|
|
7572
|
-
return z = new fe(D), Ie(z, de + z.e + 1,
|
|
7658
|
+
if (Y(M, 2, he.length, "Base"), M == 10 && Le)
|
|
7659
|
+
return z = new fe(D), Ie(z, de + z.e + 1, me);
|
|
7573
7660
|
if (Z = String(D), j = typeof D == "number") {
|
|
7574
7661
|
if (D * 0 != 0)
|
|
7575
7662
|
return $(z, Z, j, M);
|
|
@@ -7577,40 +7664,40 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7577
7664
|
throw Error(A + D);
|
|
7578
7665
|
} else
|
|
7579
7666
|
z.s = Z.charCodeAt(0) === 45 ? (Z = Z.slice(1), -1) : 1;
|
|
7580
|
-
for (W = he.slice(0, M), F =
|
|
7581
|
-
if (W.indexOf(R = Z.charAt(
|
|
7667
|
+
for (W = he.slice(0, M), F = G = 0, K = Z.length; G < K; G++)
|
|
7668
|
+
if (W.indexOf(R = Z.charAt(G)) < 0) {
|
|
7582
7669
|
if (R == ".") {
|
|
7583
|
-
if (
|
|
7670
|
+
if (G > F) {
|
|
7584
7671
|
F = K;
|
|
7585
7672
|
continue;
|
|
7586
7673
|
}
|
|
7587
7674
|
} else if (!I && (Z == Z.toUpperCase() && (Z = Z.toLowerCase()) || Z == Z.toLowerCase() && (Z = Z.toUpperCase()))) {
|
|
7588
|
-
I = !0,
|
|
7675
|
+
I = !0, G = -1, F = 0;
|
|
7589
7676
|
continue;
|
|
7590
7677
|
}
|
|
7591
7678
|
return $(z, String(D), j, M);
|
|
7592
7679
|
}
|
|
7593
|
-
j = !1, Z =
|
|
7680
|
+
j = !1, Z = H(Z, M, 10, z.s), (F = Z.indexOf(".")) > -1 ? Z = Z.replace(".", "") : F = Z.length;
|
|
7594
7681
|
}
|
|
7595
|
-
for (
|
|
7682
|
+
for (G = 0; Z.charCodeAt(G) === 48; G++)
|
|
7596
7683
|
;
|
|
7597
7684
|
for (K = Z.length; Z.charCodeAt(--K) === 48; )
|
|
7598
7685
|
;
|
|
7599
|
-
if (Z = Z.slice(
|
|
7600
|
-
if (K -=
|
|
7686
|
+
if (Z = Z.slice(G, ++K)) {
|
|
7687
|
+
if (K -= G, j && fe.DEBUG && K > 15 && (D > J || D !== l(D)))
|
|
7601
7688
|
throw Error(A + z.s * D);
|
|
7602
|
-
if ((F = F -
|
|
7689
|
+
if ((F = F - G - 1) > Ee)
|
|
7603
7690
|
z.c = z.e = null;
|
|
7604
7691
|
else if (F < Ce)
|
|
7605
7692
|
z.c = [z.e = 0];
|
|
7606
7693
|
else {
|
|
7607
|
-
if (z.e = F, z.c = [],
|
|
7608
|
-
for (
|
|
7609
|
-
z.c.push(+Z.slice(
|
|
7610
|
-
|
|
7694
|
+
if (z.e = F, z.c = [], G = (F + 1) % B, F < 0 && (G += B), G < K) {
|
|
7695
|
+
for (G && z.c.push(+Z.slice(0, G)), K -= B; G < K; )
|
|
7696
|
+
z.c.push(+Z.slice(G, G += B));
|
|
7697
|
+
G = B - (Z = Z.slice(G)).length;
|
|
7611
7698
|
} else
|
|
7612
|
-
|
|
7613
|
-
for (;
|
|
7699
|
+
G -= K;
|
|
7700
|
+
for (; G--; Z += "0")
|
|
7614
7701
|
;
|
|
7615
7702
|
z.c.push(+Z);
|
|
7616
7703
|
}
|
|
@@ -7621,10 +7708,10 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7621
7708
|
var M, W;
|
|
7622
7709
|
if (D != null)
|
|
7623
7710
|
if (typeof D == "object") {
|
|
7624
|
-
if (D.hasOwnProperty(M = "DECIMAL_PLACES") && (W = D[M],
|
|
7711
|
+
if (D.hasOwnProperty(M = "DECIMAL_PLACES") && (W = D[M], Y(W, 0, X, M), de = W), D.hasOwnProperty(M = "ROUNDING_MODE") && (W = D[M], Y(W, 0, 8, M), me = W), D.hasOwnProperty(M = "EXPONENTIAL_AT") && (W = D[M], W && W.pop ? (Y(W[0], -X, 0, M), Y(W[1], 0, X, M), Oe = W[0], Ae = W[1]) : (Y(W, -X, X, M), Oe = -(Ae = W < 0 ? -W : W))), D.hasOwnProperty(M = "RANGE"))
|
|
7625
7712
|
if (W = D[M], W && W.pop)
|
|
7626
|
-
|
|
7627
|
-
else if (
|
|
7713
|
+
Y(W[0], -X, -1, M), Y(W[1], 1, X, M), Ce = W[0], Ee = W[1];
|
|
7714
|
+
else if (Y(W, -X, X, M), W)
|
|
7628
7715
|
Ce = -(Ee = W < 0 ? -W : W);
|
|
7629
7716
|
else
|
|
7630
7717
|
throw Error(C + M + " cannot be zero: " + W);
|
|
@@ -7639,9 +7726,9 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7639
7726
|
Re = W;
|
|
7640
7727
|
else
|
|
7641
7728
|
throw Error(C + M + " not true or false: " + W);
|
|
7642
|
-
if (D.hasOwnProperty(M = "MODULO_MODE") && (W = D[M],
|
|
7729
|
+
if (D.hasOwnProperty(M = "MODULO_MODE") && (W = D[M], Y(W, 0, 9, M), Te = W), D.hasOwnProperty(M = "POW_PRECISION") && (W = D[M], Y(W, 0, X, M), Fe = W), D.hasOwnProperty(M = "FORMAT"))
|
|
7643
7730
|
if (W = D[M], typeof W == "object")
|
|
7644
|
-
|
|
7731
|
+
ke = W;
|
|
7645
7732
|
else
|
|
7646
7733
|
throw Error(C + M + " not an object: " + W);
|
|
7647
7734
|
if (D.hasOwnProperty(M = "ALPHABET"))
|
|
@@ -7653,13 +7740,13 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7653
7740
|
throw Error(C + "Object expected: " + D);
|
|
7654
7741
|
return {
|
|
7655
7742
|
DECIMAL_PLACES: de,
|
|
7656
|
-
ROUNDING_MODE:
|
|
7657
|
-
EXPONENTIAL_AT: [
|
|
7743
|
+
ROUNDING_MODE: me,
|
|
7744
|
+
EXPONENTIAL_AT: [Oe, Ae],
|
|
7658
7745
|
RANGE: [Ce, Ee],
|
|
7659
7746
|
CRYPTO: Re,
|
|
7660
|
-
MODULO_MODE:
|
|
7747
|
+
MODULO_MODE: Te,
|
|
7661
7748
|
POW_PRECISION: Fe,
|
|
7662
|
-
FORMAT:
|
|
7749
|
+
FORMAT: ke,
|
|
7663
7750
|
ALPHABET: he
|
|
7664
7751
|
};
|
|
7665
7752
|
}, fe.isBigNumber = function(D) {
|
|
@@ -7670,7 +7757,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7670
7757
|
var M, W, R = D.c, I = D.e, F = D.s;
|
|
7671
7758
|
e:
|
|
7672
7759
|
if ({}.toString.call(R) == "[object Array]") {
|
|
7673
|
-
if ((F === 1 || F === -1) && I >= -
|
|
7760
|
+
if ((F === 1 || F === -1) && I >= -X && I <= X && I === l(I)) {
|
|
7674
7761
|
if (R[0] === 0) {
|
|
7675
7762
|
if (I === 0 && R.length === 1)
|
|
7676
7763
|
return !0;
|
|
@@ -7688,9 +7775,9 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7688
7775
|
return !0;
|
|
7689
7776
|
throw Error(C + "Invalid BigNumber: " + D);
|
|
7690
7777
|
}, fe.maximum = fe.max = function() {
|
|
7691
|
-
return
|
|
7778
|
+
return Me(arguments, -1);
|
|
7692
7779
|
}, fe.minimum = fe.min = function() {
|
|
7693
|
-
return
|
|
7780
|
+
return Me(arguments, 1);
|
|
7694
7781
|
}, fe.random = function() {
|
|
7695
7782
|
var D = 9007199254740992, M = Math.random() * D & 2097151 ? function() {
|
|
7696
7783
|
return l(Math.random() * D);
|
|
@@ -7698,22 +7785,22 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7698
7785
|
return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
|
|
7699
7786
|
};
|
|
7700
7787
|
return function(W) {
|
|
7701
|
-
var R, I, F,
|
|
7702
|
-
if (W == null ? W = de :
|
|
7788
|
+
var R, I, F, G, j, K = 0, Z = [], z = new fe(pe);
|
|
7789
|
+
if (W == null ? W = de : Y(W, 0, X), G = c(W / B), Re)
|
|
7703
7790
|
if (crypto.getRandomValues) {
|
|
7704
|
-
for (R = crypto.getRandomValues(new Uint32Array(
|
|
7791
|
+
for (R = crypto.getRandomValues(new Uint32Array(G *= 2)); K < G; )
|
|
7705
7792
|
j = R[K] * 131072 + (R[K + 1] >>> 11), j >= 9e15 ? (I = crypto.getRandomValues(new Uint32Array(2)), R[K] = I[0], R[K + 1] = I[1]) : (Z.push(j % 1e14), K += 2);
|
|
7706
|
-
K =
|
|
7793
|
+
K = G / 2;
|
|
7707
7794
|
} else if (crypto.randomBytes) {
|
|
7708
|
-
for (R = crypto.randomBytes(
|
|
7795
|
+
for (R = crypto.randomBytes(G *= 7); K < G; )
|
|
7709
7796
|
j = (R[K] & 31) * 281474976710656 + R[K + 1] * 1099511627776 + R[K + 2] * 4294967296 + R[K + 3] * 16777216 + (R[K + 4] << 16) + (R[K + 5] << 8) + R[K + 6], j >= 9e15 ? crypto.randomBytes(7).copy(R, K) : (Z.push(j % 1e14), K += 7);
|
|
7710
|
-
K =
|
|
7797
|
+
K = G / 7;
|
|
7711
7798
|
} else
|
|
7712
7799
|
throw Re = !1, Error(C + "crypto unavailable");
|
|
7713
7800
|
if (!Re)
|
|
7714
|
-
for (; K <
|
|
7801
|
+
for (; K < G; )
|
|
7715
7802
|
j = M(), j < 9e15 && (Z[K++] = j % 1e14);
|
|
7716
|
-
for (
|
|
7803
|
+
for (G = Z[--K], W %= B, G && W && (j = U[B - W], Z[K] = l(G / j) * j); Z[K] === 0; Z.pop(), K--)
|
|
7717
7804
|
;
|
|
7718
7805
|
if (K < 0)
|
|
7719
7806
|
Z = [F = 0];
|
|
@@ -7730,30 +7817,30 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7730
7817
|
for (var D = 1, M = arguments, W = new fe(M[0]); D < M.length; )
|
|
7731
7818
|
W = W.plus(M[D++]);
|
|
7732
7819
|
return W;
|
|
7733
|
-
},
|
|
7820
|
+
}, H = function() {
|
|
7734
7821
|
var D = "0123456789";
|
|
7735
7822
|
function M(W, R, I, F) {
|
|
7736
|
-
for (var
|
|
7823
|
+
for (var G, j = [0], K, Z = 0, z = W.length; Z < z; ) {
|
|
7737
7824
|
for (K = j.length; K--; j[K] *= R)
|
|
7738
7825
|
;
|
|
7739
|
-
for (j[0] += F.indexOf(W.charAt(Z++)),
|
|
7740
|
-
j[
|
|
7826
|
+
for (j[0] += F.indexOf(W.charAt(Z++)), G = 0; G < j.length; G++)
|
|
7827
|
+
j[G] > I - 1 && (j[G + 1] == null && (j[G + 1] = 0), j[G + 1] += j[G] / I | 0, j[G] %= I);
|
|
7741
7828
|
}
|
|
7742
7829
|
return j.reverse();
|
|
7743
7830
|
}
|
|
7744
|
-
return function(W, R, I, F,
|
|
7745
|
-
var j, K, Z, z, ue,
|
|
7746
|
-
for (Se >= 0 && (z = Fe, Fe = 0, W = W.replace(".", ""), ye = new fe(R),
|
|
7747
|
-
|
|
7831
|
+
return function(W, R, I, F, G) {
|
|
7832
|
+
var j, K, Z, z, ue, ge, _e, ye, Se = W.indexOf("."), Ne = de, ee = me;
|
|
7833
|
+
for (Se >= 0 && (z = Fe, Fe = 0, W = W.replace(".", ""), ye = new fe(R), ge = ye.pow(W.length - Se), Fe = z, ye.c = M(
|
|
7834
|
+
ae(ne(ge.c), ge.e, "0"),
|
|
7748
7835
|
10,
|
|
7749
7836
|
I,
|
|
7750
7837
|
D
|
|
7751
|
-
), ye.e = ye.c.length), _e = M(W, R, I,
|
|
7838
|
+
), ye.e = ye.c.length), _e = M(W, R, I, G ? (j = he, D) : (j = D, he)), Z = z = _e.length; _e[--z] == 0; _e.pop())
|
|
7752
7839
|
;
|
|
7753
7840
|
if (!_e[0])
|
|
7754
7841
|
return j.charAt(0);
|
|
7755
|
-
if (Se < 0 ? --Z : (
|
|
7756
|
-
W = ue ?
|
|
7842
|
+
if (Se < 0 ? --Z : (ge.c = _e, ge.e = Z, ge.s = F, ge = ie(ge, ye, Ne, ee, I), _e = ge.c, ue = ge.r, Z = ge.e), K = Z + Ne + 1, Se = _e[K], z = I / 2, ue = ue || K < 0 || _e[K + 1] != null, ue = ee < 4 ? (Se != null || ue) && (ee == 0 || ee == (ge.s < 0 ? 3 : 2)) : Se > z || Se == z && (ee == 4 || ue || ee == 6 && _e[K - 1] & 1 || ee == (ge.s < 0 ? 8 : 7)), K < 1 || !_e[0])
|
|
7843
|
+
W = ue ? ae(j.charAt(1), -Ne, j.charAt(0)) : j.charAt(0);
|
|
7757
7844
|
else {
|
|
7758
7845
|
if (_e.length = K, ue)
|
|
7759
7846
|
for (--I; ++_e[--K] > I; )
|
|
@@ -7762,21 +7849,21 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7762
7849
|
;
|
|
7763
7850
|
for (Se = 0, W = ""; Se <= z; W += j.charAt(_e[Se++]))
|
|
7764
7851
|
;
|
|
7765
|
-
W =
|
|
7852
|
+
W = ae(W, Z, j.charAt(0));
|
|
7766
7853
|
}
|
|
7767
7854
|
return W;
|
|
7768
7855
|
};
|
|
7769
7856
|
}(), ie = function() {
|
|
7770
7857
|
function D(R, I, F) {
|
|
7771
|
-
var
|
|
7858
|
+
var G, j, K, Z, z = 0, ue = R.length, ge = I % V, _e = I / V | 0;
|
|
7772
7859
|
for (R = R.slice(); ue--; )
|
|
7773
|
-
K = R[ue] % V, Z = R[ue] / V | 0,
|
|
7860
|
+
K = R[ue] % V, Z = R[ue] / V | 0, G = _e * K + Z * ge, j = ge * K + G % V * V + z, z = (j / F | 0) + (G / V | 0) + _e * Z, R[ue] = j % F;
|
|
7774
7861
|
return z && (R = [z].concat(R)), R;
|
|
7775
7862
|
}
|
|
7776
|
-
function M(R, I, F,
|
|
7863
|
+
function M(R, I, F, G) {
|
|
7777
7864
|
var j, K;
|
|
7778
|
-
if (F !=
|
|
7779
|
-
K = F >
|
|
7865
|
+
if (F != G)
|
|
7866
|
+
K = F > G ? 1 : -1;
|
|
7780
7867
|
else
|
|
7781
7868
|
for (j = K = 0; j < F; j++)
|
|
7782
7869
|
if (R[j] != I[j]) {
|
|
@@ -7785,14 +7872,14 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7785
7872
|
}
|
|
7786
7873
|
return K;
|
|
7787
7874
|
}
|
|
7788
|
-
function W(R, I, F,
|
|
7875
|
+
function W(R, I, F, G) {
|
|
7789
7876
|
for (var j = 0; F--; )
|
|
7790
|
-
R[F] -= j, j = R[F] < I[F] ? 1 : 0, R[F] = j *
|
|
7877
|
+
R[F] -= j, j = R[F] < I[F] ? 1 : 0, R[F] = j * G + R[F] - I[F];
|
|
7791
7878
|
for (; !R[0] && R.length > 1; R.splice(0, 1))
|
|
7792
7879
|
;
|
|
7793
7880
|
}
|
|
7794
|
-
return function(R, I, F,
|
|
7795
|
-
var K, Z, z, ue,
|
|
7881
|
+
return function(R, I, F, G, j) {
|
|
7882
|
+
var K, Z, z, ue, ge, _e, ye, Se, Ne, ee, le, ve, we, je, Be, xe, $e, We = R.s == I.s ? 1 : -1, Ve = R.c, Ue = I.c;
|
|
7796
7883
|
if (!Ve || !Ve[0] || !Ue || !Ue[0])
|
|
7797
7884
|
return new fe(
|
|
7798
7885
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
@@ -7806,45 +7893,45 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7806
7893
|
if (Ue[z] > (Ve[z] || 0) && Z--, We < 0)
|
|
7807
7894
|
Ne.push(1), ue = !0;
|
|
7808
7895
|
else {
|
|
7809
|
-
for (je = Ve.length, xe = Ue.length, z = 0, We += 2,
|
|
7896
|
+
for (je = Ve.length, xe = Ue.length, z = 0, We += 2, ge = l(j / (Ue[0] + 1)), ge > 1 && (Ue = D(Ue, ge, j), Ve = D(Ve, ge, j), xe = Ue.length, je = Ve.length), we = xe, ee = Ve.slice(0, xe), le = ee.length; le < xe; ee[le++] = 0)
|
|
7810
7897
|
;
|
|
7811
7898
|
$e = Ue.slice(), $e = [0].concat($e), Be = Ue[0], Ue[1] >= j / 2 && Be++;
|
|
7812
7899
|
do {
|
|
7813
|
-
if (
|
|
7814
|
-
if (
|
|
7815
|
-
for (
|
|
7816
|
-
|
|
7900
|
+
if (ge = 0, K = M(Ue, ee, xe, le), K < 0) {
|
|
7901
|
+
if (ve = ee[0], xe != le && (ve = ve * j + (ee[1] || 0)), ge = l(ve / Be), ge > 1)
|
|
7902
|
+
for (ge >= j && (ge = j - 1), _e = D(Ue, ge, j), ye = _e.length, le = ee.length; M(_e, ee, ye, le) == 1; )
|
|
7903
|
+
ge--, W(_e, xe < ye ? $e : Ue, ye, j), ye = _e.length, K = 1;
|
|
7817
7904
|
else
|
|
7818
|
-
|
|
7905
|
+
ge == 0 && (K = ge = 1), _e = Ue.slice(), ye = _e.length;
|
|
7819
7906
|
if (ye < le && (_e = [0].concat(_e)), W(ee, _e, le, j), le = ee.length, K == -1)
|
|
7820
7907
|
for (; M(Ue, ee, xe, le) < 1; )
|
|
7821
|
-
|
|
7908
|
+
ge++, W(ee, xe < le ? $e : Ue, le, j), le = ee.length;
|
|
7822
7909
|
} else
|
|
7823
|
-
K === 0 && (
|
|
7824
|
-
Ne[z++] =
|
|
7910
|
+
K === 0 && (ge++, ee = [0]);
|
|
7911
|
+
Ne[z++] = ge, ee[0] ? ee[le++] = Ve[we] || 0 : (ee = [Ve[we]], le = 1);
|
|
7825
7912
|
} while ((we++ < je || ee[0] != null) && We--);
|
|
7826
7913
|
ue = ee[0] != null, Ne[0] || Ne.splice(0, 1);
|
|
7827
7914
|
}
|
|
7828
7915
|
if (j == L) {
|
|
7829
7916
|
for (z = 1, We = Ne[0]; We >= 10; We /= 10, z++)
|
|
7830
7917
|
;
|
|
7831
|
-
Ie(Se, F + (Se.e = z + Z * B - 1) + 1,
|
|
7918
|
+
Ie(Se, F + (Se.e = z + Z * B - 1) + 1, G, ue);
|
|
7832
7919
|
} else
|
|
7833
7920
|
Se.e = Z, Se.r = +ue;
|
|
7834
7921
|
return Se;
|
|
7835
7922
|
};
|
|
7836
7923
|
}();
|
|
7837
7924
|
function Pe(D, M, W, R) {
|
|
7838
|
-
var I, F,
|
|
7839
|
-
if (W == null ? W =
|
|
7925
|
+
var I, F, G, j, K;
|
|
7926
|
+
if (W == null ? W = me : Y(W, 0, 8), !D.c)
|
|
7840
7927
|
return D.toString();
|
|
7841
|
-
if (I = D.c[0],
|
|
7842
|
-
K =
|
|
7843
|
-
else if (D = Ie(new fe(D), M, W), F = D.e, K =
|
|
7928
|
+
if (I = D.c[0], G = D.e, M == null)
|
|
7929
|
+
K = ne(D.c), K = R == 1 || R == 2 && (G <= Oe || G >= Ae) ? re(K, G) : ae(K, G, "0");
|
|
7930
|
+
else if (D = Ie(new fe(D), M, W), F = D.e, K = ne(D.c), j = K.length, R == 1 || R == 2 && (M <= F || F <= Oe)) {
|
|
7844
7931
|
for (; j < M; K += "0", j++)
|
|
7845
7932
|
;
|
|
7846
|
-
K =
|
|
7847
|
-
} else if (M -=
|
|
7933
|
+
K = re(K, F);
|
|
7934
|
+
} else if (M -= G, K = ae(K, F, "0"), F + 1 > j) {
|
|
7848
7935
|
if (--M > 0)
|
|
7849
7936
|
for (K += "."; M--; K += "0")
|
|
7850
7937
|
;
|
|
@@ -7853,9 +7940,9 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7853
7940
|
;
|
|
7854
7941
|
return D.s < 0 && I ? "-" + K : K;
|
|
7855
7942
|
}
|
|
7856
|
-
function
|
|
7943
|
+
function Me(D, M) {
|
|
7857
7944
|
for (var W, R, I = 1, F = new fe(D[0]); I < D.length; I++)
|
|
7858
|
-
R = new fe(D[I]), (!R.s || (W =
|
|
7945
|
+
R = new fe(D[I]), (!R.s || (W = q(F, R)) === M || W === 0 && F.s === M) && (F = R);
|
|
7859
7946
|
return F;
|
|
7860
7947
|
}
|
|
7861
7948
|
function De(D, M, W) {
|
|
@@ -7867,54 +7954,54 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7867
7954
|
}
|
|
7868
7955
|
$ = function() {
|
|
7869
7956
|
var D = /^(-?)0([xbo])(?=\w[\w.]*$)/i, M = /^([^.]+)\.$/, W = /^\.([^.]+)$/, R = /^-?(Infinity|NaN)$/, I = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
|
|
7870
|
-
return function(F,
|
|
7871
|
-
var Z, z = j ?
|
|
7957
|
+
return function(F, G, j, K) {
|
|
7958
|
+
var Z, z = j ? G : G.replace(I, "");
|
|
7872
7959
|
if (R.test(z))
|
|
7873
7960
|
F.s = isNaN(z) ? null : z < 0 ? -1 : 1;
|
|
7874
7961
|
else {
|
|
7875
|
-
if (!j && (z = z.replace(D, function(ue,
|
|
7876
|
-
return Z = (_e = _e.toLowerCase()) == "x" ? 16 : _e == "b" ? 2 : 8, !K || K == Z ?
|
|
7877
|
-
}), K && (Z = K, z = z.replace(M, "$1").replace(W, "0.$1")),
|
|
7962
|
+
if (!j && (z = z.replace(D, function(ue, ge, _e) {
|
|
7963
|
+
return Z = (_e = _e.toLowerCase()) == "x" ? 16 : _e == "b" ? 2 : 8, !K || K == Z ? ge : ue;
|
|
7964
|
+
}), K && (Z = K, z = z.replace(M, "$1").replace(W, "0.$1")), G != z))
|
|
7878
7965
|
return new fe(z, Z);
|
|
7879
7966
|
if (fe.DEBUG)
|
|
7880
|
-
throw Error(C + "Not a" + (K ? " base " + K : "") + " number: " +
|
|
7967
|
+
throw Error(C + "Not a" + (K ? " base " + K : "") + " number: " + G);
|
|
7881
7968
|
F.s = null;
|
|
7882
7969
|
}
|
|
7883
7970
|
F.c = F.e = null;
|
|
7884
7971
|
};
|
|
7885
7972
|
}();
|
|
7886
7973
|
function Ie(D, M, W, R) {
|
|
7887
|
-
var I, F,
|
|
7974
|
+
var I, F, G, j, K, Z, z, ue = D.c, ge = U;
|
|
7888
7975
|
if (ue) {
|
|
7889
7976
|
e: {
|
|
7890
7977
|
for (I = 1, j = ue[0]; j >= 10; j /= 10, I++)
|
|
7891
7978
|
;
|
|
7892
7979
|
if (F = M - I, F < 0)
|
|
7893
|
-
F += B,
|
|
7980
|
+
F += B, G = M, K = ue[Z = 0], z = l(K / ge[I - G - 1] % 10);
|
|
7894
7981
|
else if (Z = c((F + 1) / B), Z >= ue.length)
|
|
7895
7982
|
if (R) {
|
|
7896
7983
|
for (; ue.length <= Z; ue.push(0))
|
|
7897
7984
|
;
|
|
7898
|
-
K = z = 0, I = 1, F %= B,
|
|
7985
|
+
K = z = 0, I = 1, F %= B, G = F - B + 1;
|
|
7899
7986
|
} else
|
|
7900
7987
|
break e;
|
|
7901
7988
|
else {
|
|
7902
7989
|
for (K = j = ue[Z], I = 1; j >= 10; j /= 10, I++)
|
|
7903
7990
|
;
|
|
7904
|
-
F %= B,
|
|
7991
|
+
F %= B, G = F - B + I, z = G < 0 ? 0 : l(K / ge[I - G - 1] % 10);
|
|
7905
7992
|
}
|
|
7906
7993
|
if (R = R || M < 0 || // Are there any non-zero digits after the rounding digit?
|
|
7907
7994
|
// The expression n % pows10[d - j - 1] returns all digits of n to the right
|
|
7908
7995
|
// of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
|
|
7909
|
-
ue[Z + 1] != null || (
|
|
7910
|
-
(F > 0 ?
|
|
7911
|
-
return ue.length = 0, R ? (M -= D.e + 1, ue[0] =
|
|
7912
|
-
if (F == 0 ? (ue.length = Z, j = 1, Z--) : (ue.length = Z + 1, j =
|
|
7996
|
+
ue[Z + 1] != null || (G < 0 ? K : K % ge[I - G - 1]), R = W < 4 ? (z || R) && (W == 0 || W == (D.s < 0 ? 3 : 2)) : z > 5 || z == 5 && (W == 4 || R || W == 6 && // Check whether the digit to the left of the rounding digit is odd.
|
|
7997
|
+
(F > 0 ? G > 0 ? K / ge[I - G] : 0 : ue[Z - 1]) % 10 & 1 || W == (D.s < 0 ? 8 : 7)), M < 1 || !ue[0])
|
|
7998
|
+
return ue.length = 0, R ? (M -= D.e + 1, ue[0] = ge[(B - M % B) % B], D.e = -M || 0) : ue[0] = D.e = 0, D;
|
|
7999
|
+
if (F == 0 ? (ue.length = Z, j = 1, Z--) : (ue.length = Z + 1, j = ge[B - F], ue[Z] = G > 0 ? l(K / ge[I - G] % ge[G]) * j : 0), R)
|
|
7913
8000
|
for (; ; )
|
|
7914
8001
|
if (Z == 0) {
|
|
7915
|
-
for (F = 1,
|
|
8002
|
+
for (F = 1, G = ue[0]; G >= 10; G /= 10, F++)
|
|
7916
8003
|
;
|
|
7917
|
-
for (
|
|
8004
|
+
for (G = ue[0] += j, j = 1; G >= 10; G /= 10, j++)
|
|
7918
8005
|
;
|
|
7919
8006
|
F != j && (D.e++, ue[0] == L && (ue[0] = 1));
|
|
7920
8007
|
break;
|
|
@@ -7932,43 +8019,43 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7932
8019
|
}
|
|
7933
8020
|
function be(D) {
|
|
7934
8021
|
var M, W = D.e;
|
|
7935
|
-
return W === null ? D.toString() : (M =
|
|
8022
|
+
return W === null ? D.toString() : (M = ne(D.c), M = W <= Oe || W >= Ae ? re(M, W) : ae(M, W, "0"), D.s < 0 ? "-" + M : M);
|
|
7936
8023
|
}
|
|
7937
|
-
return
|
|
8024
|
+
return Q.absoluteValue = Q.abs = function() {
|
|
7938
8025
|
var D = new fe(this);
|
|
7939
8026
|
return D.s < 0 && (D.s = 1), D;
|
|
7940
|
-
},
|
|
7941
|
-
return
|
|
7942
|
-
},
|
|
8027
|
+
}, Q.comparedTo = function(D, M) {
|
|
8028
|
+
return q(this, new fe(D, M));
|
|
8029
|
+
}, Q.decimalPlaces = Q.dp = function(D, M) {
|
|
7943
8030
|
var W, R, I, F = this;
|
|
7944
8031
|
if (D != null)
|
|
7945
|
-
return
|
|
8032
|
+
return Y(D, 0, X), M == null ? M = me : Y(M, 0, 8), Ie(new fe(F), D + F.e + 1, M);
|
|
7946
8033
|
if (!(W = F.c))
|
|
7947
8034
|
return null;
|
|
7948
8035
|
if (R = ((I = W.length - 1) - se(this.e / B)) * B, I = W[I])
|
|
7949
8036
|
for (; I % 10 == 0; I /= 10, R--)
|
|
7950
8037
|
;
|
|
7951
8038
|
return R < 0 && (R = 0), R;
|
|
7952
|
-
},
|
|
7953
|
-
return ie(this, new fe(D, M), de,
|
|
7954
|
-
},
|
|
8039
|
+
}, Q.dividedBy = Q.div = function(D, M) {
|
|
8040
|
+
return ie(this, new fe(D, M), de, me);
|
|
8041
|
+
}, Q.dividedToIntegerBy = Q.idiv = function(D, M) {
|
|
7955
8042
|
return ie(this, new fe(D, M), 0, 1);
|
|
7956
|
-
},
|
|
7957
|
-
var W, R, I, F,
|
|
8043
|
+
}, Q.exponentiatedBy = Q.pow = function(D, M) {
|
|
8044
|
+
var W, R, I, F, G, j, K, Z, z, ue = this;
|
|
7958
8045
|
if (D = new fe(D), D.c && !D.isInteger())
|
|
7959
8046
|
throw Error(C + "Exponent not an integer: " + be(D));
|
|
7960
8047
|
if (M != null && (M = new fe(M)), j = D.e > 14, !ue.c || !ue.c[0] || ue.c[0] == 1 && !ue.e && ue.c.length == 1 || !D.c || !D.c[0])
|
|
7961
|
-
return z = new fe(Math.pow(+be(ue), j ? D.s * (2 -
|
|
8048
|
+
return z = new fe(Math.pow(+be(ue), j ? D.s * (2 - oe(D)) : +be(D))), M ? z.mod(M) : z;
|
|
7962
8049
|
if (K = D.s < 0, M) {
|
|
7963
8050
|
if (M.c ? !M.c[0] : !M.s)
|
|
7964
8051
|
return new fe(NaN);
|
|
7965
8052
|
R = !K && ue.isInteger() && M.isInteger(), R && (ue = ue.mod(M));
|
|
7966
8053
|
} else {
|
|
7967
8054
|
if (D.e > 9 && (ue.e > 0 || ue.e < -1 || (ue.e == 0 ? ue.c[0] > 1 || j && ue.c[1] >= 24e7 : ue.c[0] < 8e13 || j && ue.c[0] <= 9999975e7)))
|
|
7968
|
-
return F = ue.s < 0 &&
|
|
8055
|
+
return F = ue.s < 0 && oe(D) ? -0 : 0, ue.e > -1 && (F = 1 / F), new fe(K ? 1 / F : F);
|
|
7969
8056
|
Fe && (F = c(Fe / B + 2));
|
|
7970
8057
|
}
|
|
7971
|
-
for (j ? (W = new fe(0.5), K && (D.s = 1), Z =
|
|
8058
|
+
for (j ? (W = new fe(0.5), K && (D.s = 1), Z = oe(D)) : (I = Math.abs(+be(D)), Z = I % 2), z = new fe(pe); ; ) {
|
|
7972
8059
|
if (Z) {
|
|
7973
8060
|
if (z = z.times(ue), !z.c)
|
|
7974
8061
|
break;
|
|
@@ -7979,7 +8066,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7979
8066
|
break;
|
|
7980
8067
|
Z = I % 2;
|
|
7981
8068
|
} else if (D = D.times(W), Ie(D, D.e + 1, 1), D.e > 14)
|
|
7982
|
-
Z =
|
|
8069
|
+
Z = oe(D);
|
|
7983
8070
|
else {
|
|
7984
8071
|
if (I = +be(D), I === 0)
|
|
7985
8072
|
break;
|
|
@@ -7987,46 +8074,46 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7987
8074
|
}
|
|
7988
8075
|
ue = ue.times(ue), F ? ue.c && ue.c.length > F && (ue.c.length = F) : R && (ue = ue.mod(M));
|
|
7989
8076
|
}
|
|
7990
|
-
return R ? z : (K && (z = pe.div(z)), M ? z.mod(M) : F ? Ie(z, Fe,
|
|
7991
|
-
},
|
|
8077
|
+
return R ? z : (K && (z = pe.div(z)), M ? z.mod(M) : F ? Ie(z, Fe, me, G) : z);
|
|
8078
|
+
}, Q.integerValue = function(D) {
|
|
7992
8079
|
var M = new fe(this);
|
|
7993
|
-
return D == null ? D =
|
|
7994
|
-
},
|
|
7995
|
-
return
|
|
7996
|
-
},
|
|
8080
|
+
return D == null ? D = me : Y(D, 0, 8), Ie(M, M.e + 1, D);
|
|
8081
|
+
}, Q.isEqualTo = Q.eq = function(D, M) {
|
|
8082
|
+
return q(this, new fe(D, M)) === 0;
|
|
8083
|
+
}, Q.isFinite = function() {
|
|
7997
8084
|
return !!this.c;
|
|
7998
|
-
},
|
|
7999
|
-
return
|
|
8000
|
-
},
|
|
8001
|
-
return (M =
|
|
8002
|
-
},
|
|
8085
|
+
}, Q.isGreaterThan = Q.gt = function(D, M) {
|
|
8086
|
+
return q(this, new fe(D, M)) > 0;
|
|
8087
|
+
}, Q.isGreaterThanOrEqualTo = Q.gte = function(D, M) {
|
|
8088
|
+
return (M = q(this, new fe(D, M))) === 1 || M === 0;
|
|
8089
|
+
}, Q.isInteger = function() {
|
|
8003
8090
|
return !!this.c && se(this.e / B) > this.c.length - 2;
|
|
8004
|
-
},
|
|
8005
|
-
return
|
|
8006
|
-
},
|
|
8007
|
-
return (M =
|
|
8008
|
-
},
|
|
8091
|
+
}, Q.isLessThan = Q.lt = function(D, M) {
|
|
8092
|
+
return q(this, new fe(D, M)) < 0;
|
|
8093
|
+
}, Q.isLessThanOrEqualTo = Q.lte = function(D, M) {
|
|
8094
|
+
return (M = q(this, new fe(D, M))) === -1 || M === 0;
|
|
8095
|
+
}, Q.isNaN = function() {
|
|
8009
8096
|
return !this.s;
|
|
8010
|
-
},
|
|
8097
|
+
}, Q.isNegative = function() {
|
|
8011
8098
|
return this.s < 0;
|
|
8012
|
-
},
|
|
8099
|
+
}, Q.isPositive = function() {
|
|
8013
8100
|
return this.s > 0;
|
|
8014
|
-
},
|
|
8101
|
+
}, Q.isZero = function() {
|
|
8015
8102
|
return !!this.c && this.c[0] == 0;
|
|
8016
|
-
},
|
|
8017
|
-
var W, R, I, F,
|
|
8103
|
+
}, Q.minus = function(D, M) {
|
|
8104
|
+
var W, R, I, F, G = this, j = G.s;
|
|
8018
8105
|
if (D = new fe(D, M), M = D.s, !j || !M)
|
|
8019
8106
|
return new fe(NaN);
|
|
8020
8107
|
if (j != M)
|
|
8021
|
-
return D.s = -M,
|
|
8022
|
-
var K =
|
|
8108
|
+
return D.s = -M, G.plus(D);
|
|
8109
|
+
var K = G.e / B, Z = D.e / B, z = G.c, ue = D.c;
|
|
8023
8110
|
if (!K || !Z) {
|
|
8024
8111
|
if (!z || !ue)
|
|
8025
|
-
return z ? (D.s = -M, D) : new fe(ue ?
|
|
8112
|
+
return z ? (D.s = -M, D) : new fe(ue ? G : NaN);
|
|
8026
8113
|
if (!z[0] || !ue[0])
|
|
8027
|
-
return ue[0] ? (D.s = -M, D) : new fe(z[0] ?
|
|
8114
|
+
return ue[0] ? (D.s = -M, D) : new fe(z[0] ? G : (
|
|
8028
8115
|
// IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity
|
|
8029
|
-
|
|
8116
|
+
me == 3 ? -0 : 0
|
|
8030
8117
|
));
|
|
8031
8118
|
}
|
|
8032
8119
|
if (K = se(K), Z = se(Z), z = z.slice(), j = K - Z) {
|
|
@@ -8052,50 +8139,50 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
8052
8139
|
}
|
|
8053
8140
|
for (; z[0] == 0; z.splice(0, 1), --Z)
|
|
8054
8141
|
;
|
|
8055
|
-
return z[0] ? De(D, z, Z) : (D.s =
|
|
8056
|
-
},
|
|
8142
|
+
return z[0] ? De(D, z, Z) : (D.s = me == 3 ? -1 : 1, D.c = [D.e = 0], D);
|
|
8143
|
+
}, Q.modulo = Q.mod = function(D, M) {
|
|
8057
8144
|
var W, R, I = this;
|
|
8058
|
-
return D = new fe(D, M), !I.c || !D.s || D.c && !D.c[0] ? new fe(NaN) : !D.c || I.c && !I.c[0] ? new fe(I) : (
|
|
8059
|
-
},
|
|
8060
|
-
var W, R, I, F,
|
|
8061
|
-
if (!le || !
|
|
8062
|
-
return !ee.s || !D.s || le && !le[0] && !
|
|
8063
|
-
for (R = se(ee.e / B) + se(D.e / B), D.s *= ee.s, K = le.length, ue =
|
|
8145
|
+
return D = new fe(D, M), !I.c || !D.s || D.c && !D.c[0] ? new fe(NaN) : !D.c || I.c && !I.c[0] ? new fe(I) : (Te == 9 ? (R = D.s, D.s = 1, W = ie(I, D, 0, 3), D.s = R, W.s *= R) : W = ie(I, D, 0, Te), D = I.minus(W.times(D)), !D.c[0] && Te == 1 && (D.s = I.s), D);
|
|
8146
|
+
}, Q.multipliedBy = Q.times = function(D, M) {
|
|
8147
|
+
var W, R, I, F, G, j, K, Z, z, ue, ge, _e, ye, Se, Ne, ee = this, le = ee.c, ve = (D = new fe(D, M)).c;
|
|
8148
|
+
if (!le || !ve || !le[0] || !ve[0])
|
|
8149
|
+
return !ee.s || !D.s || le && !le[0] && !ve || ve && !ve[0] && !le ? D.c = D.e = D.s = null : (D.s *= ee.s, !le || !ve ? D.c = D.e = null : (D.c = [0], D.e = 0)), D;
|
|
8150
|
+
for (R = se(ee.e / B) + se(D.e / B), D.s *= ee.s, K = le.length, ue = ve.length, K < ue && (ye = le, le = ve, ve = ye, I = K, K = ue, ue = I), I = K + ue, ye = []; I--; ye.push(0))
|
|
8064
8151
|
;
|
|
8065
8152
|
for (Se = L, Ne = V, I = ue; --I >= 0; ) {
|
|
8066
|
-
for (W = 0,
|
|
8067
|
-
Z = le[--
|
|
8153
|
+
for (W = 0, ge = ve[I] % Ne, _e = ve[I] / Ne | 0, G = K, F = I + G; F > I; )
|
|
8154
|
+
Z = le[--G] % Ne, z = le[G] / Ne | 0, j = _e * Z + z * ge, Z = ge * Z + j % Ne * Ne + ye[F] + W, W = (Z / Se | 0) + (j / Ne | 0) + _e * z, ye[F--] = Z % Se;
|
|
8068
8155
|
ye[F] = W;
|
|
8069
8156
|
}
|
|
8070
8157
|
return W ? ++R : ye.splice(0, 1), De(D, ye, R);
|
|
8071
|
-
},
|
|
8158
|
+
}, Q.negated = function() {
|
|
8072
8159
|
var D = new fe(this);
|
|
8073
8160
|
return D.s = -D.s || null, D;
|
|
8074
|
-
},
|
|
8161
|
+
}, Q.plus = function(D, M) {
|
|
8075
8162
|
var W, R = this, I = R.s;
|
|
8076
8163
|
if (D = new fe(D, M), M = D.s, !I || !M)
|
|
8077
8164
|
return new fe(NaN);
|
|
8078
8165
|
if (I != M)
|
|
8079
8166
|
return D.s = -M, R.minus(D);
|
|
8080
|
-
var F = R.e / B,
|
|
8081
|
-
if (!F || !
|
|
8167
|
+
var F = R.e / B, G = D.e / B, j = R.c, K = D.c;
|
|
8168
|
+
if (!F || !G) {
|
|
8082
8169
|
if (!j || !K)
|
|
8083
8170
|
return new fe(I / 0);
|
|
8084
8171
|
if (!j[0] || !K[0])
|
|
8085
8172
|
return K[0] ? D : new fe(j[0] ? R : I * 0);
|
|
8086
8173
|
}
|
|
8087
|
-
if (F = se(F),
|
|
8088
|
-
for (I > 0 ? (
|
|
8174
|
+
if (F = se(F), G = se(G), j = j.slice(), I = F - G) {
|
|
8175
|
+
for (I > 0 ? (G = F, W = K) : (I = -I, W = j), W.reverse(); I--; W.push(0))
|
|
8089
8176
|
;
|
|
8090
8177
|
W.reverse();
|
|
8091
8178
|
}
|
|
8092
8179
|
for (I = j.length, M = K.length, I - M < 0 && (W = K, K = j, j = W, M = I), I = 0; M; )
|
|
8093
8180
|
I = (j[--M] = j[M] + K[M] + I) / L | 0, j[M] = L === j[M] ? 0 : j[M] % L;
|
|
8094
|
-
return I && (j = [I].concat(j), ++
|
|
8095
|
-
},
|
|
8181
|
+
return I && (j = [I].concat(j), ++G), De(D, j, G);
|
|
8182
|
+
}, Q.precision = Q.sd = function(D, M) {
|
|
8096
8183
|
var W, R, I, F = this;
|
|
8097
8184
|
if (D != null && D !== !!D)
|
|
8098
|
-
return
|
|
8185
|
+
return Y(D, 1, X), M == null ? M = me : Y(M, 0, 8), Ie(new fe(F), D, M);
|
|
8099
8186
|
if (!(W = F.c))
|
|
8100
8187
|
return null;
|
|
8101
8188
|
if (I = W.length - 1, R = I * B + 1, I = W[I]) {
|
|
@@ -8105,15 +8192,15 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
8105
8192
|
;
|
|
8106
8193
|
}
|
|
8107
8194
|
return D && F.e + 1 > R && (R = F.e + 1), R;
|
|
8108
|
-
},
|
|
8109
|
-
return
|
|
8110
|
-
},
|
|
8111
|
-
var D, M, W, R, I, F = this,
|
|
8112
|
-
if (j !== 1 || !
|
|
8113
|
-
return new fe(!j || j < 0 && (!
|
|
8114
|
-
if (j = Math.sqrt(+be(F)), j == 0 || j == 1 / 0 ? (M =
|
|
8195
|
+
}, Q.shiftedBy = function(D) {
|
|
8196
|
+
return Y(D, -J, J), this.times("1e" + D);
|
|
8197
|
+
}, Q.squareRoot = Q.sqrt = function() {
|
|
8198
|
+
var D, M, W, R, I, F = this, G = F.c, j = F.s, K = F.e, Z = de + 4, z = new fe("0.5");
|
|
8199
|
+
if (j !== 1 || !G || !G[0])
|
|
8200
|
+
return new fe(!j || j < 0 && (!G || G[0]) ? NaN : G ? F : 1 / 0);
|
|
8201
|
+
if (j = Math.sqrt(+be(F)), j == 0 || j == 1 / 0 ? (M = ne(G), (M.length + K) % 2 == 0 && (M += "0"), j = Math.sqrt(+M), K = se((K + 1) / 2) - (K < 0 || K % 2), j == 1 / 0 ? M = "5e" + K : (M = j.toExponential(), M = M.slice(0, M.indexOf("e") + 1) + K), W = new fe(M)) : W = new fe(j + ""), W.c[0]) {
|
|
8115
8202
|
for (K = W.e, j = K + Z, j < 3 && (j = 0); ; )
|
|
8116
|
-
if (I = W, W = z.times(I.plus(ie(F, I, Z, 1))),
|
|
8203
|
+
if (I = W, W = z.times(I.plus(ie(F, I, Z, 1))), ne(I.c).slice(0, j) === (M = ne(W.c)).slice(0, j))
|
|
8117
8204
|
if (W.e < K && --j, M = M.slice(j - 3, j + 1), M == "9999" || !R && M == "4999") {
|
|
8118
8205
|
if (!R && (Ie(I, I.e + de + 2, 0), I.times(I).eq(F))) {
|
|
8119
8206
|
W = I;
|
|
@@ -8125,23 +8212,23 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
8125
8212
|
break;
|
|
8126
8213
|
}
|
|
8127
8214
|
}
|
|
8128
|
-
return Ie(W, W.e + de + 1,
|
|
8129
|
-
},
|
|
8130
|
-
return D != null && (
|
|
8131
|
-
},
|
|
8132
|
-
return D != null && (
|
|
8133
|
-
},
|
|
8215
|
+
return Ie(W, W.e + de + 1, me, D);
|
|
8216
|
+
}, Q.toExponential = function(D, M) {
|
|
8217
|
+
return D != null && (Y(D, 0, X), D++), Pe(this, D, M, 1);
|
|
8218
|
+
}, Q.toFixed = function(D, M) {
|
|
8219
|
+
return D != null && (Y(D, 0, X), D = D + this.e + 1), Pe(this, D, M);
|
|
8220
|
+
}, Q.toFormat = function(D, M, W) {
|
|
8134
8221
|
var R, I = this;
|
|
8135
8222
|
if (W == null)
|
|
8136
|
-
D != null && M && typeof M == "object" ? (W = M, M = null) : D && typeof D == "object" ? (W = D, D = M = null) : W =
|
|
8223
|
+
D != null && M && typeof M == "object" ? (W = M, M = null) : D && typeof D == "object" ? (W = D, D = M = null) : W = ke;
|
|
8137
8224
|
else if (typeof W != "object")
|
|
8138
8225
|
throw Error(C + "Argument not an object: " + W);
|
|
8139
8226
|
if (R = I.toFixed(D, M), I.c) {
|
|
8140
|
-
var F,
|
|
8227
|
+
var F, G = R.split("."), j = +W.groupSize, K = +W.secondaryGroupSize, Z = W.groupSeparator || "", z = G[0], ue = G[1], ge = I.s < 0, _e = ge ? z.slice(1) : z, ye = _e.length;
|
|
8141
8228
|
if (K && (F = j, j = K, K = F, ye -= F), j > 0 && ye > 0) {
|
|
8142
8229
|
for (F = ye % j || j, z = _e.substr(0, F); F < ye; F += j)
|
|
8143
8230
|
z += Z + _e.substr(F, j);
|
|
8144
|
-
K > 0 && (z += Z + _e.slice(F)),
|
|
8231
|
+
K > 0 && (z += Z + _e.slice(F)), ge && (z = "-" + z);
|
|
8145
8232
|
}
|
|
8146
8233
|
R = ue ? z + (W.decimalSeparator || "") + ((K = +W.fractionGroupSize) ? ue.replace(
|
|
8147
8234
|
new RegExp("\\d{" + K + "}\\B", "g"),
|
|
@@ -8149,83 +8236,83 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
8149
8236
|
) : ue) : z;
|
|
8150
8237
|
}
|
|
8151
8238
|
return (W.prefix || "") + R + (W.suffix || "");
|
|
8152
|
-
},
|
|
8153
|
-
var M, W, R, I, F,
|
|
8239
|
+
}, Q.toFraction = function(D) {
|
|
8240
|
+
var M, W, R, I, F, G, j, K, Z, z, ue, ge, _e = this, ye = _e.c;
|
|
8154
8241
|
if (D != null && (j = new fe(D), !j.isInteger() && (j.c || j.s !== 1) || j.lt(pe)))
|
|
8155
8242
|
throw Error(C + "Argument " + (j.isInteger() ? "out of range: " : "not an integer: ") + be(j));
|
|
8156
8243
|
if (!ye)
|
|
8157
8244
|
return new fe(_e);
|
|
8158
|
-
for (M = new fe(pe), Z = W = new fe(pe), R = K = new fe(pe),
|
|
8245
|
+
for (M = new fe(pe), Z = W = new fe(pe), R = K = new fe(pe), ge = ne(ye), F = M.e = ge.length - _e.e - 1, M.c[0] = U[(G = F % B) < 0 ? B + G : G], D = !D || j.comparedTo(M) > 0 ? F > 0 ? M : Z : j, G = Ee, Ee = 1 / 0, j = new fe(ge), K.c[0] = 0; z = ie(j, M, 0, 1), I = W.plus(z.times(R)), I.comparedTo(D) != 1; )
|
|
8159
8246
|
W = R, R = I, Z = K.plus(z.times(I = Z)), K = I, M = j.minus(z.times(I = M)), j = I;
|
|
8160
|
-
return I = ie(D.minus(W), R, 0, 1), K = K.plus(I.times(Z)), W = W.plus(I.times(R)), K.s = Z.s = _e.s, F = F * 2, ue = ie(Z, R, F,
|
|
8161
|
-
ie(K, W, F,
|
|
8162
|
-
) < 1 ? [Z, R] : [K, W], Ee =
|
|
8163
|
-
},
|
|
8247
|
+
return I = ie(D.minus(W), R, 0, 1), K = K.plus(I.times(Z)), W = W.plus(I.times(R)), K.s = Z.s = _e.s, F = F * 2, ue = ie(Z, R, F, me).minus(_e).abs().comparedTo(
|
|
8248
|
+
ie(K, W, F, me).minus(_e).abs()
|
|
8249
|
+
) < 1 ? [Z, R] : [K, W], Ee = G, ue;
|
|
8250
|
+
}, Q.toNumber = function() {
|
|
8164
8251
|
return +be(this);
|
|
8165
|
-
},
|
|
8166
|
-
return D != null &&
|
|
8167
|
-
},
|
|
8252
|
+
}, Q.toPrecision = function(D, M) {
|
|
8253
|
+
return D != null && Y(D, 1, X), Pe(this, D, M, 2);
|
|
8254
|
+
}, Q.toString = function(D) {
|
|
8168
8255
|
var M, W = this, R = W.s, I = W.e;
|
|
8169
|
-
return I === null ? R ? (M = "Infinity", R < 0 && (M = "-" + M)) : M = "NaN" : (D == null ? M = I <=
|
|
8170
|
-
},
|
|
8256
|
+
return I === null ? R ? (M = "Infinity", R < 0 && (M = "-" + M)) : M = "NaN" : (D == null ? M = I <= Oe || I >= Ae ? re(ne(W.c), I) : ae(ne(W.c), I, "0") : D === 10 && Le ? (W = Ie(new fe(W), de + I + 1, me), M = ae(ne(W.c), W.e, "0")) : (Y(D, 2, he.length, "Base"), M = H(ae(ne(W.c), I, "0"), 10, D, R, !0)), R < 0 && W.c[0] && (M = "-" + M)), M;
|
|
8257
|
+
}, Q.valueOf = Q.toJSON = function() {
|
|
8171
8258
|
return be(this);
|
|
8172
|
-
},
|
|
8259
|
+
}, Q._isBigNumber = !0, te != null && fe.set(te), fe;
|
|
8173
8260
|
}
|
|
8174
|
-
function se(
|
|
8175
|
-
var ie =
|
|
8176
|
-
return
|
|
8261
|
+
function se(te) {
|
|
8262
|
+
var ie = te | 0;
|
|
8263
|
+
return te > 0 || te === ie ? ie : ie - 1;
|
|
8177
8264
|
}
|
|
8178
|
-
function
|
|
8179
|
-
for (var ie,
|
|
8180
|
-
for (ie =
|
|
8265
|
+
function ne(te) {
|
|
8266
|
+
for (var ie, H, $ = 1, Q = te.length, pe = te[0] + ""; $ < Q; ) {
|
|
8267
|
+
for (ie = te[$++] + "", H = B - ie.length; H--; ie = "0" + ie)
|
|
8181
8268
|
;
|
|
8182
8269
|
pe += ie;
|
|
8183
8270
|
}
|
|
8184
|
-
for (
|
|
8271
|
+
for (Q = pe.length; pe.charCodeAt(--Q) === 48; )
|
|
8185
8272
|
;
|
|
8186
|
-
return pe.slice(0,
|
|
8273
|
+
return pe.slice(0, Q + 1 || 1);
|
|
8187
8274
|
}
|
|
8188
|
-
function
|
|
8189
|
-
var
|
|
8190
|
-
if (!de || !
|
|
8275
|
+
function q(te, ie) {
|
|
8276
|
+
var H, $, Q = te.c, pe = ie.c, de = te.s, me = ie.s, Oe = te.e, Ae = ie.e;
|
|
8277
|
+
if (!de || !me)
|
|
8191
8278
|
return null;
|
|
8192
|
-
if (
|
|
8193
|
-
return
|
|
8194
|
-
if (de !=
|
|
8279
|
+
if (H = Q && !Q[0], $ = pe && !pe[0], H || $)
|
|
8280
|
+
return H ? $ ? 0 : -me : de;
|
|
8281
|
+
if (de != me)
|
|
8195
8282
|
return de;
|
|
8196
|
-
if (
|
|
8197
|
-
return $ ? 0 : !
|
|
8283
|
+
if (H = de < 0, $ = Oe == Ae, !Q || !pe)
|
|
8284
|
+
return $ ? 0 : !Q ^ H ? 1 : -1;
|
|
8198
8285
|
if (!$)
|
|
8199
|
-
return
|
|
8200
|
-
for (
|
|
8201
|
-
if (
|
|
8202
|
-
return
|
|
8203
|
-
return
|
|
8286
|
+
return Oe > Ae ^ H ? 1 : -1;
|
|
8287
|
+
for (me = (Oe = Q.length) < (Ae = pe.length) ? Oe : Ae, de = 0; de < me; de++)
|
|
8288
|
+
if (Q[de] != pe[de])
|
|
8289
|
+
return Q[de] > pe[de] ^ H ? 1 : -1;
|
|
8290
|
+
return Oe == Ae ? 0 : Oe > Ae ^ H ? 1 : -1;
|
|
8204
8291
|
}
|
|
8205
|
-
function
|
|
8206
|
-
if (
|
|
8207
|
-
throw Error(C + ($ || "Argument") + (typeof
|
|
8292
|
+
function Y(te, ie, H, $) {
|
|
8293
|
+
if (te < ie || te > H || te !== l(te))
|
|
8294
|
+
throw Error(C + ($ || "Argument") + (typeof te == "number" ? te < ie || te > H ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(te));
|
|
8208
8295
|
}
|
|
8209
|
-
function
|
|
8210
|
-
var ie =
|
|
8211
|
-
return se(
|
|
8296
|
+
function oe(te) {
|
|
8297
|
+
var ie = te.c.length - 1;
|
|
8298
|
+
return se(te.e / B) == ie && te.c[ie] % 2 != 0;
|
|
8212
8299
|
}
|
|
8213
|
-
function te
|
|
8214
|
-
return (
|
|
8300
|
+
function re(te, ie) {
|
|
8301
|
+
return (te.length > 1 ? te.charAt(0) + "." + te.slice(1) : te) + (ie < 0 ? "e" : "e+") + ie;
|
|
8215
8302
|
}
|
|
8216
|
-
function
|
|
8217
|
-
var $,
|
|
8303
|
+
function ae(te, ie, H) {
|
|
8304
|
+
var $, Q;
|
|
8218
8305
|
if (ie < 0) {
|
|
8219
|
-
for (
|
|
8306
|
+
for (Q = H + "."; ++ie; Q += H)
|
|
8220
8307
|
;
|
|
8221
|
-
|
|
8222
|
-
} else if ($ =
|
|
8223
|
-
for (
|
|
8308
|
+
te = Q + te;
|
|
8309
|
+
} else if ($ = te.length, ++ie > $) {
|
|
8310
|
+
for (Q = H, ie -= $; --ie; Q += H)
|
|
8224
8311
|
;
|
|
8225
|
-
|
|
8312
|
+
te += Q;
|
|
8226
8313
|
} else
|
|
8227
|
-
ie < $ && (
|
|
8228
|
-
return
|
|
8314
|
+
ie < $ && (te = te.slice(0, ie) + "." + te.slice(ie));
|
|
8315
|
+
return te;
|
|
8229
8316
|
}
|
|
8230
8317
|
n = ce(), n.default = n.BigNumber = n, e.exports ? e.exports = n : (t || (t = typeof self < "u" && self ? self : window), t.BigNumber = n);
|
|
8231
8318
|
})(commonjsGlobal);
|
|
@@ -8244,58 +8331,58 @@ var bignumberExports = bignumber.exports;
|
|
|
8244
8331
|
'"': '\\"',
|
|
8245
8332
|
"\\": "\\\\"
|
|
8246
8333
|
}, A;
|
|
8247
|
-
function L(
|
|
8248
|
-
return s.lastIndex = 0, s.test(
|
|
8334
|
+
function L(J) {
|
|
8335
|
+
return s.lastIndex = 0, s.test(J) ? '"' + J.replace(s, function(U) {
|
|
8249
8336
|
var V = C[U];
|
|
8250
8337
|
return typeof V == "string" ? V : "\\u" + ("0000" + U.charCodeAt(0).toString(16)).slice(-4);
|
|
8251
|
-
}) + '"' : '"' +
|
|
8338
|
+
}) + '"' : '"' + J + '"';
|
|
8252
8339
|
}
|
|
8253
|
-
function B(
|
|
8254
|
-
var V,
|
|
8255
|
-
switch (
|
|
8340
|
+
function B(J, U) {
|
|
8341
|
+
var V, X, ce, se, ne = c, q, Y = U[J], oe = Y != null && (Y instanceof t || t.isBigNumber(Y));
|
|
8342
|
+
switch (Y && typeof Y == "object" && typeof Y.toJSON == "function" && (Y = Y.toJSON(J)), typeof A == "function" && (Y = A.call(U, J, Y)), typeof Y) {
|
|
8256
8343
|
case "string":
|
|
8257
|
-
return
|
|
8344
|
+
return oe ? Y : L(Y);
|
|
8258
8345
|
case "number":
|
|
8259
|
-
return isFinite(
|
|
8346
|
+
return isFinite(Y) ? String(Y) : "null";
|
|
8260
8347
|
case "boolean":
|
|
8261
8348
|
case "null":
|
|
8262
8349
|
case "bigint":
|
|
8263
|
-
return String(
|
|
8350
|
+
return String(Y);
|
|
8264
8351
|
case "object":
|
|
8265
|
-
if (!
|
|
8352
|
+
if (!Y)
|
|
8266
8353
|
return "null";
|
|
8267
|
-
if (c += l,
|
|
8268
|
-
for (se =
|
|
8269
|
-
|
|
8270
|
-
return ce =
|
|
8271
|
-
` + c +
|
|
8354
|
+
if (c += l, q = [], Object.prototype.toString.apply(Y) === "[object Array]") {
|
|
8355
|
+
for (se = Y.length, V = 0; V < se; V += 1)
|
|
8356
|
+
q[V] = B(V, Y) || "null";
|
|
8357
|
+
return ce = q.length === 0 ? "[]" : c ? `[
|
|
8358
|
+
` + c + q.join(`,
|
|
8272
8359
|
` + c) + `
|
|
8273
|
-
` +
|
|
8360
|
+
` + ne + "]" : "[" + q.join(",") + "]", c = ne, ce;
|
|
8274
8361
|
}
|
|
8275
8362
|
if (A && typeof A == "object")
|
|
8276
8363
|
for (se = A.length, V = 0; V < se; V += 1)
|
|
8277
|
-
typeof A[V] == "string" && (
|
|
8364
|
+
typeof A[V] == "string" && (X = A[V], ce = B(X, Y), ce && q.push(L(X) + (c ? ": " : ":") + ce));
|
|
8278
8365
|
else
|
|
8279
|
-
Object.keys(
|
|
8280
|
-
var
|
|
8281
|
-
|
|
8366
|
+
Object.keys(Y).forEach(function(re) {
|
|
8367
|
+
var ae = B(re, Y);
|
|
8368
|
+
ae && q.push(L(re) + (c ? ": " : ":") + ae);
|
|
8282
8369
|
});
|
|
8283
|
-
return ce =
|
|
8284
|
-
` + c +
|
|
8370
|
+
return ce = q.length === 0 ? "{}" : c ? `{
|
|
8371
|
+
` + c + q.join(`,
|
|
8285
8372
|
` + c) + `
|
|
8286
|
-
` +
|
|
8373
|
+
` + ne + "}" : "{" + q.join(",") + "}", c = ne, ce;
|
|
8287
8374
|
}
|
|
8288
8375
|
}
|
|
8289
|
-
typeof n.stringify != "function" && (n.stringify = function(
|
|
8290
|
-
var
|
|
8376
|
+
typeof n.stringify != "function" && (n.stringify = function(J, U, V) {
|
|
8377
|
+
var X;
|
|
8291
8378
|
if (c = "", l = "", typeof V == "number")
|
|
8292
|
-
for (
|
|
8379
|
+
for (X = 0; X < V; X += 1)
|
|
8293
8380
|
l += " ";
|
|
8294
8381
|
else
|
|
8295
8382
|
typeof V == "string" && (l = V);
|
|
8296
8383
|
if (A = U, U && typeof U != "function" && (typeof U != "object" || typeof U.length != "number"))
|
|
8297
8384
|
throw new Error("JSON.stringify");
|
|
8298
|
-
return B("", { "":
|
|
8385
|
+
return B("", { "": J });
|
|
8299
8386
|
});
|
|
8300
8387
|
})();
|
|
8301
8388
|
})(stringify);
|
|
@@ -8350,39 +8437,39 @@ var json_parse$1 = function(e) {
|
|
|
8350
8437
|
}, A = function(se) {
|
|
8351
8438
|
return se && se !== s && C("Expected '" + se + "' instead of '" + s + "'"), s = l.charAt(n), n += 1, s;
|
|
8352
8439
|
}, L = function() {
|
|
8353
|
-
var se,
|
|
8354
|
-
for (s === "-" && (
|
|
8355
|
-
|
|
8440
|
+
var se, ne = "";
|
|
8441
|
+
for (s === "-" && (ne = "-", A("-")); s >= "0" && s <= "9"; )
|
|
8442
|
+
ne += s, A();
|
|
8356
8443
|
if (s === ".")
|
|
8357
|
-
for (
|
|
8358
|
-
|
|
8444
|
+
for (ne += "."; A() && s >= "0" && s <= "9"; )
|
|
8445
|
+
ne += s;
|
|
8359
8446
|
if (s === "e" || s === "E")
|
|
8360
|
-
for (
|
|
8361
|
-
|
|
8362
|
-
if (se = +
|
|
8447
|
+
for (ne += s, A(), (s === "-" || s === "+") && (ne += s, A()); s >= "0" && s <= "9"; )
|
|
8448
|
+
ne += s, A();
|
|
8449
|
+
if (se = +ne, !isFinite(se))
|
|
8363
8450
|
C("Bad number");
|
|
8364
8451
|
else
|
|
8365
|
-
return BigNumber == null && (BigNumber = bignumberExports),
|
|
8452
|
+
return BigNumber == null && (BigNumber = bignumberExports), ne.length > 15 ? t.storeAsString ? ne : t.useNativeBigInt ? BigInt(ne) : new BigNumber(ne) : t.alwaysParseAsBig ? t.useNativeBigInt ? BigInt(se) : new BigNumber(se) : se;
|
|
8366
8453
|
}, B = function() {
|
|
8367
|
-
var se,
|
|
8454
|
+
var se, ne, q = "", Y;
|
|
8368
8455
|
if (s === '"')
|
|
8369
|
-
for (var
|
|
8456
|
+
for (var oe = n; A(); ) {
|
|
8370
8457
|
if (s === '"')
|
|
8371
|
-
return n - 1 >
|
|
8458
|
+
return n - 1 > oe && (q += l.substring(oe, n - 1)), A(), q;
|
|
8372
8459
|
if (s === "\\") {
|
|
8373
|
-
if (n - 1 >
|
|
8374
|
-
for (
|
|
8375
|
-
|
|
8376
|
-
|
|
8460
|
+
if (n - 1 > oe && (q += l.substring(oe, n - 1)), A(), s === "u") {
|
|
8461
|
+
for (Y = 0, ne = 0; ne < 4 && (se = parseInt(A(), 16), !!isFinite(se)); ne += 1)
|
|
8462
|
+
Y = Y * 16 + se;
|
|
8463
|
+
q += String.fromCharCode(Y);
|
|
8377
8464
|
} else if (typeof c[s] == "string")
|
|
8378
|
-
|
|
8465
|
+
q += c[s];
|
|
8379
8466
|
else
|
|
8380
8467
|
break;
|
|
8381
|
-
|
|
8468
|
+
oe = n;
|
|
8382
8469
|
}
|
|
8383
8470
|
}
|
|
8384
8471
|
C("Bad string");
|
|
8385
|
-
},
|
|
8472
|
+
}, J = function() {
|
|
8386
8473
|
for (; s && s <= " "; )
|
|
8387
8474
|
A();
|
|
8388
8475
|
}, U = function() {
|
|
@@ -8395,37 +8482,37 @@ var json_parse$1 = function(e) {
|
|
|
8395
8482
|
return A("n"), A("u"), A("l"), A("l"), null;
|
|
8396
8483
|
}
|
|
8397
8484
|
C("Unexpected '" + s + "'");
|
|
8398
|
-
}, V,
|
|
8485
|
+
}, V, X = function() {
|
|
8399
8486
|
var se = [];
|
|
8400
8487
|
if (s === "[") {
|
|
8401
|
-
if (A("["),
|
|
8488
|
+
if (A("["), J(), s === "]")
|
|
8402
8489
|
return A("]"), se;
|
|
8403
8490
|
for (; s; ) {
|
|
8404
|
-
if (se.push(V()),
|
|
8491
|
+
if (se.push(V()), J(), s === "]")
|
|
8405
8492
|
return A("]"), se;
|
|
8406
|
-
A(","),
|
|
8493
|
+
A(","), J();
|
|
8407
8494
|
}
|
|
8408
8495
|
}
|
|
8409
8496
|
C("Bad array");
|
|
8410
8497
|
}, ce = function() {
|
|
8411
|
-
var se,
|
|
8498
|
+
var se, ne = /* @__PURE__ */ Object.create(null);
|
|
8412
8499
|
if (s === "{") {
|
|
8413
|
-
if (A("{"),
|
|
8414
|
-
return A("}"),
|
|
8500
|
+
if (A("{"), J(), s === "}")
|
|
8501
|
+
return A("}"), ne;
|
|
8415
8502
|
for (; s; ) {
|
|
8416
|
-
if (se = B(),
|
|
8417
|
-
return A("}"),
|
|
8418
|
-
A(","),
|
|
8503
|
+
if (se = B(), J(), A(":"), t.strict === !0 && Object.hasOwnProperty.call(ne, se) && C('Duplicate key "' + se + '"'), suspectProtoRx.test(se) === !0 ? t.protoAction === "error" ? C("Object contains forbidden prototype property") : t.protoAction === "ignore" ? V() : ne[se] = V() : suspectConstructorRx.test(se) === !0 ? t.constructorAction === "error" ? C("Object contains forbidden constructor property") : t.constructorAction === "ignore" ? V() : ne[se] = V() : ne[se] = V(), J(), s === "}")
|
|
8504
|
+
return A("}"), ne;
|
|
8505
|
+
A(","), J();
|
|
8419
8506
|
}
|
|
8420
8507
|
}
|
|
8421
8508
|
C("Bad object");
|
|
8422
8509
|
};
|
|
8423
8510
|
return V = function() {
|
|
8424
|
-
switch (
|
|
8511
|
+
switch (J(), s) {
|
|
8425
8512
|
case "{":
|
|
8426
8513
|
return ce();
|
|
8427
8514
|
case "[":
|
|
8428
|
-
return
|
|
8515
|
+
return X();
|
|
8429
8516
|
case '"':
|
|
8430
8517
|
return B();
|
|
8431
8518
|
case "-":
|
|
@@ -8433,14 +8520,14 @@ var json_parse$1 = function(e) {
|
|
|
8433
8520
|
default:
|
|
8434
8521
|
return s >= "0" && s <= "9" ? L() : U();
|
|
8435
8522
|
}
|
|
8436
|
-
}, function(se,
|
|
8437
|
-
var
|
|
8438
|
-
return l = se + "", n = 0, s = " ",
|
|
8439
|
-
var
|
|
8440
|
-
return
|
|
8441
|
-
|
|
8442
|
-
}),
|
|
8443
|
-
}({ "":
|
|
8523
|
+
}, function(se, ne) {
|
|
8524
|
+
var q;
|
|
8525
|
+
return l = se + "", n = 0, s = " ", q = V(), J(), s && C("Syntax error"), typeof ne == "function" ? function Y(oe, re) {
|
|
8526
|
+
var ae, te = oe[re];
|
|
8527
|
+
return te && typeof te == "object" && Object.keys(te).forEach(function(ie) {
|
|
8528
|
+
ae = Y(te, ie), ae !== void 0 ? te[ie] = ae : delete te[ie];
|
|
8529
|
+
}), ne.call(oe, re, te);
|
|
8530
|
+
}({ "": q }, "") : q;
|
|
8444
8531
|
};
|
|
8445
8532
|
}, parse = json_parse$1, json_stringify = stringifyExports.stringify, json_parse = parse;
|
|
8446
8533
|
jsonBigint.exports = function(e) {
|
|
@@ -8536,30 +8623,30 @@ var hoconParser = { exports: {} };
|
|
|
8536
8623
|
var index = 0, result = readHocon(text);
|
|
8537
8624
|
return handleSubtitutions(result);
|
|
8538
8625
|
function readHocon(e) {
|
|
8539
|
-
for (var t = !1, n = "", s = !1, c = !1, l = !1, C = !1, A = !1, L = !1, B = !1,
|
|
8626
|
+
for (var t = !1, n = "", s = !1, c = !1, l = !1, C = !1, A = !1, L = !1, B = !1, J = !1, U = "", V = "", X = {}; index < e.length; ) {
|
|
8540
8627
|
var ce = e[index];
|
|
8541
|
-
if (index++, L && !
|
|
8628
|
+
if (index++, L && !J) {
|
|
8542
8629
|
(ce === "\r" || ce === `
|
|
8543
8630
|
`) && (L = !1);
|
|
8544
8631
|
continue;
|
|
8545
8632
|
}
|
|
8546
8633
|
if (!s && ce === '"' && index + 1 < e.length && e[index] === '"' && e[index + 1] === '"') {
|
|
8547
|
-
if (
|
|
8548
|
-
|
|
8634
|
+
if (J) {
|
|
8635
|
+
ne(), J = !1, t = !1, C = !1, index += 2;
|
|
8549
8636
|
continue;
|
|
8550
8637
|
}
|
|
8551
|
-
|
|
8638
|
+
J = !0, t = !0, C = !0, index += 2;
|
|
8552
8639
|
continue;
|
|
8553
8640
|
}
|
|
8554
|
-
if (!s && !
|
|
8641
|
+
if (!s && !J && (ce === "'" || ce === '"')) {
|
|
8555
8642
|
if (t && n === ce) {
|
|
8556
|
-
C ?
|
|
8643
|
+
C ? ne() : C = !0, t = !1;
|
|
8557
8644
|
continue;
|
|
8558
8645
|
}
|
|
8559
8646
|
t = !0, n = ce;
|
|
8560
8647
|
continue;
|
|
8561
8648
|
}
|
|
8562
|
-
if (
|
|
8649
|
+
if (J && se(ce)) {
|
|
8563
8650
|
V += ce;
|
|
8564
8651
|
continue;
|
|
8565
8652
|
}
|
|
@@ -8588,7 +8675,7 @@ var hoconParser = { exports: {} };
|
|
|
8588
8675
|
if (l && C) {
|
|
8589
8676
|
if (V === "")
|
|
8590
8677
|
continue;
|
|
8591
|
-
|
|
8678
|
+
ne();
|
|
8592
8679
|
continue;
|
|
8593
8680
|
}
|
|
8594
8681
|
if (!U)
|
|
@@ -8598,14 +8685,14 @@ var hoconParser = { exports: {} };
|
|
|
8598
8685
|
continue;
|
|
8599
8686
|
}
|
|
8600
8687
|
if (C && V) {
|
|
8601
|
-
|
|
8688
|
+
ne();
|
|
8602
8689
|
continue;
|
|
8603
8690
|
}
|
|
8604
8691
|
continue;
|
|
8605
8692
|
}
|
|
8606
8693
|
case "{": {
|
|
8607
8694
|
if (c || l || U) {
|
|
8608
|
-
index--, U = U.trim(), V = readHocon(e),
|
|
8695
|
+
index--, U = U.trim(), V = readHocon(e), ne();
|
|
8609
8696
|
continue;
|
|
8610
8697
|
}
|
|
8611
8698
|
c = !0;
|
|
@@ -8615,10 +8702,10 @@ var hoconParser = { exports: {} };
|
|
|
8615
8702
|
if (!c)
|
|
8616
8703
|
throw "What";
|
|
8617
8704
|
if (V)
|
|
8618
|
-
|
|
8705
|
+
ne();
|
|
8619
8706
|
else if (U)
|
|
8620
8707
|
return U;
|
|
8621
|
-
return
|
|
8708
|
+
return X;
|
|
8622
8709
|
}
|
|
8623
8710
|
case ":":
|
|
8624
8711
|
case "=": {
|
|
@@ -8628,25 +8715,25 @@ var hoconParser = { exports: {} };
|
|
|
8628
8715
|
continue;
|
|
8629
8716
|
}
|
|
8630
8717
|
case ",": {
|
|
8631
|
-
C && V &&
|
|
8718
|
+
C && V && ne();
|
|
8632
8719
|
continue;
|
|
8633
8720
|
}
|
|
8634
8721
|
case "[": {
|
|
8635
8722
|
if (c || l || U) {
|
|
8636
|
-
index--, V = readHocon(e),
|
|
8723
|
+
index--, V = readHocon(e), ne();
|
|
8637
8724
|
continue;
|
|
8638
8725
|
}
|
|
8639
|
-
C = !0, l = !0,
|
|
8726
|
+
C = !0, l = !0, X = [];
|
|
8640
8727
|
continue;
|
|
8641
8728
|
}
|
|
8642
8729
|
case "]": {
|
|
8643
8730
|
if (!l)
|
|
8644
8731
|
throw "not in an array";
|
|
8645
|
-
return V && (V = V.trim(),
|
|
8732
|
+
return V && (V = V.trim(), ne()), X;
|
|
8646
8733
|
}
|
|
8647
8734
|
case "$": {
|
|
8648
8735
|
if (!V) {
|
|
8649
|
-
V = "${" + readHocon(e) + "}",
|
|
8736
|
+
V = "${" + readHocon(e) + "}", ne();
|
|
8650
8737
|
continue;
|
|
8651
8738
|
}
|
|
8652
8739
|
break;
|
|
@@ -8670,18 +8757,18 @@ var hoconParser = { exports: {} };
|
|
|
8670
8757
|
throw "Expected closing curly bracket";
|
|
8671
8758
|
if (l)
|
|
8672
8759
|
throw "Expected closing square bracket";
|
|
8673
|
-
return C &&
|
|
8674
|
-
function se(
|
|
8675
|
-
return ['"', "\\"].indexOf(
|
|
8760
|
+
return C && ne(), X;
|
|
8761
|
+
function se(q) {
|
|
8762
|
+
return ['"', "\\"].indexOf(q) !== -1;
|
|
8676
8763
|
}
|
|
8677
|
-
function
|
|
8678
|
-
var
|
|
8679
|
-
if (!l &&
|
|
8680
|
-
var
|
|
8681
|
-
te
|
|
8764
|
+
function ne(oe, re) {
|
|
8765
|
+
var oe = oe || U, re = re || X, ae = oe.indexOf(".");
|
|
8766
|
+
if (!l && ae > 0) {
|
|
8767
|
+
var te = oe.substring(0, ae);
|
|
8768
|
+
re[te] = re[te] || {}, ne(oe.substring(ae + 1), re[te]);
|
|
8682
8769
|
return;
|
|
8683
8770
|
}
|
|
8684
|
-
!t && typeof V == "string" && (/^\d+$/.test(V) ? V = parseInt(V) : /^\d+\.\d+$/.test(V) ? V = parseFloat(V) : V === "true" ? V = !0 : V === "false" ? V = !1 : V === "null" && (V = null)), l ?
|
|
8771
|
+
!t && typeof V == "string" && (/^\d+$/.test(V) ? V = parseInt(V) : /^\d+\.\d+$/.test(V) ? V = parseFloat(V) : V === "true" ? V = !0 : V === "false" ? V = !1 : V === "null" && (V = null)), l ? re.push(V) : (typeof re[oe] == "object" && typeof V == "object" ? extend(re[oe], V) : re[oe] = V, C = !1), A = !1, U = "", V = "";
|
|
8685
8772
|
}
|
|
8686
8773
|
}
|
|
8687
8774
|
function handleSubtitutions(mainObj, intermidiateObj, loops) {
|
|
@@ -8720,7 +8807,7 @@ const parseHoconToObject = /* @__PURE__ */ getDefaultExportFromCjs(hoconParserEx
|
|
|
8720
8807
|
if (isEmptyObj(e))
|
|
8721
8808
|
return "{}";
|
|
8722
8809
|
const n = " ".repeat(t), s = " ".repeat(t + 1), c = (A, L) => typeof A == "string" ? `"${A.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\n/g, "\\n")}"` : A == null ? "null" : Array.isArray(A) ? A.length === 0 ? "[]" : `[
|
|
8723
|
-
${A.map((
|
|
8810
|
+
${A.map((J) => `${" ".repeat(L + 1)}${c(J, L + 1)}`).join(`,
|
|
8724
8811
|
`)}
|
|
8725
8812
|
${" ".repeat(L)}]` : typeof A == "object" ? objectToHocon(A, L) : String(A);
|
|
8726
8813
|
return `{
|
|
@@ -8752,6 +8839,7 @@ export {
|
|
|
8752
8839
|
getBridgeNameFromId,
|
|
8753
8840
|
getBridgeTypeFromId,
|
|
8754
8841
|
getKeyPartsFromSQL,
|
|
8842
|
+
getKeywordsFromSQL,
|
|
8755
8843
|
getRuleSelectionAlias,
|
|
8756
8844
|
getTypeAndNameFromKey,
|
|
8757
8845
|
hoconToObject,
|