react-intl 3.9.1 → 3.9.2

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,h){"use strict";function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e,t){return e(t={exports:{}},t.exports),t.exports}var n=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t._=function(e){return e},t.defineMessages=function(e){return e}});t(n);n._;var Ct,o,a=n.defineMessages;function b(e){return(b="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 u(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 s(e,t,r){return t&&u(e.prototype,t),r&&u(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&&f(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function w(e){return e.type===Ct.literal}function A(e){return e.type===Ct.select}function F(e){return e.type===Ct.plural}(o=Ct=Ct||{})[o.literal=0]="literal",o[o.argument=1]="argument",o[o.number=2]="number",o[o.date=3]="date",o[o.time=4]="time",o[o.select=5]="select",o[o.plural=6]="plural";var p,d,g=(p=function(e,t){return(p=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}p(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Pt=function(){return(Pt=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)},Tt=(d=Error,g(y,d),y.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},y);function y(e,t,r,n){var o=d.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,y),o}var O=function(f,e){e=void 0!==e?e:{};var t,r,n,o,m={},a={start:rt},i=rt,u=function(e){return e.join("")},s=function(e){return Pt({type:Ct.literal,value:e},Ot())},c=Qe("argumentElement"),p="{",d=Je("{",!1),g="}",h=Je("}",!1),l=function(e){return Pt({type:Ct.argument,value:e},Ot())},v=Qe("numberSkeletonId"),y=/^['\/{}]/,b=Ke(["'","/","{","}"],!1,!1),w={type:"any"},A=Qe("numberSkeletonTokenOption"),F="/",O=Je("/",!1),C=function(e){return e},P=Qe("numberSkeletonToken"),T=function(e,t){return{stem:e,options:t}},x=function(e){return Pt({type:0,tokens:e},Ot())},E="::",D=Je("::",!1),j=function(e){return e},S=function(e){return e.replace(/\s*$/,"")},M=",",k=Je(",",!1),I="number",R=Je("number",!1),_=function(e,t,r){return Pt({type:"number"===t?Ct.number:"date"===t?Ct.date:Ct.time,style:r&&r[2],value:e},Ot())},N="'",L=Je("'",!1),$=/^[^']/,Z=Ke(["'"],!0,!1),z=/^[^a-zA-Z'{}]/,H=Ke([["a","z"],["A","Z"],"'","{","}"],!0,!1),B=/^[a-zA-Z]/,U=Ke([["a","z"],["A","Z"]],!1,!1),V=function(e){return Pt({type:1,pattern:e},Ot())},q="date",W=Je("date",!1),G="time",X=Je("time",!1),J="plural",K=Je("plural",!1),Q="selectordinal",Y=Je("selectordinal",!1),ee="offset:",te=Je("offset:",!1),re=function(e,t,r,n){return Pt({type:Ct.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&&Xe('Duplicate option "'+r+'" in plural element: "'+We()+'"',Ge()),e[r]={value:n,location:o},e},{})},Ot())},ne="select",oe=Je("select",!1),ae=function(e,t){return Pt({type:Ct.select,value:e,options:t.reduce(function(e,t){var r=t.id,n=t.value,o=t.location;return r in e&&Xe('Duplicate option "'+r+'" in select element: "'+We()+'"',Ge()),e[r]={value:n,location:o},e},{})},Ot())},ie="=",ue=Je("=",!1),se=function(e,t){return Pt({id:e,value:t},Ot())},ce=function(e,t){return Pt({id:e,value:t},Ot())},le=Qe("whitespace pattern"),fe=/^[\t-\r \x85\u200E\u200F\u2028\u2029]/,me=Ke([["\t","\r"]," ","…","‎","‏","\u2028","\u2029"],!1,!1),pe=Qe("syntax pattern"),de=/^[!-\/:-@[-\^`{-~\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]/,ge=Ke([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←","⑟"],["─","❵"],["➔","⯿"],["⸀","⹿"],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),he=Qe("optional whitespace"),ve=Qe("number"),ye="-",be=Je("-",!1),we=function(e,t){return t?e?-t:t:0},Ae=Qe("double apostrophes"),Fe="''",Oe=Je("''",!1),Ce=function(){return"'"},Pe=/^[{}]/,Te=Ke(["{","}"],!1,!1),xe=function(e,t){return e+t.replace("''","'")},Ee=/^[^{}]/,De=Ke(["{","}"],!0,!1),je=Qe("argNameOrNumber"),Se=Qe("argNumber"),Me="0",ke=Je("0",!1),Ie=function(){return 0},Re=/^[1-9]/,_e=Ke([["1","9"]],!1,!1),Ne=/^[0-9]/,Le=Ke([["0","9"]],!1,!1),$e=function(e){return parseInt(e.join(""),10)},Ze=Qe("argName"),ze=0,He=0,Be=[{line:1,column:1}],Ue=0,Ve=[],qe=0;if(void 0!==e.startRule){if(!(e.startRule in a))throw new Error("Can't start parsing from rule \""+e.startRule+'".');i=a[e.startRule]}function We(){return f.substring(He,ze)}function Ge(){return et(He,ze)}function Xe(e,t){throw function(e,t){return new Tt(e,[],"",t)}(e,t=void 0!==t?t:et(He,ze))}function Je(e,t){return{type:"literal",text:e,ignoreCase:t}}function Ke(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Qe(e){return{type:"other",description:e}}function Ye(e){var t,r=Be[e];if(r)return r;for(t=e-1;!Be[t];)t--;for(r={line:(r=Be[t]).line,column:r.column};t<e;)10===f.charCodeAt(t)?(r.line++,r.column=1):r.column++,t++;return Be[e]=r}function et(e,t){var r=Ye(e),n=Ye(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function tt(e){ze<Ue||(Ue<ze&&(Ue=ze,Ve=[]),Ve.push(e))}function rt(){return nt()}function nt(){var e,t;for(e=[],t=ot();t!==m;)e.push(t),t=ot();return e}function ot(){var e;return(e=function(){var e,t;e=ze,(t=at())!==m&&(He=e,t=s(t));return e=t}())===m&&(e=function(){var e,t,r,n,o;qe++,e=ze,123===f.charCodeAt(ze)?(t=p,ze++):(t=m,0===qe&&tt(d));e=t!==m?(r=gt(),r!==m?(n=wt())!==m?gt()!==m?(125===f.charCodeAt(ze)?(o=g,ze++):(o=m,0===qe&&tt(h)),o!==m?(He=e,t=l(n)):(ze=e,m)):(ze=e,m):(ze=e,m):(ze=e,m)):(ze=e,m);qe--,e===m&&(t=m,0===qe&&tt(c));return e}())===m&&(e=function(){var e;(e=function(){var e,t,r,n,o,a,i,u,s,c;e=ze,123===f.charCodeAt(ze)?(t=p,ze++):(t=m,0===qe&&tt(d));e=t!==m?(r=gt(),r!==m?(n=wt())!==m?gt()!==m?(44===f.charCodeAt(ze)?(o=M,ze++):(o=m,0===qe&&tt(k)),o!==m?gt()!==m?(f.substr(ze,6)===I?(a=I,ze+=6):(a=m,0===qe&&tt(R)),a!==m?gt()!==m?(i=ze,44===f.charCodeAt(ze)?(u=M,ze++):(u=m,0===qe&&tt(k)),(i=u!==m?(s=gt())!==m?(c=function(){var e,t,r;e=ze,f.substr(ze,2)===E?(t=E,ze+=2):(t=m,0===qe&&tt(D));e=t!==m?(r=function(){var e,t,r;if(e=ze,t=[],(r=st())!==m)for(;r!==m;)t.push(r),r=st();else t=m;t!==m&&(He=e,t=x(t));return e=t}(),r!==m?(He=e,t=j(r)):(ze=e,m)):(ze=e,m);e===m&&(e=ze,(t=at())!==m&&(He=e,t=S(t)),e=t);return e}())!==m?u=[u,s,c]:(ze=i,m):(ze=i,m):(ze=i,m))===m&&(i=null),i!==m?(u=gt())!==m?(125===f.charCodeAt(ze)?(s=g,ze++):(s=m,0===qe&&tt(h)),s!==m?(He=e,t=_(n,a,i)):(ze=e,m)):(ze=e,m):(ze=e,m)):(ze=e,m):(ze=e,m)):(ze=e,m):(ze=e,m)):(ze=e,m):(ze=e,m):(ze=e,m)):(ze=e,m);return e}())===m&&(e=function(){var e,t,r,n,o,a,i,u,s,c;e=ze,123===f.charCodeAt(ze)?(t=p,ze++):(t=m,0===qe&&tt(d));e=t!==m?(r=gt(),r!==m?(n=wt())!==m?gt()!==m?(44===f.charCodeAt(ze)?(o=M,ze++):(o=m,0===qe&&tt(k)),o!==m?gt()!==m?(f.substr(ze,4)===q?(a=q,ze+=4):(a=m,0===qe&&tt(W)),a===m&&(f.substr(ze,4)===G?(a=G,ze+=4):(a=m,0===qe&&tt(X))),a!==m?gt()!==m?(i=ze,44===f.charCodeAt(ze)?(u=M,ze++):(u=m,0===qe&&tt(k)),(i=u!==m?(s=gt())!==m?(c=function(){var e,t,r;e=ze,f.substr(ze,2)===E?(t=E,ze+=2):(t=m,0===qe&&tt(D));e=t!==m?(r=function(){var e,t,r,n;t=e=ze,r=[],(n=ct())===m&&(n=lt());if(n!==m)for(;n!==m;)r.push(n),(n=ct())===m&&(n=lt());else r=m;t=r!==m?f.substring(t,ze):r;t!==m&&(He=e,t=V(t));return e=t}(),r!==m?(He=e,t=j(r)):(ze=e,m)):(ze=e,m);e===m&&(e=ze,(t=at())!==m&&(He=e,t=S(t)),e=t);return e}())!==m?u=[u,s,c]:(ze=i,m):(ze=i,m):(ze=i,m))===m&&(i=null),i!==m?(u=gt())!==m?(125===f.charCodeAt(ze)?(s=g,ze++):(s=m,0===qe&&tt(h)),s!==m?(He=e,t=_(n,a,i)):(ze=e,m)):(ze=e,m):(ze=e,m)):(ze=e,m):(ze=e,m)):(ze=e,m):(ze=e,m)):(ze=e,m):(ze=e,m):(ze=e,m)):(ze=e,m);return e}());return e}())===m&&(e=function(){var e,t,r,n,o,a,i,u,s,c,l;e=ze,123===f.charCodeAt(ze)?(t=p,ze++):(t=m,0===qe&&tt(d));if(t!==m)if(gt()!==m)if((r=wt())!==m)if(gt()!==m)if(44===f.charCodeAt(ze)?(n=M,ze++):(n=m,0===qe&&tt(k)),n!==m)if(gt()!==m)if(f.substr(ze,6)===J?(o=J,ze+=6):(o=m,0===qe&&tt(K)),o===m&&(f.substr(ze,13)===Q?(o=Q,ze+=13):(o=m,0===qe&&tt(Y))),o!==m)if(gt()!==m)if(44===f.charCodeAt(ze)?(a=M,ze++):(a=m,0===qe&&tt(k)),a!==m)if(gt()!==m)if(i=ze,f.substr(ze,7)===ee?(u=ee,ze+=7):(u=m,0===qe&&tt(te)),(i=u!==m?(s=gt())!==m?(c=ht())!==m?u=[u,s,c]:(ze=i,m):(ze=i,m):(ze=i,m))===m&&(i=null),i!==m)if((u=gt())!==m){if(s=[],(c=mt())!==m)for(;c!==m;)s.push(c),c=mt();else s=m;e=s!==m?(c=gt())!==m?(125===f.charCodeAt(ze)?(l=g,ze++):(l=m,0===qe&&tt(h)),l!==m?(He=e,t=re(r,o,i,s)):(ze=e,m)):(ze=e,m):(ze=e,m)}else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;return e}())===m&&(e=function(){var e,t,r,n,o,a,i,u,s;e=ze,123===f.charCodeAt(ze)?(t=p,ze++):(t=m,0===qe&&tt(d));if(t!==m)if(gt()!==m)if((r=wt())!==m)if(gt()!==m)if(44===f.charCodeAt(ze)?(n=M,ze++):(n=m,0===qe&&tt(k)),n!==m)if(gt()!==m)if(f.substr(ze,6)===ne?(o=ne,ze+=6):(o=m,0===qe&&tt(oe)),o!==m)if(gt()!==m)if(44===f.charCodeAt(ze)?(a=M,ze++):(a=m,0===qe&&tt(k)),a!==m)if(gt()!==m){if(i=[],(u=ft())!==m)for(;u!==m;)i.push(u),u=ft();else i=m;e=i!==m?(u=gt())!==m?(125===f.charCodeAt(ze)?(s=g,ze++):(s=m,0===qe&&tt(h)),s!==m?(He=e,t=ae(r,i)):(ze=e,m)):(ze=e,m):(ze=e,m)}else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;return e}()),e}function at(){var e,t,r;if(e=ze,t=[],(r=vt())===m&&(r=yt())===m&&(r=bt()),r!==m)for(;r!==m;)t.push(r),(r=vt())===m&&(r=yt())===m&&(r=bt());else t=m;return t!==m&&(He=e,t=u(t)),e=t}function it(){var e,t,r,n,o;if(qe++,t=[],n=r=e=ze,qe++,(o=pt())===m&&(y.test(f.charAt(ze))?(o=f.charAt(ze),ze++):(o=m,0===qe&&tt(b))),qe--,(r=(n=o===m?void 0:(ze=n,m))!==m?(f.length>ze?(o=f.charAt(ze),ze++):(o=m,0===qe&&tt(w)),o!==m?n=[n,o]:(ze=r,m)):(ze=r,m))!==m)for(;r!==m;)t.push(r),n=r=ze,qe++,(o=pt())===m&&(y.test(f.charAt(ze))?(o=f.charAt(ze),ze++):(o=m,0===qe&&tt(b))),qe--,r=(n=o===m?void 0:(ze=n,m))!==m?(f.length>ze?(o=f.charAt(ze),ze++):(o=m,0===qe&&tt(w)),o!==m?n=[n,o]:(ze=r,m)):(ze=r,m);else t=m;return e=t!==m?f.substring(e,ze):t,qe--,e===m&&(t=m,0===qe&&tt(v)),e}function ut(){var e,t,r;return qe++,e=ze,47===f.charCodeAt(ze)?(t=F,ze++):(t=m,0===qe&&tt(O)),e=t!==m&&(r=it())!==m?(He=e,t=C(r)):(ze=e,m),qe--,e===m&&(t=m,0===qe&&tt(A)),e}function st(){var e,t,r,n;if(qe++,e=ze,gt()!==m)if((t=it())!==m){for(r=[],n=ut();n!==m;)r.push(n),n=ut();e=r!==m?(He=e,T(t,r)):(ze=e,m)}else ze=e,e=m;else ze=e,e=m;return qe--,e===m&&(m,0===qe&&tt(P)),e}function ct(){var e,t,r,n;if(e=ze,39===f.charCodeAt(ze)?(t=N,ze++):(t=m,0===qe&&tt(L)),t!==m){if(r=[],(n=vt())===m&&($.test(f.charAt(ze))?(n=f.charAt(ze),ze++):(n=m,0===qe&&tt(Z))),n!==m)for(;n!==m;)r.push(n),(n=vt())===m&&($.test(f.charAt(ze))?(n=f.charAt(ze),ze++):(n=m,0===qe&&tt(Z)));else r=m;e=r!==m?(39===f.charCodeAt(ze)?(n=N,ze++):(n=m,0===qe&&tt(L)),n!==m?t=[t,r,n]:(ze=e,m)):(ze=e,m)}else ze=e,e=m;if(e===m)if(e=[],(t=vt())===m&&(z.test(f.charAt(ze))?(t=f.charAt(ze),ze++):(t=m,0===qe&&tt(H))),t!==m)for(;t!==m;)e.push(t),(t=vt())===m&&(z.test(f.charAt(ze))?(t=f.charAt(ze),ze++):(t=m,0===qe&&tt(H)));else e=m;return e}function lt(){var e,t;if(e=[],B.test(f.charAt(ze))?(t=f.charAt(ze),ze++):(t=m,0===qe&&tt(U)),t!==m)for(;t!==m;)e.push(t),B.test(f.charAt(ze))?(t=f.charAt(ze),ze++):(t=m,0===qe&&tt(U));else e=m;return e}function ft(){var e,t,r,n,o;return e=ze,e=gt()!==m&&(t=Ft())!==m&&gt()!==m?(123===f.charCodeAt(ze)?(r=p,ze++):(r=m,0===qe&&tt(d)),r!==m&&(n=nt())!==m?(125===f.charCodeAt(ze)?(o=g,ze++):(o=m,0===qe&&tt(h)),o!==m?(He=e,se(t,n)):(ze=e,m)):(ze=e,m)):(ze=e,m)}function mt(){var e,t,r,n,o;return e=ze,e=gt()!==m&&(t=function(){var e,t,r,n;return t=e=ze,61===f.charCodeAt(ze)?(r=ie,ze++):(r=m,0===qe&&tt(ue)),(e=(t=r!==m&&(n=ht())!==m?r=[r,n]:(ze=t,m))!==m?f.substring(e,ze):t)===m&&(e=Ft()),e}())!==m&&gt()!==m?(123===f.charCodeAt(ze)?(r=p,ze++):(r=m,0===qe&&tt(d)),r!==m&&(n=nt())!==m?(125===f.charCodeAt(ze)?(o=g,ze++):(o=m,0===qe&&tt(h)),o!==m?(He=e,ce(t,n)):(ze=e,m)):(ze=e,m)):(ze=e,m)}function pt(){var e;return qe++,fe.test(f.charAt(ze))?(e=f.charAt(ze),ze++):(e=m,0===qe&&tt(me)),qe--,e===m&&0===qe&&tt(le),e}function dt(){var e;return qe++,de.test(f.charAt(ze))?(e=f.charAt(ze),ze++):(e=m,0===qe&&tt(ge)),qe--,e===m&&0===qe&&tt(pe),e}function gt(){var e,t,r;for(qe++,e=ze,t=[],r=pt();r!==m;)t.push(r),r=pt();return e=t!==m?f.substring(e,ze):t,qe--,e===m&&(t=m,0===qe&&tt(he)),e}function ht(){var e,t,r;return qe++,e=ze,45===f.charCodeAt(ze)?(t=ye,ze++):(t=m,0===qe&&tt(be)),t===m&&(t=null),e=t!==m&&(r=At())!==m?(He=e,t=we(t,r)):(ze=e,m),qe--,e===m&&(t=m,0===qe&&tt(ve)),e}function vt(){var e,t;return qe++,e=ze,f.substr(ze,2)===Fe?(t=Fe,ze+=2):(t=m,0===qe&&tt(Oe)),t!==m&&(He=e,t=Ce()),qe--,(e=t)===m&&(t=m,0===qe&&tt(Ae)),e}function yt(){var e,t,r,n,o,a;if(e=ze,39===f.charCodeAt(ze)?(t=N,ze++):(t=m,0===qe&&tt(L)),t!==m)if(Pe.test(f.charAt(ze))?(r=f.charAt(ze),ze++):(r=m,0===qe&&tt(Te)),r!==m){for(n=ze,o=[],f.substr(ze,2)===Fe?(a=Fe,ze+=2):(a=m,0===qe&&tt(Oe)),a===m&&($.test(f.charAt(ze))?(a=f.charAt(ze),ze++):(a=m,0===qe&&tt(Z)));a!==m;)o.push(a),f.substr(ze,2)===Fe?(a=Fe,ze+=2):(a=m,0===qe&&tt(Oe)),a===m&&($.test(f.charAt(ze))?(a=f.charAt(ze),ze++):(a=m,0===qe&&tt(Z)));e=(n=o!==m?f.substring(n,ze):o)!==m?(39===f.charCodeAt(ze)?(o=N,ze++):(o=m,0===qe&&tt(L)),o!==m?(He=e,t=xe(r,n)):(ze=e,m)):(ze=e,m)}else ze=e,e=m;else ze=e,e=m;return e}function bt(){var e,t;return e=ze,Ee.test(f.charAt(ze))?(t=f.charAt(ze),ze++):(t=m,0===qe&&tt(De)),e=t!==m?f.substring(e,ze):t}function wt(){var e,t;return qe++,e=ze,(t=At())===m&&(t=Ft()),e=t!==m?f.substring(e,ze):t,qe--,e===m&&(t=m,0===qe&&tt(je)),e}function At(){var e,t,r,n,o;if(qe++,e=ze,48===f.charCodeAt(ze)?(t=Me,ze++):(t=m,0===qe&&tt(ke)),t!==m&&(He=e,t=Ie()),(e=t)===m){if(t=e=ze,Re.test(f.charAt(ze))?(r=f.charAt(ze),ze++):(r=m,0===qe&&tt(_e)),r!==m){for(n=[],Ne.test(f.charAt(ze))?(o=f.charAt(ze),ze++):(o=m,0===qe&&tt(Le));o!==m;)n.push(o),Ne.test(f.charAt(ze))?(o=f.charAt(ze),ze++):(o=m,0===qe&&tt(Le));t=n!==m?r=[r,n]:(ze=t,m)}else ze=t,t=m;t!==m&&(He=e,t=$e(t)),e=t}return qe--,e===m&&(t=m,0===qe&&tt(Se)),e}function Ft(){var e,t,r,n,o;if(qe++,t=[],n=r=e=ze,qe++,(o=pt())===m&&(o=dt()),qe--,(r=(n=o===m?void 0:(ze=n,m))!==m?(f.length>ze?(o=f.charAt(ze),ze++):(o=m,0===qe&&tt(w)),o!==m?n=[n,o]:(ze=r,m)):(ze=r,m))!==m)for(;r!==m;)t.push(r),n=r=ze,qe++,(o=pt())===m&&(o=dt()),qe--,r=(n=o===m?void 0:(ze=n,m))!==m?(f.length>ze?(o=f.charAt(ze),ze++):(o=m,0===qe&&tt(w)),o!==m?n=[n,o]:(ze=r,m)):(ze=r,m);else t=m;return e=t!==m?f.substring(e,ze):t,qe--,e===m&&(t=m,0===qe&&tt(Ze)),e}function Ot(){return e&&e.captureLocation?{location:Ge()}:{}}if((t=i())!==m&&ze===f.length)return t;throw t!==m&&ze<f.length&&tt({type:"end"}),r=Ve,n=Ue<f.length?f.charAt(Ue):null,o=Ue<f.length?et(Ue,Ue+1):et(Ue,Ue),new Tt(Tt.buildMessage(r,n),r,n,o)},C=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},P=/(^|[^\\])#/g;var T=function(){return(T=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)},x=/(?:[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 E(e){var r={};return e.replace(x,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,j=/^(@+)?(\+|#+)?$/g;function S(e){var n={};return e.replace(j,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 M(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 k(e){var t=M(e);return t||{}}function I(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=T(T(T({},n),{notation:"scientific"}),o.options.reduce(function(e,t){return T(T({},e),k(t))},{}));continue;case"engineering":n=T(T(T({},n),{notation:"engineering"}),o.options.reduce(function(e,t){return T(T({},e),k(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=T(T({},n),S(o.options[0])))}else if(j.test(o.stem))n=T(T({},n),S(o.stem));else{var a=M(o.stem);a&&(n=T(T({},n),a))}}return n}function R(e,t){var r=O(e,t);return t&&!1===t.normalizeHashtagInPlural||function l(e){e.forEach(function(c){(F(c)||A(c))&&Object.keys(c.options).forEach(function(e){for(var t,r=c.options[e],n=-1,o=void 0,a=0;a<r.value.length;a++){var i=r.value[a];if(w(i)&&P.test(i.value)){n=a,o=i;break}}if(o){var u=o.value.replace(P,"$1{"+c.value+", number}"),s=O(u);(t=r.value).splice.apply(t,C([n,1],s))}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 N(e){return JSON.stringify(e.map(function(e){return e&&"object"===b(e)?function(r){return Object.keys(r).sort().map(function(e){var t;return(t={})[e]=r[e],t})}(e):e}))}var L,$,Z,z=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=N(t),o=n&&i[n];return o||(o=new((e=a).bind.apply(e,_([void 0],t))),n&&(i[n]=o)),o}},H=(L=function(e,t){return(L=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}L(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),B=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},U=/\\#/g,V=/(^|[^\\])#/g,q=($=Error,H(W,$),W);function W(e,t){var r=$.call(this,e)||this;return r.variableId=t,r}function G(e,t,r,n,o,a,i){if(1===e.length&&w(e[0])){var u=e[0].value;return"number"==typeof a&&(u=u.replace(V,"$1"+r.getNumberFormat(t).format(a))),[{type:0,value:u.replace(U,"#")}]}for(var s,c,l=[],f=0,m=e;f<m.length;f++){var p=m[f];if(w(p)){var d=p.value;"number"==typeof a&&(d=d.replace(V,"$1"+r.getNumberFormat(t).format(a))),l.push({type:0,value:d.replace(U,"#")})}else{var g=p.value;if(!(o&&g in o))throw new q('The intl string context variable "'+g+'" was not provided to the string "'+i+'"');u=o[g];if(p.type!==Ct.argument)if(p.type!==Ct.date)if(p.type!==Ct.time)if(p.type!==Ct.number)if(A(p)){if(!(h=p.options[u]||p.options.other))throw new RangeError('Invalid values for "'+p.value+'": "'+u+'". Options are "'+Object.keys(p.options).join('", "')+'"');l.push.apply(l,G(h.value,t,r,n,o))}else if(F(p)){var h;if(!(h=p.options["="+u])){if(!Intl.PluralRules)throw new q('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n');var v=r.getPluralRules(t,{type:p.pluralType}).select(u-(p.offset||0));h=p.options[v]||p.options.other}if(!h)throw new RangeError('Invalid values for "'+p.value+'": "'+u+'". Options are "'+Object.keys(p.options).join('", "')+'"');l.push.apply(l,G(h.value,t,r,n,o,u-(p.offset||0)))}else;else{y="string"==typeof p.style?n.number[p.style]:(s=p.style)&&"object"===b(s)&&0===s.type?I(p.style.tokens):void 0;l.push({type:0,value:r.getNumberFormat(t,y).format(u)})}else{var y="string"==typeof p.style?n.time[p.style]:(c=p.style)&&"object"===b(c)&&1===c.type?E(p.style.pattern):void 0;l.push({type:0,value:r.getDateTimeFormat(t,y).format(u)})}else{var y="string"==typeof p.style?n.date[p.style]:void 0;l.push({type:0,value:r.getDateTimeFormat(t,y).format(u)})}else u&&"string"!=typeof u&&"number"!=typeof u||(u="string"==typeof u||"number"==typeof u?String(u):""),l.push({type:1,value:u})}}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)}var X="@@",J=/@@(\d+_\d+)@@/g,K=0;function Q(e,t){return e.split(J).filter(Boolean).map(function(e){return null!=t[e]?t[e]:e}).reduce(function(e,t){return e.length&&"string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e},[])}var Y=/(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,ee=Date.now()+"@@",te=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function re(e,t,r,n,o,a){var i=G(e,t,r,n,o,void 0,a),u={},s=i.reduce(function(e,t){if(0===t.type)return e+t.value;var r=Date.now()+"_"+ ++K;return u[r]=t.value,e+(X+r)+X},"");if(!Y.test(s))return Q(s,u);if(!o)throw new q("Message has placeholders but no values was given");if("undefined"==typeof DOMParser)throw new q("Cannot format XML message without DOMParser");var c=(Z=Z||new DOMParser).parseFromString('<formatted-message id="'+ee+'">'+s+"</formatted-message>","text/html").getElementById(ee);if(!c)throw new q("Malformed HTML message "+s);var l=Object.keys(o).filter(function(e){return!!c.getElementsByTagName(e).length});if(!l.length)return Q(s,u);var f=l.filter(function(e){return e!==e.toLowerCase()});if(f.length)throw new q("HTML tag must be lowercased but the following tags are not: "+f.join(", "));return Array.prototype.slice.call(c.childNodes).reduce(function(e,t){return e.concat(function r(e,n,o){var t=e.tagName,a=e.outerHTML,i=e.textContent,u=e.childNodes;if(!t)return Q(i||"",n);t=t.toLowerCase();var s=~te.indexOf(t),c=o[t];if(c&&s)throw new q(t+" is a self-closing tag and can not be used, please use another tag name.");if(!u.length)return[a];var l=Array.prototype.slice.call(u).reduce(function(e,t){return e.concat(r(t,n,o))},[]);return c?"function"==typeof c?[c.apply(void 0,l)]:[c]:B(["<"+t+">"],l,["</"+t+">"])}(t,u,o))},[])}var ne=function(){return(ne=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 oe(r,n){return n?Object.keys(r).reduce(function(e,t){return e[t]=function(r,n){return n?ne(ne(ne({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=ne(ne({},r[t]),n[t]||{}),e},{})):r}(r[t],n[t]),e},ne({},r)):r}var ae=(ie.defaultLocale=(new Intl.NumberFormat).resolvedOptions().locale,ie.__parse=R,ie.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"}}},ie);function ie(e,t,r,n){var o=this;if(void 0===t&&(t=ie.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){return function(e,t,r,n,o,a){var i=G(e,t,r,n,o,void 0,a);return 1===i.length?i[0].value:i.reduce(function(e,t){return e+t.value},"")}(o.ast,o.locales,o.formatters,o.formats,e,o.message)},this.formatToParts=function(e){return G(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.formatHTMLMessage=function(e){return re(o.ast,o.locales,o.formatters,o.formats,e,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,!ie.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=ie.__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=oe(ie.formats,r),this.locales=t,this.formatters=n&&n.formatters||function(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:z(Intl.NumberFormat,e.number),getDateTimeFormat:z(Intl.DateTimeFormat,e.dateTime),getPluralRules:z(Intl.PluralRules,e.pluralRules)}}(this.formatterCache)}function ue(e,t,r,n,o,a,i,u){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,o,a,i,u],l=0;(s=new Error(t.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}var se=ue,ce={38:"&amp;",62:"&gt;",60:"&lt;",34:"&quot;",39:"&#x27;"},le=/[&><"']/g;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.")}function pe(e,t){var r=t?"\n".concat(t.stack):"";return"[React Intl] ".concat(e).concat(r)}var de={formats:{},messages:{},timeZone:void 0,textComponent:h.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){}};function ge(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{}}}function he(e){var t=0<arguments.length&&void 0!==e?e:{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{}},r=Intl.RelativeTimeFormat,n=Intl.ListFormat;return{getDateTimeFormat:z(Intl.DateTimeFormat,t.dateTime),getNumberFormat:z(Intl.NumberFormat,t.number),getMessageFormat:z(ae,t.message),getRelativeTimeFormat:z(r,t.relativeTime),getPluralRules:z(Intl.PluralRules,t.pluralRules),getListFormat:z(n,t.list)}}function ve(e,t,r,n){var o,a=e&&e[t];if(a&&(o=a[r]),o)return o;n(pe("No ".concat(t," format named: ").concat(r)))}var ye=r(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,s=r?Symbol.for("react.provider"):60109,c=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,g=r?Symbol.for("react.lazy"):60116;function h(e){if("object"===b(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 c:case m:case s:return e;default:return t}}case g:case d:case o:return t}}}function v(e){return h(e)===f}t.typeOf=h,t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=s,t.Element=n,t.ForwardRef=m,t.Fragment=a,t.Lazy=g,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"===b(e)&&null!==e&&(e.$$typeof===g||e.$$typeof===d||e.$$typeof===s||e.$$typeof===c||e.$$typeof===m)},t.isAsyncMode=function(e){return v(e)||h(e)===l},t.isConcurrentMode=v,t.isContextConsumer=function(e){return h(e)===c},t.isContextProvider=function(e){return h(e)===s},t.isElement=function(e){return"object"===b(e)&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return h(e)===m},t.isFragment=function(e){return h(e)===a},t.isLazy=function(e){return h(e)===g},t.isMemo=function(e){return h(e)===d},t.isPortal=function(e){return h(e)===o},t.isProfiler=function(e){return h(e)===u},t.isStrictMode=function(e){return h(e)===i},t.isSuspense=function(e){return h(e)===p}});t(ye);ye.typeOf,ye.AsyncMode,ye.ConcurrentMode,ye.ContextConsumer,ye.ContextProvider,ye.Element,ye.ForwardRef,ye.Fragment,ye.Lazy,ye.Memo,ye.Portal,ye.Profiler,ye.StrictMode,ye.Suspense,ye.isValidElementType,ye.isAsyncMode,ye.isConcurrentMode,ye.isContextConsumer,ye.isContextProvider,ye.isElement,ye.isForwardRef,ye.isFragment,ye.isLazy,ye.isMemo,ye.isPortal,ye.isProfiler,ye.isStrictMode,ye.isSuspense;var be=r(function(e){e.exports=ye}),we={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ae={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},Oe={};function Ce(e){return be.isMemo(e)?Fe:Oe[e.$$typeof]||we}Oe[be.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var Pe=Object.defineProperty,Te=Object.getOwnPropertyNames,xe=Object.getOwnPropertySymbols,Ee=Object.getOwnPropertyDescriptor,De=Object.getPrototypeOf,je=Object.prototype;function Se(e,t,r){if("string"!=typeof t){if(je){var n=De(t);n&&n!==je&&Se(e,n,r)}var o=Te(t);xe&&(o=o.concat(xe(t)));for(var a=Ce(e),i=Ce(t),u=0;u<o.length;++u){var s=o[u];if(!(Ae[s]||r&&r[s]||i&&i[s]||a&&a[s])){var c=Ee(t,s);try{Pe(e,s,c)}catch(e){}}}}return e}var Me=Se;var ke=h.createContext(null),Ie=ke.Consumer,Re=ke.Provider,_e=ke;function Ne(r,e){function n(t){return h.createElement(Ie,null,function(e){return c&&me(e),h.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,s=t.enforceContext,c=void 0===s||s;return n.displayName="injectIntl(".concat(function(e){return e.displayName||e.name||"Component"}(r),")"),n.WrappedComponent=r,Me(u?h.forwardRef(function(e,t){return h.createElement(n,Object.assign({},e,{forwardedRef:t}))}):n,r)}var Le,$e,Ze,ze,He=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&&(r[n[o]]=e[n[o]])}return r};($e=Le=Le||{}).formatDate="FormattedDate",$e.formatTime="FormattedTime",$e.formatNumber="FormattedNumber",$e.formatList="FormattedList",(ze=Ze=Ze||{}).formatDate="FormattedDateParts",ze.formatTime="FormattedTimeParts",ze.formatNumber="FormattedNumberParts",ze.formatList="FormattedListParts";function Be(o){return h.createElement(_e.Consumer,null,function(e){me(e);var t=o.value,r=o.children,n=He(o,["value","children"]);return r(e.formatNumberToParts(t,n))})}function Ue(i){function e(a){return h.createElement(_e.Consumer,null,function(e){me(e);var t=a.value,r=a.children,n=He(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=Ze[i],e}function Ve(u){function e(i){return h.createElement(_e.Consumer,null,function(e){me(e);var t=i.value,r=i.children,n=He(i,["value","children"]),o=e[u](t,n);if("function"==typeof r)return r(o);var a=e.textComponent||h.Fragment;return h.createElement(a,null,o)})}return e.displayName=Le[u],e}Be.displayName="FormattedNumberParts";var qe=["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,s=u&&ve(o,"number",u,a)||{};return t(n,fe(i,qe,s))}var Ge=["numeric","style"];function Xe(t,e,r,n){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:{};n=n||"second",Intl.RelativeTimeFormat||t.onError(pe('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n'));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,s=!!u&&ve(o,"relative",u,a)||{};return t(n,fe(i,Ge,s))}(t,e,o).format(r,n)}catch(e){t.onError(pe("Error formatting relative time.",e))}return String(r)}var Je=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Ke(e,t,r,n){var o=e.locale,a=e.formats,i=e.onError,u=e.timeZone,s=3<arguments.length&&void 0!==n?n:{},c=s.format,l=Object.assign({},u&&{timeZone:u},c&&ve(a,t,c,i)),f=fe(s,Je,l);return"time"!==t||f.hour||f.minute||f.second||(f=Object.assign({},f,{hour:"numeric",minute:"numeric"})),r(o,f)}var Qe=["localeMatcher","type"];var Ye=ue;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({},r,n)).reduce(function(e,t){return e[t]=Object.assign({},r[t]||{},n[t]||{}),e},{})}function rt(e,t){if(!t)return e;var r=ae.formats;return 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,s=e.timeZone,c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{id:""},l=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},f=c.id,m=c.defaultMessage;if(Ye(f,"[React Intl] An `id` must be provided to format a message."),!f)throw new Error("[React Intl] An `id` must be provided to format a message.");var p=o&&o[f];n=rt(n,s),i=rt(i,s);var d=[];if(p)try{d=t.getMessageFormat(p,r,n,{formatters:t}).formatHTMLMessage(l)}catch(e){u(pe('Error formatting message: "'.concat(f,'" for locale: "').concat(r,'"')+(m?", using default message as fallback.":""),e))}else(!m||r&&r.toLowerCase()!==a.toLowerCase())&&u(pe('Missing message: "'.concat(f,'" for locale: "').concat(r,'"')+(m?", using default message as fallback.":"")));if(!d.length&&m)try{d=t.getMessageFormat(m,a,i).formatHTMLMessage(l)}catch(e){u(pe('Error formatting the default message for: "'.concat(f,'"'),e))}return d.length?1===d.length&&"string"==typeof d[0]?d[0]||m||f:d:(u(pe('Cannot format message: "'.concat(f,'", ')+"using message ".concat(p||m?"source":"id"," as fallback."))),"string"==typeof p?p||m||f:m||f)}function ot(e,t){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return nt(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{id:""},Object.keys(n).reduce(function(e,t){var r=n[t];return e[t]="string"==typeof r?function(e){return(""+e).replace(le,function(e){return ce[e.charCodeAt(0)]})}(r):r,e},{}))}function at(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])return!1}return!0}var it=["localeMatcher","type","style"],ut=Date.now();function st(e,t,r){var n=e.locale,o=e.onError,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};Intl.ListFormat||o(pe('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n'));var i=fe(a,it);try{var u={},s=r.map(function(e,t){if("object"!==b(e))return String(e);var r=function(e){return"".concat(ut,"_").concat(e,"_").concat(ut)}(t);return u[r]=e,r});return Object.keys(u).length?t(n,i).formatToParts(s).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(s)}catch(e){o(pe("Error formatting list.",e))}return r}var ct=at;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({},de,e);if(!n.locale||!function(t,e){if("undefined"==typeof Intl)return!1;if(!t)throw new Error("locales must be supplied.");Array.isArray(t)||(t=[t]);var r=e||[Intl.DateTimeFormat,Intl.NumberFormat,Intl.PluralRules];return!(0===(r=r.filter(Boolean)).length||e&&r.length!==e.length)&&r.every(function(e){return e.supportedLocalesOf(t).length===t.length})}(n.locale)){var o=n.locale,a=n.defaultLocale,i=n.onError;"function"==typeof i&&i(pe('Missing locale data for locale: "'.concat(o,'". ')+'Using default locale: "'.concat(a,'" as fallback.'))),n.locale=n.defaultLocale||"en"}return 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(pe("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(pe("Error formatting number.",e))}return[]}.bind(null,n,r.getNumberFormat),formatRelativeTime:Xe.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 Ke(t,"date",e,n).format(o)}catch(e){t.onError(pe("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 Ke(t,"date",e,n).formatToParts(o)}catch(e){t.onError(pe("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 Ke(t,"time",e,n).format(o)}catch(e){t.onError(pe("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 Ke(t,"time",e,n).formatToParts(o)}catch(e){t.onError(pe("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(pe('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n'));var i=fe(a,Qe);try{return t(n,i).select(r)}catch(e){o(pe("Error formatting plural.",e))}return"other"}.bind(null,n,r.getPluralRules),formatMessage:nt.bind(null,n,r),formatHTMLMessage:ot.bind(null,n,r),formatList:st.bind(null,n,r.getListFormat)})}var mt=function(){function t(){var e;return i(this,t),(e=m(this,l(t).apply(this,arguments))).cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{}},e.state={cache:e.cache,intl:ft(lt(e.props),e.cache),prevConfig:lt(e.props)},e}return c(t,h.PureComponent),s(t,[{key:"render",value:function(){return me(this.state.intl),h.createElement(Re,{value:this.state.intl},this.props.children)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.prevConfig,n=t.cache,o=lt(e);return ct(r,o)?null:{intl:ft(o,n),prevConfig:o}}}]),t}();mt.displayName="IntlProvider",mt.defaultProps=de;var pt=ue,dt=60,gt=3600;function ht(e){var t=Math.abs(e);return t<dt?"second":t<gt?"minute":t<86400?"hour":"day"}function vt(e){switch(e){case"second":return 1;case"minute":return dt;case"hour":return gt;default:return 86400}}function yt(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return e*dt;default:return e*gt}}var bt=["second","minute","hour"];function wt(e){var t=0<arguments.length&&void 0!==e?e:"second";return bt.includes(t)}var At=function(){function r(e){var t;return i(this,r),(t=m(this,l(r).call(this,e)))._updateTimer=null,t.state={prevUnit:t.props.unit,prevValue:t.props.value,currentValueInSeconds:wt(t.props.unit)?yt(t.props.value,t.props.unit):0},function(e,t){pt(!e||e&&wt(t),"Cannot schedule update with unit longer than hour")}(e.updateIntervalInSeconds,e.unit),t}return c(r,h.PureComponent),s(r,[{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&&wt(o)){var i=a-n,u=ht(i);if("day"!==u){var s=vt(u),c=i-i%s,l=a<=c?c-s:c,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 h.createElement(_e.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,s=p.state.currentValueInSeconds,c=a||0,l=i;if(wt(i)&&"number"==typeof s&&u){var f=vt(l=ht(s));c=Math.round(s/f)}var m=t(c,l,Object.assign({},p.props));return"function"==typeof o?o(m):r?h.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:wt(e.unit)?yt(e.value,e.unit):0}:null}}]),r}();At.displayName="FormattedRelativeTime",At.defaultProps={value:0,unit:"second"};function Ft(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?h.createElement(i,null,u):u}Ft.defaultProps={type:"cardinal"},Ft.displayName="FormattedPlural";function Ot(e,t){return nt(Object.assign({},de,{locale:"en"}),he(),e,t)}var xt=Ne(Ft),Et=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&&(r[n[o]]=e[n[o]])}return r},Dt=at,jt=function(){function e(){return i(this,e),m(this,l(e).apply(this,arguments))}return c(e,h.Component),s(e,[{key:"shouldComponentUpdate",value:function(e){var t=this.props,r=t.values,n=Et(t,["values"]),o=e.values,a=Et(e,["values"]);return!Dt(o,r)||!Dt(n,a)}},{key:"render",value:function(){var g=this;return h.createElement(_e.Consumer,null,function(e){g.props.defaultMessage||me(e);var t=e||{},r=t.formatMessage,n=void 0===r?Ot:r,o=t.textComponent,a=void 0===o?h.Fragment:o,i=g.props,u=i.id,s=i.description,c=i.defaultMessage,l=i.values,f=i.children,m=i.tagName,p=void 0===m?a:m,d=n({id:u,description:s,defaultMessage:c},l);return Array.isArray(d)||(d=[d]),"function"==typeof f?f.apply(void 0,v(d)):p?h.createElement.apply(h,[p,null].concat(v(d))):d})}}]),e}();jt.displayName="FormattedMessage",jt.defaultProps={values:{}};var St=function(){function e(){return i(this,e),m(this,l(e).apply(this,arguments))}return c(e,jt),s(e,[{key:"render",value:function(){var m=this;return h.createElement(_e.Consumer,null,function(e){m.props.defaultMessage||me(e);var t=e.formatHTMLMessage,r=e.textComponent,n=m.props,o=n.id,a=n.description,i=n.defaultMessage,u=n.values,s=n.children,c=m.props.tagName;c=c||(r||"span");var l=t({id:o,description:a,defaultMessage:i},u);if("function"==typeof s)return s(l);var f={__html:l};return h.createElement(c,{dangerouslySetInnerHTML:f})})}}]),e}();St.displayName="FormattedHTMLMessage",St.defaultProps=Object.assign({},jt.defaultProps,{tagName:"span"});var Mt=Ve("formatDate"),kt=Ve("formatTime"),It=Ve("formatNumber"),Rt=Ve("formatList"),_t=Ue("formatDate"),Nt=Ue("formatTime");e.FormattedDate=Mt,e.FormattedDateParts=_t,e.FormattedHTMLMessage=St,e.FormattedList=Rt,e.FormattedMessage=jt,e.FormattedNumber=It,e.FormattedNumberParts=Be,e.FormattedPlural=xt,e.FormattedRelativeTime=At,e.FormattedTime=kt,e.FormattedTimeParts=Nt,e.IntlContext=_e,e.IntlProvider=mt,e.RawIntlProvider=Re,e.createIntl=ft,e.createIntlCache=ge,e.defineMessages=a,e.injectIntl=Ne,e.useIntl=function(){var e=h.useContext(_e);return me(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,h){"use strict";function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e,t){return e(t={exports:{}},t.exports),t.exports}var n=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t._=function(e){return e},t.defineMessages=function(e){return e}});t(n);n._;var Ct,o,a=n.defineMessages;function b(e){return(b="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 u(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 s(e,t,r){return t&&u(e.prototype,t),r&&u(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&&f(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function w(e){return e.type===Ct.literal}function A(e){return e.type===Ct.select}function F(e){return e.type===Ct.plural}(o=Ct=Ct||{})[o.literal=0]="literal",o[o.argument=1]="argument",o[o.number=2]="number",o[o.date=3]="date",o[o.time=4]="time",o[o.select=5]="select",o[o.plural=6]="plural";var p,d,g=(p=function(e,t){return(p=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}p(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Pt=function(){return(Pt=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)},Tt=(d=Error,g(y,d),y.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},y);function y(e,t,r,n){var o=d.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,y),o}var O=function(f,e){e=void 0!==e?e:{};var t,r,n,o,m={},a={start:rt},i=rt,u=function(e){return e.join("")},s=function(e){return Pt({type:Ct.literal,value:e},Ot())},c=Qe("argumentElement"),p="{",d=Je("{",!1),g="}",h=Je("}",!1),l=function(e){return Pt({type:Ct.argument,value:e},Ot())},v=Qe("numberSkeletonId"),y=/^['\/{}]/,b=Ke(["'","/","{","}"],!1,!1),w={type:"any"},A=Qe("numberSkeletonTokenOption"),F="/",O=Je("/",!1),C=function(e){return e},P=Qe("numberSkeletonToken"),T=function(e,t){return{stem:e,options:t}},x=function(e){return Pt({type:0,tokens:e},Ot())},E="::",D=Je("::",!1),j=function(e){return e},S=function(e){return e.replace(/\s*$/,"")},M=",",k=Je(",",!1),I="number",R=Je("number",!1),_=function(e,t,r){return Pt({type:"number"===t?Ct.number:"date"===t?Ct.date:Ct.time,style:r&&r[2],value:e},Ot())},N="'",L=Je("'",!1),$=/^[^']/,Z=Ke(["'"],!0,!1),z=/^[^a-zA-Z'{}]/,H=Ke([["a","z"],["A","Z"],"'","{","}"],!0,!1),B=/^[a-zA-Z]/,U=Ke([["a","z"],["A","Z"]],!1,!1),V=function(e){return Pt({type:1,pattern:e},Ot())},q="date",W=Je("date",!1),G="time",X=Je("time",!1),J="plural",K=Je("plural",!1),Q="selectordinal",Y=Je("selectordinal",!1),ee="offset:",te=Je("offset:",!1),re=function(e,t,r,n){return Pt({type:Ct.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&&Xe('Duplicate option "'+r+'" in plural element: "'+We()+'"',Ge()),e[r]={value:n,location:o},e},{})},Ot())},ne="select",oe=Je("select",!1),ae=function(e,t){return Pt({type:Ct.select,value:e,options:t.reduce(function(e,t){var r=t.id,n=t.value,o=t.location;return r in e&&Xe('Duplicate option "'+r+'" in select element: "'+We()+'"',Ge()),e[r]={value:n,location:o},e},{})},Ot())},ie="=",ue=Je("=",!1),se=function(e,t){return Pt({id:e,value:t},Ot())},ce=function(e,t){return Pt({id:e,value:t},Ot())},le=Qe("whitespace pattern"),fe=/^[\t-\r \x85\u200E\u200F\u2028\u2029]/,me=Ke([["\t","\r"]," ","…","‎","‏","\u2028","\u2029"],!1,!1),pe=Qe("syntax pattern"),de=/^[!-\/:-@[-\^`{-~\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]/,ge=Ke([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←","⑟"],["─","❵"],["➔","⯿"],["⸀","⹿"],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),he=Qe("optional whitespace"),ve=Qe("number"),ye="-",be=Je("-",!1),we=function(e,t){return t?e?-t:t:0},Ae=Qe("double apostrophes"),Fe="''",Oe=Je("''",!1),Ce=function(){return"'"},Pe=/^[{}]/,Te=Ke(["{","}"],!1,!1),xe=function(e,t){return e+t.replace("''","'")},Ee=/^[^{}]/,De=Ke(["{","}"],!0,!1),je=Qe("argNameOrNumber"),Se=Qe("argNumber"),Me="0",ke=Je("0",!1),Ie=function(){return 0},Re=/^[1-9]/,_e=Ke([["1","9"]],!1,!1),Ne=/^[0-9]/,Le=Ke([["0","9"]],!1,!1),$e=function(e){return parseInt(e.join(""),10)},Ze=Qe("argName"),ze=0,He=0,Be=[{line:1,column:1}],Ue=0,Ve=[],qe=0;if(void 0!==e.startRule){if(!(e.startRule in a))throw new Error("Can't start parsing from rule \""+e.startRule+'".');i=a[e.startRule]}function We(){return f.substring(He,ze)}function Ge(){return et(He,ze)}function Xe(e,t){throw function(e,t){return new Tt(e,[],"",t)}(e,t=void 0!==t?t:et(He,ze))}function Je(e,t){return{type:"literal",text:e,ignoreCase:t}}function Ke(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Qe(e){return{type:"other",description:e}}function Ye(e){var t,r=Be[e];if(r)return r;for(t=e-1;!Be[t];)t--;for(r={line:(r=Be[t]).line,column:r.column};t<e;)10===f.charCodeAt(t)?(r.line++,r.column=1):r.column++,t++;return Be[e]=r}function et(e,t){var r=Ye(e),n=Ye(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function tt(e){ze<Ue||(Ue<ze&&(Ue=ze,Ve=[]),Ve.push(e))}function rt(){return nt()}function nt(){var e,t;for(e=[],t=ot();t!==m;)e.push(t),t=ot();return e}function ot(){var e;return(e=function(){var e,t;e=ze,(t=at())!==m&&(He=e,t=s(t));return e=t}())===m&&(e=function(){var e,t,r,n,o;qe++,e=ze,123===f.charCodeAt(ze)?(t=p,ze++):(t=m,0===qe&&tt(d));e=t!==m?(r=gt(),r!==m?(n=wt())!==m?gt()!==m?(125===f.charCodeAt(ze)?(o=g,ze++):(o=m,0===qe&&tt(h)),o!==m?(He=e,t=l(n)):(ze=e,m)):(ze=e,m):(ze=e,m):(ze=e,m)):(ze=e,m);qe--,e===m&&(t=m,0===qe&&tt(c));return e}())===m&&(e=function(){var e;(e=function(){var e,t,r,n,o,a,i,u,s,c;e=ze,123===f.charCodeAt(ze)?(t=p,ze++):(t=m,0===qe&&tt(d));e=t!==m?(r=gt(),r!==m?(n=wt())!==m?gt()!==m?(44===f.charCodeAt(ze)?(o=M,ze++):(o=m,0===qe&&tt(k)),o!==m?gt()!==m?(f.substr(ze,6)===I?(a=I,ze+=6):(a=m,0===qe&&tt(R)),a!==m?gt()!==m?(i=ze,44===f.charCodeAt(ze)?(u=M,ze++):(u=m,0===qe&&tt(k)),(i=u!==m?(s=gt())!==m?(c=function(){var e,t,r;e=ze,f.substr(ze,2)===E?(t=E,ze+=2):(t=m,0===qe&&tt(D));e=t!==m?(r=function(){var e,t,r;if(e=ze,t=[],(r=st())!==m)for(;r!==m;)t.push(r),r=st();else t=m;t!==m&&(He=e,t=x(t));return e=t}(),r!==m?(He=e,t=j(r)):(ze=e,m)):(ze=e,m);e===m&&(e=ze,(t=at())!==m&&(He=e,t=S(t)),e=t);return e}())!==m?u=[u,s,c]:(ze=i,m):(ze=i,m):(ze=i,m))===m&&(i=null),i!==m?(u=gt())!==m?(125===f.charCodeAt(ze)?(s=g,ze++):(s=m,0===qe&&tt(h)),s!==m?(He=e,t=_(n,a,i)):(ze=e,m)):(ze=e,m):(ze=e,m)):(ze=e,m):(ze=e,m)):(ze=e,m):(ze=e,m)):(ze=e,m):(ze=e,m):(ze=e,m)):(ze=e,m);return e}())===m&&(e=function(){var e,t,r,n,o,a,i,u,s,c;e=ze,123===f.charCodeAt(ze)?(t=p,ze++):(t=m,0===qe&&tt(d));e=t!==m?(r=gt(),r!==m?(n=wt())!==m?gt()!==m?(44===f.charCodeAt(ze)?(o=M,ze++):(o=m,0===qe&&tt(k)),o!==m?gt()!==m?(f.substr(ze,4)===q?(a=q,ze+=4):(a=m,0===qe&&tt(W)),a===m&&(f.substr(ze,4)===G?(a=G,ze+=4):(a=m,0===qe&&tt(X))),a!==m?gt()!==m?(i=ze,44===f.charCodeAt(ze)?(u=M,ze++):(u=m,0===qe&&tt(k)),(i=u!==m?(s=gt())!==m?(c=function(){var e,t,r;e=ze,f.substr(ze,2)===E?(t=E,ze+=2):(t=m,0===qe&&tt(D));e=t!==m?(r=function(){var e,t,r,n;t=e=ze,r=[],(n=ct())===m&&(n=lt());if(n!==m)for(;n!==m;)r.push(n),(n=ct())===m&&(n=lt());else r=m;t=r!==m?f.substring(t,ze):r;t!==m&&(He=e,t=V(t));return e=t}(),r!==m?(He=e,t=j(r)):(ze=e,m)):(ze=e,m);e===m&&(e=ze,(t=at())!==m&&(He=e,t=S(t)),e=t);return e}())!==m?u=[u,s,c]:(ze=i,m):(ze=i,m):(ze=i,m))===m&&(i=null),i!==m?(u=gt())!==m?(125===f.charCodeAt(ze)?(s=g,ze++):(s=m,0===qe&&tt(h)),s!==m?(He=e,t=_(n,a,i)):(ze=e,m)):(ze=e,m):(ze=e,m)):(ze=e,m):(ze=e,m)):(ze=e,m):(ze=e,m)):(ze=e,m):(ze=e,m):(ze=e,m)):(ze=e,m);return e}());return e}())===m&&(e=function(){var e,t,r,n,o,a,i,u,s,c,l;e=ze,123===f.charCodeAt(ze)?(t=p,ze++):(t=m,0===qe&&tt(d));if(t!==m)if(gt()!==m)if((r=wt())!==m)if(gt()!==m)if(44===f.charCodeAt(ze)?(n=M,ze++):(n=m,0===qe&&tt(k)),n!==m)if(gt()!==m)if(f.substr(ze,6)===J?(o=J,ze+=6):(o=m,0===qe&&tt(K)),o===m&&(f.substr(ze,13)===Q?(o=Q,ze+=13):(o=m,0===qe&&tt(Y))),o!==m)if(gt()!==m)if(44===f.charCodeAt(ze)?(a=M,ze++):(a=m,0===qe&&tt(k)),a!==m)if(gt()!==m)if(i=ze,f.substr(ze,7)===ee?(u=ee,ze+=7):(u=m,0===qe&&tt(te)),(i=u!==m?(s=gt())!==m?(c=ht())!==m?u=[u,s,c]:(ze=i,m):(ze=i,m):(ze=i,m))===m&&(i=null),i!==m)if((u=gt())!==m){if(s=[],(c=mt())!==m)for(;c!==m;)s.push(c),c=mt();else s=m;e=s!==m?(c=gt())!==m?(125===f.charCodeAt(ze)?(l=g,ze++):(l=m,0===qe&&tt(h)),l!==m?(He=e,t=re(r,o,i,s)):(ze=e,m)):(ze=e,m):(ze=e,m)}else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;return e}())===m&&(e=function(){var e,t,r,n,o,a,i,u,s;e=ze,123===f.charCodeAt(ze)?(t=p,ze++):(t=m,0===qe&&tt(d));if(t!==m)if(gt()!==m)if((r=wt())!==m)if(gt()!==m)if(44===f.charCodeAt(ze)?(n=M,ze++):(n=m,0===qe&&tt(k)),n!==m)if(gt()!==m)if(f.substr(ze,6)===ne?(o=ne,ze+=6):(o=m,0===qe&&tt(oe)),o!==m)if(gt()!==m)if(44===f.charCodeAt(ze)?(a=M,ze++):(a=m,0===qe&&tt(k)),a!==m)if(gt()!==m){if(i=[],(u=ft())!==m)for(;u!==m;)i.push(u),u=ft();else i=m;e=i!==m?(u=gt())!==m?(125===f.charCodeAt(ze)?(s=g,ze++):(s=m,0===qe&&tt(h)),s!==m?(He=e,t=ae(r,i)):(ze=e,m)):(ze=e,m):(ze=e,m)}else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;else ze=e,e=m;return e}()),e}function at(){var e,t,r;if(e=ze,t=[],(r=vt())===m&&(r=yt())===m&&(r=bt()),r!==m)for(;r!==m;)t.push(r),(r=vt())===m&&(r=yt())===m&&(r=bt());else t=m;return t!==m&&(He=e,t=u(t)),e=t}function it(){var e,t,r,n,o;if(qe++,t=[],n=r=e=ze,qe++,(o=pt())===m&&(y.test(f.charAt(ze))?(o=f.charAt(ze),ze++):(o=m,0===qe&&tt(b))),qe--,(r=(n=o===m?void 0:(ze=n,m))!==m?(f.length>ze?(o=f.charAt(ze),ze++):(o=m,0===qe&&tt(w)),o!==m?n=[n,o]:(ze=r,m)):(ze=r,m))!==m)for(;r!==m;)t.push(r),n=r=ze,qe++,(o=pt())===m&&(y.test(f.charAt(ze))?(o=f.charAt(ze),ze++):(o=m,0===qe&&tt(b))),qe--,r=(n=o===m?void 0:(ze=n,m))!==m?(f.length>ze?(o=f.charAt(ze),ze++):(o=m,0===qe&&tt(w)),o!==m?n=[n,o]:(ze=r,m)):(ze=r,m);else t=m;return e=t!==m?f.substring(e,ze):t,qe--,e===m&&(t=m,0===qe&&tt(v)),e}function ut(){var e,t,r;return qe++,e=ze,47===f.charCodeAt(ze)?(t=F,ze++):(t=m,0===qe&&tt(O)),e=t!==m&&(r=it())!==m?(He=e,t=C(r)):(ze=e,m),qe--,e===m&&(t=m,0===qe&&tt(A)),e}function st(){var e,t,r,n;if(qe++,e=ze,gt()!==m)if((t=it())!==m){for(r=[],n=ut();n!==m;)r.push(n),n=ut();e=r!==m?(He=e,T(t,r)):(ze=e,m)}else ze=e,e=m;else ze=e,e=m;return qe--,e===m&&(m,0===qe&&tt(P)),e}function ct(){var e,t,r,n;if(e=ze,39===f.charCodeAt(ze)?(t=N,ze++):(t=m,0===qe&&tt(L)),t!==m){if(r=[],(n=vt())===m&&($.test(f.charAt(ze))?(n=f.charAt(ze),ze++):(n=m,0===qe&&tt(Z))),n!==m)for(;n!==m;)r.push(n),(n=vt())===m&&($.test(f.charAt(ze))?(n=f.charAt(ze),ze++):(n=m,0===qe&&tt(Z)));else r=m;e=r!==m?(39===f.charCodeAt(ze)?(n=N,ze++):(n=m,0===qe&&tt(L)),n!==m?t=[t,r,n]:(ze=e,m)):(ze=e,m)}else ze=e,e=m;if(e===m)if(e=[],(t=vt())===m&&(z.test(f.charAt(ze))?(t=f.charAt(ze),ze++):(t=m,0===qe&&tt(H))),t!==m)for(;t!==m;)e.push(t),(t=vt())===m&&(z.test(f.charAt(ze))?(t=f.charAt(ze),ze++):(t=m,0===qe&&tt(H)));else e=m;return e}function lt(){var e,t;if(e=[],B.test(f.charAt(ze))?(t=f.charAt(ze),ze++):(t=m,0===qe&&tt(U)),t!==m)for(;t!==m;)e.push(t),B.test(f.charAt(ze))?(t=f.charAt(ze),ze++):(t=m,0===qe&&tt(U));else e=m;return e}function ft(){var e,t,r,n,o;return e=ze,e=gt()!==m&&(t=Ft())!==m&&gt()!==m?(123===f.charCodeAt(ze)?(r=p,ze++):(r=m,0===qe&&tt(d)),r!==m&&(n=nt())!==m?(125===f.charCodeAt(ze)?(o=g,ze++):(o=m,0===qe&&tt(h)),o!==m?(He=e,se(t,n)):(ze=e,m)):(ze=e,m)):(ze=e,m)}function mt(){var e,t,r,n,o;return e=ze,e=gt()!==m&&(t=function(){var e,t,r,n;return t=e=ze,61===f.charCodeAt(ze)?(r=ie,ze++):(r=m,0===qe&&tt(ue)),(e=(t=r!==m&&(n=ht())!==m?r=[r,n]:(ze=t,m))!==m?f.substring(e,ze):t)===m&&(e=Ft()),e}())!==m&&gt()!==m?(123===f.charCodeAt(ze)?(r=p,ze++):(r=m,0===qe&&tt(d)),r!==m&&(n=nt())!==m?(125===f.charCodeAt(ze)?(o=g,ze++):(o=m,0===qe&&tt(h)),o!==m?(He=e,ce(t,n)):(ze=e,m)):(ze=e,m)):(ze=e,m)}function pt(){var e;return qe++,fe.test(f.charAt(ze))?(e=f.charAt(ze),ze++):(e=m,0===qe&&tt(me)),qe--,e===m&&0===qe&&tt(le),e}function dt(){var e;return qe++,de.test(f.charAt(ze))?(e=f.charAt(ze),ze++):(e=m,0===qe&&tt(ge)),qe--,e===m&&0===qe&&tt(pe),e}function gt(){var e,t,r;for(qe++,e=ze,t=[],r=pt();r!==m;)t.push(r),r=pt();return e=t!==m?f.substring(e,ze):t,qe--,e===m&&(t=m,0===qe&&tt(he)),e}function ht(){var e,t,r;return qe++,e=ze,45===f.charCodeAt(ze)?(t=ye,ze++):(t=m,0===qe&&tt(be)),t===m&&(t=null),e=t!==m&&(r=At())!==m?(He=e,t=we(t,r)):(ze=e,m),qe--,e===m&&(t=m,0===qe&&tt(ve)),e}function vt(){var e,t;return qe++,e=ze,f.substr(ze,2)===Fe?(t=Fe,ze+=2):(t=m,0===qe&&tt(Oe)),t!==m&&(He=e,t=Ce()),qe--,(e=t)===m&&(t=m,0===qe&&tt(Ae)),e}function yt(){var e,t,r,n,o,a;if(e=ze,39===f.charCodeAt(ze)?(t=N,ze++):(t=m,0===qe&&tt(L)),t!==m)if(Pe.test(f.charAt(ze))?(r=f.charAt(ze),ze++):(r=m,0===qe&&tt(Te)),r!==m){for(n=ze,o=[],f.substr(ze,2)===Fe?(a=Fe,ze+=2):(a=m,0===qe&&tt(Oe)),a===m&&($.test(f.charAt(ze))?(a=f.charAt(ze),ze++):(a=m,0===qe&&tt(Z)));a!==m;)o.push(a),f.substr(ze,2)===Fe?(a=Fe,ze+=2):(a=m,0===qe&&tt(Oe)),a===m&&($.test(f.charAt(ze))?(a=f.charAt(ze),ze++):(a=m,0===qe&&tt(Z)));e=(n=o!==m?f.substring(n,ze):o)!==m?(39===f.charCodeAt(ze)?(o=N,ze++):(o=m,0===qe&&tt(L)),o!==m?(He=e,t=xe(r,n)):(ze=e,m)):(ze=e,m)}else ze=e,e=m;else ze=e,e=m;return e}function bt(){var e,t;return e=ze,Ee.test(f.charAt(ze))?(t=f.charAt(ze),ze++):(t=m,0===qe&&tt(De)),e=t!==m?f.substring(e,ze):t}function wt(){var e,t;return qe++,e=ze,(t=At())===m&&(t=Ft()),e=t!==m?f.substring(e,ze):t,qe--,e===m&&(t=m,0===qe&&tt(je)),e}function At(){var e,t,r,n,o;if(qe++,e=ze,48===f.charCodeAt(ze)?(t=Me,ze++):(t=m,0===qe&&tt(ke)),t!==m&&(He=e,t=Ie()),(e=t)===m){if(t=e=ze,Re.test(f.charAt(ze))?(r=f.charAt(ze),ze++):(r=m,0===qe&&tt(_e)),r!==m){for(n=[],Ne.test(f.charAt(ze))?(o=f.charAt(ze),ze++):(o=m,0===qe&&tt(Le));o!==m;)n.push(o),Ne.test(f.charAt(ze))?(o=f.charAt(ze),ze++):(o=m,0===qe&&tt(Le));t=n!==m?r=[r,n]:(ze=t,m)}else ze=t,t=m;t!==m&&(He=e,t=$e(t)),e=t}return qe--,e===m&&(t=m,0===qe&&tt(Se)),e}function Ft(){var e,t,r,n,o;if(qe++,t=[],n=r=e=ze,qe++,(o=pt())===m&&(o=dt()),qe--,(r=(n=o===m?void 0:(ze=n,m))!==m?(f.length>ze?(o=f.charAt(ze),ze++):(o=m,0===qe&&tt(w)),o!==m?n=[n,o]:(ze=r,m)):(ze=r,m))!==m)for(;r!==m;)t.push(r),n=r=ze,qe++,(o=pt())===m&&(o=dt()),qe--,r=(n=o===m?void 0:(ze=n,m))!==m?(f.length>ze?(o=f.charAt(ze),ze++):(o=m,0===qe&&tt(w)),o!==m?n=[n,o]:(ze=r,m)):(ze=r,m);else t=m;return e=t!==m?f.substring(e,ze):t,qe--,e===m&&(t=m,0===qe&&tt(Ze)),e}function Ot(){return e&&e.captureLocation?{location:Ge()}:{}}if((t=i())!==m&&ze===f.length)return t;throw t!==m&&ze<f.length&&tt({type:"end"}),r=Ve,n=Ue<f.length?f.charAt(Ue):null,o=Ue<f.length?et(Ue,Ue+1):et(Ue,Ue),new Tt(Tt.buildMessage(r,n),r,n,o)},C=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},P=/(^|[^\\])#/g;var T=function(){return(T=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)},x=/(?:[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 E(e){var r={};return e.replace(x,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,j=/^(@+)?(\+|#+)?$/g;function S(e){var n={};return e.replace(j,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 M(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 k(e){var t=M(e);return t||{}}function I(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=T(T(T({},n),{notation:"scientific"}),o.options.reduce(function(e,t){return T(T({},e),k(t))},{}));continue;case"engineering":n=T(T(T({},n),{notation:"engineering"}),o.options.reduce(function(e,t){return T(T({},e),k(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=T(T({},n),S(o.options[0])))}else if(j.test(o.stem))n=T(T({},n),S(o.stem));else{var a=M(o.stem);a&&(n=T(T({},n),a))}}return n}function R(e,t){var r=O(e,t);return t&&!1===t.normalizeHashtagInPlural||function l(e){e.forEach(function(c){(F(c)||A(c))&&Object.keys(c.options).forEach(function(e){for(var t,r=c.options[e],n=-1,o=void 0,a=0;a<r.value.length;a++){var i=r.value[a];if(w(i)&&P.test(i.value)){n=a,o=i;break}}if(o){var u=o.value.replace(P,"$1{"+c.value+", number}"),s=O(u);(t=r.value).splice.apply(t,C([n,1],s))}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 N(e){return JSON.stringify(e.map(function(e){return e&&"object"===b(e)?function(r){return Object.keys(r).sort().map(function(e){var t;return(t={})[e]=r[e],t})}(e):e}))}var L,$,Z,z=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=N(t),o=n&&i[n];return o||(o=new((e=a).bind.apply(e,_([void 0],t))),n&&(i[n]=o)),o}},H=(L=function(e,t){return(L=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}L(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),B=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},U=/\\#/g,V=/(^|[^\\])#/g,q=($=Error,H(W,$),W);function W(e,t){var r=$.call(this,e)||this;return r.variableId=t,r}function G(e,t,r,n,o,a,i){if(1===e.length&&w(e[0])){var u=e[0].value;return"number"==typeof a&&(u=u.replace(V,"$1"+r.getNumberFormat(t).format(a))),[{type:0,value:u.replace(U,"#")}]}for(var s,c,l=[],f=0,m=e;f<m.length;f++){var p=m[f];if(w(p)){var d=p.value;"number"==typeof a&&(d=d.replace(V,"$1"+r.getNumberFormat(t).format(a))),l.push({type:0,value:d.replace(U,"#")})}else{var g=p.value;if(!(o&&g in o))throw new q('The intl string context variable "'+g+'" was not provided to the string "'+i+'"');u=o[g];if(p.type!==Ct.argument)if(p.type!==Ct.date)if(p.type!==Ct.time)if(p.type!==Ct.number)if(A(p)){if(!(h=p.options[u]||p.options.other))throw new RangeError('Invalid values for "'+p.value+'": "'+u+'". Options are "'+Object.keys(p.options).join('", "')+'"');l.push.apply(l,G(h.value,t,r,n,o))}else if(F(p)){var h;if(!(h=p.options["="+u])){if(!Intl.PluralRules)throw new q('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n');var v=r.getPluralRules(t,{type:p.pluralType}).select(u-(p.offset||0));h=p.options[v]||p.options.other}if(!h)throw new RangeError('Invalid values for "'+p.value+'": "'+u+'". Options are "'+Object.keys(p.options).join('", "')+'"');l.push.apply(l,G(h.value,t,r,n,o,u-(p.offset||0)))}else;else{y="string"==typeof p.style?n.number[p.style]:(s=p.style)&&"object"===b(s)&&0===s.type?I(p.style.tokens):void 0;l.push({type:0,value:r.getNumberFormat(t,y).format(u)})}else{var y="string"==typeof p.style?n.time[p.style]:(c=p.style)&&"object"===b(c)&&1===c.type?E(p.style.pattern):void 0;l.push({type:0,value:r.getDateTimeFormat(t,y).format(u)})}else{var y="string"==typeof p.style?n.date[p.style]:void 0;l.push({type:0,value:r.getDateTimeFormat(t,y).format(u)})}else u&&"string"!=typeof u&&"number"!=typeof u||(u="string"==typeof u||"number"==typeof u?String(u):""),l.push({type:1,value:u})}}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)}var X="@@",J=/@@(\d+_\d+)@@/g,K=0;function Q(e,t){return e.split(J).filter(Boolean).map(function(e){return null!=t[e]?t[e]:e}).reduce(function(e,t){return e.length&&"string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e},[])}var Y=/(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,ee=Date.now()+"@@",te=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function re(e,t,r,n,o,a){var i=G(e,t,r,n,o,void 0,a),u={},s=i.reduce(function(e,t){if(0===t.type)return e+t.value;var r=Date.now()+"_"+ ++K;return u[r]=t.value,e+(X+r)+X},"");if(!Y.test(s))return Q(s,u);if(!o)throw new q("Message has placeholders but no values was given");if("undefined"==typeof DOMParser)throw new q("Cannot format XML message without DOMParser");var c=(Z=Z||new DOMParser).parseFromString('<formatted-message id="'+ee+'">'+s+"</formatted-message>","text/html").getElementById(ee);if(!c)throw new q("Malformed HTML message "+s);var l=Object.keys(o).filter(function(e){return!!c.getElementsByTagName(e).length});if(!l.length)return Q(s,u);var f=l.filter(function(e){return e!==e.toLowerCase()});if(f.length)throw new q("HTML tag must be lowercased but the following tags are not: "+f.join(", "));return Array.prototype.slice.call(c.childNodes).reduce(function(e,t){return e.concat(function r(e,n,o){var t=e.tagName,a=e.outerHTML,i=e.textContent,u=e.childNodes;if(!t)return Q(i||"",n);t=t.toLowerCase();var s=~te.indexOf(t),c=o[t];if(c&&s)throw new q(t+" is a self-closing tag and can not be used, please use another tag name.");if(!u.length)return[a];var l=Array.prototype.slice.call(u).reduce(function(e,t){return e.concat(r(t,n,o))},[]);return c?"function"==typeof c?[c.apply(void 0,l)]:[c]:B(["<"+t+">"],l,["</"+t+">"])}(t,u,o))},[])}var ne=function(){return(ne=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 oe(r,n){return n?Object.keys(r).reduce(function(e,t){return e[t]=function(r,n){return n?ne(ne(ne({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=ne(ne({},r[t]),n[t]||{}),e},{})):r}(r[t],n[t]),e},ne({},r)):r}var ae=(ie.defaultLocale=(new Intl.NumberFormat).resolvedOptions().locale,ie.__parse=R,ie.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"}}},ie);function ie(e,t,r,n){var o=this;if(void 0===t&&(t=ie.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){return function(e,t,r,n,o,a){var i=G(e,t,r,n,o,void 0,a);return 1===i.length?i[0].value:i.reduce(function(e,t){return e+t.value},"")}(o.ast,o.locales,o.formatters,o.formats,e,o.message)},this.formatToParts=function(e){return G(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.formatHTMLMessage=function(e){return re(o.ast,o.locales,o.formatters,o.formats,e,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,!ie.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=ie.__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=oe(ie.formats,r),this.locales=t,this.formatters=n&&n.formatters||function(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:z(Intl.NumberFormat,e.number),getDateTimeFormat:z(Intl.DateTimeFormat,e.dateTime),getPluralRules:z(Intl.PluralRules,e.pluralRules)}}(this.formatterCache)}function ue(e,t,r,n,o,a,i,u){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,o,a,i,u],l=0;(s=new Error(t.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}var se=ue,ce={38:"&amp;",62:"&gt;",60:"&lt;",34:"&quot;",39:"&#x27;"},le=/[&><"']/g;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.")}function pe(e,t){var r=t?"\n".concat(t.stack):"";return"[React Intl] ".concat(e).concat(r)}var de={formats:{},messages:{},timeZone:void 0,textComponent:h.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){}};function ge(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{}}}function he(e){var t=0<arguments.length&&void 0!==e?e:{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{}},r=Intl.RelativeTimeFormat,n=Intl.ListFormat;return{getDateTimeFormat:z(Intl.DateTimeFormat,t.dateTime),getNumberFormat:z(Intl.NumberFormat,t.number),getMessageFormat:z(ae,t.message),getRelativeTimeFormat:z(r,t.relativeTime),getPluralRules:z(Intl.PluralRules,t.pluralRules),getListFormat:z(n,t.list)}}function ve(e,t,r,n){var o,a=e&&e[t];if(a&&(o=a[r]),o)return o;n(pe("No ".concat(t," format named: ").concat(r)))}var ye=r(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,s=r?Symbol.for("react.provider"):60109,c=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,g=r?Symbol.for("react.lazy"):60116;function h(e){if("object"===b(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 c:case m:case s:return e;default:return t}}case g:case d:case o:return t}}}function v(e){return h(e)===f}t.typeOf=h,t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=s,t.Element=n,t.ForwardRef=m,t.Fragment=a,t.Lazy=g,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"===b(e)&&null!==e&&(e.$$typeof===g||e.$$typeof===d||e.$$typeof===s||e.$$typeof===c||e.$$typeof===m)},t.isAsyncMode=function(e){return v(e)||h(e)===l},t.isConcurrentMode=v,t.isContextConsumer=function(e){return h(e)===c},t.isContextProvider=function(e){return h(e)===s},t.isElement=function(e){return"object"===b(e)&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return h(e)===m},t.isFragment=function(e){return h(e)===a},t.isLazy=function(e){return h(e)===g},t.isMemo=function(e){return h(e)===d},t.isPortal=function(e){return h(e)===o},t.isProfiler=function(e){return h(e)===u},t.isStrictMode=function(e){return h(e)===i},t.isSuspense=function(e){return h(e)===p}});t(ye);ye.typeOf,ye.AsyncMode,ye.ConcurrentMode,ye.ContextConsumer,ye.ContextProvider,ye.Element,ye.ForwardRef,ye.Fragment,ye.Lazy,ye.Memo,ye.Portal,ye.Profiler,ye.StrictMode,ye.Suspense,ye.isValidElementType,ye.isAsyncMode,ye.isConcurrentMode,ye.isContextConsumer,ye.isContextProvider,ye.isElement,ye.isForwardRef,ye.isFragment,ye.isLazy,ye.isMemo,ye.isPortal,ye.isProfiler,ye.isStrictMode,ye.isSuspense;var be=r(function(e){e.exports=ye}),we={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ae={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},Oe={};function Ce(e){return be.isMemo(e)?Fe:Oe[e.$$typeof]||we}Oe[be.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var Pe=Object.defineProperty,Te=Object.getOwnPropertyNames,xe=Object.getOwnPropertySymbols,Ee=Object.getOwnPropertyDescriptor,De=Object.getPrototypeOf,je=Object.prototype;function Se(e,t,r){if("string"!=typeof t){if(je){var n=De(t);n&&n!==je&&Se(e,n,r)}var o=Te(t);xe&&(o=o.concat(xe(t)));for(var a=Ce(e),i=Ce(t),u=0;u<o.length;++u){var s=o[u];if(!(Ae[s]||r&&r[s]||i&&i[s]||a&&a[s])){var c=Ee(t,s);try{Pe(e,s,c)}catch(e){}}}}return e}var Me=Se;var ke=h.createContext(null),Ie=ke.Consumer,Re=ke.Provider,_e=ke;function Ne(r,e){function n(t){return h.createElement(Ie,null,function(e){return c&&me(e),h.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,s=t.enforceContext,c=void 0===s||s;return n.displayName="injectIntl(".concat(function(e){return e.displayName||e.name||"Component"}(r),")"),n.WrappedComponent=r,Me(u?h.forwardRef(function(e,t){return h.createElement(n,Object.assign({},e,{forwardedRef:t}))}):n,r)}var Le,$e,Ze,ze,He=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&&(r[n[o]]=e[n[o]])}return r};($e=Le=Le||{}).formatDate="FormattedDate",$e.formatTime="FormattedTime",$e.formatNumber="FormattedNumber",$e.formatList="FormattedList",(ze=Ze=Ze||{}).formatDate="FormattedDateParts",ze.formatTime="FormattedTimeParts",ze.formatNumber="FormattedNumberParts",ze.formatList="FormattedListParts";function Be(o){return h.createElement(_e.Consumer,null,function(e){me(e);var t=o.value,r=o.children,n=He(o,["value","children"]);return r(e.formatNumberToParts(t,n))})}function Ue(i){function e(a){return h.createElement(_e.Consumer,null,function(e){me(e);var t=a.value,r=a.children,n=He(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=Ze[i],e}function Ve(u){function e(i){return h.createElement(_e.Consumer,null,function(e){me(e);var t=i.value,r=i.children,n=He(i,["value","children"]),o=e[u](t,n);if("function"==typeof r)return r(o);var a=e.textComponent||h.Fragment;return h.createElement(a,null,o)})}return e.displayName=Le[u],e}Be.displayName="FormattedNumberParts";var qe=["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,s=u&&ve(o,"number",u,a)||{};return t(n,fe(i,qe,s))}var Ge=["numeric","style"];function Xe(t,e,r,n){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:{};n=n||"second",Intl.RelativeTimeFormat||t.onError(pe('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n'));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,s=!!u&&ve(o,"relative",u,a)||{};return t(n,fe(i,Ge,s))}(t,e,o).format(r,n)}catch(e){t.onError(pe("Error formatting relative time.",e))}return String(r)}var Je=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Ke(e,t,r,n){var o=e.locale,a=e.formats,i=e.onError,u=e.timeZone,s=3<arguments.length&&void 0!==n?n:{},c=s.format,l=Object.assign({},u&&{timeZone:u},c&&ve(a,t,c,i)),f=fe(s,Je,l);return"time"!==t||f.hour||f.minute||f.second||(f=Object.assign({},f,{hour:"numeric",minute:"numeric"})),r(o,f)}var Qe=["localeMatcher","type"];var Ye=ue;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({},r,n)).reduce(function(e,t){return e[t]=Object.assign({},r[t]||{},n[t]||{}),e},{})}function rt(e,t){if(!t)return e;var r=ae.formats;return 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,s=e.timeZone,c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{id:""},l=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},f=c.id,m=c.defaultMessage;if(Ye(f,"[React Intl] An `id` must be provided to format a message."),!f)throw new Error("[React Intl] An `id` must be provided to format a message.");var p=o&&o[f];n=rt(n,s),i=rt(i,s);var d=[];if(p)try{d=t.getMessageFormat(p,r,n,{formatters:t}).formatHTMLMessage(l)}catch(e){u(pe('Error formatting message: "'.concat(f,'" for locale: "').concat(r,'"')+(m?", using default message as fallback.":""),e))}else(!m||r&&r.toLowerCase()!==a.toLowerCase())&&u(pe('Missing message: "'.concat(f,'" for locale: "').concat(r,'"')+(m?", using default message as fallback.":"")));if(!d.length&&m)try{d=t.getMessageFormat(m,a,i).formatHTMLMessage(l)}catch(e){u(pe('Error formatting the default message for: "'.concat(f,'"'),e))}return d.length?1===d.length&&"string"==typeof d[0]?d[0]||m||f:d:(u(pe('Cannot format message: "'.concat(f,'", ')+"using message ".concat(p||m?"source":"id"," as fallback."))),"string"==typeof p?p||m||f:m||f)}function ot(e,t){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return nt(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{id:""},Object.keys(n).reduce(function(e,t){var r=n[t];return e[t]="string"==typeof r?function(e){return(""+e).replace(le,function(e){return ce[e.charCodeAt(0)]})}(r):r,e},{}))}function at(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 it=["localeMatcher","type","style"],ut=Date.now();function st(e,t,r){var n=e.locale,o=e.onError,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};Intl.ListFormat||o(pe('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n'));var i=fe(a,it);try{var u={},s=r.map(function(e,t){if("object"!==b(e))return String(e);var r=function(e){return"".concat(ut,"_").concat(e,"_").concat(ut)}(t);return u[r]=e,r});return Object.keys(u).length?t(n,i).formatToParts(s).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(s)}catch(e){o(pe("Error formatting list.",e))}return r}var ct=at;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({},de,e);if(!n.locale||!function(t,e){if("undefined"==typeof Intl)return!1;if(!t)throw new Error("locales must be supplied.");Array.isArray(t)||(t=[t]);var r=e||[Intl.DateTimeFormat,Intl.NumberFormat,Intl.PluralRules];return!(0===(r=r.filter(Boolean)).length||e&&r.length!==e.length)&&r.every(function(e){return e.supportedLocalesOf(t).length===t.length})}(n.locale)){var o=n.locale,a=n.defaultLocale,i=n.onError;"function"==typeof i&&i(pe('Missing locale data for locale: "'.concat(o,'". ')+'Using default locale: "'.concat(a,'" as fallback.'))),n.locale=n.defaultLocale||"en"}return 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(pe("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(pe("Error formatting number.",e))}return[]}.bind(null,n,r.getNumberFormat),formatRelativeTime:Xe.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 Ke(t,"date",e,n).format(o)}catch(e){t.onError(pe("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 Ke(t,"date",e,n).formatToParts(o)}catch(e){t.onError(pe("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 Ke(t,"time",e,n).format(o)}catch(e){t.onError(pe("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 Ke(t,"time",e,n).formatToParts(o)}catch(e){t.onError(pe("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(pe('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n'));var i=fe(a,Qe);try{return t(n,i).select(r)}catch(e){o(pe("Error formatting plural.",e))}return"other"}.bind(null,n,r.getPluralRules),formatMessage:nt.bind(null,n,r),formatHTMLMessage:ot.bind(null,n,r),formatList:st.bind(null,n,r.getListFormat)})}var mt=function(){function t(){var e;return i(this,t),(e=m(this,l(t).apply(this,arguments))).cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{}},e.state={cache:e.cache,intl:ft(lt(e.props),e.cache),prevConfig:lt(e.props)},e}return c(t,h.PureComponent),s(t,[{key:"render",value:function(){return me(this.state.intl),h.createElement(Re,{value:this.state.intl},this.props.children)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.prevConfig,n=t.cache,o=lt(e);return ct(r,o)?null:{intl:ft(o,n),prevConfig:o}}}]),t}();mt.displayName="IntlProvider",mt.defaultProps=de;var pt=ue,dt=60,gt=3600;function ht(e){var t=Math.abs(e);return t<dt?"second":t<gt?"minute":t<86400?"hour":"day"}function vt(e){switch(e){case"second":return 1;case"minute":return dt;case"hour":return gt;default:return 86400}}function yt(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return e*dt;default:return e*gt}}var bt=["second","minute","hour"];function wt(e){var t=0<arguments.length&&void 0!==e?e:"second";return bt.includes(t)}var At=function(){function r(e){var t;return i(this,r),(t=m(this,l(r).call(this,e)))._updateTimer=null,t.state={prevUnit:t.props.unit,prevValue:t.props.value,currentValueInSeconds:wt(t.props.unit)?yt(t.props.value,t.props.unit):0},function(e,t){pt(!e||e&&wt(t),"Cannot schedule update with unit longer than hour")}(e.updateIntervalInSeconds,e.unit),t}return c(r,h.PureComponent),s(r,[{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&&wt(o)){var i=a-n,u=ht(i);if("day"!==u){var s=vt(u),c=i-i%s,l=a<=c?c-s:c,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 h.createElement(_e.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,s=p.state.currentValueInSeconds,c=a||0,l=i;if(wt(i)&&"number"==typeof s&&u){var f=vt(l=ht(s));c=Math.round(s/f)}var m=t(c,l,Object.assign({},p.props));return"function"==typeof o?o(m):r?h.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:wt(e.unit)?yt(e.value,e.unit):0}:null}}]),r}();At.displayName="FormattedRelativeTime",At.defaultProps={value:0,unit:"second"};function Ft(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?h.createElement(i,null,u):u}Ft.defaultProps={type:"cardinal"},Ft.displayName="FormattedPlural";function Ot(e,t){return nt(Object.assign({},de,{locale:"en"}),he(),e,t)}var xt=Ne(Ft),Et=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&&(r[n[o]]=e[n[o]])}return r},Dt=at,jt=function(){function e(){return i(this,e),m(this,l(e).apply(this,arguments))}return c(e,h.Component),s(e,[{key:"shouldComponentUpdate",value:function(e){var t=this.props,r=t.values,n=Et(t,["values"]),o=e.values,a=Et(e,["values"]);return!Dt(o,r)||!Dt(n,a)}},{key:"render",value:function(){var g=this;return h.createElement(_e.Consumer,null,function(e){g.props.defaultMessage||me(e);var t=e||{},r=t.formatMessage,n=void 0===r?Ot:r,o=t.textComponent,a=void 0===o?h.Fragment:o,i=g.props,u=i.id,s=i.description,c=i.defaultMessage,l=i.values,f=i.children,m=i.tagName,p=void 0===m?a:m,d=n({id:u,description:s,defaultMessage:c},l);return Array.isArray(d)||(d=[d]),"function"==typeof f?f.apply(void 0,v(d)):p?h.createElement.apply(h,[p,null].concat(v(d))):d})}}]),e}();jt.displayName="FormattedMessage",jt.defaultProps={values:{}};var St=function(){function e(){return i(this,e),m(this,l(e).apply(this,arguments))}return c(e,jt),s(e,[{key:"render",value:function(){var m=this;return h.createElement(_e.Consumer,null,function(e){m.props.defaultMessage||me(e);var t=e.formatHTMLMessage,r=e.textComponent,n=m.props,o=n.id,a=n.description,i=n.defaultMessage,u=n.values,s=n.children,c=m.props.tagName;c=c||(r||"span");var l=t({id:o,description:a,defaultMessage:i},u);if("function"==typeof s)return s(l);var f={__html:l};return h.createElement(c,{dangerouslySetInnerHTML:f})})}}]),e}();St.displayName="FormattedHTMLMessage",St.defaultProps=Object.assign({},jt.defaultProps,{tagName:"span"});var Mt=Ve("formatDate"),kt=Ve("formatTime"),It=Ve("formatNumber"),Rt=Ve("formatList"),_t=Ue("formatDate"),Nt=Ue("formatTime");e.FormattedDate=Mt,e.FormattedDateParts=_t,e.FormattedHTMLMessage=St,e.FormattedList=Rt,e.FormattedMessage=jt,e.FormattedNumber=It,e.FormattedNumberParts=Be,e.FormattedPlural=xt,e.FormattedRelativeTime=At,e.FormattedTime=kt,e.FormattedTimeParts=Nt,e.IntlContext=_e,e.IntlProvider=mt,e.RawIntlProvider=Re,e.createIntl=ft,e.createIntlCache=ge,e.defineMessages=a,e.injectIntl=Ne,e.useIntl=function(){var e=h.useContext(_e);return me(e),e},Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=react-intl.min.js.map