UNPKG

intl-tel-input

Version:

A JavaScript plugin for entering and validating international telephone numbers

2,049 lines 481 kB
var H9 = Object.defineProperty; var S3 = (t) => { throw TypeError(t); }; var F9 = (t, d, e) => d in t ? H9(t, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[d] = e; var X1 = (t, d, e) => F9(t, typeof d != "symbol" ? d + "" : d, e), Q2 = (t, d, e) => d.has(t) || S3("Cannot " + e); var $ = (t, d, e) => (Q2(t, d, "read from private field"), e ? e.call(t) : d.get(t)), R = (t, d, e) => d.has(t) ? S3("Cannot add the same private member more than once") : d instanceof WeakSet ? d.add(t) : d.set(t, e), N = (t, d, e, i) => (Q2(t, d, "write to private field"), i ? i.call(t, e) : d.set(t, e), e), g = (t, d, e) => (Q2(t, d, "access private method"), e); import { onMount as W9, onDestroy as V9 } from "svelte"; const K9 = "5"; var q3; typeof window < "u" && ((q3 = window.__svelte ?? (window.__svelte = {})).v ?? (q3.v = /* @__PURE__ */ new Set())).add(K9); const j9 = 1, Y9 = 4, Z9 = 8, z9 = 16, X9 = 2, r1 = Symbol(), q9 = "http://www.w3.org/1999/xhtml", J9 = "@attach", rd = !1; var J3 = Array.isArray, Q9 = Array.prototype.indexOf, d5 = Object.defineProperty, R2 = Object.getOwnPropertyDescriptor, t5 = Object.getOwnPropertyDescriptors, e5 = Object.prototype, n5 = Array.prototype, Q3 = Object.getPrototypeOf; function i5(t) { for (var d = 0; d < t.length; d++) t[d](); } function d4() { var t, d, e = new Promise((i, r) => { t = i, d = r; }); return { promise: e, resolve: t, reject: d }; } const l1 = 2, B2 = 4, Od = 8, Pd = 1 << 24, w0 = 16, N0 = 32, Y0 = 64, t4 = 128, T1 = 512, h1 = 1024, w1 = 2048, $0 = 4096, R0 = 8192, j1 = 16384, Rd = 32768, b3 = 65536, T3 = 1 << 17, e4 = 1 << 18, j2 = 1 << 19, r5 = 1 << 20, E0 = 32768, sd = 1 << 21, Md = 1 << 22, n0 = 1 << 23, v0 = Symbol("$state"), s5 = Symbol("legacy props"), $5 = Symbol(""), T0 = new class extends Error { constructor() { super(...arguments); X1(this, "name", "StaleReactionError"); X1(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed"); } }(); function l5() { throw new Error("https://svelte.dev/e/async_derived_orphan"); } function o5(t) { throw new Error("https://svelte.dev/e/effect_in_teardown"); } function u5() { throw new Error("https://svelte.dev/e/effect_in_unowned_derived"); } function a5(t) { throw new Error("https://svelte.dev/e/effect_orphan"); } function f5() { throw new Error("https://svelte.dev/e/effect_update_depth_exceeded"); } function c5(t) { throw new Error("https://svelte.dev/e/props_invalid_value"); } function h5() { throw new Error("https://svelte.dev/e/state_descriptors_fixed"); } function p5() { throw new Error("https://svelte.dev/e/state_prototype_fixed"); } function g5() { throw new Error("https://svelte.dev/e/state_unsafe_mutation"); } function C5() { console.warn("https://svelte.dev/e/select_multiple_invalid_value"); } function n4(t) { return t === this.v; } function y5(t, d) { return t != t ? d == d : t !== d || t !== null && typeof t == "object" || typeof t == "function"; } function m5(t) { return !y5(t, this.v); } let v5 = !1, k1 = null; function k2(t) { k1 = t; } function _5(t, d = !1, e) { k1 = { p: k1, i: !1, c: null, e: null, s: t, x: null, l: null }; } function E5(t) { var d = ( /** @type {ComponentContext} */ k1 ), e = d.e; if (e !== null) { d.e = null; for (var i of e) g4(i); } return t !== void 0 && (d.x = t), d.i = !0, k1 = d.p, t ?? /** @type {T} */ {}; } function i4() { return !0; } let L0 = []; function I5() { var t = L0; L0 = [], i5(t); } function u2(t) { if (L0.length === 0) { var d = L0; queueMicrotask(() => { d === L0 && I5(); }); } L0.push(t); } function w5(t) { var d = q; if (d === null) return F.f |= n0, t; if ((d.f & Rd) === 0) { if ((d.f & t4) === 0) throw t; d.b.error(t); } else G2(t, d); } function G2(t, d) { for (; d !== null; ) { if ((d.f & t4) !== 0) try { d.b.error(t); return; } catch (e) { t = e; } d = d.parent; } throw t; } const N5 = -7169; function g1(t, d) { t.f = t.f & N5 | d; } function Ud(t) { (t.f & T1) !== 0 || t.deps === null ? g1(t, h1) : g1(t, $0); } function r4(t) { if (t !== null) for (const d of t) (d.f & l1) === 0 || (d.f & E0) === 0 || (d.f ^= E0, r4( /** @type {Derived} */ d.deps )); } function A5(t, d, e) { (t.f & w1) !== 0 ? d.add(t) : (t.f & $0) !== 0 && e.add(t), r4(t.deps), g1(t, h1); } const L2 = /* @__PURE__ */ new Set(); let Q = null, $1 = null, O1 = [], xd = null, $d = !1; var U0, x0, h0, B0, c2, k0, G0, H0, H1, ld, od, s4; const Vd = class Vd { constructor() { R(this, H1); X1(this, "committed", !1); /** * The current values of any sources that are updated in this batch * They keys of this map are identical to `this.#previous` * @type {Map<Source, any>} */ X1(this, "current", /* @__PURE__ */ new Map()); /** * The values of any sources that are updated in this batch _before_ those updates took place. * They keys of this map are identical to `this.#current` * @type {Map<Source, any>} */ X1(this, "previous", /* @__PURE__ */ new Map()); /** * When the batch is committed (and the DOM is updated), we need to remove old branches * and append new ones by calling the functions added inside (if/each/key/etc) blocks * @type {Set<() => void>} */ R(this, U0, /* @__PURE__ */ new Set()); /** * If a fork is discarded, we need to destroy any effects that are no longer needed * @type {Set<(batch: Batch) => void>} */ R(this, x0, /* @__PURE__ */ new Set()); /** * The number of async effects that are currently in flight */ R(this, h0, 0); /** * The number of async effects that are currently in flight, _not_ inside a pending boundary */ R(this, B0, 0); /** * A deferred that resolves when the batch is committed, used with `settled()` * TODO replace with Promise.withResolvers once supported widely enough * @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null} */ R(this, c2, null); /** * Deferred effects (which run after async work has completed) that are DIRTY * @type {Set<Effect>} */ R(this, k0, /* @__PURE__ */ new Set()); /** * Deferred effects that are MAYBE_DIRTY * @type {Set<Effect>} */ R(this, G0, /* @__PURE__ */ new Set()); /** * A set of branches that still exist, but will be destroyed when this batch * is committed — we skip over these during `process` * @type {Set<Effect>} */ X1(this, "skipped_effects", /* @__PURE__ */ new Set()); X1(this, "is_fork", !1); R(this, H0, !1); } is_deferred() { return this.is_fork || $(this, B0) > 0; } /** * * @param {Effect[]} root_effects */ process(d) { var r; O1 = [], this.apply(); var e = [], i = []; for (const l of d) g(this, H1, ld).call(this, l, e, i); if (this.is_deferred()) g(this, H1, od).call(this, i), g(this, H1, od).call(this, e); else { for (const l of $(this, U0)) l(); $(this, U0).clear(), $(this, h0) === 0 && g(this, H1, s4).call(this), Q = null, L3(i), L3(e), (r = $(this, c2)) == null || r.resolve(); } $1 = null; } /** * Associate a change to a given source with the current * batch, noting its previous and current values * @param {Source} source * @param {any} value */ capture(d, e) { e !== r1 && !this.previous.has(d) && this.previous.set(d, e), (d.f & n0) === 0 && (this.current.set(d, d.v), $1 == null || $1.set(d, d.v)); } activate() { Q = this, this.apply(); } deactivate() { Q === this && (Q = null, $1 = null); } flush() { if (this.activate(), O1.length > 0) { if (S5(), Q !== null && Q !== this) return; } else $(this, h0) === 0 && this.process([]); this.deactivate(); } discard() { for (const d of $(this, x0)) d(this); $(this, x0).clear(); } /** * * @param {boolean} blocking */ increment(d) { N(this, h0, $(this, h0) + 1), d && N(this, B0, $(this, B0) + 1); } /** * * @param {boolean} blocking */ decrement(d) { N(this, h0, $(this, h0) - 1), d && N(this, B0, $(this, B0) - 1), !$(this, H0) && (N(this, H0, !0), u2(() => { N(this, H0, !1), this.is_deferred() ? O1.length > 0 && this.flush() : this.revive(); })); } revive() { for (const d of $(this, k0)) $(this, G0).delete(d), g1(d, w1), j0(d); for (const d of $(this, G0)) g1(d, $0), j0(d); this.flush(); } /** @param {() => void} fn */ oncommit(d) { $(this, U0).add(d); } /** @param {(batch: Batch) => void} fn */ ondiscard(d) { $(this, x0).add(d); } settled() { return ($(this, c2) ?? N(this, c2, d4())).promise; } static ensure() { if (Q === null) { const d = Q = new Vd(); L2.add(Q), u2(() => { Q === d && d.flush(); }); } return Q; } apply() { } }; U0 = new WeakMap(), x0 = new WeakMap(), h0 = new WeakMap(), B0 = new WeakMap(), c2 = new WeakMap(), k0 = new WeakMap(), G0 = new WeakMap(), H0 = new WeakMap(), H1 = new WeakSet(), /** * Traverse the effect tree, executing effects or stashing * them for later execution as appropriate * @param {Effect} root * @param {Effect[]} effects * @param {Effect[]} render_effects */ ld = function(d, e, i) { d.f ^= h1; for (var r = d.first, l = null; r !== null; ) { var o = r.f, f = (o & (N0 | Y0)) !== 0, a = f && (o & h1) !== 0, h = a || (o & R0) !== 0 || this.skipped_effects.has(r); if (!h && r.fn !== null) { f ? r.f ^= h1 : l !== null && (o & (B2 | Od | Pd)) !== 0 ? l.b.defer_effect(r) : (o & B2) !== 0 ? e.push(r) : _2(r) && ((o & w0) !== 0 && $(this, k0).add(r), a2(r)); var m = r.first; if (m !== null) { r = m; continue; } } var _ = r.parent; for (r = r.next; r === null && _ !== null; ) _ === l && (l = null), r = _.next, _ = _.parent; } }, /** * @param {Effect[]} effects */ od = function(d) { for (var e = 0; e < d.length; e += 1) A5(d[e], $(this, k0), $(this, G0)); }, s4 = function() { var r; if (L2.size > 1) { this.previous.clear(); var d = $1, e = !0; for (const l of L2) { if (l === this) { e = !1; continue; } const o = []; for (const [a, h] of this.current) { if (l.current.has(a)) if (e && h !== l.current.get(a)) l.current.set(a, h); else continue; o.push(a); } if (o.length === 0) continue; const f = [...l.current.keys()].filter((a) => !this.current.has(a)); if (f.length > 0) { var i = O1; O1 = []; const a = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Map(); for (const m of o) $4(m, f, a, h); if (O1.length > 0) { Q = l, l.apply(); for (const m of O1) g(r = l, H1, ld).call(r, m, [], []); l.deactivate(); } O1 = i; } } Q = null, $1 = d; } this.committed = !0, L2.delete(this); }; let H2 = Vd; function S5() { $d = !0; var t = null; try { for (var d = 0; O1.length > 0; ) { var e = H2.ensure(); if (d++ > 1e3) { var i, r; b5(); } e.process(O1), i0.clear(); } } finally { $d = !1, xd = null; } } function b5() { try { f5(); } catch (t) { G2(t, xd); } } let D1 = null; function L3(t) { var d = t.length; if (d !== 0) { for (var e = 0; e < d; ) { var i = t[e++]; if ((i.f & (j1 | R0)) === 0 && _2(i) && (D1 = /* @__PURE__ */ new Set(), a2(i), i.deps === null && i.first === null && i.nodes === null && (i.teardown === null && i.ac === null ? _4(i) : i.fn = null), (D1 == null ? void 0 : D1.size) > 0)) { i0.clear(); for (const r of D1) { if ((r.f & (j1 | R0)) !== 0) continue; const l = [r]; let o = r.parent; for (; o !== null; ) D1.has(o) && (D1.delete(o), l.push(o)), o = o.parent; for (let f = l.length - 1; f >= 0; f--) { const a = l[f]; (a.f & (j1 | R0)) === 0 && a2(a); } } D1.clear(); } } D1 = null; } } function $4(t, d, e, i) { if (!e.has(t) && (e.add(t), t.reactions !== null)) for (const r of t.reactions) { const l = r.f; (l & l1) !== 0 ? $4( /** @type {Derived} */ r, d, e, i ) : (l & (Md | w0)) !== 0 && (l & w1) === 0 && l4(r, d, i) && (g1(r, w1), j0( /** @type {Effect} */ r )); } } function l4(t, d, e) { const i = e.get(t); if (i !== void 0) return i; if (t.deps !== null) for (const r of t.deps) { if (d.includes(r)) return !0; if ((r.f & l1) !== 0 && l4( /** @type {Derived} */ r, d, e )) return e.set( /** @type {Derived} */ r, !0 ), !0; } return e.set(t, !1), !1; } function j0(t) { for (var d = xd = t; d.parent !== null; ) { d = d.parent; var e = d.f; if ($d && d === q && (e & w0) !== 0 && (e & e4) === 0) return; if ((e & (Y0 | N0)) !== 0) { if ((e & h1) === 0) return; d.f ^= h1; } } O1.push(d); } function T5(t, d, e, i) { const r = Bd; var l = t.filter((E) => !E.settled); if (e.length === 0 && l.length === 0) { i(d.map(r)); return; } var o = Q, f = ( /** @type {Effect} */ q ), a = L5(), h = l.length === 1 ? l[0].promise : l.length > 1 ? Promise.all(l.map((E) => E.promise)) : null; function m(E) { a(); try { i(E); } catch (A) { (f.f & j1) === 0 && G2(A, f); } o == null || o.deactivate(), ud(); } if (e.length === 0) { h.then(() => m(d.map(r))); return; } function _() { a(), Promise.all(e.map((E) => /* @__PURE__ */ D5(E))).then((E) => m([...d.map(r), ...E])).catch((E) => G2(E, f)); } h ? h.then(_) : _(); } function L5() { var t = q, d = F, e = k1, i = Q; return function(l = !0) { s0(t), G1(d), k2(e), l && (i == null || i.activate()); }; } function ud() { s0(null), G1(null), k2(null); } // @__NO_SIDE_EFFECTS__ function Bd(t) { var d = l1 | w1, e = F !== null && (F.f & l1) !== 0 ? ( /** @type {Derived} */ F ) : null; return q !== null && (q.f |= j2), { ctx: k1, deps: null, effects: null, equals: n4, f: d, fn: t, reactions: null, rv: 0, v: ( /** @type {V} */ r1 ), wv: 0, parent: e ?? q, ac: null }; } // @__NO_SIDE_EFFECTS__ function D5(t, d, e) { let i = ( /** @type {Effect | null} */ q ); i === null && l5(); var r = ( /** @type {Boundary} */ i.b ), l = ( /** @type {Promise<V>} */ /** @type {unknown} */ void 0 ), o = f4( /** @type {V} */ r1 ), f = !F, a = /* @__PURE__ */ new Map(); return K5(() => { var A; var h = d4(); l = h.promise; try { Promise.resolve(t()).then(h.resolve, h.reject).then(() => { m === Q && m.committed && m.deactivate(), ud(); }); } catch (b) { h.reject(b), ud(); } var m = ( /** @type {Batch} */ Q ); if (f) { var _ = r.is_rendered(); r.update_pending_count(1), m.increment(_), (A = a.get(m)) == null || A.reject(T0), a.delete(m), a.set(m, h); } const E = (b, O = void 0) => { if (m.activate(), O) O !== T0 && (o.f |= n0, fd(o, O)); else { (o.f & n0) !== 0 && (o.f ^= n0), fd(o, b); for (const [B, T] of a) { if (a.delete(B), B === m) break; T.reject(T0); } } f && (r.update_pending_count(-1), m.decrement(_)); }; h.promise.then(E, (b) => E(null, b || "unknown")); }), p4(() => { for (const h of a.values()) h.reject(T0); }), new Promise((h) => { function m(_) { function E() { _ === l ? h(o) : m(l); } _.then(E, E); } m(l); }); } // @__NO_SIDE_EFFECTS__ function O5(t) { const d = /* @__PURE__ */ Bd(t); return d.equals = m5, d; } function o4(t) { var d = t.effects; if (d !== null) { t.effects = null; for (var e = 0; e < d.length; e += 1) I0( /** @type {Effect} */ d[e] ); } } function P5(t) { for (var d = t.parent; d !== null; ) { if ((d.f & l1) === 0) return (d.f & j1) === 0 ? ( /** @type {Effect} */ d ) : null; d = d.parent; } return null; } function kd(t) { var d, e = q; s0(P5(t)); try { t.f &= ~E0, o4(t), d = N4(t); } finally { s0(e); } return d; } function u4(t) { var d = kd(t); if (!t.equals(d) && (t.wv = I4(), (!(Q != null && Q.is_fork) || t.deps === null) && (t.v = d, t.deps === null))) { g1(t, h1); return; } r0 || ($1 !== null ? (h4() || Q != null && Q.is_fork) && $1.set(t, d) : Ud(t)); } let ad = /* @__PURE__ */ new Set(); const i0 = /* @__PURE__ */ new Map(); let a4 = !1; function f4(t, d) { var e = { f: 0, // TODO ideally we could skip this altogether, but it causes type errors v: t, reactions: null, equals: n4, rv: 0, wv: 0 }; return e; } // @__NO_SIDE_EFFECTS__ function c1(t, d) { const e = f4(t); return z5(e), e; } function n1(t, d, e = !1) { F !== null && // since we are untracking the function inside `$inspect.with` we need to add this check // to ensure we error if state is set inside an inspect effect (!U1 || (F.f & T3) !== 0) && i4() && (F.f & (l1 | w0 | Md | T3)) !== 0 && !(p1 != null && p1.includes(t)) && g5(); let i = e ? D0(d) : d; return fd(t, i); } function fd(t, d) { if (!t.equals(d)) { var e = t.v; r0 ? i0.set(t, d) : i0.set(t, e), t.v = d; var i = H2.ensure(); if (i.capture(t, e), (t.f & l1) !== 0) { const r = ( /** @type {Derived} */ t ); (t.f & w1) !== 0 && kd(r), Ud(r); } t.wv = I4(), c4(t, w1), q !== null && (q.f & h1) !== 0 && (q.f & (N0 | Y0)) === 0 && (A1 === null ? X5([t]) : A1.push(t)), !i.is_fork && ad.size > 0 && !a4 && R5(); } return d; } function R5() { a4 = !1; for (const t of ad) (t.f & h1) !== 0 && g1(t, $0), _2(t) && a2(t); ad.clear(); } function dd(t) { n1(t, t.v + 1); } function c4(t, d) { var e = t.reactions; if (e !== null) for (var i = e.length, r = 0; r < i; r++) { var l = e[r], o = l.f, f = (o & w1) === 0; if (f && g1(l, d), (o & l1) !== 0) { var a = ( /** @type {Derived} */ l ); $1 == null || $1.delete(a), (o & E0) === 0 && (o & T1 && (l.f |= E0), c4(a, $0)); } else f && ((o & w0) !== 0 && D1 !== null && D1.add( /** @type {Effect} */ l ), j0( /** @type {Effect} */ l )); } } function D0(t) { if (typeof t != "object" || t === null || v0 in t) return t; const d = Q3(t); if (d !== e5 && d !== n5) return t; var e = /* @__PURE__ */ new Map(), i = J3(t), r = /* @__PURE__ */ c1(0), l = _0, o = (f) => { if (_0 === l) return f(); var a = F, h = _0; G1(null), P3(l); var m = f(); return G1(a), P3(h), m; }; return i && e.set("length", /* @__PURE__ */ c1( /** @type {any[]} */ t.length )), new Proxy( /** @type {any} */ t, { defineProperty(f, a, h) { (!("value" in h) || h.configurable === !1 || h.enumerable === !1 || h.writable === !1) && h5(); var m = e.get(a); return m === void 0 ? m = o(() => { var _ = /* @__PURE__ */ c1(h.value); return e.set(a, _), _; }) : n1(m, h.value, !0), !0; }, deleteProperty(f, a) { var h = e.get(a); if (h === void 0) { if (a in f) { const m = o(() => /* @__PURE__ */ c1(r1)); e.set(a, m), dd(r); } } else n1(h, r1), dd(r); return !0; }, get(f, a, h) { var A; if (a === v0) return t; var m = e.get(a), _ = a in f; if (m === void 0 && (!_ || (A = R2(f, a)) != null && A.writable) && (m = o(() => { var b = D0(_ ? f[a] : r1), O = /* @__PURE__ */ c1(b); return O; }), e.set(a, m)), m !== void 0) { var E = H(m); return E === r1 ? void 0 : E; } return Reflect.get(f, a, h); }, getOwnPropertyDescriptor(f, a) { var h = Reflect.getOwnPropertyDescriptor(f, a); if (h && "value" in h) { var m = e.get(a); m && (h.value = H(m)); } else if (h === void 0) { var _ = e.get(a), E = _ == null ? void 0 : _.v; if (_ !== void 0 && E !== r1) return { enumerable: !0, configurable: !0, value: E, writable: !0 }; } return h; }, has(f, a) { var E; if (a === v0) return !0; var h = e.get(a), m = h !== void 0 && h.v !== r1 || Reflect.has(f, a); if (h !== void 0 || q !== null && (!m || (E = R2(f, a)) != null && E.writable)) { h === void 0 && (h = o(() => { var A = m ? D0(f[a]) : r1, b = /* @__PURE__ */ c1(A); return b; }), e.set(a, h)); var _ = H(h); if (_ === r1) return !1; } return m; }, set(f, a, h, m) { var D; var _ = e.get(a), E = a in f; if (i && a === "length") for (var A = h; A < /** @type {Source<number>} */ _.v; A += 1) { var b = e.get(A + ""); b !== void 0 ? n1(b, r1) : A in f && (b = o(() => /* @__PURE__ */ c1(r1)), e.set(A + "", b)); } if (_ === void 0) (!E || (D = R2(f, a)) != null && D.writable) && (_ = o(() => /* @__PURE__ */ c1(void 0)), n1(_, D0(h)), e.set(a, _)); else { E = _.v !== r1; var O = o(() => D0(h)); n1(_, O); } var B = Reflect.getOwnPropertyDescriptor(f, a); if (B != null && B.set && B.set.call(m, h), !E) { if (i && typeof a == "string") { var T = ( /** @type {Source<number>} */ e.get("length") ), j = Number(a); Number.isInteger(j) && j >= T.v && n1(T, j + 1); } dd(r); } return !0; }, ownKeys(f) { H(r); var a = Reflect.ownKeys(f).filter((_) => { var E = e.get(_); return E === void 0 || E.v !== r1; }); for (var [h, m] of e) m.v !== r1 && !(h in f) && a.push(h); return a; }, setPrototypeOf() { p5(); } } ); } function D3(t) { try { if (t !== null && typeof t == "object" && v0 in t) return t[v0]; } catch { } return t; } function M5(t, d) { return Object.is(D3(t), D3(d)); } var U5, x5, B5; // @__NO_SIDE_EFFECTS__ function k5(t) { return ( /** @type {TemplateNode | null} */ x5.call(t) ); } // @__NO_SIDE_EFFECTS__ function G5(t) { return ( /** @type {TemplateNode | null} */ B5.call(t) ); } function H5(t, d) { if (d) { const e = document.body; t.autofocus = !0, u2(() => { document.activeElement === e && t.focus(); }); } } function Gd(t) { var d = F, e = q; G1(null), s0(null); try { return t(); } finally { G1(d), s0(e); } } function F5(t) { q === null && (F === null && a5(), u5()), r0 && o5(); } function W5(t, d) { var e = d.last; e === null ? d.last = d.first = t : (e.next = t, t.prev = e, d.last = t); } function A0(t, d, e) { var i = q; i !== null && (i.f & R0) !== 0 && (t |= R0); var r = { ctx: k1, deps: null, nodes: null, f: t | w1 | T1, first: null, fn: d, last: null, next: null, parent: i, b: i && i.b, prev: null, teardown: null, wv: 0, ac: null }; if (e) try { a2(r), r.f |= Rd; } catch (f) { throw I0(r), f; } else d !== null && j0(r); var l = r; if (e && l.deps === null && l.teardown === null && l.nodes === null && l.first === l.last && // either `null`, or a singular child (l.f & j2) === 0 && (l = l.first, (t & w0) !== 0 && (t & b3) !== 0 && l !== null && (l.f |= b3)), l !== null && (l.parent = i, i !== null && W5(l, i), F !== null && (F.f & l1) !== 0 && (t & Y0) === 0)) { var o = ( /** @type {Derived} */ F ); (o.effects ?? (o.effects = [])).push(l); } return r; } function h4() { return F !== null && !U1; } function p4(t) { const d = A0(Od, null, !1); return g1(d, h1), d.teardown = t, d; } function V5(t) { F5(); var d = ( /** @type {Effect} */ q.f ), e = !F && (d & N0) !== 0 && (d & Rd) === 0; if (e) { var i = ( /** @type {ComponentContext} */ k1 ); (i.e ?? (i.e = [])).push(t); } else return g4(t); } function g4(t) { return A0(B2 | r5, t, !1); } function Hd(t) { return A0(B2, t, !1); } function K5(t) { return A0(Md | j2, t, !0); } function j5(t, d = 0) { return A0(Od | d, t, !0); } function C4(t, d = 0) { var e = A0(Pd | d, t, !0); return e; } function y4(t) { return A0(N0 | j2, t, !0); } function m4(t) { var d = t.teardown; if (d !== null) { const e = r0, i = F; O3(!0), G1(null); try { d.call(null); } finally { O3(e), G1(i); } } } function v4(t, d = !1) { var e = t.first; for (t.first = t.last = null; e !== null; ) { const r = e.ac; r !== null && Gd(() => { r.abort(T0); }); var i = e.next; (e.f & Y0) !== 0 ? e.parent = null : I0(e, d), e = i; } } function Y5(t) { for (var d = t.first; d !== null; ) { var e = d.next; (d.f & N0) === 0 && I0(d), d = e; } } function I0(t, d = !0) { var e = !1; (d || (t.f & e4) !== 0) && t.nodes !== null && t.nodes.end !== null && (Z5( t.nodes.start, /** @type {TemplateNode} */ t.nodes.end ), e = !0), v4(t, d && !e), F2(t, 0), g1(t, j1); var i = t.nodes && t.nodes.t; if (i !== null) for (const l of i) l.stop(); m4(t); var r = t.parent; r !== null && r.first !== null && _4(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes = t.ac = null; } function Z5(t, d) { for (; t !== null; ) { var e = t === d ? null : /* @__PURE__ */ G5(t); t.remove(), t = e; } } function _4(t) { var d = t.parent, e = t.prev, i = t.next; e !== null && (e.next = i), i !== null && (i.prev = e), d !== null && (d.first === t && (d.first = i), d.last === t && (d.last = e)); } let M2 = !1, r0 = !1; function O3(t) { r0 = t; } let F = null, U1 = !1; function G1(t) { F = t; } let q = null; function s0(t) { q = t; } let p1 = null; function z5(t) { F !== null && (p1 === null ? p1 = [t] : p1.push(t)); } let v1 = null, _1 = 0, A1 = null; function X5(t) { A1 = t; } let E4 = 1, c0 = 0, _0 = c0; function P3(t) { _0 = t; } function I4() { return ++E4; } function _2(t) { var d = t.f; if ((d & w1) !== 0) return !0; if (d & l1 && (t.f &= ~E0), (d & $0) !== 0) { for (var e = ( /** @type {Value[]} */ t.deps ), i = e.length, r = 0; r < i; r++) { var l = e[r]; if (_2( /** @type {Derived} */ l ) && u4( /** @type {Derived} */ l ), l.wv > t.wv) return !0; } (d & T1) !== 0 && // During time traveling we don't want to reset the status so that // traversal of the graph in the other batches still happens $1 === null && g1(t, h1); } return !1; } function w4(t, d, e = !0) { var i = t.reactions; if (i !== null && !(p1 != null && p1.includes(t))) for (var r = 0; r < i.length; r++) { var l = i[r]; (l.f & l1) !== 0 ? w4( /** @type {Derived} */ l, d, !1 ) : d === l && (e ? g1(l, w1) : (l.f & h1) !== 0 && g1(l, $0), j0( /** @type {Effect} */ l )); } } function N4(t) { var b; var d = v1, e = _1, i = A1, r = F, l = p1, o = k1, f = U1, a = _0, h = t.f; v1 = /** @type {null | Value[]} */ null, _1 = 0, A1 = null, F = (h & (N0 | Y0)) === 0 ? t : null, p1 = null, k2(t.ctx), U1 = !1, _0 = ++c0, t.ac !== null && (Gd(() => { t.ac.abort(T0); }), t.ac = null); try { t.f |= sd; var m = ( /** @type {Function} */ t.fn ), _ = m(), E = t.deps; if (v1 !== null) { var A; if (F2(t, _1), E !== null && _1 > 0) for (E.length = _1 + v1.length, A = 0; A < v1.length; A++) E[_1 + A] = v1[A]; else t.deps = E = v1; if (h4() && (t.f & T1) !== 0) for (A = _1; A < E.length; A++) ((b = E[A]).reactions ?? (b.reactions = [])).push(t); } else E !== null && _1 < E.length && (F2(t, _1), E.length = _1); if (i4() && A1 !== null && !U1 && E !== null && (t.f & (l1 | $0 | w1)) === 0) for (A = 0; A < /** @type {Source[]} */ A1.length; A++) w4( A1[A], /** @type {Effect} */ t ); if (r !== null && r !== t) { if (c0++, r.deps !== null) for (let O = 0; O < e; O += 1) r.deps[O].rv = c0; if (d !== null) for (const O of d) O.rv = c0; A1 !== null && (i === null ? i = A1 : i.push(.../** @type {Source[]} */ A1)); } return (t.f & n0) !== 0 && (t.f ^= n0), _; } catch (O) { return w5(O); } finally { t.f ^= sd, v1 = d, _1 = e, A1 = i, F = r, p1 = l, k2(o), U1 = f, _0 = a; } } function q5(t, d) { let e = d.reactions; if (e !== null) { var i = Q9.call(e, t); if (i !== -1) { var r = e.length - 1; r === 0 ? e = d.reactions = null : (e[i] = e[r], e.pop()); } } if (e === null && (d.f & l1) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps` // allows us to skip the expensive work of disconnecting and immediately reconnecting it (v1 === null || !v1.includes(d))) { var l = ( /** @type {Derived} */ d ); (l.f & T1) !== 0 && (l.f ^= T1, l.f &= ~E0), Ud(l), o4(l), F2(l, 0); } } function F2(t, d) { var e = t.deps; if (e !== null) for (var i = d; i < e.length; i++) q5(t, e[i]); } function a2(t) { var d = t.f; if ((d & j1) === 0) { g1(t, h1); var e = q, i = M2; q = t, M2 = !0; try { (d & (w0 | Pd)) !== 0 ? Y5(t) : v4(t), m4(t); var r = N4(t); t.teardown = typeof r == "function" ? r : null, t.wv = E4; var l; rd && v5 && (t.f & w1) !== 0 && t.deps; } finally { M2 = i, q = e; } } } function H(t) { var d = t.f, e = (d & l1) !== 0; if (F !== null && !U1) { var i = q !== null && (q.f & j1) !== 0; if (!i && !(p1 != null && p1.includes(t))) { var r = F.deps; if ((F.f & sd) !== 0) t.rv < c0 && (t.rv = c0, v1 === null && r !== null && r[_1] === t ? _1++ : v1 === null ? v1 = [t] : v1.push(t)); else { (F.deps ?? (F.deps = [])).push(t); var l = t.reactions; l === null ? t.reactions = [F] : l.includes(F) || l.push(F); } } } if (r0 && i0.has(t)) return i0.get(t); if (e) { var o = ( /** @type {Derived} */ t ); if (r0) { var f = o.v; return ((o.f & h1) === 0 && o.reactions !== null || S4(o)) && (f = kd(o)), i0.set(o, f), f; } var a = (o.f & T1) === 0 && !U1 && F !== null && (M2 || (F.f & T1) !== 0), h = o.deps === null; _2(o) && (a && (o.f |= T1), u4(o)), a && !h && A4(o); } if ($1 != null && $1.has(t)) return $1.get(t); if ((t.f & n0) !== 0) throw t.v; return t.v; } function A4(t) { if (t.deps !== null) { t.f |= T1; for (const d of t.deps) (d.reactions ?? (d.reactions = [])).push(t), (d.f & l1) !== 0 && (d.f & T1) === 0 && A4( /** @type {Derived} */ d ); } } function S4(t) { if (t.v === r1) return !0; if (t.deps === null) return !1; for (const d of t.deps) if (i0.has(d) || (d.f & l1) !== 0 && S4( /** @type {Derived} */ d )) return !0; return !1; } function b4(t) { var d = U1; try { return U1 = !0, t(); } finally { U1 = d; } } const J5 = /* @__PURE__ */ new Set(), Q5 = /* @__PURE__ */ new Set(); function d6(t, d, e, i = {}) { function r(l) { if (i.capture || e6.call(d, l), !l.cancelBubble) return Gd(() => e == null ? void 0 : e.call(this, l)); } return t.startsWith("pointer") || t.startsWith("touch") || t === "wheel" ? u2(() => { d.addEventListener(t, r, i); }) : d.addEventListener(t, r, i), r; } function t6(t) { for (var d = 0; d < t.length; d++) J5.add(t[d]); for (var e of Q5) e(t); } let R3 = null; function e6(t) { var B; var d = this, e = ( /** @type {Node} */ d.ownerDocument ), i = t.type, r = ((B = t.composedPath) == null ? void 0 : B.call(t)) || [], l = ( /** @type {null | Element} */ r[0] || t.target ); R3 = t; var o = 0, f = R3 === t && t.__root; if (f) { var a = r.indexOf(f); if (a !== -1 && (d === document || d === /** @type {any} */ window)) { t.__root = d; return; } var h = r.indexOf(d); if (h === -1) return; a <= h && (o = a); } if (l = /** @type {Element} */ r[o] || t.target, l !== d) { d5(t, "currentTarget", { configurable: !0, get() { return l || e; } }); var m = F, _ = q; G1(null), s0(null); try { for (var E, A = []; l !== null; ) { var b = l.assignedSlot || l.parentNode || /** @type {any} */ l.host || null; try { var O = l["__" + i]; O != null && (!/** @type {any} */ l.disabled || // DOM could've been updated already by the time this is reached, so we check this as well // -> the target could not have been disabled because it emits the event in the first place t.target === l) && O.call(l, t); } catch (T) { E ? A.push(T) : E = T; } if (t.cancelBubble || b === d || b === null) break; l = b; } if (E) { for (let T of A) queueMicrotask(() => { throw T; }); throw E; } } finally { t.__root = d, delete t.currentTarget, G1(m), s0(_); } } } function n6(t) { var d = document.createElement("template"); return d.innerHTML = t.replaceAll("<!>", "<!---->"), d.content; } function i6(t, d) { var e = ( /** @type {Effect} */ q ); e.nodes === null && (e.nodes = { start: t, end: d, a: null, t: null }); } // @__NO_SIDE_EFFECTS__ function r6(t, d) { var e = (d & X9) !== 0, i, r = !t.startsWith("<!>"); return () => { i === void 0 && (i = n6(r ? t : "<!>" + t), i = /** @type {TemplateNode} */ /* @__PURE__ */ k5(i)); var l = ( /** @type {TemplateNode} */ e || U5 ? document.importNode(i, !0) : i.cloneNode(!0) ); return i6(l, l), l; }; } function s6(t, d) { t !== null && t.before( /** @type {Node} */ d ); } function $6(t) { return t.endsWith("capture") && t !== "gotpointercapture" && t !== "lostpointercapture"; } const l6 = [ "beforeinput", "click", "change", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart" ]; function o6(t) { return l6.includes(t); } const u6 = { // no `class: 'className'` because we handle that separately formnovalidate: "formNoValidate", ismap: "isMap", nomodule: "noModule", playsinline: "playsInline", readonly: "readOnly", defaultvalue: "defaultValue", defaultchecked: "defaultChecked", srcobject: "srcObject", novalidate: "noValidate", allowfullscreen: "allowFullscreen", disablepictureinpicture: "disablePictureInPicture", disableremoteplayback: "disableRemotePlayback" }; function a6(t) { return t = t.toLowerCase(), u6[t] ?? t; } function f6(t, d) { var e = void 0, i; C4(() => { e !== (e = d()) && (i && (I0(i), i = null), e && (i = y4(() => { Hd(() => ( /** @type {(node: Element) => void} */ e(t) )); }))); }); } function T4(t) { var d, e, i = ""; if (typeof t == "string" || typeof t == "number") i += t; else if (typeof t == "object") if (Array.isArray(t)) { var r = t.length; for (d = 0; d < r; d++) t[d] && (e = T4(t[d])) && (i && (i += " "), i += e); } else for (e in t) t[e] && (i && (i += " "), i += e); return i; } function c6() { for (var t, d, e = 0, i = "", r = arguments.length; e < r; e++) (t = arguments[e]) && (d = T4(t)) && (i && (i += " "), i += d); return i; } function h6(t) { return typeof t == "object" ? c6(t) : t ?? ""; } const M3 = [...` \r\f \v\uFEFF`]; function p6(t, d, e) { var i = t == null ? "" : "" + t; if (e) { for (var r in e) if (e[r]) i = i ? i + " " + r : r; else if (i.length) for (var l = r.length, o = 0; (o = i.indexOf(r, o)) >= 0; ) { var f = o + l; (o === 0 || M3.includes(i[o - 1])) && (f === i.length || M3.includes(i[f])) ? i = (o === 0 ? "" : i.substring(0, o)) + i.substring(f + 1) : o = f; } } return i === "" ? null : i; } function U3(t, d = !1) { var e = d ? " !important;" : ";", i = ""; for (var r in t) { var l = t[r]; l != null && l !== "" && (i += " " + r + ": " + l + e); } return i; } function td(t) { return t[0] !== "-" || t[1] !== "-" ? t.toLowerCase() : t; } function g6(t, d) { if (d) { var e = "", i, r; if (Array.isArray(d) ? (i = d[0], r = d[1]) : i = d, t) { t = String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim(); var l = !1, o = 0, f = !1, a = []; i && a.push(...Object.keys(i).map(td)), r && a.push(...Object.keys(r).map(td)); var h = 0, m = -1; const O = t.length; for (var _ = 0; _ < O; _++) { var E = t[_]; if (f ? E === "/" && t[_ - 1] === "*" && (f = !1) : l ? l === E && (l = !1) : E === "/" && t[_ + 1] === "*" ? f = !0 : E === '"' || E === "'" ? l = E : E === "(" ? o++ : E === ")" && o--, !f && l === !1 && o === 0) { if (E === ":" && m === -1) m = _; else if (E === ";" || _ === O - 1) { if (m !== -1) { var A = td(t.substring(h, m).trim()); if (!a.includes(A)) { E !== ";" && _++; var b = t.substring(h, _).trim(); e += " " + b + ";"; } } h = _ + 1, m = -1; } } } } return i && (e += U3(i)), r && (e += U3(r, !0)), e = e.trim(), e === "" ? null : e; } return t == null ? null : String(t); } function C6(t, d, e, i, r, l) { var o = t.__className; if (o !== e || o === void 0) { var f = p6(e, i, l); f == null ? t.removeAttribute("class") : d ? t.className = f : t.setAttribute("class", f), t.__className = e; } else if (l && r !== l) for (var a in l) { var h = !!l[a]; (r == null || h !== !!r[a]) && t.classList.toggle(a, h); } return l; } function ed(t, d = {}, e, i) { for (var r in e) { var l = e[r]; d[r] !== l && (e[r] == null ? t.style.removeProperty(r) : t.style.setProperty(r, l, i)); } } function y6(t, d, e, i) { var r = t.__style; if (r !== d) { var l = g6(d, i); l == null ? t.removeAttribute("style") : t.style.cssText = l, t.__style = d; } else i && (Array.isArray(i) ? (ed(t, e == null ? void 0 : e[0], i[0]), ed(t, e == null ? void 0 : e[1], i[1], "important")) : ed(t, e, i)); return i; } function cd(t, d, e = !1) { if (t.multiple) { if (d == null) return; if (!J3(d)) return C5(); for (var i of t.options) i.selected = d.includes(x3(i)); return; } for (i of t.options) { var r = x3(i); if (M5(r, d)) { i.selected = !0; return; } } (!e || d !== void 0) && (t.selectedIndex = -1); } function m6(t) { var d = new MutationObserver(() => { cd(t, t.__value); }); d.observe(t, { // Listen to option element changes childList: !0, subtree: !0, // because of <optgroup> // Listen to option element value attribute changes // (doesn't get notified of select value changes, // because that property is not reflected as an attribute) attributes: !0, attributeFilter: ["value"] }), p4(() => { d.disconnect(); }); } function x3(t) { return "__value" in t ? t.__value : t.value; } const d2 = Symbol("class"), t2 = Symbol("style"), L4 = Symbol("is custom element"), D4 = Symbol("is html"); function v6(t, d) { d ? t.hasAttribute("selected") || t.setAttribute("selected", "") : t.removeAttribute("selected"); } function B3(t, d, e, i) { var r = O4(t); r[d] !== (r[d] = e) && (d === "loading" && (t[$5] = e), e == null ? t.removeAttribute(d) : typeof e != "string" && P4(t).includes(d) ? t[d] = e : t.setAttribute(d, e)); } function _6(t, d, e, i, r = !1, l = !1) { var o = O4(t), f = o[L4], a = !o[D4], h = d || {}, m = t.tagName === "OPTION"; for (var _ in d) _ in e || (e[_] = null); e.class ? e.class = h6(e.class) : e[d2] && (e.class = null), e[t2] && (e.style ?? (e.style = null)); var E = P4(t); for (const D in e) { let U = e[D]; if (m && D === "value" && U == null) { t.value = t.__value = "", h[D] = U; continue; } if (D === "class") { var A = t.namespaceURI === "http://www.w3.org/1999/xhtml"; C6(t, A, U, i, d == null ? void 0 : d[d2], e[d2]), h[D] = U, h[d2] = e[d2]; continue; } if (D === "style") { y6(t, U, d == null ? void 0 : d[t2], e[t2]), h[D] = U, h[t2] = e[t2]; continue; } var b = h[D]; if (!(U === b && !(U === void 0 && t.hasAttribute(D)))) { h[D] = U; var O = D[0] + D[1]; if (O !== "$$") if (O === "on") { const W = {}, K = "$$" + D; let P = D.slice(2); var B = o6(P); if ($6(P) && (P = P.slice(0, -7), W.capture = !0), !B && b) { if (U != null) continue; t.removeEventListener(P, h[K], W), h[K] = null; } if (U != null) if (B) t[`__${P}`] = U, t6([P]); else { let Y = function(i1) { h[D].call(this, i1); }; h[K] = d6(P, t, Y, W); } else B && (t[`__${P}`] = void 0); } else if (D === "style") B3(t, D, U); else if (D === "autofocus") H5( /** @type {HTMLElement} */ t, !!U ); else if (!f && (D === "__value" || D === "value" && U != null)) t.value = t.__value = U; else if (D === "selected" && m) v6( /** @type {HTMLOptionElement} */ t, U ); else { var T = D; a || (T = a6(T)); var j = T === "defaultValue" || T === "defaultChecked"; if (U == null && !f && !j) if (o[D] = null, T === "value" || T === "checked") { let W = ( /** @type {HTMLInputElement} */ t ); const K = d === void 0; if (T === "value") { let P = W.defaultValue; W.removeAttribute(T), W.defaultValue = P, W.value = W.__value = K ? P : null; } else { let P = W.defaultChecked; W.removeAttribute(T), W.defaultChecked = P, W.checked = K ? P : !1; } } else t.removeAttribute(D); else j || E.includes(T) && (f || typeof U != "string") ? (t[T] = U, T in o && (o[T] = r1)) : typeof U != "function" && B3(t, T, U); } } } return h; } function E6(t, d, e = [], i = [], r = [], l, o = !1, f = !1) { T5(r, e, i, (a) => { var h = void 0, m = {}, _ = t.nodeName === "SELECT", E = !1; if (C4(() => { var b = d(...a.map(H)), O = _6( t, h, b, l, o, f ); E && _ && "value" in b && cd( /** @type {HTMLSelectElement} */ t, b.value ); for (let T of Object.getOwnPropertySymbols(m)) b[T] || I0(m[T]); for (let T of Object.getOwnPropertySymbols(b)) { var B = b[T]; T.description === J9 && (!h || B !== h[T]) && (m[T] && I0(m[T]), m[T] = y4(() => f6(t, () => B))), O[T] = B; } h = O; }), _) { var A = ( /** @type {HTMLSelectElement} */ t ); Hd(() => { cd( A, /** @type {Record<string | symbol, any>} */ h.value, !0 ), m6(A); }); } E = !0; }); } function O4(t) { return ( /** @type {Record<string | symbol, unknown>} **/ // @ts-expect-error t.__attributes ?? (t.__attributes = { [L4]: t.nodeName.includes("-"), [D4]: t.namespaceURI === q9 }) ); } var k3 = /* @__PURE__ */ new Map(); function P4(t) { var d = t.getAttribute("is") || t.nodeName, e = k3.get(d); if (e) return e; k3.set(d, e = []); for (var i, r = t, l = Element.prototype; l !== r; ) { i = t5(r); for (var o in i) i[o].set && e.push(o); r = Q3(r); } return e; } function G3(t, d) { return t === d || (t == null ? void 0 : t[v0]) === d; } function I6(t = {}, d, e, i) { return Hd(() => { var r, l; return j5(() => { r = l, l = [], b4(() => { t !== e(...l) && (d(t, ...l), r && G3(e(...r), t) && d(null, ...r)); }); }), () => { u2(() => { l && G3(e(...l), t) && d(null, ...l); }); }; }), t; } let D2 = !1; function w6(t) { var d = D2; try { return D2 = !1, [t(), D2]; } finally { D2 = d; } } function e2(t, d, e, i) { var j; var r = (e & Z9) !== 0, l = (e & z9) !== 0, o = ( /** @type {V} */ i ), f = !0, a = () => (f && (f = !1, o = l ? b4( /** @type {() => V} */ i ) : ( /** @type {V} */ i )), o), h; if (r) { var m = v0 in t || s5 in t; h = ((j = R2(t, d)) == null ? void 0 : j.set) ?? (m && d in t ? (D) => t[d] = D : void 0); } var _, E = !1; r ? [_, E] = w6(() => ( /** @type {V} */ t[d] )) : _ = /** @type {V} */ t[d], _ === void 0 && i !== void 0 && (_ = a(), h && (c5(), h(_))); var A; if (A = () => { var D = ( /** @type {V} */ t[d] ); return D === void 0 ? a() : (f = !0, D); }, (e & Y9) === 0) return A; if (h) { var b = t.$$legacy; return ( /** @type {() => V} */ (function(D, U) { return arguments.length > 0 ? ((!U || b || E) && h(U ? A() : D), D) : A(); }) ); } var O = !1, B = ((e & j9) !== 0 ? Bd : O5)(() => (O = !1, A())); r && H(B); var T = ( /** @type {Effect} */ q ); return ( /** @type {() => V} */ (function(D, U) { if (arguments.length > 0) { const W = U ? H(B) : r ? D0(D) : D; return n1(B, W), O = !0, o !== void 0 && (o = W), D; } return r0 && O || (T.f & j1) !== 0 ? B.v : H(B); }) ); } const N6 = [ [ "af", // Afghanistan "93", 0, null, "0" ], [ "ax", // Åland Islands "358", 1, ["18", "4"], // (4 is a mobile range shared with FI) "0" ], [ "al", // Albania "355", 0, null, "0" ], [ "dz", // Algeria "213", 0, null, "0" ], [ "as", // American Samoa "1", 5, ["684"], "1" ], [ "ad", // Andorra "376" ], [ "ao", // Angola "244" ], [ "ai", // Anguilla "1", 6, ["264"], "1" ], [ "ag", // Antigua and Barbuda "1", 7, ["268"], "1" ], [ "ar", // Argentina "54", 0, null, "0" ], [ "am", // Armenia "374", 0, null, "0" ], [ "aw", // Aruba "297" ], [ "ac", // Ascension Island "247" ], [ "au", // Australia "61", 0, ["4"], // (mobile range shared with CX and CC) "0" ], [ "at", // Austria "43", 0, null, "0" ], [ "az", // Azerbaijan "994", 0, null, "0" ], [ "bs", // Bahamas "1", 8, ["242"], "1" ], [ "bh", // Bahrain "973" ], [ "bd", // Bangladesh "880", 0, null, "0" ], [ "bb", // Barbados "1", 9, ["246"], "1" ], [ "by", // Belarus "375", 0, null, "8" ], [ "be", // Belgium "32", 0, null, "0" ], [ "bz", // Belize "501" ], [ "bj", // Benin "229" ], [ "bm", // Bermuda "1", 10, ["441"], "1" ], [ "bt", // Bhutan "975" ], [ "bo", // Bolivia "591", 0, null, "0" ], [ "ba", // Bosnia and Herzegovina "387", 0, null, "0" ], [ "bw", // Botswana "267" ], [ "br", // Brazil "55", 0, null, "0" ], [ "io", // British Indian Ocean Territory "246" ], [ "vg", // British Virgin Islands "1", 11, ["284"], "1" ], [ "bn", // Brunei "673" ], [ "bg", // B