import p from "./index-classCallCheck.js";
import f from "./index-createClass.js";
import m from "./index-assertThisInitialized.js";
import c from "./index-inherits.js";
import l from "./index-createSuper.js";
import n from "./index-defineProperty.js";
import { Parser as h } from "./index-Parser4.js";
import { numericPatterns as v } from "./index-constants4.js";
import { parseNDigits as k, parseNumericPattern as d } from "./index-utils12.js";
import w from "./index-setUTCWeek.js";
import P from "./index-startOfUTCWeek.js";
var U = /* @__PURE__ */ (function(u) {
  c(i, u);
  var o = l(i);
  function i() {
    var a;
    p(this, i);
    for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++)
      e[t] = arguments[t];
    return a = o.call.apply(o, [this].concat(e)), n(m(a), "priority", 100), n(m(a), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "i", "t", "T"]), a;
  }
  return f(i, [{
    key: "parse",
    value: function(r, e, t) {
      switch (e) {
        case "w":
          return d(v.week, r);
        case "wo":
          return t.ordinalNumber(r, {
            unit: "week"
          });
        default:
          return k(e.length, r);
      }
    }
  }, {
    key: "validate",
    value: function(r, e) {
      return e >= 1 && e <= 53;
    }
  }, {
    key: "set",
    value: function(r, e, t, s) {
      return P(w(r, t, s), s);
    }
  }]), i;
})(h);
export {
  U as LocalWeekParser
};
