define("keymaster",(function(){return(function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)})({"./keymaster.js":function(e,t,r){(function(t){if(window.key)return t.key=window.key,void(e.exports=t.key);var r,n={},o={16:!1,18:!1,17:!1,91:!1},a="all",i={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,command:91},s={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,home:36,end:35,pageup:33,pagedown:34,",":188,".":190,"/":191,"`":192,"-":189,"=":187,";":186,"'":222,"[":219,"]":221,"\\":220};for(r=1;r<20;r++)s["f"+r]=111+r;function u(e,t){for(var r=e.length;r--;)if(e[r]===t)return r;return-1}function l(){for(r in o)o.hasOwnProperty(r)&&(o[r]=!1)}function c(e,t,r){var o,a,u,l;for(void 0===r&&(r=t,t="all"),""==(o=(e=e.replace(/\s/g,"")).split(","))[o.length-1]&&(o[o.length-2]+=","),u=0;u<o.length;u++){if(a=[],(e=o[u].split("+")).length>1){for(a=e.slice(0,e.length-1),l=0;l<a.length;l++)a[l]=i[a[l]];e=[e[e.length-1]]}e=e[0],(e=s[e]||e.toUpperCase().charCodeAt(0))in n||(n[e]=[]),n[e].push({shortcut:o[u],scope:t,method:r,key:o[u],mods:a})}}for(r in i)c[r]=!1;function f(e){a=e||"all"}function d(){return a}function m(e){for(var t=e.slice(0,e.length-1),r=0;r<t.length;r++)t[r]=i[t[r]];return t}function p(e,t){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function h(e){var t=e.target||e.srcElement,r=t.tagName,n=e.keyCode,o=t.hasAttribute&&t.hasAttribute("contenteditable")&&"false"!=t.getAttribute("contenteditable").toLowerCase()||"undefined"!=typeof jest&&"true"==t.contentEditable;return!(("INPUT"==r||"SELECT"==r||"TEXTAREA"==r||o)&&-1==["submit","button"].indexOf(t.type)&&n!=s.escape&&n!=s.tab)}function g(e,t,r){e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent&&e.attachEvent("on"+t,(function(){r(window.event)}))}g(document,"keydown",(function(e){var t,r,s,l,f;if((e.target||e.srcElement).tagName,93!=(t=e.keyCode)&&224!=t||(t=91),t in o)for(s in o[t]=!0,i)i[s]==t&&(c[s]=!0);else if(c.filter.call(this,e)&&t in n)for(originalScope=a,l=0;l<n[t].length;l++)if((r=n[t][l]).scope==originalScope||"all"==r.scope){for(s in f=r.mods.length>0,o)(!o[s]&&u(r.mods,+s)>-1||o[s]&&-1==u(r.mods,+s))&&(f=!1);(0!=r.mods.length||o[16]||o[18]||o[17]||o[91])&&!f||!1===r.method(e,r)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}})),g(document,"keyup",(function(e){var t,r=e.keyCode;if(93!=r&&224!=r||(r=91),r in o)for(t in o[r]=!1,i)i[t]==r&&(c[t]=!1)})),g(window,"focus",l),g(document,"contextmenu",l),t.key=c,t.key.setScope=f,t.key.getScope=d,t.key.clear=function(){n={},f(),l()},t.key.clearScope=function(e){for(var t in n)if(n.hasOwnProperty(t))for(var r=0;r<n[t].length;r++)n[t][r].scope===e&&(n[t].splice(r,1),r-=1)},t.key.filter=h,t.key.resetFilter=function(){c.filter=h},t.key.unbind=function(e,t,r){var o,a,i,u,l,c,f,h=[];for(a=(function(e){var t=e.replace(/\s/g,"").split(",");return""==t[t.length-1]&&(t[t.length-2]+=","),t})(e),l=0;l<a.length;l++){if((i=a[l].split("+")).length>1&&(h=m(i)),o=i[i.length-1],o=s[f=o]||f.toUpperCase().charCodeAt(0),void 0===t&&(t=d()),!n[o])return;for(u=0;u<n[o].length;u++)(c=n[o][u]).scope===t&&p(c.mods,h)&&(r&&c.method!==r||(n[o][u]={}))}},e.exports=t.key,window.key=t.key})(this),e.exports=this.key},0:function(e,t,r){e.exports=r("./keymaster.js")}})})),define("modules/clean/datetime",["require","exports","tslib","modules/constants/time","modules/core/exception","modules/core/i18n","dbx-i18n"],(function(e,t,r,n,o,a,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n=r.__importStar(n),t.localized_date_format=n.DATE_FORMAT,t.localized_datetime_format=n.DATETIME_FORMAT,t.localized_time_format=n.TIME_FORMAT;function s(e,t){var r=[a.intl.formatMessage({id:"EBx+nl",defaultMessage:"am"}),a.intl.formatMessage({id:"5qHjxe",defaultMessage:"pm"})];return t.replace(/'[^']*'|y+|M+|d+|h+|k+|K+|H+|m+|s+|S+|a+/g,(function(t){var n;switch(t[0]){case"'":return 2===t.length?"'":t.slice(1,-1);case"y":if("yy"===t)return e.getYear()%100;n=e.getFullYear();break;case"M":if(t.length>=3)return 3===t.length?m[e.getMonth()]:d[e.getMonth()];n=e.getMonth()+1;break;case"d":n=e.getDate();break;case"h":n=e.getHours()%12||12;break;case"k":n=e.getHours()%12+1;break;case"K":n=e.getHours()%12;break;case"H":n=e.getHours();break;case"m":n=e.getMinutes();break;case"s":n=e.getSeconds();break;case"S":n=e.getMilliseconds();break;case"a":var o=void 0;return o=e.getHours()>=12?1:0,r[o]}return(n=""+n).length<t.length&&(n=("00000000"+n).slice(-1*t.length)),n}))}function u(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())}function l(e){var t=[86400,3600,60,1];e=isNaN(e)?0:e;for(var r=0;r<t.length;r++){var n=t[r];if(e>=n)return{unit:r,value:Math.floor(e/n)}}return{unit:4,value:0}}function c(e,t){var r=60*t;e.setMinutes(e.getMinutes()+r)}function f(e){for(var t=new Date(0),r=[],n=0;n<12;n++)t.setDate(1),t.setMonth(n),r.push(a.intl.formatDate(t,{month:e?"short":"long"}));return r}t.format_date=s,t.format_date_utc=function(e,t){return s(u(e),t)},t.format_date_timezone_offset=function(e,t){return s((function(e){var t=new Date(e.getTime());return c(t,n.TIMEZONE_OFFSET),u(t)})(e),t)},t.format_time=function(e){var t=l(e),r=t.unit,n=t.value,i="";return r>=3?i=a.intl.formatMessage({id:"FCAxfK",defaultMessage:"{count, plural, one{# second} other{# seconds}}"},{count:n}):2===r?i=a.intl.formatMessage({id:"V1H0x+",defaultMessage:"{count, plural, one{# minute} other{# minutes}}"},{count:n}):1===r?i=a.intl.formatMessage({id:"PRyQrc",defaultMessage:"{count, plural, one{# hour} other{# hours}}"},{count:n}):0===r?i=a.intl.formatMessage({id:"3O3Xv8",defaultMessage:"{count, plural, one{# day} other{# days}}"},{count:n}):o.assert(!1,"Invalid time"),i},t.format_time_remaining=function(e){var t=l(e),r=t.unit,n=t.value,i="";return r>=3?i=a.intl.formatMessage({id:"0OPuIy",defaultMessage:"{count, plural, one{{count} second left} other{{count} seconds left}}"},{count:n}):2===r?i=a.intl.formatMessage({id:"wapekl",defaultMessage:"{count, plural, one{{count} minute left} other{{count} minutes left}}"},{count:n}):1===r?i=a.intl.formatMessage({id:"8tm1dH",defaultMessage:"{count, plural, one{{count} hour left} other{{count} hours left}}"},{count:n}):0===r?i=a.intl.formatMessage({id:"Z4BYdz",defaultMessage:"{count, plural, one{{count} day left} other{{count} days left}}"},{count:n}):o.assert(!1,"Invalid time"),i},t.getTimeBands=function(e){var t=new Date(e);t.setHours(0,0,0,0);var r=new Date(t.getFullYear(),0,1).getTime(),n=t.getTime(),o=n-864e5,a=new Date(e);0===t.getDay()?a.setDate(t.getDate()-7):a.setDate(t.getDate()-t.getDay()-1),a.setHours(0);var i=a.getTime(),s=i-6048e5;t.setDate(1);var u=t.getTime();t.setMonth(t.getMonth()-1);var l=t.getTime();return t.setMonth(t.getMonth()-3),{today:n,yesterday:o,thisWeek:i,lastWeek:s,thisMonth:u,lastMonth:l,lastThreeMonths:t.getTime(),thisYear:r}},t.ago=function(e,t){return void 0===t&&(t=!0),i.timeSince(a.intl,e,{displayLocation:"label",displayContext:t?"standalone":"sentence-middle"})},t.agoFromDate=function(e,t,r){return void 0===r&&(r=!0),i.timeSince(a.intl,e,{displayLocation:"label",displayContext:r?"standalone":"sentence-middle"},t)},t.applyTimezoneOffset=c,t.increment_date=function(e,t,r,n,o,a){return null==t&&(t=0),null==r&&(r=0),null==n&&(n=0),null==o&&(o=0),null==a&&(a=0),e.setFullYear(e.getFullYear()+t),e.setMonth(e.getMonth()+r),e.setDate(e.getDate()+n),e.setHours(e.getHours()+o),e.setMinutes(e.getMinutes()+a),e},t.daysAfterToday=function(e){var t=new Date;return t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0),t.setDate(t.getDate()+e),t};var d=f(),m=f(!0);function p(e){for(var t=new Date(0),r=t.getDay(),n=t.getDate()-r,o=[],i=0;i<7;i++){var s=new Date(0);s.setDate(n+i),o.push(a.intl.formatDate(s,{weekday:e?"short":"long"}))}return o}t.datepickerLocalization={firstDayOfWeek:1,months:f(),weekdaysLong:p(),weekdaysShort:p(!0)}})),define("modules/clean/display_format",["require","exports","modules/core/i18n"],(function(e,t,r){"use strict";function n(e,n,o,a,i){void 0===n&&(n=2),void 0===o&&(o=!0),void 0===a&&(a=!0),void 0===i&&(i=!0),e=i?parseFloat(e):Math.max(0,parseFloat(e));var s,u,l=Math.abs(e);return l<1024?(n=0,s=e,u=r.intl.formatMessage({id:"I7KA8j",defaultMessage:"{count, plural, one{byte} other{bytes}}"},{count:e}),o=!0):l<1024*t.SWITCH_UNIT_THRESHOLD?(s=e/1024,u=r.intl.formatMessage({id:"MVs5oP",defaultMessage:"KB"})):l<1048576*t.SWITCH_UNIT_THRESHOLD?(s=e/1048576,u=r.intl.formatMessage({id:"bpefQm",defaultMessage:"MB"})):l<1073741824*t.SWITCH_UNIT_THRESHOLD||0===n&&e<1099511627776?(s=e/1073741824,u=r.intl.formatMessage({id:"UFpE+s",defaultMessage:"GB"})):(s=e/1099511627776,u=r.intl.formatMessage({id:"+KkCsG",defaultMessage:"TB"})),""+r.intl.formatNumber(s,{maximumFractionDigits:n,minimumFractionDigits:a?0:n})+(o?" ":"")+u}Object.defineProperty(t,"__esModule",{value:!0}),t.SWITCH_UNIT_THRESHOLD=900,t.format_bytes=n,t.formatGigabytes=function(e,t,r,o){return void 0===t&&(t=2),void 0===r&&(r=!0),void 0===o&&(o=!0),n(1073741824*(e=parseFloat(e)))},t.formatFolderFilesCount=function(e,t){void 0===t&&(t=2);var r=""+e,n="";return e>=1e3&&e<1e6?(e/=1e3,n="K"):e>=1e6&&(e/=1e6,n="M"),r=e.toFixed(t),""+(r=parseFloat(r).toString())+n}})),define("modules/clean/react/modal",["require","exports","tslib","classnames","prop-types","purify","react","react-dom","react-dom-factories","modules/clean/css","modules/clean/keycode","modules/clean/react/button","modules/clean/react/modal_controller","modules/clean/static_urls","modules/clean/ux_analytics_utils","modules/core/dom","modules/core/exception","modules/core/i18n","modules/core/notify"],(function(e,t,r,n,o,a,i,s,u,l,c,f,d,m,p,h,g,y,v){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n=r.__importDefault(n),o=r.__importStar(o),a=r.__importStar(a),i=r.__importDefault(i),s=r.__importStar(s),u=r.__importDefault(u),l=r.__importStar(l),d=r.__importStar(d),h=r.__importStar(h);var b=i.default.createElement,_=(function(e){function t(t){var r=e.call(this,t)||this;return r.modalRef=i.default.createRef(),r.close=function(){d.unmountModal(r.elementToFocusOnClose instanceof HTMLElement?r.elementToFocusOnClose:void 0)},r._invokeCallbackAndClose=function(e,t,n){A(e,"call",(function(e){return e.call(r,t)})),t.defaultPrevented||(r.props.autoClose||n)&&r.close()},r._dismiss=function(e){r._invokeCallbackAndClose(r.props.onDismiss,e,!0),A(r.props.onDismissCompleted,"call",(function(t){return t.call(r,e)}))},r._accept=function(e){r._invokeCallbackAndClose(r.props.onAccept,e,!1)},r._onClickOnOverlay=function(e){r.props.clickOutToClose&&r._dismiss(e)},r._focus=function(){r.elementToFocusOnClose=document.activeElement;var e=r.modalRef.current;if(null!==e){if(r.props.autoFocusPrimaryInput){var t=e.querySelector("input:not(:disabled)"),n=null!=r.refs.primaryButton&&s.findDOMNode(r.refs.primaryButton),o=null!=r.refs.tertiaryButton&&s.findDOMNode(r.refs.tertiaryButton);t?e=t:n&&!n.disabled?e=n:o&&!o.disabled&&(e=o)}e.focus()}},r._keyDown=function(e){if(r.props.stopKeyDownEventPropagation&&e.stopPropagation(),e.keyCode===c.KeyCode.ESC&&r.props.escapeOrBackspaceToClose&&r._dismiss(e),e.keyCode!==c.KeyCode.BACKSPACE||h.focus_in_input()||(e.preventDefault(),r.props.escapeOrBackspaceToClose&&r._dismiss(e)),r.props.onKeyDown&&r.props.onKeyDown(e),null!==r.modalRef.current)return h.keepFocusIn(r.modalRef.current,r.modalRef.current,e)},r._trackingId=function(e){return null!=r.props.trackingIdPrefix?r.props.trackingIdPrefix+"-"+e:null},r._renderAcceptButton=function(){return b(f.button,{ref:"primaryButton",key:"primary",className:"dbmodal-button","data-trackingid":r._trackingId("accept"),importance:r.props.acceptButtonImportance,disabled:r.props.acceptButtonDisabled,onClick:r._accept},r.props.acceptButtonText)},r._renderDismissButton=function(){return b(f.button,{ref:"tertiaryButton",key:"tertiary-dismiss",className:"dbmodal-button","data-trackingid":r._trackingId("dismiss"),importance:r.props.dismissButtonImportance,disabled:r.props.dismissButtonDisabled,onClick:r._dismiss},r.props.dismissButtonText)},r._renderHelpLink=function(){return i.default.createElement("div",{className:"dbmodal-extra-link-button"},r.props.helpLink)},r._renderButtons=function(){if(r.props.buttonComponent)return r.props.buttonComponent;var e=[];return r.props.submitting&&e.push(u.default.span({className:"dbmodal-loading",key:"loading"},u.default.img({src:m.static_url("/static/images/icons/ajax-loading-small-vfl3Wt7C_.gif"),alt:y.intl.formatMessage({id:"jybGUg",defaultMessage:"Loading"})}))),"default-maestro"===r.props.style?(r.props.dismissButtonText&&e.push(r._renderDismissButton()),r.props.acceptButtonText&&e.push(r._renderAcceptButton())):(r.props.acceptButtonText&&e.push(r._renderAcceptButton()),r.props.dismissButtonText&&e.push(r._renderDismissButton()),r.props.helpLink&&e.push(r._renderHelpLink())),e.length?u.default.div({className:"db-modal-buttons"},r.props.showButtonDivider?u.default.hr({}):void 0,e):null},r._renderAltAction=function(){return r.props.altAction?u.default.div({className:"db-modal__alt-action"},r.props.altAction):null},r._preventEventBubbling=function(e){e.stopPropagation()},r.state={didCssLoad:!1},r}return r.__extends(t,e),t.showInstance=function(e,t){return d.mountModal(e,t)},t.isModalDisplayed=function(){return d.isModalDisplayed()},t.close=function(e){d.unmountModal(e)},t.unhide=function(){d.showModal()},t.prototype.componentDidMount=function(){var e,t;p.dispatchModalOpened(),h.scroll_lock_document(),null===(e=this.modalRef.current)||void 0===e||e.addEventListener("keydown",this._keyDown),null===(t=this.modalRef.current)||void 0===t||t.addEventListener("keypress",this._preventEventBubbling),this._focus(),"function"==typeof this.props.onShow&&this.props.onShow()},t.prototype.UNSAFE_componentWillMount=function(){var e=this;this.props.shouldLoadCss&&l.require_css("/static/css/modal-vflp8UKYY.css",(function(){e.setState({didCssLoad:!0}),e._focus()}),(function(){g.reportStack("modal css not properly loaded",{severity:g.SEVERITY.CRITICAL}),v.Notify.error(y.intl.formatMessage({id:"bLA3rA",defaultMessage:"There was a problem completing this request."}))}))},t.prototype.componentWillUnmount=function(){var e,t;p.dispatchModalClosed(),h.scroll_unlock_document(),null===(e=this.modalRef.current)||void 0===e||e.removeEventListener("keydown",this._keyDown),null===(t=this.modalRef.current)||void 0===t||t.removeEventListener("keypress",this._preventEventBubbling)},t.prototype.render=function(){var e={"db-modal-wrapper":!0,"uxa-modal":!0,"clean-react-modal":!0,"db-modal--clean-style":"clean"===this.props.style,"db-modal--simple-style":"simple"===this.props.style,"db-modal--lightbox-style":"lightbox"===this.props.style,"db-modal--bare-style":"bare"===this.props.style,"db-modal--default-maestro-style":"default-maestro"===this.props.style,"db-modal--cancel-style":"cancel"===this.props.style,"db-modal--cancel-confirmation-style":"cancel-confirmation"===this.props.style};this.props.className&&(e[this.props.className]=!0);var t=n.default(e),o=p.getModalId({id:this.props.id,className:this.props.className}),a=this.props.width?{width:this.props.width+"px"}:{},i=!this.props.shouldLoadCss||this.props.shouldLoadCss&&this.state.didCssLoad?{}:{style:{display:"none"}};return u.default.div(r.__assign({id:o,className:t},i),u.default.div({className:"db-modal-overlay",onClick:this._onClickOnOverlay}),u.default.div({ref:this.modalRef,className:"db-modal",tabIndex:-1,style:a,role:"dialog","aria-labelledby":"lightbox"===this.props.style?"":this.props.headerId},u.default.div({className:"db-modal-box",ref:"modalBox"},["lightbox","bare"].includes(this.props.style)?u.default.div({className:"db-modal-"+this.props.style},this.props.children):u.default.div({},!this.props.showX||"default-maestro"===this.props.style&&"change-email-modal--maestro"!==this.props.className?void 0:u.default.button({className:"db-modal-x",onClick:this._dismiss,"aria-label":y.intl.formatMessage({id:"u/p3Pl",defaultMessage:"Close"}),"data-trackingid":this._trackingId("dismiss")}),this.props.title?u.default.h1({id:"db-modal-title",className:"db-modal-title"},u.default.div({className:"db-modal-title-text",ref:"title"},this.props.title)):null,u.default.div({className:"db-modal-content clearfix",ref:"content"},this.props.children,this._renderButtons(),this._renderAltAction())))))},t.displayName="Modal",t.propTypes={id:o.string,width:o.number,submitting:o.bool,title:o.oneOfType([o.oneOfType([o.string,o.element]),o.arrayOf(o.oneOfType([o.string,o.element]))]),acceptButtonText:o.string,dismissButtonText:o.string,acceptButtonImportance:o.string,dismissButtonImportance:o.string,altAction:o.node,trackingIdPrefix:o.string,headerId:o.string,onAccept:o.func,onDismiss:o.func,onDismissCompleted:o.func,onShow:o.func,onKeyDown:o.func,buttonComponent:o.element,autoClose:o.bool,clickOutToClose:o.bool,showX:o.bool,escapeOrBackspaceToClose:o.bool,showButtonDivider:o.bool,acceptButtonDisabled:o.bool,dismissButtonDisabled:o.bool,autoFocusPrimaryInput:o.bool,style:o.oneOf(["default","default-maestro","clean","simple","lightbox","bare","cancel","cancel-confirmation"]),setMaxHeight:o.bool,className:o.string,shouldLoadCss:o.bool,stopKeyDownEventPropagation:o.bool,helpLink:o.oneOfType([o.string,o.element])},t.defaultProps={acceptButtonText:y.intl.formatMessage({id:"nOO9Qi",defaultMessage:"OK"}),acceptButtonImportance:"primary",dismissButtonImportance:"tertiary",dismissButtonText:null,buttonComponent:null,headerId:"db-modal-title",onAccept:function(){},onDismiss:function(){},onShow:function(){},autoClose:!0,clickOutToClose:!0,style:"default",showX:!0,escapeOrBackspaceToClose:!0,acceptButtonDisabled:!1,dismissButtonDisabled:!1,autoFocusPrimaryInput:!0,shouldLoadCss:!0,stopKeyDownEventPropagation:!0},t})(i.default.Component);t.Modal=_;var w=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(){var e={};for(var t in this.props){var r=this.props[t];e[t]=r}return e.className=n.default(this.props.className,"db-modal-buttons"),u.default.div(e)},t.displayName="ModalButtons",t})(i.default.Component);t.ModalButtons=w;var M=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(){var e={};for(var t in this.props){var r=this.props[t];e[t]=r}return"button-as-link skip-link"===this.props.className?e.className=this.props.className:e.className=n.default(this.props.className,"dbmodal-button","button-"+this.props.importance),u.default.button(e)},t.displayName="ModalButton",t.propTypes={importance:o.oneOf(["primary","secondary","tertiary"])},t.defaultProps={importance:"primary"},t})(i.default.Component);t.ModalButton=M;var T={show:function(e){var t={acceptButtonText:e.confirm_text,trackingIdPrefix:e.trackingIdPrefix,onAccept:e.confirm_callback,dismissButtonText:e.cancel_text,onDismiss:e.cancel_callback,onDismissCompleted:e.cancel_completed_callback,title:e.title_text,width:e.width,className:"simple-modal",autoClose:e.autoclose,style:e.style,onShow:e.on_show},r=e.body_react?i.default.createElement("div",{className:"simple-modal-content"},e.body_react):i.default.createElement("div",{className:"simple-modal-content",dangerouslySetInnerHTML:{__html:a.sanitize(e.body_html)}}),n=b(_,t,r);return d.mountModal(n)}};function A(e,t,r){return null!=e&&"function"==typeof e[t]?r(e,t):void 0}t.SimpleModal=T})),define("modules/clean/react/modal_controller",["require","exports","tslib","react-dom","modules/clean/ux_analytics_utils","modules/core/i18n"],(function(e,t,r,n,o,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n=r.__importStar(n),t.MODAL_ROOT_ID="react-modal-root",t.MODAL_ROOT_TESTID="react-modal-root";var i=function(e){void 0===e&&(e=!0);var r=t.MODAL_ROOT_ID,n=document.getElementById(r);return!n&&e&&((n=document.createElement("div")).id=r,n.setAttribute("data-testid",t.MODAL_ROOT_TESTID),document.body.insertBefore(n,document.body.firstChild||null)),n};t.mountModal=function(e,t){void 0===t&&(t=!0);var r=i();if(t){var o=r;if(o)n.unmountComponentAtNode(o),Array.from(o.parentNode.children).filter((function(e){return e!==o&&"#accessible-announce"!==e.id})).forEach((function(e){e.setAttribute("aria-hidden","true")}))}return n.render(e,r)},t.isModalDisplayed=function(){return!!i(!1)},t.unmountModal=function(e){var t=i();t&&(n.unmountComponentAtNode(t),o.dispatchModalClosed(),Array.from(t.parentNode.children).filter((function(e){return e!==t})).forEach((function(e){e.removeAttribute("aria-hidden")})),e&&e.focus())},t.showModal=function(){var e=i();e&&(e.style.display="")},t.CLOSE_BUTTON_TEXT=a.intl.formatMessage({id:"PjwOeo",defaultMessage:"Close"})})),define("modules/clean/validators/validators",["require","exports","tslib","external/lodash","react-intl","jquery","modules/core/i18n"],(function(e,t,r,n,o,a,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n=r.__importStar(n),a=r.__importDefault(a);var s={},u=function(e,t){return s[e]=t},l=function(e){var t,n=e[0],o=e.slice(1);if(!s[n])throw new Error("Cannot find validator of type "+n);return new((t=s[n]).bind.apply(t,r.__spreadArrays([void 0],o)))},c=function(e){this.messages=n.assignIn({},this.constructor.messages,null!=e?e.messages:void 0)};u("AllValidator",(function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=this,a=null;return n.isArray(n.last(t))||(a=n.last(t),t=t.slice(0,-1)),(o=e.call(this,a)||this).validators=Array.from(t).filter((function(e){return null!==e})).map((function(e){return l(e)})),o}return r.__extends(t,e),t.prototype.validate=function(e,t){return Array.from(this.validators).map((function(r){return r.validate(e,t)}))},t})(c));var f=/^[\x00-\x7f]*$/,d=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.initClass=function(){this.messages={asciiOnly:i.intl.formatMessage({id:"5MHDrd",defaultMessage:"Only basic ASCII characters allowed"})}},t.prototype.validate=function(e){if(!f.test(e))throw new Error(this.messages.asciiOnly)},t})(c);d.initClass(),u("AsciiOnlyValidator",d);var m=(function(e){function t(t){var r=e.call(this,t)||this;return r.not_empty=t.not_empty,r.strip=t.strip,r}return r.__extends(t,e),t.initClass=function(){this.messages={empty:o.defineMessage({id:"QmfUEx",defaultMessage:"Please enter a value for {field}"})}},t.prototype.validate=function(e,t){if(this.strip&&(e=a.default.trim(e)),this.not_empty&&!e)throw new Error("string"==typeof this.messages.empty?this.messages.empty:i.intl.formatMessage(this.messages.empty,{field:null!=t?t.field:void 0}))},t})(c);m.initClass(),u("StringValidator",m);var p=(function(e){function t(t){var r=e.call(this,t)||this;return r.lastname_goes_first=null!=t?t.lastname_goes_first:void 0,r}return r.__extends(t,e),t.initClass=function(){this.messages={empty:i.intl.formatMessage({id:"GlyhO1",defaultMessage:"Please enter your name"})}},t.prototype.validate=function(e,t){if(!t.data.lname&&!t.data.fname)if(this.lastname_goes_first){if("lname"===t.field)throw new Error(this.messages.empty)}else if("fname"===t.field)throw new Error(this.messages.empty);if("fname"===t.field)return l(["StringValidator",{not_empty:!0,strip:!0,messages:{empty:i.intl.formatMessage({id:"OQ+zMT",defaultMessage:"Please enter your first name"})}}]).validate(e,t)},t})(c);p.initClass(),u("NameValidator",p);var h=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.initClass=function(){this.domain_re=new RegExp("^([A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?\\.)+[A-Za-z]{2,}$","i")},t.prototype.validate=function(e){if(!(e=a.default.trim(e))||e.length>253)throw new Error(i.intl.formatMessage({id:"KZNdp7",defaultMessage:"The domain {input} is invalid"},{input:e}));if(f.test(e)&&!t.domain_re.test(e))throw new Error(i.intl.formatMessage({id:"KZNdp7",defaultMessage:"The domain {input} is invalid"},{input:e}))},t})(c);h.initClass(),u("UrlValidator",h);var g=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.initClass=function(){this.messages={empty:i.intl.formatMessage({id:"I7g4FQ",defaultMessage:"Please enter an email address"}),noAt:i.intl.formatMessage({id:"579xSI",defaultMessage:"An email address must contain a single @"}),badUsername:o.defineMessage({id:"bTiSCc",defaultMessage:"The username portion of the email address is invalid (the portion before the @: {username})"}),badDomain:o.defineMessage({id:"VXuzqP",defaultMessage:"The domain portion of the email address is invalid (the portion after the @: {domain})"})},this.urlValidator=new h(null),this.username_re=/^[\w!#$%&'*+\-\/=?^`{|}~.]+$/},t.prototype.validate=function(e){if(!(e=a.default.trim(e)))throw new Error(this.messages.empty);var r=e.split("@");if(2!==r.length)throw new Error(this.messages.noAt);var n=Array.from(r),o=n[0],s=n[1];if(!t.username_re.test(o))throw new Error("string"==typeof this.messages.badUsername?this.messages.badUsername:i.intl.formatMessage(this.messages.badUsername,{username:o}));try{t.urlValidator.validate(s)}catch(e){throw new Error("string"==typeof this.messages.badDomain?this.messages.badDomain:i.intl.formatMessage(this.messages.badDomain,{domain:s}))}},t})(c);g.initClass(),u("EmailValidator",g);t.validators={create:l,register:u,check:function(e){return function(t,r){var n=!0;try{e.validate(t,r)}catch(e){n=!1}return n}}}})),define("modules/core/i18n",["require","exports","tslib","langpack","modules/core/exception","modules/constants/page_load","react-intl"],(function(e,t,r,n,o,a,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n=r.__importStar(n),a=r.__importStar(a);var s=0;function u(e){s>2||Math.random()>=.05||(s++,fetch("/missed_translation_log",{method:"POST",body:JSON.stringify({message:null==e?void 0:e.defaultMessage,comment:null==e?void 0:e.description})}))}t._reportMissingTranslation=u;var l=0;function c(e){if(!(l>2||Math.random()>=.05)){l++;var t=["modules/core/i18n","react-intl",e.code];e.descriptor&&e.descriptor.id&&t.push(String(e.descriptor.id)),o.reportException({err:e,tags:t,severity:o.SEVERITY.CRITICAL})}}t._resetErrorCount=function(){l=0,s=0},t._getErrorCounts=function(){return{FORMATTING_ERROR_COUNT:l,MISSING_TRANSLATION_COUNT:s}},t._reportFormattingError=c;var f=function(e){if(e.code===i.ReactIntlErrorCode.FORMAT_ERROR)return c(e);if(e.code===i.ReactIntlErrorCode.MISSING_TRANSLATION)return u(e.descriptor);var t=["modules/core/i18n","react-intl",e.code];o.reportException({err:e,tags:t,severity:o.SEVERITY.CRITICAL})},d=i.createIntlCache(),m=h(a.USER_LOCALE),p=i.createIntl({locale:m,defaultLocale:m,messages:n,onError:f},d);function h(e){return e?"zh-TW"===(e=e.replace(/_/gi,"-"))?"zh-Hant-TW":"zh-CN"===e?"zh-Hans-CN":"es"===e?"es-419":"es-ES"===e?"es":e:e}t._setTestingIntl=function(e){p=i.createIntl(r.__assign({locale:m,defaultLocale:m,messages:n,onError:f},e))},t._clearTestingIntl=function(){p=i.createIntl({locale:m,defaultLocale:m,messages:n,onError:f},d)},t.intl=r.__assign(r.__assign({},p),{formatMessage:function(e,t){return p.formatMessage(e,t)}}),t.localeToBcp47LangTag=h,t.case_insensitive_comparator=function(e){return new window.Intl.Collator(h(a.USER_LOCALE),{numeric:e}).compare}})),define("dbx-i18n/datetime",["require","exports","tslib"],(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function n(e,t){for(var r=new Date(0),n=[],o=0;o<12;o++)r.setMonth(o),n.push(e.formatDate(r,{month:t?"short":"long"}));return n}function o(e,t){for(var r=new Date(0),n=r.getDay(),o=r.getDate()-n,a=[],i=0;i<7;i++){var s=new Date(0);s.setDate(o+i),a.push(e.formatDate(s,{weekday:t?"short":"long"}))}return a}t.timeSince=function(e,t,n,o){void 0===n&&(n={displayLocation:"label"}),void 0===o&&(o=new Date);var a=n.displayLocation,i=r.__rest(n,["displayLocation"]);switch(a){default:return(function(e,t,r,n){var o=(void 0===r?{displayLocation:"label"}:r).displayContext;void 0===n&&(n=new Date);var a=Number(n)-Number(t);if(a>=31536e6)return e.formatDate(t,{year:"numeric",month:"short",day:"numeric"});var i=0,s="minute";if(a<6e4?(i=0,s="minute"):a<36e5?(i=Math.floor(a/6e4),s="minute"):a<864e5?(i=Math.floor(a/36e5),s="hour"):a<2592e6?(i=Math.floor(a/864e5),s="day"):(i=Math.min(11,Math.floor(a/2592e6)),s="month"),"standalone"===o)switch(s){case"minute":return 0===i?e.formatMessage({id:"d3fp0/",defaultMessage:"Just now"}):e.formatMessage({id:"wKaToF",defaultMessage:"{value, plural, one{# minute ago} other{# minutes ago}}"},{value:i});case"hour":return e.formatMessage({id:"Tq1+vX",defaultMessage:"{value, plural, one{# hour ago} other{# hours ago}}"},{value:i});case"day":return 1===i?e.formatMessage({id:"YDw317",defaultMessage:"Yesterday"}):e.formatMessage({id:"jN1kbT",defaultMessage:"{value, plural, one{# day ago} other{# days ago}}"},{value:i});case"month":return 1===i?e.formatMessage({id:"aCaq4h",defaultMessage:"Last month"}):e.formatMessage({id:"AZAqNG",defaultMessage:"{value, plural, one{# month ago} other{# months ago}}"},{value:i})}return"minute"===s&&0===i?e.formatMessage({id:"poBxY2",defaultMessage:"just now"}):e.formatRelativeTime(-i,s,{numeric:"auto"})})(e,t,i,o);case"list":return(function(e,t,r,n){void 0===r&&(r={displayLocation:"list"}),void 0===n&&(n=new Date);var o=+n-+t;if(o<6e4)return e.formatMessage({id:"d3fp0/",defaultMessage:"Just now"});var a=r.timeZone;a||(a=void 0);var i=new Date(t),s=new Date(n);if(a)try{var u=new Date(i.toLocaleString("en-US",{timeZone:a})),l=new Date(s.toLocaleString("en-US",{timeZone:a}));isNaN(u.getTime())||(i=u,s=l)}catch(e){}return o<864e5&&i.getDate()===s.getDate()?e.formatMessage({id:"ah+po9",defaultMessage:"Today, {timestamp}"},{timestamp:e.formatTime(t,{hour:"numeric",minute:"numeric",timeZone:a})}):o<1728e5&&i.getDate()===s.getDate()-1?e.formatMessage({id:"j8t1Zs",defaultMessage:"Yesterday, {timestamp}"},{timestamp:e.formatTime(t,{hour:"numeric",minute:"numeric",timeZone:a})}):e.formatDate(t,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",timeZone:a})})(e,t,i,o);case"tooltip":return e.formatDate(t,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"})}},t.getDatepickLocalization=function(e){return{firstDayOfWeek:1,months:n(e),weekdaysLong:o(e),weekdaysShort:o(e,!0)}}})),define("dbx-i18n",["require","exports","dbx-i18n/datetime"],(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeSince=r.timeSince})),define("prod_assets_web_modules/react-intl",["exports","./common/_commonjsHelpers","react"],(function(e,t,r){"use strict";var n,o,a=(function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)})(r);function i(e){return e.type===n.literal}function s(e){return e.type===n.argument}function u(e){return e.type===n.number}function l(e){return e.type===n.date}function c(e){return e.type===n.time}function f(e){return e.type===n.select}function d(e){return e.type===n.plural}function m(e){return e.type===n.pound}function p(e){return e.type===n.tag}function h(e){return!(!e||"object"!=typeof e||0!==e.type)}function g(e){return!(!e||"object"!=typeof e||1!==e.type)}!(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(n||(n={})),(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(o||(o={}));var y,v=(y=function(e,t){return(y=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}y(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),b=function(){return(b=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(e){function t(r,n,o,a){var i=e.call(this)||this;return i.message=r,i.expected=n,i.found=o,i.location=a,i.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return v(t,e),t.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(),n.length>0){for(t=1,r=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},t})(Error),w=function(e,t){t=void 0!==t?t:{};var r,o={},a={start:Ee},i=Ee,s=Me("#",!1),u=Ae("tagElement"),l=Me("<",!1),c=Me("/>",!1),f=Me(">",!1),d=function(e){return Je.pop(),!0},m=Me("</",!1),p=Ae("argumentElement"),h=Me("{",!1),g=Me("}",!1),y=Ae("numberSkeletonId"),v=/^['\/{}]/,w=Te(["'","/","{","}"],!1,!1),M={type:"any"},T=Ae("numberSkeletonTokenOption"),A=Me("/",!1),O=Ae("numberSkeletonToken"),D=Me("::",!1),C=function(e){return Je.pop(),e.replace(/\s*$/,"")},E=Me(",",!1),I=Me("number",!1),S=function(e,t,r){return b({type:"number"===t?n.number:"date"===t?n.date:n.time,style:r&&r[2],value:e},rt())},x=Me("'",!1),N=/^[^']/,k=Te(["'"],!0,!1),F=/^[^a-zA-Z'{}]/,R=Te([["a","z"],["A","Z"],"'","{","}"],!0,!1),P=/^[a-zA-Z]/,j=Te([["a","z"],["A","Z"]],!1,!1),L=Me("date",!1),B=Me("time",!1),U=Me("plural",!1),V=Me("selectordinal",!1),z=Me("offset:",!1),H=Me("select",!1),$=Me("=",!1),Z=Ae("whitespace"),G=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,q=Te([["\t","\r"]," ",""," "," ",[" "," "],"\u2028","\u2029"," "," ","　"],!1,!1),K=Ae("syntax pattern"),Y=/^[!-\/:-@[-\^`{-~\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]/,W=Te([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←","⑟"],["─","❵"],["➔","⯿"],["⸀","⹿"],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),X=Ae("optional whitespace"),Q=Ae("number"),J=Me("-",!1),ee=Ae("double apostrophes"),te=Me("''",!1),re=Me("\n",!1),ne=Ae("argNameOrNumber"),oe=Ae("validTag"),ae=Ae("argNumber"),ie=Me("0",!1),se=/^[1-9]/,ue=Te([["1","9"]],!1,!1),le=/^[0-9]/,ce=Te([["0","9"]],!1,!1),fe=Ae("argName"),de=Ae("tagName"),me=0,pe=0,he=[{line:1,column:1}],ge=0,ye=[],ve=0;if(void 0!==t.startRule){if(!(t.startRule in a))throw new Error("Can't start parsing from rule \""+t.startRule+'".');i=a[t.startRule]}function be(){return e.substring(pe,me)}function _e(){return De(pe,me)}function we(e,t){throw(function(e,t){return new _(e,[],"",t)})(e,t=void 0!==t?t:De(pe,me))}function Me(e,t){return{type:"literal",text:e,ignoreCase:t}}function Te(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Ae(e){return{type:"other",description:e}}function Oe(t){var r,n=he[t];if(n)return n;for(r=t-1;!he[r];)r--;for(n={line:(n=he[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return he[t]=n,n}function De(e,t){var r=Oe(e),n=Oe(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function Ce(e){me<ge||(me>ge&&(ge=me,ye=[]),ye.push(e))}function Ee(){return Ie()}function Ie(){var e,t;for(e=[],t=Se();t!==o;)e.push(t),t=Se();return e}function Se(){var t;return(t=(function(){var e,t,r;return e=me,(t=xe())!==o&&(pe=e,r=t,t=b({type:n.literal,value:r},rt())),t})())===o&&(t=(function(){var t,r,a,i,s;return ve++,t=me,123===e.charCodeAt(me)?(r="{",me++):(r=o,0===ve&&Ce(h)),r!==o&&Ve()!==o&&(a=Ge())!==o&&Ve()!==o?(125===e.charCodeAt(me)?(i="}",me++):(i=o,0===ve&&Ce(g)),i!==o?(pe=t,s=a,t=r=b({type:n.argument,value:s},rt())):(me=t,t=o)):(me=t,t=o),ve--,t===o&&(r=o,0===ve&&Ce(p)),t})())===o&&(t=(function(){var t;return(t=(function(){var t,r,n,a,i,s,u,l,c;return t=me,123===e.charCodeAt(me)?(r="{",me++):(r=o,0===ve&&Ce(h)),r!==o&&Ve()!==o&&(n=Ge())!==o&&Ve()!==o?(44===e.charCodeAt(me)?(a=",",me++):(a=o,0===ve&&Ce(E)),a!==o&&Ve()!==o?("number"===e.substr(me,6)?(i="number",me+=6):(i=o,0===ve&&Ce(I)),i!==o&&Ve()!==o?(s=me,44===e.charCodeAt(me)?(u=",",me++):(u=o,0===ve&&Ce(E)),u!==o&&(l=Ve())!==o&&(c=(function(){var t,r,n;return t=me,"::"===e.substr(me,2)?(r="::",me+=2):(r=o,0===ve&&Ce(D)),r!==o&&(n=(function(){var e,t,r;if(e=me,t=[],(r=Fe())!==o)for(;r!==o;)t.push(r),r=Fe();else t=o;return t!==o&&(pe=e,t=b({type:0,tokens:t},rt())),t})())!==o?(pe=t,t=r=n):(me=t,t=o),t===o&&(t=me,pe=me,Je.push("numberArgStyle"),(r=(r=!0)?void 0:o)!==o&&(n=xe())!==o?(pe=t,t=r=C(n)):(me=t,t=o)),t})())!==o?s=u=[u,l,c]:(me=s,s=o),s===o&&(s=null),s!==o&&(u=Ve())!==o?(125===e.charCodeAt(me)?(l="}",me++):(l=o,0===ve&&Ce(g)),l!==o?(pe=t,t=r=S(n,i,s)):(me=t,t=o)):(me=t,t=o)):(me=t,t=o)):(me=t,t=o)):(me=t,t=o),t})())===o&&(t=(function(){var t,r,n,a,i,s,u,l,c;return t=me,123===e.charCodeAt(me)?(r="{",me++):(r=o,0===ve&&Ce(h)),r!==o&&Ve()!==o&&(n=Ge())!==o&&Ve()!==o?(44===e.charCodeAt(me)?(a=",",me++):(a=o,0===ve&&Ce(E)),a!==o&&Ve()!==o?("date"===e.substr(me,4)?(i="date",me+=4):(i=o,0===ve&&Ce(L)),i===o&&("time"===e.substr(me,4)?(i="time",me+=4):(i=o,0===ve&&Ce(B))),i!==o&&Ve()!==o?(s=me,44===e.charCodeAt(me)?(u=",",me++):(u=o,0===ve&&Ce(E)),u!==o&&(l=Ve())!==o&&(c=(function(){var t,r,n;return t=me,"::"===e.substr(me,2)?(r="::",me+=2):(r=o,0===ve&&Ce(D)),r!==o&&(n=(function(){var t,r,n,a;if(t=me,r=me,n=[],(a=Re())===o&&(a=Pe()),a!==o)for(;a!==o;)n.push(a),(a=Re())===o&&(a=Pe());else n=o;return(r=n!==o?e.substring(r,me):n)!==o&&(pe=t,r=b({type:1,pattern:r},rt())),r})())!==o?(pe=t,t=r=n):(me=t,t=o),t===o&&(t=me,pe=me,Je.push("dateOrTimeArgStyle"),(r=(r=!0)?void 0:o)!==o&&(n=xe())!==o?(pe=t,t=r=C(n)):(me=t,t=o)),t})())!==o?s=u=[u,l,c]:(me=s,s=o),s===o&&(s=null),s!==o&&(u=Ve())!==o?(125===e.charCodeAt(me)?(l="}",me++):(l=o,0===ve&&Ce(g)),l!==o?(pe=t,t=r=S(n,i,s)):(me=t,t=o)):(me=t,t=o)):(me=t,t=o)):(me=t,t=o)):(me=t,t=o),t})()),t})())===o&&(t=(function(){var t,r,a,i,s,u,l,c,f,d,m;if(t=me,123===e.charCodeAt(me)?(r="{",me++):(r=o,0===ve&&Ce(h)),r!==o)if(Ve()!==o)if((a=Ge())!==o)if(Ve()!==o)if(44===e.charCodeAt(me)?(i=",",me++):(i=o,0===ve&&Ce(E)),i!==o)if(Ve()!==o)if("plural"===e.substr(me,6)?(s="plural",me+=6):(s=o,0===ve&&Ce(U)),s===o&&("selectordinal"===e.substr(me,13)?(s="selectordinal",me+=13):(s=o,0===ve&&Ce(V))),s!==o)if(Ve()!==o)if(44===e.charCodeAt(me)?(u=",",me++):(u=o,0===ve&&Ce(E)),u!==o)if(Ve()!==o)if(l=me,"offset:"===e.substr(me,7)?(c="offset:",me+=7):(c=o,0===ve&&Ce(z)),c!==o&&(f=Ve())!==o&&(d=ze())!==o?l=c=[c,f,d]:(me=l,l=o),l===o&&(l=null),l!==o)if((c=Ve())!==o){if(f=[],(d=Le())!==o)for(;d!==o;)f.push(d),d=Le();else f=o;f!==o&&(d=Ve())!==o?(125===e.charCodeAt(me)?(m="}",me++):(m=o,0===ve&&Ce(g)),m!==o?(pe=t,t=r=(function(e,t,r,o){return b({type:n.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:r?r[2]:0,options:o.reduce((function(e,t){var r=t.id,n=t.value,o=t.location;return r in e&&we('Duplicate option "'+r+'" in plural element: "'+be()+'"',_e()),e[r]={value:n,location:o},e}),{})},rt())})(a,s,l,f)):(me=t,t=o)):(me=t,t=o)}else me=t,t=o;else me=t,t=o;else me=t,t=o;else me=t,t=o;else me=t,t=o;else me=t,t=o;else me=t,t=o;else me=t,t=o;else me=t,t=o;else me=t,t=o;else me=t,t=o;else me=t,t=o;return t})())===o&&(t=(function(){var t,r,a,i,s,u,l,c,f;if(t=me,123===e.charCodeAt(me)?(r="{",me++):(r=o,0===ve&&Ce(h)),r!==o)if(Ve()!==o)if((a=Ge())!==o)if(Ve()!==o)if(44===e.charCodeAt(me)?(i=",",me++):(i=o,0===ve&&Ce(E)),i!==o)if(Ve()!==o)if("select"===e.substr(me,6)?(s="select",me+=6):(s=o,0===ve&&Ce(H)),s!==o)if(Ve()!==o)if(44===e.charCodeAt(me)?(u=",",me++):(u=o,0===ve&&Ce(E)),u!==o)if(Ve()!==o){if(l=[],(c=je())!==o)for(;c!==o;)l.push(c),c=je();else l=o;l!==o&&(c=Ve())!==o?(125===e.charCodeAt(me)?(f="}",me++):(f=o,0===ve&&Ce(g)),f!==o?(pe=t,r=(function(e,t){return b({type:n.select,value:e,options:t.reduce((function(e,t){var r=t.id,n=t.value,o=t.location;return r in e&&we('Duplicate option "'+r+'" in select element: "'+be()+'"',_e()),e[r]={value:n,location:o},e}),{})},rt())})(a,l),t=r):(me=t,t=o)):(me=t,t=o)}else me=t,t=o;else me=t,t=o;else me=t,t=o;else me=t,t=o;else me=t,t=o;else me=t,t=o;else me=t,t=o;else me=t,t=o;else me=t,t=o;else me=t,t=o;return t})())===o&&(t=(function(){var t,r,a,i,s,p,h,g,y,v;return ve++,t=me,r=me,60===e.charCodeAt(me)?(a="<",me++):(a=o,0===ve&&Ce(l)),a!==o&&(i=qe())!==o&&(s=Ve())!==o?("/>"===e.substr(me,2)?(p="/>",me+=2):(p=o,0===ve&&Ce(c)),p!==o?r=a=[a,i,s,p]:(me=r,r=o)):(me=r,r=o),r!==o&&(pe=t,h=r,r=b({type:n.literal,value:h.join("")},rt())),(t=r)===o&&(t=me,(r=(function(){var t,r,n,a;return t=me,60===e.charCodeAt(me)?(r="<",me++):(r=o,0===ve&&Ce(l)),r!==o?(pe=me,Je.push("openingTag"),void 0!==o&&(n=qe())!==o?(62===e.charCodeAt(me)?(a=">",me++):(a=o,0===ve&&Ce(f)),a!==o?(pe=me,(d()?void 0:o)!==o?(pe=t,t=r=n):(me=t,t=o)):(me=t,t=o)):(me=t,t=o)):(me=t,t=o),t})())!==o&&(a=Ie())!==o&&(i=(function(){var t,r,n,a;return t=me,"</"===e.substr(me,2)?(r="</",me+=2):(r=o,0===ve&&Ce(m)),r!==o?(pe=me,Je.push("closingTag"),void 0!==o&&(n=qe())!==o?(62===e.charCodeAt(me)?(a=">",me++):(a=o,0===ve&&Ce(f)),a!==o?(pe=me,(d()?void 0:o)!==o?(pe=t,t=r=n):(me=t,t=o)):(me=t,t=o)):(me=t,t=o)):(me=t,t=o),t})())!==o?(pe=t,y=a,(g=r)!==(v=i)&&we('Mismatch tag "'+g+'" !== "'+v+'"',_e()),t=r=b({type:n.tag,value:g,children:y},rt())):(me=t,t=o)),ve--,t===o&&(r=o,0===ve&&Ce(u)),t})())===o&&(t=(function(){var t,r;return t=me,35===e.charCodeAt(me)?(r="#",me++):(r=o,0===ve&&Ce(s)),r!==o&&(pe=t,r=b({type:n.pound},rt())),r})()),t}function xe(){var e,t,r;if(e=me,t=[],(r=He())===o&&(r=$e())===o&&(r=Ze()),r!==o)for(;r!==o;)t.push(r),(r=He())===o&&(r=$e())===o&&(r=Ze());else t=o;return t!==o&&(pe=e,t=t.join("")),t}function Ne(){var t,r,n,a,i;if(ve++,t=me,r=[],n=me,a=me,ve++,(i=Be())===o&&(v.test(e.charAt(me))?(i=e.charAt(me),me++):(i=o,0===ve&&Ce(w))),ve--,i===o?a=void 0:(me=a,a=o),a!==o?(e.length>me?(i=e.charAt(me),me++):(i=o,0===ve&&Ce(M)),i!==o?n=a=[a,i]:(me=n,n=o)):(me=n,n=o),n!==o)for(;n!==o;)r.push(n),n=me,a=me,ve++,(i=Be())===o&&(v.test(e.charAt(me))?(i=e.charAt(me),me++):(i=o,0===ve&&Ce(w))),ve--,i===o?a=void 0:(me=a,a=o),a!==o?(e.length>me?(i=e.charAt(me),me++):(i=o,0===ve&&Ce(M)),i!==o?n=a=[a,i]:(me=n,n=o)):(me=n,n=o);else r=o;return t=r!==o?e.substring(t,me):r,ve--,t===o&&(r=o,0===ve&&Ce(y)),t}function ke(){var t,r,n;return ve++,t=me,47===e.charCodeAt(me)?(r="/",me++):(r=o,0===ve&&Ce(A)),r!==o&&(n=Ne())!==o?(pe=t,t=r=n):(me=t,t=o),ve--,t===o&&(r=o,0===ve&&Ce(T)),t}function Fe(){var e,t,r,n;if(ve++,e=me,Ve()!==o)if((t=Ne())!==o){for(r=[],n=ke();n!==o;)r.push(n),n=ke();r!==o?(pe=e,e=(function(e,t){return{stem:e,options:t}})(t,r)):(me=e,e=o)}else me=e,e=o;else me=e,e=o;return ve--,e===o&&0===ve&&Ce(O),e}function Re(){var t,r,n,a;if(t=me,39===e.charCodeAt(me)?(r="'",me++):(r=o,0===ve&&Ce(x)),r!==o){if(n=[],(a=He())===o&&(N.test(e.charAt(me))?(a=e.charAt(me),me++):(a=o,0===ve&&Ce(k))),a!==o)for(;a!==o;)n.push(a),(a=He())===o&&(N.test(e.charAt(me))?(a=e.charAt(me),me++):(a=o,0===ve&&Ce(k)));else n=o;n!==o?(39===e.charCodeAt(me)?(a="'",me++):(a=o,0===ve&&Ce(x)),a!==o?t=r=[r,n,a]:(me=t,t=o)):(me=t,t=o)}else me=t,t=o;if(t===o)if(t=[],(r=He())===o&&(F.test(e.charAt(me))?(r=e.charAt(me),me++):(r=o,0===ve&&Ce(R))),r!==o)for(;r!==o;)t.push(r),(r=He())===o&&(F.test(e.charAt(me))?(r=e.charAt(me),me++):(r=o,0===ve&&Ce(R)));else t=o;return t}function Pe(){var t,r;if(t=[],P.test(e.charAt(me))?(r=e.charAt(me),me++):(r=o,0===ve&&Ce(j)),r!==o)for(;r!==o;)t.push(r),P.test(e.charAt(me))?(r=e.charAt(me),me++):(r=o,0===ve&&Ce(j));else t=o;return t}function je(){var t,r,n,a,i,s,u;return t=me,Ve()!==o&&(r=Ye())!==o&&Ve()!==o?(123===e.charCodeAt(me)?(n="{",me++):(n=o,0===ve&&Ce(h)),n!==o?(pe=me,Je.push("select"),void 0!==o&&(a=Ie())!==o?(125===e.charCodeAt(me)?(i="}",me++):(i=o,0===ve&&Ce(g)),i!==o?(pe=t,s=r,u=a,Je.pop(),t=b({id:s,value:u},rt())):(me=t,t=o)):(me=t,t=o)):(me=t,t=o)):(me=t,t=o),t}function Le(){var t,r,n,a,i,s,u;return t=me,Ve()!==o&&(r=(function(){var t,r,n,a;return t=me,r=me,61===e.charCodeAt(me)?(n="=",me++):(n=o,0===ve&&Ce($)),n!==o&&(a=ze())!==o?r=n=[n,a]:(me=r,r=o),(t=r!==o?e.substring(t,me):r)===o&&(t=Ye()),t})())!==o&&Ve()!==o?(123===e.charCodeAt(me)?(n="{",me++):(n=o,0===ve&&Ce(h)),n!==o?(pe=me,Je.push("plural"),void 0!==o&&(a=Ie())!==o?(125===e.charCodeAt(me)?(i="}",me++):(i=o,0===ve&&Ce(g)),i!==o?(pe=t,s=r,u=a,Je.pop(),t=b({id:s,value:u},rt())):(me=t,t=o)):(me=t,t=o)):(me=t,t=o)):(me=t,t=o),t}function Be(){var t;return ve++,G.test(e.charAt(me))?(t=e.charAt(me),me++):(t=o,0===ve&&Ce(q)),ve--,t===o&&0===ve&&Ce(Z),t}function Ue(){var t;return ve++,Y.test(e.charAt(me))?(t=e.charAt(me),me++):(t=o,0===ve&&Ce(W)),ve--,t===o&&0===ve&&Ce(K),t}function Ve(){var t,r,n;for(ve++,t=me,r=[],n=Be();n!==o;)r.push(n),n=Be();return t=r!==o?e.substring(t,me):r,ve--,t===o&&(r=o,0===ve&&Ce(X)),t}function ze(){var t,r,n,a;return ve++,t=me,45===e.charCodeAt(me)?(r="-",me++):(r=o,0===ve&&Ce(J)),r===o&&(r=null),r!==o&&(n=Ke())!==o?(pe=t,t=r=(a=n)?r?-a:a:0):(me=t,t=o),ve--,t===o&&(r=o,0===ve&&Ce(Q)),t}function He(){var t,r;return ve++,t=me,"''"===e.substr(me,2)?(r="''",me+=2):(r=o,0===ve&&Ce(te)),r!==o&&(pe=t,r="'"),ve--,(t=r)===o&&(r=o,0===ve&&Ce(ee)),t}function $e(){var t,r,n,a,i,s;if(t=me,39===e.charCodeAt(me)?(r="'",me++):(r=o,0===ve&&Ce(x)),r!==o)if((n=(function(){var t,r,n,a;return t=me,r=me,e.length>me?(n=e.charAt(me),me++):(n=o,0===ve&&Ce(M)),n!==o?(pe=me,(a=(a=(function(e){return"<"===e||">"===e||"{"===e||"}"===e||tt()&&"#"===e})(n))?void 0:o)!==o?r=n=[n,a]:(me=r,r=o)):(me=r,r=o),t=r!==o?e.substring(t,me):r})())!==o){for(a=me,i=[],"''"===e.substr(me,2)?(s="''",me+=2):(s=o,0===ve&&Ce(te)),s===o&&(N.test(e.charAt(me))?(s=e.charAt(me),me++):(s=o,0===ve&&Ce(k)));s!==o;)i.push(s),"''"===e.substr(me,2)?(s="''",me+=2):(s=o,0===ve&&Ce(te)),s===o&&(N.test(e.charAt(me))?(s=e.charAt(me),me++):(s=o,0===ve&&Ce(k)));(a=i!==o?e.substring(a,me):i)!==o?(39===e.charCodeAt(me)?(i="'",me++):(i=o,0===ve&&Ce(x)),i===o&&(i=null),i!==o?(pe=t,t=r=n+a.replace("''","'")):(me=t,t=o)):(me=t,t=o)}else me=t,t=o;else me=t,t=o;return t}function Ze(){var t,r,n,a;return t=me,r=me,e.length>me?(n=e.charAt(me),me++):(n=o,0===ve&&Ce(M)),n!==o?(pe=me,(a=(a=(function(e){return(nt()||"<"!==e)&&"{"!==e&&!(tt()&&"#"===e)&&!(et()&&"}"===e)&&!(!nt()&&et()&&">"===e)})(n))?void 0:o)!==o?r=n=[n,a]:(me=r,r=o)):(me=r,r=o),r===o&&(10===e.charCodeAt(me)?(r="\n",me++):(r=o,0===ve&&Ce(re))),r!==o?e.substring(t,me):r}function Ge(){var t,r;return ve++,t=me,(r=Ke())===o&&(r=Ye()),t=r!==o?e.substring(t,me):r,ve--,t===o&&(r=o,0===ve&&Ce(ne)),t}function qe(){var t,r;return ve++,t=me,(r=Ke())===o&&(r=(function(){var t,r,n,a,i;if(ve++,t=me,r=[],45===e.charCodeAt(me)?(n="-",me++):(n=o,0===ve&&Ce(J)),n===o&&(n=me,a=me,ve++,(i=Be())===o&&(i=Ue()),ve--,i===o?a=void 0:(me=a,a=o),a!==o?(e.length>me?(i=e.charAt(me),me++):(i=o,0===ve&&Ce(M)),i!==o?n=a=[a,i]:(me=n,n=o)):(me=n,n=o)),n!==o)for(;n!==o;)r.push(n),45===e.charCodeAt(me)?(n="-",me++):(n=o,0===ve&&Ce(J)),n===o&&(n=me,a=me,ve++,(i=Be())===o&&(i=Ue()),ve--,i===o?a=void 0:(me=a,a=o),a!==o?(e.length>me?(i=e.charAt(me),me++):(i=o,0===ve&&Ce(M)),i!==o?n=a=[a,i]:(me=n,n=o)):(me=n,n=o));else r=o;return t=r!==o?e.substring(t,me):r,ve--,t===o&&(r=o,0===ve&&Ce(de)),t})()),t=r!==o?e.substring(t,me):r,ve--,t===o&&(r=o,0===ve&&Ce(oe)),t}function Ke(){var t,r,n,a,i;if(ve++,t=me,48===e.charCodeAt(me)?(r="0",me++):(r=o,0===ve&&Ce(ie)),r!==o&&(pe=t,r=0),(t=r)===o){if(t=me,r=me,se.test(e.charAt(me))?(n=e.charAt(me),me++):(n=o,0===ve&&Ce(ue)),n!==o){for(a=[],le.test(e.charAt(me))?(i=e.charAt(me),me++):(i=o,0===ve&&Ce(ce));i!==o;)a.push(i),le.test(e.charAt(me))?(i=e.charAt(me),me++):(i=o,0===ve&&Ce(ce));a!==o?r=n=[n,a]:(me=r,r=o)}else me=r,r=o;r!==o&&(pe=t,r=parseInt(r.join(""),10)),t=r}return ve--,t===o&&(r=o,0===ve&&Ce(ae)),t}function Ye(){var t,r,n,a,i;if(ve++,t=me,r=[],n=me,a=me,ve++,(i=Be())===o&&(i=Ue()),ve--,i===o?a=void 0:(me=a,a=o),a!==o?(e.length>me?(i=e.charAt(me),me++):(i=o,0===ve&&Ce(M)),i!==o?n=a=[a,i]:(me=n,n=o)):(me=n,n=o),n!==o)for(;n!==o;)r.push(n),n=me,a=me,ve++,(i=Be())===o&&(i=Ue()),ve--,i===o?a=void 0:(me=a,a=o),a!==o?(e.length>me?(i=e.charAt(me),me++):(i=o,0===ve&&Ce(M)),i!==o?n=a=[a,i]:(me=n,n=o)):(me=n,n=o);else r=o;return t=r!==o?e.substring(t,me):r,ve--,t===o&&(r=o,0===ve&&Ce(fe)),t}var We,Xe,Qe,Je=["root"];function et(){return Je.length>1}function tt(){return"plural"===Je[Je.length-1]}function rt(){return t&&t.captureLocation?{location:_e()}:{}}function nt(){return t&&t.ignoreTag}if((r=i())!==o&&me===e.length)return r;throw r!==o&&me<e.length&&Ce({type:"end"}),We=ye,Xe=ge<e.length?e.charAt(ge):null,Qe=ge<e.length?De(ge,ge+1):De(ge,ge),new _(_.buildMessage(We,Xe),We,Xe,Qe)},M=/(^|[^\\])#/g,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)},A=/(?:[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 O(e){var t={};return e.replace(A,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"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":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-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":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case"z":t.timeZoneName=r<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""})),t}var D=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,C=/^(@+)?(\+|#+)?$/g;function E(e){var t={};return e.replace(C,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function I(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function S(e){return I(e)||{}}function x(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":t.style="percent";continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=T(T(T({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return T(T({},e),S(t))}),{}));continue;case"engineering":t=T(T(T({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return T(T({},e),S(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue}if(D.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(D,(function(e,r,n,o,a,i){return"*"===n?t.minimumFractionDigits=r.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:a&&i?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+i.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""})),o.options.length&&(t=T(T({},t),E(o.options[0])))}else if(C.test(o.stem))t=T(T({},t),E(o.stem));else{var a=I(o.stem);a&&(t=T(T({},t),a))}}return t}function N(e,t){var r=w(e,t);return t&&!1===t.normalizeHashtagInPlural||(function e(t){t.forEach((function(t){(d(t)||f(t))&&Object.keys(t.options).forEach((function(r){for(var n,o=t.options[r],a=-1,s=void 0,u=0;u<o.value.length;u++){var l=o.value[u];if(i(l)&&M.test(l.value)){a=u,s=l;break}}if(s){var c=s.value.replace(M,"$1{"+t.value+", number}"),f=w(c);(n=o.value).splice.apply(n,(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,s=a.length;i<s;i++,o++)n[o]=a[i];return n})([a,1],f))}e(o.value)}))}))})(r),r}var k=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)n[o]=a[i];return n};function F(e){return JSON.stringify(e.map((function(e){return e&&"object"==typeof e?(t=e,Object.keys(t).sort().map((function(e){var r;return(r={})[e]=t[e],r}))):e;var t})))}var R,P=function(e,t){return void 0===t&&(t={}),function(){for(var r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var a=F(n),i=a&&t[a];return i||(i=new((r=e).bind.apply(r,k([void 0],n))),a&&(t[a]=i)),i}},j=(function(){var e=function(t,r){return(e=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])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}})();!(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(R||(R={}));var L,B=(function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.code=r,o.originalMessage=n,o}return j(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t})(Error),U=(function(e){function t(t,r,n,o){return e.call(this,'Invalid values for "'+t+'": "'+r+'". Options are "'+Object.keys(n).join('", "')+'"',"INVALID_VALUE",o)||this}return j(t,e),t})(B),V=(function(e){function t(t,r,n){return e.call(this,'Value for "'+t+'" must be of type '+r,"INVALID_VALUE",n)||this}return j(t,e),t})(B),z=(function(e){function t(t,r){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+r+'"',"MISSING_VALUE",r)||this}return j(t,e),t})(B);function H(e){return"function"==typeof e}!(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(L||(L={}));var $=function(){return($=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)};var Z=(function(){function e(t,r,n,o){var a,y=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=y.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return(function e(t,r,n,o,a,y,v){if(1===t.length&&i(t[0]))return[{type:0,value:t[0].value}];for(var b=[],_=0,w=t;_<w.length;_++){var M=w[_];if(i(M))b.push({type:0,value:M.value});else if(m(M))"number"==typeof y&&b.push({type:0,value:n.getNumberFormat(r).format(y)});else{var T=M.value;if(!(a&&T in a))throw new z(T,v);var A=a[T];if(s(M))A&&"string"!=typeof A&&"number"!=typeof A||(A="string"==typeof A||"number"==typeof A?String(A):""),b.push({type:"string"==typeof A?0:1,value:A});else if(l(M)){var D="string"==typeof M.style?o.date[M.style]:g(M.style)?O(M.style.pattern):void 0;b.push({type:0,value:n.getDateTimeFormat(r,D).format(A)})}else if(c(M))D="string"==typeof M.style?o.time[M.style]:g(M.style)?O(M.style.pattern):void 0,b.push({type:0,value:n.getDateTimeFormat(r,D).format(A)});else if(u(M))D="string"==typeof M.style?o.number[M.style]:h(M.style)?x(M.style.tokens):void 0,b.push({type:0,value:n.getNumberFormat(r,D).format(A)});else{if(p(M)){var C=M.children,E=M.value,I=a[E];if(!H(I))throw new V(E,"function",v);var S=I(e(C,r,n,o,a,y).map((function(e){return e.value})));Array.isArray(S)||(S=[S]),b.push.apply(b,S.map((function(e){return{type:"string"==typeof e?0:1,value:e}})))}if(f(M)){if(!(N=M.options[A]||M.options.other))throw new U(M.value,A,Object.keys(M.options),v);b.push.apply(b,e(N.value,r,n,o,a))}else if(d(M)){var N;if(!(N=M.options["="+A])){if(!Intl.PluralRules)throw new B('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",v);var k=n.getPluralRules(r,{type:M.pluralType}).select(A-(M.offset||0));N=M.options[k]||M.options.other}if(!N)throw new U(M.value,A,Object.keys(M.options),v);b.push.apply(b,e(N.value,r,n,o,a,A-(M.offset||0)))}}}}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}),[])})(b)})(y.ast,y.locales,y.formatters,y.formats,e,void 0,y.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(y.locales)[0]}},this.getAst=function(){return y.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{normalizeHashtagInPlural:!1,ignoreTag:null==o?void 0:o.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(function(e,t){return t?Object.keys(e).reduce((function(r,n){var o,a;return r[n]=(o=e[n],(a=t[n])?$($($({},o||{}),a||{}),Object.keys(o).reduce((function(e,t){return e[t]=$($({},o[t]),a[t]||{}),e}),{})):o),r}),$({},e)):e})(e.formats,n),this.locales=r,this.formatters=o&&o.formatters||(void 0===(a=this.formatterCache)&&(a={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:P(Intl.NumberFormat,a.number),getDateTimeFormat:P(Intl.DateTimeFormat,a.dateTime),getPluralRules:P(Intl.PluralRules,a.pluralRules)})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!0,configurable:!0}),e.memoizedDefaultLocale=null,e.__parse=N,e.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"}}},e})();function G(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}var q,K=(function(){var e=function(t,r){return(e=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])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}})();(q=e.ReactIntlErrorCode||(e.ReactIntlErrorCode={})).FORMAT_ERROR="FORMAT_ERROR",q.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",q.INVALID_CONFIG="INVALID_CONFIG",q.MISSING_DATA="MISSING_DATA",q.MISSING_TRANSLATION="MISSING_TRANSLATION";var Y=(function(e){function t(r,n,o){var a=e.call(this,"[React Intl Error "+r+"] "+n+" \n"+(o?"\n"+o.stack:""))||this;return a.code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return K(t,e),t})(Error),W=(function(e){function t(t,r){return e.call(this,"UNSUPPORTED_FORMATTER",t,r)||this}return K(t,e),t})(Y),X=(function(e){function t(t,r){return e.call(this,"INVALID_CONFIG",t,r)||this}return K(t,e),t})(Y),Q=(function(e){function t(t,r){return e.call(this,"MISSING_DATA",t,r)||this}return K(t,e),t})(Y),J=(function(e){function t(t,r,n,o){var a=e.call(this,"FORMAT_ERROR",t+" \nLocale: "+r+"\nMessageID: "+(null==n?void 0:n.id)+"\nDefault Message: "+(null==n?void 0:n.defaultMessage)+"\nDescription: "+(null==n?void 0:n.description)+" \n",o)||this;return a.descriptor=n,a}return K(t,e),t})(Y),ee=(function(e){function t(t,r){var n=e.call(this,"MISSING_TRANSLATION",'Missing message: "'+t.id+'" for locale "'+r+'", using '+(t.defaultMessage?"default message":"id")+" as fallback.")||this;return n.descriptor=t,n}return K(t,e),t})(Y);function te(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}function re(e){G(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var ne={formats:{},messages:{},timeZone:void 0,textComponent:r.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){}};function oe(e,t,r,n){var o,a=e&&e[t];if(a&&(o=a[r]),o)return o;n(new W("No "+t+" format named: "+r))}var ae="function"==typeof Symbol&&Symbol.for,ie=ae?Symbol.for("react.element"):60103,se=ae?Symbol.for("react.portal"):60106,ue=ae?Symbol.for("react.fragment"):60107,le=ae?Symbol.for("react.strict_mode"):60108,ce=ae?Symbol.for("react.profiler"):60114,fe=ae?Symbol.for("react.provider"):60109,de=ae?Symbol.for("react.context"):60110,me=ae?Symbol.for("react.async_mode"):60111,pe=ae?Symbol.for("react.concurrent_mode"):60111,he=ae?Symbol.for("react.forward_ref"):60112,ge=ae?Symbol.for("react.suspense"):60113,ye=ae?Symbol.for("react.suspense_list"):60120,ve=ae?Symbol.for("react.memo"):60115,be=ae?Symbol.for("react.lazy"):60116,_e=ae?Symbol.for("react.block"):60121,we=ae?Symbol.for("react.fundamental"):60117,Me=ae?Symbol.for("react.responder"):60118,Te=ae?Symbol.for("react.scope"):60119;function Ae(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ie:switch(e=e.type){case me:case pe:case ue:case ce:case le:case ge:return e;default:switch(e=e&&e.$$typeof){case de:case he:case be:case ve:case fe:return e;default:return t}}case se:return t}}}function Oe(e){return Ae(e)===pe}var De={AsyncMode:me,ConcurrentMode:pe,ContextConsumer:de,ContextProvider:fe,Element:ie,ForwardRef:he,Fragment:ue,Lazy:be,Memo:ve,Portal:se,Profiler:ce,StrictMode:le,Suspense:ge,isAsyncMode:function(e){return Oe(e)||Ae(e)===me},isConcurrentMode:Oe,isContextConsumer:function(e){return Ae(e)===de},isContextProvider:function(e){return Ae(e)===fe},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ie},isForwardRef:function(e){return Ae(e)===he},isFragment:function(e){return Ae(e)===ue},isLazy:function(e){return Ae(e)===be},isMemo:function(e){return Ae(e)===ve},isPortal:function(e){return Ae(e)===se},isProfiler:function(e){return Ae(e)===ce},isStrictMode:function(e){return Ae(e)===le},isSuspense:function(e){return Ae(e)===ge},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===ue||e===pe||e===ce||e===le||e===ge||e===ye||"object"==typeof e&&null!==e&&(e.$$typeof===be||e.$$typeof===ve||e.$$typeof===fe||e.$$typeof===de||e.$$typeof===he||e.$$typeof===we||e.$$typeof===Me||e.$$typeof===Te||e.$$typeof===_e)},typeOf:Ae},Ce=t.createCommonjsModule((function(e){e.exports=De})),Ee=(Ce.AsyncMode,Ce.ConcurrentMode,Ce.ContextConsumer,Ce.ContextProvider,Ce.Element,Ce.ForwardRef,Ce.Fragment,Ce.Lazy,Ce.Memo,Ce.Portal,Ce.Profiler,Ce.StrictMode,Ce.Suspense,Ce.isAsyncMode,Ce.isConcurrentMode,Ce.isContextConsumer,Ce.isContextProvider,Ce.isElement,Ce.isForwardRef,Ce.isFragment,Ce.isLazy,Ce.isMemo,Ce.isPortal,Ce.isProfiler,Ce.isStrictMode,Ce.isSuspense,Ce.isValidElementType,Ce.typeOf,{childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0}),Ie={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Se={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},xe={};function Ne(e){return Ce.isMemo(e)?Se:xe[e.$$typeof]||Ee}xe[Ce.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},xe[Ce.Memo]=Se;var ke=Object.defineProperty,Fe=Object.getOwnPropertyNames,Re=Object.getOwnPropertySymbols,Pe=Object.getOwnPropertyDescriptor,je=Object.getPrototypeOf,Le=Object.prototype,Be=function e(t,r,n){if("string"!=typeof r){if(Le){var o=je(r);o&&o!==Le&&e(t,o,n)}var a=Fe(r);Re&&(a=a.concat(Re(r)));for(var i=Ne(t),s=Ne(r),u=0;u<a.length;++u){var l=a[u];if(!(Ie[l]||n&&n[l]||s&&s[l]||i&&i[l])){var c=Pe(r,l);try{ke(t,l,c)}catch(e){}}}}return t},Ue=function(){return(Ue=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)},Ve=Be||Object.freeze({__proto__:null,default:Be,__moduleExports:Be}),ze=r.createContext(null),He=ze.Consumer,$e=ze.Provider,Ze=ze;function Ge(e,t){var n,o=t||{},a=o.intlPropName,i=void 0===a?"intl":a,s=o.forwardRef,u=void 0!==s&&s,l=o.enforceContext,c=void 0===l||l,f=function(t){return r.createElement(He,null,(function(n){var o;c&&re(n);var a=((o={})[i]=n,o);return r.createElement(e,Ue({},t,a,{ref:u?t.forwardedRef:null}))}))};return f.displayName="injectIntl("+((n=e).displayName||n.name||"Component")+")",f.WrappedComponent=e,Ve(u?r.forwardRef((function(e,t){return r.createElement(f,Ue({},e,{forwardedRef:t}))})):f,e)}var qe,Ke,Ye=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};!(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(qe||(qe={})),(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Ke||(Ke={}));var We=function(e){return r.createElement(Ze.Consumer,null,(function(t){re(t);var r=e.value,n=e.children,o=Ye(e,["value","children"]);return n(t.formatNumberToParts(r,o))}))};function Xe(e){var t=function(t){return r.createElement(Ze.Consumer,null,(function(r){re(r);var n=t.value,o=t.children,a=Ye(t,["value","children"]),i="string"==typeof n?new Date(n||0):n;return o("formatDate"===e?r.formatDateToParts(i,a):r.formatTimeToParts(i,a))}))};return t.displayName=Ke[e],t}function Qe(e){var t=function(t){return r.createElement(Ze.Consumer,null,(function(n){re(n);var o=t.value,a=t.children,i=Ye(t,["value","children"]),s=n[e](o,i);if("function"==typeof a)return a(s);var u=n.textComponent||r.Fragment;return r.createElement(u,null,s)}))};return t.displayName=qe[e],t}We.displayName="FormattedNumberParts";var Je=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function et(e,t,r){var n=e.locale,o=e.formats,a=e.onError;void 0===r&&(r={});var i=r.format,s=i&&oe(o,"number",i,a)||{};return t(n,te(r,Je,s))}function tt(e,t,r,n){void 0===n&&(n={});try{return et(e,t,n).format(r)}catch(t){e.onError(new Y("FORMAT_ERROR","Error formatting number.",t))}return String(r)}function rt(e,t,r,n){void 0===n&&(n={});try{return et(e,t,n).formatToParts(r)}catch(t){e.onError(new Y("FORMAT_ERROR","Error formatting number.",t))}return[]}var nt=["numeric","style"];function ot(e,t,r,n,o){void 0===o&&(o={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new B('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',"MISSING_INTL_API"));try{return(function(e,t,r){var n=e.locale,o=e.formats,a=e.onError;void 0===r&&(r={});var i=r.format,s=!!i&&oe(o,"relative",i,a)||{};return t(n,te(r,nt,s))})(e,t,o).format(r,n)}catch(t){e.onError(new J("Error formatting relative time.",t))}return String(r)}var at=function(){return(at=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)},it=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","fractionalSecondDigits","calendar","numberingSystem"];function st(e,t,r,n){var o=e.locale,a=e.formats,i=e.onError,s=e.timeZone;void 0===n&&(n={});var u=n.format,l=at(at({},s&&{timeZone:s}),u&&oe(a,t,u,i)),c=te(n,it,l);return"time"!==t||c.hour||c.minute||c.second||(c=at(at({},c),{hour:"numeric",minute:"numeric"})),r(o,c)}function ut(e,t,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return st(e,"date",t,n).format(o)}catch(t){e.onError(new Y("FORMAT_ERROR","Error formatting date.",t))}return String(o)}function lt(e,t,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return st(e,"time",t,n).format(o)}catch(t){e.onError(new Y("FORMAT_ERROR","Error formatting time.",t))}return String(o)}function ct(e,t,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return st(e,"date",t,n).formatToParts(o)}catch(t){e.onError(new Y("FORMAT_ERROR","Error formatting date.",t))}return[]}function ft(e,t,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return st(e,"time",t,n).formatToParts(o)}catch(t){e.onError(new Y("FORMAT_ERROR","Error formatting time.",t))}return[]}var dt=["localeMatcher","type"];function mt(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.PluralRules||a(new B('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API"));var i=te(n,dt);try{return t(o,i).select(r)}catch(e){a(new J("Error formatting plural.",e))}return"other"}var 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)};function ht(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=pt({timeZone:t},e[n]),r}),{})}function gt(e,t){return Object.keys(pt(pt({},e),t)).reduce((function(r,n){return r[n]=pt(pt({},e[n]||{}),t[n]||{}),r}),{})}function yt(e,t){if(!t)return e;var r=Z.formats;return pt(pt(pt({},r),e),{date:gt(ht(r.date,t),ht(e.date||{},t)),time:gt(ht(r.time,t),ht(e.time||{},t))})}function vt(e){return Object.keys(e).reduce((function(t,n){var o,a=e[n];return t[n]=H(a)?(o=a,function(e){return o(r.Children.toArray(e))}):a,t}),{})}function bt(e,t){return Array.isArray(e)&&t?r.createElement.apply(a,(function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)n[o]=a[i];return n})([r.Fragment,null],e)):e}function _t(e,t,r,n){var o=e.locale,a=e.formats,i=e.messages,s=e.defaultLocale,u=e.defaultFormats,l=e.onError,c=e.timeZone,f=e.wrapRichTextChunksInFragment;void 0===r&&(r={id:""});var d=r.id,m=r.defaultMessage;G(!!d,"[React Intl] An `id` must be provided to format a message.");var p=i&&i[String(d)];if(!n&&p&&"string"==typeof p)return p.replace(/'\{(.*?)\}'/gi,"{$1}");var h=n&&vt(n);if(a=yt(a,c),u=yt(u,c),!p){if((!m||o&&o.toLowerCase()!==s.toLowerCase())&&l(new ee(r,o)),m)try{return bt(t.getMessageFormat(m,s,u).format(h),f)}catch(e){return l(new J('Error formatting default message for: "'+d+'", rendering default message verbatim',o,r,e)),m}return d}try{return bt(t.getMessageFormat(p,o,a,{formatters:t}).format(h),f)}catch(e){l(new J('Error formatting message: "'+d+'", using '+(m?"default message":"id")+" as fallback.",o,r,e))}if(m)try{return bt(t.getMessageFormat(m,s,u).format(h),f)}catch(e){l(new J('Error formatting the default message for: "'+d+'", rendering message verbatim',o,r,e))}return p||m||d}var wt=function(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},Mt=Object.freeze({__proto__:null,default:wt,__moduleExports:wt}),Tt=["localeMatcher","type","style"],At=Date.now();function Ot(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.ListFormat||a(new B('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',"MISSING_INTL_API"));var i=te(n,Tt);try{var s={},u=r.map((function(e,t){if("object"==typeof e){var r=(function(e){return At+"_"+e+"_"+At})(t);return s[r]=e,r}return String(e)}));return Object.keys(s).length?t(o,i).formatToParts(u).reduce((function(e,t){var r=t.value;return s[r]?e.push(s[r]):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]):t(o,i).format(u)}catch(e){a(new Y("FORMAT_ERROR","Error formatting list.",e))}return r}var Dt=["localeMatcher","style","type","fallback"];function Ct(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.DisplayNames||a(new B('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',"MISSING_INTL_API"));var i=te(n,Dt);try{return t(o,i).of(r)}catch(e){a(new Y("FORMAT_ERROR","Error formatting display name.",e))}}var Et=(function(){var e=function(t,r){return(e=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])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}})(),It=function(){return(It=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)},St=wt||Mt;function xt(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,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment}}function Nt(e,t){var r=(function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames;return{getDateTimeFormat:P(Intl.DateTimeFormat,e.dateTime),getNumberFormat:P(Intl.NumberFormat,e.number),getMessageFormat:P(Z,e.message),getRelativeTimeFormat:P(t,e.relativeTime),getPluralRules:P(Intl.PluralRules,e.pluralRules),getListFormat:P(r,e.list),getDisplayNames:P(n,e.displayNames)}})(t),n=It(It({},ne),e),o=n.locale,a=n.defaultLocale,i=n.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&i?i(new Q('Missing locale data for locale: "'+o+'" in Intl.NumberFormat. Using default locale: "'+a+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&i&&i(new Q('Missing locale data for locale: "'+o+'" in Intl.DateTimeFormat. Using default locale: "'+a+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):(i&&i(new X('"locale" was not configured, using "'+a+'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details')),n.locale=n.defaultLocale||"en"),It(It({},n),{formatters:r,formatNumber:tt.bind(null,n,r.getNumberFormat),formatNumberToParts:rt.bind(null,n,r.getNumberFormat),formatRelativeTime:ot.bind(null,n,r.getRelativeTimeFormat),formatDate:ut.bind(null,n,r.getDateTimeFormat),formatDateToParts:ct.bind(null,n,r.getDateTimeFormat),formatTime:lt.bind(null,n,r.getDateTimeFormat),formatTimeToParts:ft.bind(null,n,r.getDateTimeFormat),formatPlural:mt.bind(null,n,r.getPluralRules),formatMessage:_t.bind(null,n,r),formatList:Ot.bind(null,n,r.getListFormat),formatDisplayName:Ct.bind(null,n,r.getDisplayNames)})}var kt=(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:Nt(xt(t.props),t.cache),prevConfig:xt(t.props)},t}return Et(t,e),t.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,o=xt(e);return St(r,o)?null:{intl:Nt(o,n),prevConfig:o}},t.prototype.render=function(){return re(this.state.intl),r.createElement($e,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=ne,t})(r.PureComponent),Ft=(function(){var e=function(t,r){return(e=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])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}})(),Rt=function(){return(Rt=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 Pt(e){var t=Math.abs(e);return t<60?"second":t<3600?"minute":t<86400?"hour":"day"}function jt(e){switch(e){case"second":return 1;case"minute":return 60;case"hour":return 3600;default:return 86400}}function Lt(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return 60*e;default:return 3600*e}}var Bt=["second","minute","hour"];function Ut(e){return void 0===e&&(e="second"),Bt.includes(e)}var Vt=(function(e){function t(t){var r=e.call(this,t)||this;return r._updateTimer=null,r.state={prevUnit:r.props.unit,prevValue:r.props.value,currentValueInSeconds:Ut(r.props.unit)?Lt(r.props.value,r.props.unit):0},G(!t.updateIntervalInSeconds||!(!t.updateIntervalInSeconds||!Ut(t.unit)),"Cannot schedule update with unit longer than hour"),r}return Ft(t,e),t.prototype.scheduleNextUpdate=function(e,t){var r=this,n=e.updateIntervalInSeconds,o=e.unit,a=t.currentValueInSeconds;if(clearTimeout(this._updateTimer),this._updateTimer=null,n&&Ut(o)){var i=a-n,s=Pt(i);if("day"!==s){var u=jt(s),l=i-i%u,c=l>=a?l-u:l,f=Math.abs(c-a);this._updateTimer=setTimeout((function(){return r.setState({currentValueInSeconds:c})}),1e3*f)}}},t.prototype.componentDidMount=function(){this.scheduleNextUpdate(this.props,this.state)},t.prototype.componentDidUpdate=function(){this.scheduleNextUpdate(this.props,this.state)},t.prototype.componentWillUnmount=function(){clearTimeout(this._updateTimer),this._updateTimer=null},t.getDerivedStateFromProps=function(e,t){return e.unit!==t.prevUnit||e.value!==t.prevValue?{prevValue:e.value,prevUnit:e.unit,currentValueInSeconds:Ut(e.unit)?Lt(e.value,e.unit):0}:null},t.prototype.render=function(){var e=this;return r.createElement(Ze.Consumer,null,(function(t){re(t);var n=t.formatRelativeTime,o=t.textComponent,a=e.props,i=a.children,s=a.value,u=a.unit,l=a.updateIntervalInSeconds,c=e.state.currentValueInSeconds,f=s||0,d=u;if(Ut(u)&&"number"==typeof c&&l){var m=jt(d=Pt(c));f=Math.round(c/m)}var p=n(f,d,Rt({},e.props));return"function"==typeof i?i(p):o?r.createElement(o,null,p):p}))},t.displayName="FormattedRelativeTime",t.defaultProps={value:0,unit:"second"},t})(r.PureComponent),zt=function(e){var t=e.value,n=e.other,o=e.children,a=e.intl,i=a.formatPlural,s=a.textComponent,u=e[i(t,e)]||n;return"function"==typeof o?o(u):s?r.createElement(s,null,u):u};zt.defaultProps={type:"cardinal"},zt.displayName="FormattedPlural";var Ht=Ge(zt),$t=(function(){var e=function(t,r){return(e=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])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}})(),Zt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Gt=wt||Mt,qt=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $t(t,e),t.prototype.shouldComponentUpdate=function(e){var t=this.props,r=t.values,n=Zt(t,["values"]),o=e.values,a=Zt(e,["values"]);return!Gt(o,r)||!Gt(n,a)},t.prototype.render=function(){var e=this;return r.createElement(Ze.Consumer,null,(function(t){re(t);var n=t.formatMessage,o=t.textComponent,i=void 0===o?r.Fragment:o,s=e.props,u=s.id,l=s.description,c=s.defaultMessage,f=s.values,d=s.children,m=s.tagName,p=void 0===m?i:m,h=n({id:u,description:l,defaultMessage:c},f);return Array.isArray(h)||(h=[h]),"function"==typeof d?d(h):p?r.createElement.apply(a,(function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)n[o]=a[i];return n})([p,null],h)):h}))},t.displayName="FormattedMessage",t})(r.Component),Kt=Qe("formatDate"),Yt=Qe("formatTime"),Wt=Qe("formatNumber"),Xt=Qe("formatList"),Qt=Qe("formatDisplayName"),Jt=Xe("formatDate"),er=Xe("formatTime");e.FormattedDate=Kt,e.FormattedDateParts=Jt,e.FormattedDisplayName=Qt,e.FormattedList=Xt,e.FormattedMessage=qt,e.FormattedNumber=Wt,e.FormattedNumberParts=We,e.FormattedPlural=Ht,e.FormattedRelativeTime=Vt,e.FormattedTime=Yt,e.FormattedTimeParts=er,e.IntlContext=Ze,e.IntlProvider=kt,e.InvalidConfigError=X,e.MessageFormatError=J,e.MissingDataError=Q,e.MissingTranslationError=ee,e.RawIntlProvider=$e,e.ReactIntlError=Y,e.UnsupportedFormatterError=W,e.createIntl=Nt,e.createIntlCache=function(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}},e.defineMessage=function(e){return e},e.defineMessages=function(e){return e},e.injectIntl=Ge,e.useIntl=function(){var e=r.useContext(Ze);return re(e),e},Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=pkg-i18n.min.js-vflo-iyS3.map