text: module.exports=function(a){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return a[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=a,n.c=e,n.d=function(a,e,o){n.o(a,e)||Object.defineProperty(a,e,{enumerable:!0,get:o})},n.r=function(a){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},n.t=function(a,e){if(1&e&&(a=n(a)),8&e)return a;if(4&e&&"object"==typeof a&&a&&a.__esModule)return a;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:a}),2&e&&"string"!=typeof a)for(var i in a)n.d(o,i,function(e){return a[e]}.bind(null,i));return o},n.n=function(a){var e=a&&a.__esModule?function(){return a.default}:function(){return a};return n.d(e,"a",e),e},n.o=function(a,e){return Object.prototype.hasOwnProperty.call(a,e)},n.p="",n(n.s=1)}([function(a,e,n){const o=n(4);a.exports={_validateArgs:(a,e,n=[],i=!1)=>{const r=((a,e)=>a?()=>{throw new o(e)}:()=>{console.error(e)})(i,e||"the value argument is required and must be string");n.length?n.filter(e=>typeof a==e).length||r():"string"!=typeof a&&r()},_searchBy:(a=[],e)=>a.find(a=>a.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()==e.toLowerCase()),addConstant:(a,e,n)=>(Object.defineProperty(a,e,{enumerable:!1,configurable:!1,writable:!1,value:n}),a)}},function(a,e,n){const o=n(2),i=n(5);a.exports={Geo:o,Validator:i}},function(a,e,n){const{provinces:o,regions:i}=n(3),{_searchBy:r,_validateArgs:t,addConstant:l}=n(0);class s{getProvinces(){return Object.keys(o)}getMunicipalitiesOf(a){t(a);const e=r(this.getProvinces(),a);if(e)return o[e].municipality}getMunicipalDistrictOf(a,e){t(a);const n=this.getMunicipalitiesOf(a);if(n){const a=r(Object.keys(n),e);return a?n[a]:void 0}}getProvinceByMunicipality(a){return t(a),this.getProvinces().filter(e=>{const n=Object.keys(o[e].municipality);return r(n,a)})}getProvinceByMunicipalDistrict(a){return t(a),this.getProvinces().map(e=>{const n=o[e].municipality,i=Object.keys(n).filter(e=>r(n[e],a));return!!i.length&&{province:e,municipality:i[0]}}).filter(a=>a)}getRegions(){return Object.keys(i).map(a=>i[a].name)}getRegionsAndZones(){return Object.keys(i).map(a=>{const e=Object.keys(i[a]).map(e=>i[a][e].name).filter(a=>a);return{region:i[a].name,zones:e}})}getProvincesByRegion(a){return t(a),this.getProvinces().filter(e=>o[e].region.name.toLowerCase()===a.toLowerCase())}getProvincesByZone(a){return t(a),this.getProvinces().filter(e=>o[e].region.zone.toLowerCase()===a.toLowerCase())}}l(s.prototype,"numberOfProvinces",31),l(s.prototype,"numberOfMunicipalities",158),l(s.prototype,"numberOfMunicipalDistrict",231),a.exports=new s},function(a,e){const n={cibao:{name:"Cibao",norte:{id:1,name:"Cibao Norte"},sur:{id:2,name:"Cibao Sur"},nordeste:{id:3,name:"Cibao Nordeste"},noroeste:{id:4,name:"Cibao Noroeste"}},sur:{name:"Sur",valdesia:{id:5,name:"Valdesia"},elValle:{id:6,name:"El Valle"},enriquillo:{id:7,name:"Enriquillo"}},este:{name:"Este",yuma:{id:8,name:"Yuma"},higuamo:{id:9,name:"Higuamo"},ozama:{id:10,name:"Ozama"}}},o={Azua:{region:{id:n.sur.valdesia.id,name:n.sur.name,zone:n.sur.valdesia.name},municipality:{"Azua de Compostela":["Barreras","Barro Arriba","Clavellina","Emma Balaguer Viuda Vallejo","Las Barías-La Estancia","Las Lomas","Los Jovillos","Puerto Viejo"],"Estebanía":[],Guayabal:[],"Las Charcas":["Hatillo","Palmar de Ocoa"],"Las Yayas de Viajama":["Villarpando","Hato Nuevo-Cortés"],"Padre Las Casas":["La Siembra","Las Lagunas","Los Fríos"],Peralta:[],"Pueblo Viejo":["El Rosario"],"Sabana Yegua":["Proyecto 4","Ganadero","Proyecto 2-C"],"Tábara Arriba":["Amiama Gómez","Los Toros","Tábara Abajo"]}},Bahoruco:{region:{id:n.sur.enriquillo.id,name:n.sur.name,zone:n.sur.enriquillo.name},municipality:{Neiba:["El Palmar"],"Galván":["El Salado"],"Los Ríos":["Las Clavellinas"],Tamayo:["Cabeza de Toro","Mena","Monserrat","Santa Bárbara-El 6 ","Santana ","Uvilla"]}},Barahona:{region:{id:n.sur.enriquillo.id,name:n.sur.name,zone:n.sur.enriquillo.name},municipality:{Barahona:["El Cachón","La Guázara","Villa Central"],Cabral:[],"El Peñón":[],Enriquillo:["Arroyo Dulce"],"Fundación":["Pescadería"],Jaquimeyes:["Palo Alto"],"La Ciénaga":["Bahoruco"],"Las Salinas":[],"Paraíso":["Los Patos"],Polo:[],"Vicente Noble":["Canoa","Fondo Negro","Quita Coraza"]}},"Dajabón":{region:{id:n.cibao.noroeste.id,name:n.cibao.name,zone:n.cibao.noroeste.name},municipality:{"Dajabón":["Cañongo"],"El Pino":["Manuel Bueno"],"Loma de Cabrera":["Capotillo","Santiago de la Cruz"],Partido:[],"Restauración":[]}},Duarte:{region:{id:n.cibao.nordeste.id,name:n.cibao.name,zone:n.cibao.nordeste.name},municipality:{"San Francisco de Macorís":["Cenoví","Jaya","La Peña","Presidente Don Antonio Guzmán Fernández"],Arenoso:["El Aguacate","Los Coles"],Castillo:[],"Eugenio María de Hostos":["Sabana Grande"],"Las Guáranas":[],Pimentel:[],"Villa Riva":["Agua Santa del Yuna","Barraquito","Cristo Rey de Guaraguao","Las Táranas"]}},"El Seibo":{region:{id:n.este.yuma.id,name:n.este.name,zone:n.este.yuma.name},municipality:{"El Seibo":["Pedro Sánchez","San Francisco-Vicentillo","Santa Lucía"],Miches:["El Cedro","La Gina"]}},"Elías Piña":{region:{id:n.sur.elValle.id,name:n.sur.name,zone:n.sur.elValle.name},municipality:{Comendador:["Guayabo","Sabana Larga"],"Bánica":["Sabana Cruz","Sabana Higuero"],"El Llano":["Guanito"],"Hondo Valle":["Rancho de la Guardia"],"Juan Santiago":[],"Pedro Santana":["Río Limpio"]}},Espaillat:{region:{id:n.cibao.norte.id,name:n.cibao.name,zone:n.cibao.norte.name},municipality:{Moca:["Canca La Reina","El Higüerito","José Contreras","Juan López","La Ortega","Las Lagunas","Monte de la Jagua","San Víctor"],"Cayetano Germosén":[],"Gaspar Hernández":["Joba Arriba","Veragua","Villa Magante"],"Jamao al Norte":[]}},"Hato Mayor":{region:{id:n.este.higuamo.id,name:n.este.name,zone:n.este.higuamo.name},municipality:{"Hato Mayor del Rey":["Guayabo Dulce","Mata Palacio","Yerba Buena"],"El Valle":[],"Sabana de la Mar":["Elupina Cordero de Las Cañitas"]}},"Hermanas Mirabal":{region:{id:n.cibao.nordeste.id,name:n.cibao.name,zone:n.cibao.nordeste.name},municipality:{Salcedo:["Jamao Afuera"],Tenares:["Blanco"],"Villa Tapia":[]}},Independencia:{region:{id:n.sur.enriquillo.id,name:n.sur.name,zone:n.sur.enriquillo.name},municipality:{"Jimaní":["Boca de Cachón","El Limón"],"Cristóbal":["El Batey 8"],"Duvergé":["Vengan a Ver"],"La Descubierta":[],Mella:["La Colonia"],"Postrer Río":["Guayabal"]}},"La Altagracia":{region:{id:n.este.yuma.id,name:n.este.name,zone:n.este.yuma.name},municipality:{"Higüey":["La Otra Banda","Lagunas de Nisibón","Verón-Punta Cana"],"San Rafael del Yuma":["Bayahibe","Boca de Yuma"]}},"La Romana":{region:{id:n.este.yuma.id,name:n.este.name,zone:n.este.yuma.name},municipality:{"La Romana":["Caleta"],Guaymate:[],"Villa Hermosa":["Cumayasa"]}},"La Vega":{region:{id:n.cibao.sur.id,name:n.cibao.name,zone:n.cibao.sur.name},municipality:{"La Concepción de La Vega":["El Ranchito","Río Verde Arriba"],Constanza:["La Sabina","Tireo"],Jarabacoa:["Buena Vista","Manabao"],"Jima Abajo":["Rincón"]}},"María Trinidad Sánchez":{region:{id:n.cibao.nordeste.id,name:n.cibao.name,zone:n.cibao.nordeste.name},municipality:{Nagua:["Arroyo al Medio ","Las Gordas ","San José de Matanzas"],Cabrera:["Arroyo Salado ","La Entrada"],"El Factor":["El Pozo"],"Río San Juan":[]}},"Monseñor Nouel":{region:{id:n.cibao.sur.id,name:n.cibao.name,zone:n.cibao.sur.name},municipality:{Bonao:["Arroyo Toro-Masipedro ","La Salvia-Los Quemados ","Jayaco ","Juma Bejucal ","Sabana del Puerto"],"Maimón":[],"Piedra Blanca":["Juan Adrián ","Villa Sonador"]}},Montecristi:{region:{id:n.cibao.noroeste.id,name:n.cibao.name,zone:n.cibao.noroeste.name},municipality:{Montecristi:[],"Castañuela":["Palo Verde"],"Guayubín":["Cana Chapetón ","Hatillo Palma ","Villa Elisa"],"Las Matas de Santa Cruz":[],"Pepillo Salcedo":[],"Villa Vásquez":[]}},"Monte Plata":{region:{id:n.este.higuamo.id,name:n.este.name,zone:n.este.higuamo.name},municipality:{"Monte Plata":["Boyá ","Chirino ","Don Juan"],Bayaguana:[],Peralvillo:[],"Sabana Grande de Boyá":["Gonzalo ","Majagual"],"Yamasá":["Los Botados"]}},Pedernales:{region:{id:n.sur.enriquillo.id,name:n.sur.name,zone:n.sur.enriquillo.name},municipality:{Pedernales:["José Francisco Peña Gómez ","Juancho"],Oviedo:[]}},Peravia:{region:{id:n.sur.valdesia.id,name:n.sur.name,zone:n.sur.valdesia.name},municipality:{"Baní":["Catalina ","El Carretón ","El Limonal ","Las Barías ","Matanzas ","Paya ","Sabana Buey ","Villa Fundación ","Villa Sombrero"],Nizao:["Pizarrete ","Santana"]}},"Puerto Plata":{region:{id:n.cibao.norte.id,name:n.cibao.name,zone:n.cibao.norte.name},municipality:{"Puerto Plata":["Maimón ","Yásica Arriba"],Altamira:["Río Grande"],Guananico:[],Imbert:[],"Los Hidalgos":["Navas"],"Luperón":["Belloso ","Estrecho ","La Isabela"],"Sosúa":["Cabarete","Sabaneta de Yásica"],"Villa Isabela":["Estero Hondo ","Gualete ","La Jaiba"],"Villa Montellano":[]}},"Samamá":{region:{id:n.cibao.nordeste.id,name:n.cibao.name,zone:n.cibao.nordeste.name},municipality:{"Samaná":["Arroyo Barril ","El Limón ","Las Galeras"],"Las Terrenas":[],"Sánchez":[]}},"San Cristóbal":{region:{id:n.sur.valdesia.id,name:n.sur.name,zone:n.sur.valdesia.name},municipality:{"San Cristóbal":["Hato Damas"],"Bajos de Haina":["El Carril"],"Cambita Garabito":["Cambita El Pueblecito"],"Los Cacaos":[],"Sabana Grande de Palenque":[],"San Gregorio de Nigua":[],"Villa Altagracia":["La Cuchilla ","Medina ","San José del Puerto"],Yaguate:[]}},"San José de Ocoa":{region:{id:n.sur.valdesia.id,name:n.sur.name,zone:n.sur.valdesia.name},municipality:{"San José de Ocoa":["El Naranjal ","El Pinar ","La Ciénaga ","Nizao-Las Auyamas"],"Rancho Arriba":[],"Sabana Larga":[]}},"San Juan":{region:{id:n.sur.elValle.id,name:n.sur.name,zone:n.sur.elValle.name},municipality:{"San Juan de la Maguana":["El Rosario ","Guanito ","Hato del Padre ","Hato Nuevo ","La Jagua ","Las Charcas de María Nova ","Pedro Corto ","Sabana Alta ","Sabaneta"],"Bohechío":["Arroyo Cano ","Yaque"],"El Cercado":["Batista ","Derrumbadero"],"Juan de Herrera":["Jínova"],"Las Matas de Farfán":["Carrera de Yegua","Matayaya"],Vallejuelo:["Jorjillo"]}},"San Pedro de Macorís":{region:{id:n.este.higuamo.id,name:n.este.name,zone:n.este.higuamo.name},municipality:{"San Pedro de Macorís":[],Consuelo:[],Guayacanes:[],Quisqueya:[],"Ramón Santana":[],"San José de Los Llanos":["El Puerto ","Gautier"]}},"Sánchez Ramírez":{region:{id:n.cibao.sur.id,name:n.cibao.name,zone:n.cibao.sur.name},municipality:{"Cotuí":["Caballero ","Comedero Arriba ","Quita Sueño"],Cevicos:["La Cueva ","Platanal"],Fantino:[],"La Mata":["Angelina ","La Bija ","Hernando Alonzo"]}},Santiago:{region:{id:n.cibao.norte.id,name:n.cibao.name,zone:n.cibao.norte.name},municipality:{Santiago:["Baitoa ","Hato del Yaque ","La Canela ","Pedro García ","San Francisco de Jacagua"],"Bisonó":[],"Jánico":["El Caimito ","Juncalito"],"Licey al Medio":["Las Palomas"],"Puñal":["Canabacoa ","Guayabal"],"Sabana Iglesia":[],"San José de las Matas":["El Rubio ","La Cuesta ","Las Placetas"],Tamboril:["Canca La Piedra"],"Villa González":["El Limón ","Palmar Arriba"]}},"Santiago Rodríguez":{region:{id:n.cibao.noroeste.id,name:n.cibao.name,zone:n.cibao.noroeste.name},municipality:{"San Ignacio de Sabaneta":[],"Los Almácigos":[],"Monción":[]}},"Santo Domingo":{region:{id:n.este.ozama.id,name:n.este.name,zone:n.este.ozama.name},municipality:{"Santo Domingo Este":["San Luis"],"Boca Chica":["La Caleta"],"Los Alcarrizos":["Palmarejo-Villa Linda ","Pantoja"],"Pedro Brand":["La Cuaba ","La Guáyiga"],"San Antonio de Guerra":["Hato Viejo"],"Santo Domingo Norte":["La Victoria"],"Santo Domingo Oeste":[]}},Valverde:{region:{id:n.cibao.noroeste.id,name:n.cibao.name,zone:n.cibao.noroeste.name},municipality:{Mao:["Ámina ","Guatapanal ","Jaibón (Pueblo Nuevo)"],Esperanza:["Boca de Mao ","Jicomé ","Maizal ","Paradero"],"Laguna Salada":["Cruce de Guayacanes ","Jaibón ","La Caya"]}}};a.exports={regions:n,provinces:o}},function(a,e){class n extends Error{constructor(a){super(a),this.name="UtilDoPackageError"}}a.exports=n},function(a,e,n){const{isRnc:o}=n(6),{_searchBy:i,_validateArgs:r,addConstant:t}=n(0);let l=!1;a.exports=new class{setStrictValidation(a){l=a}isAnIde(a){return r(a,"the value should be string or number",["string","number"],l),function(a){const e=a.replace(/\D/g,"");let n="";for(let a=0;a<10;a++){const o=Number(e[a]);n=n+=(0===a%2?1*o:2*o).toString()}const o=n.split("").reduce((a,e)=>+a+Number(e)),i=function(a){for(let e=a;e<a+10;e++)if(e%10==0)return e}(o)-o,r=+e[10];return i===r}(a)}formatToIde(a){r(a,"The value should be string or number",["string","number"],l);const e=(""+a).replace(/\(?(\d{3})\)?[- ]?(\d{7})[- ]?(\d{1})/g,"$1-$2-$3");return 13===e.length?e:void 0}isATel(a){r(a,"the value should be string or number",["string","number"],l);const e=(""+a).match(/\d+/gi);return null!==(Array.isArray(e)?e.join("").match(/^8[0-4]9\d{3}\d{4}$/):null)}formatToTel(a){r(a,"the value should be string or number",["string","number"],l);const e=(""+a).replace(/\(?(\d{3})\)?[- ]?(\d{3})[- ]?(\d{4})/g,"($1) $2-$3");return 14===e.length?e:void 0}isRNC(a){return o(""+a)}formatToRNC(a){if(r(a,"the value should be string or number",["string","number"],l),this.isRNC(a)){return(""+a).replace(/\(?(\d{3})\)?[- ]?(\d{5})[- ]?(\d{1})/g,"$1-$2-$3")}}}},function(a,e,n){a.exports=function(){"use strict";function a(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}var e=function(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}(function(a,e){return a(e={exports:{}}),e.exports}((function(e,n){e.exports=function e(n,o,i){function r(l,s){if(!o[l]){if(!n[l]){if(!s&&a)return a();if(t)return t(l,!0);var u=new Error("Cannot find module '"+l+"'");throw u.code="MODULE_NOT_FOUND",u}var c=o[l]={exports:{}};n[l][0].call(c.exports,(function(a){return r(n[l][1][a]||a)}),c,c.exports,e,n,o,i)}return o[l].exports}for(var t=a,l=0;l<i.length;l++)r(i[l]);return r}({1:[function(a,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(a){return function(e){for(var n=e?e.length:0,o=1,i=0;n--;)i+=(o^=1)?a[e[n]]:parseInt(e[n],10);return i%10==0&&i>0}}([0,2,4,6,8,1,3,5,7,9]),e.exports=n.default},{}]},{},[1])(1)}))),n=["00000000018","11111111123","00100759932","00105606543","00114272360","00200123640","00200409772","00800106971","01200004166","01400074875","01400000282","03103749672","03200066940","03800032522","03900192284","04900026260","05900072869","07700009346","00114532330","03121982479","40200700675","40200639953","00121581750","00119161853","22321581834","00121581800","09421581768","22721581818","90001200901","00301200901","40200452735","40200401324","10621581792"];return{isCedula:function(a){return"string"==typeof a&&11===(a=a.replace(/[^\d]/g,"")).length&&(n.indexOf(a)>-1||e(a))},isRnc:function(a){return"string"==typeof a&&9===(a=a.replace(/[^\d]/g,"")).length&&function(a){a=a.split("").map((function(a){return parseInt(a,10)}));for(var e=[7,9,8,6,5,4,3,2],n=0,o=e.length-1;o>=0;o-=1)n+=e[o]*a[o];var i=n%11;return(0===i?2:1===i?1:11-i)===a.pop()}(a)}}}()}]);