@ethnolib/language-chooser-react-mui 0.1.20 → 0.1.21

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.
Files changed (3) hide show
  1. package/index.js +6 -6
  2. package/index.mjs +83 -112
  3. package/package.json +3 -3
package/index.mjs CHANGED
@@ -66,7 +66,7 @@ function Le(e, i) {
66
66
  function ct(e, i, t) {
67
67
  return e.slice(i, t);
68
68
  }
69
- function mn(e) {
69
+ function ln(e) {
70
70
  return e.length;
71
71
  }
72
72
  function fg(e) {
@@ -136,7 +136,7 @@ function Lt(e) {
136
136
  return 0;
137
137
  }
138
138
  function Oc(e) {
139
- return Os = Ai = 1, Hc = mn(ji = e), Me = 0, [];
139
+ return Os = Ai = 1, Hc = ln(ji = e), Me = 0, [];
140
140
  }
141
141
  function Wc(e) {
142
142
  return ji = "", e;
@@ -219,7 +219,7 @@ function fs(e, i, t, s, r, l, m, c, p) {
219
219
  }
220
220
  break;
221
221
  case 123 * d:
222
- c[h++] = mn(R) * K;
222
+ c[h++] = ln(R) * K;
223
223
  case 125 * d:
224
224
  case 59:
225
225
  case 0:
@@ -228,7 +228,7 @@ function fs(e, i, t, s, r, l, m, c, p) {
228
228
  case 125:
229
229
  C = 0;
230
230
  case 59 + N:
231
- K == -1 && (R = Ia(R, /\f/g, "")), D > 0 && mn(R) - T && hs(D > 32 ? Bu(R + ";", s, t, T - 1) : Bu(Ia(R, " ", "") + ";", s, t, T - 2), p);
231
+ K == -1 && (R = Ia(R, /\f/g, "")), D > 0 && ln(R) - T && hs(D > 32 ? Bu(R + ";", s, t, T - 1) : Bu(Ia(R, " ", "") + ";", s, t, T - 2), p);
232
232
  break;
233
233
  case 59:
234
234
  R += ";";
@@ -251,7 +251,7 @@ function fs(e, i, t, s, r, l, m, c, p) {
251
251
  h = N = D = 0, d = K = 1, E = R = "", T = m;
252
252
  break;
253
253
  case 58:
254
- T = 1 + mn(R), D = F;
254
+ T = 1 + ln(R), D = F;
255
255
  default:
256
256
  if (d < 1) {
257
257
  if (O == 123)
@@ -264,13 +264,13 @@ function fs(e, i, t, s, r, l, m, c, p) {
264
264
  K = N > 0 ? 1 : (R += "\f", -1);
265
265
  break;
266
266
  case 44:
267
- c[h++] = (mn(R) - 1) * K, K = 1;
267
+ c[h++] = (ln(R) - 1) * K, K = 1;
268
268
  break;
269
269
  case 64:
270
- Ln() === 45 && (R += Ms(Ae())), S = Ln(), N = T = mn(E = R += YS(ks())), O++;
270
+ Ln() === 45 && (R += Ms(Ae())), S = Ln(), N = T = ln(E = R += YS(ks())), O++;
271
271
  break;
272
272
  case 45:
273
- F === 45 && mn(R) == 2 && (d = 0);
273
+ F === 45 && ln(R) == 2 && (d = 0);
274
274
  }
275
275
  }
276
276
  return l;
@@ -306,7 +306,7 @@ function QS(e, i, t, s) {
306
306
  case kg:
307
307
  e.value = e.props.join(",");
308
308
  }
309
- return mn(t = Ci(e.children, s)) ? e.return = e.value + "{" + t + "}" : "";
309
+ return ln(t = Ci(e.children, s)) ? e.return = e.value + "{" + t + "}" : "";
310
310
  }
311
311
  function $S(e) {
312
312
  var i = fg(e);
@@ -453,7 +453,7 @@ function Yc(e, i) {
453
453
  case 5789:
454
454
  case 5021:
455
455
  case 4765:
456
- if (mn(e) - 1 - i > 6) switch (Le(e, i + 1)) {
456
+ if (ln(e) - 1 - i > 6) switch (Le(e, i + 1)) {
457
457
  case 109:
458
458
  if (Le(e, i + 4) !== 45) break;
459
459
  case 102:
@@ -465,7 +465,7 @@ function Yc(e, i) {
465
465
  case 4949:
466
466
  if (Le(e, i + 1) !== 115) break;
467
467
  case 6444:
468
- switch (Le(e, mn(e) - 3 - (~ag(e, "!important") && 10))) {
468
+ switch (Le(e, ln(e) - 3 - (~ag(e, "!important") && 10))) {
469
469
  case 107:
470
470
  return Ia(e, ":", ":" + _a) + e;
471
471
  case 101:
@@ -893,10 +893,10 @@ var dv = {
893
893
  case "animationName":
894
894
  if (typeof t == "string")
895
895
  return t.replace(Nv, function(s, r, l) {
896
- return un = {
896
+ return mn = {
897
897
  name: r,
898
898
  styles: l,
899
- next: un
899
+ next: mn
900
900
  }, r;
901
901
  });
902
902
  }
@@ -914,20 +914,20 @@ function yt(e, i, t) {
914
914
  case "object": {
915
915
  var r = t;
916
916
  if (r.anim === 1)
917
- return un = {
917
+ return mn = {
918
918
  name: r.name,
919
919
  styles: r.styles,
920
- next: un
920
+ next: mn
921
921
  }, r.name;
922
922
  var l = t;
923
923
  if (l.styles !== void 0) {
924
924
  var m = l.next;
925
925
  if (m !== void 0)
926
926
  for (; m !== void 0; )
927
- un = {
927
+ mn = {
928
928
  name: m.name,
929
929
  styles: m.styles,
930
- next: un
930
+ next: mn
931
931
  }, m = m.next;
932
932
  var c = l.styles + ";";
933
933
  return c;
@@ -936,8 +936,8 @@ function yt(e, i, t) {
936
936
  }
937
937
  case "function": {
938
938
  if (e !== void 0) {
939
- var p = un, h = t(e);
940
- return un = p, yt(e, i, h);
939
+ var p = mn, h = t(e);
940
+ return mn = p, yt(e, i, h);
941
941
  }
942
942
  break;
943
943
  }
@@ -977,12 +977,12 @@ function Tv(e, i, t) {
977
977
  }
978
978
  return s;
979
979
  }
980
- var Eu = /label:\s*([^\s;{]+)\s*(;|$)/g, un;
980
+ var Eu = /label:\s*([^\s;{]+)\s*(;|$)/g, mn;
981
981
  function Fg(e, i, t) {
982
982
  if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
983
983
  return e[0];
984
984
  var s = !0, r = "";
985
- un = void 0;
985
+ mn = void 0;
986
986
  var l = e[0];
987
987
  if (l == null || l.raw === void 0)
988
988
  s = !1, r += yt(t, i, l);
@@ -1002,7 +1002,7 @@ function Fg(e, i, t) {
1002
1002
  return {
1003
1003
  name: T,
1004
1004
  styles: r,
1005
- next: un
1005
+ next: mn
1006
1006
  };
1007
1007
  }
1008
1008
  var xv = function(i) {
@@ -100402,10 +100402,10 @@ Bs.exports;
100402
100402
  }), g;
100403
100403
  }
100404
100404
  function em(a, n) {
100405
- return a && rn(n, ge(n), a);
100405
+ return a && on(n, ge(n), a);
100406
100406
  }
100407
100407
  function Yh(a, n) {
100408
- return a && rn(n, Se(n), a);
100408
+ return a && on(n, Se(n), a);
100409
100409
  }
100410
100410
  function Nn(a, n, o) {
100411
100411
  n == "__proto__" && Rt ? Rt(a, n, {
@@ -100501,7 +100501,7 @@ Bs.exports;
100501
100501
  }
100502
100502
  return k;
100503
100503
  }
100504
- var Cn = _m(on), tm = _m(Oo, !0);
100504
+ var Cn = _m(sn), tm = _m(Oo, !0);
100505
100505
  function Jh(a, n) {
100506
100506
  var o = !0;
100507
100507
  return Cn(a, function(g, u, y) {
@@ -100537,7 +100537,7 @@ Bs.exports;
100537
100537
  return u;
100538
100538
  }
100539
100539
  var Ho = Im(), om = Im(!0);
100540
- function on(a, n) {
100540
+ function sn(a, n) {
100541
100541
  return a && Ho(a, n, ge);
100542
100542
  }
100543
100543
  function Oo(a, n) {
@@ -100551,7 +100551,7 @@ Bs.exports;
100551
100551
  function $n(a, n) {
100552
100552
  n = Pn(n, a);
100553
100553
  for (var o = 0, g = n.length; a != null && o < g; )
100554
- a = a[gn(n[o++])];
100554
+ a = a[rn(n[o++])];
100555
100555
  return o && o == g ? a : t;
100556
100556
  }
100557
100557
  function rm(a, n, o) {
@@ -100595,13 +100595,13 @@ Bs.exports;
100595
100595
  return A;
100596
100596
  }
100597
100597
  function nd(a, n, o, g) {
100598
- return on(a, function(u, y, b) {
100598
+ return sn(a, function(u, y, b) {
100599
100599
  n(g, o(u), y, b);
100600
100600
  }), g;
100601
100601
  }
100602
100602
  function $i(a, n, o) {
100603
100603
  n = Pn(n, a), a = Xm(a, n);
100604
- var g = a == null ? a : a[gn(Re(n))];
100604
+ var g = a == null ? a : a[rn(Re(n))];
100605
100605
  return g == null ? t : fe(g, a, o);
100606
100606
  }
100607
100607
  function gm(a) {
@@ -100714,7 +100714,7 @@ Bs.exports;
100714
100714
  };
100715
100715
  }
100716
100716
  function Lm(a, n) {
100717
- return yr(a) && Hm(n) ? Om(gn(a), n) : function(o) {
100717
+ return yr(a) && Hm(n) ? Om(rn(a), n) : function(o) {
100718
100718
  var g = kr(o, a);
100719
100719
  return g === t && g === n ? Mr(o, a) : at(n, g, F | d);
100720
100720
  };
@@ -100831,7 +100831,7 @@ Bs.exports;
100831
100831
  return a;
100832
100832
  n = Pn(n, a);
100833
100833
  for (var u = -1, y = n.length, b = y - 1, x = a; x != null && ++u < y; ) {
100834
- var k = gn(n[u]), A = o;
100834
+ var k = rn(n[u]), A = o;
100835
100835
  if (k === "__proto__" || k === "constructor" || k === "prototype")
100836
100836
  return a;
100837
100837
  if (u != b) {
@@ -100940,7 +100940,7 @@ Bs.exports;
100940
100940
  return x;
100941
100941
  }
100942
100942
  function nr(a, n) {
100943
- return n = Pn(n, a), a = Xm(a, n), a == null || delete a[gn(Re(n))];
100943
+ return n = Pn(n, a), a = Xm(a, n), a == null || delete a[rn(Re(n))];
100944
100944
  }
100945
100945
  function xm(a, n, o, g) {
100946
100946
  return et(a, n, o($n(a, n)), g);
@@ -101060,7 +101060,7 @@ Bs.exports;
101060
101060
  n[o] = a[o];
101061
101061
  return n;
101062
101062
  }
101063
- function rn(a, n, o, g) {
101063
+ function on(a, n, o, g) {
101064
101064
  var u = !o;
101065
101065
  o || (o = {});
101066
101066
  for (var y = -1, b = n.length; ++y < b; ) {
@@ -101070,10 +101070,10 @@ Bs.exports;
101070
101070
  return o;
101071
101071
  }
101072
101072
  function Md(a, n) {
101073
- return rn(a, Lr(a), n);
101073
+ return on(a, Lr(a), n);
101074
101074
  }
101075
101075
  function fd(a, n) {
101076
- return rn(a, Rm(a), n);
101076
+ return on(a, Rm(a), n);
101077
101077
  }
101078
101078
  function as(a, n) {
101079
101079
  return function(o, g) {
@@ -101580,7 +101580,7 @@ Bs.exports;
101580
101580
  function qm(a, n, o) {
101581
101581
  n = Pn(n, a);
101582
101582
  for (var g = -1, u = n.length, y = !1; ++g < u; ) {
101583
- var b = gn(n[g]);
101583
+ var b = rn(n[g]);
101584
101584
  if (!(y = a != null && o(a, b)))
101585
101585
  break;
101586
101586
  a = a[b];
@@ -101769,7 +101769,7 @@ Bs.exports;
101769
101769
  n.push(u ? y.replace(Oy, "$1") : g || o);
101770
101770
  }), n;
101771
101771
  });
101772
- function gn(a) {
101772
+ function rn(a) {
101773
101773
  if (typeof a == "string" || we(a))
101774
101774
  return a;
101775
101775
  var n = a + "";
@@ -102605,7 +102605,7 @@ Bs.exports;
102605
102605
  return o || Jy.test(a) ? wp(a.slice(2), o ? 2 : 8) : Xy.test(a) ? I : +a;
102606
102606
  }
102607
102607
  function Su(a) {
102608
- return rn(a, Se(a));
102608
+ return on(a, Se(a));
102609
102609
  }
102610
102610
  function pT(a) {
102611
102611
  return a ? Qn(Na(a), -da, da) : a === 0 ? a : 0;
@@ -102615,17 +102615,17 @@ Bs.exports;
102615
102615
  }
102616
102616
  var hT = Ti(function(a, n) {
102617
102617
  if (it(n) || xe(n)) {
102618
- rn(n, ge(n), a);
102618
+ on(n, ge(n), a);
102619
102619
  return;
102620
102620
  }
102621
102621
  for (var o in n)
102622
102622
  Ba.call(n, o) && Ji(a, o, n[o]);
102623
102623
  }), vu = Ti(function(a, n) {
102624
- rn(n, Se(n), a);
102624
+ on(n, Se(n), a);
102625
102625
  }), ps = Ti(function(a, n, o, g) {
102626
- rn(n, Se(n), a, g);
102626
+ on(n, Se(n), a, g);
102627
102627
  }), dT = Ti(function(a, n, o, g) {
102628
- rn(n, ge(n), a, g);
102628
+ on(n, ge(n), a, g);
102629
102629
  }), bT = xn(Eo);
102630
102630
  function NT(a, n) {
102631
102631
  var o = Ni(a);
@@ -102644,7 +102644,7 @@ Bs.exports;
102644
102644
  return a.push(t, Zm), fe(ku, t, a);
102645
102645
  });
102646
102646
  function ST(a, n) {
102647
- return zl(a, ta(n, 3), on);
102647
+ return zl(a, ta(n, 3), sn);
102648
102648
  }
102649
102649
  function vT(a, n) {
102650
102650
  return zl(a, ta(n, 3), Oo);
@@ -102656,7 +102656,7 @@ Bs.exports;
102656
102656
  return a == null ? a : om(a, ta(n, 3), Se);
102657
102657
  }
102658
102658
  function fT(a, n) {
102659
- return a && on(a, ta(n, 3));
102659
+ return a && sn(a, ta(n, 3));
102660
102660
  }
102661
102661
  function DT(a, n) {
102662
102662
  return a && Oo(a, ta(n, 3));
@@ -102690,13 +102690,13 @@ Bs.exports;
102690
102690
  }
102691
102691
  function PT(a, n) {
102692
102692
  var o = {};
102693
- return n = ta(n, 3), on(a, function(g, u, y) {
102693
+ return n = ta(n, 3), sn(a, function(g, u, y) {
102694
102694
  Nn(o, n(g, u, y), g);
102695
102695
  }), o;
102696
102696
  }
102697
102697
  function AT(a, n) {
102698
102698
  var o = {};
102699
- return n = ta(n, 3), on(a, function(g, u, y) {
102699
+ return n = ta(n, 3), sn(a, function(g, u, y) {
102700
102700
  Nn(o, u, n(g, u, y));
102701
102701
  }), o;
102702
102702
  }
@@ -102711,7 +102711,7 @@ Bs.exports;
102711
102711
  var g = !1;
102712
102712
  n = Oa(n, function(y) {
102713
102713
  return y = Pn(y, a), g || (g = y.length > 1), y;
102714
- }), rn(a, mr(a), o), g && (o = Ze(o, T | S | D, Id));
102714
+ }), on(a, mr(a), o), g && (o = Ze(o, T | S | D, Id));
102715
102715
  for (var u = n.length; u--; )
102716
102716
  nr(o, n[u]);
102717
102717
  return o;
@@ -102736,7 +102736,7 @@ Bs.exports;
102736
102736
  n = Pn(n, a);
102737
102737
  var g = -1, u = n.length;
102738
102738
  for (u || (u = 1, a = t); ++g < u; ) {
102739
- var y = a == null ? t : a[gn(n[g])];
102739
+ var y = a == null ? t : a[rn(n[g])];
102740
102740
  y === t && (g = u, y = o), a = vn(y) ? y.call(a) : y;
102741
102741
  }
102742
102742
  return a;
@@ -102754,7 +102754,7 @@ Bs.exports;
102754
102754
  var y = a && a.constructor;
102755
102755
  u ? o = g ? new y() : [] : Ya(a) ? o = vn(y) ? Ni(Zt(a)) : {} : o = {};
102756
102756
  }
102757
- return (u ? je : on)(a, function(b, x, k) {
102757
+ return (u ? je : sn)(a, function(b, x, k) {
102758
102758
  return n(o, b, x, k);
102759
102759
  }), o;
102760
102760
  }
@@ -102977,7 +102977,7 @@ function print() { __p += __j.call(arguments, '') }
102977
102977
  }
102978
102978
  }), vx = xn(function(a, n) {
102979
102979
  return je(n, function(o) {
102980
- o = gn(o), Nn(a, o, Tr(a[o], a));
102980
+ o = rn(o), Nn(a, o, Tr(a[o], a));
102981
102981
  }), a;
102982
102982
  });
102983
102983
  function kx(a) {
@@ -103055,7 +103055,7 @@ function print() { __p += __j.call(arguments, '') }
103055
103055
  }
103056
103056
  var Ax = rr(Oa), zx = rr(Al), jx = rr(Co);
103057
103057
  function Cu(a) {
103058
- return yr(a) ? Go(gn(a)) : Ld(a);
103058
+ return yr(a) ? Go(rn(a)) : Ld(a);
103059
103059
  }
103060
103060
  function Bx(a) {
103061
103061
  return function(n) {
@@ -103088,7 +103088,7 @@ function print() { __p += __j.call(arguments, '') }
103088
103088
  return u;
103089
103089
  }
103090
103090
  function Hx(a) {
103091
- return ha(a) ? Oa(a, gn) : we(a) ? [a] : Te(Qm(Ga(a)));
103091
+ return ha(a) ? Oa(a, rn) : we(a) ? [a] : Te(Qm(Ga(a)));
103092
103092
  }
103093
103093
  function Ox(a) {
103094
103094
  var n = ++ih;
@@ -103130,7 +103130,7 @@ function print() { __p += __j.call(arguments, '') }
103130
103130
  }
103131
103131
  return L.after = wN, L.ary = lu, L.assign = hT, L.assignIn = vu, L.assignInWith = ps, L.assignWith = dT, L.at = bT, L.before = mu, L.bind = Tr, L.bindAll = vx, L.bindKey = uu, L.castArray = UN, L.chain = ou, L.chunk = Vd, L.compact = Jd, L.concat = Qd, L.cond = kx, L.conforms = Mx, L.constant = Dr, L.countBy = oN, L.create = NT, L.curry = cu, L.curryRight = Lu, L.debounce = yu, L.defaults = TT, L.defaultsDeep = xT, L.defer = _N, L.delay = IN, L.difference = $d, L.differenceBy = ab, L.differenceWith = eb, L.drop = nb, L.dropRight = ib, L.dropRightWhile = tb, L.dropWhile = sb, L.fill = ob, L.filter = gN, L.flatMap = uN, L.flatMapDeep = cN, L.flatMapDepth = LN, L.flatten = nu, L.flattenDeep = rb, L.flattenDepth = gb, L.flip = CN, L.flow = Dx, L.flowRight = Fx, L.fromPairs = lb, L.functions = FT, L.functionsIn = wT, L.groupBy = yN, L.initial = ub, L.intersection = cb, L.intersectionBy = Lb, L.intersectionWith = yb, L.invert = IT, L.invertBy = CT, L.invokeMap = hN, L.iteratee = Fr, L.keyBy = dN, L.keys = ge, L.keysIn = Se, L.map = ls, L.mapKeys = PT, L.mapValues = AT, L.matches = wx, L.matchesProperty = _x, L.memoize = us, L.merge = zT, L.mergeWith = ku, L.method = Ix, L.methodOf = Cx, L.mixin = wr, L.negate = cs, L.nthArg = Px, L.omit = jT, L.omitBy = BT, L.once = GN, L.orderBy = bN, L.over = Ax, L.overArgs = PN, L.overEvery = zx, L.overSome = jx, L.partial = xr, L.partialRight = pu, L.partition = NN, L.pick = KT, L.pickBy = Mu, L.property = Cu, L.propertyOf = Bx, L.pull = bb, L.pullAll = tu, L.pullAllBy = Nb, L.pullAllWith = Tb, L.pullAt = xb, L.range = Kx, L.rangeRight = Zx, L.rearg = AN, L.reject = SN, L.remove = Sb, L.rest = zN, L.reverse = br, L.sampleSize = kN, L.set = UT, L.setWith = RT, L.shuffle = MN, L.slice = vb, L.sortBy = FN, L.sortedUniq = _b, L.sortedUniqBy = Ib, L.split = ux, L.spread = jN, L.tail = Cb, L.take = Gb, L.takeRight = Pb, L.takeRightWhile = Ab, L.takeWhile = zb, L.tap = Jb, L.throttle = BN, L.thru = gs, L.toArray = Tu, L.toPairs = fu, L.toPairsIn = Du, L.toPath = Hx, L.toPlainObject = Su, L.transform = qT, L.unary = KN, L.union = jb, L.unionBy = Bb, L.unionWith = Kb, L.uniq = Zb, L.uniqBy = Ub, L.uniqWith = Rb, L.unset = ET, L.unzip = Nr, L.unzipWith = su, L.update = HT, L.updateWith = OT, L.values = ki, L.valuesIn = WT, L.without = qb, L.words = _u, L.wrap = ZN, L.xor = Eb, L.xorBy = Hb, L.xorWith = Ob, L.zip = Wb, L.zipObject = Xb, L.zipObjectDeep = Yb, L.zipWith = Vb, L.entries = fu, L.entriesIn = Du, L.extend = vu, L.extendWith = ps, wr(L, L), L.add = Wx, L.attempt = Iu, L.camelCase = JT, L.capitalize = Fu, L.ceil = Xx, L.clamp = XT, L.clone = RN, L.cloneDeep = EN, L.cloneDeepWith = HN, L.cloneWith = qN, L.conformsTo = ON, L.deburr = wu, L.defaultTo = fx, L.divide = Yx, L.endsWith = QT, L.eq = $e, L.escape = $T, L.escapeRegExp = ax, L.every = rN, L.find = lN, L.findIndex = au, L.findKey = ST, L.findLast = mN, L.findLastIndex = eu, L.findLastKey = vT, L.floor = Vx, L.forEach = ru, L.forEachRight = gu, L.forIn = kT, L.forInRight = MT, L.forOwn = fT, L.forOwnRight = DT, L.get = kr, L.gt = WN, L.gte = XN, L.has = _T, L.hasIn = Mr, L.head = iu, L.identity = ve, L.includes = pN, L.indexOf = mb, L.inRange = YT, L.invoke = GT, L.isArguments = ni, L.isArray = ha, L.isArrayBuffer = YN, L.isArrayLike = xe, L.isArrayLikeObject = ae, L.isBoolean = VN, L.isBuffer = zn, L.isDate = JN, L.isElement = QN, L.isEmpty = $N, L.isEqual = aT, L.isEqualWith = eT, L.isError = Sr, L.isFinite = nT, L.isFunction = vn, L.isInteger = hu, L.isLength = Ls, L.isMap = du, L.isMatch = iT, L.isMatchWith = tT, L.isNaN = sT, L.isNative = oT, L.isNil = gT, L.isNull = rT, L.isNumber = bu, L.isObject = Ya, L.isObjectLike = Va, L.isPlainObject = st, L.isRegExp = vr, L.isSafeInteger = lT, L.isSet = Nu, L.isString = ys, L.isSymbol = we, L.isTypedArray = vi, L.isUndefined = mT, L.isWeakMap = uT, L.isWeakSet = cT, L.join = pb, L.kebabCase = ex, L.last = Re, L.lastIndexOf = hb, L.lowerCase = nx, L.lowerFirst = ix, L.lt = LT, L.lte = yT, L.max = Jx, L.maxBy = Qx, L.mean = $x, L.meanBy = aS, L.min = eS, L.minBy = nS, L.stubArray = Ir, L.stubFalse = Cr, L.stubObject = Ux, L.stubString = Rx, L.stubTrue = qx, L.multiply = iS, L.nth = db, L.noConflict = Gx, L.noop = _r, L.now = ms, L.pad = tx, L.padEnd = sx, L.padStart = ox, L.parseInt = rx, L.random = VT, L.reduce = TN, L.reduceRight = xN, L.repeat = gx, L.replace = lx, L.result = ZT, L.round = tS, L.runInContext = v, L.sample = vN, L.size = fN, L.snakeCase = mx, L.some = DN, L.sortedIndex = kb, L.sortedIndexBy = Mb, L.sortedIndexOf = fb, L.sortedLastIndex = Db, L.sortedLastIndexBy = Fb, L.sortedLastIndexOf = wb, L.startCase = cx, L.startsWith = Lx, L.subtract = sS, L.sum = oS, L.sumBy = rS, L.template = yx, L.times = Ex, L.toFinite = kn, L.toInteger = Na, L.toLength = xu, L.toLower = px, L.toNumber = qe, L.toSafeInteger = pT, L.toString = Ga, L.toUpper = hx, L.trim = dx, L.trimEnd = bx, L.trimStart = Nx, L.truncate = Tx, L.unescape = xx, L.uniqueId = Ox, L.upperCase = Sx, L.upperFirst = fr, L.each = ru, L.eachRight = gu, L.first = iu, wr(L, function() {
103132
103132
  var a = {};
103133
- return on(L, function(n, o) {
103133
+ return sn(L, function(n, o) {
103134
103134
  Ba.call(L.prototype, o) || (a[o] = n);
103135
103135
  }), a;
103136
103136
  }(), { chain: !1 }), L.VERSION = s, je(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(a) {
@@ -103185,7 +103185,7 @@ function print() { __p += __j.call(arguments, '') }
103185
103185
  return this.reverse().takeWhile(a).reverse();
103186
103186
  }, fa.prototype.toArray = function() {
103187
103187
  return this.take(Z);
103188
- }, on(fa.prototype, function(a, n) {
103188
+ }, sn(fa.prototype, function(a, n) {
103189
103189
  var o = /^(?:filter|find|map|reject)|While$/.test(n), g = /^(?:head|last)$/.test(n), u = L[g ? "take" + (n == "last" ? "Right" : "") : n], y = g || /^find/.test(n);
103190
103190
  u && (L.prototype[n] = function() {
103191
103191
  var b = this.__wrapped__, x = g ? [1] : arguments, k = b instanceof fa, A = x[0], z = k || ha(b), j = function(Ma) {
@@ -103213,7 +103213,7 @@ function print() { __p += __j.call(arguments, '') }
103213
103213
  return n.apply(ha(b) ? b : [], u);
103214
103214
  });
103215
103215
  };
103216
- }), on(fa.prototype, function(a, n) {
103216
+ }), sn(fa.prototype, function(a, n) {
103217
103217
  var o = L[n];
103218
103218
  if (o) {
103219
103219
  var g = o.name + "";
@@ -106739,7 +106739,7 @@ function wD(e) {
106739
106739
  function _D(e) {
106740
106740
  return e == null ? "" : wD(e);
106741
106741
  }
106742
- function cn(e) {
106742
+ function un(e) {
106743
106743
  return typeof e == "string";
106744
106744
  }
106745
106745
  function XL(e) {
@@ -106787,7 +106787,7 @@ class BD {
106787
106787
  }
106788
106788
  function JL(e) {
106789
106789
  let i = null, t = null, s = null, r = 1, l = null;
106790
- if (cn(e) || Dn(e))
106790
+ if (un(e) || Dn(e))
106791
106791
  s = e, i = Fc(e), t = yg(e);
106792
106792
  else {
106793
106793
  if (!Dc.call(e, "name"))
@@ -106816,7 +106816,7 @@ function KD(e, i) {
106816
106816
  const h = l[p];
106817
106817
  if (!Ge(h))
106818
106818
  return;
106819
- if (c === m.length - 1 && (cn(h) || XL(h) || ID(h)))
106819
+ if (c === m.length - 1 && (un(h) || XL(h) || ID(h)))
106820
106820
  t.push(_D(h));
106821
106821
  else if (Dn(h)) {
106822
106822
  s = !0;
@@ -106825,7 +106825,7 @@ function KD(e, i) {
106825
106825
  } else m.length && r(h, m, c + 1);
106826
106826
  }
106827
106827
  };
106828
- return r(e, cn(i) ? i.split(".") : i, 0), s ? t : t[0];
106828
+ return r(e, un(i) ? i.split(".") : i, 0), s ? t : t[0];
106829
106829
  }
106830
106830
  const ZD = {
106831
106831
  // Whether the matches should be included in the result set. When `true`, each record in the result
@@ -106921,7 +106921,7 @@ class Wg {
106921
106921
  });
106922
106922
  }
106923
106923
  create() {
106924
- this.isCreated || !this.docs.length || (this.isCreated = !0, cn(this.docs[0]) ? this.docs.forEach((i, t) => {
106924
+ this.isCreated || !this.docs.length || (this.isCreated = !0, un(this.docs[0]) ? this.docs.forEach((i, t) => {
106925
106925
  this._addString(i, t);
106926
106926
  }) : this.docs.forEach((i, t) => {
106927
106927
  this._addObject(i, t);
@@ -106930,7 +106930,7 @@ class Wg {
106930
106930
  // Adds a doc to the end of the index
106931
106931
  add(i) {
106932
106932
  const t = this.size();
106933
- cn(i) ? this._addString(i, t) : this._addObject(i, t);
106933
+ un(i) ? this._addString(i, t) : this._addObject(i, t);
106934
106934
  }
106935
106935
  // Removes the doc at the specified index of the index
106936
106936
  removeAt(i) {
@@ -106965,7 +106965,7 @@ class Wg {
106965
106965
  for (; p.length; ) {
106966
106966
  const { nestedArrIndex: h, value: N } = p.pop();
106967
106967
  if (Ge(N))
106968
- if (cn(N) && !Or(N)) {
106968
+ if (un(N) && !Or(N)) {
106969
106969
  let T = {
106970
106970
  v: N,
106971
106971
  i: h,
@@ -106980,7 +106980,7 @@ class Wg {
106980
106980
  });
106981
106981
  }
106982
106982
  s.$[l] = c;
106983
- } else if (cn(m) && !Or(m)) {
106983
+ } else if (un(m) && !Or(m)) {
106984
106984
  let c = {
106985
106985
  v: m,
106986
106986
  n: this.norm.get(m)
@@ -107539,7 +107539,7 @@ function ny(e, i, { auto: t = !0 } = {}) {
107539
107539
  return s(Ic(r));
107540
107540
  if (lF(r)) {
107541
107541
  const p = m ? r[bg.PATH] : l[0], h = m ? r[bg.PATTERN] : r[p];
107542
- if (!cn(h))
107542
+ if (!un(h))
107543
107543
  throw new Error(PD(p));
107544
107544
  const N = {
107545
107545
  keyId: yg(p),
@@ -107603,7 +107603,7 @@ function LF(e, i, {
107603
107603
  }), c;
107604
107604
  });
107605
107605
  }
107606
- class sn {
107606
+ class cn {
107607
107607
  constructor(i, t = {}, s) {
107608
107608
  this.options = { ...la, ...t }, this.options.useExtendedSearch, this._keyStore = new BD(this.options.keys), this.setCollection(i, s);
107609
107609
  }
@@ -107640,7 +107640,7 @@ class sn {
107640
107640
  sortFn: m,
107641
107641
  ignoreFieldNorm: c
107642
107642
  } = this.options;
107643
- let p = cn(i) ? cn(this._docs[0]) ? this._searchStringList(i) : this._searchObjectList(i) : this._searchLogical(i);
107643
+ let p = un(i) ? un(this._docs[0]) ? this._searchStringList(i) : this._searchObjectList(i) : this._searchLogical(i);
107644
107644
  return mF(p, { ignoreFieldNorm: c }), l && p.sort(m), XL(t) && t > -1 && (p = p.slice(0, t)), LF(p, this._docs, {
107645
107645
  includeMatches: s,
107646
107646
  includeScore: r
@@ -107740,11 +107740,11 @@ class sn {
107740
107740
  return r;
107741
107741
  }
107742
107742
  }
107743
- sn.version = "7.1.0";
107744
- sn.createIndex = QL;
107745
- sn.parseIndex = OD;
107746
- sn.config = la;
107747
- sn.parseQuery = ny;
107743
+ cn.version = "7.1.0";
107744
+ cn.createIndex = QL;
107745
+ cn.parseIndex = OD;
107746
+ cn.config = la;
107747
+ cn.parseQuery = ny;
107748
107748
  rF(oF);
107749
107749
  const Ts = "_originalLanguageObject", yF = {
107750
107750
  isCaseSensitive: !1,
@@ -107772,19 +107772,19 @@ class pF {
107772
107772
  }), this.baseFuseOptions = {
107773
107773
  ...yF,
107774
107774
  ...l || {}
107775
- }, this.completeMatchFuse = new sn(this.languageData, {
107775
+ }, this.completeMatchFuse = new cn(this.languageData, {
107776
107776
  ...this.baseFuseOptions,
107777
107777
  keys: s,
107778
107778
  useExtendedSearch: !0
107779
- }), this.spacePaddedFuse = new sn(this.spacePaddedLanguages, {
107779
+ }), this.spacePaddedFuse = new cn(this.spacePaddedLanguages, {
107780
107780
  ...this.baseFuseOptions,
107781
107781
  keys: s,
107782
107782
  threshold: 0
107783
- }), this.substringMatchFuse = new sn(this.languageData, {
107783
+ }), this.substringMatchFuse = new cn(this.languageData, {
107784
107784
  ...this.baseFuseOptions,
107785
107785
  keys: s,
107786
107786
  threshold: 0
107787
- }), this.fuzzyMatchFuse = new sn(this.languageData, {
107787
+ }), this.fuzzyMatchFuse = new cn(this.languageData, {
107788
107788
  ...this.baseFuseOptions,
107789
107789
  keys: r,
107790
107790
  threshold: 0.3
@@ -365076,45 +365076,16 @@ async function NF(e, i) {
365076
365076
  return bF().asyncSearchForLanguage(e, i);
365077
365077
  }
365078
365078
  function TF(e, i) {
365079
- var m;
365080
- const t = iy;
365081
- let r = new sn(t, {
365082
- keys: [
365083
- "parentMacrolanguage.languageSubtag",
365084
- "parentMacrolanguage.iso639_3_code",
365085
- "isRepresentativeForMacrolanguage"
365086
- ],
365087
- threshold: 0,
365088
- useExtendedSearch: !0
365089
- }).search({
365090
- $and: [
365091
- {
365092
- $or: [
365093
- {
365094
- "parentMacrolanguage.languageSubtag": "=" + e
365095
- },
365096
- {
365097
- "parentMacrolanguage.iso639_3_code": "=" + e
365098
- }
365099
- ]
365100
- },
365101
- {
365102
- isRepresentativeForMacrolanguage: "=true"
365103
- }
365104
- ]
365105
- });
365106
- r.length > 1 && console.error("Unexpectedly found multiple representative languages for " + e + ": " + r.map((c) => c.item.iso639_3_code).join(", ")), r.length !== 1 && (r = new sn(t, {
365079
+ var l;
365080
+ const t = e.toLowerCase() === "zh" ? "cmn" : e, r = new cn(iy, {
365107
365081
  keys: [
365108
365082
  "languageSubtag",
365109
365083
  "iso639_3_code"
365110
365084
  ],
365111
365085
  threshold: 0,
365112
365086
  useExtendedSearch: !0
365113
- }).search("=" + e));
365114
- const l = (m = r[0]) == null ? void 0 : m.item;
365115
- return i ? i([
365116
- l
365117
- ], e)[0] : l;
365087
+ }).search(`="${t}"`);
365088
+ return i ? i(r.map((m) => m.item), e)[0] : (l = r[0]) == null ? void 0 : l.item;
365118
365089
  }
365119
365090
  function xF(e, i) {
365120
365091
  if (!e)
@@ -366281,7 +366252,7 @@ function cy(e, i) {
366281
366252
  throw new TypeError("Super expression must either be null or a function, not " + typeof i);
366282
366253
  e.prototype = Object.create(i && i.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), i && (Object.setPrototypeOf ? Object.setPrototypeOf(e, i) : e.__proto__ = i);
366283
366254
  }
366284
- var ln = {
366255
+ var gn = {
366285
366256
  top: 0,
366286
366257
  left: 0,
366287
366258
  width: 0,
@@ -366302,14 +366273,14 @@ var jn = Ly ? { capture: !1, passive: !0 } : !1, ow = function(i, t) {
366302
366273
  var p = t.getBoundingClientRect();
366303
366274
  r = p.top, l = p.left, m = p.height, c = p.width;
366304
366275
  } catch {
366305
- r = ln.top, l = ln.left, m = ln.height, c = ln.width;
366276
+ r = gn.top, l = gn.left, m = gn.height, c = gn.width;
366306
366277
  }
366307
366278
  var h = window.innerHeight || document.documentElement.clientHeight, N = window.innerWidth || document.documentElement.clientWidth, T = Math.max(r, 0), S = Math.max(l, 0), D = Math.min(h, r + m) - T, F = Math.min(N, l + c) - S, d = void 0, C = void 0, K = void 0, O = void 0;
366308
366279
  try {
366309
366280
  var E = s.getBoundingClientRect();
366310
366281
  d = E.top, C = E.left, K = E.height, O = E.width;
366311
366282
  } catch {
366312
- d = ln.top, C = ln.left, K = ln.height, O = ln.width;
366283
+ d = gn.top, C = gn.left, K = gn.height, O = gn.width;
366313
366284
  }
366314
366285
  var W = d - T, f = C - S, J = Array.isArray(i.props.offset) ? i.props.offset : [i.props.offset, i.props.offset];
366315
366286
  return W - J[0] <= D && W + K + J[1] >= 0 && f - J[0] <= F && f + O + J[1] >= 0;
@@ -366321,7 +366292,7 @@ var jn = Ly ? { capture: !1, passive: !0 } : !1, ow = function(i, t) {
366321
366292
  var l = t.getBoundingClientRect();
366322
366293
  s = l.top, r = l.height;
366323
366294
  } catch {
366324
- s = ln.top, r = ln.height;
366295
+ s = gn.top, r = gn.height;
366325
366296
  }
366326
366297
  var m = window.innerHeight || document.documentElement.clientHeight, c = Array.isArray(i.props.offset) ? i.props.offset : [i.props.offset, i.props.offset];
366327
366298
  return s - c[0] <= m && s + r + c[1] >= 0;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "author": "SIL Global",
13
13
  "license": "MIT",
14
- "version": "0.1.20",
14
+ "version": "0.1.21",
15
15
  "main": "./index.js",
16
16
  "types": "./index.d.ts",
17
17
  "exports": {
@@ -26,8 +26,8 @@
26
26
  "e2e": "playwright test"
27
27
  },
28
28
  "dependencies": {
29
- "@ethnolib/find-language": "0.1.17",
30
- "@ethnolib/language-chooser-react-hook": "0.1.18",
29
+ "@ethnolib/find-language": "0.1.18",
30
+ "@ethnolib/language-chooser-react-hook": "0.1.19",
31
31
  "lodash": "^4.17.21",
32
32
  "react-lazyload": "^3.2.1",
33
33
  "@mui/icons-material": "^5.15.19"