@fragaria/address-formatter
Version:
Universal international address formatting in Javascript
5 lines • 220 kB
JavaScript
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):(e="undefined"!=typeof globalThis?globalThis:e||self).addressFormatter=a()}(this,(function(){"use strict";
/*!
* mustache.js - Logic-less {{mustache}} templates with JavaScript
* http://github.com/janl/mustache.js
*/var e=Object.prototype.toString,a=Array.isArray||function(a){return"[object Array]"===e.call(a)};function n(e){return"function"==typeof e}function t(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function r(e,a){return null!=e&&"object"==typeof e&&a in e}var o=RegExp.prototype.test;var i=/\S/;function s(e){return!function(e,a){return o.call(e,a)}(i,e)}var m={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};var l=/\s*/,y=/\s+/,u=/\s*=/,d=/\s*\}/,c=/#|\^|\/|>|\{|&|=|!/;function k(e){this.string=e,this.tail=e,this.pos=0}function h(e,a){this.view=e,this.cache={".":this.view},this.parent=a}function f(){this.templateCache={_cache:{},set:function(e,a){this._cache[e]=a},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}k.prototype.eos=function(){return""===this.tail},k.prototype.scan=function(e){var a=this.tail.match(e);if(!a||0!==a.index)return"";var n=a[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},k.prototype.scanUntil=function(e){var a,n=this.tail.search(e);switch(n){case-1:a=this.tail,this.tail="";break;case 0:a="";break;default:a=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=a.length,a},h.prototype.push=function(e){return new h(e,this)},h.prototype.lookup=function(e){var a,t,o,i=this.cache;if(i.hasOwnProperty(e))a=i[e];else{for(var s,m,l,y=this,u=!1;y;){if(e.indexOf(".")>0)for(s=y.view,m=e.split("."),l=0;null!=s&&l<m.length;)l===m.length-1&&(u=r(s,m[l])||(t=s,o=m[l],null!=t&&"object"!=typeof t&&t.hasOwnProperty&&t.hasOwnProperty(o))),s=s[m[l++]];else s=y.view[e],u=r(y.view,e);if(u){a=s;break}y=y.parent}i[e]=a}return n(a)&&(a=a.call(this.view)),a},f.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},f.prototype.parse=function(e,n){var r=this.templateCache,o=e+":"+(n||p.tags).join(":"),i=void 0!==r,m=i?r.get(o):void 0;return null==m&&(m=function(e,n){if(!e)return[];var r,o,i,m=!1,h=[],f=[],_=[],S=!1,g=!1,A="",b=0;function C(){if(S&&!g)for(;_.length;)delete f[_.pop()];else _=[];S=!1,g=!1}function M(e){if("string"==typeof e&&(e=e.split(y,2)),!a(e)||2!==e.length)throw new Error("Invalid tags: "+e);r=new RegExp(t(e[0])+"\\s*"),o=new RegExp("\\s*"+t(e[1])),i=new RegExp("\\s*"+t("}"+e[1]))}M(n||p.tags);for(var B,N,v,R,L,T,P=new k(e);!P.eos();){if(B=P.pos,v=P.scanUntil(r))for(var G=0,E=v.length;G<E;++G)s(R=v.charAt(G))?(_.push(f.length),A+=R):(g=!0,m=!0,A+=" "),f.push(["text",R,B,B+1]),B+=1,"\n"===R&&(C(),A="",b=0,m=!1);if(!P.scan(r))break;if(S=!0,N=P.scan(c)||"name",P.scan(l),"="===N?(v=P.scanUntil(u),P.scan(u),P.scanUntil(o)):"{"===N?(v=P.scanUntil(i),P.scan(d),P.scanUntil(o),N="&"):v=P.scanUntil(o),!P.scan(o))throw new Error("Unclosed tag at "+P.pos);if(L=">"==N?[N,v,B,P.pos,A,b,m]:[N,v,B,P.pos],b++,f.push(L),"#"===N||"^"===N)h.push(L);else if("/"===N){if(!(T=h.pop()))throw new Error('Unopened section "'+v+'" at '+B);if(T[1]!==v)throw new Error('Unclosed section "'+T[1]+'" at '+B)}else"name"===N||"{"===N||"&"===N?g=!0:"="===N&&M(v)}if(C(),T=h.pop())throw new Error('Unclosed section "'+T[1]+'" at '+P.pos);return function(e){for(var a,n=[],t=n,r=[],o=0,i=e.length;o<i;++o)switch((a=e[o])[0]){case"#":case"^":t.push(a),r.push(a),t=a[4]=[];break;case"/":r.pop()[5]=a[2],t=r.length>0?r[r.length-1][4]:n;break;default:t.push(a)}return n}(function(e){for(var a,n,t=[],r=0,o=e.length;r<o;++r)(a=e[r])&&("text"===a[0]&&n&&"text"===n[0]?(n[1]+=a[1],n[3]=a[3]):(t.push(a),n=a));return t}(f))}(e,n),i&&r.set(o,m)),m},f.prototype.render=function(e,a,n,t){var r=this.getConfigTags(t),o=this.parse(e,r),i=a instanceof h?a:new h(a,void 0);return this.renderTokens(o,i,n,e,t)},f.prototype.renderTokens=function(e,a,n,t,r){for(var o,i,s,m="",l=0,y=e.length;l<y;++l)s=void 0,"#"===(i=(o=e[l])[0])?s=this.renderSection(o,a,n,t,r):"^"===i?s=this.renderInverted(o,a,n,t,r):">"===i?s=this.renderPartial(o,a,n,r):"&"===i?s=this.unescapedValue(o,a):"name"===i?s=this.escapedValue(o,a,r):"text"===i&&(s=this.rawValue(o)),void 0!==s&&(m+=s);return m},f.prototype.renderSection=function(e,t,r,o,i){var s=this,m="",l=t.lookup(e[1]);if(l){if(a(l))for(var y=0,u=l.length;y<u;++y)m+=this.renderTokens(e[4],t.push(l[y]),r,o,i);else if("object"==typeof l||"string"==typeof l||"number"==typeof l)m+=this.renderTokens(e[4],t.push(l),r,o,i);else if(n(l)){if("string"!=typeof o)throw new Error("Cannot use higher-order sections without the original template");null!=(l=l.call(t.view,o.slice(e[3],e[5]),(function(e){return s.render(e,t,r,i)})))&&(m+=l)}else m+=this.renderTokens(e[4],t,r,o,i);return m}},f.prototype.renderInverted=function(e,n,t,r,o){var i=n.lookup(e[1]);if(!i||a(i)&&0===i.length)return this.renderTokens(e[4],n,t,r,o)},f.prototype.indentPartial=function(e,a,n){for(var t=a.replace(/[^ \t]/g,""),r=e.split("\n"),o=0;o<r.length;o++)r[o].length&&(o>0||!n)&&(r[o]=t+r[o]);return r.join("\n")},f.prototype.renderPartial=function(e,a,t,r){if(t){var o=this.getConfigTags(r),i=n(t)?t(e[1]):t[e[1]];if(null!=i){var s=e[6],m=e[5],l=e[4],y=i;0==m&&l&&(y=this.indentPartial(i,l,s));var u=this.parse(y,o);return this.renderTokens(u,a,t,y,r)}}},f.prototype.unescapedValue=function(e,a){var n=a.lookup(e[1]);if(null!=n)return n},f.prototype.escapedValue=function(e,a,n){var t=this.getConfigEscape(n)||p.escape,r=a.lookup(e[1]);if(null!=r)return"number"==typeof r&&t===p.escape?String(r):t(r)},f.prototype.rawValue=function(e){return e[1]},f.prototype.getConfigTags=function(e){return a(e)?e:e&&"object"==typeof e?e.tags:void 0},f.prototype.getConfigEscape=function(e){return e&&"object"==typeof e&&!a(e)?e.escape:void 0};var p={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){_.templateCache=e},get templateCache(){return _.templateCache}},_=new f;p.clearCache=function(){return _.clearCache()},p.parse=function(e,a){return _.parse(e,a)},p.render=function(e,n,t,r){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+((a(o=e)?"array":typeof o)+'" was given as the first argument for mustache#render(template, view, partials)'));var o;return _.render(e,n,t,r)},p.escape=function(e){return String(e).replace(/[&<>"'`=\/]/g,(function(e){return m[e]}))},p.Scanner=k,p.Context=h,p.Writer=f;var S={generic1:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n",generic2:"{{{attention}}}\n{{{house}}}, {{{quarter}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{village}}} || {{{town}}} || {{{city}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} {{/first}} {{{postcode}}}\n{{#first}} {{{country}}} || {{{state}}} {{/first}}\n",generic3:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{{place}}}\n{{{postcode}}} {{#first}} {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{city}}} || {{{municipality}}} || {{{state}}} {{/first}}\n{{{country}}}\n",generic4:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{village}}} || {{{hamlet}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{state_district}}} || {{{suburb}}} || {{{municipality}}} || {{{county}}} {{/first}}, {{#first}} {{{state_code}}} || {{{state}}} {{/first}} {{{postcode}}}\n{{{country}}}\n",generic5:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}}\n{{#first}} {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n",generic6:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} {{/first}}\n{{{county}}}\n{{{state}}}\n{{{country}}}\n",generic7:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{state}}}{{/first}}, {{{postcode}}}\n{{{country}}}\n",generic8:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} {{/first}} {{#first}} {{{county_code}}} || {{{county}}} {{/first}}\n{{{country}}}\n",generic9:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{state_district}}} {{/first}}\n{{{postcode}}} {{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{state}}} {{/first}}\n{{{country}}}\n",generic10:"{{{attention}}}\n{{{house}}}\n{{{road}}}, {{{house_number}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}}\n{{{state}}}\n{{{country}}}\n{{{postcode}}}\n",generic11:"{{{country}}}\n{{{state}}}\n{{{postcode}}} {{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}}\n{{{suburb}}}\n{{{road}}}, {{{house_number}}}\n{{{house}}}\n{{{attention}}}\n",generic12:"{{{attention}}}\n{{{house}}}\n{{{house_number}}}, {{{road}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{state_district}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}} - {{{postcode}}}\n{{{state}}}\n{{{country}}}\n",generic13:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{city}}} || {{{town}}} || {{{state_district}}} || {{{village}}} || {{{hamlet}}} || {{{region}}} {{/first}} {{#first}} {{{state_code}}} || {{{state}}} {{/first}} {{{postcode}}}\n{{{country}}}\n",generic14:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{{postcode}}} {{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{state_district}}} {{/first}}\n{{{state}}}\n{{{country}}}\n",generic15:"{{{attention}}}\n{{{house}}}\n{{{road}}}, {{{house_number}}}\n{{{postcode}}} {{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{state}}} || {{{county}}} {{/first}}\n{{{country}}}\n",generic16:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n",generic17:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n",generic18:"{{{attention}}}\n{{{house}}}\n{{{house_number}}}, {{{road}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} || {{{state}}} {{/first}}\n{{{country}}}\n",generic19:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}} {{{postcode}}}\n{{{country}}}\n",generic20:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}} {{{postcode}}}\n{{{country}}}\n",generic21:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{state}}} {{/first}}\n{{{country}}}\n",generic22:"{{{attention}}}\n{{{house}}}\n{{{house_number}}}, {{{road}}}\n{{{postcode}}} {{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{state}}} {{/first}}\n{{{country}}}\n",generic23:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{{quarter}}}\n{{#first}} {{{village}}} || {{{town}}} || {{{city}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} {{/first}}\n{{{postcode}}}\n{{#first}} {{{country}}} || {{{state}}} {{/first}}\n",fallback1:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{{place}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} || {{{island}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} {{/first}}\n{{#first}} {{{county}}} || {{{state_district}}} || {{{state}}} || {{{region}}} || {{{island}}}, {{{archipelago}}} {{/first}}\n{{{country}}}\n",fallback2:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{{place}}}\n{{#first}} {{{suburb}}} || {{{village}}} || {{{hamlet}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{municipality}}} || {{{county}}} || {{{island}}} || {{{state_district}}} {{/first}}, {{#first}} {{{state}}} || {{{state_code}}} {{/first}}\n{{{country}}}\n",fallback3:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{{place}}}\n{{#first}} {{{suburb}}} || {{{island}}} {{/first}}\n{{#first}} {{{village}}} || {{{hamlet}}} || {{{municipality}}} {{/first}}\n{{#first}} {{{town}}} || {{{city}}}{{/first}}\n{{{county}}}\n{{#first}} {{{state}}} || {{{state_code}}} {{/first}}\n{{{country}}}\n",fallback4:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{{place}}}\n{{{suburb}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} {{/first}}\n{{#first}} {{{state}}} || {{{county}}} {{/first}}\n{{{country}}}\n",default:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n",fallback_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{{place}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} || {{{island}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} {{/first}}\n{{#first}} {{{county}}} || {{{state_district}}} || {{{state}}} || {{{region}}} || {{{island}}}, {{{archipelago}}} {{/first}}\n{{{country}}}\n"},AD:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{{place}}}\n{{{postcode}}} {{#first}} {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{city}}} || {{{municipality}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},AE:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}}\n{{#first}} {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},AF:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},AG:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},AI:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}}\n{{{postcode}}} {{{country}}}\n"},AL:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{city}}} || {{{town}}} || {{{city_district}}} || {{{municipality}}} || {{{state_district}}} || {{{village}}} || {{{hamlet}}} {{/first}}\n{{{country}}}\n",postformat_replace:[["\n(\\d{4}) ([^,]*)\n","\n$1-$2\n"]]},AM:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{{postcode}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}}\n{{#first}} {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},AO:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{state}}}{{/first}}, {{{postcode}}}\n{{{country}}}\n"},AQ:{address_template:"{{{house}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}}\n{{#first}} {{{country}}} || {{{continent}}} {{/first}}\n",fallback_template:"{{{house}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}}\n{{#first}} {{{country}}} || {{{continent}}} {{/first}}\n"},AR:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{state_district}}} {{/first}}\n{{{postcode}}} {{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{state}}} {{/first}}\n{{{country}}}\n",replace:[["^Autonomous City of ",""]],postformat_replace:[["\n(\\w\\d{4})(\\w{3}) ","\n$1 $2 "]]},AS:{use_country:"US",change_country:"United States of America",add_component:"state=American Samoa"},AT:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n"},AU:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{city}}} || {{{town}}} || {{{state_district}}} || {{{village}}} || {{{hamlet}}} || {{{region}}} {{/first}} {{#first}} {{{state_code}}} || {{{state}}} {{/first}} {{{postcode}}}\n{{{country}}}\n"},AW:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},AX:{use_country:"FI",change_country:"Åland, Finland"},AZ:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{{place}}}\n{{{postcode}}} {{#first}} {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{city}}} || {{{municipality}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},BA:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n"},BB:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},BD:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{state_district}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}} - {{{postcode}}}\n{{{country}}}\n"},BE:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n"},BF:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} {{/first}}\n{{{county}}}\n{{{state}}}\n{{{country}}}\n"},BG:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}} {{{postcode}}}\n{{{country}}}\n"},BH:{address_template:"{{{attention}}}\n{{{house}}}, {{{quarter}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{village}}} || {{{town}}} || {{{city}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} {{/first}} {{{postcode}}}\n{{#first}} {{{country}}} || {{{state}}} {{/first}}\n"},BI:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},BJ:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}}, {{{road}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},BL:{use_country:"FR",change_country:"Saint-Barthélemy, France"},BM:{address_template:"{{{attention}}}\n{{{house}}}, {{{quarter}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{village}}} || {{{town}}} || {{{city}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} {{/first}} {{{postcode}}}\n{{#first}} {{{country}}} || {{{state}}} {{/first}}\n"},BN:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}}, {{{road}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} {{/first}}\n{{#first}} {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}} {{{postcode}}}\n{{{country}}}\n"},BO:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n",replace:[["^Municipio Nuestra Senora de ",""]]},BQ:{use_country:"NL",change_country:"Caribbean Netherlands"},BR:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}{{#first}}, {{{quarter}}}{{/first}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{village}}} || {{{hamlet}}}{{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{state_district}}} {{/first}} - {{#first}} {{{state_code}}} || {{{state}}} {{/first}}\n{{{postcode}}}\n{{{country}}}\n",postformat_replace:[["\\b(\\d{5})(\\d{3})\\b","$1-$2"]]},BS:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} {{/first}}\n{{{county}}}\n{{{country}}}\n"},BT:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}, {{{house}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{state}}} {{/first}} {{{postcode}}}\n{{{country}}}\n"},BV:{use_country:"NO",change_country:"Bouvet Island, Norway"},BW:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}}\n{{{country}}}\n"},BY:{address_template:"{{{country}}}\n{{{state}}}\n{{{postcode}}} {{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}}\n{{{suburb}}}\n{{{road}}}, {{{house_number}}}\n{{{house}}}\n{{{attention}}}\n"},BZ:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},CA:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{house_number}}} {{{road}}} || {{{suburb}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{county}}} || {{{state_district}}} {{/first}}, {{#first}} {{{state_code}}} || {{{state}}} {{/first}} {{{postcode}}}\n{{{country}}}\n",fallback_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{house_number}}} {{{road}}} || {{{suburb}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{county}}} || {{{state_district}}} || {{{region}}}{{/first}}, {{#first}} {{{state}}} || {{{state_code}}} {{/first}} {{{postcode}}}\n{{{country}}}\n",postformat_replace:[[" ([A-Za-z]{2}) ([A-Za-z]\\d[A-Za-z])(\\d[A-Za-z]\\d)\n"," $1 $2 $3\n"]]},CA_en:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{house_number}}} {{{road}}} || {{{suburb}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{county}}} || {{{state_district}}} {{/first}}, {{#first}} {{{state_code}}} || {{{state}}} {{/first}} {{{postcode}}}\n{{{country}}}\n",fallback_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{house_number}}} {{{road}}} || {{{suburb}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{county}}} || {{{state_district}}} {{/first}}, {{#first}} {{{state_code}}} || {{{state}}} {{/first}} {{{postcode}}}\n{{{country}}}\n",postformat_replace:[[" ([A-Za-z]{2}) ([A-Za-z]\\d[A-Za-z])(\\d[A-Za-z]\\d)\n"," $1 $2 $3\n"]]},CA_fr:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{house_number}}}, {{{road}}} || {{{suburb}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{county}}} || {{{state_district}}} {{/first}} {{#first}} ({{{state_code}}}) || {{{state}}} {{/first}} {{{postcode}}}\n{{{country}}}\n",postformat_replace:[[" ([A-Za-z]{2}) ([A-Za-z]\\d[A-Za-z])(\\d[A-Za-z]\\d)\n"," $1 $2 $3\n"]]},CC:{use_country:"AU",change_country:"Australia"},CD:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}}, {{{road}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},CF:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},CG:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}}, {{{road}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},CH:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{municipality}}} || {{{village}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{country}}}\n",replace:[["Verwaltungskreis",""],["Verwaltungsregion",""],[" administrative district",""],[" administrative region",""]]},CI:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},CK:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},CL:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{region}}}\n{{{country}}}\n"},CM:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},CN:{address_template:"{{{postcode}}} {{{country}}}\n{{#first}} {{{state_code}}} || {{{state}}} || {{{state_district}}} || {{{region}}}{{/first}}\n{{{county}}}\n{{#first}}{{{city}}} || {{{town}}} || {{{municipality}}}|| {{{village}}}|| {{{hamlet}}}{{/first}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}\n{{{road}}} {{{house_number}}}\n{{{house}}}\n{{{attention}}}\n"},CN_en:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}\n{{{county}}}\n{{#first}}{{{city}}} || {{{town}}} || {{{municipality}}}|| {{{village}}}|| {{{hamlet}}}{{/first}}\n{{#first}} {{{state_code}}} || {{{state}}} || {{{state_district}}} || {{{region}}}{{/first}}\n{{{country}}} {{{postcode}}}\n"},CN_zh:{address_template:"{{{postcode}}} {{{country}}}\n{{#first}} {{{state_code}}} || {{{state}}} || {{{state_district}}} || {{{region}}}{{/first}}\n{{{county}}}\n{{#first}}{{{city}}} || {{{town}}} || {{{municipality}}}|| {{{village}}}|| {{{hamlet}}}{{/first}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}\n{{{road}}} {{{house_number}}}\n{{{house}}}\n{{{attention}}}\n"},CO:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}\n{{{postcode}}} {{#first}} {{{city}}} || {{{town}}} || {{{state_district}}} || {{{village}}} || {{{hamlet}}} {{/first}}, {{#first}} {{{state_code}}} || {{{state}}} {{/first}}\n{{{country}}}\n",postformat_replace:[["Localidad "," "],["(Bogot[áa]),? (Distrito Capital|Capital District)","$1"],["(Bogot[áa]), Bogot[áa]","$1"]]},CR:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{{state}}}, {{#first}} {{{city}}} || {{{town}}} || {{{state_district}}} || {{{village}}} || {{{hamlet}}} {{/first}}, {{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}\n{{{postcode}}} {{{country}}}\n"},CU:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{state}}}{{/first}}, {{{postcode}}}\n{{{country}}}\n"},CV:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n",postformat_replace:[["\n(\\d{4}) ([^,]*)\n","\n$1-$2\n"]]},CW:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},CX:{use_country:"AU",add_component:"state=Christmas Island",change_country:"Australia"},CY:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n"},CZ:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n",replace:[["^Capital City of ",""]],postformat_replace:[["\n(\\d{3})(\\d{2}) ","\n$1 $2 "]]},DE:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{village}}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n",fallback_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}\n{{#first}} {{{village}}} || {{{town}}} || {{{city}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} {{/first}}\n{{#first}} {{{state}}} || {{{state_district}}} {{/first}}\n{{{country}}}\n",replace:[["^Stadtteil ",""],["^Stadtbezirk (\\d+)",""],["^Ortsbeirat (\\d+) :",""],["^Gemeinde ",""],["^Gemeindeverwaltungsverband ",""],["^Landkreis ",""],["^Kreis ",""],["^Grenze ",""],["^Free State of ",""],["^Freistaat ",""],["^Regierungsbezirk ",""],["^Stadtgebiet ",""],["^Gemeindefreies Gebiet ",""],["city=Alt-Berlin","Berlin"]],postformat_replace:[["Berlin\nBerlin","Berlin"],["Bremen\nBremen","Bremen"],["Hamburg\nHamburg","Hamburg"]]},DJ:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n",replace:[["city=Djibouti","Djibouti-Ville"]]},DK:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n",replace:[["state=Capital Region of Denmark","Capital Region"],["^Region of ",""]]},DM:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},DO:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}}, {{{state}}}\n{{{postcode}}}\n{{{country}}}\n",postformat_replace:[[", Distrito Nacional",", DN"]]},DZ:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{{place}}}\n{{{postcode}}} {{#first}} {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{city}}} || {{{municipality}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},EC:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{{postcode}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{state_district}}} || {{{village}}} || {{{hamlet}}} {{/first}}\n{{{country}}}\n"},EG:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}}\n{{{postcode}}}\n{{{country}}}\n"},EE:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n"},EH:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},ER:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},ES:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}}, {{{house_number}}}\n{{{postcode}}} {{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{state}}} || {{{county}}} {{/first}}\n{{{country}}}\n",fallback_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{{place}}}\n{{{suburb}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} {{/first}}\n{{#first}} {{{state}}} || {{{county}}} {{/first}}\n{{{country}}}\n",replace:[["Autonomous Community of the ",""],["Autonomous Community of ",""],["^Community of ",""]]},ET:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n"},FI:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n"},FJ:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},FK:{use_country:"GB",change_country:"Falkland Islands, United Kingdom"},FM:{use_country:"US",change_country:"United States of America",add_component:"state=Micronesia"},FO:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n",postformat_replace:[["Territorial waters of Faroe Islands","Faroe Islands"]]},FR:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{{place}}}\n{{{postcode}}} {{#first}} {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{city}}} || {{{municipality}}} || {{{state}}} {{/first}}\n{{{country}}}\n",replace:[["Polynésie française, Îles du Vent \\(eaux territoriales\\)","Polynésie française"],["France, Mayotte \\(eaux territoriales\\)","Mayotte, France"],["France, La Réunion \\(eaux territoriales\\)","La Réunion, France"],["Grande Terre et récifs d'Entrecasteaux",""],["France, Nouvelle-Calédonie","Nouvelle-Calédonie, France"],["\\(eaux territoriales\\)",""],["state= \\(France\\)$",""],["Paris (\\d+)(\\w+) Arrondissement$","Paris"]]},GA:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} || {{{village}}} || {{{hamlet}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},GB:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{{quarter}}}\n{{#first}} {{{village}}} || {{{town}}} || {{{city}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} {{/first}}\n{{{postcode}}}\n{{#first}} {{{country}}} || {{{state}}} {{/first}}\n",fallback_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{{place}}}\n{{#first}} {{{suburb}}} || {{{island}}} {{/first}}\n{{#first}} {{{village}}} || {{{hamlet}}} || {{{municipality}}} {{/first}}\n{{#first}} {{{town}}} || {{{city}}}{{/first}}\n{{{county}}}\n{{#first}} {{{state}}} || {{{state_code}}} {{/first}}\n{{{country}}}\n",replace:[["village= CP$",""],["^Borough of ",""],["^County( of)? ",""],["^Parish of ",""],["^Greater London","London"],["^London Borough of ",""],["Royal Borough of ",""],["County Borough of ",""]],postformat_replace:[["London, London","London"],["London, Greater London","London"],["City of Westminster","London"],["City of Nottingham","Nottingham"],[", United Kingdom$","\nUnited Kingdom"],["London\nEngland\nUnited Kingdom","London\nUnited Kingdom"]]},GD:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},GE:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n"},GF:{use_country:"FR",change_country:"France"},GG:{use_country:"GB",change_country:"Guernsey, Channel Islands"},GH:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},GI:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},GL:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n"},GM:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},GN:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{{postcode}}} {{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{state_district}}} {{/first}}\n{{{state}}}\n{{{country}}}\n"},GP:{use_country:"FR",change_country:"Guadeloupe, France"},GQ:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},GR:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n",replace:[["Municipal Unit of ",""],["Regional Unit of ",""]],postformat_replace:[["\n(\\d{3})(\\d{2}) ","\n$1 $2 "]]},GS:{use_country:"GB",change_country:"United Kingdom",add_component:"county=South Georgia"},GT:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{{postcode}}}-{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{state}}} {{/first}}\n{{{country}}}\n",postformat_replace:[["\n(\\d{5})- ","\n$1-"],["\n -","\n"]]},GU:{use_country:"US",change_country:"United States of America",add_component:"state=Guam"},GW:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n"},GY:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} || {{{state_district}}} || {{{state}}} {{/first}}\n{{{country}}}\n"},HK:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{{state_district}}}\n{{#first}} {{{state}}} || {{{country}}} {{/first}}\n"},HK_en:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{{state_district}}}\n{{{state}}}\n{{{country}}}\n"},HK_zh:{address_template:"{{{country}}}\n{{{state}}}\n{{{state_district}}}\n{{{road}}}\n{{{house_number}}}\n{{{house}}}\n{{{attention}}}\n"},HM:{use_country:"AU",change_country:"Australia",add_component:"state=Heard Island and McDonald Islands"},HN:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n"},HR:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n"},HT:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n",postformat_replace:[[" Commune de"," "]]},HU:{address_template:"{{{attention}}}\n{{{postcode}}} {{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}}\n{{{road}}} {{{house_number}}}.\n{{{country}}}\n"},ID:{address_template:"{{{attention}}}\n{{{house}}}\n{{{road}}} {{{house_number}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}} {{{postcode}}}\n{{{state}}}\n{{{country}}}\n"},IE:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{{road}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} {{/first}}\n{{{county}}}\n{{{postcode}}}\n{{{country}}}\n",replace:[[" City$",""],["The Municipal District of ",""],["The Metropolitan District of ",""],["Municipal District",""],["Electoral Division",""]],postformat_replace:[["Dublin\nCounty Dublin","Dublin"],["Dublin\nLeinster","Dublin"],["Galway\nCounty Galway","Galway"],["Kilkenny\nCounty Kilkenny","Kilkenny"],["Limerick\nCounty Limerick","Limerick"],["Tipperary\nCounty Tipperary","Tipperary"],["\n(([AC-FHKNPRTV-Y][0-9]{2}|D6W))[ -]?([0-9AC-FHKNPRTV-Y]{4})","\n$1 $3"]]},IL:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n"},IM:{use_country:"GB"},IN:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}}, {{{road}}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{state_district}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}} - {{{postcode}}}\n{{{state}}}\n{{{country}}}\n",postformat_replace:[[" -\n","\n"]]},IO:{use_country:"GB",change_country:"British Indian Ocean Territory, United Kingdom"},IQ:{address_template:"{{{attention}}}\n{{{house}}}\n{{{house_number}}} {{#first}} {{{city_district}}} || {{{neighbourhood}}} || {{{suburb}}} {{/first}}\n{{{road}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{state}}} || {{{village}}} || {{{hamlet}}} {{/first}}\n{{{postcode}}}\n{{{country}}}\n"},IR:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}\n{{{road}}}\n{{{house_number}}}\n{{#first}}{{{province}}} || {{{state}}} || {{{state_district}}}{{/first}}\n{{{postcode}}}\n{{{country}}}\n"},IR_en:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}\n{{{road}}}\n{{{house_number}}}\n{{#first}}{{{state}}} || {{{state_district}}}{{/first}}\n{{{postcode}}}\n{{{country}}}\n"},IR_fa:{address_template:"{{{country}}}\n{{{state}}}\n{{{state_district}}}\n{{#first}} {{{state}}} || {{{province}}} {{/first}}\n{{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}}\n{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}\n{{{road}}}\n{{{house_number}}}\n{{{house}}}\n{{{attention}}}\n{{{postcode}}}\n"},IS:{address_template:"{{{attention}}}\n{{{house}}}\n{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}\n{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}\n{{{archipelago}}}\n{{{country}}}\n"},IT:{address_temp