New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

i18n-postal-address

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18n-postal-address - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

7

CHANGELOG.md
# Changelog
## 0.3.0
> Oct 18, 2020
- Added transforms and definitions to append commas in certain formats
([#8](https://github.com/joaocarmo/i18n-postal-address/issues/8))
## 0.2.0

@@ -4,0 +11,0 @@

1

dist/address-transforms.d.ts
import { TransformFunction } from './types/address-format';
export declare const addCommaAfter: TransformFunction;
export declare const capitalize: TransformFunction;

8

dist/postal-address.d.ts

@@ -17,3 +17,3 @@ import PostalAddressInterface from './types/postal-address';

private getParser;
private output;
output(overrideFormat: string): string[][] | string | null;
private setProperty;

@@ -47,5 +47,5 @@ setAddress(newValue: string): this;

setFormat({ country, type, useTransforms, }: {
country: string;
type: string;
useTransforms: boolean;
country?: string;
type?: string;
useTransforms?: boolean;
}): this;

@@ -52,0 +52,0 @@ toString(): string;

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.PostalAddress=e():t.PostalAddress=e()}("undefined"!=typeof self?self:this,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=55)}([function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")()}).call(this,r(57))},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){var n=r(0),o=r(10).f,a=r(9),i=r(33),s=r(21),u=r(59),c=r(61);t.exports=function(t,e){var r,f,l,d,p,y=t.target,m=t.global,h=t.stat;if(r=m?n:h?n[y]||s(y,{}):(n[y]||{}).prototype)for(f in e){if(d=e[f],l=t.noTargetGet?(p=o(r,f))&&p.value:r[f],!c(m?f:y+(h?".":"#")+f,t.forced)&&void 0!==l){if(typeof d==typeof l)continue;u(d,l)}(t.sham||l&&l.sham)&&a(d,"sham",!0),i(r,f,d,t)}}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(1);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,r){var n=r(18),o=r(20);t.exports=function(t){return n(o(t))}},function(t,e,r){var n=r(4),o=r(31),a=r(11),i=r(13),s=Object.defineProperty;e.f=n?s:function(t,e,r){if(a(t),e=i(e,!0),a(r),o)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(0),o=r(23),a=r(3),i=r(24),s=r(27),u=r(45),c=o("wks"),f=n.Symbol,l=u?f:f&&f.withoutSetter||i;t.exports=function(t){return a(c,t)||(s&&a(f,t)?c[t]=f[t]:c[t]=l("Symbol."+t)),c[t]}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){var n=r(4),o=r(6),a=r(12);t.exports=n?function(t,e,r){return o.f(t,e,a(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(4),o=r(30),a=r(12),i=r(5),s=r(13),u=r(3),c=r(31),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=i(t),e=s(e,!0),c)try{return f(t,e)}catch(t){}if(u(t,e))return a(!o.f.call(t,e),t[e])}},function(t,e,r){var n=r(8);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(8);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports={}},function(t,e,r){var n=r(39),o=r(0),a=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?a(n[t])||a(o[t]):n[t]&&n[t][e]||o[t]&&o[t][e]}},function(t,e,r){var n=r(67),o=r(18),a=r(28),i=r(42),s=r(69),u=[].push,c=function(t){var e=1==t,r=2==t,c=3==t,f=4==t,l=6==t,d=5==t||l;return function(p,y,m,h){for(var v,b,g=a(p),N=o(g),S=n(y,m,3),P=i(N.length),C=0,O=h||s,T=e?O(p,P):r?O(p,0):void 0;P>C;C++)if((d||C in N)&&(b=S(v=N[C],C,g),t))if(e)T[C]=b;else if(b)switch(t){case 3:return!0;case 5:return v;case 6:return C;case 2:u.call(T,v)}else if(f)return!1;return l?-1:c||f?f:T}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(t,e,r){var n=r(4),o=r(1),a=r(3),i=Object.defineProperty,s={},u=function(t){throw t};t.exports=function(t,e){if(a(s,t))return s[t];e||(e={});var r=[][t],c=!!a(e,"ACCESSORS")&&e.ACCESSORS,f=a(e,0)?e[0]:u,l=a(e,1)?e[1]:void 0;return s[t]=!!r&&!o((function(){if(c&&!n)return!0;var t={length:-1};c?i(t,1,{enumerable:!0,get:u}):t[1]=1,r.call(t,f,l)}))}},function(t,e,r){var n=r(1),o=r(19),a="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?a.call(t,""):Object(t)}:Object},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){var n=r(0),o=r(9);t.exports=function(t,e){try{o(n,t,e)}catch(r){n[t]=e}return e}},function(t,e,r){var n=r(23),o=r(24),a=n("keys");t.exports=function(t){return a[t]||(a[t]=o(t))}},function(t,e,r){var n=r(37),o=r(35);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+n).toString(36)}},function(t,e,r){var n=r(40),o=r(26).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,r){var n=r(1);t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(t,e,r){var n=r(20);t.exports=function(t){return Object(n(t))}},function(t,e,r){var n=r(40),o=r(26);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!n.call({1:2},1);e.f=a?function(t){var e=o(this,t);return!!e&&e.enumerable}:n},function(t,e,r){var n=r(4),o=r(1),a=r(32);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(t,e,r){var n=r(0),o=r(8),a=n.document,i=o(a)&&o(a.createElement);t.exports=function(t){return i?a.createElement(t):{}}},function(t,e,r){var n=r(0),o=r(9),a=r(3),i=r(21),s=r(34),u=r(36),c=u.get,f=u.enforce,l=String(String).split("String");(t.exports=function(t,e,r,s){var u=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof e||a(r,"name")||o(r,"name",e),f(r).source=l.join("string"==typeof e?e:"")),t!==n?(u?!d&&t[e]&&(c=!0):delete t[e],c?t[e]=r:o(t,e,r)):c?t[e]=r:i(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},function(t,e,r){var n=r(35),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return o.call(t)}),t.exports=n.inspectSource},function(t,e,r){var n=r(0),o=r(21),a=n["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=a},function(t,e,r){var n,o,a,i=r(58),s=r(0),u=r(8),c=r(9),f=r(3),l=r(22),d=r(14),p=s.WeakMap;if(i){var y=new p,m=y.get,h=y.has,v=y.set;n=function(t,e){return v.call(y,t,e),e},o=function(t){return m.call(y,t)||{}},a=function(t){return h.call(y,t)}}else{var b=l("state");d[b]=!0,n=function(t,e){return c(t,b,e),e},o=function(t){return f(t,b)?t[b]:{}},a=function(t){return f(t,b)}}t.exports={set:n,get:o,has:a,enforce:function(t){return a(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},function(t,e){t.exports=!1},function(t,e,r){var n=r(15),o=r(25),a=r(44),i=r(11);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(i(t)),r=a.f;return r?e.concat(r(t)):e}},function(t,e,r){var n=r(0);t.exports=n},function(t,e,r){var n=r(3),o=r(5),a=r(41).indexOf,i=r(14);t.exports=function(t,e){var r,s=o(t),u=0,c=[];for(r in s)!n(i,r)&&n(s,r)&&c.push(r);for(;e.length>u;)n(s,r=e[u++])&&(~a(c,r)||c.push(r));return c}},function(t,e,r){var n=r(5),o=r(42),a=r(60),i=function(t){return function(e,r,i){var s,u=n(e),c=o(u.length),f=a(i,c);if(t&&r!=r){for(;c>f;)if((s=u[f++])!=s)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}},function(t,e,r){var n=r(43),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(27);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,r){var n=r(19);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n,o=r(11),a=r(62),i=r(26),s=r(14),u=r(63),c=r(32),f=r(22),l=f("IE_PROTO"),d=function(){},p=function(t){return"<script>"+t+"<\/script>"},y=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;y=n?function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e}(n):((e=c("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F);for(var r=i.length;r--;)delete y.prototype[i[r]];return y()};s[l]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(d.prototype=o(t),r=new d,d.prototype=null,r[l]=t):r=y(),void 0===e?r:a(r,e)}},function(t,e,r){var n=r(7);e.f=n},function(t,e,r){var n=r(1),o=r(7),a=r(71),i=o("species");t.exports=function(t){return a>=51||!n((function(){var e=[];return(e.constructor={})[i]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,r){"use strict";var n=r(2),o=r(51);n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,r){"use strict";var n=r(16).forEach,o=r(52),a=r(17),i=o("forEach"),s=a("forEach");t.exports=i&&s?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,r){"use strict";var n=r(1);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},function(t,e,r){var n=r(0),o=r(85),a=r(51),i=r(9);for(var s in o){var u=n[s],c=u&&u.prototype;if(c&&c.forEach!==a)try{i(c,"forEach",a)}catch(t){c.forEach=a}}},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},function(t,e,r){var n,o,a;r(56),r(70),r(50),r(73),r(75),r(76),r(77),r(78),r(80),r(81),r(53),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(86),r(87),r(88),r(89),r(91),r(93),r(94)],void 0===(a="function"==typeof(n=function(t,e,n,o,a,i,s,u){"use strict";var c=r(54);function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=c(e),n=c(n),o=c(o),a=c(a),i=c(i),s=c(s),u=c(u);var l=function(){function t(){var r=this;(0,n.default)(this,t),this.outputFormat="array",this.formatForCountry="US",this.formatForType="default",this.useTransforms=!0,this.object=function(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?f(Object(n),!0).forEach((function(r){(0,e.default)(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},s.default),this.validators={formatForCountry:function(t){return r.allowed.formatForCountry.includes(t)},formatForType:function(t){return r.allowed.formatForType.includes(t)},outputFormat:function(t){return r.allowed.outputFormat.includes(t)}},this.allowed={formatForCountry:Object.keys(a.default),formatForType:["business","default","english","french","personal"],outputFormat:["array","string"]},this.addressFormats=a.default,this.addressParsers=i.default}return(0,o.default)(t,[{key:"validator",value:function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n="",o=this.validators[t];return n=r?this.object[t]:this[t],"function"==typeof o?o(e)?e:n:e}},{key:"getFormat",value:function(t){var e,r,n,o,a=this.outputFormat,i=this.formatForCountry,s=this.formatForType,u=this.addressFormats,c=t||a,f=u[i],l={};if(f||(f=null==u?void 0:u.US),null===(e=f)||void 0===e?void 0:e[s])l=f[s];else if(f.default){var d;l=null===(d=f)||void 0===d?void 0:d.default}return(null===(r=l)||void 0===r?void 0:r[c])?(null===(o=l)||void 0===o?void 0:o[c])||null:(null===(n=l)||void 0===n?void 0:n.array)?l.array:null}},{key:"getParser",value:function(t){var e=this.outputFormat,r=this.addressParsers,n=t||e;return r[n]?r[n]:null}},{key:"output",value:function(t){var e=this.useTransforms,r=this.getFormat(t),n=this.getParser(t);return"function"==typeof n&&r?n(this.object,r,e):null}},{key:"setProperty",value:function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];"string"==typeof e&&(r?"string"==typeof this.object[t]&&(this.object[t]=this.validator(t,e,r)):"string"==typeof this[t]&&(this[t]=this.validator(t,e,r)))}},{key:"setAddress",value:function(t){return this.setAddress1(t),this}},{key:"setAddress1",value:function(t){return this.setProperty("address1",t),this.setProperty("dong",t),this}},{key:"setAddress2",value:function(t){return this.setProperty("address2",t),this}},{key:"setAddressNum",value:function(t){return this.setProperty("addressNum",t),this}},{key:"setCity",value:function(t){return this.setProperty("city",t),this.setProperty("si",t),this}},{key:"setCompanyName",value:function(t){return this.setProperty("companyName",t),this}},{key:"setCountry",value:function(t){this.setProperty("country",t);var e=u.default[t];return e&&this.setProperty("countryAlpha2",e),this}},{key:"setDo",value:function(t){return this.setProperty("do",t),this.setProperty("province",t),this}},{key:"setDong",value:function(t){return this.setProperty("dong",t),this.setProperty("address1",t),this}},{key:"setFirstLastName",value:function(t){return this.setProperty("firstLastName",t),this}},{key:"setFirstName",value:function(t){return this.setProperty("firstName",t),this}},{key:"setGu",value:function(t){return this.setProperty("gu",t),this}},{key:"setHonorific",value:function(t){return this.setProperty("honorific",t),this}},{key:"setJobTitle",value:function(t){return this.setProperty("jobTitle",t),this}},{key:"setLastName",value:function(t){return this.setProperty("lastName",t),this.setProperty("secondLastName",t),this}},{key:"setPostalCode",value:function(t){return this.setProperty("postalCode",t),this}},{key:"setPrefecture",value:function(t){return this.setProperty("prefecture",t),this}},{key:"setProvince",value:function(t){return this.setProperty("province",t),this.setProperty("do",t),this}},{key:"setRegion",value:function(t){return this.setProperty("region",t),this}},{key:"setRepublic",value:function(t){return this.setProperty("republic",t),this}},{key:"setSecondLastName",value:function(t){return this.setProperty("secondLastName",t),this.setProperty("lastName",t),this}},{key:"setSecondName",value:function(t){return this.setProperty("secondName",t),this}},{key:"setSi",value:function(t){return this.setProperty("si",t),this.setProperty("city",t),this}},{key:"setState",value:function(t){return this.setProperty("state",t),this}},{key:"setTitle",value:function(t){return this.setProperty("title",t),this}},{key:"setOutputFormat",value:function(t){return this.setProperty("outputFormat",t,!1),this}},{key:"setFormat",value:function(t){var e=t.country,r=t.type,n=t.useTransforms;return"string"==typeof e&&this.setProperty("formatForCountry",e,!1),"string"==typeof r&&this.setProperty("formatForType",r,!1),"boolean"==typeof n&&(this.useTransforms=n),this}},{key:"toString",value:function(){var t=this.output("array");return t?t.map((function(t){return t.join(" ")})).join("\n"):""}},{key:"raw",value:function(){return this.object}}]),t}();t.default=l})?n.apply(e,o):n)||(t.exports=a)},function(t,e,r){"use strict";var n=r(2),o=r(0),a=r(15),i=r(37),s=r(4),u=r(27),c=r(45),f=r(1),l=r(3),d=r(46),p=r(8),y=r(11),m=r(28),h=r(5),v=r(13),b=r(12),g=r(47),N=r(29),S=r(25),P=r(64),C=r(44),O=r(10),T=r(6),A=r(30),M=r(9),x=r(33),j=r(23),w=r(22),E=r(14),L=r(24),R=r(7),F=r(48),k=r(65),G=r(66),I=r(36),B=r(16).forEach,D=w("hidden"),K=R("toPrimitive"),H=I.set,U=I.getterFor("Symbol"),_=Object.prototype,V=o.Symbol,z=a("JSON","stringify"),J=O.f,W=T.f,Y=P.f,Z=A.f,Q=j("symbols"),q=j("op-symbols"),X=j("string-to-symbol-registry"),$=j("symbol-to-string-registry"),tt=j("wks"),et=o.QObject,rt=!et||!et.prototype||!et.prototype.findChild,nt=s&&f((function(){return 7!=g(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=J(_,e);n&&delete _[e],W(t,e,r),n&&t!==_&&W(_,e,n)}:W,ot=function(t,e){var r=Q[t]=g(V.prototype);return H(r,{type:"Symbol",tag:t,description:e}),s||(r.description=e),r},at=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof V},it=function(t,e,r){t===_&&it(q,e,r),y(t);var n=v(e,!0);return y(r),l(Q,n)?(r.enumerable?(l(t,D)&&t[D][n]&&(t[D][n]=!1),r=g(r,{enumerable:b(0,!1)})):(l(t,D)||W(t,D,b(1,{})),t[D][n]=!0),nt(t,n,r)):W(t,n,r)},st=function(t,e){y(t);var r=h(e),n=N(r).concat(lt(r));return B(n,(function(e){s&&!ut.call(r,e)||it(t,e,r[e])})),t},ut=function(t){var e=v(t,!0),r=Z.call(this,e);return!(this===_&&l(Q,e)&&!l(q,e))&&(!(r||!l(this,e)||!l(Q,e)||l(this,D)&&this[D][e])||r)},ct=function(t,e){var r=h(t),n=v(e,!0);if(r!==_||!l(Q,n)||l(q,n)){var o=J(r,n);return!o||!l(Q,n)||l(r,D)&&r[D][n]||(o.enumerable=!0),o}},ft=function(t){var e=Y(h(t)),r=[];return B(e,(function(t){l(Q,t)||l(E,t)||r.push(t)})),r},lt=function(t){var e=t===_,r=Y(e?q:h(t)),n=[];return B(r,(function(t){!l(Q,t)||e&&!l(_,t)||n.push(Q[t])})),n};(u||(x((V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=L(t),r=function(t){this===_&&r.call(q,t),l(this,D)&&l(this[D],e)&&(this[D][e]=!1),nt(this,e,b(1,t))};return s&&rt&&nt(_,e,{configurable:!0,set:r}),ot(e,t)}).prototype,"toString",(function(){return U(this).tag})),x(V,"withoutSetter",(function(t){return ot(L(t),t)})),A.f=ut,T.f=it,O.f=ct,S.f=P.f=ft,C.f=lt,F.f=function(t){return ot(R(t),t)},s&&(W(V.prototype,"description",{configurable:!0,get:function(){return U(this).description}}),i||x(_,"propertyIsEnumerable",ut,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:V}),B(N(tt),(function(t){k(t)})),n({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=String(t);if(l(X,e))return X[e];var r=V(e);return X[e]=r,$[r]=e,r},keyFor:function(t){if(!at(t))throw TypeError(t+" is not a symbol");if(l($,t))return $[t]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(t,e){return void 0===e?g(t):st(g(t),e)},defineProperty:it,defineProperties:st,getOwnPropertyDescriptor:ct}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ft,getOwnPropertySymbols:lt}),n({target:"Object",stat:!0,forced:f((function(){C.f(1)}))},{getOwnPropertySymbols:function(t){return C.f(m(t))}}),z)&&n({target:"JSON",stat:!0,forced:!u||f((function(){var t=V();return"[null]"!=z([t])||"{}"!=z({a:t})||"{}"!=z(Object(t))}))},{stringify:function(t,e,r){for(var n,o=[t],a=1;arguments.length>a;)o.push(arguments[a++]);if(n=e,(p(e)||void 0!==t)&&!at(t))return d(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!at(e))return e}),o[1]=e,z.apply(null,o)}});V.prototype[K]||M(V.prototype,K,V.prototype.valueOf),G(V,"Symbol"),E[D]=!0},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(0),o=r(34),a=n.WeakMap;t.exports="function"==typeof a&&/native code/.test(o(a))},function(t,e,r){var n=r(3),o=r(38),a=r(10),i=r(6);t.exports=function(t,e){for(var r=o(e),s=i.f,u=a.f,c=0;c<r.length;c++){var f=r[c];n(t,f)||s(t,f,u(e,f))}}},function(t,e,r){var n=r(43),o=Math.max,a=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):a(r,e)}},function(t,e,r){var n=r(1),o=/#|\.prototype\./,a=function(t,e){var r=s[i(t)];return r==c||r!=u&&("function"==typeof e?n(e):!!e)},i=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},s=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";t.exports=a},function(t,e,r){var n=r(4),o=r(6),a=r(11),i=r(29);t.exports=n?Object.defineProperties:function(t,e){a(t);for(var r,n=i(e),s=n.length,u=0;s>u;)o.f(t,r=n[u++],e[r]);return t}},function(t,e,r){var n=r(15);t.exports=n("document","documentElement")},function(t,e,r){var n=r(5),o=r(25).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return i&&"[object Window]"==a.call(t)?function(t){try{return o(t)}catch(t){return i.slice()}}(t):o(n(t))}},function(t,e,r){var n=r(39),o=r(3),a=r(48),i=r(6).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||i(e,t,{value:a.f(t)})}},function(t,e,r){var n=r(6).f,o=r(3),a=r(7)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,a)&&n(t,a,{configurable:!0,value:e})}},function(t,e,r){var n=r(68);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,r){var n=r(8),o=r(46),a=r(7)("species");t.exports=function(t,e){var r;return o(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!o(r.prototype)?n(r)&&null===(r=r[a])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},function(t,e,r){"use strict";var n=r(2),o=r(16).filter,a=r(49),i=r(17),s=a("filter"),u=i("filter");n({target:"Array",proto:!0,forced:!s||!u},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n,o,a=r(0),i=r(72),s=a.process,u=s&&s.versions,c=u&&u.v8;c?o=(n=c.split("."))[0]+n[1]:i&&(!(n=i.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=i.match(/Chrome\/(\d+)/))&&(o=n[1]),t.exports=o&&+o},function(t,e,r){var n=r(15);t.exports=n("navigator","userAgent")||""},function(t,e,r){"use strict";var n=r(2),o=r(41).includes,a=r(74);n({target:"Array",proto:!0,forced:!r(17)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(t,e,r){var n=r(7),o=r(47),a=r(6),i=n("unscopables"),s=Array.prototype;null==s[i]&&a.f(s,i,{configurable:!0,value:o(null)}),t.exports=function(t){s[i][t]=!0}},function(t,e,r){"use strict";var n=r(2),o=r(18),a=r(5),i=r(52),s=[].join,u=o!=Object,c=i("join",",");n({target:"Array",proto:!0,forced:u||!c},{join:function(t){return s.call(a(this),void 0===t?",":t)}})},function(t,e,r){"use strict";var n=r(2),o=r(16).map,a=r(49),i=r(17),s=a("map"),u=i("map");n({target:"Array",proto:!0,forced:!s||!u},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(2),o=r(1),a=r(5),i=r(10).f,s=r(4),u=o((function(){i(1)}));n({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(t,e){return i(a(t),e)}})},function(t,e,r){var n=r(2),o=r(4),a=r(38),i=r(5),s=r(10),u=r(79);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,r,n=i(t),o=s.f,c=a(n),f={},l=0;c.length>l;)void 0!==(r=o(n,e=c[l++]))&&u(f,e,r);return f}})},function(t,e,r){"use strict";var n=r(13),o=r(6),a=r(12);t.exports=function(t,e,r){var i=n(e);i in t?o.f(t,i,a(0,r)):t[i]=r}},function(t,e,r){var n=r(2),o=r(28),a=r(29);n({target:"Object",stat:!0,forced:r(1)((function(){a(1)}))},{keys:function(t){return a(o(t))}})},function(t,e,r){"use strict";var n=r(2),o=r(82),a=r(20);n({target:"String",proto:!0,forced:!r(84)("includes")},{includes:function(t){return!!~String(a(this)).indexOf(o(t),arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(83);t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(t,e,r){var n=r(8),o=r(19),a=r(7)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==o(t))}},function(t,e,r){var n=r(7)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}},function(t,e,r){var n,o,a;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(90)],void 0===(a="function"==typeof(n=function(t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={AR:{default:{array:[["honorific","firstName","secondName","firstLastName"],["secondLastName"],["companyName"],["address1","address2"],["postalCode","city"],["state"],["country"]]}},AU:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["city","state","postalCode"],["country"]]}},BG:{default:{array:[["country"],["state"],["postalCode","city"],["address1"],["address2"],["companyName"],["honorific","firstName","secondName","lastName"]]}},BR:{default:{array:[["companyName"],["honorific","firstName","secondName","lastName"],["address1","address2"],["postalCode","city","state"],["country"]]}},CA:{english:{array:[["honorific","firstName","lastName"],["companyName"],["address1","address2"],["city","province","postalCode"],["country"]]},french:{array:[["honorific","firstName","lastName"],["address1","address2"],["city","province"],["postalCode"],["country"]]}},CH:{default:{array:[["honorific","firstName","lastName"],["address1","address2"],["postalCode","city"],["country"]]}},CN:{default:{array:[["country"],["province","city"],["address1","address2"],["companyName"],["lastName","firstName","honorific"]]}},CZ:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},DE:{default:{array:[["companyName"],["honorific","title","firstName","lastName"],["address1"],["address2"],[""],["countryAlpha2","postalCode","city"],["country"]]}},DK:{default:{array:[["honorific","title","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["countryAlpha2","postalCode","city"],["country"]]}},ES:{default:{array:[["honorific","firstName","secondName","firstLastName"],["secondLastName"],["companyName"],["address1","address2"],["postalCode","city"],["country"]]}},FI:{default:{array:[["title","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},FR:{default:{array:[["honorific","firstName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},GR:{default:{array:[["title","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},HR:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},HU:{business:{array:[["honorific","lastName","firstName","secondName"],["companyName"],["postalCode","city"],["address1"],["address2"],["state"],["country"]]},default:{array:[["honorific","lastName","firstName"],["city"],["address1","address2"],["postalCode"],["state"],["country"]]}},IT:{default:{array:[["honorific","firstName","lastName"],["companyName"],["address1","address2"],[""],["countryAlpha2","postalCode","city","province"],["country"]]}},JP:{default:{array:[["country"],["postalCode","prefecture","city"],["address1","address2"],["companyName"],["lastName","firstName","honorific"]]}},KR:{default:{array:[["country"],["do","si","dong","gu","addressNum"],["companyName"],["lastName","firstName","honorific"]]}},MY:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["state","country"]]}},NL:{business:{array:[["companyName"],["t.a.v.","title","firstName","secondName","lastName"],["address1"],["address2"],["postalCode","city"],["country"]]},default:{array:[["title","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},NO:{business:{array:[["companyName"],["address1"],["firstName","lastName"],["address2"],["postalCode","city"],["country"]]},personal:{array:[["jobTitle","firstName","lastName"],["address1","address2"],["postalCode",{attribute:"city",transforms:[e.capitalize]}],["country"]]}},PL:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},PT:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},RO:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["state"],["country"]]}},RU:{default:{array:[["country"],["republic","state","region","city"],["address1"],["address2"],["companyName"],["lastName"],["firstName","secondName"]]}},SE:{business:{array:[["companyName"],["firstName","lastName"],["address1"],["address2"],["postalCode","city"],["country"]]},personal:{array:[["jobTitle","firstName","lastName"],["address1","address2"],["postalCode",{attribute:"city",transforms:[e.capitalize]}],["country"]]}},TR:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},US:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["city","state","postalCode"],[{attribute:"country",transforms:[e.capitalize]}]]}}};r.CA.default=r.CA.english,r.RS=r.HR,r.SI=r.HR,r.KP=r.KR,r.NO.default=r.NO.personal,r.SE.default=r.SE.personal,r.BO=r.AR,r.CL=r.AR,r.CO=r.AR,r.EC=r.AR,r.GY=r.AR,r.PY=r.AR,r.PE=r.AR,r.UY=r.AR,r.VE=r.AR;var n=r;t.default=n})?n.apply(e,o):n)||(t.exports=a)},function(t,e,r){var n,o,a;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e],void 0===(a="function"==typeof(n=function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.capitalize=void 0,t.capitalize=function(t){return"string"==typeof t?t.toUpperCase():""}})?n.apply(e,o):n)||(t.exports=a)},function(t,e,r){var n,o,a;r(50),r(53),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(92)],void 0===(a="function"==typeof(n=function(t,e){"use strict";var n=r(54);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=n(e);var o={array:function(t,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=[];return Array.isArray(r)&&r.forEach((function(r){var a=[];Array.isArray(r)&&r.forEach((function(r){if("string"==typeof r)t[r]&&a.push(t[r]);else if("object"===(0,e.default)(r)&&"string"==typeof r.attribute){var o=t[r.attribute];n&&Array.isArray(r.transforms)&&r.transforms.forEach((function(t){"function"==typeof t&&(o=t(o))})),o&&a.push(o)}})),a.length>0&&o.push(a)})),o}};t.default=o})?n.apply(e,o):n)||(t.exports=a)},function(t,e){function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=r=function(t){return typeof t}:t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}t.exports=r},function(t,e,r){var n,o,a;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e],void 0===(a="function"==typeof(n=function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e={address1:"",address2:"",addressNum:"",city:"",companyName:"",country:"",countryAlpha2:"",do:"",dong:"",firstLastName:"",firstName:"",gu:"",honorific:"",jobTitle:"",lastName:"",postalCode:"",prefecture:"",province:"",region:"",republic:"",secondLastName:"",secondName:"",si:"",state:"",title:""};t.default=e})?n.apply(e,o):n)||(t.exports=a)},function(t){t.exports=JSON.parse('{"Afghanistan":"AF","Aland Islands":"AX","Albania":"AL","Algeria":"DZ","American Samoa":"AS","Andorra":"AD","Angola":"AO","Anguilla":"AI","Antarctica":"AQ","Antigua and Barbuda":"AG","Argentina":"AR","Armenia":"AM","Aruba":"AW","Australia":"AU","Austria":"AT","Azerbaijan":"AZ","Bahamas":"BS","Bahrain":"BH","Bangladesh":"BD","Barbados":"BB","Belarus":"BY","Belgium":"BE","Belize":"BZ","Benin":"BJ","Bermuda":"BM","Bhutan":"BT","Bolivia (Plurinational State of)":"BO","Bonaire Sint Eustatius and Saba":"BQ","Bosnia and Herzegovina":"BA","Botswana":"BW","Bouvet Island":"BV","Brazil":"BR","British Indian Ocean Territory":"IO","Brunei Darussalam":"BN","Bulgaria":"BG","Burkina Faso":"BF","Burundi":"BI","Cabo Verde":"CV","Cambodia":"KH","Cameroon":"CM","Canada":"CA","Cayman Islands":"KY","Central African Republic":"CF","Chad":"TD","Chile":"CL","China":"CN","Christmas Island":"CX","Cocos (Keeling) Islands":"CC","Colombia":"CO","Comoros":"KM","Congo":"CG","Congo (Democratic Republic of the)":"CD","Cook Islands":"CK","Costa Rica":"CR","Cote d\'Ivoire":"CI","Croatia":"HR","Cuba":"CU","Curacao":"CW","Cyprus":"CY","Czechia":"CZ","Denmark":"DK","Djibouti":"DJ","Dominica":"DM","Dominican Republic":"DO","Ecuador":"EC","Egypt":"EG","El Salvador":"SV","Equatorial Guinea":"GQ","Eritrea":"ER","Estonia":"EE","Ethiopia":"ET","Falkland Islands (Malvinas)":"FK","Faroe Islands":"FO","Fiji":"FJ","Finland":"FI","France":"FR","French Guiana":"GF","French Polynesia":"PF","French Southern Territories":"TF","Gabon":"GA","Gambia":"GM","Georgia":"GE","Germany":"DE","Ghana":"GH","Gibraltar":"GI","Greece":"GR","Greenland":"GL","Grenada":"GD","Guadeloupe":"GP","Guam":"GU","Guatemala":"GT","Guernsey":"GG","Guinea":"GN","Guinea-Bissau":"GW","Guyana":"GY","Haiti":"HT","Heard Island and McDonald Islands":"HM","Holy See":"VA","Honduras":"HN","Hong Kong":"HK","Hungary":"HU","Iceland":"IS","India":"IN","Indonesia":"ID","Iran (Islamic Republic of)":"IR","Iraq":"IQ","Ireland":"IE","Isle of Man":"IM","Israel":"IL","Italy":"IT","Jamaica":"JM","Japan":"JP","Jersey":"JE","Jordan":"JO","Kazakhstan":"KZ","Kenya":"KE","Kiribati":"KI","Korea (Democratic People\'s Republic of)":"KP","Korea (Republic of)":"KR","Kuwait":"KW","Kyrgyzstan":"KG","Lao People\'s Democratic Republic":"LA","Latvia":"LV","Lebanon":"LB","Lesotho":"LS","Liberia":"LR","Libya":"LY","Liechtenstein":"LI","Lithuania":"LT","Luxembourg":"LU","Macao":"MO","Macedonia (the former Yugoslav Republic of)":"MK","Madagascar":"MG","Malawi":"MW","Malaysia":"MY","Maldives":"MV","Mali":"ML","Malta":"MT","Marshall Islands":"MH","Martinique":"MQ","Mauritania":"MR","Mauritius":"MU","Mayotte":"YT","Mexico":"MX","Micronesia (Federated States of)":"FM","Moldova (Republic of)":"MD","Monaco":"MC","Mongolia":"MN","Montenegro":"ME","Montserrat":"MS","Morocco":"MA","Mozambique":"MZ","Myanmar":"MM","Namibia":"NA","Nauru":"NR","Nepal":"NP","Netherlands":"NL","New Caledonia":"NC","New Zealand":"NZ","Nicaragua":"NI","Niger":"NE","Nigeria":"NG","Niue":"NU","Norfolk Island":"NF","Northern Mariana Islands":"MP","Norway":"NO","Oman":"OM","Pakistan":"PK","Palau":"PW","Palestine State of":"PS","Panama":"PA","Papua New Guinea":"PG","Paraguay":"PY","Peru":"PE","Philippines":"PH","Pitcairn":"PN","Poland":"PL","Portugal":"PT","Puerto Rico":"PR","Qatar":"QA","Reunion":"RE","Romania":"RO","Russian Federation":"RU","Rwanda":"RW","Saint Barthelemy":"BL","Saint Helena Ascension and Tristan da Cunha":"SH","Saint Kitts and Nevis":"KN","Saint Lucia":"LC","Saint Martin (French part)":"MF","Saint Pierre and Miquelon":"PM","Saint Vincent and the Grenadines":"VC","Samoa":"WS","San Marino":"SM","Sao Tome and Principe":"ST","Saudi Arabia":"SA","Senegal":"SN","Serbia":"RS","Seychelles":"SC","Sierra Leone":"SL","Singapore":"SG","Sint Maarten (Dutch part)":"SX","Slovakia":"SK","Slovenia":"SI","Solomon Islands":"SB","Somalia":"SO","South Africa":"ZA","South Georgia and the South Sandwich Islands":"GS","South Sudan":"SS","Spain":"ES","Sri Lanka":"LK","Sudan":"SD","Suriname":"SR","Svalbard and Jan Mayen":"SJ","Swaziland":"SZ","Sweden":"SE","Switzerland":"CH","Syrian Arab Republic":"SY","Taiwan Province of China":"TW","Tajikistan":"TJ","Tanzania United Republic of":"TZ","Thailand":"TH","Timor-Leste":"TL","Togo":"TG","Tokelau":"TK","Tonga":"TO","Trinidad and Tobago":"TT","Tunisia":"TN","Turkey":"TR","Turkmenistan":"TM","Turks and Caicos Islands":"TC","Tuvalu":"TV","Uganda":"UG","Ukraine":"UA","United Arab Emirates":"AE","United Kingdom of Great Britain and Northern Ireland":"GB","United States of America":"US","United States Minor Outlying Islands":"UM","Uruguay":"UY","Uzbekistan":"UZ","Vanuatu":"VU","Venezuela (Bolivarian Republic of)":"VE","Viet Nam":"VN","Virgin Islands (British)":"VG","Virgin Islands (U.S.)":"VI","Wallis and Futuna":"WF","Western Sahara":"EH","Yemen":"YE","Zambia":"ZM","Zimbabwe":"ZW"}')}])}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.PostalAddress=e():t.PostalAddress=e()}("undefined"!=typeof self?self:this,(function(){return function(){var t={6478:function(t){"use strict";t.exports=JSON.parse('{"Afghanistan":"AF","Aland Islands":"AX","Albania":"AL","Algeria":"DZ","American Samoa":"AS","Andorra":"AD","Angola":"AO","Anguilla":"AI","Antarctica":"AQ","Antigua and Barbuda":"AG","Argentina":"AR","Armenia":"AM","Aruba":"AW","Australia":"AU","Austria":"AT","Azerbaijan":"AZ","Bahamas":"BS","Bahrain":"BH","Bangladesh":"BD","Barbados":"BB","Belarus":"BY","Belgium":"BE","Belize":"BZ","Benin":"BJ","Bermuda":"BM","Bhutan":"BT","Bolivia (Plurinational State of)":"BO","Bonaire Sint Eustatius and Saba":"BQ","Bosnia and Herzegovina":"BA","Botswana":"BW","Bouvet Island":"BV","Brazil":"BR","British Indian Ocean Territory":"IO","Brunei Darussalam":"BN","Bulgaria":"BG","Burkina Faso":"BF","Burundi":"BI","Cabo Verde":"CV","Cambodia":"KH","Cameroon":"CM","Canada":"CA","Cayman Islands":"KY","Central African Republic":"CF","Chad":"TD","Chile":"CL","China":"CN","Christmas Island":"CX","Cocos (Keeling) Islands":"CC","Colombia":"CO","Comoros":"KM","Congo":"CG","Congo (Democratic Republic of the)":"CD","Cook Islands":"CK","Costa Rica":"CR","Cote d\'Ivoire":"CI","Croatia":"HR","Cuba":"CU","Curacao":"CW","Cyprus":"CY","Czechia":"CZ","Denmark":"DK","Djibouti":"DJ","Dominica":"DM","Dominican Republic":"DO","Ecuador":"EC","Egypt":"EG","El Salvador":"SV","Equatorial Guinea":"GQ","Eritrea":"ER","Estonia":"EE","Ethiopia":"ET","Falkland Islands (Malvinas)":"FK","Faroe Islands":"FO","Fiji":"FJ","Finland":"FI","France":"FR","French Guiana":"GF","French Polynesia":"PF","French Southern Territories":"TF","Gabon":"GA","Gambia":"GM","Georgia":"GE","Germany":"DE","Ghana":"GH","Gibraltar":"GI","Greece":"GR","Greenland":"GL","Grenada":"GD","Guadeloupe":"GP","Guam":"GU","Guatemala":"GT","Guernsey":"GG","Guinea":"GN","Guinea-Bissau":"GW","Guyana":"GY","Haiti":"HT","Heard Island and McDonald Islands":"HM","Holy See":"VA","Honduras":"HN","Hong Kong":"HK","Hungary":"HU","Iceland":"IS","India":"IN","Indonesia":"ID","Iran (Islamic Republic of)":"IR","Iraq":"IQ","Ireland":"IE","Isle of Man":"IM","Israel":"IL","Italy":"IT","Jamaica":"JM","Japan":"JP","Jersey":"JE","Jordan":"JO","Kazakhstan":"KZ","Kenya":"KE","Kiribati":"KI","Korea (Democratic People\'s Republic of)":"KP","Korea (Republic of)":"KR","Kuwait":"KW","Kyrgyzstan":"KG","Lao People\'s Democratic Republic":"LA","Latvia":"LV","Lebanon":"LB","Lesotho":"LS","Liberia":"LR","Libya":"LY","Liechtenstein":"LI","Lithuania":"LT","Luxembourg":"LU","Macao":"MO","Macedonia (the former Yugoslav Republic of)":"MK","Madagascar":"MG","Malawi":"MW","Malaysia":"MY","Maldives":"MV","Mali":"ML","Malta":"MT","Marshall Islands":"MH","Martinique":"MQ","Mauritania":"MR","Mauritius":"MU","Mayotte":"YT","Mexico":"MX","Micronesia (Federated States of)":"FM","Moldova (Republic of)":"MD","Monaco":"MC","Mongolia":"MN","Montenegro":"ME","Montserrat":"MS","Morocco":"MA","Mozambique":"MZ","Myanmar":"MM","Namibia":"NA","Nauru":"NR","Nepal":"NP","Netherlands":"NL","New Caledonia":"NC","New Zealand":"NZ","Nicaragua":"NI","Niger":"NE","Nigeria":"NG","Niue":"NU","Norfolk Island":"NF","Northern Mariana Islands":"MP","Norway":"NO","Oman":"OM","Pakistan":"PK","Palau":"PW","Palestine State of":"PS","Panama":"PA","Papua New Guinea":"PG","Paraguay":"PY","Peru":"PE","Philippines":"PH","Pitcairn":"PN","Poland":"PL","Portugal":"PT","Puerto Rico":"PR","Qatar":"QA","Reunion":"RE","Romania":"RO","Russian Federation":"RU","Rwanda":"RW","Saint Barthelemy":"BL","Saint Helena Ascension and Tristan da Cunha":"SH","Saint Kitts and Nevis":"KN","Saint Lucia":"LC","Saint Martin (French part)":"MF","Saint Pierre and Miquelon":"PM","Saint Vincent and the Grenadines":"VC","Samoa":"WS","San Marino":"SM","Sao Tome and Principe":"ST","Saudi Arabia":"SA","Senegal":"SN","Serbia":"RS","Seychelles":"SC","Sierra Leone":"SL","Singapore":"SG","Sint Maarten (Dutch part)":"SX","Slovakia":"SK","Slovenia":"SI","Solomon Islands":"SB","Somalia":"SO","South Africa":"ZA","South Georgia and the South Sandwich Islands":"GS","South Sudan":"SS","Spain":"ES","Sri Lanka":"LK","Sudan":"SD","Suriname":"SR","Svalbard and Jan Mayen":"SJ","Swaziland":"SZ","Sweden":"SE","Switzerland":"CH","Syrian Arab Republic":"SY","Taiwan Province of China":"TW","Tajikistan":"TJ","Tanzania United Republic of":"TZ","Thailand":"TH","Timor-Leste":"TL","Togo":"TG","Tokelau":"TK","Tonga":"TO","Trinidad and Tobago":"TT","Tunisia":"TN","Turkey":"TR","Turkmenistan":"TM","Turks and Caicos Islands":"TC","Tuvalu":"TV","Uganda":"UG","Ukraine":"UA","United Arab Emirates":"AE","United Kingdom of Great Britain and Northern Ireland":"GB","United States of America":"US","United States Minor Outlying Islands":"UM","Uruguay":"UY","Uzbekistan":"UZ","Vanuatu":"VU","Venezuela (Bolivarian Republic of)":"VE","Viet Nam":"VN","Virgin Islands (British)":"VG","Virgin Islands (U.S.)":"VI","Wallis and Futuna":"WF","Western Sahara":"EH","Yemen":"YE","Zambia":"ZM","Zimbabwe":"ZW"}')},9372:function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},5816:function(t){function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}},5526:function(t){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},7914:function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},1873:function(t){function e(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=e=function(t){return typeof t}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(r)}t.exports=e},3130:function(t,e,r){var n,o,a;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(2821)],void 0===(a="function"==typeof(n=function(t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={AR:{default:{array:[["honorific","firstName","secondName","firstLastName"],["secondLastName"],["companyName"],["address1","address2"],["postalCode","city"],["state"],["country"]]}},AU:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],[{attribute:"city",transforms:[e.addCommaAfter]},"state","postalCode"],["country"]]}},BG:{default:{array:[["country"],["state"],["postalCode","city"],["address1"],["address2"],["companyName"],["honorific","firstName","secondName","lastName"]]}},BR:{default:{array:[["companyName"],["honorific","firstName","secondName","lastName"],["address1","address2"],["postalCode","city","state"],["country"]]}},CA:{english:{array:[["honorific","firstName","lastName"],["companyName"],["address1","address2"],[{attribute:"city",transforms:[e.addCommaAfter]},"province","postalCode"],["country"]]},french:{array:[["honorific","firstName","lastName"],["address1","address2"],["city","province"],["postalCode"],["country"]]}},CH:{default:{array:[["honorific","firstName","lastName"],["address1","address2"],["postalCode","city"],["country"]]}},CN:{default:{array:[["country"],["province","city"],["address1","address2"],["companyName"],["lastName","firstName","honorific"]]}},CZ:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},DE:{default:{array:[["companyName"],["honorific","title","firstName","lastName"],["address1"],["address2"],[""],["countryAlpha2","postalCode","city"],["country"]]}},DK:{default:{array:[["honorific","title","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["countryAlpha2","postalCode","city"],["country"]]}},ES:{default:{array:[["honorific","firstName","secondName","firstLastName"],["secondLastName"],["companyName"],["address1","address2"],["postalCode","city"],["country"]]}},FI:{default:{array:[["title","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},FR:{default:{array:[["honorific","firstName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},GR:{default:{array:[["title","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},HR:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},HU:{business:{array:[["honorific","lastName","firstName","secondName"],["companyName"],["postalCode","city"],["address1"],["address2"],["state"],["country"]]},default:{array:[["honorific","lastName","firstName"],["city"],["address1","address2"],["postalCode"],["state"],["country"]]}},IT:{default:{array:[["honorific","firstName","lastName"],["companyName"],["address1","address2"],[""],["countryAlpha2","postalCode","city","province"],["country"]]}},JP:{default:{array:[["country"],["postalCode","prefecture","city"],["address1","address2"],["companyName"],["lastName","firstName","honorific"]]}},KR:{default:{array:[["country"],["do","si","dong","gu","addressNum"],["companyName"],["lastName","firstName","honorific"]]}},MY:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["state","country"]]}},NL:{business:{array:[["companyName"],["t.a.v.","title","firstName","secondName","lastName"],["address1"],["address2"],["postalCode","city"],["country"]]},default:{array:[["title","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},NO:{business:{array:[["companyName"],["address1"],["firstName","lastName"],["address2"],["postalCode","city"],["country"]]},personal:{array:[["jobTitle","firstName","lastName"],["address1","address2"],["postalCode",{attribute:"city",transforms:[e.capitalize]}],["country"]]}},PL:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},PT:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},RO:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["state"],["country"]]}},RU:{default:{array:[["country"],["republic","state","region","city"],["address1"],["address2"],["companyName"],["lastName"],["firstName","secondName"]]}},SE:{business:{array:[["companyName"],["firstName","lastName"],["address1"],["address2"],["postalCode","city"],["country"]]},personal:{array:[["jobTitle","firstName","lastName"],["address1","address2"],["postalCode",{attribute:"city",transforms:[e.capitalize]}],["country"]]}},TR:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],[{attribute:"postalCode",transforms:[e.addCommaAfter]},"city"],["country"]]}},US:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],[{attribute:"city",transforms:[e.addCommaAfter]},"state","postalCode"],[{attribute:"country",transforms:[e.capitalize]}]]}}};r.CA.default=r.CA.english,r.RS=r.HR,r.SI=r.HR,r.KP=r.KR,r.NO.default=r.NO.personal,r.SE.default=r.SE.personal,r.BO=r.AR,r.CL=r.AR,r.CO=r.AR,r.EC=r.AR,r.GY=r.AR,r.PY=r.AR,r.PE=r.AR,r.UY=r.AR,r.VE=r.AR;var n=r;t.default=n})?n.apply(e,o):n)||(t.exports=a)},5817:function(t,e,r){var n,o,a;r(5374),r(5849),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(1873)],void 0===(a="function"==typeof(n=function(t,e){"use strict";var n=r(7914);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=n(e);var o={array:function(t,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=[];return Array.isArray(r)&&r.forEach((function(r){var a=[];Array.isArray(r)&&r.forEach((function(r){if("string"==typeof r)t[r]&&a.push(t[r]);else if("object"===(0,e.default)(r)&&"string"==typeof r.attribute){var o=t[r.attribute];n&&Array.isArray(r.transforms)&&r.transforms.forEach((function(t){"function"==typeof t&&(o=t(o))})),o&&a.push(o)}})),a.length>0&&o.push(a)})),o}};t.default=o})?n.apply(e,o):n)||(t.exports=a)},2821:function(t,e,r){var n,o;r(3938),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,void 0===(o="function"==typeof(n=function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.capitalize=t.addCommaAfter=void 0;t.addCommaAfter=function(t){return t&&"string"==typeof t?"".concat(t).concat(","):""};t.capitalize=function(t){return"string"==typeof t?t.toUpperCase():""}})?n.apply(e,[e]):n)||(t.exports=o)},4790:function(t,e){var r,n;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,void 0===(n="function"==typeof(r=function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={address1:"",address2:"",addressNum:"",city:"",companyName:"",country:"",countryAlpha2:"",do:"",dong:"",firstLastName:"",firstName:"",gu:"",honorific:"",jobTitle:"",lastName:"",postalCode:"",prefecture:"",province:"",region:"",republic:"",secondLastName:"",secondName:"",si:"",state:"",title:""}})?r.apply(e,[e]):r)||(t.exports=n)},7886:function(t,e,r){var n,o,a;r(5901),r(8010),r(5374),r(5623),r(5613),r(1013),r(252),r(4009),r(2571),r(1514),r(5849),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(5526),r(9372),r(5816),r(3130),r(5817),r(4790),r(6478)],void 0===(a="function"==typeof(n=function(t,e,n,o,a,i,s,u){"use strict";var c=r(7914);function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=c(e),n=c(n),o=c(o),a=c(a),i=c(i),s=c(s),u=c(u);var l=function(){function t(){var r=this;(0,n.default)(this,t),this.outputFormat="array",this.formatForCountry="US",this.formatForType="default",this.useTransforms=!0,this.object=function(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?f(Object(n),!0).forEach((function(r){(0,e.default)(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},s.default),this.validators={formatForCountry:function(t){return r.allowed.formatForCountry.includes(t)},formatForType:function(t){return r.allowed.formatForType.includes(t)},outputFormat:function(t){return r.allowed.outputFormat.includes(t)}},this.allowed={formatForCountry:Object.keys(a.default),formatForType:["business","default","english","french","personal"],outputFormat:["array","string"]},this.addressFormats=a.default,this.addressParsers=i.default}return(0,o.default)(t,[{key:"validator",value:function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n="",o=this.validators[t];return n=r?this.object[t]:this[t],"function"==typeof o?o(e)?e:n:e}},{key:"getFormat",value:function(t){var e,r,n,o,a=this.outputFormat,i=this.formatForCountry,s=this.formatForType,u=this.addressFormats,c=t||a,f=u[i],l={};if(f||(f=null==u?void 0:u.US),null===(e=f)||void 0===e?void 0:e[s])l=f[s];else if(f.default){var d;l=null===(d=f)||void 0===d?void 0:d.default}return(null===(r=l)||void 0===r?void 0:r[c])?(null===(o=l)||void 0===o?void 0:o[c])||null:(null===(n=l)||void 0===n?void 0:n.array)?l.array:null}},{key:"getParser",value:function(t){var e=this.outputFormat,r=this.addressParsers,n=t||e;return r[n]?r[n]:null}},{key:"output",value:function(t){var e=this.useTransforms,r=this.getFormat(t),n=this.getParser(t);return"function"==typeof n&&r?n(this.object,r,e):null}},{key:"setProperty",value:function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];"string"==typeof e&&(r?"string"==typeof this.object[t]&&(this.object[t]=this.validator(t,e,r)):"string"==typeof this[t]&&(this[t]=this.validator(t,e,r)))}},{key:"setAddress",value:function(t){return this.setAddress1(t),this}},{key:"setAddress1",value:function(t){return this.setProperty("address1",t),this.setProperty("dong",t),this}},{key:"setAddress2",value:function(t){return this.setProperty("address2",t),this}},{key:"setAddressNum",value:function(t){return this.setProperty("addressNum",t),this}},{key:"setCity",value:function(t){return this.setProperty("city",t),this.setProperty("si",t),this}},{key:"setCompanyName",value:function(t){return this.setProperty("companyName",t),this}},{key:"setCountry",value:function(t){this.setProperty("country",t);var e=u.default[t];return e&&this.setProperty("countryAlpha2",e),this}},{key:"setDo",value:function(t){return this.setProperty("do",t),this.setProperty("province",t),this}},{key:"setDong",value:function(t){return this.setProperty("dong",t),this.setProperty("address1",t),this}},{key:"setFirstLastName",value:function(t){return this.setProperty("firstLastName",t),this}},{key:"setFirstName",value:function(t){return this.setProperty("firstName",t),this}},{key:"setGu",value:function(t){return this.setProperty("gu",t),this}},{key:"setHonorific",value:function(t){return this.setProperty("honorific",t),this}},{key:"setJobTitle",value:function(t){return this.setProperty("jobTitle",t),this}},{key:"setLastName",value:function(t){return this.setProperty("lastName",t),this.setProperty("secondLastName",t),this}},{key:"setPostalCode",value:function(t){return this.setProperty("postalCode",t),this}},{key:"setPrefecture",value:function(t){return this.setProperty("prefecture",t),this}},{key:"setProvince",value:function(t){return this.setProperty("province",t),this.setProperty("do",t),this}},{key:"setRegion",value:function(t){return this.setProperty("region",t),this}},{key:"setRepublic",value:function(t){return this.setProperty("republic",t),this}},{key:"setSecondLastName",value:function(t){return this.setProperty("secondLastName",t),this.setProperty("lastName",t),this}},{key:"setSecondName",value:function(t){return this.setProperty("secondName",t),this}},{key:"setSi",value:function(t){return this.setProperty("si",t),this.setProperty("city",t),this}},{key:"setState",value:function(t){return this.setProperty("state",t),this}},{key:"setTitle",value:function(t){return this.setProperty("title",t),this}},{key:"setOutputFormat",value:function(t){return this.setProperty("outputFormat",t,!1),this}},{key:"setFormat",value:function(t){var e=t.country,r=t.type,n=t.useTransforms;return"string"==typeof e&&this.setProperty("formatForCountry",e,!1),"string"==typeof r&&this.setProperty("formatForType",r,!1),"boolean"==typeof n&&(this.useTransforms=n),this}},{key:"toString",value:function(){var t=this.output("array");return t?t.map((function(t){return t.join(" ")})).join("\n"):""}},{key:"raw",value:function(){return this.object}}]),t}();t.default=l})?n.apply(e,o):n)||(t.exports=a)},9944:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},8669:function(t,e,r){var n=r(211),o=r(4710),a=r(7826),i=n("unscopables"),s=Array.prototype;null==s[i]&&a.f(s,i,{configurable:!0,value:o(null)}),t.exports=function(t){s[i][t]=!0}},6112:function(t,e,r){var n=r(8759);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},1984:function(t,e,r){"use strict";var n=r(8062).forEach,o=r(2802),a=r(3002),i=o("forEach"),s=a("forEach");t.exports=i&&s?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},6198:function(t,e,r){var n=r(4088),o=r(4005),a=r(7740),i=function(t){return function(e,r,i){var s,u=n(e),c=o(u.length),f=a(i,c);if(t&&r!=r){for(;c>f;)if((s=u[f++])!=s)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}},8062:function(t,e,r){var n=r(8516),o=r(5974),a=r(3060),i=r(4005),s=r(5574),u=[].push,c=function(t){var e=1==t,r=2==t,c=3==t,f=4==t,l=6==t,d=5==t||l;return function(p,y,m,h){for(var v,g,b=a(p),N=o(b),S=n(y,m,3),P=i(N.length),C=0,O=h||s,A=e?O(p,P):r?O(p,0):void 0;P>C;C++)if((d||C in N)&&(g=S(v=N[C],C,b),t))if(e)A[C]=g;else if(g)switch(t){case 3:return!0;case 5:return v;case 6:return C;case 2:u.call(A,v)}else if(f)return!1;return l?-1:c||f?f:A}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},9955:function(t,e,r){var n=r(3677),o=r(211),a=r(1448),i=o("species");t.exports=function(t){return a>=51||!n((function(){var e=[];return(e.constructor={})[i]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},2802:function(t,e,r){"use strict";var n=r(3677);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},3002:function(t,e,r){var n=r(5283),o=r(3677),a=r(3167),i=Object.defineProperty,s={},u=function(t){throw t};t.exports=function(t,e){if(a(s,t))return s[t];e||(e={});var r=[][t],c=!!a(e,"ACCESSORS")&&e.ACCESSORS,f=a(e,0)?e[0]:u,l=a(e,1)?e[1]:void 0;return s[t]=!!r&&!o((function(){if(c&&!n)return!0;var t={length:-1};c?i(t,1,{enumerable:!0,get:u}):t[1]=1,r.call(t,f,l)}))}},5574:function(t,e,r){var n=r(8759),o=r(6526),a=r(211)("species");t.exports=function(t,e){var r;return o(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!o(r.prototype)?n(r)&&null===(r=r[a])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},2306:function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},8474:function(t,e,r){var n=r(3167),o=r(6095),a=r(4399),i=r(7826);t.exports=function(t,e){for(var r=o(e),s=i.f,u=a.f,c=0;c<r.length;c++){var f=r[c];n(t,f)||s(t,f,u(e,f))}}},5469:function(t,e,r){var n=r(211)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},2585:function(t,e,r){var n=r(5283),o=r(7826),a=r(5736);t.exports=n?function(t,e,r){return o.f(t,e,a(1,r))}:function(t,e,r){return t[e]=r,t}},5736:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},9720:function(t,e,r){"use strict";var n=r(1288),o=r(7826),a=r(5736);t.exports=function(t,e,r){var i=n(e);i in t?o.f(t,i,a(0,r)):t[i]=r}},4145:function(t,e,r){var n=r(9775),o=r(3167),a=r(9251),i=r(7826).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||i(e,t,{value:a.f(t)})}},5283:function(t,e,r){var n=r(3677);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},821:function(t,e,r){var n=r(2086),o=r(8759),a=n.document,i=o(a)&&o(a.createElement);t.exports=function(t){return i?a.createElement(t):{}}},933:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},4999:function(t,e,r){var n=r(563);t.exports=n("navigator","userAgent")||""},1448:function(t,e,r){var n,o,a=r(2086),i=r(4999),s=a.process,u=s&&s.versions,c=u&&u.v8;c?o=(n=c.split("."))[0]+n[1]:i&&(!(n=i.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=i.match(/Chrome\/(\d+)/))&&(o=n[1]),t.exports=o&&+o},8684:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1695:function(t,e,r){var n=r(2086),o=r(4399).f,a=r(2585),i=r(1007),s=r(3648),u=r(8474),c=r(7189);t.exports=function(t,e){var r,f,l,d,p,y=t.target,m=t.global,h=t.stat;if(r=m?n:h?n[y]||s(y,{}):(n[y]||{}).prototype)for(f in e){if(d=e[f],l=t.noTargetGet?(p=o(r,f))&&p.value:r[f],!c(m?f:y+(h?".":"#")+f,t.forced)&&void 0!==l){if(typeof d==typeof l)continue;u(d,l)}(t.sham||l&&l.sham)&&a(d,"sham",!0),i(r,f,d,t)}}},3677:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},8516:function(t,e,r){var n=r(9944);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},563:function(t,e,r){var n=r(9775),o=r(2086),a=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?a(n[t])||a(o[t]):n[t]&&n[t][e]||o[t]&&o[t][e]}},2086:function(t,e,r){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||Function("return this")()},3167:function(t){var e={}.hasOwnProperty;t.exports=function(t,r){return e.call(t,r)}},7153:function(t){t.exports={}},5963:function(t,e,r){var n=r(563);t.exports=n("document","documentElement")},6761:function(t,e,r){var n=r(5283),o=r(3677),a=r(821);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},5974:function(t,e,r){var n=r(3677),o=r(2306),a="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?a.call(t,""):Object(t)}:Object},9277:function(t,e,r){var n=r(4489),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return o.call(t)}),t.exports=n.inspectSource},3278:function(t,e,r){var n,o,a,i=r(9316),s=r(2086),u=r(8759),c=r(2585),f=r(3167),l=r(8944),d=r(7153),p=s.WeakMap;if(i){var y=new p,m=y.get,h=y.has,v=y.set;n=function(t,e){return v.call(y,t,e),e},o=function(t){return m.call(y,t)||{}},a=function(t){return h.call(y,t)}}else{var g=l("state");d[g]=!0,n=function(t,e){return c(t,g,e),e},o=function(t){return f(t,g)?t[g]:{}},a=function(t){return f(t,g)}}t.exports={set:n,get:o,has:a,enforce:function(t){return a(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},6526:function(t,e,r){var n=r(2306);t.exports=Array.isArray||function(t){return"Array"==n(t)}},7189:function(t,e,r){var n=r(3677),o=/#|\.prototype\./,a=function(t,e){var r=s[i(t)];return r==c||r!=u&&("function"==typeof e?n(e):!!e)},i=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},s=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";t.exports=a},8759:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},3296:function(t){t.exports=!1},7994:function(t,e,r){var n=r(8759),o=r(2306),a=r(211)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==o(t))}},3193:function(t,e,r){var n=r(3677);t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},9316:function(t,e,r){var n=r(2086),o=r(9277),a=n.WeakMap;t.exports="function"==typeof a&&/native code/.test(o(a))},7725:function(t,e,r){var n=r(7994);t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},4710:function(t,e,r){var n,o=r(6112),a=r(7711),i=r(8684),s=r(7153),u=r(5963),c=r(821),f=r(8944)("IE_PROTO"),l=function(){},d=function(t){return"<script>"+t+"<\/script>"},p=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;p=n?function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e}(n):((e=c("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F);for(var r=i.length;r--;)delete p.prototype[i[r]];return p()};s[f]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(l.prototype=o(t),r=new l,l.prototype=null,r[f]=t):r=p(),void 0===e?r:a(r,e)}},7711:function(t,e,r){var n=r(5283),o=r(7826),a=r(6112),i=r(8779);t.exports=n?Object.defineProperties:function(t,e){a(t);for(var r,n=i(e),s=n.length,u=0;s>u;)o.f(t,r=n[u++],e[r]);return t}},7826:function(t,e,r){var n=r(5283),o=r(6761),a=r(6112),i=r(1288),s=Object.defineProperty;e.f=n?s:function(t,e,r){if(a(t),e=i(e,!0),a(r),o)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},4399:function(t,e,r){var n=r(5283),o=r(7446),a=r(5736),i=r(4088),s=r(1288),u=r(3167),c=r(6761),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=i(t),e=s(e,!0),c)try{return f(t,e)}catch(t){}if(u(t,e))return a(!o.f.call(t,e),t[e])}},3226:function(t,e,r){var n=r(4088),o=r(62).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return i&&"[object Window]"==a.call(t)?function(t){try{return o(t)}catch(t){return i.slice()}}(t):o(n(t))}},62:function(t,e,r){var n=r(1352),o=r(8684).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},6952:function(t,e){e.f=Object.getOwnPropertySymbols},1352:function(t,e,r){var n=r(3167),o=r(4088),a=r(6198).indexOf,i=r(7153);t.exports=function(t,e){var r,s=o(t),u=0,c=[];for(r in s)!n(i,r)&&n(s,r)&&c.push(r);for(;e.length>u;)n(s,r=e[u++])&&(~a(c,r)||c.push(r));return c}},8779:function(t,e,r){var n=r(1352),o=r(8684);t.exports=Object.keys||function(t){return n(t,o)}},7446:function(t,e){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},6095:function(t,e,r){var n=r(563),o=r(62),a=r(6952),i=r(6112);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(i(t)),r=a.f;return r?e.concat(r(t)):e}},9775:function(t,e,r){var n=r(2086);t.exports=n},1007:function(t,e,r){var n=r(2086),o=r(2585),a=r(3167),i=r(3648),s=r(9277),u=r(3278),c=u.get,f=u.enforce,l=String(String).split("String");(t.exports=function(t,e,r,s){var u=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof e||a(r,"name")||o(r,"name",e),f(r).source=l.join("string"==typeof e?e:"")),t!==n?(u?!d&&t[e]&&(c=!0):delete t[e],c?t[e]=r:o(t,e,r)):c?t[e]=r:i(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},9586:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3648:function(t,e,r){var n=r(2086),o=r(2585);t.exports=function(t,e){try{o(n,t,e)}catch(r){n[t]=e}return e}},914:function(t,e,r){var n=r(7826).f,o=r(3167),a=r(211)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,a)&&n(t,a,{configurable:!0,value:e})}},8944:function(t,e,r){var n=r(9197),o=r(5422),a=n("keys");t.exports=function(t){return a[t]||(a[t]=o(t))}},4489:function(t,e,r){var n=r(2086),o=r(3648),a="__core-js_shared__",i=n[a]||o(a,{});t.exports=i},9197:function(t,e,r){var n=r(3296),o=r(4489);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},7740:function(t,e,r){var n=r(9679),o=Math.max,a=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):a(r,e)}},4088:function(t,e,r){var n=r(5974),o=r(9586);t.exports=function(t){return n(o(t))}},9679:function(t){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},4005:function(t,e,r){var n=r(9679),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},3060:function(t,e,r){var n=r(9586);t.exports=function(t){return Object(n(t))}},1288:function(t,e,r){var n=r(8759);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},5422:function(t){var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},1876:function(t,e,r){var n=r(3193);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9251:function(t,e,r){var n=r(211);e.f=n},211:function(t,e,r){var n=r(2086),o=r(9197),a=r(3167),i=r(5422),s=r(3193),u=r(1876),c=o("wks"),f=n.Symbol,l=u?f:f&&f.withoutSetter||i;t.exports=function(t){return a(c,t)||(s&&a(f,t)?c[t]=f[t]:c[t]=l("Symbol."+t)),c[t]}},3938:function(t,e,r){"use strict";var n=r(1695),o=r(3677),a=r(6526),i=r(8759),s=r(3060),u=r(4005),c=r(9720),f=r(5574),l=r(9955),d=r(211),p=r(1448),y=d("isConcatSpreadable"),m=9007199254740991,h="Maximum allowed index exceeded",v=p>=51||!o((function(){var t=[];return t[y]=!1,t.concat()[0]!==t})),g=l("concat"),b=function(t){if(!i(t))return!1;var e=t[y];return void 0!==e?!!e:a(t)};n({target:"Array",proto:!0,forced:!v||!g},{concat:function(t){var e,r,n,o,a,i=s(this),l=f(i,0),d=0;for(e=-1,n=arguments.length;e<n;e++)if(b(a=-1===e?i:arguments[e])){if(d+(o=u(a.length))>m)throw TypeError(h);for(r=0;r<o;r++,d++)r in a&&c(l,d,a[r])}else{if(d>=m)throw TypeError(h);c(l,d++,a)}return l.length=d,l}})},8010:function(t,e,r){"use strict";var n=r(1695),o=r(8062).filter,a=r(9955),i=r(3002),s=a("filter"),u=i("filter");n({target:"Array",proto:!0,forced:!s||!u},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},5374:function(t,e,r){"use strict";var n=r(1695),o=r(1984);n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},5623:function(t,e,r){"use strict";var n=r(1695),o=r(6198).includes,a=r(8669);n({target:"Array",proto:!0,forced:!r(3002)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},5613:function(t,e,r){"use strict";var n=r(1695),o=r(5974),a=r(4088),i=r(2802),s=[].join,u=o!=Object,c=i("join",",");n({target:"Array",proto:!0,forced:u||!c},{join:function(t){return s.call(a(this),void 0===t?",":t)}})},1013:function(t,e,r){"use strict";var n=r(1695),o=r(8062).map,a=r(9955),i=r(3002),s=a("map"),u=i("map");n({target:"Array",proto:!0,forced:!s||!u},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},252:function(t,e,r){var n=r(1695),o=r(3677),a=r(4088),i=r(4399).f,s=r(5283),u=o((function(){i(1)}));n({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(t,e){return i(a(t),e)}})},4009:function(t,e,r){var n=r(1695),o=r(5283),a=r(6095),i=r(4088),s=r(4399),u=r(9720);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,r,n=i(t),o=s.f,c=a(n),f={},l=0;c.length>l;)void 0!==(r=o(n,e=c[l++]))&&u(f,e,r);return f}})},2571:function(t,e,r){var n=r(1695),o=r(3060),a=r(8779);n({target:"Object",stat:!0,forced:r(3677)((function(){a(1)}))},{keys:function(t){return a(o(t))}})},1514:function(t,e,r){"use strict";var n=r(1695),o=r(7725),a=r(9586);n({target:"String",proto:!0,forced:!r(5469)("includes")},{includes:function(t){return!!~String(a(this)).indexOf(o(t),arguments.length>1?arguments[1]:void 0)}})},5901:function(t,e,r){"use strict";var n=r(1695),o=r(2086),a=r(563),i=r(3296),s=r(5283),u=r(3193),c=r(1876),f=r(3677),l=r(3167),d=r(6526),p=r(8759),y=r(6112),m=r(3060),h=r(4088),v=r(1288),g=r(5736),b=r(4710),N=r(8779),S=r(62),P=r(3226),C=r(6952),O=r(4399),A=r(7826),T=r(7446),x=r(2585),M=r(1007),w=r(9197),j=r(8944),E=r(7153),L=r(5422),R=r(211),F=r(9251),k=r(4145),G=r(914),I=r(3278),B=r(8062).forEach,D=j("hidden"),K="Symbol",H=R("toPrimitive"),U=I.set,V=I.getterFor(K),z=Object.prototype,J=o.Symbol,W=a("JSON","stringify"),_=O.f,Y=A.f,Z=P.f,Q=T.f,q=w("symbols"),X=w("op-symbols"),$=w("string-to-symbol-registry"),tt=w("symbol-to-string-registry"),et=w("wks"),rt=o.QObject,nt=!rt||!rt.prototype||!rt.prototype.findChild,ot=s&&f((function(){return 7!=b(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=_(z,e);n&&delete z[e],Y(t,e,r),n&&t!==z&&Y(z,e,n)}:Y,at=function(t,e){var r=q[t]=b(J.prototype);return U(r,{type:K,tag:t,description:e}),s||(r.description=e),r},it=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof J},st=function(t,e,r){t===z&&st(X,e,r),y(t);var n=v(e,!0);return y(r),l(q,n)?(r.enumerable?(l(t,D)&&t[D][n]&&(t[D][n]=!1),r=b(r,{enumerable:g(0,!1)})):(l(t,D)||Y(t,D,g(1,{})),t[D][n]=!0),ot(t,n,r)):Y(t,n,r)},ut=function(t,e){y(t);var r=h(e),n=N(r).concat(dt(r));return B(n,(function(e){s&&!ct.call(r,e)||st(t,e,r[e])})),t},ct=function(t){var e=v(t,!0),r=Q.call(this,e);return!(this===z&&l(q,e)&&!l(X,e))&&(!(r||!l(this,e)||!l(q,e)||l(this,D)&&this[D][e])||r)},ft=function(t,e){var r=h(t),n=v(e,!0);if(r!==z||!l(q,n)||l(X,n)){var o=_(r,n);return!o||!l(q,n)||l(r,D)&&r[D][n]||(o.enumerable=!0),o}},lt=function(t){var e=Z(h(t)),r=[];return B(e,(function(t){l(q,t)||l(E,t)||r.push(t)})),r},dt=function(t){var e=t===z,r=Z(e?X:h(t)),n=[];return B(r,(function(t){!l(q,t)||e&&!l(z,t)||n.push(q[t])})),n};u||(M((J=function(){if(this instanceof J)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=L(t),r=function(t){this===z&&r.call(X,t),l(this,D)&&l(this[D],e)&&(this[D][e]=!1),ot(this,e,g(1,t))};return s&&nt&&ot(z,e,{configurable:!0,set:r}),at(e,t)}).prototype,"toString",(function(){return V(this).tag})),M(J,"withoutSetter",(function(t){return at(L(t),t)})),T.f=ct,A.f=st,O.f=ft,S.f=P.f=lt,C.f=dt,F.f=function(t){return at(R(t),t)},s&&(Y(J.prototype,"description",{configurable:!0,get:function(){return V(this).description}}),i||M(z,"propertyIsEnumerable",ct,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:J}),B(N(et),(function(t){k(t)})),n({target:K,stat:!0,forced:!u},{for:function(t){var e=String(t);if(l($,e))return $[e];var r=J(e);return $[e]=r,tt[r]=e,r},keyFor:function(t){if(!it(t))throw TypeError(t+" is not a symbol");if(l(tt,t))return tt[t]},useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(t,e){return void 0===e?b(t):ut(b(t),e)},defineProperty:st,defineProperties:ut,getOwnPropertyDescriptor:ft}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:lt,getOwnPropertySymbols:dt}),n({target:"Object",stat:!0,forced:f((function(){C.f(1)}))},{getOwnPropertySymbols:function(t){return C.f(m(t))}}),W&&n({target:"JSON",stat:!0,forced:!u||f((function(){var t=J();return"[null]"!=W([t])||"{}"!=W({a:t})||"{}"!=W(Object(t))}))},{stringify:function(t,e,r){for(var n,o=[t],a=1;arguments.length>a;)o.push(arguments[a++]);if(n=e,(p(e)||void 0!==t)&&!it(t))return d(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!it(e))return e}),o[1]=e,W.apply(null,o)}}),J.prototype[H]||x(J.prototype,H,J.prototype.valueOf),G(J,K),E[D]=!0},5849:function(t,e,r){var n=r(2086),o=r(933),a=r(1984),i=r(2585);for(var s in o){var u=n[s],c=u&&u.prototype;if(c&&c.forEach!==a)try{i(c,"forEach",a)}catch(t){c.forEach=a}}}},e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,r),o.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r(7886)}()}));

@@ -16,3 +16,2 @@ import { AddressObject } from './address-format';

setHonorific(newValue: string): this;
setHonorific(newValue: string): this;
setJobTitle(newValue: string): this;

@@ -32,8 +31,9 @@ setLastName(newValue: string): this;

setFormat({ country, type, useTransforms, }: {
country: string;
type: string;
useTransforms: boolean;
country?: string;
type?: string;
useTransforms?: boolean;
}): this;
output(overrideFormat: string): string[][] | string | null;
toString(): string;
raw(): AddressObject;
}

@@ -1,7 +0,21 @@

import { capitalize } from '../address-transforms'
import { addCommaAfter, capitalize } from '../address-transforms'
describe('Address Transforms', () => {
describe('Address Transforms: addCommaAfter', () => {
it('should accept "string" and output "string,"', () => {
expect(addCommaAfter('string')).toBe('string,')
})
it('should do nothing if empty', () => {
expect(addCommaAfter('')).toBe('')
})
})
describe('Address Transforms: capitalize', () => {
it('should accept "string" and output "STRING"', () => {
expect(capitalize('string')).toBe('STRING')
})
it('should do nothing if empty', () => {
expect(capitalize('')).toBe('')
})
})
import PostalAddress from '../postal-address'
describe('Postal Address', () => {
let myAddressPersonal = null
let myAddressBusiness = null
const expectedOutput = `\
const expectedOutputPT = `\
Portugal

@@ -12,5 +13,16 @@ Porto

`
const expectedOutputUSWithoutTransforms = `\
123 Nevermore Rd
Austin TX 78752\
`
const expectedOutputUSWithTransforms = `\
123 Nevermore Rd
Austin, TX 78752\
`
it('should be a valid constructor', () => {
expect(() => {
myAddressPersonal = new PostalAddress()
}).not.toThrow()
expect(() => {
myAddressBusiness = new PostalAddress()

@@ -20,3 +32,3 @@ }).not.toThrow()

it('should output a valid formatted postal address', () => {
it('should output a valid formatted postal address (PT)', () => {
myAddressBusiness

@@ -35,4 +47,27 @@ .setAddress1('Happy Park')

expect(myAddressBusiness.toString()).toBe(expectedOutput)
expect(myAddressBusiness.toString()).toBe(expectedOutputPT)
})
it('should output a valid formatted postal address (US)', () => {
myAddressPersonal
.setAddress1('123 Nevermore Rd')
.setCity('Austin')
.setState('TX')
.setPostalCode('78752')
.setOutputFormat('array')
.setFormat({
country: 'US',
type: 'personal',
useTransforms: false,
})
expect(myAddressPersonal.toString()).toBe(expectedOutputUSWithoutTransforms)
myAddressPersonal.setFormat({
country: 'US',
type: 'personal',
useTransforms: true,
})
expect(myAddressPersonal.toString()).toBe(expectedOutputUSWithTransforms)
})
})
import { AddressFormats } from './types/address-format'
import { capitalize } from './address-transforms'
import { addCommaAfter, capitalize } from './address-transforms'

@@ -27,3 +27,3 @@ const addressFormats: AddressFormats = {

['address2'],
['city', 'state', 'postalCode'],
[{ attribute: 'city', transforms: [addCommaAfter] }, 'state', 'postalCode'],
['country'],

@@ -66,3 +66,3 @@ ],

['address1', 'address2'],
['city', 'province', 'postalCode'],
[{ attribute: 'city', transforms: [addCommaAfter] }, 'province', 'postalCode'],
['country'],

@@ -421,3 +421,3 @@ ],

['address2'],
['postalCode', 'city'],
[{ attribute: 'postalCode', transforms: [addCommaAfter] }, 'city'],
['country'],

@@ -435,3 +435,3 @@ ],

['address2'],
['city', 'state', 'postalCode'],
[{ attribute: 'city', transforms: [addCommaAfter] }, 'state', 'postalCode'],
[

@@ -438,0 +438,0 @@ {

import { TransformFunction } from './types/address-format'
// eslint-disable-next-line import/prefer-default-export
export const addCommaAfter: TransformFunction = (string) => {
const comma = ','
if (string && typeof string === 'string') {
return `${string}${comma}`
}
return ''
}
export const capitalize: TransformFunction = (string) => {

@@ -8,3 +17,4 @@ if (typeof string === 'string') {

}
return ''
}

@@ -136,3 +136,3 @@ // Import modules and constants

private output(overrideFormat: string): string[][] | string | null {
public output(overrideFormat: string): string[][] | string | null {
const { useTransforms } = this

@@ -315,3 +315,3 @@

useTransforms,
}: { country: string, type: string, useTransforms: boolean },
}: { country?: string, type?: string, useTransforms?: boolean },
): this {

@@ -318,0 +318,0 @@ if (typeof country === 'string') {

@@ -18,3 +18,2 @@ import { AddressObject } from './address-format'

setHonorific(newValue: string): this
setHonorific(newValue: string): this
setJobTitle(newValue: string): this

@@ -38,6 +37,7 @@ setLastName(newValue: string): this

useTransforms,
}: { country: string, type: string, useTransforms: boolean },
}: { country?: string, type?: string, useTransforms?: boolean },
): this
output(overrideFormat: string): string[][] | string | null
toString(): string
raw(): AddressObject
}
{
"name": "i18n-postal-address",
"version": "0.2.0",
"version": "0.3.0",
"description": "A JavaScript library to produce international postal addresses formatted by region",

@@ -46,25 +46,25 @@ "main": "dist/postal-address.js",

"devDependencies": {
"@babel/core": "^7.11.1",
"@babel/plugin-transform-runtime": "^7.11.0",
"@babel/preset-env": "^7.11.0",
"@babel/preset-typescript": "^7.10.4",
"@babel/runtime": "^7.11.2",
"@types/jest": "^26.0.10",
"@typescript-eslint/eslint-plugin": "^3.9.0",
"@typescript-eslint/parser": "^3.9.0",
"@babel/core": "^7.12.3",
"@babel/plugin-transform-runtime": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"@babel/preset-typescript": "^7.12.1",
"@babel/runtime": "^7.12.1",
"@types/jest": "^26.0.14",
"@typescript-eslint/eslint-plugin": "^4.4.1",
"@typescript-eslint/parser": "^4.4.1",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^26.3.0",
"babel-jest": "^26.5.2",
"babel-loader": "^8.0.6",
"core-js": "^3.6",
"eslint": "^7.7.0",
"eslint": "^7.11.0",
"eslint-config-airbnb-base": "^14.2.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jest": "^23.20.0",
"jest": "^26.4.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.1.0",
"jest": "^26.5.3",
"regenerator-runtime": "^0.13.3",
"typescript": "^3.9.7",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.6"
"typescript": "^4.0.3",
"webpack": "^5.1.3",
"webpack-cli": "^4.0.0"
},
"dependencies": {}
}

@@ -6,2 +6,4 @@ # i18n-postal-address

![tests](https://github.com/joaocarmo/i18n-postal-address/workflows/Tests/badge.svg)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/joaocarmo/i18n-postal-address.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/joaocarmo/i18n-postal-address/alerts/)
[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/joaocarmo/i18n-postal-address.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/joaocarmo/i18n-postal-address/context:javascript)

@@ -8,0 +10,0 @@ A JavaScript library to produce international postal addresses formatted by

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc