import '@das-fed/upf-ui/packages/components/form-item/style.css';
import { withInstall as Tr } from "@das-fed/upf-utils/with-install/index";
import { useAttrs as Gt, inject as Vr, computed as P, ref as Re, watch as pt, reactive as jr, onMounted as Sr, onUnmounted as Or, defineComponent as xr, useCssVars as Fr, unref as s, openBlock as q, createElementBlock as D, normalizeClass as me, normalizeStyle as Ce, createElementVNode as Me, withDirectives as gt, toDisplayString as ht, createCommentVNode as z, createBlock as He, mergeProps as U, createSlots as yt, withCtx as se, createVNode as W, renderSlot as le, isRef as B, Fragment as K, createTextVNode as Ar } from "vue";
import { DasTreeSelectRef as Pr, DasTreeSelect as Er } from "@das-fed/upf-ui/packages/components/tree-select/index";
import { DasSelectInput as Cr } from "@das-fed/upf-ui/packages/components/select-input/index";
import { DasInputDialogSelect as Mr } from "@das-fed/upf-ui/packages/components/input-dialog-select/index";
import { DasInput as Ir } from "@das-fed/upf-ui/packages/components/input/index";
import { DasRadio as qr } from "@das-fed/upf-ui/packages/components/radio/index";
import { DasCheckbox as zr } from "@das-fed/upf-ui/packages/components/checkbox/index";
import { DasSwitch as Rr } from "@das-fed/upf-ui/packages/components/switch/index";
import { DasSelect as Dr } from "@das-fed/upf-ui/packages/components/select/index";
import { DasTooltip as Nr } from "@das-fed/upf-ui/packages/components/tooltip/index";
import "@das-fed/upf-ui/packages/components/icon/index";
import { DasDatePicker as Lr, DasRangePicker as Ur, DasTimePicker as Br, DasTimeRangePicker as Wr } from "@das-fed/upf-ui/packages/components/date-picker/index";
import { DasCascaderRef as Kr, DasCascader as Gr } from "@das-fed/upf-ui/packages/components/cascader/index";
import { DasColorPicker as Hr } from "@das-fed/upf-ui/packages/components/color-picker/index";
import { DasInputNumber as kr } from "@das-fed/upf-ui/packages/components/input-number/index";
import { vDasTooltip as mt } from "@das-fed/upf-ui/packages/components/text-tooltip/index";
import { DasIconFormTips as Zr } from "@das-fed/upf-ui/packages/icons/form-tips/index";
import { DasErrorOverlayModel as Jr } from "@das-fed/upf-ui/packages/components/error-overlay-model/index";
import { useModelValue as ke } from "@das-fed/upf-utils/vue";
const Yr = (e) => ({ isShow: (...r) => r.includes(e.type) });
function re() {
  return re = Object.assign ? Object.assign.bind() : function(e) {
    for (var t = 1; t < arguments.length; t++) {
      var r = arguments[t];
      for (var n in r)
        Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
    }
    return e;
  }, re.apply(this, arguments);
}
function Xr(e, t) {
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Te(e, t);
}
function Xe(e) {
  return Xe = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
    return r.__proto__ || Object.getPrototypeOf(r);
  }, Xe(e);
}
function Te(e, t) {
  return Te = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, i) {
    return n.__proto__ = i, n;
  }, Te(e, t);
}
function Qr() {
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
  if (typeof Proxy == "function") return !0;
  try {
    return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
    })), !0;
  } catch {
    return !1;
  }
}
function qe(e, t, r) {
  return Qr() ? qe = Reflect.construct.bind() : qe = function(i, a, o) {
    var l = [null];
    l.push.apply(l, a);
    var f = Function.bind.apply(i, l), w = new f();
    return o && Te(w, o.prototype), w;
  }, qe.apply(null, arguments);
}
function _r(e) {
  return Function.toString.call(e).indexOf("[native code]") !== -1;
}
function Qe(e) {
  var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
  return Qe = function(n) {
    if (n === null || !_r(n)) return n;
    if (typeof n != "function")
      throw new TypeError("Super expression must either be null or a function");
    if (typeof t < "u") {
      if (t.has(n)) return t.get(n);
      t.set(n, i);
    }
    function i() {
      return qe(n, arguments, Xe(this).constructor);
    }
    return i.prototype = Object.create(n.prototype, {
      constructor: {
        value: i,
        enumerable: !1,
        writable: !0,
        configurable: !0
      }
    }), Te(i, n);
  }, Qe(e);
}
var en = /%[sdj%]/g, Ht = function() {
};
typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (Ht = function(t, r) {
  typeof console < "u" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING > "u" && r.every(function(n) {
    return typeof n == "string";
  });
});
function _e(e) {
  if (!e || !e.length) return null;
  var t = {};
  return e.forEach(function(r) {
    var n = r.field;
    t[n] = t[n] || [], t[n].push(r);
  }), t;
}
function k(e) {
  for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
    r[n - 1] = arguments[n];
  var i = 0, a = r.length;
  if (typeof e == "function")
    return e.apply(null, r);
  if (typeof e == "string") {
    var o = e.replace(en, function(l) {
      if (l === "%%")
        return "%";
      if (i >= a)
        return l;
      switch (l) {
        case "%s":
          return String(r[i++]);
        case "%d":
          return Number(r[i++]);
        case "%j":
          try {
            return JSON.stringify(r[i++]);
          } catch {
            return "[Circular]";
          }
          break;
        default:
          return l;
      }
    });
    return o;
  }
  return e;
}
function tn(e) {
  return e === "string" || e === "url" || e === "hex" || e === "email" || e === "date" || e === "pattern";
}
function N(e, t) {
  return !!(e == null || t === "array" && Array.isArray(e) && !e.length || tn(t) && typeof e == "string" && !e);
}
function rn(e, t, r) {
  var n = [], i = 0, a = e.length;
  function o(l) {
    n.push.apply(n, l || []), i++, i === a && r(n);
  }
  e.forEach(function(l) {
    t(l, o);
  });
}
function vt(e, t, r) {
  var n = 0, i = e.length;
  function a(o) {
    if (o && o.length) {
      r(o);
      return;
    }
    var l = n;
    n = n + 1, l < i ? t(e[l], a) : r([]);
  }
  a([]);
}
function nn(e) {
  var t = [];
  return Object.keys(e).forEach(function(r) {
    t.push.apply(t, e[r] || []);
  }), t;
}
var bt = /* @__PURE__ */ function(e) {
  Xr(t, e);
  function t(r, n) {
    var i;
    return i = e.call(this, "Async Validation Error") || this, i.errors = r, i.fields = n, i;
  }
  return t;
}(/* @__PURE__ */ Qe(Error));
function an(e, t, r, n, i) {
  if (t.first) {
    var a = new Promise(function($, R) {
      var T = function(d) {
        return n(d), d.length ? R(new bt(d, _e(d))) : $(i);
      }, h = nn(e);
      vt(h, r, T);
    });
    return a.catch(function($) {
      return $;
    }), a;
  }
  var o = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], l = Object.keys(e), f = l.length, w = 0, j = [], g = new Promise(function($, R) {
    var T = function(u) {
      if (j.push.apply(j, u), w++, w === f)
        return n(j), j.length ? R(new bt(j, _e(j))) : $(i);
    };
    l.length || (n(j), $(i)), l.forEach(function(h) {
      var u = e[h];
      o.indexOf(h) !== -1 ? vt(u, r, T) : rn(u, r, T);
    });
  });
  return g.catch(function($) {
    return $;
  }), g;
}
function on(e) {
  return !!(e && e.message !== void 0);
}
function sn(e, t) {
  for (var r = e, n = 0; n < t.length; n++) {
    if (r == null)
      return r;
    r = r[t[n]];
  }
  return r;
}
function wt(e, t) {
  return function(r) {
    var n;
    return e.fullFields ? n = sn(t, e.fullFields) : n = t[r.field || e.fullField], on(r) ? (r.field = r.field || e.fullField, r.fieldValue = n, r) : {
      message: typeof r == "function" ? r() : r,
      fieldValue: n,
      field: r.field || e.fullField
    };
  };
}
function $t(e, t) {
  if (t) {
    for (var r in t)
      if (t.hasOwnProperty(r)) {
        var n = t[r];
        typeof n == "object" && typeof e[r] == "object" ? e[r] = re({}, e[r], n) : e[r] = n;
      }
  }
  return e;
}
var kt = function(t, r, n, i, a, o) {
  t.required && (!n.hasOwnProperty(t.field) || N(r, o || t.type)) && i.push(k(a.messages.required, t.fullField));
}, ln = function(t, r, n, i, a) {
  (/^\s+$/.test(r) || r === "") && i.push(k(a.messages.whitespace, t.fullField));
}, Ie, un = function() {
  if (Ie)
    return Ie;
  var e = "[a-fA-F\\d:]", t = function(V) {
    return V && V.includeBoundaries ? "(?:(?<=\\s|^)(?=" + e + ")|(?<=" + e + ")(?=\\s|$))" : "";
  }, r = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}", n = "[a-fA-F\\d]{1,4}", i = (`
(?:
(?:` + n + ":){7}(?:" + n + `|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8
(?:` + n + ":){6}(?:" + r + "|:" + n + `|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4
(?:` + n + ":){5}(?::" + r + "|(?::" + n + `){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4
(?:` + n + ":){4}(?:(?::" + n + "){0,1}:" + r + "|(?::" + n + `){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4
(?:` + n + ":){3}(?:(?::" + n + "){0,2}:" + r + "|(?::" + n + `){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4
(?:` + n + ":){2}(?:(?::" + n + "){0,3}:" + r + "|(?::" + n + `){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4
(?:` + n + ":){1}(?:(?::" + n + "){0,4}:" + r + "|(?::" + n + `){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4
(?::(?:(?::` + n + "){0,5}:" + r + "|(?::" + n + `){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1
`).replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim(), a = new RegExp("(?:^" + r + "$)|(?:^" + i + "$)"), o = new RegExp("^" + r + "$"), l = new RegExp("^" + i + "$"), f = function(V) {
    return V && V.exact ? a : new RegExp("(?:" + t(V) + r + t(V) + ")|(?:" + t(V) + i + t(V) + ")", "g");
  };
  f.v4 = function(m) {
    return m && m.exact ? o : new RegExp("" + t(m) + r + t(m), "g");
  }, f.v6 = function(m) {
    return m && m.exact ? l : new RegExp("" + t(m) + i + t(m), "g");
  };
  var w = "(?:(?:[a-z]+:)?//)", j = "(?:\\S+(?::\\S*)?@)?", g = f.v4().source, $ = f.v6().source, R = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", T = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", h = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", u = "(?::\\d{2,5})?", d = '(?:[/?#][^\\s"]*)?', G = "(?:" + w + "|www\\.)" + j + "(?:localhost|" + g + "|" + $ + "|" + R + T + h + ")" + u + d;
  return Ie = new RegExp("(?:^" + G + "$)", "i"), Ie;
}, Tt = {
  // http://emailregex.com/
  email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
  // url: new RegExp(
  //   '^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$',
  //   'i',
  // ),
  hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
}, be = {
  integer: function(t) {
    return be.number(t) && parseInt(t, 10) === t;
  },
  float: function(t) {
    return be.number(t) && !be.integer(t);
  },
  array: function(t) {
    return Array.isArray(t);
  },
  regexp: function(t) {
    if (t instanceof RegExp)
      return !0;
    try {
      return !!new RegExp(t);
    } catch {
      return !1;
    }
  },
  date: function(t) {
    return typeof t.getTime == "function" && typeof t.getMonth == "function" && typeof t.getYear == "function" && !isNaN(t.getTime());
  },
  number: function(t) {
    return isNaN(t) ? !1 : typeof t == "number";
  },
  object: function(t) {
    return typeof t == "object" && !be.array(t);
  },
  method: function(t) {
    return typeof t == "function";
  },
  email: function(t) {
    return typeof t == "string" && t.length <= 320 && !!t.match(Tt.email);
  },
  url: function(t) {
    return typeof t == "string" && t.length <= 2048 && !!t.match(un());
  },
  hex: function(t) {
    return typeof t == "string" && !!t.match(Tt.hex);
  }
}, fn = function(t, r, n, i, a) {
  if (t.required && r === void 0) {
    kt(t, r, n, i, a);
    return;
  }
  var o = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], l = t.type;
  o.indexOf(l) > -1 ? be[l](r) || i.push(k(a.messages.types[l], t.fullField, t.type)) : l && typeof r !== t.type && i.push(k(a.messages.types[l], t.fullField, t.type));
}, dn = function(t, r, n, i, a) {
  var o = typeof t.len == "number", l = typeof t.min == "number", f = typeof t.max == "number", w = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, j = r, g = null, $ = typeof r == "number", R = typeof r == "string", T = Array.isArray(r);
  if ($ ? g = "number" : R ? g = "string" : T && (g = "array"), !g)
    return !1;
  T && (j = r.length), R && (j = r.replace(w, "_").length), o ? j !== t.len && i.push(k(a.messages[g].len, t.fullField, t.len)) : l && !f && j < t.min ? i.push(k(a.messages[g].min, t.fullField, t.min)) : f && !l && j > t.max ? i.push(k(a.messages[g].max, t.fullField, t.max)) : l && f && (j < t.min || j > t.max) && i.push(k(a.messages[g].range, t.fullField, t.min, t.max));
}, ue = "enum", cn = function(t, r, n, i, a) {
  t[ue] = Array.isArray(t[ue]) ? t[ue] : [], t[ue].indexOf(r) === -1 && i.push(k(a.messages[ue], t.fullField, t[ue].join(", ")));
}, pn = function(t, r, n, i, a) {
  if (t.pattern) {
    if (t.pattern instanceof RegExp)
      t.pattern.lastIndex = 0, t.pattern.test(r) || i.push(k(a.messages.pattern.mismatch, t.fullField, r, t.pattern));
    else if (typeof t.pattern == "string") {
      var o = new RegExp(t.pattern);
      o.test(r) || i.push(k(a.messages.pattern.mismatch, t.fullField, r, t.pattern));
    }
  }
}, b = {
  required: kt,
  whitespace: ln,
  type: fn,
  range: dn,
  enum: cn,
  pattern: pn
}, gn = function(t, r, n, i, a) {
  var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
  if (l) {
    if (N(r, "string") && !t.required)
      return n();
    b.required(t, r, i, o, a, "string"), N(r, "string") || (b.type(t, r, i, o, a), b.range(t, r, i, o, a), b.pattern(t, r, i, o, a), t.whitespace === !0 && b.whitespace(t, r, i, o, a));
  }
  n(o);
}, hn = function(t, r, n, i, a) {
  var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
  if (l) {
    if (N(r) && !t.required)
      return n();
    b.required(t, r, i, o, a), r !== void 0 && b.type(t, r, i, o, a);
  }
  n(o);
}, yn = function(t, r, n, i, a) {
  var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
  if (l) {
    if (r === "" && (r = void 0), N(r) && !t.required)
      return n();
    b.required(t, r, i, o, a), r !== void 0 && (b.type(t, r, i, o, a), b.range(t, r, i, o, a));
  }
  n(o);
}, mn = function(t, r, n, i, a) {
  var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
  if (l) {
    if (N(r) && !t.required)
      return n();
    b.required(t, r, i, o, a), r !== void 0 && b.type(t, r, i, o, a);
  }
  n(o);
}, vn = function(t, r, n, i, a) {
  var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
  if (l) {
    if (N(r) && !t.required)
      return n();
    b.required(t, r, i, o, a), N(r) || b.type(t, r, i, o, a);
  }
  n(o);
}, bn = function(t, r, n, i, a) {
  var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
  if (l) {
    if (N(r) && !t.required)
      return n();
    b.required(t, r, i, o, a), r !== void 0 && (b.type(t, r, i, o, a), b.range(t, r, i, o, a));
  }
  n(o);
}, wn = function(t, r, n, i, a) {
  var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
  if (l) {
    if (N(r) && !t.required)
      return n();
    b.required(t, r, i, o, a), r !== void 0 && (b.type(t, r, i, o, a), b.range(t, r, i, o, a));
  }
  n(o);
}, $n = function(t, r, n, i, a) {
  var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
  if (l) {
    if (r == null && !t.required)
      return n();
    b.required(t, r, i, o, a, "array"), r != null && (b.type(t, r, i, o, a), b.range(t, r, i, o, a));
  }
  n(o);
}, Tn = function(t, r, n, i, a) {
  var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
  if (l) {
    if (N(r) && !t.required)
      return n();
    b.required(t, r, i, o, a), r !== void 0 && b.type(t, r, i, o, a);
  }
  n(o);
}, Vn = "enum", jn = function(t, r, n, i, a) {
  var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
  if (l) {
    if (N(r) && !t.required)
      return n();
    b.required(t, r, i, o, a), r !== void 0 && b[Vn](t, r, i, o, a);
  }
  n(o);
}, Sn = function(t, r, n, i, a) {
  var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
  if (l) {
    if (N(r, "string") && !t.required)
      return n();
    b.required(t, r, i, o, a), N(r, "string") || b.pattern(t, r, i, o, a);
  }
  n(o);
}, On = function(t, r, n, i, a) {
  var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
  if (l) {
    if (N(r, "date") && !t.required)
      return n();
    if (b.required(t, r, i, o, a), !N(r, "date")) {
      var f;
      r instanceof Date ? f = r : f = new Date(r), b.type(t, f, i, o, a), f && b.range(t, f.getTime(), i, o, a);
    }
  }
  n(o);
}, xn = function(t, r, n, i, a) {
  var o = [], l = Array.isArray(r) ? "array" : typeof r;
  b.required(t, r, i, o, a, l), n(o);
}, Ze = function(t, r, n, i, a) {
  var o = t.type, l = [], f = t.required || !t.required && i.hasOwnProperty(t.field);
  if (f) {
    if (N(r, o) && !t.required)
      return n();
    b.required(t, r, i, l, a, o), N(r, o) || b.type(t, r, i, l, a);
  }
  n(l);
}, Fn = function(t, r, n, i, a) {
  var o = [], l = t.required || !t.required && i.hasOwnProperty(t.field);
  if (l) {
    if (N(r) && !t.required)
      return n();
    b.required(t, r, i, o, a);
  }
  n(o);
}, we = {
  string: gn,
  method: hn,
  number: yn,
  boolean: mn,
  regexp: vn,
  integer: bn,
  float: wn,
  array: $n,
  object: Tn,
  enum: jn,
  pattern: Sn,
  date: On,
  url: Ze,
  hex: Ze,
  email: Ze,
  required: xn,
  any: Fn
};
function et() {
  return {
    default: "Validation error on field %s",
    required: "%s is required",
    enum: "%s must be one of %s",
    whitespace: "%s cannot be empty",
    date: {
      format: "%s date %s is invalid for format %s",
      parse: "%s date could not be parsed, %s is invalid ",
      invalid: "%s date %s is invalid"
    },
    types: {
      string: "%s is not a %s",
      method: "%s is not a %s (function)",
      array: "%s is not an %s",
      object: "%s is not an %s",
      number: "%s is not a %s",
      date: "%s is not a %s",
      boolean: "%s is not a %s",
      integer: "%s is not an %s",
      float: "%s is not a %s",
      regexp: "%s is not a valid %s",
      email: "%s is not a valid %s",
      url: "%s is not a valid %s",
      hex: "%s is not a valid %s"
    },
    string: {
      len: "%s must be exactly %s characters",
      min: "%s must be at least %s characters",
      max: "%s cannot be longer than %s characters",
      range: "%s must be between %s and %s characters"
    },
    number: {
      len: "%s must equal %s",
      min: "%s cannot be less than %s",
      max: "%s cannot be greater than %s",
      range: "%s must be between %s and %s"
    },
    array: {
      len: "%s must be exactly %s in length",
      min: "%s cannot be less than %s in length",
      max: "%s cannot be greater than %s in length",
      range: "%s must be between %s and %s in length"
    },
    pattern: {
      mismatch: "%s value %s does not match pattern %s"
    },
    clone: function() {
      var t = JSON.parse(JSON.stringify(this));
      return t.clone = this.clone, t;
    }
  };
}
var tt = et(), Se = /* @__PURE__ */ function() {
  function e(r) {
    this.rules = null, this._messages = tt, this.define(r);
  }
  var t = e.prototype;
  return t.define = function(n) {
    var i = this;
    if (!n)
      throw new Error("Cannot configure a schema with no rules");
    if (typeof n != "object" || Array.isArray(n))
      throw new Error("Rules must be an object");
    this.rules = {}, Object.keys(n).forEach(function(a) {
      var o = n[a];
      i.rules[a] = Array.isArray(o) ? o : [o];
    });
  }, t.messages = function(n) {
    return n && (this._messages = $t(et(), n)), this._messages;
  }, t.validate = function(n, i, a) {
    var o = this;
    i === void 0 && (i = {}), a === void 0 && (a = function() {
    });
    var l = n, f = i, w = a;
    if (typeof f == "function" && (w = f, f = {}), !this.rules || Object.keys(this.rules).length === 0)
      return w && w(null, l), Promise.resolve(l);
    function j(h) {
      var u = [], d = {};
      function G(V) {
        if (Array.isArray(V)) {
          var C;
          u = (C = u).concat.apply(C, V);
        } else
          u.push(V);
      }
      for (var m = 0; m < h.length; m++)
        G(h[m]);
      u.length ? (d = _e(u), w(u, d)) : w(null, l);
    }
    if (f.messages) {
      var g = this.messages();
      g === tt && (g = et()), $t(g, f.messages), f.messages = g;
    } else
      f.messages = this.messages();
    var $ = {}, R = f.keys || Object.keys(this.rules);
    R.forEach(function(h) {
      var u = o.rules[h], d = l[h];
      u.forEach(function(G) {
        var m = G;
        typeof m.transform == "function" && (l === n && (l = re({}, l)), d = l[h] = m.transform(d)), typeof m == "function" ? m = {
          validator: m
        } : m = re({}, m), m.validator = o.getValidationMethod(m), m.validator && (m.field = h, m.fullField = m.fullField || h, m.type = o.getType(m), $[h] = $[h] || [], $[h].push({
          rule: m,
          value: d,
          source: l,
          field: h
        }));
      });
    });
    var T = {};
    return an($, f, function(h, u) {
      var d = h.rule, G = (d.type === "object" || d.type === "array") && (typeof d.fields == "object" || typeof d.defaultField == "object");
      G = G && (d.required || !d.required && h.value), d.field = h.field;
      function m(M, I) {
        return re({}, I, {
          fullField: d.fullField + "." + M,
          fullFields: d.fullFields ? [].concat(d.fullFields, [M]) : [M]
        });
      }
      function V(M) {
        M === void 0 && (M = []);
        var I = Array.isArray(M) ? M : [M];
        !f.suppressWarning && I.length && e.warning("async-validator:", I), I.length && d.message !== void 0 && (I = [].concat(d.message));
        var L = I.map(wt(d, l));
        if (f.first && L.length)
          return T[d.field] = 1, u(L);
        if (!G)
          u(L);
        else {
          if (d.required && !h.value)
            return d.message !== void 0 ? L = [].concat(d.message).map(wt(d, l)) : f.error && (L = [f.error(d, k(f.messages.required, d.field))]), u(L);
          var J = {};
          d.defaultField && Object.keys(h.value).map(function(S) {
            J[S] = d.defaultField;
          }), J = re({}, J, h.rule.fields);
          var oe = {};
          Object.keys(J).forEach(function(S) {
            var H = J[S], E = Array.isArray(H) ? H : [H];
            oe[S] = E.map(m.bind(null, S));
          });
          var ee = new e(oe);
          ee.messages(f.messages), h.rule.options && (h.rule.options.messages = f.messages, h.rule.options.error = f.error), ee.validate(h.value, h.rule.options || f, function(S) {
            var H = [];
            L && L.length && H.push.apply(H, L), S && S.length && H.push.apply(H, S), u(H.length ? H : null);
          });
        }
      }
      var C;
      if (d.asyncValidator)
        C = d.asyncValidator(d, h.value, V, h.source, f);
      else if (d.validator) {
        try {
          C = d.validator(d, h.value, V, h.source, f);
        } catch (M) {
          console.error == null, f.suppressValidatorError || setTimeout(function() {
            throw M;
          }, 0), V(M.message);
        }
        C === !0 ? V() : C === !1 ? V(typeof d.message == "function" ? d.message(d.fullField || d.field) : d.message || (d.fullField || d.field) + " fails") : C instanceof Array ? V(C) : C instanceof Error && V(C.message);
      }
      C && C.then && C.then(function() {
        return V();
      }, function(M) {
        return V(M);
      });
    }, function(h) {
      j(h);
    }, l);
  }, t.getType = function(n) {
    if (n.type === void 0 && n.pattern instanceof RegExp && (n.type = "pattern"), typeof n.validator != "function" && n.type && !we.hasOwnProperty(n.type))
      throw new Error(k("Unknown rule type %s", n.type));
    return n.type || "string";
  }, t.getValidationMethod = function(n) {
    if (typeof n.validator == "function")
      return n.validator;
    var i = Object.keys(n), a = i.indexOf("message");
    return a !== -1 && i.splice(a, 1), i.length === 1 && i[0] === "required" ? we.required : we[this.getType(n)] || void 0;
  }, e;
}();
Se.register = function(t, r) {
  if (typeof r != "function")
    throw new Error("Cannot register a validator by type, validator is not a function");
  we[t] = r;
};
Se.warning = Ht;
Se.messages = tt;
Se.validators = we;
function An() {
  this.__data__ = [], this.size = 0;
}
function Zt(e, t) {
  return e === t || e !== e && t !== t;
}
function De(e, t) {
  for (var r = e.length; r--; )
    if (Zt(e[r][0], t))
      return r;
  return -1;
}
var Pn = Array.prototype, En = Pn.splice;
function Cn(e) {
  var t = this.__data__, r = De(t, e);
  if (r < 0)
    return !1;
  var n = t.length - 1;
  return r == n ? t.pop() : En.call(t, r, 1), --this.size, !0;
}
function Mn(e) {
  var t = this.__data__, r = De(t, e);
  return r < 0 ? void 0 : t[r][1];
}
function In(e) {
  return De(this.__data__, e) > -1;
}
function qn(e, t) {
  var r = this.__data__, n = De(r, e);
  return n < 0 ? (++this.size, r.push([e, t])) : r[n][1] = t, this;
}
function _(e) {
  var t = -1, r = e == null ? 0 : e.length;
  for (this.clear(); ++t < r; ) {
    var n = e[t];
    this.set(n[0], n[1]);
  }
}
_.prototype.clear = An;
_.prototype.delete = Cn;
_.prototype.get = Mn;
_.prototype.has = In;
_.prototype.set = qn;
function zn() {
  this.__data__ = new _(), this.size = 0;
}
function Rn(e) {
  var t = this.__data__, r = t.delete(e);
  return this.size = t.size, r;
}
function Dn(e) {
  return this.__data__.get(e);
}
function Nn(e) {
  return this.__data__.has(e);
}
var Jt = typeof global == "object" && global && global.Object === Object && global, Ln = typeof self == "object" && self && self.Object === Object && self, Y = Jt || Ln || Function("return this")(), fe = Y.Symbol, Yt = Object.prototype, Un = Yt.hasOwnProperty, Bn = Yt.toString, ve = fe ? fe.toStringTag : void 0;
function Wn(e) {
  var t = Un.call(e, ve), r = e[ve];
  try {
    e[ve] = void 0;
    var n = !0;
  } catch {
  }
  var i = Bn.call(e);
  return n && (t ? e[ve] = r : delete e[ve]), i;
}
var Kn = Object.prototype, Gn = Kn.toString;
function Hn(e) {
  return Gn.call(e);
}
var kn = "[object Null]", Zn = "[object Undefined]", Vt = fe ? fe.toStringTag : void 0;
function Oe(e) {
  return e == null ? e === void 0 ? Zn : kn : Vt && Vt in Object(e) ? Wn(e) : Hn(e);
}
function xe(e) {
  var t = typeof e;
  return e != null && (t == "object" || t == "function");
}
var Jn = "[object AsyncFunction]", Yn = "[object Function]", Xn = "[object GeneratorFunction]", Qn = "[object Proxy]";
function Xt(e) {
  if (!xe(e))
    return !1;
  var t = Oe(e);
  return t == Yn || t == Xn || t == Jn || t == Qn;
}
var Je = Y["__core-js_shared__"], jt = function() {
  var e = /[^.]+$/.exec(Je && Je.keys && Je.keys.IE_PROTO || "");
  return e ? "Symbol(src)_1." + e : "";
}();
function _n(e) {
  return !!jt && jt in e;
}
var ei = Function.prototype, ti = ei.toString;
function ie(e) {
  if (e != null) {
    try {
      return ti.call(e);
    } catch {
    }
    try {
      return e + "";
    } catch {
    }
  }
  return "";
}
var ri = /[\\^$.*+?()[\]{}|]/g, ni = /^\[object .+?Constructor\]$/, ii = Function.prototype, ai = Object.prototype, oi = ii.toString, si = ai.hasOwnProperty, li = RegExp(
  "^" + oi.call(si).replace(ri, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
);
function ui(e) {
  if (!xe(e) || _n(e))
    return !1;
  var t = Xt(e) ? li : ni;
  return t.test(ie(e));
}
function fi(e, t) {
  return e == null ? void 0 : e[t];
}
function ae(e, t) {
  var r = fi(e, t);
  return ui(r) ? r : void 0;
}
var Ve = ae(Y, "Map"), je = ae(Object, "create");
function di() {
  this.__data__ = je ? je(null) : {}, this.size = 0;
}
function ci(e) {
  var t = this.has(e) && delete this.__data__[e];
  return this.size -= t ? 1 : 0, t;
}
var pi = "__lodash_hash_undefined__", gi = Object.prototype, hi = gi.hasOwnProperty;
function yi(e) {
  var t = this.__data__;
  if (je) {
    var r = t[e];
    return r === pi ? void 0 : r;
  }
  return hi.call(t, e) ? t[e] : void 0;
}
var mi = Object.prototype, vi = mi.hasOwnProperty;
function bi(e) {
  var t = this.__data__;
  return je ? t[e] !== void 0 : vi.call(t, e);
}
var wi = "__lodash_hash_undefined__";
function $i(e, t) {
  var r = this.__data__;
  return this.size += this.has(e) ? 0 : 1, r[e] = je && t === void 0 ? wi : t, this;
}
function ne(e) {
  var t = -1, r = e == null ? 0 : e.length;
  for (this.clear(); ++t < r; ) {
    var n = e[t];
    this.set(n[0], n[1]);
  }
}
ne.prototype.clear = di;
ne.prototype.delete = ci;
ne.prototype.get = yi;
ne.prototype.has = bi;
ne.prototype.set = $i;
function Ti() {
  this.size = 0, this.__data__ = {
    hash: new ne(),
    map: new (Ve || _)(),
    string: new ne()
  };
}
function Vi(e) {
  var t = typeof e;
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
}
function Ne(e, t) {
  var r = e.__data__;
  return Vi(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
}
function ji(e) {
  var t = Ne(this, e).delete(e);
  return this.size -= t ? 1 : 0, t;
}
function Si(e) {
  return Ne(this, e).get(e);
}
function Oi(e) {
  return Ne(this, e).has(e);
}
function xi(e, t) {
  var r = Ne(this, e), n = r.size;
  return r.set(e, t), this.size += r.size == n ? 0 : 1, this;
}
function ce(e) {
  var t = -1, r = e == null ? 0 : e.length;
  for (this.clear(); ++t < r; ) {
    var n = e[t];
    this.set(n[0], n[1]);
  }
}
ce.prototype.clear = Ti;
ce.prototype.delete = ji;
ce.prototype.get = Si;
ce.prototype.has = Oi;
ce.prototype.set = xi;
var Fi = 200;
function Ai(e, t) {
  var r = this.__data__;
  if (r instanceof _) {
    var n = r.__data__;
    if (!Ve || n.length < Fi - 1)
      return n.push([e, t]), this.size = ++r.size, this;
    r = this.__data__ = new ce(n);
  }
  return r.set(e, t), this.size = r.size, this;
}
function pe(e) {
  var t = this.__data__ = new _(e);
  this.size = t.size;
}
pe.prototype.clear = zn;
pe.prototype.delete = Rn;
pe.prototype.get = Dn;
pe.prototype.has = Nn;
pe.prototype.set = Ai;
function Pi(e, t) {
  for (var r = -1, n = e == null ? 0 : e.length; ++r < n && t(e[r], r, e) !== !1; )
    ;
  return e;
}
var St = function() {
  try {
    var e = ae(Object, "defineProperty");
    return e({}, "", {}), e;
  } catch {
  }
}();
function Qt(e, t, r) {
  t == "__proto__" && St ? St(e, t, {
    configurable: !0,
    enumerable: !0,
    value: r,
    writable: !0
  }) : e[t] = r;
}
var Ei = Object.prototype, Ci = Ei.hasOwnProperty;
function _t(e, t, r) {
  var n = e[t];
  (!(Ci.call(e, t) && Zt(n, r)) || r === void 0 && !(t in e)) && Qt(e, t, r);
}
function Le(e, t, r, n) {
  var i = !r;
  r || (r = {});
  for (var a = -1, o = t.length; ++a < o; ) {
    var l = t[a], f = void 0;
    f === void 0 && (f = e[l]), i ? Qt(r, l, f) : _t(r, l, f);
  }
  return r;
}
function Mi(e, t) {
  for (var r = -1, n = Array(e); ++r < e; )
    n[r] = t(r);
  return n;
}
function Fe(e) {
  return e != null && typeof e == "object";
}
var Ii = "[object Arguments]";
function Ot(e) {
  return Fe(e) && Oe(e) == Ii;
}
var er = Object.prototype, qi = er.hasOwnProperty, zi = er.propertyIsEnumerable, Ri = Ot(/* @__PURE__ */ function() {
  return arguments;
}()) ? Ot : function(e) {
  return Fe(e) && qi.call(e, "callee") && !zi.call(e, "callee");
}, ot = Array.isArray;
function Di() {
  return !1;
}
var tr = typeof exports == "object" && exports && !exports.nodeType && exports, xt = tr && typeof module == "object" && module && !module.nodeType && module, Ni = xt && xt.exports === tr, Ft = Ni ? Y.Buffer : void 0, Li = Ft ? Ft.isBuffer : void 0, rr = Li || Di, Ui = 9007199254740991, Bi = /^(?:0|[1-9]\d*)$/;
function Wi(e, t) {
  var r = typeof e;
  return t = t ?? Ui, !!t && (r == "number" || r != "symbol" && Bi.test(e)) && e > -1 && e % 1 == 0 && e < t;
}
var Ki = 9007199254740991;
function nr(e) {
  return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Ki;
}
var Gi = "[object Arguments]", Hi = "[object Array]", ki = "[object Boolean]", Zi = "[object Date]", Ji = "[object Error]", Yi = "[object Function]", Xi = "[object Map]", Qi = "[object Number]", _i = "[object Object]", ea = "[object RegExp]", ta = "[object Set]", ra = "[object String]", na = "[object WeakMap]", ia = "[object ArrayBuffer]", aa = "[object DataView]", oa = "[object Float32Array]", sa = "[object Float64Array]", la = "[object Int8Array]", ua = "[object Int16Array]", fa = "[object Int32Array]", da = "[object Uint8Array]", ca = "[object Uint8ClampedArray]", pa = "[object Uint16Array]", ga = "[object Uint32Array]", A = {};
A[oa] = A[sa] = A[la] = A[ua] = A[fa] = A[da] = A[ca] = A[pa] = A[ga] = !0;
A[Gi] = A[Hi] = A[ia] = A[ki] = A[aa] = A[Zi] = A[Ji] = A[Yi] = A[Xi] = A[Qi] = A[_i] = A[ea] = A[ta] = A[ra] = A[na] = !1;
function ha(e) {
  return Fe(e) && nr(e.length) && !!A[Oe(e)];
}
function st(e) {
  return function(t) {
    return e(t);
  };
}
var ir = typeof exports == "object" && exports && !exports.nodeType && exports, $e = ir && typeof module == "object" && module && !module.nodeType && module, ya = $e && $e.exports === ir, Ye = ya && Jt.process, de = function() {
  try {
    var e = $e && $e.require && $e.require("util").types;
    return e || Ye && Ye.binding && Ye.binding("util");
  } catch {
  }
}(), At = de && de.isTypedArray, ma = At ? st(At) : ha, va = Object.prototype, ba = va.hasOwnProperty;
function ar(e, t) {
  var r = ot(e), n = !r && Ri(e), i = !r && !n && rr(e), a = !r && !n && !i && ma(e), o = r || n || i || a, l = o ? Mi(e.length, String) : [], f = l.length;
  for (var w in e)
    (t || ba.call(e, w)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
    (w == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
    i && (w == "offset" || w == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
    a && (w == "buffer" || w == "byteLength" || w == "byteOffset") || // Skip index properties.
    Wi(w, f))) && l.push(w);
  return l;
}
var wa = Object.prototype;
function lt(e) {
  var t = e && e.constructor, r = typeof t == "function" && t.prototype || wa;
  return e === r;
}
function or(e, t) {
  return function(r) {
    return e(t(r));
  };
}
var $a = or(Object.keys, Object), Ta = Object.prototype, Va = Ta.hasOwnProperty;
function ja(e) {
  if (!lt(e))
    return $a(e);
  var t = [];
  for (var r in Object(e))
    Va.call(e, r) && r != "constructor" && t.push(r);
  return t;
}
function sr(e) {
  return e != null && nr(e.length) && !Xt(e);
}
function ut(e) {
  return sr(e) ? ar(e) : ja(e);
}
function Sa(e, t) {
  return e && Le(t, ut(t), e);
}
function Oa(e) {
  var t = [];
  if (e != null)
    for (var r in Object(e))
      t.push(r);
  return t;
}
var xa = Object.prototype, Fa = xa.hasOwnProperty;
function Aa(e) {
  if (!xe(e))
    return Oa(e);
  var t = lt(e), r = [];
  for (var n in e)
    n == "constructor" && (t || !Fa.call(e, n)) || r.push(n);
  return r;
}
function ft(e) {
  return sr(e) ? ar(e, !0) : Aa(e);
}
function Pa(e, t) {
  return e && Le(t, ft(t), e);
}
var lr = typeof exports == "object" && exports && !exports.nodeType && exports, Pt = lr && typeof module == "object" && module && !module.nodeType && module, Ea = Pt && Pt.exports === lr, Et = Ea ? Y.Buffer : void 0, Ct = Et ? Et.allocUnsafe : void 0;
function Ca(e, t) {
  if (t)
    return e.slice();
  var r = e.length, n = Ct ? Ct(r) : new e.constructor(r);
  return e.copy(n), n;
}
function Ma(e, t) {
  var r = -1, n = e.length;
  for (t || (t = Array(n)); ++r < n; )
    t[r] = e[r];
  return t;
}
function Ia(e, t) {
  for (var r = -1, n = e == null ? 0 : e.length, i = 0, a = []; ++r < n; ) {
    var o = e[r];
    t(o, r, e) && (a[i++] = o);
  }
  return a;
}
function ur() {
  return [];
}
var qa = Object.prototype, za = qa.propertyIsEnumerable, Mt = Object.getOwnPropertySymbols, dt = Mt ? function(e) {
  return e == null ? [] : (e = Object(e), Ia(Mt(e), function(t) {
    return za.call(e, t);
  }));
} : ur;
function Ra(e, t) {
  return Le(e, dt(e), t);
}
function fr(e, t) {
  for (var r = -1, n = t.length, i = e.length; ++r < n; )
    e[i + r] = t[r];
  return e;
}
var dr = or(Object.getPrototypeOf, Object), Da = Object.getOwnPropertySymbols, cr = Da ? function(e) {
  for (var t = []; e; )
    fr(t, dt(e)), e = dr(e);
  return t;
} : ur;
function Na(e, t) {
  return Le(e, cr(e), t);
}
function pr(e, t, r) {
  var n = t(e);
  return ot(e) ? n : fr(n, r(e));
}
function La(e) {
  return pr(e, ut, dt);
}
function Ua(e) {
  return pr(e, ft, cr);
}
var rt = ae(Y, "DataView"), nt = ae(Y, "Promise"), it = ae(Y, "Set"), at = ae(Y, "WeakMap"), It = "[object Map]", Ba = "[object Object]", qt = "[object Promise]", zt = "[object Set]", Rt = "[object WeakMap]", Dt = "[object DataView]", Wa = ie(rt), Ka = ie(Ve), Ga = ie(nt), Ha = ie(it), ka = ie(at), Q = Oe;
(rt && Q(new rt(new ArrayBuffer(1))) != Dt || Ve && Q(new Ve()) != It || nt && Q(nt.resolve()) != qt || it && Q(new it()) != zt || at && Q(new at()) != Rt) && (Q = function(e) {
  var t = Oe(e), r = t == Ba ? e.constructor : void 0, n = r ? ie(r) : "";
  if (n)
    switch (n) {
      case Wa:
        return Dt;
      case Ka:
        return It;
      case Ga:
        return qt;
      case Ha:
        return zt;
      case ka:
        return Rt;
    }
  return t;
});
var Za = Object.prototype, Ja = Za.hasOwnProperty;
function Ya(e) {
  var t = e.length, r = new e.constructor(t);
  return t && typeof e[0] == "string" && Ja.call(e, "index") && (r.index = e.index, r.input = e.input), r;
}
var Nt = Y.Uint8Array;
function ct(e) {
  var t = new e.constructor(e.byteLength);
  return new Nt(t).set(new Nt(e)), t;
}
function Xa(e, t) {
  var r = t ? ct(e.buffer) : e.buffer;
  return new e.constructor(r, e.byteOffset, e.byteLength);
}
var Qa = /\w*$/;
function _a(e) {
  var t = new e.constructor(e.source, Qa.exec(e));
  return t.lastIndex = e.lastIndex, t;
}
var Lt = fe ? fe.prototype : void 0, Ut = Lt ? Lt.valueOf : void 0;
function eo(e) {
  return Ut ? Object(Ut.call(e)) : {};
}
function to(e, t) {
  var r = t ? ct(e.buffer) : e.buffer;
  return new e.constructor(r, e.byteOffset, e.length);
}
var ro = "[object Boolean]", no = "[object Date]", io = "[object Map]", ao = "[object Number]", oo = "[object RegExp]", so = "[object Set]", lo = "[object String]", uo = "[object Symbol]", fo = "[object ArrayBuffer]", co = "[object DataView]", po = "[object Float32Array]", go = "[object Float64Array]", ho = "[object Int8Array]", yo = "[object Int16Array]", mo = "[object Int32Array]", vo = "[object Uint8Array]", bo = "[object Uint8ClampedArray]", wo = "[object Uint16Array]", $o = "[object Uint32Array]";
function To(e, t, r) {
  var n = e.constructor;
  switch (t) {
    case fo:
      return ct(e);
    case ro:
    case no:
      return new n(+e);
    case co:
      return Xa(e, r);
    case po:
    case go:
    case ho:
    case yo:
    case mo:
    case vo:
    case bo:
    case wo:
    case $o:
      return to(e, r);
    case io:
      return new n();
    case ao:
    case lo:
      return new n(e);
    case oo:
      return _a(e);
    case so:
      return new n();
    case uo:
      return eo(e);
  }
}
var Bt = Object.create, Vo = /* @__PURE__ */ function() {
  function e() {
  }
  return function(t) {
    if (!xe(t))
      return {};
    if (Bt)
      return Bt(t);
    e.prototype = t;
    var r = new e();
    return e.prototype = void 0, r;
  };
}();
function jo(e) {
  return typeof e.constructor == "function" && !lt(e) ? Vo(dr(e)) : {};
}
var So = "[object Map]";
function Oo(e) {
  return Fe(e) && Q(e) == So;
}
var Wt = de && de.isMap, xo = Wt ? st(Wt) : Oo, Fo = "[object Set]";
function Ao(e) {
  return Fe(e) && Q(e) == Fo;
}
var Kt = de && de.isSet, Po = Kt ? st(Kt) : Ao, Eo = 1, Co = 2, Mo = 4, gr = "[object Arguments]", Io = "[object Array]", qo = "[object Boolean]", zo = "[object Date]", Ro = "[object Error]", hr = "[object Function]", Do = "[object GeneratorFunction]", No = "[object Map]", Lo = "[object Number]", yr = "[object Object]", Uo = "[object RegExp]", Bo = "[object Set]", Wo = "[object String]", Ko = "[object Symbol]", Go = "[object WeakMap]", Ho = "[object ArrayBuffer]", ko = "[object DataView]", Zo = "[object Float32Array]", Jo = "[object Float64Array]", Yo = "[object Int8Array]", Xo = "[object Int16Array]", Qo = "[object Int32Array]", _o = "[object Uint8Array]", es = "[object Uint8ClampedArray]", ts = "[object Uint16Array]", rs = "[object Uint32Array]", F = {};
F[gr] = F[Io] = F[Ho] = F[ko] = F[qo] = F[zo] = F[Zo] = F[Jo] = F[Yo] = F[Xo] = F[Qo] = F[No] = F[Lo] = F[yr] = F[Uo] = F[Bo] = F[Wo] = F[Ko] = F[_o] = F[es] = F[ts] = F[rs] = !0;
F[Ro] = F[hr] = F[Go] = !1;
function ze(e, t, r, n, i, a) {
  var o, l = t & Eo, f = t & Co, w = t & Mo;
  if (o !== void 0)
    return o;
  if (!xe(e))
    return e;
  var j = ot(e);
  if (j) {
    if (o = Ya(e), !l)
      return Ma(e, o);
  } else {
    var g = Q(e), $ = g == hr || g == Do;
    if (rr(e))
      return Ca(e, l);
    if (g == yr || g == gr || $ && !i) {
      if (o = f || $ ? {} : jo(e), !l)
        return f ? Na(e, Pa(o, e)) : Ra(e, Sa(o, e));
    } else {
      if (!F[g])
        return i ? e : {};
      o = To(e, g, l);
    }
  }
  a || (a = new pe());
  var R = a.get(e);
  if (R)
    return R;
  a.set(e, o), Po(e) ? e.forEach(function(u) {
    o.add(ze(u, t, r, u, e, a));
  }) : xo(e) && e.forEach(function(u, d) {
    o.set(d, ze(u, t, r, d, e, a));
  });
  var T = w ? f ? Ua : La : f ? ft : ut, h = j ? void 0 : T(e);
  return Pi(h || e, function(u, d) {
    h && (d = u, u = e[d]), _t(o, d, ze(u, t, r, d, e, a));
  }), o;
}
var ns = 1, is = 4;
function as(e) {
  return ze(e, ns | is);
}
const os = (e, t, r) => {
  let n = [];
  return e.length > 0 ? n = e : t && (n = r[t] || []), n;
}, ss = (e, t, r) => {
  const n = Gt(), i = Vr("DasForm"), a = i.props, o = n.class, l = n.prop, f = (y, O) => e[y] || a[y] || O, w = P(() => a.size || "default");
  let j = Re("none");
  const g = ke(e, "modelValue"), $ = ke(e, "error"), R = ke(e, "optionValue"), T = P(() => os(e.rules, l, a.rules)), h = P(() => e.errorMode || a.errorMode), u = "8px", d = P(() => a.alignType === "horizontal" && !a.cols ? u : e.labelMarginRight || a.labelMarginRight), G = P(() => $.value !== ""), m = P(() => {
    const y = f("alignType"), O = f("labelPosition"), x = y === "vertical", X = O === "top";
    return {
      isVertical: x,
      isVerticalInline: x && !X,
      isVerticalTop: x && X,
      isHorizontalInline: !x && !X,
      isHorizontalTop: !x && X,
      isGrid: x && a.cols
    };
  }), V = P(() => {
    if (a.autoMarginRight && m.value.isGrid)
      return "0px";
    const y = e.marginRight, O = a.marginRight, x = y != null && y !== "" ? y : O != null && O !== "" ? O : "0px";
    return typeof x == "number" ? `${x}px` : typeof x == "string" && /^\d+(?:\.\d+)?$/.test(x.trim()) ? `${x.trim()}px` : x;
  }), C = P(() => f("marginBottom")), M = P(() => {
    let y = f("contentWidth");
    if (typeof y == "number")
      return `${y}px`;
    if (!(y && ["auto", "100%"].includes(y)))
      return y;
  }), I = P(() => {
    let y = f("labelWidth");
    if (typeof y == "number")
      return `${y}px`;
    if (!(y && ["auto", "100%"].includes(y)))
      return y;
  }), L = "7px", J = "16px", oe = P(() => {
    var x, X;
    const y = {
      small: 12,
      default: 14,
      large: 16
    }[w.value];
    let O = `${f("labelLength", 4) * y + ((x = i == null ? void 0 : i.hasRequiredFormItem) != null && x.value ? parseFloat(L) : 0) + ((X = i == null ? void 0 : i.hasHelpMessageFormItem) != null && X.value ? parseFloat(J) : 0)}px`;
    return m.value.isHorizontalTop || m.value.isVerticalTop ? M.value ?? O : m.value.isHorizontalInline && !M.value && !a.isSearchForm ? "fit-content" : O;
  }), ee = P(() => {
    var O, x;
    let y = "0px";
    return a.labelPosition === "top" || (a.labelPosition === "right" ? y = `${((O = i == null ? void 0 : i.hasRequiredFormItem) != null && O.value && !e.required ? parseFloat(L) : 0) + ((x = i == null ? void 0 : i.hasHelpMessageFormItem) != null && x.value && !e.helpMessage ? parseFloat(J) : 0)}px` : a.labelPosition), y;
  }), S = P(() => {
    let y = "";
    return a.labelPosition === "top" || (a.labelPosition === "right" ? y = "paddingLeft" : a.labelPosition), y;
  }), H = P(() => {
    const { isVerticalTop: y, isHorizontalTop: O, isVerticalInline: x } = m.value;
    if (y)
      return M.value ?? `calc(100% - ${V.value})`;
    if (x && !M.value)
      return `calc(100% - ${V.value})`;
    if (O)
      return M.value;
  });
  pt(
    g,
    () => {
      E();
    },
    { deep: !0 }
  ), pt(R, () => {
    E();
  });
  const E = () => {
    $.value = "", t("update:error", "");
  }, Ae = Re(void 0), Ue = (y, O) => {
    if (ge(), r("inputNumber")) {
      if (JSON.stringify(y) === JSON.stringify(Ae.value)) return;
      Ae.value = as(y);
    }
    t("update:modelValue", y), t("change", y, O);
  }, Be = (y) => {
    t("update:modelValue", y), t("input", y);
  }, We = (y) => {
    t("update:optionValue", y), t("select-change", y);
  }, ge = async () => {
    if (l && T.value.length > 0) {
      T.value.forEach((O) => {
        !O.type && typeof g.value == "number" && (O.type = "number");
      });
      const y = new Se({
        [l]: T.value
      });
      return new Promise((O) => {
        y.validate({ [l]: g.value }, { firstFields: !0 }).then(() => {
          $.value = "", O(!0);
        }).catch((x) => {
          $.value = x.errors[0].message, O(!1);
        });
      });
    }
  }, Pe = jr({
    timeStamp: Date.now(),
    propName: l,
    rules: T.value,
    validate: ge,
    resetError: E,
    formItemProps: e
  });
  return Sr(() => {
    i.addField(Pe);
  }), Or(() => {
    i.removeField(Pe);
  }), {
    innerValue: g,
    selectModelValue: R,
    errored: G,
    erroredMode: h,
    innerError: $,
    labelWidth: oe,
    reqiuiredMarkerWidth: L,
    formLabelMarginRight: d,
    contentWidth: M,
    formLabelWidth: I,
    flexConfig: j,
    marginRight: V,
    marginBottom: C,
    formProps: a,
    className: o,
    inputHandler: Be,
    changeHandler: Ue,
    selectChangeHandler: We,
    size: w,
    layoutType: m,
    formItemContainerWidth: H,
    paddingSpace: ee,
    paddingDirection: S
  };
}, ls = () => {
  const e = Re(), t = Re(!1);
  return {
    $dasFormItem: e,
    isHoverInInput: t,
    errorModalInputMouseEnter: () => {
      t.value = !0;
    },
    errorModallInputMouseLeave: () => {
      t.value = !1;
    }
  };
}, us = ["data-col"], fs = { class: "label-context" }, ds = { key: 0 }, cs = {
  inheritAttrs: !1
}, ps = /* @__PURE__ */ xr({
  ...cs,
  __name: "Index",
  props: {
    labelLength: {},
    labelWidth: {},
    label: { default: "" },
    labelPosition: {},
    modelValue: {},
    optionValue: {},
    type: { default: "input" },
    required: { type: Boolean, default: !1 },
    isView: { type: Boolean, default: !1 },
    disabled: { type: Boolean, default: !1 },
    contentWidth: {},
    alignItems: { default: "flex-start" },
    marginBottom: {},
    marginRight: {},
    options: {},
    optionsLabelKey: { default: "label" },
    optionsValueKey: { default: "value" },
    error: { default: "" },
    errorMode: {},
    helpMessage: {},
    col: { default: 1 },
    rules: { default: [] },
    tooltipAttrs: {},
    labelMarginRight: {},
    showColon: { type: Boolean },
    errorModelZIndex: { default: 2e3 }
  },
  emits: ["update:modelValue", "update:optionValue", "update:error", "change", "input", "select-change"],
  setup(e, { expose: t, emit: r }) {
    Fr((c) => ({
      v4e03e0ce: s(m),
      v17c65c28: s(C)
    }));
    const n = e, i = r, a = Gt(), o = P(() => a.width), l = Pr(), f = Kr(), w = P(() => String(n.optionsValueKey ?? "value")), j = P(() => String(n.optionsLabelKey ?? "label")), { isShow: g } = Yr(n), {
      innerError: $,
      selectModelValue: R,
      errored: T,
      erroredMode: h,
      innerValue: u,
      labelWidth: d,
      formLabelWidth: G,
      reqiuiredMarkerWidth: m,
      formLabelMarginRight: V,
      contentWidth: C,
      flexConfig: M,
      formProps: I,
      marginRight: L,
      marginBottom: J,
      className: oe,
      inputHandler: ee,
      changeHandler: S,
      selectChangeHandler: H,
      size: E,
      layoutType: Ae,
      formItemContainerWidth: Ue,
      paddingSpace: Be,
      paddingDirection: We
    } = ss(n, i, g), { $dasFormItem: ge, isHoverInInput: Pe, errorModalInputMouseEnter: y, errorModallInputMouseLeave: O } = ls(), x = P(() => {
      if (I.alignType !== "horizontal") return 0;
      const c = Number(I.cols);
      if (!Number.isFinite(c) || c <= 0) return 0;
      const p = n.col == null ? 1 : Number(n.col), Z = Number.isFinite(p) && p > 0 ? p : 1;
      return Math.min(Math.floor(Z), Math.floor(c));
    }), X = P(() => n.marginRight != null && n.marginRight !== ""), mr = P(() => {
      const c = I.marginRight;
      return typeof c == "number" ? `${c}px` : typeof c == "string" && /^\d+(?:\.\d+)?$/.test(c.trim()) ? `${c.trim()}px` : c ?? "0px";
    }), he = P(() => {
      const c = x.value;
      if (!c) return;
      const p = Math.floor(Number(I.cols));
      if (!Number.isFinite(p) || p <= 0) return;
      const Z = mr.value, Ee = L.value ?? "0px";
      if (!(typeof Z == "string" && (Z.trim().startsWith("calc(") || /^-?\d+(?:\.\d+)?[a-z%]+$/i.test(Z.trim())))) return;
      if (c >= p)
        return `calc(100% - ${Ee})`;
      const ye = [];
      for (let te = 0; te < p; te += 1) ye.push(Z);
      const v = `((100% - (${ye.join(" + ")})) / ${p})`, Ge = [];
      for (let te = 0; te < c; te += 1) Ge.push(v);
      for (let te = 0; te < c - 1; te += 1) Ge.push(Z);
      return `calc(${Ge.join(" + ")})`;
    }), vr = P(() => {
      const c = x.value;
      if (!c || he.value || X.value) return;
      const p = typeof C.value == "string" && C.value ? C.value : void 0, Z = typeof I.marginRight == "string" && I.marginRight ? I.marginRight : "0px";
      if (p)
        return `calc(${L.value ?? "0px"} + ((${c} - 1) * (${p} + ${Z})))`;
    }), br = P(() => ({
      marginRight: vr.value ?? L.value,
      marginBottom: J.value,
      alignItems: n.alignItems,
      gridColumn: Ae.value.isGrid && n.col ? `span ${Math.min(n.col, I.cols || 1)}` : void 0,
      flex: he.value ? `0 0 ${he.value}` : void 0,
      width: he.value ?? Ue.value,
      maxWidth: he.value
    })), wr = P(() => ({
      width: G.value ?? d.value,
      [We.value]: G.value ? 0 : Be.value,
      marginRight: V.value
    })), $r = P(() => ({
      flex: I.labelPosition === "top" ? void 0 : C.value ? `0 0 ${C.value}` : "1",
      width: I.labelPosition === "top" ? "100%" : void 0
    }));
    return t({ $treeSelect: l, $cascader: f }), (c, p) => {
      var Z, Ee, Ke, ye;
      return q(), D("div", {
        class: me(["das-ui-form-item", [s(oe), s(I).labelPosition, s(I).alignType]]),
        style: Ce(br.value),
        "data-col": e.col
      }, [
        Me(
          "div",
          {
            ref: "formLabelRef",
            class: me(["das-ui-form-item-label", `size-${s(E)}`]),
            style: Ce(wr.value)
          },
          [
            Me(
              "div",
              {
                class: me(["label", { "has-help": e.helpMessage }])
              },
              [
                gt((q(), D("div", fs, [
                  Me(
                    "span",
                    {
                      class: me(["label-context-inner", { "required-mark": e.required }])
                    },
                    ht(e.label),
                    3
                    /* TEXT, CLASS */
                  )
                ])), [
                  [s(mt)]
                ]),
                e.showColon ? (q(), D("span", ds, "：")) : z("v-if", !0),
                e.helpMessage || c.$slots.helpContent ? (q(), He(s(Nr), U({
                  key: 1,
                  effect: "light",
                  placement: "top-start",
                  content: e.helpMessage
                }, e.tooltipAttrs), yt({
                  default: se(() => [
                    W(s(Zr), {
                      class: me(["help-icon", { "no-required": !e.required }]),
                      iconColor: "var(--upf-text-secondary)",
                      size: "medium"
                    }, null, 8, ["class"])
                  ]),
                  _: 2
                  /* DYNAMIC */
                }, [
                  c.$slots.helpContent ? {
                    name: "content",
                    fn: se(() => [
                      le(c.$slots, "helpContent", {}, void 0, !0)
                    ]),
                    key: "0"
                  } : void 0
                ]), 1040, ["content"])) : z("v-if", !0)
              ],
              2
              /* CLASS */
            )
          ],
          6
          /* CLASS, STYLE */
        ),
        Me(
          "div",
          {
            ref_key: "$dasFormItem",
            ref: ge,
            class: "das-ui-form-container",
            style: Ce($r.value),
            onMouseenter: p[16] || (p[16] = //@ts-ignore
            (...v) => s(y) && s(y)(...v)),
            onMouseleave: p[17] || (p[17] = //@ts-ignore
            (...v) => s(O) && s(O)(...v))
          },
          [
            z(" 输入框 "),
            s(g)("input", "textarea", "password") ? (q(), He(s(Ir), U({
              key: 0,
              modelValue: s(u),
              "onUpdate:modelValue": p[0] || (p[0] = (v) => B(u) ? u.value = v : null),
              style: { "margin-bottom": "0" },
              isView: e.isView,
              disabled: e.disabled,
              type: e.type,
              error: s(T),
              onInput: s(ee),
              onChange: s(S),
              width: "100%",
              size: s(E)
            }, c.$attrs), yt({
              _: 2
              /* DYNAMIC */
            }, [
              c.$slots.suffix ? {
                name: "suffix",
                fn: se(() => [
                  le(c.$slots, "suffix", {}, void 0, !0)
                ]),
                key: "0"
              } : void 0,
              c.$slots.prefix ? {
                name: "prefix",
                fn: se(() => [
                  le(c.$slots, "prefix", {}, void 0, !0)
                ]),
                key: "1"
              } : void 0,
              c.$slots.prepend ? {
                name: "prepend",
                fn: se(() => [
                  le(c.$slots, "prepend", {}, void 0, !0)
                ]),
                key: "2"
              } : void 0,
              c.$slots.append ? {
                name: "append",
                fn: se(() => [
                  le(c.$slots, "append", {}, void 0, !0)
                ]),
                key: "3"
              } : void 0
            ]), 1040, ["modelValue", "isView", "disabled", "type", "error", "onInput", "onChange", "size"])) : s(g)("radio") ? (q(), D(
              K,
              { key: 1 },
              [
                z(" 单选框 "),
                W(s(qr), U({
                  modelValue: s(u),
                  "onUpdate:modelValue": p[1] || (p[1] = (v) => B(u) ? u.value = v : null),
                  isView: e.isView,
                  disabled: e.disabled,
                  radioType: "group",
                  options: e.options,
                  defaultProps: {
                    value: w.value,
                    label: j.value
                  },
                  formSize: s(E),
                  onChange: s(S)
                }, c.$attrs), null, 16, ["modelValue", "isView", "disabled", "options", "defaultProps", "formSize", "onChange"])
              ],
              2112
              /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
            )) : s(g)("checkbox") ? (q(), D(
              K,
              { key: 2 },
              [
                z(" 多选框 "),
                W(s(zr), U({
                  modelValue: s(u),
                  "onUpdate:modelValue": p[2] || (p[2] = (v) => B(u) ? u.value = v : null),
                  isView: e.isView,
                  disabled: e.disabled,
                  checkboxType: "group",
                  options: e.options,
                  defaultProps: {
                    value: w.value,
                    label: j.value
                  },
                  formSize: s(E),
                  onChange: s(S)
                }, c.$attrs), null, 16, ["modelValue", "isView", "disabled", "options", "defaultProps", "formSize", "onChange"])
              ],
              2112
              /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
            )) : s(g)("switch") ? (q(), D(
              K,
              { key: 3 },
              [
                z(" 开关 "),
                W(s(Rr), U({
                  modelValue: s(u),
                  "onUpdate:modelValue": p[3] || (p[3] = (v) => B(u) ? u.value = v : null),
                  disabled: e.disabled,
                  onChange: s(S),
                  formSize: s(E)
                }, c.$attrs), null, 16, ["modelValue", "disabled", "onChange", "formSize"])
              ],
              2112
              /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
            )) : s(g)("select") ? (q(), D(
              K,
              { key: 4 },
              [
                z(" 下拉框 "),
                W(s(Dr), U({
                  modelValue: s(u),
                  "onUpdate:modelValue": p[4] || (p[4] = (v) => B(u) ? u.value = v : null),
                  isView: e.isView,
                  disabled: e.disabled,
                  error: s(T),
                  size: s(E),
                  options: e.options,
                  width: "100%",
                  fieldNames: {
                    value: (Z = e.optionsValueKey) == null ? void 0 : Z.toString(),
                    label: (Ee = e.optionsLabelKey) == null ? void 0 : Ee.toString()
                  },
                  onChange: s(S),
                  formSize: s(E)
                }, c.$attrs), null, 16, ["modelValue", "isView", "disabled", "error", "size", "options", "fieldNames", "onChange", "formSize"])
              ],
              2112
              /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
            )) : s(g)("cascader") ? (q(), D(
              K,
              { key: 5 },
              [
                z(" 级联选择器 "),
                W(s(Gr), U({
                  ref_key: "$cascader",
                  ref: f,
                  modelValue: s(u),
                  "onUpdate:modelValue": p[5] || (p[5] = (v) => B(u) ? u.value = v : null),
                  isView: e.isView,
                  disabled: e.disabled,
                  error: s(T),
                  size: "small",
                  options: e.options,
                  width: "100%",
                  formSize: s(E),
                  onChange: s(S)
                }, c.$attrs), null, 16, ["modelValue", "isView", "disabled", "error", "options", "formSize", "onChange"])
              ],
              2112
              /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
            )) : s(g)("treeSelect") ? (q(), D(
              K,
              { key: 6 },
              [
                z(" 下拉树 "),
                W(s(Er), U({
                  ref_key: "$treeSelect",
                  ref: l,
                  modelValue: s(u),
                  "onUpdate:modelValue": p[6] || (p[6] = (v) => B(u) ? u.value = v : null),
                  data: e.options,
                  size: s(E) === "default" ? "middle" : s(E),
                  width: c.$attrs.width && typeof c.$attrs.width == "string" ? c.$attrs.width : "100%",
                  isView: e.isView,
                  disabled: e.disabled,
                  error: s(T),
                  onChange: s(S)
                }, c.$attrs), null, 16, ["modelValue", "data", "size", "width", "isView", "disabled", "error", "onChange"])
              ],
              2112
              /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
            )) : s(g)("colorPicker") ? (q(), D(
              K,
              { key: 7 },
              [
                z(" 颜色选择器 "),
                W(s(Hr), U({
                  modelValue: s(u),
                  "onUpdate:modelValue": p[7] || (p[7] = (v) => B(u) ? u.value = v : null),
                  options: e.options,
                  width: "100%",
                  onChange: s(S),
                  disabled: !!e.disabled,
                  error: s(T),
                  isView: !!e.isView,
                  formSize: s(E)
                }, c.$attrs), null, 16, ["modelValue", "options", "onChange", "disabled", "error", "isView", "formSize"])
              ],
              2112
              /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
            )) : s(g)("inputNumber") ? (q(), D(
              K,
              { key: 8 },
              [
                z(" 步进器 "),
                W(s(kr), U({
                  modelValue: s(u),
                  "onUpdate:modelValue": p[8] || (p[8] = (v) => B(u) ? u.value = v : null),
                  width: "100%",
                  onInput: s(ee),
                  onChange: s(S),
                  disabled: e.disabled,
                  error: s(T),
                  isView: e.isView,
                  formSize: s(E)
                }, c.$attrs), null, 16, ["modelValue", "onInput", "onChange", "disabled", "error", "isView", "formSize"])
              ],
              2112
              /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
            )) : s(g)("selectInput") ? (q(), D(
              K,
              { key: 9 },
              [
                z(" 搜索组件 "),
                W(s(Cr), U({
                  width: "100%",
                  modelValue: s(u),
                  "onUpdate:modelValue": p[9] || (p[9] = (v) => B(u) ? u.value = v : null),
                  isView: e.isView,
                  error: s(T),
                  disabled: e.disabled,
                  optionValue: s(R),
                  "onUpdate:optionValue": p[10] || (p[10] = (v) => B(R) ? R.value = v : null),
                  options: e.options,
                  optionsLabelKey: (Ke = e.optionsLabelKey) == null ? void 0 : Ke.toString(),
                  optionsValueKey: (ye = e.optionsValueKey) == null ? void 0 : ye.toString(),
                  onInputChange: s(S),
                  onDasInput: s(ee),
                  onSelectChange: s(H),
                  formSize: s(E)
                }, c.$attrs), null, 16, ["modelValue", "isView", "error", "disabled", "optionValue", "options", "optionsLabelKey", "optionsValueKey", "onInputChange", "onDasInput", "onSelectChange", "formSize"])
              ],
              2112
              /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
            )) : s(g)("inputDialogSelect") ? (q(), D(
              K,
              { key: 10 },
              [
                z(" 弹窗选择 "),
                W(s(Mr), U({
                  style: { width: "100px", flex: "1" },
                  isView: e.isView,
                  disabled: e.disabled,
                  error: s(T),
                  "selected-options": e.options,
                  modelValue: s(u),
                  "onUpdate:modelValue": p[11] || (p[11] = (v) => B(u) ? u.value = v : null),
                  formSize: s(E)
                }, c.$attrs, {
                  optionsLabelKey: j.value,
                  optionsValueKey: w.value,
                  onChange: s(S)
                }), null, 16, ["isView", "disabled", "error", "selected-options", "modelValue", "formSize", "optionsLabelKey", "optionsValueKey", "onChange"])
              ],
              2112
              /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
            )) : s(g)("date", "dateTime", "week", "month", "quarter", "year") ? (q(), D(
              K,
              { key: 11 },
              [
                z(" 日期选择器 "),
                W(s(Lr), U({
                  "show-time": e.type === "dateTime",
                  picker: e.type !== "dateTime" ? e.type : "date",
                  modelValue: s(u),
                  "onUpdate:modelValue": p[12] || (p[12] = (v) => B(u) ? u.value = v : null),
                  size: "small",
                  width: "100%",
                  disabled: e.disabled,
                  isView: e.isView,
                  error: s(T),
                  onChange: s(S),
                  formSize: s(E)
                }, c.$attrs), null, 16, ["show-time", "picker", "modelValue", "disabled", "isView", "error", "onChange", "formSize"])
              ],
              2112
              /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
            )) : s(g)("dateRange", "dateTimeRange", "weekRange", "monthRange", "yearRange") ? (q(), D(
              K,
              { key: 12 },
              [
                z(" 日期范围选择器 "),
                W(s(Ur), U({
                  "show-time": e.type === "dateTimeRange",
                  picker: e.type && e.type !== "dateTimeRange" ? e.type.slice(0, -5) : "date",
                  modelValue: s(u),
                  "onUpdate:modelValue": p[13] || (p[13] = (v) => B(u) ? u.value = v : null),
                  size: "small",
                  width: "100%",
                  disabled: e.disabled,
                  isView: e.isView,
                  error: s(T),
                  onChange: s(S),
                  formSize: s(E)
                }, c.$attrs), null, 16, ["show-time", "picker", "modelValue", "disabled", "isView", "error", "onChange", "formSize"])
              ],
              2112
              /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
            )) : s(g)("time") ? (q(), D(
              K,
              { key: 13 },
              [
                z(" 时间选择器 "),
                W(s(Br), U({
                  modelValue: s(u),
                  "onUpdate:modelValue": p[14] || (p[14] = (v) => B(u) ? u.value = v : null),
                  size: "small",
                  width: "100%",
                  disabled: e.disabled,
                  isView: e.isView,
                  onChange: s(S),
                  formSize: s(E)
                }, c.$attrs), null, 16, ["modelValue", "disabled", "isView", "onChange", "formSize"])
              ],
              2112
              /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
            )) : s(g)("timeRange") ? (q(), D(
              K,
              { key: 14 },
              [
                z(" 时间范围选择器 "),
                W(s(Wr), U({
                  modelValue: s(u),
                  "onUpdate:modelValue": p[15] || (p[15] = (v) => B(u) ? u.value = v : null),
                  size: "small",
                  width: "100%",
                  disabled: e.disabled,
                  isView: e.isView,
                  onChange: s(S),
                  formSize: s(E)
                }, c.$attrs), null, 16, ["modelValue", "disabled", "isView", "onChange", "formSize"])
              ],
              2112
              /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
            )) : z("v-if", !0),
            z(" 插槽 "),
            le(c.$slots, "default", {}, void 0, !0),
            z(" 错误提示 "),
            s(T) && s($) ? (q(), D(
              K,
              { key: 15 },
              [
                s(h) === "default" ? gt((q(), D(
                  "div",
                  {
                    key: 0,
                    class: "error-label",
                    style: Ce({ width: o.value && typeof o.value == "string" ? o.value : "100%" })
                  },
                  [
                    Ar(
                      ht(s($)),
                      1
                      /* TEXT */
                    )
                  ],
                  4
                  /* STYLE */
                )), [
                  [s(mt)]
                ]) : s(Pe) ? (q(), He(s(Jr), {
                  key: 1,
                  errorLabel: s($),
                  getEl: () => s(ge),
                  errorWidth: o.value && typeof o.value == "string" ? o.value : void 0,
                  errorModelZIndex: e.errorModelZIndex
                }, null, 8, ["errorLabel", "getEl", "errorWidth", "errorModelZIndex"])) : z("v-if", !0)
              ],
              64
              /* STABLE_FRAGMENT */
            )) : z("v-if", !0)
          ],
          36
          /* STYLE, NEED_HYDRATION */
        )
      ], 14, us);
    };
  }
}), gs = (e, t) => {
  const r = e.__vccOpts || e;
  for (const [n, i] of t)
    r[n] = i;
  return r;
}, hs = /* @__PURE__ */ gs(ps, [["__scopeId", "data-v-065309fb"]]), zs = Tr(hs), Rs = { title: "表单项" };
export {
  zs as DasFormItem,
  Rs as default
};
