react-phone-number-input-mui
Version:
Telephone input for React and Material-UI. Fork of catamphetamine awesome work of react-phone-number-input.
17 lines • 331 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("react-phone-number-input",[],t):"object"==typeof exports?exports["react-phone-number-input"]=t():e["react-phone-number-input"]=t()}(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=150)}([function(e,t,n){e.exports=n(145)()},function(e,t,n){"use strict";e.exports=n(148)},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.validateMetadata=$,t.getExtPrefix=function(e,t){return new s(t).country(e).ext()};var a,i=n(95),l=(a=i)&&a.__esModule?a:{default:a};function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d="1.2.0",s=function(){function e(t){u(this,e),$(t),this.metadata=t,this.v1=!t.version,this.v2=void 0!==t.version&&-1===(0,l.default)(t.version,d),this.v3=void 0!==t.version}return o(e,[{key:"hasCountry",value:function(e){return void 0!==this.metadata.countries[e]}},{key:"country",value:function(e){if(!e)return this._country=void 0,this.country_metadata=void 0,this;if(!this.hasCountry(e))throw new Error("Unknown country: "+e);return this._country=e,this.country_metadata=this.metadata.countries[e],this}},{key:"countryCallingCode",value:function(){return this.country_metadata[0]}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.country_metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.country_metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.country_metadata[1]:this.country_metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.country_metadata[this.v2?2:3]}},{key:"formats",value:function(){var e=this,t=this.country_metadata[this.v1?2:this.v2?3:4]||[];return t.map(function(t){return new c(t,e)})}},{key:"nationalPrefix",value:function(){return this.country_metadata[this.v1?3:this.v2?4:5]}},{key:"nationalPrefixFormattingRule",value:function(){return this.country_metadata[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixForParsing",value:function(){return this.country_metadata[this.v1?5:this.v2?6:7]||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.country_metadata[this.v1?6:this.v2?7:8]}},{key:"nationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.country_metadata[this.v1?7:this.v2?8:9]}},{key:"leadingDigits",value:function(){return this.country_metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.country_metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}},{key:"type",value:function(e){if(this.hasTypes()&&p(this.types(),e))return new f(p(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?" ext. ":this.country_metadata[13]||" ext. "}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){var t=this.countryCallingCodes()[e][0];this.hasCountry(t)&&this.country(t)}},{key:"selectedCountry",value:function(){return this._country}}]),e}();t.default=s;var c=function(){function e(t,n){u(this,e),this._format=t,this.metadata=n}return o(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormatting",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormatting()}},{key:"nationalPrefixIsMandatoryWhenFormatting",value:function(){return this.nationalPrefixFormattingRule()&&this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormatting()}},{key:"usesNationalPrefix",value:function(){return"$1"!==this.nationalPrefixFormattingRule()&&/\d/.test(this.nationalPrefixFormattingRule().replace("$1",""))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),f=function(){function e(t,n){u(this,e),this.type=t,this.metadata=n}return o(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function p(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function $(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!h(e)||!h(e.countries)||!h(e.country_calling_codes)&&!h(e.country_phone_code_to_countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` and `.country_calling_codes` child object properties. Got "+(h(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+m(e)+": "+e)+".")}var h=function(e){return"object"===(void 0===e?"undefined":r(e))},m=function(e){return void 0===e?"undefined":r(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DIGITS=t.MAX_LENGTH_COUNTRY_CODE=t.MAX_LENGTH_FOR_NSN=t.PLUS_CHARS=t.VALID_PUNCTUATION=t.VALID_DIGITS=t.WHITESPACE=void 0,t.parseDigit=function(e){return d[e]},t.parse_phone_number_digits=s,t.parse_national_number_and_country_calling_code=function(e,t,n){if(!(e=s(e)))return{};if("+"!==e[0]){var o=(0,r.stripIDDPrefix)(e,t,n.metadata);if(!o||o===e)return{number:e};e="+"+o}if("0"===e[1])return{};var a=2;for(;a-1<=u&&a<=e.length;){var i=e.slice(1,a);if(n.countryCallingCodes()[i])return{countryCallingCode:i,number:e.slice(a)};a++}return{}},t.matches_entirely=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1];"string"==typeof t&&(t="^(?:"+t+")$");var n=e.match(t);return null!==n&&n[0].length===e.length},t.create_extension_pattern=function(e){var t="xx##~~";switch(e){case"parsing":t=",;"+t}return c+f+"|[ \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|["+t+"]|int|anexo|int)[:\\..]?[ \\t,-]*"+f+"#?|[- ]+(["+a+"]{1,5})#"};var r=n(52),o=t.WHITESPACE=" ",a=t.VALID_DIGITS="0-90-9٠-٩۰-۹",i=(t.VALID_PUNCTUATION="-‐-―−ー-//.."+o+"()()[]\\[\\]~⁓∼~",t.PLUS_CHARS="++"),l=new RegExp("^["+i+"]+"),u=(t.MAX_LENGTH_FOR_NSN=17,t.MAX_LENGTH_COUNTRY_CODE=3),d=t.DIGITS={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function s(e){return(l.test(e)?"+":"")+function(e,t){for(var n="",r=e.split(""),o=Array.isArray(r),a=0,r=o?r:r[Symbol.iterator]();;){var i;if(o){if(a>=r.length)break;i=r[a++]}else{if((a=r.next()).done)break;i=a.value}var l=i,u=t[l.toUpperCase()];u&&(n+=u)}return n}(e,d)}var c=";ext=",f="(["+a+"]{1,7})"},function(e,t,n){var r=n(38)("wks"),o=n(23),a=n(6).Symbol,i="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=i&&a[e]||(i?a:o)("Symbol."+e))}).store=r},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e,t,n,l){var d=function(e,t,n,o){var i=void 0,l=void 0,u=void 0;if("string"!=typeof e)throw new TypeError("A phone number for parsing must be a string.");i=e;"string"==typeof t?o?(l=r({defaultCountry:t},n),u=o):(l={defaultCountry:t},u=n):n?(l=t,u=n):u=t;l=l?r({},_,l):_;return{text:i,options:l,metadata:new a.default(u)}}(e,t,n,l),c=d.text,f=d.options,$=d.metadata;if(f.defaultCountry&&!$.hasCountry(f.defaultCountry))throw new Error("Unknown country: "+f.defaultCountry);var h=function(e){if(e&&0===e.indexOf("tel:"))return(0,u.parseRFC3966)(e);var t=b(e);if(!t||!g(t))return{};var n=function(e){var t=e.search(p);if(t<0)return{};var n=e.slice(0,t);if(!g(n))return{};var r=e.match(p),o=1;for(;o<r.length;){if(null!=r[o]&&r[o].length>0)return{number:n,ext:r[o]};o++}}(t);if(n.ext)return n;return{number:t}}(c),m=h.number,v=h.ext;if(!m)return{};var y=function(e,t,n){var r=(0,o.parse_national_number_and_country_calling_code)(e,t,n),a=r.countryCallingCode,l=r.number;if(!l)return{countryCallingCode:a};var u=void 0;if(a)(u=w(a,l,n))?n.country(u):n.chooseCountryByCountryCallingCode(a);else{if(!t)return{};u=t,n.country(u),a=n.countryCallingCode()}var d=function(e,t){var n=(0,o.parse_phone_number_digits)(e),r=void 0,a=x(n,t),l=a.number,u=a.carrierCode;if(t.possibleLengths())switch((0,i.check_number_length_for_type)(l,void 0,t)){case"TOO_SHORT":case"INVALID_LENGTH":break;default:n=l,r=u}else(0,o.matches_entirely)(n,t.nationalNumberPattern())&&!(0,o.matches_entirely)(l,t.nationalNumberPattern())||(n=l,r=u);return{national_number:n,carrier_code:r}}(l,n),s=d.national_number,c=d.carrier_code;return{country:u,countryCallingCode:a,national_number:s,carrierCode:c}}(m,f.defaultCountry,$),C=y.country,S=y.national_number,E=y.countryCallingCode,k=y.carrierCode;if(!$.selectedCountry())return{};if(S.length<s||S.length>o.MAX_LENGTH_FOR_NSN)return{};var T=!(!C||!(0,o.matches_entirely)(S,new RegExp($.nationalNumberPattern())));if(!f.extended)return T?function(e,t,n){var r={country:e,phone:t};n&&(r.ext=n);return r}(C,S,v):{};return{country:C,countryCallingCode:E,carrierCode:k,valid:T,possible:!!T||!0===f.extended&&$.possibleLengths()&&function(e,t,n){switch((0,i.check_number_length_for_type)(e,void 0,n)){case"IS_POSSIBLE":return!0;default:return!1}}(S,0,$),phone:S,ext:v}},t.is_viable_phone_number=g,t.extract_formatted_phone_number=b,t.strip_national_prefix_and_carrier_code=x,t.find_country_code=w;var o=n(4),a=d(n(3)),i=n(20),l=d(i),u=n(19);function d(e){return e&&e.__esModule?e:{default:e}}var s=2,c=250,f=(0,o.create_extension_pattern)("parsing"),p=new RegExp("(?:"+f+")$","i"),$="["+o.VALID_DIGITS+"]{"+s+"}",h="["+o.PLUS_CHARS+"]{0,1}(?:["+o.VALID_PUNCTUATION+"]*["+o.VALID_DIGITS+"]){3,}["+o.VALID_PUNCTUATION+o.VALID_DIGITS+"]*",m=new RegExp("^"+$+"$|^"+h+"(?:"+f+")?$","i"),v=new RegExp("["+o.PLUS_CHARS+o.VALID_DIGITS+"]"),y=new RegExp("[^"+o.VALID_DIGITS+"]+$"),_={country:{}};function g(e){return e.length>=s&&(0,o.matches_entirely)(e,m)}function b(e){if(e&&!(e.length>c)){var t=e.search(v);if(!(t<0))return e.slice(t).replace(y,"")}}function x(e,t){if(!e||!t.nationalPrefixForParsing())return{number:e};var n=new RegExp("^(?:"+t.nationalPrefixForParsing()+")"),r=n.exec(e);if(!r)return{number:e};var o=void 0,a=r.length-1;o=t.nationalPrefixTransformRule()&&r[a]?e.replace(n,t.nationalPrefixTransformRule()):e.slice(r[0].length);var i=void 0;return a>0&&(i=r[1]),{number:o,carrierCode:i}}function w(e,t,n){var r=n.countryCallingCodes()[e];return 1===r.length?r[0]:function(e,t,n){n=new a.default(n);for(var r=e,o=Array.isArray(r),i=0,r=o?r:r[Symbol.iterator]();;){var u;if(o){if(i>=r.length)break;u=r[i++]}else{if((i=r.next()).done)break;u=i.value}var d=u;if(n.country(d),n.leadingDigits()){if(t&&0===t.search(n.leadingDigits()))return d}else if((0,l.default)({phone:t,country:d},n.metadata))return d}}(r,t,n.metadata)}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports=!n(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(14),o=n(61),a=n(42),i=Object.defineProperty;t.f=n(9)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),o)try{return i(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(6),o=n(2),a=n(62),i=n(15),l=function(e,t,n){var u,d,s,c=e&l.F,f=e&l.G,p=e&l.S,$=e&l.P,h=e&l.B,m=e&l.W,v=f?o:o[t]||(o[t]={}),y=v.prototype,_=f?r:p?r[t]:(r[t]||{}).prototype;for(u in f&&(n=t),n)(d=!c&&_&&void 0!==_[u])&&u in v||(s=d?_[u]:n[u],v[u]=f&&"function"!=typeof _[u]?n[u]:h&&d?a(s,r):m&&_[u]==s?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(s):$&&"function"==typeof s?a(Function.call,s):s,$&&((v.virtual||(v.virtual={}))[u]=s,e&l.R&&y&&!y[u]&&i(y,u,s)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(13);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(10),o=n(25);e.exports=n(9)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(64),o=n(44);e.exports=function(e){return r(o(e))}},function(e,t,n){var r;
/*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r))e.push(o.apply(null,r));else if("object"===a)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}void 0!==e&&e.exports?e.exports=o:void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(124),a=(r=o)&&r.__esModule?r:{default:r};t.default=a.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.parseRFC3966=function(e){for(var t=void 0,n=void 0,a=(e=e.replace(/^tel:/,"tel=")).split(";"),i=Array.isArray(a),l=0,a=i?a:a[Symbol.iterator]();;){var u;if(i){if(l>=a.length)break;u=a[l++]}else{if((l=a.next()).done)break;u=l.value}var d=u,s=d.split("="),c=r(s,2),f=c[0],p=c[1];switch(f){case"tel":t=p;break;case"ext":n=p;break;case"phone-context":"+"===p[0]&&(t=p+t)}}if(!(0,o.is_viable_phone_number)(t))return{};var $={number:t};n&&($.ext=n);return $},t.formatRFC3966=function(e){var t=e.number,n=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:"+t+(n?";ext="+n:"")};var o=n(7)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t,n){var r=c(e,t,n),o=r.input,a=r.metadata;if(!o)return;if(!o.country)return;if(!a.hasCountry(o.country))throw new Error("Unknown country: "+o.country);var l=o.phone;if(a.country(o.country),!(0,i.matches_entirely)(l,a.nationalNumberPattern()))return;if(s(l,"FIXED_LINE",a))return a.type("MOBILE")&&""===a.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":a.type("MOBILE")?s(l,"MOBILE",a)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var u=d,f=Array.isArray(u),p=0,u=f?u:u[Symbol.iterator]();;){var $;if(f){if(p>=u.length)break;$=u[p++]}else{if((p=u.next()).done)break;$=p.value}var h=$;if(s(l,h,a))return h}},t.is_of_type=s,t.sort_out_arguments=c,t.check_number_length_for_type=function(e,t,n){var r=n.type(t),o=r&&r.possibleLengths()||n.possibleLengths();if("FIXED_LINE_OR_MOBILE"===t){if(!n.type("FIXED_LINE"))return test_number_length_for_type(e,"MOBILE",n);var a=n.type("MOBILE");a&&(o=p(o,a.possibleLengths()))}else if(t&&!r)return"INVALID_LENGTH";var i=e.length,l=o[0];if(l===i)return"IS_POSSIBLE";if(l>i)return"TOO_SHORT";if(o[o.length-1]<i)return"TOO_LONG";return o.indexOf(i,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"},t.merge_arrays=p;var o=n(7),a=u(o),i=n(4),l=u(n(3));function u(e){return e&&e.__esModule?e:{default:e}}var d=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function s(e,t,n){return!(!(t=n.type(t))||!t.pattern())&&(!(t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&(0,i.matches_entirely)(e,t.pattern()))}function c(e,t,n){var r=void 0,i=void 0;if("string"==typeof e)"string"==typeof t||void 0===t?(i=n,(0,o.is_viable_phone_number)(e)&&(r=(0,a.default)(e,t,i))):(i=t,(0,o.is_viable_phone_number)(e)&&(r=(0,a.default)(e,i)));else{if(!f(e)||"string"!=typeof e.phone)throw new TypeError("A phone number must either be a string or an object of shape { phone, [country] }.");(0,o.is_viable_phone_number)(e.phone)&&(r=e),i=t}return{input:r,metadata:new l.default(i)}}var f=function(e){return"object"===(void 0===e?"undefined":r(e))};function p(e,t){var n=e.slice(),r=t,o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if(o){if(a>=r.length)break;i=r[a++]}else{if((a=r.next()).done)break;i=a.value}var l=i;e.indexOf(l)<0&&n.push(l)}return n.sort(function(e,t){return e-t})}},function(e,t,n){"use strict";(t=e.exports={}).parse=n(7).default,t.parseNumber=n(7).default,t.format=n(31).default,t.formatNumber=n(31).default,t.getNumberType=n(20).default,t.isValidNumber=n(94).default,t.findPhoneNumbers=n(30).default,t.searchPhoneNumbers=n(30).searchPhoneNumbers,t.PhoneNumberSearch=n(30).PhoneNumberSearch,t.AsYouType=n(29).default,t.formatIncompletePhoneNumber=n(89).default,t.parseIncompletePhoneNumber=n(50).default,t.parsePhoneNumberCharacter=n(50).parsePhoneNumberCharacter,t.DIGITS=n(4).DIGITS,t.DIGIT_PLACEHOLDER=n(29).DIGIT_PLACEHOLDER,t.getCountryCallingCode=n(88).default,t.getPhoneCode=t.getCountryCallingCode,t.Metadata=n(3).default,t.getExtPrefix=n(3).getExtPrefix,t.parseRFC3966=n(19).parseRFC3966,t.formatRFC3966=n(19).formatRFC3966},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(58),o=n(37);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports={}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(55),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,a.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){e.exports={default:n(139),__esModule:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DIGIT_PLACEHOLDER=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.close_dangling_braces=x,t.count_occurences=w,t.repeat=C;var o,a=n(3),i=(o=a)&&o.__esModule?o:{default:o},l=n(4),u=n(7),d=n(31),s=n(20);var c=new RegExp("9","g"),f=C("9",15),p=t.DIGIT_PLACEHOLDER="x",$=new RegExp(p),h=new RegExp(p,"g"),m=/\[([^\[\]])*\]/g,v=/\d(?=[^,}][^,}])/g,y=new RegExp("^["+l.VALID_PUNCTUATION+"]*(\\$\\d["+l.VALID_PUNCTUATION+"]*)+$"),_="["+l.PLUS_CHARS+"]{0,1}["+l.VALID_PUNCTUATION+l.VALID_DIGITS+"]*",g=new RegExp("^"+_+"$","i"),b=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={},this.metadata=new i.default(n),t&&this.metadata.hasCountry(t)&&(this.default_country=t),this.reset()}return r(e,[{key:"input",value:function(e){var t=(0,u.extract_formatted_phone_number)(e)||"";return t||e&&e.indexOf("+")>=0&&(t="+"),(0,l.matches_entirely)(t,g)?this.process_input((0,l.parse_phone_number_digits)(t)):this.current_output}},{key:"process_input",value:function(e){if("+"===e[0]&&(this.parsed_input||(this.parsed_input+="+",this.reset_countriness()),e=e.slice(1)),this.parsed_input+=e,this.national_number+=e,this.is_international())if(this.countryCallingCode)this.country||this.determine_the_country();else{if(!this.national_number)return this.parsed_input;if(!this.extract_country_calling_code())return this.parsed_input;this.initialize_phone_number_formats_for_this_country_calling_code(),this.reset_format(),this.determine_the_country()}else{var t=this.national_prefix;this.national_number=this.national_prefix+this.national_number,this.extract_national_prefix(),this.national_prefix!==t&&(this.matching_formats=this.available_formats,this.reset_format())}if(!this.should_format())return this.format_as_non_formatted_number();this.match_formats_by_leading_digits();var n=this.format_national_phone_number(e);return n?this.full_phone_number(n):this.parsed_input}},{key:"format_as_non_formatted_number",value:function(){return this.is_international()&&this.countryCallingCode?this.national_number?(this.template=p+C(p,this.countryCallingCode.length)+" "+C(p,this.national_number.length),"+"+this.countryCallingCode+" "+this.national_number):"+"+this.countryCallingCode:this.parsed_input}},{key:"format_national_phone_number",value:function(e){var t=void 0;this.chosen_format&&(t=this.format_next_national_number_digits(e));var n=this.attempt_to_format_complete_phone_number();return n||(this.choose_another_format()?this.reformat_national_number():t)}},{key:"reset",value:function(){return this.parsed_input="",this.current_output="",this.national_prefix="",this.national_number="",this.reset_countriness(),this.reset_format(),this}},{key:"reset_country",value:function(){this.is_international()?this.country=void 0:this.country=this.default_country}},{key:"reset_countriness",value:function(){this.reset_country(),this.default_country&&!this.is_international()?(this.metadata.country(this.default_country),this.countryCallingCode=this.metadata.countryCallingCode(),this.initialize_phone_number_formats_for_this_country_calling_code()):(this.metadata.country(void 0),this.countryCallingCode=void 0,this.available_formats=[],this.matching_formats=this.available_formats)}},{key:"reset_format",value:function(){this.chosen_format=void 0,this.template=void 0,this.partially_populated_template=void 0,this.last_match_position=-1}},{key:"reformat_national_number",value:function(){return this.format_next_national_number_digits(this.national_number)}},{key:"initialize_phone_number_formats_for_this_country_calling_code",value:function(){this.available_formats=this.metadata.formats().filter(function(e){return y.test(e.internationalFormat())}),this.matching_formats=this.available_formats}},{key:"match_formats_by_leading_digits",value:function(){var e=this.national_number,t=e.length-3;t<0&&(t=0),this.matching_formats=this.matching_formats.filter(function(n){var r=n.leadingDigitsPatterns().length;if(0===r)return!0;var o=Math.min(t,r-1),a=n.leadingDigitsPatterns()[o];return new RegExp("^("+a+")").test(e)}),this.chosen_format&&-1===this.matching_formats.indexOf(this.chosen_format)&&this.reset_format()}},{key:"should_format",value:function(){return this.national_number>=3}},{key:"attempt_to_format_complete_phone_number",value:function(){var e=this.matching_formats,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var o=r;if(new RegExp("^(?:"+o.pattern()+")$").test(this.national_number)&&this.is_format_applicable(o)){this.reset_format(),this.chosen_format=o;var a=(0,d.format_national_number_using_format)(this.national_number,o,this.is_international(),this.national_prefix.length>0,this.metadata);if(this.create_formatting_template(o))this.reformat_national_number();else{var i=this.full_phone_number(a);this.template=i.replace(/[\d\+]/g,p),this.partially_populated_template=i}return a}}}},{key:"full_phone_number",value:function(e){return this.is_international()?"+"+this.countryCallingCode+" "+e:e}},{key:"extract_country_calling_code",value:function(){var e=(0,l.parse_national_number_and_country_calling_code)(this.parsed_input,this.default_country,this.metadata),t=e.countryCallingCode,n=e.number;if(t)return this.countryCallingCode=t,this.national_number=n,this.metadata.chooseCountryByCountryCallingCode(t),void 0!==this.metadata.selectedCountry()}},{key:"extract_national_prefix",value:function(){if(this.national_prefix="",this.metadata.selectedCountry()){var e=(0,u.strip_national_prefix_and_carrier_code)(this.national_number,this.metadata).number;if(!this.metadata.possibleLengths()||this.is_possible_number(this.national_number)&&!this.is_possible_number(e)){var t=new RegExp(this.metadata.nationalNumberPattern());if((0,l.matches_entirely)(this.national_number,t)&&!(0,l.matches_entirely)(e,t))return}return this.national_prefix=this.national_number.slice(0,this.national_number.length-e.length),this.national_number=e,this.national_prefix}}},{key:"is_possible_number",value:function(e){switch((0,s.check_number_length_for_type)(e,void 0,this.metadata)){case"IS_POSSIBLE":return!0;default:return!1}}},{key:"choose_another_format",value:function(){var e=this.matching_formats,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var o=r;if(this.chosen_format===o)return;if(this.is_format_applicable(o)&&this.create_formatting_template(o))return this.chosen_format=o,this.last_match_position=-1,!0}this.reset_country(),this.reset_format()}},{key:"is_format_applicable",value:function(e){return!(!this.is_international()&&!this.national_prefix&&e.nationalPrefixIsMandatoryWhenFormatting())}},{key:"create_formatting_template",value:function(e){if(!(e.pattern().indexOf("|")>=0)){var t=this.get_template_for_phone_number_format_pattern(e);if(t)return this.partially_populated_template=t,this.is_international()?this.template=p+C(p,this.countryCallingCode.length)+" "+t:this.template=t.replace(/\d/g,p),this.template}}},{key:"get_template_for_phone_number_format_pattern",value:function(e){var t=e.pattern().replace(m,"\\d").replace(v,"\\d"),n=f.match(t)[0];if(!(this.national_number.length>n.length)){var r=this.get_format_format(e),o=new RegExp("^"+t+"$"),a=this.national_number.replace(/\d/g,"9");return o.test(a)&&(n=a),n.replace(new RegExp(t),r).replace(c,p)}}},{key:"format_next_national_number_digits",value:function(e){var t=e.split(""),n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var o;if(n){if(r>=t.length)break;o=t[r++]}else{if((r=t.next()).done)break;o=r.value}var a=o;if(-1===this.partially_populated_template.slice(this.last_match_position+1).search($))return this.chosen_format=void 0,this.template=void 0,void(this.partially_populated_template=void 0);this.last_match_position=this.partially_populated_template.search($),this.partially_populated_template=this.partially_populated_template.replace($,a)}return x(this.partially_populated_template,this.last_match_position+1).replace(h," ")}},{key:"is_international",value:function(){return this.parsed_input&&"+"===this.parsed_input[0]}},{key:"get_format_format",value:function(e){return this.is_international()?(0,d.local_to_international_style)(e.internationalFormat()):!e.nationalPrefixFormattingRule()||!this.national_prefix&&e.usesNationalPrefix()?e.format():e.format().replace(d.FIRST_GROUP_PATTERN,e.nationalPrefixFormattingRule())}},{key:"determine_the_country",value:function(){this.country=(0,u.find_country_code)(this.countryCallingCode,this.national_number,this.metadata)}},{key:"getNationalNumber",value:function(){return this.national_number}}]),e}();function x(e,t){for(var n=e.slice(0,t),r=w("(",n)-w(")",n);r>0&&t<e.length;)")"===e[t]&&r--,t++;return e.slice(0,t)}function w(e,t){var n=0,r=t.split(""),o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if(o){if(a>=r.length)break;i=r[a++]}else{if((a=r.next()).done)break;i=a.value}i===e&&n++}return n}function C(e,t){if(t<1)return"";for(var n="";t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhoneNumberSearch=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=function(e,t,n,r){var o=v(e,t,n,r),a=o.text,i=o.options,l=o.metadata,u=new m(a,i,l.metadata),d=[];for(;u.hasNext();)d.push(u.next());return d},t.searchPhoneNumbers=function(e,t,n,r){var o=v(e,t,n,r),a=o.text,i=o.options,l=o.metadata,u=new m(a,i,l.metadata);return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},Symbol.iterator,function(){return{next:function(){return u.hasNext()?{done:!1,value:u.next()}:{done:!0}}}})},t.sort_out_arguments=v;var a=c(n(7)),i=c(n(3)),l=n(4),u=c(n(93)),d=c(n(92)),s=c(n(91));function c(e){return e&&e.__esModule?e:{default:e}}var f="["+l.PLUS_CHARS+"]{0,1}(?:["+l.VALID_PUNCTUATION+"]*["+l.VALID_DIGITS+"]){3,}["+l.VALID_PUNCTUATION+l.VALID_DIGITS+"]*",p=(0,l.create_extension_pattern)("parsing"),$=new RegExp("^["+l.WHITESPACE+"]+"),h=new RegExp("["+l.WHITESPACE+"]+$");var m=t.PhoneNumberSearch=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.state="NOT_READY",this.text=t,this.options=n,this.metadata=r,this.regexp=new RegExp(f+"(?:"+p+")?","ig")}return o(e,[{key:"find",value:function(){var e=this.regexp.exec(this.text);if(e){var t=e[0],n=e.index;t=t.replace($,""),n+=e[0].length-t.length,t=t.replace(h,""),t=(0,u.default)(t);var r=this.parseCandidate(t,n);return r||this.find()}}},{key:"parseCandidate",value:function(e,t){if((0,d.default)(e,t,this.text)&&(0,s.default)(e,t,this.text,this.options.extended?"POSSIBLE":"VALID")){var n=(0,a.default)(e,this.options,this.metadata);if(n.phone)return n.startsAt=t,n.endsAt=t+e.length,n}}},{key:"hasNext",value:function(){return"NOT_READY"===this.state&&(this.last_match=this.find(),this.last_match?this.state="READY":this.state="DONE"),"READY"===this.state}},{key:"next",value:function(){if(!this.hasNext())throw new Error("No next element");var e=this.last_match;return this.last_match=null,this.state="NOT_READY",e}}]),e}();function v(e,t,n,o){var a=void 0,l=void 0,u=void 0;if("string"!=typeof e)throw new TypeError("A text for parsing must be a string.");return a=e,"string"==typeof t?o?(l=r({defaultCountry:t},n),u=o):(l={defaultCountry:t},u=n):n?(l=t,u=n):u=t,l||(l={}),{text:a,options:l,metadata:new i.default(u)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FIRST_GROUP_PATTERN=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e,t,n,r,a){var u=function(e,t,n,r,a){var i=void 0,l=void 0,u=void 0,s=void 0;if("string"==typeof e)if("string"==typeof n)i={phone:e,country:t},l=n,a?(u=r,s=a):s=r;else{if(i={phone:e},"string"!=typeof t)throw new Error("Format type argument not passed for `format()`");l=t,r?(u=n,s=r):s=n}else{if(!v(e)||"string"!=typeof e.phone)throw new TypeError("A phone number must either be a string or an object of shape { phone, [country] }.");i=e,l=t,r?(u=n,s=r):s=n}switch(l){case"International":case"E.164":case"National":case"RFC3966":case"IDD":break;default:throw new Error('Unknown format type argument passed to "format()": "'+l+'"')}u=u?o({},c,u):c;return{input:i,format_type:l,options:u,metadata:new d.default(s)}}(e,t,n,r,a),f=u.input,p=u.format_type,h=u.options,m=u.metadata;f.country&&m.hasCountry(f.country)&&m.country(f.country);var g=(0,i.parse_national_number_and_country_calling_code)(f.phone,null,m),b=g.countryCallingCode,x=g.number;if(b=b||f.countryCallingCode){if(f.country&&m.selectedCountry()&&b!==m.countryCallingCode())return f.phone;m.chooseCountryByCountryCallingCode(b)}if(!m.selectedCountry())return f.phone;switch(p){case"International":return x?(x=$(x,"International",!1,m),y(x="+"+m.countryCallingCode()+" "+x,f.ext,m,h.formatExtension)):"+"+m.countryCallingCode();case"E.164":return"+"+m.countryCallingCode()+f.phone;case"RFC3966":return(0,s.formatRFC3966)({number:"+"+m.countryCallingCode()+f.phone,ext:f.ext});case"IDD":if(!h.fromCountry)return;var w=(0,l.getIDDPrefix)(h.fromCountry,m.metadata);if(!w)return;if(h.humanReadable){var C=b&&_(x,b,h.fromCountry,m);return y(x=C||w+" "+m.countryCallingCode()+" "+$(x,"International",!1,m),f.ext,m,h.formatExtension)}return""+w+m.countryCallingCode()+x;case"National":return x?y(x=$(x,"National",!1,m),f.ext,m,h.formatExtension):""}},t.format_national_number_using_format=p,t.choose_format_for_number=h,t.local_to_international_style=m,t.formatIDDSameCountryCallingCodeNumber=_;var a,i=n(4),l=n(52),u=n(3),d=(a=u)&&a.__esModule?a:{default:a},s=n(19);var c={formatExtension:function(e,t,n){return""+e+n.ext()+t}};var f=t.FIRST_GROUP_PATTERN=/(\$\d)/;function p(e,t,n,r,o){var a=new RegExp(t.pattern()),i=!t.nationalPrefixFormattingRule()||t.nationalPrefixFormattingRule()&&t.nationalPrefixIsOptionalWhenFormatting()&&!r;if(!n&&!i)return e.replace(a,t.format().replace(f,t.nationalPrefixFormattingRule()));var l=e.replace(a,n?t.internationalFormat():t.format());return n?m(l):l}function $(e,t,n,r){var o=h(r.formats(),e);return o?p(e,o,"International"===t,n):e}function h(e,t){var n=e,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(o>=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}var l=a;if(l.leadingDigitsPatterns().length>0){var u=l.leadingDigitsPatterns()[l.leadingDigitsPatterns().length-1];if(0!==t.search(u))continue}if((0,i.matches_entirely)(t,new RegExp(l.pattern())))return l}}function m(e){return e.replace(new RegExp("["+i.VALID_PUNCTUATION+"]+","g")," ").trim()}var v=function(e){return"object"===(void 0===e?"undefined":r(e))};function y(e,t,n,r){return t?r(e,t,n):e}function _(e,t,n,r){var o=new d.default(r.metadata);if(o.country(n),t===o.countryCallingCode())return"1"===t?t+" "+$(e,"National",!1,r):$(e,"National",!1,r)}},function(e,t,n){var r=n(6),o=n(2),a=n(43),i=n(33),l=n(10).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=a?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:i.f(e)})}},function(e,t,n){t.f=n(5)},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(44);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(10).f,o=n(8),a=n(5)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(6),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t,n){var r=n(38)("keys"),o=n(23);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(14),o=n(133),a=n(37),i=n(39)("IE_PROTO"),l=function(){},u=function(){var e,t=n(60)("iframe"),r=a.length;for(t.style.display="none",n(129).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[a[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l.prototype=r(e),n=new l,l.prototype=null,n[i]=e):n=u(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(13);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=!0},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(102)),o=i(n(98)),a=i(n(55));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,a.default)(t)));e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(117),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,a.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){e.exports={default:n(120),__esModule:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t="",n=e.split(""),r=Array.isArray(n),a=0,n=r?n:n[Symbol.iterator]();;){var i;if(r){if(a>=n.length)break;i=n[a++]}else{if((a=n.next()).done)break;i=a.value}var l=i;t+=o(l,t)||""}return t},t.parsePhoneNumberCharacter=o;var r=n(4);function o(e,t){if("+"===e){if(t)return;return"+"}return(0,r.parseDigit)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.limit=function(e,t){if(e<0||t<=0||t<e)throw new TypeError;return"{"+e+","+t+"}"},t.trimAfterFirstMatch=function(e,t){var n=t.search(e);if(n>=0)return t.slice(0,n);return t},t.startsWith=function(e,t){return 0===e.indexOf(t)},t.endsWith=function(e,t){return e.indexOf(t,e.length-t.length)===e.length-t.length}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIDDPrefix=function(e,t){var n=new a.default(t);if(n.country(e),(0,i.matches_entirely)(n.IDDPrefix(),u))return n.IDDPrefix();return n.defaultIDDPrefix()},t.stripIDDPrefix=function(e,t,n){if(!t)return;var r=new a.default(n);r.country(t);var o=new RegExp(r.IDDPrefix());if(0!==e.search(o))return;var i=(e=e.slice(e.match(o)[0].length)).match(l);if(i&&null!=i[1]&&i[1].length>0&&"0"===i[1])return;return e};var r,o=n(3),a=(r=o)&&r.__esModule?r:{default:r},i=n(4);var l=new RegExp("(["+i.VALID_DIGITS+"])"),u=/[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?/},function(e,t,n){var r=n(22),o=n(25),a=n(16),i=n(42),l=n(8),u=n(61),d=Object.getOwnPropertyDescriptor;t.f=n(9)?d:function(e,t){if(e=a(e),t=i(t,!0),u)try{return d(e,t)}catch(e){}if(l(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(58),o=n(37).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(114)),o=i(n(112)),a="function"==typeof o.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function i(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof o.default&&"symbol"===a(r.default)?function(e){return void 0===e?"undefined":a(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":a(e)}},function(e,t,n){"use strict";var r=n(128)(!0);n(63)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(8),o=n(35),a=n(39)("IE_PROTO"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}},function(e,t,n){var r=n(8),o=n(16),a=n(132)(!1),i=n(39)("IE_PROTO");e.exports=function(e,t){var n,l=o(e),u=0,d=[];for(n in l)n!=i&&r(l,n)&&d.push(n);for(;t.length>u;)r(l,n=t[u++])&&(~a(d,n)||d.push(n));return d}},function(e,t,n){e.exports=n(15)},function(e,t,n){var r=n(13),o=n(6).document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){e.exports=!n(9)&&!n(12)(function(){return 7!=Object.defineProperty(n(60)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(135);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var r=n(43),o=n(11),a=n(59),i=n(15),l=n(8),u=n(26),d=n(134),s=n(36),c=n(57),f=n(5)("iterator"),p=!([].keys&&"next"in[].keys()),$=function(){return this};e.exports=function(e,t,n,h,m,v,y){d(n,t,h);var _,g,b,x=function(e){if(!p&&e in E)return E[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+" Iterator",C="values"==m,S=!1,E=e.prototype,k=E[f]||E["@@iterator"]||m&&E[m],T=!p&&k||x(m),P=m?C?x("entries"):T:void 0,O="Array"==t&&E.entries||k;if(O&&(b=c(O.call(new e)))!==Object.prototype&&b.next&&(s(b,w,!0),r||l(b,f)||i(b,f,$)),C&&k&&"values"!==k.name&&(S=!0,T=function(){return k.call(this)}),r&&!y||!p&&!S&&E[f]||i(E,f,T),u[t]=T,u[w]=$,m)if(_={values:C?T:x("values"),keys:v?T:x("keys"),entries:P},y)for(g in _)g in E||a(E,g,_[g]);else o(o.P+o.F*(p||S),t,_);return _}},function(e,t,n){var r=n(45);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){n(138);for(var r=n(6),o=n(15),a=n(26),i=n(5)("toStringTag"),l="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<l.length;u++){var d=l[u],s=r[d],c=s&&s.prototype;c&&!c[i]&&o(c,i,d),a[d]=a.Array}},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function o(e){var t=this.constructor.getDerivedStateFromProps(e,this.state);null!==t&&void 0!==t&&this.setState(t)}function a(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,l=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?l="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==l){var u=e.displayName||e.name,d="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+d+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==l?"\n "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=a;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",function(){return i}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,i,l=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var d in n=Object(arguments[u]))o.call(n,d)&&(l[d]=n[d]);if(r){i=r(n);for(var s=0;s<i.length;s++)a.call(n,i[s])&&(l[i[s]]=n[i[s]])}}return l}},function(e,t,n){var r=n(73),o={ease:r(.25,.1,.25,1),easeIn:r(.42,0,1,1),easeOut:r(0,0,.58,1),easeInOut:r(.42,0,.58,1),linear:r(0,0,1,1)};function a(){}e.exports=function(e,t,n){var r=Object.create(null),i=Object.create(null),l="function"==typeof(n=n||{}).easing?n.easing:o[n.easing];l||(n.easing&&console.warn("Unknown easing function in amator: "+n.easing),l=o.ease);var u="function"==typeof n.step?n.step:a,d="function"==typeof n.done?n.done:a,s=function(e){if(!e){var t="undefined"!=typeof window&&window.requestAnimationFrame;return t?{next:window.requestAnimationFrame.bind(window),cancel:window.cancelAnimationFrame.bind(window)}:{next:function(e){return setTimeout(e,1e3/60)},cancel:function(e){return clearTimeout(e)}}}if("function"!=typeof e.next)throw new Error("Scheduler is supposed to have next(cb) function");if("function"!=typeof e.cancel)throw new Error("Scheduler is supposed to have cancel(handle) function");return e}(n.scheduler),c=Object.keys(t);c.forEach(function(n){r[n]=e[n],i[n]=t[n]-e[n]});var f,p=n.duration||400,$=Math.max(1,.06*p),h=0;return f=s.next(function t(){var n=l(h/$);h+=1,function(t){c.forEach(function(n){e[n]=i[n]*t+r[n]})}(n),h<=$?(f=s.next(t),u(e)):(f=0,setTimeout(function(){d(e)},0))}),{cancel:function(){s.cancel(f),f=0}}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){"use strict";n.r(t);var r=n(68),o=n.n(r),a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.