-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
36860-b47839b3cbc9491.js.download
1 lines (1 loc) · 9.98 KB
/
36860-b47839b3cbc9491.js.download
1
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[36860],{81751:function(e,n,t){t.d(n,{Sp:function(){return u},V8:function(){return o},Y$:function(){return r}});var r=1e-18,u=1e-12,o="<0.000000000001"},77705:function(e,n,t){t.d(n,{l:function(){return r}});var r=function(e){if(isNaN(Number(e)))return 0;var n=Math.abs(Number(e));if(n>=1||0===n)return 0;for(var t=0,r=n%=1;r>=n;)t++,r=n%(1/Math.pow(10,t));return Math.max(t-1,0)}},83216:function(e,n,t){t.d(n,{p:function(){return u}});var r=t(77705),u=function(e,n){var t=Math.abs(e);if(0===t)return 0;if(t<1){var u=Math.min(4+(0,r.l)(t),12),o=t.toFixed(u).match(/0+$/);return u-(o?o[0].length:0)}return t<10?4:2}},36860:function(e,n,t){t.r(n),t.d(n,{currencyFormatter:function(){return D},fixedPrice:function(){return Z},formatCurrencyAmount:function(){return S},useCurrencyFormatter:function(){return w},useFormatCurrency:function(){return y},useFormatIsoDateToLocale:function(){return M},usePercentFormatter:function(){return h}});var r=t(22386),u=t(49948),o=t(59776),i=t(81751),a=t(15798),c=t.n(a),f=t(64626),s=t(86167),d=t(3952),l=t(47726),v=t(83216),g=/^[a-zA-Z]+$/,m=function(e,n,t,r,u){return u?n+e+" "+t.toUpperCase():n+(r?"".concat(t).concat(g.test(t)?" ":""):"")+e};function h(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.decimal,r=void 0===t?2:t,u=n.useSymbol,o=void 0===u||u,i=n.removeMinus,a=void 0!==i&&i;return void 0===e?"?":(Number(e).toFixed(r)+(o?"%":"")).slice(a&&e<0?1:0)}function D(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2781,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!(0,d.pG)(e))return"-";var a=o.abbreviate,f=o.useSymbol,s=void 0===f||f,l=o.decimal,g=o.comma,h=void 0===g||g,D=o.converted,y=o.usePrefix,w=o.displayingCurrency,p=o.currency,M=o.isConfirmedCrypto,Z=void 0!==M&&M,S=o.decimal,T=c().currencies.map[u],b=Z||c().currencies.isCrypto(p||u),C=p||(null===(n=c().currencies.map[T.id])||void 0===n?void 0:n.token),Y=(null===T||void 0===T?void 0:T.symbol)===w?1:D?e:e/t,N=y?e>=0?"+ ":"- ":"";if(Math.abs(Y)<i.Sp&&0!==Y){var F=Math.sign(Y),U={1:"","-1":"-"};return Y=b?"<".concat(U[F],"0.000000000001 ").concat(C):"<".concat(U[F]).concat(s?C:"","0.000000000001"),m(Y,"","",!1,!1)}if(S="number"===typeof l?l:"function"===typeof l?l(Y,b):(0,v.p)(Y,b),a)Y=(0,d.DH)(Y,S,h);else{var A=Y.toFixed(S);if(Y=1===Number(A)&&Y<1?String(Y).slice(0,6):A,h){var O=(0,r.Z)(Y.split("."),2),x=O[0],E=O[1],H=void 0===E?"":E;Y=x.replace(/\B(?=(\d{3})+(?!\d))/g,",")+(H?".".concat(H):"")}}var k=y?String(Y).replace("-",""):Y;return m(k,N,C,s,b)}function y(){var e,n=(0,u.useSelector)(l.PN),t=(null===n||void 0===n?void 0:n.id)||2781,r=null===(e=f.C.get(t))||void 0===e?void 0:e.p;return function(e,n){return D(e,r,t,n)}}function w(e){var n,t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.currencyId,a=r.useHooks,c=void 0===a||a;if(c)t=(0,u.useSelector)(l.PN);else{var s=o.Z.store.getState();t=s.app.currency}var d=i||(null===t||void 0===t?void 0:t.id)||2781,v=null===(n=f.C.get(d))||void 0===n?void 0:n.p;return D(e,v,d,r)}var p={year:"numeric",month:"short",day:"numeric"},M=function(e,n){var t,r=(0,u.useSelector)(l.G3);return"string"===typeof e?(0,s.Dr)(e,r,n||p):null!==(t=null===e||void 0===e?void 0:e.toLocaleString(r,n||p))&&void 0!==t?t:""},Z=function(e){var n=(0,v.p)(e,!1),t=e.toFixed(n),u=(0,r.Z)(t.split("."),2),o=u[0],i=u[1],a=void 0===i?"":i;return o.replace(/\B(?=(\d{3})+(?!\d))/g,",")+(a?".".concat(a):"")},S=function(e,n){var t=n.id,r=n.symbol,u=void 0===r?void 0:r,o=c().currencies.isCrypto(t),i=(0,v.p)(e,o);return(0,d.q1)(e,i)+(u?" "+u:"")}},86167:function(e,n,t){t.d(n,{Bk:function(){return _},Db:function(){return W},Dr:function(){return B},I:function(){return b},K9:function(){return x},KF:function(){return N},Lu:function(){return C},Sy:function(){return Z},UE:function(){return T},W9:function(){return z},Y6:function(){return K},b7:function(){return H},eq:function(){return $},iX:function(){return k},kw:function(){return P},mr:function(){return O},n9:function(){return V},oP:function(){return Y},so:function(){return E},w7:function(){return R},xf:function(){return G},xn:function(){return q},yh:function(){return S}});var r=t(67557),u=t(33402),o=t(1284),i=t(4977),a=t(23012),c=t(26135),f=t(15798),s=t.n(f),d=t(31807),l=t(98541),v=t(46102),g=t(57472),m=function(e){return e?"setUTCHours":"setHours"},h=function(e){return e?"setUTCDate":"setDate"},D=function(e){return e?"getUTCDate":"getDate"},y=function(e){return e?"setUTCMonth":"setMonth"},w=function(e){return e?"getUTCMonth":"getMonth"},p=function(e){return e?"setUTCFullYear":"setFullYear"},M=function(e){return e?"getUTCFullYear":"getFullYear"};function Z(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=[""];if(!e)return t;var r=+new Date,u=C(r,e);if(u<1)if(n)t=["Recently"];else{var o=Y(r,e);t=1===o?["1 minute ago"]:["{{minutes}} minutes ago",{minutes:o}]}else if(1===u)t=["1 hour ago"];else if(u>999){var i=b(r,e);t=["{{days}} days ago",{days:i}]}else t=["{{hours}} hours ago",{hours:u}];return t}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:+new Date,n=+new Date,t=b(n,e);return 0===t?["Today"]:1===t?["1 day ago"]:["{{days}} days ago",{days:t}]}function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:+new Date,n=+new Date,t=Y(n,e),r=C(n,e),u=b(n,e);return t<60?["{{mins}} minutes ago",{mins:t}]:r<24?["{{hours}} hours ago",{hours:r}]:0===u?["Today"]:1===u?["1 day ago"]:["{{days}} days ago",{days:u}]}var b=function(e,n){return F(e,n,s().time.ms.DAY)},C=function(e,n){return F(e,n,s().time.ms.HOUR)},Y=function(e,n){return F(e,n,s().time.ms.MINUTE)},N=function(e,n){return F(e,n,s().time.ms.SECOND)};function F(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s().time.ms.DAY,u=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=new Date(e),i=new Date(n);o>i&&(o=(t=[i,o])[0],i=t[1]);var a=Math.abs(i.getTime()-o.getTime());return u?a/r:Math.floor(a/r)}function U(e){return(0,u.Z)(e,Date)&&!isNaN(e)}function A(e,n,t){var r={};return e.indexOf("M")>-1&&(r.month="short"),e.indexOf("D")>-1&&(r.day="numeric"),e.indexOf("Y")>-1&&(r.year="numeric"),n.toLocaleDateString(t,r)}function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;if(n?((0,o.Z)(n)||(0,i.Z)(n))&&(n=new Date(n)):n=new Date,!U(n))return e;if((0,g.yx)(r))return A(e,n,r);var u={long:["January","February","March","April","May","June","July","August","September","October","November","December"]};return u.short=(0,a.Z)(u.long,(function(e){return e.slice(0,3)})),(0,c.Z)({YYYY:n[M(t)](),MMMM:u.long[n[w(t)]()],MMM:u.short[n[w(t)]()],MM:"0".concat(n[w(t)]()+1).slice(-2),DD:"0".concat(n[D(t)]()).slice(-2)},(function(n,t){e=e.replace(new RegExp(t,"g"),n)})),e}function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return e?((0,o.Z)(e)||(0,i.Z)(e))&&(e=new Date(e)):e=new Date,Math.round(+e/1e3)}function E(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s().time.DAY,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return n?((0,o.Z)(n)||(0,i.Z)(n))&&(n=new Date(n)):n=new Date,t===s().time.DAY?e?n[m(r)](0,0,0,0):n[m(r)](23,59,59,999):t===s().time.YEAR&&(e?(n[y(r)](0),n[h(r)](1),n[m(r)](0,0,0,0)):(n[y(r)](12),n[h(r)](0),n[m(r)](23,59,59,999))),n}var H=function(e,n){return E(!0,e,s().time.DAY,n)},k=function(e,n){return E(!1,e,s().time.DAY,n)};function I(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s().time.DAY,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Date,u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(r?((0,o.Z)(r)||(0,i.Z)(r))&&(r=new Date(r)):r=new Date,e||(n*=-1),t===s().time.DAY)r[h(u)](r[D(u)]()+n);else if(t===s().time.MONTH)r[y(u)](r[w(u)]()+n);else{if(t!==s().time.YEAR)throw new Error("interval not supported");r[p(u)](r[M(u)]()+n)}return r}var J,P=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return I(!1,e,s().time.DAY,n,t)},z=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return I(!1,e,s().time.MONTH,n,t)},L=864e5,R=function(e,n){if(isNaN(e))throw new Error("params: days must be a number but received: ".concat(e));var t=(new Date).getTime();return(0,v.Z)(new Date(t-e*L),{representation:"date"})},_=function(){var e=new Date,n=new Date(e.getFullYear(),0,0),t=e.getTime()-n.getTime()+60*(n.getTimezoneOffset()-e.getTimezoneOffset())*1e3;return Math.floor(t/L)},B=function(e,n,t){try{return(0,d.default)(e).toLocaleString(n,t)}catch(r){return e}},$=function(e,n){try{var t;return t="string"===typeof e?(0,d.default)(e):e,new Date>t?(0,l.Z)(t,{addSuffix:!0}):(0,l.Z)(t,{addSuffix:n})+(n?"":" left")}catch(r){return""}};!function(){return(e=-1*(new Date).getTimezoneOffset()/60)>=0?"+".concat(e):"-".concat(e);var e}();function q(e){return Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds())}function G(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function K(e){if((0,u.Z)(e,Date))return e.toISOString();try{return new Date(e).toISOString()}catch(n){return console.warn("invalid date toISOString error"),(new Date).toISOString()}}var V=(J={},(0,r.Z)(J,1,"Jan"),(0,r.Z)(J,2,"Feb"),(0,r.Z)(J,3,"Mar"),(0,r.Z)(J,4,"Apr"),(0,r.Z)(J,5,"May"),(0,r.Z)(J,6,"Jun"),(0,r.Z)(J,7,"Jul"),(0,r.Z)(J,8,"Aug"),(0,r.Z)(J,9,"Sep"),(0,r.Z)(J,10,"Oct"),(0,r.Z)(J,11,"Nov"),(0,r.Z)(J,12,"Dec"),J);function W(e){return new Date(+e+60*(new Date).getTimezoneOffset()*1e3)}}}]);