vue-layout-gitcode 1.12.81 → 1.12.83
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.
- package/{GloabarSearch-BlOf2oOr.js → GloabarSearch-B7AE9KfL.js} +3 -3
- package/{MenuItem-DmlOoM_4.js → MenuItem-C7GVTS5X.js} +2 -2
- package/{ProjectMenuList-DEZ9jlEH.js → ProjectMenuList-CahBEMEp.js} +3 -3
- package/{ProjectMenuListV2-Bn_tJ5Js.js → ProjectMenuListV2-BTsV7GQq.js} +3 -3
- package/{ProjectSearch-BCwze3cf.js → ProjectSearch-CtUu-WwB.js} +2 -2
- package/{SearchHistoryList-mqOjzbzP.js → SearchHistoryList-DHB4I8ek.js} +2 -2
- package/{SearchRecommed-DoWMv_Mc.js → SearchRecommed-CR2hBCb3.js} +5 -4
- package/{SearchScopeList-DNoat9CF.js → SearchScopeList-BfueOSSV.js} +2 -2
- package/{UserSearch-BRqcXTsu.js → UserSearch-0vT7sOpw.js} +2 -2
- package/{index-DgETneKq.js → index-CL7ziaLY.js} +2 -2
- package/{index-CDgaiNCF.js → index-Cu-NknZ8.js} +927 -1837
- package/{index-CMraF4HP.js → index-zsZg23w3.js} +2 -2
- package/index.js +59 -59
- package/{notice-CPag0wRM.js → notice-Qhe_WqLV.js} +2 -2
- package/package.json +1 -1
- package/{search-suggestion-BD52ea3F.js → search-suggestion-Ct63W-xW.js} +3 -3
- package/{transWebUrl-qWEFoNg3.js → transWebUrl-CuWzWJ8l.js} +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { reactive, readonly, inject, effectScope,
|
|
4
|
+
import { reactive, readonly, inject, effectScope, ref, shallowRef, computed, watch, isRef, defineComponent, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createElementBlock, openBlock, createCommentVNode, Transition, withCtx, unref, normalizeClass, createElementVNode, toDisplayString as toDisplayString$1, createStaticVNode, withModifiers, createBlock, normalizeProps, mergeProps, renderSlot, normalizeStyle, resolveComponent, watchEffect, renderList, createTextVNode, nextTick, resolveDirective, withDirectives, onBeforeUnmount, guardReactiveProps, markRaw, withKeys, resolveDynamicComponent, useAttrs, defineAsyncComponent, vShow, useCssVars, createSlots, render, toRaw, mergeModels, useModel as useModel$1, watchPostEffect, useSlots, Teleport, vModelText } from "vue";
|
|
5
5
|
import axios from "axios";
|
|
6
6
|
import { useRouter, useRoute, createRouter, createWebHistory, createMemoryHistory } from "vue-router";
|
|
7
7
|
import { Icon } from "vue-devui-lal/icon";
|
|
@@ -568,117 +568,98 @@ const LOGO_MAP = {
|
|
|
568
568
|
aiLogoDark: "https://cdn-static.gitcode.com/static/images/gitcode-ai-logo-dark_atomgit.png"
|
|
569
569
|
}
|
|
570
570
|
};
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
571
|
+
const HEADER_HIDE_ASIDE_ROUTES = ["home", "issues", "kanban", "discussionCreated", "merge", "gStar", "marketplaceApps", "marketplaceAppDetail", "marketplaceActions", "marketplaceActionDetail"];
|
|
572
|
+
const ASIDE_HOME_ROUTES = ["home", "issues", "kanban", "discussionCreated", "merge", "dashboard", "marketplaceApps", "marketplaceAppDetail", "marketplaceActions", "marketplaceActionDetail"];
|
|
573
|
+
/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
|
|
574
|
+
const {
|
|
575
|
+
entries,
|
|
576
|
+
setPrototypeOf,
|
|
577
|
+
isFrozen,
|
|
578
|
+
getPrototypeOf,
|
|
579
|
+
getOwnPropertyDescriptor
|
|
580
|
+
} = Object;
|
|
581
|
+
let {
|
|
582
|
+
freeze,
|
|
583
|
+
seal,
|
|
584
|
+
create: create$1
|
|
585
|
+
} = Object;
|
|
586
|
+
let {
|
|
587
|
+
apply: apply$1,
|
|
588
|
+
construct
|
|
589
|
+
} = typeof Reflect !== "undefined" && Reflect;
|
|
590
|
+
if (!freeze) {
|
|
591
|
+
freeze = function freeze2(x) {
|
|
592
|
+
return x;
|
|
593
|
+
};
|
|
576
594
|
}
|
|
577
|
-
|
|
578
|
-
|
|
595
|
+
if (!seal) {
|
|
596
|
+
seal = function seal2(x) {
|
|
597
|
+
return x;
|
|
598
|
+
};
|
|
579
599
|
}
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
try {
|
|
585
|
-
if (i = (t2 = t2.call(r)).next, 0 === l) ;
|
|
586
|
-
else for (; !(f = (e = i.call(t2)).done) && (a.push(e.value), a.length !== l); f = true) ;
|
|
587
|
-
} catch (r2) {
|
|
588
|
-
o = true, n = r2;
|
|
589
|
-
} finally {
|
|
590
|
-
try {
|
|
591
|
-
if (!f && null != t2.return && (u = t2.return(), Object(u) !== u)) return;
|
|
592
|
-
} finally {
|
|
593
|
-
if (o) throw n;
|
|
594
|
-
}
|
|
600
|
+
if (!apply$1) {
|
|
601
|
+
apply$1 = function apply2(func, thisArg) {
|
|
602
|
+
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
603
|
+
args[_key - 2] = arguments[_key];
|
|
595
604
|
}
|
|
596
|
-
return
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
function _nonIterableRest$1() {
|
|
600
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
605
|
+
return func.apply(thisArg, args);
|
|
606
|
+
};
|
|
601
607
|
}
|
|
602
|
-
|
|
603
|
-
function
|
|
604
|
-
|
|
608
|
+
if (!construct) {
|
|
609
|
+
construct = function construct2(Func) {
|
|
610
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
611
|
+
args[_key2 - 1] = arguments[_key2];
|
|
612
|
+
}
|
|
613
|
+
return new Func(...args);
|
|
614
|
+
};
|
|
605
615
|
}
|
|
606
|
-
function _unsupportedIterableToArray$4(r, a) {
|
|
607
|
-
if (r) {
|
|
608
|
-
if ("string" == typeof r) return _arrayLikeToArray$4(r, a);
|
|
609
|
-
var t2 = {}.toString.call(r).slice(8, -1);
|
|
610
|
-
return "Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$4(r, a) : void 0;
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
const entries = Object.entries;
|
|
614
|
-
const setPrototypeOf = Object.setPrototypeOf;
|
|
615
|
-
const isFrozen = Object.isFrozen;
|
|
616
|
-
const getPrototypeOf = Object.getPrototypeOf;
|
|
617
|
-
const getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
618
|
-
let freeze = Object.freeze;
|
|
619
|
-
let seal = Object.seal;
|
|
620
|
-
let create$1 = Object.create;
|
|
621
|
-
let _ref = typeof Reflect !== "undefined" && Reflect;
|
|
622
|
-
let apply$1 = _ref.apply;
|
|
623
|
-
let construct = _ref.construct;
|
|
624
|
-
if (!freeze) freeze = function freeze2(x) {
|
|
625
|
-
return x;
|
|
626
|
-
};
|
|
627
|
-
if (!seal) seal = function seal2(x) {
|
|
628
|
-
return x;
|
|
629
|
-
};
|
|
630
|
-
if (!apply$1) apply$1 = function apply(func, thisArg) {
|
|
631
|
-
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) args[_key - 2] = arguments[_key];
|
|
632
|
-
return func.apply(thisArg, args);
|
|
633
|
-
};
|
|
634
|
-
if (!construct) construct = function construct2(Func) {
|
|
635
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) args[_key2 - 1] = arguments[_key2];
|
|
636
|
-
return new Func(...args);
|
|
637
|
-
};
|
|
638
616
|
const arrayForEach = unapply(Array.prototype.forEach);
|
|
639
617
|
const arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
|
|
640
618
|
const arrayPop = unapply(Array.prototype.pop);
|
|
641
619
|
const arrayPush = unapply(Array.prototype.push);
|
|
642
620
|
const arraySplice = unapply(Array.prototype.splice);
|
|
643
|
-
const arrayIsArray = Array.isArray;
|
|
644
621
|
const stringToLowerCase = unapply(String.prototype.toLowerCase);
|
|
645
622
|
const stringToString = unapply(String.prototype.toString);
|
|
646
623
|
const stringMatch = unapply(String.prototype.match);
|
|
647
624
|
const stringReplace = unapply(String.prototype.replace);
|
|
648
625
|
const stringIndexOf = unapply(String.prototype.indexOf);
|
|
649
626
|
const stringTrim = unapply(String.prototype.trim);
|
|
650
|
-
const numberToString = unapply(Number.prototype.toString);
|
|
651
|
-
const booleanToString = unapply(Boolean.prototype.toString);
|
|
652
|
-
const bigintToString = typeof BigInt === "undefined" ? null : unapply(BigInt.prototype.toString);
|
|
653
|
-
const symbolToString = typeof Symbol === "undefined" ? null : unapply(Symbol.prototype.toString);
|
|
654
627
|
const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
|
|
655
|
-
const objectToString$1 = unapply(Object.prototype.toString);
|
|
656
628
|
const regExpTest = unapply(RegExp.prototype.test);
|
|
657
629
|
const typeErrorCreate = unconstruct(TypeError);
|
|
658
630
|
function unapply(func) {
|
|
659
631
|
return function(thisArg) {
|
|
660
|
-
if (thisArg instanceof RegExp)
|
|
661
|
-
|
|
632
|
+
if (thisArg instanceof RegExp) {
|
|
633
|
+
thisArg.lastIndex = 0;
|
|
634
|
+
}
|
|
635
|
+
for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
636
|
+
args[_key3 - 1] = arguments[_key3];
|
|
637
|
+
}
|
|
662
638
|
return apply$1(func, thisArg, args);
|
|
663
639
|
};
|
|
664
640
|
}
|
|
665
641
|
function unconstruct(Func) {
|
|
666
642
|
return function() {
|
|
667
|
-
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++)
|
|
643
|
+
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
644
|
+
args[_key4] = arguments[_key4];
|
|
645
|
+
}
|
|
668
646
|
return construct(Func, args);
|
|
669
647
|
};
|
|
670
648
|
}
|
|
671
649
|
function addToSet(set, array) {
|
|
672
650
|
let transformCaseFunc = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : stringToLowerCase;
|
|
673
|
-
if (setPrototypeOf)
|
|
674
|
-
|
|
651
|
+
if (setPrototypeOf) {
|
|
652
|
+
setPrototypeOf(set, null);
|
|
653
|
+
}
|
|
675
654
|
let l = array.length;
|
|
676
655
|
while (l--) {
|
|
677
656
|
let element = array[l];
|
|
678
657
|
if (typeof element === "string") {
|
|
679
658
|
const lcElement = transformCaseFunc(element);
|
|
680
659
|
if (lcElement !== element) {
|
|
681
|
-
if (!isFrozen(array))
|
|
660
|
+
if (!isFrozen(array)) {
|
|
661
|
+
array[l] = lcElement;
|
|
662
|
+
}
|
|
682
663
|
element = lcElement;
|
|
683
664
|
}
|
|
684
665
|
}
|
|
@@ -687,58 +668,40 @@ function addToSet(set, array) {
|
|
|
687
668
|
return set;
|
|
688
669
|
}
|
|
689
670
|
function cleanArray(array) {
|
|
690
|
-
for (let index2 = 0; index2 < array.length; index2++)
|
|
671
|
+
for (let index2 = 0; index2 < array.length; index2++) {
|
|
672
|
+
const isPropertyExist = objectHasOwnProperty(array, index2);
|
|
673
|
+
if (!isPropertyExist) {
|
|
674
|
+
array[index2] = null;
|
|
675
|
+
}
|
|
676
|
+
}
|
|
691
677
|
return array;
|
|
692
678
|
}
|
|
693
679
|
function clone(object) {
|
|
694
680
|
const newObject = create$1(null);
|
|
695
|
-
for (const
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
if (
|
|
701
|
-
|
|
702
|
-
else
|
|
681
|
+
for (const [property, value] of entries(object)) {
|
|
682
|
+
const isPropertyExist = objectHasOwnProperty(object, property);
|
|
683
|
+
if (isPropertyExist) {
|
|
684
|
+
if (Array.isArray(value)) {
|
|
685
|
+
newObject[property] = cleanArray(value);
|
|
686
|
+
} else if (value && typeof value === "object" && value.constructor === Object) {
|
|
687
|
+
newObject[property] = clone(value);
|
|
688
|
+
} else {
|
|
689
|
+
newObject[property] = value;
|
|
690
|
+
}
|
|
703
691
|
}
|
|
704
692
|
}
|
|
705
693
|
return newObject;
|
|
706
694
|
}
|
|
707
|
-
function stringifyValue(value) {
|
|
708
|
-
switch (typeof value) {
|
|
709
|
-
case "string":
|
|
710
|
-
return value;
|
|
711
|
-
case "number":
|
|
712
|
-
return numberToString(value);
|
|
713
|
-
case "boolean":
|
|
714
|
-
return booleanToString(value);
|
|
715
|
-
case "bigint":
|
|
716
|
-
return bigintToString ? bigintToString(value) : "0";
|
|
717
|
-
case "symbol":
|
|
718
|
-
return symbolToString ? symbolToString(value) : "Symbol()";
|
|
719
|
-
case "undefined":
|
|
720
|
-
return objectToString$1(value);
|
|
721
|
-
case "function":
|
|
722
|
-
case "object": {
|
|
723
|
-
if (value === null) return objectToString$1(value);
|
|
724
|
-
const valueAsRecord = value;
|
|
725
|
-
const valueToString = lookupGetter(valueAsRecord, "toString");
|
|
726
|
-
if (typeof valueToString === "function") {
|
|
727
|
-
const stringified = valueToString(valueAsRecord);
|
|
728
|
-
return typeof stringified === "string" ? stringified : objectToString$1(stringified);
|
|
729
|
-
}
|
|
730
|
-
return objectToString$1(value);
|
|
731
|
-
}
|
|
732
|
-
default:
|
|
733
|
-
return objectToString$1(value);
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
695
|
function lookupGetter(object, prop) {
|
|
737
696
|
while (object !== null) {
|
|
738
697
|
const desc = getOwnPropertyDescriptor(object, prop);
|
|
739
698
|
if (desc) {
|
|
740
|
-
if (desc.get)
|
|
741
|
-
|
|
699
|
+
if (desc.get) {
|
|
700
|
+
return unapply(desc.get);
|
|
701
|
+
}
|
|
702
|
+
if (typeof desc.value === "function") {
|
|
703
|
+
return unapply(desc.value);
|
|
704
|
+
}
|
|
742
705
|
}
|
|
743
706
|
object = getPrototypeOf(object);
|
|
744
707
|
}
|
|
@@ -747,716 +710,66 @@ function lookupGetter(object, prop) {
|
|
|
747
710
|
}
|
|
748
711
|
return fallbackValue;
|
|
749
712
|
}
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
const html$1 = freeze([
|
|
759
|
-
"a",
|
|
760
|
-
"abbr",
|
|
761
|
-
"acronym",
|
|
762
|
-
"address",
|
|
763
|
-
"area",
|
|
764
|
-
"article",
|
|
765
|
-
"aside",
|
|
766
|
-
"audio",
|
|
767
|
-
"b",
|
|
768
|
-
"bdi",
|
|
769
|
-
"bdo",
|
|
770
|
-
"big",
|
|
771
|
-
"blink",
|
|
772
|
-
"blockquote",
|
|
773
|
-
"body",
|
|
774
|
-
"br",
|
|
775
|
-
"button",
|
|
776
|
-
"canvas",
|
|
777
|
-
"caption",
|
|
778
|
-
"center",
|
|
779
|
-
"cite",
|
|
780
|
-
"code",
|
|
781
|
-
"col",
|
|
782
|
-
"colgroup",
|
|
783
|
-
"content",
|
|
784
|
-
"data",
|
|
785
|
-
"datalist",
|
|
786
|
-
"dd",
|
|
787
|
-
"decorator",
|
|
788
|
-
"del",
|
|
789
|
-
"details",
|
|
790
|
-
"dfn",
|
|
791
|
-
"dialog",
|
|
792
|
-
"dir",
|
|
793
|
-
"div",
|
|
794
|
-
"dl",
|
|
795
|
-
"dt",
|
|
796
|
-
"element",
|
|
797
|
-
"em",
|
|
798
|
-
"fieldset",
|
|
799
|
-
"figcaption",
|
|
800
|
-
"figure",
|
|
801
|
-
"font",
|
|
802
|
-
"footer",
|
|
803
|
-
"form",
|
|
804
|
-
"h1",
|
|
805
|
-
"h2",
|
|
806
|
-
"h3",
|
|
807
|
-
"h4",
|
|
808
|
-
"h5",
|
|
809
|
-
"h6",
|
|
810
|
-
"head",
|
|
811
|
-
"header",
|
|
812
|
-
"hgroup",
|
|
813
|
-
"hr",
|
|
814
|
-
"html",
|
|
815
|
-
"i",
|
|
816
|
-
"img",
|
|
817
|
-
"input",
|
|
818
|
-
"ins",
|
|
819
|
-
"kbd",
|
|
820
|
-
"label",
|
|
821
|
-
"legend",
|
|
822
|
-
"li",
|
|
823
|
-
"main",
|
|
824
|
-
"map",
|
|
825
|
-
"mark",
|
|
826
|
-
"marquee",
|
|
827
|
-
"menu",
|
|
828
|
-
"menuitem",
|
|
829
|
-
"meter",
|
|
830
|
-
"nav",
|
|
831
|
-
"nobr",
|
|
832
|
-
"ol",
|
|
833
|
-
"optgroup",
|
|
834
|
-
"option",
|
|
835
|
-
"output",
|
|
836
|
-
"p",
|
|
837
|
-
"picture",
|
|
838
|
-
"pre",
|
|
839
|
-
"progress",
|
|
840
|
-
"q",
|
|
841
|
-
"rp",
|
|
842
|
-
"rt",
|
|
843
|
-
"ruby",
|
|
844
|
-
"s",
|
|
845
|
-
"samp",
|
|
846
|
-
"search",
|
|
847
|
-
"section",
|
|
848
|
-
"select",
|
|
849
|
-
"shadow",
|
|
850
|
-
"slot",
|
|
851
|
-
"small",
|
|
852
|
-
"source",
|
|
853
|
-
"spacer",
|
|
854
|
-
"span",
|
|
855
|
-
"strike",
|
|
856
|
-
"strong",
|
|
857
|
-
"style",
|
|
858
|
-
"sub",
|
|
859
|
-
"summary",
|
|
860
|
-
"sup",
|
|
861
|
-
"table",
|
|
862
|
-
"tbody",
|
|
863
|
-
"td",
|
|
864
|
-
"template",
|
|
865
|
-
"textarea",
|
|
866
|
-
"tfoot",
|
|
867
|
-
"th",
|
|
868
|
-
"thead",
|
|
869
|
-
"time",
|
|
870
|
-
"tr",
|
|
871
|
-
"track",
|
|
872
|
-
"tt",
|
|
873
|
-
"u",
|
|
874
|
-
"ul",
|
|
875
|
-
"var",
|
|
876
|
-
"video",
|
|
877
|
-
"wbr"
|
|
878
|
-
]);
|
|
879
|
-
const svg$1 = freeze([
|
|
880
|
-
"svg",
|
|
881
|
-
"a",
|
|
882
|
-
"altglyph",
|
|
883
|
-
"altglyphdef",
|
|
884
|
-
"altglyphitem",
|
|
885
|
-
"animatecolor",
|
|
886
|
-
"animatemotion",
|
|
887
|
-
"animatetransform",
|
|
888
|
-
"circle",
|
|
889
|
-
"clippath",
|
|
890
|
-
"defs",
|
|
891
|
-
"desc",
|
|
892
|
-
"ellipse",
|
|
893
|
-
"enterkeyhint",
|
|
894
|
-
"exportparts",
|
|
895
|
-
"filter",
|
|
896
|
-
"font",
|
|
897
|
-
"g",
|
|
898
|
-
"glyph",
|
|
899
|
-
"glyphref",
|
|
900
|
-
"hkern",
|
|
901
|
-
"image",
|
|
902
|
-
"inputmode",
|
|
903
|
-
"line",
|
|
904
|
-
"lineargradient",
|
|
905
|
-
"marker",
|
|
906
|
-
"mask",
|
|
907
|
-
"metadata",
|
|
908
|
-
"mpath",
|
|
909
|
-
"part",
|
|
910
|
-
"path",
|
|
911
|
-
"pattern",
|
|
912
|
-
"polygon",
|
|
913
|
-
"polyline",
|
|
914
|
-
"radialgradient",
|
|
915
|
-
"rect",
|
|
916
|
-
"stop",
|
|
917
|
-
"style",
|
|
918
|
-
"switch",
|
|
919
|
-
"symbol",
|
|
920
|
-
"text",
|
|
921
|
-
"textpath",
|
|
922
|
-
"title",
|
|
923
|
-
"tref",
|
|
924
|
-
"tspan",
|
|
925
|
-
"view",
|
|
926
|
-
"vkern"
|
|
927
|
-
]);
|
|
928
|
-
const svgFilters = freeze([
|
|
929
|
-
"feBlend",
|
|
930
|
-
"feColorMatrix",
|
|
931
|
-
"feComponentTransfer",
|
|
932
|
-
"feComposite",
|
|
933
|
-
"feConvolveMatrix",
|
|
934
|
-
"feDiffuseLighting",
|
|
935
|
-
"feDisplacementMap",
|
|
936
|
-
"feDistantLight",
|
|
937
|
-
"feDropShadow",
|
|
938
|
-
"feFlood",
|
|
939
|
-
"feFuncA",
|
|
940
|
-
"feFuncB",
|
|
941
|
-
"feFuncG",
|
|
942
|
-
"feFuncR",
|
|
943
|
-
"feGaussianBlur",
|
|
944
|
-
"feImage",
|
|
945
|
-
"feMerge",
|
|
946
|
-
"feMergeNode",
|
|
947
|
-
"feMorphology",
|
|
948
|
-
"feOffset",
|
|
949
|
-
"fePointLight",
|
|
950
|
-
"feSpecularLighting",
|
|
951
|
-
"feSpotLight",
|
|
952
|
-
"feTile",
|
|
953
|
-
"feTurbulence"
|
|
954
|
-
]);
|
|
955
|
-
const svgDisallowed = freeze([
|
|
956
|
-
"animate",
|
|
957
|
-
"color-profile",
|
|
958
|
-
"cursor",
|
|
959
|
-
"discard",
|
|
960
|
-
"font-face",
|
|
961
|
-
"font-face-format",
|
|
962
|
-
"font-face-name",
|
|
963
|
-
"font-face-src",
|
|
964
|
-
"font-face-uri",
|
|
965
|
-
"foreignobject",
|
|
966
|
-
"hatch",
|
|
967
|
-
"hatchpath",
|
|
968
|
-
"mesh",
|
|
969
|
-
"meshgradient",
|
|
970
|
-
"meshpatch",
|
|
971
|
-
"meshrow",
|
|
972
|
-
"missing-glyph",
|
|
973
|
-
"script",
|
|
974
|
-
"set",
|
|
975
|
-
"solidcolor",
|
|
976
|
-
"unknown",
|
|
977
|
-
"use"
|
|
978
|
-
]);
|
|
979
|
-
const mathMl$1 = freeze([
|
|
980
|
-
"math",
|
|
981
|
-
"menclose",
|
|
982
|
-
"merror",
|
|
983
|
-
"mfenced",
|
|
984
|
-
"mfrac",
|
|
985
|
-
"mglyph",
|
|
986
|
-
"mi",
|
|
987
|
-
"mlabeledtr",
|
|
988
|
-
"mmultiscripts",
|
|
989
|
-
"mn",
|
|
990
|
-
"mo",
|
|
991
|
-
"mover",
|
|
992
|
-
"mpadded",
|
|
993
|
-
"mphantom",
|
|
994
|
-
"mroot",
|
|
995
|
-
"mrow",
|
|
996
|
-
"ms",
|
|
997
|
-
"mspace",
|
|
998
|
-
"msqrt",
|
|
999
|
-
"mstyle",
|
|
1000
|
-
"msub",
|
|
1001
|
-
"msup",
|
|
1002
|
-
"msubsup",
|
|
1003
|
-
"mtable",
|
|
1004
|
-
"mtd",
|
|
1005
|
-
"mtext",
|
|
1006
|
-
"mtr",
|
|
1007
|
-
"munder",
|
|
1008
|
-
"munderover",
|
|
1009
|
-
"mprescripts"
|
|
1010
|
-
]);
|
|
1011
|
-
const mathMlDisallowed = freeze([
|
|
1012
|
-
"maction",
|
|
1013
|
-
"maligngroup",
|
|
1014
|
-
"malignmark",
|
|
1015
|
-
"mlongdiv",
|
|
1016
|
-
"mscarries",
|
|
1017
|
-
"mscarry",
|
|
1018
|
-
"msgroup",
|
|
1019
|
-
"mstack",
|
|
1020
|
-
"msline",
|
|
1021
|
-
"msrow",
|
|
1022
|
-
"semantics",
|
|
1023
|
-
"annotation",
|
|
1024
|
-
"annotation-xml",
|
|
1025
|
-
"mprescripts",
|
|
1026
|
-
"none"
|
|
1027
|
-
]);
|
|
713
|
+
const html$1 = freeze(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]);
|
|
714
|
+
const svg$1 = freeze(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]);
|
|
715
|
+
const svgFilters = freeze(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]);
|
|
716
|
+
const svgDisallowed = freeze(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]);
|
|
717
|
+
const mathMl$1 = freeze(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]);
|
|
718
|
+
const mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]);
|
|
1028
719
|
const text = freeze(["#text"]);
|
|
1029
|
-
const html = freeze([
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
"autopictureinpicture",
|
|
1037
|
-
"autoplay",
|
|
1038
|
-
"background",
|
|
1039
|
-
"bgcolor",
|
|
1040
|
-
"border",
|
|
1041
|
-
"capture",
|
|
1042
|
-
"cellpadding",
|
|
1043
|
-
"cellspacing",
|
|
1044
|
-
"checked",
|
|
1045
|
-
"cite",
|
|
1046
|
-
"class",
|
|
1047
|
-
"clear",
|
|
1048
|
-
"color",
|
|
1049
|
-
"cols",
|
|
1050
|
-
"colspan",
|
|
1051
|
-
"command",
|
|
1052
|
-
"commandfor",
|
|
1053
|
-
"controls",
|
|
1054
|
-
"controlslist",
|
|
1055
|
-
"coords",
|
|
1056
|
-
"crossorigin",
|
|
1057
|
-
"datetime",
|
|
1058
|
-
"decoding",
|
|
1059
|
-
"default",
|
|
1060
|
-
"dir",
|
|
1061
|
-
"disabled",
|
|
1062
|
-
"disablepictureinpicture",
|
|
1063
|
-
"disableremoteplayback",
|
|
1064
|
-
"download",
|
|
1065
|
-
"draggable",
|
|
1066
|
-
"enctype",
|
|
1067
|
-
"enterkeyhint",
|
|
1068
|
-
"exportparts",
|
|
1069
|
-
"face",
|
|
1070
|
-
"for",
|
|
1071
|
-
"headers",
|
|
1072
|
-
"height",
|
|
1073
|
-
"hidden",
|
|
1074
|
-
"high",
|
|
1075
|
-
"href",
|
|
1076
|
-
"hreflang",
|
|
1077
|
-
"id",
|
|
1078
|
-
"inert",
|
|
1079
|
-
"inputmode",
|
|
1080
|
-
"integrity",
|
|
1081
|
-
"ismap",
|
|
1082
|
-
"kind",
|
|
1083
|
-
"label",
|
|
1084
|
-
"lang",
|
|
1085
|
-
"list",
|
|
1086
|
-
"loading",
|
|
1087
|
-
"loop",
|
|
1088
|
-
"low",
|
|
1089
|
-
"max",
|
|
1090
|
-
"maxlength",
|
|
1091
|
-
"media",
|
|
1092
|
-
"method",
|
|
1093
|
-
"min",
|
|
1094
|
-
"minlength",
|
|
1095
|
-
"multiple",
|
|
1096
|
-
"muted",
|
|
1097
|
-
"name",
|
|
1098
|
-
"nonce",
|
|
1099
|
-
"noshade",
|
|
1100
|
-
"novalidate",
|
|
1101
|
-
"nowrap",
|
|
1102
|
-
"open",
|
|
1103
|
-
"optimum",
|
|
1104
|
-
"part",
|
|
1105
|
-
"pattern",
|
|
1106
|
-
"placeholder",
|
|
1107
|
-
"playsinline",
|
|
1108
|
-
"popover",
|
|
1109
|
-
"popovertarget",
|
|
1110
|
-
"popovertargetaction",
|
|
1111
|
-
"poster",
|
|
1112
|
-
"preload",
|
|
1113
|
-
"pubdate",
|
|
1114
|
-
"radiogroup",
|
|
1115
|
-
"readonly",
|
|
1116
|
-
"rel",
|
|
1117
|
-
"required",
|
|
1118
|
-
"rev",
|
|
1119
|
-
"reversed",
|
|
1120
|
-
"role",
|
|
1121
|
-
"rows",
|
|
1122
|
-
"rowspan",
|
|
1123
|
-
"spellcheck",
|
|
1124
|
-
"scope",
|
|
1125
|
-
"selected",
|
|
1126
|
-
"shape",
|
|
1127
|
-
"size",
|
|
1128
|
-
"sizes",
|
|
1129
|
-
"slot",
|
|
1130
|
-
"span",
|
|
1131
|
-
"srclang",
|
|
1132
|
-
"start",
|
|
1133
|
-
"src",
|
|
1134
|
-
"srcset",
|
|
1135
|
-
"step",
|
|
1136
|
-
"style",
|
|
1137
|
-
"summary",
|
|
1138
|
-
"tabindex",
|
|
1139
|
-
"title",
|
|
1140
|
-
"translate",
|
|
1141
|
-
"type",
|
|
1142
|
-
"usemap",
|
|
1143
|
-
"valign",
|
|
1144
|
-
"value",
|
|
1145
|
-
"width",
|
|
1146
|
-
"wrap",
|
|
1147
|
-
"xmlns"
|
|
1148
|
-
]);
|
|
1149
|
-
const svg = freeze([
|
|
1150
|
-
"accent-height",
|
|
1151
|
-
"accumulate",
|
|
1152
|
-
"additive",
|
|
1153
|
-
"alignment-baseline",
|
|
1154
|
-
"amplitude",
|
|
1155
|
-
"ascent",
|
|
1156
|
-
"attributename",
|
|
1157
|
-
"attributetype",
|
|
1158
|
-
"azimuth",
|
|
1159
|
-
"basefrequency",
|
|
1160
|
-
"baseline-shift",
|
|
1161
|
-
"begin",
|
|
1162
|
-
"bias",
|
|
1163
|
-
"by",
|
|
1164
|
-
"class",
|
|
1165
|
-
"clip",
|
|
1166
|
-
"clippathunits",
|
|
1167
|
-
"clip-path",
|
|
1168
|
-
"clip-rule",
|
|
1169
|
-
"color",
|
|
1170
|
-
"color-interpolation",
|
|
1171
|
-
"color-interpolation-filters",
|
|
1172
|
-
"color-profile",
|
|
1173
|
-
"color-rendering",
|
|
1174
|
-
"cx",
|
|
1175
|
-
"cy",
|
|
1176
|
-
"d",
|
|
1177
|
-
"dx",
|
|
1178
|
-
"dy",
|
|
1179
|
-
"diffuseconstant",
|
|
1180
|
-
"direction",
|
|
1181
|
-
"display",
|
|
1182
|
-
"divisor",
|
|
1183
|
-
"dominant-baseline",
|
|
1184
|
-
"dur",
|
|
1185
|
-
"edgemode",
|
|
1186
|
-
"elevation",
|
|
1187
|
-
"end",
|
|
1188
|
-
"exponent",
|
|
1189
|
-
"fill",
|
|
1190
|
-
"fill-opacity",
|
|
1191
|
-
"fill-rule",
|
|
1192
|
-
"filter",
|
|
1193
|
-
"filterunits",
|
|
1194
|
-
"flood-color",
|
|
1195
|
-
"flood-opacity",
|
|
1196
|
-
"font-family",
|
|
1197
|
-
"font-size",
|
|
1198
|
-
"font-size-adjust",
|
|
1199
|
-
"font-stretch",
|
|
1200
|
-
"font-style",
|
|
1201
|
-
"font-variant",
|
|
1202
|
-
"font-weight",
|
|
1203
|
-
"fx",
|
|
1204
|
-
"fy",
|
|
1205
|
-
"g1",
|
|
1206
|
-
"g2",
|
|
1207
|
-
"glyph-name",
|
|
1208
|
-
"glyphref",
|
|
1209
|
-
"gradientunits",
|
|
1210
|
-
"gradienttransform",
|
|
1211
|
-
"height",
|
|
1212
|
-
"href",
|
|
1213
|
-
"id",
|
|
1214
|
-
"image-rendering",
|
|
1215
|
-
"in",
|
|
1216
|
-
"in2",
|
|
1217
|
-
"intercept",
|
|
1218
|
-
"k",
|
|
1219
|
-
"k1",
|
|
1220
|
-
"k2",
|
|
1221
|
-
"k3",
|
|
1222
|
-
"k4",
|
|
1223
|
-
"kerning",
|
|
1224
|
-
"keypoints",
|
|
1225
|
-
"keysplines",
|
|
1226
|
-
"keytimes",
|
|
1227
|
-
"lang",
|
|
1228
|
-
"lengthadjust",
|
|
1229
|
-
"letter-spacing",
|
|
1230
|
-
"kernelmatrix",
|
|
1231
|
-
"kernelunitlength",
|
|
1232
|
-
"lighting-color",
|
|
1233
|
-
"local",
|
|
1234
|
-
"marker-end",
|
|
1235
|
-
"marker-mid",
|
|
1236
|
-
"marker-start",
|
|
1237
|
-
"markerheight",
|
|
1238
|
-
"markerunits",
|
|
1239
|
-
"markerwidth",
|
|
1240
|
-
"maskcontentunits",
|
|
1241
|
-
"maskunits",
|
|
1242
|
-
"max",
|
|
1243
|
-
"mask",
|
|
1244
|
-
"mask-type",
|
|
1245
|
-
"media",
|
|
1246
|
-
"method",
|
|
1247
|
-
"mode",
|
|
1248
|
-
"min",
|
|
1249
|
-
"name",
|
|
1250
|
-
"numoctaves",
|
|
1251
|
-
"offset",
|
|
1252
|
-
"operator",
|
|
1253
|
-
"opacity",
|
|
1254
|
-
"order",
|
|
1255
|
-
"orient",
|
|
1256
|
-
"orientation",
|
|
1257
|
-
"origin",
|
|
1258
|
-
"overflow",
|
|
1259
|
-
"paint-order",
|
|
1260
|
-
"path",
|
|
1261
|
-
"pathlength",
|
|
1262
|
-
"patterncontentunits",
|
|
1263
|
-
"patterntransform",
|
|
1264
|
-
"patternunits",
|
|
1265
|
-
"pointer-events",
|
|
1266
|
-
"points",
|
|
1267
|
-
"preservealpha",
|
|
1268
|
-
"preserveaspectratio",
|
|
1269
|
-
"primitiveunits",
|
|
1270
|
-
"r",
|
|
1271
|
-
"rx",
|
|
1272
|
-
"ry",
|
|
1273
|
-
"radius",
|
|
1274
|
-
"refx",
|
|
1275
|
-
"refy",
|
|
1276
|
-
"repeatcount",
|
|
1277
|
-
"repeatdur",
|
|
1278
|
-
"restart",
|
|
1279
|
-
"result",
|
|
1280
|
-
"rotate",
|
|
1281
|
-
"scale",
|
|
1282
|
-
"seed",
|
|
1283
|
-
"shape-rendering",
|
|
1284
|
-
"slope",
|
|
1285
|
-
"specularconstant",
|
|
1286
|
-
"specularexponent",
|
|
1287
|
-
"spreadmethod",
|
|
1288
|
-
"startoffset",
|
|
1289
|
-
"stddeviation",
|
|
1290
|
-
"stitchtiles",
|
|
1291
|
-
"stop-color",
|
|
1292
|
-
"stop-opacity",
|
|
1293
|
-
"stroke-dasharray",
|
|
1294
|
-
"stroke-dashoffset",
|
|
1295
|
-
"stroke-linecap",
|
|
1296
|
-
"stroke-linejoin",
|
|
1297
|
-
"stroke-miterlimit",
|
|
1298
|
-
"stroke-opacity",
|
|
1299
|
-
"stroke",
|
|
1300
|
-
"stroke-width",
|
|
1301
|
-
"style",
|
|
1302
|
-
"surfacescale",
|
|
1303
|
-
"systemlanguage",
|
|
1304
|
-
"tabindex",
|
|
1305
|
-
"tablevalues",
|
|
1306
|
-
"targetx",
|
|
1307
|
-
"targety",
|
|
1308
|
-
"transform",
|
|
1309
|
-
"transform-origin",
|
|
1310
|
-
"text-anchor",
|
|
1311
|
-
"text-decoration",
|
|
1312
|
-
"text-orientation",
|
|
1313
|
-
"text-rendering",
|
|
1314
|
-
"textlength",
|
|
1315
|
-
"type",
|
|
1316
|
-
"u1",
|
|
1317
|
-
"u2",
|
|
1318
|
-
"unicode",
|
|
1319
|
-
"values",
|
|
1320
|
-
"vector-effect",
|
|
1321
|
-
"viewbox",
|
|
1322
|
-
"visibility",
|
|
1323
|
-
"version",
|
|
1324
|
-
"vert-adv-y",
|
|
1325
|
-
"vert-origin-x",
|
|
1326
|
-
"vert-origin-y",
|
|
1327
|
-
"width",
|
|
1328
|
-
"word-spacing",
|
|
1329
|
-
"wrap",
|
|
1330
|
-
"writing-mode",
|
|
1331
|
-
"xchannelselector",
|
|
1332
|
-
"ychannelselector",
|
|
1333
|
-
"x",
|
|
1334
|
-
"x1",
|
|
1335
|
-
"x2",
|
|
1336
|
-
"xmlns",
|
|
1337
|
-
"y",
|
|
1338
|
-
"y1",
|
|
1339
|
-
"y2",
|
|
1340
|
-
"z",
|
|
1341
|
-
"zoomandpan"
|
|
1342
|
-
]);
|
|
1343
|
-
const mathMl = freeze([
|
|
1344
|
-
"accent",
|
|
1345
|
-
"accentunder",
|
|
1346
|
-
"align",
|
|
1347
|
-
"bevelled",
|
|
1348
|
-
"close",
|
|
1349
|
-
"columnalign",
|
|
1350
|
-
"columnlines",
|
|
1351
|
-
"columnspacing",
|
|
1352
|
-
"columnspan",
|
|
1353
|
-
"denomalign",
|
|
1354
|
-
"depth",
|
|
1355
|
-
"dir",
|
|
1356
|
-
"display",
|
|
1357
|
-
"displaystyle",
|
|
1358
|
-
"encoding",
|
|
1359
|
-
"fence",
|
|
1360
|
-
"frame",
|
|
1361
|
-
"height",
|
|
1362
|
-
"href",
|
|
1363
|
-
"id",
|
|
1364
|
-
"largeop",
|
|
1365
|
-
"length",
|
|
1366
|
-
"linethickness",
|
|
1367
|
-
"lquote",
|
|
1368
|
-
"lspace",
|
|
1369
|
-
"mathbackground",
|
|
1370
|
-
"mathcolor",
|
|
1371
|
-
"mathsize",
|
|
1372
|
-
"mathvariant",
|
|
1373
|
-
"maxsize",
|
|
1374
|
-
"minsize",
|
|
1375
|
-
"movablelimits",
|
|
1376
|
-
"notation",
|
|
1377
|
-
"numalign",
|
|
1378
|
-
"open",
|
|
1379
|
-
"rowalign",
|
|
1380
|
-
"rowlines",
|
|
1381
|
-
"rowspacing",
|
|
1382
|
-
"rowspan",
|
|
1383
|
-
"rspace",
|
|
1384
|
-
"rquote",
|
|
1385
|
-
"scriptlevel",
|
|
1386
|
-
"scriptminsize",
|
|
1387
|
-
"scriptsizemultiplier",
|
|
1388
|
-
"selection",
|
|
1389
|
-
"separator",
|
|
1390
|
-
"separators",
|
|
1391
|
-
"stretchy",
|
|
1392
|
-
"subscriptshift",
|
|
1393
|
-
"supscriptshift",
|
|
1394
|
-
"symmetric",
|
|
1395
|
-
"voffset",
|
|
1396
|
-
"width",
|
|
1397
|
-
"xmlns"
|
|
1398
|
-
]);
|
|
1399
|
-
const xml = freeze([
|
|
1400
|
-
"xlink:href",
|
|
1401
|
-
"xml:id",
|
|
1402
|
-
"xlink:title",
|
|
1403
|
-
"xml:space",
|
|
1404
|
-
"xmlns:xlink"
|
|
1405
|
-
]);
|
|
1406
|
-
const MUSTACHE_EXPR = seal(/{{[\w\W]*|^[\w\W]*}}/g);
|
|
1407
|
-
const ERB_EXPR = seal(/<%[\w\W]*|^[\w\W]*%>/g);
|
|
1408
|
-
const TMPLIT_EXPR = seal(/\${[\w\W]*/g);
|
|
720
|
+
const html = freeze(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]);
|
|
721
|
+
const svg = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]);
|
|
722
|
+
const mathMl = freeze(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]);
|
|
723
|
+
const xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]);
|
|
724
|
+
const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm);
|
|
725
|
+
const ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm);
|
|
726
|
+
const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm);
|
|
1409
727
|
const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/);
|
|
1410
728
|
const ARIA_ATTR = seal(/^aria-[\-\w]+$/);
|
|
1411
|
-
const IS_ALLOWED_URI = seal(
|
|
729
|
+
const IS_ALLOWED_URI = seal(
|
|
730
|
+
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
731
|
+
// eslint-disable-line no-useless-escape
|
|
732
|
+
);
|
|
1412
733
|
const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
|
|
1413
|
-
const ATTR_WHITESPACE = seal(
|
|
734
|
+
const ATTR_WHITESPACE = seal(
|
|
735
|
+
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
736
|
+
// eslint-disable-line no-control-regex
|
|
737
|
+
);
|
|
1414
738
|
const DOCTYPE_NAME = seal(/^html$/i);
|
|
1415
739
|
const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
740
|
+
var EXPRESSIONS = /* @__PURE__ */ Object.freeze({
|
|
741
|
+
__proto__: null,
|
|
742
|
+
ARIA_ATTR,
|
|
743
|
+
ATTR_WHITESPACE,
|
|
744
|
+
CUSTOM_ELEMENT,
|
|
745
|
+
DATA_ATTR,
|
|
746
|
+
DOCTYPE_NAME,
|
|
747
|
+
ERB_EXPR,
|
|
748
|
+
IS_ALLOWED_URI,
|
|
749
|
+
IS_SCRIPT_OR_DATA,
|
|
750
|
+
MUSTACHE_EXPR,
|
|
751
|
+
TMPLIT_EXPR
|
|
752
|
+
});
|
|
1420
753
|
const NODE_TYPE = {
|
|
1421
754
|
element: 1,
|
|
1422
|
-
attribute: 2,
|
|
1423
755
|
text: 3,
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
entityNode: 6,
|
|
1427
|
-
processingInstruction: 7,
|
|
756
|
+
// Deprecated
|
|
757
|
+
progressingInstruction: 7,
|
|
1428
758
|
comment: 8,
|
|
1429
|
-
document: 9
|
|
1430
|
-
documentType: 10,
|
|
1431
|
-
documentFragment: 11,
|
|
1432
|
-
notation: 12
|
|
759
|
+
document: 9
|
|
1433
760
|
};
|
|
1434
|
-
const LITERAL_TEXT_ELEMENT_NAMES = [
|
|
1435
|
-
"style",
|
|
1436
|
-
"script",
|
|
1437
|
-
"xmp",
|
|
1438
|
-
"iframe",
|
|
1439
|
-
"noembed",
|
|
1440
|
-
"noframes",
|
|
1441
|
-
"plaintext",
|
|
1442
|
-
"noscript"
|
|
1443
|
-
];
|
|
1444
|
-
const LITERAL_TEXT_ELEMENTS = freeze(addToSet({}, LITERAL_TEXT_ELEMENT_NAMES));
|
|
1445
|
-
const LITERAL_TEXT_CLOSE = function() {
|
|
1446
|
-
const map = {};
|
|
1447
|
-
arrayForEach(LITERAL_TEXT_ELEMENT_NAMES, (name) => {
|
|
1448
|
-
map[name] = seal(new RegExp("</" + name + "(?=[\\t\\n\\f\\r />])", "i"));
|
|
1449
|
-
});
|
|
1450
|
-
return freeze(map);
|
|
1451
|
-
}();
|
|
1452
761
|
const getGlobal = function getGlobal2() {
|
|
1453
762
|
return typeof window === "undefined" ? null : window;
|
|
1454
763
|
};
|
|
1455
764
|
const _createTrustedTypesPolicy = function _createTrustedTypesPolicy2(trustedTypes, purifyHostElement) {
|
|
1456
|
-
if (typeof trustedTypes !== "object" || typeof trustedTypes.createPolicy !== "function")
|
|
765
|
+
if (typeof trustedTypes !== "object" || typeof trustedTypes.createPolicy !== "function") {
|
|
766
|
+
return null;
|
|
767
|
+
}
|
|
1457
768
|
let suffix = null;
|
|
1458
769
|
const ATTR_NAME = "data-tt-policy-suffix";
|
|
1459
|
-
if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME))
|
|
770
|
+
if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {
|
|
771
|
+
suffix = purifyHostElement.getAttribute(ATTR_NAME);
|
|
772
|
+
}
|
|
1460
773
|
const policyName = "dompurify" + (suffix ? "#" + suffix : "");
|
|
1461
774
|
try {
|
|
1462
775
|
return trustedTypes.createPolicy(policyName, {
|
|
@@ -1485,106 +798,73 @@ const _createHooksMap = function _createHooksMap2() {
|
|
|
1485
798
|
uponSanitizeShadowNode: []
|
|
1486
799
|
};
|
|
1487
800
|
};
|
|
1488
|
-
const _resolveSetOption = function _resolveSetOption2(cfg, key, fallback, options) {
|
|
1489
|
-
return objectHasOwnProperty(cfg, key) && arrayIsArray(cfg[key]) ? addToSet(options.base ? clone(options.base) : {}, cfg[key], options.transform) : fallback;
|
|
1490
|
-
};
|
|
1491
|
-
const _resolveObjectOption = function _resolveObjectOption2(cfg, key, makeFallback) {
|
|
1492
|
-
const value = objectHasOwnProperty(cfg, key) ? cfg[key] : void 0;
|
|
1493
|
-
return value && typeof value === "object" ? clone(value) : makeFallback();
|
|
1494
|
-
};
|
|
1495
801
|
function createDOMPurify() {
|
|
1496
802
|
let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
|
1497
803
|
const DOMPurify = (root) => createDOMPurify(root);
|
|
1498
|
-
DOMPurify.version = "3.
|
|
804
|
+
DOMPurify.version = "3.3.1";
|
|
1499
805
|
DOMPurify.removed = [];
|
|
1500
806
|
if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
|
|
1501
807
|
DOMPurify.isSupported = false;
|
|
1502
808
|
return DOMPurify;
|
|
1503
809
|
}
|
|
1504
|
-
let
|
|
810
|
+
let {
|
|
811
|
+
document: document2
|
|
812
|
+
} = window2;
|
|
1505
813
|
const originalDocument = document2;
|
|
1506
814
|
const currentScript = originalDocument.currentScript;
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
815
|
+
const {
|
|
816
|
+
DocumentFragment,
|
|
817
|
+
HTMLTemplateElement,
|
|
818
|
+
Node: Node2,
|
|
819
|
+
Element,
|
|
820
|
+
NodeFilter,
|
|
821
|
+
NamedNodeMap = window2.NamedNodeMap || window2.MozNamedAttrMap,
|
|
822
|
+
HTMLFormElement,
|
|
823
|
+
DOMParser,
|
|
824
|
+
trustedTypes
|
|
825
|
+
} = window2;
|
|
826
|
+
const ElementPrototype = Element.prototype;
|
|
1513
827
|
const cloneNode = lookupGetter(ElementPrototype, "cloneNode");
|
|
1514
828
|
const remove = lookupGetter(ElementPrototype, "remove");
|
|
1515
|
-
const removeAttributeNode = lookupGetter(ElementPrototype, "removeAttributeNode");
|
|
1516
829
|
const getNextSibling = lookupGetter(ElementPrototype, "nextSibling");
|
|
1517
830
|
const getChildNodes = lookupGetter(ElementPrototype, "childNodes");
|
|
1518
831
|
const getParentNode = lookupGetter(ElementPrototype, "parentNode");
|
|
1519
|
-
const getShadowRoot = lookupGetter(ElementPrototype, "shadowRoot");
|
|
1520
|
-
const getAttributes = lookupGetter(ElementPrototype, "attributes");
|
|
1521
|
-
const getNodeType = Node2 && Node2.prototype ? lookupGetter(Node2.prototype, "nodeType") : null;
|
|
1522
|
-
const getNodeName = Node2 && Node2.prototype ? lookupGetter(Node2.prototype, "nodeName") : null;
|
|
1523
|
-
const getOwnerDocument = Node2 && Node2.prototype ? lookupGetter(Node2.prototype, "ownerDocument") : null;
|
|
1524
|
-
const _readNodeType = function _readNodeType2(node) {
|
|
1525
|
-
return getNodeType ? getNodeType(node) : node.nodeType;
|
|
1526
|
-
};
|
|
1527
|
-
const _readNodeName = function _readNodeName2(node) {
|
|
1528
|
-
return getNodeName ? getNodeName(node) : node.nodeName;
|
|
1529
|
-
};
|
|
1530
832
|
if (typeof HTMLTemplateElement === "function") {
|
|
1531
833
|
const template = document2.createElement("template");
|
|
1532
|
-
if (template.content && template.content.ownerDocument)
|
|
834
|
+
if (template.content && template.content.ownerDocument) {
|
|
835
|
+
document2 = template.content.ownerDocument;
|
|
836
|
+
}
|
|
1533
837
|
}
|
|
1534
838
|
let trustedTypesPolicy;
|
|
1535
839
|
let emptyHTML = "";
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
};
|
|
1542
|
-
const
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
try {
|
|
1546
|
-
return trustedTypesPolicy.createHTML(html2);
|
|
1547
|
-
} finally {
|
|
1548
|
-
IN_TRUSTED_TYPES_POLICY--;
|
|
1549
|
-
}
|
|
1550
|
-
};
|
|
1551
|
-
const _createTrustedScriptURL = function _createTrustedScriptURL2(scriptUrl) {
|
|
1552
|
-
_assertNotInTrustedTypesPolicy();
|
|
1553
|
-
IN_TRUSTED_TYPES_POLICY++;
|
|
1554
|
-
try {
|
|
1555
|
-
return trustedTypesPolicy.createScriptURL(scriptUrl);
|
|
1556
|
-
} finally {
|
|
1557
|
-
IN_TRUSTED_TYPES_POLICY--;
|
|
1558
|
-
}
|
|
1559
|
-
};
|
|
1560
|
-
const _getDefaultTrustedTypesPolicy = function _getDefaultTrustedTypesPolicy2() {
|
|
1561
|
-
if (!defaultTrustedTypesPolicyResolved) {
|
|
1562
|
-
defaultTrustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
|
|
1563
|
-
defaultTrustedTypesPolicyResolved = true;
|
|
1564
|
-
}
|
|
1565
|
-
return defaultTrustedTypesPolicy;
|
|
1566
|
-
};
|
|
1567
|
-
const _document = document2, implementation = _document.implementation, createNodeIterator = _document.createNodeIterator, createDocumentFragment = _document.createDocumentFragment, getElementsByTagName = _document.getElementsByTagName;
|
|
1568
|
-
const importNode = originalDocument.importNode;
|
|
840
|
+
const {
|
|
841
|
+
implementation,
|
|
842
|
+
createNodeIterator,
|
|
843
|
+
createDocumentFragment,
|
|
844
|
+
getElementsByTagName
|
|
845
|
+
} = document2;
|
|
846
|
+
const {
|
|
847
|
+
importNode
|
|
848
|
+
} = originalDocument;
|
|
1569
849
|
let hooks = _createHooksMap();
|
|
1570
850
|
DOMPurify.isSupported = typeof entries === "function" && typeof getParentNode === "function" && implementation && implementation.createHTMLDocument !== void 0;
|
|
1571
|
-
const
|
|
1572
|
-
|
|
851
|
+
const {
|
|
852
|
+
MUSTACHE_EXPR: MUSTACHE_EXPR2,
|
|
853
|
+
ERB_EXPR: ERB_EXPR2,
|
|
854
|
+
TMPLIT_EXPR: TMPLIT_EXPR2,
|
|
855
|
+
DATA_ATTR: DATA_ATTR2,
|
|
856
|
+
ARIA_ATTR: ARIA_ATTR2,
|
|
857
|
+
IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA2,
|
|
858
|
+
ATTR_WHITESPACE: ATTR_WHITESPACE2,
|
|
859
|
+
CUSTOM_ELEMENT: CUSTOM_ELEMENT2
|
|
860
|
+
} = EXPRESSIONS;
|
|
861
|
+
let {
|
|
862
|
+
IS_ALLOWED_URI: IS_ALLOWED_URI$1
|
|
863
|
+
} = EXPRESSIONS;
|
|
1573
864
|
let ALLOWED_TAGS = null;
|
|
1574
|
-
const DEFAULT_ALLOWED_TAGS = addToSet({}, [
|
|
1575
|
-
...html$1,
|
|
1576
|
-
...svg$1,
|
|
1577
|
-
...svgFilters,
|
|
1578
|
-
...mathMl$1,
|
|
1579
|
-
...text
|
|
1580
|
-
]);
|
|
865
|
+
const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);
|
|
1581
866
|
let ALLOWED_ATTR = null;
|
|
1582
|
-
const DEFAULT_ALLOWED_ATTR = addToSet({}, [
|
|
1583
|
-
...html,
|
|
1584
|
-
...svg,
|
|
1585
|
-
...mathMl,
|
|
1586
|
-
...xml
|
|
1587
|
-
]);
|
|
867
|
+
const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);
|
|
1588
868
|
let CUSTOM_ELEMENT_HANDLING = Object.seal(create$1(null, {
|
|
1589
869
|
tagNameCheck: {
|
|
1590
870
|
writable: true,
|
|
@@ -1629,8 +909,6 @@ function createDOMPurify() {
|
|
|
1629
909
|
let SAFE_FOR_XML = true;
|
|
1630
910
|
let WHOLE_DOCUMENT = false;
|
|
1631
911
|
let SET_CONFIG = false;
|
|
1632
|
-
let SET_CONFIG_ALLOWED_TAGS = null;
|
|
1633
|
-
let SET_CONFIG_ALLOWED_ATTR = null;
|
|
1634
912
|
let FORCE_BODY = false;
|
|
1635
913
|
let RETURN_DOM = false;
|
|
1636
914
|
let RETURN_DOM_FRAGMENT = false;
|
|
@@ -1642,88 +920,21 @@ function createDOMPurify() {
|
|
|
1642
920
|
let IN_PLACE = false;
|
|
1643
921
|
let USE_PROFILES = {};
|
|
1644
922
|
let FORBID_CONTENTS = null;
|
|
1645
|
-
const DEFAULT_FORBID_CONTENTS = addToSet({}, [
|
|
1646
|
-
"annotation-xml",
|
|
1647
|
-
"audio",
|
|
1648
|
-
"colgroup",
|
|
1649
|
-
"desc",
|
|
1650
|
-
"foreignobject",
|
|
1651
|
-
"head",
|
|
1652
|
-
"iframe",
|
|
1653
|
-
"math",
|
|
1654
|
-
"mi",
|
|
1655
|
-
"mn",
|
|
1656
|
-
"mo",
|
|
1657
|
-
"ms",
|
|
1658
|
-
"mtext",
|
|
1659
|
-
"noembed",
|
|
1660
|
-
"noframes",
|
|
1661
|
-
"noscript",
|
|
1662
|
-
"plaintext",
|
|
1663
|
-
"script",
|
|
1664
|
-
"selectedcontent",
|
|
1665
|
-
"style",
|
|
1666
|
-
"svg",
|
|
1667
|
-
"template",
|
|
1668
|
-
"thead",
|
|
1669
|
-
"title",
|
|
1670
|
-
"video",
|
|
1671
|
-
"xmp"
|
|
1672
|
-
]);
|
|
923
|
+
const DEFAULT_FORBID_CONTENTS = addToSet({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
1673
924
|
let DATA_URI_TAGS = null;
|
|
1674
|
-
const DEFAULT_DATA_URI_TAGS = addToSet({}, [
|
|
1675
|
-
"audio",
|
|
1676
|
-
"video",
|
|
1677
|
-
"img",
|
|
1678
|
-
"source",
|
|
1679
|
-
"image",
|
|
1680
|
-
"track"
|
|
1681
|
-
]);
|
|
925
|
+
const DEFAULT_DATA_URI_TAGS = addToSet({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
1682
926
|
let URI_SAFE_ATTRIBUTES = null;
|
|
1683
|
-
const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, [
|
|
1684
|
-
"alt",
|
|
1685
|
-
"class",
|
|
1686
|
-
"for",
|
|
1687
|
-
"id",
|
|
1688
|
-
"label",
|
|
1689
|
-
"name",
|
|
1690
|
-
"pattern",
|
|
1691
|
-
"placeholder",
|
|
1692
|
-
"role",
|
|
1693
|
-
"summary",
|
|
1694
|
-
"title",
|
|
1695
|
-
"value",
|
|
1696
|
-
"style",
|
|
1697
|
-
"xmlns"
|
|
1698
|
-
]);
|
|
927
|
+
const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]);
|
|
1699
928
|
const MATHML_NAMESPACE = "http://www.w3.org/1998/Math/MathML";
|
|
1700
929
|
const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
|
|
1701
930
|
const HTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
|
|
1702
931
|
let NAMESPACE = HTML_NAMESPACE;
|
|
1703
932
|
let IS_EMPTY_INPUT = false;
|
|
1704
933
|
let ALLOWED_NAMESPACES = null;
|
|
1705
|
-
const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
], stringToString);
|
|
1710
|
-
const DEFAULT_MATHML_TEXT_INTEGRATION_POINTS = freeze([
|
|
1711
|
-
"mi",
|
|
1712
|
-
"mo",
|
|
1713
|
-
"mn",
|
|
1714
|
-
"ms",
|
|
1715
|
-
"mtext"
|
|
1716
|
-
]);
|
|
1717
|
-
let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, DEFAULT_MATHML_TEXT_INTEGRATION_POINTS);
|
|
1718
|
-
const DEFAULT_HTML_INTEGRATION_POINTS = freeze(["annotation-xml"]);
|
|
1719
|
-
let HTML_INTEGRATION_POINTS = addToSet({}, DEFAULT_HTML_INTEGRATION_POINTS);
|
|
1720
|
-
const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, [
|
|
1721
|
-
"title",
|
|
1722
|
-
"style",
|
|
1723
|
-
"font",
|
|
1724
|
-
"a",
|
|
1725
|
-
"script"
|
|
1726
|
-
]);
|
|
934
|
+
const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
|
|
935
|
+
let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]);
|
|
936
|
+
let HTML_INTEGRATION_POINTS = addToSet({}, ["annotation-xml"]);
|
|
937
|
+
const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ["title", "style", "font", "a", "script"]);
|
|
1727
938
|
let PARSER_MEDIA_TYPE = null;
|
|
1728
939
|
const SUPPORTED_PARSER_MEDIA_TYPES = ["application/xhtml+xml", "text/html"];
|
|
1729
940
|
const DEFAULT_PARSER_MEDIA_TYPE = "text/html";
|
|
@@ -1735,26 +946,25 @@ function createDOMPurify() {
|
|
|
1735
946
|
};
|
|
1736
947
|
const _parseConfig = function _parseConfig2() {
|
|
1737
948
|
let cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1738
|
-
if (CONFIG && CONFIG === cfg)
|
|
1739
|
-
|
|
949
|
+
if (CONFIG && CONFIG === cfg) {
|
|
950
|
+
return;
|
|
951
|
+
}
|
|
952
|
+
if (!cfg || typeof cfg !== "object") {
|
|
953
|
+
cfg = {};
|
|
954
|
+
}
|
|
1740
955
|
cfg = clone(cfg);
|
|
1741
|
-
PARSER_MEDIA_TYPE =
|
|
956
|
+
PARSER_MEDIA_TYPE = // eslint-disable-next-line unicorn/prefer-includes
|
|
957
|
+
SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;
|
|
1742
958
|
transformCaseFunc = PARSER_MEDIA_TYPE === "application/xhtml+xml" ? stringToString : stringToLowerCase;
|
|
1743
|
-
ALLOWED_TAGS =
|
|
1744
|
-
ALLOWED_ATTR =
|
|
1745
|
-
ALLOWED_NAMESPACES =
|
|
1746
|
-
URI_SAFE_ATTRIBUTES =
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
});
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
base: DEFAULT_DATA_URI_TAGS
|
|
1753
|
-
});
|
|
1754
|
-
FORBID_CONTENTS = _resolveSetOption(cfg, "FORBID_CONTENTS", DEFAULT_FORBID_CONTENTS, { transform: transformCaseFunc });
|
|
1755
|
-
FORBID_TAGS = _resolveSetOption(cfg, "FORBID_TAGS", clone({}), { transform: transformCaseFunc });
|
|
1756
|
-
FORBID_ATTR = _resolveSetOption(cfg, "FORBID_ATTR", clone({}), { transform: transformCaseFunc });
|
|
1757
|
-
USE_PROFILES = objectHasOwnProperty(cfg, "USE_PROFILES") ? cfg.USE_PROFILES && typeof cfg.USE_PROFILES === "object" ? clone(cfg.USE_PROFILES) : cfg.USE_PROFILES : false;
|
|
959
|
+
ALLOWED_TAGS = objectHasOwnProperty(cfg, "ALLOWED_TAGS") ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
|
|
960
|
+
ALLOWED_ATTR = objectHasOwnProperty(cfg, "ALLOWED_ATTR") ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
|
|
961
|
+
ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, "ALLOWED_NAMESPACES") ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
|
|
962
|
+
URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, "ADD_URI_SAFE_ATTR") ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
|
|
963
|
+
DATA_URI_TAGS = objectHasOwnProperty(cfg, "ADD_DATA_URI_TAGS") ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
|
|
964
|
+
FORBID_CONTENTS = objectHasOwnProperty(cfg, "FORBID_CONTENTS") ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
|
|
965
|
+
FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
|
|
966
|
+
FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
|
|
967
|
+
USE_PROFILES = objectHasOwnProperty(cfg, "USE_PROFILES") ? cfg.USE_PROFILES : false;
|
|
1758
968
|
ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false;
|
|
1759
969
|
ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false;
|
|
1760
970
|
ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false;
|
|
@@ -1770,21 +980,29 @@ function createDOMPurify() {
|
|
|
1770
980
|
SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false;
|
|
1771
981
|
KEEP_CONTENT = cfg.KEEP_CONTENT !== false;
|
|
1772
982
|
IN_PLACE = cfg.IN_PLACE || false;
|
|
1773
|
-
IS_ALLOWED_URI$1 =
|
|
1774
|
-
NAMESPACE =
|
|
1775
|
-
MATHML_TEXT_INTEGRATION_POINTS =
|
|
1776
|
-
HTML_INTEGRATION_POINTS =
|
|
1777
|
-
|
|
1778
|
-
CUSTOM_ELEMENT_HANDLING
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
if (
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
if (
|
|
983
|
+
IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;
|
|
984
|
+
NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;
|
|
985
|
+
MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS || MATHML_TEXT_INTEGRATION_POINTS;
|
|
986
|
+
HTML_INTEGRATION_POINTS = cfg.HTML_INTEGRATION_POINTS || HTML_INTEGRATION_POINTS;
|
|
987
|
+
CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};
|
|
988
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {
|
|
989
|
+
CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;
|
|
990
|
+
}
|
|
991
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {
|
|
992
|
+
CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;
|
|
993
|
+
}
|
|
994
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === "boolean") {
|
|
995
|
+
CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;
|
|
996
|
+
}
|
|
997
|
+
if (SAFE_FOR_TEMPLATES) {
|
|
998
|
+
ALLOW_DATA_ATTR = false;
|
|
999
|
+
}
|
|
1000
|
+
if (RETURN_DOM_FRAGMENT) {
|
|
1001
|
+
RETURN_DOM = true;
|
|
1002
|
+
}
|
|
1785
1003
|
if (USE_PROFILES) {
|
|
1786
1004
|
ALLOWED_TAGS = addToSet({}, text);
|
|
1787
|
-
ALLOWED_ATTR =
|
|
1005
|
+
ALLOWED_ATTR = [];
|
|
1788
1006
|
if (USE_PROFILES.html === true) {
|
|
1789
1007
|
addToSet(ALLOWED_TAGS, html$1);
|
|
1790
1008
|
addToSet(ALLOWED_ATTR, html);
|
|
@@ -1805,227 +1023,175 @@ function createDOMPurify() {
|
|
|
1805
1023
|
addToSet(ALLOWED_ATTR, xml);
|
|
1806
1024
|
}
|
|
1807
1025
|
}
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1026
|
+
if (cfg.ADD_TAGS) {
|
|
1027
|
+
if (typeof cfg.ADD_TAGS === "function") {
|
|
1028
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
|
|
1029
|
+
} else {
|
|
1030
|
+
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
1031
|
+
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
1032
|
+
}
|
|
1814
1033
|
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
1815
1034
|
}
|
|
1816
1035
|
}
|
|
1817
|
-
if (
|
|
1818
|
-
if (typeof cfg.ADD_ATTR === "function")
|
|
1819
|
-
|
|
1820
|
-
|
|
1036
|
+
if (cfg.ADD_ATTR) {
|
|
1037
|
+
if (typeof cfg.ADD_ATTR === "function") {
|
|
1038
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
|
|
1039
|
+
} else {
|
|
1040
|
+
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
1041
|
+
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
1042
|
+
}
|
|
1821
1043
|
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
1822
1044
|
}
|
|
1823
1045
|
}
|
|
1824
|
-
if (
|
|
1825
|
-
|
|
1046
|
+
if (cfg.ADD_URI_SAFE_ATTR) {
|
|
1047
|
+
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
|
1048
|
+
}
|
|
1049
|
+
if (cfg.FORBID_CONTENTS) {
|
|
1050
|
+
if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
|
|
1051
|
+
FORBID_CONTENTS = clone(FORBID_CONTENTS);
|
|
1052
|
+
}
|
|
1053
|
+
addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
|
|
1054
|
+
}
|
|
1055
|
+
if (cfg.ADD_FORBID_CONTENTS) {
|
|
1056
|
+
if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
|
|
1057
|
+
FORBID_CONTENTS = clone(FORBID_CONTENTS);
|
|
1058
|
+
}
|
|
1826
1059
|
addToSet(FORBID_CONTENTS, cfg.ADD_FORBID_CONTENTS, transformCaseFunc);
|
|
1827
1060
|
}
|
|
1828
|
-
if (KEEP_CONTENT)
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
"body"
|
|
1833
|
-
|
|
1061
|
+
if (KEEP_CONTENT) {
|
|
1062
|
+
ALLOWED_TAGS["#text"] = true;
|
|
1063
|
+
}
|
|
1064
|
+
if (WHOLE_DOCUMENT) {
|
|
1065
|
+
addToSet(ALLOWED_TAGS, ["html", "head", "body"]);
|
|
1066
|
+
}
|
|
1834
1067
|
if (ALLOWED_TAGS.table) {
|
|
1835
1068
|
addToSet(ALLOWED_TAGS, ["tbody"]);
|
|
1836
1069
|
delete FORBID_TAGS.tbody;
|
|
1837
1070
|
}
|
|
1838
1071
|
if (cfg.TRUSTED_TYPES_POLICY) {
|
|
1839
|
-
if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== "function")
|
|
1840
|
-
|
|
1841
|
-
const previousTrustedTypesPolicy = trustedTypesPolicy;
|
|
1842
|
-
trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
|
|
1843
|
-
try {
|
|
1844
|
-
emptyHTML = _createTrustedHTML("");
|
|
1845
|
-
} catch (error) {
|
|
1846
|
-
trustedTypesPolicy = previousTrustedTypesPolicy;
|
|
1847
|
-
throw error;
|
|
1072
|
+
if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== "function") {
|
|
1073
|
+
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
1848
1074
|
}
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1075
|
+
if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== "function") {
|
|
1076
|
+
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
1077
|
+
}
|
|
1078
|
+
trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
|
|
1079
|
+
emptyHTML = trustedTypesPolicy.createHTML("");
|
|
1852
1080
|
} else {
|
|
1853
|
-
if (trustedTypesPolicy === void 0)
|
|
1854
|
-
|
|
1081
|
+
if (trustedTypesPolicy === void 0) {
|
|
1082
|
+
trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
|
|
1083
|
+
}
|
|
1084
|
+
if (trustedTypesPolicy !== null && typeof emptyHTML === "string") {
|
|
1085
|
+
emptyHTML = trustedTypesPolicy.createHTML("");
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
if (freeze) {
|
|
1089
|
+
freeze(cfg);
|
|
1855
1090
|
}
|
|
1856
|
-
if (freeze) freeze(cfg);
|
|
1857
1091
|
CONFIG = cfg;
|
|
1858
1092
|
};
|
|
1859
|
-
const ALL_SVG_TAGS = addToSet({}, [
|
|
1860
|
-
...svg$1,
|
|
1861
|
-
...svgFilters,
|
|
1862
|
-
...svgDisallowed
|
|
1863
|
-
]);
|
|
1093
|
+
const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
|
|
1864
1094
|
const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
|
|
1865
|
-
const _checkSvgNamespace = function _checkSvgNamespace2(tagName, parent, parentTagName) {
|
|
1866
|
-
if (parent.namespaceURI === HTML_NAMESPACE) return tagName === "svg";
|
|
1867
|
-
if (parent.namespaceURI === MATHML_NAMESPACE) return tagName === "svg" && (parentTagName === "annotation-xml" || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
|
|
1868
|
-
return Boolean(ALL_SVG_TAGS[tagName]);
|
|
1869
|
-
};
|
|
1870
|
-
const _checkMathMlNamespace = function _checkMathMlNamespace2(tagName, parent, parentTagName) {
|
|
1871
|
-
if (parent.namespaceURI === HTML_NAMESPACE) return tagName === "math";
|
|
1872
|
-
if (parent.namespaceURI === SVG_NAMESPACE) return tagName === "math" && HTML_INTEGRATION_POINTS[parentTagName];
|
|
1873
|
-
return Boolean(ALL_MATHML_TAGS[tagName]);
|
|
1874
|
-
};
|
|
1875
|
-
const _checkHtmlNamespace = function _checkHtmlNamespace2(tagName, parent, parentTagName) {
|
|
1876
|
-
if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) return false;
|
|
1877
|
-
if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) return false;
|
|
1878
|
-
return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
|
|
1879
|
-
};
|
|
1880
1095
|
const _checkValidNamespace = function _checkValidNamespace2(element) {
|
|
1881
1096
|
let parent = getParentNode(element);
|
|
1882
|
-
if (!parent || !parent.tagName)
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1097
|
+
if (!parent || !parent.tagName) {
|
|
1098
|
+
parent = {
|
|
1099
|
+
namespaceURI: NAMESPACE,
|
|
1100
|
+
tagName: "template"
|
|
1101
|
+
};
|
|
1102
|
+
}
|
|
1886
1103
|
const tagName = stringToLowerCase(element.tagName);
|
|
1887
1104
|
const parentTagName = stringToLowerCase(parent.tagName);
|
|
1888
|
-
if (!ALLOWED_NAMESPACES[element.namespaceURI])
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
if (element.namespaceURI ===
|
|
1892
|
-
|
|
1105
|
+
if (!ALLOWED_NAMESPACES[element.namespaceURI]) {
|
|
1106
|
+
return false;
|
|
1107
|
+
}
|
|
1108
|
+
if (element.namespaceURI === SVG_NAMESPACE) {
|
|
1109
|
+
if (parent.namespaceURI === HTML_NAMESPACE) {
|
|
1110
|
+
return tagName === "svg";
|
|
1111
|
+
}
|
|
1112
|
+
if (parent.namespaceURI === MATHML_NAMESPACE) {
|
|
1113
|
+
return tagName === "svg" && (parentTagName === "annotation-xml" || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
|
|
1114
|
+
}
|
|
1115
|
+
return Boolean(ALL_SVG_TAGS[tagName]);
|
|
1116
|
+
}
|
|
1117
|
+
if (element.namespaceURI === MATHML_NAMESPACE) {
|
|
1118
|
+
if (parent.namespaceURI === HTML_NAMESPACE) {
|
|
1119
|
+
return tagName === "math";
|
|
1120
|
+
}
|
|
1121
|
+
if (parent.namespaceURI === SVG_NAMESPACE) {
|
|
1122
|
+
return tagName === "math" && HTML_INTEGRATION_POINTS[parentTagName];
|
|
1123
|
+
}
|
|
1124
|
+
return Boolean(ALL_MATHML_TAGS[tagName]);
|
|
1125
|
+
}
|
|
1126
|
+
if (element.namespaceURI === HTML_NAMESPACE) {
|
|
1127
|
+
if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
|
|
1128
|
+
return false;
|
|
1129
|
+
}
|
|
1130
|
+
if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
|
|
1131
|
+
return false;
|
|
1132
|
+
}
|
|
1133
|
+
return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
|
|
1134
|
+
}
|
|
1135
|
+
if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && ALLOWED_NAMESPACES[element.namespaceURI]) {
|
|
1136
|
+
return true;
|
|
1137
|
+
}
|
|
1893
1138
|
return false;
|
|
1894
1139
|
};
|
|
1895
1140
|
const _forceRemove = function _forceRemove2(node) {
|
|
1896
|
-
arrayPush(DOMPurify.removed, {
|
|
1141
|
+
arrayPush(DOMPurify.removed, {
|
|
1142
|
+
element: node
|
|
1143
|
+
});
|
|
1897
1144
|
try {
|
|
1898
1145
|
getParentNode(node).removeChild(node);
|
|
1899
1146
|
} catch (_) {
|
|
1900
1147
|
remove(node);
|
|
1901
|
-
if (!getParentNode(node)) throw typeErrorCreate("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
1902
1148
|
}
|
|
1903
1149
|
};
|
|
1904
|
-
const
|
|
1150
|
+
const _removeAttribute = function _removeAttribute2(name, element) {
|
|
1905
1151
|
try {
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
element.removeAttribute(name);
|
|
1910
|
-
} catch (_2) {
|
|
1911
|
-
}
|
|
1912
|
-
}
|
|
1913
|
-
};
|
|
1914
|
-
const _neutralizeRoot = function _neutralizeRoot2(root) {
|
|
1915
|
-
_neutralizeSubtree(root);
|
|
1916
|
-
const childNodes = getChildNodes(root);
|
|
1917
|
-
if (childNodes) {
|
|
1918
|
-
const snapshot = [];
|
|
1919
|
-
arrayForEach(childNodes, (child) => {
|
|
1920
|
-
arrayPush(snapshot, child);
|
|
1921
|
-
});
|
|
1922
|
-
arrayForEach(snapshot, (child) => {
|
|
1923
|
-
try {
|
|
1924
|
-
remove(child);
|
|
1925
|
-
} catch (_) {
|
|
1926
|
-
}
|
|
1152
|
+
arrayPush(DOMPurify.removed, {
|
|
1153
|
+
attribute: element.getAttributeNode(name),
|
|
1154
|
+
from: element
|
|
1927
1155
|
});
|
|
1928
|
-
}
|
|
1929
|
-
const attributes = getAttributes(root);
|
|
1930
|
-
if (attributes) for (let i = attributes.length - 1; i >= 0; --i) {
|
|
1931
|
-
const attribute = attributes[i];
|
|
1932
|
-
const name = attribute && attribute.name;
|
|
1933
|
-
if (typeof name === "string") _stripAttributeNode(root, attribute, name);
|
|
1934
|
-
}
|
|
1935
|
-
};
|
|
1936
|
-
const _removeAttribute = function _removeAttribute2(name, element, attr) {
|
|
1937
|
-
if (!attr) try {
|
|
1938
|
-
attr = element.getAttributeNode(name);
|
|
1939
1156
|
} catch (_) {
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
from: element
|
|
1945
|
-
});
|
|
1946
|
-
try {
|
|
1947
|
-
if (attr) removeAttributeNode(element, attr);
|
|
1948
|
-
else element.removeAttribute(name);
|
|
1949
|
-
} catch (_) {
|
|
1950
|
-
try {
|
|
1951
|
-
element.removeAttribute(name);
|
|
1952
|
-
} catch (_2) {
|
|
1953
|
-
}
|
|
1157
|
+
arrayPush(DOMPurify.removed, {
|
|
1158
|
+
attribute: null,
|
|
1159
|
+
from: element
|
|
1160
|
+
});
|
|
1954
1161
|
}
|
|
1162
|
+
element.removeAttribute(name);
|
|
1955
1163
|
if (name === "is") {
|
|
1956
|
-
if (RETURN_DOM || RETURN_DOM_FRAGMENT)
|
|
1957
|
-
_forceRemove(element);
|
|
1958
|
-
} catch (_) {
|
|
1959
|
-
}
|
|
1960
|
-
else try {
|
|
1961
|
-
element.setAttribute(name, "");
|
|
1962
|
-
} catch (_) {
|
|
1963
|
-
}
|
|
1964
|
-
}
|
|
1965
|
-
};
|
|
1966
|
-
const _stripDisallowedAttributes = function _stripDisallowedAttributes2(element) {
|
|
1967
|
-
const attributes = getAttributes(element);
|
|
1968
|
-
if (!attributes) return;
|
|
1969
|
-
for (let i = attributes.length - 1; i >= 0; --i) {
|
|
1970
|
-
const attribute = attributes[i];
|
|
1971
|
-
const name = attribute && attribute.name;
|
|
1972
|
-
if (typeof name !== "string" || ALLOWED_ATTR[transformCaseFunc(name)]) continue;
|
|
1973
|
-
_stripAttributeNode(element, attribute, name);
|
|
1974
|
-
}
|
|
1975
|
-
};
|
|
1976
|
-
const _neutralizeSubtree = function _neutralizeSubtree2(root) {
|
|
1977
|
-
const stack = [root];
|
|
1978
|
-
while (stack.length > 0) {
|
|
1979
|
-
const node = stack.pop();
|
|
1980
|
-
if (_readNodeType(node) === NODE_TYPE.element) _stripDisallowedAttributes(node);
|
|
1981
|
-
const childNodes = getChildNodes(node);
|
|
1982
|
-
if (childNodes) for (let i = childNodes.length - 1; i >= 0; --i) stack.push(childNodes[i]);
|
|
1983
|
-
}
|
|
1984
|
-
};
|
|
1985
|
-
const _isPatchLinkageAttribute = function _isPatchLinkageAttribute2(lcName, lcTag) {
|
|
1986
|
-
if (!SAFE_FOR_XML) return false;
|
|
1987
|
-
if (lcName === "patchsrc") return true;
|
|
1988
|
-
return lcName === "for" && lcTag !== "label" && lcTag !== "output";
|
|
1989
|
-
};
|
|
1990
|
-
const _neutralizePatchLinkage = function _neutralizePatchLinkage2(root) {
|
|
1991
|
-
if (!SAFE_FOR_XML) return;
|
|
1992
|
-
const stack = [root];
|
|
1993
|
-
while (stack.length > 0) {
|
|
1994
|
-
const node = stack.pop();
|
|
1995
|
-
const nodeType = _readNodeType(node);
|
|
1996
|
-
if (nodeType === NODE_TYPE.processingInstruction || nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, node.data)) {
|
|
1164
|
+
if (RETURN_DOM || RETURN_DOM_FRAGMENT) {
|
|
1997
1165
|
try {
|
|
1998
|
-
|
|
1166
|
+
_forceRemove(element);
|
|
1999
1167
|
} catch (_) {
|
|
2000
1168
|
}
|
|
2001
|
-
|
|
2002
|
-
}
|
|
2003
|
-
if (nodeType === NODE_TYPE.element) {
|
|
2004
|
-
const element = node;
|
|
2005
|
-
const lcTag = transformCaseFunc(_readNodeName(node));
|
|
1169
|
+
} else {
|
|
2006
1170
|
try {
|
|
2007
|
-
|
|
2008
|
-
if (element.hasAttribute && element.hasAttribute("for") && _isPatchLinkageAttribute("for", lcTag)) element.removeAttribute("for");
|
|
1171
|
+
element.setAttribute(name, "");
|
|
2009
1172
|
} catch (_) {
|
|
2010
1173
|
}
|
|
2011
1174
|
}
|
|
2012
|
-
const childNodes = getChildNodes(node);
|
|
2013
|
-
if (childNodes) for (let i = childNodes.length - 1; i >= 0; --i) stack.push(childNodes[i]);
|
|
2014
1175
|
}
|
|
2015
1176
|
};
|
|
2016
1177
|
const _initDocument = function _initDocument2(dirty) {
|
|
2017
1178
|
let doc = null;
|
|
2018
1179
|
let leadingWhitespace = null;
|
|
2019
|
-
if (FORCE_BODY)
|
|
2020
|
-
|
|
1180
|
+
if (FORCE_BODY) {
|
|
1181
|
+
dirty = "<remove></remove>" + dirty;
|
|
1182
|
+
} else {
|
|
2021
1183
|
const matches = stringMatch(dirty, /^[\r\n\t ]+/);
|
|
2022
1184
|
leadingWhitespace = matches && matches[0];
|
|
2023
1185
|
}
|
|
2024
|
-
if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && NAMESPACE === HTML_NAMESPACE)
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
1186
|
+
if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && NAMESPACE === HTML_NAMESPACE) {
|
|
1187
|
+
dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + "</body></html>";
|
|
1188
|
+
}
|
|
1189
|
+
const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;
|
|
1190
|
+
if (NAMESPACE === HTML_NAMESPACE) {
|
|
1191
|
+
try {
|
|
1192
|
+
doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);
|
|
1193
|
+
} catch (_) {
|
|
1194
|
+
}
|
|
2029
1195
|
}
|
|
2030
1196
|
if (!doc || !doc.documentElement) {
|
|
2031
1197
|
doc = implementation.createDocument(NAMESPACE, "template", null);
|
|
@@ -2035,203 +1201,144 @@ function createDOMPurify() {
|
|
|
2035
1201
|
}
|
|
2036
1202
|
}
|
|
2037
1203
|
const body = doc.body || doc.documentElement;
|
|
2038
|
-
if (dirty && leadingWhitespace)
|
|
2039
|
-
|
|
1204
|
+
if (dirty && leadingWhitespace) {
|
|
1205
|
+
body.insertBefore(document2.createTextNode(leadingWhitespace), body.childNodes[0] || null);
|
|
1206
|
+
}
|
|
1207
|
+
if (NAMESPACE === HTML_NAMESPACE) {
|
|
1208
|
+
return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? "html" : "body")[0];
|
|
1209
|
+
}
|
|
2040
1210
|
return WHOLE_DOCUMENT ? doc.documentElement : body;
|
|
2041
1211
|
};
|
|
2042
1212
|
const _createNodeIterator = function _createNodeIterator2(root) {
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
return value;
|
|
2051
|
-
};
|
|
2052
|
-
const _scrubTemplateExpressions2 = function _scrubTemplateExpressions(node) {
|
|
2053
|
-
var _node$querySelectorAl;
|
|
2054
|
-
node.normalize();
|
|
2055
|
-
const doc = getOwnerDocument ? getOwnerDocument(node) : node.ownerDocument;
|
|
2056
|
-
const walker = createNodeIterator.call(doc || node, node, NodeFilter.SHOW_TEXT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_CDATA_SECTION | NodeFilter.SHOW_PROCESSING_INSTRUCTION, null);
|
|
2057
|
-
let currentNode = walker.nextNode();
|
|
2058
|
-
while (currentNode) {
|
|
2059
|
-
currentNode.data = _stripTemplateExpressions(currentNode.data);
|
|
2060
|
-
currentNode = walker.nextNode();
|
|
2061
|
-
}
|
|
2062
|
-
const templates = (_node$querySelectorAl = node.querySelectorAll) === null || _node$querySelectorAl === void 0 ? void 0 : _node$querySelectorAl.call(node, "template");
|
|
2063
|
-
if (templates) arrayForEach(templates, (tmpl) => {
|
|
2064
|
-
if (_isDocumentFragment(tmpl.content)) _scrubTemplateExpressions2(tmpl.content);
|
|
2065
|
-
});
|
|
1213
|
+
return createNodeIterator.call(
|
|
1214
|
+
root.ownerDocument || root,
|
|
1215
|
+
root,
|
|
1216
|
+
// eslint-disable-next-line no-bitwise
|
|
1217
|
+
NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION,
|
|
1218
|
+
null
|
|
1219
|
+
);
|
|
2066
1220
|
};
|
|
2067
1221
|
const _isClobbered = function _isClobbered2(element) {
|
|
2068
|
-
|
|
2069
|
-
if (typeof realTagName !== "string") return false;
|
|
2070
|
-
if (transformCaseFunc(realTagName) !== "form") return false;
|
|
2071
|
-
return typeof element.nodeName !== "string" || typeof element.textContent !== "string" || typeof element.removeChild !== "function" || element.attributes !== getAttributes(element) || typeof element.removeAttribute !== "function" || typeof element.removeAttributeNode !== "function" || typeof element.getAttributeNode !== "function" || typeof element.setAttribute !== "function" || typeof element.namespaceURI !== "string" || typeof element.insertBefore !== "function" || typeof element.hasChildNodes !== "function" || element.nodeType !== getNodeType(element) || element.childNodes !== getChildNodes(element);
|
|
2072
|
-
};
|
|
2073
|
-
const _isDocumentFragment = function _isDocumentFragment2(value) {
|
|
2074
|
-
if (!getNodeType || typeof value !== "object" || value === null) return false;
|
|
2075
|
-
try {
|
|
2076
|
-
return getNodeType(value) === NODE_TYPE.documentFragment;
|
|
2077
|
-
} catch (_) {
|
|
2078
|
-
return false;
|
|
2079
|
-
}
|
|
1222
|
+
return element instanceof HTMLFormElement && (typeof element.nodeName !== "string" || typeof element.textContent !== "string" || typeof element.removeChild !== "function" || !(element.attributes instanceof NamedNodeMap) || typeof element.removeAttribute !== "function" || typeof element.setAttribute !== "function" || typeof element.namespaceURI !== "string" || typeof element.insertBefore !== "function" || typeof element.hasChildNodes !== "function");
|
|
2080
1223
|
};
|
|
2081
1224
|
const _isNode = function _isNode2(value) {
|
|
2082
|
-
|
|
2083
|
-
try {
|
|
2084
|
-
return typeof getNodeType(value) === "number";
|
|
2085
|
-
} catch (_) {
|
|
2086
|
-
return false;
|
|
2087
|
-
}
|
|
1225
|
+
return typeof Node2 === "function" && value instanceof Node2;
|
|
2088
1226
|
};
|
|
2089
1227
|
function _executeHooks(hooks2, currentNode, data) {
|
|
2090
|
-
if (hooks2.length === 0) return;
|
|
2091
1228
|
arrayForEach(hooks2, (hook2) => {
|
|
2092
1229
|
hook2.call(DOMPurify, currentNode, data, CONFIG);
|
|
2093
1230
|
});
|
|
2094
1231
|
}
|
|
2095
|
-
const
|
|
2096
|
-
|
|
2097
|
-
if (SAFE_FOR_XML && currentNode.namespaceURI === HTML_NAMESPACE && LITERAL_TEXT_ELEMENTS[tagName] && (_isNode(currentNode.firstElementChild) || typeof currentNode.textContent === "string" && regExpTest(LITERAL_TEXT_CLOSE[tagName], currentNode.textContent))) return true;
|
|
2098
|
-
if (currentNode.nodeType === NODE_TYPE.processingInstruction) return true;
|
|
2099
|
-
if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, currentNode.data)) return true;
|
|
2100
|
-
return false;
|
|
2101
|
-
};
|
|
2102
|
-
const _matchesNameCheck = function _matchesNameCheck2(check, name) {
|
|
2103
|
-
if (check instanceof RegExp) return regExpTest(check, name);
|
|
2104
|
-
if (check instanceof Function) {
|
|
2105
|
-
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) args[_key - 2] = arguments[_key];
|
|
2106
|
-
return Boolean(check(name, ...args));
|
|
2107
|
-
}
|
|
2108
|
-
return false;
|
|
2109
|
-
};
|
|
2110
|
-
const _sanitizeDisallowedNode = function _sanitizeDisallowedNode2(currentNode, tagName, root) {
|
|
2111
|
-
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName) && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false;
|
|
2112
|
-
if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
|
|
2113
|
-
const parentNode = getParentNode(currentNode);
|
|
2114
|
-
const childNodes = getChildNodes(currentNode);
|
|
2115
|
-
if (childNodes && parentNode) {
|
|
2116
|
-
const childCount = childNodes.length;
|
|
2117
|
-
for (let i = childCount - 1; i >= 0; --i) {
|
|
2118
|
-
const hoisted = currentNode === root ? cloneNode(childNodes[i], true) : childNodes[i];
|
|
2119
|
-
parentNode.insertBefore(hoisted, getNextSibling(currentNode));
|
|
2120
|
-
}
|
|
2121
|
-
}
|
|
2122
|
-
}
|
|
2123
|
-
_forceRemove(currentNode);
|
|
2124
|
-
return true;
|
|
2125
|
-
};
|
|
2126
|
-
const _forkSharedAllowlist = function _forkSharedAllowlist2(hookList, set, defaultSet, setConfigSet) {
|
|
2127
|
-
if (hookList.length === 0) return set;
|
|
2128
|
-
return set === defaultSet || set === setConfigSet ? clone(set) : set;
|
|
2129
|
-
};
|
|
2130
|
-
const _handleHookDetachedNode = function _handleHookDetachedNode2(currentNode, root) {
|
|
2131
|
-
if (currentNode === root || getParentNode(currentNode) !== null) return false;
|
|
2132
|
-
if (IN_PLACE) _neutralizeSubtree(currentNode);
|
|
2133
|
-
return true;
|
|
2134
|
-
};
|
|
2135
|
-
const _sanitizeElements = function _sanitizeElements2(currentNode, root) {
|
|
1232
|
+
const _sanitizeElements = function _sanitizeElements2(currentNode) {
|
|
1233
|
+
let content = null;
|
|
2136
1234
|
_executeHooks(hooks.beforeSanitizeElements, currentNode, null);
|
|
2137
|
-
if (_handleHookDetachedNode(currentNode, root)) return true;
|
|
2138
1235
|
if (_isClobbered(currentNode)) {
|
|
2139
1236
|
_forceRemove(currentNode);
|
|
2140
1237
|
return true;
|
|
2141
1238
|
}
|
|
2142
|
-
const tagName = transformCaseFunc(
|
|
2143
|
-
ALLOWED_TAGS = _forkSharedAllowlist(hooks.uponSanitizeElement, ALLOWED_TAGS, DEFAULT_ALLOWED_TAGS, SET_CONFIG_ALLOWED_TAGS);
|
|
1239
|
+
const tagName = transformCaseFunc(currentNode.nodeName);
|
|
2144
1240
|
_executeHooks(hooks.uponSanitizeElement, currentNode, {
|
|
2145
1241
|
tagName,
|
|
2146
1242
|
allowedTags: ALLOWED_TAGS
|
|
2147
1243
|
});
|
|
2148
|
-
if (
|
|
2149
|
-
|
|
1244
|
+
if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
|
|
1245
|
+
_forceRemove(currentNode);
|
|
1246
|
+
return true;
|
|
1247
|
+
}
|
|
1248
|
+
if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
|
|
1249
|
+
_forceRemove(currentNode);
|
|
1250
|
+
return true;
|
|
1251
|
+
}
|
|
1252
|
+
if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, currentNode.data)) {
|
|
2150
1253
|
_forceRemove(currentNode);
|
|
2151
1254
|
return true;
|
|
2152
1255
|
}
|
|
2153
|
-
if (
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
1256
|
+
if (!(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName])) {
|
|
1257
|
+
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
1258
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
1259
|
+
return false;
|
|
1260
|
+
}
|
|
1261
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {
|
|
1262
|
+
return false;
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
|
|
1266
|
+
const parentNode = getParentNode(currentNode) || currentNode.parentNode;
|
|
1267
|
+
const childNodes = getChildNodes(currentNode) || currentNode.childNodes;
|
|
1268
|
+
if (childNodes && parentNode) {
|
|
1269
|
+
const childCount = childNodes.length;
|
|
1270
|
+
for (let i = childCount - 1; i >= 0; --i) {
|
|
1271
|
+
const childClone = cloneNode(childNodes[i], true);
|
|
1272
|
+
childClone.__removalCount = (currentNode.__removalCount || 0) + 1;
|
|
1273
|
+
parentNode.insertBefore(childClone, getNextSibling(currentNode));
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
2158
1276
|
}
|
|
2159
|
-
|
|
1277
|
+
_forceRemove(currentNode);
|
|
1278
|
+
return true;
|
|
2160
1279
|
}
|
|
2161
|
-
if (
|
|
1280
|
+
if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {
|
|
2162
1281
|
_forceRemove(currentNode);
|
|
2163
1282
|
return true;
|
|
2164
1283
|
}
|
|
2165
|
-
if ((tagName === "noscript" || tagName === "noembed" || tagName === "noframes") && regExpTest(
|
|
1284
|
+
if ((tagName === "noscript" || tagName === "noembed" || tagName === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, currentNode.innerHTML)) {
|
|
2166
1285
|
_forceRemove(currentNode);
|
|
2167
1286
|
return true;
|
|
2168
1287
|
}
|
|
2169
1288
|
if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
|
|
2170
|
-
|
|
1289
|
+
content = currentNode.textContent;
|
|
1290
|
+
arrayForEach([MUSTACHE_EXPR2, ERB_EXPR2, TMPLIT_EXPR2], (expr) => {
|
|
1291
|
+
content = stringReplace(content, expr, " ");
|
|
1292
|
+
});
|
|
2171
1293
|
if (currentNode.textContent !== content) {
|
|
2172
|
-
arrayPush(DOMPurify.removed, {
|
|
1294
|
+
arrayPush(DOMPurify.removed, {
|
|
1295
|
+
element: currentNode.cloneNode()
|
|
1296
|
+
});
|
|
2173
1297
|
currentNode.textContent = content;
|
|
2174
1298
|
}
|
|
2175
1299
|
}
|
|
2176
1300
|
_executeHooks(hooks.afterSanitizeElements, currentNode, null);
|
|
2177
|
-
return
|
|
1301
|
+
return false;
|
|
2178
1302
|
};
|
|
2179
1303
|
const _isValidAttribute = function _isValidAttribute2(lcTag, lcName, value) {
|
|
2180
|
-
if (
|
|
2181
|
-
|
|
2182
|
-
if (SANITIZE_DOM && (lcName === "id" || lcName === "name") && (value in document2 || value in formElement)) return false;
|
|
2183
|
-
const nameIsPermitted = ALLOWED_ATTR[lcName] || EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag);
|
|
2184
|
-
if (ALLOW_DATA_ATTR && regExpTest(DATA_ATTR$1, lcName)) return true;
|
|
2185
|
-
if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$1, lcName)) return true;
|
|
2186
|
-
if (!nameIsPermitted) return _isBasicCustomElement(lcTag) && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName, lcTag) || lcName === "is" && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value);
|
|
2187
|
-
if (URI_SAFE_ATTRIBUTES[lcName]) return true;
|
|
2188
|
-
if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE$1, ""))) return true;
|
|
2189
|
-
if ((lcName === "src" || lcName === "xlink:href" || lcName === "href") && lcTag !== "script" && stringIndexOf(value, "data:") === 0 && DATA_URI_TAGS[lcTag]) return true;
|
|
2190
|
-
if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$1, stringReplace(value, ATTR_WHITESPACE$1, ""))) return true;
|
|
2191
|
-
return !value;
|
|
2192
|
-
};
|
|
2193
|
-
const RESERVED_CUSTOM_ELEMENT_NAMES = addToSet({}, [
|
|
2194
|
-
"annotation-xml",
|
|
2195
|
-
"color-profile",
|
|
2196
|
-
"font-face",
|
|
2197
|
-
"font-face-format",
|
|
2198
|
-
"font-face-name",
|
|
2199
|
-
"font-face-src",
|
|
2200
|
-
"font-face-uri",
|
|
2201
|
-
"missing-glyph"
|
|
2202
|
-
]);
|
|
2203
|
-
const _isBasicCustomElement = function _isBasicCustomElement2(tagName) {
|
|
2204
|
-
return !RESERVED_CUSTOM_ELEMENT_NAMES[stringToLowerCase(tagName)] && regExpTest(CUSTOM_ELEMENT$1, tagName);
|
|
2205
|
-
};
|
|
2206
|
-
const _applyTrustedTypesToAttribute = function _applyTrustedTypesToAttribute2(lcTag, lcName, namespaceURI, value) {
|
|
2207
|
-
if (trustedTypesPolicy && typeof trustedTypes === "object" && typeof trustedTypes.getAttributeType === "function" && !namespaceURI) switch (trustedTypes.getAttributeType(lcTag, lcName)) {
|
|
2208
|
-
case "TrustedHTML":
|
|
2209
|
-
return _createTrustedHTML(value);
|
|
2210
|
-
case "TrustedScriptURL":
|
|
2211
|
-
return _createTrustedScriptURL(value);
|
|
1304
|
+
if (SANITIZE_DOM && (lcName === "id" || lcName === "name") && (value in document2 || value in formElement)) {
|
|
1305
|
+
return false;
|
|
2212
1306
|
}
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
if (
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
1307
|
+
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR2, lcName)) ;
|
|
1308
|
+
else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR2, lcName)) ;
|
|
1309
|
+
else if (EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag)) ;
|
|
1310
|
+
else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
1311
|
+
if (
|
|
1312
|
+
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
1313
|
+
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1314
|
+
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
1315
|
+
_isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName, lcTag)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
1316
|
+
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1317
|
+
lcName === "is" && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))
|
|
1318
|
+
) ;
|
|
1319
|
+
else {
|
|
2221
1320
|
return false;
|
|
2222
1321
|
}
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
1322
|
+
} else if (URI_SAFE_ATTRIBUTES[lcName]) ;
|
|
1323
|
+
else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE2, ""))) ;
|
|
1324
|
+
else if ((lcName === "src" || lcName === "xlink:href" || lcName === "href") && lcTag !== "script" && stringIndexOf(value, "data:") === 0 && DATA_URI_TAGS[lcTag]) ;
|
|
1325
|
+
else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA2, stringReplace(value, ATTR_WHITESPACE2, ""))) ;
|
|
1326
|
+
else if (value) {
|
|
2226
1327
|
return false;
|
|
2227
|
-
}
|
|
1328
|
+
} else ;
|
|
1329
|
+
return true;
|
|
1330
|
+
};
|
|
1331
|
+
const _isBasicCustomElement = function _isBasicCustomElement2(tagName) {
|
|
1332
|
+
return tagName !== "annotation-xml" && stringMatch(tagName, CUSTOM_ELEMENT2);
|
|
2228
1333
|
};
|
|
2229
|
-
const _sanitizeAttributes = function _sanitizeAttributes2(currentNode
|
|
1334
|
+
const _sanitizeAttributes = function _sanitizeAttributes2(currentNode) {
|
|
2230
1335
|
_executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
1336
|
+
const {
|
|
1337
|
+
attributes
|
|
1338
|
+
} = currentNode;
|
|
1339
|
+
if (!attributes || _isClobbered(currentNode)) {
|
|
1340
|
+
return;
|
|
1341
|
+
}
|
|
2235
1342
|
const hookEvent = {
|
|
2236
1343
|
attrName: "",
|
|
2237
1344
|
attrValue: "",
|
|
@@ -2240,114 +1347,103 @@ function createDOMPurify() {
|
|
|
2240
1347
|
forceKeepAttr: void 0
|
|
2241
1348
|
};
|
|
2242
1349
|
let l = attributes.length;
|
|
2243
|
-
const lcTag = transformCaseFunc(currentNode.nodeName);
|
|
2244
1350
|
while (l--) {
|
|
2245
1351
|
const attr = attributes[l];
|
|
2246
|
-
const
|
|
1352
|
+
const {
|
|
1353
|
+
name,
|
|
1354
|
+
namespaceURI,
|
|
1355
|
+
value: attrValue
|
|
1356
|
+
} = attr;
|
|
2247
1357
|
const lcName = transformCaseFunc(name);
|
|
2248
1358
|
const initValue = attrValue;
|
|
2249
1359
|
let value = name === "value" ? initValue : stringTrim(initValue);
|
|
2250
|
-
let recreatedNamedProp = false;
|
|
2251
1360
|
hookEvent.attrName = lcName;
|
|
2252
1361
|
hookEvent.attrValue = value;
|
|
2253
1362
|
hookEvent.keepAttr = true;
|
|
2254
1363
|
hookEvent.forceKeepAttr = void 0;
|
|
2255
1364
|
_executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent);
|
|
2256
1365
|
value = hookEvent.attrValue;
|
|
2257
|
-
if (SANITIZE_NAMED_PROPS && (lcName === "id" || lcName === "name")
|
|
2258
|
-
_removeAttribute(name, currentNode
|
|
1366
|
+
if (SANITIZE_NAMED_PROPS && (lcName === "id" || lcName === "name")) {
|
|
1367
|
+
_removeAttribute(name, currentNode);
|
|
2259
1368
|
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
2260
|
-
recreatedNamedProp = true;
|
|
2261
1369
|
}
|
|
2262
|
-
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|
|
|
2263
|
-
_removeAttribute(name, currentNode
|
|
1370
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, value)) {
|
|
1371
|
+
_removeAttribute(name, currentNode);
|
|
2264
1372
|
continue;
|
|
2265
1373
|
}
|
|
2266
1374
|
if (lcName === "attributename" && stringMatch(value, "href")) {
|
|
2267
|
-
_removeAttribute(name, currentNode
|
|
1375
|
+
_removeAttribute(name, currentNode);
|
|
1376
|
+
continue;
|
|
1377
|
+
}
|
|
1378
|
+
if (hookEvent.forceKeepAttr) {
|
|
2268
1379
|
continue;
|
|
2269
1380
|
}
|
|
2270
|
-
if (hookEvent.forceKeepAttr) continue;
|
|
2271
1381
|
if (!hookEvent.keepAttr) {
|
|
2272
|
-
_removeAttribute(name, currentNode
|
|
1382
|
+
_removeAttribute(name, currentNode);
|
|
2273
1383
|
continue;
|
|
2274
1384
|
}
|
|
2275
|
-
if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(
|
|
2276
|
-
_removeAttribute(name, currentNode
|
|
1385
|
+
if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
|
|
1386
|
+
_removeAttribute(name, currentNode);
|
|
2277
1387
|
continue;
|
|
2278
1388
|
}
|
|
2279
|
-
if (SAFE_FOR_TEMPLATES)
|
|
1389
|
+
if (SAFE_FOR_TEMPLATES) {
|
|
1390
|
+
arrayForEach([MUSTACHE_EXPR2, ERB_EXPR2, TMPLIT_EXPR2], (expr) => {
|
|
1391
|
+
value = stringReplace(value, expr, " ");
|
|
1392
|
+
});
|
|
1393
|
+
}
|
|
1394
|
+
const lcTag = transformCaseFunc(currentNode.nodeName);
|
|
2280
1395
|
if (!_isValidAttribute(lcTag, lcName, value)) {
|
|
2281
|
-
_removeAttribute(name, currentNode
|
|
1396
|
+
_removeAttribute(name, currentNode);
|
|
2282
1397
|
continue;
|
|
2283
1398
|
}
|
|
2284
|
-
|
|
1399
|
+
if (trustedTypesPolicy && typeof trustedTypes === "object" && typeof trustedTypes.getAttributeType === "function") {
|
|
1400
|
+
if (namespaceURI) ;
|
|
1401
|
+
else {
|
|
1402
|
+
switch (trustedTypes.getAttributeType(lcTag, lcName)) {
|
|
1403
|
+
case "TrustedHTML": {
|
|
1404
|
+
value = trustedTypesPolicy.createHTML(value);
|
|
1405
|
+
break;
|
|
1406
|
+
}
|
|
1407
|
+
case "TrustedScriptURL": {
|
|
1408
|
+
value = trustedTypesPolicy.createScriptURL(value);
|
|
1409
|
+
break;
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
2285
1414
|
if (value !== initValue) {
|
|
2286
|
-
|
|
1415
|
+
try {
|
|
1416
|
+
if (namespaceURI) {
|
|
1417
|
+
currentNode.setAttributeNS(namespaceURI, name, value);
|
|
1418
|
+
} else {
|
|
1419
|
+
currentNode.setAttribute(name, value);
|
|
1420
|
+
}
|
|
1421
|
+
if (_isClobbered(currentNode)) {
|
|
1422
|
+
_forceRemove(currentNode);
|
|
1423
|
+
} else {
|
|
1424
|
+
arrayPop(DOMPurify.removed);
|
|
1425
|
+
}
|
|
1426
|
+
} catch (_) {
|
|
1427
|
+
_removeAttribute(name, currentNode);
|
|
1428
|
+
}
|
|
2287
1429
|
}
|
|
2288
1430
|
}
|
|
2289
1431
|
_executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
|
|
2290
|
-
_handleHookDetachedNode(currentNode, root);
|
|
2291
1432
|
};
|
|
2292
|
-
const
|
|
1433
|
+
const _sanitizeShadowDOM = function _sanitizeShadowDOM2(fragment) {
|
|
2293
1434
|
let shadowNode = null;
|
|
2294
1435
|
const shadowIterator = _createNodeIterator(fragment);
|
|
2295
1436
|
_executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
|
|
2296
1437
|
while (shadowNode = shadowIterator.nextNode()) {
|
|
2297
1438
|
_executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
|
|
2298
|
-
_sanitizeElements(shadowNode
|
|
2299
|
-
_sanitizeAttributes(shadowNode
|
|
2300
|
-
if (
|
|
2301
|
-
|
|
2302
|
-
const innerSr = getShadowRoot(shadowNode);
|
|
2303
|
-
if (_isDocumentFragment(innerSr)) {
|
|
2304
|
-
_sanitizeAttachedShadowRoots(innerSr);
|
|
2305
|
-
_sanitizeShadowDOM2(innerSr);
|
|
2306
|
-
}
|
|
1439
|
+
_sanitizeElements(shadowNode);
|
|
1440
|
+
_sanitizeAttributes(shadowNode);
|
|
1441
|
+
if (shadowNode.content instanceof DocumentFragment) {
|
|
1442
|
+
_sanitizeShadowDOM2(shadowNode.content);
|
|
2307
1443
|
}
|
|
2308
1444
|
}
|
|
2309
1445
|
_executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
|
|
2310
1446
|
};
|
|
2311
|
-
const _sanitizeAttachedShadowRoots = function _sanitizeAttachedShadowRoots2(root) {
|
|
2312
|
-
const stack = [{
|
|
2313
|
-
node: root,
|
|
2314
|
-
shadow: null
|
|
2315
|
-
}];
|
|
2316
|
-
while (stack.length > 0) {
|
|
2317
|
-
const item = stack.pop();
|
|
2318
|
-
if (item.shadow) {
|
|
2319
|
-
_sanitizeShadowDOM2(item.shadow);
|
|
2320
|
-
continue;
|
|
2321
|
-
}
|
|
2322
|
-
const node = item.node;
|
|
2323
|
-
const isElement = _readNodeType(node) === NODE_TYPE.element;
|
|
2324
|
-
const childNodes = getChildNodes(node);
|
|
2325
|
-
if (childNodes) for (let i = childNodes.length - 1; i >= 0; --i) stack.push({
|
|
2326
|
-
node: childNodes[i],
|
|
2327
|
-
shadow: null
|
|
2328
|
-
});
|
|
2329
|
-
if (isElement) {
|
|
2330
|
-
const rootName = getNodeName ? getNodeName(node) : null;
|
|
2331
|
-
if (typeof rootName === "string" && transformCaseFunc(rootName) === "template") {
|
|
2332
|
-
const content = node.content;
|
|
2333
|
-
if (_isDocumentFragment(content)) stack.push({
|
|
2334
|
-
node: content,
|
|
2335
|
-
shadow: null
|
|
2336
|
-
});
|
|
2337
|
-
}
|
|
2338
|
-
}
|
|
2339
|
-
if (isElement) {
|
|
2340
|
-
const sr = getShadowRoot(node);
|
|
2341
|
-
if (_isDocumentFragment(sr)) stack.push({
|
|
2342
|
-
node: null,
|
|
2343
|
-
shadow: sr
|
|
2344
|
-
}, {
|
|
2345
|
-
node: sr,
|
|
2346
|
-
shadow: null
|
|
2347
|
-
});
|
|
2348
|
-
}
|
|
2349
|
-
}
|
|
2350
|
-
};
|
|
2351
1447
|
DOMPurify.sanitize = function(dirty) {
|
|
2352
1448
|
let cfg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2353
1449
|
let body = null;
|
|
@@ -2355,124 +1451,119 @@ function createDOMPurify() {
|
|
|
2355
1451
|
let currentNode = null;
|
|
2356
1452
|
let returnNode = null;
|
|
2357
1453
|
IS_EMPTY_INPUT = !dirty;
|
|
2358
|
-
if (IS_EMPTY_INPUT)
|
|
1454
|
+
if (IS_EMPTY_INPUT) {
|
|
1455
|
+
dirty = "<!-->";
|
|
1456
|
+
}
|
|
2359
1457
|
if (typeof dirty !== "string" && !_isNode(dirty)) {
|
|
2360
|
-
dirty
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
if (
|
|
1458
|
+
if (typeof dirty.toString === "function") {
|
|
1459
|
+
dirty = dirty.toString();
|
|
1460
|
+
if (typeof dirty !== "string") {
|
|
1461
|
+
throw typeErrorCreate("dirty is not a string, aborting");
|
|
1462
|
+
}
|
|
1463
|
+
} else {
|
|
1464
|
+
throw typeErrorCreate("toString is not a function");
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
if (!DOMPurify.isSupported) {
|
|
1468
|
+
return dirty;
|
|
1469
|
+
}
|
|
1470
|
+
if (!SET_CONFIG) {
|
|
1471
|
+
_parseConfig(cfg);
|
|
1472
|
+
}
|
|
2370
1473
|
DOMPurify.removed = [];
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
if (
|
|
2376
|
-
const tagName = transformCaseFunc(
|
|
1474
|
+
if (typeof dirty === "string") {
|
|
1475
|
+
IN_PLACE = false;
|
|
1476
|
+
}
|
|
1477
|
+
if (IN_PLACE) {
|
|
1478
|
+
if (dirty.nodeName) {
|
|
1479
|
+
const tagName = transformCaseFunc(dirty.nodeName);
|
|
2377
1480
|
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
2378
|
-
_neutralizeRoot(dirty);
|
|
2379
1481
|
throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
|
|
2380
1482
|
}
|
|
2381
1483
|
}
|
|
2382
|
-
|
|
2383
|
-
_neutralizeRoot(dirty);
|
|
2384
|
-
throw typeErrorCreate("root node is clobbered and cannot be sanitized in-place");
|
|
2385
|
-
}
|
|
2386
|
-
try {
|
|
2387
|
-
_sanitizeAttachedShadowRoots(dirty);
|
|
2388
|
-
} catch (error) {
|
|
2389
|
-
_neutralizeRoot(dirty);
|
|
2390
|
-
throw error;
|
|
2391
|
-
}
|
|
2392
|
-
} else if (_isNode(dirty)) {
|
|
1484
|
+
} else if (dirty instanceof Node2) {
|
|
2393
1485
|
body = _initDocument("<!---->");
|
|
2394
1486
|
importedNode = body.ownerDocument.importNode(dirty, true);
|
|
2395
|
-
if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === "BODY")
|
|
2396
|
-
|
|
2397
|
-
else
|
|
2398
|
-
|
|
1487
|
+
if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === "BODY") {
|
|
1488
|
+
body = importedNode;
|
|
1489
|
+
} else if (importedNode.nodeName === "HTML") {
|
|
1490
|
+
body = importedNode;
|
|
1491
|
+
} else {
|
|
1492
|
+
body.appendChild(importedNode);
|
|
1493
|
+
}
|
|
2399
1494
|
} else {
|
|
2400
|
-
if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&
|
|
1495
|
+
if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && // eslint-disable-next-line unicorn/prefer-includes
|
|
1496
|
+
dirty.indexOf("<") === -1) {
|
|
1497
|
+
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;
|
|
1498
|
+
}
|
|
2401
1499
|
body = _initDocument(dirty);
|
|
2402
|
-
if (!body)
|
|
2403
|
-
|
|
2404
|
-
if (body && FORCE_BODY) _forceRemove(body.firstChild);
|
|
2405
|
-
const walkRoot = inPlace ? dirty : body;
|
|
2406
|
-
try {
|
|
2407
|
-
const nodeIterator = _createNodeIterator(walkRoot);
|
|
2408
|
-
while (currentNode = nodeIterator.nextNode()) {
|
|
2409
|
-
_sanitizeElements(currentNode, walkRoot);
|
|
2410
|
-
_sanitizeAttributes(currentNode, walkRoot);
|
|
2411
|
-
if (_isDocumentFragment(currentNode.content)) _sanitizeShadowDOM2(currentNode.content);
|
|
1500
|
+
if (!body) {
|
|
1501
|
+
return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : "";
|
|
2412
1502
|
}
|
|
2413
|
-
}
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
1503
|
+
}
|
|
1504
|
+
if (body && FORCE_BODY) {
|
|
1505
|
+
_forceRemove(body.firstChild);
|
|
1506
|
+
}
|
|
1507
|
+
const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);
|
|
1508
|
+
while (currentNode = nodeIterator.nextNode()) {
|
|
1509
|
+
_sanitizeElements(currentNode);
|
|
1510
|
+
_sanitizeAttributes(currentNode);
|
|
1511
|
+
if (currentNode.content instanceof DocumentFragment) {
|
|
1512
|
+
_sanitizeShadowDOM(currentNode.content);
|
|
2419
1513
|
}
|
|
2420
|
-
throw error;
|
|
2421
1514
|
}
|
|
2422
|
-
if (
|
|
2423
|
-
let rootWasRemoved = false;
|
|
2424
|
-
arrayForEach(DOMPurify.removed, (entry) => {
|
|
2425
|
-
if (entry.element) {
|
|
2426
|
-
if (entry.element === dirty) rootWasRemoved = true;
|
|
2427
|
-
_neutralizeSubtree(entry.element);
|
|
2428
|
-
}
|
|
2429
|
-
});
|
|
2430
|
-
if (rootWasRemoved) throw typeErrorCreate("a node selected for removal could not be safely returned; refusing to sanitize in place");
|
|
2431
|
-
if (SAFE_FOR_TEMPLATES) _scrubTemplateExpressions2(dirty);
|
|
1515
|
+
if (IN_PLACE) {
|
|
2432
1516
|
return dirty;
|
|
2433
1517
|
}
|
|
2434
1518
|
if (RETURN_DOM) {
|
|
2435
|
-
if (SAFE_FOR_TEMPLATES) _scrubTemplateExpressions2(body);
|
|
2436
1519
|
if (RETURN_DOM_FRAGMENT) {
|
|
2437
1520
|
returnNode = createDocumentFragment.call(body.ownerDocument);
|
|
2438
|
-
while (body.firstChild)
|
|
2439
|
-
|
|
2440
|
-
|
|
1521
|
+
while (body.firstChild) {
|
|
1522
|
+
returnNode.appendChild(body.firstChild);
|
|
1523
|
+
}
|
|
1524
|
+
} else {
|
|
1525
|
+
returnNode = body;
|
|
1526
|
+
}
|
|
1527
|
+
if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {
|
|
1528
|
+
returnNode = importNode.call(originalDocument, returnNode, true);
|
|
1529
|
+
}
|
|
2441
1530
|
return returnNode;
|
|
2442
1531
|
}
|
|
2443
1532
|
let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
|
|
2444
|
-
if (WHOLE_DOCUMENT && ALLOWED_TAGS["!doctype"] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name))
|
|
2445
|
-
|
|
2446
|
-
|
|
1533
|
+
if (WHOLE_DOCUMENT && ALLOWED_TAGS["!doctype"] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {
|
|
1534
|
+
serializedHTML = "<!DOCTYPE " + body.ownerDocument.doctype.name + ">\n" + serializedHTML;
|
|
1535
|
+
}
|
|
1536
|
+
if (SAFE_FOR_TEMPLATES) {
|
|
1537
|
+
arrayForEach([MUSTACHE_EXPR2, ERB_EXPR2, TMPLIT_EXPR2], (expr) => {
|
|
1538
|
+
serializedHTML = stringReplace(serializedHTML, expr, " ");
|
|
1539
|
+
});
|
|
1540
|
+
}
|
|
1541
|
+
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;
|
|
2447
1542
|
};
|
|
2448
1543
|
DOMPurify.setConfig = function() {
|
|
2449
1544
|
let cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2450
1545
|
_parseConfig(cfg);
|
|
2451
1546
|
SET_CONFIG = true;
|
|
2452
|
-
SET_CONFIG_ALLOWED_TAGS = ALLOWED_TAGS;
|
|
2453
|
-
SET_CONFIG_ALLOWED_ATTR = ALLOWED_ATTR;
|
|
2454
1547
|
};
|
|
2455
1548
|
DOMPurify.clearConfig = function() {
|
|
2456
1549
|
CONFIG = null;
|
|
2457
1550
|
SET_CONFIG = false;
|
|
2458
|
-
SET_CONFIG_ALLOWED_TAGS = null;
|
|
2459
|
-
SET_CONFIG_ALLOWED_ATTR = null;
|
|
2460
|
-
trustedTypesPolicy = defaultTrustedTypesPolicy;
|
|
2461
|
-
emptyHTML = "";
|
|
2462
1551
|
};
|
|
2463
1552
|
DOMPurify.isValidAttribute = function(tag, attr, value) {
|
|
2464
|
-
if (!CONFIG)
|
|
1553
|
+
if (!CONFIG) {
|
|
1554
|
+
_parseConfig({});
|
|
1555
|
+
}
|
|
2465
1556
|
const lcTag = transformCaseFunc(tag);
|
|
2466
1557
|
const lcName = transformCaseFunc(attr);
|
|
2467
1558
|
return _isValidAttribute(lcTag, lcName, value);
|
|
2468
1559
|
};
|
|
2469
1560
|
DOMPurify.addHook = function(entryPoint, hookFunction) {
|
|
2470
|
-
if (typeof hookFunction !== "function")
|
|
2471
|
-
|
|
1561
|
+
if (typeof hookFunction !== "function") {
|
|
1562
|
+
return;
|
|
1563
|
+
}
|
|
2472
1564
|
arrayPush(hooks[entryPoint], hookFunction);
|
|
2473
1565
|
};
|
|
2474
1566
|
DOMPurify.removeHook = function(entryPoint, hookFunction) {
|
|
2475
|
-
if (!objectHasOwnProperty(hooks, entryPoint)) return;
|
|
2476
1567
|
if (hookFunction !== void 0) {
|
|
2477
1568
|
const index2 = arrayLastIndexOf(hooks[entryPoint], hookFunction);
|
|
2478
1569
|
return index2 === -1 ? void 0 : arraySplice(hooks[entryPoint], index2, 1)[0];
|
|
@@ -2480,7 +1571,6 @@ function createDOMPurify() {
|
|
|
2480
1571
|
return arrayPop(hooks[entryPoint]);
|
|
2481
1572
|
};
|
|
2482
1573
|
DOMPurify.removeHooks = function(entryPoint) {
|
|
2483
|
-
if (!objectHasOwnProperty(hooks, entryPoint)) return;
|
|
2484
1574
|
hooks[entryPoint] = [];
|
|
2485
1575
|
};
|
|
2486
1576
|
DOMPurify.removeAllHooks = function() {
|
|
@@ -2488,10 +1578,10 @@ function createDOMPurify() {
|
|
|
2488
1578
|
};
|
|
2489
1579
|
return DOMPurify;
|
|
2490
1580
|
}
|
|
2491
|
-
var
|
|
1581
|
+
var purify = createDOMPurify();
|
|
2492
1582
|
const purifyConfig = { FORBID_TAGS: ["img"] };
|
|
2493
|
-
if (typeof
|
|
2494
|
-
|
|
1583
|
+
if (typeof purify.addHook === "function" && typeof document !== "undefined" && document.createElement) {
|
|
1584
|
+
purify.addHook("uponSanitizeElement", (node, data) => {
|
|
2495
1585
|
var _a;
|
|
2496
1586
|
if (/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(data.tagName)) {
|
|
2497
1587
|
const tag = document.createElement("span");
|
|
@@ -2502,7 +1592,7 @@ if (typeof purify_default.addHook === "function" && typeof document !== "undefin
|
|
|
2502
1592
|
}
|
|
2503
1593
|
function xssPurify(str) {
|
|
2504
1594
|
if (typeof window === "undefined") return str;
|
|
2505
|
-
return
|
|
1595
|
+
return purify.sanitize(str, purifyConfig);
|
|
2506
1596
|
}
|
|
2507
1597
|
const highlightWords = (Word, title, inherit) => {
|
|
2508
1598
|
if (!Word) return xssPurify(title || "");
|
|
@@ -2512,12 +1602,11 @@ const highlightWords = (Word, title, inherit) => {
|
|
|
2512
1602
|
const str = title == null ? void 0 : title.replace(regexPattern, (_, match) => `<span style="color: ${color}; text-decoration: underline;">${match}</span>`);
|
|
2513
1603
|
return str;
|
|
2514
1604
|
};
|
|
2515
|
-
/*! js-cookie v3.0.
|
|
1605
|
+
/*! js-cookie v3.0.5 | MIT */
|
|
2516
1606
|
function assign$2(target) {
|
|
2517
1607
|
for (var i = 1; i < arguments.length; i++) {
|
|
2518
1608
|
var source = arguments[i];
|
|
2519
1609
|
for (var key in source) {
|
|
2520
|
-
if (key === "__proto__") continue;
|
|
2521
1610
|
target[key] = source[key];
|
|
2522
1611
|
}
|
|
2523
1612
|
}
|
|
@@ -2574,11 +1663,11 @@ function init(converter, defaultAttributes) {
|
|
|
2574
1663
|
var value = parts.slice(1).join("=");
|
|
2575
1664
|
try {
|
|
2576
1665
|
var found = decodeURIComponent(parts[0]);
|
|
2577
|
-
|
|
1666
|
+
jar[found] = converter.read(value, found);
|
|
2578
1667
|
if (name === found) {
|
|
2579
1668
|
break;
|
|
2580
1669
|
}
|
|
2581
|
-
} catch (
|
|
1670
|
+
} catch (e) {
|
|
2582
1671
|
}
|
|
2583
1672
|
}
|
|
2584
1673
|
return name ? jar[name] : jar;
|
|
@@ -2611,10 +1700,25 @@ function init(converter, defaultAttributes) {
|
|
|
2611
1700
|
}
|
|
2612
1701
|
var api = init(defaultConverter, { path: "/" });
|
|
2613
1702
|
/*!
|
|
2614
|
-
* shared v9.14.
|
|
1703
|
+
* shared v9.14.5
|
|
2615
1704
|
* (c) 2025 kazuya kawaguchi
|
|
2616
1705
|
* Released under the MIT License.
|
|
2617
1706
|
*/
|
|
1707
|
+
function warn(msg, err) {
|
|
1708
|
+
if (typeof console !== "undefined") {
|
|
1709
|
+
console.warn(`[intlify] ` + msg);
|
|
1710
|
+
if (err) {
|
|
1711
|
+
console.warn(err.stack);
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
const hasWarned = {};
|
|
1716
|
+
function warnOnce(msg) {
|
|
1717
|
+
if (!hasWarned[msg]) {
|
|
1718
|
+
hasWarned[msg] = true;
|
|
1719
|
+
warn(msg);
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
2618
1722
|
const inBrowser = typeof window !== "undefined";
|
|
2619
1723
|
let mark;
|
|
2620
1724
|
let measure;
|
|
@@ -2659,7 +1763,31 @@ const getGlobalThis = () => {
|
|
|
2659
1763
|
return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : create());
|
|
2660
1764
|
};
|
|
2661
1765
|
function escapeHtml(rawText) {
|
|
2662
|
-
return rawText.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1766
|
+
return rawText.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
1767
|
+
}
|
|
1768
|
+
function escapeAttributeValue(value) {
|
|
1769
|
+
return value.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
1770
|
+
}
|
|
1771
|
+
function sanitizeTranslatedHtml(html2) {
|
|
1772
|
+
html2 = html2.replace(/(\w+)\s*=\s*"([^"]*)"/g, (_, attrName, attrValue) => `${attrName}="${escapeAttributeValue(attrValue)}"`);
|
|
1773
|
+
html2 = html2.replace(/(\w+)\s*=\s*'([^']*)'/g, (_, attrName, attrValue) => `${attrName}='${escapeAttributeValue(attrValue)}'`);
|
|
1774
|
+
const eventHandlerPattern = /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi;
|
|
1775
|
+
if (eventHandlerPattern.test(html2)) {
|
|
1776
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1777
|
+
warn("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages.");
|
|
1778
|
+
}
|
|
1779
|
+
html2 = html2.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3");
|
|
1780
|
+
}
|
|
1781
|
+
const javascriptUrlPattern = [
|
|
1782
|
+
// In href, src, action, formaction attributes
|
|
1783
|
+
/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
|
|
1784
|
+
// In style attributes within url()
|
|
1785
|
+
/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi
|
|
1786
|
+
];
|
|
1787
|
+
javascriptUrlPattern.forEach((pattern) => {
|
|
1788
|
+
html2 = html2.replace(pattern, "$1javascript:");
|
|
1789
|
+
});
|
|
1790
|
+
return html2;
|
|
2663
1791
|
}
|
|
2664
1792
|
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
2665
1793
|
function hasOwn(obj, key) {
|
|
@@ -2722,21 +1850,6 @@ function incrementer(code2) {
|
|
|
2722
1850
|
let current2 = code2;
|
|
2723
1851
|
return () => ++current2;
|
|
2724
1852
|
}
|
|
2725
|
-
function warn(msg, err) {
|
|
2726
|
-
if (typeof console !== "undefined") {
|
|
2727
|
-
console.warn(`[intlify] ` + msg);
|
|
2728
|
-
if (err) {
|
|
2729
|
-
console.warn(err.stack);
|
|
2730
|
-
}
|
|
2731
|
-
}
|
|
2732
|
-
}
|
|
2733
|
-
const hasWarned = {};
|
|
2734
|
-
function warnOnce(msg) {
|
|
2735
|
-
if (!hasWarned[msg]) {
|
|
2736
|
-
hasWarned[msg] = true;
|
|
2737
|
-
warn(msg);
|
|
2738
|
-
}
|
|
2739
|
-
}
|
|
2740
1853
|
function createEmitter() {
|
|
2741
1854
|
const events = /* @__PURE__ */ new Map();
|
|
2742
1855
|
const emitter2 = {
|
|
@@ -2785,7 +1898,7 @@ function deepCopy(src, des) {
|
|
|
2785
1898
|
}
|
|
2786
1899
|
}
|
|
2787
1900
|
/*!
|
|
2788
|
-
* message-compiler v9.14.
|
|
1901
|
+
* message-compiler v9.14.5
|
|
2789
1902
|
* (c) 2025 kazuya kawaguchi
|
|
2790
1903
|
* Released under the MIT License.
|
|
2791
1904
|
*/
|
|
@@ -4335,7 +3448,7 @@ function baseCompile$1(source, options = {}) {
|
|
|
4335
3448
|
}
|
|
4336
3449
|
}
|
|
4337
3450
|
/*!
|
|
4338
|
-
* core-base v9.14.
|
|
3451
|
+
* core-base v9.14.5
|
|
4339
3452
|
* (c) 2025 kazuya kawaguchi
|
|
4340
3453
|
* Released under the MIT License.
|
|
4341
3454
|
*/
|
|
@@ -5142,7 +4255,7 @@ function appendItemToChain(chain, target, blocks) {
|
|
|
5142
4255
|
}
|
|
5143
4256
|
return follow;
|
|
5144
4257
|
}
|
|
5145
|
-
const VERSION$1 = "9.14.
|
|
4258
|
+
const VERSION$1 = "9.14.5";
|
|
5146
4259
|
const NOT_REOSLVED = -1;
|
|
5147
4260
|
const DEFAULT_LOCALE = "en-US";
|
|
5148
4261
|
const MISSING_RESOLVE_VALUE = "";
|
|
@@ -5509,7 +4622,10 @@ function translate(context, ...args) {
|
|
|
5509
4622
|
const ctxOptions = getMessageContextOptions(context, targetLocale, message, options);
|
|
5510
4623
|
const msgContext = createMessageContext(ctxOptions);
|
|
5511
4624
|
const messaged = evaluateMessage(context, msg, msgContext);
|
|
5512
|
-
|
|
4625
|
+
let ret = postTranslation ? postTranslation(messaged, key) : messaged;
|
|
4626
|
+
if (escapeParameter && isString$1(ret)) {
|
|
4627
|
+
ret = sanitizeTranslatedHtml(ret);
|
|
4628
|
+
}
|
|
5513
4629
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
5514
4630
|
const payloads = {
|
|
5515
4631
|
timestamp: Date.now(),
|
|
@@ -6226,11 +5342,11 @@ function setupDevtoolsPlugin(pluginDescriptor, setupFn) {
|
|
|
6226
5342
|
}
|
|
6227
5343
|
}
|
|
6228
5344
|
/*!
|
|
6229
|
-
* vue-i18n v9.14.
|
|
5345
|
+
* vue-i18n v9.14.5
|
|
6230
5346
|
* (c) 2025 kazuya kawaguchi
|
|
6231
5347
|
* Released under the MIT License.
|
|
6232
5348
|
*/
|
|
6233
|
-
const VERSION = "9.14.
|
|
5349
|
+
const VERSION = "9.14.5";
|
|
6234
5350
|
function initFeatureFlags() {
|
|
6235
5351
|
if (typeof __VUE_I18N_FULL_INSTALL__ !== "boolean") {
|
|
6236
5352
|
getGlobalThis().__VUE_I18N_FULL_INSTALL__ = true;
|
|
@@ -6499,7 +5615,7 @@ function createComposer(options = {}, VueI18nLegacy) {
|
|
|
6499
5615
|
const { __root, __injectWithOption } = options;
|
|
6500
5616
|
const _isGlobal = __root === void 0;
|
|
6501
5617
|
const flatJson = options.flatJson;
|
|
6502
|
-
const
|
|
5618
|
+
const _ref = inBrowser ? ref : shallowRef;
|
|
6503
5619
|
const translateExistCompatible = !!options.translateExistCompatible;
|
|
6504
5620
|
if (process.env.NODE_ENV !== "production") {
|
|
6505
5621
|
if (translateExistCompatible && true) {
|
|
@@ -6507,17 +5623,17 @@ function createComposer(options = {}, VueI18nLegacy) {
|
|
|
6507
5623
|
}
|
|
6508
5624
|
}
|
|
6509
5625
|
let _inheritLocale = isBoolean(options.inheritLocale) ? options.inheritLocale : true;
|
|
6510
|
-
const _locale =
|
|
5626
|
+
const _locale = _ref(
|
|
6511
5627
|
// prettier-ignore
|
|
6512
5628
|
__root && _inheritLocale ? __root.locale.value : isString$1(options.locale) ? options.locale : DEFAULT_LOCALE
|
|
6513
5629
|
);
|
|
6514
|
-
const _fallbackLocale =
|
|
5630
|
+
const _fallbackLocale = _ref(
|
|
6515
5631
|
// prettier-ignore
|
|
6516
5632
|
__root && _inheritLocale ? __root.fallbackLocale.value : isString$1(options.fallbackLocale) || isArray(options.fallbackLocale) || isPlainObject(options.fallbackLocale) || options.fallbackLocale === false ? options.fallbackLocale : _locale.value
|
|
6517
5633
|
);
|
|
6518
|
-
const _messages =
|
|
6519
|
-
const _datetimeFormats =
|
|
6520
|
-
const _numberFormats =
|
|
5634
|
+
const _messages = _ref(getLocaleMessages(_locale.value, options));
|
|
5635
|
+
const _datetimeFormats = _ref(isPlainObject(options.datetimeFormats) ? options.datetimeFormats : { [_locale.value]: {} });
|
|
5636
|
+
const _numberFormats = _ref(isPlainObject(options.numberFormats) ? options.numberFormats : { [_locale.value]: {} });
|
|
6521
5637
|
let _missingWarn = __root ? __root.missingWarn : isBoolean(options.missingWarn) || isRegExp(options.missingWarn) ? options.missingWarn : true;
|
|
6522
5638
|
let _fallbackWarn = __root ? __root.fallbackWarn : isBoolean(options.fallbackWarn) || isRegExp(options.fallbackWarn) ? options.fallbackWarn : true;
|
|
6523
5639
|
let _fallbackRoot = __root ? __root.fallbackRoot : isBoolean(options.fallbackRoot) ? options.fallbackRoot : true;
|
|
@@ -7527,7 +6643,7 @@ function makeParams(value) {
|
|
|
7527
6643
|
}
|
|
7528
6644
|
return [path, named, options];
|
|
7529
6645
|
}
|
|
7530
|
-
function
|
|
6646
|
+
function apply(app, i18n2, ...options) {
|
|
7531
6647
|
const pluginOptions = isPlainObject(options[0]) ? options[0] : {};
|
|
7532
6648
|
const useI18nComponentName = !!pluginOptions.useI18nComponentName;
|
|
7533
6649
|
const globalInstall = isBoolean(pluginOptions.globalInstall) ? pluginOptions.globalInstall : true;
|
|
@@ -8078,7 +7194,7 @@ function createI18n(options = {}, VueI18nLegacy) {
|
|
|
8078
7194
|
globalReleaseHandler = injectGlobalFields(app, i18n2.global);
|
|
8079
7195
|
}
|
|
8080
7196
|
if (__VUE_I18N_FULL_INSTALL__) {
|
|
8081
|
-
|
|
7197
|
+
apply(app, i18n2, ...options2);
|
|
8082
7198
|
}
|
|
8083
7199
|
if (__VUE_I18N_LEGACY_API__ && __legacyMode) {
|
|
8084
7200
|
app.mixin(defineMixin(__global, __global.__composer, i18n2));
|
|
@@ -11565,7 +10681,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
11565
10681
|
key: 0,
|
|
11566
10682
|
class: "gc-flash-tag__icon",
|
|
11567
10683
|
src: iconUrl.value
|
|
11568
|
-
}, null, 8, _hoisted_1$R)) : renderSlot(_ctx.$slots, "default", {
|
|
10684
|
+
}, null, 8, _hoisted_1$R)) : renderSlot(_ctx.$slots, "default", { key: 1 })
|
|
11569
10685
|
], 16)
|
|
11570
10686
|
]),
|
|
11571
10687
|
_: 3
|
|
@@ -11616,7 +10732,7 @@ var hasRequiredCore;
|
|
|
11616
10732
|
function requireCore() {
|
|
11617
10733
|
if (hasRequiredCore) return core.exports;
|
|
11618
10734
|
hasRequiredCore = 1;
|
|
11619
|
-
(function(module, exports) {
|
|
10735
|
+
(function(module, exports$1) {
|
|
11620
10736
|
(function(root, factory) {
|
|
11621
10737
|
{
|
|
11622
10738
|
module.exports = factory();
|
|
@@ -12223,7 +11339,7 @@ var hasRequiredEncBase64;
|
|
|
12223
11339
|
function requireEncBase64() {
|
|
12224
11340
|
if (hasRequiredEncBase64) return encBase64.exports;
|
|
12225
11341
|
hasRequiredEncBase64 = 1;
|
|
12226
|
-
(function(module, exports) {
|
|
11342
|
+
(function(module, exports$1) {
|
|
12227
11343
|
(function(root, factory) {
|
|
12228
11344
|
{
|
|
12229
11345
|
module.exports = factory(requireCore());
|
|
@@ -12330,7 +11446,7 @@ var hasRequiredMd5;
|
|
|
12330
11446
|
function requireMd5() {
|
|
12331
11447
|
if (hasRequiredMd5) return md5.exports;
|
|
12332
11448
|
hasRequiredMd5 = 1;
|
|
12333
|
-
(function(module, exports) {
|
|
11449
|
+
(function(module, exports$1) {
|
|
12334
11450
|
(function(root, factory) {
|
|
12335
11451
|
{
|
|
12336
11452
|
module.exports = factory(requireCore());
|
|
@@ -12509,7 +11625,7 @@ var hasRequiredSha1;
|
|
|
12509
11625
|
function requireSha1() {
|
|
12510
11626
|
if (hasRequiredSha1) return sha1.exports;
|
|
12511
11627
|
hasRequiredSha1 = 1;
|
|
12512
|
-
(function(module, exports) {
|
|
11628
|
+
(function(module, exports$1) {
|
|
12513
11629
|
(function(root, factory) {
|
|
12514
11630
|
{
|
|
12515
11631
|
module.exports = factory(requireCore());
|
|
@@ -12599,7 +11715,7 @@ var hasRequiredHmac;
|
|
|
12599
11715
|
function requireHmac() {
|
|
12600
11716
|
if (hasRequiredHmac) return hmac.exports;
|
|
12601
11717
|
hasRequiredHmac = 1;
|
|
12602
|
-
(function(module, exports) {
|
|
11718
|
+
(function(module, exports$1) {
|
|
12603
11719
|
(function(root, factory) {
|
|
12604
11720
|
{
|
|
12605
11721
|
module.exports = factory(requireCore());
|
|
@@ -12704,7 +11820,7 @@ var hasRequiredEvpkdf;
|
|
|
12704
11820
|
function requireEvpkdf() {
|
|
12705
11821
|
if (hasRequiredEvpkdf) return evpkdf.exports;
|
|
12706
11822
|
hasRequiredEvpkdf = 1;
|
|
12707
|
-
(function(module, exports) {
|
|
11823
|
+
(function(module, exports$1) {
|
|
12708
11824
|
(function(root, factory, undef) {
|
|
12709
11825
|
{
|
|
12710
11826
|
module.exports = factory(requireCore(), requireSha1(), requireHmac());
|
|
@@ -12794,7 +11910,7 @@ var hasRequiredCipherCore;
|
|
|
12794
11910
|
function requireCipherCore() {
|
|
12795
11911
|
if (hasRequiredCipherCore) return cipherCore.exports;
|
|
12796
11912
|
hasRequiredCipherCore = 1;
|
|
12797
|
-
(function(module, exports) {
|
|
11913
|
+
(function(module, exports$1) {
|
|
12798
11914
|
(function(root, factory, undef) {
|
|
12799
11915
|
{
|
|
12800
11916
|
module.exports = factory(requireCore(), requireEvpkdf());
|
|
@@ -13353,11 +12469,15 @@ function requireCipherCore() {
|
|
|
13353
12469
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
13354
12470
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
13355
12471
|
*/
|
|
13356
|
-
execute: function(password, keySize, ivSize, salt) {
|
|
12472
|
+
execute: function(password, keySize, ivSize, salt, hasher) {
|
|
13357
12473
|
if (!salt) {
|
|
13358
12474
|
salt = WordArray.random(64 / 8);
|
|
13359
12475
|
}
|
|
13360
|
-
|
|
12476
|
+
if (!hasher) {
|
|
12477
|
+
var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
|
|
12478
|
+
} else {
|
|
12479
|
+
var key = EvpKDF.create({ keySize: keySize + ivSize, hasher }).compute(password, salt);
|
|
12480
|
+
}
|
|
13361
12481
|
var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);
|
|
13362
12482
|
key.sigBytes = keySize * 4;
|
|
13363
12483
|
return CipherParams.create({ key, iv, salt });
|
|
@@ -13391,7 +12511,7 @@ function requireCipherCore() {
|
|
|
13391
12511
|
*/
|
|
13392
12512
|
encrypt: function(cipher, message, password, cfg) {
|
|
13393
12513
|
cfg = this.cfg.extend(cfg);
|
|
13394
|
-
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize);
|
|
12514
|
+
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, cfg.salt, cfg.hasher);
|
|
13395
12515
|
cfg.iv = derivedParams.iv;
|
|
13396
12516
|
var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);
|
|
13397
12517
|
ciphertext.mixIn(derivedParams);
|
|
@@ -13417,7 +12537,7 @@ function requireCipherCore() {
|
|
|
13417
12537
|
decrypt: function(cipher, ciphertext, password, cfg) {
|
|
13418
12538
|
cfg = this.cfg.extend(cfg);
|
|
13419
12539
|
ciphertext = this._parse(ciphertext, cfg.format);
|
|
13420
|
-
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt);
|
|
12540
|
+
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt, cfg.hasher);
|
|
13421
12541
|
cfg.iv = derivedParams.iv;
|
|
13422
12542
|
var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);
|
|
13423
12543
|
return plaintext;
|
|
@@ -13428,7 +12548,7 @@ function requireCipherCore() {
|
|
|
13428
12548
|
})(cipherCore);
|
|
13429
12549
|
return cipherCore.exports;
|
|
13430
12550
|
}
|
|
13431
|
-
(function(module, exports) {
|
|
12551
|
+
(function(module, exports$1) {
|
|
13432
12552
|
(function(root, factory, undef) {
|
|
13433
12553
|
{
|
|
13434
12554
|
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
@@ -13577,7 +12697,7 @@ function requireCipherCore() {
|
|
|
13577
12697
|
var aesExports = aes.exports;
|
|
13578
12698
|
const AES = /* @__PURE__ */ getDefaultExportFromCjs(aesExports);
|
|
13579
12699
|
var padPkcs7 = { exports: {} };
|
|
13580
|
-
(function(module, exports) {
|
|
12700
|
+
(function(module, exports$1) {
|
|
13581
12701
|
(function(root, factory, undef) {
|
|
13582
12702
|
{
|
|
13583
12703
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
@@ -13589,7 +12709,7 @@ var padPkcs7 = { exports: {} };
|
|
|
13589
12709
|
var padPkcs7Exports = padPkcs7.exports;
|
|
13590
12710
|
const Pkcs7 = /* @__PURE__ */ getDefaultExportFromCjs(padPkcs7Exports);
|
|
13591
12711
|
var encUtf8 = { exports: {} };
|
|
13592
|
-
(function(module, exports) {
|
|
12712
|
+
(function(module, exports$1) {
|
|
13593
12713
|
(function(root, factory) {
|
|
13594
12714
|
{
|
|
13595
12715
|
module.exports = factory(requireCore());
|
|
@@ -14116,7 +13236,7 @@ const useBreadcrumb = () => {
|
|
|
14116
13236
|
return breadcrumb;
|
|
14117
13237
|
};
|
|
14118
13238
|
var relativeTime$1 = { exports: {} };
|
|
14119
|
-
(function(module, exports) {
|
|
13239
|
+
(function(module, exports$1) {
|
|
14120
13240
|
!function(r, e) {
|
|
14121
13241
|
module.exports = e();
|
|
14122
13242
|
}(commonjsGlobal, function() {
|
|
@@ -14160,7 +13280,7 @@ var relativeTime$1 = { exports: {} };
|
|
|
14160
13280
|
var relativeTimeExports = relativeTime$1.exports;
|
|
14161
13281
|
const relativeTime = /* @__PURE__ */ getDefaultExportFromCjs(relativeTimeExports);
|
|
14162
13282
|
var zhCn = { exports: {} };
|
|
14163
|
-
(function(module, exports) {
|
|
13283
|
+
(function(module, exports$1) {
|
|
14164
13284
|
!function(e, _) {
|
|
14165
13285
|
module.exports = _(dayjs);
|
|
14166
13286
|
}(commonjsGlobal, function(e) {
|
|
@@ -14179,39 +13299,39 @@ var zhCn = { exports: {} };
|
|
|
14179
13299
|
var zhCnExports = zhCn.exports;
|
|
14180
13300
|
const locale = /* @__PURE__ */ getDefaultExportFromCjs(zhCnExports);
|
|
14181
13301
|
var timezone = { exports: {} };
|
|
14182
|
-
(function(module, exports) {
|
|
13302
|
+
(function(module, exports$1) {
|
|
14183
13303
|
!function(t2, e) {
|
|
14184
13304
|
module.exports = e();
|
|
14185
13305
|
}(commonjsGlobal, function() {
|
|
14186
13306
|
var t2 = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, e = {};
|
|
14187
|
-
return function(n, i,
|
|
14188
|
-
var
|
|
13307
|
+
return function(n, i, o) {
|
|
13308
|
+
var r, a = function(t3, n2, i2) {
|
|
14189
13309
|
void 0 === i2 && (i2 = {});
|
|
14190
|
-
var
|
|
13310
|
+
var o2 = new Date(t3), r2 = function(t4, n3) {
|
|
14191
13311
|
void 0 === n3 && (n3 = {});
|
|
14192
|
-
var i3 = n3.timeZoneName || "short",
|
|
14193
|
-
return
|
|
13312
|
+
var i3 = n3.timeZoneName || "short", o3 = t4 + "|" + i3, r3 = e[o3];
|
|
13313
|
+
return r3 || (r3 = new Intl.DateTimeFormat("en-US", { hour12: false, timeZone: t4, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: i3 }), e[o3] = r3), r3;
|
|
14194
13314
|
}(n2, i2);
|
|
14195
|
-
return
|
|
13315
|
+
return r2.formatToParts(o2);
|
|
14196
13316
|
}, u = function(e2, n2) {
|
|
14197
|
-
for (var i2 = a(e2, n2),
|
|
13317
|
+
for (var i2 = a(e2, n2), r2 = [], u2 = 0; u2 < i2.length; u2 += 1) {
|
|
14198
13318
|
var f2 = i2[u2], s2 = f2.type, m = f2.value, c = t2[s2];
|
|
14199
|
-
c >= 0 && (
|
|
13319
|
+
c >= 0 && (r2[c] = parseInt(m, 10));
|
|
14200
13320
|
}
|
|
14201
|
-
var
|
|
14202
|
-
return (
|
|
13321
|
+
var d = r2[3], l = 24 === d ? 0 : d, h2 = r2[0] + "-" + r2[1] + "-" + r2[2] + " " + l + ":" + r2[4] + ":" + r2[5] + ":000", v = +e2;
|
|
13322
|
+
return (o.utc(h2).valueOf() - (v -= v % 1e3)) / 6e4;
|
|
14203
13323
|
}, f = i.prototype;
|
|
14204
13324
|
f.tz = function(t3, e2) {
|
|
14205
|
-
|
|
14206
|
-
var n2, i2 = this.utcOffset(), a2 = this.toDate(),
|
|
13325
|
+
void 0 === t3 && (t3 = r);
|
|
13326
|
+
var n2, i2 = this.utcOffset(), a2 = this.toDate(), u2 = a2.toLocaleString("en-US", { timeZone: t3 }), f2 = Math.round((a2 - new Date(u2)) / 1e3 / 60), s2 = 15 * -Math.round(a2.getTimezoneOffset() / 15) - f2;
|
|
14207
13327
|
if (!Number(s2)) n2 = this.utcOffset(0, e2);
|
|
14208
|
-
else if (n2 =
|
|
13328
|
+
else if (n2 = o(u2, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(s2, true), e2) {
|
|
14209
13329
|
var m = n2.utcOffset();
|
|
14210
13330
|
n2 = n2.add(i2 - m, "minute");
|
|
14211
13331
|
}
|
|
14212
13332
|
return n2.$x.$timezone = t3, n2;
|
|
14213
13333
|
}, f.offsetName = function(t3) {
|
|
14214
|
-
var e2 = this.$x.$timezone ||
|
|
13334
|
+
var e2 = this.$x.$timezone || o.tz.guess(), n2 = a(this.valueOf(), e2, { timeZoneName: t3 }).find(function(t4) {
|
|
14215
13335
|
return "timezonename" === t4.type.toLowerCase();
|
|
14216
13336
|
});
|
|
14217
13337
|
return n2 && n2.value;
|
|
@@ -14219,27 +13339,22 @@ var timezone = { exports: {} };
|
|
|
14219
13339
|
var s = f.startOf;
|
|
14220
13340
|
f.startOf = function(t3, e2) {
|
|
14221
13341
|
if (!this.$x || !this.$x.$timezone) return s.call(this, t3, e2);
|
|
14222
|
-
var n2 =
|
|
13342
|
+
var n2 = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
14223
13343
|
return s.call(n2, t3, e2).tz(this.$x.$timezone, true);
|
|
14224
|
-
},
|
|
14225
|
-
var i2 = n2 && e2, a2 = n2 || e2 ||
|
|
14226
|
-
if ("string" != typeof t3) return
|
|
14227
|
-
var s2 =
|
|
14228
|
-
|
|
14229
|
-
|
|
14230
|
-
|
|
14231
|
-
|
|
14232
|
-
|
|
14233
|
-
|
|
14234
|
-
|
|
14235
|
-
var o2 = u(i3 -= 60 * (r2 - e3) * 1e3, n3);
|
|
14236
|
-
return r2 === o2 ? [i3, r2] : [t4 - 60 * Math.min(r2, o2) * 1e3, Math.max(r2, o2)];
|
|
14237
|
-
}(s2, f2, a2), l = c[0], d = c[1], h2 = r(l).utcOffset(d);
|
|
14238
|
-
return h2.$x.$timezone = a2, h2;
|
|
14239
|
-
}, r.tz.guess = function() {
|
|
13344
|
+
}, o.tz = function(t3, e2, n2) {
|
|
13345
|
+
var i2 = n2 && e2, a2 = n2 || e2 || r, f2 = u(+o(), a2);
|
|
13346
|
+
if ("string" != typeof t3) return o(t3).tz(a2);
|
|
13347
|
+
var s2 = function(t4, e3, n3) {
|
|
13348
|
+
var i3 = t4 - 60 * e3 * 1e3, o2 = u(i3, n3);
|
|
13349
|
+
if (e3 === o2) return [i3, e3];
|
|
13350
|
+
var r2 = u(i3 -= 60 * (o2 - e3) * 1e3, n3);
|
|
13351
|
+
return o2 === r2 ? [i3, o2] : [t4 - 60 * Math.min(o2, r2) * 1e3, Math.max(o2, r2)];
|
|
13352
|
+
}(o.utc(t3, i2).valueOf(), f2, a2), m = s2[0], c = s2[1], d = o(m).utcOffset(c);
|
|
13353
|
+
return d.$x.$timezone = a2, d;
|
|
13354
|
+
}, o.tz.guess = function() {
|
|
14240
13355
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
14241
|
-
},
|
|
14242
|
-
|
|
13356
|
+
}, o.tz.setDefault = function(t3) {
|
|
13357
|
+
r = t3;
|
|
14243
13358
|
};
|
|
14244
13359
|
};
|
|
14245
13360
|
});
|
|
@@ -14247,7 +13362,7 @@ var timezone = { exports: {} };
|
|
|
14247
13362
|
var timezoneExports = timezone.exports;
|
|
14248
13363
|
const tz = /* @__PURE__ */ getDefaultExportFromCjs(timezoneExports);
|
|
14249
13364
|
var utc$1 = { exports: {} };
|
|
14250
|
-
(function(module, exports) {
|
|
13365
|
+
(function(module, exports$1) {
|
|
14251
13366
|
!function(t2, i) {
|
|
14252
13367
|
module.exports = i();
|
|
14253
13368
|
}(commonjsGlobal, function() {
|
|
@@ -15015,10 +14130,11 @@ function useShortcutConfig() {
|
|
|
15015
14130
|
});
|
|
15016
14131
|
}
|
|
15017
14132
|
const isEditableTarget = (target) => {
|
|
15018
|
-
|
|
14133
|
+
const element = target;
|
|
14134
|
+
if (!element || element.nodeType !== 1 || typeof element.closest !== "function") {
|
|
15019
14135
|
return false;
|
|
15020
14136
|
}
|
|
15021
|
-
return Boolean(
|
|
14137
|
+
return Boolean(element.closest("input, textarea, select, .CodeMirror-focused, .cm-editor.cm-focused")) || element.isContentEditable === true || Boolean(element.closest('[contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"]'));
|
|
15022
14138
|
};
|
|
15023
14139
|
const isComposingEvent = (event) => event.isComposing || event.keyCode === 229;
|
|
15024
14140
|
const shouldIgnoreShortcut = (event) => event.defaultPrevented || event.repeat || isComposingEvent(event) || event.composedPath().some(isEditableTarget) || isEditableTarget(event.target) || typeof document !== "undefined" && isEditableTarget(document.activeElement);
|
|
@@ -17889,12 +17005,12 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
17889
17005
|
setup(__props) {
|
|
17890
17006
|
const layoutConfig2 = useLayoutConfig();
|
|
17891
17007
|
const { t: $t } = i18n.global;
|
|
17892
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
17893
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
17894
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
17895
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
17896
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
17897
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
17008
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CtUu-WwB.js"));
|
|
17009
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-0vT7sOpw.js"));
|
|
17010
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-B7AE9KfL.js"));
|
|
17011
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DHB4I8ek.js"));
|
|
17012
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BfueOSSV.js"));
|
|
17013
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-CR2hBCb3.js"));
|
|
17898
17014
|
const props = __props;
|
|
17899
17015
|
const repoInfo = inject("repoInfo", computed(() => void 0));
|
|
17900
17016
|
const orgInfo = inject("orgInfo", computed(() => void 0));
|
|
@@ -18437,13 +17553,13 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
18437
17553
|
searchStr: keyword.value,
|
|
18438
17554
|
searchInfo: derivedSearchInfo.value
|
|
18439
17555
|
}, null, 8, ["searchStr", "searchInfo"])) : createCommentVNode("", true),
|
|
18440
|
-
!derivedSearchInfo.value.searchScope ? renderSlot(_ctx.$slots, "globalSearch", normalizeProps(
|
|
17556
|
+
!derivedSearchInfo.value.searchScope ? renderSlot(_ctx.$slots, "globalSearch", normalizeProps(mergeProps({ key: 2 }, { searchStr: keyword.value, searchMore: handleSearchMore })), () => [
|
|
18441
17557
|
!derivedSearchInfo.value.searchScope ? (openBlock(), createBlock(unref(GloabarSearch), {
|
|
18442
17558
|
key: 0,
|
|
18443
17559
|
searchStr: keyword.value,
|
|
18444
17560
|
onSearchMore: handleSearchMore
|
|
18445
17561
|
}, null, 8, ["searchStr"])) : createCommentVNode("", true)
|
|
18446
|
-
], true
|
|
17562
|
+
], true) : createCommentVNode("", true)
|
|
18447
17563
|
], 512), [
|
|
18448
17564
|
[vShow, searchStr.value]
|
|
18449
17565
|
]),
|
|
@@ -18461,9 +17577,9 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
18461
17577
|
}, null, 8, ["searchHistoryList", "visitHistoryList", "activeIndex"]), [
|
|
18462
17578
|
[vShow, !searchStr.value]
|
|
18463
17579
|
]),
|
|
18464
|
-
!searchStr.value && showRecommend.value ? renderSlot(_ctx.$slots, "searchRecommend", {}, () => [
|
|
17580
|
+
!searchStr.value && showRecommend.value ? renderSlot(_ctx.$slots, "searchRecommend", { key: 0 }, () => [
|
|
18465
17581
|
createVNode(unref(SearchRecommed))
|
|
18466
|
-
], true
|
|
17582
|
+
], true) : createCommentVNode("", true)
|
|
18467
17583
|
])
|
|
18468
17584
|
]),
|
|
18469
17585
|
default: withCtx(() => [
|
|
@@ -18749,7 +17865,7 @@ const actionMenuNames = {
|
|
|
18749
17865
|
space: ["Space"],
|
|
18750
17866
|
schoolParty: ["校源行"],
|
|
18751
17867
|
competition: ["大赛平台", "大赛"],
|
|
18752
|
-
|
|
17868
|
+
marketplaceApps: ["应用市场"],
|
|
18753
17869
|
workspace: ["工作台"]
|
|
18754
17870
|
};
|
|
18755
17871
|
function findMenuUrl(items, names) {
|
|
@@ -18802,7 +17918,7 @@ function resolveHomeHeaderActionUrls(items, fallbacks, transformers) {
|
|
|
18802
17918
|
space: resolve("space"),
|
|
18803
17919
|
schoolParty: resolve("schoolParty"),
|
|
18804
17920
|
competition: resolve("competition"),
|
|
18805
|
-
|
|
17921
|
+
marketplaceApps: resolve("marketplaceApps"),
|
|
18806
17922
|
workspace: resolve("workspace")
|
|
18807
17923
|
};
|
|
18808
17924
|
}
|
|
@@ -18865,7 +17981,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
18865
17981
|
layoutConfig2.VITE_COMPETITION_HOST || "https://competition.gitcode.com",
|
|
18866
17982
|
"/competition?utm_source=toolbar"
|
|
18867
17983
|
),
|
|
18868
|
-
|
|
17984
|
+
marketplaceApps: joinUrl(layoutConfig2.VITE_HOST || "https://gitcode.com", "/marketplace/apps"),
|
|
18869
17985
|
...props.fallbacks,
|
|
18870
17986
|
workspace: toApplicationUrl(
|
|
18871
17987
|
layoutConfig2.VITE_HOST || "https://gitcode.com",
|
|
@@ -18901,7 +18017,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
18901
18017
|
},
|
|
18902
18018
|
{
|
|
18903
18019
|
label: t2("gitCodeLayout.header.applicationMarket"),
|
|
18904
|
-
href: actionUrls.value.
|
|
18020
|
+
href: actionUrls.value.marketplaceApps,
|
|
18905
18021
|
icon: "gt-plane-application"
|
|
18906
18022
|
}
|
|
18907
18023
|
]);
|
|
@@ -19261,7 +18377,7 @@ const vElementExposure = {
|
|
|
19261
18377
|
beforeUnmount() {
|
|
19262
18378
|
}
|
|
19263
18379
|
};
|
|
19264
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
18380
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-Qhe_WqLV.js"));
|
|
19265
18381
|
function clearNotice() {
|
|
19266
18382
|
if (localStorage$2.getItem("validator_email")) {
|
|
19267
18383
|
localStorage$2.removeItem("validator_email");
|
|
@@ -19450,7 +18566,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
19450
18566
|
};
|
|
19451
18567
|
const isHomePageHiddenMenuBtn = computed(() => {
|
|
19452
18568
|
if (!route) return false;
|
|
19453
|
-
return props.sceneValue === SceneValue.home &&
|
|
18569
|
+
return props.sceneValue === SceneValue.home && HEADER_HIDE_ASIDE_ROUTES.includes(route == null ? void 0 : route.name) && !["sm", "lg"].includes(widthType.value);
|
|
19454
18570
|
});
|
|
19455
18571
|
const { isMobile } = usePageResize();
|
|
19456
18572
|
const { widthType } = usePageResize();
|
|
@@ -19818,7 +18934,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
19818
18934
|
key: 0,
|
|
19819
18935
|
class: normalizeClass(["g-toolbar-custom", inAIHub.value && !unref(isPhone)() ? "g-toolbar-custom--ai" : ""])
|
|
19820
18936
|
}, [
|
|
19821
|
-
_ctx.$slots.headerCustom ? renderSlot(_ctx.$slots, "headerCustom", {}, void 0, true
|
|
18937
|
+
_ctx.$slots.headerCustom ? renderSlot(_ctx.$slots, "headerCustom", { key: 0 }, void 0, true) : isModuleVisible(unref(HeaderDisplayItem).CUSTOM_CONTENT) && !showNameAndIcon.value ? (openBlock(), createBlock(HeaderCustom, {
|
|
19822
18938
|
key: 1,
|
|
19823
18939
|
scene: __props.sceneValue,
|
|
19824
18940
|
isLogin: __props.isLogin,
|
|
@@ -19840,7 +18956,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
19840
18956
|
renderSlot(_ctx.$slots, "headerMiddleRight", {}, void 0, true)
|
|
19841
18957
|
])) : createCommentVNode("", true),
|
|
19842
18958
|
!inAIHub.value ? (openBlock(), createElementBlock("div", _hoisted_3$p, [
|
|
19843
|
-
isModuleVisible(unref(HeaderDisplayItem).SEARCH_BUTTON) ? renderSlot(_ctx.$slots, "search", {}, () => [
|
|
18959
|
+
isModuleVisible(unref(HeaderDisplayItem).SEARCH_BUTTON) ? renderSlot(_ctx.$slots, "search", { key: 0 }, () => [
|
|
19844
18960
|
(openBlock(), createBlock(Search, {
|
|
19845
18961
|
inAIHub: inAIHub.value,
|
|
19846
18962
|
key: _ctx.$route.fullPath,
|
|
@@ -19863,25 +18979,25 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
19863
18979
|
key: "1"
|
|
19864
18980
|
} : void 0
|
|
19865
18981
|
]), 1032, ["inAIHub", "sceneValue", "isShowStickyNotice", "defaultGlobalSearchType"]))
|
|
19866
|
-
], true
|
|
18982
|
+
], true) : createCommentVNode("", true)
|
|
19867
18983
|
])) : createCommentVNode("", true),
|
|
19868
18984
|
createElementVNode("div", {
|
|
19869
18985
|
class: normalizeClass(["g-toolbar-right allow-click-stop", inAIHub.value ? "g-toolbar-right--ai" : ""])
|
|
19870
18986
|
}, [
|
|
19871
|
-
!inAIHub.value && props.showAtomCodeLauncher ? renderSlot(_ctx.$slots, "atomCodeLauncher", {}, () => [
|
|
18987
|
+
!inAIHub.value && props.showAtomCodeLauncher ? renderSlot(_ctx.$slots, "atomCodeLauncher", { key: 0 }, () => [
|
|
19872
18988
|
createVNode(AtomCodeLauncher, {
|
|
19873
18989
|
atomcodeLaunchQs: props.atomcodeLaunchQs,
|
|
19874
18990
|
isLogin: props.isLogin,
|
|
19875
18991
|
launchAtomCode: props.launchAtomCode
|
|
19876
18992
|
}, null, 8, ["atomcodeLaunchQs", "isLogin", "launchAtomCode"])
|
|
19877
|
-
], true
|
|
19878
|
-
!inAIHub.value ? renderSlot(_ctx.$slots, "headerActions", {}, () => [
|
|
18993
|
+
], true) : createCommentVNode("", true),
|
|
18994
|
+
!inAIHub.value ? renderSlot(_ctx.$slots, "headerActions", { key: 1 }, () => [
|
|
19879
18995
|
createVNode(HomeHeaderActions, {
|
|
19880
18996
|
"workspace-navigate": props.workspaceNavigate,
|
|
19881
18997
|
isLogin: props.isLogin,
|
|
19882
18998
|
independence: props.independence
|
|
19883
18999
|
}, null, 8, ["workspace-navigate", "isLogin", "independence"])
|
|
19884
|
-
], true
|
|
19000
|
+
], true) : createCommentVNode("", true),
|
|
19885
19001
|
isClaimRowVisible.value ? (openBlock(), createElementBlock("div", _hoisted_4$k, [
|
|
19886
19002
|
createVNode(ClaimPower, { config: claimPowerConfig.value }, null, 8, ["config"]),
|
|
19887
19003
|
isModuleVisible(unref(HeaderDisplayItem).OPERATION_ENTRY) ? (openBlock(), createBlock(OperationEntry, { key: 0 })) : createCommentVNode("", true)
|
|
@@ -20950,7 +20066,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
20950
20066
|
provide("asideSetShow", asideSetShow);
|
|
20951
20067
|
console.log("indexasideSetShow", asideSetShow.value);
|
|
20952
20068
|
const isHome = computed(() => {
|
|
20953
|
-
return props.sceneValue === SceneValue.home &&
|
|
20069
|
+
return props.sceneValue === SceneValue.home && ASIDE_HOME_ROUTES.includes(route == null ? void 0 : route.name);
|
|
20954
20070
|
});
|
|
20955
20071
|
const asideSize = computed(() => {
|
|
20956
20072
|
if (props.collapseMode) {
|
|
@@ -21137,6 +20253,12 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
21137
20253
|
headerBorder: { type: Boolean, default: false },
|
|
21138
20254
|
independence: { type: Boolean, default: false },
|
|
21139
20255
|
userMenus: {},
|
|
20256
|
+
accountSessionSupported: { type: Boolean, default: false },
|
|
20257
|
+
accountSessionLogout: {},
|
|
20258
|
+
accountSessions: { default: () => [] },
|
|
20259
|
+
accountSessionActiveRef: { default: null },
|
|
20260
|
+
accountSessionMax: { default: 5 },
|
|
20261
|
+
accountSessionBusy: { type: Boolean, default: false },
|
|
21140
20262
|
loginChildComponents: { default: void 0 },
|
|
21141
20263
|
atomcodeLaunchQs: { default: "" },
|
|
21142
20264
|
showAtomCodeLauncher: { type: Boolean, default: false },
|
|
@@ -21146,12 +20268,33 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
21146
20268
|
createMenuItems: {},
|
|
21147
20269
|
createMenuNavigate: {}
|
|
21148
20270
|
},
|
|
21149
|
-
emits: [
|
|
20271
|
+
emits: [
|
|
20272
|
+
"followDevCommunity",
|
|
20273
|
+
"followUser",
|
|
20274
|
+
"resetPwdDirectlySuccess",
|
|
20275
|
+
"update:openCreateDropdown",
|
|
20276
|
+
"account-switch",
|
|
20277
|
+
"account-add",
|
|
20278
|
+
"account-reauthorize",
|
|
20279
|
+
"account-remove"
|
|
20280
|
+
],
|
|
21150
20281
|
setup(__props, { emit: __emit }) {
|
|
21151
20282
|
var _a;
|
|
21152
20283
|
const route = useRoute();
|
|
21153
20284
|
const props = __props;
|
|
21154
20285
|
const emit = __emit;
|
|
20286
|
+
const accountSessionBindings = computed(() => ({
|
|
20287
|
+
accountSessionSupported: props.accountSessionSupported,
|
|
20288
|
+
accountSessionLogout: props.accountSessionLogout,
|
|
20289
|
+
accountSessions: props.accountSessions,
|
|
20290
|
+
accountSessionActiveRef: props.accountSessionActiveRef,
|
|
20291
|
+
accountSessionMax: props.accountSessionMax,
|
|
20292
|
+
accountSessionBusy: props.accountSessionBusy,
|
|
20293
|
+
onAccountSwitch: (ref2) => emit("account-switch", ref2),
|
|
20294
|
+
onAccountAdd: () => emit("account-add"),
|
|
20295
|
+
onAccountReauthorize: (ref2) => emit("account-reauthorize", ref2),
|
|
20296
|
+
onAccountRemove: (ref2) => emit("account-remove", ref2)
|
|
20297
|
+
}));
|
|
21155
20298
|
const { useReport: useReport2 } = useRequestReport(props.request, props.globalStore);
|
|
21156
20299
|
provide("request", props.request);
|
|
21157
20300
|
provide(
|
|
@@ -21393,7 +20536,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
21393
20536
|
], 64))
|
|
21394
20537
|
]),
|
|
21395
20538
|
createElementVNode("div", _hoisted_6$b, [
|
|
21396
|
-
isModuleVisible(unref(HeaderDisplayItem).SEARCH_BUTTON) ? renderSlot(_ctx.$slots, "search", {}, () => [
|
|
20539
|
+
isModuleVisible(unref(HeaderDisplayItem).SEARCH_BUTTON) ? renderSlot(_ctx.$slots, "search", { key: 0 }, () => [
|
|
21397
20540
|
(openBlock(), createBlock(Search, {
|
|
21398
20541
|
inAIHub: false,
|
|
21399
20542
|
key: _ctx.$route.fullPath,
|
|
@@ -21416,16 +20559,16 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
21416
20559
|
key: "1"
|
|
21417
20560
|
} : void 0
|
|
21418
20561
|
]), 1032, ["sceneValue", "defaultGlobalSearchType"]))
|
|
21419
|
-
], true
|
|
20562
|
+
], true) : createCommentVNode("", true)
|
|
21420
20563
|
]),
|
|
21421
20564
|
createElementVNode("div", _hoisted_7$a, [
|
|
21422
|
-
__props.showAtomCodeLauncher ? renderSlot(_ctx.$slots, "atomCodeLauncher", {}, () => [
|
|
20565
|
+
__props.showAtomCodeLauncher ? renderSlot(_ctx.$slots, "atomCodeLauncher", { key: 0 }, () => [
|
|
21423
20566
|
createVNode(AtomCodeLauncher, {
|
|
21424
20567
|
atomcodeLaunchQs: __props.atomcodeLaunchQs,
|
|
21425
20568
|
isLogin: __props.isLogin,
|
|
21426
20569
|
launchAtomCode: __props.launchAtomCode
|
|
21427
20570
|
}, null, 8, ["atomcodeLaunchQs", "isLogin", "launchAtomCode"])
|
|
21428
|
-
], true
|
|
20571
|
+
], true) : createCommentVNode("", true),
|
|
21429
20572
|
createVNode(HomeHeaderActions, {
|
|
21430
20573
|
isLogin: __props.isLogin,
|
|
21431
20574
|
independence: __props.independence
|
|
@@ -21477,7 +20620,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
21477
20620
|
"onUpdate:dropdownVisible": _cache[3] || (_cache[3] = ($event) => emit("update:openCreateDropdown", $event))
|
|
21478
20621
|
}, null, 8, ["dropdownVisible", "items", "onNavigate", "isCreateEnterprise", "independence"])) : createCommentVNode("", true),
|
|
21479
20622
|
isModuleVisible(unref(HeaderDisplayItem).MESSAGE_CENTER) ? (openBlock(), createBlock(Notice, { key: 2 })) : createCommentVNode("", true),
|
|
21480
|
-
isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createBlock(UserAvatar, {
|
|
20623
|
+
isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createBlock(UserAvatar, mergeProps({
|
|
21481
20624
|
key: 3,
|
|
21482
20625
|
isChatBot: false,
|
|
21483
20626
|
loginOutFinish: __props.loginOutFinish,
|
|
@@ -21485,7 +20628,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
21485
20628
|
independence: __props.independence,
|
|
21486
20629
|
userMenus: __props.userMenus,
|
|
21487
20630
|
inEnterpriseHeader: true
|
|
21488
|
-
}, null,
|
|
20631
|
+
}, accountSessionBindings.value), null, 16, ["loginOutFinish", "independence", "userMenus"])) : createCommentVNode("", true)
|
|
21489
20632
|
], 64))
|
|
21490
20633
|
])
|
|
21491
20634
|
])), [
|
|
@@ -21741,9 +20884,9 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
21741
20884
|
const layoutConfig2 = useLayoutConfig();
|
|
21742
20885
|
const { t: t2 } = i18n.global;
|
|
21743
20886
|
const route = useRoute();
|
|
21744
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
21745
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
21746
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
20887
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-C7GVTS5X.js"));
|
|
20888
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-BTsV7GQq.js"));
|
|
20889
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-CahBEMEp.js"));
|
|
21747
20890
|
const props = __props;
|
|
21748
20891
|
const useReport2 = inject("useReport");
|
|
21749
20892
|
const userInfo = inject("userInfo");
|
|
@@ -22546,7 +21689,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
22546
21689
|
provide("asideSetShow", asideSetShow);
|
|
22547
21690
|
console.log("indexasideSetShow", asideSetShow.value);
|
|
22548
21691
|
const isHome = computed(() => {
|
|
22549
|
-
return props.sceneValue === SceneValue.home &&
|
|
21692
|
+
return props.sceneValue === SceneValue.home && ASIDE_HOME_ROUTES.includes(route == null ? void 0 : route.name);
|
|
22550
21693
|
});
|
|
22551
21694
|
const asideSize = computed(() => {
|
|
22552
21695
|
if (props.collapseMode) {
|
|
@@ -25367,7 +24510,7 @@ const verifyCodeRegExp4 = /^\d{4}$/;
|
|
|
25367
24510
|
const verifyCodeRegExp6 = /^\d{6}$/;
|
|
25368
24511
|
const mobileRegExp = /^1[3-9]\d{9}$/;
|
|
25369
24512
|
const usernameRegExp = /^(?!-)[a-zA-Z][a-zA-Z0-9_-]{1,49}$/;
|
|
25370
|
-
const metadata = { "version": 4, "country_calling_codes": { "1": ["US", "AG", "AI", "AS", "BB", "BM", "BS", "CA", "DM", "DO", "GD", "GU", "JM", "KN", "KY", "LC", "MP", "MS", "PR", "SX", "TC", "TT", "VC", "VG", "VI"], "7": ["RU", "KZ"], "20": ["EG"], "27": ["ZA"], "30": ["GR"], "31": ["NL"], "32": ["BE"], "33": ["FR"], "34": ["ES"], "36": ["HU"], "39": ["IT", "VA"], "40": ["RO"], "41": ["CH"], "43": ["AT"], "44": ["GB", "GG", "IM", "JE"], "45": ["DK"], "46": ["SE"], "47": ["NO", "SJ"], "48": ["PL"], "49": ["DE"], "51": ["PE"], "52": ["MX"], "53": ["CU"], "54": ["AR"], "55": ["BR"], "56": ["CL"], "57": ["CO"], "58": ["VE"], "60": ["MY"], "61": ["AU", "CC", "CX"], "62": ["ID"], "63": ["PH"], "64": ["NZ"], "65": ["SG"], "66": ["TH"], "81": ["JP"], "82": ["KR"], "84": ["VN"], "86": ["CN"], "90": ["TR"], "91": ["IN"], "92": ["PK"], "93": ["AF"], "94": ["LK"], "95": ["MM"], "98": ["IR"], "211": ["SS"], "212": ["MA", "EH"], "213": ["DZ"], "216": ["TN"], "218": ["LY"], "220": ["GM"], "221": ["SN"], "222": ["MR"], "223": ["ML"], "224": ["GN"], "225": ["CI"], "226": ["BF"], "227": ["NE"], "228": ["TG"], "229": ["BJ"], "230": ["MU"], "231": ["LR"], "232": ["SL"], "233": ["GH"], "234": ["NG"], "235": ["TD"], "236": ["CF"], "237": ["CM"], "238": ["CV"], "239": ["ST"], "240": ["GQ"], "241": ["GA"], "242": ["CG"], "243": ["CD"], "244": ["AO"], "245": ["GW"], "246": ["IO"], "247": ["AC"], "248": ["SC"], "249": ["SD"], "250": ["RW"], "251": ["ET"], "252": ["SO"], "253": ["DJ"], "254": ["KE"], "255": ["TZ"], "256": ["UG"], "257": ["BI"], "258": ["MZ"], "260": ["ZM"], "261": ["MG"], "262": ["RE", "YT"], "263": ["ZW"], "264": ["NA"], "265": ["MW"], "266": ["LS"], "267": ["BW"], "268": ["SZ"], "269": ["KM"], "290": ["SH", "TA"], "291": ["ER"], "297": ["AW"], "298": ["FO"], "299": ["GL"], "350": ["GI"], "351": ["PT"], "352": ["LU"], "353": ["IE"], "354": ["IS"], "355": ["AL"], "356": ["MT"], "357": ["CY"], "358": ["FI", "AX"], "359": ["BG"], "370": ["LT"], "371": ["LV"], "372": ["EE"], "373": ["MD"], "374": ["AM"], "375": ["BY"], "376": ["AD"], "377": ["MC"], "378": ["SM"], "380": ["UA"], "381": ["RS"], "382": ["ME"], "383": ["XK"], "385": ["HR"], "386": ["SI"], "387": ["BA"], "389": ["MK"], "420": ["CZ"], "421": ["SK"], "423": ["LI"], "500": ["FK"], "501": ["BZ"], "502": ["GT"], "503": ["SV"], "504": ["HN"], "505": ["NI"], "506": ["CR"], "507": ["PA"], "508": ["PM"], "509": ["HT"], "590": ["GP", "BL", "MF"], "591": ["BO"], "592": ["GY"], "593": ["EC"], "594": ["GF"], "595": ["PY"], "596": ["MQ"], "597": ["SR"], "598": ["UY"], "599": ["CW", "BQ"], "670": ["TL"], "672": ["NF"], "673": ["BN"], "674": ["NR"], "675": ["PG"], "676": ["TO"], "677": ["SB"], "678": ["VU"], "679": ["FJ"], "680": ["PW"], "681": ["WF"], "682": ["CK"], "683": ["NU"], "685": ["WS"], "686": ["KI"], "687": ["NC"], "688": ["TV"], "689": ["PF"], "690": ["TK"], "691": ["FM"], "692": ["MH"], "850": ["KP"], "852": ["HK"], "853": ["MO"], "855": ["KH"], "856": ["LA"], "880": ["BD"], "886": ["TW"], "960": ["MV"], "961": ["LB"], "962": ["JO"], "963": ["SY"], "964": ["IQ"], "965": ["KW"], "966": ["SA"], "967": ["YE"], "968": ["OM"], "970": ["PS"], "971": ["AE"], "972": ["IL"], "973": ["BH"], "974": ["QA"], "975": ["BT"], "976": ["MN"], "977": ["NP"], "992": ["TJ"], "993": ["TM"], "994": ["AZ"], "995": ["GE"], "996": ["KG"], "998": ["UZ"] }, "countries": { "AC": ["247", "00", "(?:[01589]\\d|[2-467])\\d{4}", [5, 6]], "AD": ["376", "00", "(?:1|6\\d)\\d{7}|[135-9]\\d{5}", [6, 8, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["[135-9]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["1"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]]], "AE": ["971", "00", "(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{2,9})", "$1 $2", ["60|8"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[236]|[479][2-8]"], "0$1"], ["(\\d{3})(\\d)(\\d{5})", "$1 $2 $3", ["[479]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"]], "0"], "AF": ["93", "00", "[2-7]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"]], "0"], "AG": ["1", "011", "(?:268|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([457]\\d{6})$|1", "268$1", 0, "268"], "AI": ["1", "011", "(?:264|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2457]\\d{6})$|1", "264$1", 0, "264"], "AL": ["355", "00", "(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}", [6, 7, 8, 9], [["(\\d{3})(\\d{3,4})", "$1 $2", ["80|9"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["4[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2358][2-5]|4"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["[23578]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["6"], "0$1"]], "0"], "AM": ["374", "00", "(?:[1-489]\\d|55|60|77)\\d{6}", [8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[89]0"], "0 $1"], ["(\\d{3})(\\d{5})", "$1 $2", ["2|3[12]"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["1|47"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[3-9]"], "0$1"]], "0"], "AO": ["244", "00", "[29]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[29]"]]]], "AR": ["54", "00", "(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}", [10, 11], [["(\\d{4})(\\d{2})(\\d{4})", "$1 $2-$3", ["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])", "2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["1"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[68]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2-$3", ["[23]"], "0$1", 1], ["(\\d)(\\d{4})(\\d{2})(\\d{4})", "$2 15-$3-$4", ["9(?:2[2-469]|3[3-578])", "9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))", "9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d)(\\d{2})(\\d{4})(\\d{4})", "$2 15-$3-$4", ["91"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d{3})(\\d{3})(\\d{5})", "$1-$2-$3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{4})", "$2 15-$3-$4", ["9"], "0$1", 0, "$1 $2 $3-$4"]], "0", 0, "0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?", "9$1"], "AS": ["1", "011", "(?:[58]\\d\\d|684|900)\\d{7}", [10], 0, "1", 0, "([267]\\d{6})$|1", "684$1", 0, "684"], "AT": ["43", "00", "1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{3,12})", "$1 $2", ["1(?:11|[2-9])"], "0$1"], ["(\\d{3})(\\d{2})", "$1 $2", ["517"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["5[079]"], "0$1"], ["(\\d{3})(\\d{3,10})", "$1 $2", ["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]", "(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"], "0$1"], ["(\\d{4})(\\d{3,9})", "$1 $2", ["[2-467]|5[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,7})", "$1 $2 $3", ["5"], "0$1"]], "0"], "AU": ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}", [5, 6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{3,4})", "$1 $2", ["16"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["16"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["14|4"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[2378]"], "(0$1)"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:30|[89])"]]], "0", 0, "(183[12])|0", 0, 0, 0, [["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, ["163\\d{2,6}", [5, 6, 7, 8, 9]], ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], "AW": ["297", "00", "(?:[25-79]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[25-9]"]]]], "AX": ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}", [5, 6, 7, 8, 9, 10, 11, 12], 0, "0", 0, 0, 0, 0, "18", 0, "00"], "AZ": ["994", "00", "365\\d{6}|(?:[124579]\\d|60|88)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[28]|2|365|46", "1[28]|2|365[45]|46", "1[28]|2|365(?:4|5[02])|46"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[13-9]"], "0$1"]], "0"], "BA": ["387", "00", "6\\d{8}|(?:[35689]\\d|49|70)\\d{6}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[1-3]|[7-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2-$3", ["[3-5]|6[56]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["6"], "0$1"]], "0"], "BB": ["1", "011", "(?:246|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "246$1", 0, "246"], "BD": ["880", "00", "[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}", [6, 7, 8, 9, 10], [["(\\d{2})(\\d{4,6})", "$1-$2", ["31[5-8]|[459]1"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1-$2", ["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"], "0$1"], ["(\\d{4})(\\d{3,6})", "$1-$2", ["[13-9]|2[23]"], "0$1"], ["(\\d)(\\d{7,8})", "$1-$2", ["2"], "0$1"]], "0"], "BE": ["32", "00", "4\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:80|9)0"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[239]|4[23]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[15-8]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4"], "0$1"]], "0"], "BF": ["226", "00", "[024-7]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[024-7]"]]]], "BG": ["359", "00", "00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}", [6, 7, 8, 9, 12], [["(\\d)(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["43[1-6]|70[1-9]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:70|8)0"], "0$1"], ["(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3", ["43[1-7]|7"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[48]|9[08]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"]], "0"], "BH": ["973", "00", "[136-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[13679]|8[02-4679]"]]]], "BI": ["257", "00", "(?:[267]\\d|31)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2367]"]]]], "BJ": ["229", "00", "(?:01\\d|8)\\d{7}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["0"]]]], "BL": ["590", "00", "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], ["8[129]\\d{7}"], 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], "BM": ["1", "011", "(?:441|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "441$1", 0, "441"], "BN": ["673", "00", "[2-578]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-578]"]]]], "BO": ["591", "00(?:1\\d)?", "(?:[2-7]\\d\\d|8001)\\d{5}", [8, 9], [["(\\d)(\\d{7})", "$1 $2", ["[23]|4[46]|50"]], ["(\\d{8})", "$1", ["[5-7]"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["8"]]], "0", 0, "0(1\\d)?"], "BQ": ["599", "00", "(?:[34]1|7\\d)\\d{5}", [7], 0, 0, 0, 0, 0, 0, "[347]"], "BR": ["55", "00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)", "[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}", [8, 9, 10, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["300|4(?:0[02]|37|86)", "300|4(?:0(?:0|20)|370|864)"]], ["(\\d{3})(\\d{2,3})(\\d{4})", "$1 $2 $3", ["(?:[358]|90)0"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"], "($1)"], ["(\\d{2})(\\d{5})(\\d{4})", "$1 $2-$3", ["[16][1-9]|[2-57-9]"], "($1)"]], "0", 0, "(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?", "$2"], "BS": ["1", "011", "(?:242|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([3-8]\\d{6})$|1", "242$1", 0, "242"], "BT": ["975", "00", "[178]\\d{7}|[2-8]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-6]|7[246]|8[2-4]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[67]|[78]"]]]], "BW": ["267", "00", "(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["90"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[24-6]|3[15-9]"]], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37]"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["8"]]]], "BY": ["375", "810", "(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3})", "$1 $2", ["800"], "8 $1"], ["(\\d{3})(\\d{2})(\\d{2,4})", "$1 $2 $3", ["800"], "8 $1"], ["(\\d{4})(\\d{2})(\\d{3})", "$1 $2-$3", ["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])", "1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"], "8 0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["1(?:[56]|7[467])|2[1-3]"], "8 0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-4]"], "8 0$1"], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[89]"], "8 $1"]], "8", 0, "0|80?", 0, 0, 0, 0, "8~10"], "BZ": ["501", "00", "(?:0800\\d|[2-8])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-8]"]], ["(\\d)(\\d{3})(\\d{4})(\\d{3})", "$1-$2-$3-$4", ["0"]]]], "CA": ["1", "011", "[2-9]\\d{9}|3\\d{6}", [7, 10], 0, "1", 0, 0, 0, 0, 0, [["(?:2(?:04|[23]6|[48]9|5[07]|[67]3)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}", [10]], ["", [10]], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}", [10]], ["900[2-9]\\d{6}", [10]], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}", [10]], 0, ["310\\d{4}", [7]], 0, ["600[2-9]\\d{6}", [10]]]], "CC": ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "([59]\\d{7})$|0", "8$1", 0, 0, [["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], "CD": ["243", "00", "(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}", [7, 8, 9, 10], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["[1-6]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["5"], "0$1"]], "0"], "CF": ["236", "00", "8776\\d{4}|(?:[27]\\d|61)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[26-8]"]]]], "CG": ["242", "00", "222\\d{6}|(?:0\\d|80)\\d{7}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[02]"]]]], "CH": ["41", "00", "8\\d{11}|[2-9]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8[047]|90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]|81"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["8"], "0$1"]], "0"], "CI": ["225", "00", "[02]\\d{9}", [10], [["(\\d{2})(\\d{2})(\\d)(\\d{5})", "$1 $2 $3 $4", ["2"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3 $4", ["0"]]]], "CK": ["682", "00", "[2-578]\\d{4}", [5], [["(\\d{2})(\\d{3})", "$1 $2", ["[2-578]"]]]], "CL": ["56", "(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0", "12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}", [9, 10, 11], [["(\\d{5})(\\d{4})", "$1 $2", ["219", "2196"], "($1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["60|809"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["44"]], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2[1-36]"], "($1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["9(?:10|[2-9])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"], "($1)"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["60|8"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{3})(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["60"]]]], "CM": ["237", "00", "[26]\\d{8}|88\\d{6,7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["88"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[26]|88"]]]], "CN": ["86", "00|1(?:[12]\\d|79)\\d\\d00", "(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5,6})", "$1 $2", ["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]", "(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"], "0$1"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]", "(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]", "85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])", "85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["(?:4|80)0"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|2(?:[02-57-9]|1[1-9])", "10|2(?:[02-57-9]|1[1-9])", "10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"], "0$1", 1], ["(\\d{3})(\\d{7,8})", "$1 $2", ["9"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["80"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[3-578]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["1[3-9]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["[12]"], "0$1", 1]], "0", 0, "(1(?:[12]\\d|79)\\d\\d)|0", 0, 0, 0, 0, "00"], "CO": ["57", "00(?:4(?:[14]4|56)|[579])", "(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["46"]], ["(\\d{3})(\\d{7})", "$1 $2", ["6|90"], "($1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3[0-357]|9[14]"]], ["(\\d)(\\d{3})(\\d{7})", "$1-$2-$3", ["1"], "0$1", 0, "$1 $2 $3"]], "0", 0, "0([3579]|4(?:[14]4|56))?"], "CR": ["506", "00", "(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}", [8, 10], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[3-9]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[89]"]]], 0, 0, "(19(?:0[0-2468]|1[09]|20|66|77|99))"], "CU": ["53", "119", "(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}", [6, 7, 8, 10], [["(\\d{2})(\\d{4,6})", "$1 $2", ["2[1-4]|[34]"], "(0$1)"], ["(\\d)(\\d{6,7})", "$1 $2", ["7"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["[56]"], "0$1"], ["(\\d{3})(\\d{7})", "$1 $2", ["8"], "0$1"]], "0"], "CV": ["238", "0", "(?:[2-59]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2-589]"]]]], "CW": ["599", "00", "(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[3467]"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["9[4-8]"]]], 0, 0, 0, 0, 0, "[69]"], "CX": ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "([59]\\d{7})$|0", "8$1", 0, 0, [["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], "CY": ["357", "00", "(?:[279]\\d|[58]0)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[257-9]"]]]], "CZ": ["420", "00", "(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}", [9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]|9[015-7]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["96"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]]], "DE": ["49", "00", "[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [["(\\d{2})(\\d{3,13})", "$1 $2", ["3[02]|40|[68]9"], "0$1"], ["(\\d{3})(\\d{3,12})", "$1 $2", ["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1", "2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"], "0$1"], ["(\\d{4})(\\d{2,11})", "$1 $2", ["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]", "[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["138"], "0$1"], ["(\\d{5})(\\d{2,10})", "$1 $2", ["3"], "0$1"], ["(\\d{3})(\\d{5,11})", "$1 $2", ["181"], "0$1"], ["(\\d{3})(\\d)(\\d{4,10})", "$1 $2 $3", ["1(?:3|80)|9"], "0$1"], ["(\\d{3})(\\d{7,8})", "$1 $2", ["1[67]"], "0$1"], ["(\\d{3})(\\d{7,12})", "$1 $2", ["8"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["185", "1850", "18500"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["18[68]"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["15[1279]"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["15[03568]", "15(?:[0568]|3[13])"], "0$1"], ["(\\d{3})(\\d{8})", "$1 $2", ["18"], "0$1"], ["(\\d{3})(\\d{2})(\\d{7,8})", "$1 $2 $3", ["1(?:6[023]|7)"], "0$1"], ["(\\d{4})(\\d{2})(\\d{7})", "$1 $2 $3", ["15[279]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{8})", "$1 $2 $3", ["15"], "0$1"]], "0"], "DJ": ["253", "00", "(?:2\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[27]"]]]], "DK": ["45", "00", "[2-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-9]"]]]], "DM": ["1", "011", "(?:[58]\\d\\d|767|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "767$1", 0, "767"], "DO": ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "8001|8[024]9"], "DZ": ["213", "00", "(?:[1-4]|[5-79]\\d|80)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["9"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-8]"], "0$1"]], "0"], "EC": ["593", "00", "1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}", [8, 9, 10, 11], [["(\\d)(\\d{3})(\\d{4})", "$1 $2-$3", ["[2-7]"], "(0$1)", 0, "$1-$2-$3"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1"]]], "0"], "EE": ["372", "00", "8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88", "[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]], ["(\\d{4})(\\d{3,4})", "$1 $2", ["[45]|8(?:00|[1-49])", "[45]|8(?:00[1-9]|[1-49])"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], "EG": ["20", "00", "[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}", [8, 9, 10], [["(\\d)(\\d{7,8})", "$1 $2", ["[23]"], "0$1"], ["(\\d{2})(\\d{6,7})", "$1 $2", ["1[35]|[4-6]|8[2468]|9[235-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{8})", "$1 $2", ["1"], "0$1"]], "0"], "EH": ["212", "00", "[5-8]\\d{8}", [9], 0, "0", 0, 0, 0, 0, 0, [["528[89]\\d{5}"], ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[0-5]))\\d{6}"], ["80[0-7]\\d{6}"], ["89\\d{7}"], 0, 0, 0, 0, ["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]], "ER": ["291", "00", "[178]\\d{6}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[178]"], "0$1"]], "0"], "ES": ["34", "00", "(?:400|[5-9]\\d\\d)\\d{6}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]00"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[4-9]"]]]], "ET": ["251", "00", "(?:11|[2-57-9]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-57-9]"], "0$1"]], "0"], "FI": ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d{5})", "$1", ["20[2-59]"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1 $2", ["(?:[1-3]0|[68])0|70[07-9]"], "0$1"], ["(\\d{2})(\\d{4,8})", "$1 $2", ["[14]|2[09]|50|7[135]"], "0$1"], ["(\\d{2})(\\d{6,10})", "$1 $2", ["7"], "0$1"], ["(\\d)(\\d{4,9})", "$1 $2", ["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"], "0$1"]], "0", 0, 0, 0, 0, "1[03-79]|[2-9]", 0, "00"], "FJ": ["679", "0(?:0|52)", "45\\d{5}|(?:0800\\d|[235-9])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[235-9]|45"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]]], 0, 0, 0, 0, 0, 0, 0, "00"], "FK": ["500", "00", "[2-7]\\d{4}", [5]], "FM": ["691", "00", "(?:[39]\\d\\d|820)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[389]"]]]], "FO": ["298", "00", "[2-9]\\d{5}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2-9]"]]], 0, 0, "(10(?:01|[12]0|88))"], "FR": ["33", "00", "[1-9]\\d{8}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0 $1"], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[1-79]"], "0$1"]], "0"], "GA": ["241", "00", "(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}", [7, 8], [["(\\d)(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-7]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["11|[67]"], "0$1"]], 0, 0, "0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})", "$1"], "GB": ["44", "00", "[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}", [7, 9, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["800", "8001", "80011", "800111", "8001111"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["845", "8454", "84546", "845464"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["800"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["1(?:38|5[23]|69|76|94)", "1(?:(?:38|69)7|5(?:24|39)|768|946)", "1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["1(?:[2-69][02-9]|[78])"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[25]|7(?:0|6[02-9])", "[25]|7(?:0|6(?:[03-9]|2[356]))"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1389]"], "0$1"]], "0", 0, "0|180020", 0, 0, 0, [["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}", [9, 10]], ["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]], 0, " x"], "GD": ["1", "011", "(?:473|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "473$1", 0, "473"], "GE": ["995", "00", "(?:[3-57]\\d\\d|800)\\d{6}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["32"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[57]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[348]"], "0$1"]], "0"], "GF": ["594", "00", "(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]|80[6-9]|9[47]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[89]"], "0$1"]], "0"], "GG": ["44", "00", "(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?", [7, 9, 10], 0, "0", 0, "([25-9]\\d{5})$|0|180020", "1481$1", 0, 0, [["1481[25-9]\\d{5}", [10]], ["7(?:(?:781|839)\\d|911[17])\\d{5}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]]], "GH": ["233", "00", "[235]\\d{8}|800\\d{5,6}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2358]"], "0$1"]], "0"], "GI": ["350", "00", "(?:[25]\\d|60)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["2"]]]], "GL": ["299", "00", "(?:19|[2-689]\\d|70)\\d{4}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["19|[2-9]"]]]], "GM": ["220", "00", "[48]\\d{8}|[2-9]\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["[235-9]|4(?:[0-35]|4[16-9])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[48]"]]]], "GN": ["224", "00", "722\\d{6}|(?:3|6\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["3"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[67]"]]]], "GP": ["590", "00", "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]|80[6-9]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0", 0, 0, 0, 0, 0, [["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], ["8[129]\\d{7}"], 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], "GQ": ["240", "00", "222\\d{6}|(?:3\\d|55|[89]0)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235]"]], ["(\\d{3})(\\d{6})", "$1 $2", ["[89]"]]]], "GR": ["30", "00", "5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}", [10, 11, 12], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["21|7"]], ["(\\d{4})(\\d{6})", "$1 $2", ["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2689]"]], ["(\\d{3})(\\d{3,4})(\\d{5})", "$1 $2 $3", ["8"]]]], "GT": ["502", "00", "80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-8]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], "GU": ["1", "011", "(?:[58]\\d\\d|671|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "671$1", 0, "671"], "GW": ["245", "00", "[49]\\d{8}|4\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["40"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"]]]], "GY": ["592", "001", "(?:[2-8]\\d{3}|9008)\\d{3}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], "HK": ["852", "00(?:30|5[09]|[126-9]?)", "8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}", [5, 6, 7, 8, 9, 11], [["(\\d{3})(\\d{2,5})", "$1 $2", ["900", "9003"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{3})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]], 0, 0, 0, 0, 0, 0, 0, "00"], "HN": ["504", "00", "8\\d{10}|[237-9]\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["[237-9]"]]]], "HR": ["385", "00", "[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}", [7, 8, 9], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["6[01]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{4})(\\d{3})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["6|7[245]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-57]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"]], "0"], "HT": ["509", "00", "[2-589]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[2-589]"]]]], "HU": ["36", "00", "[235-7]\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "06 $1"]], "06"], "ID": ["62", "00[89]", "00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}", [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["15"]], ["(\\d{2})(\\d{5,9})", "$1 $2", ["2[124]|[36]1"], "(0$1)"], ["(\\d{3})(\\d{5,7})", "$1 $2", ["800"], "0$1"], ["(\\d{3})(\\d{5,8})", "$1 $2", ["[2-79]"], "(0$1)"], ["(\\d{3})(\\d{3,4})(\\d{3})", "$1-$2-$3", ["8[1-35-9]"], "0$1"], ["(\\d{3})(\\d{6,8})", "$1 $2", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["804"], "0$1"], ["(\\d{3})(\\d)(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["80"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1-$2-$3", ["8"], "0$1"]], "0"], "IE": ["353", "00", "(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["2[24-9]|47|58|6[237-9]|9[35-9]"], "(0$1)"], ["(\\d{3})(\\d{5})", "$1 $2", ["[45]0"], "(0$1)"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2569]|4[1-69]|7[14]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["81"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["4"], "(0$1)"], ["(\\d{2})(\\d)(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], "IL": ["972", "0(?:0|1(?:05|[2-9]))", "1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}", [7, 8, 9, 10, 11, 12], [["(\\d{4})(\\d{3})", "$1-$2", ["125"]], ["(\\d{4})(\\d{2})(\\d{2})", "$1-$2-$3", ["121"]], ["(\\d)(\\d{3})(\\d{4})", "$1-$2-$3", ["[2-489]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1-$2-$3", ["12"]], ["(\\d{4})(\\d{6})", "$1-$2", ["159"]], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3-$4", ["1[7-9]"]], ["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})", "$1-$2 $3-$4", ["15"]]], "0"], "IM": ["44", "00", "1624\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "([25-8]\\d{5})$|0|180020", "1624$1", 0, "74576|(?:16|7[56])24"], "IN": ["91", "00", "(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}", [8, 9, 10, 11, 12, 13], [["(\\d{8})", "$1", ["5(?:0|2[23]|3[03]|[67]1|88)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"], 0, 1], ["(\\d{4})(\\d{4,5})", "$1 $2", ["180", "1800"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["140"], 0, 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["11|2[02]|33|4[04]|79[1-6]|80[2-46]", "11|2[02]|33|4[04]|79[1-6]|80(?:[2-4]|6[0-589])", "11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9]))|80(?:[2-4]|6[0-589])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"], "0$1", 1], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807", "1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]", "1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"], "0$1", 1], ["(\\d{5})(\\d{5})", "$1 $2", ["16|[6-9]"], "0$1", 1], ["(\\d{4})(\\d{2,4})(\\d{4})", "$1 $2 $3", ["18[06]", "18[06]0"], 0, 1], ["(\\d{4})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["18"], 0, 1]], "0"], "IO": ["246", "00", "3\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["3"]]]], "IQ": ["964", "00", "(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-6]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"]], "0"], "IR": ["98", "00", "[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}", [4, 5, 6, 7, 10], [["(\\d{4,5})", "$1", ["96"], "0$1"], ["(\\d{2})(\\d{4,5})", "$1 $2", ["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[1-8]"], "0$1"]], "0"], "IS": ["354", "00|1(?:0(?:01|[12]0)|100)", "(?:38\\d|[4-9])\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["3"]]], 0, 0, 0, 0, 0, 0, 0, "00"], "IT": ["39", "00", "0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?", [6, 7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{4,6})", "$1 $2", ["0[26]"]], ["(\\d{3})(\\d{3,6})", "$1 $2", ["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])", "0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]], ["(\\d{4})(\\d{2,6})", "$1 $2", ["0(?:[13-579][2-46-8]|8[236-8])"]], ["(\\d{4})(\\d{4})", "$1 $2", ["894"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[26]|5"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1(?:44|[679])|[378]|43"]], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[13-57-9][0159]|14"]], ["(\\d{2})(\\d{4})(\\d{5})", "$1 $2 $3", ["0[26]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["[03]"]]], 0, 0, 0, 0, 0, 0, [["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"], ["3[2-9]\\d{7,8}|(?:31|43)\\d{8}", [9, 10]], ["80(?:0\\d{3}|3)\\d{3}", [6, 9]], ["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}", [6, 8, 9, 10]], ["1(?:78\\d|99)\\d{6}", [9, 10]], ["3[2-8]\\d{9,10}", [11, 12]], 0, 0, ["55\\d{8}", [10]], ["84(?:[08]\\d{3}|[17])\\d{3}", [6, 9]]]], "JE": ["44", "00", "1534\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "([0-24-8]\\d{5})$|0|180020", "1534$1", 0, 0, [["1534[0-24-8]\\d{5}"], ["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"], ["80(?:07(?:35|81)|8901)\\d{4}"], ["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"], ["701511\\d{4}"], 0, ["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"], ["56\\d{8}"]]], "JM": ["1", "011", "(?:[58]\\d\\d|658|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "658|876"], "JO": ["962", "00", "(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2356]|87"], "(0$1)"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["70"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[47]"], "0$1"]], "0"], "JP": ["81", "010", "00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}", [8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3", ["(?:12|57|99)0"], "0$1"], ["(\\d{4})(\\d)(\\d{4})", "$1-$2-$3", ["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["60"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2-$3", ["3|4(?:2[09]|7[01])|6[1-9]", "3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3", ["[14]|[289][2-9]|5[3-9]|7[2-4679]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["800"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[25-9]"], "0$1"]], "0", 0, "(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0", "$1"], "KE": ["254", "000", "(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}", [7, 8, 9, 10], [["(\\d{2})(\\d{5,7})", "$1 $2", ["[24-6]"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[17]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0"], "KG": ["996", "00", "8\\d{9}|[235-9]\\d{8}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["3(?:1[346]|[24-79])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-79]|88"], "0$1"], ["(\\d{3})(\\d{3})(\\d)(\\d{2,3})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], "KH": ["855", "00[14-9]", "1\\d{9}|[1-9]\\d{7,8}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], "KI": ["686", "00", "(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}", [5, 8], 0, "0"], "KM": ["269", "00", "[3478]\\d{6}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[3478]"]]]], "KN": ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "869$1", 0, "869"], "KP": ["850", "00|99", "85\\d{6}|(?:19\\d|[2-7])\\d{7}", [8, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"]], "0"], "KR": ["82", "00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))", "00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}", [5, 6, 8, 9, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{3,4})", "$1-$2", ["(?:3[1-3]|[46][1-4]|5[1-5])1"], "0$1"], ["(\\d{4})(\\d{4})", "$1-$2", ["1"]], ["(\\d)(\\d{3,4})(\\d{4})", "$1-$2-$3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[36]0|8"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1-$2-$3", ["[1346]|5[1-5]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{2})(\\d{5})(\\d{4})", "$1-$2-$3", ["5"], "0$1"]], "0", 0, "0(8(?:[1-46-8]|5\\d\\d))?"], "KW": ["965", "00", "18\\d{5}|(?:[2569]\\d|41)\\d{6}", [7, 8], [["(\\d{4})(\\d{3,4})", "$1 $2", ["[169]|2(?:[235]|4[1-35-9])|52"]], ["(\\d{3})(\\d{5})", "$1 $2", ["[245]"]]]], "KY": ["1", "011", "(?:345|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "345$1", 0, "345"], "KZ": ["7", "810", "8\\d{13}|[78]\\d{9}", [10, 14], 0, "8", 0, 0, 0, 0, "7", 0, "8~10"], "LA": ["856", "00", "[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2[13]|3[14]|[4-8]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["3"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0"], "LB": ["961", "00", "[27-9]\\d{7}|[13-9]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27-9]"]]], "0"], "LC": ["1", "011", "(?:[58]\\d\\d|758|900)\\d{7}", [10], 0, "1", 0, "([2-8]\\d{6})$|1", "758$1", 0, "758"], "LI": ["423", "00", "[68]\\d{8}|(?:[2378]\\d|90)\\d{5}", [7, 9], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2379]|8(?:0[09]|7)", "[2379]|8(?:0(?:02|9)|7)"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["69"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]], "0", 0, "(1001)|0"], "LK": ["94", "00", "[1-9]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[1-689]"], "0$1"]], "0"], "LR": ["231", "00", "(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["4[67]|[56]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-578]"], "0$1"]], "0"], "LS": ["266", "00", "(?:[256]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2568]"]]]], "LT": ["370", "00", "(?:[3469]\\d|52|[78]0)\\d{6}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["52[0-7]"], "(0-$1)", 1], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0 $1", 1], ["(\\d{2})(\\d{6})", "$1 $2", ["37|4(?:[15]|6[1-8])"], "(0-$1)", 1], ["(\\d{3})(\\d{5})", "$1 $2", ["[3-6]"], "(0-$1)", 1]], "0", 0, "[08]"], "LU": ["352", "00", "35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}", [4, 5, 6, 7, 8, 9, 10, 11], [["(\\d{2})(\\d{3})", "$1 $2", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["20[2-689]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4", ["20"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})", "$1 $2 $3 $4", ["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["80[01]|90[015]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["20"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4 $5", ["20"]]], 0, 0, "(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"], "LV": ["371", "00", "(?:[268]\\d|78|90)\\d{6}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2679]|8[01]"]]]], "LY": ["218", "00", "[2-9]\\d{8}", [9], [["(\\d{2})(\\d{7})", "$1-$2", ["[2-9]"], "0$1"]], "0"], "MA": ["212", "00", "[5-8]\\d{8}", [9], [["(\\d{4})(\\d{5})", "$1-$2", ["892"], "0$1"], ["(\\d{2})(\\d{7})", "$1-$2", ["8(?:0[0-7]|9)"], "0$1"], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[5-8]"], "0$1"]], "0", 0, 0, 0, 0, "[5-8]"], "MC": ["377", "00", "(?:[3489]|[67]\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["4"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[389]"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[67]"], "0$1"]], "0"], "MD": ["373", "00", "(?:[235-7]\\d|[89]0)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["22|3"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[25-7]"], "0$1"]], "0"], "ME": ["382", "00", "(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "0$1"]], "0"], "MF": ["590", "00", "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], ["8[129]\\d{7}"], 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], "MG": ["261", "00", "[23]\\d{8}", [9], [["(\\d{2})(\\d{2})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0", 0, "([24-9]\\d{6})$|0", "20$1"], "MH": ["692", "011", "329\\d{4}|(?:[256]\\d|45)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-6]"]]], "1"], "MK": ["389", "00", "[2-578]\\d{7}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2|34[47]|4(?:[37]7|5[47]|64)"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[347]"], "0$1"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[58]"], "0$1"]], "0"], "ML": ["223", "00", "[24-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-9]"]]]], "MM": ["95", "00", "1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}", [6, 7, 8, 9, 10], [["(\\d)(\\d{2})(\\d{3})", "$1 $2 $3", ["16|2"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]|452|678|86", "[12]|452|6788|86"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[4-7]|8[1-35]"], "0$1"], ["(\\d)(\\d{3})(\\d{4,6})", "$1 $2 $3", ["9(?:2[0-4]|[35-9]|4[137-9])"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["92"], "0$1"], ["(\\d)(\\d{5})(\\d{4})", "$1 $2 $3", ["9"], "0$1"]], "0"], "MN": ["976", "001", "[12]\\d{7,9}|[5-9]\\d{7}", [8, 9, 10], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["11|2[16]"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[5-9]"]], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[12]2[1-3]"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["[12](?:27|3[2-8]|4[2-68]|5[1-4689])", "[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["[12]"], "0$1"]], "0"], "MO": ["853", "00", "0800\\d{3}|(?:28|[68]\\d)\\d{6}", [7, 8], [["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[268]"]]]], "MP": ["1", "011", "[58]\\d{9}|(?:67|90)0\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "670$1", 0, "670"], "MQ": ["596", "00", "7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]|8(?:0[6-9]|[36])"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], "MR": ["222", "00", "(?:[2-4]\\d\\d|800)\\d{5}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-48]"]]]], "MS": ["1", "011", "(?:[58]\\d\\d|664|900)\\d{7}", [10], 0, "1", 0, "([34]\\d{6})$|1", "664$1", 0, "664"], "MT": ["356", "00", "3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2357-9]"]]]], "MU": ["230", "0(?:0|[24-7]0|3[03])", "(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-46]|8[013]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[57]"]], ["(\\d{5})(\\d{5})", "$1 $2", ["8"]]], 0, 0, 0, 0, 0, 0, 0, "020"], "MV": ["960", "0(?:0|19)", "(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}", [7, 10], [["(\\d{3})(\\d{4})", "$1-$2", ["[34679]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], "MW": ["265", "00", "(?:[1289]\\d|31|77)\\d{7}|1\\d{6}", [7, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["1[2-9]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-37-9]"], "0$1"]], "0"], "MX": ["52", "0[09]", "[2-9]\\d{9}", [10], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["33|5[56]|81"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-9]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], "MY": ["60", "00", "1\\d{8,9}|(?:3\\d|[4-9])\\d{7}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1-$2 $3", ["[4-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1-$2 $3", ["1(?:[02469]|[378][1-9]|53)|8", "1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2 $3", ["3"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3-$4", ["1(?:[367]|80)"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2 $3", ["15"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2 $3", ["1"], "0$1"]], "0"], "MZ": ["258", "00", "(?:2|8\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2|8[2-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], "NA": ["264", "00", "[68]\\d{7,8}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["87"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], "NC": ["687", "00", "(?:050|[2-57-9]\\d\\d)\\d{3}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1.$2.$3", ["[02-57-9]"]]]], "NE": ["227", "00", "[027-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["08"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[089]|2[013]|7[0467]"]]]], "NF": ["672", "00", "[13]\\d{5}", [6], [["(\\d{2})(\\d{4})", "$1 $2", ["1[0-3]"]], ["(\\d)(\\d{5})", "$1 $2", ["[13]"]]], 0, 0, "([0-258]\\d{4})$", "3$1"], "NG": ["234", "009", "(?:20|9\\d)\\d{8}|[78]\\d{9,13}", [10, 11, 12, 13, 14], [["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[7-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["20[129]"], "0$1"], ["(\\d{4})(\\d{2})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{3})(\\d{5})(\\d{5,6})", "$1 $2 $3", ["[78]"], "0$1"]], "0"], "NI": ["505", "00", "(?:1800|[25-8]\\d{3})\\d{4}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[125-8]"]]]], "NL": ["31", "00", "(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}", [5, 6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{4,7})", "$1 $2", ["[89]0"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["66"], "0$1"], ["(\\d)(\\d{8})", "$1 $2", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-578]|91"], "0$1"], ["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3", ["9"], "0$1"]], "0"], "NO": ["47", "00", "(?:0|[2-9]\\d{3})\\d{4}", [5, 8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]"]]], 0, 0, 0, 0, 0, "[02-689]|7[0-8]"], "NP": ["977", "00", "(?:1\\d|9)\\d{9}|[1-9]\\d{7}", [8, 10, 11], [["(\\d)(\\d{7})", "$1-$2", ["1[2-6]"], "0$1"], ["(\\d{2})(\\d{6})", "$1-$2", ["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"], "0$1"], ["(\\d{3})(\\d{7})", "$1-$2", ["9"]]], "0"], "NR": ["674", "00", "(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[24-9]"]]]], "NU": ["683", "00", "(?:[4-7]|888\\d)\\d{3}", [4, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["8"]]]], "NZ": ["64", "0(?:0|161)", "[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,8})", "$1 $2", ["8[1-79]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["50[036-8]|8|90", "50(?:[0367]|88)|8|90"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["24|[346]|7[2-57-9]|9[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:10|74)|[589]"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1|2[028]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,5})", "$1 $2 $3", ["2(?:[169]|7[0-35-9])|7"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "00"], "OM": ["968", "00", "(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}", [7, 8, 9], [["(\\d{3})(\\d{4,6})", "$1 $2", ["[58]"]], ["(\\d{2})(\\d{6})", "$1 $2", ["2"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[179]"]]]], "PA": ["507", "00", "(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}", [7, 8, 10, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[1-57-9]"]], ["(\\d{4})(\\d{4})", "$1-$2", ["[68]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]]], "PE": ["51", "00|19(?:1[124]|77|90)00", "(?:[14-8]|9\\d)\\d{7}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["80"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["1"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[4-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"]]], "0", 0, 0, 0, 0, 0, 0, "00", " Anexo "], "PF": ["689", "00", "4\\d{5}(?:\\d{2})?|8\\d{7,8}", [6, 8, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["44"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4|8[7-9]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], "PG": ["675", "00|140[1-3]", "(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["18|[2-69]|85[02-46-9]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[78]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], "PH": ["63", "00", "(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}", [6, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{5})", "$1 $2", ["2"], "(0$1)"], ["(\\d{4})(\\d{4,6})", "$1 $2", ["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2", "3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"], "(0$1)"], ["(\\d{5})(\\d{4})", "$1 $2", ["346|4(?:27|9[35])|883", "3469|4(?:279|9(?:30|56))|8834"], "(0$1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|8[2-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["1"]]], "0"], "PK": ["92", "00", "122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,7})", "$1 $2 $3", ["[89]0"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["1"]], ["(\\d{3})(\\d{6,7})", "$1 $2", ["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])", "9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"], "(0$1)"], ["(\\d{2})(\\d{7,8})", "$1 $2", ["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"], "(0$1)"], ["(\\d{5})(\\d{5})", "$1 $2", ["58"], "(0$1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[24-9]"], "(0$1)"]], "0"], "PL": ["48", "00", "(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}", [6, 7, 8, 9, 10], [["(\\d{5})", "$1", ["19"]], ["(\\d{3})(\\d{3})", "$1 $2", ["11|20|64"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1", "30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["64"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[2-8]|[2-7]|8[1-79]|9[145]"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["8"]]]], "PM": ["508", "00", "[78]\\d{8}|[2-9]\\d{5}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], "PR": ["1", "011", "(?:[589]\\d\\d|787)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "787|939"], "PS": ["970", "00", "[2489]2\\d{6}|(?:1\\d|5)\\d{8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2489]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], "PT": ["351", "00", "1693\\d{5}|(?:[26-9]\\d|30)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["2[12]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["16|[236-9]"]]]], "PW": ["680", "01[12]", "(?:[24-8]\\d\\d|345|900)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], "PY": ["595", "00", "[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3,6})", "$1 $2", ["[2-9]0"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["3[289]|4[246-8]|61|7[1-3]|8[1-36]"], "(0$1)"], ["(\\d{3})(\\d{4,5})", "$1 $2", ["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["87"]], ["(\\d{3})(\\d{6})", "$1 $2", ["9(?:[5-79]|8[1-7])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"]]], "0"], "QA": ["974", "00", "800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}", [7, 8, 9, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["2[136]|8"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[3-7]"]]]], "RE": ["262", "00", "709\\d{6}|(?:26|[689]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[26-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"], ["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"], ["80\\d{7}"], ["89[1-37-9]\\d{6}"], 0, 0, 0, 0, ["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"], ["8(?:1[019]|2[0156]|84|90)\\d{6}"]]], "RO": ["40", "00", "(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}", [6, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["2[3-6]", "2[3-6]\\d9"], "0$1"], ["(\\d{2})(\\d{4})", "$1 $2", ["219|31"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[23]1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[236-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, " int "], "RS": ["381", "00", "38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}", [6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{3,9})", "$1 $2", ["(?:2[389]|39)0|[7-9]"], "0$1"], ["(\\d{2})(\\d{5,10})", "$1 $2", ["[1-36]"], "0$1"]], "0"], "RU": ["7", "810", "8\\d{13}|[347-9]\\d{9}", [10, 14], [["(\\d{4})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-8]|2[1-9])", "7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))", "7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"], "8 ($1)", 1], ["(\\d{5})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-68]|2[1-9])", "7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))", "7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[349]|8(?:[02-7]|1[1-8])"], "8 ($1)", 1], ["(\\d{4})(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["8"], "8 ($1)"]], "8", 0, 0, 0, 0, "[3489]", 0, "8~10"], "RW": ["250", "00", "(?:06|[27]\\d\\d|[89]00)\\d{6}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0$1"]], "0"], "SA": ["966", "00", "(?:[15]\\d|800|92)\\d{7}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["9"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]], "0"], "SB": ["677", "0[01]", "[6-9]\\d{6}|[1-6]\\d{4}", [5, 7], [["(\\d{2})(\\d{5})", "$1 $2", ["6[89]|7|8[4-9]|9(?:[0-8]|9[0-8])"]]]], "SC": ["248", "010|0[0-2]", "(?:[2489]\\d|64)\\d{5}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[246]|9[57]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], "SD": ["249", "00", "[19]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], "SE": ["46", "00", "(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}", [6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["20"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{4})", "$1-$2", ["9(?:00|39|44|9)"], "0$1", 0, "$1 $2"], ["(\\d{2})(\\d{3})(\\d{2})", "$1-$2 $3", ["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3"], ["(\\d)(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{2,3})(\\d{3})", "$1-$2 $3", ["9(?:00|39|44)"], "0$1", 0, "$1 $2 $3"], ["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["10|7"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{3})", "$1-$2 $3 $4", ["9"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4 $5", ["[26]"], "0$1", 0, "$1 $2 $3 $4 $5"]], "0"], "SG": ["65", "0[0-3]\\d", "(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[369]|8(?:0[1-9]|[1-9])"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{4})(\\d{4})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], "SH": ["290", "00", "(?:[256]\\d|8)\\d{3}", [4, 5], 0, 0, 0, 0, 0, 0, "[256]"], "SI": ["386", "00|10(?:22|66|88|99)", "[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}", [5, 6, 7, 8], [["(\\d{2})(\\d{3,6})", "$1 $2", ["8[09]|9"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["59|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37][01]|4[013]|51|6"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-57]"], "(0$1)"]], "0", 0, 0, 0, 0, 0, 0, "00"], "SJ": ["47", "00", "0\\d{4}|(?:[489]\\d|79)\\d{6}", [5, 8], 0, 0, 0, 0, 0, 0, "79"], "SK": ["421", "00", "[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}", [6, 7, 9], [["(\\d)(\\d{2})(\\d{3,4})", "$1 $2 $3", ["21"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["[3-5][1-8]1", "[3-5][1-8]1[67]"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[689]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[3-5]"], "0$1"]], "0"], "SL": ["232", "00", "(?:[237-9]\\d|66)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[236-9]"], "(0$1)"]], "0"], "SM": ["378", "00", "(?:0549|[5-7]\\d)\\d{6}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]"]], ["(\\d{4})(\\d{6})", "$1 $2", ["0"]]], 0, 0, "([89]\\d{5})$", "0549$1"], "SN": ["221", "00", "(?:[378]\\d|93)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[379]"]]]], "SO": ["252", "00", "[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}", [6, 7, 8, 9], [["(\\d{2})(\\d{4})", "$1 $2", ["8[125]"]], ["(\\d{6})", "$1", ["[134]"]], ["(\\d)(\\d{6})", "$1 $2", ["[15]|2[0-79]|3[0-46-8]|4[0-7]"]], ["(\\d{2})(\\d{5,7})", "$1 $2", ["1|28|9[2-9]"]], ["(\\d)(\\d{7})", "$1 $2", ["[267]|904"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[346-9]"]]], "0"], "SR": ["597", "00", "(?:[2-5]|[6-9]\\d)\\d{5}", [6, 7], [["(\\d{2})(\\d{2})(\\d{2})", "$1-$2-$3", ["56"]], ["(\\d{3})(\\d{3})", "$1-$2", ["[2-5]"]], ["(\\d{3})(\\d{4})", "$1-$2", ["[6-9]"]]]], "SS": ["211", "00", "[19]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], "ST": ["239", "00", "(?:22|9\\d)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[29]"]]]], "SV": ["503", "00", "[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?", [7, 8, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[89]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[25-7]"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[89]"]]]], "SX": ["1", "011", "7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "(5\\d{6})$|1", "721$1", 0, "721"], "SY": ["963", "00", "[1-359]\\d{8}|[1-5]\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-4]|5[1-3]"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[59]"], "0$1", 1]], "0"], "SZ": ["268", "00", "0800\\d{4}|(?:[237]\\d|900)\\d{6}", [8, 9], [["(\\d{4})(\\d{4})", "$1 $2", ["[0237]"]], ["(\\d{5})(\\d{4})", "$1 $2", ["9"]]]], "TA": ["290", "00", "8\\d{3}", [4], 0, 0, 0, 0, 0, 0, "8"], "TC": ["1", "011", "(?:[58]\\d\\d|649|900)\\d{7}", [10], 0, "1", 0, "([2-479]\\d{6})$|1", "649$1", 0, "649"], "TD": ["235", "00|16", "(?:22|[3689]\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[236-9]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], "TG": ["228", "00", "[279]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[279]"]]]], "TH": ["66", "00[1-9]", "(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}", [8, 9, 10, 13], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[13-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], "TJ": ["992", "810", "(?:[0-57-9]\\d|66)\\d{7}", [9], [["(\\d{6})(\\d)(\\d{2})", "$1 $2 $3", ["331", "3317"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["44[02-479]|[34]7"]], ["(\\d{4})(\\d)(\\d{4})", "$1 $2 $3", ["3(?:[1245]|3[12])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["\\d"]]], 0, 0, 0, 0, 0, 0, 0, "8~10"], "TK": ["690", "00", "[2-47]\\d{3,6}", [4, 5, 6, 7]], "TL": ["670", "00", "7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-489]|70"]], ["(\\d{4})(\\d{4})", "$1 $2", ["7"]]]], "TM": ["993", "810", "[1-7]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["12"], "(8 $1)"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-5]"], "(8 $1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[67]"], "8 $1"]], "8", 0, 0, 0, 0, 0, 0, "8~10"], "TN": ["216", "00", "[2-57-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-57-9]"]]]], "TO": ["676", "00", "(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}", [5, 7], [["(\\d{2})(\\d{3})", "$1-$2", ["[2-4]|50|6[09]|7[0-24-69]|8[05]"]], ["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[5-9]"]]]], "TR": ["90", "00", "4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}", [7, 10, 12, 13], [["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["512|8[01589]|90"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24][1-8]|3[1-9]"], "(0$1)", 1], ["(\\d{3})(\\d{3})(\\d{6,7})", "$1 $2 $3", ["80"], "0$1", 1]], "0"], "TT": ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-46-8]\\d{6})$|1", "868$1", 0, "868"], "TV": ["688", "00", "(?:2|7\\d\\d|90)\\d{4}", [5, 6, 7], [["(\\d{2})(\\d{3})", "$1 $2", ["2"]], ["(\\d{2})(\\d{4})", "$1 $2", ["90"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], "TW": ["886", "0(?:0[25-79]|19)", "[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}", [7, 8, 9, 10, 11], [["(\\d{2})(\\d)(\\d{4})", "$1 $2 $3", ["202"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["826"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["83"], "0$1"], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["82"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[25]0|37|49|8[09]"], "0$1"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[23568]|4(?:0[02-48]|[1-478])|7[1-9]", "[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["7"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, "#"], "TZ": ["255", "00[056]", "(?:[25-8]\\d|41|90)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[24]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["5"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[67]"], "0$1"]], "0"], "UA": ["380", "00", "[89]\\d{9}|[3-9]\\d{8}", [9, 10], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]", "6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])", "3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|89|9[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "0~0"], "UG": ["256", "00[057]", "800\\d{6}|(?:[29]0|[347]\\d)\\d{7}", [9], [["(\\d{4})(\\d{5})", "$1 $2", ["202", "2024", "20240"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["20[0-35-7]|4(?:6[45]|[7-9])|[7-9]", "20(?:[0135-7]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[2-4]"], "0$1"]], "0"], "US": ["1", "011", "[2-9]\\d{9}|3\\d{6}", [10], [["(\\d{3})(\\d{4})", "$1-$2", ["310"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "($1) $2-$3", ["[2-9]"], 0, 1, "$1-$2-$3"]], "1", 0, 0, 0, 0, 0, [["983[2-57-9]\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[02589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"], [""], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"], ["900[2-9]\\d{6}"], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]], "UY": ["598", "0(?:0|1[3-9]\\d)", "0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d{4,5})", "$1", ["21"]], ["(\\d{3})(\\d{3,4})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[49]0|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[124]"]], ["(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3 $4", ["0"]]], "0", 0, 0, 0, 0, 0, 0, "00", " int. "], "UZ": ["998", "00", "(?:20|33|[5-9]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-9]"]]]], "VA": ["39", "00", "0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}", [6, 7, 8, 9, 10, 11, 12], 0, 0, 0, 0, 0, 0, "06698"], "VC": ["1", "011", "(?:[58]\\d\\d|784|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "784$1", 0, "784"], "VE": ["58", "00", "[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}", [10], [["(\\d{3})(\\d{7})", "$1-$2", ["[24-689]"], "0$1"]], "0"], "VG": ["1", "011", "(?:284|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-578]\\d{6})$|1", "284$1", 0, "284"], "VI": ["1", "011", "[58]\\d{9}|(?:34|90)0\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "340$1", 0, "340"], "VN": ["84", "00", "[12]\\d{9}|[135-9]\\d{8}|[16]\\d{6,7}|7\\d{6}", [7, 8, 9, 10], [["(\\d{4})(\\d{4,6})", "$1 $2", ["1(?:2[02]|[89])"], 0, 1], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[26]|6"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[1357-9]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["2[48]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["2"], "0$1", 1]], "0"], "VU": ["678", "00", "[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}", [5, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["[57-9]"]]]], "WF": ["681", "00", "(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[47-9]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], "WS": ["685", "0", "(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}", [5, 6, 7, 10], [["(\\d{5})", "$1", ["[2-5]|6[1-9]"]], ["(\\d{3})(\\d{3,7})", "$1 $2", ["[68]"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], "XK": ["383", "00", "2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2|39"], "0$1"], ["(\\d{2})(\\d{7,10})", "$1 $2", ["3"], "0$1"]], "0"], "YE": ["967", "00", "(?:1|7\\d)\\d{7}|[1-7]\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-6]|7(?:[24-6]|8[0-7])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"], "0$1"]], "0"], "YT": ["262", "00", "(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"], ["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"], ["80\\d{7}"], 0, 0, 0, 0, 0, ["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]], "ZA": ["27", "00", "[1-79]\\d{8}|8\\d{4,9}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,4})", "$1 $2", ["8[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["8[1-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["860"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], "ZM": ["260", "00", "800\\d{6}|(?:21|[579]\\d|63)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[28]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[579]"], "0$1"]], "0"], "ZW": ["263", "00", "(?:13|8\\d{4})\\d{5}|[235-8]\\d{8}|[23568]\\d{6}", [7, 9, 10], [["(\\d{2})(\\d{3,5})", "$1 $2", ["1|2(?:0[0-36-9]|29|58)|67[0-46-9]|(?:55|68)[0-69]"], "0$1"], ["(\\d{3})(\\d{3,5})", "$1 $2", ["2(?:0[45]|[27]|48)|37|675|(?:55|68)[78]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["80"], "0$1"], ["(\\d{4})(\\d{3,5})", "$1 $2", ["548"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["29[013-9]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[256]|39|8[13-59]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["3"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["8"], "0$1"]], "0"] }, "nonGeographic": { "800": ["800", 0, "(?:00|[1-9]\\d)\\d{6}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["\\d"]]], 0, 0, 0, 0, 0, 0, [0, 0, ["(?:00|[1-9]\\d)\\d{6}"]]], "808": ["808", 0, "[1-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[1-9]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, 0, ["[1-9]\\d{7}"]]], "870": ["870", 0, "7\\d{11}|[235-7]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-7]"]]], 0, 0, 0, 0, 0, 0, [0, ["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"], 0, 0, 0, 0, 0, 0, ["2\\d{8}", [9]]]], "878": ["878", 0, "10\\d{10}", [12], [["(\\d{2})(\\d{5})(\\d{5})", "$1 $2 $3", ["1"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["10\\d{10}"]]], "881": ["881", 0, "6\\d{9}|[0-36-9]\\d{8}", [9, 10], [["(\\d)(\\d{3})(\\d{5})", "$1 $2 $3", ["[0-37-9]"]], ["(\\d)(\\d{3})(\\d{5,6})", "$1 $2 $3", ["6"]]], 0, 0, 0, 0, 0, 0, [0, ["6\\d{9}|[0-36-9]\\d{8}"]]], "882": ["882", 0, "[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5})", "$1 $2", ["16|342"]], ["(\\d{2})(\\d{6})", "$1 $2", ["49"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["1[36]|9"]], ["(\\d{2})(\\d{4})(\\d{3})", "$1 $2 $3", ["3[23]"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["16"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|23|3(?:[15]|4[57])|4|5[12]"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["34"]], ["(\\d{2})(\\d{4,5})(\\d{5})", "$1 $2 $3", ["[1-35]"]]], 0, 0, 0, 0, 0, 0, [0, ["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}", [7, 8, 9, 10, 12]], 0, 0, 0, ["348[57]\\d{7}", [11]], 0, 0, ["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]], "883": ["883", 0, "(?:[1-4]\\d|51)\\d{6,10}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,8})", "$1 $2 $3", ["[14]|2[24-689]|3[02-689]|51[24-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["510"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["21"]], ["(\\d{4})(\\d{4})(\\d{4})", "$1 $2 $3", ["51[13]"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[235]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]], "888": ["888", 0, "\\d{11}", [11], [["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3"]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, ["\\d{11}"]]], "979": ["979", 0, "[1359]\\d{8}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[1359]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, ["[1359]\\d{8}"]]] } };
|
|
24513
|
+
const metadata = { "version": 4, "country_calling_codes": { "1": ["US", "AG", "AI", "AS", "BB", "BM", "BS", "CA", "DM", "DO", "GD", "GU", "JM", "KN", "KY", "LC", "MP", "MS", "PR", "SX", "TC", "TT", "VC", "VG", "VI"], "7": ["RU", "KZ"], "20": ["EG"], "27": ["ZA"], "30": ["GR"], "31": ["NL"], "32": ["BE"], "33": ["FR"], "34": ["ES"], "36": ["HU"], "39": ["IT", "VA"], "40": ["RO"], "41": ["CH"], "43": ["AT"], "44": ["GB", "GG", "IM", "JE"], "45": ["DK"], "46": ["SE"], "47": ["NO", "SJ"], "48": ["PL"], "49": ["DE"], "51": ["PE"], "52": ["MX"], "53": ["CU"], "54": ["AR"], "55": ["BR"], "56": ["CL"], "57": ["CO"], "58": ["VE"], "60": ["MY"], "61": ["AU", "CC", "CX"], "62": ["ID"], "63": ["PH"], "64": ["NZ"], "65": ["SG"], "66": ["TH"], "81": ["JP"], "82": ["KR"], "84": ["VN"], "86": ["CN"], "90": ["TR"], "91": ["IN"], "92": ["PK"], "93": ["AF"], "94": ["LK"], "95": ["MM"], "98": ["IR"], "211": ["SS"], "212": ["MA", "EH"], "213": ["DZ"], "216": ["TN"], "218": ["LY"], "220": ["GM"], "221": ["SN"], "222": ["MR"], "223": ["ML"], "224": ["GN"], "225": ["CI"], "226": ["BF"], "227": ["NE"], "228": ["TG"], "229": ["BJ"], "230": ["MU"], "231": ["LR"], "232": ["SL"], "233": ["GH"], "234": ["NG"], "235": ["TD"], "236": ["CF"], "237": ["CM"], "238": ["CV"], "239": ["ST"], "240": ["GQ"], "241": ["GA"], "242": ["CG"], "243": ["CD"], "244": ["AO"], "245": ["GW"], "246": ["IO"], "247": ["AC"], "248": ["SC"], "249": ["SD"], "250": ["RW"], "251": ["ET"], "252": ["SO"], "253": ["DJ"], "254": ["KE"], "255": ["TZ"], "256": ["UG"], "257": ["BI"], "258": ["MZ"], "260": ["ZM"], "261": ["MG"], "262": ["RE", "YT"], "263": ["ZW"], "264": ["NA"], "265": ["MW"], "266": ["LS"], "267": ["BW"], "268": ["SZ"], "269": ["KM"], "290": ["SH", "TA"], "291": ["ER"], "297": ["AW"], "298": ["FO"], "299": ["GL"], "350": ["GI"], "351": ["PT"], "352": ["LU"], "353": ["IE"], "354": ["IS"], "355": ["AL"], "356": ["MT"], "357": ["CY"], "358": ["FI", "AX"], "359": ["BG"], "370": ["LT"], "371": ["LV"], "372": ["EE"], "373": ["MD"], "374": ["AM"], "375": ["BY"], "376": ["AD"], "377": ["MC"], "378": ["SM"], "380": ["UA"], "381": ["RS"], "382": ["ME"], "383": ["XK"], "385": ["HR"], "386": ["SI"], "387": ["BA"], "389": ["MK"], "420": ["CZ"], "421": ["SK"], "423": ["LI"], "500": ["FK"], "501": ["BZ"], "502": ["GT"], "503": ["SV"], "504": ["HN"], "505": ["NI"], "506": ["CR"], "507": ["PA"], "508": ["PM"], "509": ["HT"], "590": ["GP", "BL", "MF"], "591": ["BO"], "592": ["GY"], "593": ["EC"], "594": ["GF"], "595": ["PY"], "596": ["MQ"], "597": ["SR"], "598": ["UY"], "599": ["CW", "BQ"], "670": ["TL"], "672": ["NF"], "673": ["BN"], "674": ["NR"], "675": ["PG"], "676": ["TO"], "677": ["SB"], "678": ["VU"], "679": ["FJ"], "680": ["PW"], "681": ["WF"], "682": ["CK"], "683": ["NU"], "685": ["WS"], "686": ["KI"], "687": ["NC"], "688": ["TV"], "689": ["PF"], "690": ["TK"], "691": ["FM"], "692": ["MH"], "850": ["KP"], "852": ["HK"], "853": ["MO"], "855": ["KH"], "856": ["LA"], "880": ["BD"], "886": ["TW"], "960": ["MV"], "961": ["LB"], "962": ["JO"], "963": ["SY"], "964": ["IQ"], "965": ["KW"], "966": ["SA"], "967": ["YE"], "968": ["OM"], "970": ["PS"], "971": ["AE"], "972": ["IL"], "973": ["BH"], "974": ["QA"], "975": ["BT"], "976": ["MN"], "977": ["NP"], "992": ["TJ"], "993": ["TM"], "994": ["AZ"], "995": ["GE"], "996": ["KG"], "998": ["UZ"] }, "countries": { "AC": ["247", "00", "(?:[01589]\\d|[46])\\d{4}", [5, 6]], "AD": ["376", "00", "(?:1|6\\d)\\d{7}|[135-9]\\d{5}", [6, 8, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["[135-9]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["1"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]]], "AE": ["971", "00", "(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{2,9})", "$1 $2", ["60|8"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[236]|[479][2-8]"], "0$1"], ["(\\d{3})(\\d)(\\d{5})", "$1 $2 $3", ["[479]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"]], "0"], "AF": ["93", "00", "[2-7]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"]], "0"], "AG": ["1", "011", "(?:268|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([457]\\d{6})$|1", "268$1", 0, "268"], "AI": ["1", "011", "(?:264|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2457]\\d{6})$|1", "264$1", 0, "264"], "AL": ["355", "00", "(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}", [6, 7, 8, 9], [["(\\d{3})(\\d{3,4})", "$1 $2", ["80|9"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["4[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2358][2-5]|4"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["[23578]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["6"], "0$1"]], "0"], "AM": ["374", "00", "(?:[1-489]\\d|55|60|77)\\d{6}", [8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[89]0"], "0 $1"], ["(\\d{3})(\\d{5})", "$1 $2", ["2|3[12]"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["1|47"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[3-9]"], "0$1"]], "0"], "AO": ["244", "00", "[29]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[29]"]]]], "AR": ["54", "00", "(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}", [10, 11], [["(\\d{4})(\\d{2})(\\d{4})", "$1 $2-$3", ["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])", "2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["1"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[68]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2-$3", ["[23]"], "0$1", 1], ["(\\d)(\\d{4})(\\d{2})(\\d{4})", "$2 15-$3-$4", ["9(?:2[2-469]|3[3-578])", "9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))", "9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d)(\\d{2})(\\d{4})(\\d{4})", "$2 15-$3-$4", ["91"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d{3})(\\d{3})(\\d{5})", "$1-$2-$3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{4})", "$2 15-$3-$4", ["9"], "0$1", 0, "$1 $2 $3-$4"]], "0", 0, "0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?", "9$1"], "AS": ["1", "011", "(?:[58]\\d\\d|684|900)\\d{7}", [10], 0, "1", 0, "([267]\\d{6})$|1", "684$1", 0, "684"], "AT": ["43", "00", "1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{3,12})", "$1 $2", ["1(?:11|[2-9])"], "0$1"], ["(\\d{3})(\\d{2})", "$1 $2", ["517"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["5[079]"], "0$1"], ["(\\d{3})(\\d{3,10})", "$1 $2", ["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]", "(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"], "0$1"], ["(\\d{4})(\\d{3,9})", "$1 $2", ["[2-467]|5[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,7})", "$1 $2 $3", ["5"], "0$1"]], "0"], "AU": ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}", [5, 6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{3,4})", "$1 $2", ["16"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["16"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["14|4"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[2378]"], "(0$1)"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:30|[89])"]]], "0", 0, "(183[12])|0", 0, 0, 0, [["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, ["163\\d{2,6}", [5, 6, 7, 8, 9]], ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], "AW": ["297", "00", "(?:[25-79]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[25-9]"]]]], "AX": ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}", [5, 6, 7, 8, 9, 10, 11, 12], 0, "0", 0, 0, 0, 0, "18", 0, "00"], "AZ": ["994", "00", "365\\d{6}|(?:[124579]\\d|60|88)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[28]|2|365|46", "1[28]|2|365[45]|46", "1[28]|2|365(?:4|5[02])|46"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[13-9]"], "0$1"]], "0"], "BA": ["387", "00", "6\\d{8}|(?:[35689]\\d|49|70)\\d{6}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[1-3]|[7-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2-$3", ["[3-5]|6[56]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["6"], "0$1"]], "0"], "BB": ["1", "011", "(?:246|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "246$1", 0, "246"], "BD": ["880", "00", "[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}", [6, 7, 8, 9, 10], [["(\\d{2})(\\d{4,6})", "$1-$2", ["31[5-8]|[459]1"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1-$2", ["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"], "0$1"], ["(\\d{4})(\\d{3,6})", "$1-$2", ["[13-9]|2[23]"], "0$1"], ["(\\d)(\\d{7,8})", "$1-$2", ["2"], "0$1"]], "0"], "BE": ["32", "00", "4\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:80|9)0"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[239]|4[23]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[15-8]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4"], "0$1"]], "0"], "BF": ["226", "00", "(?:[025-7]\\d|44)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[024-7]"]]]], "BG": ["359", "00", "00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}", [6, 7, 8, 9, 12], [["(\\d)(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["43[1-6]|70[1-9]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:70|8)0"], "0$1"], ["(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3", ["43[1-7]|7"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[48]|9[08]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"]], "0"], "BH": ["973", "00", "[136-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[13679]|8[02-4679]"]]]], "BI": ["257", "00", "(?:[267]\\d|31)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2367]"]]]], "BJ": ["229", "00", "(?:01\\d|8)\\d{7}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["0"]]]], "BL": ["590", "00", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], "BM": ["1", "011", "(?:441|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "441$1", 0, "441"], "BN": ["673", "00", "[2-578]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-578]"]]]], "BO": ["591", "00(?:1\\d)?", "8001\\d{5}|(?:[2-467]\\d|50)\\d{6}", [8, 9], [["(\\d)(\\d{7})", "$1 $2", ["[235]|4[46]"]], ["(\\d{8})", "$1", ["[67]"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["8"]]], "0", 0, "0(1\\d)?"], "BQ": ["599", "00", "(?:[34]1|7\\d)\\d{5}", [7], 0, 0, 0, 0, 0, 0, "[347]"], "BR": ["55", "00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)", "[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}", [8, 9, 10, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["300|4(?:0[02]|37|86)", "300|4(?:0(?:0|20)|370|864)"]], ["(\\d{3})(\\d{2,3})(\\d{4})", "$1 $2 $3", ["(?:[358]|90)0"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"], "($1)"], ["(\\d{2})(\\d{5})(\\d{4})", "$1 $2-$3", ["[16][1-9]|[2-57-9]"], "($1)"]], "0", 0, "(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?", "$2"], "BS": ["1", "011", "(?:242|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([3-8]\\d{6})$|1", "242$1", 0, "242"], "BT": ["975", "00", "[178]\\d{7}|[2-8]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-6]|7[246]|8[2-4]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[67]|[78]"]]]], "BW": ["267", "00", "(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["90"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[24-6]|3[15-9]"]], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37]"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["8"]]]], "BY": ["375", "810", "(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3})", "$1 $2", ["800"], "8 $1"], ["(\\d{3})(\\d{2})(\\d{2,4})", "$1 $2 $3", ["800"], "8 $1"], ["(\\d{4})(\\d{2})(\\d{3})", "$1 $2-$3", ["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])", "1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"], "8 0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["1(?:[56]|7[467])|2[1-3]"], "8 0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-4]"], "8 0$1"], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[89]"], "8 $1"]], "8", 0, "0|80?", 0, 0, 0, 0, "8~10"], "BZ": ["501", "00", "(?:0800\\d|[2-8])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-8]"]], ["(\\d)(\\d{3})(\\d{4})(\\d{3})", "$1-$2-$3-$4", ["0"]]]], "CA": ["1", "011", "[2-9]\\d{9}|3\\d{6}", [7, 10], 0, "1", 0, 0, 0, 0, 0, [["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}", [10]], ["", [10]], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}", [10]], ["900[2-9]\\d{6}", [10]], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}", [10]], 0, ["310\\d{4}", [7]], 0, ["600[2-9]\\d{6}", [10]]]], "CC": ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "([59]\\d{7})$|0", "8$1", 0, 0, [["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], "CD": ["243", "00", "(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}", [7, 8, 9, 10], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["[1-6]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["5"], "0$1"]], "0"], "CF": ["236", "00", "(?:[27]\\d{3}|8776)\\d{4}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[278]"]]]], "CG": ["242", "00", "222\\d{6}|(?:0\\d|80)\\d{7}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[02]"]]]], "CH": ["41", "00", "8\\d{11}|[2-9]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8[047]|90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]|81"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["8"], "0$1"]], "0"], "CI": ["225", "00", "[02]\\d{9}", [10], [["(\\d{2})(\\d{2})(\\d)(\\d{5})", "$1 $2 $3 $4", ["2"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3 $4", ["0"]]]], "CK": ["682", "00", "[2-578]\\d{4}", [5], [["(\\d{2})(\\d{3})", "$1 $2", ["[2-578]"]]]], "CL": ["56", "(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0", "12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}", [9, 10, 11], [["(\\d{5})(\\d{4})", "$1 $2", ["219", "2196"], "($1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["60|809"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["44"]], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2[1-36]"], "($1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["9(?:10|[2-9])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"], "($1)"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["60|8"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{3})(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["60"]]]], "CM": ["237", "00", "[26]\\d{8}|88\\d{6,7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["88"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[26]|88"]]]], "CN": ["86", "00|1(?:[12]\\d|79)\\d\\d00", "(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5,6})", "$1 $2", ["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]", "(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"], "0$1"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]", "(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]", "85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])", "85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["(?:4|80)0"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|2(?:[02-57-9]|1[1-9])", "10|2(?:[02-57-9]|1[1-9])", "10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"], "0$1", 1], ["(\\d{3})(\\d{7,8})", "$1 $2", ["9"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["80"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[3-578]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["1[3-9]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["[12]"], "0$1", 1]], "0", 0, "(1(?:[12]\\d|79)\\d\\d)|0", 0, 0, 0, 0, "00"], "CO": ["57", "00(?:4(?:[14]4|56)|[579])", "(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["46"]], ["(\\d{3})(\\d{7})", "$1 $2", ["6|90"], "($1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3[0-357]|9[14]"]], ["(\\d)(\\d{3})(\\d{7})", "$1-$2-$3", ["1"], "0$1", 0, "$1 $2 $3"]], "0", 0, "0([3579]|4(?:[14]4|56))?"], "CR": ["506", "00", "(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}", [8, 10], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[3-9]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[89]"]]], 0, 0, "(19(?:0[0-2468]|1[09]|20|66|77|99))"], "CU": ["53", "119", "(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}", [6, 7, 8, 10], [["(\\d{2})(\\d{4,6})", "$1 $2", ["2[1-4]|[34]"], "(0$1)"], ["(\\d)(\\d{6,7})", "$1 $2", ["7"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["[56]"], "0$1"], ["(\\d{3})(\\d{7})", "$1 $2", ["8"], "0$1"]], "0"], "CV": ["238", "0", "(?:[2-59]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2-589]"]]]], "CW": ["599", "00", "(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[3467]"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["9[4-8]"]]], 0, 0, 0, 0, 0, "[69]"], "CX": ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "([59]\\d{7})$|0", "8$1", 0, 0, [["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], "CY": ["357", "00", "(?:[279]\\d|[58]0)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[257-9]"]]]], "CZ": ["420", "00", "(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}", [9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]|9[015-7]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["96"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]]], "DE": ["49", "00", "[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [["(\\d{2})(\\d{3,13})", "$1 $2", ["3[02]|40|[68]9"], "0$1"], ["(\\d{3})(\\d{3,12})", "$1 $2", ["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1", "2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"], "0$1"], ["(\\d{4})(\\d{2,11})", "$1 $2", ["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]", "[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["138"], "0$1"], ["(\\d{5})(\\d{2,10})", "$1 $2", ["3"], "0$1"], ["(\\d{3})(\\d{5,11})", "$1 $2", ["181"], "0$1"], ["(\\d{3})(\\d)(\\d{4,10})", "$1 $2 $3", ["1(?:3|80)|9"], "0$1"], ["(\\d{3})(\\d{7,8})", "$1 $2", ["1[67]"], "0$1"], ["(\\d{3})(\\d{7,12})", "$1 $2", ["8"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["185", "1850", "18500"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["18[68]"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["15[1279]"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["15[03568]", "15(?:[0568]|3[13])"], "0$1"], ["(\\d{3})(\\d{8})", "$1 $2", ["18"], "0$1"], ["(\\d{3})(\\d{2})(\\d{7,8})", "$1 $2 $3", ["1(?:6[023]|7)"], "0$1"], ["(\\d{4})(\\d{2})(\\d{7})", "$1 $2 $3", ["15[279]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{8})", "$1 $2 $3", ["15"], "0$1"]], "0"], "DJ": ["253", "00", "(?:2\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[27]"]]]], "DK": ["45", "00", "[2-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-9]"]]]], "DM": ["1", "011", "(?:[58]\\d\\d|767|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "767$1", 0, "767"], "DO": ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "8001|8[024]9"], "DZ": ["213", "00", "(?:[1-4]|[5-79]\\d|80)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["9"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-8]"], "0$1"]], "0"], "EC": ["593", "00", "1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}", [8, 9, 10, 11], [["(\\d)(\\d{3})(\\d{4})", "$1 $2-$3", ["[2-7]"], "(0$1)", 0, "$1-$2-$3"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1"]]], "0"], "EE": ["372", "00", "8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88", "[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]], ["(\\d{4})(\\d{3,4})", "$1 $2", ["[45]|8(?:00|[1-49])", "[45]|8(?:00[1-9]|[1-49])"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], "EG": ["20", "00", "[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}", [8, 9, 10], [["(\\d)(\\d{7,8})", "$1 $2", ["[23]"], "0$1"], ["(\\d{2})(\\d{6,7})", "$1 $2", ["1[35]|[4-6]|8[2468]|9[235-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{8})", "$1 $2", ["1"], "0$1"]], "0"], "EH": ["212", "00", "[5-8]\\d{8}", [9], 0, "0", 0, 0, 0, 0, "528[89]"], "ER": ["291", "00", "[178]\\d{6}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[178]"], "0$1"]], "0"], "ES": ["34", "00", "[5-9]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]00"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-9]"]]]], "ET": ["251", "00", "(?:11|[2-579]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-579]"], "0$1"]], "0"], "FI": ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d{5})", "$1", ["20[2-59]"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1 $2", ["(?:[1-3]0|[68])0|70[07-9]"], "0$1"], ["(\\d{2})(\\d{4,8})", "$1 $2", ["[14]|2[09]|50|7[135]"], "0$1"], ["(\\d{2})(\\d{6,10})", "$1 $2", ["7"], "0$1"], ["(\\d)(\\d{4,9})", "$1 $2", ["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"], "0$1"]], "0", 0, 0, 0, 0, "1[03-79]|[2-9]", 0, "00"], "FJ": ["679", "0(?:0|52)", "45\\d{5}|(?:0800\\d|[235-9])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[235-9]|45"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]]], 0, 0, 0, 0, 0, 0, 0, "00"], "FK": ["500", "00", "[2-7]\\d{4}", [5]], "FM": ["691", "00", "(?:[39]\\d\\d|820)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[389]"]]]], "FO": ["298", "00", "[2-9]\\d{5}", [6], [["(\\d{6})", "$1", ["[2-9]"]]], 0, 0, "(10(?:01|[12]0|88))"], "FR": ["33", "00", "[1-9]\\d{8}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0 $1"], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[1-79]"], "0$1"]], "0"], "GA": ["241", "00", "(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}", [7, 8], [["(\\d)(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-7]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["11|[67]"], "0$1"]], 0, 0, "0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})", "$1"], "GB": ["44", "00", "[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}", [7, 9, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["800", "8001", "80011", "800111", "8001111"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["845", "8454", "84546", "845464"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["800"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["1(?:38|5[23]|69|76|94)", "1(?:(?:38|69)7|5(?:24|39)|768|946)", "1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["1(?:[2-69][02-9]|[78])"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[25]|7(?:0|6[02-9])", "[25]|7(?:0|6(?:[03-9]|2[356]))"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1389]"], "0$1"]], "0", 0, "0|180020", 0, 0, 0, [["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}", [9, 10]], ["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]], 0, " x"], "GD": ["1", "011", "(?:473|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "473$1", 0, "473"], "GE": ["995", "00", "(?:[3-57]\\d\\d|800)\\d{6}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["32"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[57]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[348]"], "0$1"]], "0"], "GF": ["594", "00", "(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]|9[47]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[89]"], "0$1"]], "0"], "GG": ["44", "00", "(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?", [7, 9, 10], 0, "0", 0, "([25-9]\\d{5})$|0|180020", "1481$1", 0, 0, [["1481[25-9]\\d{5}", [10]], ["7(?:(?:781|839)\\d|911[17])\\d{5}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]]], "GH": ["233", "00", "(?:[235]\\d{3}|800)\\d{5}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[235]"], "0$1"]], "0"], "GI": ["350", "00", "(?:[25]\\d|60)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["2"]]]], "GL": ["299", "00", "(?:19|[2-689]\\d|70)\\d{4}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["19|[2-9]"]]]], "GM": ["220", "00", "[2-9]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], "GN": ["224", "00", "722\\d{6}|(?:3|6\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["3"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[67]"]]]], "GP": ["590", "00", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0", 0, 0, 0, 0, 0, [["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], "GQ": ["240", "00", "222\\d{6}|(?:3\\d|55|[89]0)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235]"]], ["(\\d{3})(\\d{6})", "$1 $2", ["[89]"]]]], "GR": ["30", "00", "5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}", [10, 11, 12], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["21|7"]], ["(\\d{4})(\\d{6})", "$1 $2", ["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2689]"]], ["(\\d{3})(\\d{3,4})(\\d{5})", "$1 $2 $3", ["8"]]]], "GT": ["502", "00", "80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-8]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], "GU": ["1", "011", "(?:[58]\\d\\d|671|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "671$1", 0, "671"], "GW": ["245", "00", "[49]\\d{8}|4\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["40"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"]]]], "GY": ["592", "001", "(?:[2-8]\\d{3}|9008)\\d{3}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], "HK": ["852", "00(?:30|5[09]|[126-9]?)", "8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}", [5, 6, 7, 8, 9, 11], [["(\\d{3})(\\d{2,5})", "$1 $2", ["900", "9003"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{3})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]], 0, 0, 0, 0, 0, 0, 0, "00"], "HN": ["504", "00", "8\\d{10}|[237-9]\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["[237-9]"]]]], "HR": ["385", "00", "[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}", [7, 8, 9], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["6[01]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{4})(\\d{3})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["6|7[245]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-57]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"]], "0"], "HT": ["509", "00", "[2-589]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[2-589]"]]]], "HU": ["36", "00", "[235-7]\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "06 $1"]], "06"], "ID": ["62", "00[89]", "00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}", [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["15"]], ["(\\d{2})(\\d{5,9})", "$1 $2", ["2[124]|[36]1"], "(0$1)"], ["(\\d{3})(\\d{5,7})", "$1 $2", ["800"], "0$1"], ["(\\d{3})(\\d{5,8})", "$1 $2", ["[2-79]"], "(0$1)"], ["(\\d{3})(\\d{3,4})(\\d{3})", "$1-$2-$3", ["8[1-35-9]"], "0$1"], ["(\\d{3})(\\d{6,8})", "$1 $2", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["804"], "0$1"], ["(\\d{3})(\\d)(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["80"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1-$2-$3", ["8"], "0$1"]], "0"], "IE": ["353", "00", "(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["2[24-9]|47|58|6[237-9]|9[35-9]"], "(0$1)"], ["(\\d{3})(\\d{5})", "$1 $2", ["[45]0"], "(0$1)"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2569]|4[1-69]|7[14]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["81"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["4"], "(0$1)"], ["(\\d{2})(\\d)(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], "IL": ["972", "0(?:0|1[2-9])", "1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}", [7, 8, 9, 10, 11, 12], [["(\\d{4})(\\d{3})", "$1-$2", ["125"]], ["(\\d{4})(\\d{2})(\\d{2})", "$1-$2-$3", ["121"]], ["(\\d)(\\d{3})(\\d{4})", "$1-$2-$3", ["[2-489]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1-$2-$3", ["12"]], ["(\\d{4})(\\d{6})", "$1-$2", ["159"]], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3-$4", ["1[7-9]"]], ["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})", "$1-$2 $3-$4", ["15"]]], "0"], "IM": ["44", "00", "1624\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "([25-8]\\d{5})$|0|180020", "1624$1", 0, "74576|(?:16|7[56])24"], "IN": ["91", "00", "(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}", [8, 9, 10, 11, 12, 13], [["(\\d{8})", "$1", ["5(?:0|2[23]|3[03]|[67]1|88)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"], 0, 1], ["(\\d{4})(\\d{4,5})", "$1 $2", ["180", "1800"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["140"], 0, 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["11|2[02]|33|4[04]|79[1-7]|80[2-46]", "11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])", "11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"], "0$1", 1], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807", "1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]", "1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"], "0$1", 1], ["(\\d{5})(\\d{5})", "$1 $2", ["[6-9]"], "0$1", 1], ["(\\d{4})(\\d{2,4})(\\d{4})", "$1 $2 $3", ["1(?:6|8[06])", "1(?:6|8[06]0)"], 0, 1], ["(\\d{4})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["18"], 0, 1]], "0"], "IO": ["246", "00", "3\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["3"]]]], "IQ": ["964", "00", "(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-6]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"]], "0"], "IR": ["98", "00", "[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}", [4, 5, 6, 7, 10], [["(\\d{4,5})", "$1", ["96"], "0$1"], ["(\\d{2})(\\d{4,5})", "$1 $2", ["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[1-8]"], "0$1"]], "0"], "IS": ["354", "00|1(?:0(?:01|[12]0)|100)", "(?:38\\d|[4-9])\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["3"]]], 0, 0, 0, 0, 0, 0, 0, "00"], "IT": ["39", "00", "0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?", [6, 7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{4,6})", "$1 $2", ["0[26]"]], ["(\\d{3})(\\d{3,6})", "$1 $2", ["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])", "0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]], ["(\\d{4})(\\d{2,6})", "$1 $2", ["0(?:[13-579][2-46-8]|8[236-8])"]], ["(\\d{4})(\\d{4})", "$1 $2", ["894"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[26]|5"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1(?:44|[679])|[378]|43"]], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[13-57-9][0159]|14"]], ["(\\d{2})(\\d{4})(\\d{5})", "$1 $2 $3", ["0[26]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["[03]"]]], 0, 0, 0, 0, 0, 0, [["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"], ["3[2-9]\\d{7,8}|(?:31|43)\\d{8}", [9, 10]], ["80(?:0\\d{3}|3)\\d{3}", [6, 9]], ["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}", [6, 8, 9, 10]], ["1(?:78\\d|99)\\d{6}", [9, 10]], ["3[2-8]\\d{9,10}", [11, 12]], 0, 0, ["55\\d{8}", [10]], ["84(?:[08]\\d{3}|[17])\\d{3}", [6, 9]]]], "JE": ["44", "00", "1534\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "([0-24-8]\\d{5})$|0|180020", "1534$1", 0, 0, [["1534[0-24-8]\\d{5}"], ["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"], ["80(?:07(?:35|81)|8901)\\d{4}"], ["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"], ["701511\\d{4}"], 0, ["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"], ["56\\d{8}"]]], "JM": ["1", "011", "(?:[58]\\d\\d|658|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "658|876"], "JO": ["962", "00", "(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2356]|87"], "(0$1)"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["70"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[47]"], "0$1"]], "0"], "JP": ["81", "010", "00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}", [8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3", ["(?:12|57|99)0"], "0$1"], ["(\\d{4})(\\d)(\\d{4})", "$1-$2-$3", ["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["60"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2-$3", ["3|4(?:2[09]|7[01])|6[1-9]", "3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3", ["[14]|[289][2-9]|5[3-9]|7[2-4679]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["800"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[25-9]"], "0$1"]], "0", 0, "(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0", "$1"], "KE": ["254", "000", "(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}", [7, 8, 9, 10], [["(\\d{2})(\\d{5,7})", "$1 $2", ["[24-6]"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[17]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0"], "KG": ["996", "00", "8\\d{9}|[235-9]\\d{8}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["3(?:1[346]|[24-79])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-79]|88"], "0$1"], ["(\\d{3})(\\d{3})(\\d)(\\d{2,3})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], "KH": ["855", "00[14-9]", "1\\d{9}|[1-9]\\d{7,8}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], "KI": ["686", "00", "(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}", [5, 8], 0, "0"], "KM": ["269", "00", "[3478]\\d{6}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[3478]"]]]], "KN": ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "869$1", 0, "869"], "KP": ["850", "00|99", "85\\d{6}|(?:19\\d|[2-7])\\d{7}", [8, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"]], "0"], "KR": ["82", "00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))", "00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}", [5, 6, 8, 9, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{3,4})", "$1-$2", ["(?:3[1-3]|[46][1-4]|5[1-5])1"], "0$1"], ["(\\d{4})(\\d{4})", "$1-$2", ["1"]], ["(\\d)(\\d{3,4})(\\d{4})", "$1-$2-$3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[36]0|8"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1-$2-$3", ["[1346]|5[1-5]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{2})(\\d{5})(\\d{4})", "$1-$2-$3", ["5"], "0$1"]], "0", 0, "0(8(?:[1-46-8]|5\\d\\d))?"], "KW": ["965", "00", "18\\d{5}|(?:[2569]\\d|41)\\d{6}", [7, 8], [["(\\d{4})(\\d{3,4})", "$1 $2", ["[169]|2(?:[235]|4[1-35-9])|52"]], ["(\\d{3})(\\d{5})", "$1 $2", ["[245]"]]]], "KY": ["1", "011", "(?:345|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "345$1", 0, "345"], "KZ": ["7", "810", "(?:33622|8\\d{8})\\d{5}|[78]\\d{9}", [10, 14], 0, "8", 0, 0, 0, 0, "33622|7", 0, "8~10"], "LA": ["856", "00", "[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2[13]|3[14]|[4-8]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["3"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0"], "LB": ["961", "00", "[27-9]\\d{7}|[13-9]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27-9]"]]], "0"], "LC": ["1", "011", "(?:[58]\\d\\d|758|900)\\d{7}", [10], 0, "1", 0, "([2-8]\\d{6})$|1", "758$1", 0, "758"], "LI": ["423", "00", "[68]\\d{8}|(?:[2378]\\d|90)\\d{5}", [7, 9], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2379]|8(?:0[09]|7)", "[2379]|8(?:0(?:02|9)|7)"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["69"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]], "0", 0, "(1001)|0"], "LK": ["94", "00", "[1-9]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[1-689]"], "0$1"]], "0"], "LR": ["231", "00", "(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["4[67]|[56]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-578]"], "0$1"]], "0"], "LS": ["266", "00", "(?:[256]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2568]"]]]], "LT": ["370", "00", "(?:[3469]\\d|52|[78]0)\\d{6}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["52[0-7]"], "(0-$1)", 1], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0 $1", 1], ["(\\d{2})(\\d{6})", "$1 $2", ["37|4(?:[15]|6[1-8])"], "(0-$1)", 1], ["(\\d{3})(\\d{5})", "$1 $2", ["[3-6]"], "(0-$1)", 1]], "0", 0, "[08]"], "LU": ["352", "00", "35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}", [4, 5, 6, 7, 8, 9, 10, 11], [["(\\d{2})(\\d{3})", "$1 $2", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["20[2-689]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4", ["2(?:[0367]|4[3-8])"]], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["80[01]|90[015]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["20"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4 $5", ["2(?:[0367]|4[3-8])"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})", "$1 $2 $3 $4", ["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]], 0, 0, "(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"], "LV": ["371", "00", "(?:[268]\\d|78|90)\\d{6}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2679]|8[01]"]]]], "LY": ["218", "00", "[2-9]\\d{8}", [9], [["(\\d{2})(\\d{7})", "$1-$2", ["[2-9]"], "0$1"]], "0"], "MA": ["212", "00", "[5-8]\\d{8}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5[45]"], "0$1"], ["(\\d{4})(\\d{5})", "$1-$2", ["5(?:[19]|2[2-46-9]|3[3-9])|8(?:0[89]|92)"], "0$1"], ["(\\d{2})(\\d{7})", "$1-$2", ["8"], "0$1"], ["(\\d{3})(\\d{6})", "$1-$2", ["[5-7]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["5(?:(?:18|4[0679]|5[03])\\d|2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9]))\\d{5}"], ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"], ["80[0-7]\\d{6}"], ["89\\d{7}"], 0, 0, 0, 0, ["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]], "MC": ["377", "00", "(?:[3489]|[67]\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["4"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[389]"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[67]"], "0$1"]], "0"], "MD": ["373", "00", "(?:[235-7]\\d|[89]0)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["22|3"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[25-7]"], "0$1"]], "0"], "ME": ["382", "00", "(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "0$1"]], "0"], "MF": ["590", "00", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], "MG": ["261", "00", "[23]\\d{8}", [9], [["(\\d{2})(\\d{2})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0", 0, "([24-9]\\d{6})$|0", "20$1"], "MH": ["692", "011", "329\\d{4}|(?:[256]\\d|45)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-6]"]]], "1"], "MK": ["389", "00", "[2-578]\\d{7}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2|34[47]|4(?:[37]7|5[47]|64)"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[347]"], "0$1"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[58]"], "0$1"]], "0"], "ML": ["223", "00", "[24-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-9]"]]]], "MM": ["95", "00", "1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}", [6, 7, 8, 9, 10], [["(\\d)(\\d{2})(\\d{3})", "$1 $2 $3", ["16|2"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]|452|678|86", "[12]|452|6788|86"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[4-7]|8[1-35]"], "0$1"], ["(\\d)(\\d{3})(\\d{4,6})", "$1 $2 $3", ["9(?:2[0-4]|[35-9]|4[137-9])"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["92"], "0$1"], ["(\\d)(\\d{5})(\\d{4})", "$1 $2 $3", ["9"], "0$1"]], "0"], "MN": ["976", "001", "[12]\\d{7,9}|[5-9]\\d{7}", [8, 9, 10], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[12]1"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[5-9]"]], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[12]2[1-3]"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["[12](?:27|3[2-8]|4[2-68]|5[1-4689])", "[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["[12]"], "0$1"]], "0"], "MO": ["853", "00", "0800\\d{3}|(?:28|[68]\\d)\\d{6}", [7, 8], [["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[268]"]]]], "MP": ["1", "011", "[58]\\d{9}|(?:67|90)0\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "670$1", 0, "670"], "MQ": ["596", "00", "(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]|8(?:0[6-9]|[36])"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], "MR": ["222", "00", "(?:[2-4]\\d\\d|800)\\d{5}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-48]"]]]], "MS": ["1", "011", "(?:[58]\\d\\d|664|900)\\d{7}", [10], 0, "1", 0, "([34]\\d{6})$|1", "664$1", 0, "664"], "MT": ["356", "00", "3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2357-9]"]]]], "MU": ["230", "0(?:0|[24-7]0|3[03])", "(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-46]|8[013]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[57]"]], ["(\\d{5})(\\d{5})", "$1 $2", ["8"]]], 0, 0, 0, 0, 0, 0, 0, "020"], "MV": ["960", "0(?:0|19)", "(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}", [7, 10], [["(\\d{3})(\\d{4})", "$1-$2", ["[34679]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], "MW": ["265", "00", "(?:[1289]\\d|31|77)\\d{7}|1\\d{6}", [7, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["1[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[137-9]"], "0$1"]], "0"], "MX": ["52", "0[09]", "[2-9]\\d{9}", [10], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["33|5[56]|81"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-9]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], "MY": ["60", "00", "1\\d{8,9}|(?:3\\d|[4-9])\\d{7}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1-$2 $3", ["[4-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1-$2 $3", ["1(?:[02469]|[378][1-9]|53)|8", "1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2 $3", ["3"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3-$4", ["1(?:[367]|80)"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2 $3", ["15"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2 $3", ["1"], "0$1"]], "0"], "MZ": ["258", "00", "(?:2|8\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2|8[2-79]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], "NA": ["264", "00", "[68]\\d{7,8}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["87"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], "NC": ["687", "00", "(?:050|[2-57-9]\\d\\d)\\d{3}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1.$2.$3", ["[02-57-9]"]]]], "NE": ["227", "00", "[027-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["08"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[089]|2[013]|7[0467]"]]]], "NF": ["672", "00", "[13]\\d{5}", [6], [["(\\d{2})(\\d{4})", "$1 $2", ["1[0-3]"]], ["(\\d)(\\d{5})", "$1 $2", ["[13]"]]], 0, 0, "([0-258]\\d{4})$", "3$1"], "NG": ["234", "009", "(?:20|9\\d)\\d{8}|[78]\\d{9,13}", [10, 11, 12, 13, 14], [["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[7-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["20[129]"], "0$1"], ["(\\d{4})(\\d{2})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{3})(\\d{5})(\\d{5,6})", "$1 $2 $3", ["[78]"], "0$1"]], "0"], "NI": ["505", "00", "(?:1800|[25-8]\\d{3})\\d{4}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[125-8]"]]]], "NL": ["31", "00", "(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}", [5, 6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{4,7})", "$1 $2", ["[89]0"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["66"], "0$1"], ["(\\d)(\\d{8})", "$1 $2", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-578]|91"], "0$1"], ["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3", ["9"], "0$1"]], "0"], "NO": ["47", "00", "(?:0|[2-9]\\d{3})\\d{4}", [5, 8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]"]]], 0, 0, 0, 0, 0, "[02-689]|7[0-8]"], "NP": ["977", "00", "(?:1\\d|9)\\d{9}|[1-9]\\d{7}", [8, 10, 11], [["(\\d)(\\d{7})", "$1-$2", ["1[2-6]"], "0$1"], ["(\\d{2})(\\d{6})", "$1-$2", ["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"], "0$1"], ["(\\d{3})(\\d{7})", "$1-$2", ["9"]]], "0"], "NR": ["674", "00", "(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[24-9]"]]]], "NU": ["683", "00", "(?:[4-7]|888\\d)\\d{3}", [4, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["8"]]]], "NZ": ["64", "0(?:0|161)", "[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,8})", "$1 $2", ["8[1-79]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["50[036-8]|8|90", "50(?:[0367]|88)|8|90"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["24|[346]|7[2-57-9]|9[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:10|74)|[589]"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1|2[028]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,5})", "$1 $2 $3", ["2(?:[169]|7[0-35-9])|7"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "00"], "OM": ["968", "00", "(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}", [7, 8, 9], [["(\\d{3})(\\d{4,6})", "$1 $2", ["[58]"]], ["(\\d{2})(\\d{6})", "$1 $2", ["2"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[179]"]]]], "PA": ["507", "00", "(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}", [7, 8, 10, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[1-57-9]"]], ["(\\d{4})(\\d{4})", "$1-$2", ["[68]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]]], "PE": ["51", "00|19(?:1[124]|77|90)00", "(?:[14-8]|9\\d)\\d{7}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["80"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["1"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[4-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"]]], "0", 0, 0, 0, 0, 0, 0, "00", " Anexo "], "PF": ["689", "00", "4\\d{5}(?:\\d{2})?|8\\d{7,8}", [6, 8, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["44"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4|8[7-9]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], "PG": ["675", "00|140[1-3]", "(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["18|[2-69]|85"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[78]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], "PH": ["63", "00", "(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}", [6, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{5})", "$1 $2", ["2"], "(0$1)"], ["(\\d{4})(\\d{4,6})", "$1 $2", ["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2", "3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"], "(0$1)"], ["(\\d{5})(\\d{4})", "$1 $2", ["346|4(?:27|9[35])|883", "3469|4(?:279|9(?:30|56))|8834"], "(0$1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|8[2-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["1"]]], "0"], "PK": ["92", "00", "122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,7})", "$1 $2 $3", ["[89]0"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["1"]], ["(\\d{3})(\\d{6,7})", "$1 $2", ["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])", "9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"], "(0$1)"], ["(\\d{2})(\\d{7,8})", "$1 $2", ["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"], "(0$1)"], ["(\\d{5})(\\d{5})", "$1 $2", ["58"], "(0$1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[24-9]"], "(0$1)"]], "0"], "PL": ["48", "00", "(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}", [6, 7, 8, 9, 10], [["(\\d{5})", "$1", ["19"]], ["(\\d{3})(\\d{3})", "$1 $2", ["11|20|64"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1", "(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["64"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[2-8]|[2-7]|8[1-79]|9[145]"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["8"]]]], "PM": ["508", "00", "[45]\\d{5}|(?:708|8\\d\\d)\\d{6}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[45]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], "PR": ["1", "011", "(?:[589]\\d\\d|787)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "787|939"], "PS": ["970", "00", "[2489]2\\d{6}|(?:1\\d|5)\\d{8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2489]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], "PT": ["351", "00", "1693\\d{5}|(?:[26-9]\\d|30)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["2[12]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["16|[236-9]"]]]], "PW": ["680", "01[12]", "(?:[24-8]\\d\\d|345|900)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], "PY": ["595", "00", "59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3,6})", "$1 $2", ["[2-9]0"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"], "(0$1)"], ["(\\d{3})(\\d{4,5})", "$1 $2", ["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["87"]], ["(\\d{3})(\\d{6})", "$1 $2", ["9(?:[5-79]|8[1-7])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"]]], "0"], "QA": ["974", "00", "800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}", [7, 8, 9, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["2[136]|8"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[3-7]"]]]], "RE": ["262", "00", "709\\d{6}|(?:26|[689]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[26-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"], ["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"], ["80\\d{7}"], ["89[1-37-9]\\d{6}"], 0, 0, 0, 0, ["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"], ["8(?:1[019]|2[0156]|84|90)\\d{6}"]]], "RO": ["40", "00", "(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}", [6, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["2[3-6]", "2[3-6]\\d9"], "0$1"], ["(\\d{2})(\\d{4})", "$1 $2", ["219|31"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[23]1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[236-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, " int "], "RS": ["381", "00", "38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}", [6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{3,9})", "$1 $2", ["(?:2[389]|39)0|[7-9]"], "0$1"], ["(\\d{2})(\\d{5,10})", "$1 $2", ["[1-36]"], "0$1"]], "0"], "RU": ["7", "810", "8\\d{13}|[347-9]\\d{9}", [10, 14], [["(\\d{4})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-8]|2[1-9])", "7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))", "7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"], "8 ($1)", 1], ["(\\d{5})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-68]|2[1-9])", "7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))", "7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[349]|8(?:[02-7]|1[1-8])"], "8 ($1)", 1], ["(\\d{4})(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["8"], "8 ($1)"]], "8", 0, 0, 0, 0, 0, [["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}", [10]], ["9\\d{9}", [10]], ["8(?:0[04]|108\\d{3})\\d{7}"], ["80[39]\\d{7}", [10]], ["808\\d{7}", [10]]], "8~10"], "RW": ["250", "00", "(?:06|[27]\\d\\d|[89]00)\\d{6}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0$1"]], "0"], "SA": ["966", "00", "(?:[15]\\d|800|92)\\d{7}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["9"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]], "0"], "SB": ["677", "0[01]", "[6-9]\\d{6}|[1-6]\\d{4}", [5, 7], [["(\\d{2})(\\d{5})", "$1 $2", ["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]], "SC": ["248", "010|0[0-2]", "(?:[2489]\\d|64)\\d{5}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[246]|9[57]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], "SD": ["249", "00", "[19]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], "SE": ["46", "00", "(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}", [6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["20"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{4})", "$1-$2", ["9(?:00|39|44|9)"], "0$1", 0, "$1 $2"], ["(\\d{2})(\\d{3})(\\d{2})", "$1-$2 $3", ["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3"], ["(\\d)(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{2,3})(\\d{3})", "$1-$2 $3", ["9(?:00|39|44)"], "0$1", 0, "$1 $2 $3"], ["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["10|7"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{3})", "$1-$2 $3 $4", ["9"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4 $5", ["[26]"], "0$1", 0, "$1 $2 $3 $4 $5"]], "0"], "SG": ["65", "0[0-3]\\d", "(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[369]|8(?:0[1-9]|[1-9])"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{4})(\\d{4})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], "SH": ["290", "00", "(?:[256]\\d|8)\\d{3}", [4, 5], 0, 0, 0, 0, 0, 0, "[256]"], "SI": ["386", "00|10(?:22|66|88|99)", "[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}", [5, 6, 7, 8], [["(\\d{2})(\\d{3,6})", "$1 $2", ["8[09]|9"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["59|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37][01]|4[0139]|51|6"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-57]"], "(0$1)"]], "0", 0, 0, 0, 0, 0, 0, "00"], "SJ": ["47", "00", "0\\d{4}|(?:[489]\\d|79)\\d{6}", [5, 8], 0, 0, 0, 0, 0, 0, "79"], "SK": ["421", "00", "[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}", [6, 7, 9], [["(\\d)(\\d{2})(\\d{3,4})", "$1 $2 $3", ["21"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["[3-5][1-8]1", "[3-5][1-8]1[67]"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1/$2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[689]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1/$2 $3 $4", ["[3-5]"], "0$1"]], "0"], "SL": ["232", "00", "(?:[237-9]\\d|66)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[236-9]"], "(0$1)"]], "0"], "SM": ["378", "00", "(?:0549|[5-7]\\d)\\d{6}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]"]], ["(\\d{4})(\\d{6})", "$1 $2", ["0"]]], 0, 0, "([89]\\d{5})$", "0549$1"], "SN": ["221", "00", "(?:[378]\\d|93)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[379]"]]]], "SO": ["252", "00", "[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}", [6, 7, 8, 9], [["(\\d{2})(\\d{4})", "$1 $2", ["8[125]"]], ["(\\d{6})", "$1", ["[134]"]], ["(\\d)(\\d{6})", "$1 $2", ["[15]|2[0-79]|3[0-46-8]|4[0-7]"]], ["(\\d)(\\d{7})", "$1 $2", ["(?:2|90)4|[67]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[348]|64|79|90"]], ["(\\d{2})(\\d{5,7})", "$1 $2", ["1|28|6[0-35-9]|7[67]|9[2-9]"]]], "0"], "SR": ["597", "00", "(?:[2-5]|[6-8]\\d|90)\\d{5}", [6, 7], [["(\\d{2})(\\d{2})(\\d{2})", "$1-$2-$3", ["56"]], ["(\\d{3})(\\d{3})", "$1-$2", ["[2-5]"]], ["(\\d{3})(\\d{4})", "$1-$2", ["[6-9]"]]]], "SS": ["211", "00", "[19]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], "ST": ["239", "00", "(?:22|9\\d)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[29]"]]]], "SV": ["503", "00", "[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?", [7, 8, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[89]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[25-7]"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[89]"]]]], "SX": ["1", "011", "7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "(5\\d{6})$|1", "721$1", 0, "721"], "SY": ["963", "00", "[1-359]\\d{8}|[1-5]\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-4]|5[1-3]"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[59]"], "0$1", 1]], "0"], "SZ": ["268", "00", "0800\\d{4}|(?:[237]\\d|900)\\d{6}", [8, 9], [["(\\d{4})(\\d{4})", "$1 $2", ["[0237]"]], ["(\\d{5})(\\d{4})", "$1 $2", ["9"]]]], "TA": ["290", "00", "8\\d{3}", [4], 0, 0, 0, 0, 0, 0, "8"], "TC": ["1", "011", "(?:[58]\\d\\d|649|900)\\d{7}", [10], 0, "1", 0, "([2-479]\\d{6})$|1", "649$1", 0, "649"], "TD": ["235", "00|16", "(?:22|30|[689]\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[236-9]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], "TG": ["228", "00", "[279]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[279]"]]]], "TH": ["66", "00[1-9]", "(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}", [8, 9, 10, 13], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[13-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], "TJ": ["992", "810", "(?:[0-57-9]\\d|66)\\d{7}", [9], [["(\\d{6})(\\d)(\\d{2})", "$1 $2 $3", ["331", "3317"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["44[02-479]|[34]7"]], ["(\\d{4})(\\d)(\\d{4})", "$1 $2 $3", ["3(?:[1245]|3[12])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["\\d"]]], 0, 0, 0, 0, 0, 0, 0, "8~10"], "TK": ["690", "00", "[2-47]\\d{3,6}", [4, 5, 6, 7]], "TL": ["670", "00", "7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-489]|70"]], ["(\\d{4})(\\d{4})", "$1 $2", ["7"]]]], "TM": ["993", "810", "(?:[1-6]\\d|71)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["12"], "(8 $1)"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-5]"], "(8 $1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[67]"], "8 $1"]], "8", 0, 0, 0, 0, 0, 0, "8~10"], "TN": ["216", "00", "[2-57-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-57-9]"]]]], "TO": ["676", "00", "(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}", [5, 7], [["(\\d{2})(\\d{3})", "$1-$2", ["[2-4]|50|6[09]|7[0-24-69]|8[05]"]], ["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[5-9]"]]]], "TR": ["90", "00", "4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}", [7, 10, 12, 13], [["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["512|8[01589]|90"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5(?:[0-59]|61)", "5(?:[0-59]|61[06])", "5(?:[0-59]|61[06]1)"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24][1-8]|3[1-9]"], "(0$1)", 1], ["(\\d{3})(\\d{3})(\\d{6,7})", "$1 $2 $3", ["80"], "0$1", 1]], "0"], "TT": ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-46-8]\\d{6})$|1", "868$1", 0, "868"], "TV": ["688", "00", "(?:2|7\\d\\d|90)\\d{4}", [5, 6, 7], [["(\\d{2})(\\d{3})", "$1 $2", ["2"]], ["(\\d{2})(\\d{4})", "$1 $2", ["90"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], "TW": ["886", "0(?:0[25-79]|19)", "[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}", [7, 8, 9, 10, 11], [["(\\d{2})(\\d)(\\d{4})", "$1 $2 $3", ["202"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[258]0"], "0$1"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]", "[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["7"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, "#"], "TZ": ["255", "00[056]", "(?:[25-8]\\d|41|90)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[24]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["5"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[67]"], "0$1"]], "0"], "UA": ["380", "00", "[89]\\d{9}|[3-9]\\d{8}", [9, 10], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]", "6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])", "3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|89|9[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "0~0"], "UG": ["256", "00[057]", "800\\d{6}|(?:[29]0|[347]\\d)\\d{7}", [9], [["(\\d{4})(\\d{5})", "$1 $2", ["202", "2024"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[27-9]|4(?:6[45]|[7-9])"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[34]"], "0$1"]], "0"], "US": ["1", "011", "[2-9]\\d{9}|3\\d{6}", [10], [["(\\d{3})(\\d{4})", "$1-$2", ["310"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "($1) $2-$3", ["[2-9]"], 0, 1, "$1-$2-$3"]], "1", 0, 0, 0, 0, 0, [["3052(?:0[0-8]|[1-9]\\d)\\d{4}|(?:2742|305[3-9])\\d{6}|(?:472|983)[2-47-9]\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"], [""], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"], ["900[2-9]\\d{6}"], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"], 0, 0, 0, ["305209\\d{4}"]]], "UY": ["598", "0(?:0|1[3-9]\\d)", "0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d{4,5})", "$1", ["21"]], ["(\\d{3})(\\d{3,4})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[49]0|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[124]"]], ["(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3 $4", ["0"]]], "0", 0, 0, 0, 0, 0, 0, "00", " int. "], "UZ": ["998", "00", "(?:20|33|[5-9]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-9]"]]]], "VA": ["39", "00", "0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}", [6, 7, 8, 9, 10, 11, 12], 0, 0, 0, 0, 0, 0, "06698"], "VC": ["1", "011", "(?:[58]\\d\\d|784|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "784$1", 0, "784"], "VE": ["58", "00", "[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}", [10], [["(\\d{3})(\\d{7})", "$1-$2", ["[24-689]"], "0$1"]], "0"], "VG": ["1", "011", "(?:284|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-578]\\d{6})$|1", "284$1", 0, "284"], "VI": ["1", "011", "[58]\\d{9}|(?:34|90)0\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "340$1", 0, "340"], "VN": ["84", "00", "[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["80"], "0$1", 1], ["(\\d{4})(\\d{4,6})", "$1 $2", ["1"], 0, 1], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["6"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[357-9]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["2[48]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["2"], "0$1", 1]], "0"], "VU": ["678", "00", "[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}", [5, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["[57-9]"]]]], "WF": ["681", "00", "(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[47-9]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], "WS": ["685", "0", "(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}", [5, 6, 7, 10], [["(\\d{5})", "$1", ["[2-5]|6[1-9]"]], ["(\\d{3})(\\d{3,7})", "$1 $2", ["[68]"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], "XK": ["383", "00", "2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2|39"], "0$1"], ["(\\d{2})(\\d{7,10})", "$1 $2", ["3"], "0$1"]], "0"], "YE": ["967", "00", "(?:1|7\\d)\\d{7}|[1-7]\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-6]|7(?:[24-6]|8[0-7])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"], "0$1"]], "0"], "YT": ["262", "00", "7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}", [9], 0, "0", 0, 0, 0, 0, 0, [["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"], ["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"], ["80\\d{7}"], 0, 0, 0, 0, 0, ["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]], "ZA": ["27", "00", "[1-79]\\d{8}|8\\d{4,9}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,4})", "$1 $2", ["8[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["8[1-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["860"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], "ZM": ["260", "00", "800\\d{6}|(?:21|[579]\\d|63)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[28]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[579]"], "0$1"]], "0"], "ZW": ["263", "00", "2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}", [5, 6, 7, 8, 9, 10], [["(\\d{3})(\\d{3,5})", "$1 $2", ["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"], "0$1"], ["(\\d)(\\d{3})(\\d{2,4})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["80"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2", "2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)", "2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["29[013-9]|39|54"], "0$1"], ["(\\d{4})(\\d{3,5})", "$1 $2", ["(?:25|54)8", "258|5483"], "0$1"]], "0"] }, "nonGeographic": { "800": ["800", 0, "(?:00|[1-9]\\d)\\d{6}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["\\d"]]], 0, 0, 0, 0, 0, 0, [0, 0, ["(?:00|[1-9]\\d)\\d{6}"]]], "808": ["808", 0, "[1-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[1-9]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, 0, ["[1-9]\\d{7}"]]], "870": ["870", 0, "7\\d{11}|[235-7]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-7]"]]], 0, 0, 0, 0, 0, 0, [0, ["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"], 0, 0, 0, 0, 0, 0, ["2\\d{8}", [9]]]], "878": ["878", 0, "10\\d{10}", [12], [["(\\d{2})(\\d{5})(\\d{5})", "$1 $2 $3", ["1"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["10\\d{10}"]]], "881": ["881", 0, "6\\d{9}|[0-36-9]\\d{8}", [9, 10], [["(\\d)(\\d{3})(\\d{5})", "$1 $2 $3", ["[0-37-9]"]], ["(\\d)(\\d{3})(\\d{5,6})", "$1 $2 $3", ["6"]]], 0, 0, 0, 0, 0, 0, [0, ["6\\d{9}|[0-36-9]\\d{8}"]]], "882": ["882", 0, "[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5})", "$1 $2", ["16|342"]], ["(\\d{2})(\\d{6})", "$1 $2", ["49"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["1[36]|9"]], ["(\\d{2})(\\d{4})(\\d{3})", "$1 $2 $3", ["3[23]"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["16"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|23|3(?:[15]|4[57])|4|51"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["34"]], ["(\\d{2})(\\d{4,5})(\\d{5})", "$1 $2 $3", ["[1-35]"]]], 0, 0, 0, 0, 0, 0, [0, ["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}", [7, 8, 9, 10, 12]], 0, 0, 0, ["348[57]\\d{7}", [11]], 0, 0, ["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]], "883": ["883", 0, "(?:[1-4]\\d|51)\\d{6,10}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,8})", "$1 $2 $3", ["[14]|2[24-689]|3[02-689]|51[24-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["510"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["21"]], ["(\\d{4})(\\d{4})(\\d{4})", "$1 $2 $3", ["51[13]"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[235]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]], "888": ["888", 0, "\\d{11}", [11], [["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3"]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, ["\\d{11}"]]], "979": ["979", 0, "[1359]\\d{8}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[1359]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, ["[1359]\\d{8}"]]] } };
|
|
25371
24514
|
function withMetadataArgument(func, _arguments) {
|
|
25372
24515
|
var args = Array.prototype.slice.call(_arguments);
|
|
25373
24516
|
args.push(metadata);
|
|
@@ -25395,10 +24538,6 @@ var objectConstructor = {}.constructor;
|
|
|
25395
24538
|
function isObject(object) {
|
|
25396
24539
|
return object !== void 0 && object !== null && object.constructor === objectConstructor;
|
|
25397
24540
|
}
|
|
25398
|
-
var CALLING_CODE_REG_EXP = /^\d+$/;
|
|
25399
|
-
function isCallingCode(string) {
|
|
25400
|
-
return CALLING_CODE_REG_EXP.test(string);
|
|
25401
|
-
}
|
|
25402
24541
|
function _typeof$7(o) {
|
|
25403
24542
|
"@babel/helpers - typeof";
|
|
25404
24543
|
return _typeof$7 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
@@ -25436,6 +24575,7 @@ function _toPrimitive$6(t2, r) {
|
|
|
25436
24575
|
var V3 = "1.2.0";
|
|
25437
24576
|
var V4 = "1.7.35";
|
|
25438
24577
|
var DEFAULT_EXT_PREFIX = " ext. ";
|
|
24578
|
+
var CALLING_CODE_REG_EXP = /^\d+$/;
|
|
25439
24579
|
var Metadata = /* @__PURE__ */ function() {
|
|
25440
24580
|
function Metadata2(metadata2) {
|
|
25441
24581
|
_classCallCheck$2(this, Metadata2);
|
|
@@ -25498,32 +24638,18 @@ var Metadata = /* @__PURE__ */ function() {
|
|
|
25498
24638
|
value: function country(countryCode) {
|
|
25499
24639
|
return this.selectNumberingPlan(countryCode);
|
|
25500
24640
|
}
|
|
25501
|
-
/**
|
|
25502
|
-
* Selects a telephone numbering plan based on either a country code or a calling code.
|
|
25503
|
-
* @param {string} argument — Country code or calling code.
|
|
25504
|
-
* @param {string} legacyArgumentCallingCode — Legacy argument: calling code, if the first argument is not passed.
|
|
25505
|
-
*/
|
|
25506
24641
|
}, {
|
|
25507
24642
|
key: "selectNumberingPlan",
|
|
25508
|
-
value: function selectNumberingPlan(
|
|
25509
|
-
|
|
25510
|
-
|
|
25511
|
-
|
|
25512
|
-
if (isCallingCode(argument)) {
|
|
25513
|
-
callingCode = argument;
|
|
25514
|
-
} else {
|
|
25515
|
-
countryCode = argument;
|
|
25516
|
-
}
|
|
25517
|
-
}
|
|
25518
|
-
if (legacyArgumentCallingCode) {
|
|
25519
|
-
callingCode = legacyArgumentCallingCode;
|
|
24643
|
+
value: function selectNumberingPlan(countryCode, callingCode) {
|
|
24644
|
+
if (countryCode && CALLING_CODE_REG_EXP.test(countryCode)) {
|
|
24645
|
+
callingCode = countryCode;
|
|
24646
|
+
countryCode = null;
|
|
25520
24647
|
}
|
|
25521
24648
|
if (countryCode && countryCode !== "001") {
|
|
25522
|
-
|
|
25523
|
-
if (!countryMetadata) {
|
|
24649
|
+
if (!this.hasCountry(countryCode)) {
|
|
25524
24650
|
throw new Error("Unknown country: ".concat(countryCode));
|
|
25525
24651
|
}
|
|
25526
|
-
this.numberingPlan = new NumberingPlan(
|
|
24652
|
+
this.numberingPlan = new NumberingPlan(this.getCountryMetadata(countryCode), this);
|
|
25527
24653
|
} else if (callingCode) {
|
|
25528
24654
|
if (!this.hasCallingCode(callingCode)) {
|
|
25529
24655
|
throw new Error("Unknown calling code: ".concat(callingCode));
|
|
@@ -25675,28 +24801,16 @@ var NumberingPlan = /* @__PURE__ */ function() {
|
|
|
25675
24801
|
value: function callingCode() {
|
|
25676
24802
|
return this.metadata[0];
|
|
25677
24803
|
}
|
|
25678
|
-
//
|
|
25679
|
-
//
|
|
25680
|
-
//
|
|
25681
|
-
//
|
|
25682
|
-
//
|
|
25683
|
-
//
|
|
25684
|
-
// For example, for NANPA region ("North American Numbering Plan Administration",
|
|
25685
|
-
// which includes USA, Canada, Cayman Islands, Bahamas, etc) all formatting rules
|
|
25686
|
-
// are contained in the metadata of `US` country.
|
|
25687
|
-
//
|
|
25688
|
-
// This is not public API.
|
|
25689
|
-
//
|
|
25690
|
-
}, {
|
|
25691
|
-
key: "_getDefaultCountryMetadataForThisCallingCode",
|
|
25692
|
-
value: function _getDefaultCountryMetadataForThisCallingCode() {
|
|
25693
|
-
return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());
|
|
25694
|
-
}
|
|
25695
|
-
// Deprecated.
|
|
24804
|
+
// Formatting information for regions which share
|
|
24805
|
+
// a country calling code is contained by only one region
|
|
24806
|
+
// for performance reasons. For example, for NANPA region
|
|
24807
|
+
// ("North American Numbering Plan Administration",
|
|
24808
|
+
// which includes USA, Canada, Cayman Islands, Bahamas, etc)
|
|
24809
|
+
// it will be contained in the metadata for `US`.
|
|
25696
24810
|
}, {
|
|
25697
24811
|
key: "getDefaultCountryMetadataForRegion",
|
|
25698
24812
|
value: function getDefaultCountryMetadataForRegion() {
|
|
25699
|
-
return this.
|
|
24813
|
+
return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());
|
|
25700
24814
|
}
|
|
25701
24815
|
// Is always present.
|
|
25702
24816
|
}, {
|
|
@@ -25737,7 +24851,7 @@ var NumberingPlan = /* @__PURE__ */ function() {
|
|
|
25737
24851
|
key: "formats",
|
|
25738
24852
|
value: function formats() {
|
|
25739
24853
|
var _this = this;
|
|
25740
|
-
var formats2 = this._getFormats(this.metadata) || this._getFormats(this.
|
|
24854
|
+
var formats2 = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];
|
|
25741
24855
|
return formats2.map(function(_) {
|
|
25742
24856
|
return new Format(_, _this);
|
|
25743
24857
|
});
|
|
@@ -25758,7 +24872,7 @@ var NumberingPlan = /* @__PURE__ */ function() {
|
|
|
25758
24872
|
}, {
|
|
25759
24873
|
key: "nationalPrefixFormattingRule",
|
|
25760
24874
|
value: function nationalPrefixFormattingRule() {
|
|
25761
|
-
return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.
|
|
24875
|
+
return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion());
|
|
25762
24876
|
}
|
|
25763
24877
|
}, {
|
|
25764
24878
|
key: "_nationalPrefixForParsing",
|
|
@@ -25787,7 +24901,7 @@ var NumberingPlan = /* @__PURE__ */ function() {
|
|
|
25787
24901
|
}, {
|
|
25788
24902
|
key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
|
|
25789
24903
|
value: function nationalPrefixIsOptionalWhenFormattingInNationalFormat() {
|
|
25790
|
-
return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.
|
|
24904
|
+
return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion());
|
|
25791
24905
|
}
|
|
25792
24906
|
}, {
|
|
25793
24907
|
key: "leadingDigits",
|
|
@@ -25928,15 +25042,15 @@ function validateMetadata(metadata2) {
|
|
|
25928
25042
|
var typeOf = function typeOf2(_) {
|
|
25929
25043
|
return _typeof$7(_);
|
|
25930
25044
|
};
|
|
25931
|
-
function getCountryCallingCode(country,
|
|
25932
|
-
|
|
25045
|
+
function getCountryCallingCode(country, metadata2) {
|
|
25046
|
+
metadata2 = new Metadata(metadata2);
|
|
25933
25047
|
if (metadata2.hasCountry(country)) {
|
|
25934
25048
|
return metadata2.selectNumberingPlan(country).countryCallingCode();
|
|
25935
25049
|
}
|
|
25936
25050
|
throw new Error("Unknown country: ".concat(country));
|
|
25937
25051
|
}
|
|
25938
|
-
function isSupportedCountry(country,
|
|
25939
|
-
return
|
|
25052
|
+
function isSupportedCountry(country, metadata2) {
|
|
25053
|
+
return metadata2.countries.hasOwnProperty(country);
|
|
25940
25054
|
}
|
|
25941
25055
|
function setVersion(metadata2) {
|
|
25942
25056
|
var version = metadata2.version;
|
|
@@ -25958,9 +25072,9 @@ function setVersion(metadata2) {
|
|
|
25958
25072
|
}
|
|
25959
25073
|
}
|
|
25960
25074
|
function checkNumberLength(nationalNumber, country, metadata2) {
|
|
25961
|
-
return checkNumberLengthForType(nationalNumber, void 0,
|
|
25075
|
+
return checkNumberLengthForType(nationalNumber, country, void 0, metadata2);
|
|
25962
25076
|
}
|
|
25963
|
-
function checkNumberLengthForType(nationalNumber,
|
|
25077
|
+
function checkNumberLengthForType(nationalNumber, country, type, metadata2) {
|
|
25964
25078
|
if (country) {
|
|
25965
25079
|
metadata2 = new Metadata(metadata2.metadata);
|
|
25966
25080
|
metadata2.selectNumberingPlan(country);
|
|
@@ -25983,16 +25097,16 @@ function checkNumberLengthForType(nationalNumber, type, country, metadata2) {
|
|
|
25983
25097
|
}
|
|
25984
25098
|
return possible_lengths.indexOf(actual_length, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
|
|
25985
25099
|
}
|
|
25986
|
-
function isPossiblePhoneNumber$2(input, options,
|
|
25100
|
+
function isPossiblePhoneNumber$2(input, options, metadata2) {
|
|
25987
25101
|
if (options === void 0) {
|
|
25988
25102
|
options = {};
|
|
25989
25103
|
}
|
|
25990
|
-
|
|
25104
|
+
metadata2 = new Metadata(metadata2);
|
|
25991
25105
|
if (options.v2) {
|
|
25992
25106
|
if (!input.countryCallingCode) {
|
|
25993
25107
|
throw new Error("Invalid phone number object passed");
|
|
25994
25108
|
}
|
|
25995
|
-
metadata2.selectNumberingPlan(input.
|
|
25109
|
+
metadata2.selectNumberingPlan(input.countryCallingCode);
|
|
25996
25110
|
} else {
|
|
25997
25111
|
if (!input.phone) {
|
|
25998
25112
|
return false;
|
|
@@ -26010,15 +25124,17 @@ function isPossiblePhoneNumber$2(input, options, metadataJson) {
|
|
|
26010
25124
|
}
|
|
26011
25125
|
}
|
|
26012
25126
|
if (metadata2.possibleLengths()) {
|
|
26013
|
-
return isPossibleNumber(input.phone || input.nationalNumber, metadata2);
|
|
26014
|
-
}
|
|
26015
|
-
|
|
26016
|
-
|
|
25127
|
+
return isPossibleNumber(input.phone || input.nationalNumber, input.country, metadata2);
|
|
25128
|
+
} else {
|
|
25129
|
+
if (input.countryCallingCode && metadata2.isNonGeographicCallingCode(input.countryCallingCode)) {
|
|
25130
|
+
return true;
|
|
25131
|
+
} else {
|
|
25132
|
+
throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
|
|
25133
|
+
}
|
|
26017
25134
|
}
|
|
26018
|
-
throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
|
|
26019
25135
|
}
|
|
26020
|
-
function isPossibleNumber(nationalNumber, metadata2) {
|
|
26021
|
-
switch (checkNumberLength(nationalNumber,
|
|
25136
|
+
function isPossibleNumber(nationalNumber, country, metadata2) {
|
|
25137
|
+
switch (checkNumberLength(nationalNumber, country, metadata2)) {
|
|
26022
25138
|
case "IS_POSSIBLE":
|
|
26023
25139
|
return true;
|
|
26024
25140
|
default:
|
|
@@ -26054,13 +25170,13 @@ function _arrayLikeToArray$3(r, a) {
|
|
|
26054
25170
|
return n;
|
|
26055
25171
|
}
|
|
26056
25172
|
var NON_FIXED_LINE_PHONE_TYPES = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
|
|
26057
|
-
function getNumberType(input, options,
|
|
25173
|
+
function getNumberType(input, options, metadata2) {
|
|
26058
25174
|
options = options || {};
|
|
26059
25175
|
if (!input.country && !input.countryCallingCode) {
|
|
26060
25176
|
return;
|
|
26061
25177
|
}
|
|
26062
|
-
|
|
26063
|
-
metadata2.selectNumberingPlan(input.country
|
|
25178
|
+
metadata2 = new Metadata(metadata2);
|
|
25179
|
+
metadata2.selectNumberingPlan(input.country, input.countryCallingCode);
|
|
26064
25180
|
var nationalNumber = options.v2 ? input.nationalNumber : input.phone;
|
|
26065
25181
|
if (!matchesEntirely(nationalNumber, metadata2.nationalNumberPattern())) {
|
|
26066
25182
|
return;
|
|
@@ -26085,45 +25201,25 @@ function getNumberType(input, options, metadataJson) {
|
|
|
26085
25201
|
}
|
|
26086
25202
|
}
|
|
26087
25203
|
function isNumberTypeEqualTo(nationalNumber, type, metadata2) {
|
|
26088
|
-
|
|
26089
|
-
if (!
|
|
25204
|
+
type = metadata2.type(type);
|
|
25205
|
+
if (!type || !type.pattern()) {
|
|
26090
25206
|
return false;
|
|
26091
25207
|
}
|
|
26092
|
-
if (
|
|
25208
|
+
if (type.possibleLengths() && type.possibleLengths().indexOf(nationalNumber.length) < 0) {
|
|
26093
25209
|
return false;
|
|
26094
25210
|
}
|
|
26095
|
-
return matchesEntirely(nationalNumber,
|
|
25211
|
+
return matchesEntirely(nationalNumber, type.pattern());
|
|
26096
25212
|
}
|
|
26097
|
-
function isValidNumber(input, options,
|
|
25213
|
+
function isValidNumber(input, options, metadata2) {
|
|
26098
25214
|
options = options || {};
|
|
26099
|
-
|
|
26100
|
-
metadata2.selectNumberingPlan(input.country
|
|
25215
|
+
metadata2 = new Metadata(metadata2);
|
|
25216
|
+
metadata2.selectNumberingPlan(input.country, input.countryCallingCode);
|
|
26101
25217
|
if (metadata2.hasTypes()) {
|
|
26102
25218
|
return getNumberType(input, options, metadata2.metadata) !== void 0;
|
|
26103
25219
|
}
|
|
26104
25220
|
var nationalNumber = options.v2 ? input.nationalNumber : input.phone;
|
|
26105
25221
|
return matchesEntirely(nationalNumber, metadata2.nationalNumberPattern());
|
|
26106
25222
|
}
|
|
26107
|
-
var COUNTRY_CODE_REG_EXP = /^[A-Z]{2}$/;
|
|
26108
|
-
function isCountryCode(string) {
|
|
26109
|
-
return COUNTRY_CODE_REG_EXP.test(string);
|
|
26110
|
-
}
|
|
26111
|
-
function getCountryAndCallingCodeFromOneOfThem(countryOrCallingCode, metadataJson) {
|
|
26112
|
-
var country;
|
|
26113
|
-
var callingCode;
|
|
26114
|
-
var metadata2 = new Metadata(metadataJson);
|
|
26115
|
-
if (isCountryCode(countryOrCallingCode)) {
|
|
26116
|
-
country = countryOrCallingCode;
|
|
26117
|
-
metadata2.selectNumberingPlan(country);
|
|
26118
|
-
callingCode = metadata2.countryCallingCode();
|
|
26119
|
-
} else {
|
|
26120
|
-
callingCode = countryOrCallingCode;
|
|
26121
|
-
}
|
|
26122
|
-
return {
|
|
26123
|
-
country,
|
|
26124
|
-
callingCode
|
|
26125
|
-
};
|
|
26126
|
-
}
|
|
26127
25223
|
function getPossibleCountriesForNumber(callingCode, nationalNumber, metadata2) {
|
|
26128
25224
|
var _metadata = new Metadata(metadata2);
|
|
26129
25225
|
var possibleCountries = _metadata.getCountryCodesForCallingCode(callingCode);
|
|
@@ -26134,10 +25230,13 @@ function getPossibleCountriesForNumber(callingCode, nationalNumber, metadata2) {
|
|
|
26134
25230
|
return couldNationalNumberBelongToCountry(nationalNumber, country, metadata2);
|
|
26135
25231
|
});
|
|
26136
25232
|
}
|
|
26137
|
-
function couldNationalNumberBelongToCountry(nationalNumber, country,
|
|
26138
|
-
var
|
|
26139
|
-
|
|
26140
|
-
|
|
25233
|
+
function couldNationalNumberBelongToCountry(nationalNumber, country, metadata2) {
|
|
25234
|
+
var _metadata = new Metadata(metadata2);
|
|
25235
|
+
_metadata.selectNumberingPlan(country);
|
|
25236
|
+
if (_metadata.numberingPlan.possibleLengths().indexOf(nationalNumber.length) >= 0) {
|
|
25237
|
+
return true;
|
|
25238
|
+
}
|
|
25239
|
+
return false;
|
|
26141
25240
|
}
|
|
26142
25241
|
var MIN_LENGTH_FOR_NSN = 2;
|
|
26143
25242
|
var MAX_LENGTH_FOR_NSN = 17;
|
|
@@ -26152,13 +25251,13 @@ var TILDES = "~⁓∼~";
|
|
|
26152
25251
|
var VALID_PUNCTUATION = "".concat(DASHES).concat(SLASHES).concat(DOTS).concat(WHITESPACE).concat(BRACKETS).concat(TILDES);
|
|
26153
25252
|
var PLUS_CHARS = "++";
|
|
26154
25253
|
var CAPTURING_DIGIT_PATTERN = new RegExp("([" + VALID_DIGITS + "])");
|
|
26155
|
-
function stripIddPrefix(number2, country, callingCode,
|
|
25254
|
+
function stripIddPrefix(number2, country, callingCode, metadata2) {
|
|
26156
25255
|
if (!country) {
|
|
26157
25256
|
return;
|
|
26158
25257
|
}
|
|
26159
|
-
var
|
|
26160
|
-
|
|
26161
|
-
var IDDPrefixPattern = new RegExp(
|
|
25258
|
+
var countryMetadata = new Metadata(metadata2);
|
|
25259
|
+
countryMetadata.selectNumberingPlan(country, callingCode);
|
|
25260
|
+
var IDDPrefixPattern = new RegExp(countryMetadata.IDDPrefix());
|
|
26162
25261
|
if (number2.search(IDDPrefixPattern) !== 0) {
|
|
26163
25262
|
return;
|
|
26164
25263
|
}
|
|
@@ -26237,25 +25336,26 @@ function _arrayLikeToArray$2(r, a) {
|
|
|
26237
25336
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
26238
25337
|
return n;
|
|
26239
25338
|
}
|
|
26240
|
-
function getCountryByNationalNumber(
|
|
26241
|
-
var metadata2 =
|
|
25339
|
+
function getCountryByNationalNumber(nationalPhoneNumber, _ref) {
|
|
25340
|
+
var countries = _ref.countries, metadata2 = _ref.metadata;
|
|
25341
|
+
metadata2 = new Metadata(metadata2);
|
|
26242
25342
|
for (var _iterator = _createForOfIteratorHelperLoose$1(countries), _step; !(_step = _iterator()).done; ) {
|
|
26243
25343
|
var country = _step.value;
|
|
26244
25344
|
metadata2.selectNumberingPlan(country);
|
|
26245
25345
|
if (metadata2.leadingDigits()) {
|
|
26246
|
-
if (
|
|
25346
|
+
if (nationalPhoneNumber && nationalPhoneNumber.search(metadata2.leadingDigits()) === 0) {
|
|
26247
25347
|
return country;
|
|
26248
25348
|
}
|
|
26249
25349
|
} else if (getNumberType({
|
|
26250
|
-
phone:
|
|
25350
|
+
phone: nationalPhoneNumber,
|
|
26251
25351
|
country
|
|
26252
25352
|
}, void 0, metadata2.metadata)) {
|
|
26253
25353
|
return country;
|
|
26254
25354
|
}
|
|
26255
25355
|
}
|
|
26256
25356
|
}
|
|
26257
|
-
function getCountryByCallingCode(callingCode,
|
|
26258
|
-
var
|
|
25357
|
+
function getCountryByCallingCode(callingCode, _ref) {
|
|
25358
|
+
var nationalPhoneNumber = _ref.nationalNumber, metadata2 = _ref.metadata;
|
|
26259
25359
|
var possibleCountries = metadata2.getCountryCodesForCallingCode(callingCode);
|
|
26260
25360
|
if (!possibleCountries) {
|
|
26261
25361
|
return;
|
|
@@ -26263,7 +25363,10 @@ function getCountryByCallingCode(callingCode, _ref2) {
|
|
|
26263
25363
|
if (possibleCountries.length === 1) {
|
|
26264
25364
|
return possibleCountries[0];
|
|
26265
25365
|
}
|
|
26266
|
-
return getCountryByNationalNumber(
|
|
25366
|
+
return getCountryByNationalNumber(nationalPhoneNumber, {
|
|
25367
|
+
countries: possibleCountries,
|
|
25368
|
+
metadata: metadata2.metadata
|
|
25369
|
+
});
|
|
26267
25370
|
}
|
|
26268
25371
|
function extractNationalNumber(number2, country, metadata2) {
|
|
26269
25372
|
var _extractNationalNumbe = extractNationalNumberFromPossiblyIncompleteNumber(number2, metadata2), carrierCode = _extractNationalNumbe.carrierCode, nationalNumber = _extractNationalNumbe.nationalNumber;
|
|
@@ -26307,20 +25410,15 @@ function isPossibleIncompleteNationalNumber(nationalNumber, country, metadata2)
|
|
|
26307
25410
|
return true;
|
|
26308
25411
|
}
|
|
26309
25412
|
}
|
|
26310
|
-
function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number2, country, defaultCountry, defaultCallingCode,
|
|
26311
|
-
|
|
26312
|
-
return {
|
|
26313
|
-
number: number2
|
|
26314
|
-
};
|
|
26315
|
-
}
|
|
26316
|
-
var countryCallingCode = defaultCountry ? getCountryCallingCode(defaultCountry, metadataJson) : defaultCallingCode;
|
|
25413
|
+
function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number2, country, defaultCountry, defaultCallingCode, metadata2) {
|
|
25414
|
+
var countryCallingCode = defaultCountry ? getCountryCallingCode(defaultCountry, metadata2) : defaultCallingCode;
|
|
26317
25415
|
if (number2.indexOf(countryCallingCode) === 0) {
|
|
26318
|
-
|
|
26319
|
-
metadata2.selectNumberingPlan(defaultCountry
|
|
25416
|
+
metadata2 = new Metadata(metadata2);
|
|
25417
|
+
metadata2.selectNumberingPlan(defaultCountry, countryCallingCode);
|
|
26320
25418
|
var possibleShorterNumber = number2.slice(countryCallingCode.length);
|
|
26321
|
-
var _extractNationalNumbe = extractNationalNumber(possibleShorterNumber,
|
|
26322
|
-
var _extractNationalNumbe2 = extractNationalNumber(number2,
|
|
26323
|
-
if (!matchesEntirely(nationalNumber, metadata2.nationalNumberPattern()) && matchesEntirely(possibleShorterNationalNumber, metadata2.nationalNumberPattern()) || checkNumberLength(nationalNumber,
|
|
25419
|
+
var _extractNationalNumbe = extractNationalNumber(possibleShorterNumber, country, metadata2), possibleShorterNationalNumber = _extractNationalNumbe.nationalNumber;
|
|
25420
|
+
var _extractNationalNumbe2 = extractNationalNumber(number2, country, metadata2), nationalNumber = _extractNationalNumbe2.nationalNumber;
|
|
25421
|
+
if (!matchesEntirely(nationalNumber, metadata2.nationalNumberPattern()) && matchesEntirely(possibleShorterNationalNumber, metadata2.nationalNumberPattern()) || checkNumberLength(nationalNumber, country, metadata2) === "TOO_LONG") {
|
|
26324
25422
|
return {
|
|
26325
25423
|
countryCallingCode,
|
|
26326
25424
|
number: possibleShorterNumber
|
|
@@ -26331,19 +25429,19 @@ function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number2
|
|
|
26331
25429
|
number: number2
|
|
26332
25430
|
};
|
|
26333
25431
|
}
|
|
26334
|
-
function extractCountryCallingCode(number2, country, defaultCountry, defaultCallingCode,
|
|
25432
|
+
function extractCountryCallingCode(number2, country, defaultCountry, defaultCallingCode, metadata2) {
|
|
26335
25433
|
if (!number2) {
|
|
26336
25434
|
return {};
|
|
26337
25435
|
}
|
|
26338
25436
|
var isNumberWithIddPrefix;
|
|
26339
25437
|
if (number2[0] !== "+") {
|
|
26340
|
-
var numberWithoutIDD = stripIddPrefix(number2, defaultCountry, defaultCallingCode,
|
|
25438
|
+
var numberWithoutIDD = stripIddPrefix(number2, defaultCountry, defaultCallingCode, metadata2);
|
|
26341
25439
|
if (numberWithoutIDD && numberWithoutIDD !== number2) {
|
|
26342
25440
|
isNumberWithIddPrefix = true;
|
|
26343
25441
|
number2 = "+" + numberWithoutIDD;
|
|
26344
25442
|
} else {
|
|
26345
25443
|
if (defaultCountry || defaultCallingCode) {
|
|
26346
|
-
var _extractCountryCallin = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number2, country, defaultCountry, defaultCallingCode,
|
|
25444
|
+
var _extractCountryCallin = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number2, country, defaultCountry, defaultCallingCode, metadata2), countryCallingCode = _extractCountryCallin.countryCallingCode, shorterNumber = _extractCountryCallin.number;
|
|
26347
25445
|
if (countryCallingCode) {
|
|
26348
25446
|
return {
|
|
26349
25447
|
countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
|
|
@@ -26362,7 +25460,7 @@ function extractCountryCallingCode(number2, country, defaultCountry, defaultCall
|
|
|
26362
25460
|
if (number2[1] === "0") {
|
|
26363
25461
|
return {};
|
|
26364
25462
|
}
|
|
26365
|
-
|
|
25463
|
+
metadata2 = new Metadata(metadata2);
|
|
26366
25464
|
var i = 2;
|
|
26367
25465
|
while (i - 1 <= MAX_LENGTH_COUNTRY_CODE && i <= number2.length) {
|
|
26368
25466
|
var _countryCallingCode = number2.slice(1, i);
|
|
@@ -26382,8 +25480,8 @@ function applyInternationalSeparatorStyle(formattedNumber) {
|
|
|
26382
25480
|
return formattedNumber.replace(new RegExp("[".concat(VALID_PUNCTUATION, "]+"), "g"), " ").trim();
|
|
26383
25481
|
}
|
|
26384
25482
|
var FIRST_GROUP_PATTERN = /(\$\d)/;
|
|
26385
|
-
function formatNationalNumberUsingFormat(number2, format2,
|
|
26386
|
-
var useInternationalFormat =
|
|
25483
|
+
function formatNationalNumberUsingFormat(number2, format2, _ref) {
|
|
25484
|
+
var useInternationalFormat = _ref.useInternationalFormat, withNationalPrefix = _ref.withNationalPrefix;
|
|
26387
25485
|
var formattedNumber = number2.replace(new RegExp(format2.pattern()), useInternationalFormat ? format2.internationalFormat() : (
|
|
26388
25486
|
// This library doesn't use `domestic_carrier_code_formatting_rule`,
|
|
26389
25487
|
// because that one is only used when formatting phone numbers
|
|
@@ -26408,7 +25506,7 @@ function formatNationalNumberUsingFormat(number2, format2, _ref2) {
|
|
|
26408
25506
|
var SINGLE_IDD_PREFIX_REG_EXP = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
|
|
26409
25507
|
function getIddPrefix(country, callingCode, metadata2) {
|
|
26410
25508
|
var countryMetadata = new Metadata(metadata2);
|
|
26411
|
-
countryMetadata.selectNumberingPlan(country
|
|
25509
|
+
countryMetadata.selectNumberingPlan(country, callingCode);
|
|
26412
25510
|
if (countryMetadata.defaultIDDPrefix()) {
|
|
26413
25511
|
return countryMetadata.defaultIDDPrefix();
|
|
26414
25512
|
}
|
|
@@ -26457,8 +25555,8 @@ function isViablePhoneNumber(number2) {
|
|
|
26457
25555
|
function isViablePhoneNumberStart(number2) {
|
|
26458
25556
|
return VALID_PHONE_NUMBER_START_REG_EXP.test(number2);
|
|
26459
25557
|
}
|
|
26460
|
-
function formatRFC3966(
|
|
26461
|
-
var number2 =
|
|
25558
|
+
function formatRFC3966(_ref) {
|
|
25559
|
+
var number2 = _ref.number, ext = _ref.ext;
|
|
26462
25560
|
if (!number2) {
|
|
26463
25561
|
return "";
|
|
26464
25562
|
}
|
|
@@ -26472,13 +25570,13 @@ var DEFAULT_OPTIONS = {
|
|
|
26472
25570
|
return "".concat(formattedNumber).concat(metadata2.ext()).concat(extension);
|
|
26473
25571
|
}
|
|
26474
25572
|
};
|
|
26475
|
-
function formatNumber(input, format2, options,
|
|
25573
|
+
function formatNumber(input, format2, options, metadata2) {
|
|
26476
25574
|
if (options) {
|
|
26477
25575
|
options = merge({}, DEFAULT_OPTIONS, options);
|
|
26478
25576
|
} else {
|
|
26479
25577
|
options = DEFAULT_OPTIONS;
|
|
26480
25578
|
}
|
|
26481
|
-
|
|
25579
|
+
metadata2 = new Metadata(metadata2);
|
|
26482
25580
|
if (input.country && input.country !== "001") {
|
|
26483
25581
|
if (!metadata2.hasCountry(input.country)) {
|
|
26484
25582
|
throw new Error("Unknown country: ".concat(input.country));
|
|
@@ -26516,9 +25614,6 @@ function formatNumber(input, format2, options, metadataJson) {
|
|
|
26516
25614
|
return;
|
|
26517
25615
|
}
|
|
26518
25616
|
var formattedNumber = formatIDD(nationalNumber, input.carrierCode, countryCallingCode, options.fromCountry, metadata2);
|
|
26519
|
-
if (!formattedNumber) {
|
|
26520
|
-
return;
|
|
26521
|
-
}
|
|
26522
25617
|
return addExtension(formattedNumber, input.ext, metadata2, options.formatExtension);
|
|
26523
25618
|
default:
|
|
26524
25619
|
throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(format2, '"'));
|
|
@@ -26676,7 +25771,7 @@ var PhoneNumber = /* @__PURE__ */ function() {
|
|
|
26676
25771
|
throw new TypeError("`nationalNumber` argument must be a string");
|
|
26677
25772
|
}
|
|
26678
25773
|
validateMetadata(metadata2);
|
|
26679
|
-
var
|
|
25774
|
+
var _getCountryAndCountry = getCountryAndCountryCallingCode(countryOrCountryCallingCode, metadata2), country = _getCountryAndCountry.country, countryCallingCode = _getCountryAndCountry.countryCallingCode;
|
|
26680
25775
|
this.country = country;
|
|
26681
25776
|
this.countryCallingCode = countryCallingCode;
|
|
26682
25777
|
this.nationalNumber = nationalNumber;
|
|
@@ -26723,29 +25818,16 @@ var PhoneNumber = /* @__PURE__ */ function() {
|
|
|
26723
25818
|
value: function isEqual(phoneNumber) {
|
|
26724
25819
|
return this.number === phoneNumber.number && this.ext === phoneNumber.ext;
|
|
26725
25820
|
}
|
|
26726
|
-
//
|
|
26727
|
-
//
|
|
26728
|
-
//
|
|
26729
|
-
//
|
|
26730
|
-
//
|
|
26731
|
-
//
|
|
26732
|
-
// * When the country calling code part of an international number is incomplete: `"+12"`.
|
|
26733
|
-
//
|
|
26734
|
-
// So leaving this `validateLength()` method here would suggest a hidden anti-pattern
|
|
26735
|
-
// of using it instead of `validatePhoneNumberLength()` while ignoring
|
|
26736
|
-
// the "too short to be even possible" case from phone number length validation.
|
|
26737
|
-
// And ignoring that case wouldn't make any sense in a real-world application
|
|
26738
|
-
// because it would still be a valid case that should be handled.
|
|
26739
|
-
//
|
|
26740
|
-
// Because of that, this method was eventually commented out in order to not introduce
|
|
26741
|
-
// that kind of an anti-pattern.
|
|
26742
|
-
//
|
|
25821
|
+
// This function was originally meant to be an equivalent for `validatePhoneNumberLength()`,
|
|
25822
|
+
// but later it was found out that it doesn't include the possible `TOO_SHORT` result
|
|
25823
|
+
// returned from `parsePhoneNumberWithError()` in the original `validatePhoneNumberLength()`,
|
|
25824
|
+
// so eventually I simply commented out this method from the `PhoneNumber` class
|
|
25825
|
+
// and just left the `validatePhoneNumberLength()` function, even though that one would require
|
|
25826
|
+
// and additional step to also validate the actual country / calling code of the phone number.
|
|
26743
25827
|
// validateLength() {
|
|
26744
|
-
// const
|
|
26745
|
-
//
|
|
26746
|
-
//
|
|
26747
|
-
// this.getMetadata()
|
|
26748
|
-
// )
|
|
25828
|
+
// const metadata = new Metadata(this.getMetadata())
|
|
25829
|
+
// metadata.selectNumberingPlan(this.countryCallingCode)
|
|
25830
|
+
// const result = checkNumberLength(this.nationalNumber, metadata)
|
|
26749
25831
|
// if (result !== 'IS_POSSIBLE') {
|
|
26750
25832
|
// return result
|
|
26751
25833
|
// }
|
|
@@ -26783,6 +25865,25 @@ var PhoneNumber = /* @__PURE__ */ function() {
|
|
|
26783
25865
|
}
|
|
26784
25866
|
}]);
|
|
26785
25867
|
}();
|
|
25868
|
+
var isCountryCode = function isCountryCode2(value) {
|
|
25869
|
+
return /^[A-Z]{2}$/.test(value);
|
|
25870
|
+
};
|
|
25871
|
+
function getCountryAndCountryCallingCode(countryOrCountryCallingCode, metadataJson) {
|
|
25872
|
+
var country;
|
|
25873
|
+
var countryCallingCode;
|
|
25874
|
+
var metadata2 = new Metadata(metadataJson);
|
|
25875
|
+
if (isCountryCode(countryOrCountryCallingCode)) {
|
|
25876
|
+
country = countryOrCountryCallingCode;
|
|
25877
|
+
metadata2.selectNumberingPlan(country);
|
|
25878
|
+
countryCallingCode = metadata2.countryCallingCode();
|
|
25879
|
+
} else {
|
|
25880
|
+
countryCallingCode = countryOrCountryCallingCode;
|
|
25881
|
+
}
|
|
25882
|
+
return {
|
|
25883
|
+
country,
|
|
25884
|
+
countryCallingCode
|
|
25885
|
+
};
|
|
25886
|
+
}
|
|
26786
25887
|
var E164_NUMBER_REGEXP = /^\+\d+$/;
|
|
26787
25888
|
function _typeof$5(o) {
|
|
26788
25889
|
"@babel/helpers - typeof";
|
|
@@ -27049,8 +26150,8 @@ function isPhoneContextValid(phoneContext) {
|
|
|
27049
26150
|
}
|
|
27050
26151
|
return RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_.test(phoneContext) || RFC3966_DOMAINNAME_PATTERN_.test(phoneContext);
|
|
27051
26152
|
}
|
|
27052
|
-
function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(numberToParse,
|
|
27053
|
-
var extractFormattedPhoneNumber =
|
|
26153
|
+
function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(numberToParse, _ref) {
|
|
26154
|
+
var extractFormattedPhoneNumber = _ref.extractFormattedPhoneNumber;
|
|
27054
26155
|
var phoneContext = extractPhoneContext(numberToParse);
|
|
27055
26156
|
if (!isPhoneContextValid(phoneContext)) {
|
|
27056
26157
|
throw new ParseError("NOT_A_NUMBER");
|
|
@@ -27084,9 +26185,9 @@ function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(numberToParse,
|
|
|
27084
26185
|
var MAX_INPUT_STRING_LENGTH = 250;
|
|
27085
26186
|
var PHONE_NUMBER_START_PATTERN = new RegExp("[" + PLUS_CHARS + VALID_DIGITS + "]");
|
|
27086
26187
|
var AFTER_PHONE_NUMBER_END_PATTERN = new RegExp("[^" + VALID_DIGITS + "#]+$");
|
|
27087
|
-
function parse(text2, options,
|
|
26188
|
+
function parse(text2, options, metadata2) {
|
|
27088
26189
|
options = options || {};
|
|
27089
|
-
|
|
26190
|
+
metadata2 = new Metadata(metadata2);
|
|
27090
26191
|
if (options.defaultCountry && !metadata2.hasCountry(options.defaultCountry)) {
|
|
27091
26192
|
if (options.v2) {
|
|
27092
26193
|
throw new ParseError("INVALID_COUNTRY");
|
|
@@ -27103,15 +26204,7 @@ function parse(text2, options, metadataJson) {
|
|
|
27103
26204
|
}
|
|
27104
26205
|
return {};
|
|
27105
26206
|
}
|
|
27106
|
-
var _parsePhoneNumber = parsePhoneNumber$1(
|
|
27107
|
-
formattedPhoneNumber,
|
|
27108
|
-
options.defaultCountry,
|
|
27109
|
-
options.defaultCallingCode,
|
|
27110
|
-
// If `country` is returned, its numbering plan will also be selected in `metadata`.
|
|
27111
|
-
// Otherwise, if `countryCallingCode` is returned, its numbering plan will also be selected in `metadata`.
|
|
27112
|
-
// Otherwise, if neither `country` nor `countryCallingCode` are returned, no numbering plan will be selected in `metadata`.
|
|
27113
|
-
metadata2
|
|
27114
|
-
), country = _parsePhoneNumber.country, nationalNumber = _parsePhoneNumber.nationalNumber, countryCallingCode = _parsePhoneNumber.countryCallingCode, countryCallingCodeSource = _parsePhoneNumber.countryCallingCodeSource, carrierCode = _parsePhoneNumber.carrierCode;
|
|
26207
|
+
var _parsePhoneNumber = parsePhoneNumber$1(formattedPhoneNumber, options.defaultCountry, options.defaultCallingCode, metadata2), country = _parsePhoneNumber.country, nationalNumber = _parsePhoneNumber.nationalNumber, countryCallingCode = _parsePhoneNumber.countryCallingCode, countryCallingCodeSource = _parsePhoneNumber.countryCallingCodeSource, carrierCode = _parsePhoneNumber.carrierCode;
|
|
27115
26208
|
if (!metadata2.hasSelectedNumberingPlan()) {
|
|
27116
26209
|
if (options.v2) {
|
|
27117
26210
|
throw new ParseError("INVALID_COUNTRY");
|
|
@@ -27153,7 +26246,7 @@ function parse(text2, options, metadataJson) {
|
|
|
27153
26246
|
countryCallingCode,
|
|
27154
26247
|
carrierCode,
|
|
27155
26248
|
valid,
|
|
27156
|
-
possible: valid ? true : options.extended === true && metadata2.possibleLengths() && isPossibleNumber(nationalNumber, metadata2) ? true : false,
|
|
26249
|
+
possible: valid ? true : options.extended === true && metadata2.possibleLengths() && isPossibleNumber(nationalNumber, country, metadata2) ? true : false,
|
|
27157
26250
|
phone: nationalNumber,
|
|
27158
26251
|
ext
|
|
27159
26252
|
};
|
|
@@ -27213,28 +26306,16 @@ function result(country, nationalNumber, ext) {
|
|
|
27213
26306
|
return result2;
|
|
27214
26307
|
}
|
|
27215
26308
|
function parsePhoneNumber$1(formattedPhoneNumber, defaultCountry, defaultCallingCode, metadata2) {
|
|
27216
|
-
var _extractCountryCallin = extractCountryCallingCode(
|
|
27217
|
-
parseIncompletePhoneNumber(formattedPhoneNumber),
|
|
27218
|
-
void 0,
|
|
27219
|
-
// `defaultCountry` and `defaultCallingCode` are only used to detect
|
|
27220
|
-
// if it's an "international" phone number or not. They won't be used
|
|
27221
|
-
// to derive the resulting `countryCallingCode` from them, or anything like that.
|
|
27222
|
-
defaultCountry,
|
|
27223
|
-
defaultCallingCode,
|
|
27224
|
-
metadata2.metadata
|
|
27225
|
-
), countryCallingCodeSource = _extractCountryCallin.countryCallingCodeSource, countryCallingCode = _extractCountryCallin.countryCallingCode, number2 = _extractCountryCallin.number;
|
|
26309
|
+
var _extractCountryCallin = extractCountryCallingCode(parseIncompletePhoneNumber(formattedPhoneNumber), void 0, defaultCountry, defaultCallingCode, metadata2.metadata), countryCallingCodeSource = _extractCountryCallin.countryCallingCodeSource, countryCallingCode = _extractCountryCallin.countryCallingCode, number2 = _extractCountryCallin.number;
|
|
27226
26310
|
var country;
|
|
27227
26311
|
if (countryCallingCode) {
|
|
27228
26312
|
metadata2.selectNumberingPlan(countryCallingCode);
|
|
27229
26313
|
} else if (number2 && (defaultCountry || defaultCallingCode)) {
|
|
26314
|
+
metadata2.selectNumberingPlan(defaultCountry, defaultCallingCode);
|
|
27230
26315
|
if (defaultCountry) {
|
|
27231
26316
|
country = defaultCountry;
|
|
27232
|
-
metadata2.selectNumberingPlan(defaultCountry);
|
|
27233
|
-
countryCallingCode = metadata2.numberingPlan.callingCode();
|
|
27234
|
-
} else {
|
|
27235
|
-
metadata2.selectNumberingPlan(defaultCallingCode);
|
|
27236
|
-
countryCallingCode = defaultCallingCode;
|
|
27237
26317
|
}
|
|
26318
|
+
countryCallingCode = defaultCallingCode || getCountryCallingCode(defaultCountry, metadata2.metadata);
|
|
27238
26319
|
} else return {};
|
|
27239
26320
|
if (!number2) {
|
|
27240
26321
|
return {
|
|
@@ -27242,7 +26323,7 @@ function parsePhoneNumber$1(formattedPhoneNumber, defaultCountry, defaultCalling
|
|
|
27242
26323
|
countryCallingCode
|
|
27243
26324
|
};
|
|
27244
26325
|
}
|
|
27245
|
-
var _extractNationalNumbe = extractNationalNumber(parseIncompletePhoneNumber(number2),
|
|
26326
|
+
var _extractNationalNumbe = extractNationalNumber(parseIncompletePhoneNumber(number2), country, metadata2), nationalNumber = _extractNationalNumbe.nationalNumber, carrierCode = _extractNationalNumbe.carrierCode;
|
|
27246
26327
|
var exactCountry = getCountryByCallingCode(countryCallingCode, {
|
|
27247
26328
|
nationalNumber,
|
|
27248
26329
|
metadata: metadata2
|
|
@@ -28282,7 +27363,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
|
|
|
28282
27363
|
__publicField(_SlidCaptchaManager, "instance");
|
|
28283
27364
|
let SlidCaptchaManager = _SlidCaptchaManager;
|
|
28284
27365
|
const slidCaptchaManager = SlidCaptchaManager.getInstance();
|
|
28285
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
27366
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-CL7ziaLY.js"));
|
|
28286
27367
|
const useSlidCaptcha = () => {
|
|
28287
27368
|
const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
|
|
28288
27369
|
const open = (config2) => {
|
|
@@ -28312,7 +27393,7 @@ const useSlidCaptcha = () => {
|
|
|
28312
27393
|
close
|
|
28313
27394
|
};
|
|
28314
27395
|
};
|
|
28315
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
27396
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-zsZg23w3.js"));
|
|
28316
27397
|
const useYunpianCaptcha = () => {
|
|
28317
27398
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
28318
27399
|
const open = (config2) => {
|
|
@@ -28736,7 +27817,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
28736
27817
|
class: normalizeClass(["g-data-panel i-data-panel", { "g-card": __props.card, "g-border": __props.border }])
|
|
28737
27818
|
}, [
|
|
28738
27819
|
renderSlot(_ctx.$slots, "header", {}, void 0, true),
|
|
28739
|
-
__props.loading ? renderSlot(_ctx.$slots, "loading", {}, () => [
|
|
27820
|
+
__props.loading ? renderSlot(_ctx.$slots, "loading", { key: 0 }, () => [
|
|
28740
27821
|
__props.skeleton ? (openBlock(), createBlock(unref(Skeleton), {
|
|
28741
27822
|
key: 0,
|
|
28742
27823
|
class: "data-panel__skeleton",
|
|
@@ -28746,7 +27827,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
28746
27827
|
name: "loading",
|
|
28747
27828
|
class: "data-panel__content-loading"
|
|
28748
27829
|
})) : createCommentVNode("", true)
|
|
28749
|
-
], true
|
|
27830
|
+
], true) : renderSlot(_ctx.$slots, "default", { key: 1 }, void 0, true)
|
|
28750
27831
|
], 2);
|
|
28751
27832
|
};
|
|
28752
27833
|
}
|
|
@@ -29824,7 +28905,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
29824
28905
|
await LoginConfig.bindPhone({
|
|
29825
28906
|
param: {
|
|
29826
28907
|
successFunc: loginSuccess,
|
|
29827
|
-
failFunc: bindPhoneFail
|
|
28908
|
+
failFunc: bindPhoneFail,
|
|
28909
|
+
loginDeviceType: "pc",
|
|
28910
|
+
country
|
|
29828
28911
|
},
|
|
29829
28912
|
loginParams: {
|
|
29830
28913
|
mobile,
|
|
@@ -29851,6 +28934,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
29851
28934
|
validFunc: LoginCheck,
|
|
29852
28935
|
successFunc: loginSuccess,
|
|
29853
28936
|
failFunc: loginFail,
|
|
28937
|
+
loginDeviceType: "pc",
|
|
28938
|
+
country,
|
|
29854
28939
|
captchaType: captchaType.value
|
|
29855
28940
|
},
|
|
29856
28941
|
loginParams: passwordParams,
|
|
@@ -29873,6 +28958,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
29873
28958
|
validFunc: LoginCheck,
|
|
29874
28959
|
successFunc: loginSuccess,
|
|
29875
28960
|
failFunc: loginFail,
|
|
28961
|
+
loginDeviceType: "pc",
|
|
29876
28962
|
country
|
|
29877
28963
|
},
|
|
29878
28964
|
loginParams: phoneParams
|
|
@@ -30246,7 +29332,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
30246
29332
|
await LoginConfig.changeBindAccount({
|
|
30247
29333
|
param: {
|
|
30248
29334
|
successFunc: loginSuccess,
|
|
30249
|
-
failFunc: changeBindAccountFail
|
|
29335
|
+
failFunc: changeBindAccountFail,
|
|
29336
|
+
loginDeviceType: "pc"
|
|
30250
29337
|
},
|
|
30251
29338
|
loginParams: {
|
|
30252
29339
|
mask: bindPhoneConflictMask.value
|
|
@@ -31957,7 +31044,10 @@ const RESERVED_SINGLE_SEGMENTS = new Set(
|
|
|
31957
31044
|
"merge_requests",
|
|
31958
31045
|
"search",
|
|
31959
31046
|
"search-page",
|
|
31960
|
-
"
|
|
31047
|
+
"marketplaceApps",
|
|
31048
|
+
"marketplaceAppDetail",
|
|
31049
|
+
"marketplaceActions",
|
|
31050
|
+
"marketplaceActionDetail",
|
|
31961
31051
|
"login",
|
|
31962
31052
|
"logout",
|
|
31963
31053
|
"register",
|
|
@@ -33864,7 +32954,7 @@ const index = {
|
|
|
33864
32954
|
}
|
|
33865
32955
|
};
|
|
33866
32956
|
export {
|
|
33867
|
-
|
|
32957
|
+
AtomCodeLauncher as $,
|
|
33868
32958
|
isZh as A,
|
|
33869
32959
|
ThemeType as B,
|
|
33870
32960
|
currentTheme as C,
|
|
@@ -33880,67 +32970,67 @@ export {
|
|
|
33880
32970
|
asideRequest as M,
|
|
33881
32971
|
_sfc_main$$ as N,
|
|
33882
32972
|
loadAsideData as O,
|
|
33883
|
-
|
|
33884
|
-
|
|
32973
|
+
ToolsFloat as P,
|
|
32974
|
+
_sfc_main$e as Q,
|
|
33885
32975
|
REPO_MODULE as R,
|
|
33886
|
-
|
|
32976
|
+
SceneValue as S,
|
|
33887
32977
|
TOPIC_TYPE as T,
|
|
33888
|
-
|
|
33889
|
-
|
|
33890
|
-
|
|
33891
|
-
|
|
33892
|
-
|
|
33893
|
-
|
|
32978
|
+
GitCodeAside as U,
|
|
32979
|
+
GitCodeAsideV2 as V,
|
|
32980
|
+
ScrollActiveContainer as W,
|
|
32981
|
+
GitCodeHeader as X,
|
|
32982
|
+
HeaderSkeleton as Y,
|
|
32983
|
+
HomeHeaderActions as Z,
|
|
33894
32984
|
_export_sfc as _,
|
|
33895
32985
|
i18n as a,
|
|
33896
|
-
|
|
33897
|
-
|
|
33898
|
-
|
|
33899
|
-
|
|
33900
|
-
|
|
33901
|
-
|
|
33902
|
-
|
|
33903
|
-
|
|
33904
|
-
|
|
33905
|
-
|
|
33906
|
-
|
|
33907
|
-
|
|
33908
|
-
|
|
33909
|
-
|
|
33910
|
-
|
|
33911
|
-
|
|
33912
|
-
|
|
33913
|
-
|
|
33914
|
-
|
|
33915
|
-
|
|
33916
|
-
|
|
33917
|
-
|
|
33918
|
-
|
|
33919
|
-
|
|
33920
|
-
|
|
33921
|
-
|
|
33922
|
-
|
|
33923
|
-
|
|
33924
|
-
|
|
33925
|
-
_sfc_main
|
|
33926
|
-
|
|
33927
|
-
|
|
33928
|
-
|
|
33929
|
-
|
|
33930
|
-
|
|
33931
|
-
|
|
33932
|
-
|
|
33933
|
-
|
|
33934
|
-
|
|
33935
|
-
|
|
33936
|
-
|
|
33937
|
-
|
|
33938
|
-
|
|
33939
|
-
|
|
33940
|
-
|
|
33941
|
-
|
|
33942
|
-
|
|
33943
|
-
|
|
32986
|
+
HeaderCreateMenu as a0,
|
|
32987
|
+
EnterpriseHeader as a1,
|
|
32988
|
+
SiteAnnouncement as a2,
|
|
32989
|
+
AsideFooterTools as a3,
|
|
32990
|
+
useLogin as a4,
|
|
32991
|
+
setLayoutConfig as a5,
|
|
32992
|
+
GitCodeLayoutEmitter as a6,
|
|
32993
|
+
setTheme as a7,
|
|
32994
|
+
HEADER_CREATE_MENU_PATHS as a8,
|
|
32995
|
+
index as a9,
|
|
32996
|
+
HovercardCache as aA,
|
|
32997
|
+
InFlightRegistry as aB,
|
|
32998
|
+
buildHovercardCacheKey as aC,
|
|
32999
|
+
isCacheablePreview as aD,
|
|
33000
|
+
computeHovercardPosition as aE,
|
|
33001
|
+
pickFirstLineRect as aF,
|
|
33002
|
+
resolveHovercardLabels as aG,
|
|
33003
|
+
normalizeStateLabel as aH,
|
|
33004
|
+
labelTextColor as aI,
|
|
33005
|
+
rgbToLum as aJ,
|
|
33006
|
+
formatRelativeTime as aK,
|
|
33007
|
+
formatShortSha as aL,
|
|
33008
|
+
_sfc_main$b as aa,
|
|
33009
|
+
ShortcutHelpButton as ab,
|
|
33010
|
+
setShortcutConfig as ac,
|
|
33011
|
+
useShortcutConfig as ad,
|
|
33012
|
+
resetShortcutSequence as ae,
|
|
33013
|
+
openShortcutHelp as af,
|
|
33014
|
+
openShortcutCommands as ag,
|
|
33015
|
+
_sfc_main as ah,
|
|
33016
|
+
EntityCardShell as ai,
|
|
33017
|
+
_sfc_main$7 as aj,
|
|
33018
|
+
_sfc_main$6 as ak,
|
|
33019
|
+
_sfc_main$8 as al,
|
|
33020
|
+
_sfc_main$5 as am,
|
|
33021
|
+
_sfc_main$4 as an,
|
|
33022
|
+
_sfc_main$3 as ao,
|
|
33023
|
+
_sfc_main$2 as ap,
|
|
33024
|
+
setEntityHovercardConfig as aq,
|
|
33025
|
+
useEntityHovercardConfig as ar,
|
|
33026
|
+
resetEntityHovercardConfig as as,
|
|
33027
|
+
setEntityHovercardHost as at,
|
|
33028
|
+
useEntityHovercardHost as au,
|
|
33029
|
+
resetEntityHovercardHost as av,
|
|
33030
|
+
HOVERCARD_ATTR as aw,
|
|
33031
|
+
resolveHovercardTargetFromElement as ax,
|
|
33032
|
+
resolveTargetFromAttributes as ay,
|
|
33033
|
+
resolveTargetFromUrl as az,
|
|
33944
33034
|
REPO_EVENT as b,
|
|
33945
33035
|
useLayoutConfig as c,
|
|
33946
33036
|
transferNumber as d,
|