react-intl 4.2.0 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e=e||self).ReactIntl={},e.React)}(this,function(e,g){"use strict";function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function l(e,t,r){return(l=s()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&c(o,r.prototype),o}).apply(null,arguments)}function t(e){var r="function"==typeof Map?new Map:void 0;return(t=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return l(e,arguments,a(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),c(t,e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(n){return function(){var e,t=a(n);if(s()){var r=a(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?f(e):t}(this,e)}}function y(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Xt,r;function T(e){return e.type===Xt.literal}function E(e){return e.type===Xt.select}function S(e){return e.type===Xt.plural}(r=Xt=Xt||{})[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag";var d,h,v=(d=function(e,t){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Yt=function(){return(Yt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},er=(h=Error,v(b,h),b.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+r(e)})}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+r(e)})}function a(e){switch(e.type){case"literal":return'"'+n(e.text)+'"';case"class":var t=e.parts.map(function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)});return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,r,n=e.map(a);if(n.sort(),0<n.length){for(r=t=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+((i=t)?'"'+n(i)+'"':"end of input")+" found.";var i},b);function b(e,t,r,n){var o=h.call(this)||this;return o.message=e,o.expected=t,o.found=r,o.location=n,o.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,b),o}var w=function(f,e){e=void 0!==e?e:{};var t,m={},r={start:Ft},n=Ft,o=function(e){return e.join("")},a=function(e){return Yt({type:Xt.literal,value:e},Qt())},i="#",u=yt("#",!1),c=function(){return Yt({type:Xt.pound},Qt())},s=bt("tagElement"),l="<",p=yt("<",!1),d="/>",h=yt("/>",!1),g=function(e){return Yt({type:Xt.literal,value:e.join("")},Qt())},y=function(e,t,r){return e!==r&&gt('Mismatch tag "'+e+'" !== "'+r+'"',ht()),Yt({type:Xt.tag,value:e,children:t},Qt())},v=function(){return Wt.push("openingTag"),!0},b=">",w=yt(">",!1),A=function(e){return Wt.pop(),!0},O=function(e){return e},F="</",R=yt("</",!1),T=function(){return Wt.push("closingTag"),!0},E=bt("argumentElement"),S="{",C=yt("{",!1),j="}",D=yt("}",!1),P=function(e){return Yt({type:Xt.argument,value:e},Qt())},x=bt("numberSkeletonId"),I=/^['\/{}]/,N=vt(["'","/","{","}"],!1,!1),M={type:"any"},k=bt("numberSkeletonTokenOption"),_="/",L=yt("/",!1),$=function(e){return e},Z=bt("numberSkeletonToken"),U=function(e,t){return{stem:e,options:t}},z=function(e){return Yt({type:0,tokens:e},Qt())},V="::",B=yt("::",!1),G=function(e){return e},q=function(){return Wt.push("numberArgStyle"),!0},H=function(e){return Wt.pop(),e.replace(/\s*$/,"")},W=",",J=yt(",",!1),K="number",Q=yt("number",!1),X=function(e,t,r){return Yt({type:"number"===t?Xt.number:"date"===t?Xt.date:Xt.time,style:r&&r[2],value:e},Qt())},Y="'",ee=yt("'",!1),te=/^[^']/,re=vt(["'"],!0,!1),ne=/^[^a-zA-Z'{}]/,oe=vt([["a","z"],["A","Z"],"'","{","}"],!0,!1),ae=/^[a-zA-Z]/,ie=vt([["a","z"],["A","Z"]],!1,!1),ue=function(e){return Yt({type:1,pattern:e},Qt())},ce=function(){return Wt.push("dateOrTimeArgStyle"),!0},se="date",le=yt("date",!1),fe="time",me=yt("time",!1),pe="plural",de=yt("plural",!1),he="selectordinal",ge=yt("selectordinal",!1),ye="offset:",ve=yt("offset:",!1),be=function(e,t,r,n){return Yt({type:Xt.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:r?r[2]:0,options:n.reduce(function(e,t){var r=t.id,n=t.value,o=t.location;return r in e&&gt('Duplicate option "'+r+'" in plural element: "'+dt()+'"',ht()),e[r]={value:n,location:o},e},{})},Qt())},we="select",Ae=yt("select",!1),Oe=function(e,t){return Yt({type:Xt.select,value:e,options:t.reduce(function(e,t){var r=t.id,n=t.value,o=t.location;return r in e&&gt('Duplicate option "'+r+'" in select element: "'+dt()+'"',ht()),e[r]={value:n,location:o},e},{})},Qt())},Fe="=",Re=yt("=",!1),Te=function(e){return Wt.push("select"),!0},Ee=function(e,t){return Wt.pop(),Yt({id:e,value:t},Qt())},Se=function(e){return Wt.push("plural"),!0},Ce=function(e,t){return Wt.pop(),Yt({id:e,value:t},Qt())},je=bt("whitespace"),De=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Pe=vt([["\t","\r"]," ","…"," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),xe=bt("syntax pattern"),Ie=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,Ne=vt([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←","⑟"],["─","❵"],["➔","⯿"],["⸀","⹿"],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),Me=bt("optional whitespace"),ke=bt("number"),_e="-",Le=yt("-",!1),$e=function(e,t){return t?e?-t:t:0},Ze=bt("double apostrophes"),Ue="''",ze=yt("''",!1),Ve=function(){return"'"},Be=function(e,t){return e+t.replace("''","'")},Ge=function(e){return!("<"===e||"{"===e||Kt()&&"#"===e||Jt()&&"}"===e||Jt()&&">"===e)},qe="\n",He=yt("\n",!1),We=function(e){return"<"===e||">"===e||"{"===e||"}"===e||Kt()&&"#"===e},Je=bt("argNameOrNumber"),Ke=bt("validTag"),Qe=bt("argNumber"),Xe="0",Ye=yt("0",!1),et=function(){return 0},tt=/^[1-9]/,rt=vt([["1","9"]],!1,!1),nt=/^[0-9]/,ot=vt([["0","9"]],!1,!1),at=function(e){return parseInt(e.join(""),10)},it=bt("argName"),ut=bt("tagName"),ct=0,st=0,lt=[{line:1,column:1}],ft=0,mt=[],pt=0;if(void 0!==e.startRule){if(!(e.startRule in r))throw new Error("Can't start parsing from rule \""+e.startRule+'".');n=r[e.startRule]}function dt(){return f.substring(st,ct)}function ht(){return At(st,ct)}function gt(e,t){throw function(e,t){return new er(e,[],"",t)}(e,t=void 0!==t?t:At(st,ct))}function yt(e,t){return{type:"literal",text:e,ignoreCase:t}}function vt(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function bt(e){return{type:"other",description:e}}function wt(e){var t,r=lt[e];if(r)return r;for(t=e-1;!lt[t];)t--;for(r={line:(r=lt[t]).line,column:r.column};t<e;)10===f.charCodeAt(t)?(r.line++,r.column=1):r.column++,t++;return lt[e]=r}function At(e,t){var r=wt(e),n=wt(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function Ot(e){ct<ft||(ft<ct&&(ft=ct,mt=[]),mt.push(e))}function Ft(){return Rt()}function Rt(){var e,t;for(e=[],t=Tt();t!==m;)e.push(t),t=Tt();return e}function Tt(){var e;return(e=function(){var e,t;e=ct,(t=Et())!==m&&(st=e,t=a(t));return e=t}())===m&&(e=function(){var e,t,r,n,o;pt++,e=ct,123===f.charCodeAt(ct)?(t=S,ct++):(t=m,0===pt&&Ot(C));e=t!==m?(r=kt(),r!==m?(n=Ut())!==m?kt()!==m?(125===f.charCodeAt(ct)?(o=j,ct++):(o=m,0===pt&&Ot(D)),o!==m?(st=e,t=P(n)):(ct=e,m)):(ct=e,m):(ct=e,m):(ct=e,m)):(ct=e,m);pt--,e===m&&(t=m,0===pt&&Ot(E));return e}())===m&&(e=function(){var e;(e=function(){var e,t,r,n,o,a,i,u,c,s;e=ct,123===f.charCodeAt(ct)?(t=S,ct++):(t=m,0===pt&&Ot(C));e=t!==m?(r=kt(),r!==m?(n=Ut())!==m?kt()!==m?(44===f.charCodeAt(ct)?(o=W,ct++):(o=m,0===pt&&Ot(J)),o!==m?kt()!==m?(f.substr(ct,6)===K?(a=K,ct+=6):(a=m,0===pt&&Ot(Q)),a!==m?kt()!==m?(i=ct,44===f.charCodeAt(ct)?(u=W,ct++):(u=m,0===pt&&Ot(J)),(i=u!==m?(c=kt())!==m?(s=function(){var e,t,r;e=ct,f.substr(ct,2)===V?(t=V,ct+=2):(t=m,0===pt&&Ot(B));e=t!==m?(r=function(){var e,t,r;if(e=ct,t=[],(r=jt())!==m)for(;r!==m;)t.push(r),r=jt();else t=m;t!==m&&(st=e,t=z(t));return e=t}(),r!==m?(st=e,t=G(r)):(ct=e,m)):(ct=e,m);e===m&&(st=e=ct,t=q(),e=(t=t?void 0:m)!==m?(r=Et())!==m?(st=e,t=H(r)):(ct=e,m):(ct=e,m));return e}())!==m?u=[u,c,s]:(ct=i,m):(ct=i,m):(ct=i,m))===m&&(i=null),i!==m?(u=kt())!==m?(125===f.charCodeAt(ct)?(c=j,ct++):(c=m,0===pt&&Ot(D)),c!==m?(st=e,t=X(n,a,i)):(ct=e,m)):(ct=e,m):(ct=e,m)):(ct=e,m):(ct=e,m)):(ct=e,m):(ct=e,m)):(ct=e,m):(ct=e,m):(ct=e,m)):(ct=e,m);return e}())===m&&(e=function(){var e,t,r,n,o,a,i,u,c,s;e=ct,123===f.charCodeAt(ct)?(t=S,ct++):(t=m,0===pt&&Ot(C));e=t!==m?(r=kt(),r!==m?(n=Ut())!==m?kt()!==m?(44===f.charCodeAt(ct)?(o=W,ct++):(o=m,0===pt&&Ot(J)),o!==m?kt()!==m?(f.substr(ct,4)===se?(a=se,ct+=4):(a=m,0===pt&&Ot(le)),a===m&&(f.substr(ct,4)===fe?(a=fe,ct+=4):(a=m,0===pt&&Ot(me))),a!==m?kt()!==m?(i=ct,44===f.charCodeAt(ct)?(u=W,ct++):(u=m,0===pt&&Ot(J)),(i=u!==m?(c=kt())!==m?(s=function(){var e,t,r;e=ct,f.substr(ct,2)===V?(t=V,ct+=2):(t=m,0===pt&&Ot(B));e=t!==m?(r=function(){var e,t,r,n;t=e=ct,r=[],(n=Dt())===m&&(n=Pt());if(n!==m)for(;n!==m;)r.push(n),(n=Dt())===m&&(n=Pt());else r=m;t=r!==m?f.substring(t,ct):r;t!==m&&(st=e,t=ue(t));return e=t}(),r!==m?(st=e,t=G(r)):(ct=e,m)):(ct=e,m);e===m&&(st=e=ct,t=ce(),e=(t=t?void 0:m)!==m?(r=Et())!==m?(st=e,t=H(r)):(ct=e,m):(ct=e,m));return e}())!==m?u=[u,c,s]:(ct=i,m):(ct=i,m):(ct=i,m))===m&&(i=null),i!==m?(u=kt())!==m?(125===f.charCodeAt(ct)?(c=j,ct++):(c=m,0===pt&&Ot(D)),c!==m?(st=e,t=X(n,a,i)):(ct=e,m)):(ct=e,m):(ct=e,m)):(ct=e,m):(ct=e,m)):(ct=e,m):(ct=e,m)):(ct=e,m):(ct=e,m):(ct=e,m)):(ct=e,m);return e}());return e}())===m&&(e=function(){var e,t,r,n,o,a,i,u,c,s,l;e=ct,123===f.charCodeAt(ct)?(t=S,ct++):(t=m,0===pt&&Ot(C));if(t!==m)if(kt()!==m)if((r=Ut())!==m)if(kt()!==m)if(44===f.charCodeAt(ct)?(n=W,ct++):(n=m,0===pt&&Ot(J)),n!==m)if(kt()!==m)if(f.substr(ct,6)===pe?(o=pe,ct+=6):(o=m,0===pt&&Ot(de)),o===m&&(f.substr(ct,13)===he?(o=he,ct+=13):(o=m,0===pt&&Ot(ge))),o!==m)if(kt()!==m)if(44===f.charCodeAt(ct)?(a=W,ct++):(a=m,0===pt&&Ot(J)),a!==m)if(kt()!==m)if(i=ct,f.substr(ct,7)===ye?(u=ye,ct+=7):(u=m,0===pt&&Ot(ve)),(i=u!==m?(c=kt())!==m?(s=_t())!==m?u=[u,c,s]:(ct=i,m):(ct=i,m):(ct=i,m))===m&&(i=null),i!==m)if((u=kt())!==m){if(c=[],(s=It())!==m)for(;s!==m;)c.push(s),s=It();else c=m;e=c!==m?(s=kt())!==m?(125===f.charCodeAt(ct)?(l=j,ct++):(l=m,0===pt&&Ot(D)),l!==m?(st=e,t=be(r,o,i,c)):(ct=e,m)):(ct=e,m):(ct=e,m)}else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;return e}())===m&&(e=function(){var e,t,r,n,o,a,i,u,c;e=ct,123===f.charCodeAt(ct)?(t=S,ct++):(t=m,0===pt&&Ot(C));if(t!==m)if(kt()!==m)if((r=Ut())!==m)if(kt()!==m)if(44===f.charCodeAt(ct)?(n=W,ct++):(n=m,0===pt&&Ot(J)),n!==m)if(kt()!==m)if(f.substr(ct,6)===we?(o=we,ct+=6):(o=m,0===pt&&Ot(Ae)),o!==m)if(kt()!==m)if(44===f.charCodeAt(ct)?(a=W,ct++):(a=m,0===pt&&Ot(J)),a!==m)if(kt()!==m){if(i=[],(u=xt())!==m)for(;u!==m;)i.push(u),u=xt();else i=m;e=i!==m?(u=kt())!==m?(125===f.charCodeAt(ct)?(c=j,ct++):(c=m,0===pt&&Ot(D)),c!==m?(st=e,t=Oe(r,i)):(ct=e,m)):(ct=e,m):(ct=e,m)}else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;return e}())===m&&(e=function(){var e,t,r,n,o,a;pt++,t=e=ct,60===f.charCodeAt(ct)?(r=l,ct++):(r=m,0===pt&&Ot(p));t=r!==m?(n=zt(),n!==m?(o=kt())!==m?(f.substr(ct,2)===d?(a=d,ct+=2):(a=m,0===pt&&Ot(h)),a!==m?r=[r,n,o,a]:(ct=t,m)):(ct=t,m):(ct=t,m)):(ct=t,m);t!==m&&(st=e,t=g(t));(e=t)===m&&(e=ct,t=function(){var e,t,r,n,o;e=ct,60===f.charCodeAt(ct)?(t=l,ct++):(t=m,0===pt&&Ot(p));e=t!==m?(st=ct,r=v(),(r=r?void 0:m)!==m?(n=zt())!==m?(62===f.charCodeAt(ct)?(o=b,ct++):(o=m,0===pt&&Ot(w)),o!==m?(st=ct,(A()?void 0:m)!==m?(st=e,t=O(n)):(ct=e,m)):(ct=e,m)):(ct=e,m):(ct=e,m)):(ct=e,m);return e}(),e=t!==m?(r=Rt())!==m?(n=function(){var e,t,r,n,o;e=ct,f.substr(ct,2)===F?(t=F,ct+=2):(t=m,0===pt&&Ot(R));e=t!==m?(st=ct,r=T(),(r=r?void 0:m)!==m?(n=zt())!==m?(62===f.charCodeAt(ct)?(o=b,ct++):(o=m,0===pt&&Ot(w)),o!==m?(st=ct,(A()?void 0:m)!==m?(st=e,t=O(n)):(ct=e,m)):(ct=e,m)):(ct=e,m):(ct=e,m)):(ct=e,m);return e}())!==m?(st=e,t=y(t,r,n)):(ct=e,m):(ct=e,m):(ct=e,m));pt--,e===m&&(t=m,0===pt&&Ot(s));return e}())===m&&(e=function(){var e,t;e=ct,35===f.charCodeAt(ct)?(t=i,ct++):(t=m,0===pt&&Ot(u));t!==m&&(st=e,t=c());return e=t}()),e}function Et(){var e,t,r;if(e=ct,t=[],(r=Lt())===m&&(r=$t())===m&&(r=Zt()),r!==m)for(;r!==m;)t.push(r),(r=Lt())===m&&(r=$t())===m&&(r=Zt());else t=m;return t!==m&&(st=e,t=o(t)),e=t}function St(){var e,t,r,n,o;if(pt++,t=[],n=r=e=ct,pt++,(o=Nt())===m&&(I.test(f.charAt(ct))?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(N))),pt--,(r=(n=o===m?void 0:(ct=n,m))!==m?(f.length>ct?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(M)),o!==m?n=[n,o]:(ct=r,m)):(ct=r,m))!==m)for(;r!==m;)t.push(r),n=r=ct,pt++,(o=Nt())===m&&(I.test(f.charAt(ct))?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(N))),pt--,r=(n=o===m?void 0:(ct=n,m))!==m?(f.length>ct?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(M)),o!==m?n=[n,o]:(ct=r,m)):(ct=r,m);else t=m;return e=t!==m?f.substring(e,ct):t,pt--,e===m&&(t=m,0===pt&&Ot(x)),e}function Ct(){var e,t,r;return pt++,e=ct,47===f.charCodeAt(ct)?(t=_,ct++):(t=m,0===pt&&Ot(L)),e=t!==m&&(r=St())!==m?(st=e,t=$(r)):(ct=e,m),pt--,e===m&&(t=m,0===pt&&Ot(k)),e}function jt(){var e,t,r,n;if(pt++,e=ct,kt()!==m)if((t=St())!==m){for(r=[],n=Ct();n!==m;)r.push(n),n=Ct();e=r!==m?(st=e,U(t,r)):(ct=e,m)}else ct=e,e=m;else ct=e,e=m;return pt--,e===m&&(m,0===pt&&Ot(Z)),e}function Dt(){var e,t,r,n;if(e=ct,39===f.charCodeAt(ct)?(t=Y,ct++):(t=m,0===pt&&Ot(ee)),t!==m){if(r=[],(n=Lt())===m&&(te.test(f.charAt(ct))?(n=f.charAt(ct),ct++):(n=m,0===pt&&Ot(re))),n!==m)for(;n!==m;)r.push(n),(n=Lt())===m&&(te.test(f.charAt(ct))?(n=f.charAt(ct),ct++):(n=m,0===pt&&Ot(re)));else r=m;e=r!==m?(39===f.charCodeAt(ct)?(n=Y,ct++):(n=m,0===pt&&Ot(ee)),n!==m?t=[t,r,n]:(ct=e,m)):(ct=e,m)}else ct=e,e=m;if(e===m)if(e=[],(t=Lt())===m&&(ne.test(f.charAt(ct))?(t=f.charAt(ct),ct++):(t=m,0===pt&&Ot(oe))),t!==m)for(;t!==m;)e.push(t),(t=Lt())===m&&(ne.test(f.charAt(ct))?(t=f.charAt(ct),ct++):(t=m,0===pt&&Ot(oe)));else e=m;return e}function Pt(){var e,t;if(e=[],ae.test(f.charAt(ct))?(t=f.charAt(ct),ct++):(t=m,0===pt&&Ot(ie)),t!==m)for(;t!==m;)e.push(t),ae.test(f.charAt(ct))?(t=f.charAt(ct),ct++):(t=m,0===pt&&Ot(ie));else e=m;return e}function xt(){var e,t,r,n,o;return e=ct,e=kt()!==m&&(t=Bt())!==m&&kt()!==m?(123===f.charCodeAt(ct)?(r=S,ct++):(r=m,0===pt&&Ot(C)),r!==m?(st=ct,(Te()?void 0:m)!==m&&(n=Rt())!==m?(125===f.charCodeAt(ct)?(o=j,ct++):(o=m,0===pt&&Ot(D)),o!==m?(st=e,Ee(t,n)):(ct=e,m)):(ct=e,m)):(ct=e,m)):(ct=e,m)}function It(){var e,t,r,n,o;return e=ct,e=kt()!==m&&(t=function(){var e,t,r,n;return t=e=ct,61===f.charCodeAt(ct)?(r=Fe,ct++):(r=m,0===pt&&Ot(Re)),(e=(t=r!==m&&(n=_t())!==m?r=[r,n]:(ct=t,m))!==m?f.substring(e,ct):t)===m&&(e=Bt()),e}())!==m&&kt()!==m?(123===f.charCodeAt(ct)?(r=S,ct++):(r=m,0===pt&&Ot(C)),r!==m?(st=ct,(Se()?void 0:m)!==m&&(n=Rt())!==m?(125===f.charCodeAt(ct)?(o=j,ct++):(o=m,0===pt&&Ot(D)),o!==m?(st=e,Ce(t,n)):(ct=e,m)):(ct=e,m)):(ct=e,m)):(ct=e,m)}function Nt(){var e;return pt++,De.test(f.charAt(ct))?(e=f.charAt(ct),ct++):(e=m,0===pt&&Ot(Pe)),pt--,e===m&&0===pt&&Ot(je),e}function Mt(){var e;return pt++,Ie.test(f.charAt(ct))?(e=f.charAt(ct),ct++):(e=m,0===pt&&Ot(Ne)),pt--,e===m&&0===pt&&Ot(xe),e}function kt(){var e,t,r;for(pt++,e=ct,t=[],r=Nt();r!==m;)t.push(r),r=Nt();return e=t!==m?f.substring(e,ct):t,pt--,e===m&&(t=m,0===pt&&Ot(Me)),e}function _t(){var e,t,r;return pt++,e=ct,45===f.charCodeAt(ct)?(t=_e,ct++):(t=m,0===pt&&Ot(Le)),t===m&&(t=null),e=t!==m&&(r=Vt())!==m?(st=e,t=$e(t,r)):(ct=e,m),pt--,e===m&&(t=m,0===pt&&Ot(ke)),e}function Lt(){var e,t;return pt++,e=ct,f.substr(ct,2)===Ue?(t=Ue,ct+=2):(t=m,0===pt&&Ot(ze)),t!==m&&(st=e,t=Ve()),pt--,(e=t)===m&&(t=m,0===pt&&Ot(Ze)),e}function $t(){var e,t,r,n,o,a;if(e=ct,39===f.charCodeAt(ct)?(t=Y,ct++):(t=m,0===pt&&Ot(ee)),t!==m)if((r=function(){var e,t,r,n;t=e=ct,f.length>ct?(r=f.charAt(ct),ct++):(r=m,0===pt&&Ot(M));t=r!==m?(st=ct,n=We(r),(n=n?void 0:m)!==m?r=[r,n]:(ct=t,m)):(ct=t,m);e=t!==m?f.substring(e,ct):t;return e}())!==m){for(n=ct,o=[],f.substr(ct,2)===Ue?(a=Ue,ct+=2):(a=m,0===pt&&Ot(ze)),a===m&&(te.test(f.charAt(ct))?(a=f.charAt(ct),ct++):(a=m,0===pt&&Ot(re)));a!==m;)o.push(a),f.substr(ct,2)===Ue?(a=Ue,ct+=2):(a=m,0===pt&&Ot(ze)),a===m&&(te.test(f.charAt(ct))?(a=f.charAt(ct),ct++):(a=m,0===pt&&Ot(re)));e=(n=o!==m?f.substring(n,ct):o)!==m?(39===f.charCodeAt(ct)?(o=Y,ct++):(o=m,0===pt&&Ot(ee)),o===m&&(o=null),o!==m?(st=e,t=Be(r,n)):(ct=e,m)):(ct=e,m)}else ct=e,e=m;else ct=e,e=m;return e}function Zt(){var e,t,r,n;return t=e=ct,f.length>ct?(r=f.charAt(ct),ct++):(r=m,0===pt&&Ot(M)),(t=r!==m?(st=ct,(n=(n=Ge(r))?void 0:m)!==m?r=[r,n]:(ct=t,m)):(ct=t,m))===m&&(10===f.charCodeAt(ct)?(t=qe,ct++):(t=m,0===pt&&Ot(He))),e=t!==m?f.substring(e,ct):t}function Ut(){var e,t;return pt++,e=ct,(t=Vt())===m&&(t=Bt()),e=t!==m?f.substring(e,ct):t,pt--,e===m&&(t=m,0===pt&&Ot(Je)),e}function zt(){var e,t;return pt++,e=ct,(t=Vt())===m&&(t=function(){var e,t,r,n,o;pt++,e=ct,t=[],45===f.charCodeAt(ct)?(r=_e,ct++):(r=m,0===pt&&Ot(Le));r===m&&(n=r=ct,pt++,(o=Nt())===m&&(o=Mt()),pt--,n=o===m?void 0:(ct=n,m),r=n!==m?(f.length>ct?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(M)),o!==m?n=[n,o]:(ct=r,m)):(ct=r,m));if(r!==m)for(;r!==m;)t.push(r),45===f.charCodeAt(ct)?(r=_e,ct++):(r=m,0===pt&&Ot(Le)),r===m&&(n=r=ct,pt++,(o=Nt())===m&&(o=Mt()),pt--,n=o===m?void 0:(ct=n,m),r=n!==m?(f.length>ct?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(M)),o!==m?n=[n,o]:(ct=r,m)):(ct=r,m));else t=m;e=t!==m?f.substring(e,ct):t;pt--,e===m&&(t=m,0===pt&&Ot(ut));return e}()),e=t!==m?f.substring(e,ct):t,pt--,e===m&&(t=m,0===pt&&Ot(Ke)),e}function Vt(){var e,t,r,n,o;if(pt++,e=ct,48===f.charCodeAt(ct)?(t=Xe,ct++):(t=m,0===pt&&Ot(Ye)),t!==m&&(st=e,t=et()),(e=t)===m){if(t=e=ct,tt.test(f.charAt(ct))?(r=f.charAt(ct),ct++):(r=m,0===pt&&Ot(rt)),r!==m){for(n=[],nt.test(f.charAt(ct))?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(ot));o!==m;)n.push(o),nt.test(f.charAt(ct))?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(ot));t=n!==m?r=[r,n]:(ct=t,m)}else ct=t,t=m;t!==m&&(st=e,t=at(t)),e=t}return pt--,e===m&&(t=m,0===pt&&Ot(Qe)),e}function Bt(){var e,t,r,n,o;if(pt++,t=[],n=r=e=ct,pt++,(o=Nt())===m&&(o=Mt()),pt--,(r=(n=o===m?void 0:(ct=n,m))!==m?(f.length>ct?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(M)),o!==m?n=[n,o]:(ct=r,m)):(ct=r,m))!==m)for(;r!==m;)t.push(r),n=r=ct,pt++,(o=Nt())===m&&(o=Mt()),pt--,r=(n=o===m?void 0:(ct=n,m))!==m?(f.length>ct?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(M)),o!==m?n=[n,o]:(ct=r,m)):(ct=r,m);else t=m;return e=t!==m?f.substring(e,ct):t,pt--,e===m&&(t=m,0===pt&&Ot(it)),e}var Gt,qt,Ht,Wt=["root"];function Jt(){return 1<Wt.length}function Kt(){return"plural"===Wt[Wt.length-1]}function Qt(){return e&&e.captureLocation?{location:ht()}:{}}if((t=n())!==m&&ct===f.length)return t;throw t!==m&&ct<f.length&&Ot({type:"end"}),Gt=mt,qt=ft<f.length?f.charAt(ft):null,Ht=ft<f.length?At(ft,ft+1):At(ft,ft),new er(er.buildMessage(Gt,qt),Gt,qt,Ht)},A=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n},O=/(^|[^\\])#/g;var F=function(){return(F=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},C=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function j(e){var r={};return e.replace(C,function(e){var t=e.length;switch(e[0]){case"G":r.era=4===t?"long":5===t?"narrow":"short";break;case"y":r.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=4===t?"short":5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][t-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][t-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][t-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][t-1];break;case"s":r.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case"z":r.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")}return""}),r}var D=/^\.(?:(0+)(\+|#+)?)?$/g,P=/^(@+)?(\+|#+)?$/g;function x(e){var n={};return e.replace(P,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function I(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function N(e){var t=I(e);return t||{}}function M(e){for(var n={},t=0,r=e;t<r.length;t++){var o=r[t];switch(o.stem){case"percent":n.style="percent";continue;case"currency":n.style="currency",n.currency=o.options[0];continue;case"group-off":n.useGrouping=!1;continue;case"precision-integer":n.maximumFractionDigits=0;continue;case"measure-unit":n.style="unit",n.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":n.notation="compact",n.compactDisplay="short";continue;case"compact-long":n.notation="compact",n.compactDisplay="long";continue;case"scientific":n=F(F(F({},n),{notation:"scientific"}),o.options.reduce(function(e,t){return F(F({},e),N(t))},{}));continue;case"engineering":n=F(F(F({},n),{notation:"engineering"}),o.options.reduce(function(e,t){return F(F({},e),N(t))},{}));continue;case"notation-simple":n.notation="standard";continue;case"unit-width-narrow":n.currencyDisplay="narrowSymbol",n.unitDisplay="narrow";continue;case"unit-width-short":n.currencyDisplay="code",n.unitDisplay="short";continue;case"unit-width-full-name":n.currencyDisplay="name",n.unitDisplay="long";continue;case"unit-width-iso-code":n.currencyDisplay="symbol";continue}if(D.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(D,function(e,t,r){return"."===e?n.maximumFractionDigits=0:"+"===r?n.minimumFractionDigits=r.length:"#"===t[0]?n.maximumFractionDigits=t.length:(n.minimumFractionDigits=t.length,n.maximumFractionDigits=t.length+("string"==typeof r?r.length:0)),""}),o.options.length&&(n=F(F({},n),x(o.options[0])))}else if(P.test(o.stem))n=F(F({},n),x(o.stem));else{var a=I(o.stem);a&&(n=F(F({},n),a))}}return n}function k(e,t){var r=w(e,t);return t&&!1===t.normalizeHashtagInPlural||function l(e){e.forEach(function(s){(S(s)||E(s))&&Object.keys(s.options).forEach(function(e){for(var t,r=s.options[e],n=-1,o=void 0,a=0;a<r.value.length;a++){var i=r.value[a];if(T(i)&&O.test(i.value)){n=a,o=i;break}}if(o){var u=o.value.replace(O,"$1{"+s.value+", number}"),c=w(u);(t=r.value).splice.apply(t,A([n,1],c))}l(r.value)})})}(r),r}var _=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n};function L(e){return JSON.stringify(e.map(function(e){return e&&"object"===R(e)?function(r){return Object.keys(r).sort().map(function(e){var t;return(t={})[e]=r[e],t})}(e):e}))}var $,Z,U=function(a,i){return void 0===i&&(i={}),function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=L(t),o=n&&i[n];return o||(o=new((e=a).bind.apply(e,_([void 0],t))),n&&(i[n]=o)),o}},z=($=function(e,t){return($=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}$(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),V=(Z=Error,z(B,Z),B.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},B);function B(e,t){var r=Z.call(this,e)||this;return r.code=t,r}var G,q=(z(H,G=V),H);function H(e,t,r){return G.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',1)||this}var W,J=(z(K,W=V),K);function K(e,t){return W.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',0)||this}var Q=function(){return(Q=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function X(r,n){return n?Object.keys(r).reduce(function(e,t){return e[t]=function(r,n){return n?Q(Q(Q({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=Q(Q({},r[t]),n[t]||{}),e},{})):r}(r[t],n[t]),e},Q({},r)):r}var Y=(ee.defaultLocale=(new Intl.NumberFormat).resolvedOptions().locale,ee.__parse=k,ee.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},ee);function ee(e,t,r,n){var o=this;if(void 0===t&&(t=ee.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=o.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce(function(e,t){return e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return function e(t,r,n,o,a,i,u){if(1===t.length&&T(t[0]))return[{type:0,value:t[0].value}];for(var c,s,l=[],f=0,m=t;f<m.length;f++){var p=m[f];if(T(p))l.push({type:0,value:p.value});else if(p.type!==Xt.pound){var d=p.value;if(!(a&&d in a))throw new J(d,u);var h=a[d];if(p.type!==Xt.argument)if(p.type!==Xt.date)if(p.type!==Xt.time)if(p.type!==Xt.number){if(p.type===Xt.tag){var g=p.children,y=p.value,v=a[y];if("function"!=typeof v)throw new TypeError('Value for "'+y+'" must be a function');var b=e(g,r,n,o,a),w=v.apply(void 0,b.map(function(e){return e.value}));Array.isArray(w)||(w=[w]),l.push.apply(l,w.map(function(e){return{type:"string"==typeof e?0:1,value:e}}))}if(E(p)){if(!(A=p.options[h]||p.options.other))throw new q(p.value,h,Object.keys(p.options));l.push.apply(l,e(A.value,r,n,o,a))}else if(S(p)){var A;if(!(A=p.options["="+h])){if(!Intl.PluralRules)throw new V('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',2);var O=n.getPluralRules(r,{type:p.pluralType}).select(h-(p.offset||0));A=p.options[O]||p.options.other}if(!A)throw new q(p.value,h,Object.keys(p.options));l.push.apply(l,e(A.value,r,n,o,a,h-(p.offset||0)))}}else F="string"==typeof p.style?o.number[p.style]:(c=p.style)&&"object"===R(c)&&0===c.type?M(p.style.tokens):void 0,l.push({type:0,value:n.getNumberFormat(r,F).format(h)});else{var F="string"==typeof p.style?o.time[p.style]:(s=p.style)&&"object"===R(s)&&1===s.type?j(p.style.pattern):void 0;l.push({type:0,value:n.getDateTimeFormat(r,F).format(h)})}else{var F="string"==typeof p.style?o.date[p.style]:void 0;l.push({type:0,value:n.getDateTimeFormat(r,F).format(h)})}else h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),l.push({type:"string"==typeof h?0:1,value:h})}else"number"==typeof i&&l.push({type:0,value:n.getNumberFormat(r).format(i)})}return function(e){return e.length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e},[])}(l)}(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},"string"==typeof e){if(this.message=e,!ee.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=ee.__parse(e,{normalizeHashtagInPlural:!1})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=X(ee.formats,r),this.locales=t,this.formatters=n&&n.formatters||function(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:U(Intl.NumberFormat,e.number),getDateTimeFormat:U(Intl.DateTimeFormat,e.dateTime),getPluralRules:U(Intl.PluralRules,e.pluralRules)}}(this.formatterCache)}function te(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}var re=function(){u(a,t(Error));var o=m(a);function a(e,t,r){var n;return i(this,a),(n=o.call(this,"[React Intl Error ".concat(e,"] ").concat(t," ").concat(r?"\n".concat(r.stack):""))).code=e,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(f(n),a),n}return a}();function ne(r,e,t){var n=2<arguments.length&&void 0!==t?t:{};return e.reduce(function(e,t){return t in r?e[t]=r[t]:t in n&&(e[t]=n[t]),e},{})}function oe(e){te(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var ae={formats:{},messages:{},timeZone:void 0,textComponent:g.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){}};function ie(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function ue(e){var t=0<arguments.length&&void 0!==e?e:{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},r=Intl.RelativeTimeFormat,n=Intl.ListFormat,o=Intl.DisplayNames;return{getDateTimeFormat:U(Intl.DateTimeFormat,t.dateTime),getNumberFormat:U(Intl.NumberFormat,t.number),getMessageFormat:U(Y,t.message),getRelativeTimeFormat:U(r,t.relativeTime),getPluralRules:U(Intl.PluralRules,t.pluralRules),getListFormat:U(n,t.list),getDisplayNames:U(o,t.displayNames)}}function ce(e,t,r,n){var o,a=e&&e[t];if(a&&(o=a[r]),o)return o;n(new re("UNSUPPORTED_FORMATTER","No ".concat(t," format named: ").concat(r)))}function se(e,t){return e(t={exports:{}},t.exports),t.exports}var le,fe=se(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,m=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.memo"):60115,h=r?Symbol.for("react.lazy"):60116;function g(e){if("object"===R(e)&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case f:case a:case u:case i:case p:return e;default:switch(e=e&&e.$$typeof){case s:case m:case c:return e;default:return t}}case h:case d:case o:return t}}}function y(e){return g(e)===f}t.typeOf=g,t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=s,t.ContextProvider=c,t.Element=n,t.ForwardRef=m,t.Fragment=a,t.Lazy=h,t.Memo=d,t.Portal=o,t.Profiler=u,t.StrictMode=i,t.Suspense=p,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===u||e===i||e===p||"object"===R(e)&&null!==e&&(e.$$typeof===h||e.$$typeof===d||e.$$typeof===c||e.$$typeof===s||e.$$typeof===m)},t.isAsyncMode=function(e){return y(e)||g(e)===l},t.isConcurrentMode=y,t.isContextConsumer=function(e){return g(e)===s},t.isContextProvider=function(e){return g(e)===c},t.isElement=function(e){return"object"===R(e)&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return g(e)===m},t.isFragment=function(e){return g(e)===a},t.isLazy=function(e){return g(e)===h},t.isMemo=function(e){return g(e)===d},t.isPortal=function(e){return g(e)===o},t.isProfiler=function(e){return g(e)===u},t.isStrictMode=function(e){return g(e)===i},t.isSuspense=function(e){return g(e)===p}});(le=fe)&&le.__esModule&&Object.prototype.hasOwnProperty.call(le,"default")&&le.default;fe.typeOf,fe.AsyncMode,fe.ConcurrentMode,fe.ContextConsumer,fe.ContextProvider,fe.Element,fe.ForwardRef,fe.Fragment,fe.Lazy,fe.Memo,fe.Portal,fe.Profiler,fe.StrictMode,fe.Suspense,fe.isValidElementType,fe.isAsyncMode,fe.isConcurrentMode,fe.isContextConsumer,fe.isContextProvider,fe.isElement,fe.isForwardRef,fe.isFragment,fe.isLazy,fe.isMemo,fe.isPortal,fe.isProfiler,fe.isStrictMode,fe.isSuspense;var me=se(function(e){e.exports=fe}),pe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},de={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},he={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ge={};function ye(e){return me.isMemo(e)?he:ge[e.$$typeof]||pe}ge[me.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ge[me.Memo]=he;var ve=Object.defineProperty,be=Object.getOwnPropertyNames,we=Object.getOwnPropertySymbols,Ae=Object.getOwnPropertyDescriptor,Oe=Object.getPrototypeOf,Fe=Object.prototype;function Re(e,t,r){if("string"!=typeof t){if(Fe){var n=Oe(t);n&&n!==Fe&&Re(e,n,r)}var o=be(t);we&&(o=o.concat(we(t)));for(var a=ye(e),i=ye(t),u=0;u<o.length;++u){var c=o[u];if(!(de[c]||r&&r[c]||i&&i[c]||a&&a[c])){var s=Ae(t,c);try{ve(e,c,s)}catch(e){}}}}return e}var Te=Re;var Ee=g.createContext(null),Se=Ee.Consumer,Ce=Ee.Provider,je=Ee;function De(r,e){function n(t){return g.createElement(Se,null,function(e){return s&&oe(e),g.createElement(r,Object.assign({},t,function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},a,e),{ref:u?t.forwardedRef:null}))})}var t=e||{},o=t.intlPropName,a=void 0===o?"intl":o,i=t.forwardRef,u=void 0!==i&&i,c=t.enforceContext,s=void 0===c||c;return n.displayName="injectIntl(".concat(function(e){return e.displayName||e.name||"Component"}(r),")"),n.WrappedComponent=r,Te(u?g.forwardRef(function(e,t){return g.createElement(n,Object.assign({},e,{forwardedRef:t}))}):n,r)}var Pe,xe,Ie,Ne,Me=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};(xe=Pe=Pe||{}).formatDate="FormattedDate",xe.formatTime="FormattedTime",xe.formatNumber="FormattedNumber",xe.formatList="FormattedList",xe.formatDisplayName="FormattedDisplayName",(Ne=Ie=Ie||{}).formatDate="FormattedDateParts",Ne.formatTime="FormattedTimeParts",Ne.formatNumber="FormattedNumberParts",Ne.formatList="FormattedListParts";function ke(o){return g.createElement(je.Consumer,null,function(e){oe(e);var t=o.value,r=o.children,n=Me(o,["value","children"]);return r(e.formatNumberToParts(t,n))})}function _e(i){function e(a){return g.createElement(je.Consumer,null,function(e){oe(e);var t=a.value,r=a.children,n=Me(a,["value","children"]),o="string"==typeof t?new Date(t||0):t;return r("formatDate"===i?e.formatDateToParts(o,n):e.formatTimeToParts(o,n))})}return e.displayName=Ie[i],e}function Le(u){function e(i){return g.createElement(je.Consumer,null,function(e){oe(e);var t=i.value,r=i.children,n=Me(i,["value","children"]),o=e[u](t,n);if("function"==typeof r)return r(o);var a=e.textComponent||g.Fragment;return g.createElement(a,null,o)})}return e.displayName=Pe[u],e}ke.displayName="FormattedNumberParts";var $e=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function Ze(e,t,r){var n=e.locale,o=e.formats,a=e.onError,i=2<arguments.length&&void 0!==r?r:{},u=i.format,c=u&&ce(o,"number",u,a)||{};return t(n,ne(i,$e,c))}var Ue=["numeric","style"];function ze(t,e,r,n){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:{};n=n||"second",Intl.RelativeTimeFormat||t.onError(new V('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',2));try{return function(e,t,r){var n=e.locale,o=e.formats,a=e.onError,i=2<arguments.length&&void 0!==r?r:{},u=i.format,c=!!u&&ce(o,"relative",u,a)||{};return t(n,ne(i,Ue,c))}(t,e,o).format(r,n)}catch(e){t.onError(new re("FORMAT_ERROR","Error formatting relative time.",e))}return String(r)}var Ve=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Be(e,t,r,n){var o=e.locale,a=e.formats,i=e.onError,u=e.timeZone,c=3<arguments.length&&void 0!==n?n:{},s=c.format,l=Object.assign(Object.assign({},u&&{timeZone:u}),s&&ce(a,t,s,i)),f=ne(c,Ve,l);return"time"!==t||f.hour||f.minute||f.second||(f=Object.assign(Object.assign({},f),{hour:"numeric",minute:"numeric"})),r(o,f)}var Ge=["localeMatcher","type"];function qe(r,n){return Object.keys(r).reduce(function(e,t){return e[t]=Object.assign({timeZone:n},r[t]),e},{})}function He(r,n){return Object.keys(Object.assign(Object.assign({},r),n)).reduce(function(e,t){return e[t]=Object.assign(Object.assign({},r[t]||{}),n[t]||{}),e},{})}function We(e,t){if(!t)return e;var r=Y.formats;return Object.assign(Object.assign(Object.assign({},r),e),{date:He(qe(r.date,t),qe(e.date||{},t)),time:He(qe(r.time,t),qe(e.time||{},t))})}function Je(e,t){var r=e.locale,n=e.formats,o=e.messages,a=e.defaultLocale,i=e.defaultFormats,u=e.onError,c=e.timeZone,s=e.wrapRichTextChunksInFragment,l=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{id:""},f=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},m=l.id,p=l.defaultMessage;te(!!m,"[React Intl] An `id` must be provided to format a message.");var d=o&&o[String(m)];n=We(n,c),i=We(i,c);var h="";if(d)try{h=t.getMessageFormat(d,r,n,{formatters:t}).format(f)}catch(e){u(new re("FORMAT_ERROR",'Error formatting message: "'.concat(m,'" for locale: "').concat(r,'"')+(p?", using default message as fallback.":""),e))}else(!p||r&&r.toLowerCase()!==a.toLowerCase())&&u(new re("MISSING_TRANSLATION",'Missing message: "'.concat(m,'" for locale: "').concat(r,'"')+(p?", using default message as fallback.":"")));if(!h&&p)try{h=t.getMessageFormat(p,a,i).format(f)}catch(e){u(new re("FORMAT_ERROR",'Error formatting the default message for: "'.concat(m,'"'),e))}return h?Array.isArray(h)&&s?function(e){return g.createElement.apply(g,[g.Fragment,null].concat(y(e)))}(h):h:(u(new re("FORMAT_ERROR",'Cannot format message: "'.concat(m,'", ')+"using message ".concat(d||p?"source":"id"," as fallback."))),"string"==typeof d?d||p||String(m):p||String(m))}function Ke(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var a=0;a<o;a++){var i=r[a];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}var Qe=["localeMatcher","type","style"],Xe=Date.now();function Ye(e,t,r){var n=e.locale,o=e.onError,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};Intl.ListFormat||o(new V('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',2));var i=ne(a,Qe);try{var u={},c=r.map(function(e,t){if("object"!==R(e))return String(e);var r=function(e){return"".concat(Xe,"_").concat(e,"_").concat(Xe)}(t);return u[r]=e,r});return Object.keys(u).length?t(n,i).formatToParts(c).reduce(function(e,t){var r=t.value;return u[r]?e.push(u[r]):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e},[]):t(n,i).format(c)}catch(e){o(new re("FORMAT_ERROR","Error formatting list.",e))}return r}var et=["localeMatcher","style","type","fallback"];var tt=Ke;function rt(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError}}function nt(e,t){var r=ue(t),n=Object.assign(Object.assign({},ae),e),o=n.locale,a=n.defaultLocale,i=n.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&i?i(new re("MISSING_DATA",'Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(a,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&i&&i(new re("MISSING_DATA",'Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(a,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):(i&&i(new re("INVALID_CONFIG",'"locale" was not configured, using "'.concat(a,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/API.md#intlshape for more details'))),n.locale=n.defaultLocale||"en"),Object.assign(Object.assign({},n),{formatters:r,formatNumber:function(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};try{return Ze(t,e,n).format(r)}catch(e){t.onError(new re("FORMAT_ERROR","Error formatting number.",e))}return String(r)}.bind(null,n,r.getNumberFormat),formatNumberToParts:function(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};try{return Ze(t,e,n).formatToParts(r)}catch(e){t.onError(new re("FORMAT_ERROR","Error formatting number.",e))}return[]}.bind(null,n,r.getNumberFormat),formatRelativeTime:ze.bind(null,n,r.getRelativeTimeFormat),formatDate:function(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof r?new Date(r||0):r;try{return Be(t,"date",e,n).format(o)}catch(e){t.onError(new re("FORMAT_ERROR","Error formatting date.",e))}return String(o)}.bind(null,n,r.getDateTimeFormat),formatDateToParts:function(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof r?new Date(r||0):r;try{return Be(t,"date",e,n).formatToParts(o)}catch(e){t.onError(new re("FORMAT_ERROR","Error formatting date.",e))}return[]}.bind(null,n,r.getDateTimeFormat),formatTime:function(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof r?new Date(r||0):r;try{return Be(t,"time",e,n).format(o)}catch(e){t.onError(new re("FORMAT_ERROR","Error formatting time.",e))}return String(o)}.bind(null,n,r.getDateTimeFormat),formatTimeToParts:function(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof r?new Date(r||0):r;try{return Be(t,"time",e,n).formatToParts(o)}catch(e){t.onError(new re("FORMAT_ERROR","Error formatting time.",e))}return[]}.bind(null,n,r.getDateTimeFormat),formatPlural:function(e,t,r){var n=e.locale,o=e.onError,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};Intl.PluralRules||o(new V('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',2));var i=ne(a,Ge);try{return t(n,i).select(r)}catch(e){o(new re("FORMAT_ERROR","Error formatting plural.",e))}return"other"}.bind(null,n,r.getPluralRules),formatMessage:Je.bind(null,n,r),formatList:Ye.bind(null,n,r.getListFormat),formatDisplayName:function(e,t,r){var n=e.locale,o=e.onError,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};Intl.DisplayNames||o(new V('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',2));var i=ne(a,et);try{return t(n,i).of(r)}catch(e){o(new re("FORMAT_ERROR","Error formatting display name.",e))}}.bind(null,n,r.getDisplayNames)})}var ot=function(){u(r,g.PureComponent);var t=m(r);function r(){var e;return i(this,r),(e=t.apply(this,arguments)).cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},e.state={cache:e.cache,intl:nt(rt(e.props),e.cache),prevConfig:rt(e.props)},e}return o(r,[{key:"render",value:function(){return oe(this.state.intl),g.createElement(Ce,{value:this.state.intl},this.props.children)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.prevConfig,n=t.cache,o=rt(e);return tt(r,o)?null:{intl:nt(o,n),prevConfig:o}}}]),r}();ot.displayName="IntlProvider",ot.defaultProps=ae;var at=60,it=3600;function ut(e){var t=Math.abs(e);return t<at?"second":t<it?"minute":t<86400?"hour":"day"}function ct(e){switch(e){case"second":return 1;case"minute":return at;case"hour":return it;default:return 86400}}function st(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return e*at;default:return e*it}}var lt=["second","minute","hour"];function ft(e){var t=0<arguments.length&&void 0!==e?e:"second";return lt.includes(t)}var mt=function(){u(n,g.PureComponent);var r=m(n);function n(e){var t;return i(this,n),(t=r.call(this,e))._updateTimer=null,t.state={prevUnit:t.props.unit,prevValue:t.props.value,currentValueInSeconds:ft(t.props.unit)?st(t.props.value,t.props.unit):0},te(!e.updateIntervalInSeconds||!(!e.updateIntervalInSeconds||!ft(e.unit)),"Cannot schedule update with unit longer than hour"),t}return o(n,[{key:"scheduleNextUpdate",value:function(e,t){var r=this,n=e.updateIntervalInSeconds,o=e.unit,a=t.currentValueInSeconds;if(clearTimeout(this._updateTimer),this._updateTimer=null,n&&ft(o)){var i=a-n,u=ut(i);if("day"!==u){var c=ct(u),s=i-i%c,l=a<=s?s-c:s,f=Math.abs(l-a);this._updateTimer=setTimeout(function(){return r.setState({currentValueInSeconds:l})},1e3*f)}}}},{key:"componentDidMount",value:function(){this.scheduleNextUpdate(this.props,this.state)}},{key:"componentDidUpdate",value:function(){this.scheduleNextUpdate(this.props,this.state)}},{key:"componentWillUnmount",value:function(){clearTimeout(this._updateTimer),this._updateTimer=null}},{key:"render",value:function(){var p=this;return g.createElement(je.Consumer,null,function(e){oe(e);var t=e.formatRelativeTime,r=e.textComponent,n=p.props,o=n.children,a=n.value,i=n.unit,u=n.updateIntervalInSeconds,c=p.state.currentValueInSeconds,s=a||0,l=i;if(ft(i)&&"number"==typeof c&&u){var f=ct(l=ut(c));s=Math.round(c/f)}var m=t(s,l,Object.assign({},p.props));return"function"==typeof o?o(m):r?g.createElement(r,null,m):m})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.unit!==t.prevUnit||e.value!==t.prevValue?{prevValue:e.value,prevUnit:e.unit,currentValueInSeconds:ft(e.unit)?st(e.value,e.unit):0}:null}}]),n}();mt.displayName="FormattedRelativeTime",mt.defaultProps={value:0,unit:"second"};function pt(e){var t=e.value,r=e.other,n=e.children,o=e.intl,a=o.formatPlural,i=o.textComponent,u=e[a(t,e)]||r;return"function"==typeof n?n(u):i?g.createElement(i,null,u):u}pt.defaultProps={type:"cardinal"},pt.displayName="FormattedPlural";var dt=De(pt),ht=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},gt=Ke;function yt(e,t){return Je(Object.assign(Object.assign({},ae),{locale:"en"}),ue(),e,t)}var vt=function(){u(t,g.Component);var e=m(t);function t(){return i(this,t),e.apply(this,arguments)}return o(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props,r=t.values,n=ht(t,["values"]),o=e.values,a=ht(e,["values"]);return!gt(o,r)||!gt(n,a)}},{key:"render",value:function(){var h=this;return g.createElement(je.Consumer,null,function(e){h.props.defaultMessage||oe(e);var t=e||{},r=t.formatMessage,n=void 0===r?yt:r,o=t.textComponent,a=void 0===o?g.Fragment:o,i=h.props,u=i.id,c=i.description,s=i.defaultMessage,l=i.values,f=i.children,m=i.tagName,p=void 0===m?a:m,d=n({id:u,description:c,defaultMessage:s},l);return Array.isArray(d)||(d=[d]),"function"==typeof f?f.apply(void 0,y(d)):p?g.createElement.apply(g,[p,null].concat(y(d))):d})}}]),t}();vt.displayName="FormattedMessage",vt.defaultProps={values:{}};var bt=Le("formatDate"),wt=Le("formatTime"),At=Le("formatNumber"),Ot=Le("formatList"),Ft=Le("formatDisplayName"),Rt=_e("formatDate"),Tt=_e("formatTime");e.FormattedDate=bt,e.FormattedDateParts=Rt,e.FormattedDisplayName=Ft,e.FormattedList=Ot,e.FormattedMessage=vt,e.FormattedNumber=At,e.FormattedNumberParts=ke,e.FormattedPlural=dt,e.FormattedRelativeTime=mt,e.FormattedTime=wt,e.FormattedTimeParts=Tt,e.IntlContext=je,e.IntlProvider=ot,e.RawIntlProvider=Ce,e.ReactIntlError=re,e.createIntl=nt,e.createIntlCache=ie,e.defineMessages=function(e){return e},e.injectIntl=De,e.useIntl=function(){var e=g.useContext(je);return oe(e),e},Object.defineProperty(e,"__esModule",{value:!0})});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e=e||self).ReactIntl={},e.React)}(this,function(e,g){"use strict";function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function l(e,t,r){return(l=s()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&i(o,r.prototype),o}).apply(null,arguments)}function t(e){var r="function"==typeof Map?new Map:void 0;return(t=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return l(e,arguments,a(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(n){return function(){var e,t=a(n);if(s()){var r=a(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?f(e):t}(this,e)}}function y(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Xt,r;function R(e){return e.type===Xt.literal}function T(e){return e.type===Xt.select}function I(e){return e.type===Xt.plural}(r=Xt=Xt||{})[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag";var d,h,v=(d=function(e,t){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Yt=function(){return(Yt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},er=(h=Error,v(b,h),b.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+r(e)})}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+r(e)})}function a(e){switch(e.type){case"literal":return'"'+n(e.text)+'"';case"class":var t=e.parts.map(function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)});return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,r,n=e.map(a);if(n.sort(),0<n.length){for(r=t=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+((i=t)?'"'+n(i)+'"':"end of input")+" found.";var i},b);function b(e,t,r,n){var o=h.call(this)||this;return o.message=e,o.expected=t,o.found=r,o.location=n,o.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,b),o}var A=function(f,e){e=void 0!==e?e:{};var t,m={},r={start:Ft},n=Ft,o=function(e){return e.join("")},a=function(e){return Yt({type:Xt.literal,value:e},Qt())},i="#",u=yt("#",!1),c=function(){return Yt({type:Xt.pound},Qt())},s=bt("tagElement"),l="<",p=yt("<",!1),d="/>",h=yt("/>",!1),g=function(e){return Yt({type:Xt.literal,value:e.join("")},Qt())},y=function(e,t,r){return e!==r&&gt('Mismatch tag "'+e+'" !== "'+r+'"',ht()),Yt({type:Xt.tag,value:e,children:t},Qt())},v=function(){return Wt.push("openingTag"),!0},b=">",A=yt(">",!1),w=function(e){return Wt.pop(),!0},O=function(e){return e},F="</",S=yt("</",!1),R=function(){return Wt.push("closingTag"),!0},T=bt("argumentElement"),I="{",E=yt("{",!1),C="}",D=yt("}",!1),P=function(e){return Yt({type:Xt.argument,value:e},Qt())},N=bt("numberSkeletonId"),j=/^['\/{}]/,_=vt(["'","/","{","}"],!1,!1),x={type:"any"},M=bt("numberSkeletonTokenOption"),k="/",L=yt("/",!1),U=function(e){return e},V=bt("numberSkeletonToken"),$=function(e,t){return{stem:e,options:t}},G=function(e){return Yt({type:0,tokens:e},Qt())},Z="::",z=yt("::",!1),B=function(e){return e},q=function(){return Wt.push("numberArgStyle"),!0},H=function(e){return Wt.pop(),e.replace(/\s*$/,"")},W=",",J=yt(",",!1),K="number",Q=yt("number",!1),X=function(e,t,r){return Yt({type:"number"===t?Xt.number:"date"===t?Xt.date:Xt.time,style:r&&r[2],value:e},Qt())},Y="'",ee=yt("'",!1),te=/^[^']/,re=vt(["'"],!0,!1),ne=/^[^a-zA-Z'{}]/,oe=vt([["a","z"],["A","Z"],"'","{","}"],!0,!1),ae=/^[a-zA-Z]/,ie=vt([["a","z"],["A","Z"]],!1,!1),ue=function(e){return Yt({type:1,pattern:e},Qt())},ce=function(){return Wt.push("dateOrTimeArgStyle"),!0},se="date",le=yt("date",!1),fe="time",me=yt("time",!1),pe="plural",de=yt("plural",!1),he="selectordinal",ge=yt("selectordinal",!1),ye="offset:",ve=yt("offset:",!1),be=function(e,t,r,n){return Yt({type:Xt.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:r?r[2]:0,options:n.reduce(function(e,t){var r=t.id,n=t.value,o=t.location;return r in e&&gt('Duplicate option "'+r+'" in plural element: "'+dt()+'"',ht()),e[r]={value:n,location:o},e},{})},Qt())},Ae="select",we=yt("select",!1),Oe=function(e,t){return Yt({type:Xt.select,value:e,options:t.reduce(function(e,t){var r=t.id,n=t.value,o=t.location;return r in e&&gt('Duplicate option "'+r+'" in select element: "'+dt()+'"',ht()),e[r]={value:n,location:o},e},{})},Qt())},Fe="=",Se=yt("=",!1),Re=function(e){return Wt.push("select"),!0},Te=function(e,t){return Wt.pop(),Yt({id:e,value:t},Qt())},Ie=function(e){return Wt.push("plural"),!0},Ee=function(e,t){return Wt.pop(),Yt({id:e,value:t},Qt())},Ce=bt("whitespace"),De=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Pe=vt([["\t","\r"]," ","…"," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),Ne=bt("syntax pattern"),je=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,_e=vt([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←","⑟"],["─","❵"],["➔","⯿"],["⸀","⹿"],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),xe=bt("optional whitespace"),Me=bt("number"),ke="-",Le=yt("-",!1),Ue=function(e,t){return t?e?-t:t:0},Ve=bt("double apostrophes"),$e="''",Ge=yt("''",!1),Ze=function(){return"'"},ze=function(e,t){return e+t.replace("''","'")},Be=function(e){return!("<"===e||"{"===e||Kt()&&"#"===e||Jt()&&"}"===e||Jt()&&">"===e)},qe="\n",He=yt("\n",!1),We=function(e){return"<"===e||">"===e||"{"===e||"}"===e||Kt()&&"#"===e},Je=bt("argNameOrNumber"),Ke=bt("validTag"),Qe=bt("argNumber"),Xe="0",Ye=yt("0",!1),et=function(){return 0},tt=/^[1-9]/,rt=vt([["1","9"]],!1,!1),nt=/^[0-9]/,ot=vt([["0","9"]],!1,!1),at=function(e){return parseInt(e.join(""),10)},it=bt("argName"),ut=bt("tagName"),ct=0,st=0,lt=[{line:1,column:1}],ft=0,mt=[],pt=0;if(void 0!==e.startRule){if(!(e.startRule in r))throw new Error("Can't start parsing from rule \""+e.startRule+'".');n=r[e.startRule]}function dt(){return f.substring(st,ct)}function ht(){return wt(st,ct)}function gt(e,t){throw function(e,t){return new er(e,[],"",t)}(e,t=void 0!==t?t:wt(st,ct))}function yt(e,t){return{type:"literal",text:e,ignoreCase:t}}function vt(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function bt(e){return{type:"other",description:e}}function At(e){var t,r=lt[e];if(r)return r;for(t=e-1;!lt[t];)t--;for(r={line:(r=lt[t]).line,column:r.column};t<e;)10===f.charCodeAt(t)?(r.line++,r.column=1):r.column++,t++;return lt[e]=r}function wt(e,t){var r=At(e),n=At(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function Ot(e){ct<ft||(ft<ct&&(ft=ct,mt=[]),mt.push(e))}function Ft(){return St()}function St(){var e,t;for(e=[],t=Rt();t!==m;)e.push(t),t=Rt();return e}function Rt(){var e;return(e=function(){var e,t;e=ct,(t=Tt())!==m&&(st=e,t=a(t));return e=t}())===m&&(e=function(){var e,t,r,n,o;pt++,e=ct,123===f.charCodeAt(ct)?(t=I,ct++):(t=m,0===pt&&Ot(E));e=t!==m?(r=Mt(),r!==m?(n=$t())!==m?Mt()!==m?(125===f.charCodeAt(ct)?(o=C,ct++):(o=m,0===pt&&Ot(D)),o!==m?(st=e,t=P(n)):(ct=e,m)):(ct=e,m):(ct=e,m):(ct=e,m)):(ct=e,m);pt--,e===m&&(t=m,0===pt&&Ot(T));return e}())===m&&(e=function(){var e;(e=function(){var e,t,r,n,o,a,i,u,c,s;e=ct,123===f.charCodeAt(ct)?(t=I,ct++):(t=m,0===pt&&Ot(E));e=t!==m?(r=Mt(),r!==m?(n=$t())!==m?Mt()!==m?(44===f.charCodeAt(ct)?(o=W,ct++):(o=m,0===pt&&Ot(J)),o!==m?Mt()!==m?(f.substr(ct,6)===K?(a=K,ct+=6):(a=m,0===pt&&Ot(Q)),a!==m?Mt()!==m?(i=ct,44===f.charCodeAt(ct)?(u=W,ct++):(u=m,0===pt&&Ot(J)),(i=u!==m?(c=Mt())!==m?(s=function(){var e,t,r;e=ct,f.substr(ct,2)===Z?(t=Z,ct+=2):(t=m,0===pt&&Ot(z));e=t!==m?(r=function(){var e,t,r;if(e=ct,t=[],(r=Ct())!==m)for(;r!==m;)t.push(r),r=Ct();else t=m;t!==m&&(st=e,t=G(t));return e=t}(),r!==m?(st=e,t=B(r)):(ct=e,m)):(ct=e,m);e===m&&(st=e=ct,t=q(),e=(t=t?void 0:m)!==m?(r=Tt())!==m?(st=e,t=H(r)):(ct=e,m):(ct=e,m));return e}())!==m?u=[u,c,s]:(ct=i,m):(ct=i,m):(ct=i,m))===m&&(i=null),i!==m?(u=Mt())!==m?(125===f.charCodeAt(ct)?(c=C,ct++):(c=m,0===pt&&Ot(D)),c!==m?(st=e,t=X(n,a,i)):(ct=e,m)):(ct=e,m):(ct=e,m)):(ct=e,m):(ct=e,m)):(ct=e,m):(ct=e,m)):(ct=e,m):(ct=e,m):(ct=e,m)):(ct=e,m);return e}())===m&&(e=function(){var e,t,r,n,o,a,i,u,c,s;e=ct,123===f.charCodeAt(ct)?(t=I,ct++):(t=m,0===pt&&Ot(E));e=t!==m?(r=Mt(),r!==m?(n=$t())!==m?Mt()!==m?(44===f.charCodeAt(ct)?(o=W,ct++):(o=m,0===pt&&Ot(J)),o!==m?Mt()!==m?(f.substr(ct,4)===se?(a=se,ct+=4):(a=m,0===pt&&Ot(le)),a===m&&(f.substr(ct,4)===fe?(a=fe,ct+=4):(a=m,0===pt&&Ot(me))),a!==m?Mt()!==m?(i=ct,44===f.charCodeAt(ct)?(u=W,ct++):(u=m,0===pt&&Ot(J)),(i=u!==m?(c=Mt())!==m?(s=function(){var e,t,r;e=ct,f.substr(ct,2)===Z?(t=Z,ct+=2):(t=m,0===pt&&Ot(z));e=t!==m?(r=function(){var e,t,r,n;t=e=ct,r=[],(n=Dt())===m&&(n=Pt());if(n!==m)for(;n!==m;)r.push(n),(n=Dt())===m&&(n=Pt());else r=m;t=r!==m?f.substring(t,ct):r;t!==m&&(st=e,t=ue(t));return e=t}(),r!==m?(st=e,t=B(r)):(ct=e,m)):(ct=e,m);e===m&&(st=e=ct,t=ce(),e=(t=t?void 0:m)!==m?(r=Tt())!==m?(st=e,t=H(r)):(ct=e,m):(ct=e,m));return e}())!==m?u=[u,c,s]:(ct=i,m):(ct=i,m):(ct=i,m))===m&&(i=null),i!==m?(u=Mt())!==m?(125===f.charCodeAt(ct)?(c=C,ct++):(c=m,0===pt&&Ot(D)),c!==m?(st=e,t=X(n,a,i)):(ct=e,m)):(ct=e,m):(ct=e,m)):(ct=e,m):(ct=e,m)):(ct=e,m):(ct=e,m)):(ct=e,m):(ct=e,m):(ct=e,m)):(ct=e,m);return e}());return e}())===m&&(e=function(){var e,t,r,n,o,a,i,u,c,s,l;e=ct,123===f.charCodeAt(ct)?(t=I,ct++):(t=m,0===pt&&Ot(E));if(t!==m)if(Mt()!==m)if((r=$t())!==m)if(Mt()!==m)if(44===f.charCodeAt(ct)?(n=W,ct++):(n=m,0===pt&&Ot(J)),n!==m)if(Mt()!==m)if(f.substr(ct,6)===pe?(o=pe,ct+=6):(o=m,0===pt&&Ot(de)),o===m&&(f.substr(ct,13)===he?(o=he,ct+=13):(o=m,0===pt&&Ot(ge))),o!==m)if(Mt()!==m)if(44===f.charCodeAt(ct)?(a=W,ct++):(a=m,0===pt&&Ot(J)),a!==m)if(Mt()!==m)if(i=ct,f.substr(ct,7)===ye?(u=ye,ct+=7):(u=m,0===pt&&Ot(ve)),(i=u!==m?(c=Mt())!==m?(s=kt())!==m?u=[u,c,s]:(ct=i,m):(ct=i,m):(ct=i,m))===m&&(i=null),i!==m)if((u=Mt())!==m){if(c=[],(s=jt())!==m)for(;s!==m;)c.push(s),s=jt();else c=m;e=c!==m?(s=Mt())!==m?(125===f.charCodeAt(ct)?(l=C,ct++):(l=m,0===pt&&Ot(D)),l!==m?(st=e,t=be(r,o,i,c)):(ct=e,m)):(ct=e,m):(ct=e,m)}else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;return e}())===m&&(e=function(){var e,t,r,n,o,a,i,u,c;e=ct,123===f.charCodeAt(ct)?(t=I,ct++):(t=m,0===pt&&Ot(E));if(t!==m)if(Mt()!==m)if((r=$t())!==m)if(Mt()!==m)if(44===f.charCodeAt(ct)?(n=W,ct++):(n=m,0===pt&&Ot(J)),n!==m)if(Mt()!==m)if(f.substr(ct,6)===Ae?(o=Ae,ct+=6):(o=m,0===pt&&Ot(we)),o!==m)if(Mt()!==m)if(44===f.charCodeAt(ct)?(a=W,ct++):(a=m,0===pt&&Ot(J)),a!==m)if(Mt()!==m){if(i=[],(u=Nt())!==m)for(;u!==m;)i.push(u),u=Nt();else i=m;e=i!==m?(u=Mt())!==m?(125===f.charCodeAt(ct)?(c=C,ct++):(c=m,0===pt&&Ot(D)),c!==m?(st=e,t=Oe(r,i)):(ct=e,m)):(ct=e,m):(ct=e,m)}else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;else ct=e,e=m;return e}())===m&&(e=function(){var e,t,r,n,o,a;pt++,t=e=ct,60===f.charCodeAt(ct)?(r=l,ct++):(r=m,0===pt&&Ot(p));t=r!==m?(n=Gt(),n!==m?(o=Mt())!==m?(f.substr(ct,2)===d?(a=d,ct+=2):(a=m,0===pt&&Ot(h)),a!==m?r=[r,n,o,a]:(ct=t,m)):(ct=t,m):(ct=t,m)):(ct=t,m);t!==m&&(st=e,t=g(t));(e=t)===m&&(e=ct,t=function(){var e,t,r,n,o;e=ct,60===f.charCodeAt(ct)?(t=l,ct++):(t=m,0===pt&&Ot(p));e=t!==m?(st=ct,r=v(),(r=r?void 0:m)!==m?(n=Gt())!==m?(62===f.charCodeAt(ct)?(o=b,ct++):(o=m,0===pt&&Ot(A)),o!==m?(st=ct,(w()?void 0:m)!==m?(st=e,t=O(n)):(ct=e,m)):(ct=e,m)):(ct=e,m):(ct=e,m)):(ct=e,m);return e}(),e=t!==m?(r=St())!==m?(n=function(){var e,t,r,n,o;e=ct,f.substr(ct,2)===F?(t=F,ct+=2):(t=m,0===pt&&Ot(S));e=t!==m?(st=ct,r=R(),(r=r?void 0:m)!==m?(n=Gt())!==m?(62===f.charCodeAt(ct)?(o=b,ct++):(o=m,0===pt&&Ot(A)),o!==m?(st=ct,(w()?void 0:m)!==m?(st=e,t=O(n)):(ct=e,m)):(ct=e,m)):(ct=e,m):(ct=e,m)):(ct=e,m);return e}())!==m?(st=e,t=y(t,r,n)):(ct=e,m):(ct=e,m):(ct=e,m));pt--,e===m&&(t=m,0===pt&&Ot(s));return e}())===m&&(e=function(){var e,t;e=ct,35===f.charCodeAt(ct)?(t=i,ct++):(t=m,0===pt&&Ot(u));t!==m&&(st=e,t=c());return e=t}()),e}function Tt(){var e,t,r;if(e=ct,t=[],(r=Lt())===m&&(r=Ut())===m&&(r=Vt()),r!==m)for(;r!==m;)t.push(r),(r=Lt())===m&&(r=Ut())===m&&(r=Vt());else t=m;return t!==m&&(st=e,t=o(t)),e=t}function It(){var e,t,r,n,o;if(pt++,t=[],n=r=e=ct,pt++,(o=_t())===m&&(j.test(f.charAt(ct))?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(_))),pt--,(r=(n=o===m?void 0:(ct=n,m))!==m?(f.length>ct?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(x)),o!==m?n=[n,o]:(ct=r,m)):(ct=r,m))!==m)for(;r!==m;)t.push(r),n=r=ct,pt++,(o=_t())===m&&(j.test(f.charAt(ct))?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(_))),pt--,r=(n=o===m?void 0:(ct=n,m))!==m?(f.length>ct?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(x)),o!==m?n=[n,o]:(ct=r,m)):(ct=r,m);else t=m;return e=t!==m?f.substring(e,ct):t,pt--,e===m&&(t=m,0===pt&&Ot(N)),e}function Et(){var e,t,r;return pt++,e=ct,47===f.charCodeAt(ct)?(t=k,ct++):(t=m,0===pt&&Ot(L)),e=t!==m&&(r=It())!==m?(st=e,t=U(r)):(ct=e,m),pt--,e===m&&(t=m,0===pt&&Ot(M)),e}function Ct(){var e,t,r,n;if(pt++,e=ct,Mt()!==m)if((t=It())!==m){for(r=[],n=Et();n!==m;)r.push(n),n=Et();e=r!==m?(st=e,$(t,r)):(ct=e,m)}else ct=e,e=m;else ct=e,e=m;return pt--,e===m&&(m,0===pt&&Ot(V)),e}function Dt(){var e,t,r,n;if(e=ct,39===f.charCodeAt(ct)?(t=Y,ct++):(t=m,0===pt&&Ot(ee)),t!==m){if(r=[],(n=Lt())===m&&(te.test(f.charAt(ct))?(n=f.charAt(ct),ct++):(n=m,0===pt&&Ot(re))),n!==m)for(;n!==m;)r.push(n),(n=Lt())===m&&(te.test(f.charAt(ct))?(n=f.charAt(ct),ct++):(n=m,0===pt&&Ot(re)));else r=m;e=r!==m?(39===f.charCodeAt(ct)?(n=Y,ct++):(n=m,0===pt&&Ot(ee)),n!==m?t=[t,r,n]:(ct=e,m)):(ct=e,m)}else ct=e,e=m;if(e===m)if(e=[],(t=Lt())===m&&(ne.test(f.charAt(ct))?(t=f.charAt(ct),ct++):(t=m,0===pt&&Ot(oe))),t!==m)for(;t!==m;)e.push(t),(t=Lt())===m&&(ne.test(f.charAt(ct))?(t=f.charAt(ct),ct++):(t=m,0===pt&&Ot(oe)));else e=m;return e}function Pt(){var e,t;if(e=[],ae.test(f.charAt(ct))?(t=f.charAt(ct),ct++):(t=m,0===pt&&Ot(ie)),t!==m)for(;t!==m;)e.push(t),ae.test(f.charAt(ct))?(t=f.charAt(ct),ct++):(t=m,0===pt&&Ot(ie));else e=m;return e}function Nt(){var e,t,r,n,o;return e=ct,e=Mt()!==m&&(t=zt())!==m&&Mt()!==m?(123===f.charCodeAt(ct)?(r=I,ct++):(r=m,0===pt&&Ot(E)),r!==m?(st=ct,(Re()?void 0:m)!==m&&(n=St())!==m?(125===f.charCodeAt(ct)?(o=C,ct++):(o=m,0===pt&&Ot(D)),o!==m?(st=e,Te(t,n)):(ct=e,m)):(ct=e,m)):(ct=e,m)):(ct=e,m)}function jt(){var e,t,r,n,o;return e=ct,e=Mt()!==m&&(t=function(){var e,t,r,n;return t=e=ct,61===f.charCodeAt(ct)?(r=Fe,ct++):(r=m,0===pt&&Ot(Se)),(e=(t=r!==m&&(n=kt())!==m?r=[r,n]:(ct=t,m))!==m?f.substring(e,ct):t)===m&&(e=zt()),e}())!==m&&Mt()!==m?(123===f.charCodeAt(ct)?(r=I,ct++):(r=m,0===pt&&Ot(E)),r!==m?(st=ct,(Ie()?void 0:m)!==m&&(n=St())!==m?(125===f.charCodeAt(ct)?(o=C,ct++):(o=m,0===pt&&Ot(D)),o!==m?(st=e,Ee(t,n)):(ct=e,m)):(ct=e,m)):(ct=e,m)):(ct=e,m)}function _t(){var e;return pt++,De.test(f.charAt(ct))?(e=f.charAt(ct),ct++):(e=m,0===pt&&Ot(Pe)),pt--,e===m&&0===pt&&Ot(Ce),e}function xt(){var e;return pt++,je.test(f.charAt(ct))?(e=f.charAt(ct),ct++):(e=m,0===pt&&Ot(_e)),pt--,e===m&&0===pt&&Ot(Ne),e}function Mt(){var e,t,r;for(pt++,e=ct,t=[],r=_t();r!==m;)t.push(r),r=_t();return e=t!==m?f.substring(e,ct):t,pt--,e===m&&(t=m,0===pt&&Ot(xe)),e}function kt(){var e,t,r;return pt++,e=ct,45===f.charCodeAt(ct)?(t=ke,ct++):(t=m,0===pt&&Ot(Le)),t===m&&(t=null),e=t!==m&&(r=Zt())!==m?(st=e,t=Ue(t,r)):(ct=e,m),pt--,e===m&&(t=m,0===pt&&Ot(Me)),e}function Lt(){var e,t;return pt++,e=ct,f.substr(ct,2)===$e?(t=$e,ct+=2):(t=m,0===pt&&Ot(Ge)),t!==m&&(st=e,t=Ze()),pt--,(e=t)===m&&(t=m,0===pt&&Ot(Ve)),e}function Ut(){var e,t,r,n,o,a;if(e=ct,39===f.charCodeAt(ct)?(t=Y,ct++):(t=m,0===pt&&Ot(ee)),t!==m)if((r=function(){var e,t,r,n;t=e=ct,f.length>ct?(r=f.charAt(ct),ct++):(r=m,0===pt&&Ot(x));t=r!==m?(st=ct,n=We(r),(n=n?void 0:m)!==m?r=[r,n]:(ct=t,m)):(ct=t,m);e=t!==m?f.substring(e,ct):t;return e}())!==m){for(n=ct,o=[],f.substr(ct,2)===$e?(a=$e,ct+=2):(a=m,0===pt&&Ot(Ge)),a===m&&(te.test(f.charAt(ct))?(a=f.charAt(ct),ct++):(a=m,0===pt&&Ot(re)));a!==m;)o.push(a),f.substr(ct,2)===$e?(a=$e,ct+=2):(a=m,0===pt&&Ot(Ge)),a===m&&(te.test(f.charAt(ct))?(a=f.charAt(ct),ct++):(a=m,0===pt&&Ot(re)));e=(n=o!==m?f.substring(n,ct):o)!==m?(39===f.charCodeAt(ct)?(o=Y,ct++):(o=m,0===pt&&Ot(ee)),o===m&&(o=null),o!==m?(st=e,t=ze(r,n)):(ct=e,m)):(ct=e,m)}else ct=e,e=m;else ct=e,e=m;return e}function Vt(){var e,t,r,n;return t=e=ct,f.length>ct?(r=f.charAt(ct),ct++):(r=m,0===pt&&Ot(x)),(t=r!==m?(st=ct,(n=(n=Be(r))?void 0:m)!==m?r=[r,n]:(ct=t,m)):(ct=t,m))===m&&(10===f.charCodeAt(ct)?(t=qe,ct++):(t=m,0===pt&&Ot(He))),e=t!==m?f.substring(e,ct):t}function $t(){var e,t;return pt++,e=ct,(t=Zt())===m&&(t=zt()),e=t!==m?f.substring(e,ct):t,pt--,e===m&&(t=m,0===pt&&Ot(Je)),e}function Gt(){var e,t;return pt++,e=ct,(t=Zt())===m&&(t=function(){var e,t,r,n,o;pt++,e=ct,t=[],45===f.charCodeAt(ct)?(r=ke,ct++):(r=m,0===pt&&Ot(Le));r===m&&(n=r=ct,pt++,(o=_t())===m&&(o=xt()),pt--,n=o===m?void 0:(ct=n,m),r=n!==m?(f.length>ct?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(x)),o!==m?n=[n,o]:(ct=r,m)):(ct=r,m));if(r!==m)for(;r!==m;)t.push(r),45===f.charCodeAt(ct)?(r=ke,ct++):(r=m,0===pt&&Ot(Le)),r===m&&(n=r=ct,pt++,(o=_t())===m&&(o=xt()),pt--,n=o===m?void 0:(ct=n,m),r=n!==m?(f.length>ct?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(x)),o!==m?n=[n,o]:(ct=r,m)):(ct=r,m));else t=m;e=t!==m?f.substring(e,ct):t;pt--,e===m&&(t=m,0===pt&&Ot(ut));return e}()),e=t!==m?f.substring(e,ct):t,pt--,e===m&&(t=m,0===pt&&Ot(Ke)),e}function Zt(){var e,t,r,n,o;if(pt++,e=ct,48===f.charCodeAt(ct)?(t=Xe,ct++):(t=m,0===pt&&Ot(Ye)),t!==m&&(st=e,t=et()),(e=t)===m){if(t=e=ct,tt.test(f.charAt(ct))?(r=f.charAt(ct),ct++):(r=m,0===pt&&Ot(rt)),r!==m){for(n=[],nt.test(f.charAt(ct))?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(ot));o!==m;)n.push(o),nt.test(f.charAt(ct))?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(ot));t=n!==m?r=[r,n]:(ct=t,m)}else ct=t,t=m;t!==m&&(st=e,t=at(t)),e=t}return pt--,e===m&&(t=m,0===pt&&Ot(Qe)),e}function zt(){var e,t,r,n,o;if(pt++,t=[],n=r=e=ct,pt++,(o=_t())===m&&(o=xt()),pt--,(r=(n=o===m?void 0:(ct=n,m))!==m?(f.length>ct?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(x)),o!==m?n=[n,o]:(ct=r,m)):(ct=r,m))!==m)for(;r!==m;)t.push(r),n=r=ct,pt++,(o=_t())===m&&(o=xt()),pt--,r=(n=o===m?void 0:(ct=n,m))!==m?(f.length>ct?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(x)),o!==m?n=[n,o]:(ct=r,m)):(ct=r,m);else t=m;return e=t!==m?f.substring(e,ct):t,pt--,e===m&&(t=m,0===pt&&Ot(it)),e}var Bt,qt,Ht,Wt=["root"];function Jt(){return 1<Wt.length}function Kt(){return"plural"===Wt[Wt.length-1]}function Qt(){return e&&e.captureLocation?{location:ht()}:{}}if((t=n())!==m&&ct===f.length)return t;throw t!==m&&ct<f.length&&Ot({type:"end"}),Bt=mt,qt=ft<f.length?f.charAt(ft):null,Ht=ft<f.length?wt(ft,ft+1):wt(ft,ft),new er(er.buildMessage(Bt,qt),Bt,qt,Ht)},w=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n},O=/(^|[^\\])#/g;var F=function(){return(F=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},E=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function C(e){var r={};return e.replace(E,function(e){var t=e.length;switch(e[0]){case"G":r.era=4===t?"long":5===t?"narrow":"short";break;case"y":r.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=4===t?"short":5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][t-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][t-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][t-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][t-1];break;case"s":r.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case"z":r.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")}return""}),r}var D=/^\.(?:(0+)(\+|#+)?)?$/g,P=/^(@+)?(\+|#+)?$/g;function N(e){var n={};return e.replace(P,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function j(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function _(e){var t=j(e);return t||{}}function x(e){for(var n={},t=0,r=e;t<r.length;t++){var o=r[t];switch(o.stem){case"percent":n.style="percent";continue;case"currency":n.style="currency",n.currency=o.options[0];continue;case"group-off":n.useGrouping=!1;continue;case"precision-integer":n.maximumFractionDigits=0;continue;case"measure-unit":n.style="unit",n.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":n.notation="compact",n.compactDisplay="short";continue;case"compact-long":n.notation="compact",n.compactDisplay="long";continue;case"scientific":n=F(F(F({},n),{notation:"scientific"}),o.options.reduce(function(e,t){return F(F({},e),_(t))},{}));continue;case"engineering":n=F(F(F({},n),{notation:"engineering"}),o.options.reduce(function(e,t){return F(F({},e),_(t))},{}));continue;case"notation-simple":n.notation="standard";continue;case"unit-width-narrow":n.currencyDisplay="narrowSymbol",n.unitDisplay="narrow";continue;case"unit-width-short":n.currencyDisplay="code",n.unitDisplay="short";continue;case"unit-width-full-name":n.currencyDisplay="name",n.unitDisplay="long";continue;case"unit-width-iso-code":n.currencyDisplay="symbol";continue}if(D.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(D,function(e,t,r){return"."===e?n.maximumFractionDigits=0:"+"===r?n.minimumFractionDigits=r.length:"#"===t[0]?n.maximumFractionDigits=t.length:(n.minimumFractionDigits=t.length,n.maximumFractionDigits=t.length+("string"==typeof r?r.length:0)),""}),o.options.length&&(n=F(F({},n),N(o.options[0])))}else if(P.test(o.stem))n=F(F({},n),N(o.stem));else{var a=j(o.stem);a&&(n=F(F({},n),a))}}return n}function M(e,t){var r=A(e,t);return t&&!1===t.normalizeHashtagInPlural||function l(e){e.forEach(function(s){(I(s)||T(s))&&Object.keys(s.options).forEach(function(e){for(var t,r=s.options[e],n=-1,o=void 0,a=0;a<r.value.length;a++){var i=r.value[a];if(R(i)&&O.test(i.value)){n=a,o=i;break}}if(o){var u=o.value.replace(O,"$1{"+s.value+", number}"),c=A(u);(t=r.value).splice.apply(t,w([n,1],c))}l(r.value)})})}(r),r}var k=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n};function L(e){return JSON.stringify(e.map(function(e){return e&&"object"===S(e)?function(r){return Object.keys(r).sort().map(function(e){var t;return(t={})[e]=r[e],t})}(e):e}))}var U,V,$,G=function(a,i){return void 0===i&&(i={}),function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=L(t),o=n&&i[n];return o||(o=new((e=a).bind.apply(e,k([void 0],t))),n&&(i[n]=o)),o}},Z=(U=function(e,t){return(U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}U(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});($=V=V||{}).MISSING_VALUE="MISSING_VALUE",$.INVALID_VALUE="INVALID_VALUE",$.MISSING_INTL_API="MISSING_INTL_API";var z,B=(z=Error,Z(q,z),q.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},q);function q(e,t,r){var n=z.call(this,e)||this;return n.code=t,n.originalMessage=r,n}var H,W=(Z(J,H=B),J);function J(e,t,r,n){return H.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',"INVALID_VALUE",n)||this}var K,Q=(Z(X,K=B),X);function X(e,t,r){return K.call(this,'Value for "'+e+'" must be of type '+t,"INVALID_VALUE",r)||this}var Y,ee,te,re=(Z(ne,Y=B),ne);function ne(e,t){return Y.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',"MISSING_VALUE",t)||this}(te=ee=ee||{})[te.literal=0]="literal",te[te.object=1]="object";var oe=function(){return(oe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function ae(r,n){return n?Object.keys(r).reduce(function(e,t){return e[t]=function(r,n){return n?oe(oe(oe({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=oe(oe({},r[t]),n[t]||{}),e},{})):r}(r[t],n[t]),e},oe({},r)):r}var ie,ue=(ce.defaultLocale=(new Intl.NumberFormat).resolvedOptions().locale,ce.__parse=M,ce.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},ce);function ce(e,t,r,n){var o=this;if(void 0===t&&(t=ce.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=o.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce(function(e,t){return e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return function e(t,r,n,o,a,i,u){if(1===t.length&&R(t[0]))return[{type:0,value:t[0].value}];for(var c,s,l=[],f=0,m=t;f<m.length;f++){var p=m[f];if(R(p))l.push({type:0,value:p.value});else if(p.type!==Xt.pound){var d=p.value;if(!(a&&d in a))throw new re(d,u);var h=a[d];if(p.type!==Xt.argument)if(p.type!==Xt.date)if(p.type!==Xt.time)if(p.type!==Xt.number){if(p.type===Xt.tag){var g=p.children,y=p.value,v=a[y];if("function"!=typeof v)throw new Q(y,"function",u);var b=e(g,r,n,o,a),A=v.apply(void 0,b.map(function(e){return e.value}));Array.isArray(A)||(A=[A]),l.push.apply(l,A.map(function(e){return{type:"string"==typeof e?0:1,value:e}}))}if(T(p)){if(!(w=p.options[h]||p.options.other))throw new W(p.value,h,Object.keys(p.options),u);l.push.apply(l,e(w.value,r,n,o,a))}else if(I(p)){var w;if(!(w=p.options["="+h])){if(!Intl.PluralRules)throw new B('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",u);var O=n.getPluralRules(r,{type:p.pluralType}).select(h-(p.offset||0));w=p.options[O]||p.options.other}if(!w)throw new W(p.value,h,Object.keys(p.options),u);l.push.apply(l,e(w.value,r,n,o,a,h-(p.offset||0)))}}else F="string"==typeof p.style?o.number[p.style]:(c=p.style)&&"object"===S(c)&&0===c.type?x(p.style.tokens):void 0,l.push({type:0,value:n.getNumberFormat(r,F).format(h)});else{var F="string"==typeof p.style?o.time[p.style]:(s=p.style)&&"object"===S(s)&&1===s.type?C(p.style.pattern):void 0;l.push({type:0,value:n.getDateTimeFormat(r,F).format(h)})}else{var F="string"==typeof p.style?o.date[p.style]:void 0;l.push({type:0,value:n.getDateTimeFormat(r,F).format(h)})}else h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),l.push({type:"string"==typeof h?0:1,value:h})}else"number"==typeof i&&l.push({type:0,value:n.getNumberFormat(r).format(i)})}return function(e){return e.length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e},[])}(l)}(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},"string"==typeof e){if(this.message=e,!ce.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=ce.__parse(e,{normalizeHashtagInPlural:!1})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=ae(ce.formats,r),this.locales=t,this.formatters=n&&n.formatters||function(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:G(Intl.NumberFormat,e.number),getDateTimeFormat:G(Intl.DateTimeFormat,e.dateTime),getPluralRules:G(Intl.PluralRules,e.pluralRules)}}(this.formatterCache)}function se(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}(ie=e.ReactIntlErrorCode||(e.ReactIntlErrorCode={})).FORMAT_ERROR="FORMAT_ERROR",ie.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",ie.INVALID_CONFIG="INVALID_CONFIG",ie.MISSING_DATA="MISSING_DATA",ie.MISSING_TRANSLATION="MISSING_TRANSLATION";var le=function(){c(i,t(Error));var a=m(i);function i(e,t,r,n){var o;return u(this,i),(o=a.call(this,"[React Intl Error ".concat(e,"] ").concat(t," ").concat(n?"\n".concat(n.stack):""))).code=e,o.descriptor=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(f(o),i),o}return i}();function fe(r,e,t){var n=2<arguments.length&&void 0!==t?t:{};return e.reduce(function(e,t){return t in r?e[t]=r[t]:t in n&&(e[t]=n[t]),e},{})}function me(e){se(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var pe={formats:{},messages:{},timeZone:void 0,textComponent:g.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){}};function de(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function he(e){var t=0<arguments.length&&void 0!==e?e:{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},r=Intl.RelativeTimeFormat,n=Intl.ListFormat,o=Intl.DisplayNames;return{getDateTimeFormat:G(Intl.DateTimeFormat,t.dateTime),getNumberFormat:G(Intl.NumberFormat,t.number),getMessageFormat:G(ue,t.message),getRelativeTimeFormat:G(r,t.relativeTime),getPluralRules:G(Intl.PluralRules,t.pluralRules),getListFormat:G(n,t.list),getDisplayNames:G(o,t.displayNames)}}function ge(e,t,r,n){var o,a=e&&e[t];if(a&&(o=a[r]),o)return o;n(new le("UNSUPPORTED_FORMATTER","No ".concat(t," format named: ").concat(r)))}function ye(e,t){return e(t={exports:{}},t.exports),t.exports}var ve,be=ye(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,m=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.memo"):60115,h=r?Symbol.for("react.lazy"):60116;function g(e){if("object"===S(e)&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case f:case a:case u:case i:case p:return e;default:switch(e=e&&e.$$typeof){case s:case m:case c:return e;default:return t}}case h:case d:case o:return t}}}function y(e){return g(e)===f}t.typeOf=g,t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=s,t.ContextProvider=c,t.Element=n,t.ForwardRef=m,t.Fragment=a,t.Lazy=h,t.Memo=d,t.Portal=o,t.Profiler=u,t.StrictMode=i,t.Suspense=p,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===u||e===i||e===p||"object"===S(e)&&null!==e&&(e.$$typeof===h||e.$$typeof===d||e.$$typeof===c||e.$$typeof===s||e.$$typeof===m)},t.isAsyncMode=function(e){return y(e)||g(e)===l},t.isConcurrentMode=y,t.isContextConsumer=function(e){return g(e)===s},t.isContextProvider=function(e){return g(e)===c},t.isElement=function(e){return"object"===S(e)&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return g(e)===m},t.isFragment=function(e){return g(e)===a},t.isLazy=function(e){return g(e)===h},t.isMemo=function(e){return g(e)===d},t.isPortal=function(e){return g(e)===o},t.isProfiler=function(e){return g(e)===u},t.isStrictMode=function(e){return g(e)===i},t.isSuspense=function(e){return g(e)===p}});(ve=be)&&ve.__esModule&&Object.prototype.hasOwnProperty.call(ve,"default")&&ve.default;be.typeOf,be.AsyncMode,be.ConcurrentMode,be.ContextConsumer,be.ContextProvider,be.Element,be.ForwardRef,be.Fragment,be.Lazy,be.Memo,be.Portal,be.Profiler,be.StrictMode,be.Suspense,be.isValidElementType,be.isAsyncMode,be.isConcurrentMode,be.isContextConsumer,be.isContextProvider,be.isElement,be.isForwardRef,be.isFragment,be.isLazy,be.isMemo,be.isPortal,be.isProfiler,be.isStrictMode,be.isSuspense;var Ae=ye(function(e){e.exports=be}),we={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Oe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Fe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Se={};function Re(e){return Ae.isMemo(e)?Fe:Se[e.$$typeof]||we}Se[Ae.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Se[Ae.Memo]=Fe;var Te=Object.defineProperty,Ie=Object.getOwnPropertyNames,Ee=Object.getOwnPropertySymbols,Ce=Object.getOwnPropertyDescriptor,De=Object.getPrototypeOf,Pe=Object.prototype;function Ne(e,t,r){if("string"!=typeof t){if(Pe){var n=De(t);n&&n!==Pe&&Ne(e,n,r)}var o=Ie(t);Ee&&(o=o.concat(Ee(t)));for(var a=Re(e),i=Re(t),u=0;u<o.length;++u){var c=o[u];if(!(Oe[c]||r&&r[c]||i&&i[c]||a&&a[c])){var s=Ce(t,c);try{Te(e,c,s)}catch(e){}}}}return e}var je=Ne;var _e=g.createContext(null),xe=_e.Consumer,Me=_e.Provider,ke=_e;function Le(r,e){function n(t){return g.createElement(xe,null,function(e){return s&&me(e),g.createElement(r,Object.assign({},t,function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},a,e),{ref:u?t.forwardedRef:null}))})}var t=e||{},o=t.intlPropName,a=void 0===o?"intl":o,i=t.forwardRef,u=void 0!==i&&i,c=t.enforceContext,s=void 0===c||c;return n.displayName="injectIntl(".concat(function(e){return e.displayName||e.name||"Component"}(r),")"),n.WrappedComponent=r,je(u?g.forwardRef(function(e,t){return g.createElement(n,Object.assign({},e,{forwardedRef:t}))}):n,r)}var Ue,Ve,$e,Ge,Ze=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};(Ve=Ue=Ue||{}).formatDate="FormattedDate",Ve.formatTime="FormattedTime",Ve.formatNumber="FormattedNumber",Ve.formatList="FormattedList",Ve.formatDisplayName="FormattedDisplayName",(Ge=$e=$e||{}).formatDate="FormattedDateParts",Ge.formatTime="FormattedTimeParts",Ge.formatNumber="FormattedNumberParts",Ge.formatList="FormattedListParts";function ze(o){return g.createElement(ke.Consumer,null,function(e){me(e);var t=o.value,r=o.children,n=Ze(o,["value","children"]);return r(e.formatNumberToParts(t,n))})}function Be(i){function e(a){return g.createElement(ke.Consumer,null,function(e){me(e);var t=a.value,r=a.children,n=Ze(a,["value","children"]),o="string"==typeof t?new Date(t||0):t;return r("formatDate"===i?e.formatDateToParts(o,n):e.formatTimeToParts(o,n))})}return e.displayName=$e[i],e}function qe(u){function e(i){return g.createElement(ke.Consumer,null,function(e){me(e);var t=i.value,r=i.children,n=Ze(i,["value","children"]),o=e[u](t,n);if("function"==typeof r)return r(o);var a=e.textComponent||g.Fragment;return g.createElement(a,null,o)})}return e.displayName=Ue[u],e}ze.displayName="FormattedNumberParts";var He=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function We(e,t,r){var n=e.locale,o=e.formats,a=e.onError,i=2<arguments.length&&void 0!==r?r:{},u=i.format,c=u&&ge(o,"number",u,a)||{};return t(n,fe(i,He,c))}var Je=["numeric","style"];function Ke(t,e,r,n){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:{};n=n||"second",Intl.RelativeTimeFormat||t.onError(new B('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',"MISSING_INTL_API"));try{return function(e,t,r){var n=e.locale,o=e.formats,a=e.onError,i=2<arguments.length&&void 0!==r?r:{},u=i.format,c=!!u&&ge(o,"relative",u,a)||{};return t(n,fe(i,Je,c))}(t,e,o).format(r,n)}catch(e){t.onError(new le("FORMAT_ERROR","Error formatting relative time.",e))}return String(r)}var Qe=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Xe(e,t,r,n){var o=e.locale,a=e.formats,i=e.onError,u=e.timeZone,c=3<arguments.length&&void 0!==n?n:{},s=c.format,l=Object.assign(Object.assign({},u&&{timeZone:u}),s&&ge(a,t,s,i)),f=fe(c,Qe,l);return"time"!==t||f.hour||f.minute||f.second||(f=Object.assign(Object.assign({},f),{hour:"numeric",minute:"numeric"})),r(o,f)}var Ye=["localeMatcher","type"];function et(r,n){return Object.keys(r).reduce(function(e,t){return e[t]=Object.assign({timeZone:n},r[t]),e},{})}function tt(r,n){return Object.keys(Object.assign(Object.assign({},r),n)).reduce(function(e,t){return e[t]=Object.assign(Object.assign({},r[t]||{}),n[t]||{}),e},{})}function rt(e,t){if(!t)return e;var r=ue.formats;return Object.assign(Object.assign(Object.assign({},r),e),{date:tt(et(r.date,t),et(e.date||{},t)),time:tt(et(r.time,t),et(e.time||{},t))})}function nt(e,t){var r=e.locale,n=e.formats,o=e.messages,a=e.defaultLocale,i=e.defaultFormats,u=e.onError,c=e.timeZone,s=e.wrapRichTextChunksInFragment,l=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{id:""},f=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},m=l.id,p=l.defaultMessage;se(!!m,"[React Intl] An `id` must be provided to format a message.");var d=o&&o[String(m)];n=rt(n,c),i=rt(i,c);var h="";if(d)try{h=t.getMessageFormat(d,r,n,{formatters:t}).format(f)}catch(e){u(new le("FORMAT_ERROR",'Error formatting message: "'.concat(m,'" for locale: "').concat(r,'"')+(p?", using default message as fallback.":""),l,e))}else(!p||r&&r.toLowerCase()!==a.toLowerCase())&&u(new le("MISSING_TRANSLATION",'Missing message: "'.concat(m,'" for locale: "').concat(r,'"')+(p?", using default message as fallback.":""),l));if(!h&&p)try{h=t.getMessageFormat(p,a,i).format(f)}catch(e){u(new le("FORMAT_ERROR",'Error formatting the default message for: "'.concat(m,'"'),l,e))}return h?Array.isArray(h)&&s?function(e){return g.createElement.apply(g,[g.Fragment,null].concat(y(e)))}(h):h:(u(new le("FORMAT_ERROR",'Cannot format message: "'.concat(m,'", ')+"using message ".concat(d||p?"source":"id"," as fallback."),l)),"string"==typeof d?d||p||String(m):p||String(m))}function ot(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var a=0;a<o;a++){var i=r[a];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}var at=["localeMatcher","type","style"],it=Date.now();function ut(e,t,r){var n=e.locale,o=e.onError,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};Intl.ListFormat||o(new B('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',"MISSING_INTL_API"));var i=fe(a,at);try{var u={},c=r.map(function(e,t){if("object"!==S(e))return String(e);var r=function(e){return"".concat(it,"_").concat(e,"_").concat(it)}(t);return u[r]=e,r});return Object.keys(u).length?t(n,i).formatToParts(c).reduce(function(e,t){var r=t.value;return u[r]?e.push(u[r]):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e},[]):t(n,i).format(c)}catch(e){o(new le("FORMAT_ERROR","Error formatting list.",e))}return r}var ct=["localeMatcher","style","type","fallback"];var st=ot;function lt(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError}}function ft(e,t){var r=he(t),n=Object.assign(Object.assign({},pe),e),o=n.locale,a=n.defaultLocale,i=n.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&i?i(new le("MISSING_DATA",'Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(a,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&i&&i(new le("MISSING_DATA",'Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(a,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):(i&&i(new le("INVALID_CONFIG",'"locale" was not configured, using "'.concat(a,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/API.md#intlshape for more details'))),n.locale=n.defaultLocale||"en"),Object.assign(Object.assign({},n),{formatters:r,formatNumber:function(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};try{return We(t,e,n).format(r)}catch(e){t.onError(new le("FORMAT_ERROR","Error formatting number.",e))}return String(r)}.bind(null,n,r.getNumberFormat),formatNumberToParts:function(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};try{return We(t,e,n).formatToParts(r)}catch(e){t.onError(new le("FORMAT_ERROR","Error formatting number.",e))}return[]}.bind(null,n,r.getNumberFormat),formatRelativeTime:Ke.bind(null,n,r.getRelativeTimeFormat),formatDate:function(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof r?new Date(r||0):r;try{return Xe(t,"date",e,n).format(o)}catch(e){t.onError(new le("FORMAT_ERROR","Error formatting date.",e))}return String(o)}.bind(null,n,r.getDateTimeFormat),formatDateToParts:function(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof r?new Date(r||0):r;try{return Xe(t,"date",e,n).formatToParts(o)}catch(e){t.onError(new le("FORMAT_ERROR","Error formatting date.",e))}return[]}.bind(null,n,r.getDateTimeFormat),formatTime:function(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof r?new Date(r||0):r;try{return Xe(t,"time",e,n).format(o)}catch(e){t.onError(new le("FORMAT_ERROR","Error formatting time.",e))}return String(o)}.bind(null,n,r.getDateTimeFormat),formatTimeToParts:function(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof r?new Date(r||0):r;try{return Xe(t,"time",e,n).formatToParts(o)}catch(e){t.onError(new le("FORMAT_ERROR","Error formatting time.",e))}return[]}.bind(null,n,r.getDateTimeFormat),formatPlural:function(e,t,r){var n=e.locale,o=e.onError,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};Intl.PluralRules||o(new B('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API"));var i=fe(a,Ye);try{return t(n,i).select(r)}catch(e){o(new le("FORMAT_ERROR","Error formatting plural.",e))}return"other"}.bind(null,n,r.getPluralRules),formatMessage:nt.bind(null,n,r),formatList:ut.bind(null,n,r.getListFormat),formatDisplayName:function(e,t,r){var n=e.locale,o=e.onError,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};Intl.DisplayNames||o(new B('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',"MISSING_INTL_API"));var i=fe(a,ct);try{return t(n,i).of(r)}catch(e){o(new le("FORMAT_ERROR","Error formatting display name.",e))}}.bind(null,n,r.getDisplayNames)})}var mt=function(){c(r,g.PureComponent);var t=m(r);function r(){var e;return u(this,r),(e=t.apply(this,arguments)).cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},e.state={cache:e.cache,intl:ft(lt(e.props),e.cache),prevConfig:lt(e.props)},e}return o(r,[{key:"render",value:function(){return me(this.state.intl),g.createElement(Me,{value:this.state.intl},this.props.children)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.prevConfig,n=t.cache,o=lt(e);return st(r,o)?null:{intl:ft(o,n),prevConfig:o}}}]),r}();mt.displayName="IntlProvider",mt.defaultProps=pe;var pt=60,dt=3600;function ht(e){var t=Math.abs(e);return t<pt?"second":t<dt?"minute":t<86400?"hour":"day"}function gt(e){switch(e){case"second":return 1;case"minute":return pt;case"hour":return dt;default:return 86400}}function yt(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return e*pt;default:return e*dt}}var vt=["second","minute","hour"];function bt(e){var t=0<arguments.length&&void 0!==e?e:"second";return vt.includes(t)}var At=function(){c(n,g.PureComponent);var r=m(n);function n(e){var t;return u(this,n),(t=r.call(this,e))._updateTimer=null,t.state={prevUnit:t.props.unit,prevValue:t.props.value,currentValueInSeconds:bt(t.props.unit)?yt(t.props.value,t.props.unit):0},se(!e.updateIntervalInSeconds||!(!e.updateIntervalInSeconds||!bt(e.unit)),"Cannot schedule update with unit longer than hour"),t}return o(n,[{key:"scheduleNextUpdate",value:function(e,t){var r=this,n=e.updateIntervalInSeconds,o=e.unit,a=t.currentValueInSeconds;if(clearTimeout(this._updateTimer),this._updateTimer=null,n&&bt(o)){var i=a-n,u=ht(i);if("day"!==u){var c=gt(u),s=i-i%c,l=a<=s?s-c:s,f=Math.abs(l-a);this._updateTimer=setTimeout(function(){return r.setState({currentValueInSeconds:l})},1e3*f)}}}},{key:"componentDidMount",value:function(){this.scheduleNextUpdate(this.props,this.state)}},{key:"componentDidUpdate",value:function(){this.scheduleNextUpdate(this.props,this.state)}},{key:"componentWillUnmount",value:function(){clearTimeout(this._updateTimer),this._updateTimer=null}},{key:"render",value:function(){var p=this;return g.createElement(ke.Consumer,null,function(e){me(e);var t=e.formatRelativeTime,r=e.textComponent,n=p.props,o=n.children,a=n.value,i=n.unit,u=n.updateIntervalInSeconds,c=p.state.currentValueInSeconds,s=a||0,l=i;if(bt(i)&&"number"==typeof c&&u){var f=gt(l=ht(c));s=Math.round(c/f)}var m=t(s,l,Object.assign({},p.props));return"function"==typeof o?o(m):r?g.createElement(r,null,m):m})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.unit!==t.prevUnit||e.value!==t.prevValue?{prevValue:e.value,prevUnit:e.unit,currentValueInSeconds:bt(e.unit)?yt(e.value,e.unit):0}:null}}]),n}();At.displayName="FormattedRelativeTime",At.defaultProps={value:0,unit:"second"};function wt(e){var t=e.value,r=e.other,n=e.children,o=e.intl,a=o.formatPlural,i=o.textComponent,u=e[a(t,e)]||r;return"function"==typeof n?n(u):i?g.createElement(i,null,u):u}wt.defaultProps={type:"cardinal"},wt.displayName="FormattedPlural";var Ot=Le(wt),Ft=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},St=ot;function Rt(e,t){return nt(Object.assign(Object.assign({},pe),{locale:"en"}),he(),e,t)}var Tt=function(){c(t,g.Component);var e=m(t);function t(){return u(this,t),e.apply(this,arguments)}return o(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props,r=t.values,n=Ft(t,["values"]),o=e.values,a=Ft(e,["values"]);return!St(o,r)||!St(n,a)}},{key:"render",value:function(){var h=this;return g.createElement(ke.Consumer,null,function(e){h.props.defaultMessage||me(e);var t=e||{},r=t.formatMessage,n=void 0===r?Rt:r,o=t.textComponent,a=void 0===o?g.Fragment:o,i=h.props,u=i.id,c=i.description,s=i.defaultMessage,l=i.values,f=i.children,m=i.tagName,p=void 0===m?a:m,d=n({id:u,description:c,defaultMessage:s},l);return Array.isArray(d)||(d=[d]),"function"==typeof f?f.apply(void 0,y(d)):p?g.createElement.apply(g,[p,null].concat(y(d))):d})}}]),t}();Tt.displayName="FormattedMessage",Tt.defaultProps={values:{}};var It=qe("formatDate"),Et=qe("formatTime"),Ct=qe("formatNumber"),Dt=qe("formatList"),Pt=qe("formatDisplayName"),Nt=Be("formatDate"),jt=Be("formatTime");e.FormattedDate=It,e.FormattedDateParts=Nt,e.FormattedDisplayName=Pt,e.FormattedList=Dt,e.FormattedMessage=Tt,e.FormattedNumber=Ct,e.FormattedNumberParts=ze,e.FormattedPlural=Ot,e.FormattedRelativeTime=At,e.FormattedTime=Et,e.FormattedTimeParts=jt,e.IntlContext=ke,e.IntlProvider=mt,e.RawIntlProvider=Me,e.ReactIntlError=le,e.createIntl=ft,e.createIntlCache=de,e.defineMessages=function(e){return e},e.injectIntl=Le,e.useIntl=function(){var e=g.useContext(ke);return me(e),e},Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=react-intl.min.js.map