vue-layout-gitcode 1.1.21 → 1.1.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.
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, createBlock, createElementBlock, openBlock, unref, normalizeProps, mergeProps, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, effectScope, ref, shallowRef, watch, isRef, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createCommentVNode, withCtx, toDisplayString as toDisplayString$1, renderList, createTextVNode, Transition, withModifiers, render, resolveComponent, watchEffect, guardReactiveProps, onBeforeUnmount, nextTick, defineAsyncComponent, withDirectives, vShow, withKeys, resolveDynamicComponent, toRaw, mergeModels, useModel as useModel$1, watchPostEffect, createSlots } from "vue";
1
+ import { defineComponent, computed, openBlock, createBlock, unref, normalizeProps, mergeProps, createElementBlock, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, h, getCurrentInstance, effectScope, onMounted, onUnmounted, shallowRef, ref, onBeforeMount, watch, Fragment, isRef, createVNode, Text, provide, withCtx, toDisplayString as toDisplayString$1, createCommentVNode, renderList, createTextVNode, Transition, withModifiers, render, resolveComponent, watchEffect, guardReactiveProps, onBeforeUnmount, nextTick, defineAsyncComponent, withDirectives, vShow, withKeys, resolveDynamicComponent, toRaw, mergeModels, useModel as useModel$1, watchPostEffect, createSlots } from "vue";
2
2
  import { Button } from "vue-devui-lal/button";
3
3
  import { Popover } from "vue-devui-lal/popover";
4
4
  import { Tooltip } from "vue-devui-lal/tooltip";
@@ -91,6 +91,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
91
91
  };
92
92
  }
93
93
  });
94
+ const index_vue_vue_type_style_index_0_scoped_2e3caaf8_lang = "";
94
95
  const _export_sfc = (sfc, props) => {
95
96
  const target = sfc.__vccOpts || sfc;
96
97
  for (const [key, val] of props) {
@@ -98,7 +99,7 @@ const _export_sfc = (sfc, props) => {
98
99
  }
99
100
  return target;
100
101
  };
101
- const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-gitcode-layout-lib"]]);
102
+ const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-2e3caaf8"]]);
102
103
  const defaultConfig = {
103
104
  VITE_ENV: "production",
104
105
  VITE_HOST: "https://gitcode.com",
@@ -251,7 +252,8 @@ function sha1$1(s) {
251
252
  const l = (data.length + 8 >>> 6 << 4) + 16;
252
253
  var s = new Uint8Array(l << 2);
253
254
  s.set(new Uint8Array(data.buffer)), s = new Uint32Array(s.buffer);
254
- for (t2 = new DataView(s.buffer), i = 0; i < l; i++) s[i] = t2.getUint32(i << 2);
255
+ for (t2 = new DataView(s.buffer), i = 0; i < l; i++)
256
+ s[i] = t2.getUint32(i << 2);
255
257
  s[data.length >> 2] |= 128 << 24 - (data.length & 3) * 8;
256
258
  s[l - 1] = data.length << 3;
257
259
  const w = [];
@@ -280,10 +282,12 @@ function sha1$1(s) {
280
282
  for (j = 0; j < 80; j++) {
281
283
  w[j] = j < 16 ? s[i + j] : rol(w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16], 1), t2 = rol(m[0], 5) + f[j / 20 | 0]() + m[4] + w[j] + k[j / 20 | 0] | 0, m[1] = rol(m[1], 30), m.pop(), m.unshift(t2);
282
284
  }
283
- for (j = 0; j < 5; j++) m[j] = m[j] + o[j] | 0;
285
+ for (j = 0; j < 5; j++)
286
+ m[j] = m[j] + o[j] | 0;
284
287
  }
285
288
  t2 = new DataView(new Uint32Array(m).buffer);
286
- for (var i = 0; i < 5; i++) m[i] = t2.getUint32(i << 2);
289
+ for (var i = 0; i < 5; i++)
290
+ m[i] = t2.getUint32(i << 2);
287
291
  const hex = Array.prototype.map.call(new Uint8Array(new Uint32Array(m).buffer), function(e) {
288
292
  return (e < 16 ? "0" : "") + e.toString(16);
289
293
  }).join("");
@@ -295,12 +299,15 @@ function encodeUTF8(s) {
295
299
  let c;
296
300
  let x;
297
301
  for (i = 0; i < s.length; i++) {
298
- if ((c = s.charCodeAt(i)) < 128) r.push(c);
299
- else if (c < 2048) r.push(192 + (c >> 6 & 31), 128 + (c & 63));
302
+ if ((c = s.charCodeAt(i)) < 128)
303
+ r.push(c);
304
+ else if (c < 2048)
305
+ r.push(192 + (c >> 6 & 31), 128 + (c & 63));
300
306
  else {
301
307
  if ((x = c ^ 55296) >> 10 === 0) {
302
308
  c = (x << 10) + (s.charCodeAt(++i) ^ 56320) + 65536, r.push(240 + (c >> 18 & 7), 128 + (c >> 12 & 63));
303
- } else r.push(224 + (c >> 12 & 15));
309
+ } else
310
+ r.push(224 + (c >> 12 & 15));
304
311
  r.push(128 + (c >> 6 & 63), 128 + (c & 63));
305
312
  }
306
313
  }
@@ -308,7 +315,8 @@ function encodeUTF8(s) {
308
315
  }
309
316
  function udeskInit(config = {}) {
310
317
  var _a, _b, _c;
311
- if (window.ud) return;
318
+ if (window.ud)
319
+ return;
312
320
  const randomNum = generateRandomString(16);
313
321
  const nowTimeStr = Date.now().toString();
314
322
  const userInfo = localStorage$2.getItem("userInfo") || "";
@@ -365,8 +373,16 @@ var SceneValue = /* @__PURE__ */ ((SceneValue2) => {
365
373
  const REPO_PAGE_SIZE = {
366
374
  // 仓库页面头部高度
367
375
  HEADERS_HEIGHT: 56,
376
+ // 仓库页面头部高度(包含安全区域)
377
+ HEADERS_SAFE_HEIGHT: 96,
368
378
  // 仓库页面tabs菜单高度
369
- REPO_INFO_HEIGHT: 52
379
+ REPO_INFO_HEIGHT: 52,
380
+ // 仓库页面文件列表距离顶部距离
381
+ GAP_TOP: 32,
382
+ // 仓库页面文件列表距离底部距离
383
+ GAP_BOTTOM: 36,
384
+ // 仓库页面文件列表距离左右距离
385
+ PADDING_NORMAl: 16
370
386
  };
371
387
  var ToolsFloatDisplayItem = /* @__PURE__ */ ((ToolsFloatDisplayItem2) => {
372
388
  ToolsFloatDisplayItem2["GROWTH_CENTER"] = "0301";
@@ -436,23 +452,25 @@ const HARMONY_SURVEY_DELAY = "harmony-survey-delay";
436
452
  const UTM_SOURCE = "utm_source";
437
453
  const PASSPORT_PREFIX = "/uc";
438
454
  const AUTH_WINDOW = "auth_window";
439
- /*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */
440
- const {
441
- entries,
442
- setPrototypeOf,
443
- isFrozen,
444
- getPrototypeOf: getPrototypeOf$1,
445
- getOwnPropertyDescriptor
446
- } = Object;
447
- let {
448
- freeze,
449
- seal,
450
- create: create$1
451
- } = Object;
452
- let {
453
- apply: apply$1,
454
- construct
455
- } = typeof Reflect !== "undefined" && Reflect;
455
+ /*! @license DOMPurify 2.3.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.6/LICENSE */
456
+ function _toConsumableArray(arr) {
457
+ if (Array.isArray(arr)) {
458
+ for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
459
+ arr2[i] = arr[i];
460
+ }
461
+ return arr2;
462
+ } else {
463
+ return Array.from(arr);
464
+ }
465
+ }
466
+ var hasOwnProperty$c = Object.hasOwnProperty, setPrototypeOf = Object.setPrototypeOf, isFrozen = Object.isFrozen, getPrototypeOf$1 = Object.getPrototypeOf, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
467
+ var freeze = Object.freeze, seal = Object.seal, create$1 = Object.create;
468
+ var _ref = typeof Reflect !== "undefined" && Reflect, apply$1 = _ref.apply, construct = _ref.construct;
469
+ if (!apply$1) {
470
+ apply$1 = function apply2(fun, thisValue, args) {
471
+ return fun.apply(thisValue, args);
472
+ };
473
+ }
456
474
  if (!freeze) {
457
475
  freeze = function freeze2(x) {
458
476
  return x;
@@ -463,36 +481,24 @@ if (!seal) {
463
481
  return x;
464
482
  };
465
483
  }
466
- if (!apply$1) {
467
- apply$1 = function apply2(fun, thisValue, args) {
468
- return fun.apply(thisValue, args);
469
- };
470
- }
471
484
  if (!construct) {
472
485
  construct = function construct2(Func, args) {
473
- return new Func(...args);
486
+ return new (Function.prototype.bind.apply(Func, [null].concat(_toConsumableArray(args))))();
474
487
  };
475
488
  }
476
- const arrayForEach = unapply(Array.prototype.forEach);
477
- const arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
478
- const arrayPop = unapply(Array.prototype.pop);
479
- const arrayPush$3 = unapply(Array.prototype.push);
480
- const arraySplice = unapply(Array.prototype.splice);
481
- const stringToLowerCase = unapply(String.prototype.toLowerCase);
482
- const stringToString = unapply(String.prototype.toString);
483
- const stringMatch = unapply(String.prototype.match);
484
- const stringReplace = unapply(String.prototype.replace);
485
- const stringIndexOf = unapply(String.prototype.indexOf);
486
- const stringTrim = unapply(String.prototype.trim);
487
- const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
488
- const regExpTest = unapply(RegExp.prototype.test);
489
- const typeErrorCreate = unconstruct(TypeError);
489
+ var arrayForEach = unapply(Array.prototype.forEach);
490
+ var arrayPop = unapply(Array.prototype.pop);
491
+ var arrayPush$3 = unapply(Array.prototype.push);
492
+ var stringToLowerCase = unapply(String.prototype.toLowerCase);
493
+ var stringMatch = unapply(String.prototype.match);
494
+ var stringReplace = unapply(String.prototype.replace);
495
+ var stringIndexOf = unapply(String.prototype.indexOf);
496
+ var stringTrim = unapply(String.prototype.trim);
497
+ var regExpTest = unapply(RegExp.prototype.test);
498
+ var typeErrorCreate = unconstruct(TypeError);
490
499
  function unapply(func) {
491
500
  return function(thisArg) {
492
- if (thisArg instanceof RegExp) {
493
- thisArg.lastIndex = 0;
494
- }
495
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
501
+ for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
496
502
  args[_key - 1] = arguments[_key];
497
503
  }
498
504
  return apply$1(func, thisArg, args);
@@ -500,22 +506,21 @@ function unapply(func) {
500
506
  }
501
507
  function unconstruct(func) {
502
508
  return function() {
503
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
509
+ for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
504
510
  args[_key2] = arguments[_key2];
505
511
  }
506
512
  return construct(func, args);
507
513
  };
508
514
  }
509
515
  function addToSet(set, array) {
510
- let transformCaseFunc = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : stringToLowerCase;
511
516
  if (setPrototypeOf) {
512
517
  setPrototypeOf(set, null);
513
518
  }
514
- let l = array.length;
519
+ var l = array.length;
515
520
  while (l--) {
516
- let element = array[l];
521
+ var element = array[l];
517
522
  if (typeof element === "string") {
518
- const lcElement = transformCaseFunc(element);
523
+ var lcElement = stringToLowerCase(element);
519
524
  if (lcElement !== element) {
520
525
  if (!isFrozen(array)) {
521
526
  array[l] = lcElement;
@@ -527,34 +532,19 @@ function addToSet(set, array) {
527
532
  }
528
533
  return set;
529
534
  }
530
- function cleanArray(array) {
531
- for (let index2 = 0; index2 < array.length; index2++) {
532
- const isPropertyExist = objectHasOwnProperty(array, index2);
533
- if (!isPropertyExist) {
534
- array[index2] = null;
535
- }
536
- }
537
- return array;
538
- }
539
535
  function clone(object) {
540
- const newObject = create$1(null);
541
- for (const [property, value] of entries(object)) {
542
- const isPropertyExist = objectHasOwnProperty(object, property);
543
- if (isPropertyExist) {
544
- if (Array.isArray(value)) {
545
- newObject[property] = cleanArray(value);
546
- } else if (value && typeof value === "object" && value.constructor === Object) {
547
- newObject[property] = clone(value);
548
- } else {
549
- newObject[property] = value;
550
- }
536
+ var newObject = create$1(null);
537
+ var property = void 0;
538
+ for (property in object) {
539
+ if (apply$1(hasOwnProperty$c, object, [property])) {
540
+ newObject[property] = object[property];
551
541
  }
552
542
  }
553
543
  return newObject;
554
544
  }
555
545
  function lookupGetter(object, prop) {
556
546
  while (object !== null) {
557
- const desc = getOwnPropertyDescriptor(object, prop);
547
+ var desc = getOwnPropertyDescriptor(object, prop);
558
548
  if (desc) {
559
549
  if (desc.get) {
560
550
  return unapply(desc.get);
@@ -565,79 +555,69 @@ function lookupGetter(object, prop) {
565
555
  }
566
556
  object = getPrototypeOf$1(object);
567
557
  }
568
- function fallbackValue() {
558
+ function fallbackValue(element) {
559
+ console.warn("fallback value for", element);
569
560
  return null;
570
561
  }
571
562
  return fallbackValue;
572
563
  }
573
- const html$1 = freeze(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]);
574
- const svg$1 = freeze(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]);
575
- const svgFilters = freeze(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]);
576
- const svgDisallowed = freeze(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]);
577
- const mathMl$1 = freeze(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]);
578
- const mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]);
579
- const text = freeze(["#text"]);
580
- const html = freeze(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]);
581
- const svg = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]);
582
- const mathMl = freeze(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]);
583
- const xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]);
584
- const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm);
585
- const ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm);
586
- const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm);
587
- const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/);
588
- const ARIA_ATTR = seal(/^aria-[\-\w]+$/);
589
- const IS_ALLOWED_URI = seal(
590
- /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
564
+ var html = freeze(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]);
565
+ var svg = freeze(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]);
566
+ var svgFilters = freeze(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]);
567
+ var svgDisallowed = freeze(["animate", "color-profile", "cursor", "discard", "fedropshadow", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]);
568
+ var mathMl = freeze(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover"]);
569
+ var mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]);
570
+ var text = freeze(["#text"]);
571
+ var html$1 = freeze(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]);
572
+ var svg$1 = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]);
573
+ var mathMl$1 = freeze(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]);
574
+ var xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]);
575
+ var MUSTACHE_EXPR = seal(/\{\{[\s\S]*|[\s\S]*\}\}/gm);
576
+ var ERB_EXPR = seal(/<%[\s\S]*|[\s\S]*%>/gm);
577
+ var DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]/);
578
+ var ARIA_ATTR = seal(/^aria-[\-\w]+$/);
579
+ var IS_ALLOWED_URI = seal(
580
+ /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
591
581
  // eslint-disable-line no-useless-escape
592
582
  );
593
- const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
594
- const ATTR_WHITESPACE = seal(
583
+ var IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
584
+ var ATTR_WHITESPACE = seal(
595
585
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
596
586
  // eslint-disable-line no-control-regex
597
587
  );
598
- const DOCTYPE_NAME = seal(/^html$/i);
599
- const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
600
- var EXPRESSIONS = /* @__PURE__ */ Object.freeze({
601
- __proto__: null,
602
- ARIA_ATTR,
603
- ATTR_WHITESPACE,
604
- CUSTOM_ELEMENT,
605
- DATA_ATTR,
606
- DOCTYPE_NAME,
607
- ERB_EXPR,
608
- IS_ALLOWED_URI,
609
- IS_SCRIPT_OR_DATA,
610
- MUSTACHE_EXPR,
611
- TMPLIT_EXPR
612
- });
613
- const NODE_TYPE = {
614
- element: 1,
615
- text: 3,
616
- // Deprecated
617
- progressingInstruction: 7,
618
- comment: 8,
619
- document: 9
588
+ var DOCTYPE_NAME = seal(/^html$/i);
589
+ var _typeof$2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
590
+ return typeof obj;
591
+ } : function(obj) {
592
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
620
593
  };
621
- const getGlobal = function getGlobal2() {
594
+ function _toConsumableArray$1(arr) {
595
+ if (Array.isArray(arr)) {
596
+ for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
597
+ arr2[i] = arr[i];
598
+ }
599
+ return arr2;
600
+ } else {
601
+ return Array.from(arr);
602
+ }
603
+ }
604
+ var getGlobal = function getGlobal2() {
622
605
  return typeof window === "undefined" ? null : window;
623
606
  };
624
- const _createTrustedTypesPolicy = function _createTrustedTypesPolicy2(trustedTypes, purifyHostElement) {
625
- if (typeof trustedTypes !== "object" || typeof trustedTypes.createPolicy !== "function") {
607
+ var _createTrustedTypesPolicy = function _createTrustedTypesPolicy2(trustedTypes, document2) {
608
+ if ((typeof trustedTypes === "undefined" ? "undefined" : _typeof$2(trustedTypes)) !== "object" || typeof trustedTypes.createPolicy !== "function") {
626
609
  return null;
627
610
  }
628
- let suffix = null;
629
- const ATTR_NAME = "data-tt-policy-suffix";
630
- if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {
631
- suffix = purifyHostElement.getAttribute(ATTR_NAME);
611
+ var suffix = null;
612
+ var ATTR_NAME = "data-tt-policy-suffix";
613
+ if (document2.currentScript && document2.currentScript.hasAttribute(ATTR_NAME)) {
614
+ suffix = document2.currentScript.getAttribute(ATTR_NAME);
632
615
  }
633
- const policyName = "dompurify" + (suffix ? "#" + suffix : "");
616
+ var policyName = "dompurify" + (suffix ? "#" + suffix : "");
634
617
  try {
635
618
  return trustedTypes.createPolicy(policyName, {
636
- createHTML(html2) {
637
- return html2;
638
- },
639
- createScriptURL(scriptUrl) {
640
- return scriptUrl;
619
+ createHTML: function createHTML(html$$1) {
620
+ return html$$1;
641
621
  }
642
622
  });
643
623
  } catch (_) {
@@ -645,87 +625,49 @@ const _createTrustedTypesPolicy = function _createTrustedTypesPolicy2(trustedTyp
645
625
  return null;
646
626
  }
647
627
  };
648
- const _createHooksMap = function _createHooksMap2() {
649
- return {
650
- afterSanitizeAttributes: [],
651
- afterSanitizeElements: [],
652
- afterSanitizeShadowDOM: [],
653
- beforeSanitizeAttributes: [],
654
- beforeSanitizeElements: [],
655
- beforeSanitizeShadowDOM: [],
656
- uponSanitizeAttribute: [],
657
- uponSanitizeElement: [],
658
- uponSanitizeShadowNode: []
659
- };
660
- };
661
628
  function createDOMPurify() {
662
- let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
663
- const DOMPurify = (root2) => createDOMPurify(root2);
664
- DOMPurify.version = "3.2.5";
629
+ var window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
630
+ var DOMPurify = function DOMPurify2(root2) {
631
+ return createDOMPurify(root2);
632
+ };
633
+ DOMPurify.version = "2.3.6";
665
634
  DOMPurify.removed = [];
666
- if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
635
+ if (!window2 || !window2.document || window2.document.nodeType !== 9) {
667
636
  DOMPurify.isSupported = false;
668
637
  return DOMPurify;
669
638
  }
670
- let {
671
- document: document2
672
- } = window2;
673
- const originalDocument = document2;
674
- const currentScript = originalDocument.currentScript;
675
- const {
676
- DocumentFragment,
677
- HTMLTemplateElement,
678
- Node,
679
- Element,
680
- NodeFilter,
681
- NamedNodeMap = window2.NamedNodeMap || window2.MozNamedAttrMap,
682
- HTMLFormElement,
683
- DOMParser,
684
- trustedTypes
685
- } = window2;
686
- const ElementPrototype = Element.prototype;
687
- const cloneNode = lookupGetter(ElementPrototype, "cloneNode");
688
- const remove = lookupGetter(ElementPrototype, "remove");
689
- const getNextSibling = lookupGetter(ElementPrototype, "nextSibling");
690
- const getChildNodes = lookupGetter(ElementPrototype, "childNodes");
691
- const getParentNode = lookupGetter(ElementPrototype, "parentNode");
639
+ var originalDocument = window2.document;
640
+ var document2 = window2.document;
641
+ var DocumentFragment = window2.DocumentFragment, HTMLTemplateElement = window2.HTMLTemplateElement, Node = window2.Node, Element = window2.Element, NodeFilter = window2.NodeFilter, _window$NamedNodeMap = window2.NamedNodeMap, NamedNodeMap = _window$NamedNodeMap === void 0 ? window2.NamedNodeMap || window2.MozNamedAttrMap : _window$NamedNodeMap, HTMLFormElement = window2.HTMLFormElement, DOMParser = window2.DOMParser, trustedTypes = window2.trustedTypes;
642
+ var ElementPrototype = Element.prototype;
643
+ var cloneNode = lookupGetter(ElementPrototype, "cloneNode");
644
+ var getNextSibling = lookupGetter(ElementPrototype, "nextSibling");
645
+ var getChildNodes = lookupGetter(ElementPrototype, "childNodes");
646
+ var getParentNode = lookupGetter(ElementPrototype, "parentNode");
692
647
  if (typeof HTMLTemplateElement === "function") {
693
- const template = document2.createElement("template");
648
+ var template = document2.createElement("template");
694
649
  if (template.content && template.content.ownerDocument) {
695
650
  document2 = template.content.ownerDocument;
696
651
  }
697
652
  }
698
- let trustedTypesPolicy;
699
- let emptyHTML = "";
700
- const {
701
- implementation,
702
- createNodeIterator,
703
- createDocumentFragment,
704
- getElementsByTagName
705
- } = document2;
706
- const {
707
- importNode
708
- } = originalDocument;
709
- let hooks = _createHooksMap();
710
- DOMPurify.isSupported = typeof entries === "function" && typeof getParentNode === "function" && implementation && implementation.createHTMLDocument !== void 0;
711
- const {
712
- MUSTACHE_EXPR: MUSTACHE_EXPR2,
713
- ERB_EXPR: ERB_EXPR2,
714
- TMPLIT_EXPR: TMPLIT_EXPR2,
715
- DATA_ATTR: DATA_ATTR2,
716
- ARIA_ATTR: ARIA_ATTR2,
717
- IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA2,
718
- ATTR_WHITESPACE: ATTR_WHITESPACE2,
719
- CUSTOM_ELEMENT: CUSTOM_ELEMENT2
720
- } = EXPRESSIONS;
721
- let {
722
- IS_ALLOWED_URI: IS_ALLOWED_URI$1
723
- } = EXPRESSIONS;
724
- let ALLOWED_TAGS = null;
725
- const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);
726
- let ALLOWED_ATTR = null;
727
- const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);
728
- let CUSTOM_ELEMENT_HANDLING = Object.seal(create$1(null, {
653
+ var trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, originalDocument);
654
+ var emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML("") : "";
655
+ var _document = document2, implementation = _document.implementation, createNodeIterator = _document.createNodeIterator, createDocumentFragment = _document.createDocumentFragment, getElementsByTagName = _document.getElementsByTagName;
656
+ var importNode = originalDocument.importNode;
657
+ var documentMode = {};
658
+ try {
659
+ documentMode = clone(document2).documentMode ? document2.documentMode : {};
660
+ } catch (_) {
661
+ }
662
+ var hooks = {};
663
+ DOMPurify.isSupported = typeof getParentNode === "function" && implementation && typeof implementation.createHTMLDocument !== "undefined" && documentMode !== 9;
664
+ var MUSTACHE_EXPR$$1 = MUSTACHE_EXPR, ERB_EXPR$$1 = ERB_EXPR, DATA_ATTR$$1 = DATA_ATTR, ARIA_ATTR$$1 = ARIA_ATTR, IS_SCRIPT_OR_DATA$$1 = IS_SCRIPT_OR_DATA, ATTR_WHITESPACE$$1 = ATTR_WHITESPACE;
665
+ var IS_ALLOWED_URI$$1 = IS_ALLOWED_URI;
666
+ var ALLOWED_TAGS = null;
667
+ var DEFAULT_ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray$1(html), _toConsumableArray$1(svg), _toConsumableArray$1(svgFilters), _toConsumableArray$1(mathMl), _toConsumableArray$1(text)));
668
+ var ALLOWED_ATTR = null;
669
+ var DEFAULT_ALLOWED_ATTR = addToSet({}, [].concat(_toConsumableArray$1(html$1), _toConsumableArray$1(svg$1), _toConsumableArray$1(mathMl$1), _toConsumableArray$1(xml)));
670
+ var CUSTOM_ELEMENT_HANDLING = Object.seal(Object.create(null, {
729
671
  tagNameCheck: {
730
672
  writable: true,
731
673
  configurable: false,
@@ -745,92 +687,72 @@ function createDOMPurify() {
745
687
  value: false
746
688
  }
747
689
  }));
748
- let FORBID_TAGS = null;
749
- let FORBID_ATTR = null;
750
- let ALLOW_ARIA_ATTR = true;
751
- let ALLOW_DATA_ATTR = true;
752
- let ALLOW_UNKNOWN_PROTOCOLS = false;
753
- let ALLOW_SELF_CLOSE_IN_ATTR = true;
754
- let SAFE_FOR_TEMPLATES = false;
755
- let SAFE_FOR_XML = true;
756
- let WHOLE_DOCUMENT = false;
757
- let SET_CONFIG = false;
758
- let FORCE_BODY = false;
759
- let RETURN_DOM = false;
760
- let RETURN_DOM_FRAGMENT = false;
761
- let RETURN_TRUSTED_TYPE = false;
762
- let SANITIZE_DOM = true;
763
- let SANITIZE_NAMED_PROPS = false;
764
- const SANITIZE_NAMED_PROPS_PREFIX = "user-content-";
765
- let KEEP_CONTENT = true;
766
- let IN_PLACE = false;
767
- let USE_PROFILES = {};
768
- let FORBID_CONTENTS = null;
769
- const DEFAULT_FORBID_CONTENTS = addToSet({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
770
- let DATA_URI_TAGS = null;
771
- const DEFAULT_DATA_URI_TAGS = addToSet({}, ["audio", "video", "img", "source", "image", "track"]);
772
- let URI_SAFE_ATTRIBUTES = null;
773
- const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]);
774
- const MATHML_NAMESPACE = "http://www.w3.org/1998/Math/MathML";
775
- const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
776
- const HTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
777
- let NAMESPACE = HTML_NAMESPACE;
778
- let IS_EMPTY_INPUT = false;
779
- let ALLOWED_NAMESPACES = null;
780
- const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
781
- let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]);
782
- let HTML_INTEGRATION_POINTS = addToSet({}, ["annotation-xml"]);
783
- const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ["title", "style", "font", "a", "script"]);
784
- let PARSER_MEDIA_TYPE = null;
785
- const SUPPORTED_PARSER_MEDIA_TYPES = ["application/xhtml+xml", "text/html"];
786
- const DEFAULT_PARSER_MEDIA_TYPE = "text/html";
787
- let transformCaseFunc = null;
788
- let CONFIG = null;
789
- const formElement = document2.createElement("form");
790
- const isRegexOrFunction = function isRegexOrFunction2(testValue) {
690
+ var FORBID_TAGS = null;
691
+ var FORBID_ATTR = null;
692
+ var ALLOW_ARIA_ATTR = true;
693
+ var ALLOW_DATA_ATTR = true;
694
+ var ALLOW_UNKNOWN_PROTOCOLS = false;
695
+ var SAFE_FOR_TEMPLATES = false;
696
+ var WHOLE_DOCUMENT = false;
697
+ var SET_CONFIG = false;
698
+ var FORCE_BODY = false;
699
+ var RETURN_DOM = false;
700
+ var RETURN_DOM_FRAGMENT = false;
701
+ var RETURN_TRUSTED_TYPE = false;
702
+ var SANITIZE_DOM = true;
703
+ var KEEP_CONTENT = true;
704
+ var IN_PLACE = false;
705
+ var USE_PROFILES = {};
706
+ var FORBID_CONTENTS = null;
707
+ var DEFAULT_FORBID_CONTENTS = addToSet({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
708
+ var DATA_URI_TAGS = null;
709
+ var DEFAULT_DATA_URI_TAGS = addToSet({}, ["audio", "video", "img", "source", "image", "track"]);
710
+ var URI_SAFE_ATTRIBUTES = null;
711
+ var DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]);
712
+ var MATHML_NAMESPACE = "http://www.w3.org/1998/Math/MathML";
713
+ var SVG_NAMESPACE = "http://www.w3.org/2000/svg";
714
+ var HTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
715
+ var NAMESPACE = HTML_NAMESPACE;
716
+ var IS_EMPTY_INPUT = false;
717
+ var PARSER_MEDIA_TYPE = void 0;
718
+ var SUPPORTED_PARSER_MEDIA_TYPES = ["application/xhtml+xml", "text/html"];
719
+ var DEFAULT_PARSER_MEDIA_TYPE = "text/html";
720
+ var transformCaseFunc = void 0;
721
+ var CONFIG = null;
722
+ var formElement = document2.createElement("form");
723
+ var isRegexOrFunction = function isRegexOrFunction2(testValue) {
791
724
  return testValue instanceof RegExp || testValue instanceof Function;
792
725
  };
793
- const _parseConfig = function _parseConfig2() {
794
- let cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
726
+ var _parseConfig = function _parseConfig2(cfg) {
795
727
  if (CONFIG && CONFIG === cfg) {
796
728
  return;
797
729
  }
798
- if (!cfg || typeof cfg !== "object") {
730
+ if (!cfg || (typeof cfg === "undefined" ? "undefined" : _typeof$2(cfg)) !== "object") {
799
731
  cfg = {};
800
732
  }
801
733
  cfg = clone(cfg);
802
- PARSER_MEDIA_TYPE = // eslint-disable-next-line unicorn/prefer-includes
803
- SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;
804
- transformCaseFunc = PARSER_MEDIA_TYPE === "application/xhtml+xml" ? stringToString : stringToLowerCase;
805
- ALLOWED_TAGS = objectHasOwnProperty(cfg, "ALLOWED_TAGS") ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
806
- ALLOWED_ATTR = objectHasOwnProperty(cfg, "ALLOWED_ATTR") ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
807
- ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, "ALLOWED_NAMESPACES") ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
808
- URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, "ADD_URI_SAFE_ATTR") ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
809
- DATA_URI_TAGS = objectHasOwnProperty(cfg, "ADD_DATA_URI_TAGS") ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
810
- FORBID_CONTENTS = objectHasOwnProperty(cfg, "FORBID_CONTENTS") ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
811
- FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};
812
- FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};
813
- USE_PROFILES = objectHasOwnProperty(cfg, "USE_PROFILES") ? cfg.USE_PROFILES : false;
734
+ ALLOWED_TAGS = "ALLOWED_TAGS" in cfg ? addToSet({}, cfg.ALLOWED_TAGS) : DEFAULT_ALLOWED_TAGS;
735
+ ALLOWED_ATTR = "ALLOWED_ATTR" in cfg ? addToSet({}, cfg.ALLOWED_ATTR) : DEFAULT_ALLOWED_ATTR;
736
+ URI_SAFE_ATTRIBUTES = "ADD_URI_SAFE_ATTR" in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR) : DEFAULT_URI_SAFE_ATTRIBUTES;
737
+ DATA_URI_TAGS = "ADD_DATA_URI_TAGS" in cfg ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS) : DEFAULT_DATA_URI_TAGS;
738
+ FORBID_CONTENTS = "FORBID_CONTENTS" in cfg ? addToSet({}, cfg.FORBID_CONTENTS) : DEFAULT_FORBID_CONTENTS;
739
+ FORBID_TAGS = "FORBID_TAGS" in cfg ? addToSet({}, cfg.FORBID_TAGS) : {};
740
+ FORBID_ATTR = "FORBID_ATTR" in cfg ? addToSet({}, cfg.FORBID_ATTR) : {};
741
+ USE_PROFILES = "USE_PROFILES" in cfg ? cfg.USE_PROFILES : false;
814
742
  ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false;
815
743
  ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false;
816
744
  ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false;
817
- ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false;
818
745
  SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false;
819
- SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false;
820
746
  WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false;
821
747
  RETURN_DOM = cfg.RETURN_DOM || false;
822
748
  RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false;
823
749
  RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false;
824
750
  FORCE_BODY = cfg.FORCE_BODY || false;
825
751
  SANITIZE_DOM = cfg.SANITIZE_DOM !== false;
826
- SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false;
827
752
  KEEP_CONTENT = cfg.KEEP_CONTENT !== false;
828
753
  IN_PLACE = cfg.IN_PLACE || false;
829
- IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;
754
+ IS_ALLOWED_URI$$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI$$1;
830
755
  NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;
831
- MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS || MATHML_TEXT_INTEGRATION_POINTS;
832
- HTML_INTEGRATION_POINTS = cfg.HTML_INTEGRATION_POINTS || HTML_INTEGRATION_POINTS;
833
- CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};
834
756
  if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {
835
757
  CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;
836
758
  }
@@ -840,6 +762,11 @@ function createDOMPurify() {
840
762
  if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === "boolean") {
841
763
  CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;
842
764
  }
765
+ PARSER_MEDIA_TYPE = // eslint-disable-next-line unicorn/prefer-includes
766
+ SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE : PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE;
767
+ transformCaseFunc = PARSER_MEDIA_TYPE === "application/xhtml+xml" ? function(x) {
768
+ return x;
769
+ } : stringToLowerCase;
843
770
  if (SAFE_FOR_TEMPLATES) {
844
771
  ALLOW_DATA_ATTR = false;
845
772
  }
@@ -847,25 +774,25 @@ function createDOMPurify() {
847
774
  RETURN_DOM = true;
848
775
  }
849
776
  if (USE_PROFILES) {
850
- ALLOWED_TAGS = addToSet({}, text);
777
+ ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray$1(text)));
851
778
  ALLOWED_ATTR = [];
852
779
  if (USE_PROFILES.html === true) {
853
- addToSet(ALLOWED_TAGS, html$1);
854
- addToSet(ALLOWED_ATTR, html);
780
+ addToSet(ALLOWED_TAGS, html);
781
+ addToSet(ALLOWED_ATTR, html$1);
855
782
  }
856
783
  if (USE_PROFILES.svg === true) {
857
- addToSet(ALLOWED_TAGS, svg$1);
858
- addToSet(ALLOWED_ATTR, svg);
784
+ addToSet(ALLOWED_TAGS, svg);
785
+ addToSet(ALLOWED_ATTR, svg$1);
859
786
  addToSet(ALLOWED_ATTR, xml);
860
787
  }
861
788
  if (USE_PROFILES.svgFilters === true) {
862
789
  addToSet(ALLOWED_TAGS, svgFilters);
863
- addToSet(ALLOWED_ATTR, svg);
790
+ addToSet(ALLOWED_ATTR, svg$1);
864
791
  addToSet(ALLOWED_ATTR, xml);
865
792
  }
866
793
  if (USE_PROFILES.mathMl === true) {
867
- addToSet(ALLOWED_TAGS, mathMl$1);
868
- addToSet(ALLOWED_ATTR, mathMl);
794
+ addToSet(ALLOWED_TAGS, mathMl);
795
+ addToSet(ALLOWED_ATTR, mathMl$1);
869
796
  addToSet(ALLOWED_ATTR, xml);
870
797
  }
871
798
  }
@@ -873,22 +800,22 @@ function createDOMPurify() {
873
800
  if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
874
801
  ALLOWED_TAGS = clone(ALLOWED_TAGS);
875
802
  }
876
- addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
803
+ addToSet(ALLOWED_TAGS, cfg.ADD_TAGS);
877
804
  }
878
805
  if (cfg.ADD_ATTR) {
879
806
  if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
880
807
  ALLOWED_ATTR = clone(ALLOWED_ATTR);
881
808
  }
882
- addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
809
+ addToSet(ALLOWED_ATTR, cfg.ADD_ATTR);
883
810
  }
884
811
  if (cfg.ADD_URI_SAFE_ATTR) {
885
- addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
812
+ addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR);
886
813
  }
887
814
  if (cfg.FORBID_CONTENTS) {
888
815
  if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
889
816
  FORBID_CONTENTS = clone(FORBID_CONTENTS);
890
817
  }
891
- addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
818
+ addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS);
892
819
  }
893
820
  if (KEEP_CONTENT) {
894
821
  ALLOWED_TAGS["#text"] = true;
@@ -900,43 +827,28 @@ function createDOMPurify() {
900
827
  addToSet(ALLOWED_TAGS, ["tbody"]);
901
828
  delete FORBID_TAGS.tbody;
902
829
  }
903
- if (cfg.TRUSTED_TYPES_POLICY) {
904
- if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== "function") {
905
- throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
906
- }
907
- if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== "function") {
908
- throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
909
- }
910
- trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
911
- emptyHTML = trustedTypesPolicy.createHTML("");
912
- } else {
913
- if (trustedTypesPolicy === void 0) {
914
- trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
915
- }
916
- if (trustedTypesPolicy !== null && typeof emptyHTML === "string") {
917
- emptyHTML = trustedTypesPolicy.createHTML("");
918
- }
919
- }
920
830
  if (freeze) {
921
831
  freeze(cfg);
922
832
  }
923
833
  CONFIG = cfg;
924
834
  };
925
- const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
926
- const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
927
- const _checkValidNamespace = function _checkValidNamespace2(element) {
928
- let parent = getParentNode(element);
835
+ var MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]);
836
+ var HTML_INTEGRATION_POINTS = addToSet({}, ["foreignobject", "desc", "title", "annotation-xml"]);
837
+ var ALL_SVG_TAGS = addToSet({}, svg);
838
+ addToSet(ALL_SVG_TAGS, svgFilters);
839
+ addToSet(ALL_SVG_TAGS, svgDisallowed);
840
+ var ALL_MATHML_TAGS = addToSet({}, mathMl);
841
+ addToSet(ALL_MATHML_TAGS, mathMlDisallowed);
842
+ var _checkValidNamespace = function _checkValidNamespace2(element) {
843
+ var parent = getParentNode(element);
929
844
  if (!parent || !parent.tagName) {
930
845
  parent = {
931
- namespaceURI: NAMESPACE,
846
+ namespaceURI: HTML_NAMESPACE,
932
847
  tagName: "template"
933
848
  };
934
849
  }
935
- const tagName = stringToLowerCase(element.tagName);
936
- const parentTagName = stringToLowerCase(parent.tagName);
937
- if (!ALLOWED_NAMESPACES[element.namespaceURI]) {
938
- return false;
939
- }
850
+ var tagName = stringToLowerCase(element.tagName);
851
+ var parentTagName = stringToLowerCase(parent.tagName);
940
852
  if (element.namespaceURI === SVG_NAMESPACE) {
941
853
  if (parent.namespaceURI === HTML_NAMESPACE) {
942
854
  return tagName === "svg";
@@ -962,63 +874,63 @@ function createDOMPurify() {
962
874
  if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
963
875
  return false;
964
876
  }
965
- return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
966
- }
967
- if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && ALLOWED_NAMESPACES[element.namespaceURI]) {
968
- return true;
877
+ var commonSvgAndHTMLElements = addToSet({}, ["title", "style", "font", "a", "script"]);
878
+ return !ALL_MATHML_TAGS[tagName] && (commonSvgAndHTMLElements[tagName] || !ALL_SVG_TAGS[tagName]);
969
879
  }
970
880
  return false;
971
881
  };
972
- const _forceRemove = function _forceRemove2(node) {
973
- arrayPush$3(DOMPurify.removed, {
974
- element: node
975
- });
882
+ var _forceRemove = function _forceRemove2(node) {
883
+ arrayPush$3(DOMPurify.removed, { element: node });
976
884
  try {
977
- getParentNode(node).removeChild(node);
885
+ node.parentNode.removeChild(node);
978
886
  } catch (_) {
979
- remove(node);
887
+ try {
888
+ node.outerHTML = emptyHTML;
889
+ } catch (_2) {
890
+ node.remove();
891
+ }
980
892
  }
981
893
  };
982
- const _removeAttribute = function _removeAttribute2(name, element) {
894
+ var _removeAttribute = function _removeAttribute2(name, node) {
983
895
  try {
984
896
  arrayPush$3(DOMPurify.removed, {
985
- attribute: element.getAttributeNode(name),
986
- from: element
897
+ attribute: node.getAttributeNode(name),
898
+ from: node
987
899
  });
988
900
  } catch (_) {
989
901
  arrayPush$3(DOMPurify.removed, {
990
902
  attribute: null,
991
- from: element
903
+ from: node
992
904
  });
993
905
  }
994
- element.removeAttribute(name);
995
- if (name === "is") {
906
+ node.removeAttribute(name);
907
+ if (name === "is" && !ALLOWED_ATTR[name]) {
996
908
  if (RETURN_DOM || RETURN_DOM_FRAGMENT) {
997
909
  try {
998
- _forceRemove(element);
910
+ _forceRemove(node);
999
911
  } catch (_) {
1000
912
  }
1001
913
  } else {
1002
914
  try {
1003
- element.setAttribute(name, "");
915
+ node.setAttribute(name, "");
1004
916
  } catch (_) {
1005
917
  }
1006
918
  }
1007
919
  }
1008
920
  };
1009
- const _initDocument = function _initDocument2(dirty) {
1010
- let doc = null;
1011
- let leadingWhitespace = null;
921
+ var _initDocument = function _initDocument2(dirty) {
922
+ var doc = void 0;
923
+ var leadingWhitespace = void 0;
1012
924
  if (FORCE_BODY) {
1013
925
  dirty = "<remove></remove>" + dirty;
1014
926
  } else {
1015
- const matches = stringMatch(dirty, /^[\r\n\t ]+/);
927
+ var matches = stringMatch(dirty, /^[\r\n\t ]+/);
1016
928
  leadingWhitespace = matches && matches[0];
1017
929
  }
1018
- if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && NAMESPACE === HTML_NAMESPACE) {
930
+ if (PARSER_MEDIA_TYPE === "application/xhtml+xml") {
1019
931
  dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + "</body></html>";
1020
932
  }
1021
- const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;
933
+ var dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;
1022
934
  if (NAMESPACE === HTML_NAMESPACE) {
1023
935
  try {
1024
936
  doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);
@@ -1028,11 +940,11 @@ function createDOMPurify() {
1028
940
  if (!doc || !doc.documentElement) {
1029
941
  doc = implementation.createDocument(NAMESPACE, "template", null);
1030
942
  try {
1031
- doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;
943
+ doc.documentElement.innerHTML = IS_EMPTY_INPUT ? "" : dirtyPayload;
1032
944
  } catch (_) {
1033
945
  }
1034
946
  }
1035
- const body = doc.body || doc.documentElement;
947
+ var body = doc.body || doc.documentElement;
1036
948
  if (dirty && leadingWhitespace) {
1037
949
  body.insertBefore(document2.createTextNode(leadingWhitespace), body.childNodes[0] || null);
1038
950
  }
@@ -1041,68 +953,68 @@ function createDOMPurify() {
1041
953
  }
1042
954
  return WHOLE_DOCUMENT ? doc.documentElement : body;
1043
955
  };
1044
- const _createNodeIterator = function _createNodeIterator2(root2) {
956
+ var _createIterator = function _createIterator2(root2) {
1045
957
  return createNodeIterator.call(
1046
958
  root2.ownerDocument || root2,
1047
959
  root2,
1048
960
  // eslint-disable-next-line no-bitwise
1049
- NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION,
1050
- null
961
+ NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT,
962
+ null,
963
+ false
1051
964
  );
1052
965
  };
1053
- const _isClobbered = function _isClobbered2(element) {
1054
- return element instanceof HTMLFormElement && (typeof element.nodeName !== "string" || typeof element.textContent !== "string" || typeof element.removeChild !== "function" || !(element.attributes instanceof NamedNodeMap) || typeof element.removeAttribute !== "function" || typeof element.setAttribute !== "function" || typeof element.namespaceURI !== "string" || typeof element.insertBefore !== "function" || typeof element.hasChildNodes !== "function");
966
+ var _isClobbered = function _isClobbered2(elm) {
967
+ return elm instanceof HTMLFormElement && (typeof elm.nodeName !== "string" || typeof elm.textContent !== "string" || typeof elm.removeChild !== "function" || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== "function" || typeof elm.setAttribute !== "function" || typeof elm.namespaceURI !== "string" || typeof elm.insertBefore !== "function");
1055
968
  };
1056
- const _isNode = function _isNode2(value) {
1057
- return typeof Node === "function" && value instanceof Node;
969
+ var _isNode = function _isNode2(object) {
970
+ return (typeof Node === "undefined" ? "undefined" : _typeof$2(Node)) === "object" ? object instanceof Node : object && (typeof object === "undefined" ? "undefined" : _typeof$2(object)) === "object" && typeof object.nodeType === "number" && typeof object.nodeName === "string";
1058
971
  };
1059
- function _executeHooks(hooks2, currentNode, data) {
1060
- arrayForEach(hooks2, (hook) => {
972
+ var _executeHook = function _executeHook2(entryPoint, currentNode, data) {
973
+ if (!hooks[entryPoint]) {
974
+ return;
975
+ }
976
+ arrayForEach(hooks[entryPoint], function(hook) {
1061
977
  hook.call(DOMPurify, currentNode, data, CONFIG);
1062
978
  });
1063
- }
1064
- const _sanitizeElements = function _sanitizeElements2(currentNode) {
1065
- let content = null;
1066
- _executeHooks(hooks.beforeSanitizeElements, currentNode, null);
979
+ };
980
+ var _sanitizeElements = function _sanitizeElements2(currentNode) {
981
+ var content = void 0;
982
+ _executeHook("beforeSanitizeElements", currentNode, null);
1067
983
  if (_isClobbered(currentNode)) {
1068
984
  _forceRemove(currentNode);
1069
985
  return true;
1070
986
  }
1071
- const tagName = transformCaseFunc(currentNode.nodeName);
1072
- _executeHooks(hooks.uponSanitizeElement, currentNode, {
1073
- tagName,
1074
- allowedTags: ALLOWED_TAGS
1075
- });
1076
- if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
987
+ if (stringMatch(currentNode.nodeName, /[\u0080-\uFFFF]/)) {
1077
988
  _forceRemove(currentNode);
1078
989
  return true;
1079
990
  }
1080
- if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
991
+ var tagName = transformCaseFunc(currentNode.nodeName);
992
+ _executeHook("uponSanitizeElement", currentNode, {
993
+ tagName,
994
+ allowedTags: ALLOWED_TAGS
995
+ });
996
+ if (!_isNode(currentNode.firstElementChild) && (!_isNode(currentNode.content) || !_isNode(currentNode.content.firstElementChild)) && regExpTest(/<[/\w]/g, currentNode.innerHTML) && regExpTest(/<[/\w]/g, currentNode.textContent)) {
1081
997
  _forceRemove(currentNode);
1082
998
  return true;
1083
999
  }
1084
- if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, currentNode.data)) {
1000
+ if (tagName === "select" && regExpTest(/<template/i, currentNode.innerHTML)) {
1085
1001
  _forceRemove(currentNode);
1086
1002
  return true;
1087
1003
  }
1088
1004
  if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
1089
- if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
1090
- if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
1005
+ if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) {
1006
+ if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName))
1091
1007
  return false;
1092
- }
1093
- if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {
1008
+ if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName))
1094
1009
  return false;
1095
- }
1096
1010
  }
1097
1011
  if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
1098
- const parentNode = getParentNode(currentNode) || currentNode.parentNode;
1099
- const childNodes = getChildNodes(currentNode) || currentNode.childNodes;
1012
+ var parentNode = getParentNode(currentNode) || currentNode.parentNode;
1013
+ var childNodes = getChildNodes(currentNode) || currentNode.childNodes;
1100
1014
  if (childNodes && parentNode) {
1101
- const childCount = childNodes.length;
1102
- for (let i = childCount - 1; i >= 0; --i) {
1103
- const childClone = cloneNode(childNodes[i], true);
1104
- childClone.__removalCount = (currentNode.__removalCount || 0) + 1;
1105
- parentNode.insertBefore(childClone, getNextSibling(currentNode));
1015
+ var childCount = childNodes.length;
1016
+ for (var i = childCount - 1; i >= 0; --i) {
1017
+ parentNode.insertBefore(cloneNode(childNodes[i], true), getNextSibling(currentNode));
1106
1018
  }
1107
1019
  }
1108
1020
  }
@@ -1113,94 +1025,89 @@ function createDOMPurify() {
1113
1025
  _forceRemove(currentNode);
1114
1026
  return true;
1115
1027
  }
1116
- if ((tagName === "noscript" || tagName === "noembed" || tagName === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, currentNode.innerHTML)) {
1028
+ if ((tagName === "noscript" || tagName === "noembed") && regExpTest(/<\/no(script|embed)/i, currentNode.innerHTML)) {
1117
1029
  _forceRemove(currentNode);
1118
1030
  return true;
1119
1031
  }
1120
- if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
1032
+ if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {
1121
1033
  content = currentNode.textContent;
1122
- arrayForEach([MUSTACHE_EXPR2, ERB_EXPR2, TMPLIT_EXPR2], (expr) => {
1123
- content = stringReplace(content, expr, " ");
1124
- });
1034
+ content = stringReplace(content, MUSTACHE_EXPR$$1, " ");
1035
+ content = stringReplace(content, ERB_EXPR$$1, " ");
1125
1036
  if (currentNode.textContent !== content) {
1126
- arrayPush$3(DOMPurify.removed, {
1127
- element: currentNode.cloneNode()
1128
- });
1037
+ arrayPush$3(DOMPurify.removed, { element: currentNode.cloneNode() });
1129
1038
  currentNode.textContent = content;
1130
1039
  }
1131
1040
  }
1132
- _executeHooks(hooks.afterSanitizeElements, currentNode, null);
1041
+ _executeHook("afterSanitizeElements", currentNode, null);
1133
1042
  return false;
1134
1043
  };
1135
- const _isValidAttribute = function _isValidAttribute2(lcTag, lcName, value) {
1044
+ var _isValidAttribute = function _isValidAttribute2(lcTag, lcName, value) {
1136
1045
  if (SANITIZE_DOM && (lcName === "id" || lcName === "name") && (value in document2 || value in formElement)) {
1137
1046
  return false;
1138
1047
  }
1139
- if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR2, lcName)) ;
1140
- else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR2, lcName)) ;
1048
+ if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR$$1, lcName))
1049
+ ;
1050
+ else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$$1, lcName))
1051
+ ;
1141
1052
  else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
1142
1053
  if (
1143
1054
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
1144
1055
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
1145
1056
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
1146
- _isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) || // Alternative, second condition checks if it's an `is`-attribute, AND
1057
+ _basicCustomElementTest(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) || // Alternative, second condition checks if it's an `is`-attribute, AND
1147
1058
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
1148
1059
  lcName === "is" && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))
1149
- ) ;
1060
+ )
1061
+ ;
1150
1062
  else {
1151
1063
  return false;
1152
1064
  }
1153
- } else if (URI_SAFE_ATTRIBUTES[lcName]) ;
1154
- else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE2, ""))) ;
1155
- else if ((lcName === "src" || lcName === "xlink:href" || lcName === "href") && lcTag !== "script" && stringIndexOf(value, "data:") === 0 && DATA_URI_TAGS[lcTag]) ;
1156
- else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA2, stringReplace(value, ATTR_WHITESPACE2, ""))) ;
1157
- else if (value) {
1065
+ } else if (URI_SAFE_ATTRIBUTES[lcName])
1066
+ ;
1067
+ else if (regExpTest(IS_ALLOWED_URI$$1, stringReplace(value, ATTR_WHITESPACE$$1, "")))
1068
+ ;
1069
+ else if ((lcName === "src" || lcName === "xlink:href" || lcName === "href") && lcTag !== "script" && stringIndexOf(value, "data:") === 0 && DATA_URI_TAGS[lcTag])
1070
+ ;
1071
+ else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$$1, stringReplace(value, ATTR_WHITESPACE$$1, "")))
1072
+ ;
1073
+ else if (!value)
1074
+ ;
1075
+ else {
1158
1076
  return false;
1159
- } else ;
1077
+ }
1160
1078
  return true;
1161
1079
  };
1162
- const _isBasicCustomElement = function _isBasicCustomElement2(tagName) {
1163
- return tagName !== "annotation-xml" && stringMatch(tagName, CUSTOM_ELEMENT2);
1080
+ var _basicCustomElementTest = function _basicCustomElementTest2(tagName) {
1081
+ return tagName.indexOf("-") > 0;
1164
1082
  };
1165
- const _sanitizeAttributes = function _sanitizeAttributes2(currentNode) {
1166
- _executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
1167
- const {
1168
- attributes
1169
- } = currentNode;
1170
- if (!attributes || _isClobbered(currentNode)) {
1083
+ var _sanitizeAttributes = function _sanitizeAttributes2(currentNode) {
1084
+ var attr = void 0;
1085
+ var value = void 0;
1086
+ var lcName = void 0;
1087
+ var l = void 0;
1088
+ _executeHook("beforeSanitizeAttributes", currentNode, null);
1089
+ var attributes = currentNode.attributes;
1090
+ if (!attributes) {
1171
1091
  return;
1172
1092
  }
1173
- const hookEvent = {
1093
+ var hookEvent = {
1174
1094
  attrName: "",
1175
1095
  attrValue: "",
1176
1096
  keepAttr: true,
1177
- allowedAttributes: ALLOWED_ATTR,
1178
- forceKeepAttr: void 0
1097
+ allowedAttributes: ALLOWED_ATTR
1179
1098
  };
1180
- let l = attributes.length;
1099
+ l = attributes.length;
1181
1100
  while (l--) {
1182
- const attr = attributes[l];
1183
- const {
1184
- name,
1185
- namespaceURI,
1186
- value: attrValue
1187
- } = attr;
1188
- const lcName = transformCaseFunc(name);
1189
- let value = name === "value" ? attrValue : stringTrim(attrValue);
1101
+ attr = attributes[l];
1102
+ var _attr = attr, name = _attr.name, namespaceURI = _attr.namespaceURI;
1103
+ value = stringTrim(attr.value);
1104
+ lcName = transformCaseFunc(name);
1190
1105
  hookEvent.attrName = lcName;
1191
1106
  hookEvent.attrValue = value;
1192
1107
  hookEvent.keepAttr = true;
1193
1108
  hookEvent.forceKeepAttr = void 0;
1194
- _executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent);
1109
+ _executeHook("uponSanitizeAttribute", currentNode, hookEvent);
1195
1110
  value = hookEvent.attrValue;
1196
- if (SANITIZE_NAMED_PROPS && (lcName === "id" || lcName === "name")) {
1197
- _removeAttribute(name, currentNode);
1198
- value = SANITIZE_NAMED_PROPS_PREFIX + value;
1199
- }
1200
- if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
1201
- _removeAttribute(name, currentNode);
1202
- continue;
1203
- }
1204
1111
  if (hookEvent.forceKeepAttr) {
1205
1112
  continue;
1206
1113
  }
@@ -1208,85 +1115,75 @@ function createDOMPurify() {
1208
1115
  if (!hookEvent.keepAttr) {
1209
1116
  continue;
1210
1117
  }
1211
- if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
1118
+ if (regExpTest(/\/>/i, value)) {
1212
1119
  _removeAttribute(name, currentNode);
1213
1120
  continue;
1214
1121
  }
1215
1122
  if (SAFE_FOR_TEMPLATES) {
1216
- arrayForEach([MUSTACHE_EXPR2, ERB_EXPR2, TMPLIT_EXPR2], (expr) => {
1217
- value = stringReplace(value, expr, " ");
1218
- });
1123
+ value = stringReplace(value, MUSTACHE_EXPR$$1, " ");
1124
+ value = stringReplace(value, ERB_EXPR$$1, " ");
1219
1125
  }
1220
- const lcTag = transformCaseFunc(currentNode.nodeName);
1126
+ var lcTag = transformCaseFunc(currentNode.nodeName);
1221
1127
  if (!_isValidAttribute(lcTag, lcName, value)) {
1222
1128
  continue;
1223
1129
  }
1224
- if (trustedTypesPolicy && typeof trustedTypes === "object" && typeof trustedTypes.getAttributeType === "function") {
1225
- if (namespaceURI) ;
1226
- else {
1227
- switch (trustedTypes.getAttributeType(lcTag, lcName)) {
1228
- case "TrustedHTML": {
1229
- value = trustedTypesPolicy.createHTML(value);
1230
- break;
1231
- }
1232
- case "TrustedScriptURL": {
1233
- value = trustedTypesPolicy.createScriptURL(value);
1234
- break;
1235
- }
1236
- }
1237
- }
1238
- }
1239
1130
  try {
1240
1131
  if (namespaceURI) {
1241
1132
  currentNode.setAttributeNS(namespaceURI, name, value);
1242
1133
  } else {
1243
1134
  currentNode.setAttribute(name, value);
1244
1135
  }
1245
- if (_isClobbered(currentNode)) {
1246
- _forceRemove(currentNode);
1247
- } else {
1248
- arrayPop(DOMPurify.removed);
1249
- }
1136
+ arrayPop(DOMPurify.removed);
1250
1137
  } catch (_) {
1251
1138
  }
1252
1139
  }
1253
- _executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
1140
+ _executeHook("afterSanitizeAttributes", currentNode, null);
1254
1141
  };
1255
- const _sanitizeShadowDOM = function _sanitizeShadowDOM2(fragment) {
1256
- let shadowNode = null;
1257
- const shadowIterator = _createNodeIterator(fragment);
1258
- _executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
1142
+ var _sanitizeShadowDOM = function _sanitizeShadowDOM2(fragment) {
1143
+ var shadowNode = void 0;
1144
+ var shadowIterator = _createIterator(fragment);
1145
+ _executeHook("beforeSanitizeShadowDOM", fragment, null);
1259
1146
  while (shadowNode = shadowIterator.nextNode()) {
1260
- _executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
1261
- _sanitizeElements(shadowNode);
1262
- _sanitizeAttributes(shadowNode);
1147
+ _executeHook("uponSanitizeShadowNode", shadowNode, null);
1148
+ if (_sanitizeElements(shadowNode)) {
1149
+ continue;
1150
+ }
1263
1151
  if (shadowNode.content instanceof DocumentFragment) {
1264
1152
  _sanitizeShadowDOM2(shadowNode.content);
1265
1153
  }
1154
+ _sanitizeAttributes(shadowNode);
1266
1155
  }
1267
- _executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
1156
+ _executeHook("afterSanitizeShadowDOM", fragment, null);
1268
1157
  };
1269
- DOMPurify.sanitize = function(dirty) {
1270
- let cfg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1271
- let body = null;
1272
- let importedNode = null;
1273
- let currentNode = null;
1274
- let returnNode = null;
1158
+ DOMPurify.sanitize = function(dirty, cfg) {
1159
+ var body = void 0;
1160
+ var importedNode = void 0;
1161
+ var currentNode = void 0;
1162
+ var oldNode = void 0;
1163
+ var returnNode = void 0;
1275
1164
  IS_EMPTY_INPUT = !dirty;
1276
1165
  if (IS_EMPTY_INPUT) {
1277
1166
  dirty = "<!-->";
1278
1167
  }
1279
1168
  if (typeof dirty !== "string" && !_isNode(dirty)) {
1280
- if (typeof dirty.toString === "function") {
1169
+ if (typeof dirty.toString !== "function") {
1170
+ throw typeErrorCreate("toString is not a function");
1171
+ } else {
1281
1172
  dirty = dirty.toString();
1282
1173
  if (typeof dirty !== "string") {
1283
1174
  throw typeErrorCreate("dirty is not a string, aborting");
1284
1175
  }
1285
- } else {
1286
- throw typeErrorCreate("toString is not a function");
1287
1176
  }
1288
1177
  }
1289
1178
  if (!DOMPurify.isSupported) {
1179
+ if (_typeof$2(window2.toStaticHTML) === "object" || typeof window2.toStaticHTML === "function") {
1180
+ if (typeof dirty === "string") {
1181
+ return window2.toStaticHTML(dirty);
1182
+ }
1183
+ if (_isNode(dirty)) {
1184
+ return window2.toStaticHTML(dirty.outerHTML);
1185
+ }
1186
+ }
1290
1187
  return dirty;
1291
1188
  }
1292
1189
  if (!SET_CONFIG) {
@@ -1298,7 +1195,7 @@ function createDOMPurify() {
1298
1195
  }
1299
1196
  if (IN_PLACE) {
1300
1197
  if (dirty.nodeName) {
1301
- const tagName = transformCaseFunc(dirty.nodeName);
1198
+ var tagName = transformCaseFunc(dirty.nodeName);
1302
1199
  if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
1303
1200
  throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
1304
1201
  }
@@ -1306,7 +1203,7 @@ function createDOMPurify() {
1306
1203
  } else if (dirty instanceof Node) {
1307
1204
  body = _initDocument("<!---->");
1308
1205
  importedNode = body.ownerDocument.importNode(dirty, true);
1309
- if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === "BODY") {
1206
+ if (importedNode.nodeType === 1 && importedNode.nodeName === "BODY") {
1310
1207
  body = importedNode;
1311
1208
  } else if (importedNode.nodeName === "HTML") {
1312
1209
  body = importedNode;
@@ -1326,14 +1223,21 @@ function createDOMPurify() {
1326
1223
  if (body && FORCE_BODY) {
1327
1224
  _forceRemove(body.firstChild);
1328
1225
  }
1329
- const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);
1226
+ var nodeIterator = _createIterator(IN_PLACE ? dirty : body);
1330
1227
  while (currentNode = nodeIterator.nextNode()) {
1331
- _sanitizeElements(currentNode);
1332
- _sanitizeAttributes(currentNode);
1228
+ if (currentNode.nodeType === 3 && currentNode === oldNode) {
1229
+ continue;
1230
+ }
1231
+ if (_sanitizeElements(currentNode)) {
1232
+ continue;
1233
+ }
1333
1234
  if (currentNode.content instanceof DocumentFragment) {
1334
1235
  _sanitizeShadowDOM(currentNode.content);
1335
1236
  }
1237
+ _sanitizeAttributes(currentNode);
1238
+ oldNode = currentNode;
1336
1239
  }
1240
+ oldNode = null;
1337
1241
  if (IN_PLACE) {
1338
1242
  return dirty;
1339
1243
  }
@@ -1346,24 +1250,22 @@ function createDOMPurify() {
1346
1250
  } else {
1347
1251
  returnNode = body;
1348
1252
  }
1349
- if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {
1253
+ if (ALLOWED_ATTR.shadowroot) {
1350
1254
  returnNode = importNode.call(originalDocument, returnNode, true);
1351
1255
  }
1352
1256
  return returnNode;
1353
1257
  }
1354
- let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
1258
+ var serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
1355
1259
  if (WHOLE_DOCUMENT && ALLOWED_TAGS["!doctype"] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {
1356
1260
  serializedHTML = "<!DOCTYPE " + body.ownerDocument.doctype.name + ">\n" + serializedHTML;
1357
1261
  }
1358
1262
  if (SAFE_FOR_TEMPLATES) {
1359
- arrayForEach([MUSTACHE_EXPR2, ERB_EXPR2, TMPLIT_EXPR2], (expr) => {
1360
- serializedHTML = stringReplace(serializedHTML, expr, " ");
1361
- });
1263
+ serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR$$1, " ");
1264
+ serializedHTML = stringReplace(serializedHTML, ERB_EXPR$$1, " ");
1362
1265
  }
1363
1266
  return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;
1364
1267
  };
1365
- DOMPurify.setConfig = function() {
1366
- let cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1268
+ DOMPurify.setConfig = function(cfg) {
1367
1269
  _parseConfig(cfg);
1368
1270
  SET_CONFIG = true;
1369
1271
  };
@@ -1375,28 +1277,29 @@ function createDOMPurify() {
1375
1277
  if (!CONFIG) {
1376
1278
  _parseConfig({});
1377
1279
  }
1378
- const lcTag = transformCaseFunc(tag);
1379
- const lcName = transformCaseFunc(attr);
1280
+ var lcTag = transformCaseFunc(tag);
1281
+ var lcName = transformCaseFunc(attr);
1380
1282
  return _isValidAttribute(lcTag, lcName, value);
1381
1283
  };
1382
1284
  DOMPurify.addHook = function(entryPoint, hookFunction) {
1383
1285
  if (typeof hookFunction !== "function") {
1384
1286
  return;
1385
1287
  }
1288
+ hooks[entryPoint] = hooks[entryPoint] || [];
1386
1289
  arrayPush$3(hooks[entryPoint], hookFunction);
1387
1290
  };
1388
- DOMPurify.removeHook = function(entryPoint, hookFunction) {
1389
- if (hookFunction !== void 0) {
1390
- const index2 = arrayLastIndexOf(hooks[entryPoint], hookFunction);
1391
- return index2 === -1 ? void 0 : arraySplice(hooks[entryPoint], index2, 1)[0];
1291
+ DOMPurify.removeHook = function(entryPoint) {
1292
+ if (hooks[entryPoint]) {
1293
+ arrayPop(hooks[entryPoint]);
1392
1294
  }
1393
- return arrayPop(hooks[entryPoint]);
1394
1295
  };
1395
1296
  DOMPurify.removeHooks = function(entryPoint) {
1396
- hooks[entryPoint] = [];
1297
+ if (hooks[entryPoint]) {
1298
+ hooks[entryPoint] = [];
1299
+ }
1397
1300
  };
1398
1301
  DOMPurify.removeAllHooks = function() {
1399
- hooks = _createHooksMap();
1302
+ hooks = {};
1400
1303
  };
1401
1304
  return DOMPurify;
1402
1305
  }
@@ -1412,11 +1315,13 @@ if (typeof purify.addHook === "function" && typeof document !== "undefined" && d
1412
1315
  });
1413
1316
  }
1414
1317
  function xssPurify(str) {
1415
- if (typeof window === "undefined") return str;
1318
+ if (typeof window === "undefined")
1319
+ return str;
1416
1320
  return purify.sanitize(str, purifyConfig);
1417
1321
  }
1418
1322
  const highlightWords = (Word, title, inherit) => {
1419
- if (!Word) return xssPurify(title || "");
1323
+ if (!Word)
1324
+ return xssPurify(title || "");
1420
1325
  title = title ? xssPurify(title) : "";
1421
1326
  const color = inherit ? `inherit` : "var(--theme-link)";
1422
1327
  const regexPattern = new RegExp(`(${Word.replace(/([.?*+^$[\]\\(){}|-])/gi, "\\$1")})`, "gi");
@@ -1704,6 +1609,9 @@ function createPosition(line, column, offset) {
1704
1609
  }
1705
1610
  function createLocation(start, end, source) {
1706
1611
  const loc = { start, end };
1612
+ if (source != null) {
1613
+ loc.source = source;
1614
+ }
1707
1615
  return loc;
1708
1616
  }
1709
1617
  const RE_ARGS = /\{([0-9a-zA-Z]+)\}/g;
@@ -1732,7 +1640,7 @@ const warnMessages$2 = {
1732
1640
  [CompileWarnCodes.USE_MODULO_SYNTAX]: `Use modulo before '{{0}}'.`
1733
1641
  };
1734
1642
  function createCompileWarn(code2, loc, ...args) {
1735
- const msg = format$1(warnMessages$2[code2], ...args || []);
1643
+ const msg = format$1(warnMessages$2[code2] || "", ...args || []);
1736
1644
  const message = { message: String(msg), code: code2 };
1737
1645
  if (loc) {
1738
1646
  message.location = loc;
@@ -2597,6 +2505,9 @@ function createParser(options = {}) {
2597
2505
  return node;
2598
2506
  }
2599
2507
  function endNode(node, offset, pos, type) {
2508
+ if (type) {
2509
+ node.type = type;
2510
+ }
2600
2511
  if (location) {
2601
2512
  node.end = offset;
2602
2513
  if (node.loc) {
@@ -3036,7 +2947,7 @@ function minify(node) {
3036
2947
  }
3037
2948
  const ERROR_DOMAIN = "parser";
3038
2949
  function createCodeGenerator(ast, options) {
3039
- const { filename, breakLineCode, needIndent: _needIndent } = options;
2950
+ const { sourceMap, filename, breakLineCode, needIndent: _needIndent } = options;
3040
2951
  const location = options.location !== false;
3041
2952
  const _context = {
3042
2953
  filename,
@@ -3200,12 +3111,14 @@ function generateNode(generator, node) {
3200
3111
  const generate = (ast, options = {}) => {
3201
3112
  const mode = isString$1(options.mode) ? options.mode : "normal";
3202
3113
  const filename = isString$1(options.filename) ? options.filename : "message.intl";
3203
- !!options.sourceMap;
3114
+ const sourceMap = !!options.sourceMap;
3204
3115
  const breakLineCode = options.breakLineCode != null ? options.breakLineCode : mode === "arrow" ? ";" : "\n";
3205
3116
  const needIndent = options.needIndent ? options.needIndent : mode !== "arrow";
3206
3117
  const helpers = ast.helpers || [];
3207
3118
  const generator = createCodeGenerator(ast, {
3119
+ mode,
3208
3120
  filename,
3121
+ sourceMap,
3209
3122
  breakLineCode,
3210
3123
  needIndent
3211
3124
  });
@@ -3978,7 +3891,7 @@ function appendItemToChain(chain, target, blocks) {
3978
3891
  }
3979
3892
  return follow;
3980
3893
  }
3981
- const VERSION$3 = "9.14.3";
3894
+ const VERSION$2 = "9.14.3";
3982
3895
  const NOT_REOSLVED = -1;
3983
3896
  const DEFAULT_LOCALE = "en-US";
3984
3897
  const MISSING_RESOLVE_VALUE = "";
@@ -4021,7 +3934,7 @@ const getFallbackContext = () => _fallbackContext;
4021
3934
  let _cid = 0;
4022
3935
  function createCoreContext(options = {}) {
4023
3936
  const onWarn = isFunction$4(options.onWarn) ? options.onWarn : warn;
4024
- const version = isString$2(options.version) ? options.version : VERSION$3;
3937
+ const version = isString$2(options.version) ? options.version : VERSION$2;
4025
3938
  const locale2 = isString$2(options.locale) || isFunction$4(options.locale) ? options.locale : DEFAULT_LOCALE;
4026
3939
  const _locale = isFunction$4(locale2) ? DEFAULT_LOCALE : locale2;
4027
3940
  const fallbackLocale = isArray$5(options.fallbackLocale) || isPlainObject$1(options.fallbackLocale) || isString$2(options.fallbackLocale) || options.fallbackLocale === false ? options.fallbackLocale : _locale;
@@ -5126,7 +5039,7 @@ function setupDevtoolsPlugin(pluginDescriptor, setupFn) {
5126
5039
  * (c) 2025 kazuya kawaguchi
5127
5040
  * Released under the MIT License.
5128
5041
  */
5129
- const VERSION$2 = "9.14.3";
5042
+ const VERSION$1 = "9.14.3";
5130
5043
  function initFeatureFlags() {
5131
5044
  if (typeof __VUE_I18N_FULL_INSTALL__ !== "boolean") {
5132
5045
  getGlobalThis().__VUE_I18N_FULL_INSTALL__ = true;
@@ -5305,10 +5218,10 @@ function getLocaleMessages(locale2, options) {
5305
5218
  if (isArray$5(__i18n)) {
5306
5219
  __i18n.forEach((custom) => {
5307
5220
  if ("locale" in custom && "resource" in custom) {
5308
- const { locale: locale22, resource } = custom;
5309
- if (locale22) {
5310
- ret[locale22] = ret[locale22] || create();
5311
- deepCopy(resource, ret[locale22]);
5221
+ const { locale: locale3, resource } = custom;
5222
+ if (locale3) {
5223
+ ret[locale3] = ret[locale3] || create();
5224
+ deepCopy(resource, ret[locale3]);
5312
5225
  } else {
5313
5226
  deepCopy(resource, ret);
5314
5227
  }
@@ -5383,7 +5296,7 @@ function createComposer(options = {}, VueI18nLegacy) {
5383
5296
  const { __root, __injectWithOption } = options;
5384
5297
  const _isGlobal = __root === void 0;
5385
5298
  const flatJson = options.flatJson;
5386
- const _ref = inBrowser ? ref : shallowRef;
5299
+ const _ref2 = inBrowser ? ref : shallowRef;
5387
5300
  const translateExistCompatible = !!options.translateExistCompatible;
5388
5301
  if (process.env.NODE_ENV !== "production") {
5389
5302
  if (translateExistCompatible && true) {
@@ -5391,17 +5304,17 @@ function createComposer(options = {}, VueI18nLegacy) {
5391
5304
  }
5392
5305
  }
5393
5306
  let _inheritLocale = isBoolean$1(options.inheritLocale) ? options.inheritLocale : true;
5394
- const _locale = _ref(
5307
+ const _locale = _ref2(
5395
5308
  // prettier-ignore
5396
5309
  __root && _inheritLocale ? __root.locale.value : isString$2(options.locale) ? options.locale : DEFAULT_LOCALE
5397
5310
  );
5398
- const _fallbackLocale = _ref(
5311
+ const _fallbackLocale = _ref2(
5399
5312
  // prettier-ignore
5400
5313
  __root && _inheritLocale ? __root.fallbackLocale.value : isString$2(options.fallbackLocale) || isArray$5(options.fallbackLocale) || isPlainObject$1(options.fallbackLocale) || options.fallbackLocale === false ? options.fallbackLocale : _locale.value
5401
5314
  );
5402
- const _messages = _ref(getLocaleMessages(_locale.value, options));
5403
- const _datetimeFormats = _ref(isPlainObject$1(options.datetimeFormats) ? options.datetimeFormats : { [_locale.value]: {} });
5404
- const _numberFormats = _ref(isPlainObject$1(options.numberFormats) ? options.numberFormats : { [_locale.value]: {} });
5315
+ const _messages = _ref2(getLocaleMessages(_locale.value, options));
5316
+ const _datetimeFormats = _ref2(isPlainObject$1(options.datetimeFormats) ? options.datetimeFormats : { [_locale.value]: {} });
5317
+ const _numberFormats = _ref2(isPlainObject$1(options.numberFormats) ? options.numberFormats : { [_locale.value]: {} });
5405
5318
  let _missingWarn = __root ? __root.missingWarn : isBoolean$1(options.missingWarn) || isRegExp$1(options.missingWarn) ? options.missingWarn : true;
5406
5319
  let _fallbackWarn = __root ? __root.fallbackWarn : isBoolean$1(options.fallbackWarn) || isRegExp$1(options.fallbackWarn) ? options.fallbackWarn : true;
5407
5320
  let _fallbackRoot = __root ? __root.fallbackRoot : isBoolean$1(options.fallbackRoot) ? options.fallbackRoot : true;
@@ -5417,7 +5330,7 @@ function createComposer(options = {}, VueI18nLegacy) {
5417
5330
  const getCoreContext = () => {
5418
5331
  _isGlobal && setFallbackContext(null);
5419
5332
  const ctxOptions = {
5420
- version: VERSION$2,
5333
+ version: VERSION$1,
5421
5334
  locale: _locale.value,
5422
5335
  fallbackLocale: _fallbackLocale.value,
5423
5336
  messages: _messages.value,
@@ -5509,7 +5422,8 @@ function createComposer(options = {}, VueI18nLegacy) {
5509
5422
  }
5510
5423
  ret = fn(_context);
5511
5424
  } finally {
5512
- if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) ;
5425
+ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__)
5426
+ ;
5513
5427
  if (!_isGlobal) {
5514
5428
  _context.fallbackContext = void 0;
5515
5429
  }
@@ -5615,17 +5529,17 @@ function createComposer(options = {}, VueI18nLegacy) {
5615
5529
  _pluralRules = rules;
5616
5530
  _context.pluralRules = _pluralRules;
5617
5531
  }
5618
- function te(key, locale22) {
5532
+ function te(key, locale3) {
5619
5533
  return wrapWithDeps(() => {
5620
5534
  if (!key) {
5621
5535
  return false;
5622
5536
  }
5623
- const targetLocale = isString$2(locale22) ? locale22 : _locale.value;
5537
+ const targetLocale = isString$2(locale3) ? locale3 : _locale.value;
5624
5538
  const message = getLocaleMessage(targetLocale);
5625
5539
  const resolved = _context.messageResolver(message, key);
5626
5540
  return !translateExistCompatible ? isMessageAST(resolved) || isMessageFunction(resolved) || isString$2(resolved) : resolved != null;
5627
5541
  }, () => [key], "translate exists", (root2) => {
5628
- return Reflect.apply(root2.te, root2, [key, locale22]);
5542
+ return Reflect.apply(root2.te, root2, [key, locale3]);
5629
5543
  }, NOOP_RETURN_FALSE, (val) => isBoolean$1(val));
5630
5544
  }
5631
5545
  function resolveMessages(key) {
@@ -5645,25 +5559,25 @@ function createComposer(options = {}, VueI18nLegacy) {
5645
5559
  const messages2 = resolveMessages(key);
5646
5560
  return messages2 != null ? messages2 : __root ? __root.tm(key) || {} : {};
5647
5561
  }
5648
- function getLocaleMessage(locale22) {
5649
- return _messages.value[locale22] || {};
5562
+ function getLocaleMessage(locale3) {
5563
+ return _messages.value[locale3] || {};
5650
5564
  }
5651
- function setLocaleMessage(locale22, message) {
5565
+ function setLocaleMessage(locale3, message) {
5652
5566
  if (flatJson) {
5653
- const _message = { [locale22]: message };
5567
+ const _message = { [locale3]: message };
5654
5568
  for (const key in _message) {
5655
5569
  if (hasOwn(_message, key)) {
5656
5570
  handleFlatJson(_message[key]);
5657
5571
  }
5658
5572
  }
5659
- message = _message[locale22];
5573
+ message = _message[locale3];
5660
5574
  }
5661
- _messages.value[locale22] = message;
5575
+ _messages.value[locale3] = message;
5662
5576
  _context.messages = _messages.value;
5663
5577
  }
5664
- function mergeLocaleMessage(locale22, message) {
5665
- _messages.value[locale22] = _messages.value[locale22] || {};
5666
- const _message = { [locale22]: message };
5578
+ function mergeLocaleMessage(locale3, message) {
5579
+ _messages.value[locale3] = _messages.value[locale3] || {};
5580
+ const _message = { [locale3]: message };
5667
5581
  if (flatJson) {
5668
5582
  for (const key in _message) {
5669
5583
  if (hasOwn(_message, key)) {
@@ -5671,35 +5585,35 @@ function createComposer(options = {}, VueI18nLegacy) {
5671
5585
  }
5672
5586
  }
5673
5587
  }
5674
- message = _message[locale22];
5675
- deepCopy(message, _messages.value[locale22]);
5588
+ message = _message[locale3];
5589
+ deepCopy(message, _messages.value[locale3]);
5676
5590
  _context.messages = _messages.value;
5677
5591
  }
5678
- function getDateTimeFormat(locale22) {
5679
- return _datetimeFormats.value[locale22] || {};
5592
+ function getDateTimeFormat(locale3) {
5593
+ return _datetimeFormats.value[locale3] || {};
5680
5594
  }
5681
- function setDateTimeFormat(locale22, format2) {
5682
- _datetimeFormats.value[locale22] = format2;
5595
+ function setDateTimeFormat(locale3, format2) {
5596
+ _datetimeFormats.value[locale3] = format2;
5683
5597
  _context.datetimeFormats = _datetimeFormats.value;
5684
- clearDateTimeFormat(_context, locale22, format2);
5598
+ clearDateTimeFormat(_context, locale3, format2);
5685
5599
  }
5686
- function mergeDateTimeFormat(locale22, format2) {
5687
- _datetimeFormats.value[locale22] = assign$1(_datetimeFormats.value[locale22] || {}, format2);
5600
+ function mergeDateTimeFormat(locale3, format2) {
5601
+ _datetimeFormats.value[locale3] = assign$1(_datetimeFormats.value[locale3] || {}, format2);
5688
5602
  _context.datetimeFormats = _datetimeFormats.value;
5689
- clearDateTimeFormat(_context, locale22, format2);
5603
+ clearDateTimeFormat(_context, locale3, format2);
5690
5604
  }
5691
- function getNumberFormat(locale22) {
5692
- return _numberFormats.value[locale22] || {};
5605
+ function getNumberFormat(locale3) {
5606
+ return _numberFormats.value[locale3] || {};
5693
5607
  }
5694
- function setNumberFormat(locale22, format2) {
5695
- _numberFormats.value[locale22] = format2;
5608
+ function setNumberFormat(locale3, format2) {
5609
+ _numberFormats.value[locale3] = format2;
5696
5610
  _context.numberFormats = _numberFormats.value;
5697
- clearNumberFormat(_context, locale22, format2);
5611
+ clearNumberFormat(_context, locale3, format2);
5698
5612
  }
5699
- function mergeNumberFormat(locale22, format2) {
5700
- _numberFormats.value[locale22] = assign$1(_numberFormats.value[locale22] || {}, format2);
5613
+ function mergeNumberFormat(locale3, format2) {
5614
+ _numberFormats.value[locale3] = assign$1(_numberFormats.value[locale3] || {}, format2);
5701
5615
  _context.numberFormats = _numberFormats.value;
5702
- clearNumberFormat(_context, locale22, format2);
5616
+ clearNumberFormat(_context, locale3, format2);
5703
5617
  }
5704
5618
  composerID++;
5705
5619
  if (__root && inBrowser) {
@@ -5850,9 +5764,9 @@ function convertComposerOptions(options) {
5850
5764
  if (isPlainObject$1(options.sharedMessages)) {
5851
5765
  const sharedMessages = options.sharedMessages;
5852
5766
  const locales = Object.keys(sharedMessages);
5853
- messages = locales.reduce((messages2, locale22) => {
5854
- const message = messages2[locale22] || (messages2[locale22] = {});
5855
- assign$1(message, sharedMessages[locale22]);
5767
+ messages = locales.reduce((messages2, locale3) => {
5768
+ const message = messages2[locale3] || (messages2[locale3] = {});
5769
+ assign$1(message, sharedMessages[locale3]);
5856
5770
  return messages2;
5857
5771
  }, messages || {});
5858
5772
  }
@@ -7254,49 +7168,49 @@ function useI18nForLegacy(instance, scope, root2, options = {}) {
7254
7168
  function tm(key) {
7255
7169
  return _composer.value ? _composer.value.tm(key) : {};
7256
7170
  }
7257
- function te(key, locale22) {
7258
- return _composer.value ? _composer.value.te(key, locale22) : false;
7171
+ function te(key, locale3) {
7172
+ return _composer.value ? _composer.value.te(key, locale3) : false;
7259
7173
  }
7260
- function getLocaleMessage(locale22) {
7261
- return _composer.value ? _composer.value.getLocaleMessage(locale22) : {};
7174
+ function getLocaleMessage(locale3) {
7175
+ return _composer.value ? _composer.value.getLocaleMessage(locale3) : {};
7262
7176
  }
7263
- function setLocaleMessage(locale22, message) {
7177
+ function setLocaleMessage(locale3, message) {
7264
7178
  if (_composer.value) {
7265
- _composer.value.setLocaleMessage(locale22, message);
7266
- _messages.value[locale22] = message;
7179
+ _composer.value.setLocaleMessage(locale3, message);
7180
+ _messages.value[locale3] = message;
7267
7181
  }
7268
7182
  }
7269
- function mergeLocaleMessage(locale22, message) {
7183
+ function mergeLocaleMessage(locale3, message) {
7270
7184
  if (_composer.value) {
7271
- _composer.value.mergeLocaleMessage(locale22, message);
7185
+ _composer.value.mergeLocaleMessage(locale3, message);
7272
7186
  }
7273
7187
  }
7274
- function getDateTimeFormat(locale22) {
7275
- return _composer.value ? _composer.value.getDateTimeFormat(locale22) : {};
7188
+ function getDateTimeFormat(locale3) {
7189
+ return _composer.value ? _composer.value.getDateTimeFormat(locale3) : {};
7276
7190
  }
7277
- function setDateTimeFormat(locale22, format2) {
7191
+ function setDateTimeFormat(locale3, format2) {
7278
7192
  if (_composer.value) {
7279
- _composer.value.setDateTimeFormat(locale22, format2);
7280
- _datetimeFormats.value[locale22] = format2;
7193
+ _composer.value.setDateTimeFormat(locale3, format2);
7194
+ _datetimeFormats.value[locale3] = format2;
7281
7195
  }
7282
7196
  }
7283
- function mergeDateTimeFormat(locale22, format2) {
7197
+ function mergeDateTimeFormat(locale3, format2) {
7284
7198
  if (_composer.value) {
7285
- _composer.value.mergeDateTimeFormat(locale22, format2);
7199
+ _composer.value.mergeDateTimeFormat(locale3, format2);
7286
7200
  }
7287
7201
  }
7288
- function getNumberFormat(locale22) {
7289
- return _composer.value ? _composer.value.getNumberFormat(locale22) : {};
7202
+ function getNumberFormat(locale3) {
7203
+ return _composer.value ? _composer.value.getNumberFormat(locale3) : {};
7290
7204
  }
7291
- function setNumberFormat(locale22, format2) {
7205
+ function setNumberFormat(locale3, format2) {
7292
7206
  if (_composer.value) {
7293
- _composer.value.setNumberFormat(locale22, format2);
7294
- _numberFormats.value[locale22] = format2;
7207
+ _composer.value.setNumberFormat(locale3, format2);
7208
+ _numberFormats.value[locale3] = format2;
7295
7209
  }
7296
7210
  }
7297
- function mergeNumberFormat(locale22, format2) {
7211
+ function mergeNumberFormat(locale3, format2) {
7298
7212
  if (_composer.value) {
7299
- _composer.value.mergeNumberFormat(locale22, format2);
7213
+ _composer.value.mergeNumberFormat(locale3, format2);
7300
7214
  }
7301
7215
  }
7302
7216
  const wrapper3 = {
@@ -7399,14 +7313,14 @@ function useI18nForLegacy(instance, scope, root2, options = {}) {
7399
7313
  function sync(composer) {
7400
7314
  composer.locale.value = _locale.value;
7401
7315
  composer.fallbackLocale.value = _fallbackLocale.value;
7402
- Object.keys(_messages.value).forEach((locale22) => {
7403
- composer.mergeLocaleMessage(locale22, _messages.value[locale22]);
7316
+ Object.keys(_messages.value).forEach((locale3) => {
7317
+ composer.mergeLocaleMessage(locale3, _messages.value[locale3]);
7404
7318
  });
7405
- Object.keys(_datetimeFormats.value).forEach((locale22) => {
7406
- composer.mergeDateTimeFormat(locale22, _datetimeFormats.value[locale22]);
7319
+ Object.keys(_datetimeFormats.value).forEach((locale3) => {
7320
+ composer.mergeDateTimeFormat(locale3, _datetimeFormats.value[locale3]);
7407
7321
  });
7408
- Object.keys(_numberFormats.value).forEach((locale22) => {
7409
- composer.mergeNumberFormat(locale22, _numberFormats.value[locale22]);
7322
+ Object.keys(_numberFormats.value).forEach((locale3) => {
7323
+ composer.mergeNumberFormat(locale3, _numberFormats.value[locale3]);
7410
7324
  });
7411
7325
  composer.escapeParameter = _escapeParameter;
7412
7326
  composer.fallbackFormat = _fallbackFormat;
@@ -7491,7 +7405,8 @@ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
7491
7405
  target.__INTLIFY__ = true;
7492
7406
  setDevToolsHook(target.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
7493
7407
  }
7494
- if (process.env.NODE_ENV !== "production") ;
7408
+ if (process.env.NODE_ENV !== "production")
7409
+ ;
7495
7410
  const gitCodeLayout$1 = {
7496
7411
  home: {
7497
7412
  alreadyFollowed: "已关注",
@@ -8113,7 +8028,8 @@ const handleAvatarRedPoint = (type, other) => {
8113
8028
  }
8114
8029
  };
8115
8030
  function extractRepoInfoWithURL(repoUrl) {
8116
- if (!repoUrl) return "";
8031
+ if (!repoUrl)
8032
+ return "";
8117
8033
  const url = new URL(repoUrl);
8118
8034
  const pathname = url.pathname.replace(/^\//, "");
8119
8035
  const parts = pathname.replace(/.git$/, "").split("/").filter(Boolean);
@@ -8141,7 +8057,8 @@ const isTrustedRepo = (topics) => {
8141
8057
  };
8142
8058
  const INCUBATION_TOPICS = layoutConfig$4.VITE_INCUBATION_TOPIC || "";
8143
8059
  const isIncubationRepo = (topics = []) => {
8144
- if (!topics) return false;
8060
+ if (!topics)
8061
+ return false;
8145
8062
  const incubationIds = INCUBATION_TOPICS.split(",");
8146
8063
  if (topics.some((e) => /孵化项目/.test(e.name) || incubationIds.includes(e.topic_id || e.id))) {
8147
8064
  return true;
@@ -8232,7 +8149,7 @@ function mitt(n) {
8232
8149
  const emitter = mitt();
8233
8150
  const addEventListener = (evtName, callback) => emitter.on(evtName, callback);
8234
8151
  const emitEvent = (evtName, payload) => emitter.emit(evtName, payload);
8235
- const offEvent = (evtName, handler) => emitter.off(evtName, void 0);
8152
+ const offEvent = (evtName, handler) => emitter.off(evtName, handler || void 0);
8236
8153
  function bind(fn, thisArg) {
8237
8154
  return function wrap() {
8238
8155
  return fn.apply(thisArg, arguments);
@@ -8240,7 +8157,7 @@ function bind(fn, thisArg) {
8240
8157
  }
8241
8158
  const { toString } = Object.prototype;
8242
8159
  const { getPrototypeOf } = Object;
8243
- const kindOf = /* @__PURE__ */ ((cache2) => (thing) => {
8160
+ const kindOf = ((cache2) => (thing) => {
8244
8161
  const str = toString.call(thing);
8245
8162
  return cache2[str] || (cache2[str] = str.slice(8, -1).toLowerCase());
8246
8163
  })(/* @__PURE__ */ Object.create(null));
@@ -8326,7 +8243,8 @@ function findKey(obj, key) {
8326
8243
  return null;
8327
8244
  }
8328
8245
  const _global = (() => {
8329
- if (typeof globalThis !== "undefined") return globalThis;
8246
+ if (typeof globalThis !== "undefined")
8247
+ return globalThis;
8330
8248
  return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
8331
8249
  })();
8332
8250
  const isContextDefined = (context) => !isUndefined$1(context) && context !== _global;
@@ -8380,7 +8298,8 @@ const toFlatObject = (sourceObj, destObj, filter2, propFilter) => {
8380
8298
  let prop;
8381
8299
  const merged = {};
8382
8300
  destObj = destObj || {};
8383
- if (sourceObj == null) return destObj;
8301
+ if (sourceObj == null)
8302
+ return destObj;
8384
8303
  do {
8385
8304
  props = Object.getOwnPropertyNames(sourceObj);
8386
8305
  i = props.length;
@@ -8405,17 +8324,20 @@ const endsWith = (str, searchString, position) => {
8405
8324
  return lastIndex !== -1 && lastIndex === position;
8406
8325
  };
8407
8326
  const toArray = (thing) => {
8408
- if (!thing) return null;
8409
- if (isArray$4(thing)) return thing;
8327
+ if (!thing)
8328
+ return null;
8329
+ if (isArray$4(thing))
8330
+ return thing;
8410
8331
  let i = thing.length;
8411
- if (!isNumber(i)) return null;
8332
+ if (!isNumber(i))
8333
+ return null;
8412
8334
  const arr = new Array(i);
8413
8335
  while (i-- > 0) {
8414
8336
  arr[i] = thing[i];
8415
8337
  }
8416
8338
  return arr;
8417
8339
  };
8418
- const isTypedArray$2 = /* @__PURE__ */ ((TypedArray) => {
8340
+ const isTypedArray$2 = ((TypedArray) => {
8419
8341
  return (thing) => {
8420
8342
  return TypedArray && thing instanceof TypedArray;
8421
8343
  };
@@ -8465,7 +8387,8 @@ const freezeMethods = (obj) => {
8465
8387
  return false;
8466
8388
  }
8467
8389
  const value = obj[name];
8468
- if (!isFunction$3(value)) return;
8390
+ if (!isFunction$3(value))
8391
+ return;
8469
8392
  descriptor.enumerable = false;
8470
8393
  if ("writable" in descriptor) {
8471
8394
  descriptor.writable = false;
@@ -8598,7 +8521,7 @@ const utils$1 = {
8598
8521
  setImmediate: _setImmediate,
8599
8522
  asap
8600
8523
  };
8601
- function AxiosError$1(message, code2, config, request, response) {
8524
+ function AxiosError(message, code2, config, request, response) {
8602
8525
  Error.call(this);
8603
8526
  if (Error.captureStackTrace) {
8604
8527
  Error.captureStackTrace(this, this.constructor);
@@ -8615,7 +8538,7 @@ function AxiosError$1(message, code2, config, request, response) {
8615
8538
  this.status = response.status ? response.status : null;
8616
8539
  }
8617
8540
  }
8618
- utils$1.inherits(AxiosError$1, Error, {
8541
+ utils$1.inherits(AxiosError, Error, {
8619
8542
  toJSON: function toJSON() {
8620
8543
  return {
8621
8544
  // Standard
@@ -8636,7 +8559,7 @@ utils$1.inherits(AxiosError$1, Error, {
8636
8559
  };
8637
8560
  }
8638
8561
  });
8639
- const prototype$1 = AxiosError$1.prototype;
8562
+ const prototype$1 = AxiosError.prototype;
8640
8563
  const descriptors = {};
8641
8564
  [
8642
8565
  "ERR_BAD_OPTION_VALUE",
@@ -8655,16 +8578,16 @@ const descriptors = {};
8655
8578
  ].forEach((code2) => {
8656
8579
  descriptors[code2] = { value: code2 };
8657
8580
  });
8658
- Object.defineProperties(AxiosError$1, descriptors);
8581
+ Object.defineProperties(AxiosError, descriptors);
8659
8582
  Object.defineProperty(prototype$1, "isAxiosError", { value: true });
8660
- AxiosError$1.from = (error, code2, config, request, response, customProps) => {
8583
+ AxiosError.from = (error, code2, config, request, response, customProps) => {
8661
8584
  const axiosError = Object.create(prototype$1);
8662
8585
  utils$1.toFlatObject(error, axiosError, function filter2(obj) {
8663
8586
  return obj !== Error.prototype;
8664
8587
  }, (prop) => {
8665
8588
  return prop !== "isAxiosError";
8666
8589
  });
8667
- AxiosError$1.call(axiosError, error.message, code2, config, request, response);
8590
+ AxiosError.call(axiosError, error.message, code2, config, request, response);
8668
8591
  axiosError.cause = error;
8669
8592
  axiosError.name = error.name;
8670
8593
  customProps && Object.assign(axiosError, customProps);
@@ -8678,7 +8601,8 @@ function removeBrackets(key) {
8678
8601
  return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
8679
8602
  }
8680
8603
  function renderKey(path, key, dots) {
8681
- if (!path) return key;
8604
+ if (!path)
8605
+ return key;
8682
8606
  return path.concat(key).map(function each(token, i) {
8683
8607
  token = removeBrackets(token);
8684
8608
  return !dots && i ? "[" + token + "]" : token;
@@ -8690,7 +8614,7 @@ function isFlatArray(arr) {
8690
8614
  const predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop) {
8691
8615
  return /^is[A-Z]/.test(prop);
8692
8616
  });
8693
- function toFormData$1(obj, formData, options) {
8617
+ function toFormData(obj, formData, options) {
8694
8618
  if (!utils$1.isObject(obj)) {
8695
8619
  throw new TypeError("target must be an object");
8696
8620
  }
@@ -8712,12 +8636,13 @@ function toFormData$1(obj, formData, options) {
8712
8636
  throw new TypeError("visitor must be a function");
8713
8637
  }
8714
8638
  function convertValue(value) {
8715
- if (value === null) return "";
8639
+ if (value === null)
8640
+ return "";
8716
8641
  if (utils$1.isDate(value)) {
8717
8642
  return value.toISOString();
8718
8643
  }
8719
8644
  if (!useBlob && utils$1.isBlob(value)) {
8720
- throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");
8645
+ throw new AxiosError("Blob is not supported. Use a Buffer instead.");
8721
8646
  }
8722
8647
  if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
8723
8648
  return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
@@ -8755,7 +8680,8 @@ function toFormData$1(obj, formData, options) {
8755
8680
  isVisitable
8756
8681
  });
8757
8682
  function build(value, path) {
8758
- if (utils$1.isUndefined(value)) return;
8683
+ if (utils$1.isUndefined(value))
8684
+ return;
8759
8685
  if (stack.indexOf(value) !== -1) {
8760
8686
  throw Error("Circular reference detected in " + path.join("."));
8761
8687
  }
@@ -8796,7 +8722,7 @@ function encode$1(str) {
8796
8722
  }
8797
8723
  function AxiosURLSearchParams(params, options) {
8798
8724
  this._pairs = [];
8799
- params && toFormData$1(params, this, options);
8725
+ params && toFormData(params, this, options);
8800
8726
  }
8801
8727
  const prototype = AxiosURLSearchParams.prototype;
8802
8728
  prototype.append = function append(name, value) {
@@ -8900,6 +8826,7 @@ class InterceptorManager {
8900
8826
  });
8901
8827
  }
8902
8828
  }
8829
+ const InterceptorManager$1 = InterceptorManager;
8903
8830
  const transitionalDefaults = {
8904
8831
  silentJSONParsing: true,
8905
8832
  forcedJSONParsing: true,
@@ -8938,7 +8865,7 @@ const platform = {
8938
8865
  ...platform$1
8939
8866
  };
8940
8867
  function toURLEncodedForm(data, options) {
8941
- return toFormData$1(data, new platform.classes.URLSearchParams(), Object.assign({
8868
+ return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
8942
8869
  visitor: function(value, key, path, helpers) {
8943
8870
  if (platform.isNode && utils$1.isBuffer(value)) {
8944
8871
  this.append(key, value.toString("base64"));
@@ -8968,7 +8895,8 @@ function arrayToObject(arr) {
8968
8895
  function formDataToJSON(formData) {
8969
8896
  function buildPath(path, value, target, index2) {
8970
8897
  let name = path[index2++];
8971
- if (name === "__proto__") return true;
8898
+ if (name === "__proto__")
8899
+ return true;
8972
8900
  const isNumericKey = Number.isFinite(+name);
8973
8901
  const isLast = index2 >= path.length;
8974
8902
  name = !name && utils$1.isArray(target) ? target.length : name;
@@ -9042,7 +8970,7 @@ const defaults = {
9042
8970
  }
9043
8971
  if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
9044
8972
  const _FormData = this.env && this.env.FormData;
9045
- return toFormData$1(
8973
+ return toFormData(
9046
8974
  isFileList2 ? { "files[]": data } : data,
9047
8975
  _FormData && new _FormData(),
9048
8976
  this.formSerializer
@@ -9070,7 +8998,7 @@ const defaults = {
9070
8998
  } catch (e) {
9071
8999
  if (strictJSONParsing) {
9072
9000
  if (e.name === "SyntaxError") {
9073
- throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
9001
+ throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
9074
9002
  }
9075
9003
  throw e;
9076
9004
  }
@@ -9104,6 +9032,7 @@ const defaults = {
9104
9032
  utils$1.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
9105
9033
  defaults.headers[method] = {};
9106
9034
  });
9035
+ const defaults$1 = defaults;
9107
9036
  const ignoreDuplicateOf = utils$1.toObjectSet([
9108
9037
  "age",
9109
9038
  "authorization",
@@ -9174,7 +9103,8 @@ function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
9174
9103
  if (isHeaderNameFilter) {
9175
9104
  value = header;
9176
9105
  }
9177
- if (!utils$1.isString(value)) return;
9106
+ if (!utils$1.isString(value))
9107
+ return;
9178
9108
  if (utils$1.isString(filter2)) {
9179
9109
  return value.indexOf(filter2) !== -1;
9180
9110
  }
@@ -9198,7 +9128,7 @@ function buildAccessors(obj, header) {
9198
9128
  });
9199
9129
  });
9200
9130
  }
9201
- let AxiosHeaders$1 = class AxiosHeaders {
9131
+ class AxiosHeaders {
9202
9132
  constructor(headers) {
9203
9133
  headers && this.set(headers);
9204
9134
  }
@@ -9353,9 +9283,9 @@ let AxiosHeaders$1 = class AxiosHeaders {
9353
9283
  utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
9354
9284
  return this;
9355
9285
  }
9356
- };
9357
- AxiosHeaders$1.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
9358
- utils$1.reduceDescriptors(AxiosHeaders$1.prototype, ({ value }, key) => {
9286
+ }
9287
+ AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
9288
+ utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
9359
9289
  let mapped = key[0].toUpperCase() + key.slice(1);
9360
9290
  return {
9361
9291
  get: () => value,
@@ -9364,9 +9294,10 @@ utils$1.reduceDescriptors(AxiosHeaders$1.prototype, ({ value }, key) => {
9364
9294
  }
9365
9295
  };
9366
9296
  });
9367
- utils$1.freezeMethods(AxiosHeaders$1);
9297
+ utils$1.freezeMethods(AxiosHeaders);
9298
+ const AxiosHeaders$1 = AxiosHeaders;
9368
9299
  function transformData(fns, response) {
9369
- const config = this || defaults;
9300
+ const config = this || defaults$1;
9370
9301
  const context = response || config;
9371
9302
  const headers = AxiosHeaders$1.from(context.headers);
9372
9303
  let data = context.data;
@@ -9376,14 +9307,14 @@ function transformData(fns, response) {
9376
9307
  headers.normalize();
9377
9308
  return data;
9378
9309
  }
9379
- function isCancel$1(value) {
9310
+ function isCancel(value) {
9380
9311
  return !!(value && value.__CANCEL__);
9381
9312
  }
9382
- function CanceledError$1(message, config, request) {
9383
- AxiosError$1.call(this, message == null ? "canceled" : message, AxiosError$1.ERR_CANCELED, config, request);
9313
+ function CanceledError(message, config, request) {
9314
+ AxiosError.call(this, message == null ? "canceled" : message, AxiosError.ERR_CANCELED, config, request);
9384
9315
  this.name = "CanceledError";
9385
9316
  }
9386
- utils$1.inherits(CanceledError$1, AxiosError$1, {
9317
+ utils$1.inherits(CanceledError, AxiosError, {
9387
9318
  __CANCEL__: true
9388
9319
  });
9389
9320
  function settle(resolve, reject, response) {
@@ -9391,9 +9322,9 @@ function settle(resolve, reject, response) {
9391
9322
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
9392
9323
  resolve(response);
9393
9324
  } else {
9394
- reject(new AxiosError$1(
9325
+ reject(new AxiosError(
9395
9326
  "Request failed with status code " + response.status,
9396
- [AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
9327
+ [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
9397
9328
  response.config,
9398
9329
  response.request,
9399
9330
  response
@@ -9502,7 +9433,7 @@ const progressEventDecorator = (total, throttled) => {
9502
9433
  }), throttled[1]];
9503
9434
  };
9504
9435
  const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
9505
- const isURLSameOrigin = platform.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url) => {
9436
+ const isURLSameOrigin = platform.hasStandardBrowserEnv ? ((origin2, isMSIE) => (url) => {
9506
9437
  url = new URL(url, platform.origin);
9507
9438
  return origin2.protocol === url.protocol && origin2.host === url.host && (isMSIE || origin2.port === url.port);
9508
9439
  })(
@@ -9554,7 +9485,7 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
9554
9485
  return requestedURL;
9555
9486
  }
9556
9487
  const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
9557
- function mergeConfig$1(config1, config2) {
9488
+ function mergeConfig(config1, config2) {
9558
9489
  config2 = config2 || {};
9559
9490
  const config = {};
9560
9491
  function getMergedValue(target, source, prop, caseless) {
@@ -9632,7 +9563,7 @@ function mergeConfig$1(config1, config2) {
9632
9563
  return config;
9633
9564
  }
9634
9565
  const resolveConfig = (config) => {
9635
- const newConfig = mergeConfig$1({}, config);
9566
+ const newConfig = mergeConfig({}, config);
9636
9567
  let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
9637
9568
  newConfig.headers = headers = AxiosHeaders$1.from(headers);
9638
9569
  newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
@@ -9723,11 +9654,11 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
9723
9654
  if (!request) {
9724
9655
  return;
9725
9656
  }
9726
- reject(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, config, request));
9657
+ reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
9727
9658
  request = null;
9728
9659
  };
9729
9660
  request.onerror = function handleError() {
9730
- reject(new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request));
9661
+ reject(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request));
9731
9662
  request = null;
9732
9663
  };
9733
9664
  request.ontimeout = function handleTimeout() {
@@ -9736,9 +9667,9 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
9736
9667
  if (_config.timeoutErrorMessage) {
9737
9668
  timeoutErrorMessage = _config.timeoutErrorMessage;
9738
9669
  }
9739
- reject(new AxiosError$1(
9670
+ reject(new AxiosError(
9740
9671
  timeoutErrorMessage,
9741
- transitional2.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
9672
+ transitional2.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
9742
9673
  config,
9743
9674
  request
9744
9675
  ));
@@ -9770,7 +9701,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
9770
9701
  if (!request) {
9771
9702
  return;
9772
9703
  }
9773
- reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
9704
+ reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
9774
9705
  request.abort();
9775
9706
  request = null;
9776
9707
  };
@@ -9781,7 +9712,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
9781
9712
  }
9782
9713
  const protocol = parseProtocol(_config.url);
9783
9714
  if (protocol && platform.protocols.indexOf(protocol) === -1) {
9784
- reject(new AxiosError$1("Unsupported protocol " + protocol + ":", AxiosError$1.ERR_BAD_REQUEST, config));
9715
+ reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
9785
9716
  return;
9786
9717
  }
9787
9718
  request.send(requestData || null);
@@ -9797,12 +9728,12 @@ const composeSignals = (signals, timeout) => {
9797
9728
  aborted = true;
9798
9729
  unsubscribe();
9799
9730
  const err = reason instanceof Error ? reason : this.reason;
9800
- controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
9731
+ controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
9801
9732
  }
9802
9733
  };
9803
9734
  let timer = timeout && setTimeout(() => {
9804
9735
  timer = null;
9805
- onabort(new AxiosError$1(`timeout ${timeout} of ms exceeded`, AxiosError$1.ETIMEDOUT));
9736
+ onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT));
9806
9737
  }, timeout);
9807
9738
  const unsubscribe = () => {
9808
9739
  if (signals) {
@@ -9820,9 +9751,10 @@ const composeSignals = (signals, timeout) => {
9820
9751
  return signal;
9821
9752
  }
9822
9753
  };
9754
+ const composeSignals$1 = composeSignals;
9823
9755
  const streamChunk = function* (chunk, chunkSize) {
9824
9756
  let len = chunk.byteLength;
9825
- if (len < chunkSize) {
9757
+ if (!chunkSize || len < chunkSize) {
9826
9758
  yield chunk;
9827
9759
  return;
9828
9760
  }
@@ -9897,7 +9829,7 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
9897
9829
  };
9898
9830
  const isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
9899
9831
  const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
9900
- const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
9832
+ const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
9901
9833
  const test = (fn, ...args) => {
9902
9834
  try {
9903
9835
  return !!fn(...args);
@@ -9925,7 +9857,7 @@ const resolvers = {
9925
9857
  isFetchSupported && ((res) => {
9926
9858
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
9927
9859
  !resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
9928
- throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
9860
+ throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
9929
9861
  });
9930
9862
  });
9931
9863
  })(new Response());
@@ -9973,7 +9905,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
9973
9905
  fetchOptions
9974
9906
  } = resolveConfig(config);
9975
9907
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
9976
- let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
9908
+ let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
9977
9909
  let request;
9978
9910
  const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
9979
9911
  composedSignal.unsubscribe();
@@ -10048,13 +9980,13 @@ const fetchAdapter = isFetchSupported && (async (config) => {
10048
9980
  unsubscribe && unsubscribe();
10049
9981
  if (err && err.name === "TypeError" && /fetch/i.test(err.message)) {
10050
9982
  throw Object.assign(
10051
- new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request),
9983
+ new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request),
10052
9984
  {
10053
9985
  cause: err.cause || err
10054
9986
  }
10055
9987
  );
10056
9988
  }
10057
- throw AxiosError$1.from(err, err && err.code, config, request);
9989
+ throw AxiosError.from(err, err && err.code, config, request);
10058
9990
  }
10059
9991
  });
10060
9992
  const knownAdapters = {
@@ -10087,7 +10019,7 @@ const adapters = {
10087
10019
  if (!isResolvedHandle(nameOrAdapter)) {
10088
10020
  adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
10089
10021
  if (adapter === void 0) {
10090
- throw new AxiosError$1(`Unknown adapter '${id}'`);
10022
+ throw new AxiosError(`Unknown adapter '${id}'`);
10091
10023
  }
10092
10024
  }
10093
10025
  if (adapter) {
@@ -10100,7 +10032,7 @@ const adapters = {
10100
10032
  ([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
10101
10033
  );
10102
10034
  let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
10103
- throw new AxiosError$1(
10035
+ throw new AxiosError(
10104
10036
  `There is no suitable adapter to dispatch the request ` + s,
10105
10037
  "ERR_NOT_SUPPORT"
10106
10038
  );
@@ -10114,7 +10046,7 @@ function throwIfCancellationRequested(config) {
10114
10046
  config.cancelToken.throwIfRequested();
10115
10047
  }
10116
10048
  if (config.signal && config.signal.aborted) {
10117
- throw new CanceledError$1(null, config);
10049
+ throw new CanceledError(null, config);
10118
10050
  }
10119
10051
  }
10120
10052
  function dispatchRequest(config) {
@@ -10127,7 +10059,7 @@ function dispatchRequest(config) {
10127
10059
  if (["post", "put", "patch"].indexOf(config.method) !== -1) {
10128
10060
  config.headers.setContentType("application/x-www-form-urlencoded", false);
10129
10061
  }
10130
- const adapter = adapters.getAdapter(config.adapter || defaults.adapter);
10062
+ const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
10131
10063
  return adapter(config).then(function onAdapterResolution(response) {
10132
10064
  throwIfCancellationRequested(config);
10133
10065
  response.data = transformData.call(
@@ -10138,7 +10070,7 @@ function dispatchRequest(config) {
10138
10070
  response.headers = AxiosHeaders$1.from(response.headers);
10139
10071
  return response;
10140
10072
  }, function onAdapterRejection(reason) {
10141
- if (!isCancel$1(reason)) {
10073
+ if (!isCancel(reason)) {
10142
10074
  throwIfCancellationRequested(config);
10143
10075
  if (reason && reason.response) {
10144
10076
  reason.response.data = transformData.call(
@@ -10152,7 +10084,7 @@ function dispatchRequest(config) {
10152
10084
  return Promise.reject(reason);
10153
10085
  });
10154
10086
  }
10155
- const VERSION$1 = "1.8.4";
10087
+ const VERSION = "1.8.4";
10156
10088
  const validators$1 = {};
10157
10089
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
10158
10090
  validators$1[type] = function validator2(thing) {
@@ -10162,13 +10094,13 @@ const validators$1 = {};
10162
10094
  const deprecatedWarnings = {};
10163
10095
  validators$1.transitional = function transitional(validator2, version, message) {
10164
10096
  function formatMessage(opt, desc) {
10165
- return "[Axios v" + VERSION$1 + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
10097
+ return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
10166
10098
  }
10167
10099
  return (value, opt, opts) => {
10168
10100
  if (validator2 === false) {
10169
- throw new AxiosError$1(
10101
+ throw new AxiosError(
10170
10102
  formatMessage(opt, " has been removed" + (version ? " in " + version : "")),
10171
- AxiosError$1.ERR_DEPRECATED
10103
+ AxiosError.ERR_DEPRECATED
10172
10104
  );
10173
10105
  }
10174
10106
  if (version && !deprecatedWarnings[opt]) {
@@ -10191,7 +10123,7 @@ validators$1.spelling = function spelling(correctSpelling) {
10191
10123
  };
10192
10124
  function assertOptions(options, schema, allowUnknown) {
10193
10125
  if (typeof options !== "object") {
10194
- throw new AxiosError$1("options must be an object", AxiosError$1.ERR_BAD_OPTION_VALUE);
10126
+ throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
10195
10127
  }
10196
10128
  const keys2 = Object.keys(options);
10197
10129
  let i = keys2.length;
@@ -10202,12 +10134,12 @@ function assertOptions(options, schema, allowUnknown) {
10202
10134
  const value = options[opt];
10203
10135
  const result2 = value === void 0 || validator2(value, opt, options);
10204
10136
  if (result2 !== true) {
10205
- throw new AxiosError$1("option " + opt + " must be " + result2, AxiosError$1.ERR_BAD_OPTION_VALUE);
10137
+ throw new AxiosError("option " + opt + " must be " + result2, AxiosError.ERR_BAD_OPTION_VALUE);
10206
10138
  }
10207
10139
  continue;
10208
10140
  }
10209
10141
  if (allowUnknown !== true) {
10210
- throw new AxiosError$1("Unknown option " + opt, AxiosError$1.ERR_BAD_OPTION);
10142
+ throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
10211
10143
  }
10212
10144
  }
10213
10145
  }
@@ -10216,12 +10148,12 @@ const validator = {
10216
10148
  validators: validators$1
10217
10149
  };
10218
10150
  const validators = validator.validators;
10219
- let Axios$1 = class Axios {
10151
+ class Axios {
10220
10152
  constructor(instanceConfig) {
10221
10153
  this.defaults = instanceConfig;
10222
10154
  this.interceptors = {
10223
- request: new InterceptorManager(),
10224
- response: new InterceptorManager()
10155
+ request: new InterceptorManager$1(),
10156
+ response: new InterceptorManager$1()
10225
10157
  };
10226
10158
  }
10227
10159
  /**
@@ -10259,7 +10191,7 @@ let Axios$1 = class Axios {
10259
10191
  } else {
10260
10192
  config = configOrUrl || {};
10261
10193
  }
10262
- config = mergeConfig$1(this.defaults, config);
10194
+ config = mergeConfig(this.defaults, config);
10263
10195
  const { transitional: transitional2, paramsSerializer, headers } = config;
10264
10196
  if (transitional2 !== void 0) {
10265
10197
  validator.assertOptions(transitional2, {
@@ -10280,7 +10212,8 @@ let Axios$1 = class Axios {
10280
10212
  }, true);
10281
10213
  }
10282
10214
  }
10283
- if (config.allowAbsoluteUrls !== void 0) ;
10215
+ if (config.allowAbsoluteUrls !== void 0)
10216
+ ;
10284
10217
  else if (this.defaults.allowAbsoluteUrls !== void 0) {
10285
10218
  config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
10286
10219
  } else {
@@ -10355,14 +10288,14 @@ let Axios$1 = class Axios {
10355
10288
  return promise;
10356
10289
  }
10357
10290
  getUri(config) {
10358
- config = mergeConfig$1(this.defaults, config);
10291
+ config = mergeConfig(this.defaults, config);
10359
10292
  const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
10360
10293
  return buildURL(fullPath, config.params, config.paramsSerializer);
10361
10294
  }
10362
- };
10295
+ }
10363
10296
  utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
10364
- Axios$1.prototype[method] = function(url, config) {
10365
- return this.request(mergeConfig$1(config || {}, {
10297
+ Axios.prototype[method] = function(url, config) {
10298
+ return this.request(mergeConfig(config || {}, {
10366
10299
  method,
10367
10300
  url,
10368
10301
  data: (config || {}).data
@@ -10372,7 +10305,7 @@ utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoDa
10372
10305
  utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
10373
10306
  function generateHTTPMethod(isForm) {
10374
10307
  return function httpMethod(url, data, config) {
10375
- return this.request(mergeConfig$1(config || {}, {
10308
+ return this.request(mergeConfig(config || {}, {
10376
10309
  method,
10377
10310
  headers: isForm ? {
10378
10311
  "Content-Type": "multipart/form-data"
@@ -10382,10 +10315,11 @@ utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method)
10382
10315
  }));
10383
10316
  };
10384
10317
  }
10385
- Axios$1.prototype[method] = generateHTTPMethod();
10386
- Axios$1.prototype[method + "Form"] = generateHTTPMethod(true);
10318
+ Axios.prototype[method] = generateHTTPMethod();
10319
+ Axios.prototype[method + "Form"] = generateHTTPMethod(true);
10387
10320
  });
10388
- let CancelToken$1 = class CancelToken {
10321
+ const Axios$1 = Axios;
10322
+ class CancelToken {
10389
10323
  constructor(executor) {
10390
10324
  if (typeof executor !== "function") {
10391
10325
  throw new TypeError("executor must be a function.");
@@ -10396,7 +10330,8 @@ let CancelToken$1 = class CancelToken {
10396
10330
  });
10397
10331
  const token = this;
10398
10332
  this.promise.then((cancel) => {
10399
- if (!token._listeners) return;
10333
+ if (!token._listeners)
10334
+ return;
10400
10335
  let i = token._listeners.length;
10401
10336
  while (i-- > 0) {
10402
10337
  token._listeners[i](cancel);
@@ -10418,7 +10353,7 @@ let CancelToken$1 = class CancelToken {
10418
10353
  if (token.reason) {
10419
10354
  return;
10420
10355
  }
10421
- token.reason = new CanceledError$1(message, config, request);
10356
+ token.reason = new CanceledError(message, config, request);
10422
10357
  resolvePromise(token.reason);
10423
10358
  });
10424
10359
  }
@@ -10479,16 +10414,17 @@ let CancelToken$1 = class CancelToken {
10479
10414
  cancel
10480
10415
  };
10481
10416
  }
10482
- };
10483
- function spread$1(callback) {
10417
+ }
10418
+ const CancelToken$1 = CancelToken;
10419
+ function spread(callback) {
10484
10420
  return function wrap(arr) {
10485
10421
  return callback.apply(null, arr);
10486
10422
  };
10487
10423
  }
10488
- function isAxiosError$1(payload) {
10424
+ function isAxiosError(payload) {
10489
10425
  return utils$1.isObject(payload) && payload.isAxiosError === true;
10490
10426
  }
10491
- const HttpStatusCode$1 = {
10427
+ const HttpStatusCode = {
10492
10428
  Continue: 100,
10493
10429
  SwitchingProtocols: 101,
10494
10430
  Processing: 102,
@@ -10553,57 +10489,41 @@ const HttpStatusCode$1 = {
10553
10489
  NotExtended: 510,
10554
10490
  NetworkAuthenticationRequired: 511
10555
10491
  };
10556
- Object.entries(HttpStatusCode$1).forEach(([key, value]) => {
10557
- HttpStatusCode$1[value] = key;
10492
+ Object.entries(HttpStatusCode).forEach(([key, value]) => {
10493
+ HttpStatusCode[value] = key;
10558
10494
  });
10495
+ const HttpStatusCode$1 = HttpStatusCode;
10559
10496
  function createInstance(defaultConfig2) {
10560
10497
  const context = new Axios$1(defaultConfig2);
10561
10498
  const instance = bind(Axios$1.prototype.request, context);
10562
10499
  utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
10563
10500
  utils$1.extend(instance, context, null, { allOwnKeys: true });
10564
10501
  instance.create = function create2(instanceConfig) {
10565
- return createInstance(mergeConfig$1(defaultConfig2, instanceConfig));
10502
+ return createInstance(mergeConfig(defaultConfig2, instanceConfig));
10566
10503
  };
10567
10504
  return instance;
10568
10505
  }
10569
- const axios = createInstance(defaults);
10506
+ const axios = createInstance(defaults$1);
10570
10507
  axios.Axios = Axios$1;
10571
- axios.CanceledError = CanceledError$1;
10508
+ axios.CanceledError = CanceledError;
10572
10509
  axios.CancelToken = CancelToken$1;
10573
- axios.isCancel = isCancel$1;
10574
- axios.VERSION = VERSION$1;
10575
- axios.toFormData = toFormData$1;
10576
- axios.AxiosError = AxiosError$1;
10510
+ axios.isCancel = isCancel;
10511
+ axios.VERSION = VERSION;
10512
+ axios.toFormData = toFormData;
10513
+ axios.AxiosError = AxiosError;
10577
10514
  axios.Cancel = axios.CanceledError;
10578
10515
  axios.all = function all(promises) {
10579
10516
  return Promise.all(promises);
10580
10517
  };
10581
- axios.spread = spread$1;
10582
- axios.isAxiosError = isAxiosError$1;
10583
- axios.mergeConfig = mergeConfig$1;
10518
+ axios.spread = spread;
10519
+ axios.isAxiosError = isAxiosError;
10520
+ axios.mergeConfig = mergeConfig;
10584
10521
  axios.AxiosHeaders = AxiosHeaders$1;
10585
10522
  axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
10586
10523
  axios.getAdapter = adapters.getAdapter;
10587
10524
  axios.HttpStatusCode = HttpStatusCode$1;
10588
10525
  axios.default = axios;
10589
- const {
10590
- Axios: Axios2,
10591
- AxiosError,
10592
- CanceledError,
10593
- isCancel,
10594
- CancelToken: CancelToken2,
10595
- VERSION,
10596
- all: all2,
10597
- Cancel,
10598
- isAxiosError,
10599
- spread,
10600
- toFormData,
10601
- AxiosHeaders: AxiosHeaders2,
10602
- HttpStatusCode,
10603
- formToJSON,
10604
- getAdapter,
10605
- mergeConfig
10606
- } = axios;
10526
+ const axios$1 = axios;
10607
10527
  function isPhone() {
10608
10528
  if (typeof window !== "undefined" && window.navigator) {
10609
10529
  const flag = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent);
@@ -10659,13 +10579,20 @@ const getOSVersion = () => {
10659
10579
  }
10660
10580
  break;
10661
10581
  case "Windows":
10662
- if (userAgent.indexOf("Windows NT 10.0") > -1) version = "10";
10663
- else if (userAgent.indexOf("Windows NT 6.3") > -1) version = "8.1";
10664
- else if (userAgent.indexOf("Windows NT 6.2") > -1) version = "8";
10665
- else if (userAgent.indexOf("Windows NT 6.1") > -1) version = "7";
10666
- else if (userAgent.indexOf("Windows NT 6.0") > -1) version = "Vista";
10667
- else if (userAgent.indexOf("Windows NT 5.1") > -1) version = "XP";
10668
- else if (userAgent.indexOf("Windows NT 5.0") > -1) version = "2000";
10582
+ if (userAgent.indexOf("Windows NT 10.0") > -1)
10583
+ version = "10";
10584
+ else if (userAgent.indexOf("Windows NT 6.3") > -1)
10585
+ version = "8.1";
10586
+ else if (userAgent.indexOf("Windows NT 6.2") > -1)
10587
+ version = "8";
10588
+ else if (userAgent.indexOf("Windows NT 6.1") > -1)
10589
+ version = "7";
10590
+ else if (userAgent.indexOf("Windows NT 6.0") > -1)
10591
+ version = "Vista";
10592
+ else if (userAgent.indexOf("Windows NT 5.1") > -1)
10593
+ version = "XP";
10594
+ else if (userAgent.indexOf("Windows NT 5.0") > -1)
10595
+ version = "2000";
10669
10596
  break;
10670
10597
  case "Android":
10671
10598
  if (userAgent.match(/Android (\d+)\.?(\d+)?/)) {
@@ -10723,7 +10650,7 @@ const setPassportPrefix = (url, method) => {
10723
10650
  return url;
10724
10651
  };
10725
10652
  const proxyService = (params, customConfigs) => {
10726
- const service = axios.create({
10653
+ const service = axios$1.create({
10727
10654
  baseURL: layoutConfig$3.VITE_API_HOST,
10728
10655
  timeout: (customConfigs == null ? void 0 : customConfigs.customTimeout) || 3e4,
10729
10656
  withCredentials: true
@@ -10760,7 +10687,6 @@ const proxyService = (params, customConfigs) => {
10760
10687
  },
10761
10688
  async (error) => {
10762
10689
  const { response } = error;
10763
- const { config } = response || {};
10764
10690
  if (response) {
10765
10691
  const errData = response.data;
10766
10692
  errData.http_status = response.status;
@@ -10888,7 +10814,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
10888
10814
  npsPopVisible.value = nps_global.expire && nps_global.expire < Date.now();
10889
10815
  }
10890
10816
  const swTab = (item) => {
10891
- if (rateNow.value === null && item.index === 1) return;
10817
+ if (rateNow.value === null && item.index === 1)
10818
+ return;
10892
10819
  NPSOffsetOptions.crossAxis = item.offset_x;
10893
10820
  opinionStep.value = item.index;
10894
10821
  window.dispatchEvent(new Event("resize"));
@@ -11230,7 +11157,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
11230
11157
  };
11231
11158
  }
11232
11159
  });
11233
- const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-gitcode-layout-lib"]]);
11160
+ const index_vue_vue_type_style_index_0_scoped_89eb8bf2_lang = "";
11161
+ const index_vue_vue_type_style_index_1_lang$3 = "";
11162
+ const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-89eb8bf2"]]);
11234
11163
  function usePopup(className, rootElement) {
11235
11164
  const root2 = rootElement || document.getElementById("app");
11236
11165
  let cacheClass = "popup-container";
@@ -11344,7 +11273,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
11344
11273
  };
11345
11274
  }
11346
11275
  });
11347
- const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-gitcode-layout-lib"]]);
11276
+ const index_vue_vue_type_style_index_0_scoped_0edd3696_lang = "";
11277
+ const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-0edd3696"]]);
11348
11278
  const black = {
11349
11279
  "theme-stress-text": "#f0f6fc",
11350
11280
  "theme-text": "#D2D8E4",
@@ -11786,7 +11716,8 @@ class Theme {
11786
11716
  }
11787
11717
  applyTheme() {
11788
11718
  const isAutoTheme = this.getIsAutoTheme();
11789
- if (!isAutoTheme) return;
11719
+ if (!isAutoTheme)
11720
+ return;
11790
11721
  if (this.darkModeMediaQuery.matches) {
11791
11722
  console.log("dark");
11792
11723
  setTheme(ThemeType.BLACK);
@@ -11849,7 +11780,7 @@ const usePageResize = () => {
11849
11780
  });
11850
11781
  return { widthType, width, widthConfig, isMobile };
11851
11782
  };
11852
- const _imports_0 = "data:image/svg+xml,%3csvg%20width='24.000000'%20height='24.000000'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdesc%3e%20Created%20with%20Pixso.%20%3c/desc%3e%3cdefs/%3e%3cg%20opacity='0.600000'%3e%3cpath%20id='Vector'%20d='M22%2013.89C22%2011.82%2020.72%2010.01%2018.81%209.2C19.08%2010.1%2019.27%2011%2019.27%2011.91C19.27%2014.7%2018%2017.23%2015.9%2018.86C16.18%2018.95%2016.54%2018.95%2016.9%2018.95C17.54%2018.95%2020.27%2019.04%2021.36%2019.13C21.54%2019.13%2021.63%2018.95%2021.54%2018.77C21.08%2018.41%2020.45%2017.59%2020.72%2017.23C21.54%2016.33%2022%2015.16%2022%2013.89L22%2013.89Z'%20fill='%23FFFFFF'%20fill-opacity='1.000000'%20fill-rule='evenodd'/%3e%3c/g%3e%3cpath%20id='减去顶层'%20d='M10.1816%203.875C5.63672%203.875%202%207.48608%202%2011.9097C2%2013.9861%202.72656%2015.7916%204%2017.2361C4.36328%2017.6875%204%2018.5903%203.54492%2019.3125C3.36328%2019.6736%203.54492%2020.125%204%2020.125C5.72656%2020.125%209.18164%2020.0347%2010.1816%2020.0347C14.7266%2020.0347%2018.3633%2016.4236%2018.3633%2011.9097C18.3633%207.48608%2014.7266%203.875%2010.1816%203.875ZM11.9746%2015.1427L10.5762%209.59204C10.5234%209.38306%2010.4023%209.19751%2010.2324%209.06494C10.0605%208.93225%209.84961%208.86035%209.63281%208.86023L7.68555%208.86023C7.46875%208.86035%207.25781%208.93225%207.08594%209.06494C6.91602%209.19751%206.79492%209.38306%206.74219%209.59204L5.34375%2015.1427L7.35156%2015.1427L7.59375%2014.176L9.72461%2014.176L9.9668%2015.1427L11.9746%2015.1427ZM14.9863%208.86035L14.9863%2015.1437L13.041%2015.1437L13.041%208.86035L14.9863%208.86035ZM8.44531%2010.7931L8.87305%2010.7931L9.23828%2012.243L8.08008%2012.243L8.44531%2010.7931Z'%20clip-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1.000000'%20fill-rule='evenodd'/%3e%3c/svg%3e";
11783
+ const _imports_0 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQuMDAwMDAwIiBoZWlnaHQ9IjI0LjAwMDAwMCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4NCgk8ZGVzYz4NCgkJCUNyZWF0ZWQgd2l0aCBQaXhzby4NCgk8L2Rlc2M+DQoJPGRlZnMvPg0KCTxnIG9wYWNpdHk9IjAuNjAwMDAwIj4NCgkJPHBhdGggaWQ9IlZlY3RvciIgZD0iTTIyIDEzLjg5QzIyIDExLjgyIDIwLjcyIDEwLjAxIDE4LjgxIDkuMkMxOS4wOCAxMC4xIDE5LjI3IDExIDE5LjI3IDExLjkxQzE5LjI3IDE0LjcgMTggMTcuMjMgMTUuOSAxOC44NkMxNi4xOCAxOC45NSAxNi41NCAxOC45NSAxNi45IDE4Ljk1QzE3LjU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2zxbJHspx2RLzPnc5/OhwQ6ckh0K0Mo7uirlLazFklQvy9+9utusn//n9yZXVt+bvIhEcxnRvfSiJDSrPgWI/OsGsQyzNbeMdSczuwVnDfD//3x2+vxXqqmswhdSJ06hM+BRAlRm8wdXuOvYZ3/qTK78sZNNy1CWF7uqOU3Z8e6X1DMd90OkkOxD/JmRBkonAigmM0t+yg27r8XxsQVNbjs2Zy/vLV87AKgMZTNrHphepRJryyQq3j1DUpcyLdNOovvjpdNR0KEAxfg3W2mkUJuraCog7Q1moMLNH+buw+t5P1BTYybLVDUpxCKpm6ZeT87V7kEGSieuXo4EkJ/zq71SLPV2aHsvJH1sAl3k5JD33TxUK6FhpSyopWctdQuh7lT3nH/t9mjTslFtaKKX/+Vgomv29pReK8euHczK2x1c7Lv5pNOXzCE1qFJpM5tRck3f97FqUjn/o99Mnpq4jASwnX/cCFVJlxN6B8m9n7lJjo9ShrGbCSgquLn91xumS1XReLc0me/5bOr54GNm+dbrS2YJzsgGAlzvTG2323Txr+v9b3Gu57vgaBJC4bx6EDi9eVZ9pNWo1pYI/eCwU1mc+8nSyevNQXbsfvC13K2xi24fBk5scZYaWUUfcgxOxZqT43Cbg3d+/nenG2uH2Zn/T6e3ZvdarCJrIjA8w181k9nS/NLw93pjG9vYxja2p8G+ADz7MtW/3lU1AAAAAElFTkSuQmCC";
11854
11785
  const _sfc_main$x = /* @__PURE__ */ defineComponent({
11855
11786
  ...{
@@ -11892,12 +11823,14 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
11892
11823
  };
11893
11824
  }
11894
11825
  });
11826
+ const index_vue_vue_type_style_index_0_lang$1 = "";
11895
11827
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
11896
11828
  function getDefaultExportFromCjs(x) {
11897
11829
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
11898
11830
  }
11899
11831
  function getAugmentedNamespace(n) {
11900
- if (n.__esModule) return n;
11832
+ if (n.__esModule)
11833
+ return n;
11901
11834
  var f = n.default;
11902
11835
  if (typeof f == "function") {
11903
11836
  var a = function a2() {
@@ -11907,7 +11840,8 @@ function getAugmentedNamespace(n) {
11907
11840
  return f.apply(this, arguments);
11908
11841
  };
11909
11842
  a.prototype = f.prototype;
11910
- } else a = {};
11843
+ } else
11844
+ a = {};
11911
11845
  Object.defineProperty(a, "__esModule", { value: true });
11912
11846
  Object.keys(n).forEach(function(k) {
11913
11847
  var d = Object.getOwnPropertyDescriptor(n, k);
@@ -11933,7 +11867,8 @@ const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
11933
11867
  const require$$0 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal$1);
11934
11868
  var hasRequiredCore;
11935
11869
  function requireCore() {
11936
- if (hasRequiredCore) return core.exports;
11870
+ if (hasRequiredCore)
11871
+ return core.exports;
11937
11872
  hasRequiredCore = 1;
11938
11873
  (function(module, exports) {
11939
11874
  (function(root2, factory) {
@@ -11981,7 +11916,7 @@ function requireCore() {
11981
11916
  }
11982
11917
  throw new Error("Native crypto module could not be used to get secure random number.");
11983
11918
  };
11984
- var create2 = Object.create || /* @__PURE__ */ function() {
11919
+ var create2 = Object.create || function() {
11985
11920
  function F() {
11986
11921
  }
11987
11922
  return function(obj) {
@@ -11994,7 +11929,7 @@ function requireCore() {
11994
11929
  }();
11995
11930
  var C = {};
11996
11931
  var C_lib = C.lib = {};
11997
- var Base = C_lib.Base = /* @__PURE__ */ function() {
11932
+ var Base = C_lib.Base = function() {
11998
11933
  return {
11999
11934
  /**
12000
11935
  * Creates a new object that inherits from this object.
@@ -12540,7 +12475,8 @@ function requireCore() {
12540
12475
  var encBase64 = { exports: {} };
12541
12476
  var hasRequiredEncBase64;
12542
12477
  function requireEncBase64() {
12543
- if (hasRequiredEncBase64) return encBase64.exports;
12478
+ if (hasRequiredEncBase64)
12479
+ return encBase64.exports;
12544
12480
  hasRequiredEncBase64 = 1;
12545
12481
  (function(module, exports) {
12546
12482
  (function(root2, factory) {
@@ -12647,7 +12583,8 @@ function requireEncBase64() {
12647
12583
  var md5 = { exports: {} };
12648
12584
  var hasRequiredMd5;
12649
12585
  function requireMd5() {
12650
- if (hasRequiredMd5) return md5.exports;
12586
+ if (hasRequiredMd5)
12587
+ return md5.exports;
12651
12588
  hasRequiredMd5 = 1;
12652
12589
  (function(module, exports) {
12653
12590
  (function(root2, factory) {
@@ -12826,7 +12763,8 @@ var evpkdf = { exports: {} };
12826
12763
  var sha1 = { exports: {} };
12827
12764
  var hasRequiredSha1;
12828
12765
  function requireSha1() {
12829
- if (hasRequiredSha1) return sha1.exports;
12766
+ if (hasRequiredSha1)
12767
+ return sha1.exports;
12830
12768
  hasRequiredSha1 = 1;
12831
12769
  (function(module, exports) {
12832
12770
  (function(root2, factory) {
@@ -12916,7 +12854,8 @@ function requireSha1() {
12916
12854
  var hmac = { exports: {} };
12917
12855
  var hasRequiredHmac;
12918
12856
  function requireHmac() {
12919
- if (hasRequiredHmac) return hmac.exports;
12857
+ if (hasRequiredHmac)
12858
+ return hmac.exports;
12920
12859
  hasRequiredHmac = 1;
12921
12860
  (function(module, exports) {
12922
12861
  (function(root2, factory) {
@@ -13021,7 +12960,8 @@ function requireHmac() {
13021
12960
  }
13022
12961
  var hasRequiredEvpkdf;
13023
12962
  function requireEvpkdf() {
13024
- if (hasRequiredEvpkdf) return evpkdf.exports;
12963
+ if (hasRequiredEvpkdf)
12964
+ return evpkdf.exports;
13025
12965
  hasRequiredEvpkdf = 1;
13026
12966
  (function(module, exports) {
13027
12967
  (function(root2, factory, undef) {
@@ -13111,7 +13051,8 @@ function requireEvpkdf() {
13111
13051
  var cipherCore = { exports: {} };
13112
13052
  var hasRequiredCipherCore;
13113
13053
  function requireCipherCore() {
13114
- if (hasRequiredCipherCore) return cipherCore.exports;
13054
+ if (hasRequiredCipherCore)
13055
+ return cipherCore.exports;
13115
13056
  hasRequiredCipherCore = 1;
13116
13057
  (function(module, exports) {
13117
13058
  (function(root2, factory, undef) {
@@ -13253,7 +13194,7 @@ function requireCipherCore() {
13253
13194
  *
13254
13195
  * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
13255
13196
  */
13256
- _createHelper: /* @__PURE__ */ function() {
13197
+ _createHelper: function() {
13257
13198
  function selectCipherStrategy(key) {
13258
13199
  if (typeof key == "string") {
13259
13200
  return PasswordBasedCipher;
@@ -13672,15 +13613,11 @@ function requireCipherCore() {
13672
13613
  * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
13673
13614
  * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
13674
13615
  */
13675
- execute: function(password, keySize, ivSize, salt, hasher) {
13616
+ execute: function(password, keySize, ivSize, salt) {
13676
13617
  if (!salt) {
13677
13618
  salt = WordArray.random(64 / 8);
13678
13619
  }
13679
- if (!hasher) {
13680
- var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
13681
- } else {
13682
- var key = EvpKDF.create({ keySize: keySize + ivSize, hasher }).compute(password, salt);
13683
- }
13620
+ var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
13684
13621
  var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);
13685
13622
  key.sigBytes = keySize * 4;
13686
13623
  return CipherParams.create({ key, iv, salt });
@@ -13714,7 +13651,7 @@ function requireCipherCore() {
13714
13651
  */
13715
13652
  encrypt: function(cipher, message, password, cfg) {
13716
13653
  cfg = this.cfg.extend(cfg);
13717
- var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, cfg.salt, cfg.hasher);
13654
+ var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize);
13718
13655
  cfg.iv = derivedParams.iv;
13719
13656
  var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);
13720
13657
  ciphertext.mixIn(derivedParams);
@@ -13740,7 +13677,7 @@ function requireCipherCore() {
13740
13677
  decrypt: function(cipher, ciphertext, password, cfg) {
13741
13678
  cfg = this.cfg.extend(cfg);
13742
13679
  ciphertext = this._parse(ciphertext, cfg.format);
13743
- var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt, cfg.hasher);
13680
+ var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt);
13744
13681
  cfg.iv = derivedParams.iv;
13745
13682
  var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);
13746
13683
  return plaintext;
@@ -14078,7 +14015,7 @@ function headRequest(request) {
14078
14015
  resetUserPassword(data) {
14079
14016
  return reqCatch(
14080
14017
  () => request({
14081
- url: "/api/v1/user/forgetPassword",
14018
+ url: "/api/v1/user/forgetPassword?captcha_id=" + data.captcha_id,
14082
14019
  method: "post",
14083
14020
  data
14084
14021
  })
@@ -14424,7 +14361,9 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
14424
14361
  };
14425
14362
  }
14426
14363
  });
14427
- const AiHubMenus = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-gitcode-layout-lib"]]);
14364
+ const AiHubMenus_vue_vue_type_style_index_0_scoped_25dfc896_lang = "";
14365
+ const AiHubMenus_vue_vue_type_style_index_1_lang = "";
14366
+ const AiHubMenus = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-25dfc896"]]);
14428
14367
  const _hoisted_1$q = ["src"];
14429
14368
  const _sfc_main$v = /* @__PURE__ */ defineComponent({
14430
14369
  ...{ name: "FlashTag" },
@@ -14479,6 +14418,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
14479
14418
  };
14480
14419
  }
14481
14420
  });
14421
+ const FlashTag_vue_vue_type_style_index_0_lang = "";
14482
14422
  function listCacheClear$1() {
14483
14423
  this.__data__ = [];
14484
14424
  this.size = 0;
@@ -14541,11 +14481,11 @@ function listCacheSet$1(key, value) {
14541
14481
  }
14542
14482
  var _listCacheSet = listCacheSet$1;
14543
14483
  var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
14544
- function ListCache$4(entries2) {
14545
- var index2 = -1, length = entries2 == null ? 0 : entries2.length;
14484
+ function ListCache$4(entries) {
14485
+ var index2 = -1, length = entries == null ? 0 : entries.length;
14546
14486
  this.clear();
14547
14487
  while (++index2 < length) {
14548
- var entry = entries2[index2];
14488
+ var entry = entries[index2];
14549
14489
  this.set(entry[0], entry[1]);
14550
14490
  }
14551
14491
  }
@@ -14742,11 +14682,11 @@ function hashSet$1(key, value) {
14742
14682
  }
14743
14683
  var _hashSet = hashSet$1;
14744
14684
  var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
14745
- function Hash$1(entries2) {
14746
- var index2 = -1, length = entries2 == null ? 0 : entries2.length;
14685
+ function Hash$1(entries) {
14686
+ var index2 = -1, length = entries == null ? 0 : entries.length;
14747
14687
  this.clear();
14748
14688
  while (++index2 < length) {
14749
- var entry = entries2[index2];
14689
+ var entry = entries[index2];
14750
14690
  this.set(entry[0], entry[1]);
14751
14691
  }
14752
14692
  }
@@ -14803,11 +14743,11 @@ function mapCacheSet$1(key, value) {
14803
14743
  }
14804
14744
  var _mapCacheSet = mapCacheSet$1;
14805
14745
  var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
14806
- function MapCache$1(entries2) {
14807
- var index2 = -1, length = entries2 == null ? 0 : entries2.length;
14746
+ function MapCache$1(entries) {
14747
+ var index2 = -1, length = entries == null ? 0 : entries.length;
14808
14748
  this.clear();
14809
14749
  while (++index2 < length) {
14810
- var entry = entries2[index2];
14750
+ var entry = entries[index2];
14811
14751
  this.set(entry[0], entry[1]);
14812
14752
  }
14813
14753
  }
@@ -14836,8 +14776,8 @@ function stackSet$1(key, value) {
14836
14776
  }
14837
14777
  var _stackSet = stackSet$1;
14838
14778
  var ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
14839
- function Stack$1(entries2) {
14840
- var data = this.__data__ = new ListCache(entries2);
14779
+ function Stack$1(entries) {
14780
+ var data = this.__data__ = new ListCache(entries);
14841
14781
  this.size = data.size;
14842
14782
  }
14843
14783
  Stack$1.prototype.clear = stackClear;
@@ -14932,7 +14872,7 @@ var baseIsArguments = _baseIsArguments, isObjectLike$5 = isObjectLike_1;
14932
14872
  var objectProto$6 = Object.prototype;
14933
14873
  var hasOwnProperty$4 = objectProto$6.hasOwnProperty;
14934
14874
  var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
14935
- var isArguments$1 = baseIsArguments(/* @__PURE__ */ function() {
14875
+ var isArguments$1 = baseIsArguments(function() {
14936
14876
  return arguments;
14937
14877
  }()) ? baseIsArguments : function(value) {
14938
14878
  return isObjectLike$5(value) && hasOwnProperty$4.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
@@ -15339,7 +15279,7 @@ function initCloneByTag$1(object, tag, isDeep) {
15339
15279
  var _initCloneByTag = initCloneByTag$1;
15340
15280
  var isObject$4 = isObject_1;
15341
15281
  var objectCreate = Object.create;
15342
- var baseCreate$1 = /* @__PURE__ */ function() {
15282
+ var baseCreate$1 = function() {
15343
15283
  function object() {
15344
15284
  }
15345
15285
  return function(proto2) {
@@ -15519,7 +15459,8 @@ var relativeTime$1 = { exports: {} };
15519
15459
  break;
15520
15460
  }
15521
15461
  }
15522
- if (n2) return a;
15462
+ if (n2)
15463
+ return a;
15523
15464
  var M2 = s ? l.future : l.past;
15524
15465
  return "function" == typeof M2 ? M2(a) : M2.replace("%s", a);
15525
15466
  }, n.to = function(r2, e2) {
@@ -15575,7 +15516,8 @@ const en = {
15575
15516
  };
15576
15517
  var padStart = function padStart2(string, length, pad) {
15577
15518
  var s = String(string);
15578
- if (!s || s.length >= length) return string;
15519
+ if (!s || s.length >= length)
15520
+ return string;
15579
15521
  return "" + Array(length + 1 - s.length).join(pad) + string;
15580
15522
  };
15581
15523
  var padZoneStr = function padZoneStr2(instance) {
@@ -15586,7 +15528,8 @@ var padZoneStr = function padZoneStr2(instance) {
15586
15528
  return (negMinutes <= 0 ? "+" : "-") + padStart(hourOffset, 2, "0") + ":" + padStart(minuteOffset, 2, "0");
15587
15529
  };
15588
15530
  var monthDiff = function monthDiff2(a, b) {
15589
- if (a.date() < b.date()) return -monthDiff2(b, a);
15531
+ if (a.date() < b.date())
15532
+ return -monthDiff2(b, a);
15590
15533
  var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month());
15591
15534
  var anchor = a.clone().add(wholeMonthDiff, M);
15592
15535
  var c = b - anchor < 0;
@@ -15631,7 +15574,8 @@ var isDayjs = function isDayjs2(d) {
15631
15574
  };
15632
15575
  var parseLocale = function parseLocale2(preset, object, isLocal) {
15633
15576
  var l;
15634
- if (!preset) return L;
15577
+ if (!preset)
15578
+ return L;
15635
15579
  if (typeof preset === "string") {
15636
15580
  var presetLower = preset.toLowerCase();
15637
15581
  if (Ls[presetLower]) {
@@ -15650,7 +15594,8 @@ var parseLocale = function parseLocale2(preset, object, isLocal) {
15650
15594
  Ls[name] = preset;
15651
15595
  l = name;
15652
15596
  }
15653
- if (!isLocal && l) L = l;
15597
+ if (!isLocal && l)
15598
+ L = l;
15654
15599
  return l || !isLocal && L;
15655
15600
  };
15656
15601
  var dayjs = function dayjs2(date, c) {
@@ -15677,9 +15622,12 @@ Utils.i = isDayjs;
15677
15622
  Utils.w = wrapper;
15678
15623
  var parseDate = function parseDate2(cfg) {
15679
15624
  var date = cfg.date, utc2 = cfg.utc;
15680
- if (date === null) return /* @__PURE__ */ new Date(NaN);
15681
- if (Utils.u(date)) return /* @__PURE__ */ new Date();
15682
- if (date instanceof Date) return new Date(date);
15625
+ if (date === null)
15626
+ return /* @__PURE__ */ new Date(NaN);
15627
+ if (Utils.u(date))
15628
+ return /* @__PURE__ */ new Date();
15629
+ if (date instanceof Date)
15630
+ return new Date(date);
15683
15631
  if (typeof date === "string" && !/Z$/i.test(date)) {
15684
15632
  var d = date.match(REGEX_PARSE);
15685
15633
  if (d) {
@@ -15733,7 +15681,8 @@ var Dayjs = /* @__PURE__ */ function() {
15733
15681
  return this.endOf(units) < dayjs(that);
15734
15682
  };
15735
15683
  _proto.$g = function $g(input, get, set) {
15736
- if (Utils.u(input)) return this[get];
15684
+ if (Utils.u(input))
15685
+ return this[get];
15737
15686
  return this.set(set, input);
15738
15687
  };
15739
15688
  _proto.unix = function unix() {
@@ -15798,7 +15747,8 @@ var Dayjs = /* @__PURE__ */ function() {
15798
15747
  date.$d[name](arg);
15799
15748
  date.init();
15800
15749
  this.$d = date.set(DATE, Math.min(this.$D, date.daysInMonth())).$d;
15801
- } else if (name) this.$d[name](arg);
15750
+ } else if (name)
15751
+ this.$d[name](arg);
15802
15752
  this.init();
15803
15753
  return this;
15804
15754
  };
@@ -15838,7 +15788,8 @@ var Dayjs = /* @__PURE__ */ function() {
15838
15788
  _proto.format = function format2(formatStr) {
15839
15789
  var _this3 = this;
15840
15790
  var locale2 = this.$locale();
15841
- if (!this.isValid()) return locale2.invalidDate || INVALID_DATE_STRING;
15791
+ if (!this.isValid())
15792
+ return locale2.invalidDate || INVALID_DATE_STRING;
15842
15793
  var str = formatStr || FORMAT_DEFAULT;
15843
15794
  var zoneStr = Utils.z(this);
15844
15795
  var $H = this.$H, $m = this.$m, $M = this.$M;
@@ -15961,10 +15912,12 @@ var Dayjs = /* @__PURE__ */ function() {
15961
15912
  return Ls[this.$L];
15962
15913
  };
15963
15914
  _proto.locale = function locale2(preset, object) {
15964
- if (!preset) return this.$L;
15915
+ if (!preset)
15916
+ return this.$L;
15965
15917
  var that = this.clone();
15966
15918
  var nextLocaleName = parseLocale(preset, object, true);
15967
- if (nextLocaleName) that.$L = nextLocaleName;
15919
+ if (nextLocaleName)
15920
+ that.$L = nextLocaleName;
15968
15921
  return that;
15969
15922
  };
15970
15923
  _proto.clone = function clone2() {
@@ -16093,7 +16046,8 @@ var timezone = { exports: {} };
16093
16046
  f.tz = function(t3, e2) {
16094
16047
  void 0 === t3 && (t3 = r);
16095
16048
  var n2, i2 = this.utcOffset(), a2 = this.toDate(), u2 = a2.toLocaleString("en-US", { timeZone: t3 }), f2 = Math.round((a2 - new Date(u2)) / 1e3 / 60), s2 = 15 * -Math.round(a2.getTimezoneOffset() / 15) - f2;
16096
- if (!Number(s2)) n2 = this.utcOffset(0, e2);
16049
+ if (!Number(s2))
16050
+ n2 = this.utcOffset(0, e2);
16097
16051
  else if (n2 = o(u2, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(s2, true), e2) {
16098
16052
  var m = n2.utcOffset();
16099
16053
  n2 = n2.add(i2 - m, "minute");
@@ -16107,15 +16061,18 @@ var timezone = { exports: {} };
16107
16061
  };
16108
16062
  var s = f.startOf;
16109
16063
  f.startOf = function(t3, e2) {
16110
- if (!this.$x || !this.$x.$timezone) return s.call(this, t3, e2);
16064
+ if (!this.$x || !this.$x.$timezone)
16065
+ return s.call(this, t3, e2);
16111
16066
  var n2 = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
16112
16067
  return s.call(n2, t3, e2).tz(this.$x.$timezone, true);
16113
16068
  }, o.tz = function(t3, e2, n2) {
16114
16069
  var i2 = n2 && e2, a2 = n2 || e2 || r, f2 = u(+o(), a2);
16115
- if ("string" != typeof t3) return o(t3).tz(a2);
16070
+ if ("string" != typeof t3)
16071
+ return o(t3).tz(a2);
16116
16072
  var s2 = function(t4, e3, n3) {
16117
16073
  var i3 = t4 - 60 * e3 * 1e3, o2 = u(i3, n3);
16118
- if (e3 === o2) return [i3, e3];
16074
+ if (e3 === o2)
16075
+ return [i3, e3];
16119
16076
  var r2 = u(i3 -= 60 * (o2 - e3) * 1e3, n3);
16120
16077
  return o2 === r2 ? [i3, o2] : [t4 - 60 * Math.min(o2, r2) * 1e3, Math.max(o2, r2)];
16121
16078
  }(o.utc(t3, i2).valueOf(), f2, a2), m = s2[0], c = s2[1], d = o(m).utcOffset(c);
@@ -16156,25 +16113,31 @@ var utc$1 = { exports: {} };
16156
16113
  if (this.$u) {
16157
16114
  var t3 = this.$d;
16158
16115
  this.$y = t3.getUTCFullYear(), this.$M = t3.getUTCMonth(), this.$D = t3.getUTCDate(), this.$W = t3.getUTCDay(), this.$H = t3.getUTCHours(), this.$m = t3.getUTCMinutes(), this.$s = t3.getUTCSeconds(), this.$ms = t3.getUTCMilliseconds();
16159
- } else r.call(this);
16116
+ } else
16117
+ r.call(this);
16160
16118
  };
16161
16119
  var a = u.utcOffset;
16162
16120
  u.utcOffset = function(s2, f2) {
16163
16121
  var n2 = this.$utils().u;
16164
- if (n2(s2)) return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
16122
+ if (n2(s2))
16123
+ return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
16165
16124
  if ("string" == typeof s2 && (s2 = function(t3) {
16166
16125
  void 0 === t3 && (t3 = "");
16167
16126
  var s3 = t3.match(i);
16168
- if (!s3) return null;
16127
+ if (!s3)
16128
+ return null;
16169
16129
  var f3 = ("" + s3[0]).match(e) || ["-", 0, 0], n3 = f3[0], u3 = 60 * +f3[1] + +f3[2];
16170
16130
  return 0 === u3 ? 0 : "+" === n3 ? u3 : -u3;
16171
- }(s2), null === s2)) return this;
16131
+ }(s2), null === s2))
16132
+ return this;
16172
16133
  var u2 = Math.abs(s2) <= 16 ? 60 * s2 : s2, o2 = this;
16173
- if (f2) return o2.$offset = u2, o2.$u = 0 === s2, o2;
16134
+ if (f2)
16135
+ return o2.$offset = u2, o2.$u = 0 === s2, o2;
16174
16136
  if (0 !== s2) {
16175
16137
  var r2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
16176
16138
  (o2 = this.local().add(u2 + r2, t2)).$offset = u2, o2.$x.$localOffset = r2;
16177
- } else o2 = this.utc();
16139
+ } else
16140
+ o2 = this.utc();
16178
16141
  return o2;
16179
16142
  };
16180
16143
  var h2 = u.format;
@@ -16197,7 +16160,8 @@ var utc$1 = { exports: {} };
16197
16160
  };
16198
16161
  var c = u.diff;
16199
16162
  u.diff = function(t3, i2, e2) {
16200
- if (t3 && this.$u === t3.$u) return c.call(this, t3, i2, e2);
16163
+ if (t3 && this.$u === t3.$u)
16164
+ return c.call(this, t3, i2, e2);
16201
16165
  var s2 = this.local(), f2 = n(t3).local();
16202
16166
  return c.call(s2, f2, i2, e2);
16203
16167
  };
@@ -16224,12 +16188,14 @@ dayjs$1.extend(utc);
16224
16188
  dayjs$1.tz.setDefault("Asia/Shanghai");
16225
16189
  const useTimeFormat = () => {
16226
16190
  const formatTimeFromNow = (time) => {
16227
- if (!time) return "-";
16191
+ if (!time)
16192
+ return "-";
16228
16193
  const targetDate = isDate$1(time) ? time : new Date(time);
16229
16194
  return formatTimeDifference(targetDate);
16230
16195
  };
16231
16196
  const formatTime = (time, format2) => {
16232
- if (!time) return "-";
16197
+ if (!time)
16198
+ return "-";
16233
16199
  return dayjs$1(time).format(format2);
16234
16200
  };
16235
16201
  return {
@@ -16330,7 +16296,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
16330
16296
  const inAIHub = computed(() => aiHubSceneValue.includes(props.scene));
16331
16297
  const emits = __emit;
16332
16298
  const handleOrgFollow = (val) => {
16333
- if (props.scene !== SceneValue.org) return;
16299
+ if (props.scene !== SceneValue.org)
16300
+ return;
16334
16301
  if (!props.isLogin) {
16335
16302
  emitEvent("login", { triggerType: "关注组织" });
16336
16303
  return;
@@ -16339,7 +16306,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
16339
16306
  };
16340
16307
  const topicTag = computed(() => {
16341
16308
  var _a, _b;
16342
- if (props.scene !== SceneValue.repo) return false;
16309
+ if (props.scene !== SceneValue.repo)
16310
+ return false;
16343
16311
  let repoType = 1;
16344
16312
  repoType = Number((_a = repoInfo.value) == null ? void 0 : _a.repo_type) - 1;
16345
16313
  if ((_b = props.repoProps) == null ? void 0 : _b.isSpaces) {
@@ -16370,8 +16338,10 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
16370
16338
  return false;
16371
16339
  });
16372
16340
  const toAiHub = () => {
16373
- if (props.scene !== SceneValue.repo) return;
16374
- if (!topicTag.value) return;
16341
+ if (props.scene !== SceneValue.repo)
16342
+ return;
16343
+ if (!topicTag.value)
16344
+ return;
16375
16345
  const aiUrl = `${layoutConfig2.VITE_AI_HOST}${topicTag.value.linkUrl}`;
16376
16346
  if (typeof window !== "undefined" && window.location) {
16377
16347
  window.location.href = aiUrl;
@@ -16379,7 +16349,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
16379
16349
  };
16380
16350
  const showTimeTopic = computed(() => {
16381
16351
  var _a, _b;
16382
- if (props.scene !== SceneValue.repo) return false;
16352
+ if (props.scene !== SceneValue.repo)
16353
+ return false;
16383
16354
  if (!((_a = repoInfo.value) == null ? void 0 : _a.last_activity_at)) {
16384
16355
  return false;
16385
16356
  }
@@ -16394,7 +16365,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
16394
16365
  return formatTimeFromNow((_a = repoInfo.value) == null ? void 0 : _a.last_activity_at);
16395
16366
  });
16396
16367
  const handleFollowUser = () => {
16397
- if (props.scene !== SceneValue.user) return;
16368
+ if (props.scene !== SceneValue.user)
16369
+ return;
16398
16370
  emits("followUser");
16399
16371
  };
16400
16372
  return (_ctx, _cache) => {
@@ -16641,7 +16613,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
16641
16613
  };
16642
16614
  }
16643
16615
  });
16644
- const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-gitcode-layout-lib"]]);
16616
+ const HeaderCustom_vue_vue_type_style_index_0_scoped_0a131cb4_lang = "";
16617
+ const HeaderCustom_vue_vue_type_style_index_1_lang = "";
16618
+ const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-0a131cb4"]]);
16645
16619
  const logo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAAAkCAYAAADrcPSPAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA8USURBVHgB7V1NbCRHFX6vemx+DmQWIgJc0j5kQ4RQvGeUeHyE2LteEJwixY4EydomthGIG7YvKEIRa7P2ZgEpHitXBLP2rpAipJ1NDjnaOUE2SG6iiEuQcASbLJ7pKt6r7p6p7unf8exidvuT2jPTXf26+lW9V6++et0GKFGixF0DQh84sGvVFsAUgnxSAtq0a9QQ6CiAQzp2dQis5ojTdKBEiQcUhQzsll2bBlDP0VbLfxY2AeT2aeetOpQo8YAhl4G9a9dotFIXybBs6B80somlx51mA0qUeECQamAcCrZBbSlQUzA4rJ123lyCe4SpRVWFdjeEBQmHjcu4DyXuK5ydd1eUwuXODiFndi9V6vA/hkg6QMZlt0DtDdi4GIvv2mN/gHuENhmXq9SNYFMoF6BEiXuEWAPzjevGMUPCRFC4OfWeXatBiRL3OXoMzGMIB2Fc2CRDSgwFFbg2lChxn6PHwNogl+OMCwGJnEAHUkATukOPNVQzp52b4xWw6sllLQdKlLjPUTF/EA0/qkAuxhVsAy49QWtaHNrROpft794/7TQTCQNaAzu8ZY81Y2h95zGn2YQTCE2KHIHtBmt7Ag4tchyNDXYcfcibVaOuIH1JqPJvS4BDWt9vrOFh4jkvKpvOqQW/6fr7ATGj5Zl1k+D0Q9rQfdoukz9+vYL7zKpbgqzB6ywiq596nQRUwj+Zik9HUcNwAWdIQUbIiU3eBwPC1LyquQjnwCX56HcWgjWEM9QgTiE5Si27LTVqyqFYlu4BYHJO8o+6NSRWs+Ryh5NHsKBQLbpAnY9kBHyty99bWl4TlNzevdzLdGnjQrUV/JaoVql+V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";
16646
16620
  const _hoisted_1$o = ["src"];
16647
16621
  const _sfc_main$t = /* @__PURE__ */ defineComponent({
@@ -16668,7 +16642,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
16668
16642
  };
16669
16643
  }
16670
16644
  });
16671
- const ChatBot = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-gitcode-layout-lib"]]);
16645
+ const ChatBot_vue_vue_type_style_index_0_scoped_e951add8_lang = "";
16646
+ const ChatBot = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-e951add8"]]);
16672
16647
  const _hoisted_1$n = { class: "devui-select__item g-option-link" };
16673
16648
  const _sfc_main$s = /* @__PURE__ */ defineComponent({
16674
16649
  ...{
@@ -16699,7 +16674,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
16699
16674
  };
16700
16675
  }
16701
16676
  });
16702
- const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-gitcode-layout-lib"]]);
16677
+ const index_vue_vue_type_style_index_0_scoped_3606a524_lang = "";
16678
+ const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-3606a524"]]);
16679
+ const index_vue_vue_type_style_index_0_scoped_8c5cf616_lang = "";
16703
16680
  const _sfc_main$r = /* @__PURE__ */ Object.assign({
16704
16681
  name: "Create"
16705
16682
  }, {
@@ -16789,7 +16766,7 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({
16789
16766
  };
16790
16767
  }
16791
16768
  });
16792
- const Create = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-gitcode-layout-lib"]]);
16769
+ const Create = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-8c5cf616"]]);
16793
16770
  const _sfc_main$q = /* @__PURE__ */ defineComponent({
16794
16771
  ...{
16795
16772
  name: "DocumentCenter"
@@ -16816,7 +16793,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
16816
16793
  };
16817
16794
  }
16818
16795
  });
16819
- const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-gitcode-layout-lib"]]);
16796
+ const DocumentCenter_vue_vue_type_style_index_0_scoped_a5926f52_lang = "";
16797
+ const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-a5926f52"]]);
16820
16798
  var root = _root;
16821
16799
  var now$1 = function() {
16822
16800
  return root.Date.now();
@@ -17013,7 +16991,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17013
16991
  };
17014
16992
  }
17015
16993
  });
17016
- const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-gitcode-layout-lib"]]);
16994
+ const Notice_vue_vue_type_style_index_0_scoped_061b58d4_lang = "";
16995
+ const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-061b58d4"]]);
17017
16996
  const _hoisted_1$m = {
17018
16997
  key: 0,
17019
16998
  class: "user-level-avatar-badge"
@@ -17096,7 +17075,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17096
17075
  };
17097
17076
  }
17098
17077
  });
17099
- const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-gitcode-layout-lib"]]);
17078
+ const UserLevel_vue_vue_type_style_index_0_scoped_9dda511e_lang = "";
17079
+ const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-9dda511e"]]);
17100
17080
  const _hoisted_1$l = { class: "g-user-drawer-info-list pl-[16px]" };
17101
17081
  const _hoisted_2$f = { class: "max-w-[200px]" };
17102
17082
  const _hoisted_3$c = ["title"];
@@ -17210,7 +17190,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17210
17190
  }
17211
17191
  }
17212
17192
  const getVisit = async (value) => {
17213
- const visitedDate = localStorage$2.getItem(AVATAR_VISITED_DATE);
17193
+ const visitedDate = value || localStorage$2.getItem(AVATAR_VISITED_DATE);
17214
17194
  const nowDate = (/* @__PURE__ */ new Date()).toLocaleDateString("zh-CN");
17215
17195
  const nowUserName = localStorage$2.getItem(AVATAR_VISITED_USERNAME);
17216
17196
  if (visitedDate === nowDate && nowUserName === props.accountInfo.username) {
@@ -17283,7 +17263,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17283
17263
  };
17284
17264
  }
17285
17265
  });
17286
- const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-gitcode-layout-lib"]]);
17266
+ const UserAvatarMenu_vue_vue_type_style_index_0_scoped_dfa86b44_lang = "";
17267
+ const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-dfa86b44"]]);
17287
17268
  const _hoisted_1$k = { class: "g-user-avatar flex-center ml-1" };
17288
17269
  const _hoisted_2$e = {
17289
17270
  key: 0,
@@ -17327,14 +17308,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17327
17308
  handleAvatarRedPoint(CLICK_TIME_MODULE.GROWTH_CENTER, accountInfo.value.username);
17328
17309
  };
17329
17310
  const getVisit = async (value) => {
17330
- const visitedDate = localStorage$2.getItem(AVATAR_VISITED_DATE);
17311
+ const visitedDate = value || localStorage$2.getItem(AVATAR_VISITED_DATE);
17331
17312
  const nowDate = (/* @__PURE__ */ new Date()).toLocaleDateString("zh-CN");
17332
17313
  const nowUserName = localStorage$2.getItem(AVATAR_VISITED_USERNAME);
17333
17314
  if (visitedDate === nowDate && nowUserName === accountInfo.value.username) {
17334
17315
  haveVisited.value = true;
17335
17316
  }
17336
17317
  };
17337
- getVisit();
17318
+ getVisit("");
17338
17319
  const getScrollDom = () => {
17339
17320
  if (typeof document !== "undefined" && document.getElementById) {
17340
17321
  const appDom = document.getElementById("app");
@@ -17403,7 +17384,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17403
17384
  };
17404
17385
  }
17405
17386
  });
17406
- const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
17387
+ const UserAvatar_vue_vue_type_style_index_0_scoped_2b79e772_lang = "";
17388
+ const UserAvatar_vue_vue_type_style_index_1_lang = "";
17389
+ const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-2b79e772"]]);
17407
17390
  var EVENT_NAME = /* @__PURE__ */ ((EVENT_NAME2) => {
17408
17391
  EVENT_NAME2["START_SEARCH"] = "开始搜索";
17409
17392
  EVENT_NAME2["SEARCH"] = "搜索";
@@ -17462,7 +17445,7 @@ function _frEventTrack(eventName, type = "custom") {
17462
17445
  }
17463
17446
  }
17464
17447
  const setlocalVistHistory = (data, localType) => {
17465
- const storeName = localType;
17448
+ const storeName = localType || "localVistList";
17466
17449
  const localData = localStorage$2.getItem(storeName);
17467
17450
  let cur = [];
17468
17451
  if (localData) {
@@ -17480,13 +17463,18 @@ const setlocalVistHistory = (data, localType) => {
17480
17463
  cur.splice(cur.indexOf(target), 1);
17481
17464
  cur.unshift(target);
17482
17465
  }
17466
+ } else {
17467
+ if (!cur.some((ele) => ele === data || data.label && ele.label === data.label)) {
17468
+ cur.unshift(data);
17469
+ }
17483
17470
  }
17484
17471
  } catch (e) {
17485
17472
  }
17486
17473
  } else {
17487
17474
  cur = [data];
17488
17475
  }
17489
- const storageCount = 10;
17476
+ const isLocalSearch = localType === "localSearchText";
17477
+ const storageCount = isLocalSearch ? 10 : 5;
17490
17478
  cur.splice(storageCount);
17491
17479
  localStorage$2.setItem(storeName, JSON.stringify(cur));
17492
17480
  return cur;
@@ -17568,13 +17556,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
17568
17556
  setup(__props) {
17569
17557
  var _a;
17570
17558
  const { t: $t } = i18n.global;
17571
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-Df6SVTL3.js"));
17572
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-BSGSjBV9.js"));
17573
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-Dr0VSu2v.js"));
17574
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BS5aTLKu.js"));
17575
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BrmprIad.js"));
17576
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-LSqh_YHt.js"));
17577
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-C2E23CZf.js"));
17559
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-972d11b3.js"));
17560
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-180a98d2.js"));
17561
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-964bc98f.js"));
17562
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-5ac72ba3.js"));
17563
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-742a974b.js"));
17564
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-132d1819.js"));
17565
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-a36add1c.js"));
17578
17566
  const props = __props;
17579
17567
  const repoInfo = inject("repoInfo");
17580
17568
  const orgInfo = inject("orgInfo");
@@ -18093,8 +18081,10 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18093
18081
  };
18094
18082
  }
18095
18083
  });
18096
- const Search = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18097
- const NoticeModal = defineAsyncComponent(() => import("./notice-kPXHskSq.js"));
18084
+ const index_vue_vue_type_style_index_0_scoped_56b3cd7b_lang = "";
18085
+ const index_vue_vue_type_style_index_1_lang$2 = "";
18086
+ const Search = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-56b3cd7b"]]);
18087
+ const NoticeModal = defineAsyncComponent(() => import("./notice-8fa57727.js"));
18098
18088
  function clearNotice() {
18099
18089
  if (localStorage$2.getItem("validator_email")) {
18100
18090
  localStorage$2.removeItem("validator_email");
@@ -18434,7 +18424,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
18434
18424
  };
18435
18425
  }
18436
18426
  });
18437
- const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18427
+ const index_vue_vue_type_style_index_0_scoped_1d4870b7_lang = "";
18428
+ const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-1d4870b7"]]);
18438
18429
  const createSetting = () => {
18439
18430
  const { t: t2 } = i18n.global;
18440
18431
  const settings = {
@@ -18482,6 +18473,7 @@ if (isBrowser) {
18482
18473
  }
18483
18474
  };
18484
18475
  }
18476
+ const sessionStorage$1 = sessionStorage;
18485
18477
  const _hoisted_1$h = { class: "tools-item-wrapper" };
18486
18478
  const _hoisted_2$b = { class: "tools-item-wrapper-checkbox" };
18487
18479
  const _hoisted_3$8 = ["onClick", "title"];
@@ -18493,11 +18485,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
18493
18485
  const router2 = useRouter();
18494
18486
  const { t: t2 } = i18n.global;
18495
18487
  const handleClick = (linkItem) => {
18496
- if (lang.value === linkItem.value) return;
18488
+ if (lang.value === linkItem.value)
18489
+ return;
18497
18490
  lang.value = linkItem.value;
18498
18491
  const isHomePage = router2.currentRoute.value.name === "home";
18499
18492
  if (isHomePage) {
18500
- sessionStorage.setItem("page_reload", "changedLang");
18493
+ sessionStorage$1.setItem("page_reload", "changedLang");
18501
18494
  }
18502
18495
  window.location.reload();
18503
18496
  };
@@ -18544,7 +18537,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
18544
18537
  { value: ThemeType.BLACK, icon: "gt-line-dark" }
18545
18538
  ]);
18546
18539
  const handleClick = (themeItem) => {
18547
- if (activeTheme.value === themeItem.value) return;
18540
+ if (activeTheme.value === themeItem.value)
18541
+ return;
18548
18542
  activeTheme.value = themeItem.value;
18549
18543
  if (themeItem.value === "System") {
18550
18544
  theme.startAutoTheme();
@@ -18581,6 +18575,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
18581
18575
  };
18582
18576
  }
18583
18577
  });
18578
+ const Theme_vue_vue_type_style_index_0_lang = "";
18584
18579
  const loadAsideData = async (requestFn, params = {}, dataType = "project") => {
18585
18580
  var _a, _b;
18586
18581
  try {
@@ -18625,14 +18620,16 @@ const loadAsideData = async (requestFn, params = {}, dataType = "project") => {
18625
18620
  };
18626
18621
  const layoutConfig$1 = useLayoutConfig();
18627
18622
  const transWebUrl = (url, params) => {
18628
- if (!url) return url;
18623
+ if (!url)
18624
+ return url;
18629
18625
  let processedUrl = url;
18630
18626
  if (layoutConfig$1.VITE_ENV !== "production") {
18631
18627
  const regex = /^(?:https?:\/\/)?(?:www\.)?([^\/]+)(\/.*)$/;
18632
18628
  const match = url.match(regex);
18633
18629
  processedUrl = match ? match[2] : url || "/";
18634
18630
  }
18635
- if (!params) return processedUrl;
18631
+ if (!params)
18632
+ return processedUrl;
18636
18633
  const separator = processedUrl.includes("?") ? "&" : "?";
18637
18634
  if (typeof params === "string") {
18638
18635
  return `${processedUrl}${separator}${params}`;
@@ -18807,7 +18804,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
18807
18804
  if (inputIng.value) {
18808
18805
  return;
18809
18806
  }
18810
- if (scTimer) clearTimeout(scTimer);
18807
+ if (scTimer)
18808
+ clearTimeout(scTimer);
18811
18809
  scTimer = setTimeout(() => {
18812
18810
  if (props.type === "project") {
18813
18811
  searchProject();
@@ -18987,7 +18985,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
18987
18985
  };
18988
18986
  }
18989
18987
  });
18990
- const ProjectMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18988
+ const ProjectMenuList_vue_vue_type_style_index_0_scoped_6834b457_lang = "";
18989
+ const ProjectMenuList_vue_vue_type_style_index_1_lang = "";
18990
+ const ProjectMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-6834b457"]]);
18991
18991
  const _hoisted_1$e = { class: "side-bar-label" };
18992
18992
  const _hoisted_2$8 = {
18993
18993
  key: 0,
@@ -19078,15 +19078,18 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19078
19078
  };
19079
19079
  const username = computed(() => (userInfo == null ? void 0 : userInfo.username) || JSON.parse(localStorage$2.getItem("userInfo") || "{}").username);
19080
19080
  const showPreferencesSetting = computed(() => {
19081
- if (props.showPreferencesSetting !== void 0) return !props.asideSetShowLittle && props.showPreferencesSetting;
19081
+ if (props.showPreferencesSetting !== void 0)
19082
+ return !props.asideSetShowLittle && props.showPreferencesSetting;
19082
19083
  return !props.asideSetShowLittle && route.name !== AICopilot_ROUTE_NAME && isModuleVisible(AsideDisplayItem.PREFERENCE);
19083
19084
  });
19084
19085
  const showThemeSetting = computed(() => {
19085
- if (props.showPreferencesSetting !== void 0 && props.showThemeSetting !== void 0) return props.showThemeSetting;
19086
+ if (props.showPreferencesSetting !== void 0 && props.showThemeSetting !== void 0)
19087
+ return props.showThemeSetting;
19086
19088
  return ![SceneValue.aiHome, SceneValue.aiGuide].includes(props.sceneValue);
19087
19089
  });
19088
19090
  const showLangSetting = computed(() => {
19089
- if (props.showPreferencesSetting !== void 0 && props.showLangSetting !== void 0) return props.showLangSetting;
19091
+ if (props.showPreferencesSetting !== void 0 && props.showLangSetting !== void 0)
19092
+ return props.showLangSetting;
19090
19093
  return true;
19091
19094
  });
19092
19095
  const isEn = computed(() => {
@@ -19275,14 +19278,16 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19275
19278
  emits("onMenuClick");
19276
19279
  };
19277
19280
  function checkMenu() {
19278
- if (!route) return;
19281
+ if (!route)
19282
+ return;
19279
19283
  const name = route == null ? void 0 : route.name;
19280
19284
  if (MENU_ITEM_ROUTE_NAME.includes(name)) {
19281
19285
  defaultSelectKeys.value = [name];
19282
19286
  console.log(defaultSelectKeys.value);
19283
19287
  } else {
19284
19288
  const basePath = route.meta.basePath;
19285
- if (basePath) defaultSelectKeys.value = [basePath];
19289
+ if (basePath)
19290
+ defaultSelectKeys.value = [basePath];
19286
19291
  }
19287
19292
  }
19288
19293
  watch(
@@ -19303,7 +19308,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19303
19308
  const timer = ref(null);
19304
19309
  const handleScroll = () => {
19305
19310
  isScroll.value = true;
19306
- if (timer.value) clearTimeout(timer.value);
19311
+ if (timer.value)
19312
+ clearTimeout(timer.value);
19307
19313
  timer.value = setTimeout(() => {
19308
19314
  isScroll.value = false;
19309
19315
  }, 1e3);
@@ -19580,7 +19586,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19580
19586
  };
19581
19587
  }
19582
19588
  });
19583
- const AsideContent = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-gitcode-layout-lib"]]);
19589
+ const asideContent_vue_vue_type_style_index_0_scoped_f33b2a32_lang = "";
19590
+ const asideContent_vue_vue_type_style_index_1_lang = "";
19591
+ const AsideContent = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-f33b2a32"]]);
19584
19592
  const _hoisted_1$d = { class: "p-[16px] flex justify-between items-center h-[60px]" };
19585
19593
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
19586
19594
  __name: "index",
@@ -19607,7 +19615,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19607
19615
  provide("userInfo", computed(() => props.userInfo));
19608
19616
  provide("useReport", useReport2);
19609
19617
  const showBgColor = computed(() => {
19610
- if (route.meta.showBgColor) return true;
19618
+ if (route.meta.showBgColor)
19619
+ return true;
19611
19620
  return false;
19612
19621
  });
19613
19622
  const asideSetShow = computed(() => {
@@ -19713,7 +19722,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19713
19722
  };
19714
19723
  }
19715
19724
  });
19716
- const GitCodeAside = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-gitcode-layout-lib"]]);
19725
+ const index_vue_vue_type_style_index_0_scoped_f5208450_lang = "";
19726
+ const index_vue_vue_type_style_index_1_lang$1 = "";
19727
+ const GitCodeAside = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-f5208450"]]);
19717
19728
  const repoInfoData = {
19718
19729
  "star_count": 0,
19719
19730
  "forks_count": 0,
@@ -20388,6 +20399,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
20388
20399
  };
20389
20400
  }
20390
20401
  });
20402
+ const home_vue_vue_type_style_index_0_lang = "";
20391
20403
  const _hoisted_1$b = { class: "home-wrapper" };
20392
20404
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
20393
20405
  __name: "login",
@@ -20434,6 +20446,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
20434
20446
  };
20435
20447
  }
20436
20448
  });
20449
+ const login_vue_vue_type_style_index_0_lang = "";
20437
20450
  const routes = [
20438
20451
  {
20439
20452
  path: "/",
@@ -20521,7 +20534,7 @@ async function csdnloginCheck(route, loginCallback, request) {
20521
20534
  localStorage$2.setItem("cache_loginTimes", `${Number(loginTimes) + 1}`);
20522
20535
  window.page_title = ((_f = route.meta) == null ? void 0 : _f.reportTitle) || "";
20523
20536
  await useReport("pageview", {}, request);
20524
- sessionStorage.setItem(GOTO_QUICK_LOGIN, "1");
20537
+ sessionStorage$1.setItem(GOTO_QUICK_LOGIN, "1");
20525
20538
  loginCallback();
20526
20539
  return true;
20527
20540
  }
@@ -20541,7 +20554,8 @@ const createLoginConfig = (request) => {
20541
20554
  }, failFunc = () => {
20542
20555
  } } = param;
20543
20556
  const check = validFunc ? await validFunc() : true;
20544
- if (!check) return;
20557
+ if (!check)
20558
+ return;
20545
20559
  const result2 = await API.loginByMobile(loginParams);
20546
20560
  if (!result2.error) {
20547
20561
  const resultData = result2.data.data;
@@ -20558,7 +20572,8 @@ const createLoginConfig = (request) => {
20558
20572
  }, failFunc = () => {
20559
20573
  } } = param;
20560
20574
  const check = validFunc ? await validFunc() : true;
20561
- if (!check) return;
20575
+ if (!check)
20576
+ return;
20562
20577
  const result2 = await API.toLogin(loginParams);
20563
20578
  if (((_a = result2 == null ? void 0 : result2.error) == null ? void 0 : _a.error_code) === GRAPH_CODE) {
20564
20579
  graphValidate();
@@ -20606,7 +20621,8 @@ const createLoginConfig = (request) => {
20606
20621
  beforeCsdnLogin(param) {
20607
20622
  const { type, validFunc } = param;
20608
20623
  const check = validFunc ? validFunc() : true;
20609
- if (!check) return;
20624
+ if (!check)
20625
+ return;
20610
20626
  saveStatusBeforeLogin(param);
20611
20627
  goAuthPage(type);
20612
20628
  },
@@ -20632,7 +20648,8 @@ const createLoginConfig = (request) => {
20632
20648
  async beforeWechatLogin(param) {
20633
20649
  const { validFunc, type } = param;
20634
20650
  const check = validFunc == null ? void 0 : validFunc();
20635
- if (!check) return;
20651
+ if (!check)
20652
+ return;
20636
20653
  saveStatusBeforeLogin(param);
20637
20654
  goAuthPage(type);
20638
20655
  },
@@ -20644,7 +20661,8 @@ const createLoginConfig = (request) => {
20644
20661
  beforeOtherLogin(param) {
20645
20662
  const { type, validFunc } = param;
20646
20663
  const check = validFunc ? validFunc() : true;
20647
- if (!check) return;
20664
+ if (!check)
20665
+ return;
20648
20666
  saveStatusBeforeLogin(param);
20649
20667
  goAuthPage(type);
20650
20668
  },
@@ -20671,7 +20689,7 @@ function saveSignPath() {
20671
20689
  localStorage$2.setItem("sign_path", (window == null ? void 0 : window.location.href) || "");
20672
20690
  }
20673
20691
  function saveLoginType(triggerType = "") {
20674
- sessionStorage.setItem("loginType", triggerType);
20692
+ sessionStorage$1.setItem("loginType", triggerType);
20675
20693
  }
20676
20694
  function getLoginReturnUrl() {
20677
20695
  return api.get("third_utm_source_sign_path") || localStorage$2.getItem("loginReturnUrl") || "/";
@@ -20850,57 +20868,57 @@ const HandleParentWindowGetLoginInfo = (request) => {
20850
20868
  }
20851
20869
  };
20852
20870
  };
20853
- const logoBack = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eic/左备份%3c/title%3e%3cg%20id='PC端'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='02-登录注册-登录、注册'%20transform='translate(-153,%20-1855)'%20fill='%238A8E99'%20fill-rule='nonzero'%3e%3cg%20id='编组-8'%20transform='translate(125,%201830)'%3e%3cg%20id='ic/左备份'%20transform='translate(31.1393,%2028.9697)'%3e%3cpolygon%20id='路径'%20points='8.03029121%203.55271368e-15%209.09102914%201.0605824%202.8725%207.2795%2017.8606602%207.2802912%2017.8606602%208.7802912%202.8695%208.7795%209.09102914%2014.9999222%208.03036898%2016.0606602%200%208.03146884'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
20871
+ const logoBack = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjI0cHgiIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAwIDI0IDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KICAgIDx0aXRsZT5pYy/lt6blpIfku708L3RpdGxlPg0KICAgIDxnIGlkPSJQQ+erryIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+DQogICAgICAgIDxnIGlkPSIwMi3nmbvlvZXms6jlhowt55m75b2V44CB5rOo5YaMIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTUzLCAtMTg1NSkiIGZpbGw9IiM4QThFOTkiIGZpbGwtcnVsZT0ibm9uemVybyI+DQogICAgICAgICAgICA8ZyBpZD0i57yW57uELTgiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEyNSwgMTgzMCkiPg0KICAgICAgICAgICAgICAgIDxnIGlkPSJpYy/lt6blpIfku70iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDMxLjEzOTMsIDI4Ljk2OTcpIj4NCiAgICAgICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9Iui3r+W+hCIgcG9pbnRzPSI4LjAzMDI5MTIxIDMuNTUyNzEzNjhlLTE1IDkuMDkxMDI5MTQgMS4wNjA1ODI0IDIuODcyNSA3LjI3OTUgMTcuODYwNjYwMiA3LjI4MDI5MTIgMTcuODYwNjYwMiA4Ljc4MDI5MTIgMi44Njk1IDguNzc5NSA5LjA5MTAyOTE0IDE0Ljk5OTkyMjIgOC4wMzAzNjg5OCAxNi4wNjA2NjAyIDAgOC4wMzE0Njg4NCI+PC9wb2x5Z29uPg0KICAgICAgICAgICAgICAgIDwvZz4NCiAgICAgICAgICAgIDwvZz4NCiAgICAgICAgPC9nPg0KICAgIDwvZz4NCjwvc3ZnPg==";
20854
20872
  const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20855
20873
  __proto__: null,
20856
20874
  default: logoBack
20857
20875
  }, Symbol.toStringTag, { value: "Module" }));
20858
- const logoCsdn = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='30px'%20height='30px'%20viewBox='0%200%2030%2030'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eic/csdn%3c/title%3e%3cg%20id='ic/csdn'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M24.7385612,21.818791%20C24.4728206,21.5662432%2024.1090763,21.4267765%2023.7575825,21.4343152%20C23.3966653,21.4399693%2023.0696724,21.5907441%2022.8378562,21.8555424%20C20.7581061,24.2349574%2017.1347988,24.4922169%2015.6732254,24.4922169%20C12.9611634,24.4922169%2010.886125,23.8043069%209.50559315,22.4501605%20C8.19385225,21.1638629%207.50594216,19.2678696%207.46070972,16.8168365%20C7.35516735,11.1345107%2010.5732673,5.25806226%2016.139685,5.25806226%20C18.7980335,5.25806226%2020.8627061,7.14368979%2021.6260036,7.95410443%20C21.8917442,8.23586486%2022.2583155,8.39794779%2022.6352525,8.39983247%20C23.0131319,8.4092559%2023.362741,8.24151892%2023.599269,7.96164317%20L23.8160078,7.70532598%20C24.2607935,7.18232584%2024.4605701,6.50572386%2024.380471,5.80179394%20C24.2984872,5.09126763%2023.9422817,4.44293592%2023.3778185,3.97459165%20C22.0133064,2.84472288%2019.6951436,1.5%2016.3969445,1.5%20C12.9715292,1.5%209.58757695,3.07465447%207.1129853,5.82441016%20C4.51306208,8.71269021%203.1240491,12.6441435%203.20320588,16.895051%20C3.26634283,20.3063311%204.38490349,23.1729373%206.44015269,25.1886081%20C8.64806138,27.3550537%2011.8821812,28.5%2015.7947876,28.5%20C20.3849384,28.5%2023.2289283,27.1401996%2024.8082945,26.0009074%20C25.4198749,25.5608334%2025.7845615,24.8644423%2025.8128317,24.093606%20C25.8392173,23.3190004%2025.5225902,22.5604146%2024.9430495,22.0119712%20L24.7385612,21.818791%20Z'%20id='Fill-1'%20fill='%23FC5533'%3e%3c/path%3e%3c/g%3e%3c/svg%3e";
20876
+ const logoCsdn = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjMwcHgiIGhlaWdodD0iMzBweCIgdmlld0JveD0iMCAwIDMwIDMwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA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 */ Object.defineProperty({
20860
20878
  __proto__: null,
20861
20879
  default: logoCsdn
20862
20880
  }, Symbol.toStringTag, { value: "Module" }));
20863
- const logoGit = "data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_5084_286)'%3e%3cpath%20d='M35.2868%2016.3983L19.5839%200.696229C18.6798%20-0.208639%2017.2132%20-0.208639%2016.3083%200.696229L12.66%204.34447L15.4056%207.09C15.8458%206.87925%2016.3385%206.76128%2016.8593%206.76128C18.7215%206.76128%2020.2313%208.27107%2020.2313%2010.1333C20.2313%2010.6541%2020.1133%2011.1468%2019.9026%2011.587L24.3974%2016.0818C24.8376%2015.8711%2025.3303%2015.7531%2025.8511%2015.7531C27.7134%2015.7531%2029.2231%2017.2629%2029.2231%2019.1252C29.2231%2020.9874%2027.7134%2022.4972%2025.8511%2022.4972C23.9889%2022.4972%2022.4791%2020.9874%2022.4791%2019.1252C22.4791%2018.6044%2022.597%2018.1117%2022.8078%2017.6715L18.313%2013.1766C18.2058%2013.2277%2018.0957%2013.273%2017.9835%2013.3126V22.6892C19.2926%2023.1525%2020.2313%2024.4004%2020.2313%2025.8685C20.2313%2027.7308%2018.7215%2029.2405%2016.8593%2029.2405C14.997%2029.2405%2013.4872%2027.7308%2013.4872%2025.8685C13.4872%2024.4004%2014.4259%2023.1525%2015.735%2022.6892V13.3126C14.4259%2012.8494%2013.4872%2011.6014%2013.4872%2010.1333C13.4872%209.61255%2013.6052%209.11984%2013.8159%208.67963L11.0704%205.9341L0.678111%2016.3257C-0.226037%2017.2313%20-0.226037%2018.6979%200.678111%2019.6021L16.3817%2035.3042C17.2858%2036.2083%2018.7517%2036.2083%2019.6573%2035.3042L35.2868%2019.6747C36.1916%2018.7698%2036.1916%2017.3025%2035.2868%2016.3983Z'%20fill='%23F74E27'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_5084_286'%3e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DMTkuMjkyNiAyMy4xNTI1IDIwLjIzMTMgMjQuNDAwNCAyMC4yMzEzIDI1Ljg2ODVDMjAuMjMxMyAyNy43MzA4IDE4LjcyMTUgMjkuMjQwNSAxNi44NTkzIDI5LjI0MDVDMTQuOTk3IDI5LjI0MDUgMTMuNDg3MiAyNy43MzA4IDEzLjQ4NzIgMjUuODY4NUMxMy40ODcyIDI0LjQwMDQgMTQuNDI1OSAyMy4xNTI1IDE1LjczNSAyMi42ODkyVjEzLjMxMjZDMTQuNDI1OSAxMi44NDk0IDEzLjQ4NzIgMTEuNjAxNCAxMy40ODcyIDEwLjEzMzNDMTMuNDg3MiA5LjYxMjU1IDEzLjYwNTIgOS4xMTk4NCAxMy44MTU5IDguNjc5NjNMMTEuMDcwNCA1LjkzNDFMMC42NzgxMTEgMTYuMzI1N0MtMC4yMjYwMzcgMTcuMjMxMyAtMC4yMjYwMzcgMTguNjk3OSAwLjY3ODExMSAxOS42MDIxTDE2LjM4MTcgMzUuMzA0MkMxNy4yODU4IDM2LjIwODMgMTguNzUxNyAzNi4yMDgzIDE5LjY1NzMgMzUuMzA0MkwzNS4yODY4IDE5LjY3NDdDMzYuMTkxNiAxOC43Njk4IDM2LjE5MTYgMTcuMzAyNSAzNS4yODY4IDE2LjM5ODNaIiBmaWxsPSIjRjc0RTI3Ii8+DQo8L2c+DQo8ZGVmcz4NCjxjbGlwUGF0aCBpZD0iY2xpcDBfNTA4NF8yODYiPg0KPHJlY3Qgd2lkdGg9IjM2IiBoZWlnaHQ9IjM2IiBmaWxsPSJ3aGl0ZSIvPg0KPC9jbGlwUGF0aD4NCjwvZGVmcz4NCjwvc3ZnPg0K";
20864
20882
  const __vite_glob_0_2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20865
20883
  __proto__: null,
20866
20884
  default: logoGit
20867
20885
  }, Symbol.toStringTag, { value: "Module" }));
20868
- const logoGitee = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1698805664755'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6116'%20width='128'%20height='128'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M512%20512m-494.933333%200a494.933333%20494.933333%200%201%200%20989.866666%200%20494.933333%20494.933333%200%201%200-989.866666%200Z'%20fill='%23C71D23'%20p-id='6117'%3e%3c/path%3e%3cpath%20d='M762.538667%20457.045333h-281.088a24.4736%2024.4736%200%200%200-24.439467%2024.405334v61.098666c-0.034133%2013.5168%2010.922667%2024.439467%2024.405333%2024.439467h171.1104c13.5168%200%2024.439467%2010.922667%2024.439467%2024.439467v12.219733a73.3184%2073.3184%200%200%201-73.3184%2073.3184h-232.209067a24.439467%2024.439467%200%200%201-24.439466-24.439467v-232.174933a73.3184%2073.3184%200%200%201%2073.3184-73.3184h342.152533c13.482667%200%2024.405333-10.922667%2024.439467-24.439467l0.034133-61.098666a24.405333%2024.405333%200%200%200-24.405333-24.439467H420.352a183.296%20183.296%200%200%200-183.296%20183.296V762.538667c0%2013.482667%2010.922667%2024.439467%2024.405333%2024.439466h360.516267a164.9664%20164.9664%200%200%200%20165.000533-165.000533v-140.526933a24.439467%2024.439467%200%200%200-24.439466-24.439467z'%20fill='%23FFFFFF'%20p-id='6118'%3e%3c/path%3e%3c/svg%3e";
20886
+ const logoGitee = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjk4ODA1NjY0NzU1IiBjbGFz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A1MzMzLTI0LjQzOTQ2N0g0MjAuMzUyYTE4My4yOTYgMTgzLjI5NiAwIDAgMC0xODMuMjk2IDE4My4yOTZWNzYyLjUzODY2N2MwIDEzLjQ4MjY2NyAxMC45MjI2NjcgMjQuNDM5NDY3IDI0LjQwNTMzMyAyNC40Mzk0NjZoMzYwLjUxNjI2N2ExNjQuOTY2NCAxNjQuOTY2NCAwIDAgMCAxNjUuMDAwNTMzLTE2NS4wMDA1MzN2LTE0MC41MjY5MzNhMjQuNDM5NDY3IDI0LjQzOTQ2NyAwIDAgMC0yNC40Mzk0NjYtMjQuNDM5NDY3eiIgZmlsbD0iI0ZGRkZGRiIgcC1pZD0iNjExOCI+PC9wYXRoPjwvc3ZnPg==";
20869
20887
  const __vite_glob_0_3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20870
20888
  __proto__: null,
20871
20889
  default: logoGitee
20872
20890
  }, Symbol.toStringTag, { value: "Module" }));
20873
- const logoGithubWhite = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1728468092548'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='27599'%20id='mx_n_1728468092549'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M533.312%2032A490.496%20490.496%200%200%200%2042.688%20522.688a490.24%20490.24%200%200%200%20335.488%20465.472c24.512%204.288%2033.664-10.432%2033.664-23.296%200-11.648-0.576-50.24-0.576-91.392-123.264%2022.72-155.136-30.08-164.928-57.6-5.568-14.08-29.44-57.664-50.368-69.312-17.152-9.216-41.664-31.936-0.64-32.512%2038.72-0.64%2066.304%2035.584%2075.52%2050.304%2044.16%2074.24%20114.688%2053.312%20142.912%2040.448%204.224-31.872%2017.152-53.376%2031.232-65.664-109.184-12.224-223.232-54.528-223.232-242.24%200-53.312%2019.008-97.472%2050.304-131.84-4.928-12.288-22.08-62.592%204.864-130.048%200%200%2041.088-12.864%20134.976%2050.304a454.72%20454.72%200%200%201%20122.688-16.576c41.664%200%2083.392%205.568%20122.624%2016.576%2093.888-63.808%20134.912-50.304%20134.912-50.304%2027.008%2067.456%209.856%20117.76%204.928%20130.048%2031.296%2034.368%2050.304%2077.888%2050.304%20131.84%200%20188.288-114.688%20229.952-223.872%20242.24%2017.792%2015.36%2033.088%2044.8%2033.088%2090.816%200%2065.6-0.576%20118.4-0.576%20134.912%200%2012.864%209.216%2028.224%2033.728%2023.36A491.456%20491.456%200%200%200%201024%20522.688%20490.496%20490.496%200%200%200%20533.312%2032z'%20p-id='27600'%20fill='%23f0f6fc'%3e%3c/path%3e%3c/svg%3e";
20891
+ const logoGithubWhite = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNzI4NDY4MDkyNTQ4IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI3NTk5IiBpZD0ibXhfbl8xNzI4NDY4MDkyNTQ5IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik01MzMuMzEyIDMyQTQ5MC40OTYgNDkwLjQ5NiAwIDAgMCA0Mi42ODggNTIyLjY4OGE0OTAuMjQgNDkwLjI0IDAgMCA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xMzQuOTEyIDAgMTIuODY0IDkuMjE2IDI4LjIyNCAzMy43MjggMjMuMzZBNDkxLjQ1NiA0OTEuNDU2IDAgMCAwIDEwMjQgNTIyLjY4OCA0OTAuNDk2IDQ5MC40OTYgMCAwIDAgNTMzLjMxMiAzMnoiIHAtaWQ9IjI3NjAwIiBmaWxsPSIjZjBmNmZjIj48L3BhdGg+PC9zdmc+";
20874
20892
  const __vite_glob_0_4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20875
20893
  __proto__: null,
20876
20894
  default: logoGithubWhite
20877
20895
  }, Symbol.toStringTag, { value: "Module" }));
20878
- const logoGithub = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='30px'%20height='30px'%20viewBox='0%200%2030%2030'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eic/github%3c/title%3e%3cg%20id='ic/github'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M15.011998,0.5%20C6.987238,0.5%200.5,7.03506277%200.5,15.1198266%20C0.5,21.5824096%204.65659697,27.0528512%2010.4228987,28.9890121%20C11.143835,29.1345657%2011.4079109,28.6744379%2011.4079109,28.287384%20C11.4079109,27.9484518%2011.3841471,26.7866959%2011.3841471,25.5762241%20C7.34726055,26.4477638%206.50661383,23.8334416%206.50661383,23.8334416%20C5.85786033,22.1390781%204.89661201,21.7036053%204.89661201,21.7036053%20C3.57534113,20.8080046%204.99285566,20.8080046%204.99285566,20.8080046%20C6.45849201,20.9048424%207.22755008,22.3086927%207.22755008,22.3086927%20C8.52476004,24.5353668%2010.615089,23.9062185%2011.4560327,23.5188675%20C11.5760403,22.574848%2011.9607178,21.9213417%2012.3691592,21.5583486%20C9.14945263,21.2194165%205.76191373,19.9608228%205.76191373,14.3451246%20C5.76191373,12.7475988%206.33818744,11.4405862%207.25131394,10.4240869%20C7.10724551,10.0610939%206.60256044,8.56010879%207.39567942,6.55117108%20C7.39567942,6.55117108%208.62100369,6.16382009%2011.38385,8.05185913%20C12.5667228,7.73183788%2013.7866003,7.56904106%2015.011998,7.56767039%20C16.2373223,7.56767039%2017.4864104,7.73728497%2018.639849,8.05185913%20C21.4029924,6.16382009%2022.6283166,6.55117108%2022.6283166,6.55117108%20C23.4214356,8.56010879%2022.9164535,10.0610939%2022.7723851,10.4240869%20C23.7095725,11.4405862%2024.2620823,12.7475988%2024.2620823,14.3451246%20C24.2620823,19.9608228%2020.8745434,21.1950586%2017.6307759,21.5583486%20C18.1595219,22.0181794%2018.6157881,22.8894221%2018.6157881,24.2692115%20C18.6157881,26.2297303%2018.5920242,27.8031952%2018.5920242,28.2870869%20C18.5920242,28.6744379%2018.8563972,29.1345657%2019.5770364,28.9893091%20C25.3433382,27.0525541%2029.5,21.5824096%2029.5,15.1198266%20C29.523699,7.03506277%2023.0126972,0.5%2015.011998,0.5%20Z'%20id='路径'%20fill='%23000000'%3e%3c/path%3e%3c/g%3e%3c/svg%3e";
20896
+ const logoGithub = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjMwcHgiIGhlaWdodD0iMzBweCIgdmlld0JveD0iMCAwIDMwIDMwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KICAgIDx0aXRsZT5pYy9naXRodWI8L3RpdGxlPg0KICAgIDxnIGlkPSJpYy9naXRodWIiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPg0KICAgICAgICA8cGF0aCBkPSJNMTUuMDExOTk4LDAuNSBDNi45ODcyMzgsMC41IDAu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IsMC41IDE1LjAxMTk5OCwwLjUgWiIgaWQ9Iui3r+W+hCIgZmlsbD0iIzAwMDAwMCI+PC9wYXRoPg0KICAgIDwvZz4NCjwvc3ZnPg==";
20879
20897
  const __vite_glob_0_5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20880
20898
  __proto__: null,
20881
20899
  default: logoGithub
20882
20900
  }, Symbol.toStringTag, { value: "Module" }));
20883
- const logoGitlab = "data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M32.7772%2019.961L31.1173%2014.8526L27.8277%204.72768C27.6585%204.20676%2026.9215%204.20676%2026.7522%204.72768L23.4623%2014.8525H12.5381L9.24829%204.7276C9.07909%204.20668%208.34209%204.20668%208.17275%204.7276L4.88307%2014.8525L3.22333%2019.9611C3.14952%2020.1882%203.14952%2020.4328%203.22331%2020.66C3.29709%2020.8871%203.44089%2021.085%203.63409%2021.2254L17.9999%2031.6629L32.3658%2021.2255C32.7621%2020.9375%2032.928%2020.427%2032.7766%2019.9611'%20fill='%23FC6D26'/%3e%3cpath%20d='M18.0002%2031.6623L23.4623%2014.8516H12.5381L18.0002%2031.6623Z'%20fill='%23E24329'/%3e%3cpath%20d='M17.9997%2031.6627L12.5376%2014.8525H4.88281L17.9997%2031.6627Z'%20fill='%23FC6D26'/%3e%3cpath%20d='M4.88321%2014.8525L3.22332%2019.9611C3.14952%2020.1882%203.14952%2020.4329%203.22332%2020.66C3.29712%2020.8871%203.44094%2021.085%203.63416%2021.2254L18%2031.663L4.88321%2014.8525Z'%20fill='%23FCA326'/%3e%3cpath%20d='M4.88281%2014.8516H12.5376L9.24781%204.72668C9.07861%204.20569%208.34155%204.20569%208.17235%204.72668L4.88281%2014.8516Z'%20fill='%23E24329'/%3e%3cpath%20d='M18.0001%2031.6627L23.4622%2014.8525H31.117L18.0001%2031.6627Z'%20fill='%23FC6D26'/%3e%3cpath%20d='M31.1178%2014.8525L32.7777%2019.9611C32.8515%2020.1882%2032.8515%2020.4329%2032.7777%2020.66C32.7039%2020.8871%2032.5601%2021.085%2032.3668%2021.2254L18.001%2031.663L31.1178%2014.8525Z'%20fill='%23FCA326'/%3e%3cpath%20d='M31.1167%2014.8516H23.4619L26.7517%204.72668C26.921%204.20569%2027.658%204.20569%2027.8272%204.72668L31.1167%2014.8516Z'%20fill='%23E24329'/%3e%3c/svg%3e";
20901
+ const logoGitlab = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik0zMi43NzcyIDE5Ljk2MUwzMS4xMTczIDE0Ljg1MjZMMjcuODI3NyA0LjcyNzY4QzI3LjY1ODUgNC4yMDY3NiAyNi45MjE1IDQuMjA2NzYgMjYuNzUyMiA0LjcyNzY4TDIzLjQ2MjMgMTQuODUyNUgxMi41MzgxTDkuMjQ4MjkgNC43Mjc2QzkuMDc5MDkgNC4yMDY2OCA4LjM0MjA5IDQuMjA2NjggOC4xNzI3NSA0LjcyNzZMNC44ODMwNyAxNC44NTI1TDMuMjIzMzMgMTkuOTYxMUMzLjE0OTUyIDIwLjE4ODIgMy4xNDk1MiAyMC40MzI4IDMuMjIzMzEgMjAuNjZDMy4yOTcwOSAyMC44ODcxIDMuNDQwODkgMjEuMDg1IDMuNjM0MDkgMjEuMjI1NEwxNy45OTk5IDMxLjY2MjlMMzIuMzY1OCAyMS4yMjU1QzMyLjc2MjEgMjAuOTM3NSAzMi45MjggMjAuNDI3IDMyLjc3NjYgMTkuOTYxMSIgZmlsbD0iI0ZDNkQyNiIvPg0KPHBhdGggZD0iTTE4LjAwMDIgMzEuNjYyM0wyMy40NjIzIDE0Ljg1MTZIMTIuNTM4MUwxOC4wMDAyIDMxLjY2Mj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uODI3MiA0LjcyNjY4TDMxLjExNjcgMTQuODUxNloiIGZpbGw9IiNFMjQzMjkiLz4NCjwvc3ZnPg0K";
20884
20902
  const __vite_glob_0_6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20885
20903
  __proto__: null,
20886
20904
  default: logoGitlab
20887
20905
  }, Symbol.toStringTag, { value: "Module" }));
20888
- const logoHb = "data:image/svg+xml,%3csvg%20width='290'%20height='290'%20viewBox='0%200%20290%20290'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='290'%20height='290'%20rx='145'%20fill='%231B9F35'/%3e%3cpath%20d='M232.5%2069.5H57.5L70.9625%20227L145%20244.5L219.038%20227L232.5%2069.5Z'%20fill='white'/%3e%3cpath%20d='M95%2094.5H107.5V132H182.5V94.5H195V194.5H182.5V144.5H107.5V194.5H95V94.5Z'%20fill='%231B9F35'/%3e%3c/svg%3e";
20906
+ const logoHb = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjkwIiBoZWlnaHQ9IjI5MCIgdmlld0JveD0iMCAwIDI5MCAyOTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQo8cmVjdCB3aWR0aD0iMjkwIiBoZWlnaHQ9IjI5MCIgcng9IjE0NSIgZmlsbD0iIzFCOUYzNSIvPg0KPHBhdGggZD0iTTIzMi41IDY5LjVINTcuNUw3MC45NjI1IDIyN0wxNDUgMjQ0LjVMMjE5LjAzOCAyMjdMMjMyLjUgNjkuNVoiIGZpbGw9IndoaXRlIi8+DQo8cGF0aCBkPSJNOTUgOTQuNUgxMDcuNVYxMzJIMTgyLjVWOTQuNUgxOTVWMTk0LjVIMTgyLjVWMTQ0LjVIMTA3LjVWMTk0LjVIOTVWOTQuNVoiIGZpbGw9IiMxQjlGMzUiLz4NCjwvc3ZnPg0K";
20889
20907
  const __vite_glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20890
20908
  __proto__: null,
20891
20909
  default: logoHb
20892
20910
  }, Symbol.toStringTag, { value: "Module" }));
20893
- const logoHuawei = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='30px'%20height='30px'%20viewBox='0%200%2030%2030'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eic/huawei%3c/title%3e%3cg%20id='ic/huawei'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M12.9194306,20.1361906%20C12.9522465,20.1094691%2012.9663104,20.0639956%2012.9442769,20.026023%20C10.696858,15.2030265%207.89578843,10.6584961%204.59544868,6.48431642%20C4.59544868,6.48431642%201.97158481,8.9689472%202.15863532,11.4685795%20C2.25239497,12.6321368%202.79432576,13.7127168%203.67894808,14.4688884%20C5.96668359,16.6989617%2011.5064726,19.5131577%2012.7947303,20.1507233%20C12.8355157,20.1732256%2012.8866147,20.1657249%2012.918493,20.1319714%20M12.063405,22.0446683%20C12.0460594,21.9940381%2011.9987108,21.9602846%2011.944799,21.9602846%20L11.944799,21.9630974%20L2.72166203,22.2842242%20C3.72160872,24.0680016%205.40600087,25.4523628%207.16118156,25.0285692%20C8.37208746,24.7257255%2011.1164325,22.812091%2012.0198067,22.166087%20L12.0188691,22.1623366%20C12.0877825,22.0999865%2012.0629362,22.0498251%2012.0629362,22.0498251%20M12.2021693,21.2200521%20C12.2462363,21.1473884%2012.1674782,21.0850382%2012.1674782,21.0850382%20L12.1684158,21.0812879%20C8.11753001,18.3449124%200.26609674,14.1496368%200.26609674,14.1496368%20C-0.616650384,16.8789802%200.763022897,19.8258461%203.42579702,20.8947062%20C3.98885932,21.1184574%204.58444252,21.2495427%205.18941607,21.2828711%20C5.32818036,21.308655%2010.6743557,21.2856839%2012.1070032,21.2791207%20C12.1473199,21.2744327%2012.1829485,21.2509928%2012.2026381,21.2148954%20M12.8144198,2.5004688%20C12.4121909,2.53515987%2011.3283293,2.78174775%2011.3283293,2.78174775%20C9.89805781,3.14685934%208.75686554,4.2232051%208.3087997,5.62969719%20C8.05564864,6.58885843%208.06033662,7.59771229%208.32145725,8.55499833%20C9.13575983,12.1713081%2013.1477353,18.1152013%2014.0079802,19.3617358%20C14.0689239,19.4226796%2014.1190853,19.4001773%2014.1190853,19.4001773%20C14.1715907,19.3875197%2014.2072194,19.3392335%2014.2044066,19.2853217%20L14.2062818,19.2853217%20C15.5320433,6.01692455%2012.813951,2.5%2012.813951,2.5%20M15.8672341,19.3973645%20C15.9178643,19.4175228%2015.9750577,19.3964269%2016.0003728,19.3476719%20L16.0013104,19.3476719%20C16.8920271,18.066915%2020.8735307,12.1563066%2021.6840829,8.55593593%20C21.9262087,7.59665425%2021.9315179,6.59289287%2021.6995532,5.63110358%20C21.2459272,4.21775216%2020.0924075,3.14034133%2018.6514269,2.78409175%20C18.6514269,2.78409175%2017.9463543,2.60594841%2017.1990899,2.50140639%20C17.1990899,2.50140639%2014.4650585,6.02020614%2015.7945703,19.2970417%20L15.7964455,19.2970417%20C15.7969143,19.3420463%2015.8245734,19.3814254%2015.8667653,19.3978333%20M18.0499588,21.9630974%20C18.0499588,21.9630974%2017.9693255,21.9738797%2017.9468231,22.0334171%20C17.9360408,22.0788906%2017.9496359,22.1262392%2017.9824518,22.1590551%20L17.9815142,22.1590551%20C18.8637925,22.7919327%2021.544381,24.664313%2022.8307634,25.0271628%20C22.8307634,25.0271628%2025.2150714,25.8381838%2027.2862221,22.2818802%20L18.0508964,21.9598158%20L18.0499588,21.9630974%20Z%20M29.7417874,14.130416%20C29.7417874,14.130416%2021.9011365,18.3369428%2017.8465003,21.0723807%20L17.8474379,21.0723807%20C17.8005581,21.1028526%2017.7864941,21.1567644%2017.8005581,21.2073946%20C17.8005581,21.2073946%2017.8389995,21.2763079%2017.8961929,21.2763079%20L17.8961929,21.2781831%20L24.9750467,21.2594312%20C25.5196475,21.2167697%2026.0549049,21.0935404%2026.5633352,20.8937686%20C27.8878289,20.3744529%2028.9544544,19.3543123%2029.5322346,18.0542575%20C30.0748429,16.8146498%2030.147992,15.419985%2029.738037,14.130416%20M17.1020487,20.1310338%20C17.1383362,20.1579266%2017.1868481,20.1615741%2017.226749,20.1404097%20L17.226749,20.1422849%20C18.5478225,19.4831546%2024.0463573,16.6872418%2026.3233105,14.4684196%20C27.2074304,13.7013539%2027.7532431,12.616467%2027.8422168,11.4493588%20C28.0081714,8.87096836%2025.4082163,6.47775324%2025.4082163,6.47775324%20C22.1166286,10.6402706%2019.319781,15.171107%2017.0739208,19.9791431%20L17.0767336,19.9791431%20C17.0523501,20.0282718%2017.0623816,20.0875146%2017.1015799,20.125877'%20id='形状'%20fill='%23E12229'%3e%3c/path%3e%3c/g%3e%3c/svg%3e";
20911
+ const logoHuawei = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjMwcHgiIGhlaWdodD0iMzBweCIgdmlld0JveD0iMCAwIDMwIDMwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KICAgIDx0aXRsZT5pYy9odWF3ZWk8L3RpdGxlPg0KICAgIDxnIGlkPSJpYy9odWF3ZWkiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPg0KICAgICAgICA8cGF0aCBkPSJNMTIuOTE5NDMwNiwyMC4xMzYxOTA2IEMxMi45NTIyNDY1LDIwLjEwOTQ2OTEgMTIuOTY2MzEwNCwyMC4wNjM5OTU2IDEyLjk0NDI3NjksMjAuMDI2MDIzIEMxMC42OTY4NTgsMTUuMjAzMDI2NSA3Ljg5NTc4ODQ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YgMjQuMDQ2MzU3MywxNi42ODcyNDE4IDI2LjMyMzMxMDUsMTQuNDY4NDE5NiBDMjcuMjA3NDMwNCwxMy43MDEzNTM5IDI3Ljc1MzI0MzEsMTIuNjE2NDY3IDI3Ljg0MjIxNjgsMTEuNDQ5MzU4OCBDMjguMDA4MTcxNCw4Ljg3MDk2ODM2IDI1LjQwODIxNjMsNi40Nzc3NTMyNCAyNS40MDgyMTYzLDYuNDc3NzUzMjQgQzIyLjExNjYyODYsMTAuNjQwMjcwNiAxOS4zMTk3ODEsMTUuMTcxMTA3IDE3LjA3MzkyMDgsMTkuOTc5MTQzMSBMMTcuMDc2NzMzNiwxOS45NzkxNDMxIEMxNy4wNTIzNTAxLDIwLjAyODI3MTggMTcuMDYyMzgxNiwyMC4wODc1MTQ2IDE3LjEwMTU3OTksMjAuMTI1ODc3IiBpZD0i5b2i54q2IiBmaWxsPSIjRTEyMjI5Ij48L3BhdGg+DQogICAgPC9nPg0KPC9zdmc+";
20894
20912
  const __vite_glob_0_8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20895
20913
  __proto__: null,
20896
20914
  default: logoHuawei
20897
20915
  }, Symbol.toStringTag, { value: "Module" }));
20898
- const logoMobile = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1693900534164'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6040'%20id='mx_n_1693900534166'%20width='64'%20height='64'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M290.133333%2034.133333h443.733334a102.4%20102.4%200%200%201%20102.4%20102.4v750.933334a102.4%20102.4%200%200%201-102.4%20102.4h-443.733334a102.4%20102.4%200%200%201-102.4-102.4V136.533333a102.4%20102.4%200%200%201%20102.4-102.4z'%20fill='%23E4E9F0'%20p-id='6041'%3e%3c/path%3e%3cpath%20d='M733.866667%2034.133333a102.4%20102.4%200%200%201%20102.4%20102.4v750.933334a102.4%20102.4%200%200%201-102.4%20102.4h-443.733334a102.4%20102.4%200%200%201-102.4-102.4V136.533333a102.4%20102.4%200%200%201%20102.4-102.4h443.733334zM614.4%20119.466667a34.133333%2034.133333%200%200%201-34.133333%2034.133333h-136.533334a34.133333%2034.133333%200%200%201-34.133333-34.133333v-34.133334H290.133333A51.2%2051.2%200%200%200%20238.933333%20136.533333v750.933334a51.2%2051.2%200%200%200%2051.2%2051.2h443.733334A51.2%2051.2%200%200%200%20785.066667%20887.466667V136.533333a51.2%2051.2%200%200%200-51.2-51.2H614.4v34.133334zM512%20750.933333a68.266667%2068.266667%200%201%201%200%20136.533334%2068.266667%2068.266667%200%200%201%200-136.533334z'%20fill='%23707A87'%20p-id='6042'%3e%3c/path%3e%3c/svg%3e";
20916
+ const logoMobile = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjkzOTAwNTM0MTY0IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjYwNDAiIGlkPSJteF9uXzE2OTM5MDA1MzQxNjYiIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxwYXRoIGQ9Ik0yOTAuMTMzMzMzIDM0LjEzMzMzM2g0NDMuNzMzMzM0YTEw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DEgMC0xMzYuNTMzMzM0eiIgZmlsbD0iIzcwN0E4NyIgcC1pZD0iNjA0MiI+PC9wYXRoPjwvc3ZnPg==";
20899
20917
  const __vite_glob_0_9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20900
20918
  __proto__: null,
20901
20919
  default: logoMobile
20902
20920
  }, Symbol.toStringTag, { value: "Module" }));
20903
- const logoWechat = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1532_182)'%3e%3cpath%20d='M5.27165%205.34104C4.99419%205.34104%204.71674%205.52601%204.71674%205.80347C4.71674%206.08093%204.99419%206.2659%205.27165%206.2659C5.54911%206.2659%205.73408%206.08093%205.73408%205.80347C5.73408%205.51445%205.54911%205.34104%205.27165%205.34104ZM9.02887%208.02312C8.8439%208.02312%208.67049%208.21965%208.67049%208.39306C8.67049%208.5896%208.85546%208.76301%209.02887%208.76301C9.30633%208.76301%209.4913%208.57804%209.4913%208.39306C9.4913%208.20809%209.30633%208.02312%209.02887%208.02312ZM7.83812%206.2659C8.11558%206.2659%208.30055%206.06937%208.30055%205.80347C8.30055%205.52601%208.11558%205.34104%207.83812%205.34104C7.56067%205.34104%207.28321%205.52601%207.28321%205.80347C7.28321%206.08093%207.56067%206.2659%207.83812%206.2659ZM11.0404%208.02312C10.8555%208.02312%2010.6821%208.21965%2010.6821%208.39306C10.6821%208.5896%2010.867%208.76301%2011.0404%208.76301C11.3179%208.76301%2011.5029%208.57804%2011.5029%208.39306C11.5029%208.20809%2011.3179%208.02312%2011.0404%208.02312Z'%20fill='%2328C445'/%3e%3cpath%20d='M7.97688%200.0462418C3.57225%200.0462418%200%203.6185%200%208.02312C0%2012.4277%203.57225%2016%207.97688%2016C12.3815%2016%2015.9538%2012.4277%2015.9538%208.02312C15.9538%203.6185%2012.3815%200.0462418%207.97688%200.0462418ZM6.46243%2010.0694C6%2010.0694%205.63006%209.97688%205.19075%209.87283L3.91908%2010.5202L4.27746%209.39884C3.36416%208.75144%202.80925%207.90751%202.80925%206.90173C2.80925%205.13295%204.46243%203.74566%206.46243%203.74566C8.25434%203.74566%209.83815%204.85549%2010.1503%206.34682C10.0347%206.33526%209.91908%206.3237%209.80347%206.3237C8.06936%206.34682%206.7052%207.65318%206.7052%209.27168C6.7052%209.53757%206.75145%209.79191%206.82081%2010.0462C6.7052%2010.0578%206.57803%2010.0694%206.46243%2010.0694ZM11.8728%2011.3642L12.1503%2012.289L11.1561%2011.7341C10.7977%2011.8266%2010.4277%2011.9191%2010.0578%2011.9191C8.31214%2011.9191%206.93642%2010.7168%206.93642%209.22543C6.92486%207.74566%208.30058%206.54335%2010.0347%206.54335C11.6879%206.54335%2013.1445%207.75722%2013.1445%209.23699C13.1445%2010.0694%2012.6012%2010.8092%2011.8728%2011.3642Z'%20fill='%2328C445'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1532_182'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
20921
+ const logoWechat = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xNTMyXzE4MikiPg0KPHBhdGggZD0iTTUuMjcxNjUgNS4zNDEwNEM0Ljk5NDE5IDUuMzQxMDQgNC43MTY3NCA1LjUyNjAxIDQuNzE2NzQgNS44MDM0N0M0LjcxNjc0IDYuMDgwOTMgNC45OTQxOSA2LjI2NTkgNS4yNzE2NSA2LjI2NTlDNS41NDkxMSA2LjI2NTkgNS43MzQwOCA2LjA4MDkzIDUuNzM0MDggNS44MDM0N0M1LjczNDA4IDUuNTE0NDUgNS41NDkxM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4NCjxkZWZzPg0KPGNsaXBQYXRoIGlkPSJjbGlwMF8xNTMyXzE4MiI+DQo8cmVjdCB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9IndoaXRlIi8+DQo8L2NsaXBQYXRoPg0KPC9kZWZzPg0KPC9zdmc+DQo=";
20904
20922
  const __vite_glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20905
20923
  __proto__: null,
20906
20924
  default: logoWechat
@@ -21035,6 +21053,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
21035
21053
  };
21036
21054
  }
21037
21055
  });
21056
+ const inputButton_vue_vue_type_style_index_0_lang = "";
21038
21057
  const _hoisted_1$9 = { class: "flex flex-1 g-input-select" };
21039
21058
  const _hoisted_2$6 = { class: "flex justify-between gap-[8px] flex-wrap" };
21040
21059
  const _sfc_main$b = /* @__PURE__ */ defineComponent({
@@ -21121,6 +21140,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
21121
21140
  };
21122
21141
  }
21123
21142
  });
21143
+ const inputSelect_vue_vue_type_style_index_0_lang = "";
21124
21144
  const _sfc_main$a = /* @__PURE__ */ defineComponent({
21125
21145
  __name: "index",
21126
21146
  props: {
@@ -21409,6 +21429,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
21409
21429
  };
21410
21430
  }
21411
21431
  });
21432
+ const index_vue_vue_type_style_index_0_lang = "";
21412
21433
  const _hoisted_1$8 = { class: "tips text-[var(--devui-disabled-text)]" };
21413
21434
  const _hoisted_2$5 = { class: "icons" };
21414
21435
  const _hoisted_3$3 = ["src", "alt", "onClick"];
@@ -21455,7 +21476,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
21455
21476
  };
21456
21477
  }
21457
21478
  });
21458
- const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-gitcode-layout-lib"]]);
21479
+ const auth_vue_vue_type_style_index_0_scoped_f0a207bc_lang = "";
21480
+ const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-f0a207bc"]]);
21459
21481
  const _hoisted_1$7 = { class: "text-[var(--theme-placeholder)]" };
21460
21482
  const _hoisted_2$4 = { class: "text-[var(--theme-placeholder)]" };
21461
21483
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
@@ -21538,6 +21560,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
21538
21560
  };
21539
21561
  }
21540
21562
  });
21563
+ const agreements_vue_vue_type_style_index_0_lang = "";
21541
21564
  const _hoisted_1$5 = { class: "text-center text-[18px] leading-[26px] font-bold mb-[24px] flex items-center justify-center relative" };
21542
21565
  const _hoisted_2$3 = { class: "back-img absolute mr-[24px] left-0" };
21543
21566
  const _hoisted_3$2 = ["src"];
@@ -21570,7 +21593,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
21570
21593
  };
21571
21594
  }
21572
21595
  });
21573
- const GTitle = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-gitcode-layout-lib"]]);
21596
+ const title_vue_vue_type_style_index_0_scoped_94e64b6d_lang = "";
21597
+ const GTitle = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-94e64b6d"]]);
21574
21598
  const FindFileName = (path) => {
21575
21599
  var _a;
21576
21600
  const isName = /.*\/.*\/(.*\..*)/;
@@ -21581,7 +21605,7 @@ const TransAssetsUrl = (source, key, path) => {
21581
21605
  if (key) {
21582
21606
  let target = "";
21583
21607
  target = Object.keys(source).find((pathName) => {
21584
- const p = key;
21608
+ const p = path ? `${path}${key}` : key;
21585
21609
  return p === FindFileName(pathName);
21586
21610
  });
21587
21611
  if (target) {
@@ -21613,10 +21637,14 @@ function compare(a, b) {
21613
21637
  for (var i = 0; i < 3; i++) {
21614
21638
  var na = Number(pa[i]);
21615
21639
  var nb = Number(pb[i]);
21616
- if (na > nb) return 1;
21617
- if (nb > na) return -1;
21618
- if (!isNaN(na) && isNaN(nb)) return 1;
21619
- if (isNaN(na) && !isNaN(nb)) return -1;
21640
+ if (na > nb)
21641
+ return 1;
21642
+ if (nb > na)
21643
+ return -1;
21644
+ if (!isNaN(na) && isNaN(nb))
21645
+ return 1;
21646
+ if (isNaN(na) && !isNaN(nb))
21647
+ return -1;
21620
21648
  }
21621
21649
  if (a[1] && b[1]) {
21622
21650
  return a[1] > b[1] ? 1 : a[1] < b[1] ? -1 : 0;
@@ -21640,17 +21668,21 @@ function _classCallCheck$2(instance, Constructor) {
21640
21668
  throw new TypeError("Cannot call a class as a function");
21641
21669
  }
21642
21670
  }
21643
- function _defineProperties$1(target, props) {
21671
+ function _defineProperties$2(target, props) {
21644
21672
  for (var i = 0; i < props.length; i++) {
21645
21673
  var descriptor = props[i];
21646
21674
  descriptor.enumerable = descriptor.enumerable || false;
21647
21675
  descriptor.configurable = true;
21648
- if ("value" in descriptor) descriptor.writable = true;
21676
+ if ("value" in descriptor)
21677
+ descriptor.writable = true;
21649
21678
  Object.defineProperty(target, descriptor.key, descriptor);
21650
21679
  }
21651
21680
  }
21652
21681
  function _createClass$2(Constructor, protoProps, staticProps) {
21653
- if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
21682
+ if (protoProps)
21683
+ _defineProperties$2(Constructor.prototype, protoProps);
21684
+ if (staticProps)
21685
+ _defineProperties$2(Constructor, staticProps);
21654
21686
  Object.defineProperty(Constructor, "prototype", { writable: false });
21655
21687
  return Constructor;
21656
21688
  }
@@ -21680,7 +21712,8 @@ var Metadata = /* @__PURE__ */ function() {
21680
21712
  }, {
21681
21713
  key: "nonGeographic",
21682
21714
  value: function nonGeographic() {
21683
- if (this.v1 || this.v2 || this.v3) return;
21715
+ if (this.v1 || this.v2 || this.v3)
21716
+ return;
21684
21717
  return this.metadata.nonGeographic || this.metadata.nonGeographical;
21685
21718
  }
21686
21719
  }, {
@@ -21855,7 +21888,8 @@ var Metadata = /* @__PURE__ */ function() {
21855
21888
  }, {
21856
21889
  key: "countryCallingCodes",
21857
21890
  value: function countryCallingCodes() {
21858
- if (this.v1) return this.metadata.country_phone_code_to_countries;
21891
+ if (this.v1)
21892
+ return this.metadata.country_phone_code_to_countries;
21859
21893
  return this.metadata.country_calling_codes;
21860
21894
  }
21861
21895
  // Deprecated.
@@ -21899,27 +21933,31 @@ var NumberingPlan = /* @__PURE__ */ function() {
21899
21933
  }, {
21900
21934
  key: "IDDPrefix",
21901
21935
  value: function IDDPrefix() {
21902
- if (this.v1 || this.v2) return;
21936
+ if (this.v1 || this.v2)
21937
+ return;
21903
21938
  return this.metadata[1];
21904
21939
  }
21905
21940
  // Is only present when a country supports multiple IDD prefixes.
21906
21941
  }, {
21907
21942
  key: "defaultIDDPrefix",
21908
21943
  value: function defaultIDDPrefix() {
21909
- if (this.v1 || this.v2) return;
21944
+ if (this.v1 || this.v2)
21945
+ return;
21910
21946
  return this.metadata[12];
21911
21947
  }
21912
21948
  }, {
21913
21949
  key: "nationalNumberPattern",
21914
21950
  value: function nationalNumberPattern() {
21915
- if (this.v1 || this.v2) return this.metadata[1];
21951
+ if (this.v1 || this.v2)
21952
+ return this.metadata[1];
21916
21953
  return this.metadata[2];
21917
21954
  }
21918
21955
  // "possible length" data is always present in Google's metadata.
21919
21956
  }, {
21920
21957
  key: "possibleLengths",
21921
21958
  value: function possibleLengths() {
21922
- if (this.v1) return;
21959
+ if (this.v1)
21960
+ return;
21923
21961
  return this.metadata[this.v2 ? 2 : 3];
21924
21962
  }
21925
21963
  }, {
@@ -22014,7 +22052,8 @@ var NumberingPlan = /* @__PURE__ */ function() {
22014
22052
  }, {
22015
22053
  key: "ext",
22016
22054
  value: function ext() {
22017
- if (this.v1 || this.v2) return DEFAULT_EXT_PREFIX;
22055
+ if (this.v1 || this.v2)
22056
+ return DEFAULT_EXT_PREFIX;
22018
22057
  return this.metadata[13] || DEFAULT_EXT_PREFIX;
22019
22058
  }
22020
22059
  }]);
@@ -22081,13 +22120,15 @@ var Type = /* @__PURE__ */ function() {
22081
22120
  _createClass$2(Type2, [{
22082
22121
  key: "pattern",
22083
22122
  value: function pattern() {
22084
- if (this.metadata.v1) return this.type;
22123
+ if (this.metadata.v1)
22124
+ return this.type;
22085
22125
  return this.type[0];
22086
22126
  }
22087
22127
  }, {
22088
22128
  key: "possibleLengths",
22089
22129
  value: function possibleLengths() {
22090
- if (this.metadata.v1) return;
22130
+ if (this.metadata.v1)
22131
+ return;
22091
22132
  return this.type[1] || this.metadata.possibleLengths();
22092
22133
  }
22093
22134
  }]);
@@ -22157,6 +22198,55 @@ function setVersion(metadata2) {
22157
22198
  }
22158
22199
  }
22159
22200
  }
22201
+ function _createForOfIteratorHelperLoose$4(o, allowArrayLike) {
22202
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
22203
+ if (it)
22204
+ return (it = it.call(o)).next.bind(it);
22205
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray$5(o)) || allowArrayLike && o && typeof o.length === "number") {
22206
+ if (it)
22207
+ o = it;
22208
+ var i = 0;
22209
+ return function() {
22210
+ if (i >= o.length)
22211
+ return { done: true };
22212
+ return { done: false, value: o[i++] };
22213
+ };
22214
+ }
22215
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
22216
+ }
22217
+ function _unsupportedIterableToArray$5(o, minLen) {
22218
+ if (!o)
22219
+ return;
22220
+ if (typeof o === "string")
22221
+ return _arrayLikeToArray$5(o, minLen);
22222
+ var n = Object.prototype.toString.call(o).slice(8, -1);
22223
+ if (n === "Object" && o.constructor)
22224
+ n = o.constructor.name;
22225
+ if (n === "Map" || n === "Set")
22226
+ return Array.from(o);
22227
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
22228
+ return _arrayLikeToArray$5(o, minLen);
22229
+ }
22230
+ function _arrayLikeToArray$5(arr, len) {
22231
+ if (len == null || len > arr.length)
22232
+ len = arr.length;
22233
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
22234
+ arr2[i] = arr[i];
22235
+ }
22236
+ return arr2;
22237
+ }
22238
+ function mergeArrays(a, b) {
22239
+ var merged = a.slice();
22240
+ for (var _iterator = _createForOfIteratorHelperLoose$4(b), _step; !(_step = _iterator()).done; ) {
22241
+ var element = _step.value;
22242
+ if (a.indexOf(element) < 0) {
22243
+ merged.push(element);
22244
+ }
22245
+ }
22246
+ return merged.sort(function(a2, b2) {
22247
+ return a2 - b2;
22248
+ });
22249
+ }
22160
22250
  function checkNumberLength(nationalNumber, metadata2) {
22161
22251
  return checkNumberLengthForType(nationalNumber, void 0, metadata2);
22162
22252
  }
@@ -22166,6 +22256,17 @@ function checkNumberLengthForType(nationalNumber, type, metadata2) {
22166
22256
  if (!possible_lengths) {
22167
22257
  return "IS_POSSIBLE";
22168
22258
  }
22259
+ if (type === "FIXED_LINE_OR_MOBILE") {
22260
+ if (!metadata2.type("FIXED_LINE")) {
22261
+ return checkNumberLengthForType(nationalNumber, "MOBILE", metadata2);
22262
+ }
22263
+ var mobile_type = metadata2.type("MOBILE");
22264
+ if (mobile_type) {
22265
+ possible_lengths = mergeArrays(possible_lengths, mobile_type.possibleLengths());
22266
+ }
22267
+ } else if (type && !type_info) {
22268
+ return "INVALID_LENGTH";
22269
+ }
22169
22270
  var actual_length = nationalNumber.length;
22170
22271
  var minimum_length = possible_lengths[0];
22171
22272
  if (minimum_length === actual_length) {
@@ -22229,27 +22330,36 @@ function matchesEntirely(text2, regular_expression) {
22229
22330
  }
22230
22331
  function _createForOfIteratorHelperLoose$3(o, allowArrayLike) {
22231
22332
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
22232
- if (it) return (it = it.call(o)).next.bind(it);
22233
- if (Array.isArray(o) || (it = _unsupportedIterableToArray$4(o)) || allowArrayLike) {
22234
- if (it) o = it;
22333
+ if (it)
22334
+ return (it = it.call(o)).next.bind(it);
22335
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray$4(o)) || allowArrayLike && o && typeof o.length === "number") {
22336
+ if (it)
22337
+ o = it;
22235
22338
  var i = 0;
22236
22339
  return function() {
22237
- if (i >= o.length) return { done: true };
22340
+ if (i >= o.length)
22341
+ return { done: true };
22238
22342
  return { done: false, value: o[i++] };
22239
22343
  };
22240
22344
  }
22241
22345
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
22242
22346
  }
22243
22347
  function _unsupportedIterableToArray$4(o, minLen) {
22244
- if (!o) return;
22245
- if (typeof o === "string") return _arrayLikeToArray$4(o, minLen);
22348
+ if (!o)
22349
+ return;
22350
+ if (typeof o === "string")
22351
+ return _arrayLikeToArray$4(o, minLen);
22246
22352
  var n = Object.prototype.toString.call(o).slice(8, -1);
22247
- if (n === "Object" && o.constructor) n = o.constructor.name;
22248
- if (n === "Map" || n === "Set") return Array.from(o);
22249
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4(o, minLen);
22353
+ if (n === "Object" && o.constructor)
22354
+ n = o.constructor.name;
22355
+ if (n === "Map" || n === "Set")
22356
+ return Array.from(o);
22357
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
22358
+ return _arrayLikeToArray$4(o, minLen);
22250
22359
  }
22251
22360
  function _arrayLikeToArray$4(arr, len) {
22252
- if (len == null || len > arr.length) len = arr.length;
22361
+ if (len == null || len > arr.length)
22362
+ len = arr.length;
22253
22363
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
22254
22364
  arr2[i] = arr[i];
22255
22365
  }
@@ -22504,8 +22614,10 @@ function applyInternationalSeparatorStyle(formattedNumber) {
22504
22614
  return formattedNumber.replace(new RegExp("[".concat(VALID_PUNCTUATION, "]+"), "g"), " ").trim();
22505
22615
  }
22506
22616
  var FIRST_GROUP_PATTERN = /(\$\d)/;
22507
- function formatNationalNumberUsingFormat(number2, format2, _ref) {
22508
- var useInternationalFormat = _ref.useInternationalFormat, withNationalPrefix = _ref.withNationalPrefix;
22617
+ function formatNationalNumberUsingFormat(number2, format2, _ref2) {
22618
+ var useInternationalFormat = _ref2.useInternationalFormat, withNationalPrefix = _ref2.withNationalPrefix;
22619
+ _ref2.carrierCode;
22620
+ _ref2.metadata;
22509
22621
  var formattedNumber = number2.replace(new RegExp(format2.pattern()), useInternationalFormat ? format2.internationalFormat() : (
22510
22622
  // This library doesn't use `domestic_carrier_code_formatting_rule`,
22511
22623
  // because that one is only used when formatting phone numbers
@@ -22579,8 +22691,8 @@ function isViablePhoneNumber(number2) {
22579
22691
  function isViablePhoneNumberStart(number2) {
22580
22692
  return VALID_PHONE_NUMBER_START_REG_EXP.test(number2);
22581
22693
  }
22582
- function formatRFC3966(_ref) {
22583
- var number2 = _ref.number, ext = _ref.ext;
22694
+ function formatRFC3966(_ref2) {
22695
+ var number2 = _ref2.number, ext = _ref2.ext;
22584
22696
  if (!number2) {
22585
22697
  return "";
22586
22698
  }
@@ -22591,27 +22703,36 @@ function formatRFC3966(_ref) {
22591
22703
  }
22592
22704
  function _createForOfIteratorHelperLoose$2(o, allowArrayLike) {
22593
22705
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
22594
- if (it) return (it = it.call(o)).next.bind(it);
22595
- if (Array.isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike) {
22596
- if (it) o = it;
22706
+ if (it)
22707
+ return (it = it.call(o)).next.bind(it);
22708
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike && o && typeof o.length === "number") {
22709
+ if (it)
22710
+ o = it;
22597
22711
  var i = 0;
22598
22712
  return function() {
22599
- if (i >= o.length) return { done: true };
22713
+ if (i >= o.length)
22714
+ return { done: true };
22600
22715
  return { done: false, value: o[i++] };
22601
22716
  };
22602
22717
  }
22603
22718
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
22604
22719
  }
22605
22720
  function _unsupportedIterableToArray$3(o, minLen) {
22606
- if (!o) return;
22607
- if (typeof o === "string") return _arrayLikeToArray$3(o, minLen);
22721
+ if (!o)
22722
+ return;
22723
+ if (typeof o === "string")
22724
+ return _arrayLikeToArray$3(o, minLen);
22608
22725
  var n = Object.prototype.toString.call(o).slice(8, -1);
22609
- if (n === "Object" && o.constructor) n = o.constructor.name;
22610
- if (n === "Map" || n === "Set") return Array.from(o);
22611
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen);
22726
+ if (n === "Object" && o.constructor)
22727
+ n = o.constructor.name;
22728
+ if (n === "Map" || n === "Set")
22729
+ return Array.from(o);
22730
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
22731
+ return _arrayLikeToArray$3(o, minLen);
22612
22732
  }
22613
22733
  function _arrayLikeToArray$3(arr, len) {
22614
- if (len == null || len > arr.length) len = arr.length;
22734
+ if (len == null || len > arr.length)
22735
+ len = arr.length;
22615
22736
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
22616
22737
  arr2[i] = arr[i];
22617
22738
  }
@@ -22665,7 +22786,8 @@ function formatNumber(input, format2, options, metadata2) {
22665
22786
  metadata2.country(input.country);
22666
22787
  } else if (input.countryCallingCode) {
22667
22788
  metadata2.selectNumberingPlan(input.countryCallingCode);
22668
- } else return input.phone || "";
22789
+ } else
22790
+ return input.phone || "";
22669
22791
  var countryCallingCode = metadata2.countryCallingCode();
22670
22792
  var nationalNumber = options.v2 ? input.nationalNumber : input.phone;
22671
22793
  var number2;
@@ -22707,7 +22829,9 @@ function formatNationalNumber(number2, carrierCode, formatAs, metadata2, options
22707
22829
  }
22708
22830
  return formatNationalNumberUsingFormat(number2, format2, {
22709
22831
  useInternationalFormat: formatAs === "INTERNATIONAL",
22710
- withNationalPrefix: format2.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && options && options.nationalPrefix === false ? false : true
22832
+ withNationalPrefix: format2.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && options && options.nationalPrefix === false ? false : true,
22833
+ carrierCode,
22834
+ metadata: metadata2
22711
22835
  });
22712
22836
  }
22713
22837
  function chooseFormatForNumber(availableFormats, nationalNnumber) {
@@ -22775,17 +22899,21 @@ function _classCallCheck$1(instance, Constructor) {
22775
22899
  throw new TypeError("Cannot call a class as a function");
22776
22900
  }
22777
22901
  }
22778
- function _defineProperties(target, props) {
22902
+ function _defineProperties$1(target, props) {
22779
22903
  for (var i = 0; i < props.length; i++) {
22780
22904
  var descriptor = props[i];
22781
22905
  descriptor.enumerable = descriptor.enumerable || false;
22782
22906
  descriptor.configurable = true;
22783
- if ("value" in descriptor) descriptor.writable = true;
22907
+ if ("value" in descriptor)
22908
+ descriptor.writable = true;
22784
22909
  Object.defineProperty(target, descriptor.key, descriptor);
22785
22910
  }
22786
22911
  }
22787
22912
  function _createClass$1(Constructor, protoProps, staticProps) {
22788
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
22913
+ if (protoProps)
22914
+ _defineProperties$1(Constructor.prototype, protoProps);
22915
+ if (staticProps)
22916
+ _defineProperties$1(Constructor, staticProps);
22789
22917
  Object.defineProperty(Constructor, "prototype", { writable: false });
22790
22918
  return Constructor;
22791
22919
  }
@@ -22946,7 +23074,21 @@ function _typeof(obj) {
22946
23074
  return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
22947
23075
  }, _typeof(obj);
22948
23076
  }
23077
+ function _defineProperties(target, props) {
23078
+ for (var i = 0; i < props.length; i++) {
23079
+ var descriptor = props[i];
23080
+ descriptor.enumerable = descriptor.enumerable || false;
23081
+ descriptor.configurable = true;
23082
+ if ("value" in descriptor)
23083
+ descriptor.writable = true;
23084
+ Object.defineProperty(target, descriptor.key, descriptor);
23085
+ }
23086
+ }
22949
23087
  function _createClass(Constructor, protoProps, staticProps) {
23088
+ if (protoProps)
23089
+ _defineProperties(Constructor.prototype, protoProps);
23090
+ if (staticProps)
23091
+ _defineProperties(Constructor, staticProps);
22950
23092
  Object.defineProperty(Constructor, "prototype", { writable: false });
22951
23093
  return Constructor;
22952
23094
  }
@@ -22961,7 +23103,8 @@ function _inherits(subClass, superClass) {
22961
23103
  }
22962
23104
  subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
22963
23105
  Object.defineProperty(subClass, "prototype", { writable: false });
22964
- if (superClass) _setPrototypeOf(subClass, superClass);
23106
+ if (superClass)
23107
+ _setPrototypeOf(subClass, superClass);
22965
23108
  }
22966
23109
  function _createSuper(Derived) {
22967
23110
  var hasNativeReflectConstruct = _isNativeReflectConstruct();
@@ -22993,12 +23136,14 @@ function _assertThisInitialized(self2) {
22993
23136
  function _wrapNativeSuper(Class) {
22994
23137
  var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
22995
23138
  _wrapNativeSuper = function _wrapNativeSuper2(Class2) {
22996
- if (Class2 === null || !_isNativeFunction(Class2)) return Class2;
23139
+ if (Class2 === null || !_isNativeFunction(Class2))
23140
+ return Class2;
22997
23141
  if (typeof Class2 !== "function") {
22998
23142
  throw new TypeError("Super expression must either be null or a function");
22999
23143
  }
23000
23144
  if (typeof _cache !== "undefined") {
23001
- if (_cache.has(Class2)) return _cache.get(Class2);
23145
+ if (_cache.has(Class2))
23146
+ return _cache.get(Class2);
23002
23147
  _cache.set(Class2, Wrapper);
23003
23148
  }
23004
23149
  function Wrapper() {
@@ -23018,16 +23163,20 @@ function _construct(Parent, args, Class) {
23018
23163
  a.push.apply(a, args2);
23019
23164
  var Constructor = Function.bind.apply(Parent2, a);
23020
23165
  var instance = new Constructor();
23021
- if (Class2) _setPrototypeOf(instance, Class2.prototype);
23166
+ if (Class2)
23167
+ _setPrototypeOf(instance, Class2.prototype);
23022
23168
  return instance;
23023
23169
  };
23024
23170
  }
23025
23171
  return _construct.apply(null, arguments);
23026
23172
  }
23027
23173
  function _isNativeReflectConstruct() {
23028
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
23029
- if (Reflect.construct.sham) return false;
23030
- if (typeof Proxy === "function") return true;
23174
+ if (typeof Reflect === "undefined" || !Reflect.construct)
23175
+ return false;
23176
+ if (Reflect.construct.sham)
23177
+ return false;
23178
+ if (typeof Proxy === "function")
23179
+ return true;
23031
23180
  try {
23032
23181
  Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
23033
23182
  }));
@@ -23161,27 +23310,36 @@ function parseDigit(character) {
23161
23310
  }
23162
23311
  function _createForOfIteratorHelperLoose$1(o, allowArrayLike) {
23163
23312
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
23164
- if (it) return (it = it.call(o)).next.bind(it);
23165
- if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike) {
23166
- if (it) o = it;
23313
+ if (it)
23314
+ return (it = it.call(o)).next.bind(it);
23315
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === "number") {
23316
+ if (it)
23317
+ o = it;
23167
23318
  var i = 0;
23168
23319
  return function() {
23169
- if (i >= o.length) return { done: true };
23320
+ if (i >= o.length)
23321
+ return { done: true };
23170
23322
  return { done: false, value: o[i++] };
23171
23323
  };
23172
23324
  }
23173
23325
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
23174
23326
  }
23175
23327
  function _unsupportedIterableToArray$2(o, minLen) {
23176
- if (!o) return;
23177
- if (typeof o === "string") return _arrayLikeToArray$2(o, minLen);
23328
+ if (!o)
23329
+ return;
23330
+ if (typeof o === "string")
23331
+ return _arrayLikeToArray$2(o, minLen);
23178
23332
  var n = Object.prototype.toString.call(o).slice(8, -1);
23179
- if (n === "Object" && o.constructor) n = o.constructor.name;
23180
- if (n === "Map" || n === "Set") return Array.from(o);
23181
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen);
23333
+ if (n === "Object" && o.constructor)
23334
+ n = o.constructor.name;
23335
+ if (n === "Map" || n === "Set")
23336
+ return Array.from(o);
23337
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
23338
+ return _arrayLikeToArray$2(o, minLen);
23182
23339
  }
23183
23340
  function _arrayLikeToArray$2(arr, len) {
23184
- if (len == null || len > arr.length) len = arr.length;
23341
+ if (len == null || len > arr.length)
23342
+ len = arr.length;
23185
23343
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
23186
23344
  arr2[i] = arr[i];
23187
23345
  }
@@ -23198,6 +23356,9 @@ function parseIncompletePhoneNumber(string) {
23198
23356
  function parsePhoneNumberCharacter(character, prevParsedCharacters, emitEvent2) {
23199
23357
  if (character === "+") {
23200
23358
  if (prevParsedCharacters) {
23359
+ if (typeof emitEvent2 === "function") {
23360
+ emitEvent2("end");
23361
+ }
23201
23362
  return;
23202
23363
  }
23203
23364
  return "+";
@@ -23206,34 +23367,45 @@ function parsePhoneNumberCharacter(character, prevParsedCharacters, emitEvent2)
23206
23367
  }
23207
23368
  function _createForOfIteratorHelperLoose(o, allowArrayLike) {
23208
23369
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
23209
- if (it) return (it = it.call(o)).next.bind(it);
23210
- if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike) {
23211
- if (it) o = it;
23370
+ if (it)
23371
+ return (it = it.call(o)).next.bind(it);
23372
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") {
23373
+ if (it)
23374
+ o = it;
23212
23375
  var i = 0;
23213
23376
  return function() {
23214
- if (i >= o.length) return { done: true };
23377
+ if (i >= o.length)
23378
+ return { done: true };
23215
23379
  return { done: false, value: o[i++] };
23216
23380
  };
23217
23381
  }
23218
23382
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
23219
23383
  }
23220
23384
  function _unsupportedIterableToArray$1(o, minLen) {
23221
- if (!o) return;
23222
- if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
23385
+ if (!o)
23386
+ return;
23387
+ if (typeof o === "string")
23388
+ return _arrayLikeToArray$1(o, minLen);
23223
23389
  var n = Object.prototype.toString.call(o).slice(8, -1);
23224
- if (n === "Object" && o.constructor) n = o.constructor.name;
23225
- if (n === "Map" || n === "Set") return Array.from(o);
23226
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
23390
+ if (n === "Object" && o.constructor)
23391
+ n = o.constructor.name;
23392
+ if (n === "Map" || n === "Set")
23393
+ return Array.from(o);
23394
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
23395
+ return _arrayLikeToArray$1(o, minLen);
23227
23396
  }
23228
23397
  function _arrayLikeToArray$1(arr, len) {
23229
- if (len == null || len > arr.length) len = arr.length;
23398
+ if (len == null || len > arr.length)
23399
+ len = arr.length;
23230
23400
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
23231
23401
  arr2[i] = arr[i];
23232
23402
  }
23233
23403
  return arr2;
23234
23404
  }
23235
- function getCountryByNationalNumber(nationalPhoneNumber, _ref) {
23236
- var countries = _ref.countries, metadata2 = _ref.metadata;
23405
+ function getCountryByNationalNumber(nationalPhoneNumber, _ref2) {
23406
+ var countries = _ref2.countries;
23407
+ _ref2.defaultCountry;
23408
+ var metadata2 = _ref2.metadata;
23237
23409
  metadata2 = new Metadata(metadata2);
23238
23410
  for (var _iterator = _createForOfIteratorHelperLoose(countries), _step; !(_step = _iterator()).done; ) {
23239
23411
  var country = _step.value;
@@ -23250,8 +23422,14 @@ function getCountryByNationalNumber(nationalPhoneNumber, _ref) {
23250
23422
  }
23251
23423
  }
23252
23424
  }
23253
- function getCountryByCallingCode(callingCode, _ref) {
23254
- var nationalPhoneNumber = _ref.nationalNumber, metadata2 = _ref.metadata;
23425
+ var USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;
23426
+ function getCountryByCallingCode(callingCode, _ref2) {
23427
+ var nationalPhoneNumber = _ref2.nationalNumber, defaultCountry = _ref2.defaultCountry, metadata2 = _ref2.metadata;
23428
+ if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {
23429
+ if (metadata2.isNonGeographicCallingCode(callingCode)) {
23430
+ return "001";
23431
+ }
23432
+ }
23255
23433
  var possibleCountries = metadata2.getCountryCodesForCallingCode(callingCode);
23256
23434
  if (!possibleCountries) {
23257
23435
  return;
@@ -23261,6 +23439,7 @@ function getCountryByCallingCode(callingCode, _ref) {
23261
23439
  }
23262
23440
  return getCountryByNationalNumber(nationalPhoneNumber, {
23263
23441
  countries: possibleCountries,
23442
+ defaultCountry,
23264
23443
  metadata: metadata2.metadata
23265
23444
  });
23266
23445
  }
@@ -23303,8 +23482,8 @@ function isPhoneContextValid(phoneContext) {
23303
23482
  }
23304
23483
  return RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_.test(phoneContext) || RFC3966_DOMAINNAME_PATTERN_.test(phoneContext);
23305
23484
  }
23306
- function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(numberToParse, _ref) {
23307
- var extractFormattedPhoneNumber = _ref.extractFormattedPhoneNumber;
23485
+ function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(numberToParse, _ref2) {
23486
+ var extractFormattedPhoneNumber = _ref2.extractFormattedPhoneNumber;
23308
23487
  var phoneContext = extractPhoneContext(numberToParse);
23309
23488
  if (!isPhoneContextValid(phoneContext)) {
23310
23489
  throw new ParseError("NOT_A_NUMBER");
@@ -23469,7 +23648,8 @@ function parsePhoneNumber$1(formattedPhoneNumber, defaultCountry, defaultCalling
23469
23648
  country = defaultCountry;
23470
23649
  }
23471
23650
  countryCallingCode = defaultCallingCode || getCountryCallingCode(defaultCountry, metadata2.metadata);
23472
- } else return {};
23651
+ } else
23652
+ return {};
23473
23653
  if (!number2) {
23474
23654
  return {
23475
23655
  countryCallingCodeSource,
@@ -23479,11 +23659,13 @@ function parsePhoneNumber$1(formattedPhoneNumber, defaultCountry, defaultCalling
23479
23659
  var _extractNationalNumbe = extractNationalNumber(parseIncompletePhoneNumber(number2), metadata2), nationalNumber = _extractNationalNumbe.nationalNumber, carrierCode = _extractNationalNumbe.carrierCode;
23480
23660
  var exactCountry = getCountryByCallingCode(countryCallingCode, {
23481
23661
  nationalNumber,
23662
+ defaultCountry,
23482
23663
  metadata: metadata2
23483
23664
  });
23484
23665
  if (exactCountry) {
23485
23666
  country = exactCountry;
23486
- if (exactCountry === "001") ;
23667
+ if (exactCountry === "001")
23668
+ ;
23487
23669
  else {
23488
23670
  metadata2.country(country);
23489
23671
  }
@@ -23566,15 +23748,21 @@ function _nonIterableRest() {
23566
23748
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
23567
23749
  }
23568
23750
  function _unsupportedIterableToArray(o, minLen) {
23569
- if (!o) return;
23570
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
23751
+ if (!o)
23752
+ return;
23753
+ if (typeof o === "string")
23754
+ return _arrayLikeToArray(o, minLen);
23571
23755
  var n = Object.prototype.toString.call(o).slice(8, -1);
23572
- if (n === "Object" && o.constructor) n = o.constructor.name;
23573
- if (n === "Map" || n === "Set") return Array.from(o);
23574
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
23756
+ if (n === "Object" && o.constructor)
23757
+ n = o.constructor.name;
23758
+ if (n === "Map" || n === "Set")
23759
+ return Array.from(o);
23760
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
23761
+ return _arrayLikeToArray(o, minLen);
23575
23762
  }
23576
23763
  function _arrayLikeToArray(arr, len) {
23577
- if (len == null || len > arr.length) len = arr.length;
23764
+ if (len == null || len > arr.length)
23765
+ len = arr.length;
23578
23766
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
23579
23767
  arr2[i] = arr[i];
23580
23768
  }
@@ -23582,7 +23770,8 @@ function _arrayLikeToArray(arr, len) {
23582
23770
  }
23583
23771
  function _iterableToArrayLimit(arr, i) {
23584
23772
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
23585
- if (_i == null) return;
23773
+ if (_i == null)
23774
+ return;
23586
23775
  var _arr = [];
23587
23776
  var _n = true;
23588
23777
  var _d = false;
@@ -23590,22 +23779,26 @@ function _iterableToArrayLimit(arr, i) {
23590
23779
  try {
23591
23780
  for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
23592
23781
  _arr.push(_s.value);
23593
- if (i && _arr.length === i) break;
23782
+ if (i && _arr.length === i)
23783
+ break;
23594
23784
  }
23595
23785
  } catch (err) {
23596
23786
  _d = true;
23597
23787
  _e = err;
23598
23788
  } finally {
23599
23789
  try {
23600
- if (!_n && _i["return"] != null) _i["return"]();
23790
+ if (!_n && _i["return"] != null)
23791
+ _i["return"]();
23601
23792
  } finally {
23602
- if (_d) throw _e;
23793
+ if (_d)
23794
+ throw _e;
23603
23795
  }
23604
23796
  }
23605
23797
  return _arr;
23606
23798
  }
23607
23799
  function _arrayWithHoles(arr) {
23608
- if (Array.isArray(arr)) return arr;
23800
+ if (Array.isArray(arr))
23801
+ return arr;
23609
23802
  }
23610
23803
  function normalizeArguments(args) {
23611
23804
  var _Array$prototype$slic = Array.prototype.slice.call(args), _Array$prototype$slic2 = _slicedToArray(_Array$prototype$slic, 4), arg_1 = _Array$prototype$slic2[0], arg_2 = _Array$prototype$slic2[1], arg_3 = _Array$prototype$slic2[2], arg_4 = _Array$prototype$slic2[3];
@@ -23614,7 +23807,8 @@ function normalizeArguments(args) {
23614
23807
  var metadata2;
23615
23808
  if (typeof arg_1 === "string") {
23616
23809
  text2 = arg_1;
23617
- } else throw new TypeError("A text for parsing must be a string.");
23810
+ } else
23811
+ throw new TypeError("A text for parsing must be a string.");
23618
23812
  if (!arg_2 || typeof arg_2 === "string") {
23619
23813
  if (arg_4) {
23620
23814
  options = arg_3;
@@ -23635,7 +23829,8 @@ function normalizeArguments(args) {
23635
23829
  } else {
23636
23830
  metadata2 = arg_2;
23637
23831
  }
23638
- } else throw new Error("Invalid second argument: ".concat(arg_2));
23832
+ } else
23833
+ throw new Error("Invalid second argument: ".concat(arg_2));
23639
23834
  return {
23640
23835
  text: text2,
23641
23836
  options,
@@ -23680,7 +23875,8 @@ function parsePhoneNumber(text2, options, metadata2) {
23680
23875
  try {
23681
23876
  return parsePhoneNumberWithError(text2, options, metadata2);
23682
23877
  } catch (error) {
23683
- if (error instanceof ParseError) ;
23878
+ if (error instanceof ParseError)
23879
+ ;
23684
23880
  else {
23685
23881
  throw error;
23686
23882
  }
@@ -23972,6 +24168,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
23972
24168
  };
23973
24169
  }
23974
24170
  });
24171
+ const loginCheckModal_vue_vue_type_style_index_0_lang = "";
23975
24172
  const GIT_CODE_LOGO_WHITE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPMAAAA4CAYAAAAo2c5IAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA0wSURBVHgB7Z1fctQ6FsY/d26m5u3mruAqDzB1n2gWcMFZAWEFNCsgrCCdFRBWkGYFhBXEwAIIT1MTaipiBeS+zQykNee0ZHC7bUm2ZXeH6FelSrr9V2590tHRkQxEIpGfggQDcSlS8RXYoQvuKEDQX8nf0/9X2/T/rsyuEIlEWtOLmEm4O/8D0hHmDxWSNIESJNod+1HJOe0jE8zfbGMrI3FLRCIRb4KK+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mCC";
23976
24173
  const _hoisted_1$3 = { class: "mfa" };
23977
24174
  const _hoisted_2$1 = ["src"];
@@ -24066,7 +24263,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24066
24263
  });
24067
24264
  const activeInputIndex = ref(0);
24068
24265
  const inputChange = (e, index2) => {
24069
- if (!e) return;
24266
+ if (!e)
24267
+ return;
24070
24268
  activeInputIndex.value = index2 + 1;
24071
24269
  if (activeInputIndex.value >= inputList.value.length) {
24072
24270
  activeInputIndex.value = inputList.value.length - 1;
@@ -24080,13 +24278,15 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24080
24278
  };
24081
24279
  const keyUp = (e, index2) => {
24082
24280
  activeInputIndex.value = index2;
24083
- if (e.key === "Tab") return;
24281
+ if (e.key === "Tab")
24282
+ return;
24084
24283
  if (e.key === "Backspace") {
24085
24284
  inputList.value[activeInputIndex.value] && (inputList.value[activeInputIndex.value].value = "");
24086
24285
  if (!currentInputValue.value) {
24087
24286
  activeInputIndex.value--;
24088
24287
  }
24089
- if (activeInputIndex.value < 0) activeInputIndex.value = 0;
24288
+ if (activeInputIndex.value < 0)
24289
+ activeInputIndex.value = 0;
24090
24290
  }
24091
24291
  focusInput();
24092
24292
  };
@@ -24234,8 +24434,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24234
24434
  };
24235
24435
  }
24236
24436
  });
24237
- const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
24238
- const SlidCaptcha = defineAsyncComponent(() => import("./index-DnIsQr7j.js"));
24437
+ const MFA_vue_vue_type_style_index_0_lang = "";
24438
+ const MFA_vue_vue_type_style_index_1_scoped_3e0f827f_lang = "";
24439
+ const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-3e0f827f"]]);
24440
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-63b698c2.js"));
24239
24441
  const useSlidCaptcha = () => {
24240
24442
  const { mount, unMount } = usePopup("slid-captcha-popup");
24241
24443
  const open = (config) => {
@@ -24254,6 +24456,7 @@ const useSlidCaptcha = () => {
24254
24456
  close: unMount
24255
24457
  };
24256
24458
  };
24459
+ const contentLoading_vue_vue_type_style_index_0_scoped_b4e76fda_lang = "";
24257
24460
  const _sfc_main$3 = {};
24258
24461
  const _hoisted_1$2 = { class: "content-loading" };
24259
24462
  function _sfc_render(_ctx, _cache) {
@@ -24270,7 +24473,7 @@ function _sfc_render(_ctx, _cache) {
24270
24473
  ], -1)
24271
24474
  ]));
24272
24475
  }
24273
- const ContentLoading = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render], ["__scopeId", "data-v-gitcode-layout-lib"]]);
24476
+ const ContentLoading = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render], ["__scopeId", "data-v-b4e76fda"]]);
24274
24477
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
24275
24478
  __name: "index",
24276
24479
  props: {
@@ -24302,13 +24505,15 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
24302
24505
  };
24303
24506
  }
24304
24507
  });
24305
- const DataPanel = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-gitcode-layout-lib"]]);
24508
+ const index_vue_vue_type_style_index_0_scoped_7d576636_lang = "";
24509
+ const DataPanel = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-7d576636"]]);
24306
24510
  function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
24307
24511
  const { interval = 1e4, immediate = true } = options;
24308
24512
  const timer = ref(null);
24309
24513
  const isPageVisible = ref(true);
24310
24514
  const startPoll = () => {
24311
- if (shouldPoll !== void 0 && !shouldPoll.value) return;
24515
+ if (shouldPoll !== void 0 && !shouldPoll.value)
24516
+ return;
24312
24517
  if (!timer.value && isPageVisible.value) {
24313
24518
  if (immediate) {
24314
24519
  pollFunction();
@@ -24617,7 +24822,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24617
24822
  cb(new Error($t("gitCodeLayout.LoginModal.rule.username")));
24618
24823
  return;
24619
24824
  }
24620
- if (usernameCheckLoading.value) return;
24825
+ if (usernameCheckLoading.value)
24826
+ return;
24621
24827
  usernameCheckLoading.value = true;
24622
24828
  try {
24623
24829
  const res = await API.checkUsername(val);
@@ -24804,7 +25010,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24804
25010
  const data = {
24805
25011
  mobile_email: res.mobile_email,
24806
25012
  password: res.password,
24807
- code: res.code
25013
+ code: res.code,
25014
+ captcha_id: nowCaptchaId.value
24808
25015
  };
24809
25016
  const result2 = await API.resetUserPassword(data);
24810
25017
  if (!result2.error) {
@@ -24891,16 +25098,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24891
25098
  const handleRemoteLogin = () => {
24892
25099
  errForRemoteLogin.value = true;
24893
25100
  };
24894
- const goToVerifyCode = () => {
24895
- tabPanel.value = "verifyCode";
24896
- };
24897
25101
  const handleConfirm = async (info) => {
24898
25102
  var _a, _b;
24899
25103
  if (formType.value === "register") {
24900
25104
  useReport("signup_submit", {}, API.report);
24901
25105
  }
24902
25106
  const formData = await ((_a = FormRef.value) == null ? void 0 : _a.ValidateForm());
24903
- if (!formData || formData.type === "fail") return false;
25107
+ if (!formData || formData.type === "fail")
25108
+ return false;
24904
25109
  const res = formData.forms;
24905
25110
  const { country } = ((_b = FormRef.value) == null ? void 0 : _b.Data) || {};
24906
25111
  const mobile = getPhone({ value: res.mobile, country });
@@ -24909,10 +25114,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24909
25114
  return;
24910
25115
  } else if (formType.value === "register") {
24911
25116
  const check = await LoginCheck();
24912
- if (!check) return;
25117
+ if (!check)
25118
+ return;
24913
25119
  await registerAction(res, mobile);
24914
25120
  } else {
24915
- errForRemoteLogin.value = false;
24916
25121
  const loginFunction = tabPanel.value === "password" ? LoginConfig.password : LoginConfig.phone;
24917
25122
  const params = tabPanel.value === "password" ? { ...res, captchaId: info == null ? void 0 : info.captchaId } : {
24918
25123
  mobile,
@@ -24983,6 +25188,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24983
25188
  }
24984
25189
  return res;
24985
25190
  };
25191
+ const nowCaptchaId = ref();
24986
25192
  const handleCountDown = async (conf) => {
24987
25193
  var _a, _b;
24988
25194
  const formData = await FormRef.value.ValidateFormKeys([conf.key]);
@@ -24998,7 +25204,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24998
25204
  }
24999
25205
  if (formType.value === "forget" && !conf.captchaId) {
25000
25206
  slidCaptcha.open({
25001
- onSuccess: (captchaData) => handleCountDown({ ...conf, captchaId: captchaData.id })
25207
+ onSuccess: (captchaData) => {
25208
+ nowCaptchaId.value = captchaData.id;
25209
+ handleCountDown({ ...conf, captchaId: captchaData.id });
25210
+ }
25002
25211
  });
25003
25212
  return;
25004
25213
  }
@@ -25272,14 +25481,16 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25272
25481
  const fetchMiniProgramStatus = async () => {
25273
25482
  var _a;
25274
25483
  const res = await LoginConfig.miniProgramCheckStatus(miniProgramInfo.value.scene_id);
25275
- if (res.error) return;
25484
+ if (res.error)
25485
+ return;
25276
25486
  const { status: miniProgramCurrentStatus } = ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.data) || "WAITING";
25277
25487
  miniProgramStatus.value = miniProgramCurrentStatus;
25278
25488
  if (miniProgramCurrentStatus === "TIMEOUT" || miniProgramCurrentStatus === "CANCEL") {
25279
25489
  stopPoll();
25280
25490
  return;
25281
25491
  }
25282
- if (miniProgramCurrentStatus !== "LOGIN") return;
25492
+ if (miniProgramCurrentStatus !== "LOGIN")
25493
+ return;
25283
25494
  stopPoll();
25284
25495
  const loginResult = await LoginConfig.miniProgramLogin(miniProgramInfo.value.scene_id);
25285
25496
  if (!loginResult.success) {
@@ -25292,7 +25503,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25292
25503
  }, shouldMiniProgramPoll);
25293
25504
  const getMiniProgramQrCode = async () => {
25294
25505
  var _a;
25295
- if (miniProgramLoading.value) return;
25506
+ if (miniProgramLoading.value)
25507
+ return;
25296
25508
  miniProgramLoading.value = true;
25297
25509
  stopPoll();
25298
25510
  miniProgramStatus.value = "WAITING";
@@ -25338,7 +25550,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25338
25550
  return openBlock(), createElementBlock(Fragment, null, [
25339
25551
  createVNode(unref(Modal), {
25340
25552
  modelValue: unref(vModels),
25341
- "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => isRef(vModels) ? vModels.value = $event : null),
25553
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => isRef(vModels) ? vModels.value = $event : null),
25342
25554
  "show-close": false,
25343
25555
  "lock-scroll": _ctx.lockScroll,
25344
25556
  draggable: _ctx.draggable,
@@ -25448,14 +25660,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25448
25660
  errForRemoteLogin.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
25449
25661
  createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.unusualLogin")), 1),
25450
25662
  createElementVNode("span", {
25451
- onClick: goToVerifyCode,
25663
+ onClick: _cache[4] || (_cache[4] = ($event) => handleTabPanelChange("verifyCode")),
25452
25664
  class: "login-modal-info-left__link"
25453
25665
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.smsLogin")), 1)
25454
25666
  ], 64)) : createCommentVNode("", true)
25455
25667
  ]),
25456
25668
  withDirectives(createElementVNode("div", {
25457
25669
  class: "login-modal-info-right",
25458
- onClick: _cache[4] || (_cache[4] = withModifiers(($event) => formType.value = "forget", ["stop"]))
25670
+ onClick: _cache[5] || (_cache[5] = withModifiers(($event) => formType.value = "forget", ["stop"]))
25459
25671
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.forgotPassword")), 513), [
25460
25672
  [vShow, tabPanel.value === "password" && formType.value === "login"]
25461
25673
  ])
@@ -25481,7 +25693,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25481
25693
  class: "text-[var(--theme-link)] text-center mt-[12px] cursor-pointer leading-[32px] openharmony-btn",
25482
25694
  onClick: withModifiers(handleRegisterHarmony, ["stop"])
25483
25695
  }, [
25484
- _cache[16] || (_cache[16] = createElementVNode("img", {
25696
+ _cache[17] || (_cache[17] = createElementVNode("img", {
25485
25697
  src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
25486
25698
  alt: "",
25487
25699
  class: "mr-[16px] inline-block"
@@ -25541,8 +25753,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25541
25753
  createElementVNode("div", _hoisted_20, [
25542
25754
  createVNode(_sfc_main$8, {
25543
25755
  modelValue: status.value,
25544
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => status.value = $event),
25545
- onDeclares: _cache[6] || (_cache[6] = (typ) => handleDisplay(typ))
25756
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => status.value = $event),
25757
+ onDeclares: _cache[7] || (_cache[7] = (typ) => handleDisplay(typ))
25546
25758
  }, null, 8, ["modelValue"])
25547
25759
  ])
25548
25760
  ], 2)
@@ -25558,19 +25770,19 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25558
25770
  }, [
25559
25771
  createVNode(_sfc_main$7, {
25560
25772
  modelValue: hwStatus.value,
25561
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => hwStatus.value = $event),
25562
- onDeclares: _cache[8] || (_cache[8] = (typ) => handleDisplay(typ, "huawei")),
25773
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => hwStatus.value = $event),
25774
+ onDeclares: _cache[9] || (_cache[9] = (typ) => handleDisplay(typ, "huawei")),
25563
25775
  "agreement-text": `《${unref($t)("gitCodeLayout.LoginModal.link.huaweiCloudAgreement")}》`,
25564
25776
  "privacy-text": `《${unref($t)("gitCodeLayout.LoginModal.link.agreementPrivacy")}》`,
25565
- onClick: _cache[9] || (_cache[9] = ($event) => agreementReport("signup_select", `hw${hwStatus.value ? 1 : 0}`))
25777
+ onClick: _cache[10] || (_cache[10] = ($event) => agreementReport("signup_select", `hw${hwStatus.value ? 1 : 0}`))
25566
25778
  }, null, 8, ["modelValue", "agreement-text", "privacy-text"]),
25567
25779
  createVNode(_sfc_main$7, {
25568
25780
  modelValue: status.value,
25569
- "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => status.value = $event),
25570
- onDeclares: _cache[11] || (_cache[11] = (typ) => handleDisplay(typ)),
25781
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => status.value = $event),
25782
+ onDeclares: _cache[12] || (_cache[12] = (typ) => handleDisplay(typ)),
25571
25783
  "agreement-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.agreement")}》`,
25572
25784
  "privacy-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")}》`,
25573
- onClick: _cache[12] || (_cache[12] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
25785
+ onClick: _cache[13] || (_cache[13] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
25574
25786
  }, null, 8, ["modelValue", "agreement-text", "privacy-text"])
25575
25787
  ], 2)) : createCommentVNode("", true),
25576
25788
  createElementVNode("div", _hoisted_23, [
@@ -25597,15 +25809,17 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25597
25809
  ]), 1032, ["modelValue", "lock-scroll", "draggable", "escapable", "append-to-body", "class"]),
25598
25810
  createVNode(_sfc_main$5, {
25599
25811
  visible: showProtoCheck.value,
25600
- "onUpdate:visible": _cache[14] || (_cache[14] = ($event) => showProtoCheck.value = $event),
25812
+ "onUpdate:visible": _cache[15] || (_cache[15] = ($event) => showProtoCheck.value = $event),
25601
25813
  onConfirm: agreeAndLogin,
25602
- onDeclares: _cache[15] || (_cache[15] = (typ) => handleDisplay(typ))
25814
+ onDeclares: _cache[16] || (_cache[16] = (typ) => handleDisplay(typ))
25603
25815
  }, null, 8, ["visible"])
25604
25816
  ], 64);
25605
25817
  };
25606
25818
  }
25607
25819
  });
25608
- const LoginModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-gitcode-layout-lib"]]);
25820
+ const index_vue_vue_type_style_index_0_scoped_2fce7d0b_lang = "";
25821
+ const index_vue_vue_type_style_index_1_lang = "";
25822
+ const LoginModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-2fce7d0b"]]);
25609
25823
  const { t } = i18n.global;
25610
25824
  function useLogin(request) {
25611
25825
  const successMsg = t("gitCodeLayout.common.tips.welcome");
@@ -25762,6 +25976,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25762
25976
  };
25763
25977
  }
25764
25978
  });
25979
+ const main = "";
25765
25980
  const GitCodeLayoutEmitter = emitter;
25766
25981
  const index = {
25767
25982
  install: (app) => {
@@ -25783,8 +25998,8 @@ export {
25783
25998
  TOPIC_TYPE as T,
25784
25999
  _export_sfc as _,
25785
26000
  i18n as a,
25786
- REPO_TYPE as b,
25787
- REPO_EVENT as c,
26001
+ REPO_EVENT as b,
26002
+ REPO_TYPE as c,
25788
26003
  debounce$1 as d,
25789
26004
  extractRepoInfoWithURL as e,
25790
26005
  useTimeFormat as f,