workflow-editor 0.0.20-up → 0.0.21-up

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.
@@ -1325,7 +1325,7 @@ function createTokenizer(e, t = {}) {
1325
1325
  );
1326
1326
  return k(N), v;
1327
1327
  }
1328
- function D(N, v) {
1328
+ function M(N, v) {
1329
1329
  let F = null;
1330
1330
  switch (N.currentChar()) {
1331
1331
  case "{":
@@ -1389,7 +1389,7 @@ function createTokenizer(e, t = {}) {
1389
1389
  /* TokenChars.LinkedDelimiter */
1390
1390
  );
1391
1391
  default:
1392
- return L(N) ? (A = m(v, 1, w(N)), v.braceNest = 0, v.inLinked = !1, A) : I(N, v) || P(N, v) ? (k(N), O(N, v)) : S(N, v) ? (k(N), m(v, 12, se(N))) : T(N, v) ? (k(N), $ === "{" ? D(N, v) || A : m(v, 11, C(N))) : (F === 8 && d(CompileErrorCodes.INVALID_LINKED_FORMAT, r(), 0), v.braceNest = 0, v.inLinked = !1, B(N, v));
1392
+ return L(N) ? (A = m(v, 1, w(N)), v.braceNest = 0, v.inLinked = !1, A) : I(N, v) || P(N, v) ? (k(N), O(N, v)) : S(N, v) ? (k(N), m(v, 12, se(N))) : T(N, v) ? (k(N), $ === "{" ? M(N, v) || A : m(v, 11, C(N))) : (F === 8 && d(CompileErrorCodes.INVALID_LINKED_FORMAT, r(), 0), v.braceNest = 0, v.inLinked = !1, B(N, v));
1393
1393
  }
1394
1394
  }
1395
1395
  function B(N, v) {
@@ -1398,12 +1398,12 @@ function createTokenizer(e, t = {}) {
1398
1398
  /* TokenTypes.EOF */
1399
1399
  };
1400
1400
  if (v.braceNest > 0)
1401
- return D(N, v) || y(v);
1401
+ return M(N, v) || y(v);
1402
1402
  if (v.inLinked)
1403
1403
  return O(N, v) || y(v);
1404
1404
  switch (N.currentChar()) {
1405
1405
  case "{":
1406
- return D(N, v) || y(v);
1406
+ return M(N, v) || y(v);
1407
1407
  case "}":
1408
1408
  return d(CompileErrorCodes.UNBALANCED_CLOSING_BRACE, r(), 0), N.next(), m(
1409
1409
  v,
@@ -3027,7 +3027,7 @@ function createComposer(e = {}, t) {
3027
3027
  let I = e.pluralRules || o && o.pluralRules, S;
3028
3028
  S = (() => {
3029
3029
  n && setFallbackContext(null);
3030
- const M = {
3030
+ const D = {
3031
3031
  version: VERSION,
3032
3032
  locale: s.value,
3033
3033
  fallbackLocale: a.value,
@@ -3046,8 +3046,8 @@ function createComposer(e = {}, t) {
3046
3046
  messageCompiler: e.messageCompiler,
3047
3047
  __meta: { framework: "vue" }
3048
3048
  };
3049
- M.datetimeFormats = c.value, M.numberFormats = d.value, M.__datetimeFormatters = isPlainObject(S) ? S.__datetimeFormatters : void 0, M.__numberFormatters = isPlainObject(S) ? S.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (M.__v_emitter = isPlainObject(S) ? S.__v_emitter : void 0);
3050
- const x = createCoreContext(M);
3049
+ D.datetimeFormats = c.value, D.numberFormats = d.value, D.__datetimeFormatters = isPlainObject(S) ? S.__datetimeFormatters : void 0, D.__numberFormatters = isPlainObject(S) ? S.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (D.__v_emitter = isPlainObject(S) ? S.__v_emitter : void 0);
3050
+ const x = createCoreContext(D);
3051
3051
  return n && setFallbackContext(x), x;
3052
3052
  })(), updateFallbackLocale(S, s.value, a.value);
3053
3053
  function T() {
@@ -3061,35 +3061,35 @@ function createComposer(e = {}, t) {
3061
3061
  }
3062
3062
  const L = computed({
3063
3063
  get: () => s.value,
3064
- set: (M) => {
3065
- s.value = M, S.locale = s.value;
3064
+ set: (D) => {
3065
+ s.value = D, S.locale = s.value;
3066
3066
  }
3067
3067
  }), j = computed({
3068
3068
  get: () => a.value,
3069
- set: (M) => {
3070
- a.value = M, S.fallbackLocale = a.value, updateFallbackLocale(S, s.value, M);
3069
+ set: (D) => {
3070
+ a.value = D, S.fallbackLocale = a.value, updateFallbackLocale(S, s.value, D);
3071
3071
  }
3072
3072
  }), R = computed(() => u.value), W = /* @__PURE__ */ computed(() => c.value), oe = /* @__PURE__ */ computed(() => d.value);
3073
3073
  function re() {
3074
3074
  return isFunction(f) ? f : null;
3075
3075
  }
3076
- function te(M) {
3077
- f = M, S.postTranslation = M;
3076
+ function te(D) {
3077
+ f = D, S.postTranslation = D;
3078
3078
  }
3079
3079
  function H() {
3080
3080
  return k;
3081
3081
  }
3082
- function q(M) {
3083
- M !== null && (g = defineCoreMissingHandler(M)), k = M, S.missing = g;
3082
+ function q(D) {
3083
+ D !== null && (g = defineCoreMissingHandler(D)), k = D, S.missing = g;
3084
3084
  }
3085
- function z(M, x) {
3086
- return M !== "translate" || !x.resolvedMessage;
3085
+ function z(D, x) {
3086
+ return D !== "translate" || !x.resolvedMessage;
3087
3087
  }
3088
- const J = (M, x, G, X, de, pe) => {
3088
+ const J = (D, x, G, X, de, pe) => {
3089
3089
  T();
3090
3090
  let ue;
3091
3091
  try {
3092
- process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (S.fallbackContext = o ? getFallbackContext() : void 0), ue = M(S);
3092
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (S.fallbackContext = o ? getFallbackContext() : void 0), ue = D(S);
3093
3093
  } finally {
3094
3094
  process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (S.fallbackContext = void 0);
3095
3095
  }
@@ -3115,87 +3115,87 @@ function createComposer(e = {}, t) {
3115
3115
  throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE);
3116
3116
  }
3117
3117
  };
3118
- function Z(...M) {
3119
- return J((x) => Reflect.apply(translate, null, [x, ...M]), () => parseTranslateArgs(...M), "translate", (x) => Reflect.apply(x.t, x, [...M]), (x) => x, (x) => isString$2(x));
3118
+ function Z(...D) {
3119
+ return J((x) => Reflect.apply(translate, null, [x, ...D]), () => parseTranslateArgs(...D), "translate", (x) => Reflect.apply(x.t, x, [...D]), (x) => x, (x) => isString$2(x));
3120
3120
  }
3121
- function Y(...M) {
3122
- const [x, G, X] = M;
3121
+ function Y(...D) {
3122
+ const [x, G, X] = D;
3123
3123
  if (X && !isObject$1(X))
3124
3124
  throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);
3125
3125
  return Z(x, G, assign$2({ resolvedMessage: !0 }, X || {}));
3126
3126
  }
3127
- function ae(...M) {
3128
- return J((x) => Reflect.apply(datetime, null, [x, ...M]), () => parseDateTimeArgs(...M), "datetime format", (x) => Reflect.apply(x.d, x, [...M]), () => MISSING_RESOLVE_VALUE, (x) => isString$2(x));
3127
+ function ae(...D) {
3128
+ return J((x) => Reflect.apply(datetime, null, [x, ...D]), () => parseDateTimeArgs(...D), "datetime format", (x) => Reflect.apply(x.d, x, [...D]), () => MISSING_RESOLVE_VALUE, (x) => isString$2(x));
3129
3129
  }
3130
- function ee(...M) {
3131
- return J((x) => Reflect.apply(number$1, null, [x, ...M]), () => parseNumberArgs(...M), "number format", (x) => Reflect.apply(x.n, x, [...M]), () => MISSING_RESOLVE_VALUE, (x) => isString$2(x));
3130
+ function ee(...D) {
3131
+ return J((x) => Reflect.apply(number$1, null, [x, ...D]), () => parseNumberArgs(...D), "number format", (x) => Reflect.apply(x.n, x, [...D]), () => MISSING_RESOLVE_VALUE, (x) => isString$2(x));
3132
3132
  }
3133
- function ne(M) {
3134
- return M.map((x) => isString$2(x) || isNumber$1(x) || isBoolean(x) ? createTextNode(String(x)) : x);
3133
+ function ne(D) {
3134
+ return D.map((x) => isString$2(x) || isNumber$1(x) || isBoolean(x) ? createTextNode(String(x)) : x);
3135
3135
  }
3136
3136
  const C = {
3137
3137
  normalize: ne,
3138
- interpolate: (M) => M,
3138
+ interpolate: (D) => D,
3139
3139
  type: "vnode"
3140
3140
  };
3141
- function w(...M) {
3141
+ function w(...D) {
3142
3142
  return J(
3143
3143
  (x) => {
3144
3144
  let G;
3145
3145
  const X = x;
3146
3146
  try {
3147
- X.processor = C, G = Reflect.apply(translate, null, [X, ...M]);
3147
+ X.processor = C, G = Reflect.apply(translate, null, [X, ...D]);
3148
3148
  } finally {
3149
3149
  X.processor = null;
3150
3150
  }
3151
3151
  return G;
3152
3152
  },
3153
- () => parseTranslateArgs(...M),
3153
+ () => parseTranslateArgs(...D),
3154
3154
  "translate",
3155
3155
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3156
- (x) => x[TranslateVNodeSymbol](...M),
3156
+ (x) => x[TranslateVNodeSymbol](...D),
3157
3157
  (x) => [createTextNode(x)],
3158
3158
  (x) => isArray$3(x)
3159
3159
  );
3160
3160
  }
3161
- function D(...M) {
3161
+ function M(...D) {
3162
3162
  return J(
3163
- (x) => Reflect.apply(number$1, null, [x, ...M]),
3164
- () => parseNumberArgs(...M),
3163
+ (x) => Reflect.apply(number$1, null, [x, ...D]),
3164
+ () => parseNumberArgs(...D),
3165
3165
  "number format",
3166
3166
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3167
- (x) => x[NumberPartsSymbol](...M),
3167
+ (x) => x[NumberPartsSymbol](...D),
3168
3168
  NOOP_RETURN_ARRAY,
3169
3169
  (x) => isString$2(x) || isArray$3(x)
3170
3170
  );
3171
3171
  }
3172
- function O(...M) {
3172
+ function O(...D) {
3173
3173
  return J(
3174
- (x) => Reflect.apply(datetime, null, [x, ...M]),
3175
- () => parseDateTimeArgs(...M),
3174
+ (x) => Reflect.apply(datetime, null, [x, ...D]),
3175
+ () => parseDateTimeArgs(...D),
3176
3176
  "datetime format",
3177
3177
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3178
- (x) => x[DatetimePartsSymbol](...M),
3178
+ (x) => x[DatetimePartsSymbol](...D),
3179
3179
  NOOP_RETURN_ARRAY,
3180
3180
  (x) => isString$2(x) || isArray$3(x)
3181
3181
  );
3182
3182
  }
3183
- function B(M) {
3184
- I = M, S.pluralRules = I;
3183
+ function B(D) {
3184
+ I = D, S.pluralRules = I;
3185
3185
  }
3186
- function K(M, x) {
3186
+ function K(D, x) {
3187
3187
  return J(() => {
3188
- if (!M)
3188
+ if (!D)
3189
3189
  return !1;
3190
- const G = isString$2(x) ? x : s.value, X = F(G), de = S.messageResolver(X, M);
3190
+ const G = isString$2(x) ? x : s.value, X = F(G), de = S.messageResolver(X, D);
3191
3191
  return isMessageAST(de) || isMessageFunction(de) || isString$2(de);
3192
- }, () => [M], "translate exists", (G) => Reflect.apply(G.te, G, [M, x]), NOOP_RETURN_FALSE, (G) => isBoolean(G));
3192
+ }, () => [D], "translate exists", (G) => Reflect.apply(G.te, G, [D, x]), NOOP_RETURN_FALSE, (G) => isBoolean(G));
3193
3193
  }
3194
- function N(M) {
3194
+ function N(D) {
3195
3195
  let x = null;
3196
3196
  const G = fallbackWithLocaleChain(S, a.value, s.value);
3197
3197
  for (let X = 0; X < G.length; X++) {
3198
- const de = u.value[G[X]] || {}, pe = S.messageResolver(de, M);
3198
+ const de = u.value[G[X]] || {}, pe = S.messageResolver(de, D);
3199
3199
  if (pe != null) {
3200
3200
  x = pe;
3201
3201
  break;
@@ -3203,51 +3203,51 @@ function createComposer(e = {}, t) {
3203
3203
  }
3204
3204
  return x;
3205
3205
  }
3206
- function v(M) {
3207
- const x = N(M);
3208
- return x ?? (o ? o.tm(M) || {} : {});
3206
+ function v(D) {
3207
+ const x = N(D);
3208
+ return x ?? (o ? o.tm(D) || {} : {});
3209
3209
  }
3210
- function F(M) {
3211
- return u.value[M] || {};
3210
+ function F(D) {
3211
+ return u.value[D] || {};
3212
3212
  }
3213
- function A(M, x) {
3213
+ function A(D, x) {
3214
3214
  if (r) {
3215
- const G = { [M]: x };
3215
+ const G = { [D]: x };
3216
3216
  for (const X in G)
3217
3217
  hasOwn(G, X) && handleFlatJson(G[X]);
3218
- x = G[M];
3218
+ x = G[D];
3219
3219
  }
3220
- u.value[M] = x, S.messages = u.value;
3220
+ u.value[D] = x, S.messages = u.value;
3221
3221
  }
3222
- function $(M, x) {
3223
- u.value[M] = u.value[M] || {};
3224
- const G = { [M]: x };
3222
+ function $(D, x) {
3223
+ u.value[D] = u.value[D] || {};
3224
+ const G = { [D]: x };
3225
3225
  for (const X in G)
3226
3226
  hasOwn(G, X) && handleFlatJson(G[X]);
3227
- x = G[M], deepCopy$1(x, u.value[M]), S.messages = u.value;
3227
+ x = G[D], deepCopy$1(x, u.value[D]), S.messages = u.value;
3228
3228
  }
3229
- function U(M) {
3230
- return c.value[M] || {};
3229
+ function U(D) {
3230
+ return c.value[D] || {};
3231
3231
  }
3232
- function ie(M, x) {
3233
- c.value[M] = x, S.datetimeFormats = c.value, clearDateTimeFormat(S, M, x);
3232
+ function ie(D, x) {
3233
+ c.value[D] = x, S.datetimeFormats = c.value, clearDateTimeFormat(S, D, x);
3234
3234
  }
3235
- function le(M, x) {
3236
- c.value[M] = assign$2(c.value[M] || {}, x), S.datetimeFormats = c.value, clearDateTimeFormat(S, M, x);
3235
+ function le(D, x) {
3236
+ c.value[D] = assign$2(c.value[D] || {}, x), S.datetimeFormats = c.value, clearDateTimeFormat(S, D, x);
3237
3237
  }
3238
- function me(M) {
3239
- return d.value[M] || {};
3238
+ function me(D) {
3239
+ return d.value[D] || {};
3240
3240
  }
3241
- function fe(M, x) {
3242
- d.value[M] = x, S.numberFormats = d.value, clearNumberFormat(S, M, x);
3241
+ function fe(D, x) {
3242
+ d.value[D] = x, S.numberFormats = d.value, clearNumberFormat(S, D, x);
3243
3243
  }
3244
- function ge(M, x) {
3245
- d.value[M] = assign$2(d.value[M] || {}, x), S.numberFormats = d.value, clearNumberFormat(S, M, x);
3244
+ function ge(D, x) {
3245
+ d.value[D] = assign$2(d.value[D] || {}, x), S.numberFormats = d.value, clearNumberFormat(S, D, x);
3246
3246
  }
3247
- composerID++, o && inBrowser && (watch(o.locale, (M) => {
3248
- l && (s.value = M, S.locale = M, updateFallbackLocale(S, s.value, a.value));
3249
- }), watch(o.fallbackLocale, (M) => {
3250
- l && (a.value = M, S.fallbackLocale = M, updateFallbackLocale(S, s.value, a.value));
3247
+ composerID++, o && inBrowser && (watch(o.locale, (D) => {
3248
+ l && (s.value = D, S.locale = D, updateFallbackLocale(S, s.value, a.value));
3249
+ }), watch(o.fallbackLocale, (D) => {
3250
+ l && (a.value = D, S.fallbackLocale = D, updateFallbackLocale(S, s.value, a.value));
3251
3251
  }));
3252
3252
  const Q = {
3253
3253
  id: composerID,
@@ -3256,8 +3256,8 @@ function createComposer(e = {}, t) {
3256
3256
  get inheritLocale() {
3257
3257
  return l;
3258
3258
  },
3259
- set inheritLocale(M) {
3260
- l = M, M && o && (s.value = o.locale.value, a.value = o.fallbackLocale.value, updateFallbackLocale(S, s.value, a.value));
3259
+ set inheritLocale(D) {
3260
+ l = D, D && o && (s.value = o.locale.value, a.value = o.fallbackLocale.value, updateFallbackLocale(S, s.value, a.value));
3261
3261
  },
3262
3262
  get availableLocales() {
3263
3263
  return Object.keys(u.value).sort();
@@ -3275,38 +3275,38 @@ function createComposer(e = {}, t) {
3275
3275
  get missingWarn() {
3276
3276
  return m;
3277
3277
  },
3278
- set missingWarn(M) {
3279
- m = M, S.missingWarn = m;
3278
+ set missingWarn(D) {
3279
+ m = D, S.missingWarn = m;
3280
3280
  },
3281
3281
  get fallbackWarn() {
3282
3282
  return y;
3283
3283
  },
3284
- set fallbackWarn(M) {
3285
- y = M, S.fallbackWarn = y;
3284
+ set fallbackWarn(D) {
3285
+ y = D, S.fallbackWarn = y;
3286
3286
  },
3287
3287
  get fallbackRoot() {
3288
3288
  return b;
3289
3289
  },
3290
- set fallbackRoot(M) {
3291
- b = M;
3290
+ set fallbackRoot(D) {
3291
+ b = D;
3292
3292
  },
3293
3293
  get fallbackFormat() {
3294
3294
  return _;
3295
3295
  },
3296
- set fallbackFormat(M) {
3297
- _ = M, S.fallbackFormat = _;
3296
+ set fallbackFormat(D) {
3297
+ _ = D, S.fallbackFormat = _;
3298
3298
  },
3299
3299
  get warnHtmlMessage() {
3300
3300
  return p;
3301
3301
  },
3302
- set warnHtmlMessage(M) {
3303
- p = M, S.warnHtmlMessage = M;
3302
+ set warnHtmlMessage(D) {
3303
+ p = D, S.warnHtmlMessage = D;
3304
3304
  },
3305
3305
  get escapeParameter() {
3306
3306
  return E;
3307
3307
  },
3308
- set escapeParameter(M) {
3309
- E = M, S.escapeParameter = M;
3308
+ set escapeParameter(D) {
3309
+ E = D, S.escapeParameter = D;
3310
3310
  },
3311
3311
  t: Z,
3312
3312
  getLocaleMessage: F,
@@ -3318,8 +3318,8 @@ function createComposer(e = {}, t) {
3318
3318
  setMissingHandler: q,
3319
3319
  [SetPluralRulesSymbol]: B
3320
3320
  };
3321
- return Q.datetimeFormats = W, Q.numberFormats = oe, Q.rt = Y, Q.te = K, Q.tm = v, Q.d = ae, Q.n = ee, Q.getDateTimeFormat = U, Q.setDateTimeFormat = ie, Q.mergeDateTimeFormat = le, Q.getNumberFormat = me, Q.setNumberFormat = fe, Q.mergeNumberFormat = ge, Q[InejctWithOptionSymbol] = i, Q[TranslateVNodeSymbol] = w, Q[DatetimePartsSymbol] = O, Q[NumberPartsSymbol] = D, process.env.NODE_ENV !== "production" && (Q[EnableEmitter] = (M) => {
3322
- S.__v_emitter = M;
3321
+ return Q.datetimeFormats = W, Q.numberFormats = oe, Q.rt = Y, Q.te = K, Q.tm = v, Q.d = ae, Q.n = ee, Q.getDateTimeFormat = U, Q.setDateTimeFormat = ie, Q.mergeDateTimeFormat = le, Q.getNumberFormat = me, Q.setNumberFormat = fe, Q.mergeNumberFormat = ge, Q[InejctWithOptionSymbol] = i, Q[TranslateVNodeSymbol] = w, Q[DatetimePartsSymbol] = O, Q[NumberPartsSymbol] = M, process.env.NODE_ENV !== "production" && (Q[EnableEmitter] = (D) => {
3322
+ S.__v_emitter = D;
3323
3323
  }, Q[DisableEmitter] = () => {
3324
3324
  S.__v_emitter = void 0;
3325
3325
  }), Q;
@@ -4336,7 +4336,7 @@ function useI18nForLegacy(e, t, o, i = {}) {
4336
4336
  function w(v, F) {
4337
4337
  r.value && r.value.mergeDateTimeFormat(v, F);
4338
4338
  }
4339
- function D(v) {
4339
+ function M(v) {
4340
4340
  return r.value ? r.value.getNumberFormat(v) : {};
4341
4341
  }
4342
4342
  function O(v, F) {
@@ -4424,7 +4424,7 @@ function useI18nForLegacy(e, t, o, i = {}) {
4424
4424
  getDateTimeFormat: se,
4425
4425
  setDateTimeFormat: C,
4426
4426
  mergeDateTimeFormat: w,
4427
- getNumberFormat: D,
4427
+ getNumberFormat: M,
4428
4428
  setNumberFormat: O,
4429
4429
  mergeNumberFormat: B
4430
4430
  };
@@ -5496,8 +5496,56 @@ function getLanguageWithLocale() {
5496
5496
  return (!e || e === "zh") && (e = "cn"), getLangByShort(e);
5497
5497
  }
5498
5498
  function getContextValue(e, t) {
5499
- if (e)
5500
- return e[t];
5499
+ let o = getLastNDate(t);
5500
+ return e && (o = e[t]), o;
5501
+ }
5502
+ function getLastNDate(e) {
5503
+ let t;
5504
+ if (e && e === "currentTime" && (t = /* @__PURE__ */ new Date()), e && e === "currentWeek" && (t = getCurrentWeek()), e && e === "currentMonth" && (t = getCurrentMonth()), e && e === "currentQuarter" && (t = getCurrentQuarter()), e && e === "currentYear" && (t = getCurrentYear()), e && e.indexOf("lastNDay") >= 0) {
5505
+ const o = e.substring(e.indexOf(":") + 1);
5506
+ t = getLastNDay(parseInt(o));
5507
+ }
5508
+ return t;
5509
+ }
5510
+ function getCurrentWeek() {
5511
+ const e = /* @__PURE__ */ new Date(), t = e.getTime(), o = e.getDay(), i = new Date(t + 24 * 60 * 60 * 1e3 * (0 - (o + 6) % 7)), n = new Date(t + 24 * 60 * 60 * 1e3 * (6 - (o + 6) % 7)), r = i.toLocaleDateString() + " " + i.toLocaleTimeString(), l = n.toLocaleDateString() + " " + n.toLocaleTimeString();
5512
+ return console.log(`getCurrentMonth从 ${r} 开始,到 ${l} 结束`), [i, n];
5513
+ }
5514
+ function getCurrentMonth() {
5515
+ const e = /* @__PURE__ */ new Date(), t = e.getFullYear(), o = e.getMonth() + 1;
5516
+ e.setDate(1);
5517
+ const i = `${t}/${o < 10 ? "0" : ""}${o}/01`;
5518
+ e.setMonth(e.getMonth() + 2), e.setDate(0);
5519
+ const n = `${e.getFullYear()}/${e.getMonth() < 9 ? "0" : ""}${e.getMonth() + 1}/01`, r = new Date(Date.parse(i)), l = new Date(new Date(Date.parse(n)).getTime() - 1e3), s = r.toLocaleDateString() + " " + r.toLocaleTimeString(), a = l.toLocaleDateString() + " " + l.toLocaleTimeString();
5520
+ return console.log(`getCurrentMonth从 ${s} 开始,到 ${a} 结束`), [r, l];
5521
+ }
5522
+ function getCurrentQuarter() {
5523
+ const e = /* @__PURE__ */ new Date(), t = (e.getMonth() + 3) % 12;
5524
+ let o;
5525
+ e.getMonth() < t + 2 ? o = new Date(e.getFullYear(), t, 1) : o = new Date(e.getFullYear() + 1, t, 1);
5526
+ let i;
5527
+ o.getMonth() === 11 ? i = new Date(o.getFullYear() + 1, 0, 0) : i = new Date(o.getFullYear(), o.getMonth() + 3, 0), i = new Date(i.getTime() + 24 * 60 * 60 * 1e3 - 1e3);
5528
+ const n = o.toLocaleDateString() + " " + o.toLocaleTimeString(), r = i.toLocaleDateString() + " " + i.toLocaleTimeString();
5529
+ return console.log(`getCurrentQuarter从 ${n} 开始,到 ${r} 结束`), [o, i];
5530
+ }
5531
+ function getCurrentYear() {
5532
+ const e = (/* @__PURE__ */ new Date()).getFullYear();
5533
+ let t = new Date(e, 0);
5534
+ t.setMonth(0, 1);
5535
+ let o = new Date(e + 1, 0);
5536
+ o = o.getTime() - 1e3, o = new Date(o);
5537
+ const i = t.toLocaleDateString() + " " + t.toLocaleTimeString(), n = o.toLocaleDateString() + " " + o.toLocaleTimeString();
5538
+ return console.log(`getCurrentYear从 ${i} 开始,到 ${n} 结束`), [t, o];
5539
+ }
5540
+ function getLastNDay(e) {
5541
+ let t = /* @__PURE__ */ new Date(), o = t.getFullYear(), i = t.getMonth() + 1, n = t.getDate(), r = `${o}/${i < 10 ? "0" : ""}${i}/${n}`;
5542
+ t = new Date(Date.parse(r)), t.setDate(t.getDate() + 1), t = new Date(t.getTime() - 1e3);
5543
+ let l = /* @__PURE__ */ new Date();
5544
+ l.setDate(l.getDate() - (e - 1));
5545
+ const s = l.getFullYear(), a = l.getMonth() + 1, u = l.getDate(), c = `${s}/${a < 10 ? "0" : ""}${a}/${u}`;
5546
+ l = new Date(Date.parse(c));
5547
+ const d = l.toLocaleDateString() + " " + l.toLocaleTimeString(), m = t.toLocaleDateString() + " " + t.toLocaleTimeString();
5548
+ console.log(`getLastNDay从 ${d} 开始,到 ${m} 结束`), retur[t];
5501
5549
  }
5502
5550
  function getPropValue(e, t, o, i, n, r, l) {
5503
5551
  let s = null;
@@ -16471,23 +16519,23 @@ function requireString_decoder() {
16471
16519
  function i(C, w) {
16472
16520
  if (!(this instanceof i))
16473
16521
  return new i(C, w);
16474
- var D = this;
16475
- r(D), D.q = D.c = "", D.bufferCheckPosition = t.MAX_BUFFER_LENGTH, D.opt = w || {}, D.opt.lowercase = D.opt.lowercase || D.opt.lowercasetags, D.looseCase = D.opt.lowercase ? "toLowerCase" : "toUpperCase", D.tags = [], D.closed = D.closedRoot = D.sawRoot = !1, D.tag = D.error = null, D.strict = !!C, D.noscript = !!(C || D.opt.noscript), D.state = T.BEGIN, D.strictEntities = D.opt.strictEntities, D.ENTITIES = D.strictEntities ? Object.create(t.XML_ENTITIES) : Object.create(t.ENTITIES), D.attribList = [], D.opt.xmlns && (D.ns = Object.create(_)), D.trackPosition = D.opt.position !== !1, D.trackPosition && (D.position = D.line = D.column = 0), j(D, "onready");
16522
+ var M = this;
16523
+ r(M), M.q = M.c = "", M.bufferCheckPosition = t.MAX_BUFFER_LENGTH, M.opt = w || {}, M.opt.lowercase = M.opt.lowercase || M.opt.lowercasetags, M.looseCase = M.opt.lowercase ? "toLowerCase" : "toUpperCase", M.tags = [], M.closed = M.closedRoot = M.sawRoot = !1, M.tag = M.error = null, M.strict = !!C, M.noscript = !!(C || M.opt.noscript), M.state = T.BEGIN, M.strictEntities = M.opt.strictEntities, M.ENTITIES = M.strictEntities ? Object.create(t.XML_ENTITIES) : Object.create(t.ENTITIES), M.attribList = [], M.opt.xmlns && (M.ns = Object.create(_)), M.trackPosition = M.opt.position !== !1, M.trackPosition && (M.position = M.line = M.column = 0), j(M, "onready");
16476
16524
  }
16477
16525
  Object.create || (Object.create = function(C) {
16478
16526
  function w() {
16479
16527
  }
16480
16528
  w.prototype = C;
16481
- var D = new w();
16482
- return D;
16529
+ var M = new w();
16530
+ return M;
16483
16531
  }), Object.keys || (Object.keys = function(C) {
16484
16532
  var w = [];
16485
- for (var D in C)
16486
- C.hasOwnProperty(D) && w.push(D);
16533
+ for (var M in C)
16534
+ C.hasOwnProperty(M) && w.push(M);
16487
16535
  return w;
16488
16536
  });
16489
16537
  function n(C) {
16490
- for (var w = Math.max(t.MAX_BUFFER_LENGTH, 10), D = 0, O = 0, B = o.length; O < B; O++) {
16538
+ for (var w = Math.max(t.MAX_BUFFER_LENGTH, 10), M = 0, O = 0, B = o.length; O < B; O++) {
16491
16539
  var K = C[o[O]].length;
16492
16540
  if (K > w)
16493
16541
  switch (o[O]) {
@@ -16503,13 +16551,13 @@ function requireString_decoder() {
16503
16551
  default:
16504
16552
  re(C, "Max buffer length exceeded: " + o[O]);
16505
16553
  }
16506
- D = Math.max(D, K);
16554
+ M = Math.max(M, K);
16507
16555
  }
16508
- var N = t.MAX_BUFFER_LENGTH - D;
16556
+ var N = t.MAX_BUFFER_LENGTH - M;
16509
16557
  C.bufferCheckPosition = N + C.position;
16510
16558
  }
16511
16559
  function r(C) {
16512
- for (var w = 0, D = o.length; w < D; w++)
16560
+ for (var w = 0, M = o.length; w < M; w++)
16513
16561
  C[o[w]] = "";
16514
16562
  }
16515
16563
  function l(C) {
@@ -16549,20 +16597,20 @@ function requireString_decoder() {
16549
16597
  if (!(this instanceof c))
16550
16598
  return new c(C, w);
16551
16599
  s.apply(this), this._parser = new i(C, w), this.writable = !0, this.readable = !0;
16552
- var D = this;
16600
+ var M = this;
16553
16601
  this._parser.onend = function() {
16554
- D.emit("end");
16602
+ M.emit("end");
16555
16603
  }, this._parser.onerror = function(O) {
16556
- D.emit("error", O), D._parser.error = null;
16604
+ M.emit("error", O), M._parser.error = null;
16557
16605
  }, this._decoder = null, a.forEach(function(O) {
16558
- Object.defineProperty(D, "on" + O, {
16606
+ Object.defineProperty(M, "on" + O, {
16559
16607
  get: function() {
16560
- return D._parser["on" + O];
16608
+ return M._parser["on" + O];
16561
16609
  },
16562
16610
  set: function(B) {
16563
16611
  if (!B)
16564
- return D.removeAllListeners(O), D._parser["on" + O] = B, B;
16565
- D.on(O, B);
16612
+ return M.removeAllListeners(O), M._parser["on" + O] = B, B;
16613
+ M.on(O, B);
16566
16614
  },
16567
16615
  enumerable: !0,
16568
16616
  configurable: !1
@@ -16585,11 +16633,11 @@ function requireString_decoder() {
16585
16633
  }, c.prototype.end = function(C) {
16586
16634
  return C && C.length && this.write(C), this._parser.end(), !0;
16587
16635
  }, c.prototype.on = function(C, w) {
16588
- var D = this;
16589
- return !D._parser["on" + C] && a.indexOf(C) !== -1 && (D._parser["on" + C] = function() {
16636
+ var M = this;
16637
+ return !M._parser["on" + C] && a.indexOf(C) !== -1 && (M._parser["on" + C] = function() {
16590
16638
  var O = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
16591
- O.splice(0, 0, C), D.emit.apply(D, O);
16592
- }), s.prototype.on.call(D, C, w);
16639
+ O.splice(0, 0, C), M.emit.apply(M, O);
16640
+ }), s.prototype.on.call(M, C, w);
16593
16641
  };
16594
16642
  var d = "[CDATA[", m = "DOCTYPE", y = "http://www.w3.org/XML/1998/namespace", b = "http://www.w3.org/2000/xmlns/", _ = { xml: y, xmlns: b }, k = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, g = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/, f = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, p = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;
16595
16643
  function E(C) {
@@ -16943,17 +16991,17 @@ function requireString_decoder() {
16943
16991
  hearts: 9829,
16944
16992
  diams: 9830
16945
16993
  }, Object.keys(t.ENTITIES).forEach(function(C) {
16946
- var w = t.ENTITIES[C], D = typeof w == "number" ? String.fromCharCode(w) : w;
16947
- t.ENTITIES[C] = D;
16994
+ var w = t.ENTITIES[C], M = typeof w == "number" ? String.fromCharCode(w) : w;
16995
+ t.ENTITIES[C] = M;
16948
16996
  });
16949
16997
  for (var L in t.STATE)
16950
16998
  t.STATE[t.STATE[L]] = L;
16951
16999
  T = t.STATE;
16952
- function j(C, w, D) {
16953
- C[w] && C[w](D);
17000
+ function j(C, w, M) {
17001
+ C[w] && C[w](M);
16954
17002
  }
16955
- function R(C, w, D) {
16956
- C.textNode && W(C), j(C, w, D);
17003
+ function R(C, w, M) {
17004
+ C.textNode && W(C), j(C, w, M);
16957
17005
  }
16958
17006
  function W(C) {
16959
17007
  C.textNode = oe(C.opt, C.textNode), C.textNode && j(C, "ontext", C.textNode), C.textNode = "";
@@ -16977,11 +17025,11 @@ Char: ` + C.c), w = new Error(w), C.error = w, j(C, "onerror", w), C;
16977
17025
  }
16978
17026
  function q(C) {
16979
17027
  C.strict || (C.tagName = C.tagName[C.looseCase]());
16980
- var w = C.tags[C.tags.length - 1] || C, D = C.tag = { name: C.tagName, attributes: {} };
16981
- C.opt.xmlns && (D.ns = w.ns), C.attribList.length = 0, R(C, "onopentagstart", D);
17028
+ var w = C.tags[C.tags.length - 1] || C, M = C.tag = { name: C.tagName, attributes: {} };
17029
+ C.opt.xmlns && (M.ns = w.ns), C.attribList.length = 0, R(C, "onopentagstart", M);
16982
17030
  }
16983
17031
  function z(C, w) {
16984
- var D = C.indexOf(":"), O = D < 0 ? ["", C] : C.split(":"), B = O[0], K = O[1];
17032
+ var M = C.indexOf(":"), O = M < 0 ? ["", C] : C.split(":"), B = O[0], K = O[1];
16985
17033
  return w && C === "xmlns" && (B = "xmlns", K = ""), { prefix: B, local: K };
16986
17034
  }
16987
17035
  function J(C) {
@@ -16990,8 +17038,8 @@ Char: ` + C.c), w = new Error(w), C.error = w, j(C, "onerror", w), C;
16990
17038
  return;
16991
17039
  }
16992
17040
  if (C.opt.xmlns) {
16993
- var w = z(C.attribName, !0), D = w.prefix, O = w.local;
16994
- if (D === "xmlns")
17041
+ var w = z(C.attribName, !0), M = w.prefix, O = w.local;
17042
+ if (M === "xmlns")
16995
17043
  if (O === "xml" && C.attribValue !== y)
16996
17044
  H(
16997
17045
  C,
@@ -17018,17 +17066,17 @@ Actual: ` + C.attribValue
17018
17066
  }
17019
17067
  function Z(C, w) {
17020
17068
  if (C.opt.xmlns) {
17021
- var D = C.tag, O = z(C.tagName);
17022
- D.prefix = O.prefix, D.local = O.local, D.uri = D.ns[O.prefix] || "", D.prefix && !D.uri && (H(C, "Unbound namespace prefix: " + JSON.stringify(C.tagName)), D.uri = O.prefix);
17069
+ var M = C.tag, O = z(C.tagName);
17070
+ M.prefix = O.prefix, M.local = O.local, M.uri = M.ns[O.prefix] || "", M.prefix && !M.uri && (H(C, "Unbound namespace prefix: " + JSON.stringify(C.tagName)), M.uri = O.prefix);
17023
17071
  var B = C.tags[C.tags.length - 1] || C;
17024
- D.ns && B.ns !== D.ns && Object.keys(D.ns).forEach(function(fe) {
17072
+ M.ns && B.ns !== M.ns && Object.keys(M.ns).forEach(function(fe) {
17025
17073
  R(C, "onopennamespace", {
17026
17074
  prefix: fe,
17027
- uri: D.ns[fe]
17075
+ uri: M.ns[fe]
17028
17076
  });
17029
17077
  });
17030
17078
  for (var K = 0, N = C.attribList.length; K < N; K++) {
17031
- var v = C.attribList[K], F = v[0], A = v[1], $ = z(F, !0), U = $.prefix, ie = $.local, le = U === "" ? "" : D.ns[U] || "", me = {
17079
+ var v = C.attribList[K], F = v[0], A = v[1], $ = z(F, !0), U = $.prefix, ie = $.local, le = U === "" ? "" : M.ns[U] || "", me = {
17032
17080
  name: F,
17033
17081
  value: A,
17034
17082
  prefix: U,
@@ -17053,9 +17101,9 @@ Actual: ` + C.attribValue
17053
17101
  }
17054
17102
  R(C, "onscript", C.script), C.script = "";
17055
17103
  }
17056
- var w = C.tags.length, D = C.tagName;
17057
- C.strict || (D = D[C.looseCase]());
17058
- for (var O = D; w--; ) {
17104
+ var w = C.tags.length, M = C.tagName;
17105
+ C.strict || (M = M[C.looseCase]());
17106
+ for (var O = M; w--; ) {
17059
17107
  var B = C.tags[w];
17060
17108
  if (B.name !== O)
17061
17109
  H(C, "Unexpected close tag");
@@ -17066,7 +17114,7 @@ Actual: ` + C.attribValue
17066
17114
  H(C, "Unmatched closing tag: " + C.tagName), C.textNode += "</" + C.tagName + ">", C.state = T.TEXT;
17067
17115
  return;
17068
17116
  }
17069
- C.tagName = D;
17117
+ C.tagName = M;
17070
17118
  for (var K = C.tags.length; K-- > w; ) {
17071
17119
  var N = C.tag = C.tags.pop();
17072
17120
  C.tagName = C.tag.name, R(C, "onclosetag", C.tagName);
@@ -17082,15 +17130,15 @@ Actual: ` + C.attribValue
17082
17130
  w === 0 && (C.closedRoot = !0), C.tagName = C.attribValue = C.attribName = "", C.attribList.length = 0, C.state = T.TEXT;
17083
17131
  }
17084
17132
  function ae(C) {
17085
- var w = C.entity, D = w.toLowerCase(), O, B = "";
17086
- return C.ENTITIES[w] ? C.ENTITIES[w] : C.ENTITIES[D] ? C.ENTITIES[D] : (w = D, w.charAt(0) === "#" && (w.charAt(1) === "x" ? (w = w.slice(2), O = parseInt(w, 16), B = O.toString(16)) : (w = w.slice(1), O = parseInt(w, 10), B = O.toString(10))), w = w.replace(/^0+/, ""), isNaN(O) || B.toLowerCase() !== w ? (H(C, "Invalid character entity"), "&" + C.entity + ";") : String.fromCodePoint(O));
17133
+ var w = C.entity, M = w.toLowerCase(), O, B = "";
17134
+ return C.ENTITIES[w] ? C.ENTITIES[w] : C.ENTITIES[M] ? C.ENTITIES[M] : (w = M, w.charAt(0) === "#" && (w.charAt(1) === "x" ? (w = w.slice(2), O = parseInt(w, 16), B = O.toString(16)) : (w = w.slice(1), O = parseInt(w, 10), B = O.toString(10))), w = w.replace(/^0+/, ""), isNaN(O) || B.toLowerCase() !== w ? (H(C, "Invalid character entity"), "&" + C.entity + ";") : String.fromCodePoint(O));
17087
17135
  }
17088
17136
  function ee(C, w) {
17089
17137
  w === "<" ? (C.state = T.OPEN_WAKA, C.startTagPosition = C.position) : E(w) || (H(C, "Non-whitespace before first tag."), C.textNode = w, C.state = T.TEXT);
17090
17138
  }
17091
17139
  function ne(C, w) {
17092
- var D = "";
17093
- return w < C.length && (D = C.charAt(w)), D;
17140
+ var M = "";
17141
+ return w < C.length && (M = C.charAt(w)), M;
17094
17142
  }
17095
17143
  function se(C) {
17096
17144
  var w = this;
@@ -17104,7 +17152,7 @@ Actual: ` + C.attribValue
17104
17152
  if (C === null)
17105
17153
  return te(w);
17106
17154
  typeof C == "object" && (C = C.toString());
17107
- for (var D = 0, O = ""; O = ne(C, D++), w.c = O, !!O; )
17155
+ for (var M = 0, O = ""; O = ne(C, M++), w.c = O, !!O; )
17108
17156
  switch (w.trackPosition && (w.position++, O === `
17109
17157
  ` ? (w.line++, w.column = 0) : w.column++), w.state) {
17110
17158
  case T.BEGIN:
@@ -17117,10 +17165,10 @@ Actual: ` + C.attribValue
17117
17165
  continue;
17118
17166
  case T.TEXT:
17119
17167
  if (w.sawRoot && !w.closedRoot) {
17120
- for (var B = D - 1; O && O !== "<" && O !== "&"; )
17121
- O = ne(C, D++), O && w.trackPosition && (w.position++, O === `
17168
+ for (var B = M - 1; O && O !== "<" && O !== "&"; )
17169
+ O = ne(C, M++), O && w.trackPosition && (w.position++, O === `
17122
17170
  ` ? (w.line++, w.column = 0) : w.column++);
17123
- w.textNode += C.substring(B, D - 1);
17171
+ w.textNode += C.substring(B, M - 1);
17124
17172
  }
17125
17173
  O === "<" && !(w.sawRoot && w.closedRoot && !w.strict) ? (w.state = T.OPEN_WAKA, w.startTagPosition = w.position) : (!E(O) && (!w.sawRoot || w.closedRoot) && H(w, "Text data outside of root node."), O === "&" ? w.state = T.TEXT_ENTITY : w.textNode += O);
17126
17174
  continue;
@@ -17294,7 +17342,7 @@ Actual: ` + C.attribValue
17294
17342
  }
17295
17343
  /*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
17296
17344
  String.fromCodePoint || function() {
17297
- var C = String.fromCharCode, w = Math.floor, D = function() {
17345
+ var C = String.fromCharCode, w = Math.floor, M = function() {
17298
17346
  var O = 16384, B = [], K, N, v = -1, F = arguments.length;
17299
17347
  if (!F)
17300
17348
  return "";
@@ -17310,10 +17358,10 @@ Actual: ` + C.attribValue
17310
17358
  return A;
17311
17359
  };
17312
17360
  Object.defineProperty ? Object.defineProperty(String, "fromCodePoint", {
17313
- value: D,
17361
+ value: M,
17314
17362
  configurable: !0,
17315
17363
  writable: !0
17316
- }) : String.fromCodePoint = D;
17364
+ }) : String.fromCodePoint = M;
17317
17365
  }();
17318
17366
  })(e);
17319
17367
  })(sax$1);
@@ -21824,12 +21872,12 @@ var prism = { exports: {} };
21824
21872
  Z--, J = f.slice(z, ee), Y.index -= z;
21825
21873
  } else if (Y = u(H, 0, J, W), !Y)
21826
21874
  continue;
21827
- var se = Y.index, C = Y[0], w = J.slice(0, se), D = J.slice(se + C.length), O = z + J.length;
21875
+ var se = Y.index, C = Y[0], w = J.slice(0, se), M = J.slice(se + C.length), O = z + J.length;
21828
21876
  S && O > S.reach && (S.reach = O);
21829
21877
  var B = q.prev;
21830
21878
  w && (B = m(p, B, w), z += w.length), y(p, B, Z);
21831
21879
  var K = new a(P, R ? s.tokenize(C, R) : C, re, C);
21832
- if (q = m(p, B, K), D && m(p, q, D), Z > 1) {
21880
+ if (q = m(p, B, K), M && m(p, q, M), Z > 1) {
21833
21881
  var N = {
21834
21882
  cause: P + "," + L,
21835
21883
  reach: O