From 9f3b748a546d9498898dfbd9c7a350edc41a6ddb Mon Sep 17 00:00:00 2001 From: Radhi Fadlillah Date: Tue, 24 Mar 2020 14:08:05 +0700 Subject: [PATCH] Fix chart value not shortened when it's negative --- internal/backend/ui/assets-prod.go | 12 ++++++------ internal/view/js/components/account-chart.js | 15 ++++++++++----- internal/view/js/components/account-chart.min.js | 2 +- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/internal/backend/ui/assets-prod.go b/internal/backend/ui/assets-prod.go index 2361b73..4597dfd 100644 --- a/internal/backend/ui/assets-prod.go +++ b/internal/backend/ui/assets-prod.go @@ -338,17 +338,17 @@ var assets = func() http.FileSystem { }, "/js/components/account-chart.js": &vfsgen۰CompressedFileInfo{ name: "account-chart.js", - modTime: time.Date(2020, 3, 21, 1, 12, 52, 784082100, time.UTC), - uncompressedSize: 7308, + modTime: time.Date(2020, 3, 24, 7, 7, 0, 646783998, time.UTC), + uncompressedSize: 7440, - compressedContent: []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xdc\x59\x5f\x6f\xdc\xb8\x11\x7f\xd6\x7e\x8a\x89\x7a\x77\x90\x9a\xb5\xbc\xbe\x3b\x14\x81\xd2\x3d\xc0\x89\x2f\x68\xd2\xd8\x0e\xce\xd7\x6b\x83\x20\x88\xb9\xd2\xec\x8a\x17\x8a\x54\x45\xca\x5e\xd7\xd9\xef\x5e\xf0\x9f\x44\x69\x9d\xc4\x97\x3c\x14\x68\x1e\x02\x93\x9c\xff\x33\x9c\xf9\x51\x4b\xeb\x46\xb4\x0a\x6e\x67\xd1\x93\x4e\x29\xc1\xe7\xb3\xe8\xa5\x20\x25\xe5\x9b\x0b\xba\xe1\xb3\x1d\xac\x5b\x51\x43\x9c\x1d\xbe\x2b\x44\xdd\x08\x8e\x5c\xc9\xac\xa6\x3c\xfb\x5d\xc6\x8f\x67\xb3\x81\xbd\xc6\x76\x83\xe7\xab\xdf\xb1\x50\xf3\x81\x2d\x3b\x64\x74\x25\x0f\x3b\x45\x59\xcf\x16\x72\xd1\xa3\x47\x3c\xa4\xd6\x6b\xf3\xdf\x40\x8c\x5b\x43\xbc\xee\x78\xa1\xa8\xe0\x70\x5c\x14\xa2\xe3\xea\x69\x45\x5a\x95\xa4\x5a\x08\x43\x05\x52\x11\x85\xb0\xd4\xcb\xa8\xd0\x47\x39\xf0\x8e\xb1\xf9\x2c\x8a\xb8\xe3\xc8\x61\x61\x96\x88\xe5\xaf\xe2\x17\x5c\xb7\x28\xab\x1c\xd6\x84\x49\x9c\x45\xbb\xd9\x2c\x3a\x3c\x84\x97\xa2\x20\x0c\x6a\x54\x95\x28\xe5\x2c\xea\x95\x6e\x50\x3d\x15\x4c\xb4\x09\x2d\xb7\x46\x67\x44\xd7\x90\x18\xa5\x99\x97\x0f\xcb\xe5\x12\x16\x29\xb4\xa8\xba\x96\x43\xfc\xa7\x93\x93\x93\x78\x16\x19\xf3\xaa\x4e\x1b\x77\x4a\x54\x95\xb5\xa2\xe3\x65\xf2\xc3\x5f\x16\x70\x08\x63\x01\x29\xfc\x19\x68\xb9\x9d\x45\x91\x13\x71\x59\x49\x96\x7c\x73\x5b\x75\xb8\x9b\x1f\x2d\x16\xdf\xce\x7f\x5c\x7c\x9b\x5e\x5a\x63\x7b\xd3\x64\x25\x5a\x85\xfc\xb8\xd6\x22\x92\x2b\xc2\xac\x7d\x85\xe0\x52\x81\x6a\x29\x63\x9a\x6a\x09\x47\x8b\xe0\x9f\x0e\x44\xb4\xba\xe3\xcc\x1c\xd4\xd3\x03\xb3\xab\x2a\xd1\x49\xc2\x4b\xb7\x3d\x73\x41\xb8\x22\x0c\x7e\x5a\xf6\x9a\x7a\xff\x03\x67\x35\xc9\x61\x40\xf1\x10\xe2\x5f\xe3\x31\xfb\xea\x73\xdc\xab\x80\xf9\xc9\x84\xb9\xfe\x1c\x73\x1d\x30\x9f\x4e\x98\xbd\x5b\x9f\x30\xbc\xa7\x78\x08\xf1\xdf\xe3\x21\x3f\x57\x84\x3d\x9e\x64\xa3\x45\x5e\x62\x6b\x8b\xb3\x14\xf5\x1c\x44\xa3\xe4\x50\x31\x7a\x95\x11\x9b\x6e\x99\x31\xe4\x1b\x55\x41\x58\x36\x21\x9d\xc4\x96\xe2\xdd\x54\xb3\x48\x57\xeb\x09\x2a\x52\x54\xa0\x2a\x04\xc1\x4a\x30\x75\x3f\x2a\x4d\xb3\x03\x0f\x96\xe6\x2e\xc0\x77\xdf\x81\xba\x69\x50\xac\x21\x38\xcd\x4a\x2b\x64\xb9\x84\xd8\x7b\x11\x5b\x83\xa3\x7d\xb2\x24\x9d\x45\xc6\x61\xad\xfe\x19\xe5\x4e\x29\x14\x82\x2b\xe4\xca\x55\xbb\xd9\x7b\x22\xb6\xb0\x84\x52\xd4\xd9\xbf\x3b\x6c\x6f\x2e\x90\x61\xa1\x44\x9b\xc4\xde\xff\x03\x43\xf6\xee\x9d\xe3\x8d\x53\x67\xfa\xc0\x6d\xed\x9e\x38\xfd\xb4\x45\x7d\xd5\x19\x59\x21\x93\x4e\xa1\x5d\xc0\x12\xde\x68\xb3\x75\xff\x48\xe2\x17\x84\xc7\xe9\x1c\xec\xe2\x19\xae\x86\xc5\x29\x69\x87\xc5\x71\xa3\x17\x03\xdb\x29\xb9\x19\x0e\x5f\x74\x3c\x5c\xb0\x80\xad\xdb\x8c\xd8\x2e\xb0\x19\x0e\xcf\x0b\x35\x2c\xce\xc4\xd5\xb0\x38\xc1\xc2\xb2\xbd\x75\xde\x9c\x89\xb6\x26\x8c\xfe\x07\xc1\x66\xdb\x39\xc4\xfd\x76\x79\x61\xb6\x61\x09\xe3\xd2\xa9\x49\x93\x10\xdf\x77\x7e\xb2\xe9\x32\x7d\xd0\x93\x73\xbc\x86\xe3\xb6\x25\x37\xc9\xd1\xf7\x69\xb6\xa6\x8c\x25\x26\x98\x9a\x30\xa8\x2e\xbd\x8c\xf4\xb1\xc2\x36\x29\xa4\x96\x55\xf4\x6a\x9e\x97\xa6\xa7\xb9\x55\x46\xcb\xd4\x91\x8b\xf6\x67\x5d\x0c\x96\xde\x0a\x7a\x53\xc8\xac\x16\x5c\x55\x70\x00\x47\x6f\x61\x69\xc4\x98\x9e\x64\x98\xdc\x8d\xe9\x95\xee\x52\x17\x80\x5f\xcc\x85\x81\x35\xe5\x84\x81\x22\x2b\x86\xb3\x51\xe1\x39\x57\xcc\x8d\xa2\x52\x65\x2f\x29\xc7\xbe\x44\xe6\xce\x71\x93\xfe\xdc\x95\x81\xc9\x8a\x55\x94\xef\x05\x52\xab\x76\x5c\xeb\x8e\xb1\x7f\xd2\x52\x55\x39\xa8\xb6\x43\xc3\xc6\x28\xc7\x8b\x5a\x08\xbd\xd9\xab\x7c\xce\x15\xb6\x8d\x60\x44\xdf\x8d\x8c\x0b\x8e\x89\x11\x10\xe9\xa8\xfe\x4d\x30\xad\xa7\x97\xb0\xb3\x55\x61\x2c\x7c\x45\x4a\x3d\x49\x73\xab\x2f\x52\xa2\xc9\xe1\xfb\x1f\xcd\x79\xd4\xd2\x4d\xa5\x86\xe5\x4a\x28\x25\xea\x1c\x1e\xd9\x25\xc3\xb5\xca\xe1\x91\x11\x68\x76\xc8\x96\xca\xd7\x5e\x10\x13\xd7\x39\x74\xbc\xc4\x35\xe5\x58\x5a\x8e\x8a\x6e\xaa\xbd\x4d\x59\x10\x86\xa7\x94\x5f\x34\xa4\xc0\x1c\x7e\x58\x38\xe9\x3a\x4e\x23\xaf\x9e\xf1\x22\x1f\x4f\x92\xb1\xea\x7f\xf5\xaa\x35\xeb\xf9\x7a\x2d\x51\xf9\xad\x68\x9b\xc3\x81\xb3\x3b\xba\xc9\x61\x61\xfe\xda\x0d\x02\x1a\xd6\x6d\x28\x97\xb9\xbd\x9d\x51\x1f\x57\xb7\x9f\x15\xea\x95\xa0\x5c\xbd\x34\xd9\x73\xa1\x8d\x14\x6e\xd5\x31\x2f\x2a\xd1\xe6\x10\xd7\xb4\x2c\x19\xc6\x4e\xc7\x7d\xcd\xd7\x45\x16\xe9\xab\xe6\xcb\x2d\xec\x67\x82\x27\x71\xd9\x92\xeb\x78\x3e\x40\x8b\xc4\xb4\xa2\xad\x72\xed\xcf\x34\x23\xbb\x93\xe9\xc6\x69\x2e\x43\xac\x4b\x24\x86\x0f\x1f\x60\xff\xa8\xd1\x6e\xf8\xe6\x19\xf9\x73\x64\x58\x23\x57\x19\x51\xaa\xf5\xde\x49\x75\xc3\x30\x87\x4b\xa9\x5a\xf1\x1e\x73\xf8\xe6\xb6\x47\x18\x9e\xcd\x56\xf0\x73\x5e\xe2\x36\xdd\x5d\x3a\x7f\x1e\xcf\x5c\x68\xf5\x9f\xbd\x47\x23\x48\x03\xcb\x09\xa6\x71\x37\xec\x8a\xe2\xf5\xde\xa0\xfa\x8d\xe2\x75\x72\xc5\x45\x89\xd6\xea\xc3\x43\x78\x45\x5a\x89\xa0\x8d\xa5\xab\x4e\xa1\x04\x3d\xf2\x25\x2a\x28\x71\x4d\x3a\xa6\xf4\xd4\xeb\xd0\x37\x5e\x8b\x15\x61\x09\x46\x88\xf1\x51\x66\x6e\xd7\x5e\x04\x46\xa4\x3c\x23\x35\x4e\x68\xcc\xbe\xa1\xb8\x41\xd2\x4e\x0e\xf5\x96\xad\x3d\xd7\xef\x26\xe7\x7e\xdb\xa1\x15\xfe\x9b\x36\x69\x42\x53\x53\x6e\x8f\xc9\xf6\xce\x63\xb2\x0d\x1a\xc5\xe4\xd0\x6e\x9a\x73\xc1\x5f\x23\xd1\x03\x9d\x6f\xb0\x9c\x90\x8d\xce\x3c\x1e\x72\x23\xd6\x47\xe6\xc1\x12\xe2\x95\x10\x0c\xf5\x38\x0a\xe2\xe5\x72\x14\xb2\x0c\xa1\xd2\x4c\x52\xb5\x94\x6f\xe2\x14\xc2\x08\xc6\xf1\x98\xc5\xc4\x4e\x53\xf3\xae\x5e\x61\x1b\xa7\xe0\xa2\xa9\x7b\xe6\x09\x51\x98\xa4\xd9\x06\xd5\xb3\x8e\x31\x6d\x6a\xe2\x67\xec\x03\x33\x1a\x32\x2a\xed\x88\xf0\xf1\x4c\x53\x08\x22\xfe\xe6\xed\x58\x59\x1f\xe8\x91\xc2\x20\xfc\x7d\xf7\x99\xf0\xf9\x0c\x8c\xf9\x86\xbc\x4c\xf9\x26\xd6\xd9\x6c\xa4\xe9\x30\xdc\xa6\x96\x8d\x93\xf4\x60\x0c\x65\xa6\x19\x4c\x52\x33\x31\xc1\xc3\x98\x0b\x72\x85\x60\x27\xa9\x58\x7b\xff\x41\x09\x8b\x92\x86\x4b\xd6\xc3\x7c\x98\x00\x38\x27\xe7\x55\x8b\x0d\x69\x71\x8c\x88\xfc\x40\xa7\xf2\xe7\xba\x51\x37\xfb\xcc\x06\xd7\xe9\x76\xb2\x8f\xf6\xec\xfd\x71\x72\xac\xd7\xce\x6d\x57\x46\xae\xd3\x78\x92\xac\xe9\x64\x95\xd4\x49\xf0\x80\x9b\xc3\xad\xad\x9f\x1c\xe2\x09\xec\x72\x32\x0e\x24\xdd\xf0\x18\x76\xa9\x41\x76\x80\x4c\x22\x68\x15\xce\xe0\x8f\xa8\x88\x9b\x29\x8a\x43\x4d\x7d\x50\xa3\x94\x64\x83\xf1\x00\x7e\x5c\x38\x4a\xa2\x08\x90\x2b\x42\x99\x1e\xf1\x71\x1a\xaa\x33\x1a\x06\x64\x57\x21\x29\xb1\xbd\x53\xeb\x54\xa9\x25\x75\x73\x61\x84\x8d\x7c\x49\xcf\xc1\xbc\xd8\x3c\x44\xea\x81\xc8\x5d\x2e\x30\xdc\x20\x2f\xfd\x94\x89\xea\x24\x96\x0d\xe1\x77\x53\x69\xd8\xca\x44\x1b\xeb\x00\xfb\x66\xbe\x22\xc5\xfb\x8d\x79\x38\xe4\x41\x3f\xd7\xfa\x77\x97\xe0\x70\xc1\x60\x67\xc6\x49\x8d\x76\x2b\x0d\xa6\x55\x6a\x26\x95\xa9\xa7\x4e\xed\xa1\xeb\xcf\x87\xe4\xba\x25\x4d\xa3\x63\x02\x77\x1c\xf6\x50\x3b\x0d\x71\xfc\xf3\x35\xe8\x09\x82\x25\x90\xb2\x84\xb5\x10\x0a\x5b\x20\x12\xae\x91\x31\x7f\x23\xc7\x15\xa7\x2b\xba\x26\xdb\xd7\x9f\xee\x35\x2e\x2d\xba\x55\xba\x97\xb9\x1e\xaa\x85\xe0\xe7\x9c\xdd\x04\x90\x49\x23\x23\xc1\x14\x6d\x5e\x09\x49\xf5\xa5\xcd\x21\x56\xa2\xf1\x89\xf0\xf5\xeb\x7c\xb0\xf6\xbd\x7b\xb7\x32\xdf\x2b\x1c\x91\x71\xe5\xf3\xc1\xb1\xbc\x8e\xa7\x4e\xdc\x27\x0f\x08\xbe\x5d\x24\xc6\xdc\x79\x68\x6d\x0e\xf1\x9a\x1c\x10\xbe\x61\x78\xa0\x71\x59\x6f\x17\x69\xac\xb1\xb6\xd4\x5f\x12\xa9\x4c\xf7\x8d\x7d\xa6\x91\xeb\x5a\x2f\x73\x78\x60\x3b\x48\x38\x16\xf5\x60\x29\x18\x2d\xde\x27\x29\xdc\x8e\x5b\x54\x62\x5a\xf8\x01\x1c\xa5\xb0\x73\x85\x91\x7a\x8b\xf7\x8b\xd6\x87\xc3\x68\x9e\xc3\xe5\x37\xb7\xfa\xaf\xdd\x65\xfa\xe5\x4e\x1a\x68\xfa\x11\x2f\xcf\x70\x7b\x3f\x2f\xf5\x6b\xd3\x38\xf2\x57\x5f\x29\xf7\xf3\xfb\xe1\xbe\xdf\xa3\x62\x1d\xbd\x17\x2c\xa6\x09\xee\xf4\x38\x3a\x71\xd0\xfe\x86\x29\xba\x9b\xf7\xcd\x39\x9d\xbc\xde\x05\x7f\x82\x6b\xd1\xa2\x86\x45\xff\x68\x4a\xa2\xb0\xb4\xe8\x68\xae\x1f\xd8\x1f\x85\x48\xae\xc7\x7f\x0a\xc8\x08\x56\xba\xdb\x22\x58\xf9\x25\x28\x47\xb0\xf2\x78\x20\x1b\x84\xfc\x11\x28\x24\x58\x79\x3a\x50\x0c\x32\xee\x09\x95\x34\xfb\x40\x11\xb0\xdf\x17\x4a\xb1\xe0\x35\xdb\x73\xbb\x27\xe1\x3d\x71\xcd\x62\x32\xf8\x5d\x58\x47\xa4\x43\xac\x17\x5f\x04\x77\x26\xd4\x41\xe4\x53\x23\xfc\xf8\x2b\x20\xd2\xbe\xfd\xa7\x77\xb2\x8c\x53\xb5\xf8\x4a\x40\x15\x68\xbb\x93\x75\x9c\xd9\x8f\x44\xed\x13\x30\x6c\x3f\x62\x17\x9e\x38\x4c\xfa\x1b\xff\xd5\xe3\x69\x85\xc5\x7b\x90\xb4\x6e\x18\xf6\xef\x09\x2d\xc8\xe5\x7d\xd9\xe7\xf0\xc3\x87\x51\x5d\xbb\xa3\x3e\x34\xee\x78\x70\x6a\x39\xf2\xc5\x1e\x4f\x11\x97\xa3\x3a\x9e\x6c\x5b\xe2\x31\x0c\x73\xa4\x17\xe1\xe6\xe8\xe3\xd8\xf4\xe9\xa5\x87\xda\xf0\xbd\x23\xe8\x5b\xd6\x65\xba\xf6\xd1\x2b\xdc\xab\x21\xfc\x6c\x33\x60\xd4\x41\xa7\x14\x35\x26\x36\xa2\x53\x30\x63\x3e\x14\xe1\xf5\x05\x6a\x4c\xea\xbe\xc2\xd0\x72\xfb\xd6\xbd\xfd\x55\x7b\x6e\xb8\x60\x09\x2f\x2e\xce\xcf\x32\xfb\xa0\xa0\x6b\x97\x1f\x95\xf6\x74\x67\x5e\xc8\x84\xce\x0a\x1f\x7d\xbf\xe9\x85\xea\xc8\xf4\xac\xfd\x0b\xdb\x7c\x7a\x0c\x7d\xf9\xca\x60\xf5\xd7\x73\x1c\x2e\xbf\x3d\x0a\x58\x9f\xcf\x3e\x64\xc7\x77\x62\x40\x17\xb6\x7d\x38\xbf\x17\xbc\x81\x64\x3f\x80\xfe\x9b\x7d\x18\xc4\x8f\xd2\x0f\xea\xf6\x83\xe9\x99\x86\x80\xba\x9d\x51\x50\x27\x1e\xff\xd1\xb0\x4e\xc7\xdc\xde\x80\xfb\xb2\xe7\xff\xff\xf4\x79\x3e\xfb\xbf\x79\xcb\x8e\x7f\x4e\x0a\xb3\xe9\xf2\x1c\xfe\xaa\x60\x03\x61\x7e\x5b\xb8\x1d\xbd\x7b\x72\x18\xc5\xbd\x0f\x7c\xde\xbb\xe5\xf6\x9d\xb1\x79\x6f\xb6\xab\x61\xf7\xc9\x34\x98\xd8\xbb\x74\xa8\x1e\x57\xb4\x5a\xa7\x86\x5d\x79\xf0\x05\x49\xd3\x0a\xde\x99\x7a\xca\xc7\xd5\x65\x8f\x56\x06\x55\x0d\x04\x7b\x28\x4b\xab\xd8\xfd\x37\x00\x00\xff\xff\x6a\x59\x97\x3b\x8c\x1c\x00\x00"), + compressedContent: []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xdc\x59\xff\x73\xdb\xb6\x15\xff\x99\xfa\x2b\x9e\xb9\xb6\x47\x2e\x32\x2d\xb7\xbd\x5d\x8f\xad\xba\x73\xe2\xe6\x96\x2e\xb6\x73\x55\xd7\x2d\x97\xcb\xc5\x10\xf9\x24\xa1\x01\x01\x8e\x00\x6d\x79\x8e\xfe\xf7\x1d\xbe\x91\x20\xa5\x24\x6e\xf2\xc3\xee\xd6\x1f\x1a\x03\x78\x5f\x3f\x78\x78\xf8\x80\xa2\x55\x2d\x1a\x05\xf7\x93\xe8\x71\xab\x94\xe0\xd3\x49\xf4\x5c\x90\x92\xf2\xf5\x82\xae\xf9\x64\x07\xab\x46\x54\x10\x67\x27\x6f\x0a\x51\xd5\x82\x23\x57\x32\xab\x28\xcf\x7e\x97\xf1\xf7\x93\x49\xaf\x5e\x61\xb3\xc6\xab\xe5\xef\x58\xa8\x69\xaf\x96\x9d\x30\xba\x94\x27\xad\xa2\xac\x53\x0b\xb5\xe8\xe9\x77\x3c\x94\xd6\x63\xf3\xbf\x5e\x18\xb7\x46\x78\xd5\xf2\x42\x51\xc1\xe1\xac\x28\x44\xcb\xd5\x93\x0d\x69\x54\x92\x6a\x23\x0c\x15\x48\x45\x14\xc2\x5c\x0f\xa3\x42\x2f\xe5\xc0\x5b\xc6\xa6\x93\x28\xe2\x4e\x23\x87\x99\x19\x22\x96\xbf\x8a\x5f\x70\xd5\xa0\xdc\xe4\xb0\x22\x4c\xe2\x24\xda\x4d\x26\xd1\xc9\x09\x3c\x17\x05\x61\x50\xa1\xda\x88\x52\x4e\xa2\xce\xe9\x1a\xd5\x13\xc1\x44\x93\xd0\x72\x6b\x7c\x46\x74\x05\x89\x71\x9a\x79\xfb\x30\x9f\xcf\x61\x96\x42\x83\xaa\x6d\x38\xc4\x7f\x3a\x3f\x3f\x8f\x27\x91\x09\x6f\xd3\xea\xe0\x2e\x88\xda\x64\x8d\x68\x79\x99\x7c\xf3\x97\x19\x9c\xc0\xd0\x40\x0a\x7f\x06\x5a\x6e\x27\x51\xe4\x4c\x5c\x6f\x24\x4b\xbe\xb8\xdf\xb4\xb8\x9b\x9e\xce\x66\x5f\x4e\xbf\x9d\x7d\x99\x5e\xdb\x60\xbb\xd0\xe4\x46\x34\x0a\xf9\x59\xa5\x4d\x24\x37\x84\xd9\xf8\x0a\xc1\xa5\x02\xd5\x50\xc6\xb4\xd4\x1c\x4e\x67\xc1\x7f\x1a\x88\x68\x79\x60\xcd\x2c\x54\xe3\x05\x33\xab\x36\xa2\x95\x84\x97\x6e\x7a\xe2\x52\xa3\xf2\x12\xd7\x44\xd1\x1b\x9d\xe1\x0d\x61\xf0\x03\xcc\x1c\x3e\xfd\x52\x6a\x56\x1c\x02\x64\x29\x4d\x9c\xde\x82\xc9\xc0\x2a\x3b\x45\x2d\xfc\xe3\xbc\x8b\x3e\xed\x44\x02\x04\xb5\xcc\x49\x20\xf2\x08\xe2\x5f\x35\xdc\xc8\x24\x42\x60\x64\xf9\x51\x1b\xcb\xc0\xc4\xe3\x43\x26\xaa\x8f\x9a\xa8\x02\x13\x17\x87\x4c\x78\xf0\x3e\x94\x4a\x27\xf2\x08\xe2\xbf\xc7\x93\xbe\x0e\x02\x88\xff\x0a\xf1\x71\x0c\x8f\x9c\x95\xdc\xfe\x3b\xaa\x88\x06\x79\x89\x8d\x3d\x20\xa5\xa8\xa6\x20\x6a\x25\xfb\xaa\xd5\xa3\x8c\xd8\x92\x93\x19\x43\xbe\x56\x1b\x08\x4b\x37\x94\x93\xd8\x50\x3c\x2c\x35\x89\xf4\x89\x39\x47\x45\x8a\x0d\xa8\x0d\x82\x60\x25\x98\xb3\x37\x38\x1e\x66\x06\x8e\xe6\xe6\x3c\xc2\x57\x5f\x81\xba\xab\x51\xac\x20\x58\xcd\x4a\x6b\x64\x3e\x87\xd8\x67\x11\xdb\x80\xa3\x7d\xb1\x24\x9d\x44\x26\x61\xed\xfe\x29\xe5\xce\x29\x14\x82\x2b\xe4\xca\x15\x95\x99\x7b\x2c\xb6\x30\x87\x52\x54\xd9\xbf\x5b\x6c\xee\x16\xc8\xb0\x50\xa2\x49\x62\x9f\xff\xb1\x11\x7b\xf3\xc6\xe9\xc6\xa9\x0b\xbd\xd7\xb6\x71\x8f\x92\x7e\xd2\xa0\x6e\x37\x8c\x2c\x91\x49\xe7\xd0\x0e\x60\x0e\xaf\x74\xd8\xba\x87\x25\xf1\xcf\x84\xc7\xe9\x14\xec\xe0\x29\x2e\xfb\xc1\x05\x69\xfa\xc1\x59\xad\x07\xbd\xda\x05\xb9\xeb\x17\x7f\x6e\x79\x38\x60\x81\x5a\xbb\x1e\xa8\x2d\xb0\xee\x17\xaf\x0a\xd5\x0f\x2e\xc5\x4d\x3f\x38\xc7\xc2\xaa\xbd\x76\xd9\x5c\x8a\xa6\x22\x8c\xfe\x07\xc1\xee\xb6\x4b\x88\xfb\xe9\x72\x61\xa6\x61\x0e\xc3\xd2\xa9\x48\x9d\x10\xdf\xfb\x7e\xb4\xdb\x65\xce\xb3\x17\xe7\x78\x0b\x67\x4d\x43\xee\x92\xd3\xaf\xd3\x6c\x45\x19\x4b\x0c\x98\x5a\x30\xa8\x2e\x3d\x8c\xf4\xb2\xc2\x26\x29\xa4\xb6\x55\x74\x6e\x9e\x95\xa6\xaf\xba\x51\x46\xcb\xd4\x89\x8b\xe6\x27\x5d\x0c\x56\xde\x1a\x7a\x55\xc8\xac\x12\x5c\x6d\xe0\x18\x4e\x5f\xc3\xdc\x98\x31\x7d\xd1\x28\xb9\xd3\xd4\x39\xdd\xa5\x0e\x80\x5f\xcc\x81\x81\x15\xe5\x84\x81\x22\x4b\x86\x93\x41\xe1\xb9\x54\xcc\x89\xa2\x52\x65\xcf\x29\xc7\xae\x44\xa6\x2e\x71\xb3\xfd\xb9\x2b\x03\xb3\x2b\xd6\x51\xbe\x07\xa4\x76\xed\xb4\x56\x2d\x63\xff\xa4\xa5\xda\xe4\xa0\x9a\x16\x8d\x1a\xa3\x1c\x17\x95\x10\x7a\xb2\x73\xf9\x8c\x2b\x6c\x6a\xc1\x88\x3e\x1b\x19\x17\x1c\x13\x63\x20\xd2\xa8\xfe\x4d\x30\xed\xa7\xb3\xb0\xb3\x55\x61\x22\x7c\x41\x4a\x7d\x9b\xe7\xd6\x5f\xa4\x44\x9d\xc3\xd7\xdf\x9a\xf5\xa8\xa1\xeb\x8d\xea\x87\x4b\xa1\x94\xa8\x72\xf8\xce\x0e\x19\xae\x54\x0e\xdf\x19\x83\x66\x86\x6c\xa9\x7c\xe9\x0d\x31\x71\x9b\x43\xcb\x4b\x5c\x51\x8e\xa5\xd5\xd8\xd0\xf5\x66\x6f\x52\x16\x84\xe1\x05\xe5\x8b\x9a\x14\x98\xc3\x37\x33\x67\x5d\xe3\x34\xc8\xea\x29\x2f\xf2\xe1\x6d\x36\x74\xfd\xaf\xce\xb5\x56\xbd\x5a\xad\x24\x2a\x3f\x15\x6d\x73\x38\x76\x71\x47\x77\xb9\xb9\x81\x74\x93\xe8\x0c\xd4\xac\x5d\x53\x2e\x73\x7b\x3a\xa3\x0e\x57\x37\x9f\x15\xea\x85\xa0\x5c\x3d\x37\xbb\xe7\xa0\x8d\x14\x6e\xd5\x19\x2f\x36\xa2\xc9\x21\xae\x68\x59\x32\x8c\x9d\x8f\x87\x86\xaf\x8b\x2c\xd2\x47\xcd\x97\x5b\xd8\xcf\x04\x4f\xe2\xb2\x21\xb7\xf1\xb4\xa7\x37\x89\x69\x45\x5b\xe5\xda\x9f\x69\x46\x76\x26\xd3\x8d\xd3\x1c\x86\x58\x97\x48\x0c\xef\xde\xc1\xfe\x52\xad\xd3\xf0\xcd\x33\xf2\xeb\xc8\xb0\x42\xae\x32\xa2\x54\xe3\xb3\x93\xea\x8e\x61\x0e\xd7\x52\x35\xe2\x2d\xe6\xf0\xc5\x7d\xc7\x72\xbc\x9a\xad\xe0\x67\xbc\xc4\x6d\xba\xbb\x76\xf9\x7c\x3f\x71\xd0\xea\x3f\xbb\x8c\x06\xb4\x0a\xe6\x23\x5e\xe5\x4e\xd8\x0d\xc5\xdb\xbd\x8b\xea\x37\x8a\xb7\xc9\x0d\x17\x25\xda\xa8\x4f\x4e\xe0\x05\x69\x24\x82\x0e\x96\x2e\x5b\x85\x12\x34\xed\x90\xa8\xa0\xc4\x15\x69\x99\xd2\x54\xa1\x45\xdf\x78\x2d\x5f\xd5\x04\x42\x1b\x31\x39\xca\xcc\xcd\xda\x83\xc0\x88\x94\x97\xa4\xc2\x91\x8c\x99\x37\x12\x77\x48\x9a\xd1\xa2\x9e\xb2\xb5\xe7\xfa\xdd\x68\xdd\x4f\x3b\xc6\xc4\x7f\xd3\x21\x8d\x64\x2a\xca\xed\x32\xd9\x1e\x5c\x26\xdb\xa0\x51\x8c\x16\xed\xa4\x59\x17\xfc\x25\x12\x7d\xa1\xf3\x35\x96\x23\xb1\xc1\xda\xc4\x5d\x5f\xee\x8a\xf5\xc8\x1c\xcd\x21\x5e\x0a\xc1\x50\x5f\x47\x01\x5e\x6e\x8f\x42\x95\x1e\x2a\xad\x24\x55\x43\xf9\x3a\x4e\x21\x44\x30\x8e\x87\x2a\x06\x3b\x2d\xcd\xdb\x6a\x89\x4d\x9c\x82\x43\x53\xf7\xcc\x73\xa2\x30\x49\xb3\x35\xaa\xa7\x2d\x63\x3a\xd4\xc4\xdf\xb1\x47\xe6\x6a\xc8\xa8\xb4\x57\x84\xc7\x33\x4d\x21\x40\xfc\xd5\xeb\xa1\xb3\x0e\xe8\x81\xc3\x00\xfe\xae\xfb\x8c\xf4\xfc\x0e\x0c\xf5\xfa\x7d\x19\xeb\x8d\xa2\xb3\xbb\x91\xa6\xfd\xe5\x36\x8e\x6c\xb8\x49\x47\x43\x2a\x33\xde\xc1\x24\x35\x37\x26\x78\x1a\xb3\x20\x37\x08\xf6\x26\x15\x2b\x9f\x3f\x28\x61\x59\x52\x7f\xc8\xba\xa7\x06\x8c\x08\x9c\xb3\xf3\xa2\xc1\x9a\x34\x38\x64\x44\xb2\x63\xea\x3f\x55\xb5\xba\xdb\x57\x36\xbc\x4e\xb7\x93\x7d\xb6\x67\xcf\x8f\xb3\x63\xb3\x76\x69\xbb\x32\x72\x9d\xc6\x8b\x64\x75\x2b\x37\x49\x95\x04\x8f\xc8\x29\xdc\xdb\xfa\xc9\x21\x1e\xd1\x2e\x67\xe3\x58\xd2\x35\x8f\x61\x97\x1a\x66\x07\x1d\x77\x76\x01\xbf\xc7\x45\x5c\x8f\x59\x1c\x6a\xe9\xe3\x0a\xa5\x24\x6b\x8c\x7b\xf2\xe3\xe0\x28\x89\x22\x40\x6e\x08\x65\xfa\x8a\x8f\xd3\xd0\x9d\xf1\xd0\x33\xbb\x0d\x92\x12\x9b\x83\x5e\xc7\x4e\xad\xa8\xbb\x17\x06\xdc\xc8\x97\xf4\x14\xcc\xab\xd1\x53\xa4\x8e\x88\x1c\x4a\x81\xe1\x1a\x79\xe9\x6f\x99\xa8\x4a\x62\x59\x13\x7e\x58\x4a\xd3\x56\x26\x9a\x58\x03\xec\x9b\xf9\x92\x14\x6f\xd7\xe6\x55\x91\x07\xfd\x5c\xfb\xdf\x5d\x83\xe3\x05\x7d\x9c\x19\x27\x15\xda\xa9\x34\xb8\xad\x52\x73\x53\x99\x7a\x6a\xd5\x1e\xbb\xfe\x38\x24\xb7\x0d\xa9\x6b\x8d\x09\x1c\x58\xec\xa8\x76\x1a\xf2\xf8\x67\x2b\xd0\x37\x08\x96\x40\xca\x12\x56\x42\x28\x6c\x80\x48\xb8\x45\xe6\x1f\x85\x47\xc3\x8a\xd3\x15\x5d\x91\xed\xcb\x0f\xf7\x1a\xb7\x2d\xba\x55\xba\xaf\x03\xfa\x52\x2d\x04\xbf\xe2\xec\x2e\xa0\x4c\x9a\x19\x09\xa6\x68\xfd\x42\x48\xaa\x0f\x6d\x0e\xb1\x12\xb5\xdf\x08\x5f\xbf\x2e\x07\x1b\xdf\x9b\x37\x4b\xf3\xcd\xc4\x09\x99\x54\x3e\x0e\x8e\xd5\x75\x3a\x55\xe2\x3e\xbb\x40\xf0\xfd\x24\x31\xe1\x4e\xc3\x68\x73\x88\x57\xe4\x98\xf0\x35\xc3\x63\xcd\xcb\xba\xb8\x48\x6d\x83\xb5\xa5\xfe\x9c\x48\x65\xba\x6f\xec\x77\x1a\xb9\xae\xf5\x32\x87\x23\xdb\x41\xc2\x6b\x51\x5f\x2c\x05\xa3\xc5\xdb\x24\x85\xfb\x61\x8b\x4a\x4c\x0b\x3f\x86\xd3\x14\x76\xae\x30\x52\x1f\xf1\x7e\xd1\x7a\x38\x8c\xe7\x29\x5c\x7f\x71\xaf\xff\xda\x5d\xa7\x9f\x9e\xa4\xa1\xa6\xef\xc9\xf2\x12\xb7\x0f\xcb\x52\xbf\x36\x4d\x22\x3f\xf8\x4a\x79\x58\xde\x8f\xf6\xf3\x1e\x14\xeb\xe0\xbd\x60\x39\x4d\x70\xa6\x87\xe8\xc4\x41\xfb\xeb\x6f\xd1\xdd\xb4\x6b\xce\xe9\xe8\xf5\x2e\xf8\x63\x5c\x89\x06\x35\x2d\xfa\x47\x5d\x12\x85\xa5\x65\x47\x53\xfd\xc0\x7e\x2f\x45\x72\x3d\xfe\x43\x44\x46\xb0\xd2\x9d\x16\xc1\xca\x4f\x61\x39\x82\x95\x67\xbd\x58\x6f\xe4\x8f\x50\x21\xc1\xca\x8b\x5e\xa2\xb7\xf1\x40\xaa\xa4\xd5\x7b\x89\x40\xfd\xa1\x54\x8a\x05\xaf\xd9\x4e\xdb\x3d\x09\x1f\xc8\x6b\x66\xa3\x8b\xdf\xc1\x3a\x10\xed\xb1\x9e\x7d\x12\xdd\x19\x49\x07\xc8\xa7\xc6\xf8\xd9\x67\x50\xa4\xfd\xf8\x2f\x0e\xaa\x0c\xb7\x6a\xf6\x99\x84\x2a\xf0\x76\x50\x75\xb8\xb3\xef\x41\xed\x03\x34\x6c\x1f\xb1\x85\x17\x0e\x37\xfd\x95\xff\xea\xf1\x64\x83\xc5\x5b\x90\xb4\xaa\x19\x76\xef\x09\x6d\xc8\xed\xfb\xbc\xdb\xc3\x77\xef\x06\x75\xed\x96\x3a\x68\xdc\x72\x9f\xd4\x7c\x90\x8b\x5d\x1e\x33\x2e\x27\x75\x36\x9a\xb6\xc2\x43\x1a\xe6\x44\x17\xe1\xe4\xe0\xe3\xd8\xf8\xe9\xa5\x2f\xb5\xfe\x7b\x47\xd0\xb7\x6c\xca\x74\xe5\xd1\x2b\xdc\xab\x21\xfc\x6c\xd3\x73\xd4\xde\xa7\x14\x15\x26\x16\xd1\x31\x99\x31\x1f\x8a\xf0\x76\x81\x9a\x93\xba\xaf\x30\xb4\xdc\xbe\x76\x6f\x7f\xd5\x5c\x19\x2d\x98\xc3\xcf\x8b\xab\xcb\xcc\x3e\x28\xe8\xca\xed\x8f\x4a\x3b\xb9\x4b\x6f\x64\x24\x67\x8d\x0f\xbe\xdf\x74\x46\x35\x32\x9d\x6a\xf7\xc2\x36\x9f\x1e\xc3\x5c\x3e\x13\xac\xee\x78\x0e\xe1\xf2\xd3\x03\xc0\xba\xfd\xec\x20\x3b\x3b\xc8\x01\x1d\x6c\xfb\x74\x7e\x0f\xbc\x5e\x64\x1f\x40\xff\xbb\x41\x08\xe2\x7b\xe5\x7b\x77\xfb\x60\x7a\xa5\x1e\x50\x37\x33\x00\x75\x94\xf1\x1f\x85\x75\x7c\xcd\xed\x5d\x70\x9f\xf6\xfc\xff\x9f\x3e\xcf\x27\xff\x37\x6f\xd9\xe1\x4f\x5a\xe1\x6e\xba\x7d\x0e\x7f\x55\xb0\x40\x98\xdf\x16\xee\x07\xef\x9e\x1c\x06\xb8\x77\xc0\xe7\x5d\x5a\x6e\xde\x05\x9b\x77\x61\xbb\x1a\x76\x9f\x4c\x83\x1b\x7b\x97\xf6\xd5\xe3\x8a\x56\xfb\xd4\xb4\x2b\x0f\xbe\x20\x69\x59\xc1\x5b\x53\x4f\xf9\xb0\xba\xec\xd2\xd2\xb0\xaa\x5e\x60\x8f\x65\x69\x17\xbb\xff\x06\x00\x00\xff\xff\x04\xf2\x9a\x00\x10\x1d\x00\x00"), }, "/js/components/account-chart.min.js": &vfsgen۰CompressedFileInfo{ name: "account-chart.min.js", - modTime: time.Date(2020, 3, 21, 1, 12, 52, 984082098, time.UTC), - uncompressedSize: 3712, + modTime: time.Date(2020, 3, 24, 7, 7, 0, 796783995, time.UTC), + uncompressedSize: 3768, - compressedContent: []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\x56\x61\x6f\xdb\x38\xd2\xfe\x2b\x36\xdf\x2e\x41\xbe\x61\x14\xbb\x5d\x14\x5d\xfa\x98\xa2\xbb\xb9\xe2\xda\x6b\x9b\xe2\xb2\xb8\xbb\x45\x10\x24\xb4\x34\xb2\xb8\xa5\x48\x1d\x49\x35\x36\x14\xfd\xf7\x03\x25\x59\x76\x1c\x67\x71\xfb\xc5\xe6\xcc\x43\xcd\x0c\x67\x38\x0f\x47\x95\x95\x75\xa1\xf9\xb9\x0e\xc1\x1a\xf6\xc9\xca\x4c\x99\xd5\x95\x5a\x99\x36\x77\xb6\x44\xc9\xd9\x6d\x6a\xcb\xca\x1a\x30\xc1\x27\xa5\x32\xc9\xef\x1e\x2d\x86\x8f\x4a\x70\x2b\xb8\x5c\xfe\x0e\x69\x18\x76\x27\x67\x5a\x2d\xfd\x59\x1d\x94\x7e\xb2\x5b\xcd\xdf\x98\x71\x5b\x14\xba\x9f\x71\x17\xac\xe3\xae\x49\x5e\x9b\x34\x28\x6b\x26\xef\xd2\xd4\xd6\x26\xfc\x52\x48\x17\x08\x6d\x34\x84\x49\x10\x4d\x1a\x45\x6e\x6a\xad\x99\x19\x76\xf0\x19\x33\x00\xd9\xaf\xf6\x1f\x90\x3b\xf0\x05\x9f\xce\xdb\xc5\x68\x06\x08\xd0\x46\xe5\x64\x26\x84\x08\xc9\xf6\x1b\xea\x20\xd4\xce\xa0\xff\xbb\xb8\xb8\x40\x8b\x5e\xb8\x2b\xbc\x26\x2f\x9a\xcf\x32\x14\x89\xb3\xb5\xc9\xc8\xab\xd7\xb3\xb3\xbd\x6f\xfe\x1f\x5a\x36\x9f\xcd\x7e\x60\x3f\xce\x7e\xa0\x77\xed\xe8\xc2\x90\x40\x9b\xde\xc6\x24\x9c\x8b\x39\xcc\x5f\xbe\xdd\xb3\x12\xce\xa2\x86\x9e\xa0\x5f\x11\xef\xe0\x9f\x0e\xd1\x9f\xe8\x09\xfa\x79\x00\x5f\x1f\x82\xaf\xe9\x09\xfa\x3c\x80\xaf\x0e\xc1\x57\xf4\x04\xfd\x1d\xf1\xd0\xf6\xee\x9b\xef\x0a\xee\xf9\x36\x30\x62\xfa\xb4\x39\x61\x12\x19\x82\xf3\x89\xee\xcb\xcb\xe4\xa8\x49\xb5\xf4\x9e\xd9\x51\xde\x80\x74\x4c\x8d\xa2\xec\x8f\xee\x59\x3a\xaa\x4a\x65\x98\xdf\x49\x72\xcd\xf4\x28\x79\x70\x0a\x3c\xab\x47\x85\x35\xbf\x81\x74\xbf\x14\xd2\xac\x20\x5b\xa0\xa5\xb5\x1a\xa4\x41\x53\x11\x36\x15\xd8\x7c\xe2\x30\x26\x4e\x4c\xe7\x94\x21\x1f\x9c\x32\xab\x1d\x24\x31\x26\x52\x20\x44\x19\x32\x75\xb9\x04\xb7\x83\x2c\xc6\xc4\x0a\x62\xe0\x7e\x72\x21\x03\xd0\x64\x05\xe1\x7d\xad\x75\xf4\x45\x28\x65\xef\x9c\x93\x9b\x44\xf9\xee\x9f\x28\xfa\xf0\x40\x94\xb8\xbe\x39\x62\x29\xc5\x98\xa4\xe2\xbb\x55\xd9\x64\x76\x04\xf6\x18\x13\x3f\xc2\x8f\xcd\xea\x68\x56\xf7\x66\xb7\x19\xdf\x7d\x59\x63\x4c\x6a\x41\xa8\x38\x6f\x5a\xca\x76\x97\x48\xa8\x44\x83\x59\x85\x62\x11\x2b\x53\x88\x99\x18\x35\x0f\x0f\x33\x21\xf4\x20\xb0\x5c\x5c\xdf\x2c\x54\x4e\xdc\xdb\x3c\xa9\x6a\x5f\x90\x92\xec\x35\x27\x6b\xba\xc2\x71\x34\x14\xe8\xb4\xeb\x8b\xdb\xdb\xa1\xc0\xa7\x5e\xad\x0c\x6a\x29\xe5\xc5\xee\x73\x54\x25\x07\xbb\xa1\xac\xc2\xe6\xb4\x04\xef\xe5\x0a\x10\x8b\xed\x48\xd0\x17\x3b\xe9\xe0\x49\x26\x83\x9c\xc8\xef\x52\x69\xb9\xd4\x80\x28\xa5\x9c\xec\x8c\x1d\xda\x2a\x40\x66\xe0\x10\x53\x49\x29\x2b\x42\x02\x33\x54\x9c\x1f\x73\xaa\x61\x05\x26\x43\xac\x24\xc8\x57\xd2\x1c\x87\x6f\x6f\x53\xab\xad\x43\xac\xf1\x61\xa3\x81\xdf\x2d\x65\xfa\x6d\xd5\xdd\x7b\xfe\xa2\x01\x62\x68\x7b\xd7\xe7\x55\x96\x40\x29\xa5\xec\xf9\xc8\xee\x9d\xac\xaa\x18\xda\x11\x2c\xb5\x26\x80\x09\xa8\x33\x31\x75\x7d\xbf\xc0\xb3\x57\x8b\x19\xd1\xa8\xd4\x9a\x4b\xa3\x37\x7c\x3a\x63\xc1\x5a\x1d\x54\xf5\xd5\x7a\x15\xcb\xcf\x51\xb0\x15\x62\x43\x69\x06\x17\xb9\xb5\x01\xdc\xed\xed\xb2\x63\x58\xd4\x2e\x9e\x8f\xb4\xdf\x1a\x03\x1d\xe8\x78\x8f\x60\x89\x61\x9d\x6b\x8e\x72\x79\x2a\xcd\x4a\xc3\xa9\x86\x3c\x20\x96\xca\xaa\xf3\xdd\x57\xef\x93\xf4\x61\x12\x9b\x18\x51\x06\x26\x16\x2e\xe3\xd3\x30\x36\xbe\x35\xa9\x56\xe9\x37\x42\x9b\x9a\xd8\xd3\x39\x6d\x5b\x4a\xd9\xb1\x2a\x6d\xa3\xee\x4c\xb1\xbb\x17\x8d\x6d\xef\xe8\xff\x1a\x98\x53\xab\xe2\x49\x64\x5f\x60\xfd\x07\x91\x61\x6c\xff\x02\x8f\xc3\x3b\xe9\xc3\xa3\x74\x20\xb7\xc9\x93\x8c\xa1\x6d\x1b\xc8\x96\xe5\xb4\x65\xd6\xd4\x55\x26\x03\xec\x18\x70\xa8\xa8\x14\xee\x90\xd0\xec\xa8\x8a\x84\xa6\x76\x92\x5c\xb3\x74\x94\x7a\x42\x5b\x3c\xee\x7c\x19\x3b\x5f\x1e\x27\x94\x9e\x9a\x9e\x25\x14\x85\x31\x51\xcf\x10\x4a\x1a\xcd\xa6\x9d\xd9\x90\x3c\x7a\xd1\x30\xde\x1d\x88\xc9\xed\x73\x26\xc7\xc3\x0c\x9c\x31\x3c\x6a\x8b\x2d\xdc\x07\x7f\x00\xc6\xa7\x73\x2a\x42\xd2\x25\x10\xe3\x1d\x75\x89\x6d\x8c\x03\x96\x64\x10\x64\x5a\x60\xfc\x58\x26\xb4\x63\xae\x98\xbe\xff\xd4\xe0\x36\x57\xa0\x21\x0d\xd6\xfd\x41\x6f\xc5\x80\xa2\x5b\x21\xec\x36\x8a\x68\x42\x89\xeb\xfe\x66\x7c\x94\x06\xd1\x81\x7d\xde\xc3\x72\x5c\x7f\xee\xee\x4a\xbf\x7e\x57\xb9\x3d\xfd\x66\x5c\x7f\xac\xcd\xde\x5a\xef\xf6\xd7\xab\x71\x7d\x05\xd5\xb8\xbe\x4c\xc3\xb8\xfe\x62\xbf\x8f\xeb\x0b\x48\x11\xbd\x61\xe9\x7e\x56\x23\x91\x05\x71\x3e\x70\x42\xa4\x84\xbe\x50\xf3\x97\x34\xc9\x95\xd6\xdd\xa1\xe8\x30\x3d\x4c\xc6\x7c\xe7\x4a\x07\x70\x04\xc4\x39\x6c\x6d\x7d\xc8\xba\xe9\x43\x65\x34\xc9\xad\xfb\x6b\x4c\x63\x10\xe7\x70\x1d\x92\xd2\x9a\x50\x9c\xce\x6f\x44\x48\x64\xd9\x4d\x19\x0c\x5a\xba\x18\x72\xde\x39\xed\x26\x20\xe5\x43\xf2\x49\x19\x20\x96\x35\x5a\x2e\x41\x7b\xae\x58\xef\x90\xa7\x2d\x6b\xf2\x5a\xeb\x7f\xa9\x2c\x14\x91\x96\xb4\x32\x70\x55\x5a\x1b\x0a\x3e\x7e\xfc\xc1\x04\x70\x95\xd5\x32\x16\x3b\x31\xd6\x00\x69\xe2\x21\xfe\x66\x35\x78\x3e\x9d\xb5\x94\x75\x2e\xbf\xca\x2c\xf6\x23\x6f\x82\xad\xf8\xcb\x1f\x59\xd7\xcb\x71\xb1\xb4\x21\xd8\x92\xbf\x61\x91\x76\xf8\x9b\x96\xc9\xb5\xf2\xbf\xf1\x46\xdb\x7b\xde\x5f\x68\x56\xa8\x55\xb1\x5d\xfb\x54\x6a\xf8\xac\xcc\x55\x25\x53\xe0\xaf\x66\xac\x8b\xfa\x51\x14\xef\x4d\xca\x4d\x6f\xe7\xdf\xbc\x3f\xd5\x65\x9e\x7b\x08\xbc\x59\xf3\xd3\x37\x6c\xc3\x67\x6d\xcb\x2a\x5d\xaf\x94\xf1\xfc\x7a\x3c\xca\xa0\x49\xd2\xf0\xd5\x2a\x13\x3e\x75\xe9\x20\x4d\x80\x75\x78\x67\xd2\xc2\x3a\x8e\x4a\x95\x65\x1a\xd0\xb3\x4e\xe9\x4d\xf7\x7a\xf4\x17\xdb\x1a\x82\x32\x27\xef\x11\x23\x63\x9f\x05\xda\xa0\x98\x46\x34\x8d\x85\x8b\x9d\x81\x31\xaa\xa2\xbb\x9d\xe6\xe1\x21\x24\xa0\xa1\x04\x13\x3a\xba\x20\xdb\xc7\xca\x07\x67\xbf\x01\x9f\xc4\x97\x2a\x0c\xd7\xe2\x83\xc9\x60\xdd\xbd\x5a\x91\x72\x0f\x1a\x5c\x4c\xe7\x2d\x71\x49\x66\x4b\xd6\x6c\xaf\x1f\x97\xac\x54\xe6\x9f\x52\xd7\xc0\x2d\x2b\xe5\xba\x5f\xee\x55\xbd\x63\xbc\x25\xe4\xd6\xc1\x21\xef\x01\x1b\x67\x3f\xd8\x9f\xec\xe4\xe3\x41\xcf\x8e\xe8\xc8\x8b\x47\x67\x3f\x38\x3e\xfb\x29\xc3\xf4\x0e\x93\xeb\xbd\xc1\x2f\x4a\xc5\x88\x0d\x73\x61\x79\x30\x28\x2e\x9e\xf0\x63\x3f\x0f\x1e\x63\xce\x7e\x1c\x7c\x42\x9a\x36\x92\xa6\xed\x48\xf3\xcf\x4e\x7d\xcf\x0f\x7c\xc7\x10\x8d\x31\xd1\xcf\x13\x7b\x3f\xef\x3d\x09\xaf\x88\x51\x14\x47\xc2\x2b\x23\x50\x76\x80\x13\x42\x48\x8c\x53\x21\x84\xc7\x58\x0b\x21\x6a\x8c\xed\x40\xdb\x62\x37\x1f\x62\x5c\xec\x94\xe5\xb0\x7c\x4b\xca\xc4\xdb\x12\xe2\xc4\x05\x74\x20\x2b\x23\x8a\x6b\xb8\xd9\x12\xd3\xc7\xab\xcb\x2f\x49\x3f\x5d\xab\x7c\x43\x02\x9d\x0a\x71\xa0\x33\xb4\xa5\x0f\x0f\xea\x98\x25\xfb\xe7\x2d\x51\x8c\xc9\x93\x0b\x3e\xa3\xfc\xa9\xae\x6d\xdb\xff\x06\x00\x00\xff\xff\xc9\x9f\xb1\xc5\x80\x0e\x00\x00"), + compressedContent: []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\x57\xfd\x6e\xdb\x38\x12\x7f\x15\x9b\xb7\x4b\x90\x17\x46\xb1\xdb\x45\xd1\xa5\x97\x29\xba\x9b\x2b\xae\xbd\xb6\x29\x2e\x8b\xbb\x5b\x04\x41\x42\x4b\x23\x8b\x5b\x8a\xd4\x91\x54\x63\x43\xd1\xbb\x1f\x28\xc9\xb2\x13\x3b\x8b\xdb\x7f\x92\xf9\xa0\x66\x86\xf3\xf1\xe3\x58\x95\x95\x75\xa1\xf9\xb9\x0e\xc1\x1a\xf6\xd1\xca\x4c\x99\xd5\x95\x5a\x99\x36\x77\xb6\x44\xc9\xd9\x6d\x6a\xcb\xca\x1a\x30\xc1\x27\xa5\x32\xc9\xef\x1e\x2d\x86\x8f\x4a\x70\x2b\xb8\x5c\xfe\x0e\x69\x18\x4e\x27\x67\x5a\x2d\xfd\x59\x1d\x94\x3e\x38\xad\xe6\xaf\xcd\x78\x2c\x32\xdd\x9f\xf1\x14\xac\xe3\xa9\x49\x5e\x9b\x34\x28\x6b\x26\x6f\xd3\xd4\xd6\x26\xfc\x52\x48\x17\x08\x6d\x34\x84\x49\x10\x4d\x1a\x59\x6e\x6a\xad\x99\x19\x4e\xf0\x19\x33\x00\xd9\xaf\xf6\x9f\x90\x3b\xf0\x05\x9f\xce\xdb\xc5\x68\x06\x08\xd0\x46\xe5\x64\x26\x84\x08\xc9\xf6\x1b\xea\x20\xd4\xce\xa0\xbf\x5c\x5c\x5c\xa0\x45\xcf\xdc\x15\x5e\x93\xef\x9a\x4f\x32\x14\x89\xb3\xb5\xc9\xc8\xcb\x57\xb3\xb3\xbd\x6f\xfe\x0a\x2d\x9b\xcf\x66\xdf\xb3\x1f\x66\xdf\xd3\xbb\x76\x74\x61\x48\xe8\xe3\x03\x11\x7e\x9a\x2d\x00\x63\x12\x44\x67\x46\x2e\x3d\x09\x94\x2e\xa2\xd2\x88\x30\x38\x9a\x84\x73\x31\x87\xf9\x8b\x37\x46\xec\x39\x0b\x67\x51\x46\x4f\xd0\xaf\x88\x77\x07\x7e\x3c\xd4\xff\x48\x4f\xd0\xcf\x83\xfa\xd5\xa1\xfa\x15\x3d\x41\x9f\x06\xf5\x4b\x8c\xc9\xc1\x81\x97\xf4\x04\xfd\x03\x51\x06\x6f\xd0\x29\x3a\x31\xdc\xb4\x7d\x44\xcd\x37\x05\xf7\x7c\x7b\x21\x62\xfa\xeb\x38\x61\x12\x19\x82\xf3\x89\xee\xdb\x82\xc9\x51\x92\x6a\xe9\x3d\xb3\x23\xbf\x01\xe9\x98\x1a\x59\xd9\xa7\xcc\xb3\x74\x14\x95\xca\x30\xbf\xe3\xe4\x9a\xe9\x91\xf3\xe0\x14\x78\x56\x8f\x02\x6b\x7e\x03\xe9\x7e\x29\xa4\x59\x41\xb6\x40\x4b\x6b\x35\x48\x83\xa6\x22\x6c\x2a\xb0\xf9\xc4\x61\x4c\x9c\x98\xce\x29\x43\x3e\x38\x65\x56\x3b\x95\xc4\x98\x48\x81\x10\x65\xc8\xd4\xe5\x12\xdc\x4e\x65\x31\x26\x56\x10\x03\xf7\x93\x0b\x19\x80\x26\x2b\x08\xef\x6a\xad\xa3\x2f\x42\x29\x7b\xeb\x9c\xdc\x24\xca\x77\xff\x89\xa2\x0f\x0f\x44\x89\xeb\x9b\x23\x96\x52\x8c\x49\x2a\xbe\x59\x95\x4d\x66\x47\xd4\x1e\x63\xe2\x47\xf5\x63\xb3\x3a\x9a\xd5\xbd\xd9\x6d\xc6\x77\x5f\xd6\x18\x93\x5a\x10\x2a\xce\x9b\x96\xb2\x5d\xf3\x09\x95\x68\x30\xab\x50\x74\xbd\x54\x88\x99\x18\x25\x0f\x0f\x33\x21\xf4\xc0\xb0\x5c\x5c\xdf\x2c\x54\x4e\xdc\x9b\x3c\xa9\x6a\x5f\x90\x92\xec\x0d\x35\x6b\xba\xc2\x71\x34\x14\xe8\xb4\x9b\xa7\xdb\xdb\xa1\xc0\xa7\x5e\xad\x0c\x6a\x29\xe5\xc5\xee\x73\x54\x25\x4f\x4e\x43\x59\x85\xcd\x69\x09\xde\xcb\x15\x20\x16\xc7\x98\xa0\xcf\x76\xd2\xa9\x27\x99\x0c\x72\x22\xbf\x49\xa5\xe5\x52\x03\xa2\x94\x72\xb2\x33\xf6\xd4\x56\x01\x32\x03\x87\x98\x4a\x4a\x59\x11\x12\x98\xa1\xe2\xfc\x98\x53\x0d\x2b\x30\x19\x62\x25\x41\xbe\x92\xe6\xb8\xfa\xf6\x36\xb5\xda\x3a\xc4\x1a\x1f\x36\x1a\xf8\xdd\x52\xa6\x5f\x57\xdd\x00\xf0\xef\x1a\x20\x86\xb6\x77\x7d\x5e\x65\x09\x94\x52\xca\x9e\x8f\xec\xde\xc9\xaa\x8a\xa1\x1d\xd1\xa5\xd6\x04\x30\x01\x75\x26\xa6\x6e\x3b\xfe\xcf\xb5\x16\x33\xa2\x51\xa9\x35\x97\x46\x6f\xf8\x74\xc6\x82\xb5\x3a\xa8\xea\x8b\xf5\x2a\x96\x9f\xa3\x60\x2b\xc4\x86\xd2\x0c\x2e\x72\x6b\x03\xb8\xdb\xdb\x65\x87\xcc\xa8\x5d\x3c\x1f\x69\x7f\x34\x06\x3a\xc0\xf8\x1e\x30\x13\xc3\x3a\xd7\x1c\xe5\xf2\x54\x9a\x95\x86\x53\x0d\x79\x40\x2c\x95\x55\xe7\xbb\xaf\xde\x47\xe9\xc3\x24\x0e\x71\x44\x07\x13\x0b\x97\xf1\x69\x18\x07\xdf\x9a\x54\xab\xf4\x2b\xa1\x4d\x4d\xec\xe9\x9c\xb6\x2d\xa5\xec\x58\x95\xb6\x51\x77\xa6\xd8\xdd\x77\x8d\x6d\xef\xe8\xff\x1b\x98\x53\xab\xe2\x20\xb2\xcf\xb0\xfe\x83\xc8\x30\xb6\x3f\xc1\xe3\xf0\x4e\xfa\xf0\x28\x1d\xc0\x6d\x72\x90\x31\xb4\x1d\x03\xd9\xb2\x9c\xb6\xcc\x9a\xba\xca\x64\x80\x1d\x02\x0e\x15\x95\xc2\x3d\x05\x34\x3b\x8a\x22\xa0\xa9\x1d\x27\xd7\x2c\x1d\xb9\x1e\xd0\x16\x8f\x27\x5f\xc6\xc9\x97\xc7\x01\xa5\x87\xa6\x67\x01\x45\x61\x4c\xd4\x33\x80\x92\x46\xb3\x69\x67\x36\x24\x8f\x5e\x42\x8c\x77\x17\x62\x72\xfb\x0c\xca\xf1\x32\x03\x66\x0c\x8f\xe1\x62\xab\xee\x83\x7f\xa2\x8c\x4f\xee\x54\x84\xa4\x4b\x20\xc6\x3b\xe8\x12\xdb\x18\x07\x5d\x92\x41\x90\x69\x81\xf1\x63\x9e\xf4\xaf\x60\x4c\xdf\x7f\x6b\x70\x9b\x2b\xd0\x90\x06\xeb\xfe\x60\xb6\x62\x40\xd1\xad\x10\x76\x1b\x45\x34\xa1\xc4\x75\xdf\x19\x1f\xa4\x41\x74\x40\x9f\x77\xb0\x1c\xe9\x4f\x5d\xaf\xf4\xf4\xdb\xca\xed\xc9\x37\x23\xfd\xa1\x36\x7b\xb4\xde\x9d\xaf\x57\x23\x7d\x05\xd5\x48\x5f\xa6\x61\xa4\x3f\xdb\x6f\x23\x7d\x01\x29\xa2\x37\x2c\xdd\xcf\x6a\x04\xb2\x20\xce\x07\x4c\x88\x90\xd0\x17\x6a\xfe\x82\x26\xb9\xd2\xba\xbb\x14\xdd\x2e\x03\x63\xbe\x73\xa5\x03\x38\x02\xe2\x1c\xb6\xb6\xde\x67\xdd\xd6\xa2\x32\x9a\xe4\xd6\xfd\x2d\xa6\x31\x88\x73\xb8\x0e\x49\x69\x4d\x28\x4e\xe7\x37\x22\x24\xb2\xec\xb6\x13\x06\x2d\x5d\x0c\x39\xef\x9c\x76\x9b\x93\xf2\x21\xf9\xa8\x0c\x10\xcb\x1a\x2d\x97\xa0\x3d\x57\xac\x77\xc8\xd3\x96\x35\x79\xad\xf5\xbf\x55\x16\x8a\x08\x4b\x5a\x19\xb8\x2a\xad\x0d\x05\x1f\x3f\x7e\x6f\x02\xb8\xca\x6a\x19\x8b\x9d\x18\x6b\x80\x34\xf1\x12\x7f\xb7\x1a\x3c\x9f\xce\x5a\xca\x3a\x97\x5f\x64\x16\xe7\x91\x37\xc1\x56\xfc\xc5\x0f\xac\x9b\xe5\x48\x2c\x6d\x08\xb6\xe4\xaf\x59\x84\x1d\xfe\xba\x65\x72\xad\xfc\x6f\xbc\xd1\xf6\x9e\xf7\x0d\xcd\x0a\xb5\x2a\xb6\xb4\x4f\xa5\x86\x4f\xca\x5c\x55\x32\x05\xfe\x72\xc6\xba\xa8\x1f\x45\xf1\xce\xa4\xdc\xf4\x76\xfe\xc3\xfb\x5b\x5d\xe6\xb9\x87\xc0\x9b\x35\x3f\x7d\xcd\x36\x7c\xd6\xb6\xac\xd2\xf5\x4a\x19\xcf\xaf\xc7\xab\x0c\x92\x24\x0d\x5f\xac\x32\xe1\x63\x97\x0e\xd2\x04\x58\x87\xb7\x26\x2d\xac\xe3\xa8\x54\x59\xa6\x01\x3d\xeb\x94\xde\x74\xaf\x47\xdf\xd8\xd6\x10\x94\x39\x79\x8f\x18\x19\xe7\x2c\xd0\x06\xc5\x34\xa2\x69\x2c\x5c\x9c\x0c\x8c\x51\x15\xdd\xed\x24\x0f\x0f\x21\x01\x0d\x25\x98\xd0\xc1\x05\xd9\x3e\x56\x3e\x38\xfb\x15\xf8\x24\xbe\x54\x61\x68\x8b\xf7\x26\x83\x75\xf7\x6a\x45\xc8\x7d\x32\xe0\x62\x3a\x6f\x89\x4b\x32\x5b\xb2\x66\xdb\x7e\x5c\xb2\x52\x99\x7f\x49\x5d\x03\xb7\xac\x94\xeb\x9e\xdc\xab\x7a\x87\x78\x4b\xc8\xad\x83\xa7\xb8\x07\x6c\xdc\xfd\x60\x7f\xb3\x93\x8f\x17\x3d\x3b\x6a\x47\x5c\x3c\xba\xfb\xc1\xf1\xdd\x4f\x19\xa6\x77\x3a\xb9\xde\x5b\xfc\x22\x57\x8c\xba\x61\x2f\x2c\x9f\x2c\x8a\x8b\x03\x7c\xec\xf7\xc1\x63\xc8\xd9\xaf\x83\x07\xa0\x69\x23\x68\xda\x0e\x34\xff\xec\xd6\xf7\xfc\xc2\x77\x4c\xa3\x31\x26\xfa\x79\x60\xef\xf7\xbd\x83\xf0\x8a\x18\x45\x71\x24\xbc\x32\x2a\xca\x4e\xe1\x84\x10\x12\xe3\x54\x08\xe1\x31\xd6\x42\x88\x1a\x63\x3b\xc0\xb6\xd8\xed\x87\x18\x17\x3b\x61\x39\x90\x6f\x48\x99\x78\x5b\x42\xdc\xb8\x80\x0e\x60\x65\x44\x71\x0d\x37\x5b\x60\xfa\x70\x75\xf9\x39\xe9\xb7\x6b\x95\x6f\x48\xa0\x53\x21\x9e\xc8\x0c\x6d\xe9\xc3\x83\x3a\x66\xc9\xfe\x79\x4b\x34\xfe\x70\x7a\xda\xe0\x33\xca\x0f\x65\x6d\xdb\xfe\x2f\x00\x00\xff\xff\xce\xea\xb4\x79\xb8\x0e\x00\x00"), }, "/js/components/account-list.js": &vfsgen۰CompressedFileInfo{ name: "account-list.js", diff --git a/internal/view/js/components/account-chart.js b/internal/view/js/components/account-chart.js index 05944fd..1903edb 100644 --- a/internal/view/js/components/account-chart.js +++ b/internal/view/js/components/account-chart.js @@ -31,11 +31,16 @@ export function AccountChart() { million = 1000000, thousand = 1000 - if (val >= trillion) return Math.round(val / trillion) + "T" - if (val >= billion) return Math.round(val / billion) + "B" - if (val >= million) return Math.round(val / million) + "M" - if (val >= thousand) return Math.round(val / thousand) + "K" - return val; + let isNegative = val < 0 + if (isNegative) val = Math.abs(val) + + let short = val + if (val >= trillion) short = Math.round(val / trillion) + "T" + else if (val >= billion) short = Math.round(val / billion) + "B" + else if (val >= million) short = Math.round(val / million) + "M" + else if (val >= thousand) short = Math.round(val / thousand) + "K" + + return isNegative ? "-" + short : short } function renderChart(dom, opts) { diff --git a/internal/view/js/components/account-chart.min.js b/internal/view/js/components/account-chart.min.js index 4d58761..abbb173 100644 --- a/internal/view/js/components/account-chart.min.js +++ b/internal/view/js/components/account-chart.min.js @@ -1 +1 @@ -import{Button,LoadingSign}from"./_components.min.js";import{mergeObject}from"../libs/utils.min.js";import{i18n}from"../i18n/i18n.min.js";export function AccountChart(){let t={chart:null,nAccount:0,needToRefresh:!1};function e(e){if(0===t.nAccount)return"#DDD";return`hsl(${Math.round(360/t.nAccount)*e},100%,40%)`}function n(t){return t>=1e12?Math.round(t/1e12)+"T":t>=1e9?Math.round(t/1e9)+"B":t>=1e6?Math.round(t/1e6)+"M":t>=1e3?Math.round(t/1e3)+"K":t}return{view:function(n){let r=n.attrs.loading,a=n.attrs.class,o=n.attrs.year,i=n.attrs.accounts,c=n.attrs.min,s=n.attrs.max,l=n.attrs.series,u=n.attrs.onYearChanged;"boolean"!=typeof r&&(r=!1),"string"!=typeof a&&(a=""),"number"!=typeof o&&(o=(new Date).getFullYear()),Array.isArray(i)||(i=[]),"number"!=typeof c&&(c=void 0),"number"!=typeof s&&(s=void 0),Array.isArray(l)||(l=[]),"function"!=typeof u&&(u=()=>{}),t.nAccount=i.length;let h=0==i.length||0==l.length,f=[];if(r?f.push(m(LoadingSign,{class:"account-chart__loading-sign"})):h?f.push(m("p.account-chart__empty-message",i18n("No chart data available"))):(f.push(m(".account-chart__header",i.map((t,n)=>m("p.account-chart__legend",m("span.account-chart__legend__color",{style:`background:${e(n)}`}),t.name)))),f.push(m(".account-chart__wrapper",m(".account-chart__content")))),!r){let e=(new Date).getFullYear(),n={iconOnly:!0,tooltipPosition:"top",class:"chart__footer__button"};f.push(m(".account-chart__footer",m(Button,mergeObject(n,{icon:"fa-angle-left",caption:i18n("Last year"),enabled:!t.loading,onclick(){u(o-1)}})),m("p.account-chart__footer__year",`${o}`),m(Button,mergeObject(n,{icon:"fa-angle-right",caption:i18n("Next year"),enabled:!t.loading&&o{let e=new Array(12).fill(null);return a.series.filter(e=>e.accountId===t.id).forEach(t=>e[t.month-1]=t.amount),e});t.chart=new Chartist.Line(o,{labels:i,series:c},{fullWidth:!0,lineSmooth:Chartist.Interpolation.none({fillHoles:!0}),chartPadding:{top:24,right:24,bottom:8,left:8},axisY:{low:void 0,high:void 0,scaleMinSpace:30,labelInterpolationFnc:n},axisX:{labelOffset:{x:-8,y:0}},plugins:[Chartist.plugins.ctPointLabels({textAnchor:"middle",labelInterpolationFnc:n})]}),t.chart.on("draw",(function(t){"line"!==t.type&&"point"!==t.type||t.element.attr({style:`stroke: ${e(t.seriesIndex)}`})})),t.needToRefresh=!1}(r.dom,{accounts:a,minValue:o,maxValue:i,series:c})},onbeforeupdate:function(e,n){let r=e.attrs.year,a=n.attrs.year,o=e.attrs.accounts,i=n.attrs.accounts,c=e.attrs.min,s=n.attrs.min,l=e.attrs.max,u=n.attrs.max,h=e.attrs.series,m=n.attrs.series;"number"!=typeof r&&(r=0),"number"!=typeof a&&(a=0),Array.isArray(o)||(o=[]),Array.isArray(i)||(i=[]),"number"!=typeof c&&(c=0),"number"!=typeof s&&(s=0),"number"!=typeof l&&(l=void 0),"number"!=typeof u&&(u=0),Array.isArray(h)||(h=[]),Array.isArray(m)||(m=[]),r===a&&c===s&&l===u&&o.length===i.length&&h.length===m.length?(m.some((t,e)=>{let n=h[e];return JSON.stringify(t)!==JSON.stringify(n)})||i.some((t,e)=>{let n=o[e];return JSON.stringify(t)!==JSON.stringify(n)}))&&(t.needToRefresh=!0):t.needToRefresh=!0}}} \ No newline at end of file +import{Button,LoadingSign}from"./_components.min.js";import{mergeObject}from"../libs/utils.min.js";import{i18n}from"../i18n/i18n.min.js";export function AccountChart(){let t={chart:null,nAccount:0,needToRefresh:!1};function e(e){if(0===t.nAccount)return"#DDD";return`hsl(${Math.round(360/t.nAccount)*e},100%,40%)`}function n(t){let e=t<0;e&&(t=Math.abs(t));let n=t;return t>=1e12?n=Math.round(t/1e12)+"T":t>=1e9?n=Math.round(t/1e9)+"B":t>=1e6?n=Math.round(t/1e6)+"M":t>=1e3&&(n=Math.round(t/1e3)+"K"),e?"-"+n:n}return{view:function(n){let r=n.attrs.loading,a=n.attrs.class,o=n.attrs.year,i=n.attrs.accounts,c=n.attrs.min,s=n.attrs.max,l=n.attrs.series,u=n.attrs.onYearChanged;"boolean"!=typeof r&&(r=!1),"string"!=typeof a&&(a=""),"number"!=typeof o&&(o=(new Date).getFullYear()),Array.isArray(i)||(i=[]),"number"!=typeof c&&(c=void 0),"number"!=typeof s&&(s=void 0),Array.isArray(l)||(l=[]),"function"!=typeof u&&(u=()=>{}),t.nAccount=i.length;let h=0==i.length||0==l.length,f=[];if(r?f.push(m(LoadingSign,{class:"account-chart__loading-sign"})):h?f.push(m("p.account-chart__empty-message",i18n("No chart data available"))):(f.push(m(".account-chart__header",i.map((t,n)=>m("p.account-chart__legend",m("span.account-chart__legend__color",{style:`background:${e(n)}`}),t.name)))),f.push(m(".account-chart__wrapper",m(".account-chart__content")))),!r){let e=(new Date).getFullYear(),n={iconOnly:!0,tooltipPosition:"top",class:"chart__footer__button"};f.push(m(".account-chart__footer",m(Button,mergeObject(n,{icon:"fa-angle-left",caption:i18n("Last year"),enabled:!t.loading,onclick(){u(o-1)}})),m("p.account-chart__footer__year",`${o}`),m(Button,mergeObject(n,{icon:"fa-angle-right",caption:i18n("Next year"),enabled:!t.loading&&o{let e=new Array(12).fill(null);return a.series.filter(e=>e.accountId===t.id).forEach(t=>e[t.month-1]=t.amount),e});t.chart=new Chartist.Line(o,{labels:i,series:c},{fullWidth:!0,lineSmooth:Chartist.Interpolation.none({fillHoles:!0}),chartPadding:{top:24,right:24,bottom:8,left:8},axisY:{low:void 0,high:void 0,scaleMinSpace:30,labelInterpolationFnc:n},axisX:{labelOffset:{x:-8,y:0}},plugins:[Chartist.plugins.ctPointLabels({textAnchor:"middle",labelInterpolationFnc:n})]}),t.chart.on("draw",(function(t){"line"!==t.type&&"point"!==t.type||t.element.attr({style:`stroke: ${e(t.seriesIndex)}`})})),t.needToRefresh=!1}(r.dom,{accounts:a,minValue:o,maxValue:i,series:c})},onbeforeupdate:function(e,n){let r=e.attrs.year,a=n.attrs.year,o=e.attrs.accounts,i=n.attrs.accounts,c=e.attrs.min,s=n.attrs.min,l=e.attrs.max,u=n.attrs.max,h=e.attrs.series,m=n.attrs.series;"number"!=typeof r&&(r=0),"number"!=typeof a&&(a=0),Array.isArray(o)||(o=[]),Array.isArray(i)||(i=[]),"number"!=typeof c&&(c=0),"number"!=typeof s&&(s=0),"number"!=typeof l&&(l=void 0),"number"!=typeof u&&(u=0),Array.isArray(h)||(h=[]),Array.isArray(m)||(m=[]),r===a&&c===s&&l===u&&o.length===i.length&&h.length===m.length?(m.some((t,e)=>{let n=h[e];return JSON.stringify(t)!==JSON.stringify(n)})||i.some((t,e)=>{let n=o[e];return JSON.stringify(t)!==JSON.stringify(n)}))&&(t.needToRefresh=!0):t.needToRefresh=!0}}} \ No newline at end of file