+++ /dev/null
-#examples-jbake
-#==============
-
-#This directory contains a jbake project that regenerates the JalviewLite example pages
-#shown at http://www.jalview.org/examples/applets.html
-
-#Instructions for building the examples directory from the jbake project:
-
-#Download jbake and add it to your path:
-#http://hash.to/2R
-#(unzip the download and add the extracted directory to your path)
-
-cd examples-jbake
-
-# this generates the example pages in the 'output' directory
-jbake
-
-# jbake -s will test the output. Copy build artefacts (jalviewLite/JmolApplet jars) into the assets directory to create a real test
-
-# remove the pages jbake autogenerates
-rm output/archive.html output/index.html output/feed.xml
-
-# and copy all the rest to examples
-cp output/*.html ../examples/
-cp -R output/css output/images ../examples/
+++ /dev/null
-HEADER OXIDOREDUCTASE/ELECTRON TRANSPORT 08-MAY-00 1GAQ
-ATOM 2 CA GLU A 19 20.491 30.713 36.290 1.00 74.29 C
-ATOM 11 CA SER A 20 24.056 29.774 37.264 1.00 72.09 C
-ATOM 17 CA LYS A 21 27.517 31.289 37.563 1.00 70.09 C
-ATOM 26 CA LYS A 22 28.794 27.865 36.481 1.00 68.64 C
-ATOM 35 CA GLN A 23 29.484 26.806 32.884 1.00 70.46 C
-ATOM 44 CA GLU A 24 26.420 25.175 31.360 1.00 72.08 C
-ATOM 53 CA GLU A 25 26.736 26.049 27.683 1.00 70.43 C
-ATOM 62 CA GLY A 26 28.299 22.912 26.233 1.00 63.14 C
-ATOM 66 CA VAL A 27 26.863 20.704 28.982 1.00 54.50 C
-ATOM 73 CA VAL A 28 25.030 17.390 28.655 1.00 48.32 C
-ATOM 80 CA THR A 29 23.728 14.677 30.991 1.00 44.86 C
-ATOM 87 CA ASN A 30 22.327 11.164 30.703 1.00 45.42 C
-ATOM 95 CA LEU A 31 23.332 10.459 27.102 1.00 45.42 C
-ATOM 103 CA TYR A 32 23.549 6.898 28.380 1.00 45.88 C
-ATOM 115 CA LYS A 33 21.656 5.321 31.262 1.00 47.27 C
-ATOM 124 CA PRO A 34 21.991 2.046 33.248 1.00 48.99 C
-ATOM 131 CA LYS A 35 19.339 0.560 30.970 1.00 52.75 C
-ATOM 140 CA GLU A 36 21.580 0.855 27.886 1.00 53.33 C
-ATOM 149 CA PRO A 37 25.154 2.015 28.678 1.00 47.54 C
-ATOM 156 CA TYR A 38 27.929 2.872 26.249 1.00 41.98 C
-ATOM 168 CA VAL A 39 30.355 -0.017 25.909 1.00 41.48 C
-ATOM 175 CA GLY A 40 33.823 1.485 25.966 1.00 37.59 C
-ATOM 179 CA ARG A 41 37.165 -0.277 26.122 1.00 39.77 C
-ATOM 190 CA CYS A 42 40.148 -0.029 28.442 1.00 36.51 C
-ATOM 196 CA LEU A 43 43.095 1.441 26.554 1.00 36.13 C
-ATOM 204 CA LEU A 44 45.231 2.023 29.649 1.00 33.55 C
-ATOM 212 CA ASN A 45 45.140 1.026 33.307 1.00 27.79 C
-ATOM 220 CA THR A 46 48.056 1.800 35.617 1.00 28.75 C
-ATOM 227 CA LYS A 47 48.542 1.776 39.388 1.00 30.31 C
-ATOM 236 CA ILE A 48 49.564 5.317 40.376 1.00 31.32 C
-ATOM 244 CA THR A 49 50.339 4.682 44.059 1.00 37.62 C
-ATOM 251 CA GLY A 50 53.585 3.317 45.460 1.00 44.49 C
-ATOM 255 CA ASP A 51 53.706 -0.448 46.087 1.00 52.89 C
-ATOM 263 CA ASP A 52 53.910 0.545 49.751 1.00 55.23 C
-ATOM 271 CA ALA A 53 50.816 2.767 50.056 1.00 53.34 C
-ATOM 276 CA PRO A 54 47.904 1.940 52.405 1.00 50.60 C
-ATOM 283 CA GLY A 55 45.420 1.579 49.561 1.00 50.35 C
-ATOM 287 CA GLU A 56 46.098 1.286 45.836 1.00 42.53 C
-ATOM 296 CA THR A 57 44.534 3.816 43.480 1.00 41.14 C
-ATOM 303 CA TRP A 58 44.540 3.423 39.708 1.00 35.60 C
-ATOM 317 CA HIS A 59 44.468 5.853 36.796 1.00 31.89 C
-ATOM 327 CA MET A 60 42.658 4.227 33.866 1.00 31.65 C
-ATOM 335 CA VAL A 61 41.716 5.345 30.350 1.00 30.43 C
-ATOM 342 CA PHE A 62 38.669 4.172 28.360 1.00 34.36 C
-ATOM 353 CA SER A 63 37.657 4.908 24.772 1.00 34.69 C
-ATOM 359 CA THR A 64 34.448 6.828 23.951 1.00 36.96 C
-ATOM 366 CA GLU A 65 34.691 7.644 20.254 1.00 40.08 C
-ATOM 375 CA GLY A 66 33.742 11.183 21.285 1.00 40.22 C
-ATOM 379 CA LYS A 67 30.272 9.763 22.003 1.00 41.93 C
-ATOM 388 CA ILE A 68 30.279 11.116 25.577 1.00 41.52 C
-ATOM 396 CA PRO A 69 30.791 14.926 25.537 1.00 42.35 C
-ATOM 403 CA TYR A 70 31.228 15.232 29.299 1.00 39.84 C
-ATOM 415 CA ARG A 71 32.639 18.451 30.768 1.00 44.14 C
-ATOM 426 CA GLU A 72 35.122 19.278 33.515 1.00 43.82 C
-ATOM 435 CA GLY A 73 33.472 18.458 36.835 1.00 41.97 C
-ATOM 439 CA GLN A 74 30.929 15.874 35.657 1.00 37.19 C
-ATOM 448 CA SER A 75 31.285 12.124 36.138 1.00 38.28 C
-ATOM 454 CA ILE A 76 30.458 8.792 34.539 1.00 36.84 C
-ATOM 462 CA GLY A 77 28.983 5.620 35.918 1.00 35.39 C
-ATOM 466 CA VAL A 78 30.311 2.108 35.530 1.00 32.05 C
-ATOM 473 CA ILE A 79 28.458 -1.201 35.591 1.00 32.67 C
-ATOM 481 CA ALA A 80 30.745 -4.018 36.644 1.00 35.36 C
-ATOM 486 CA ASP A 81 30.359 -7.373 34.872 1.00 38.72 C
-ATOM 494 CA GLY A 82 28.308 -10.332 36.110 1.00 45.79 C
-ATOM 498 CA VAL A 83 25.820 -10.242 39.001 1.00 52.24 C
-ATOM 505 CA ASP A 84 25.838 -10.250 42.834 1.00 60.54 C
-ATOM 513 CA LYS A 85 25.014 -13.158 45.196 1.00 66.72 C
-ATOM 522 CA ASN A 86 21.414 -13.062 43.904 1.00 67.37 C
-ATOM 530 CA GLY A 87 21.724 -13.423 40.136 1.00 64.74 C
-ATOM 534 CA LYS A 88 20.971 -9.733 39.570 1.00 61.12 C
-ATOM 543 CA PRO A 89 23.054 -7.201 37.561 1.00 54.68 C
-ATOM 550 CA HIS A 90 25.224 -4.957 39.755 1.00 44.44 C
-ATOM 560 CA LYS A 91 23.940 -1.433 40.260 1.00 40.48 C
-ATOM 569 CA VAL A 92 25.803 1.546 38.843 1.00 38.45 C
-ATOM 576 CA ARG A 93 28.709 2.986 40.828 1.00 38.93 C
-ATOM 587 CA LEU A 94 29.778 6.584 40.096 1.00 34.37 C
-ATOM 595 CA TYR A 95 33.309 7.878 39.513 1.00 30.27 C
-ATOM 607 CA SER A 96 34.425 11.475 39.057 1.00 29.44 C
-ATOM 613 CA ILE A 97 36.029 12.090 35.662 1.00 27.61 C
-ATOM 621 CA ALA A 98 39.769 12.693 36.069 1.00 31.12 C
-ATOM 626 CA SER A 99 40.393 13.712 32.475 1.00 32.42 C
-ATOM 632 CA SER A 100 39.566 17.142 31.059 1.00 36.14 C
-ATOM 638 CA ALA A 101 37.097 17.367 28.154 1.00 41.07 C
-ATOM 643 CA ILE A 102 39.764 16.549 25.527 1.00 47.65 C
-ATOM 651 CA GLY A 103 41.172 13.692 27.599 1.00 46.77 C
-ATOM 655 CA ASP A 104 44.730 12.612 28.289 1.00 43.82 C
-ATOM 663 CA PHE A 105 45.115 12.065 24.522 1.00 41.52 C
-ATOM 674 CA GLY A 106 43.862 15.455 23.328 1.00 41.66 C
-ATOM 678 CA ASP A 107 41.355 13.883 20.926 1.00 40.90 C
-ATOM 686 CA SER A 108 38.132 14.250 22.954 1.00 42.95 C
-ATOM 692 CA LYS A 109 37.967 10.535 22.224 1.00 44.74 C
-ATOM 701 CA THR A 110 38.731 9.184 25.704 1.00 41.09 C
-ATOM 708 CA VAL A 111 37.728 9.519 29.374 1.00 39.03 C
-ATOM 715 CA SER A 112 39.912 8.705 32.399 1.00 37.17 C
-ATOM 721 CA LEU A 113 39.098 7.476 35.935 1.00 32.10 C
-ATOM 729 CA CYS A 114 40.964 7.578 39.261 1.00 30.65 C
-ATOM 735 CA VAL A 115 39.724 4.459 41.060 1.00 33.45 C
-ATOM 742 CA LYS A 116 40.668 3.524 44.628 1.00 34.75 C
-ATOM 751 CA ARG A 117 40.376 -0.250 45.123 1.00 32.85 C
-ATOM 762 CA LEU A 118 38.137 -1.094 48.077 1.00 30.50 C
-ATOM 770 CA ILE A 119 39.376 -3.752 50.459 1.00 34.34 C
-ATOM 778 CA TYR A 120 38.699 -4.266 54.125 1.00 31.39 C
-ATOM 790 CA THR A 121 38.264 -7.086 56.567 1.00 28.83 C
-ATOM 797 CA ASN A 122 34.792 -7.477 58.109 1.00 26.51 C
-ATOM 805 CA ASP A 123 33.626 -8.382 61.634 1.00 31.58 C
-ATOM 813 CA ALA A 124 34.191 -12.077 60.901 1.00 27.84 C
-ATOM 818 CA GLY A 125 37.759 -11.844 59.728 1.00 32.39 C
-ATOM 822 CA GLU A 126 36.809 -12.146 56.073 1.00 35.82 C
-ATOM 831 CA ILE A 127 38.655 -9.932 53.598 1.00 38.42 C
-ATOM 839 CA VAL A 128 36.025 -8.261 51.421 1.00 33.73 C
-ATOM 846 CA LYS A 129 36.482 -6.484 48.090 1.00 31.87 C
-ATOM 855 CA GLY A 130 34.363 -3.680 46.686 1.00 26.91 C
-ATOM 859 CA VAL A 131 32.680 -5.051 43.569 1.00 27.89 C
-ATOM 866 CA CYS A 132 33.074 -2.246 41.018 1.00 28.46 C
-ATOM 872 CA SER A 133 36.266 -0.553 42.213 1.00 31.33 C
-ATOM 878 CA ASN A 134 37.861 -3.983 41.984 1.00 30.29 C
-ATOM 886 CA PHE A 135 36.318 -4.795 38.623 1.00 31.48 C
-ATOM 897 CA LEU A 136 37.926 -1.553 37.520 1.00 27.81 C
-ATOM 905 CA CYS A 137 41.417 -1.976 38.955 1.00 25.91 C
-ATOM 911 CA ASP A 138 41.605 -5.419 37.338 1.00 30.22 C
-ATOM 919 CA LEU A 139 40.462 -4.306 33.874 1.00 32.69 C
-ATOM 927 CA GLN A 140 42.851 -5.511 31.186 1.00 36.80 C
-ATOM 936 CA PRO A 141 43.380 -3.220 28.170 1.00 36.16 C
-ATOM 943 CA GLY A 142 40.864 -4.420 25.586 1.00 31.10 C
-ATOM 947 CA ASP A 143 38.129 -5.298 28.055 1.00 30.62 C
-ATOM 955 CA ASN A 144 34.690 -3.847 27.645 1.00 33.52 C
-ATOM 963 CA VAL A 145 33.430 -1.522 30.361 1.00 37.08 C
-ATOM 970 CA GLN A 146 29.817 -0.374 30.523 1.00 37.65 C
-ATOM 979 CA ILE A 147 29.547 3.413 31.045 1.00 30.95 C
-ATOM 987 CA THR A 148 26.637 5.791 31.832 1.00 29.95 C
-ATOM 994 CA GLY A 149 26.297 9.581 31.843 1.00 32.81 C
-ATOM 998 CA PRO A 150 27.785 12.148 31.800 1.00 34.98 C
-ATOM 1005 CA VAL A 151 26.376 12.668 35.275 1.00 36.53 C
-ATOM 1012 CA GLY A 152 26.196 15.756 37.474 1.00 43.09 C
-ATOM 1016 CA LYS A 153 26.048 19.528 37.068 1.00 48.37 C
-ATOM 1025 CA GLU A 154 26.921 20.540 40.633 1.00 49.70 C
-ATOM 1034 CA MET A 155 30.710 20.266 40.235 1.00 47.30 C
-ATOM 1042 CA LEU A 156 30.882 22.020 36.869 1.00 50.36 C
-ATOM 1050 CA MET A 157 33.362 24.883 36.404 1.00 55.29 C
-ATOM 1058 CA PRO A 158 32.521 28.612 36.605 1.00 54.88 C
-ATOM 1065 CA LYS A 159 32.291 30.776 33.464 1.00 54.92 C
-ATOM 1074 CA ASP A 160 34.497 33.503 34.939 1.00 57.22 C
-ATOM 1082 CA PRO A 161 38.055 32.687 33.759 1.00 58.62 C
-ATOM 1089 CA ASN A 162 39.524 35.240 36.163 1.00 60.44 C
-ATOM 1097 CA ALA A 163 37.814 33.910 39.279 1.00 55.80 C
-ATOM 1102 CA THR A 164 39.596 32.487 42.316 1.00 51.04 C
-ATOM 1109 CA ILE A 165 38.966 28.771 42.756 1.00 50.26 C
-ATOM 1117 CA ILE A 166 39.774 26.773 45.885 1.00 47.54 C
-ATOM 1125 CA MET A 167 39.883 23.014 45.324 1.00 46.38 C
-ATOM 1133 CA LEU A 168 39.700 20.963 48.522 1.00 42.18 C
-ATOM 1141 CA ALA A 169 40.377 17.316 47.770 1.00 36.41 C
-ATOM 1146 CA THR A 170 41.005 14.086 49.622 1.00 32.98 C
-ATOM 1153 CA GLY A 171 42.027 10.802 48.014 1.00 31.36 C
-ATOM 1157 CA THR A 172 40.386 10.037 44.680 1.00 30.48 C
-ATOM 1164 CA GLY A 173 38.640 13.335 45.359 1.00 33.99 C
-ATOM 1168 CA ILE A 174 41.418 15.036 43.394 1.00 35.66 C
-ATOM 1176 CA ALA A 175 39.758 13.585 40.300 1.00 36.00 C
-ATOM 1181 CA PRO A 176 37.445 16.385 39.155 1.00 39.41 C
-ATOM 1188 CA PHE A 177 40.109 18.971 39.976 1.00 43.21 C
-ATOM 1199 CA ARG A 178 42.726 17.119 37.955 1.00 41.09 C
-ATOM 1210 CA SER A 179 40.235 17.536 35.124 1.00 39.92 C
-ATOM 1216 CA PHE A 180 39.808 21.204 36.009 1.00 39.23 C
-ATOM 1227 CA LEU A 181 43.528 21.949 35.995 1.00 39.50 C
-ATOM 1235 CA TRP A 182 44.305 20.081 32.770 1.00 41.47 C
-ATOM 1249 CA LYS A 183 42.141 22.654 30.972 1.00 48.08 C
-ATOM 1258 CA MET A 184 43.477 25.547 33.062 1.00 52.79 C
-ATOM 1266 CA PHE A 185 47.102 25.043 32.014 1.00 57.35 C
-ATOM 1277 CA PHE A 186 48.075 21.921 30.051 1.00 55.98 C
-ATOM 1288 CA GLU A 187 45.758 23.173 27.297 1.00 54.44 C
-ATOM 1297 CA LYS A 188 44.908 26.236 25.196 1.00 51.29 C
-ATOM 1306 CA HIS A 189 41.395 27.080 24.003 1.00 51.35 C
-ATOM 1316 CA ASP A 190 40.108 29.972 21.873 1.00 54.30 C
-ATOM 1324 CA ASP A 191 37.199 30.481 24.249 1.00 53.95 C
-ATOM 1332 CA TYR A 192 38.816 29.937 27.634 1.00 50.68 C
-ATOM 1344 CA LYS A 193 41.916 31.388 29.230 1.00 51.00 C
-ATOM 1353 CA PHE A 194 42.322 30.967 32.956 1.00 52.09 C
-ATOM 1364 CA ASN A 195 43.672 34.234 34.312 1.00 56.46 C
-ATOM 1372 CA GLY A 196 42.616 34.078 37.969 1.00 57.17 C
-ATOM 1376 CA LEU A 197 43.874 31.920 40.843 1.00 57.92 C
-ATOM 1384 CA GLY A 198 43.549 28.151 41.086 1.00 56.67 C
-ATOM 1388 CA TRP A 199 44.258 26.886 44.592 1.00 51.55 C
-ATOM 1402 CA LEU A 200 44.411 23.170 45.379 1.00 49.17 C
-ATOM 1410 CA PHE A 201 44.558 21.335 48.709 1.00 48.60 C
-ATOM 1421 CA LEU A 202 45.122 17.570 48.598 1.00 45.34 C
-ATOM 1429 CA GLY A 203 44.885 15.480 51.742 1.00 48.55 C
-ATOM 1433 CA VAL A 204 46.225 11.936 51.755 1.00 50.23 C
-ATOM 1440 CA PRO A 205 47.942 9.740 54.365 1.00 51.51 C
-ATOM 1447 CA THR A 206 51.284 9.148 52.648 1.00 50.21 C
-ATOM 1454 CA SER A 207 53.551 10.483 49.894 1.00 49.38 C
-ATOM 1460 CA SER A 208 53.267 7.061 48.259 1.00 43.49 C
-ATOM 1466 CA SER A 209 49.588 8.049 48.093 1.00 42.57 C
-ATOM 1472 CA LEU A 210 49.990 11.424 46.364 1.00 42.65 C
-ATOM 1480 CA LEU A 211 48.121 11.446 43.035 1.00 39.33 C
-ATOM 1488 CA TYR A 212 49.516 13.214 39.935 1.00 40.89 C
-ATOM 1500 CA LYS A 213 52.128 15.234 41.873 1.00 45.88 C
-ATOM 1509 CA GLU A 214 54.518 15.406 38.899 1.00 53.22 C
-ATOM 1518 CA GLU A 215 51.680 16.911 36.889 1.00 55.16 C
-ATOM 1527 CA PHE A 216 50.757 19.475 39.514 1.00 60.55 C
-ATOM 1538 CA GLY A 217 54.488 20.153 39.524 1.00 66.64 C
-ATOM 1542 CA LYS A 218 54.575 21.110 35.850 1.00 68.86 C
-ATOM 1551 CA MET A 219 51.398 23.159 36.265 1.00 66.97 C
-ATOM 1559 CA LYS A 220 53.138 25.090 39.061 1.00 65.97 C
-ATOM 1568 CA GLU A 221 55.654 26.250 36.459 1.00 70.02 C
-ATOM 1577 CA ARG A 222 53.584 26.507 33.294 1.00 73.48 C
-ATOM 1588 CA ALA A 223 52.005 29.449 35.175 1.00 76.21 C
-ATOM 1593 CA PRO A 224 53.272 29.877 38.804 1.00 79.25 C
-ATOM 1600 CA GLU A 225 51.296 33.124 39.020 1.00 81.84 C
-ATOM 1609 CA ASN A 226 47.873 31.528 38.622 1.00 78.84 C
-ATOM 1617 CA PHE A 227 48.418 28.176 40.350 1.00 75.28 C
-ATOM 1628 CA ARG A 228 49.090 27.305 43.996 1.00 72.05 C
-ATOM 1639 CA VAL A 229 49.165 23.724 45.323 1.00 68.82 C
-ATOM 1646 CA ASP A 230 49.258 22.581 48.958 1.00 66.54 C
-ATOM 1654 CA TYR A 231 49.605 18.943 49.968 1.00 60.31 C
-ATOM 1666 CA ALA A 232 48.551 17.560 53.332 1.00 57.39 C
-ATOM 1671 CA VAL A 233 50.260 14.228 53.945 1.00 57.14 C
-ATOM 1678 CA SER A 234 48.465 13.579 57.244 1.00 60.81 C
-ATOM 1684 CA ARG A 235 50.959 11.010 58.514 1.00 60.74 C
-ATOM 1695 CA GLU A 236 54.268 12.594 57.481 1.00 59.17 C
-ATOM 1704 CA GLN A 237 53.494 16.197 58.450 1.00 59.62 C
-ATOM 1713 CA THR A 238 52.590 18.236 61.521 1.00 63.18 C
-ATOM 1720 CA ASN A 239 52.019 21.937 62.188 1.00 66.71 C
-ATOM 1728 CA ALA A 240 52.096 23.767 65.537 1.00 70.06 C
-ATOM 1733 CA ALA A 241 51.302 21.400 68.410 1.00 72.44 C
-ATOM 1738 CA GLY A 242 52.383 18.324 66.438 1.00 72.38 C
-ATOM 1742 CA GLU A 243 48.826 18.169 65.110 1.00 69.71 C
-ATOM 1751 CA ARG A 244 48.674 15.776 62.148 1.00 67.21 C
-ATOM 1762 CA MET A 245 48.712 17.796 58.933 1.00 64.20 C
-ATOM 1770 CA TYR A 246 45.246 17.082 57.556 1.00 60.65 C
-ATOM 1782 CA ILE A 247 43.617 18.437 54.409 1.00 62.98 C
-ATOM 1790 CA GLN A 248 42.035 21.001 56.761 1.00 64.64 C
-ATOM 1799 CA THR A 249 45.057 21.461 59.009 1.00 63.37 C
-ATOM 1806 CA ARG A 250 46.891 22.664 55.903 1.00 62.47 C
-ATOM 1817 CA MET A 251 44.123 25.201 55.251 1.00 63.35 C
-ATOM 1825 CA ALA A 252 44.571 26.305 58.854 1.00 65.73 C
-ATOM 1830 CA GLU A 253 47.973 27.809 58.076 1.00 65.97 C
-ATOM 1839 CA TYR A 254 46.267 30.063 55.517 1.00 65.83 C
-ATOM 1851 CA LYS A 255 42.991 30.559 57.379 1.00 70.30 C
-ATOM 1860 CA GLU A 256 43.578 34.326 57.320 1.00 73.73 C
-ATOM 1869 CA GLU A 257 44.189 34.738 53.593 1.00 71.52 C
-ATOM 1878 CA LEU A 258 41.459 32.202 52.893 1.00 73.38 C
-ATOM 1886 CA TRP A 259 38.790 34.074 54.853 1.00 76.72 C
-ATOM 1900 CA GLU A 260 39.721 37.275 53.006 1.00 78.61 C
-ATOM 1909 CA LEU A 261 38.580 35.553 49.815 1.00 75.71 C
-ATOM 1917 CA LEU A 262 35.391 33.881 51.047 1.00 73.74 C
-ATOM 1925 CA LYS A 263 33.562 37.165 50.535 1.00 73.64 C
-ATOM 1934 CA LYS A 264 34.299 38.143 46.954 1.00 72.48 C
-ATOM 1943 CA ASP A 265 31.954 37.554 43.993 1.00 69.65 C
-ATOM 1951 CA ASN A 266 34.660 35.649 42.106 1.00 65.06 C
-ATOM 1959 CA THR A 267 35.835 33.117 44.683 1.00 58.24 C
-ATOM 1966 CA TYR A 268 34.459 29.646 43.909 1.00 51.04 C
-ATOM 1978 CA VAL A 269 35.192 26.827 46.382 1.00 44.95 C
-ATOM 1985 CA TYR A 270 35.012 23.150 45.368 1.00 44.96 C
-ATOM 1997 CA MET A 271 35.162 20.122 47.656 1.00 41.72 C
-ATOM 2005 CA CYS A 272 35.314 16.468 46.632 1.00 37.19 C
-ATOM 2011 CA GLY A 273 36.343 13.080 47.951 1.00 37.65 C
-ATOM 2015 CA LEU A 274 36.040 10.886 51.020 1.00 39.39 C
-ATOM 2023 CA LYS A 275 33.076 12.283 52.955 1.00 44.86 C
-ATOM 2032 CA GLY A 276 34.322 13.183 56.400 1.00 49.16 C
-ATOM 2036 CA MET A 277 36.932 15.608 55.168 1.00 53.30 C
-ATOM 2044 CA GLU A 278 33.917 17.921 55.165 1.00 56.74 C
-ATOM 2053 CA LYS A 279 33.531 18.089 58.947 1.00 59.30 C
-ATOM 2062 CA GLY A 280 36.982 19.413 59.776 1.00 58.94 C
-ATOM 2066 CA ILE A 281 36.705 22.048 57.063 1.00 61.43 C
-ATOM 2074 CA ASP A 282 33.453 23.402 58.515 1.00 67.06 C
-ATOM 2082 CA ASP A 283 35.050 23.189 61.972 1.00 74.12 C
-ATOM 2090 CA ILE A 284 37.991 25.422 61.040 1.00 78.49 C
-ATOM 2098 CA MET A 285 35.456 27.566 59.201 1.00 82.25 C
-ATOM 2106 CA VAL A 286 32.941 27.959 62.027 1.00 83.44 C
-ATOM 2113 CA SER A 287 35.610 29.113 64.469 1.00 83.43 C
-ATOM 2119 CA LEU A 288 36.927 31.601 61.887 1.00 85.53 C
-ATOM 2127 CA ALA A 289 33.506 33.025 60.970 1.00 86.85 C
-ATOM 2132 CA GLU A 290 31.841 32.696 64.387 1.00 89.26 C
-ATOM 2141 CA LYS A 291 34.438 35.312 65.347 1.00 88.73 C
-ATOM 2150 CA ASP A 292 33.635 37.891 62.652 1.00 88.03 C
-ATOM 2158 CA GLY A 293 30.219 37.450 61.081 1.00 87.88 C
-ATOM 2162 CA ILE A 294 27.319 35.051 61.511 1.00 84.61 C
-ATOM 2170 CA ASP A 295 27.665 31.329 62.188 1.00 82.45 C
-ATOM 2178 CA TRP A 296 29.539 29.627 59.355 1.00 80.12 C
-ATOM 2192 CA PHE A 297 26.527 27.452 58.512 1.00 78.99 C
-ATOM 2203 CA ASP A 298 24.167 30.241 57.486 1.00 76.37 C
-ATOM 2211 CA TYR A 299 27.074 31.748 55.561 1.00 74.07 C
-ATOM 2223 CA LYS A 300 27.679 28.620 53.473 1.00 74.31 C
-ATOM 2232 CA LYS A 301 24.059 29.146 52.464 1.00 75.97 C
-ATOM 2241 CA GLN A 302 24.921 32.563 51.018 1.00 75.38 C
-ATOM 2250 CA LEU A 303 27.896 31.099 49.155 1.00 72.10 C
-ATOM 2258 CA LYS A 304 25.917 28.207 47.690 1.00 72.08 C
-ATOM 2267 CA ARG A 305 23.595 31.021 46.594 1.00 74.82 C
-ATOM 2278 CA GLY A 306 26.071 32.136 43.958 1.00 71.84 C
-ATOM 2282 CA ASP A 307 27.505 28.682 43.220 1.00 67.23 C
-ATOM 2290 CA GLN A 308 30.620 29.291 45.346 1.00 60.18 C
-ATOM 2299 CA TRP A 309 30.585 26.177 47.537 1.00 52.25 C
-ATOM 2313 CA ASN A 310 29.894 22.997 45.597 1.00 45.03 C
-ATOM 2321 CA VAL A 311 30.327 19.716 47.403 1.00 39.13 C
-ATOM 2328 CA GLU A 312 30.507 16.190 46.110 1.00 35.17 C
-ATOM 2337 CA VAL A 313 31.761 13.957 48.861 1.00 30.12 C
-ATOM 2344 CA TYR A 314 31.112 10.230 49.021 1.00 28.23 C
-ATOM 2358 CA ALA B 1 2.311 24.702 44.475 1.00 74.17 C
-ATOM 2363 CA THR B 2 3.590 24.207 48.055 1.00 74.76 C
-ATOM 2370 CA TYR B 3 3.069 20.876 49.837 1.00 73.52 C
-ATOM 2382 CA ASN B 4 3.748 19.874 53.435 1.00 75.75 C
-ATOM 2390 CA VAL B 5 6.618 17.399 53.868 1.00 75.95 C
-ATOM 2397 CA LYS B 6 7.769 15.523 56.983 1.00 77.70 C
-ATOM 2406 CA LEU B 7 11.351 14.325 57.458 1.00 78.91 C
-ATOM 2414 CA ILE B 8 11.807 11.511 59.985 1.00 81.00 C
-ATOM 2422 CA THR B 9 15.560 12.046 60.247 1.00 87.49 C
-ATOM 2429 CA PRO B 10 17.662 9.793 62.539 1.00 92.94 C
-ATOM 2436 CA GLU B 11 18.161 13.147 64.282 1.00 96.61 C
-ATOM 2445 CA GLY B 12 14.579 14.154 65.041 1.00 97.52 C
-ATOM 2449 CA GLU B 13 11.602 14.823 62.748 1.00 96.90 C
-ATOM 2458 CA VAL B 14 11.547 17.892 60.480 1.00 96.63 C
-ATOM 2465 CA GLU B 15 8.340 19.701 59.440 1.00 94.86 C
-ATOM 2474 CA LEU B 16 9.471 21.479 56.254 1.00 91.55 C
-ATOM 2482 CA GLN B 17 7.281 23.141 53.598 1.00 89.75 C
-ATOM 2491 CA VAL B 18 8.485 22.069 50.145 1.00 87.92 C
-ATOM 2498 CA PRO B 19 6.906 23.558 46.964 1.00 86.35 C
-ATOM 2505 CA ASP B 20 5.990 21.744 43.717 1.00 86.29 C
-ATOM 2513 CA ASP B 21 8.578 22.751 41.083 1.00 83.78 C
-ATOM 2521 CA VAL B 22 11.385 22.401 43.639 1.00 80.98 C
-ATOM 2528 CA TYR B 23 13.439 19.280 44.481 1.00 77.04 C
-ATOM 2540 CA ILE B 24 13.212 18.196 48.120 1.00 76.45 C
-ATOM 2548 CA LEU B 25 16.959 18.133 48.851 1.00 75.15 C
-ATOM 2556 CA ASP B 26 17.154 21.745 47.689 1.00 75.80 C
-ATOM 2564 CA GLN B 27 14.616 22.906 50.280 1.00 76.31 C
-ATOM 2573 CA ALA B 28 16.562 20.957 52.914 1.00 78.86 C
-ATOM 2578 CA GLU B 29 19.698 23.011 52.198 1.00 81.51 C
-ATOM 2587 CA GLU B 30 17.491 26.106 52.510 1.00 83.25 C
-ATOM 2596 CA ASP B 31 15.857 25.933 55.935 1.00 81.92 C
-ATOM 2604 CA GLY B 32 19.280 24.859 57.151 1.00 79.08 C
-ATOM 2608 CA ILE B 33 18.621 21.130 57.157 1.00 76.93 C
-ATOM 2616 CA ASP B 34 21.528 18.731 56.618 1.00 73.53 C
-ATOM 2624 CA LEU B 35 20.738 15.738 54.421 1.00 67.74 C
-ATOM 2632 CA PRO B 36 23.138 13.391 52.547 1.00 65.90 C
-ATOM 2639 CA TYR B 37 23.916 14.226 48.912 1.00 64.85 C
-ATOM 2651 CA SER B 38 26.659 13.373 46.412 1.00 62.58 C
-ATOM 2657 CA CYS B 39 26.193 13.603 42.652 1.00 60.99 C
-ATOM 2663 CA ARG B 40 22.908 15.441 43.251 1.00 58.35 C
-ATOM 2674 CA ALA B 41 21.699 14.108 39.886 1.00 56.38 C
-ATOM 2679 CA GLY B 42 19.886 10.955 40.991 1.00 56.66 C
-ATOM 2683 CA SER B 43 22.465 8.336 40.010 1.00 58.55 C
-ATOM 2689 CA CYS B 44 23.548 7.052 43.447 1.00 56.27 C
-ATOM 2695 CA SER B 45 22.057 5.987 46.791 1.00 58.20 C
-ATOM 2701 CA SER B 46 23.574 8.773 48.890 1.00 59.13 C
-ATOM 2707 CA CYS B 47 20.220 10.475 49.517 1.00 65.64 C
-ATOM 2713 CA ALA B 48 17.911 7.436 49.610 1.00 69.71 C
-ATOM 2718 CA GLY B 49 14.733 7.635 51.681 1.00 73.09 C
-ATOM 2722 CA LYS B 50 11.712 5.340 52.183 1.00 73.77 C
-ATOM 2731 CA VAL B 51 8.551 7.412 51.568 1.00 76.51 C
-ATOM 2738 CA VAL B 52 5.237 7.081 53.429 1.00 78.85 C
-ATOM 2745 CA SER B 53 2.180 9.376 53.647 1.00 79.57 C
-ATOM 2751 CA GLY B 54 2.118 10.991 50.218 1.00 76.32 C
-ATOM 2755 CA SER B 55 3.577 10.944 46.726 1.00 76.31 C
-ATOM 2761 CA VAL B 56 6.436 12.592 44.828 1.00 77.50 C
-ATOM 2768 CA ASP B 57 7.691 12.960 41.243 1.00 76.83 C
-ATOM 2776 CA GLN B 58 11.150 11.483 40.555 1.00 76.66 C
-ATOM 2785 CA SER B 59 10.976 10.827 36.792 1.00 80.19 C
-ATOM 2791 CA ASP B 60 14.688 11.644 36.510 1.00 83.51 C
-ATOM 2799 CA GLN B 61 15.175 8.137 37.916 1.00 85.74 C
-ATOM 2808 CA SER B 62 18.644 7.080 36.699 1.00 85.85 C
-ATOM 2814 CA TYR B 63 19.324 5.049 39.852 1.00 84.49 C
-ATOM 2826 CA LEU B 64 15.683 4.296 40.629 1.00 89.06 C
-ATOM 2834 CA ASP B 65 15.356 0.604 39.742 1.00 92.21 C
-ATOM 2842 CA ASP B 66 12.421 -1.791 39.331 1.00 92.35 C
-ATOM 2850 CA GLY B 67 10.747 -2.542 42.659 1.00 89.07 C
-ATOM 2854 CA GLN B 68 12.336 0.632 44.010 1.00 88.41 C
-ATOM 2863 CA ILE B 69 9.483 2.828 42.742 1.00 86.11 C
-ATOM 2871 CA ALA B 70 7.060 0.441 44.446 1.00 81.10 C
-ATOM 2876 CA ASP B 71 8.985 -0.310 47.648 1.00 76.82 C
-ATOM 2884 CA GLY B 72 8.653 3.423 48.186 1.00 73.00 C
-ATOM 2888 CA TRP B 73 12.342 4.386 48.095 1.00 67.93 C
-ATOM 2902 CA VAL B 74 13.052 8.007 47.136 1.00 63.84 C
-ATOM 2909 CA LEU B 75 16.093 9.940 45.892 1.00 58.37 C
-ATOM 2917 CA THR B 76 15.524 13.198 47.826 1.00 55.82 C
-ATOM 2924 CA CYS B 77 17.941 15.109 45.556 1.00 58.23 C
-ATOM 2930 CA HIS B 78 15.777 14.389 42.513 1.00 64.55 C
-ATOM 2940 CA ALA B 79 12.108 14.429 43.512 1.00 68.40 C
-ATOM 2945 CA TYR B 80 9.442 17.152 43.581 1.00 69.69 C
-ATOM 2957 CA PRO B 81 6.414 16.584 45.842 1.00 71.39 C
-ATOM 2964 CA THR B 82 3.015 16.014 44.179 1.00 73.67 C
-ATOM 2971 CA SER B 83 1.278 15.771 47.557 1.00 76.90 C
-ATOM 2977 CA ASP B 84 1.940 16.119 51.289 1.00 75.20 C
-ATOM 2985 CA VAL B 85 4.840 13.765 52.050 1.00 71.37 C
-ATOM 2992 CA VAL B 86 6.363 11.824 54.956 1.00 70.12 C
-ATOM 2999 CA ILE B 87 9.770 10.300 54.188 1.00 74.18 C
-ATOM 3007 CA GLU B 88 12.211 8.403 56.410 1.00 78.53 C
-ATOM 3012 CA THR B 89 15.541 9.964 55.407 1.00 79.79 C
-ATOM 3019 CA HIS B 90 19.062 8.538 55.881 1.00 79.40 C
-ATOM 3029 CA LYS B 91 17.584 5.099 55.099 1.00 84.52 C
-ATOM 3038 CA GLU B 92 20.016 2.596 53.549 1.00 91.64 C
-ATOM 3047 CA GLU B 93 20.192 -0.858 51.981 1.00 98.97 C
-ATOM 3056 CA GLU B 94 23.321 -2.924 51.298 1.00106.32 C
-ATOM 3065 CA LEU B 95 22.104 -6.552 51.453 1.00111.32 C
-ATOM 3073 CA THR B 96 18.778 -8.417 51.866 1.00116.01 C
-ATOM 3080 CA GLY B 97 18.877 -11.302 49.394 1.00116.63 C
-ATOM 3084 CA ALA B 98 22.056 -9.833 47.910 1.00116.02 C
-ATOM 3091 CA GLU C 19 26.080 -2.480 15.294 1.00 73.96 C
-ATOM 3100 CA SER C 20 23.405 0.198 14.956 1.00 67.27 C
-ATOM 3106 CA LYS C 21 22.937 3.927 15.380 1.00 59.27 C
-ATOM 3115 CA LYS C 22 19.198 3.481 15.874 1.00 58.42 C
-ATOM 3124 CA GLN C 23 17.251 3.141 19.137 1.00 59.89 C
-ATOM 3133 CA GLU C 24 17.931 -0.276 20.610 1.00 62.66 C
-ATOM 3142 CA GLU C 25 16.850 -0.453 24.226 1.00 64.27 C
-ATOM 3151 CA GLY C 26 13.211 -0.817 25.116 1.00 61.78 C
-ATOM 3155 CA VAL C 27 12.703 -2.073 21.582 1.00 58.37 C
-ATOM 3162 CA VAL C 28 10.779 -5.347 21.485 1.00 54.17 C
-ATOM 3169 CA THR C 29 9.481 -7.339 18.549 1.00 52.79 C
-ATOM 3176 CA ASN C 30 6.670 -9.775 17.786 1.00 51.30 C
-ATOM 3184 CA LEU C 31 4.863 -9.997 21.112 1.00 51.05 C
-ATOM 3192 CA TYR C 32 1.766 -11.297 19.327 1.00 50.51 C
-ATOM 3204 CA LYS C 33 1.373 -13.532 16.266 1.00 49.49 C
-ATOM 3213 CA PRO C 34 -1.609 -14.150 13.925 1.00 50.98 C
-ATOM 3220 CA LYS C 35 -2.450 -17.248 16.011 1.00 55.46 C
-ATOM 3229 CA GLU C 36 -2.977 -15.400 19.288 1.00 53.79 C
-ATOM 3238 CA PRO C 37 -3.251 -11.638 18.607 1.00 49.32 C
-ATOM 3245 CA TYR C 38 -3.674 -9.050 21.318 1.00 46.76 C
-ATOM 3257 CA VAL C 39 -7.276 -7.947 21.418 1.00 43.68 C
-ATOM 3264 CA GLY C 40 -7.415 -4.194 21.922 1.00 41.62 C
-ATOM 3268 CA ARG C 41 -10.273 -1.719 21.954 1.00 40.07 C
-ATOM 3279 CA CYS C 42 -11.026 1.064 19.477 1.00 36.37 C
-ATOM 3285 CA LEU C 43 -11.330 4.206 21.583 1.00 31.09 C
-ATOM 3293 CA LEU C 44 -11.337 6.671 18.673 1.00 28.46 C
-ATOM 3301 CA ASN C 45 -11.792 6.653 14.923 1.00 26.74 C
-ATOM 3309 CA THR C 46 -11.954 9.920 13.013 1.00 25.29 C
-ATOM 3316 CA LYS C 47 -11.667 10.775 9.352 1.00 21.50 C
-ATOM 3325 CA ILE C 48 -8.895 13.355 9.121 1.00 19.33 C
-ATOM 3333 CA THR C 49 -9.125 14.281 5.442 1.00 20.38 C
-ATOM 3340 CA GLY C 50 -11.630 16.676 3.855 1.00 20.12 C
-ATOM 3344 CA ASP C 51 -14.895 15.345 2.412 1.00 21.75 C
-ATOM 3352 CA ASP C 52 -13.889 16.693 -0.999 1.00 21.19 C
-ATOM 3360 CA ALA C 53 -10.651 14.683 -0.749 1.00 21.06 C
-ATOM 3365 CA PRO C 54 -10.036 11.974 -3.413 1.00 21.39 C
-ATOM 3372 CA GLY C 55 -9.982 9.067 -0.977 1.00 24.42 C
-ATOM 3376 CA GLU C 56 -10.374 9.298 2.857 1.00 22.08 C
-ATOM 3385 CA THR C 57 -7.723 8.611 5.517 1.00 20.31 C
-ATOM 3392 CA TRP C 58 -8.541 7.849 9.162 1.00 19.33 C
-ATOM 3406 CA HIS C 59 -6.758 8.520 12.438 1.00 22.68 C
-ATOM 3416 CA MET C 60 -7.645 5.951 15.108 1.00 27.16 C
-ATOM 3424 CA VAL C 61 -6.672 5.224 18.723 1.00 29.32 C
-ATOM 3431 CA PHE C 62 -6.669 1.704 20.220 1.00 34.23 C
-ATOM 3442 CA SER C 63 -6.102 0.643 23.847 1.00 37.05 C
-ATOM 3448 CA THR C 64 -3.096 -1.517 24.798 1.00 41.86 C
-ATOM 3455 CA GLU C 65 -3.169 -1.652 28.621 1.00 48.33 C
-ATOM 3464 CA GLY C 66 0.537 -0.885 28.318 1.00 52.45 C
-ATOM 3468 CA LYS C 67 0.955 -4.385 26.891 1.00 54.14 C
-ATOM 3477 CA ILE C 68 2.429 -3.211 23.570 1.00 51.52 C
-ATOM 3485 CA PRO C 69 5.602 -1.279 24.487 1.00 49.85 C
-ATOM 3492 CA TYR C 70 6.523 -0.180 20.967 1.00 44.48 C
-ATOM 3504 CA ARG C 71 9.185 2.353 19.993 1.00 40.96 C
-ATOM 3515 CA GLU C 72 8.727 5.317 17.688 1.00 33.49 C
-ATOM 3524 CA GLY C 73 8.913 3.876 14.164 1.00 30.16 C
-ATOM 3528 CA GLN C 74 7.423 0.399 14.427 1.00 31.26 C
-ATOM 3537 CA SER C 75 4.187 -0.913 12.966 1.00 33.65 C
-ATOM 3543 CA ILE C 76 1.454 -3.212 14.278 1.00 33.75 C
-ATOM 3551 CA GLY C 77 -0.295 -5.923 12.356 1.00 34.32 C
-ATOM 3555 CA VAL C 78 -4.060 -6.111 12.164 1.00 36.67 C
-ATOM 3562 CA ILE C 79 -6.137 -9.230 11.507 1.00 41.91 C
-ATOM 3570 CA ALA C 80 -9.427 -8.086 10.024 1.00 44.06 C
-ATOM 3575 CA ASP C 81 -12.530 -9.927 11.224 1.00 47.03 C
-ATOM 3583 CA GLY C 82 -13.972 -12.487 8.829 1.00 53.52 C
-ATOM 3587 CA VAL C 83 -12.521 -14.951 6.324 1.00 62.57 C
-ATOM 3594 CA ASP C 84 -11.856 -14.200 2.630 1.00 71.97 C
-ATOM 3602 CA LYS C 85 -12.935 -17.403 0.861 1.00 76.86 C
-ATOM 3611 CA ASN C 86 -13.690 -18.960 4.253 1.00 76.52 C
-ATOM 3619 CA GLY C 87 -10.006 -19.837 4.066 1.00 76.22 C
-ATOM 3623 CA LYS C 88 -8.802 -19.138 7.616 1.00 71.60 C
-ATOM 3632 CA PRO C 89 -8.651 -15.577 8.944 1.00 64.14 C
-ATOM 3639 CA HIS C 90 -7.547 -12.649 6.805 1.00 52.35 C
-ATOM 3649 CA LYS C 91 -3.753 -12.529 6.474 1.00 46.81 C
-ATOM 3658 CA VAL C 92 -2.180 -9.868 8.686 1.00 43.48 C
-ATOM 3665 CA ARG C 93 -1.491 -6.414 7.232 1.00 36.99 C
-ATOM 3676 CA LEU C 94 0.983 -3.882 8.601 1.00 32.95 C
-ATOM 3684 CA TYR C 95 0.340 -0.239 9.510 1.00 24.84 C
-ATOM 3696 CA SER C 96 3.003 2.101 10.803 1.00 23.32 C
-ATOM 3702 CA ILE C 97 2.244 3.502 14.236 1.00 24.12 C
-ATOM 3710 CA ALA C 98 1.243 7.179 13.932 1.00 22.32 C
-ATOM 3715 CA SER C 99 1.572 7.636 17.676 1.00 25.69 C
-ATOM 3721 CA SER C 100 4.752 7.924 19.726 1.00 28.83 C
-ATOM 3727 CA ALA C 101 5.741 5.521 22.508 1.00 35.61 C
-ATOM 3732 CA ILE C 102 3.906 7.635 25.079 1.00 38.39 C
-ATOM 3740 CA GLY C 103 0.899 7.826 22.742 1.00 31.93 C
-ATOM 3744 CA ASP C 104 -1.803 10.384 21.986 1.00 28.77 C
-ATOM 3752 CA PHE C 105 -3.050 10.293 25.607 1.00 37.05 C
-ATOM 3763 CA GLY C 106 0.503 10.389 26.967 1.00 39.36 C
-ATOM 3767 CA ASP C 107 -0.221 7.437 29.266 1.00 41.44 C
-ATOM 3775 CA SER C 108 1.566 4.766 27.217 1.00 42.18 C
-ATOM 3781 CA LYS C 109 -1.747 2.877 27.156 1.00 42.45 C
-ATOM 3790 CA THR C 110 -2.698 3.586 23.515 1.00 38.10 C
-ATOM 3797 CA VAL C 111 -1.603 2.971 19.906 1.00 32.79 C
-ATOM 3804 CA SER C 112 -2.671 5.020 16.872 1.00 29.60 C
-ATOM 3810 CA LEU C 113 -2.713 4.324 13.126 1.00 25.68 C
-ATOM 3818 CA CYS C 114 -3.142 6.498 9.999 1.00 24.23 C
-ATOM 3824 CA VAL C 115 -5.345 4.496 7.641 1.00 22.80 C
-ATOM 3831 CA LYS C 116 -6.221 5.196 4.015 1.00 22.11 C
-ATOM 3840 CA ARG C 117 -9.458 3.521 2.955 1.00 25.68 C
-ATOM 3851 CA LEU C 118 -8.447 1.440 -0.100 1.00 28.80 C
-ATOM 3859 CA ILE C 119 -11.140 1.661 -2.792 1.00 31.75 C
-ATOM 3867 CA TYR C 120 -10.086 0.716 -6.312 1.00 32.93 C
-ATOM 3879 CA THR C 121 -11.388 -0.733 -9.598 1.00 36.84 C
-ATOM 3886 CA ASN C 122 -10.258 -4.257 -10.546 1.00 36.90 C
-ATOM 3894 CA ASP C 123 -9.574 -5.562 -14.056 1.00 45.45 C
-ATOM 3902 CA ALA C 124 -13.196 -6.758 -14.269 1.00 44.66 C
-ATOM 3907 CA GLY C 125 -14.207 -3.102 -14.023 1.00 45.49 C
-ATOM 3911 CA GLU C 126 -16.059 -3.511 -10.722 1.00 45.54 C
-ATOM 3920 CA ILE C 127 -15.507 -1.321 -7.638 1.00 39.70 C
-ATOM 3928 CA VAL C 128 -13.846 -3.171 -4.762 1.00 38.09 C
-ATOM 3935 CA LYS C 129 -12.759 -2.512 -1.198 1.00 33.77 C
-ATOM 3944 CA GLY C 130 -9.566 -3.363 0.599 1.00 31.98 C
-ATOM 3948 CA VAL C 131 -10.443 -5.797 3.385 1.00 33.16 C
-ATOM 3955 CA CYS C 132 -8.241 -4.645 6.257 1.00 29.97 C
-ATOM 3961 CA SER C 133 -8.238 -0.898 5.607 1.00 30.67 C
-ATOM 3967 CA ASN C 134 -12.022 -0.902 5.268 1.00 30.35 C
-ATOM 3975 CA PHE C 135 -12.375 -2.946 8.424 1.00 29.86 C
-ATOM 3986 CA LEU C 136 -10.223 -0.334 10.195 1.00 29.42 C
-ATOM 3994 CA CYS C 137 -11.779 2.834 8.813 1.00 32.27 C
-ATOM 4000 CA ASP C 138 -15.116 1.280 9.724 1.00 34.29 C
-ATOM 4008 CA LEU C 139 -14.287 0.699 13.399 1.00 37.51 C
-ATOM 4016 CA GLN C 140 -16.635 2.170 16.028 1.00 43.76 C
-ATOM 4025 CA PRO C 141 -15.630 3.032 19.581 1.00 42.77 C
-ATOM 4032 CA GLY C 142 -16.082 -0.210 21.478 1.00 42.83 C
-ATOM 4036 CA ASP C 143 -15.117 -2.625 18.696 1.00 40.91 C
-ATOM 4044 CA ASN C 144 -12.182 -4.947 19.288 1.00 45.66 C
-ATOM 4052 CA VAL C 145 -9.056 -5.146 17.145 1.00 46.95 C
-ATOM 4059 CA GLN C 146 -6.707 -8.107 16.606 1.00 48.69 C
-ATOM 4068 CA ILE C 147 -3.249 -6.538 17.123 1.00 46.84 C
-ATOM 4076 CA THR C 148 -0.010 -8.392 16.264 1.00 46.26 C
-ATOM 4083 CA GLY C 149 3.543 -7.117 16.634 1.00 45.60 C
-ATOM 4087 CA PRO C 150 5.248 -4.818 17.394 1.00 44.97 C
-ATOM 4094 CA VAL C 151 7.423 -5.293 14.321 1.00 44.50 C
-ATOM 4101 CA GLY C 152 10.289 -3.716 12.438 1.00 45.33 C
-ATOM 4105 CA LYS C 153 13.599 -2.161 13.435 1.00 48.64 C
-ATOM 4114 CA GLU C 154 14.166 -0.437 10.074 1.00 48.20 C
-ATOM 4123 CA MET C 155 12.437 2.888 10.737 1.00 41.77 C
-ATOM 4131 CA LEU C 156 13.839 3.081 14.267 1.00 38.27 C
-ATOM 4139 CA MET C 157 15.076 6.540 15.308 1.00 34.29 C
-ATOM 4147 CA PRO C 158 18.782 7.419 15.339 1.00 34.05 C
-ATOM 4154 CA LYS C 159 20.262 7.521 18.845 1.00 35.82 C
-ATOM 4163 CA ASP C 160 22.076 10.792 18.273 1.00 35.95 C
-ATOM 4171 CA PRO C 161 19.683 13.401 19.809 1.00 35.63 C
-ATOM 4178 CA ASN C 162 21.563 15.948 17.758 1.00 33.92 C
-ATOM 4186 CA ALA C 163 21.028 14.172 14.487 1.00 30.82 C
-ATOM 4191 CA THR C 164 19.693 15.722 11.305 1.00 25.18 C
-ATOM 4198 CA ILE C 165 16.617 13.601 10.636 1.00 19.91 C
-ATOM 4206 CA ILE C 166 15.351 13.978 7.060 1.00 13.76 C
-ATOM 4214 CA MET C 167 11.843 12.550 6.703 1.00 14.98 C
-ATOM 4222 CA LEU C 168 10.385 11.831 3.251 1.00 16.64 C
-ATOM 4230 CA ALA C 169 6.747 10.808 3.007 1.00 15.85 C
-ATOM 4235 CA THR C 170 3.765 10.346 0.737 1.00 14.23 C
-ATOM 4242 CA GLY C 171 0.255 9.724 2.035 1.00 13.78 C
-ATOM 4246 CA THR C 172 -0.103 7.560 5.139 1.00 17.62 C
-ATOM 4253 CA GLY C 173 3.646 7.343 4.821 1.00 17.20 C
-ATOM 4257 CA ILE C 174 3.469 10.213 7.270 1.00 15.91 C
-ATOM 4265 CA ALA C 175 2.586 7.783 10.110 1.00 15.63 C
-ATOM 4270 CA PRO C 176 6.023 6.933 11.582 1.00 17.04 C
-ATOM 4277 CA PHE C 177 7.215 10.514 11.327 1.00 18.21 C
-ATOM 4288 CA ARG C 178 4.268 11.745 13.359 1.00 22.35 C
-ATOM 4299 CA SER C 179 5.563 9.289 15.983 1.00 25.22 C
-ATOM 4305 CA PHE C 180 9.139 10.593 15.614 1.00 25.98 C
-ATOM 4316 CA LEU C 181 7.925 14.180 15.767 1.00 29.12 C
-ATOM 4324 CA TRP C 182 5.625 13.641 18.714 1.00 31.35 C
-ATOM 4338 CA LYS C 183 8.488 12.385 20.871 1.00 30.92 C
-ATOM 4347 CA MET C 184 10.841 15.050 19.503 1.00 24.85 C
-ATOM 4355 CA PHE C 185 8.741 18.202 20.114 1.00 22.97 C
-ATOM 4366 CA PHE C 186 5.604 17.337 22.076 1.00 27.77 C
-ATOM 4377 CA GLU C 187 7.117 15.432 25.009 1.00 37.71 C
-ATOM 4386 CA LYS C 188 9.542 15.977 27.878 1.00 53.59 C
-ATOM 4395 CA HIS C 189 12.355 13.416 28.180 1.00 63.67 C
-ATOM 4405 CA ASP C 190 15.318 13.181 30.569 1.00 66.93 C
-ATOM 4413 CA ASP C 191 17.480 11.106 28.238 1.00 59.79 C
-ATOM 4421 CA TYR C 192 16.190 12.725 25.047 1.00 51.96 C
-ATOM 4433 CA LYS C 193 16.700 16.406 24.324 1.00 47.01 C
-ATOM 4442 CA PHE C 194 16.580 16.471 20.530 1.00 39.85 C
-ATOM 4453 CA ASN C 195 18.572 19.494 19.409 1.00 37.52 C
-ATOM 4461 CA GLY C 196 19.361 18.548 15.845 1.00 32.08 C
-ATOM 4465 CA LEU C 197 17.310 19.266 12.766 1.00 28.26 C
-ATOM 4473 CA GLY C 198 14.051 17.526 11.928 1.00 25.05 C
-ATOM 4477 CA TRP C 199 13.211 18.137 8.269 1.00 19.81 C
-ATOM 4491 CA LEU C 200 9.908 16.742 7.059 1.00 13.86 C
-ATOM 4499 CA PHE C 201 8.855 16.521 3.429 1.00 14.83 C
-ATOM 4510 CA LEU C 202 5.288 15.361 2.717 1.00 16.12 C
-ATOM 4518 CA GLY C 203 3.701 14.731 -0.681 1.00 13.79 C
-ATOM 4522 CA VAL C 204 -0.051 14.414 -1.182 1.00 11.75 C
-ATOM 4529 CA PRO C 205 -2.113 15.264 -4.308 1.00 14.66 C
-ATOM 4536 CA THR C 206 -4.553 17.737 -2.778 1.00 16.37 C
-ATOM 4543 CA SER C 207 -4.756 20.169 0.120 1.00 18.01 C
-ATOM 4549 CA SER C 208 -7.780 18.225 1.280 1.00 17.59 C
-ATOM 4555 CA SER C 209 -5.452 15.198 1.550 1.00 16.19 C
-ATOM 4561 CA LEU C 210 -2.972 16.940 3.860 1.00 14.22 C
-ATOM 4569 CA LEU C 211 -2.255 14.980 7.059 1.00 14.43 C
-ATOM 4577 CA TYR C 212 -1.624 16.449 10.549 1.00 18.94 C
-ATOM 4589 CA LYS C 213 -0.818 19.896 9.150 1.00 22.61 C
-ATOM 4598 CA GLU C 214 -2.039 21.572 12.352 1.00 25.73 C
-ATOM 4607 CA GLU C 215 0.152 19.413 14.514 1.00 19.23 C
-ATOM 4616 CA PHE C 216 3.216 20.178 12.439 1.00 17.80 C
-ATOM 4627 CA GLY C 217 2.478 23.890 12.512 1.00 19.90 C
-ATOM 4631 CA LYS C 218 2.578 24.001 16.294 1.00 25.54 C
-ATOM 4640 CA MET C 219 5.810 22.021 16.188 1.00 26.79 C
-ATOM 4648 CA LYS C 220 7.224 24.606 13.819 1.00 31.85 C
-ATOM 4657 CA GLU C 221 6.071 27.341 16.219 1.00 38.62 C
-ATOM 4666 CA ARG C 222 7.760 25.760 19.233 1.00 39.10 C
-ATOM 4677 CA ALA C 223 11.124 24.971 17.668 1.00 35.43 C
-ATOM 4682 CA PRO C 224 11.696 27.100 14.528 1.00 32.99 C
-ATOM 4689 CA GLU C 225 15.425 26.331 14.360 1.00 33.87 C
-ATOM 4698 CA ASN C 226 15.038 22.591 14.986 1.00 30.46 C
-ATOM 4706 CA PHE C 227 12.088 21.755 12.732 1.00 24.98 C
-ATOM 4717 CA ARG C 228 11.351 22.384 9.075 1.00 19.87 C
-ATOM 4728 CA VAL C 229 8.435 21.010 7.118 1.00 14.21 C
-ATOM 4735 CA ASP C 230 7.739 21.452 3.398 1.00 12.26 C
-ATOM 4743 CA TYR C 231 4.627 20.147 1.722 1.00 14.42 C
-ATOM 4755 CA ALA C 232 4.334 19.003 -1.872 1.00 9.99 C
-ATOM 4760 CA VAL C 233 0.778 19.232 -3.168 1.00 10.49 C
-ATOM 4767 CA SER C 234 1.043 17.769 -6.694 1.00 19.00 C
-ATOM 4773 CA ARG C 235 -2.240 19.042 -8.206 1.00 23.13 C
-ATOM 4784 CA GLU C 236 -2.069 22.459 -6.578 1.00 17.58 C
-ATOM 4793 CA GLN C 237 1.546 23.511 -6.623 1.00 15.89 C
-ATOM 4802 CA THR C 238 4.202 24.018 -9.275 1.00 17.86 C
-ATOM 4809 CA ASN C 239 7.922 24.800 -9.182 1.00 15.15 C
-ATOM 4817 CA ALA C 240 9.558 27.791 -10.892 1.00 21.51 C
-ATOM 4822 CA ALA C 241 9.475 25.887 -14.174 1.00 24.05 C
-ATOM 4827 CA GLY C 242 5.741 25.110 -13.938 1.00 26.25 C
-ATOM 4831 CA GLU C 243 5.999 21.359 -13.153 1.00 25.92 C
-ATOM 4840 CA ARG C 244 3.679 19.536 -10.704 1.00 24.04 C
-ATOM 4851 CA MET C 245 5.076 19.643 -7.174 1.00 18.58 C
-ATOM 4859 CA TYR C 246 5.784 16.047 -6.100 1.00 14.16 C
-ATOM 4871 CA ILE C 247 7.910 15.343 -3.034 1.00 16.78 C
-ATOM 4879 CA GLN C 248 11.089 15.070 -5.120 1.00 18.72 C
-ATOM 4888 CA THR C 249 10.168 18.255 -6.921 1.00 20.93 C
-ATOM 4895 CA ARG C 250 9.962 20.031 -3.567 1.00 19.25 C
-ATOM 4906 CA MET C 251 13.275 18.471 -2.561 1.00 19.40 C
-ATOM 4914 CA ALA C 252 14.910 19.812 -5.760 1.00 20.48 C
-ATOM 4919 CA GLU C 253 14.456 23.418 -4.569 1.00 18.19 C
-ATOM 4928 CA TYR C 254 16.804 22.515 -1.673 1.00 17.80 C
-ATOM 4940 CA LYS C 255 19.038 20.415 -3.902 1.00 20.66 C
-ATOM 4949 CA GLU C 256 22.452 21.603 -2.682 1.00 16.05 C
-ATOM 4958 CA GLU C 257 21.544 21.914 0.993 1.00 15.89 C
-ATOM 4967 CA LEU C 258 20.377 18.297 0.919 1.00 20.74 C
-ATOM 4975 CA TRP C 259 23.388 16.939 -0.965 1.00 23.45 C
-ATOM 4989 CA GLU C 260 25.645 18.669 1.563 1.00 24.08 C
-ATOM 4998 CA LEU C 261 23.573 17.378 4.477 1.00 24.74 C
-ATOM 5006 CA LEU C 262 24.020 13.928 2.938 1.00 26.14 C
-ATOM 5014 CA LYS C 263 27.792 14.091 3.402 1.00 25.40 C
-ATOM 5023 CA LYS C 264 27.457 14.521 7.176 1.00 31.47 C
-ATOM 5032 CA ASP C 265 27.877 11.474 9.425 1.00 35.31 C
-ATOM 5040 CA ASN C 266 24.934 12.482 11.620 1.00 29.63 C
-ATOM 5048 CA THR C 267 22.321 12.795 8.832 1.00 28.00 C
-ATOM 5055 CA TYR C 268 19.556 10.160 8.808 1.00 27.00 C
-ATOM 5067 CA VAL C 269 17.143 9.903 5.884 1.00 24.65 C
-ATOM 5074 CA TYR C 270 13.890 8.016 6.276 1.00 23.37 C
-ATOM 5086 CA MET C 271 11.373 7.327 3.518 1.00 18.93 C
-ATOM 5094 CA CYS C 272 7.834 6.074 4.043 1.00 18.24 C
-ATOM 5100 CA GLY C 273 4.784 5.874 1.826 1.00 22.39 C
-ATOM 5104 CA LEU C 274 3.837 4.483 -1.568 1.00 26.95 C
-ATOM 5112 CA LYS C 275 6.305 2.384 -3.532 1.00 32.36 C
-ATOM 5121 CA GLY C 276 7.741 4.199 -6.514 1.00 37.46 C
-ATOM 5125 CA MET C 277 7.714 7.455 -4.608 1.00 28.76 C
-ATOM 5133 CA GLU C 278 11.430 6.639 -4.425 1.00 32.22 C
-ATOM 5142 CA LYS C 279 12.017 6.321 -8.153 1.00 29.94 C
-ATOM 5151 CA GLY C 280 11.317 10.057 -8.293 1.00 24.18 C
-ATOM 5155 CA ILE C 281 13.766 10.673 -5.460 1.00 23.68 C
-ATOM 5163 CA ASP C 282 16.431 8.365 -6.934 1.00 26.58 C
-ATOM 5171 CA ASP C 283 16.211 10.530 -10.054 1.00 28.70 C
-ATOM 5179 CA ILE C 284 17.089 13.937 -8.538 1.00 27.28 C
-ATOM 5187 CA MET C 285 19.706 12.222 -6.388 1.00 27.45 C
-ATOM 5195 CA VAL C 286 21.377 10.712 -9.470 1.00 30.74 C
-ATOM 5202 CA SER C 287 21.619 14.159 -11.061 1.00 32.14 C
-ATOM 5208 CA LEU C 288 23.240 15.463 -7.873 1.00 34.20 C
-ATOM 5216 CA ALA C 289 25.801 12.653 -7.874 1.00 40.16 C
-ATOM 5221 CA GLU C 290 26.837 12.825 -11.536 1.00 41.84 C
-ATOM 5230 CA LYS C 291 27.855 16.387 -10.793 1.00 43.17 C
-ATOM 5239 CA ASP C 292 30.299 15.115 -8.139 1.00 41.84 C
-ATOM 5247 CA GLY C 293 31.237 12.232 -10.420 1.00 46.12 C
-ATOM 5251 CA ILE C 294 30.053 9.669 -7.864 1.00 45.54 C
-ATOM 5259 CA ASP C 295 27.399 6.998 -8.480 1.00 41.14 C
-ATOM 5267 CA TRP C 296 24.222 7.605 -6.479 1.00 30.67 C
-ATOM 5281 CA PHE C 297 23.381 3.910 -6.151 1.00 31.97 C
-ATOM 5292 CA ASP C 298 26.856 2.916 -4.907 1.00 38.12 C
-ATOM 5300 CA TYR C 299 26.671 5.875 -2.540 1.00 39.05 C
-ATOM 5312 CA LYS C 300 23.196 4.971 -1.294 1.00 41.63 C
-ATOM 5321 CA LYS C 301 24.542 1.489 -0.577 1.00 43.40 C
-ATOM 5330 CA GLN C 302 27.207 3.064 1.608 1.00 43.79 C
-ATOM 5339 CA LEU C 303 24.476 5.181 3.238 1.00 41.51 C
-ATOM 5347 CA LYS C 304 22.138 2.343 4.264 1.00 45.18 C
-ATOM 5356 CA ARG C 305 25.322 0.535 5.256 1.00 46.65 C
-ATOM 5367 CA GLY C 306 25.613 3.181 7.945 1.00 40.29 C
-ATOM 5371 CA ASP C 307 21.954 3.487 8.940 1.00 41.21 C
-ATOM 5379 CA GLN C 308 21.463 6.730 7.023 1.00 35.55 C
-ATOM 5388 CA TRP C 309 18.961 5.674 4.361 1.00 31.22 C
-ATOM 5402 CA ASN C 310 16.018 3.728 5.752 1.00 31.61 C
-ATOM 5410 CA VAL C 311 13.120 2.841 3.452 1.00 32.13 C
-ATOM 5417 CA GLU C 312 9.705 1.332 4.261 1.00 31.51 C
-ATOM 5426 CA VAL C 313 7.466 1.606 1.209 1.00 26.39 C
-ATOM 5433 CA TYR C 314 4.403 -0.343 0.111 1.00 25.42 C
+++ /dev/null
-# STOCKHOLM 1.0
-#=GF ID Fer2
-#=GF AC PF00111.22
-#=GF DE 2Fe-2S iron-sulfur cluster binding domain
-#=GF PI fer2;
-#=GF AU Sonnhammer ELL
-#=GF SE Prosite
-#=GF GA 20.70 15.00;
-#=GF TC 20.70 15.70;
-#=GF NC 20.60 14.90;
-#=GF BM hmmbuild HMM.ann SEED.ann
-#=GF SM hmmsearch -Z 15929002 -E 1000 --cpu 4 HMM pfamseq
-#=GF TP Domain
-#=GF WK Ferredoxin
-#=GF DR INTERPRO; IPR001041;
-#=GF DR PROSITE; PDOC00175;
-#=GF DR PROSITE; PDOC00642;
-#=GF DR SCOP; 3fxc; fa;
-#=GF DR HOMSTRAD; fer2;
-#=GF DR HOMSTRAD; Ald_Xan_dh_1;
-#=GF SQ 206
-#=GS FER_GLEJA/8-82 AC P00233.1
-#=GS FER2_RAPSA/9-84 AC P14937.1
-#=GS Q39648_CITSI/61-136 AC Q39648.1
-#=GS FER3_MAIZE/63-138 AC P27788.1
-#=GS FER6_MAIZE/66-141 AC P94044.1
-#=GS FER1_SYNP2/9-83 AC P31965.2
-#=GS FER1_EQUAR/7-81 AC P00235.1
-#=GS FER2_EQUAR/7-80 AC P00237.1
-#=GS FER2_EQUAR/7-80 DR PDB; 1WRI A; 7-80;
-#=GS FER2_PLEBO/10-85 AC P46035.2
-#=GS P95533_PSEPU/253-328 AC P95533.1
-#=GS KSHB_MYCTU/273-348 AC P96853.1
-#=GS Q44253_ACISP/251-326 AC Q44253.1
-#=GS Q59656_PLEBO/573-647 AC Q59656.1
-#=GS P71846_MYCTU/600-675 AC P71846.3
-#=GS O84985_PSEPU/271-347 AC O84985.2
-#=GS PAAE_ECOLI/266-342 AC P76081.1
-#=GS HCR_ECOLI/241-316 AC P75824.3
-#=GS O87803_PSEST/5-82 AC O87803.2
-#=GS TMOF_PSEME/4-81 AC Q03304.1
-#=GS O32476_PSESP/4-81 AC O32476.1
-#=GS Q51944_BURPI/5-82 AC Q51944.1
-#=GS Q53028_RHOCO/4-80 AC Q53028.1
-#=GS Q45344_BURPI/10-88 AC Q45344.1
-#=GS Q9ZNP1_COMTE/9-88 AC Q9ZNP1.1
-#=GS Q9Z418_PSEPU/11-90 AC Q9Z418.1
-#=GS Q9ZAN6_9BURK/12-91 AC Q9ZAN6.1
-#=GS FERN_PSEPU/7-85 AC P23263.1
-#=GS O24827_ACISP/7-85 AC O24827.1
-#=GS FERX_PSEPU/8-86 AC P23103.1
-#=GS Q52061_PSEPU/8-86 AC Q52061.1
-#=GS Q52167_PSEPU/8-86 AC Q52167.1
-#=GS O84964_9RALS/4-82 AC O84964.1
-#=GS Q9Z3W9_9SPHN/8-85 AC Q9Z3W9.1
-#=GS DMPP_PSEUF/5-82 AC P19734.3
-#=GS O84963_9RALS/4-81 AC O84963.1
-#=GS Q52574_PSESP/5-83 AC Q52574.1
-#=GS Q9ZNP2_COMTE/5-82 AC Q9ZNP2.1
-#=GS Q43983_ACICA/5-82 AC Q43983.1
-#=GS O87617_PSEAE/3-78 AC O87617.1
-#=GS O52378_9RALS/3-78 AC O52378.1
-#=GS Q51492_PSEAE/3-78 AC Q51492.1
-#=GS NDOR_PSEPU/3-78 AC Q52126.1
-#=GS Q52140_PSEPU/3-78 AC Q52140.1
-#=GS Q9Z9X8_9GAMM/242-317 AC Q9Z9X8.1
-#=GS VANB_PSEUH/234-309 AC O05617.1
-#=GS VANB_PSES9/231-306 AC P12580.1
-#=GS VANB_PSEPU/231-307 AC O54037.1
-#=GS VANB_ACIAD/234-309 AC O24840.1
-#=GS O88034_STRCO/230-305 AC O88034.1
-#=GS P94680_COMTE/234-309 AC P94680.1
-#=GS CBAB_COMTE/232-307 AC Q44257.2
-#=GS POBB_PSEPS/236-311 AC Q52186.1
-#=GS YEAX_ECOLI/237-313 AC P76254.1
-#=GS Q47914_SPHCR/241-316 AC Q47914.2
-#=GS PDR_BURCE/241-314 AC P33164.3
-#=GS PDR_BURCE/241-314 DR PDB; 2PIA A; 240-313;
-#=GS PHT2_PSEPU/243-316 AC Q05182.1
-#=GS O86347_MYCTU/231-301 AC O86347.3
-#=GS YFAE_ECOLI/4-77 AC P0ABW3.1
-#=GS Y1309_HAEIN/3-75 AC P45154.1
-#=GS O31003_VIBAN/5-73 AC O31003.1
-#=GS RFBI_SALTY/5-76 AC P26395.1
-#=GS P95461_9PSED/17-94 AC P95461.1
-#=GS O85971_SPHAR/13-90 AC O85971.1
-#=GS XYLA_PSEPU/20-97 AC P21394.1
-#=GS YCBX_ECOLI/293-362 AC P75863.1
-#=GS P96096_THIFE/9-86 AC P96096.1
-#=GS MMOC_METTR/7-81 AC Q53563.1
-#=GS O85675_ACIAD/8-85 AC O85675.1
-#=GS BENC_ACIAD/19-98 AC P07771.2
-#=GS BENC_ACIAD/19-98 DR PDB; 1KRH B; 9-88;
-#=GS BENC_ACIAD/19-98 DR PDB; 1KRH A; 9-88;
-#=GS XYLZ_PSEPU/8-86 AC P23101.1
-#=GS CBDC_BURCE/8-85 AC Q51603.1
-#=GS O66892_AQUAE/7-72 AC O66892.1
-#=GS O85226_PSEFL/27-86 AC O85226.1
-#=GS O29575_ARCFU/14-75 AC O29575.1
-#=GS O27878_METTH/21-82 AC O27878.1
-#=GS Y092_METJA/14-73 AC Q57557.1
-#=GS FER5_RHOCA/10-107 AC P37097.2
-#=GS Q44501_AZOVI/10-107 AC Q44501.1
-#=GS Q46508_DESFR/6-74 AC Q46508.1
-#=GS Q9ZBV9_STRCO/15-78 AC Q9ZBV9.1
-#=GS NUOG_MYCTU/19-82 AC P95175.2
-#=GS O87815_CUPNE/22-85 AC O87815.1
-#=GS NQO3_THET8/4-88 AC Q56223.2
-#=GS NQO3_THET8/4-88 DR PDB; 3M9S C; 4-88;
-#=GS NQO3_THET8/4-88 DR PDB; 3M9S 3; 4-88;
-#=GS P74022_SYNY3/6-69 AC P74022.1
-#=GS P94157_SYNP6/6-69 AC P94157.1
-#=GS Q44513_ANAVA/6-69 AC Q44513.1
-#=GS P77908_MOOTH/4-67 AC P77908.3
-#=GS Q9ZJW1_HELPJ/4-65 AC Q9ZJW1.1
-#=GS O05397_BACSU/11-72 AC O05397.1
-#=GS YJGC_BACSU/7-68 AC O34720.1
-#=GS NUOG_SALTI/4-72 AC P0A1Y5.2
-#=GS O66748_AQUAE/6-70 AC O66748.1
-#=GS NDUS1_DICDI/5-71 AC Q34312.1
-#=GS NQO3_PARDE/7-71 AC P29915.4
-#=GS NDUS1_NEUCR/38-101 AC P24918.2
-#=GS NUOG_RICPR/4-67 AC Q9ZCF6.1
-#=GS NDUS1_SOLTU/70-133 AC Q43644.1
-#=GS NDUS1_RECAM/4-67 AC O21241.1
-#=GS NDUS1_BOVIN/34-97 AC P15690.1
-#=GS O52683_THEMA/3-65 AC O52683.1
-#=GS Q46606_DESVU/3-71 AC Q46606.1
-#=GS HOXU_CUPNH/5-66 AC P22318.2
-#=GS P72305_RHOOP/5-66 AC P72305.1
-#=GS Q59261_CLOSA/4-67 AC Q59261.1
-#=GS Q9ZNE4_CLOPE/4-67 AC Q9ZNE4.1
-#=GS PHF1_CLOPA/4-67 AC P29166.1
-#=GS Q59262_CLOAB/4-66 AC Q59262.1
-#=GS P74801_SYNY3/5-63 AC P74801.1
-#=GS XDHE_BACSU/18-77 AC O32143.1
-#=GS HCRC_THAAR/7-66 AC O33818.1
-#=GS HCRC_THAAR/7-66 DR PDB; 1SB3 F; 7-66;
-#=GS HCRC_THAAR/7-66 DR PDB; 1RM6 C; 7-66;
-#=GS HCRC_THAAR/7-66 DR PDB; 1RM6 F; 7-66;
-#=GS HCRC_THAAR/7-66 DR PDB; 1SB3 C; 7-66;
-#=GS P95635_RHOPA/15-74 AC P95635.1
-#=GS XDHC_ECOLI/11-69 AC Q46801.1
-#=GS YAGT_ECOLI/65-124 AC P77165.1
-#=GS DCMS_HYDPS/8-67 AC P19915.2
-#=GS Q52589_9PSED/8-67 AC Q52589.1
-#=GS O52837_BRAJA/6-65 AC O52837.1
-#=GS O53709_MYCTU/5-64 AC O53709.1
-#=GS O87682_ARTNI/8-67 AC O87682.1
-#=GS Q59128_ARTNI/14-73 AC Q59128.1
-#=GS P72223_PSEPU/14-73 AC P72223.1
-#=GS P72223_PSEPU/14-73 DR PDB; 1T3Q A; 14-73;
-#=GS P72223_PSEPU/14-73 DR PDB; 1T3Q D; 14-73;
-#=GS Q9ZBN8_STRCO/5-65 AC Q9ZBN8.1
-#=GS O54050_RHOCA/5-68 AC O54050.1
-#=GS O54050_RHOCA/5-68 DR PDB; 1JRP A; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 2W3R A; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 2W3S A; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 1JRP G; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 2W54 E; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 1JRP E; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 2W55 A; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 2W3R E; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 2W3S E; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 2W54 G; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 2W3R G; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 2W54 A; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 1JRO A; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 1JRO E; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 2W55 E; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 2W55 C; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 2W3R C; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 1JRO C; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 2W54 C; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 2W3S G; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 2W55 G; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 2W3S C; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 1JRO G; 5-68;
-#=GS O54050_RHOCA/5-68 DR PDB; 1JRP C; 5-68;
-#=GS O23887_MAIZE/15-85 AC O23887.1
-#=GS ALDO4_ARATH/8-78 AC Q7G191.2
-#=GS ALDO1_ARATH/23-95 AC Q7G193.2
-#=GS O30328_ACEEU/4-63 AC O30328.1
-#=GS IORA_BREDI/4-64 AC Q51697.1
-#=GS XDH_EMENI/39-108 AC Q12553.2
-#=GS O61198_CAEEL/8-78 AC O61198.2
-#=GS O17892_CAEEL/18-86 AC O17892.1
-#=GS XDH_DROSU/13-83 AC P91711.1
-#=GS O17506_BOMMO/19-89 AC O17506.1
-#=GS Q17250_BOMMO/18-88 AC Q17250.2
-#=GS ADO_BOVIN/9-79 AC P48034.2
-#=GS XDH_BOVIN/8-78 AC P80457.4
-#=GS XDH_BOVIN/8-78 DR PDB; 1V97 B; 8-78;
-#=GS XDH_BOVIN/8-78 DR PDB; 3NVY A; 8-78;
-#=GS XDH_BOVIN/8-78 DR PDB; 3NVY J; 8-78;
-#=GS XDH_BOVIN/8-78 DR PDB; 3NRZ J; 8-78;
-#=GS XDH_BOVIN/8-78 DR PDB; 3NVV A; 8-78;
-#=GS XDH_BOVIN/8-78 DR PDB; 3NRZ A; 8-78;
-#=GS XDH_BOVIN/8-78 DR PDB; 1N5X A; 8-78;
-#=GS XDH_BOVIN/8-78 DR PDB; 1N5X B; 8-78;
-#=GS XDH_BOVIN/8-78 DR PDB; 1V97 A; 8-78;
-#=GS XDH_BOVIN/8-78 DR PDB; 1VDV A; 8-78;
-#=GS XDH_BOVIN/8-78 DR PDB; 3NVV J; 8-78;
-#=GS XDH_BOVIN/8-78 DR PDB; 1VDV B; 8-78;
-#=GS XDH_BOVIN/8-78 DR PDB; 3NS1 A; 8-78;
-#=GS XDH_BOVIN/8-78 DR PDB; 3NS1 J; 8-78;
-#=GS MOP_DESGI/6-65 AC Q46509.1
-#=GS MOP_DESGI/6-65 DR PDB; 1VLB A; 6-65;
-#=GS MOP_DESGI/6-65 DR PDB; 1SIJ A; 6-65;
-#=GS O53669_MYCTU/13-78 AC O53669.1
-#=GS O29566_ARCFU/5-80 AC O29566.1
-#=GS O30225_ARCFU/5-84 AC O30225.1
-#=GS NQRF_CHLTR/46-122 AC O84745.1
-#=GS NQRF_HAEIN/43-119 AC O05012.1
-#=GS NQRF_VIBAL/39-115 AC Q56584.1
-#=GS O84062_CHLTR/8-83 AC O84062.1
-#=GS Q9Z8H9_CHLPN/8-83 AC Q9Z8H9.1
-#=GS CSMJ_CHLTE/5-82 AC O68983.1
-#=GS CSMI_CHLTE/5-82 AC O68988.1
-#=GS FER_TRIVA/13-90 AC P21149.1
-#=GS FER_TRIVA/13-90 DR PDB; 1L5P A; 5-83;
-#=GS FER_TRIVA/13-90 DR PDB; 1L5P C; 5-83;
-#=GS FER_TRIVA/13-90 DR PDB; 1L5P B; 5-83;
-#=GS P73774_SYNY3/7-88 AC P73774.1
-#=GS FER_BUCAP/10-92 AC O51882.1
-#=GS O69222_AZOVI/11-93 AC O69222.1
-#=GS FER_HAEIN/10-92 AC P44428.2
-#=GS FER_PSEAE/10-92 AC Q51383.2
-#=GS ADRX_YEAST/67-149 AC Q12184.1
-#=GS ADX_PIG/71-155 AC P00258.2
-#=GS FER2_RICPR/11-93 AC Q9ZDW6.1
-#=GS O49551_ARATH/44-127 AC O49551.1
-#=GS ETP1_SCHPO/525-592 AC Q10361.2
-#=GS ETP1_SCHPO/525-592 DR PDB; 2WLB A; 525-607;
-#=GS ETP1_SCHPO/525-592 DR PDB; 2WLB B; 525-607;
-#=GS O07876_SPHSX/8-91 AC O07876.1
-#=GS Q9ZAM5_SPHSX/8-91 AC Q9ZAM5.1
-#=GS FER2_CAUCR/8-91 AC P37098.1
-#=GS FER6_RHOCA/7-91 AC P80306.1
-#=GS FER6_RHOCA/7-91 DR PDB; 1UWM A; 7-91;
-#=GS P74447_SYNY3/31-113 AC P74447.1
-#=GS P73171_SYNY3/7-85 AC P73171.1
-#=GS FER1_AQUAE/3-83 AC O67065.1
-#=GS FER4_RHOCA/7-86 AC P16022.1
-#=GS P74283_SYNY3/5-88 AC P74283.1
-#=GS PUTX_PSEPU/8-92 AC P00259.3
-#=GS PUTX_PSEPU/8-92 DR PDB; 1PDX A; 7-91;
-#=GS PUTX_PSEPU/8-92 DR PDB; 1OQR C; 7-91;
-#=GS PUTX_PSEPU/8-92 DR PDB; 1OQR B; 7-91;
-#=GS PUTX_PSEPU/8-92 DR PDB; 1XLP C; 7-91;
-#=GS PUTX_PSEPU/8-92 DR PDB; 1R7S A; 7-91;
-#=GS PUTX_PSEPU/8-92 DR PDB; 1OQR A; 7-91;
-#=GS PUTX_PSEPU/8-92 DR PDB; 1YJJ A; 7-91;
-#=GS PUTX_PSEPU/8-92 DR PDB; 1R7S C; 7-91;
-#=GS PUTX_PSEPU/8-92 DR PDB; 1OQQ B; 7-91;
-#=GS PUTX_PSEPU/8-92 DR PDB; 1XLP A; 7-91;
-#=GS PUTX_PSEPU/8-92 DR PDB; 1XLP B; 7-91;
-#=GS PUTX_PSEPU/8-92 DR PDB; 1R7S B; 7-91;
-#=GS PUTX_PSEPU/8-92 DR PDB; 1OQQ A; 7-91;
-#=GS PUTX_PSEPU/8-92 DR PDB; 1XLN B; 7-91;
-#=GS PUTX_PSEPU/8-92 DR PDB; 1YJI A; 7-91;
-#=GS PUTX_PSEPU/8-92 DR PDB; 1XLN A; 7-91;
-#=GS TERPB_PSESP/8-92 AC P33007.2
-#=GS P95277_MYCTU/9-84 AC P95277.1
-#=GS O05933_PSEPU/11-88 AC O05933.1
-#=GS DESET_MYCTU/303-373 AC O05875.1
-#=GS O23344_ARATH/57-131 AC O23344.1
-#=GS P74159_SYNY3/11-86 AC P74159.1
-#=GS FER2_SYNP6/8-83 AC P08451.2
-#=GS P73388_SYNY3/9-84 AC P73388.1
-#=GS FER1_HALMA/35-108 AC P00217.2
-#=GS P74449_SYNY3/11-88 AC P74449.1
-#=GS FER2_NOSMU/10-85 AC P00249.2
-#=GS FER2_APHSA/10-86 AC P00251.2
-#=GS FER1_CYAPA/10-85 AC P17007.3
-#=GS FER_PORPU/10-85 AC P51320.2
-#=GS FER_ODOSI/10-85 AC P49522.2
-#=GS FER_BUMFI/9-84 AC P13106.1
-#=GS FER3_CYACA/9-84 AC P00241.1
-#=GS FER2_CYACA/8-83 AC P15789.1
-#=GS FER_BRYMA/8-83 AC P07838.1
-#=GS FER_APHSA/9-83 AC P00250.2
-#=GS FER_THEVL/9-84 AC P0A3D1.2
-#=GS FER_PERBI/6-80 AC P10770.1
-#=GS FER3_RAPSA/8-82 AC P14938.1
-#=GS FER1_SPIOL/58-132 AC P00221.2
-#=GS FER_SILPR/57-131 AC P04669.1
-#=GS FER_WHEAT/54-128 AC P00228.2
-#=GS FER_SAMNI/8-82 AC P00226.1
-#=GS FERA_ALOMA/8-82 AC P81372.1
-#=GS FER_ARCLA/8-82 AC P00223.1
-#=GS FER_DATST/8-82 AC P68165.1
-#=GS FER_PALPL/9-83 AC P07484.1
-#=GS FER_EUGVI/8-82 AC P22341.1
-#=GS FER_CHLFU/6-80 AC P56408.1
-#=GS FER_SYNY4/9-83 AC P00243.2
-#=GS FER1_PHYAM/8-82 AC P00229.1
-#=GS FER2_PHYAM/9-83 AC P00231.1
-#=GS FER2_SPIOL/8-82 AC P00224.1
-#=GS FER_PHYPA/57-132 AC O04166.1
-#=GS FER_MARPO/7-81 AC P09735.1
-FER_GLEJA/8-82 LTPDGE...RTIEVPDDKF.ILDAGE...E.A.GLDLPYSCRA.......GA....CSSCTGKLLDGRV.....DQSE...QSFLDDDQMAEGFV.....................LTCVAYPA
-FER2_RAPSA/9-84 IGPEGE..ENEFEVQDDQF.ILDAAE...E.A.GVDLPYSCRA.......GA....CSTCAGQIVKGQV.....DQSE...GSFLEDDHFEKGFV.....................LTCVAYPQ
-Q39648_CITSI/61-136 IGPMGE..EHEFEAQEDQY.ILDAAE...E.A.GVDLPYSCRA.......GA....CSTCAGKLVSGSV.....DQSD...GSFLDDNQMEAGYL.....................LTCISYPT
-FER3_MAIZE/63-138 VGPEGE..EHEFDAPDDAY.ILDAAE...T.A.GVELPYSCRA.......GA....CSTCAGKIESGSV.....DQSD...GSFLDDGQQEEGYV.....................LTCVSYPK
-FER6_MAIZE/66-141 VGPDGT..EHEFEAPDDTY.ILEAAE...T.A.GVELPFSCRA.......GS....CSTCAGRMSAGEV.....DQSE...GSFLDDGQMAEGYL.....................LTCISYPK
-FER1_SYNP2/9-83 ITPDGE...VSYDAPDDEY.ILDSAG...D.A.GYDLPASCRA.......GA....CSTCAGKIVSGTV.....DQSE...QSFLDDDQIEAGYV.....................LTCIAYPQ
-FER1_EQUAR/7-81 KTPSGE...FTLDVPEGTT.ILDAAE...E.A.GYDLPFSCRA.......GA....CSSCLGKVVSGSV.....DESE...GSFLDDGQMEEGFV.....................LTCIAIPE
-FER2_EQUAR/7-80 KTPDGD...ITFDVEPGER.LIDIGS...E.K..ADLPLSCQA.......GA....CSTCLGKIVSGTV.....DQSE...GSFLDDEQIEQGYV.....................LTCIAIPE
-#=GR FER2_EQUAR/7-80 SS E-----...EEEEE-----.TT----...-.S..S----SS--.......--....-STT---EEE-EE.....E---...-----HHHHH----.....................-TTT-EEE
-FER2_PLEBO/10-85 NKKRNL..DITLPVDEDTT.VLEAAE...E.A.ELDLPFSCHS.......GA....CSSCVGKVVEGEI.....NQDD...QTFLDEEQVAKGFV.....................LLCVTYPR
-P95533_PSEPU/253-328 VLMKGQ..THAVPVRAGEL.LLSAML...R.A.GLPAPHACRV.......GE....CASCMCRLQAGEVQ....RLDS....SVLDEDDVAAG.W...................L.LACRTRAA
-KSHB_MYCTU/273-348 VELDGQ..THTVSWPRTAK.LLDVLL...A.A.GLDAPFSCRE.......GH....CGACACTLRAGKVN....MGVN....DVLEQQDLDEG.L...................I.LACQSRPE
-Q44253_ACISP/251-326 FMLNGI..KNSVMCSEDDFILNEIIK......AGINVPSSCCA.......GN....CGSCMCLLVSGDVI....LESN....TVLDASDEEDGWI.....................LACRSKPR
-Q59656_PLEBO/573-647 FAQSGK....EITCTQDDL.ILDIAD.....QAEVAIESSCRS.......GT....CGSCKCTLLEGEV.....SYDS..EPDVLDEHDRASGQI.....................LTCIARPV
-P71846_MYCTU/600-675 FTLSGQ..RAIFDLVPGDS.ILEGAL...G..LRSDAPYACMG.......GA....CGTCRAKLIEGNVE....MD....HNFALRKAELDAGYI.....................LTCQSHPT
-O84985_PSEPU/271-347 VISDGR..ALTFDLPRNTQNVLDAGN...A.I.GAELPYSCKA.......GV....CSTCKCRVIEGEV.....EMDS...NHALEDYEVAAGYV.....................LSCQTYPV
-PAAE_ECOLI/266-342 VRQDGR..DREIVLNADDESILDAAL...R.Q.GADLPYACKG.......GV....CATCKCKVLRGKV.....AMET...NYSLEPDELAAGYV.....................LSCQALPL
-HCR_ECOLI/241-316 FTKLQP..AREFYAPVGTT.LLEALE.....SNNVPVVAACRA.......GV....CGCCKTKVVSGEY.....TVSS...TMTLTDAEIAEGYV.....................LACSCHPQ
-O87803_PSEST/5-82 IKIADT..DVEFTISDRDT.ILRAAL...R.D.GIPISYECNS.......GG....CGSCKIDVVEGQVE...TLWGE...APGLSPRDKRK.SR...................K.LACQCLAS
-TMOF_PSEME/4-81 IQSDDL..LHHFEADSNDT.LLSAAL...R.A.ELVFPYECNS.......GG....CGACKIELLEGEVS...NLWPD...APGLAARELRK.NR...................F.LACQCKPL
-O32476_PSESP/4-81 LKIEGQ..APGTCG.SGKS.LLVSAL...A.N.GIGFPYECAS.......GG....CGVCKFELLEGNVQ...SMWPD...APGLSSRDREKGNR...................H.LACQCVAL
-Q51944_BURPI/5-82 ITIEGG..SAFSVAADEDT.LLRGAL...R.G.GIALPHECSV.......GG....CGACRFDLLSGLVE...SIWPE...APGLSERDRKR.GK...................H.LACQSRPL
-Q53028_RHOCO/4-80 INVQPF..SHEYSCEDGES.LLDGAL..RN...SLLLKYGCKH.......GG....CGTCKVRLLDGDV.....EEPG..SSFALTPEDRENDVI.....................LACASVPL
-Q45344_BURPI/10-88 YAWNRP..RSTTHARPPKA.SLTGML...R.LGRKGIPVGCVN.......GG....CGVCKVRVLDGST......RLGR.RQPCPRQRRRRSAGL...................T.LACREAPL
-Q9ZNP1_COMTE/9-88 VSVEQT..GDTYACGTHES.LLSGML...R.LGRKGIPVGCVN.......GG....CGVCKVQVLEGAV.....RHLGP.VSCAHVSDLERDQGY...................T.LACRVAPL
-Q9Z418_PSEPU/11-90 VHVMQT..GETFPCATDES.LLQGML...R.LGRKGIPVGCVN.......GG....CGVCKVHVIEGQC.....RPLGP.VSRAHVSAAEEARGF...................T.LACRVAPV
-Q9ZAN6_9BURK/12-91 VHVAQT..DETFPCAGNES.LLTGMV...R.LGRKGIPVGCVN.......GG....CGVCKVRIVEGQI.....KALGP.ISRAHVTLDEENQGY...................T.LACRVAPQ
-FERN_PSEPU/7-85 ITVQPG..GERFVCQPQQS.ALHAME...T.QGKRCLPVGCRG.......GG....CGLCKVRVLAGDY......ESGR.VSCKHLPVEAREQGY...................A.LACRLFAR
-O24827_ACISP/7-85 ITEQCS..GQRFPCKAGQS.VLKAME...Q.QGLECAPVGCRG.......GG....CGLCKVTVREGDY......ECGK.MSRVHAPPEALAQGE...................V.LACRIYPL
-FERX_PSEPU/8-86 VFEVLS..GQSFRCAEGQS.VLRAME...A.QGKRCIPVGCRG.......GG....CGLCRVRVLSGAY......RSGR.MSRGHVPAKAAAEAL...................A.LACQVFPQ
-Q52061_PSEPU/8-86 IRETVS..GQTFRCLPDQS.VLSAME...Q.QGKRCVPVGCRG.......GG....CGLCKVRVLSGTY......QCHK.MSCNHVPPEAAKQGL...................A.LACQLFPQ
-Q52167_PSEPU/8-86 VHETNS..GQSFTCRPDQS.VLRAME...E.QGKRCVPVGCRG.......GG....CGLCKVRVLSGDY......QCGR.MSCSQVPPEAAQQGL...................A.LACQLYPR
-O84964_9RALS/4-82 VEIADS..GQRYPCDPGQN.LLRAME...V.LGQRGIPAGCRG.......GG....CGVCKVRIESGRY......RTGK.MSRACLSEAEQGQGL...................V.LACKAFPD
-Q9Z3W9_9SPHN/8-85 IRILGG..GQ.FACPEGER.VLIAME...Q.FGSSDIGVGCRG.......GG....CGFCLVRVVEGEY......RTGK.MSTAKVSVADQAKGY...................A.LACRIYPM
-DMPP_PSEUF/5-82 VTIEPT..GEVIEVEDGQT.ILQAAL...R.Q.GVWLPFACGH.......GT....CATCKVQVVEGEVD...IGEAS...PFALMDIERDERKV.....................LACCAIPL
-O84963_9RALS/4-81 LTIEPI..GQTIPIAPGQT.VLDACL...R.S.GVWLPHACCH.......GL....CATCKVQVVEGEVD...QGEAS..SFALMDFER.DNGQC.....................LACCATAQ
-Q52574_PSESP/5-83 LTIEPL..GRTLDVAEGQT.LLDAAL...R.S.GVYIPHACGH.......GL....CGTCKVQVTSGEVD...HGAAN..PLRRSWISSGEEGKT.....................LACCATAL
-Q9ZNP2_COMTE/5-82 LTLEPL..GASIEVEEGQT.LLDAAL...R.Q.GIYIPHACGH.......GL....CGTCKIQVCDGDVD...HGAAN..PFALMDMER.EDGMT.....................LACCATLQ
-Q43983_ACICA/5-82 VTIEPA..GTIIQVEEDQT.ILDAAL...R.Q.GVWLPFACGH.......GT....CGTCKVQVTDGFYD...VGEAS..PFALMDIER.EENKV.....................LACCCKPE
-O87617_PSEAE/3-78 LHIQPL..GQTLSVDSGAN.LLEALR...A.AE.VPISYSCMA.......GR....CGTCRCKVLKGQV......L..E.SGREATLTNPHADDY...................V.LACMSAIT
-O52378_9RALS/3-78 LVVEPL..NLHLNAETGST.LLDVLR...S.NE.VPISYSCMS.......GR....CGTCRCRVIAGHL......R..D.NGPETGRPQAGKGTY...................V.LACQAVLT
-Q51492_PSEAE/3-78 LLVLPN..NRRLPFDSGAN.LLEVLR...E.HR.VGISYSCMS.......GR....CGTCRCRVIDGSV......I..S.SAAKSGDSNRIEEHY...................V.LACQSVLT
-NDOR_PSEPU/3-78 LLIQPN..NRIIPFSAGAN.LLEVLR...E.NG.VAISYSCLS.......GR....CGTCRCRVIDGSV......I..D.SGAENGQSNLTDKQY...................V.LACQSVLT
-Q52140_PSEPU/3-78 LLIQPN..NRLISFSPGAN.LLEVLR...E.NG.VAISYSCMS.......GR....CGTCRCRVTDGSV......I..D.SGTGSGLPHLVDEHY...................V.LACRSVLT
-Q9Z9X8_9GAMM/242-317 VRIASS..GATVHVDKHTT.IVAALA...S.I.GIEVDTSCGE.......GV....CGTCMVDVVSGTP.....EHRD....HCLSKAERASGKV...................I.CCCVSRAR
-VANB_PSEUH/234-309 VRIHST..GQVLQVPADQT.VSQVLD...A.A.GIIVPVSCEQ.......GI....CGTCITRVVDGEP.....DHRD....FFLTDAEKAKNDQ...................F.TPCCSRAK
-VANB_PSES9/231-306 GRLARS..GLTLQVPAERS.VAQVLD...D.A.GVCIPLACEQ.......GI....CGTCLTRVLDGEP.....EHRD....SFLTDAERARNDQ...................F.TPCCSRAR
-VANB_PSEPU/231-307 VQLNST..GQVFEVPADQS.VVHVLE...Q.H.GIAIAMSCEQ.......GI....CGTCLTRVLSGTPE....ASRP....VFLTEQEQALNDQ...................F.TPCCSRSK
-VANB_ACIAD/234-309 IEVLGS..DRKIEVSAHQT.ATQALL...E.H.GFDVPVSCEQ.......GI....CGTCITRVVSGTP.....DHRD....VFMTDEEHALNDQ...................F.TPCCSRAK
-O88034_STRCO/230-305 VVLARS..GRTVAVPPGTS.VLDAVR...E.T.GVEVLYSCTE.......GT....CGTCETEVVEGEP.....DHRD....SVLTEEERAAGET...................M.LICVSRCR
-P94680_COMTE/234-309 LVLQRA..GLSTTVDAHES.VLDAME...R.V.GVDFPWSCRE.......GI....CGTCEAPVLEGEV.....QHLD....YVLSPEERAEQRR...................M.MVCVSRCG
-CBAB_COMTE/232-307 VNLARS..GAQYVVREGET.ILDVLR...N.A.GHHVTSSCRQ.......GI....CGMCETTLISGVP.....DHRD....RLLTDSEKASGRT...................M.LICCSRAL
-POBB_PSEPS/236-311 VHLARS..GRTIPIAAGCT.ILDALQ...A.G.GVAVPSSCQQ.......GV....CGICETAVLAGVP.....DHRD....LVLSDQERAAGRT...................M.MICCSGSK
-YEAX_ECOLI/237-313 LVLARS..GKEFVVPEEMT.ILQVIE...N.NKAAKVECLCRE.......GV....CGTCETAILEGEA.....DHRD....QYFSDEERASQQS...................M.LICCSRAK
-Q47914_SPHCR/241-316 VLARRS..GQEFTVEPGMT.ILETLL...Q.N.GISRNYSCTQ.......GV....CGTCETKVLEGEP.....DHRD....WVLSDEKKASNST...................M.LICCSLSK
-PDR_BURCE/241-314 VRLSRS..GTSFEIPANRS.ILEVLR...D.A.NVRVPSSCES.......GT....CGSCKTALCSGEA.....DHRD....MVLRDD..EKGTQ...................I.MVCVSRAK
-#=GR PDR_BURCE/241-314 SS EEES--..--EEEE-TTS-.HHHHHH...H.T.T-----S---.......--....----EEEEEE--E.....E---....SS--TT..T---E...................E.ETTT-EES
-PHT2_PSEPU/243-316 VTLGRS..GIDLEIPVDRS.ILEVLR...D.N.GIRAPSSCES.......GT....CGSCRTRLIEGDV.....EHRD....MVLREDEQH..DQ...................I.MICVSRAR
-O86347_MYCTU/231-301 LELARS..RRVLRVPANRS.ALDVML.....DWDPTTAYSCQQ.......GF....CGTCKVRVLAGQV.....DRRG....RIIEGDN.....E...................M.LVCVSRAV
-YFAE_ECOLI/4-77 VTLRIT..GTQLLCQDEHP.SLLAAL...E.SHNVAVEYQCRE.......GY....CGSCRTRLVAGQV......D......WIAEPLAFIQPGE...................I.LPCCCRAK
-Y1309_HAEIN/3-75 IHLIRH..NTTLEFNNET..SLLDHL...E.KNNIHHEYQCRS.......GY....CGSCRVKIKKGKV......S......YKEMPLAFIQPDE...................I.LLCCCHVE
-O31003_VIBAN/5-73 VIVKPS..GVEYQSG..RN.ILDDAF...A.S.SISLEHSCKT.......GD....CGVCCAEVISGLV.....ENEN........GELVTQG.H...................I.LTCQSKAK
-RFBI_SALTY/5-76 IKIFPS..NIEFSGREDES.ILDAAL...S.A.GIHLEHSCKA.......GD....CGICESDLLAGEVV....DSKG.........NIFGQGDK...................I.LTCCCKPK
-P95461_9PSED/17-94 VQILPQ..DVTIVLEPGQT.LLEAAL...A.N.GIAYPHDCTV.......GT....CASCKTRLKQGRVR...EATPF...GYTLSKAELDA.GY...................I.LACQAFPR
-O85971_SPHAR/13-90 VTVEGS..PTTLDIPAGKT.LLEAML...D.A.GLAMPHDCKV.......GS....CGTCKFKLVSGKIG...ELSPS...ALALEGDELRS.GF...................R.LACQAIPR
-XYLA_PSEPU/20-97 VSVRGQ..GFQFKVPRGQT.ILESAL...H.Q.GIAFPHDCKV.......GS....CGTCKYKLISGRVN...ELTSS...AMGLSGDLYQS.GY...................R.LGCQCIPK
-YCBX_ECOLI/293-362 IDWQGQ....AFRGNNQQV.LLEQLE.....NQGIRIPYSCRA.......GI....CGSCRVQLLEGEV......T.P......LKKSAMGDDGT....................ILCCSCVPK
-P96096_THIFE/9-86 HTRDKQ..QVSFVCSEAED.LLSAAD...R.G.SILLPSQCRK.......GT....CGACVATVTAGTYH...LGEVS..MEALPEKAQ.ARGDV.....................LLCRTYPR
-MMOC_METTR/7-81 ETEDGE..TCRRMR.PSED.WISR.A...E.A.ERNLLASCRA.......G.....CATCKADCTDGDYE...LIDVK..VQAVPPDEE.EDGKV.....................LLCRTFPR
-O85675_ACIAD/8-85 NFADGK..TFFIAVQEDEL.LLDAAV...R.Q.GINLPLDCRE.......GV....CGTCQGTCETGIYE...QEYVD..EDALSERDL.AKRKM.....................LACQTRVK
-BENC_ACIAD/19-98 QFEDGV..TRFIRIAQGET.LSDAAY...R.Q.QINIPMDCRE.......GA....CGTCRAFCESGNYD...MPEDNY.IEDALTPEEAQQGYV.....................LACQCRPT
-#=GR BENC_ACIAD/19-98 SS E-----..EEEEEE-----.HHHHHH...H.T.T---S-S---.......--....----EEEEEE-EEE...--GGGS.-TTT--HHHHH---E.....................ETTT-EEE
-XYLZ_PSEPU/8-86 DFEDGV..TRFIDANTGET.VADAAY...R.Q.GINLPLDCRD.......GA....CGACKCFAESGRYS...LGEE.YIEDALSEAEA.EQGYV.....................LTCQMRAE
-CBDC_BURCE/8-85 RFEDDV..TYFITSSEHET.VADAAY...Q.H.GIRIPLDCRN.......GV....CGTCKGFCEHGEYD...GGDY.I.EDALSADEA.REGFV.....................LPCQMQAR
-O66892_AQUAE/7-72 RYSDGDFRWEEYEVDGEGKTVLEILQNIKEIDPTLSFRAMCRA.......GI....CGTCVVKVN.....................GEHK..........................LACNTRVY
-O85226_PSEFL/27-86 VTA.AL..GETVLSVIQATGLRQVAR...N.DHGQLVGAYCGM.......GV....CHCCLVQIDG...................RHKR...........................RACQTLVK
-O29575_ARCFU/14-75 AYWQSFEVPAKR.GMTVLEALYYIKE...NLDSSLAFRASCRM.......GI....CGSCAMKIN.....................DKP..........................RLACETQVL
-O27878_METTH/21-82 PHLESYEIPSKE.KMKVLDALQLINK...IHGANIAFRSSCRA.......GQ....CGSCAVKMN.....................GEV..........................VLACRAEVE
-Y092_METJA/14-73 EYLESYEVP..E.NITVLEALEYINK...HYEANILFRASCRN.......AQ....CGSCAVTIN.....................GEP..........................RLACETKVE
-FER5_RHOCA/10-107 IMKKDK..TIYAVAGNTATILALAKE...H.AIPIPF..ECG........DG...DCASCLIEVTHLDN.....KPAMAMMLTEKEKARLKELQMITAEEIEAA..EVSDLPPRFRLACQFIPR
-Q44501_AZOVI/10-107 LMPHNK..KVQAVAGKRSTLLGVAQE...N.GVKIPF..ECQ........DG...NCGSCLVKITHLDG.....ERIKGMLLTDKERNVLKSVGKLPKSEEERA..AVRDLPPTYRLACQTIVT
-Q46508_DESFR/6-74 ITIDGK..TTSVPE...GSTILDAAK...T.L.DIDIPTLCYLNLEALSINNKAASCRVCVVE.....................VEGRRN....L....................APSCATPVT
-Q9ZBV9_STRCO/15-78 FTLDGQ..EARVPE...GSTILDACR...A.A.GKDVPTLCEGDT..LAPKN...ACRVCVVD.....................VEGART....L....................APACSRKAE
-NUOG_MYCTU/19-82 LTIDGV..EISVPK...GTLVIRAAE...L.M.GIQIPRFCDHPL..LEPVG...ACRQCLV.....................EVEGQR....KP....................LASCTTVAT
-O87815_CUPNE/22-85 LEVDGV..SVTVPA...GTSVMRAAM...E.A.QIAVPKLCATDS..LRNFG...SCRLCLV.....................EIEGRR....GY....................PASCTTPVE
-NQO3_THET8/4-88 VKVNDR..IVEVPP...GTSVMDAVF...H.A.GYDVPLFCSEKH..LSPIG...ACRMCLVRIGLPKKGPDGKPLLNEKGEPEIQWQP....KL....................AASCVTAVA
-#=GR NQO3_THET8/4-88 SS EE-SS-..EEEE--...--BHHHHHH...H.-.------SS--TT..S----...----SEEB-------------------------S....S-....................EETTT-B--
-P74022_SYNY3/6-69 LTIDDK..AIAIEE...GASILQAAK...E.A.GVPIPTLCHLEG..ISEAA...ACRLCMVE.....................VEGTNK....L....................MPACVTAVS
-P94157_SYNP6/6-69 LQIDDQ..ELAANV...GQTVLQVAR...E.A.SIPIPTLCHLQG..VSDVG...ACRLCVVE.....................VAGSPK....L....................QPACLLTVS
-Q44513_ANAVA/6-69 LTINDQ..LISAQE...EETLLQAAQ...E.A.GIHIPTLCHLEG..VGDVG...ACRLCLVE.....................VAGSNK....L....................LPACVTKVA
-P77908_MOOTH/4-67 LTIDGQ..RVTAPE...GMTILEVAR...E.N.GIHIPTLCHHPK..LRPLG...YCRLCLVD.....................IEGAAK....P....................MTACNTPVA
-Q9ZJW1_HELPJ/4-65 MNINGK..TIECQE...GQSVLEAAR...S.A.GIYIPTICYLSG..CSPTV...ACKMCMV........................EMDG...KR....................IYSCNTKAK
-O05397_BACSU/11-72 VRVDGT..EIQARA...GATILDILN...E.N.GIEYPQICHVPE..VDPIQ...TCDTCIV........................EANG...KL....................VRSCATVAE
-YJGC_BACSU/7-68 ITINGV..EMEASE...EQTVLQLLN...N.S.SIEVPQVCYHPS..LGPIE...TCDTCIV........................SING...EL....................KRSCSAELK
-NUOG_SALTI/4-72 IHVDGK....EYEVNGADN.LLQACL...S.L.GLDIPYFCWHPAL.GSVGA....CRQCAVK..................QYQNAEDTR...GR...................LVMSCMTPAT
-O66748_AQUAE/6-70 KIYIDD...VEIEAEKGKTVLQVALE..N....GIDIPYFCYHPR..LSIAG...ACRMCVVY.......................WEDINR......................LVISCNLPVQ
-NDUS1_DICDI/5-71 FKINEI..ECEVNEEKEDITILQACT...A.N.GIEIPRFCYHEK..LTIAG...NCRMCLV.....................YVTNEE....KL....................LAACGIPLD
-NQO3_PARDE/7-71 IKIDDT....IIEVDPNMT.LIQACE...M.A.GIEVPRFCYHER..LSIAG...NCRMCLVEVVGG........PPK........PA............................ASCAMQVK
-NDUS1_NEUCR/38-101 LTIDGK..KVSIEA...GSALIQACE...K.A.GVTIPRYCYHEK..LMIAG...NCRMCLV.....................EVEKVP....KP....................VASCAWPVQ
-NUOG_RICPR/4-67 LIIDGS..EIEISE...GSTVYQACI...Q.A.GKEIPHFCYHAR..LKIAG...NCRMCLV.....................EIEKSQ....KP....................VASCAMPVS
-NDUS1_SOLTU/70-133 VFVDGY..PVKIPK...GMTVLQACE...I.A.GVDIPRFCYHSR..LSIAG...NCRMCLV.....................EVEKSP....KP....................VASCAMPAL
-NDUS1_RECAM/4-67 VFVDGL..SVEVKK...GATILQACA...Q.V.GIEIPRFCYHER..LSIAG...NCRMCLV.....................EVEKSP....KP....................VASCAMPVM
-NDUS1_BOVIN/34-97 VFVDGQ..SVMVEP...GTTVLQACE...K.V.GMQIPRFCYHER..LSVAG...NCRMCLV.....................EIEKAP....KV....................VAACAMPVM
-O52683_THEMA/3-65 IYVDGR..EVIIN..DNERNLLEALK.....NVGIEIPNLCYLS.....EASIYGACRMCLVEIN.......................GQIT........................TSCTLKPY
-Q46606_DESVU/3-71 AFINGK..EVRCEP...GRTILEAAR...E.N.GHFIPTLCELADIGHAPGT....CRVCLVE.....................IWRDKEAGPQI....................VTSCTTPVE
-HOXU_CUPNH/5-66 ITIDGK..TLTTEE...GRTLVDVAA...E.N.GVYIPTLCYLKDK.PCLGT....CRVCSVKVN.....................GN......V....................AAACTVRVS
-P72305_RHOOP/5-66 IEIDGV..TVTTEE...SRTLVDVAA...E.A.GVYIPTLCYLKGK.PSLGT....CRVCSVK.....................LNGTV..........................VAACTIRVA
-Q59261_CLOSA/4-67 IVIDEK..TIQVQE...NTTVIQAAL...A.N.GIDIPSLCYLNEC.GNVGK....CGVCAVE.....................IEGKNN....L....................ALACITKVE
-Q9ZNE4_CLOPE/4-67 IIINDK..TIEFDG...DKTILDLAR...E.N.GFDIPVLCELKNC.GNKGQ....CGVCLVE.....................QEGNDR....L....................LRSCAIKAK
-PHF1_CLOPA/4-67 IIINGV..QFNTDE...DTTILKFAR...D.N.NIDISALCFLNNCNNDINK....CEICTVE.....................VEGTG.....L....................VTACDTLIE
-Q59262_CLOAB/4-66 IILNGN..EVHTDK...DITILELAR...E.N.NVDIPTLCFLKDC.GNFGK....CGVCMVE.....................VEGKG.....F....................RAACVAKVE
-P74801_SYNY3/5-63 IHFLPD..DVTVAARVGEPILDVAER......AGVFIPTGCLM.......GS....CHACEVELG.......................DGTP.......................ICACISAVP
-XDHE_BACSU/18-77 MTVNGQ..AWEV.AAVPTTHLSDLLR...KEFQLTGTKVSCGI.......GR....CGACSILID.....................GK......L....................ANACMTMAY
-HCRC_THAAR/7-66 LTLNGR..ARED.LVPDNMLLLDYLR...ETVGLTGTKQGCDG.......GE....CGACTVLVD.....................DR......P....................RLACSTLAH
-#=GR HCRC_THAAR/7-66 SS EEE---..EEEE.EEETT-BHHHHHH...HT------------.......--....----EEEET.....................TE......E....................EEGGGSBGG
-P95635_RHOPA/15-74 LNVNGR..WRED.AVTDDMLLVDYLR...DIAGLTGVKTGCDG.......GE....CGACTVLID.....................GE......A....................APSCLVLAV
-XDHC_ECOLI/11-69 CTINGM..PFQLHAAPGTP.LSELLR...E.QGLLSVKQGCCV.......GE....CGACTVLVD....................G..TAID.........................SCLYLAA
-YAGT_ECOLI/65-124 LKVNGK..TEQL.EVDTRTTLLDTLR...ENLHLIGTKKGCDH.......GQ....CGACTVLVN.....................GR......R....................LNACLTLAV
-DCMS_HYDPS/8-67 VNVNGK..AQEK.AVEPRTLLIHFLR...EELNLTGAHIGCET.......SH....CGACTVDID.....................GR......S....................VKSCTHLAV
-Q52589_9PSED/8-67 MTVNGR..KVEE.AVEARTLLVHFLR...EKLNLTGTHIGCDT.......SH....CGACTVDVD.....................GK......S....................IKSCTHLAV
-O52837_BRAJA/6-65 LIVNGN..PVTA.NVDPRTLLVQFLR...ENLRLTGTHVGCDT.......SQ....CGACVVHLD.....................GK......A....................VKSCTTLAV
-O53709_MYCTU/5-64 MTVNGE..PVTA.EVEPRMLLVHFLR...DQLRLTGTHWGCDT.......SN....CGTCVVEVD.....................GV......P....................VKSCTMLAV
-O87682_ARTNI/8-67 VEVNGV..THAT.DVEPRRLLADFLR...DDLHLRGTRVGCEH.......GV....CGSCTVLLD.....................GQ......P....................VRSCTVLAV
-Q59128_ARTNI/14-73 VEVNGR..RRTV.AVDARETLADHLR...NDQKLTGIKLGCEH.......GV....CGACTILMD.....................GA......A....................VRSCLTLAA
-P72223_PSEPU/14-73 ATINGK..PRVF.YVEPRMHLADALR...EVVGLTGTKIGCEQ.......GV....CGSCTILID.....................GA......P....................MRSCLTLAV
-#=GR P72223_PSEPU/14-73 SS EEE---..EEEE.EE-TTSBHHHHHH...HT------------.......--....----EEEE-.....................--......E....................EEGGGSBGG
-Q9ZBN8_STRCO/5-65 LTVNGR..PQEADDVWEGESLLYVLR...ERMGLPGSKNACEQ.......GE....CGSCTVRLD.....................GVP..........................VCSCLVAAG
-O54050_RHOCA/5-68 FLLNGE..TRRVRIEDPTQSLLELLR...A.EGLTGTKEGCNE.......GD....CGACTVMIRD.................AAGSR......A....................VNACLMMLP
-#=GR O54050_RHOCA/5-68 SS EEE---..EEEEE-S-TT-BHHHHHH...H.------------.......--....----EEEEES.................----E......E....................EETTTSBGG
-O23887_MAIZE/15-85 LAVNGK..RYEAAGVAPSTSLLEFLR...TQTPVRGPKLGCGE.......GG....CGACVVLVSK.................YDPATDEVTEFS....................ASSCLTLLH
-ALDO4_ARATH/8-78 FAVNGE..KFEVLSVNPSTTLLEFLR...SNTCFKSVKLSCGE.......GG....CGACIVILSK.................YDPVLDQVEEYS....................INSCLTLLC
-ALDO1_ARATH/23-95 FAINGQRFELELSSIDPSTTLVDFLR...NKTPFKSVKLGCGE.......GG....CGACVVLLSK.................YDPLLEKVDEFT....................ISSCLTLLC
-O30328_ACEEU/4-63 FRLNGR..EVTV.DVPGDTPLLWVIR...DEVGLTGTKFGCGI.......GM....CGACTIHIG.....................GR......A....................TRSCVTPVS
-IORA_BREDI/4-64 FILNGQ..PVRVTEVPEDAPLLWVVR...EHLKLSGTKFGCGL.......GL....CGACTVHIN.....................GE......A....................ARSCITPLS
-XDH_EMENI/39-108 FYLNGT..KVILDSVDPEITLLEYLR...G.IGLTGTKLGCAE.......GG....CGACTVVVS..........QIN.....PTTKKL....YHA..................SINACIAPLV
-O61198_CAEEL/8-78 FNVNGK..DIKEENVDPELTLAYYLR...NKLGLRGTKLGCEE.......GV....CGSCTVVLGT.................WDDSLNKAVYSA....................VNACLVPLF
-O17892_CAEEL/18-86 FYVNGK..RVEEKDVDPKMTLATYLR...DKLKLTGTKIGCNE.......GG....CGACTIMISH.................IENGE..IKHFS....................ANSCLMPVC
-XDH_DROSU/13-83 FFVNGK..KVTDTNPDPECTLLTYLR...DKLRLCGTKLGCAE.......GG....CGACTVMISR.................MDRGQHKIRHLA....................VNACLTPVC
-O17506_BOMMO/19-89 FYVNGK..KVIESSPDPEWTLLWYLR...KKLRLTGTKLGCAE.......GG....CGACTVMVSK.................YNRQENKIIHLA....................VNACLAPVC
-Q17250_BOMMO/18-88 FFVNGK..KVLESNPDPEWTLLFYLR...KKLKLTGTKYGCGE.......GG....CGACTVMVSK.................YLKNEDRINHIA....................VNACLISVC
-ADO_BOVIN/9-79 FYVNGR..KVTEKNVDPETMLLPYLR...KKLRLTGTKYGCGG.......GG....CGACTVMISR.................YNPITKKIRHYP....................ANACLTPIC
-XDH_BOVIN/8-78 FFVNGK..KVVEKNADPETTLLAYLR...RKLGLRGTKLGCGE.......GG....CGACTVM............LSK.....YDRLQDKIIHFS....................ANACLAPIC
-#=GR XDH_BOVIN/8-78 SS EEE---..EEEETT--TT-BHHHHHH...HT------------.......--....----EEE............EEE.....EETTTTEEEEEE....................EETTT-BGG
-MOP_DESGI/6-65 ITVNGI..EQNL.FVDAEALLSDVLR...QQLGLTGVKVGCEQ.......GQ....CGACSVILD.....................GK......V....................VRACVTKMK
-#=GR MOP_DESGI/6-65 SS EEE---..EEEE.EE-TTSBHHHHHH...HT------------.......--....----EEEE-.....................--......E....................EEGGG-BGG
-O53669_MYCTU/13-78 DESCGELREFTVEVNEGEVVLDVILRLQQTQTPDLAVRWNCKA.......GK....CGSCSAEIN.....................GKPR..........................LMCMTRMS
-O29566_ARCFU/5-80 TFL.PS..GKRAEVDEGKTILSAAQE...I.GEGIRS..LCGG.......KG...SCGKCL..VVVR........KGDVEILSEEAHEKFVRE..K.................GYYLACQTAVK
-O30225_ARCFU/5-84 TFE.PV..GKKVE.DEPDTILEIARR...N.GVLIRS..DCGG.......KG...VCGKCK..VVVVDY......RGSLSDITDHERKHLIEEEISK................GYRLACQARVE
-NQRF_CHLTR/46-122 NND.DS..LTKTV.DSGKTLLSSLLD...S.GIAIPS..PCGG.......KA...ACKQCK..VRIT.........KNADEPLETDRSTFSKQQLEQ................GWRLSCQTKVQ
-NQRF_HAEIN/43-119 NDD.PE..KAITL.PAGGKLLGALAS...K.GIFVSS..ACGG.......GG...SCGQCI..VKVK.........NGGGEILPTELSHINKREAKE................GYRLACQVNVK
-NQRF_VIBAL/39-115 NDD.PS..LAIVT.QPGGKLLSALAG...A.GVFVSS..ACGG.......GG...SCGQCR..VKVK.........SGGGDILPTELDHITKGEARE................GERLACQVAMK
-O84062_CHLTR/8-83 ADD......ENQEFHLEDGSSIAEV......CEHSGVPLACT........EG...VCGTCVIEVLEGA........DNLSDFSEAEYDFLGDPEDS.................NERLACQCCIK
-Q9Z8H9_CHLPN/8-83 SDD......EQQEFELEDNSEIAEP......CESMGIPFACT........EG...VCGTCVIEVLEGR........ENLSEFTEPEYDFLGEPEDS.................NERLACQCRIK
-CSMJ_CHLTE/5-82 IND......KPCNAKVGDLLLNTAK......LNKAHIGYICGG.......NG...ICQSCFVYVLEGA........ECLSEPGEDEKAFISDKLFAE................GGRLACRTTIV
-CSMI_CHLTE/5-82 IND......KTASSSVGQTIGKAAR......LNHAHVGYVCGG.......HG...LCQACYITVQEGA........DCLAPLTDVEKAFLSPRQIAA................GGRIACQATIA
-FER_TRIVA/13-90 AVKGGVKKQLKFEDDQTLFTVLTEAG.......LMSADDTCQG.......NK...ACGKCICKHVSGKV......A.A..E..DDEKEFLEDQPAN..................ARLACAITLS
-#=GR FER_TRIVA/13-90 SS EE----EEEE---TTEEHHHHHHT--.......----TTS---.......--...-----EEEEEE---......-.-..-..HHHHHHCTTS-TT..................EEEGGG-EE-
-P73774_SYNY3/7-88 LICLPD..NRLLEIDSNETILDALLK..G....DIAHISVCGG.......KA...NCSTCRIMVLDGIK.....NCSPPTSIEQALAKKLDFPFHV..................R.LACQTKLS
-FER_BUCAP/10-92 KLLLPK..GGCFECKEGETILNVALK...N.NIKLEHA..CEK.......SC...ACSTCH..CIIRKG......FLSLSGWSEKEEDVLDKAWGLE...............STSRLSCQAIIG
-O69222_AZOVI/11-93 EVHCPE..GRVVEAETGESILEAALR...N.DIEIEHA..CEM.......SC...ACTTCH..VIVRDG......FDSLEPSDELEDDMLDKAWGLE...............PESRLSCQARVG
-FER_HAEIN/10-92 EDFCPE..GMVVDAATGDN.LLEVAH...N.A.GVEIHHACDG.......SC...ACTTCHVIVREG........FDSLNETSDQEEDMLDKAWGLE...............MDSRLSCQCVVG
-FER_PSEAE/10-92 ADHCPE..GAVFEAKPGET.ILDAAL...R.N.GIEIEHACEK.......SC...ACTTCHVIVREG........LDSMEPSDELEDDMLDKAWGLE...............PDSRLSCQAVVA
-ADRX_YEAST/67-149 LKD.GS..QKTYEVCEGETILDIAQG...H.NLDMEG..ACGG.......SC...ACSTCH.VIVDPDY......YDALPEPEDDENDMLDLAYGLT...............ETSRLGCQIKMS
-ADX_PIG/71-155 NRD.GK..TLTTQGKVGDSLLDVVIE...N.NLDIDGFGACEG.......TL...ACSTCH.LIFEDHI......FEKLEAITDEENDMLDLAYGLT...............DRSRLGCQICLT
-FER2_RICPR/11-93 IND.EE..ERTVEAPIGLSILEIAHS...N.DLDLEG..ACEG.......SL...ACATCH.VMLEEEF......YNKLKKPTEAEEDMLDLAFGLT...............DTSRLGCQIILT
-O49551_ARATH/44-127 DKD.GE..EIHIKVPVGMNILEAAHE...N.DIELEG..ACEG.......SL...ACSTCHVIVMDTKY......YNKLEEPTDEENDMLDLAFGLT...............ATSRLGCQVIAK
-ETP1_SCHPO/525-592 TPE.GR..EIMIE....GN......E...E.G.......ACEG.......SV...ACSTCHVIVDPEHY.....ELLD..PPEEDEEDMLDLAFGLE...............ETSRLGCQVLLR
-#=GR ETP1_SCHPO/525-592 SS ---.--..EEEE-....--......-...-.-.......----.......--...--STT-EEE-HHHH.....HHS-..---HHHHHHHCTB----...............TTEE-----B--
-O07876_SPHSX/8-91 AAD.GR..EIETNVDIGTDLMHAGLY...N.SVPGLLG.ECSG.......GL...ACATCR.VHVPAEW......QGVLPAALPAEAELLGFCEESP...............PEARLSCQIKMT
-Q9ZAM5_SPHSX/8-91 SED.GS..ELETTVDVGVDLMHAGLY...N.SIPGILG.ECSG.......GL...ACATCR.VRVPVEW......QSILPPAFPSEAELLGFCDEAP...............PEARLSCQIKMT
-FER2_CAUCR/8-91 QHD.GA..EQVIDVKPGLTVMEGAVK...N.NVPGIDA.DCGG.......AC...ACATCH.VYVDEAW......LDKTGDKSAMEESMLDFAENVE...............PNSRLSCQIKVS
-FER6_RHOCA/7-91 EHN.GT..RHEVEAKPGLTVMEAARD...N.GVPGIDA.DCGG.......AC...ACSTCH.AYVDPAW......VDKLPKALPTETDMIDFAYEPNP..............ATSRLTCQIKVT
-#=GR FER6_RHOCA/7-91 SS ---.--..EEEEE-----BHHHHHHT...-.-------.----.......--...SS-TTE.EEE-HHH......HTTS----HHHHHHHTTSSS--T..............TTEEEGGG-B--
-P74447_SYNY3/31-113 IKLDPIDLKVAIETNDNLLSGLLGQD........LRIMKECGG.......RG...MCATCHVYITAGMES...LSPLNRREQRTLEVITTHNRYS...................R.LACQARVL
-P73171_SYNY3/7-85 SFPQTKFLPLSLEFNACLAEYLTPDN........SPILFGCRT.......GL....CGTCLVKVVGEIL......SPEAEEREILAILAPDDVQA...................R.LACQIKLT
-FER1_AQUAE/3-83 VIINGK....EFDIPKGVRFGELSHE.....IEKAGIEFGCTD.......GQ....CGVCVARVIKGMECL..NEPSEEEEETLWRVGAVDEDQR.....................LTCQLVIE
-FER4_RHOCA/7-86 TFTDVS...ITVNVPTGTRIIEMSEK......VGSGITYGCRE.......GE....CGTCMTHILEGSE.....NLSEPTALEMRVLEENLGGKD...................DRLACQCRVL
-P74283_SYNY3/5-88 FVKEQK....DIVVAQGANLREKALQNGVDIYTLKGKLMNCGG......YGQ....CGTCIVEITAGME.....NLSPKTDFENRVLRKKPDNFR.....................LACQTLVN
-PUTX_PSEPU/8-92 SHD.GT..RRELDVADGVS.LMQAAV...S.NGIYDIVGDCGG.......SA...SCATCHVYVN................EAFTDKVP.....AANEREIGMLECVTAELKPNSRLCCQIIMT
-#=GR PUTX_PSEPU/8-92 SS E--.--..EEEEE-----B.HHHHHH...H.---TTG------.......--...SSSTTEEEE-................TTTGTTS-.....---TTT---GGGSSS---TTEEEGGG-B--
-TERPB_PSESP/8-92 DEQSGE...YAVDAQDGQS.LMEVAT...Q.NGVPGIVAECGG.......SC...VCATCRIEIEDAWV......E.......IVGEANPDENDLLQSTGE........PMTAGTRLSCQVFID
-P95277_MYCTU/9-84 GYSDGT..HKTMPVRCDQT.VLDAAE.....EHGVAIVNECQS.......GI....CGTCVATCTAGRYQ....MG.R...TEGLSDVERAARKI.....................LTCQTFVT
-O05933_PSEPU/11-88 NFSDGV..SRSFDVEAGTS.ILDAAI.....ESEIPLLYQCRS.......GS....CSTCIAQLTEGEAH....TRAG..ASSTLLASEYASGQR.....................LLCLCQAQ
-DESET_MYCTU/303-373 FARSGK....SVAADAATS.LMDAGE.....GAGVQLPFGCRM.......GI....CQSCVVDLVEGHV......R.D.....LRTGQRHEPGTR....................VQTCVSAAS
-O23344_ARATH/57-131 VEHDGK..TTELEVEPDETILSKALD...S...GLDVPYDCNL.......GV....CMTCPAKLVTGTV.....DQSG....GMLSDDVVERGYT.....................LLCASYPT
-P74159_SYNY3/11-86 DRQNEK..DYSVIVSDDRYILHQAED...Q...GFELPFSCRN.......GA....CTACAVRVISGQIH....QP....EAMGLSPDLQRQGYA.....................LLCVSYAQ
-FER2_SYNP6/8-83 VIYQGQ..SQTFTADSDQS.VLDSAQ...A.A.GVDLPASCLT.......GV....CTTCAARILSGEV.....DQPD...AMGVGPEPAKQGYT.....................LLCVAYPR
-P73388_SYNY3/9-84 IQHQGQ..TYTISVPEDKT.VLQAAD...D.E.GIQLPTSCGA.......GV....CTTCAALITEGTA.....EQAD...GMGVSAELQAEGYA.....................LLCVAYPR
-FER1_HALMA/35-108 DEDYGS.....LEVNEGEY.ILEAAE...A.Q.GYDWPFSCRA.......GA....CANCAAIVLEGDI.....DM..D.MQQILSDEEVEDKNV....................RLTCIGSPD
-P74449_SYNY3/11-88 NPATGS..DVTIEVAEDEL.ILEAAE...N.Q.GLDLPYSCRA.......AS....CVACAGRLLEGTVE...HTDKG...SDFLKPEELAAGCV.....................LLCAAYAT
-FER2_NOSMU/10-85 NAAEGL..DETIEVPDDEY.ILDAAE...E.A.GLDLPFSCRS.......GS....CSSCNGILKKGTV.....DQSD...QNFLDDDQIAAGNV.....................LTCVAYPT
-FER2_APHSA/10-86 NEEEGI..NAILEVADDQT.ILDAGE...E.A.GLDLPSSCRA.......GS....CSTCAGKLVSGAA.......PNQDDQAFLDDDQLAAGWV.....................MTCVAYPT
-FER1_CYAPA/10-85 CEEQGL..DTTIECPDDEY.ILDAAE...E.Q.GIDLPYSCRA.......GA....CSTCAGKVVEGTV.....DQSD...QSFLDDAQLAAGYV.....................LTCVAYPS
-FER_PORPU/10-85 SEDEGI..DVTFDCSEDTY.ILDAAE...E.A.GIELPYSCRA.......GA....CSTCAGKVTEGSV.....DQSD...QSFLDDEQLLKGYV.....................LTCIAYPE
-FER_ODOSI/10-85 SEEHDI..DATIDCNDDVF.LLDAAE...E.Q.GIELPYSCRA.......GA....CSTCAGKVTEGDI.....DQSE...QTFLDDDQVGAGFV.....................LTCIAYPK
-FER_BUMFI/9-84 NEEKNI..NAVIKCPDDQF.ILDAAE...E.Q.GIELPYSCRA.......GA....CSTCAGKVLSGTI.....DQSE...QSFLDDDQMGAGFL.....................LTCVAYPT
-FER3_CYACA/9-84 NKDQGI..DETIECPDDQY.ILDAAE...E.Q.GLDLPYSCRA.......GA....CSTCAGKLLEGEV.....DQSD...QSFLDDDQVKAGFV.....................LTCVAYPT
-FER2_CYACA/8-83 NQKEGV..DVTINCPGDQY.ILDAAE...E.Q.GVDLPYSCRA.......GA....CSTCAGKLVKGSV.....DQSD...QSFLDEEQINNGFI.....................LTCVAYPT
-FER_BRYMA/8-83 KLDDGS..EAVIDCDEDSF.ILDVAE...E.E.GIDIPFSCRS.......GS....CSTCAGKIEGGTV.....DQSE...QTFLDDDQMEEGYV.....................LTCVAYPT
-FER_APHSA/9-83 KTPDGD..NVIT.VPDDEY.ILDVAE...E.E.GLDLPYSCRA.......GA....CSTCAGKLVSG........PAPDEDQSFLDDDQIQAGYI.....................LTCVAYPT
-FER_THEVL/9-84 VRPDGS..ETTIDVPEDEY.ILDVAE...E.Q.GLDLPFSCRA.......GA....CSTCAGKLLEGEV.....DQSD...QSFLDDDQIEKGFV.....................LTCVAYPR
-FER_PERBI/6-80 DTPDGK...KSFECPGDSY.ILDKAE...E.E.GLELPYSCRA.......GS....CSSCAGKVLTGSI.....DQSD...QAFLDDDQGGDGYC.....................LTCVTYPT
-FER3_RAPSA/8-82 ITPEGE...QEVECDDDVY.VLDAAE...E.A.GIDLPYSCRA.......GS....CSSCAGKVVSGSV.....DQSD...QSFLDDDQIAEGFV.....................LTCAAYPT
-FER1_SPIOL/58-132 VTPTGN...VEFQCPDDVY.ILDAAE...E.E.GIDLPYSCRA.......GS....CSSCAGKLKTGSL.....NQDD...QSFLDDDQIDEGWV.....................LTCAAYPV
-FER_SILPR/57-131 TKESGT...VTFDCPDDVY.VLDQAE...E.E.GIDLPYSCRA.......GS....CSSCAGKVVAGSV.....DQSD...QSFLDDDQIEAGWV.....................LTCAAYPS
-FER_WHEAT/54-128 VTPEGE...VELEVPDDVY.ILDQAE...E.E.GIDLPYSCRA.......GS....CSSCAGKLVSGEI.....DQSD...QSFLDDDQMEAGWV.....................LTCHAYPK
-FER_SAMNI/8-82 ITPDGP...QEFECPDDVY.ILEHAE...E.L.GIDIPYSCRA.......GS....CSSCAGKLVAGSV.....DQSD...QSFLDDEQIEEGWV.....................LTCVAYPK
-FERA_ALOMA/8-82 VTPQGQ...QEFDCPDDVY.ILDQAE...E.E.GIDLPYSCRA.......GS....CSSCAGKVKQGEV.....DQSD...GSFLDDEQMEQGWV.....................LTCVAFPT
-FER_ARCLA/8-82 ITPEGK...QEFEVPDDVY.ILDHAA...E.E.VGDLPYSCRA.......GS....CSSCAGKVTAGSV.....DQSD...GSYLDDDQMEAGWV.....................LTCVAYPT
-FER_DATST/8-82 VTPDGP...VEFNCPDDVY.ILDQAE...E.E.GHDLPYSCRA.......GS....CSSCAGKVTAGTV.....DQSD...GNYLDDDQMADGFV.....................LTCVAYPQ
-FER_PALPL/9-83 STPGGV...EEIEGDETTY.VLDSAE...D.Q.GIDLPYSCRA.......GA....CSTCAGIVELGTV.....DQSD...QSFLDDDQLNDSFV.....................LTCVAYPT
-FER_EUGVI/8-82 INPDGE..VTI.ECGEDQY.ILDAAE...D.A.GIDLPYSCRA.......GA....CSSCTGIVKEGTV.....DQSD...QSFLDDDQMAKGFC.....................LTCTTYPT
-FER_CHLFU/6-80 KTPSGE...ETIECPEDTY.ILDAAE...E.A.GLDLPYSCRA.......GA....CSSCAGKVESGEV.....DQSD...QSFLDDAQMGKGFV.....................LTCVAYPT
-FER_SYNY4/9-83 ITPDGE...NSIECSDDTY.ILDAAE...E.A.GLDLPYSCRA.......GA....CSTCAGKITAGSV.....DQSD...QSFLDDDQIEAGYV.....................LTCVAYPT
-FER1_PHYAM/8-82 VTPSGT...QTIDCPDDTY.VLDAAE...E.A.GLDLPYSCRA.......GS....CSSCTGKVTAGTV.....DQED...QSFLDDDQIEAGFV.....................LTCVAFPK
-FER2_PHYAM/9-83 VTPSGT...NTITCPADTY.VLDAAE...E.S.GLDLPYSCRA.......GA....CSSCAGKVTAGAV.....NQED...GSFLEEEQMEAGWV.....................LTCVAYPT
-FER2_SPIOL/8-82 VTPSGS...QVIECGDDEY.ILDAAE...E.K.GMDLPYSCRA.......GA....CSSCAGKVTSGSV.....DQSD...QSFLEDGQMEEGWV.....................LTCIAYPT
-FER_PHYPA/57-132 DGETGA..ENVXECSDEEY.XLDAAE...R.A.GMDLPYSCRA.......GA....CSSCAGIIKAGEV.....DQSD...QSFLDDSQIDDGFV.....................LTCVAYPA
-FER_MARPO/7-81 NTPTGQ...SVIDVEDDEY.ILDAAE...E.A.GLSLPYSCRA.......GA....CSSCAGKVTAGEV.....DQSD...ESFLDDDQMDEGYV.....................LTCIAYPT
-#=GC SS_cons EEESS-EEEEEEEEEETTCBHHHHHH...HTT-TTTGTTSS--TT..S..--...SSSTTEEEEEEHCEE....EHCCS..TTHHHHHHHTTSSET-TTT---GGGSSS---TTEEECCCSBGG
-#=GC seq_cons hphsup..thphpsssspp.lLcshc...p.t.slslshuCps.......Gs....CusCtsplhtu.................hpspphttt.h.....................LuCtshsp
-//
+++ /dev/null
-# STOCKHOLM 1.0
-
-#=GF ID SECIS_1
-#=GF AC RF00031
-#=GF DE Selenocysteine insertion sequence 1
-#=GF AU Griffiths-Jones SR
-#=GF GA 20.0
-#=GF NC 0.0
-#=GF TC 22.6
-#=GF PI SECIS
-#=GF SE Gautheret D, PMID:12458087
-#=GF SS Published; PMID:12458087
-#=GF TP Cis-reg;
-#=GF BM cmbuild -F CM SEED; cmcalibrate --mpi -s 1 CM
-#=GF BM cmsearch -Z 169604 -E 1000 --toponly CM SEQDB
-#=GF DR SO:1001274 SO:SECIS_element
-#=GF DR GO:0001514 GO:selenocysteine incorporation
-#=GF RN [1]
-#=GF RM 8634917
-#=GF RT A novel RNA structural motif in the selenocysteine insertion element
-#=GF RT of eukaryotic selenoprotein mRNAs.
-#=GF RA Walczak R, Westhof E, Carbon P, Krol A;
-#=GF RL RNA 1996;2:367-379.
-#=GF RN [2]
-#=GF RM 12458087
-#=GF RT A survey of metazoan selenocysteine insertion sequences.
-#=GF RA Lambert A, Lescure A, Gautheret D;
-#=GF RL Biochimie 2002;84:953-959.
-#=GF CC The incorporation of selenocysteine into a protein sequence
-#=GF CC is directed by an in-frame UGA codon (usually a stop codon)
-#=GF CC within the coding region of the mRNA. Selenoprotein mRNAs
-#=GF CC contain a conserved secondary structure in the 3' UTR that
-#=GF CC is required for the distinction of UGA stop from UGA
-#=GF CC selenocysteine. The selenocysteine insertion sequence
-#=GF CC (SECIS) is around 60 nt in length and adopts a hairpin
-#=GF CC structure which is sufficiently well-defined and conserved
-#=GF CC to act as a computational screen for selenoprotein genes [2].
-#=GF WK http://en.wikipedia.org/wiki/SECIS_element
-#=GF SQ 61
-
-#=GS D.melanogaster.1 AC AY119185.1/838-902
-#=GS D.melanogaster.2 AC AC092237.1/57223-57161
-#=GS D.melanogaster.3 AC AY060611.1/560-627
-#=GS O.niloticus.1 AC Y11109.1/1272-1330
-#=GS O.niloticus.2 AC Y11109.1/927-987
-#=GS O.niloticus.3 AC Y11111.1/1260-1324
-#=GS D.rerio.1 AC AF322071.1/1577-1642
-#=GS X.laevis.1 AC L28111.1/1299-1365
-#=GS G.gallus.1 AC AF125575.1/5781-5843
-#=GS G.gallus.2 AC Y11110.1/1218-1277
-#=GS G.gallus.3 AC Y11273.1/1139-1211
-#=GS M.musculus.1 AC AF195142.1/461-524
-#=GS M.musculus.2 AC AF021345.1/10097-10160
-#=GS M.musculus.3 AC X03920.1/1172-1235
-#=GS M.musculus.4 AC AF096875.1/5504-5568
-#=GS M.musculus.5 AC AF241527.2/359-424
-#=GS M.musculus.6 AC AF136399.1/1808-1868
-#=GS M.musculus.7 AC X84742.1/5239-5302
-#=GS M.musculus.8 AC AF288740.1/1291-1357
-#=GS M.musculus.9 AC AF274027.1/835-900
-#=GS M.musculus.10 AC AB030643.1/4176-4241
-#=GS M.musculus.11 AC AL645723.11/192421-192359
-#=GS M.musculus.12 AC AC002327.1/156204-156268
-#=GS M.musculus.13 AC AF333036.1/2190-2249
-#=GS M.musculus.14 AC U43285.1/2009-2075
-#=GS R.norvegicus.1 AC X57999.1/1526-1586
-#=GS R.norvegicus.2 AC M63574.1/1465-1528
-#=GS R.norvegicus.3 AC AF390544.1/1076-1142
-#=GS R.norvegicus.4 AC AF072865.1/1887-1947
-#=GS R.norvegicus.5 AC X12367.1/703-764
-#=GS R.norvegicus.6 AC U25264.1/366-432
-#=GS R.norvegicus.7 AC L24896.1/600-665
-#=GS H.sapiens.1 AC AF201385.1/3055-3117
-#=GS H.sapiens.2 AC AL049837.4/130674-130738
-#=GS H.sapiens.3 AC U67171.1/375-442
-#=GS H.sapiens.4 AC AF195141.1/689-759
-#=GS H.sapiens.5 AC X53463.1/847-903
-#=GS H.sapiens.6 AC AF093774.1/5851-5916
-#=GS H.sapiens.7 AC X58295.1/1384-1453
-#=GS H.sapiens.8 AC AL833145.1/1479-1545
-#=GS H.sapiens.9 AC S48220.1/1731-1788
-#=GS H.sapiens.10 AC X71973.1/730-791
-#=GS H.sapiens.11 AC AF166127.1/1919-1981
-#=GS H.sapiens.12 AC U43286.1/2054-2120
-#=GS H.sapiens.13 AC BC003127.1/865-928
-#=GS H.sapiens.14 AC S79854.1/1605-1666
-#=GS H.sapiens.15 AC X13710.1/946-1008
-#=GS B.taurus.1 AC D88033.3/5711-5774
-#=GS B.taurus.2 AC D25220.1/1493-1556
-#=GS B.taurus.3 AC AB017534.1/661-726
-#=GS B.taurus.4 AC AB032826.1/1401-1464
-#=GS B.taurus.5 AC AB022283.1/1669-1729
-#=GS B.taurus.6 AC AF053984.1/1951-2017
-#=GS B.taurus.7 AC X13684.1/700-760
-#=GS O.aries.1 AC U67853.1/375-442
-#=GS S.scrofa.1 AC AF380118.1/366-433
-#=GS S.scrofa.2 AC L12743.1/694-758
-#=GS S.scrofa.3 AC AF532927.1/678-740
-#=GS S.scrofa.4 AC X76008.1/2709-2772
-#=GS C.elegans.1 AC U61947.2/4246-4309
-#=GS S.mansoni.1 AC L37762.1/2940-3006
-
-D.melanogaster.1 G.AGCC.CU...AUGAUCGAUGAUUGG.CAAA.UCCUCUC..GAGG..A.......ACCGAUC.G.U.UGAGAA..CCCCU.....UUGCCUU
-#=GR D.melanogaster.1 SS ................(((((((((((......((((......)))..)........)))))).).).)))......................
-D.melanogaster.2 C.AUUCAACU.UAUGAGGAUUAUUUCU.UAAA.GGCCUCU...GGC..U.......CGGAAAU.A.G.UCUGAA...CCU........UAUUG
-#=GR D.melanogaster.2 SS ................(((((((((((......((((......)))..)........)))))).).).)))......................
-D.melanogaster.3 G.UGGCGCU..UAUGACGCAGUUGUCU.UAAA.CUCGAAC..UCGA.GC........GGGCAA.U.U.GCUGAU...UACG...AUUAACCAC
-#=GR D.melanogaster.3 SS (.(((...(....((((((((((((((......((((......))).).........)))))).).).)).).)...)).....)....))))
-O.niloticus.1 G.UUUCUCA...GUGAAGGCUACAGAU.UAAA..CCUCU....GGC...........CUCUGG.A.G.CCAGAU..GCAUU.......GAAAC
-#=GR O.niloticus.1 SS ......(((...(((..(((((.((..........)).)....)))...........)((((.......))))....)))).......))...
-O.niloticus.2 U.GUUUAUU..AAUGACGGCUACAGAU.UAAA..CCUUU....AGC...........CUCUGG.A.G.CCAGAU..GCAUU......CAAACA
-#=GR O.niloticus.2 SS ..((((.....((((..(((((.((..........)).)....)))...........)((((.......))))....)))).......)))).
-O.niloticus.3 G.UGUCUCU...GUGAAGUUCGGUUUU.UAAA.AGGGUCA...UCC..A.......GAAAACC.G.ACACUGAU..GUUUC......CGACAC
-#=GR O.niloticus.3 SS (.((((..........(((((((((((.(......((.......))..........))))))).).).))).................)))))
-D.rerio.1 A.UGUGGUCUUUAUGAAGGCAGGUGCA.GAAA.CUAUGCA...CUA.GU........GGUGUC.U.G.UCUGAU..GUUUG.......GCCAU
-#=GR D.rerio.1 SS ...((((((.......(((((((..(.....(.(((........)).)).........)..)).).).))).........).......)))))
-X.laevis.1 G.UGUUUGCA.AAUGACGACCGAUUUU.GAAA.UGGUCUCACGGCC..A.......AAAACUC.GUG.UCCGAC...AUC........AACCC
-#=GR X.laevis.1 SS .................((((((.(((......(((((....))))..)........))).)).).).)).......................
-G.gallus.1 G.UGUGUUU...AUGAAGAGCACUAAC.AAAA.GAGUAAU.UGACU..C.......AGUUGGU.G.U.UCAGAU..GCU.........CUCAC
-#=GR G.gallus.1 SS (.((.(..(...((...((((((((((......((((......)))..)........)))))).).).))..))..)...........).)))
-G.gallus.2 U.AUUUGUC...AUGACAGUCACAGCA.UAAA..GCGCA....GAC...........GGCUGU.G.A.CCUGAU..UUUAG......AAAAUA
-#=GR G.gallus.2 SS ................((((((((((................................))))).).)..))).....................
-G.gallus.3 U.AUUUCUU..UGUGAUGACCGAUUUU.GAAA.UGGGUUU...CUC..UAAUGCCAGGAAAUC.GUG.UCUGAU...GUUG.....UCAAGUA
-#=GR G.gallus.3 SS ......(((...(..((((((((((((......((((((..........))).))).)))))).).).)).......)).......).)))..
-M.musculus.1 G.UCACCGA...AUGAUCUGCUCUGGU.CAAA.UCCUUCU...AUG..C......CAGCCAGG.G.U.GGUGAU..GACCC.......GUGAC
-#=GR M.musculus.1 SS (.((((.(....((.(((.((((((((..............................)))))).).).))).)).....)........)))))
-M.musculus.2 G.UUACAUU..AAUGAGAACAGAAACA.UAAA..CUAUGA.CCUAG.G.........GGUUUC.U.G.UUGGAU..AGCUU.......GUAAU
-#=GR M.musculus.2 SS (.(((((..........(((((((((........(((......)))............))))).).).))..........).......)))))
-M.musculus.3 G.GUUCUUC..CAUGAUGGUGUUUCCUCUAAA..UUUGC....ACG...........GAGAAA.C.A.CCUGAU.UUCCAG.....GAAAAUC
-#=GR M.musculus.3 SS (.(((.(((..(..((.((((((((.(((................)...........)))))).).).))......))..).....)))))))
-M.musculus.4 G.UGUGCGA...AUGAUAACUACUGAC.GAAA.GAGCUGU.CUGCU..C.......AGUCUGU.G.G.UUGGAU...GUAG......UCACAC
-#=GR M.musculus.4 SS (.(((((.........(((((((.(((......((((......)))..)........))).)).).).))).........).......)))))
-M.musculus.5 G.CCGCUUC...AUGACAGGAAGGACU.GAAA.UGUCUUA...GAC..C.....UGUGGUCUU.U.C.CUCGAU..GUUCC......UGCGGC
-#=GR M.musculus.5 SS (.((((..(...((...((((((((((.(.....(((......)))..........))))))).).).))..))..)...........)))))
-M.musculus.6 G.UCAGAUG...AUGAUGGCCUGGGCA.GAAA.CCCCAUG..UGGG..C........CGCCCA.G.G.UUUGAA...CCC........CUGGC
-#=GR M.musculus.6 SS (.((((...........(((((((((..(.....(((......)))..).........))))).).).))..................)))))
-M.musculus.7 G.UGUCUCU...AUGAAGGAGGGGCCC.GAAG.CCCUUGU...GGG..C........GGGCCU.C.C.CCUGAG...CCCG....UCUGUGGU
-#=GR M.musculus.7 SS ................(((.(((((((....(.(((.......)))..)........)))))).)...)))..(...(((........).)))
-M.musculus.8 U.UUGCAUU..AAUGAGGAUUACACAG.AAAA.CCUUUGU..UAAG.GA.......CUUGUGU.AGA.UCUGAU..AAUUG.......GCAAA
-#=GR M.musculus.8 SS ..((((......((.(((.((((((((......((((......))).).........)))))).))..))).))..............)))).
-M.musculus.9 C.CGGCACU..CAUGAAGGUCUGCUUG.AAAA.CCAGCCU..GCUG.GU........GGGGCA.G.U.CCUGAG.GACCUG.......GCGUG
-#=GR M.musculus.9 SS (.(((..((..((....((.((((((.....(.((((......))).)).........))))).)...))))))...)).).......)....
-M.musculus.10 C.CGGCACU..CAUGAAGGUCUGCCUG.AAAA.CCAGCCU..GCUG.GU........GGGGCA.G.U.CCUGAG.GACCUG.......GCGUG
-#=GR M.musculus.10 SS (.(((..((..((....((.((((((.....(.((((......))).)).........))))).)...))))))...)).).......)....
-M.musculus.11 U.AUUUGUG..UAUGAUGGUCACAGUG.UAAA..GUUCC....CAC...........AGCUGU.G.A.CUUGAU..UUUUA....AAAAUGUC
-#=GR M.musculus.11 SS (.((((...........((((((((((.(...............))...........).)))).).).))................)))))..
-M.musculus.12 C.UCAGCAG..GAUGAUGAGAAGGGCU.GAAA.UGCUGCC..AAAC..C.......AGGUCCU.U.U.UCUGAU..GGUGG.......CUGGG
-#=GR M.musculus.12 SS (.(((((..........((((((((((......((....)..)..............)))))).).).))..........).......)))))
-M.musculus.13 C.AUGCGUC..CAUGAAGUCACUGGCC.UCAA.GCCCAA....GUG.GU........GGGCAG.U.G.ACAGAA...GA.........GCUGC
-#=GR M.musculus.13 SS (.(((......))))..(((((((.((......(((.........).))........)).))).).).)).......................
-M.musculus.14 C.UCUGAUA...AUGAUGUCUCUCCCU.CUAA.CUCCCAGUAAGGA..C........UGGGAG.A.G.GCUGAACAAACCU.......CAGAG
-#=GR M.musculus.14 SS (.(((((.........(((.((..(((.(.....(((((((....)..)........)))))).).).)..)))))....).......)))))
-R.norvegicus.1 A.UAUUUGUU.UAUGAUGGUCACAGUG.UAAA..GUUCA....CAC...........AGCUGU.G.A.CUUGAU..UUUUA.......AAAAU
-#=GR R.norvegicus.1 SS ....((((.........((((((((((.(...............))...........).)))).).).)).........)).......))...
-R.norvegicus.2 G.UUACAUU..GAUGAGAACAGAAACA.UAAA..CUAUGA.CCUAG.G.........GGUUUC.U.G.UUGGAU..AGCUC.......GUAAU
-#=GR R.norvegicus.2 SS ............((((((((((((((........(((......)))............))))).).).))........))).......))...
-R.norvegicus.3 U.UUGCAUU..AAUGAGGAUUACACAG.AAAA.CCUUUGU..UAAGGGU........UUGUGUCG.A.UCUGCU..AAUUG.......GCAAA
-#=GR R.norvegicus.3 SS ..((((..........(((((((((((.(....((((......)))).)........)))))).).).))).................)))).
-R.norvegicus.4 G.UCAGAUG...AUGACGGCCUGUGCA.GAAA.CCCCCAC.GUGGG..C........UGC.CA.G.G.UUUGAA...CCC........CUGGC
-#=GR R.norvegicus.4 SS (.(((........)))).(((..((...(.......)..).)..))..).........((.((.(.(............)........)))))
-R.norvegicus.5 G.UUUUUCC...AUGACGGUGUUUCCUCUAAA..UUUAC....AUG...........GAGAAA.C.A.CCUGAU.UUCCAG......AAAAAU
-#=GR R.norvegicus.5 SS (.((((((......(((((((((((.((((..............))...........)))))).).).)).).).)....)......))))))
-R.norvegicus.6 G.CCGCUUC...AUGACAGGAAGGACU.GAAA.UGUCUCA.AAGAC..C.....UGUGGUCUU.U.C.UUCGAU..GUUCU.......GCGGC
-#=GR R.norvegicus.6 SS (.((((..(...((((..(((((((((.(.....(((......)))..........))))))).).).))).))..)...........)))))
-R.norvegicus.7 C.CGGCACU..CAUGACGGUCUGCCUG.AAAA.CCAGCCC..GCUG.GU........GGGGCA.G.U.CCCGAG.GACCUG.......GCGUG
-#=GR R.norvegicus.7 SS (.(((..((..(.....((.((((((.....(.((((......))).)).........))))).)...)).)))...)).).......)....
-H.sapiens.1 G.CCAGAUG...AUGACGACCUGGGUG.GAAA.CCUACCC.UGUGG..G........CACCCA.U.G.UCCGAG...CCCC.......CUGGC
-#=GR H.sapiens.1 SS (.((((...........(((.((((((......(((((....))))..)........))))))...).))..................)))))
-H.sapiens.2 G.UGUGCGG...AUGAUAACUACUGAC.GAAA.GAGUCAU.CGACU..C.......AGUUAGU.G.G.UUGGAU...GUAG......UCACAU
-#=GR H.sapiens.2 SS (.(((((.........(((((((((((......(((((....))))..)........)))))).).).))).........).......)))))
-H.sapiens.3 G.ACGCUUC...AUGAUAGGAAGGACU.GAAA.AGUCUUG.UGGAC..A.....CCUGGUCUU.U.C.CCUGAU..GUUCU......CGUGGC
-#=GR H.sapiens.3 SS ..(((...(...((.(..(((((((((.......(((......)))...........)))))).).).).).))..)..........)))...
-H.sapiens.4 G.ACUGACAU.UAUGAAGGCCUGUACU.GAAG.ACAGCAA..GCUG..U.......UAGUACA.G.A.CCAGAU..GCUUU..CUUGGCAGGC
-#=GR H.sapiens.4 SS ...(((.((.....(((((((((((((....(.((((......)))..).......))))))).)...........)))))..).)).)))..
-H.sapiens.5 U.UCACAGA...AUGAUGGCACCUUCC.UAA...ACCCU....CAU...........GGGUGG.U.G.UCUGAG..AGGC........GUGAA
-#=GR H.sapiens.5 SS ..((((...........((((((...........((((...................)))))).).).))..................)))).
-H.sapiens.6 G.UGUGCGG...AUGAUAACUACUGAC.GAAAGAGUCAUC...GAC..C.....UCAGUUAGU.G.G.UUGGAU...GUAG......UCACAU
-#=GR H.sapiens.6 SS (.(((((.........(((((((((((....((.(((......)))..).....)..)))))).).).))).........).......)))))
-H.sapiens.7 U.GGCGUCUU.CAUGAGGGAGGGGCCC..AAA.GCCCUUG..UGGG..C........GGACCU.C.C.CCUGAG...CCUGUCUGAGGGGCCA
-#=GR H.sapiens.7 SS ..(((.((((.((...((((((((.........((((......)))..)...............).).)))......)))...))))))))).
-H.sapiens.8 U.UUGCUUU..AAUGAGAAUAGAAACG.UAAA..CUAUGA.CCUAG.G.........GGUUUC.U.G.UUGGAU.AAUUAG.....CAGUUUA
-#=GR H.sapiens.8 SS ..(((((..........(((((((((........(((......)))............))))).).).)).........)).....)))....
-H.sapiens.9 U.AUUUGUU..UAUGAUGGCCACAGCC.UAAA..GUACA....CAC...........GGCUGU.G.A.CUUGAU...UCA........AAAGA
-#=GR H.sapiens.9 SS .............(((.((.(((((((..............................)))))).)...)).......))).............
-H.sapiens.10 C.CGGCACU..CAUGACGGCCUGCCUG.CAAA..CCUGC....UGG..U........GGGGCA.G.A.CCCGAA.AAUCCA.......GCGUG
-#=GR H.sapiens.10 SS ...((((....(......)..))))............((....(((..(........(((........))))......))).......))...
-H.sapiens.11 G.CCGGAUG...AUGACGACCUGGGUG.GAAA.CCUACCC.UGUGG..G........CACCCA.U.G.UCCGAG...CCCC.......CUGGC
-#=GR H.sapiens.11 SS (.((((...........(((.((((((......(((((....))))..)........))))))...).))..................)))))
-H.sapiens.12 C.UCUGUUA...AUGACGUCUCUCCCUCUAAA.CCCCAUU.AAGGA..C........UGGGAG.A.G.GCAGAGCAAGCCU.......CAGAG
-#=GR H.sapiens.12 SS (.((((.......((..(((((((((.......((........)).............))))).).).))....))............)))))
-H.sapiens.13 G.UCACUGC...AUGAUCCGCUCUGGU.CAAA.CCCUUCC...AGG..C......CAGCCAGA.G.U.GGGGAU..GGUCU.......GUGAC
-#=GR H.sapiens.13 SS (.((((.((.......(((((((((((......((.........))...........)))))).).).)))......)).........)))))
-H.sapiens.14 C.ACUGCUG...AUGACGAACUAUCUC.UAAC.UGGUCUU..GACC..A.......CGAGCUA.G.U.UCUGAA...UU.G.......CAGGG
-#=GR H.sapiens.14 SS ...((((.(...((...((((((.(((......((((......)))..)........))).)).).).))...)...)).).......)))..
-H.sapiens.15 U.UUUCAUC..UAUGAGGGUGUUUCCUCUAAA..CCUACG...AGG...........GAGGAA.C.A.CCUGAU...CUUA.....CAGAAAA
-#=GR H.sapiens.15 SS .......((..(.((((((((((.(((((................)...........)))))).).).)).......))))......)))...
-B.taurus.1 C.UUGCGUU..AAUGAGAACAGAAACG.UAAA..CUAUAA.CCUAG.G.........GGUUUC.U.G.UUGGAU..GGUUG.......GCAAC
-#=GR B.taurus.1 SS ......(((..(((.(.(((((((((........(((......)))............))))).).).))...)...)))).......))...
-B.taurus.2 C.UUGCGUU..AAUGAGAACAGAAACG.AAAA..CUAUAA.CCUAG.G.........GGUUUC.U.G.UUGGAU..GGUUG.......GCAAC
-#=GR B.taurus.2 SS ......(((..(((.(.(((((((((........(((......)))............))))).).).))...)...)))).......))...
-B.taurus.3 C.CCGGUGCC.UAUGACGGUCUGUCUG.AAAA.CCAGCCC...CUG.GU........GGGGCA.G.A.CCUGAG.AACCUG.......GCGUG
-#=GR B.taurus.3 SS (.(.(((..(.(.....(((((((((.....(.((((......))).)).........))))).).).))..))..))).).......)....
-B.taurus.4 ACUUGCGUU..AAUGAGAACAGAAACG.UAAA..CUAUAA.CCUAG.G.........GGUUUC.U.G.UUGGAU..GGUUG.......GCAA.
-#=GR B.taurus.4 SS ......(((..(((.(.(((((((((........(((......)))............))))).).).))...)...)))).......))...
-B.taurus.5 G.CCAGAUG...AUGAGGACCUGUGCG.GAAA.CCCCCCG..CGGG..C........UGCCCA.U.G.UCUGAG...CCC........CUGGC
-#=GR B.taurus.5 SS (.((((((....(((.((.((((((.(.(.......))))..)))).............)))).).).)))).)...)...............
-B.taurus.6 G.AUGCGUC..CAUGAAGUCACCAGCC.CCAA.GCCCCUC...GUG.GU........GGGUGG.U.G.AUGGAA.CCGUCA.....AAGCAGU
-#=GR B.taurus.6 SS (.(((..((..((.....((((((.((.(((.............)).).........)).))).).).)))))...)))).............
-B.taurus.7 U.UUUGCCC...AUGAAGGUGUUCCCUCUAAA..CCUAC....GUG...........GAGGAA.U.G.CCUGAU.GUCCAG.......GAAAA
-#=GR B.taurus.7 SS (.((((..(...((..(((((((((.((((..............))...........)))))).).).))).)).)..))).......))...
-O.aries.1 G.ACGCUUC...AUGACAGGAAGGACU.GAAA.UGUCUCU.UGGAC.GC......CUGGUCCU.U.C.CUUGAU..GUUCU......CACGGC
-#=GR O.aries.1 SS (.(.((.((...(....((((((((((.(....((((......))).)........))))))).).).)))))...))..)......).....
-S.scrofa.1 G.ACGCUUC...AUGACAGGAAGGACU.GAAA.UGUCUUG.UGGAC.GC......CUGGUCCU.U.C.CCUGAU..GUUCU......CAUGGC
-#=GR S.scrofa.1 SS .......((...(((((((((((((((.(....((((......))).)........))))))).)...))))........)......))))).
-S.scrofa.2 C.UGGCACC..CAUGACAGUCUGCCUA.AAAA.CCAGCCC...CUG.GU........GGGGCA.G.A.CUCGAG.AACCUG.......GCGUG
-#=GR S.scrofa.2 SS .....((((..((.(.((((((((((.....(.((((......))).)).........))))).).).)).).....).)).......).)))
-S.scrofa.3 A.UUUUAUC..CAUGAAAGUGUUUCCUCUAAA..CCUAU....GUG...........GAGGAA.C.A.CCUGAU.GUCCAG......GAAAAU
-#=GR S.scrofa.3 SS ...........(((....))).((((((((..............))...........)))))).....((((......)))......).....
-S.scrofa.4 C.UGGCACC..CAUGACAGUCUGCCUA.AAAA.CCAGCC....CUG.GU........GGGGCA.G.A.CUCGAG.AACCUG.......GCGUG
-#=GR S.scrofa.4 SS .....((((..((.(.((((((((((.....(.(((........)).)).........))))).).).)).).....).)).......).)))
-C.elegans.1 G.AGGCAGCUUUGUGACGACCUUUGGC.UAAA.CUCCAUC..GUGA.GC........GCCUCU.G.G.UCUGAU...GC.........GCCUC
-#=GR C.elegans.1 SS (.((((.((...((.(.((((...(((......(((........)).).........)))....).).))).))...)).........)))))
-S.mansoni.1 C.UCGCUAU...AUGACGAUGGCAAUC.UCAA..AUGUU....CAU..U........GGUUGC.C.A.UUUGAU..GAAAUCAGUUUUGUGUG
-#=GR S.mansoni.1 SS ...(((.((...(.(((((((((((((..............................)))))).).).)).............))).))))))
-#=GC SS_cons <-<<<<-----------<<<<<<<<<<-------<<<______>>>----------->>>>>>->->->>------------------>>>>>
-#=GC RF g.ucucauu..uAUGAuGgccucuccc.uAAA.ucccuuu...ggg..c........gggaga.g.g.cCuGAU..gcuug.......gagac
-//
+++ /dev/null
-/**
- * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
- * Copyright (C) $$Year-Rel$$ The Jalview Authors
- *
- * This file is part of Jalview.
- *
- * Jalview is free software: you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
- *
- * Jalview is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty
- * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
- * The Jalview Authors are detailed in the 'AUTHORS' file.
- */
-#nav #navInner
-{
-margin-top:0x;
-}
-
-
-#sddm
-{
- position:relative;
- top:0;
-}
-
-
-#sddm li a.download-right
-{
-position:absolute;
-top:28px;
-left:270px;
-}
-
-#sddm li
-{
-padding-top:30px;
-padding-bottom:30px;
-}
-
-#sddm div
-{ position: absolute;
- visibility: hidden;
- margin: 0;
- padding: 0;
- top:80px;
- z-index:9999;
- width:0;
- display:none;
-}
-
-
- #sddm div a
- { position: relative;
- display: block;
- margin: 0;
- padding:8px;
- width: 200px;
- white-space: nowrap;
- text-align: left;
- text-decoration: none;
- background: #555;
- color: #fff;
- border: 1px solid #000000;
- background: #555;
- z-index:100;
- left:-1100px;
- }
-
-
-#nav
-{
-position:relative;
-z-index:2;
- clear:both;
- float:left;
- width:100%; /* width of whole page */
-}
-
-#content
-{
-position:relative;
-z-index:2;
- clear:both;
- float:left;
- width:100%; /* width of whole page */
-}
+++ /dev/null
-/**
- * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
- * Copyright (C) $$Year-Rel$$ The Jalview Authors
- *
- * This file is part of Jalview.
- *
- * Jalview is free software: you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
- *
- * Jalview is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty
- * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
- * The Jalview Authors are detailed in the 'AUTHORS' file.
- */
-#sddm
-{
- position:relative;
- top:0;
-}
-
-
-#sddm li a.download-right
-{
-position:relative;
-left:0;
-}
-
-#sddm li
-{
-padding-top:30px;
-padding-bottom:30px;
-}
-
-#sddm div
-{ position: absolute;
- visibility: hidden;
- margin: 0;
- padding: 0;
- background: #555;
- border: 1px solid #000000;
- top:80px;
- z-index:9999;
- width:120px;
-}
-
-
- #sddm div a
- { position: relative;
- display: block;
- margin: 0;
- padding:8px;
- width: 200px;
- white-space: nowrap;
- text-align: left;
- text-decoration: none;
- background: #555;
- color: #fff;
- border: 1px solid #000000;
- background: #555;
- z-index:100;
- left:-80px;
- }
-
-
-#nav
-{
-position:relative;
-z-index:2;
- clear:both;
- float:left;
- width:100%; /* width of whole page */
-}
-
-#content
-{
-position:relative;
-z-index:2;
- clear:both;
- float:left;
- width:100%; /* width of whole page */
-}
+++ /dev/null
-/**
- * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
- * Copyright (C) $$Year-Rel$$ The Jalview Authors
- *
- * This file is part of Jalview.
- *
- * Jalview is free software: you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
- *
- * Jalview is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty
- * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
- * The Jalview Authors are detailed in the 'AUTHORS' file.
- */
-/* http://meyerweb.com/eric/tools/css/reset/
-
- v2.0 | 20110126
-
- License: none (public domain)
-
-*/
-
-
-
-html, body, div, span, applet, object, iframe,
-
-h1, h2, h3, h4, h5, h6, p, blockquote, pre,
-
-a, abbr, acronym, address, big, cite, code,
-
-del, dfn, em, img, ins, kbd, q, s, samp,
-
-small, strike, strong, sub, sup, tt, var,
-
-b, u, i, center,
-
-dl, dt, dd, ol, ul, li,
-
-fieldset, form, label, legend,
-
-table, caption, tbody, tfoot, thead, tr, th, td,
-
-article, aside, canvas, details, embed,
-
-figure, figcaption, footer, header, hgroup,
-
-menu, nav, output, ruby, section, summary,
-
-time, mark, audio, video {
-
- margin: 0;
-
- padding: 0;
-
- border: 0;
-
- font-size: 100%;
-
- font: inherit;
-
- vertical-align: baseline;
-
-}
-
-/* HTML5 display-role reset for older browsers */
-
-article, aside, details, figcaption, figure,
-
-footer, header, hgroup, menu, nav, section {
-
- display: block;
-
-}
-
-body {
-
- line-height: 1;
-
-}
-
-ol, ul {
-
- list-style: none;
-
-}
-
-blockquote, q {
-
- quotes: none;
-
-}
-
-blockquote:before, blockquote:after,
-
-q:before, q:after {
-
- content: '';
-
- content: none;
-
-}
-
-table {
-
- border-collapse: collapse;
-
- border-spacing: 0;
-
-}
+++ /dev/null
-/**
- * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
- * Copyright (C) $$Year-Rel$$ The Jalview Authors
- *
- * This file is part of Jalview.
- *
- * Jalview is free software: you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
- *
- * Jalview is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty
- * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
- * The Jalview Authors are detailed in the 'AUTHORS' file.
- */
-@import url(http://fonts.googleapis.com/css?family=Lato);
-@import url(http://fonts.googleapis.com/css?family=Oswald);
-
-/*****************
-HTML 5 Elements
-******************/
-new
-
-
-article, aside, details, figcaption, figure,
-footer, header, hgroup, menu, nav, section
-{
- display: block;
-}
-
-
-.clearfix:after
- {
- visibility: hidden;
- display: block;
- font-size: 0;
- content: " ";
- clear: both;
- height: 0;
-}
-
-
-/****************
-Body
-****************/
-
-body
-
-{
- font: 76% arial,Helvetica,sans-serif;
- text-align:left;
- background:#fff;
- color:#000;
- border-top: 20px solid #555555;
-}
-
-
-
-/*********************
-Page Wrapper
-********************/
-
-#pageWrap
-
-{
- width: 960px;
- margin: 0 auto;
- position:relative;
-}
-
-/**********************
-HEADER
-************************/
-
-#header
-{
- display: block;
- height: 180px;
- margin: 0 auto 8px;
- width: 960px;
- position:relative;
-}
-
-#logo a
-{
- background-image: url("../images/logo.jpg");
- background-repeat: no-repeat;
- height: 87px;
- left: 0;
- position: absolute;
- top: 50px;
- width: 361px;
- margin-bottom:50px;
-}
-
-#buttons
-{
-height:88px;
-width:252px;
-float:right;
- right: 0;
- position: absolute;
- top: 50px;
-}
-
-#buttons li
-{
-margin-bottom:10px;
-}
-
-#buttons #applet a
-{
- background-image: url("../images/applet.jpg");
- background-repeat: no-repeat;
- height:50px;
- width:250px;
- position: absolute;
- opacity: 1;
- transition: opacity .25s ease-in-out;
- -moz-transition: opacity .25s ease-in-out;
- -webkit-transition: opacity .25s ease-in-out;
- text-shadow: 2px 2px 10px #000000;
-}
-
-#buttons #desktop a
-{
- background-image: url("../images/desk.jpg");
- background-repeat: no-repeat;
- height:50px;
- width:250px;
- position: absolute;
- top:45px;
- opacity: 1;
- transition: opacity .25s ease-in-out;
- -moz-transition: opacity .25s ease-in-out;
- -webkit-transition: opacity .25s ease-in-out;
- text-shadow: 2px 2px 10px #000000;
-}
-
-#buttons #applet a:hover
-{
- opacity: 0.8;
-}
-
-#buttons #desktop a:hover
-{
- opacity: 0.8;
-}
-
-/*****************************
-NAV
-*********************************/
-#nav
-{
-width:100%;
-max-width:100%;
-color:#fff;
-background:#555;
-height:80px;
-}
-
-#navInner
-{
-width:960px;
-margin:0 auto;
-position:relative;
-}
-
-
-#sddm
-{ margin: 0;
- padding: 0;
- z-index: 30;
- position:relative;
- top:27px;
-}
-
-#sddm li
-{ margin: 0;
- padding:0;
- list-style: none;
- float: left;
-}
-
-#sddm li a
-{
- color: #FFFFFF;
- font-size: 13pt;
- padding: 27px 15px 25px;
- text-align: center;
- text-decoration: none;
- font-family: 'Lato',sans-serif;
-}
-
-#sddm li a.community:hover
-{
-background:#F78E1E;
-}
-
-#sddm li a.development:hover
-{
-background:#AEBF45;
-}
-
-#sddm li a.training:hover
-{
-background:#009DDC;
-}
-
-#sddm li a.download-right
-{
-float:right;
-position:relative;
-left:345px;
-display:block;
-clear:left;
- margin-top: -27px;
- padding: 27px 15px 25px;
-}
-
-
-ul#sddm li a:hover
-{
- text-decoration: none;
- background:#0083A9;
-}
-
-#sddm div
-{ position: absolute;
- visibility: hidden;
- margin: 0;
- padding: 0;
- background: #555;
- border: 1px solid #000000;
- top:50px;
-}
-
- #sddm div a
- { position: relative;
- display: block;
- margin: 0;
- padding:8px;
- width: 200px;
- white-space: nowrap;
- text-align: center;
- text-decoration: none;
- background: #555;
- color: #fff;
- border: 1px solid #000000;
- background: #555;
- }
-
-
-
-/*****************************
-CONTENT
-*****************************/
-
-#content
-{
- font-size: 10pt;
- height: auto;
- width: 710px;
- padding-top:23px;
- padding-bottom:12px;
- overflow-x:auto;
- overflow-y:hidden;
-}
-#content h1
-{
- padding-top:29px;
- font-size: 15pt;
- font-style: bold;
-}
-#content h2
-{
- padding-top:27px;
- font-size: 13pt;
- font-style: bold;
-}
-#content h3
-{
- padding-top:25px;
- font-size: 12pt;
- font-style: bold italic;
-}
-#content pre
-{
- font-family: monospace;
-}
-#sideNav
-{
-width:200px;
-float:left;
-padding-top:29px;
-margin-right:50px;
-}
-#content ul
-{
- list-style-type: disc;
-}
-#content li
-{
- margin-left: 11px;
- padding-bottom:11px;
-}
-
-#sideNav li
-{
- height: 40px;
- list-style-image: none;
- list-style-type: none;
- margin-bottom: 20px;
-}
-
-#sideNav a
-{
- color: #555555;
- display: block;
- font-size: 13pt;
- padding: 8px 0 0 15px;
- text-decoration: none;
-}
-
-#sideNav a:hover
-{
- text-decoration: underline;
-}
-#sideNav .about-nav-title
-{
-background: url("../images/normal-arrow-3-normal.png") no-repeat scroll 0 0 transparent;
- color: #FFFFFF;
- font-family: 'Lato',sans-serif;
- font-size: 18pt;
- font-weight: normal;
- height: 40px;
- margin-bottom: 20px;
- padding-left: 5px;
-}
-
-#sideNav .jvlite-nav-title
-{
-background: url("../images/jvlite-arrow-3-small.png") no-repeat scroll 0 0 transparent;
- color: #FFFFFF;
- font-family: 'Lato',sans-serif;
- font-size: 18pt;
- font-weight: normal;
- height: 40px;
- margin-bottom: 20px;
- padding-left: 5px;
-}
-
-#sideNav .jvlite-nav-small
-{
-background: url("../images/jvlite-arrow-3-small.png") no-repeat scroll 0 0 transparent;
- color: #FFFFFF;
- font-family: 'Lato',sans-serif;
- font-size: 18pt;
- font-weight: normal;
- height: 40px;
- margin-bottom: 20px;
- padding-left: 0px;
-}
-
-#sideNav .com-nav-title
-{
-background: url("../images/com-arrow-3-small.png") no-repeat scroll 0 0 transparent;
- color: #FFFFFF;
- font-family: 'Lato',sans-serif;
- font-size: 18pt;
- font-weight: normal;
- height: 40px;
- margin-bottom: 20px;
- padding-left: 5px;
-}
-
-#sideNav .dev-nav-title
-{
-background: url("../images/dev-arrow-3-normal.png") no-repeat scroll 0 0 transparent;
- color: #FFFFFF;
- font-family: 'Lato',sans-serif;
- font-size: 18pt;
- font-weight: normal;
- height: 40px;
- margin-bottom: 20px;
- padding-left: 5px;
-}
-
-#sideNav .train-nav-title
-{
-background: url("../images/train-arrow-3-normal.png") no-repeat scroll 0 0 transparent;
- color: #FFFFFF;
- font-family: 'Lato',sans-serif;
- font-size: 18pt;
- font-weight: normal;
- height: 40px;
- margin-bottom: 20px;
- padding-left: 5px;
-}
-
-#content .borderTable td
-{
- border: 1px solid black;
-}
-#content .borderTable tr
-{
- border-bottom: 2px solid black;
-}
-
-td
-{
- vertical-align: middle;
-}
-
-/********************************
-FOOTER
-***********************************/
-
-#footer
-{
-max-width:100%;
-width:100%;
-color:#fff;
-background:#555;
-height:140px;
-padding-top:10px;
-clear:both;
-}
-#innerFooter a
-{
- color: #EEEEEE;
- visited: #DDDDDD;
-
-}
-
-#innerFooter
-{
-width:960px;
-margin:0 auto;
-height:140px;
-padding-top:10px;
-}
-
-
-#copyright
-{
-float:left;
-}
-
-#cite
-{
-float:right;
-width:555px;
-}
+++ /dev/null
-#-------------------------------------------------------------------------------
-# Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
-# Copyright (C) $$Year-Rel$$ The Jalview Authors
-#
-# This file is part of Jalview.
-#
-# Jalview is free software: you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
-#
-# Jalview is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty
-# of MERCHANTABILITY or FITNESS FOR A PARTICULAR
-# PURPOSE. See the GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
-# The Jalview Authors are detailed in the 'AUTHORS' file.
-#-------------------------------------------------------------------------------
-ST-TURN-IIL 705b23
-GAMMA-TURN-CLASSIC 788763
-BETA-TURN-IR 9a6a94
-BETA-TURN-IL d6a6ca
-BETA-BULGE 1dc451
-Pfam dc206a
-PHOSPHORYLATION (S) b974a5
-PHOSPHORYLATION (Y) 7d3881
-Cath 93b1d2
-ASX-TURN-IR 4ccc6e
-BETA-BULGE-LOOP-5 4066da
-CATMAT-4 4dc465
-CATMAT-3 3eb555
-GAMMA-TURN-INVERSE 7881c7
-SCHELLMANN-LOOP-6 a28bbb
-METAL cc9900
-ALPHA-BETA-MOTIF 7bd649
-ASX-MOTIF 6addbb
-NEST-LR 3e16d0
-ASX-TURN-IIR 6a4062
-NEST-RL 3e16b2
-ASX-TURN-IIL a67c98
-BETA-TURN-IIR c79792
-PHOSPHORYLATION (T) c88395
-BETA-TURN-IIL 8b5b50
-ST-MOTIF ac25a1
-
-STARTGROUP uniprot
-Iron-sulfur (2Fe-2S) FER_CAPAA -1 39 39 METAL
-Iron-sulfur (2Fe-2S) FER_CAPAA -1 44 44 METAL
-Iron-sulfur (2Fe-2S) FER_CAPAA -1 47 47 METAL
-Iron-sulfur (2Fe-2S) FER_CAPAA -1 77 77 METAL
-<html>Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 8_8</a></html> FER_CAPAA -1 8 83 Pfam
-Ferredoxin_fold Status: True Positive FER_CAPAA -1 3 93 Cath
-Iron-sulfur (2Fe-2S) FER_CAPAN -1 86 86 METAL
-Iron-sulfur (2Fe-2S) FER_CAPAN -1 91 91 METAL
-Iron-sulfur (2Fe-2S) FER_CAPAN -1 94 94 METAL
-Iron-sulfur (2Fe-2S) FER_CAPAN -1 124 124 METAL
-<html>Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 55_13</a></html> FER_CAPAN -1 55 130 Pfam
-Ferredoxin_fold Status: True Positive FER_CAPAN -1 45 140 Cath
-Iron-sulfur (2Fe-2S) FER1_SOLLC -1 86 86 METAL
-Iron-sulfur (2Fe-2S) FER1_SOLLC -1 91 91 METAL
-Iron-sulfur (2Fe-2S) FER1_SOLLC -1 94 94 METAL
-Iron-sulfur (2Fe-2S) FER1_SOLLC -1 124 124 METAL
-<html>Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 55_13</a></html> FER1_SOLLC -1 55 130 Pfam
-Ferredoxin_fold Status: True Positive FER1_SOLLC -1 45 140 Cath
-<html>Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 55_13</a></html> Q93XJ9_SOLTU -1 55 130 Pfam
-Ferredoxin_fold Status: True Positive Q93XJ9_SOLTU -1 45 140 Cath
-Iron-sulfur (2Fe-2S) FER1_PEA -1 91 91 METAL
-Iron-sulfur (2Fe-2S) FER1_PEA -1 96 96 METAL
-Iron-sulfur (2Fe-2S) FER1_PEA -1 99 99 METAL
-Iron-sulfur (2Fe-2S) FER1_PEA -1 129 129 METAL
-<html>Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 60_13</a></html> FER1_PEA -1 60 135 Pfam
-Ferredoxin_fold Status: True Positive FER1_PEA -1 50 145 Cath
-<html>Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 63_13</a></html> Q7XA98_TRIPR -1 63 138 Pfam
-Ferredoxin_fold Status: True Positive Q7XA98_TRIPR -1 53 148 Cath
-Iron-sulfur (2Fe-2S) FER1_MESCR -1 90 90 METAL
-Iron-sulfur (2Fe-2S) FER1_MESCR -1 95 95 METAL
-Iron-sulfur (2Fe-2S) FER1_MESCR -1 98 98 METAL
-Iron-sulfur (2Fe-2S) FER1_MESCR -1 128 128 METAL
-<html>Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 59_13</a></html> FER1_MESCR -1 59 134 Pfam
-Ferredoxin_fold Status: True Positive FER1_MESCR -1 49 144 Cath
-Iron-sulfur (2Fe-2S) FER1_SPIOL -1 89 89 METAL
-Iron-sulfur (2Fe-2S) FER1_SPIOL -1 94 94 METAL
-Iron-sulfur (2Fe-2S) FER1_SPIOL -1 97 97 METAL
-Iron-sulfur (2Fe-2S) FER1_SPIOL -1 127 127 METAL
-<html>Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 58_13</a></html> FER1_SPIOL -1 58 133 Pfam
-Ferredoxin_fold Status: True Positive FER1_SPIOL -1 48 143 Cath
-Iron-sulfur (2Fe-2S) FER3_RAPSA -1 39 39 METAL
-Iron-sulfur (2Fe-2S) FER3_RAPSA -1 44 44 METAL
-Iron-sulfur (2Fe-2S) FER3_RAPSA -1 47 47 METAL
-Iron-sulfur (2Fe-2S) FER3_RAPSA -1 77 77 METAL
-<html>Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 8_8</a></html> FER3_RAPSA -1 8 83 Pfam
-Ferredoxin_fold Status: True Positive FER3_RAPSA -1 3 93 Cath
-Iron-sulfur (2Fe-2S) FER_BRANA -1 39 39 METAL
-Iron-sulfur (2Fe-2S) FER_BRANA -1 44 44 METAL
-Iron-sulfur (2Fe-2S) FER_BRANA -1 47 47 METAL
-Iron-sulfur (2Fe-2S) FER_BRANA -1 77 77 METAL
-<html>Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 8_8</a></html> FER_BRANA -1 8 83 Pfam
-Ferredoxin_fold Status: True Positive FER_BRANA -1 2 96 Cath
-Iron-sulfur (2Fe-2S) FER2_ARATH -1 91 91 METAL
-Iron-sulfur (2Fe-2S) FER2_ARATH -1 96 96 METAL
-Iron-sulfur (2Fe-2S) FER2_ARATH -1 99 99 METAL
-Iron-sulfur (2Fe-2S) FER2_ARATH -1 129 129 METAL
-<html>Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 60_13</a></html> FER2_ARATH -1 60 135 Pfam
-Ferredoxin_fold Status: True Positive FER2_ARATH -1 50 145 Cath
-<html>Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 60_11</a></html> Q93Z60_ARATH -1 60 118 Pfam
-Ferredoxin_fold Status: True Positive Q93Z60_ARATH -1 52 118 Cath
-Iron-sulfur (2Fe-2S) FER1_MAIZE -1 91 91 METAL
-Iron-sulfur (2Fe-2S) FER1_MAIZE -1 96 96 METAL
-Iron-sulfur (2Fe-2S) FER1_MAIZE -1 99 99 METAL
-Iron-sulfur (2Fe-2S) FER1_MAIZE -1 129 129 METAL
-<html>Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 60_13</a></html> FER1_MAIZE -1 60 135 Pfam
-Ferredoxin_fold Status: True Positive FER1_MAIZE -1 50 145 Cath
-<html>Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 52_12</a></html> O80429_MAIZE -1 52 127 Pfam
-Ferredoxin_fold Status: True Positive O80429_MAIZE -1 42 137 Cath
-ENDGROUP uniprot
-
-
-STARTGROUP netphos
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P83527&service=NetPhos-2.0">PHOSPHORYLATION (T) 89_8</a></html> FER_CAPAA -1 89 89 PHOSPHORYLATION (T)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=Q43517&service=NetPhos-2.0">PHOSPHORYLATION (S) 22_2</a></html> FER1_SOLLC -1 22 22 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=Q43517&service=NetPhos-2.0">PHOSPHORYLATION (S) 38_3</a></html> FER1_SOLLC -1 38 38 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=Q43517&service=NetPhos-2.0">PHOSPHORYLATION (S) 102_10</a></html> FER1_SOLLC -1 102 102 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=Q43517&service=NetPhos-2.0">PHOSPHORYLATION (T) 136_13</a></html> FER1_SOLLC -1 136 136 PHOSPHORYLATION (T)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=Q93XJ9&service=NetPhos-2.0">PHOSPHORYLATION (T) 136_13</a></html> Q93XJ9_SOLTU -1 136 136 PHOSPHORYLATION (T)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=Q93XJ9&service=NetPhos-2.0">PHOSPHORYLATION (S) 22_2</a></html> Q93XJ9_SOLTU -1 22 22 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=Q93XJ9&service=NetPhos-2.0">PHOSPHORYLATION (S) 38_3</a></html> Q93XJ9_SOLTU -1 38 38 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P09911&service=NetPhos-2.0">PHOSPHORYLATION (S) 33_3</a></html> FER1_PEA -1 33 33 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P09911&service=NetPhos-2.0">PHOSPHORYLATION (S) 42_4</a></html> FER1_PEA -1 42 42 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P09911&service=NetPhos-2.0">PHOSPHORYLATION (S) 90_9</a></html> FER1_PEA -1 90 90 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P09911&service=NetPhos-2.0">PHOSPHORYLATION (S) 114_11</a></html> FER1_PEA -1 114 114 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P09911&service=NetPhos-2.0">PHOSPHORYLATION (T) 4_</a></html> FER1_PEA -1 4 4 PHOSPHORYLATION (T)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P09911&service=NetPhos-2.0">PHOSPHORYLATION (T) 28_2</a></html> FER1_PEA -1 28 28 PHOSPHORYLATION (T)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P09911&service=NetPhos-2.0">PHOSPHORYLATION (T) 141_14</a></html> FER1_PEA -1 141 141 PHOSPHORYLATION (T)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=Q7XA98&service=NetPhos-2.0">PHOSPHORYLATION (S) 117_11</a></html> Q7XA98_TRIPR -1 117 117 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=Q7XA98&service=NetPhos-2.0">PHOSPHORYLATION (T) 137_13</a></html> Q7XA98_TRIPR -1 137 137 PHOSPHORYLATION (T)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=Q7XA98&service=NetPhos-2.0">PHOSPHORYLATION (T) 144_14</a></html> Q7XA98_TRIPR -1 144 144 PHOSPHORYLATION (T)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=Q7XA98&service=NetPhos-2.0">PHOSPHORYLATION (T) 30_3</a></html> Q7XA98_TRIPR -1 30 30 PHOSPHORYLATION (T)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=Q7XA98&service=NetPhos-2.0">PHOSPHORYLATION (T) 31_3</a></html> Q7XA98_TRIPR -1 31 31 PHOSPHORYLATION (T)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=Q7XA98&service=NetPhos-2.0">PHOSPHORYLATION (T) 4_</a></html> Q7XA98_TRIPR -1 4 4 PHOSPHORYLATION (T)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=Q7XA98&service=NetPhos-2.0">PHOSPHORYLATION (S) 45_4</a></html> Q7XA98_TRIPR -1 45 45 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=Q7XA98&service=NetPhos-2.0">PHOSPHORYLATION (T) 46_4</a></html> Q7XA98_TRIPR -1 46 46 PHOSPHORYLATION (T)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=Q7XA98&service=NetPhos-2.0">PHOSPHORYLATION (S) 93_9</a></html> Q7XA98_TRIPR -1 93 93 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P00221&service=NetPhos-2.0">PHOSPHORYLATION (S) 88_8</a></html> FER1_SPIOL -1 88 88 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P00221&service=NetPhos-2.0">PHOSPHORYLATION (S) 112_11</a></html> FER1_SPIOL -1 112 112 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P00221&service=NetPhos-2.0">PHOSPHORYLATION (T) 139_13</a></html> FER1_SPIOL -1 139 139 PHOSPHORYLATION (T)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P00221&service=NetPhos-2.0">PHOSPHORYLATION (Y) 73_7</a></html> FER1_SPIOL -1 73 73 PHOSPHORYLATION (Y)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=FER1_ARATH&service=NetPhos-2.0">PHOSPHORYLATION (S) 19_1</a></html> FER1_ARATH -1 19 19 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=FER1_ARATH&service=NetPhos-2.0">PHOSPHORYLATION (S) 24_2</a></html> FER1_ARATH -1 24 24 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=FER1_ARATH&service=NetPhos-2.0">PHOSPHORYLATION (S) 90_9</a></html> FER1_ARATH -1 90 90 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=FER1_ARATH&service=NetPhos-2.0">PHOSPHORYLATION (S) 107_10</a></html> FER1_ARATH -1 107 107 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=FER1_ARATH&service=NetPhos-2.0">PHOSPHORYLATION (S) 114_11</a></html> FER1_ARATH -1 114 114 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=FER1_ARATH&service=NetPhos-2.0">PHOSPHORYLATION (T) 141_14</a></html> FER1_ARATH -1 141 141 PHOSPHORYLATION (T)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=FER1_ARATH&service=NetPhos-2.0">PHOSPHORYLATION (Y) 75_7</a></html> FER1_ARATH -1 75 75 PHOSPHORYLATION (Y)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P00227&service=NetPhos-2.0">PHOSPHORYLATION (S) 38_3</a></html> FER_BRANA -1 38 38 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P00227&service=NetPhos-2.0">PHOSPHORYLATION (S) 62_6</a></html> FER_BRANA -1 62 62 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P00227&service=NetPhos-2.0">PHOSPHORYLATION (T) 89_8</a></html> FER_BRANA -1 89 89 PHOSPHORYLATION (T)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P00227&service=NetPhos-2.0">PHOSPHORYLATION (Y) 23_2</a></html> FER_BRANA -1 23 23 PHOSPHORYLATION (Y)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=Q93Z60&service=NetPhos-2.0">PHOSPHORYLATION (S) 107_10</a></html> Q93Z60_ARATH -1 107 107 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=Q93Z60&service=NetPhos-2.0">PHOSPHORYLATION (S) 114_11</a></html> Q93Z60_ARATH -1 114 114 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=Q93Z60&service=NetPhos-2.0">PHOSPHORYLATION (T) 21_2</a></html> Q93Z60_ARATH -1 21 21 PHOSPHORYLATION (T)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=Q93Z60&service=NetPhos-2.0">PHOSPHORYLATION (S) 24_2</a></html> Q93Z60_ARATH -1 24 24 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=Q93Z60&service=NetPhos-2.0">PHOSPHORYLATION (Y) 75_7</a></html> Q93Z60_ARATH -1 75 75 PHOSPHORYLATION (Y)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P27787&service=NetPhos-2.0">PHOSPHORYLATION (S) 7_</a></html> FER1_MAIZE -1 7 7 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P27787&service=NetPhos-2.0">PHOSPHORYLATION (S) 19_1</a></html> FER1_MAIZE -1 19 19 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P27787&service=NetPhos-2.0">PHOSPHORYLATION (S) 44_4</a></html> FER1_MAIZE -1 44 44 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P27787&service=NetPhos-2.0">PHOSPHORYLATION (S) 45_4</a></html> FER1_MAIZE -1 45 45 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P27787&service=NetPhos-2.0">PHOSPHORYLATION (S) 90_9</a></html> FER1_MAIZE -1 90 90 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P27787&service=NetPhos-2.0">PHOSPHORYLATION (S) 107_10</a></html> FER1_MAIZE -1 107 107 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P27787&service=NetPhos-2.0">PHOSPHORYLATION (S) 114_11</a></html> FER1_MAIZE -1 114 114 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P27787&service=NetPhos-2.0">PHOSPHORYLATION (T) 134_13</a></html> FER1_MAIZE -1 134 134 PHOSPHORYLATION (T)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P27787&service=NetPhos-2.0">PHOSPHORYLATION (T) 141_14</a></html> FER1_MAIZE -1 141 141 PHOSPHORYLATION (T)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=P27787&service=NetPhos-2.0">PHOSPHORYLATION (Y) 115_11</a></html> FER1_MAIZE -1 115 115 PHOSPHORYLATION (Y)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=O80429&service=NetPhos-2.0">PHOSPHORYLATION (T) 133_13</a></html> O80429_MAIZE -1 133 133 PHOSPHORYLATION (T)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=O80429&service=NetPhos-2.0">PHOSPHORYLATION (S) 82_8</a></html> O80429_MAIZE -1 82 82 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=O80429&service=NetPhos-2.0">PHOSPHORYLATION (S) 9_</a></html> O80429_MAIZE -1 9 9 PHOSPHORYLATION (S)
-<html>High confidence server. Only hits with scores over 0.8 are reported. <a href="http://www.cbs.dtu.dk/cgi-bin/proview/webface-link?seqid=O80429&service=NetPhos-2.0">PHOSPHORYLATION (S) 99_9</a></html> O80429_MAIZE -1 99 99 PHOSPHORYLATION (S)
-ENDGROUP netphos
-
-STARTGROUP s3dm
-<html>Found in PDBs: 1a70.,1a70. <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/alphabetamotif?gzip=false">ALPHA-BETA-MOTIF 115_11</a></html> FER1_SPIOL -1 115 119 ALPHA-BETA-MOTIF
-<html>Found in PDBs: 1a70. <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/asxturniil?gzip=false">ASX-TURN-IIL 107_10</a></html> FER1_SPIOL -1 107 109 ASX-TURN-IIL
-<html>Found in PDBs: 1a70. <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/asxturnir?gzip=false">ASX-TURN-IR 115_11</a></html> FER1_SPIOL -1 115 117 ASX-TURN-IR
-<html>Found in PDBs: 1a70. <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/betabulge?gzip=false">BETA-BULGE 102_10</a></html> FER1_SPIOL -1 102 103 BETA-BULGE
-<html>Found in PDBs: 1a70. <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/betaturnir?gzip=false">BETA-TURN-IR 59_6</a></html> FER1_SPIOL -1 59 62 BETA-TURN-IR
-<html>Found in PDBs: 1a70. <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/betaturnir?gzip=false">BETA-TURN-IR 69_7</a></html> FER1_SPIOL -1 69 72 BETA-TURN-IR
-<html>Found in PDBs: 1a70. <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/betaturnir?gzip=false">BETA-TURN-IR 95_9</a></html> FER1_SPIOL -1 95 98 BETA-TURN-IR
-<html>Found in PDBs: 1a70. <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/betaturnir?gzip=false">BETA-TURN-IR 108_11</a></html> FER1_SPIOL -1 108 111 BETA-TURN-IR
-<html>Found in PDBs: 1a70. <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/betaturnir?gzip=false">BETA-TURN-IR 125_12</a></html> FER1_SPIOL -1 125 128 BETA-TURN-IR
-<html>Found in PDBs: 1a70. <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/betaturnir?gzip=false">BETA-TURN-IR 141_14</a></html> FER1_SPIOL -1 141 144 BETA-TURN-IR
-<html>Found in PDBs: 1a70. <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/nestlr?gzip=false">NEST-LR 90_9</a></html> FER1_SPIOL -1 90 92 NEST-LR
-<html>Found in PDBs: 1a70. <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/nestlr?gzip=false">NEST-LR 92_9</a></html> FER1_SPIOL -1 92 94 NEST-LR
-<html>Found in PDBs: 1a70. <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/nestlr?gzip=false">NEST-LR 140_14</a></html> FER1_SPIOL -1 140 142 NEST-LR
-<html>Found in PDBs: 1a70. <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/nestrl?gzip=false">NEST-RL 81_8</a></html> FER1_SPIOL -1 81 83 NEST-RL
-<html>Found in PDBs: 1a70. <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/nestrl?gzip=false">NEST-RL 89_9</a></html> FER1_SPIOL -1 89 91 NEST-RL
-<html>Found in PDBs: 1a70. <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/nestrl?gzip=false">NEST-RL 91_9</a></html> FER1_SPIOL -1 91 93 NEST-RL
-<html>Found in PDBs: 1a70. <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/nestrl?gzip=false">NEST-RL 121_12</a></html> FER1_SPIOL -1 121 123 NEST-RL
-<html>Found in PDBs: 1a70. <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/schellmannloop6?gzip=false">SCHELLMANN-LOOP-6 78_8</a></html> FER1_SPIOL -1 78 83 SCHELLMANN-LOOP-6
-<html>Found in PDBs: 1a70. <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/schellmannloop6?gzip=false">SCHELLMANN-LOOP-6 118_12</a></html> FER1_SPIOL -1 118 123 SCHELLMANN-LOOP-6
-<html>Found in PDBs: 1a70. <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/stmotif?gzip=false">ST-MOTIF 59_6</a></html> FER1_SPIOL -1 59 63 ST-MOTIF
-ALPHA-BETA-MOTIF FER1_SPIOL -1 65 69 ALPHA-BETA-MOTIF
-ASX-MOTIF FER1_SPIOL -1 65 69 ASX-MOTIF
-ASX-TURN-IIL FER1_SPIOL -1 57 59 ASX-TURN-IIL
-ASX-TURN-IR FER1_SPIOL -1 65 67 ASX-TURN-IR
-BETA-BULGE FER1_SPIOL -1 52 53 BETA-BULGE
-BETA-TURN-IR FER1_SPIOL -1 9 12 BETA-TURN-IR
-BETA-TURN-IR FER1_SPIOL -1 19 22 BETA-TURN-IR
-BETA-TURN-IR FER1_SPIOL -1 45 48 BETA-TURN-IR
-BETA-TURN-IR FER1_SPIOL -1 58 61 BETA-TURN-IR
-BETA-TURN-IR FER1_SPIOL -1 75 78 BETA-TURN-IR
-BETA-TURN-IR FER1_SPIOL -1 91 94 BETA-TURN-IR
-NEST-LR FER1_SPIOL -1 40 42 NEST-LR
-NEST-LR FER1_SPIOL -1 42 44 NEST-LR
-NEST-LR FER1_SPIOL -1 90 92 NEST-LR
-NEST-RL FER1_SPIOL -1 31 33 NEST-RL
-NEST-RL FER1_SPIOL -1 39 41 NEST-RL
-NEST-RL FER1_SPIOL -1 41 43 NEST-RL
-NEST-RL FER1_SPIOL -1 71 73 NEST-RL
-SCHELLMANN-LOOP-6 FER1_SPIOL -1 28 33 SCHELLMANN-LOOP-6
-SCHELLMANN-LOOP-6 FER1_SPIOL -1 68 73 SCHELLMANN-LOOP-6
-ST-MOTIF FER1_SPIOL -1 9 13 ST-MOTIF
-<html>Found in PDBs: 1gaq.B <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/alphabetamotif?gzip=false">ALPHA-BETA-MOTIF 76_8</a></html> FER1_MAIZE -1 76 80 ALPHA-BETA-MOTIF
-<html>Found in PDBs: 1gaq.B <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/alphabetamotif?gzip=false">ALPHA-BETA-MOTIF 77_8</a></html> FER1_MAIZE -1 77 81 ALPHA-BETA-MOTIF
-<html>Found in PDBs: 1gaq.B <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/betaturnir?gzip=false">BETA-TURN-IR 127_13</a></html> FER1_MAIZE -1 127 130 BETA-TURN-IR
-<html>Found in PDBs: 1gaq.B <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/gammaturnclassic?gzip=false">GAMMA-TURN-CLASSIC 113_11</a></html> FER1_MAIZE -1 113 115 GAMMA-TURN-CLASSIC
-<html>Found in PDBs: 1gaq.B <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/gammaturninverse?gzip=false">GAMMA-TURN-INVERSE 59_6</a></html> FER1_MAIZE -1 59 61 GAMMA-TURN-INVERSE
-<html>Found in PDBs: 1gaq.B <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/gammaturninverse?gzip=false">GAMMA-TURN-INVERSE 104_10</a></html> FER1_MAIZE -1 104 106 GAMMA-TURN-INVERSE
-<html>Found in PDBs: 1gaq.B <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/nestlr?gzip=false">NEST-LR 92_9</a></html> FER1_MAIZE -1 92 94 NEST-LR
-<html>Found in PDBs: 1gaq.B <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/nestlr?gzip=false">NEST-LR 94_9</a></html> FER1_MAIZE -1 94 96 NEST-LR
-<html>Found in PDBs: 1gaq.B <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/nestrl?gzip=false">NEST-RL 83_8</a></html> FER1_MAIZE -1 83 85 NEST-RL
-<html>Found in PDBs: 1gaq.B <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/nestrl?gzip=false">NEST-RL 91_9</a></html> FER1_MAIZE -1 91 93 NEST-RL
-<html>Found in PDBs: 1gaq.B <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/nestrl?gzip=false">NEST-RL 93_9</a></html> FER1_MAIZE -1 93 95 NEST-RL
-<html>Found in PDBs: 1gaq.B <a href="http://www.ebi.ac.uk/msd-srv/msdmotif/nestrl?gzip=false">NEST-RL 123_12</a></html> FER1_MAIZE -1 123 125 NEST-RL
-ALPHA-BETA-MOTIF FER1_MAIZE -1 132 136 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 174 178 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 175 179 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 180 184 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 181 185 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 214 218 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 215 219 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 218 222 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 223 227 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 246 250 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 251 255 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 254 258 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 258 262 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 279 283 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 280 284 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 289 293 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 296 300 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 299 303 ALPHA-BETA-MOTIF
-ASX-TURN-IIL FER1_MAIZE -1 160 162 ASX-TURN-IIL
-ASX-TURN-IIR FER1_MAIZE -1 107 109 ASX-TURN-IIR
-BETA-BULGE FER1_MAIZE -1 31 32 BETA-BULGE
-BETA-BULGE FER1_MAIZE -1 43 44 BETA-BULGE
-BETA-TURN-IIL FER1_MAIZE -1 170 173 BETA-TURN-IIL
-BETA-TURN-IIR FER1_MAIZE -1 71 74 BETA-TURN-IIR
-BETA-TURN-IIR FER1_MAIZE -1 140 143 BETA-TURN-IIR
-BETA-TURN-IIR FER1_MAIZE -1 274 277 BETA-TURN-IIR
-BETA-TURN-IL FER1_MAIZE -1 64 67 BETA-TURN-IL
-BETA-TURN-IR FER1_MAIZE -1 33 36 BETA-TURN-IR
-BETA-TURN-IR FER1_MAIZE -1 50 53 BETA-TURN-IR
-BETA-TURN-IR FER1_MAIZE -1 100 103 BETA-TURN-IR
-BETA-TURN-IR FER1_MAIZE -1 103 106 BETA-TURN-IR
-BETA-TURN-IR FER1_MAIZE -1 136 139 BETA-TURN-IR
-BETA-TURN-IR FER1_MAIZE -1 171 174 BETA-TURN-IR
-BETA-TURN-IR FER1_MAIZE -1 172 175 BETA-TURN-IR
-BETA-TURN-IR FER1_MAIZE -1 206 209 BETA-TURN-IR
-BETA-TURN-IR FER1_MAIZE -1 207 210 BETA-TURN-IR
-BETA-TURN-IR FER1_MAIZE -1 223 226 BETA-TURN-IR
-BETA-TURN-IR FER1_MAIZE -1 233 236 BETA-TURN-IR
-BETA-TURN-IR FER1_MAIZE -1 252 255 BETA-TURN-IR
-BETA-TURN-IR FER1_MAIZE -1 264 267 BETA-TURN-IR
-BETA-TURN-IR FER1_MAIZE -1 289 292 BETA-TURN-IR
-BETA-TURN-IR FER1_MAIZE -1 295 298 BETA-TURN-IR
-CATMAT-3 FER1_MAIZE -1 20 22 CATMAT-3
-CATMAT-3 FER1_MAIZE -1 47 49 CATMAT-3
-CATMAT-3 FER1_MAIZE -1 97 99 CATMAT-3
-CATMAT-4 FER1_MAIZE -1 189 192 CATMAT-4
-GAMMA-TURN-INVERSE FER1_MAIZE -1 68 70 GAMMA-TURN-INVERSE
-GAMMA-TURN-INVERSE FER1_MAIZE -1 84 86 GAMMA-TURN-INVERSE
-GAMMA-TURN-INVERSE FER1_MAIZE -1 232 234 GAMMA-TURN-INVERSE
-GAMMA-TURN-INVERSE FER1_MAIZE -1 240 242 GAMMA-TURN-INVERSE
-GAMMA-TURN-INVERSE FER1_MAIZE -1 244 246 GAMMA-TURN-INVERSE
-NEST-LR FER1_MAIZE -1 30 32 NEST-LR
-NEST-LR FER1_MAIZE -1 66 68 NEST-LR
-NEST-LR FER1_MAIZE -1 106 108 NEST-LR
-NEST-LR FER1_MAIZE -1 108 110 NEST-LR
-NEST-LR FER1_MAIZE -1 212 214 NEST-LR
-NEST-LR FER1_MAIZE -1 276 278 NEST-LR
-NEST-LR FER1_MAIZE -1 307 309 NEST-LR
-NEST-RL FER1_MAIZE -1 64 66 NEST-RL
-NEST-RL FER1_MAIZE -1 105 107 NEST-RL
-NEST-RL FER1_MAIZE -1 107 109 NEST-RL
-NEST-RL FER1_MAIZE -1 306 308 NEST-RL
-ST-TURN-IIL FER1_MAIZE -1 20 22 ST-TURN-IIL
-ALPHA-BETA-MOTIF FER1_MAIZE -1 24 28 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 25 29 ALPHA-BETA-MOTIF
-BETA-TURN-IR FER1_MAIZE -1 75 78 BETA-TURN-IR
-GAMMA-TURN-CLASSIC FER1_MAIZE -1 61 63 GAMMA-TURN-CLASSIC
-GAMMA-TURN-INVERSE FER1_MAIZE -1 7 9 GAMMA-TURN-INVERSE
-GAMMA-TURN-INVERSE FER1_MAIZE -1 52 54 GAMMA-TURN-INVERSE
-NEST-LR FER1_MAIZE -1 40 42 NEST-LR
-NEST-LR FER1_MAIZE -1 42 44 NEST-LR
-NEST-RL FER1_MAIZE -1 31 33 NEST-RL
-NEST-RL FER1_MAIZE -1 39 41 NEST-RL
-NEST-RL FER1_MAIZE -1 41 43 NEST-RL
-NEST-RL FER1_MAIZE -1 71 73 NEST-RL
-ALPHA-BETA-MOTIF FER1_MAIZE -1 176 180 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 233 237 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 247 251 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 278 282 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 286 290 ALPHA-BETA-MOTIF
-ALPHA-BETA-MOTIF FER1_MAIZE -1 295 299 ALPHA-BETA-MOTIF
-ASX-MOTIF FER1_MAIZE -1 122 126 ASX-MOTIF
-ASX-MOTIF FER1_MAIZE -1 160 164 ASX-MOTIF
-ASX-TURN-IR FER1_MAIZE -1 122 124 ASX-TURN-IR
-BETA-BULGE-LOOP-5 FER1_MAIZE -1 122 126 BETA-BULGE-LOOP-5
-BETA-BULGE-LOOP-5 FER1_MAIZE -1 239 243 BETA-BULGE-LOOP-5
-BETA-TURN-IR FER1_MAIZE -1 122 125 BETA-TURN-IR
-BETA-TURN-IR FER1_MAIZE -1 160 163 BETA-TURN-IR
-BETA-TURN-IR FER1_MAIZE -1 239 242 BETA-TURN-IR
-BETA-TURN-IR FER1_MAIZE -1 261 264 BETA-TURN-IR
-CATMAT-3 FER1_MAIZE -1 80 82 CATMAT-3
-CATMAT-3 FER1_MAIZE -1 87 89 CATMAT-3
-CATMAT-3 FER1_MAIZE -1 262 264 CATMAT-3
-NEST-RL FER1_MAIZE -1 124 126 NEST-RL
-NEST-RL FER1_MAIZE -1 241 243 NEST-RL
-NEST-RL FER1_MAIZE -1 292 294 NEST-RL
-ENDGROUP s3dm
+++ /dev/null
-(((FER_BRANA:128.0,FER3_RAPSA:128.0):50.75,FER_CAPAA:178.75):121.94443,(Q93Z60_ARATH:271.45456,((O80429_MAIZE:183.0,FER1_MAIZE:183.0):30.5,((Q7XA98_TRIPR:90.0,FER1_PEA:90.0):83.32143,(((FER2_ARATH:64.0,FER1_ARATH:64.0):94.375,(FER1_SPIOL:124.5,FER1_MESCR:124.5):33.875):6.4166718,((Q93XJ9_SOLTU:33.5,FER1_SOLLC:33.5):49.0,FER_CAPAN:82.5):82.29167):8.529755):40.178574):57.95456):29.239868);
+++ /dev/null
-var deployJava=function(){var l={core:["id","class","title","style"],i18n:["lang","dir"],events:["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmousemove","onmouseout","onkeypress","onkeydown","onkeyup"],applet:["codebase","code","name","archive","object","width","height","alt","align","hspace","vspace"],object:["classid","codebase","codetype","data","type","archive","declare","standby","height","width","usemap","name","tabindex","align","border","hspace","vspace"]};var b=l.object.concat(l.core,l.i18n,l.events);var m=l.applet.concat(l.core);function g(o){if(!d.debug){return}if(console.log){console.log(o)}else{alert(o)}}function k(p,o){if(p==null||p.length==0){return true}var r=p.charAt(p.length-1);if(r!="+"&&r!="*"&&(p.indexOf("_")!=-1&&r!="_")){p=p+"*";r="*"}p=p.substring(0,p.length-1);if(p.length>0){var q=p.charAt(p.length-1);if(q=="."||q=="_"){p=p.substring(0,p.length-1)}}if(r=="*"){return(o.indexOf(p)==0)}else{if(r=="+"){return p<=o}}return false}function e(){var o="//java.com/js/webstart.png";try{return document.location.protocol.indexOf("http")!=-1?o:"http:"+o}catch(p){return"http:"+o}}function n(p){var o="http://java.com/dt-redirect";if(p==null||p.length==0){return o}if(p.charAt(0)=="&"){p=p.substring(1,p.length)}return o+"?"+p}function j(q,p){var o=q.length;for(var r=0;r<o;r++){if(q[r]===p){return true}}return false}function c(o){return j(m,o.toLowerCase())}function i(o){return j(b,o.toLowerCase())}function a(o){if("MSIE"!=deployJava.browserName){return true}if(deployJava.compareVersionToPattern(deployJava.getPlugin().version,["10","0","0"],false,true)){return true}if(o==null){return false}return !k("1.6.0_33+",o)}var d={debug:null,version:"20120801",firefoxJavaVersion:null,myInterval:null,preInstallJREList:null,returnPage:null,brand:null,locale:null,installType:null,EAInstallEnabled:false,EarlyAccessURL:null,oldMimeType:"application/npruntime-scriptable-plugin;DeploymentToolkit",mimeType:"application/java-deployment-toolkit",launchButtonPNG:e(),browserName:null,browserName2:null,getJREs:function(){var t=new Array();if(this.isPluginInstalled()){var r=this.getPlugin();var o=r.jvms;for(var q=0;q<o.getLength();q++){t[q]=o.get(q).version}}else{var p=this.getBrowser();if(p=="MSIE"){if(this.testUsingActiveX("1.7.0")){t[0]="1.7.0"}else{if(this.testUsingActiveX("1.6.0")){t[0]="1.6.0"}else{if(this.testUsingActiveX("1.5.0")){t[0]="1.5.0"}else{if(this.testUsingActiveX("1.4.2")){t[0]="1.4.2"}else{if(this.testForMSVM()){t[0]="1.1"}}}}}}else{if(p=="Netscape Family"){this.getJPIVersionUsingMimeType();if(this.firefoxJavaVersion!=null){t[0]=this.firefoxJavaVersion}else{if(this.testUsingMimeTypes("1.7")){t[0]="1.7.0"}else{if(this.testUsingMimeTypes("1.6")){t[0]="1.6.0"}else{if(this.testUsingMimeTypes("1.5")){t[0]="1.5.0"}else{if(this.testUsingMimeTypes("1.4.2")){t[0]="1.4.2"}else{if(this.browserName2=="Safari"){if(this.testUsingPluginsArray("1.7.0")){t[0]="1.7.0"}else{if(this.testUsingPluginsArray("1.6")){t[0]="1.6.0"}else{if(this.testUsingPluginsArray("1.5")){t[0]="1.5.0"}else{if(this.testUsingPluginsArray("1.4.2")){t[0]="1.4.2"}}}}}}}}}}}}}if(this.debug){for(var q=0;q<t.length;++q){g("[getJREs()] We claim to have detected Java SE "+t[q])}}return t},installJRE:function(r,p){var o=false;if(this.isPluginInstalled()&&this.isAutoInstallEnabled(r)){var q=false;if(this.isCallbackSupported()){q=this.getPlugin().installJRE(r,p)}else{q=this.getPlugin().installJRE(r)}if(q){this.refresh();if(this.returnPage!=null){document.location=this.returnPage}}return q}else{return this.installLatestJRE()}},isAutoInstallEnabled:function(o){if(!this.isPluginInstalled()){return false}if(typeof o=="undefined"){o=null}return a(o)},isCallbackSupported:function(){return this.isPluginInstalled()&&this.compareVersionToPattern(this.getPlugin().version,["10","2","0"],false,true)},installLatestJRE:function(q){if(this.isPluginInstalled()&&this.isAutoInstallEnabled()){var r=false;if(this.isCallbackSupported()){r=this.getPlugin().installLatestJRE(q)}else{r=this.getPlugin().installLatestJRE()}if(r){this.refresh();if(this.returnPage!=null){document.location=this.returnPage}}return r}else{var p=this.getBrowser();var o=navigator.platform.toLowerCase();if((this.EAInstallEnabled=="true")&&(o.indexOf("win")!=-1)&&(this.EarlyAccessURL!=null)){this.preInstallJREList=this.getJREs();if(this.returnPage!=null){this.myInterval=setInterval("deployJava.poll()",3000)}location.href=this.EarlyAccessURL;return false}else{if(p=="MSIE"){return this.IEInstall()}else{if((p=="Netscape Family")&&(o.indexOf("win32")!=-1)){return this.FFInstall()}else{location.href=n(((this.returnPage!=null)?("&returnPage="+this.returnPage):"")+((this.locale!=null)?("&locale="+this.locale):"")+((this.brand!=null)?("&brand="+this.brand):""))}}return false}}},runApplet:function(p,u,r){if(r=="undefined"||r==null){r="1.1"}var t="^(\\d+)(?:\\.(\\d+)(?:\\.(\\d+)(?:_(\\d+))?)?)?$";var o=r.match(t);if(this.returnPage==null){this.returnPage=document.location}if(o!=null){var q=this.getBrowser();if(q!="?"){if(this.versionCheck(r+"+")){this.writeAppletTag(p,u)}else{if(this.installJRE(r+"+")){this.refresh();location.href=document.location;this.writeAppletTag(p,u)}}}else{this.writeAppletTag(p,u)}}else{g("[runApplet()] Invalid minimumVersion argument to runApplet():"+r)}},writeAppletTag:function(r,w){var o="<"+"applet ";var q="";var t="<"+"/"+"applet"+">";var x=true;if(null==w||typeof w!="object"){w=new Object()}for(var p in r){if(!c(p)){w[p]=r[p]}else{o+=(" "+p+'="'+r[p]+'"');if(p=="code"){x=false}}}var v=false;for(var u in w){if(u=="codebase_lookup"){v=true}if(u=="object"||u=="java_object"||u=="java_code"){x=false}q+='<param name="'+u+'" value="'+w[u]+'"/>'}if(!v){q+='<param name="codebase_lookup" value="false"/>'}if(x){o+=(' code="dummy"')}o+=">";document.write(o+"\n"+q+"\n"+t)},versionCheck:function(p){var v=0;var x="^(\\d+)(?:\\.(\\d+)(?:\\.(\\d+)(?:_(\\d+))?)?)?(\\*|\\+)?$";var y=p.match(x);if(y!=null){var r=false;var u=false;var q=new Array();for(var t=1;t<y.length;++t){if((typeof y[t]=="string")&&(y[t]!="")){q[v]=y[t];v++}}if(q[q.length-1]=="+"){u=true;r=false;q.length--}else{if(q[q.length-1]=="*"){u=false;r=true;q.length--}else{if(q.length<4){u=false;r=true}}}var w=this.getJREs();for(var t=0;t<w.length;++t){if(this.compareVersionToPattern(w[t],q,r,u)){return true}}return false}else{var o="Invalid versionPattern passed to versionCheck: "+p;g("[versionCheck()] "+o);alert(o);return false}},isWebStartInstalled:function(r){var q=this.getBrowser();if(q=="?"){return true}if(r=="undefined"||r==null){r="1.4.2"}var p=false;var t="^(\\d+)(?:\\.(\\d+)(?:\\.(\\d+)(?:_(\\d+))?)?)?$";var o=r.match(t);if(o!=null){p=this.versionCheck(r+"+")}else{g("[isWebStartInstaller()] Invalid minimumVersion argument to isWebStartInstalled(): "+r);p=this.versionCheck("1.4.2+")}return p},getJPIVersionUsingMimeType:function(){for(var p=0;p<navigator.mimeTypes.length;++p){var q=navigator.mimeTypes[p].type;var o=q.match(/^application\/x-java-applet;jpi-version=(.*)$/);if(o!=null){this.firefoxJavaVersion=o[1];if("Opera"!=this.browserName2){break}}}},launchWebStartApplication:function(r){var o=navigator.userAgent.toLowerCase();this.getJPIVersionUsingMimeType();if(this.isWebStartInstalled("1.7.0")==false){if((this.installJRE("1.7.0+")==false)||((this.isWebStartInstalled("1.7.0")==false))){return false}}var u=null;if(document.documentURI){u=document.documentURI}if(u==null){u=document.URL}var p=this.getBrowser();var q;if(p=="MSIE"){q="<"+'object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" '+'width="0" height="0">'+"<"+'PARAM name="launchjnlp" value="'+r+'"'+">"+"<"+'PARAM name="docbase" value="'+u+'"'+">"+"<"+"/"+"object"+">"}else{if(p=="Netscape Family"){q="<"+'embed type="application/x-java-applet;jpi-version='+this.firefoxJavaVersion+'" '+'width="0" height="0" '+'launchjnlp="'+r+'"'+'docbase="'+u+'"'+" />"}}if(document.body=="undefined"||document.body==null){document.write(q);document.location=u}else{var t=document.createElement("div");t.id="div1";t.style.position="relative";t.style.left="-10000px";t.style.margin="0px auto";t.className="dynamicDiv";t.innerHTML=q;document.body.appendChild(t)}},createWebStartLaunchButtonEx:function(q,p){if(this.returnPage==null){this.returnPage=q}var o="javascript:deployJava.launchWebStartApplication('"+q+"');";document.write("<"+'a href="'+o+"\" onMouseOver=\"window.status=''; "+'return true;"><'+"img "+'src="'+this.launchButtonPNG+'" '+'border="0" /><'+"/"+"a"+">")},createWebStartLaunchButton:function(q,p){if(this.returnPage==null){this.returnPage=q}var o="javascript:"+"if (!deployJava.isWebStartInstalled(""+p+"")) {"+"if (deployJava.installLatestJRE()) {"+"if (deployJava.launch(""+q+"")) {}"+"}"+"} else {"+"if (deployJava.launch(""+q+"")) {}"+"}";document.write("<"+'a href="'+o+"\" onMouseOver=\"window.status=''; "+'return true;"><'+"img "+'src="'+this.launchButtonPNG+'" '+'border="0" /><'+"/"+"a"+">")},launch:function(o){document.location=o;return true},isPluginInstalled:function(){var o=this.getPlugin();if(o&&o.jvms){return true}else{return false}},isAutoUpdateEnabled:function(){if(this.isPluginInstalled()){return this.getPlugin().isAutoUpdateEnabled()}return false},setAutoUpdateEnabled:function(){if(this.isPluginInstalled()){return this.getPlugin().setAutoUpdateEnabled()}return false},setInstallerType:function(o){this.installType=o;if(this.isPluginInstalled()){return this.getPlugin().setInstallerType(o)}return false},setAdditionalPackages:function(o){if(this.isPluginInstalled()){return this.getPlugin().setAdditionalPackages(o)}return false},setEarlyAccess:function(o){this.EAInstallEnabled=o},isPlugin2:function(){if(this.isPluginInstalled()){if(this.versionCheck("1.6.0_10+")){try{return this.getPlugin().isPlugin2()}catch(o){}}}return false},allowPlugin:function(){this.getBrowser();var o=("Safari"!=this.browserName2&&"Opera"!=this.browserName2);return o},getPlugin:function(){this.refresh();var o=null;if(this.allowPlugin()){o=document.getElementById("deployJavaPlugin")}return o},compareVersionToPattern:function(v,p,r,t){if(v==undefined||p==undefined){return false}var w="^(\\d+)(?:\\.(\\d+)(?:\\.(\\d+)(?:_(\\d+))?)?)?$";var x=v.match(w);if(x!=null){var u=0;var y=new Array();for(var q=1;q<x.length;++q){if((typeof x[q]=="string")&&(x[q]!="")){y[u]=x[q];u++}}var o=Math.min(y.length,p.length);if(t){for(var q=0;q<o;++q){if(y[q]<p[q]){return false}else{if(y[q]>p[q]){return true}}}return true}else{for(var q=0;q<o;++q){if(y[q]!=p[q]){return false}}if(r){return true}else{return(y.length==p.length)}}}else{return false}},getBrowser:function(){if(this.browserName==null){var o=navigator.userAgent.toLowerCase();g("[getBrowser()] navigator.userAgent.toLowerCase() -> "+o);if((o.indexOf("msie")!=-1)&&(o.indexOf("opera")==-1)){this.browserName="MSIE";this.browserName2="MSIE"}else{if(o.indexOf("trident")!=-1||o.indexOf("Trident")!=-1){this.browserName="MSIE";this.browserName2="MSIE"}else{if(o.indexOf("iphone")!=-1){this.browserName="Netscape Family";this.browserName2="iPhone"}else{if((o.indexOf("firefox")!=-1)&&(o.indexOf("opera")==-1)){this.browserName="Netscape Family";this.browserName2="Firefox"}else{if(o.indexOf("chrome")!=-1){this.browserName="Netscape Family";this.browserName2="Chrome"}else{if(o.indexOf("safari")!=-1){this.browserName="Netscape Family";this.browserName2="Safari"}else{if((o.indexOf("mozilla")!=-1)&&(o.indexOf("opera")==-1)){this.browserName="Netscape Family";this.browserName2="Other"}else{if(o.indexOf("opera")!=-1){this.browserName="Netscape Family";this.browserName2="Opera"}else{this.browserName="?";this.browserName2="unknown"}}}}}}}}g("[getBrowser()] Detected browser name:"+this.browserName+", "+this.browserName2)}return this.browserName},testUsingActiveX:function(o){var q="JavaWebStart.isInstalled."+o+".0";if(typeof ActiveXObject=="undefined"||!ActiveXObject){g("[testUsingActiveX()] Browser claims to be IE, but no ActiveXObject object?");return false}try{return(new ActiveXObject(q)!=null)}catch(p){return false}},testForMSVM:function(){var p="{08B0E5C0-4FCB-11CF-AAA5-00401C608500}";if(typeof oClientCaps!="undefined"){var o=oClientCaps.getComponentVersion(p,"ComponentID");if((o=="")||(o=="5,0,5000,0")){return false}else{return true}}else{return false}},testUsingMimeTypes:function(p){if(!navigator.mimeTypes){g("[testUsingMimeTypes()] Browser claims to be Netscape family, but no mimeTypes[] array?");return false}for(var q=0;q<navigator.mimeTypes.length;++q){s=navigator.mimeTypes[q].type;var o=s.match(/^application\/x-java-applet\x3Bversion=(1\.8|1\.7|1\.6|1\.5|1\.4\.2)$/);if(o!=null){if(this.compareVersions(o[1],p)){return true}}}return false},testUsingPluginsArray:function(p){if((!navigator.plugins)||(!navigator.plugins.length)){return false}var o=navigator.platform.toLowerCase();for(var q=0;q<navigator.plugins.length;++q){s=navigator.plugins[q].description;if(s.search(/^Java Switchable Plug-in (Cocoa)/)!=-1){if(this.compareVersions("1.5.0",p)){return true}}else{if(s.search(/^Java/)!=-1){if(o.indexOf("win")!=-1){if(this.compareVersions("1.5.0",p)||this.compareVersions("1.6.0",p)){return true}}}}}if(this.compareVersions("1.5.0",p)){return true}return false},IEInstall:function(){location.href=n(((this.returnPage!=null)?("&returnPage="+this.returnPage):"")+((this.locale!=null)?("&locale="+this.locale):"")+((this.brand!=null)?("&brand="+this.brand):""));return false},done:function(p,o){},FFInstall:function(){location.href=n(((this.returnPage!=null)?("&returnPage="+this.returnPage):"")+((this.locale!=null)?("&locale="+this.locale):"")+((this.brand!=null)?("&brand="+this.brand):"")+((this.installType!=null)?("&type="+this.installType):""));return false},compareVersions:function(r,t){var p=r.split(".");var o=t.split(".");for(var q=0;q<p.length;++q){p[q]=Number(p[q])}for(var q=0;q<o.length;++q){o[q]=Number(o[q])}if(p.length==2){p[2]=0}if(p[0]>o[0]){return true}if(p[0]<o[0]){return false}if(p[1]>o[1]){return true}if(p[1]<o[1]){return false}if(p[2]>o[2]){return true}if(p[2]<o[2]){return false}return true},enableAlerts:function(){this.browserName=null;this.debug=true},poll:function(){this.refresh();var o=this.getJREs();if((this.preInstallJREList.length==0)&&(o.length!=0)){clearInterval(this.myInterval);if(this.returnPage!=null){location.href=this.returnPage}}if((this.preInstallJREList.length!=0)&&(o.length!=0)&&(this.preInstallJREList[0]!=o[0])){clearInterval(this.myInterval);if(this.returnPage!=null){location.href=this.returnPage}}},writePluginTag:function(){var o=this.getBrowser();if(o=="MSIE"){document.write("<"+'object classid="clsid:CAFEEFAC-DEC7-0000-0001-ABCDEFFEDCBA" '+'id="deployJavaPlugin" width="0" height="0">'+"<"+"/"+"object"+">")}else{if(o=="Netscape Family"&&this.allowPlugin()){this.writeEmbedTag()}}},refresh:function(){navigator.plugins.refresh(false);var o=this.getBrowser();if(o=="Netscape Family"&&this.allowPlugin()){var p=document.getElementById("deployJavaPlugin");if(p==null){this.writeEmbedTag()}}},writeEmbedTag:function(){var o=false;if(navigator.mimeTypes!=null){for(var p=0;p<navigator.mimeTypes.length;p++){if(navigator.mimeTypes[p].type==this.mimeType){if(navigator.mimeTypes[p].enabledPlugin){document.write("<"+'embed id="deployJavaPlugin" type="'+this.mimeType+'" hidden="true" />');o=true}}}if(!o){for(var p=0;p<navigator.mimeTypes.length;p++){if(navigator.mimeTypes[p].type==this.oldMimeType){if(navigator.mimeTypes[p].enabledPlugin){document.write("<"+'embed id="deployJavaPlugin" type="'+this.oldMimeType+'" hidden="true" />')}}}}}}};d.writePluginTag();if(d.locale==null){var h=null;if(h==null){try{h=navigator.userLanguage}catch(f){}}if(h==null){try{h=navigator.systemLanguage}catch(f){}}if(h==null){try{h=navigator.language}catch(f){}}if(h!=null){h.replace("-","_");d.locale=h}}return d}();
\ No newline at end of file
+++ /dev/null
-/**
- * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
- * Copyright (C) $$Year-Rel$$ The Jalview Authors
- *
- * This file is part of Jalview.
- *
- * Jalview is free software: you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
- *
- * Jalview is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty
- * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
- * The Jalview Authors are detailed in the 'AUTHORS' file.
- */
-
-// default console to report messages
-var _console = document.getElementById("stdout");
-var _jvapps = new Array();
-// jvjmols is a list associating a jmol id to { modelstofiles }
-var _jvjmols = new Hashtable();
-// array of model names used to lookup index in Jmol
-var _modeltofiles = new Array();
-// counter for jmol structures
-var mnum = 1;
-
-function getDocumentBase() {
- var dburi = document.baseURI;
- // IE does not support document.baseURI
- // logic from patch to TYPO3:
- // http://forge.typo3.org/projects/typo3cms-core/repository/revisions/f61358afad28adb6dcaeb270ba480e998dfb0b79/diff/typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js
- if (!dburi) {
- var baseTags = document.getElementsByTagName('base');
- if (baseTags.length > 0) {
- dburi = baseTags[0].href;
- } else {
- dburi = document.URL;
- }
- }
- return dburi.substring(0, dburi.lastIndexOf("/") + 1);
-}
-function setConsole(console) {
- _console = console;
-}
-
-function getDestinationFrms(source, frames) {
- var frms = new Array();
- var frid = "";
- for (frm in frames) {
- try {
- frid = (source!=null) && (("" + source.getSequenceSetId()) == ("" + frames[frm].currentAlignFrame
- .getSequenceSetId()));
- } catch (q) {
- };
-
- if (!frames[frm].equals(source) && !frid
- && !frames[frm].currentAlignFrame.equals(source)) {
- frms[frms.length] = frames[frm];
- }
- }
- return frms;
-}
-
-function mouseover(list1, list2, list3, list4) {
- // list1 = new Object(list1);
- var list = new Array(("" + list1), ("" + list2), ("" + list3), ("" + list4));
- var msg = "Mouse over :\n" + "AlignFrame obj: " + list1 + " Seq : "
- + list[1] + "\nPos: " + list[2] + "(" + list[3] + ")\n";
-
- var flist = getDestinationFrms(list1, _jvapps);
- if (_console) {
- _console.value = msg + "\n";
- }
-
- for (follower in flist) {
- if (_console) {
- _console.value += "Sending to " + flist[follower] + "\n";
- }
- flist[follower].highlight(list[1], list[2], "true");
- }
- return true;
-}
-
-function sellist(list1, list2, list3, list4) {
- // list1 = new Object(list1);
- var list = new Array(("" + list1), ("" + list2), ("" + list3), ("" + list4));
- var msg = "Selection:\n" + "AlignFrame obj: " + list[0] + " id : "
- + list[1] + "\nSeqs " + list[2] + "\nColumns " + list[3] + "\n";
- var flist = getDestinationFrms(list1, _jvapps);
- if (_console) {
- _console.value = msg + "\n";
- }
-
- for (follower in flist) {
- if (_console) {
- _console.value += "Sending to " + flist[follower] + "\n";
- }
- flist[follower].selectIn(flist[follower].getDefaultTargetFrame(),
- list[2], list[3])
- }
- return true;
-}
-
-function viewlist(list1, list2, list3, list4) {
- // list1 = new Object(list1);
- var list = new Array(("" + list1), ("" + list2), ("" + list3), ("" + list4));
- var msg = "Viewport extent change::\n" + "AlignFrame obj: " + list[0]
- + " id : " + list[1] + "\nRow from " + list[2] + " and to "
- + list[3] + "\nVisible columns: " + list[4] + "\n";
- var flist = getDestinationFrms(list1, _jvapps);
- if (_console) {
- _console.value = msg + "\n";
- }
-
- for (follower in flist) {
- if (_console) {
- _console.value += "Sending to " + flist[follower] + "\n";
- }
- flist[follower].scrollToViewIn(flist[follower].getDefaultTargetFrame(),
- list[2], "-1");
- }
- return true;
-}
-
-// register a jalview applet and add some handlers to it
-// jmolView is a reference to a jmol applet that is displaying the PDB files listed (in order) in the modeltofiles Array
-function linkJvJmol(applet, jmolView, modeltofiles) {
- var i = _jvapps.length;
- while (i--) {
- if (_jvapps[i].equals(applet)) {
- throw ("Ignoring additional linkJvJmol call for "
- + applet.getName() + ".");
- }
- }
- _jvapps[_jvapps.length] = applet;
- applet.setMouseoverListener("mouseover");
- applet.setSelectionListener("sellist");
- // viewListener not fully implemented in 2.7
- // try { applet.setViewListener("viewlist"); } catch (err) {};
- if (jmolView)
- {
- var sep = applet.getSeparator();
- var oldjm=jmolView;
- // recover full id of Jmol applet
- jmolView=_jmolGetApplet(jmolView).id;
- var jmbinding=_jvjmols.get(jmolView);
- if (!jmbinding)
- {
- jmbinding=new Object();
- jmbinding._modelstofiles=new Array();
- jmbinding._fullmpath=new Array();
- jmbinding._filetonum=new Hashtable();
- jmbinding._jmol=jmolView;
- jmbinding._jmhandle=oldjm;
- _jvjmols.put(jmolView,jmbinding);
- }
-
- jmbinding._modelstofiles=jmbinding._modelstofiles.concat(jmbinding._modelstofiles,modeltofiles);
- jmbinding._jmol=jmolView;
- // now update structureListener list
- mtf="";
- var dbase = getDocumentBase();
- for (m in jmbinding._modelstofiles)
- { if (m>0) { mtf+=sep; }
- mtf+=jmbinding._modelstofiles[m];
- if (jmbinding._modelstofiles[m].indexOf("//")==-1)
- { jmbinding._fullmpath[m] = dbase+((jmbinding._modelstofiles[m].indexOf("/")==0) ? jmbinding._modelstofiles[m].substring(1) : jmbinding._modelstofiles[m]); }
- jmbinding._filetonum.put(jmbinding._modelstofiles[m], m+1);
- jmbinding._filetonum.put(jmbinding._fullmpath[m], m+1);
-
- }
- applet.setStructureListener("_structure", mtf);
- }
-}
-
-/*function _addJmolModel(jmolid, modelname) {
- modelname=""+modelname;
- var jminf = _jvjmols[jmolid];
- if (!jminf) {
- jminf = new Object();
- jminf._modelstofiles = new Array(); //new Hashtable();
- jminf._jmol = jmolid;
- jminf._modellist=new Array();
- _jvjmols[jmolid] = jminf;
- }
- var obj = new Object();
- jminf._modeltofiles[modelname] = obj; // .put(modelname, obj);
- obj.id = modelname;
- obj.mnum = jminf._modeltofiles.length;
- jminf._modellist+=modelname;
-}*/
-
-
-
-// jmol Jalview Methods
-
-function _structure(list1, list2, list3, list4) {
- var follower;
- // if (_console) { if (!_console.value) { _console.value="";} }
- if (list1 == "mouseover") {
- var list = new Array(("" + list1), ("" + list2), ("" + list3),
- ("" + list4));
- // 1 is pdb file, 2 is residue number, 3 is chain
- // list1 = new Object(list1);
- var base = list[1].indexOf(getDocumentBase()); // .indexOf(_path);
- if (base==0) { base = getDocumentBase(); }
- var sid = list[1]; // .substring(base);
- base = list[1].substring(0, base);
- if (_console) {
- _console.value += "Model is " + list[1] + ", Structure id is : "
- + sid + "\n";
- }
- ;
- var siddat;
- for ( var jmolappi in _jvjmols.values()) {
- var jmolapp=_jvjmols.values()[jmolappi];
- var msg = "";
- if (siddat = jmolapp._filetonum.get(sid)) {
- // we don't putin chain number because there isn't one ?
- // skip select 0 bit
- var ch = ""+list[3];
- if ((""+list[2]).trim().length==1)
- {
- ch+=":"+list[2];
- }
- msg = "select (" + ch + " /" + siddat + ") ;";
- }
- if (msg) {
- if (_console) {
- _console.value += "Sending '" + msg + "' to jmol." + "\n";
- }
- }
- jmolScriptWait(msg, "" + jmolapp._jmhandle);
- // only do highlight for one jmol ?
- // return 1;
- }
- }
- if (list1 == "colourstruct") {
- if (_console) {
- _console.value += 'colourStruct("' + list1 + '","' + list2
- + '") [' + list4 + ']' + "\n";
- }
- setTimeout('colourStruct("'+list4+'","' + list1 + '","' + list2 + '")', 1);
- return 1;
- }
- return 1;
-}
-// last colour message
-var _lastMsg = "";
-// indicator - if _colourStruct==0 then no colouring is going on
-var _colourStruct = 0;
-
-function colourStruct(involves, msg, handle) {
- if (_colourStruct == 0) {
- _colourStruct = 1;
- for (ap in _jvapps) {
- var _msg = "";
- do {
- if (_msg.match(/\S/)) {
- _lastMsg += _msg;
- }
- _msg = "" + _jvapps[ap].getJsMessage(msg, handle);
- } while (_msg.match(/\S/));
- }
- // locate the jmol that should get the message
- for (var jmol in _jvjmols.values())
- {
- var jml=_jvjmols.values()[jmol];
- if (jml._filetonum.get(involves))
- {
- colourStructs(jml._jmhandle);
- }
- }
- _colourStruct = 0;
- } else {
- // setTimeout('colourStruct("'+msg+'","'+handle+'")',3);
- }
-}
-
-function colourStructs(jmolapp) {
- dbg(0, "Colouring the structures\n");
- jmolScriptWait("set selectionhalos false;" + _lastMsg
- + "; select 0; set selectionhalos true;", jmolapp);
- _lastMsg = "";
-}
-var _jmolhovermsg="";
-function _jmolhover(jmid, atomlabel, atomidx) {
- var msg=""+jmid+" "+atomlabel+" "+atomidx;
- if (_jmolhovermsg==msg)
- {
- return;
- }
- _jmolhovermsg=msg;
- modeltofiles = _jvjmols.get(jmid)._modelstofiles;
- // atomlabel=(""+atomlabel).match(/\[(.+)\](\d+):(.)\.(\S+)\s*\/(\d+)\..+/);
- // relaxed third parameter - may be null or a model number for multi model
- // views
- atomlabel = ("" + atomlabel)
- .match(/\[(.+)\](\d+):(.)\.([^\/]+)(\/\d+\.|).+/);
- atomidx = "" + atomidx;
- if (atomlabel[5]) {
- atomlabel[5] = atomlabel[5].match(/\/(.+)\./)[1];
- atomlabel[5] = parseInt(atomlabel[5])-1;
- } else {
- // default - first model
- atomlabel[5] = 0;
- }
- // use atomlabel[5] to look up model filename so we can highlight associated positions in any jalviews
- for (ap in _jvapps) {
- _jvapps[ap].mouseOverStructure(atomlabel[2], atomlabel[3],
- getDocumentBase()
- + "/" +
- modeltofiles[atomlabel[5]]);
- msg = _jmolhovermsg;
- }
-}
-function _jmolpick(jmid, atomlabel, atomidx) {
- atomlabel = "" + atomlabel;
- atomidx = "" + atomidx;
- // label is atom id, atom number, and xyz coordinates in the form:
- // C6 #6 -0.30683374 -1.6836332 -0.716934
- // atom index, starting with 0.
-
-}
-function _jmolMessagecallback(jmid, statmess) {
- // if (statmess.indexOf("Script Terminated")==0)
- {
- var thisTime = new Date();
- if (_console) {
- _console.value += "Last script execution took : "
- + (thisTime.valueOf() - _lastTime.valueOf()) / 1000.0
- + " seconds.";
- }
- _lastTime = thisTime;
-
- }
-}
+++ /dev/null
-/*!
- * jQuery JavaScript Library v1.4.4
- * http://jquery.com/
- *
- * Copyright 2010, John Resig
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- * Copyright 2010, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- *
- * Date: Thu Nov 11 19:04:53 2010 -0500
- */
-(function(E,B){function ka(a,b,d){if(d===B&&a.nodeType===1){d=a.getAttribute("data-"+b);if(typeof d==="string"){try{d=d==="true"?true:d==="false"?false:d==="null"?null:!c.isNaN(d)?parseFloat(d):Ja.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=B}return d}function U(){return false}function ca(){return true}function la(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function Ka(a){var b,d,e,f,h,l,k,o,x,r,A,C=[];f=[];h=c.data(this,this.nodeType?"events":"__events__");if(typeof h==="function")h=
-h.events;if(!(a.liveFired===this||!h||!h.live||a.button&&a.type==="click")){if(a.namespace)A=RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");a.liveFired=this;var J=h.live.slice(0);for(k=0;k<J.length;k++){h=J[k];h.origType.replace(X,"")===a.type?f.push(h.selector):J.splice(k--,1)}f=c(a.target).closest(f,a.currentTarget);o=0;for(x=f.length;o<x;o++){r=f[o];for(k=0;k<J.length;k++){h=J[k];if(r.selector===h.selector&&(!A||A.test(h.namespace))){l=r.elem;e=null;if(h.preType==="mouseenter"||
-h.preType==="mouseleave"){a.type=h.preType;e=c(a.relatedTarget).closest(h.selector)[0]}if(!e||e!==l)C.push({elem:l,handleObj:h,level:r.level})}}}o=0;for(x=C.length;o<x;o++){f=C[o];if(d&&f.level>d)break;a.currentTarget=f.elem;a.data=f.handleObj.data;a.handleObj=f.handleObj;A=f.handleObj.origHandler.apply(f.elem,arguments);if(A===false||a.isPropagationStopped()){d=f.level;if(A===false)b=false;if(a.isImmediatePropagationStopped())break}}return b}}function Y(a,b){return(a&&a!=="*"?a+".":"")+b.replace(La,
-"`").replace(Ma,"&")}function ma(a,b,d){if(c.isFunction(b))return c.grep(a,function(f,h){return!!b.call(f,h,f)===d});else if(b.nodeType)return c.grep(a,function(f){return f===b===d});else if(typeof b==="string"){var e=c.grep(a,function(f){return f.nodeType===1});if(Na.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=0===d})}function na(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var e=c.data(a[d++]),f=c.data(this,
-e);if(e=e&&e.events){delete f.handle;f.events={};for(var h in e)for(var l in e[h])c.event.add(this,h,e[h][l],e[h][l].data)}}})}function Oa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function oa(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight;if(d==="border")return e;c.each(b==="width"?Pa:Qa,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);if(d==="margin")e+=parseFloat(c.css(a,
-"margin"+this))||0;else e-=parseFloat(c.css(a,"border"+this+"Width"))||0});return e}function da(a,b,d,e){if(c.isArray(b)&&b.length)c.each(b,function(f,h){d||Ra.test(a)?e(a,h):da(a+"["+(typeof h==="object"||c.isArray(h)?f:"")+"]",h,d,e)});else if(!d&&b!=null&&typeof b==="object")c.isEmptyObject(b)?e(a,""):c.each(b,function(f,h){da(a+"["+f+"]",h,d,e)});else e(a,b)}function S(a,b){var d={};c.each(pa.concat.apply([],pa.slice(0,b)),function(){d[this]=a});return d}function qa(a){if(!ea[a]){var b=c("<"+
-a+">").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d==="")d="block";ea[a]=d}return ea[a]}function fa(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var t=E.document,c=function(){function a(){if(!b.isReady){try{t.documentElement.doScroll("left")}catch(j){setTimeout(a,1);return}b.ready()}}var b=function(j,s){return new b.fn.init(j,s)},d=E.jQuery,e=E.$,f,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,l=/\S/,k=/^\s+/,o=/\s+$/,x=/\W/,r=/\d/,A=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,
-C=/^[\],:{}\s]*$/,J=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,w=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,I=/(?:^|:|,)(?:\s*\[)+/g,L=/(webkit)[ \/]([\w.]+)/,g=/(opera)(?:.*version)?[ \/]([\w.]+)/,i=/(msie) ([\w.]+)/,n=/(mozilla)(?:.*? rv:([\w.]+))?/,m=navigator.userAgent,p=false,q=[],u,y=Object.prototype.toString,F=Object.prototype.hasOwnProperty,M=Array.prototype.push,N=Array.prototype.slice,O=String.prototype.trim,D=Array.prototype.indexOf,R={};b.fn=b.prototype={init:function(j,
-s){var v,z,H;if(!j)return this;if(j.nodeType){this.context=this[0]=j;this.length=1;return this}if(j==="body"&&!s&&t.body){this.context=t;this[0]=t.body;this.selector="body";this.length=1;return this}if(typeof j==="string")if((v=h.exec(j))&&(v[1]||!s))if(v[1]){H=s?s.ownerDocument||s:t;if(z=A.exec(j))if(b.isPlainObject(s)){j=[t.createElement(z[1])];b.fn.attr.call(j,s,true)}else j=[H.createElement(z[1])];else{z=b.buildFragment([v[1]],[H]);j=(z.cacheable?z.fragment.cloneNode(true):z.fragment).childNodes}return b.merge(this,
-j)}else{if((z=t.getElementById(v[2]))&&z.parentNode){if(z.id!==v[2])return f.find(j);this.length=1;this[0]=z}this.context=t;this.selector=j;return this}else if(!s&&!x.test(j)){this.selector=j;this.context=t;j=t.getElementsByTagName(j);return b.merge(this,j)}else return!s||s.jquery?(s||f).find(j):b(s).find(j);else if(b.isFunction(j))return f.ready(j);if(j.selector!==B){this.selector=j.selector;this.context=j.context}return b.makeArray(j,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length},
-toArray:function(){return N.call(this,0)},get:function(j){return j==null?this.toArray():j<0?this.slice(j)[0]:this[j]},pushStack:function(j,s,v){var z=b();b.isArray(j)?M.apply(z,j):b.merge(z,j);z.prevObject=this;z.context=this.context;if(s==="find")z.selector=this.selector+(this.selector?" ":"")+v;else if(s)z.selector=this.selector+"."+s+"("+v+")";return z},each:function(j,s){return b.each(this,j,s)},ready:function(j){b.bindReady();if(b.isReady)j.call(t,b);else q&&q.push(j);return this},eq:function(j){return j===
--1?this.slice(j):this.slice(j,+j+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(j){return this.pushStack(b.map(this,function(s,v){return j.call(s,v,s)}))},end:function(){return this.prevObject||b(null)},push:M,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var j,s,v,z,H,G=arguments[0]||{},K=1,Q=arguments.length,ga=false;
-if(typeof G==="boolean"){ga=G;G=arguments[1]||{};K=2}if(typeof G!=="object"&&!b.isFunction(G))G={};if(Q===K){G=this;--K}for(;K<Q;K++)if((j=arguments[K])!=null)for(s in j){v=G[s];z=j[s];if(G!==z)if(ga&&z&&(b.isPlainObject(z)||(H=b.isArray(z)))){if(H){H=false;v=v&&b.isArray(v)?v:[]}else v=v&&b.isPlainObject(v)?v:{};G[s]=b.extend(ga,v,z)}else if(z!==B)G[s]=z}return G};b.extend({noConflict:function(j){E.$=e;if(j)E.jQuery=d;return b},isReady:false,readyWait:1,ready:function(j){j===true&&b.readyWait--;
-if(!b.readyWait||j!==true&&!b.isReady){if(!t.body)return setTimeout(b.ready,1);b.isReady=true;if(!(j!==true&&--b.readyWait>0))if(q){var s=0,v=q;for(q=null;j=v[s++];)j.call(t,b);b.fn.trigger&&b(t).trigger("ready").unbind("ready")}}},bindReady:function(){if(!p){p=true;if(t.readyState==="complete")return setTimeout(b.ready,1);if(t.addEventListener){t.addEventListener("DOMContentLoaded",u,false);E.addEventListener("load",b.ready,false)}else if(t.attachEvent){t.attachEvent("onreadystatechange",u);E.attachEvent("onload",
-b.ready);var j=false;try{j=E.frameElement==null}catch(s){}t.documentElement.doScroll&&j&&a()}}},isFunction:function(j){return b.type(j)==="function"},isArray:Array.isArray||function(j){return b.type(j)==="array"},isWindow:function(j){return j&&typeof j==="object"&&"setInterval"in j},isNaN:function(j){return j==null||!r.test(j)||isNaN(j)},type:function(j){return j==null?String(j):R[y.call(j)]||"object"},isPlainObject:function(j){if(!j||b.type(j)!=="object"||j.nodeType||b.isWindow(j))return false;if(j.constructor&&
-!F.call(j,"constructor")&&!F.call(j.constructor.prototype,"isPrototypeOf"))return false;for(var s in j);return s===B||F.call(j,s)},isEmptyObject:function(j){for(var s in j)return false;return true},error:function(j){throw j;},parseJSON:function(j){if(typeof j!=="string"||!j)return null;j=b.trim(j);if(C.test(j.replace(J,"@").replace(w,"]").replace(I,"")))return E.JSON&&E.JSON.parse?E.JSON.parse(j):(new Function("return "+j))();else b.error("Invalid JSON: "+j)},noop:function(){},globalEval:function(j){if(j&&
-l.test(j)){var s=t.getElementsByTagName("head")[0]||t.documentElement,v=t.createElement("script");v.type="text/javascript";if(b.support.scriptEval)v.appendChild(t.createTextNode(j));else v.text=j;s.insertBefore(v,s.firstChild);s.removeChild(v)}},nodeName:function(j,s){return j.nodeName&&j.nodeName.toUpperCase()===s.toUpperCase()},each:function(j,s,v){var z,H=0,G=j.length,K=G===B||b.isFunction(j);if(v)if(K)for(z in j){if(s.apply(j[z],v)===false)break}else for(;H<G;){if(s.apply(j[H++],v)===false)break}else if(K)for(z in j){if(s.call(j[z],
-z,j[z])===false)break}else for(v=j[0];H<G&&s.call(v,H,v)!==false;v=j[++H]);return j},trim:O?function(j){return j==null?"":O.call(j)}:function(j){return j==null?"":j.toString().replace(k,"").replace(o,"")},makeArray:function(j,s){var v=s||[];if(j!=null){var z=b.type(j);j.length==null||z==="string"||z==="function"||z==="regexp"||b.isWindow(j)?M.call(v,j):b.merge(v,j)}return v},inArray:function(j,s){if(s.indexOf)return s.indexOf(j);for(var v=0,z=s.length;v<z;v++)if(s[v]===j)return v;return-1},merge:function(j,
-s){var v=j.length,z=0;if(typeof s.length==="number")for(var H=s.length;z<H;z++)j[v++]=s[z];else for(;s[z]!==B;)j[v++]=s[z++];j.length=v;return j},grep:function(j,s,v){var z=[],H;v=!!v;for(var G=0,K=j.length;G<K;G++){H=!!s(j[G],G);v!==H&&z.push(j[G])}return z},map:function(j,s,v){for(var z=[],H,G=0,K=j.length;G<K;G++){H=s(j[G],G,v);if(H!=null)z[z.length]=H}return z.concat.apply([],z)},guid:1,proxy:function(j,s,v){if(arguments.length===2)if(typeof s==="string"){v=j;j=v[s];s=B}else if(s&&!b.isFunction(s)){v=
-s;s=B}if(!s&&j)s=function(){return j.apply(v||this,arguments)};if(j)s.guid=j.guid=j.guid||s.guid||b.guid++;return s},access:function(j,s,v,z,H,G){var K=j.length;if(typeof s==="object"){for(var Q in s)b.access(j,Q,s[Q],z,H,v);return j}if(v!==B){z=!G&&z&&b.isFunction(v);for(Q=0;Q<K;Q++)H(j[Q],s,z?v.call(j[Q],Q,H(j[Q],s)):v,G);return j}return K?H(j[0],s):B},now:function(){return(new Date).getTime()},uaMatch:function(j){j=j.toLowerCase();j=L.exec(j)||g.exec(j)||i.exec(j)||j.indexOf("compatible")<0&&n.exec(j)||
-[];return{browser:j[1]||"",version:j[2]||"0"}},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(j,s){R["[object "+s+"]"]=s.toLowerCase()});m=b.uaMatch(m);if(m.browser){b.browser[m.browser]=true;b.browser.version=m.version}if(b.browser.webkit)b.browser.safari=true;if(D)b.inArray=function(j,s){return D.call(s,j)};if(!/\s/.test("\u00a0")){k=/^[\s\xA0]+/;o=/[\s\xA0]+$/}f=b(t);if(t.addEventListener)u=function(){t.removeEventListener("DOMContentLoaded",u,
-false);b.ready()};else if(t.attachEvent)u=function(){if(t.readyState==="complete"){t.detachEvent("onreadystatechange",u);b.ready()}};return E.jQuery=E.$=b}();(function(){c.support={};var a=t.documentElement,b=t.createElement("script"),d=t.createElement("div"),e="script"+c.now();d.style.display="none";d.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var f=d.getElementsByTagName("*"),h=d.getElementsByTagName("a")[0],l=t.createElement("select"),
-k=l.appendChild(t.createElement("option"));if(!(!f||!f.length||!h)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:/^0.55$/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:k.selected,deleteExpando:true,optDisabled:false,checkClone:false,
-scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};l.disabled=true;c.support.optDisabled=!k.disabled;b.type="text/javascript";try{b.appendChild(t.createTextNode("window."+e+"=1;"))}catch(o){}a.insertBefore(b,a.firstChild);if(E[e]){c.support.scriptEval=true;delete E[e]}try{delete b.test}catch(x){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function r(){c.support.noCloneEvent=
-false;d.detachEvent("onclick",r)});d.cloneNode(true).fireEvent("onclick")}d=t.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=t.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var r=t.createElement("div");r.style.width=r.style.paddingLeft="1px";t.body.appendChild(r);c.boxModel=c.support.boxModel=r.offsetWidth===2;if("zoom"in r.style){r.style.display="inline";r.style.zoom=
-1;c.support.inlineBlockNeedsLayout=r.offsetWidth===2;r.style.display="";r.innerHTML="<div style='width:4px;'></div>";c.support.shrinkWrapBlocks=r.offsetWidth!==2}r.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";var A=r.getElementsByTagName("td");c.support.reliableHiddenOffsets=A[0].offsetHeight===0;A[0].style.display="";A[1].style.display="none";c.support.reliableHiddenOffsets=c.support.reliableHiddenOffsets&&A[0].offsetHeight===0;r.innerHTML="";t.body.removeChild(r).style.display=
-"none"});a=function(r){var A=t.createElement("div");r="on"+r;var C=r in A;if(!C){A.setAttribute(r,"return;");C=typeof A[r]==="function"}return C};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=f=h=null}})();var ra={},Ja=/^(?:\{.*\}|\[.*\])$/;c.extend({cache:{},uuid:0,expando:"jQuery"+c.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(a,b,d){if(c.acceptData(a)){a=a==E?ra:a;var e=a.nodeType,f=e?a[c.expando]:null,h=
-c.cache;if(!(e&&!f&&typeof b==="string"&&d===B)){if(e)f||(a[c.expando]=f=++c.uuid);else h=a;if(typeof b==="object")if(e)h[f]=c.extend(h[f],b);else c.extend(h,b);else if(e&&!h[f])h[f]={};a=e?h[f]:h;if(d!==B)a[b]=d;return typeof b==="string"?a[b]:a}}},removeData:function(a,b){if(c.acceptData(a)){a=a==E?ra:a;var d=a.nodeType,e=d?a[c.expando]:a,f=c.cache,h=d?f[e]:e;if(b){if(h){delete h[b];d&&c.isEmptyObject(h)&&c.removeData(a)}}else if(d&&c.support.deleteExpando)delete a[c.expando];else if(a.removeAttribute)a.removeAttribute(c.expando);
-else if(d)delete f[e];else for(var l in a)delete a[l]}},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});c.fn.extend({data:function(a,b){var d=null;if(typeof a==="undefined"){if(this.length){var e=this[0].attributes,f;d=c.data(this[0]);for(var h=0,l=e.length;h<l;h++){f=e[h].name;if(f.indexOf("data-")===0){f=f.substr(5);ka(this[0],f,d[f])}}}return d}else if(typeof a==="object")return this.each(function(){c.data(this,
-a)});var k=a.split(".");k[1]=k[1]?"."+k[1]:"";if(b===B){d=this.triggerHandler("getData"+k[1]+"!",[k[0]]);if(d===B&&this.length){d=c.data(this[0],a);d=ka(this[0],a,d)}return d===B&&k[1]?this.data(k[0]):d}else return this.each(function(){var o=c(this),x=[k[0],b];o.triggerHandler("setData"+k[1]+"!",x);c.data(this,a,b);o.triggerHandler("changeData"+k[1]+"!",x)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var e=
-c.data(a,b);if(!d)return e||[];if(!e||c.isArray(d))e=c.data(a,b,c.makeArray(d));else e.push(d);return e}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),e=d.shift();if(e==="inprogress")e=d.shift();if(e){b==="fx"&&d.unshift("inprogress");e.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===B)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,
-a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var sa=/[\n\t]/g,ha=/\s+/,Sa=/\r/g,Ta=/^(?:href|src|style)$/,Ua=/^(?:button|input)$/i,Va=/^(?:button|input|object|select|textarea)$/i,Wa=/^a(?:rea)?$/i,ta=/^(?:radio|checkbox)$/i;c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",
-colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};c.fn.extend({attr:function(a,b){return c.access(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(x){var r=c(this);r.addClass(a.call(this,x,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ha),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===
-1)if(f.className){for(var h=" "+f.className+" ",l=f.className,k=0,o=b.length;k<o;k++)if(h.indexOf(" "+b[k]+" ")<0)l+=" "+b[k];f.className=c.trim(l)}else f.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(o){var x=c(this);x.removeClass(a.call(this,o,x.attr("class")))});if(a&&typeof a==="string"||a===B)for(var b=(a||"").split(ha),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===1&&f.className)if(a){for(var h=(" "+f.className+" ").replace(sa," "),
-l=0,k=b.length;l<k;l++)h=h.replace(" "+b[l]+" "," ");f.className=c.trim(h)}else f.className=""}return this},toggleClass:function(a,b){var d=typeof a,e=typeof b==="boolean";if(c.isFunction(a))return this.each(function(f){var h=c(this);h.toggleClass(a.call(this,f,h.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var f,h=0,l=c(this),k=b,o=a.split(ha);f=o[h++];){k=e?k:!l.hasClass(f);l[k?"addClass":"removeClass"](f)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,
-"__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(sa," ").indexOf(a)>-1)return true;return false},val:function(a){if(!arguments.length){var b=this[0];if(b){if(c.nodeName(b,"option")){var d=b.attributes.value;return!d||d.specified?b.value:b.text}if(c.nodeName(b,"select")){var e=b.selectedIndex;d=[];var f=b.options;b=b.type==="select-one";
-if(e<0)return null;var h=b?e:0;for(e=b?e+1:f.length;h<e;h++){var l=f[h];if(l.selected&&(c.support.optDisabled?!l.disabled:l.getAttribute("disabled")===null)&&(!l.parentNode.disabled||!c.nodeName(l.parentNode,"optgroup"))){a=c(l).val();if(b)return a;d.push(a)}}return d}if(ta.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Sa,"")}return B}var k=c.isFunction(a);return this.each(function(o){var x=c(this),r=a;if(this.nodeType===1){if(k)r=
-a.call(this,o,x.val());if(r==null)r="";else if(typeof r==="number")r+="";else if(c.isArray(r))r=c.map(r,function(C){return C==null?"":C+""});if(c.isArray(r)&&ta.test(this.type))this.checked=c.inArray(x.val(),r)>=0;else if(c.nodeName(this,"select")){var A=c.makeArray(r);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},
-attr:function(a,b,d,e){if(!a||a.nodeType===3||a.nodeType===8)return B;if(e&&b in c.attrFn)return c(a)[b](d);e=a.nodeType!==1||!c.isXMLDoc(a);var f=d!==B;b=e&&c.props[b]||b;var h=Ta.test(b);if((b in a||a[b]!==B)&&e&&!h){if(f){b==="type"&&Ua.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");if(d===null)a.nodeType===1&&a.removeAttribute(b);else a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&
-b.specified?b.value:Va.test(a.nodeName)||Wa.test(a.nodeName)&&a.href?0:B;return a[b]}if(!c.support.style&&e&&b==="style"){if(f)a.style.cssText=""+d;return a.style.cssText}f&&a.setAttribute(b,""+d);if(!a.attributes[b]&&a.hasAttribute&&!a.hasAttribute(b))return B;a=!c.support.hrefNormalized&&e&&h?a.getAttribute(b,2):a.getAttribute(b);return a===null?B:a}});var X=/\.(.*)$/,ia=/^(?:textarea|input|select)$/i,La=/\./g,Ma=/ /g,Xa=/[^\w\s.|`]/g,Ya=function(a){return a.replace(Xa,"\\$&")},ua={focusin:0,focusout:0};
-c.event={add:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(c.isWindow(a)&&a!==E&&!a.frameElement)a=E;if(d===false)d=U;else if(!d)return;var f,h;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;if(h=c.data(a)){var l=a.nodeType?"events":"__events__",k=h[l],o=h.handle;if(typeof k==="function"){o=k.handle;k=k.events}else if(!k){a.nodeType||(h[l]=h=function(){});h.events=k={}}if(!o)h.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,
-arguments):B};o.elem=a;b=b.split(" ");for(var x=0,r;l=b[x++];){h=f?c.extend({},f):{handler:d,data:e};if(l.indexOf(".")>-1){r=l.split(".");l=r.shift();h.namespace=r.slice(0).sort().join(".")}else{r=[];h.namespace=""}h.type=l;if(!h.guid)h.guid=d.guid;var A=k[l],C=c.event.special[l]||{};if(!A){A=k[l]=[];if(!C.setup||C.setup.call(a,e,r,o)===false)if(a.addEventListener)a.addEventListener(l,o,false);else a.attachEvent&&a.attachEvent("on"+l,o)}if(C.add){C.add.call(a,h);if(!h.handler.guid)h.handler.guid=
-d.guid}A.push(h);c.event.global[l]=true}a=null}}},global:{},remove:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(d===false)d=U;var f,h,l=0,k,o,x,r,A,C,J=a.nodeType?"events":"__events__",w=c.data(a),I=w&&w[J];if(w&&I){if(typeof I==="function"){w=I;I=I.events}if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(f in I)c.event.remove(a,f+b)}else{for(b=b.split(" ");f=b[l++];){r=f;k=f.indexOf(".")<0;o=[];if(!k){o=f.split(".");f=o.shift();x=RegExp("(^|\\.)"+
-c.map(o.slice(0).sort(),Ya).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(A=I[f])if(d){r=c.event.special[f]||{};for(h=e||0;h<A.length;h++){C=A[h];if(d.guid===C.guid){if(k||x.test(C.namespace)){e==null&&A.splice(h--,1);r.remove&&r.remove.call(a,C)}if(e!=null)break}}if(A.length===0||e!=null&&A.length===1){if(!r.teardown||r.teardown.call(a,o)===false)c.removeEvent(a,f,w.handle);delete I[f]}}else for(h=0;h<A.length;h++){C=A[h];if(k||x.test(C.namespace)){c.event.remove(a,r,C.handler,h);A.splice(h--,1)}}}if(c.isEmptyObject(I)){if(b=
-w.handle)b.elem=null;delete w.events;delete w.handle;if(typeof w==="function")c.removeData(a,J);else c.isEmptyObject(w)&&c.removeData(a)}}}}},trigger:function(a,b,d,e){var f=a.type||a;if(!e){a=typeof a==="object"?a[c.expando]?a:c.extend(c.Event(f),a):c.Event(f);if(f.indexOf("!")>=0){a.type=f=f.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[f]&&c.each(c.cache,function(){this.events&&this.events[f]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===
-8)return B;a.result=B;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(e=d.nodeType?c.data(d,"handle"):(c.data(d,"__events__")||{}).handle)&&e.apply(d,b);e=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+f]&&d["on"+f].apply(d,b)===false){a.result=false;a.preventDefault()}}catch(h){}if(!a.isPropagationStopped()&&e)c.event.trigger(a,b,e,true);else if(!a.isDefaultPrevented()){var l;e=a.target;var k=f.replace(X,""),o=c.nodeName(e,"a")&&k===
-"click",x=c.event.special[k]||{};if((!x._default||x._default.call(d,a)===false)&&!o&&!(e&&e.nodeName&&c.noData[e.nodeName.toLowerCase()])){try{if(e[k]){if(l=e["on"+k])e["on"+k]=null;c.event.triggered=true;e[k]()}}catch(r){}if(l)e["on"+k]=l;c.event.triggered=false}}},handle:function(a){var b,d,e,f;d=[];var h=c.makeArray(arguments);a=h[0]=c.event.fix(a||E.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){e=a.type.split(".");a.type=e.shift();d=e.slice(0).sort();e=RegExp("(^|\\.)"+
-d.join("\\.(?:.*\\.)?")+"(\\.|$)")}a.namespace=a.namespace||d.join(".");f=c.data(this,this.nodeType?"events":"__events__");if(typeof f==="function")f=f.events;d=(f||{})[a.type];if(f&&d){d=d.slice(0);f=0;for(var l=d.length;f<l;f++){var k=d[f];if(b||e.test(k.namespace)){a.handler=k.handler;a.data=k.data;a.handleObj=k;k=k.handler.apply(this,h);if(k!==B){a.result=k;if(k===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
-fix:function(a){if(a[c.expando])return a;var b=a;a=c.Event(b);for(var d=this.props.length,e;d;){e=this.props[--d];a[e]=b[e]}if(!a.target)a.target=a.srcElement||t;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=t.documentElement;d=t.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
-d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(a.which==null&&(a.charCode!=null||a.keyCode!=null))a.which=a.charCode!=null?a.charCode:a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==B)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,Y(a.origType,a.selector),c.extend({},a,{handler:Ka,guid:a.handler.guid}))},remove:function(a){c.event.remove(this,
-Y(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,d){if(c.isWindow(this))this.onbeforeunload=d},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.removeEvent=t.removeEventListener?function(a,b,d){a.removeEventListener&&a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent&&a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=
-c.now();this[c.expando]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=ca;var a=this.originalEvent;if(a)if(a.preventDefault)a.preventDefault();else a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=ca;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ca;this.stopPropagation()},isDefaultPrevented:U,isPropagationStopped:U,isImmediatePropagationStopped:U};
-var va=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},wa=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?wa:va,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?wa:va)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!==
-"form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length){a.liveFired=B;return la("submit",this,arguments)}});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13){a.liveFired=B;return la("submit",this,arguments)}})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};if(!c.support.changeBubbles){var V,
-xa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(e){return e.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},Z=function(a,b){var d=a.target,e,f;if(!(!ia.test(d.nodeName)||d.readOnly)){e=c.data(d,"_change_data");f=xa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",f);if(!(e===B||f===e))if(e!=null||f){a.type="change";a.liveFired=
-B;return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:Z,beforedeactivate:Z,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return Z.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return Z.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",xa(a))}},setup:function(){if(this.type===
-"file")return false;for(var a in V)c.event.add(this,a+".specialChange",V[a]);return ia.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return ia.test(this.nodeName)}};V=c.event.special.change.filters;V.focus=V.beforeactivate}t.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.trigger(e,null,e.target)}c.event.special[b]={setup:function(){ua[b]++===0&&t.addEventListener(a,d,true)},teardown:function(){--ua[b]===
-0&&t.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,e,f){if(typeof d==="object"){for(var h in d)this[b](h,e,d[h],f);return this}if(c.isFunction(e)||e===false){f=e;e=B}var l=b==="one"?c.proxy(f,function(o){c(this).unbind(o,l);return f.apply(this,arguments)}):f;if(d==="unload"&&b!=="one")this.one(d,e,f);else{h=0;for(var k=this.length;h<k;h++)c.event.add(this[h],d,l,e)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var d in a)this.unbind(d,
-a[d]);else{d=0;for(var e=this.length;d<e;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,e){return this.live(b,d,e,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var d=c.Event(a);d.preventDefault();d.stopPropagation();c.event.trigger(d,b,this[0]);return d.result}},toggle:function(a){for(var b=arguments,d=
-1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(e){var f=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,f+1);e.preventDefault();return b[f].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var ya={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,e,f,h){var l,k=0,o,x,r=h||this.selector;h=h?this:c(this.context);if(typeof d===
-"object"&&!d.preventDefault){for(l in d)h[b](l,e,d[l],r);return this}if(c.isFunction(e)){f=e;e=B}for(d=(d||"").split(" ");(l=d[k++])!=null;){o=X.exec(l);x="";if(o){x=o[0];l=l.replace(X,"")}if(l==="hover")d.push("mouseenter"+x,"mouseleave"+x);else{o=l;if(l==="focus"||l==="blur"){d.push(ya[l]+x);l+=x}else l=(ya[l]||l)+x;if(b==="live"){x=0;for(var A=h.length;x<A;x++)c.event.add(h[x],"live."+Y(l,r),{data:e,selector:r,handler:f,origType:l,origHandler:f,preType:o})}else h.unbind("live."+Y(l,r),f)}}return this}});
-c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){c.fn[b]=function(d,e){if(e==null){e=d;d=null}return arguments.length>0?this.bind(b,d,e):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});E.attachEvent&&!E.addEventListener&&c(E).bind("unload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});
-(function(){function a(g,i,n,m,p,q){p=0;for(var u=m.length;p<u;p++){var y=m[p];if(y){var F=false;for(y=y[g];y;){if(y.sizcache===n){F=m[y.sizset];break}if(y.nodeType===1&&!q){y.sizcache=n;y.sizset=p}if(y.nodeName.toLowerCase()===i){F=y;break}y=y[g]}m[p]=F}}}function b(g,i,n,m,p,q){p=0;for(var u=m.length;p<u;p++){var y=m[p];if(y){var F=false;for(y=y[g];y;){if(y.sizcache===n){F=m[y.sizset];break}if(y.nodeType===1){if(!q){y.sizcache=n;y.sizset=p}if(typeof i!=="string"){if(y===i){F=true;break}}else if(k.filter(i,
-[y]).length>0){F=y;break}}y=y[g]}m[p]=F}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,h=false,l=true;[0,0].sort(function(){l=false;return 0});var k=function(g,i,n,m){n=n||[];var p=i=i||t;if(i.nodeType!==1&&i.nodeType!==9)return[];if(!g||typeof g!=="string")return n;var q,u,y,F,M,N=true,O=k.isXML(i),D=[],R=g;do{d.exec("");if(q=d.exec(R)){R=q[3];D.push(q[1]);if(q[2]){F=q[3];
-break}}}while(q);if(D.length>1&&x.exec(g))if(D.length===2&&o.relative[D[0]])u=L(D[0]+D[1],i);else for(u=o.relative[D[0]]?[i]:k(D.shift(),i);D.length;){g=D.shift();if(o.relative[g])g+=D.shift();u=L(g,u)}else{if(!m&&D.length>1&&i.nodeType===9&&!O&&o.match.ID.test(D[0])&&!o.match.ID.test(D[D.length-1])){q=k.find(D.shift(),i,O);i=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]}if(i){q=m?{expr:D.pop(),set:C(m)}:k.find(D.pop(),D.length===1&&(D[0]==="~"||D[0]==="+")&&i.parentNode?i.parentNode:i,O);u=q.expr?k.filter(q.expr,
-q.set):q.set;if(D.length>0)y=C(u);else N=false;for(;D.length;){q=M=D.pop();if(o.relative[M])q=D.pop();else M="";if(q==null)q=i;o.relative[M](y,q,O)}}else y=[]}y||(y=u);y||k.error(M||g);if(f.call(y)==="[object Array]")if(N)if(i&&i.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&k.contains(i,y[g])))n.push(u[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&n.push(u[g]);else n.push.apply(n,y);else C(y,n);if(F){k(F,p,n,m);k.uniqueSort(n)}return n};k.uniqueSort=function(g){if(w){h=
-l;g.sort(w);if(h)for(var i=1;i<g.length;i++)g[i]===g[i-1]&&g.splice(i--,1)}return g};k.matches=function(g,i){return k(g,null,null,i)};k.matchesSelector=function(g,i){return k(i,null,null,[g]).length>0};k.find=function(g,i,n){var m;if(!g)return[];for(var p=0,q=o.order.length;p<q;p++){var u,y=o.order[p];if(u=o.leftMatch[y].exec(g)){var F=u[1];u.splice(1,1);if(F.substr(F.length-1)!=="\\"){u[1]=(u[1]||"").replace(/\\/g,"");m=o.find[y](u,i,n);if(m!=null){g=g.replace(o.match[y],"");break}}}}m||(m=i.getElementsByTagName("*"));
-return{set:m,expr:g}};k.filter=function(g,i,n,m){for(var p,q,u=g,y=[],F=i,M=i&&i[0]&&k.isXML(i[0]);g&&i.length;){for(var N in o.filter)if((p=o.leftMatch[N].exec(g))!=null&&p[2]){var O,D,R=o.filter[N];D=p[1];q=false;p.splice(1,1);if(D.substr(D.length-1)!=="\\"){if(F===y)y=[];if(o.preFilter[N])if(p=o.preFilter[N](p,F,n,y,m,M)){if(p===true)continue}else q=O=true;if(p)for(var j=0;(D=F[j])!=null;j++)if(D){O=R(D,p,j,F);var s=m^!!O;if(n&&O!=null)if(s)q=true;else F[j]=false;else if(s){y.push(D);q=true}}if(O!==
-B){n||(F=y);g=g.replace(o.match[N],"");if(!q)return[];break}}}if(g===u)if(q==null)k.error(g);else break;u=g}return F};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var o=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+\-]*)\))?/,
-POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},relative:{"+":function(g,i){var n=typeof i==="string",m=n&&!/\W/.test(i);n=n&&!m;if(m)i=i.toLowerCase();m=0;for(var p=g.length,q;m<p;m++)if(q=g[m]){for(;(q=q.previousSibling)&&q.nodeType!==1;);g[m]=n||q&&q.nodeName.toLowerCase()===
-i?q||false:q===i}n&&k.filter(i,g,true)},">":function(g,i){var n,m=typeof i==="string",p=0,q=g.length;if(m&&!/\W/.test(i))for(i=i.toLowerCase();p<q;p++){if(n=g[p]){n=n.parentNode;g[p]=n.nodeName.toLowerCase()===i?n:false}}else{for(;p<q;p++)if(n=g[p])g[p]=m?n.parentNode:n.parentNode===i;m&&k.filter(i,g,true)}},"":function(g,i,n){var m,p=e++,q=b;if(typeof i==="string"&&!/\W/.test(i)){m=i=i.toLowerCase();q=a}q("parentNode",i,p,g,m,n)},"~":function(g,i,n){var m,p=e++,q=b;if(typeof i==="string"&&!/\W/.test(i)){m=
-i=i.toLowerCase();q=a}q("previousSibling",i,p,g,m,n)}},find:{ID:function(g,i,n){if(typeof i.getElementById!=="undefined"&&!n)return(g=i.getElementById(g[1]))&&g.parentNode?[g]:[]},NAME:function(g,i){if(typeof i.getElementsByName!=="undefined"){for(var n=[],m=i.getElementsByName(g[1]),p=0,q=m.length;p<q;p++)m[p].getAttribute("name")===g[1]&&n.push(m[p]);return n.length===0?null:n}},TAG:function(g,i){return i.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,i,n,m,p,q){g=" "+g[1].replace(/\\/g,
-"")+" ";if(q)return g;q=0;for(var u;(u=i[q])!=null;q++)if(u)if(p^(u.className&&(" "+u.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))n||m.push(u);else if(n)i[q]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var i=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=i[1]+(i[2]||1)-0;g[3]=i[3]-0}g[0]=e++;return g},ATTR:function(g,i,n,
-m,p,q){i=g[1].replace(/\\/g,"");if(!q&&o.attrMap[i])g[1]=o.attrMap[i];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,i,n,m,p){if(g[1]==="not")if((d.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,i);else{g=k.filter(g[3],i,n,true^p);n||m.push.apply(m,g);return false}else if(o.match.POS.test(g[0])||o.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===
-true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,i,n){return!!k(n[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===
-g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,i){return i===0},last:function(g,i,n,m){return i===m.length-1},even:function(g,i){return i%2===0},odd:function(g,i){return i%2===1},lt:function(g,i,n){return i<n[3]-0},gt:function(g,i,n){return i>n[3]-0},nth:function(g,i,n){return n[3]-
-0===i},eq:function(g,i,n){return n[3]-0===i}},filter:{PSEUDO:function(g,i,n,m){var p=i[1],q=o.filters[p];if(q)return q(g,n,i,m);else if(p==="contains")return(g.textContent||g.innerText||k.getText([g])||"").indexOf(i[3])>=0;else if(p==="not"){i=i[3];n=0;for(m=i.length;n<m;n++)if(i[n]===g)return false;return true}else k.error("Syntax error, unrecognized expression: "+p)},CHILD:function(g,i){var n=i[1],m=g;switch(n){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(n===
-"first")return true;m=g;case "last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case "nth":n=i[2];var p=i[3];if(n===1&&p===0)return true;var q=i[0],u=g.parentNode;if(u&&(u.sizcache!==q||!g.nodeIndex)){var y=0;for(m=u.firstChild;m;m=m.nextSibling)if(m.nodeType===1)m.nodeIndex=++y;u.sizcache=q}m=g.nodeIndex-p;return n===0?m===0:m%n===0&&m/n>=0}},ID:function(g,i){return g.nodeType===1&&g.getAttribute("id")===i},TAG:function(g,i){return i==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===
-i},CLASS:function(g,i){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(i)>-1},ATTR:function(g,i){var n=i[1];n=o.attrHandle[n]?o.attrHandle[n](g):g[n]!=null?g[n]:g.getAttribute(n);var m=n+"",p=i[2],q=i[4];return n==null?p==="!=":p==="="?m===q:p==="*="?m.indexOf(q)>=0:p==="~="?(" "+m+" ").indexOf(q)>=0:!q?m&&n!==false:p==="!="?m!==q:p==="^="?m.indexOf(q)===0:p==="$="?m.substr(m.length-q.length)===q:p==="|="?m===q||m.substr(0,q.length+1)===q+"-":false},POS:function(g,i,n,m){var p=o.setFilters[i[2]];
-if(p)return p(g,n,i,m)}}},x=o.match.POS,r=function(g,i){return"\\"+(i-0+1)},A;for(A in o.match){o.match[A]=RegExp(o.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source);o.leftMatch[A]=RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[A].source.replace(/\\(\d+)/g,r))}var C=function(g,i){g=Array.prototype.slice.call(g,0);if(i){i.push.apply(i,g);return i}return g};try{Array.prototype.slice.call(t.documentElement.childNodes,0)}catch(J){C=function(g,i){var n=0,m=i||[];if(f.call(g)==="[object Array]")Array.prototype.push.apply(m,
-g);else if(typeof g.length==="number")for(var p=g.length;n<p;n++)m.push(g[n]);else for(;g[n];n++)m.push(g[n]);return m}}var w,I;if(t.documentElement.compareDocumentPosition)w=function(g,i){if(g===i){h=true;return 0}if(!g.compareDocumentPosition||!i.compareDocumentPosition)return g.compareDocumentPosition?-1:1;return g.compareDocumentPosition(i)&4?-1:1};else{w=function(g,i){var n,m,p=[],q=[];n=g.parentNode;m=i.parentNode;var u=n;if(g===i){h=true;return 0}else if(n===m)return I(g,i);else if(n){if(!m)return 1}else return-1;
-for(;u;){p.unshift(u);u=u.parentNode}for(u=m;u;){q.unshift(u);u=u.parentNode}n=p.length;m=q.length;for(u=0;u<n&&u<m;u++)if(p[u]!==q[u])return I(p[u],q[u]);return u===n?I(g,q[u],-1):I(p[u],i,1)};I=function(g,i,n){if(g===i)return n;for(g=g.nextSibling;g;){if(g===i)return-1;g=g.nextSibling}return 1}}k.getText=function(g){for(var i="",n,m=0;g[m];m++){n=g[m];if(n.nodeType===3||n.nodeType===4)i+=n.nodeValue;else if(n.nodeType!==8)i+=k.getText(n.childNodes)}return i};(function(){var g=t.createElement("div"),
-i="script"+(new Date).getTime(),n=t.documentElement;g.innerHTML="<a name='"+i+"'/>";n.insertBefore(g,n.firstChild);if(t.getElementById(i)){o.find.ID=function(m,p,q){if(typeof p.getElementById!=="undefined"&&!q)return(p=p.getElementById(m[1]))?p.id===m[1]||typeof p.getAttributeNode!=="undefined"&&p.getAttributeNode("id").nodeValue===m[1]?[p]:B:[]};o.filter.ID=function(m,p){var q=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&q&&q.nodeValue===p}}n.removeChild(g);
-n=g=null})();(function(){var g=t.createElement("div");g.appendChild(t.createComment(""));if(g.getElementsByTagName("*").length>0)o.find.TAG=function(i,n){var m=n.getElementsByTagName(i[1]);if(i[1]==="*"){for(var p=[],q=0;m[q];q++)m[q].nodeType===1&&p.push(m[q]);m=p}return m};g.innerHTML="<a href='#'></a>";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(i){return i.getAttribute("href",2)};g=null})();t.querySelectorAll&&
-function(){var g=k,i=t.createElement("div");i.innerHTML="<p class='TEST'></p>";if(!(i.querySelectorAll&&i.querySelectorAll(".TEST").length===0)){k=function(m,p,q,u){p=p||t;m=m.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!u&&!k.isXML(p))if(p.nodeType===9)try{return C(p.querySelectorAll(m),q)}catch(y){}else if(p.nodeType===1&&p.nodeName.toLowerCase()!=="object"){var F=p.getAttribute("id"),M=F||"__sizzle__";F||p.setAttribute("id",M);try{return C(p.querySelectorAll("#"+M+" "+m),q)}catch(N){}finally{F||
-p.removeAttribute("id")}}return g(m,p,q,u)};for(var n in g)k[n]=g[n];i=null}}();(function(){var g=t.documentElement,i=g.matchesSelector||g.mozMatchesSelector||g.webkitMatchesSelector||g.msMatchesSelector,n=false;try{i.call(t.documentElement,"[test!='']:sizzle")}catch(m){n=true}if(i)k.matchesSelector=function(p,q){q=q.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(p))try{if(n||!o.match.PSEUDO.test(q)&&!/!=/.test(q))return i.call(p,q)}catch(u){}return k(q,null,null,[p]).length>0}})();(function(){var g=
-t.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(i,n,m){if(typeof n.getElementsByClassName!=="undefined"&&!m)return n.getElementsByClassName(i[1])};g=null}}})();k.contains=t.documentElement.contains?function(g,i){return g!==i&&(g.contains?g.contains(i):true)}:t.documentElement.compareDocumentPosition?
-function(g,i){return!!(g.compareDocumentPosition(i)&16)}:function(){return false};k.isXML=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false};var L=function(g,i){for(var n,m=[],p="",q=i.nodeType?[i]:i;n=o.match.PSEUDO.exec(g);){p+=n[0];g=g.replace(o.match.PSEUDO,"")}g=o.relative[g]?g+"*":g;n=0;for(var u=q.length;n<u;n++)k(g,q[n],m);return k.filter(p,m)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=k.getText;c.isXMLDoc=k.isXML;
-c.contains=k.contains})();var Za=/Until$/,$a=/^(?:parents|prevUntil|prevAll)/,ab=/,/,Na=/^.[^:#\[\.,]*$/,bb=Array.prototype.slice,cb=c.expr.match.POS;c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,e=0,f=this.length;e<f;e++){d=b.length;c.find(a,this[e],b);if(e>0)for(var h=d;h<b.length;h++)for(var l=0;l<d;l++)if(b[l]===b[h]){b.splice(h--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,e=b.length;d<e;d++)if(c.contains(this,b[d]))return true})},
-not:function(a){return this.pushStack(ma(this,a,false),"not",a)},filter:function(a){return this.pushStack(ma(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){var d=[],e,f,h=this[0];if(c.isArray(a)){var l,k={},o=1;if(h&&a.length){e=0;for(f=a.length;e<f;e++){l=a[e];k[l]||(k[l]=c.expr.match.POS.test(l)?c(l,b||this.context):l)}for(;h&&h.ownerDocument&&h!==b;){for(l in k){e=k[l];if(e.jquery?e.index(h)>-1:c(h).is(e))d.push({selector:l,elem:h,level:o})}h=
-h.parentNode;o++}}return d}l=cb.test(a)?c(a,b||this.context):null;e=0;for(f=this.length;e<f;e++)for(h=this[e];h;)if(l?l.index(h)>-1:c.find.matchesSelector(h,a)){d.push(h);break}else{h=h.parentNode;if(!h||!h.ownerDocument||h===b)break}d=d.length>1?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a==="string"?c(a,b||this.context):
-c.makeArray(a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,
-2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,
-b){c.fn[a]=function(d,e){var f=c.map(this,b,d);Za.test(a)||(e=d);if(e&&typeof e==="string")f=c.filter(e,f);f=this.length>1?c.unique(f):f;if((this.length>1||ab.test(e))&&$a.test(a))f=f.reverse();return this.pushStack(f,a,bb.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return b.length===1?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,d){var e=[];for(a=a[b];a&&a.nodeType!==9&&(d===B||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&
-e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var za=/ jQuery\d+="(?:\d+|null)"/g,$=/^\s+/,Aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ba=/<([\w:]+)/,db=/<tbody/i,eb=/<|&#?\w+;/,Ca=/<(?:script|object|embed|option|style)/i,Da=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/\=([^="'>\s]+\/)>/g,P={option:[1,
-"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};P.optgroup=P.option;P.tbody=P.tfoot=P.colgroup=P.caption=P.thead;P.th=P.td;if(!c.support.htmlSerialize)P._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=
-c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==B)return this.empty().append((this[0]&&this[0].ownerDocument||t).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},
-wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},
-prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
-this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));c.cleanData([e])}e.parentNode&&e.parentNode.removeChild(e)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
-return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,e=this.ownerDocument;if(!d){d=e.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(za,"").replace(fb,'="$1">').replace($,"")],e)[0]}else return this.cloneNode(true)});if(a===true){na(this,b);na(this.find("*"),b.find("*"))}return b},html:function(a){if(a===B)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(za,""):null;
-else if(typeof a==="string"&&!Ca.test(a)&&(c.support.leadingWhitespace||!$.test(a))&&!P[(Ba.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Aa,"<$1></$2>");try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(e){this.empty().append(a)}}else c.isFunction(a)?this.each(function(f){var h=c(this);h.html(a.call(this,f,h.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=
-c(this),e=d.html();d.replaceWith(a.call(this,b,e))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){var e,f,h,l=a[0],k=[];if(!c.support.checkClone&&arguments.length===3&&typeof l==="string"&&Da.test(l))return this.each(function(){c(this).domManip(a,
-b,d,true)});if(c.isFunction(l))return this.each(function(x){var r=c(this);a[0]=l.call(this,x,b?r.html():B);r.domManip(a,b,d)});if(this[0]){e=l&&l.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:c.buildFragment(a,this,k);h=e.fragment;if(f=h.childNodes.length===1?h=h.firstChild:h.firstChild){b=b&&c.nodeName(f,"tr");f=0;for(var o=this.length;f<o;f++)d.call(b?c.nodeName(this[f],"table")?this[f].getElementsByTagName("tbody")[0]||this[f].appendChild(this[f].ownerDocument.createElement("tbody")):
-this[f]:this[f],f>0||e.cacheable||this.length>1?h.cloneNode(true):h)}k.length&&c.each(k,Oa)}return this}});c.buildFragment=function(a,b,d){var e,f,h;b=b&&b[0]?b[0].ownerDocument||b[0]:t;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===t&&!Ca.test(a[0])&&(c.support.checkClone||!Da.test(a[0]))){f=true;if(h=c.fragments[a[0]])if(h!==1)e=h}if(!e){e=b.createDocumentFragment();c.clean(a,b,e,d)}if(f)c.fragments[a[0]]=h?e:1;return{fragment:e,cacheable:f}};c.fragments={};c.each({appendTo:"append",
-prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[];d=c(d);var f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{f=0;for(var h=d.length;f<h;f++){var l=(f>0?this.clone(true):this).get();c(d[f])[b](l);e=e.concat(l)}return this.pushStack(e,a,d.selector)}}});c.extend({clean:function(a,b,d,e){b=b||t;if(typeof b.createElement==="undefined")b=b.ownerDocument||
-b[0]&&b[0].ownerDocument||t;for(var f=[],h=0,l;(l=a[h])!=null;h++){if(typeof l==="number")l+="";if(l){if(typeof l==="string"&&!eb.test(l))l=b.createTextNode(l);else if(typeof l==="string"){l=l.replace(Aa,"<$1></$2>");var k=(Ba.exec(l)||["",""])[1].toLowerCase(),o=P[k]||P._default,x=o[0],r=b.createElement("div");for(r.innerHTML=o[1]+l+o[2];x--;)r=r.lastChild;if(!c.support.tbody){x=db.test(l);k=k==="table"&&!x?r.firstChild&&r.firstChild.childNodes:o[1]==="<table>"&&!x?r.childNodes:[];for(o=k.length-
-1;o>=0;--o)c.nodeName(k[o],"tbody")&&!k[o].childNodes.length&&k[o].parentNode.removeChild(k[o])}!c.support.leadingWhitespace&&$.test(l)&&r.insertBefore(b.createTextNode($.exec(l)[0]),r.firstChild);l=r.childNodes}if(l.nodeType)f.push(l);else f=c.merge(f,l)}}if(d)for(h=0;f[h];h++)if(e&&c.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript"))e.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]);else{f[h].nodeType===1&&f.splice.apply(f,[h+1,0].concat(c.makeArray(f[h].getElementsByTagName("script"))));
-d.appendChild(f[h])}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,h=c.support.deleteExpando,l=0,k;(k=a[l])!=null;l++)if(!(k.nodeName&&c.noData[k.nodeName.toLowerCase()]))if(d=k[c.expando]){if((b=e[d])&&b.events)for(var o in b.events)f[o]?c.event.remove(k,o):c.removeEvent(k,o,b.handle);if(h)delete k[c.expando];else k.removeAttribute&&k.removeAttribute(c.expando);delete e[d]}}});var Ea=/alpha\([^)]*\)/i,gb=/opacity=([^)]*)/,hb=/-([a-z])/ig,ib=/([A-Z])/g,Fa=/^-?\d+(?:px)?$/i,
-jb=/^-?\d/,kb={position:"absolute",visibility:"hidden",display:"block"},Pa=["Left","Right"],Qa=["Top","Bottom"],W,Ga,aa,lb=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){if(arguments.length===2&&b===B)return this;return c.access(this,a,b,true,function(d,e,f){return f!==B?c.style(d,e,f):c.css(d,e)})};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){var d=W(a,"opacity","opacity");return d===""?"1":d}else return a.style.opacity}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,
-zoom:true,lineHeight:true},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,d,e){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var f,h=c.camelCase(b),l=a.style,k=c.cssHooks[h];b=c.cssProps[h]||h;if(d!==B){if(!(typeof d==="number"&&isNaN(d)||d==null)){if(typeof d==="number"&&!c.cssNumber[h])d+="px";if(!k||!("set"in k)||(d=k.set(a,d))!==B)try{l[b]=d}catch(o){}}}else{if(k&&"get"in k&&(f=k.get(a,false,e))!==B)return f;return l[b]}}},css:function(a,b,d){var e,f=c.camelCase(b),
-h=c.cssHooks[f];b=c.cssProps[f]||f;if(h&&"get"in h&&(e=h.get(a,true,d))!==B)return e;else if(W)return W(a,b,f)},swap:function(a,b,d){var e={},f;for(f in b){e[f]=a.style[f];a.style[f]=b[f]}d.call(a);for(f in b)a.style[f]=e[f]},camelCase:function(a){return a.replace(hb,lb)}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(d,e,f){var h;if(e){if(d.offsetWidth!==0)h=oa(d,b,f);else c.swap(d,kb,function(){h=oa(d,b,f)});if(h<=0){h=W(d,b,b);if(h==="0px"&&aa)h=aa(d,b,b);
-if(h!=null)return h===""||h==="auto"?"0px":h}if(h<0||h==null){h=d.style[b];return h===""||h==="auto"?"0px":h}return typeof h==="string"?h:h+"px"}},set:function(d,e){if(Fa.test(e)){e=parseFloat(e);if(e>=0)return e+"px"}else return e}}});if(!c.support.opacity)c.cssHooks.opacity={get:function(a,b){return gb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style;d.zoom=1;var e=c.isNaN(b)?"":"alpha(opacity="+b*100+")",f=
-d.filter||"";d.filter=Ea.test(f)?f.replace(Ea,e):d.filter+" "+e}};if(t.defaultView&&t.defaultView.getComputedStyle)Ga=function(a,b,d){var e;d=d.replace(ib,"-$1").toLowerCase();if(!(b=a.ownerDocument.defaultView))return B;if(b=b.getComputedStyle(a,null)){e=b.getPropertyValue(d);if(e===""&&!c.contains(a.ownerDocument.documentElement,a))e=c.style(a,d)}return e};if(t.documentElement.currentStyle)aa=function(a,b){var d,e,f=a.currentStyle&&a.currentStyle[b],h=a.style;if(!Fa.test(f)&&jb.test(f)){d=h.left;
-e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=b==="fontSize"?"1em":f||0;f=h.pixelLeft+"px";h.left=d;a.runtimeStyle.left=e}return f===""?"auto":f};W=Ga||aa;if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!c.support.reliableHiddenOffsets&&(a.style.display||c.css(a,"display"))==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var mb=c.now(),nb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
-ob=/^(?:select|textarea)/i,pb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,qb=/^(?:GET|HEAD)$/,Ra=/\[\]$/,T=/\=\?(&|$)/,ja=/\?/,rb=/([?&])_=[^&]*/,sb=/^(\w+:)?\/\/([^\/?#]+)/,tb=/%20/g,ub=/#.*$/,Ha=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&Ha)return Ha.apply(this,arguments);else if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var f=a.slice(e,a.length);a=a.slice(0,e)}e="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b===
-"object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var h=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(l,k){if(k==="success"||k==="notmodified")h.html(f?c("<div>").append(l.responseText.replace(nb,"")).find(f):l.responseText);d&&h.each(d,[l.responseText,k,l])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&
-!this.disabled&&(this.checked||ob.test(this.nodeName)||pb.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d,function(e){return{name:b.name,value:e}}):{name:b.name,value:d}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:e})},
-getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:e})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new E.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",
-script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(a){var b=c.extend(true,{},c.ajaxSettings,a),d,e,f,h=b.type.toUpperCase(),l=qb.test(h);b.url=b.url.replace(ub,"");b.context=a&&a.context!=null?a.context:b;if(b.data&&b.processData&&typeof b.data!=="string")b.data=c.param(b.data,b.traditional);if(b.dataType==="jsonp"){if(h==="GET")T.test(b.url)||(b.url+=(ja.test(b.url)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data||
-!T.test(b.data))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if(b.dataType==="json"&&(b.data&&T.test(b.data)||T.test(b.url))){d=b.jsonpCallback||"jsonp"+mb++;if(b.data)b.data=(b.data+"").replace(T,"="+d+"$1");b.url=b.url.replace(T,"="+d+"$1");b.dataType="script";var k=E[d];E[d]=function(m){if(c.isFunction(k))k(m);else{E[d]=B;try{delete E[d]}catch(p){}}f=m;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);r&&r.removeChild(A)}}if(b.dataType==="script"&&b.cache===null)b.cache=
-false;if(b.cache===false&&l){var o=c.now(),x=b.url.replace(rb,"$1_="+o);b.url=x+(x===b.url?(ja.test(b.url)?"&":"?")+"_="+o:"")}if(b.data&&l)b.url+=(ja.test(b.url)?"&":"?")+b.data;b.global&&c.active++===0&&c.event.trigger("ajaxStart");o=(o=sb.exec(b.url))&&(o[1]&&o[1].toLowerCase()!==location.protocol||o[2].toLowerCase()!==location.host);if(b.dataType==="script"&&h==="GET"&&o){var r=t.getElementsByTagName("head")[0]||t.documentElement,A=t.createElement("script");if(b.scriptCharset)A.charset=b.scriptCharset;
-A.src=b.url;if(!d){var C=false;A.onload=A.onreadystatechange=function(){if(!C&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){C=true;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);A.onload=A.onreadystatechange=null;r&&A.parentNode&&r.removeChild(A)}}}r.insertBefore(A,r.firstChild);return B}var J=false,w=b.xhr();if(w){b.username?w.open(h,b.url,b.async,b.username,b.password):w.open(h,b.url,b.async);try{if(b.data!=null&&!l||a&&a.contentType)w.setRequestHeader("Content-Type",
-b.contentType);if(b.ifModified){c.lastModified[b.url]&&w.setRequestHeader("If-Modified-Since",c.lastModified[b.url]);c.etag[b.url]&&w.setRequestHeader("If-None-Match",c.etag[b.url])}o||w.setRequestHeader("X-Requested-With","XMLHttpRequest");w.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*; q=0.01":b.accepts._default)}catch(I){}if(b.beforeSend&&b.beforeSend.call(b.context,w,b)===false){b.global&&c.active--===1&&c.event.trigger("ajaxStop");w.abort();return false}b.global&&
-c.triggerGlobal(b,"ajaxSend",[w,b]);var L=w.onreadystatechange=function(m){if(!w||w.readyState===0||m==="abort"){J||c.handleComplete(b,w,e,f);J=true;if(w)w.onreadystatechange=c.noop}else if(!J&&w&&(w.readyState===4||m==="timeout")){J=true;w.onreadystatechange=c.noop;e=m==="timeout"?"timeout":!c.httpSuccess(w)?"error":b.ifModified&&c.httpNotModified(w,b.url)?"notmodified":"success";var p;if(e==="success")try{f=c.httpData(w,b.dataType,b)}catch(q){e="parsererror";p=q}if(e==="success"||e==="notmodified")d||
-c.handleSuccess(b,w,e,f);else c.handleError(b,w,e,p);d||c.handleComplete(b,w,e,f);m==="timeout"&&w.abort();if(b.async)w=null}};try{var g=w.abort;w.abort=function(){w&&Function.prototype.call.call(g,w);L("abort")}}catch(i){}b.async&&b.timeout>0&&setTimeout(function(){w&&!J&&L("timeout")},b.timeout);try{w.send(l||b.data==null?null:b.data)}catch(n){c.handleError(b,w,null,n);c.handleComplete(b,w,e,f)}b.async||L();return w}},param:function(a,b){var d=[],e=function(h,l){l=c.isFunction(l)?l():l;d[d.length]=
-encodeURIComponent(h)+"="+encodeURIComponent(l)};if(b===B)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){e(this.name,this.value)});else for(var f in a)da(f,a[f],b,e);return d.join("&").replace(tb,"+")}});c.extend({active:0,lastModified:{},etag:{},handleError:function(a,b,d,e){a.error&&a.error.call(a.context,b,d,e);a.global&&c.triggerGlobal(a,"ajaxError",[b,a,e])},handleSuccess:function(a,b,d,e){a.success&&a.success.call(a.context,e,d,b);a.global&&c.triggerGlobal(a,"ajaxSuccess",
-[b,a])},handleComplete:function(a,b,d){a.complete&&a.complete.call(a.context,b,d);a.global&&c.triggerGlobal(a,"ajaxComplete",[b,a]);a.global&&c.active--===1&&c.event.trigger("ajaxStop")},triggerGlobal:function(a,b,d){(a.context&&a.context.url==null?c(a.context):c.event).trigger(b,d)},httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),
-e=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(e)c.etag[b]=e;return a.status===304},httpData:function(a,b,d){var e=a.getResponseHeader("content-type")||"",f=b==="xml"||!b&&e.indexOf("xml")>=0;a=f?a.responseXML:a.responseText;f&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&e.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&e.indexOf("javascript")>=0)c.globalEval(a);return a}});
-if(E.ActiveXObject)c.ajaxSettings.xhr=function(){if(E.location.protocol!=="file:")try{return new E.XMLHttpRequest}catch(a){}try{return new E.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}};c.support.ajax=!!c.ajaxSettings.xhr();var ea={},vb=/^(?:toggle|show|hide)$/,wb=/^([+\-]=)?([\d+.\-]+)(.*)$/,ba,pa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b,d){if(a||a===0)return this.animate(S("show",
-3),a,b,d);else{d=0;for(var e=this.length;d<e;d++){a=this[d];b=a.style.display;if(!c.data(a,"olddisplay")&&b==="none")b=a.style.display="";b===""&&c.css(a,"display")==="none"&&c.data(a,"olddisplay",qa(a.nodeName))}for(d=0;d<e;d++){a=this[d];b=a.style.display;if(b===""||b==="none")a.style.display=c.data(a,"olddisplay")||""}return this}},hide:function(a,b,d){if(a||a===0)return this.animate(S("hide",3),a,b,d);else{a=0;for(b=this.length;a<b;a++){d=c.css(this[a],"display");d!=="none"&&c.data(this[a],"olddisplay",
-d)}for(a=0;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b,d){var e=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||e?this.each(function(){var f=e?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(S("toggle",3),a,b,d);return this},fadeTo:function(a,b,d,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d,e)},animate:function(a,b,d,e){var f=c.speed(b,
-d,e);if(c.isEmptyObject(a))return this.each(f.complete);return this[f.queue===false?"each":"queue"](function(){var h=c.extend({},f),l,k=this.nodeType===1,o=k&&c(this).is(":hidden"),x=this;for(l in a){var r=c.camelCase(l);if(l!==r){a[r]=a[l];delete a[l];l=r}if(a[l]==="hide"&&o||a[l]==="show"&&!o)return h.complete.call(this);if(k&&(l==="height"||l==="width")){h.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(c.css(this,"display")==="inline"&&c.css(this,"float")==="none")if(c.support.inlineBlockNeedsLayout)if(qa(this.nodeName)===
-"inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}else this.style.display="inline-block"}if(c.isArray(a[l])){(h.specialEasing=h.specialEasing||{})[l]=a[l][1];a[l]=a[l][0]}}if(h.overflow!=null)this.style.overflow="hidden";h.curAnim=c.extend({},a);c.each(a,function(A,C){var J=new c.fx(x,h,A);if(vb.test(C))J[C==="toggle"?o?"show":"hide":C](a);else{var w=wb.exec(C),I=J.cur()||0;if(w){var L=parseFloat(w[2]),g=w[3]||"px";if(g!=="px"){c.style(x,A,(L||1)+g);I=(L||
-1)/J.cur()*I;c.style(x,A,I+g)}if(w[1])L=(w[1]==="-="?-1:1)*L+I;J.custom(I,L,g)}else J.custom(I,C,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var e=d.length-1;e>=0;e--)if(d[e].elem===this){b&&d[e](true);d.splice(e,1)}});b||this.dequeue();return this}});c.each({slideDown:S("show",1),slideUp:S("hide",1),slideToggle:S("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=function(d,e,f){return this.animate(b,
-d,e,f)}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;e.old=e.complete;e.complete=function(){e.queue!==false&&c(this).dequeue();c.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,d,e){return d+e*a},swing:function(a,b,d,e){return(-Math.cos(a*
-Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a=parseFloat(c.css(this.elem,this.prop));return a&&a>-1E4?a:0},custom:function(a,b,d){function e(l){return f.step(l)}
-var f=this,h=c.fx;this.startTime=c.now();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;e.elem=this.elem;if(e()&&c.timers.push(e)&&!ba)ba=setInterval(h.tick,h.interval)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;
-this.custom(this.cur(),0)},step:function(a){var b=c.now(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)d=false;if(d){if(this.options.overflow!=null&&!c.support.shrinkWrapBlocks){var f=this.elem,h=this.options;c.each(["","X","Y"],function(k,o){f.style["overflow"+o]=h.overflow[k]})}this.options.hide&&c(this.elem).hide();if(this.options.hide||
-this.options.show)for(var l in this.options.curAnim)c.style(this.elem,l,this.options.orig[l]);this.options.complete.call(this.elem)}return false}else{a=b-this.startTime;this.state=a/this.options.duration;b=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,a,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=
-c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},interval:13,stop:function(){clearInterval(ba);ba=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===
-b.elem}).length};var xb=/^t(?:able|d|h)$/i,Ia=/^(?:body|html)$/i;c.fn.offset="getBoundingClientRect"in t.documentElement?function(a){var b=this[0],d;if(a)return this.each(function(l){c.offset.setOffset(this,a,l)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);try{d=b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,h=f.documentElement;if(!d||!c.contains(h,b))return d||{top:0,left:0};b=f.body;f=fa(f);return{top:d.top+(f.pageYOffset||c.support.boxModel&&
-h.scrollTop||b.scrollTop)-(h.clientTop||b.clientTop||0),left:d.left+(f.pageXOffset||c.support.boxModel&&h.scrollLeft||b.scrollLeft)-(h.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(x){c.offset.setOffset(this,a,x)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d,e=b.offsetParent,f=b.ownerDocument,h=f.documentElement,l=f.body;d=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;
-for(var k=b.offsetTop,o=b.offsetLeft;(b=b.parentNode)&&b!==l&&b!==h;){if(c.offset.supportsFixedPosition&&d.position==="fixed")break;d=f?f.getComputedStyle(b,null):b.currentStyle;k-=b.scrollTop;o-=b.scrollLeft;if(b===e){k+=b.offsetTop;o+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&xb.test(b.nodeName))){k+=parseFloat(d.borderTopWidth)||0;o+=parseFloat(d.borderLeftWidth)||0}e=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"){k+=
-parseFloat(d.borderTopWidth)||0;o+=parseFloat(d.borderLeftWidth)||0}d=d}if(d.position==="relative"||d.position==="static"){k+=l.offsetTop;o+=l.offsetLeft}if(c.offset.supportsFixedPosition&&d.position==="fixed"){k+=Math.max(h.scrollTop,l.scrollTop);o+=Math.max(h.scrollLeft,l.scrollLeft)}return{top:k,left:o}};c.offset={initialize:function(){var a=t.body,b=t.createElement("div"),d,e,f,h=parseFloat(c.css(a,"marginTop"))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",
-height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);d=b.firstChild;e=d.firstChild;f=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;this.doesAddBorderForTableAndCells=
-f.offsetTop===5;e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==h;a.removeChild(b);c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.css(a,
-"marginTop"))||0;d+=parseFloat(c.css(a,"marginLeft"))||0}return{top:b,left:d}},setOffset:function(a,b,d){var e=c.css(a,"position");if(e==="static")a.style.position="relative";var f=c(a),h=f.offset(),l=c.css(a,"top"),k=c.css(a,"left"),o=e==="absolute"&&c.inArray("auto",[l,k])>-1;e={};var x={};if(o)x=f.position();l=o?x.top:parseInt(l,10)||0;k=o?x.left:parseInt(k,10)||0;if(c.isFunction(b))b=b.call(a,d,h);if(b.top!=null)e.top=b.top-h.top+l;if(b.left!=null)e.left=b.left-h.left+k;"using"in b?b.using.call(a,
-e):f.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=Ia.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||t.body;a&&!Ia.test(a.nodeName)&&
-c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f=this[0],h;if(!f)return null;if(e!==B)return this.each(function(){if(h=fa(this))h.scrollTo(!a?e:c(h).scrollLeft(),a?e:c(h).scrollTop());else this[d]=e});else return(h=fa(f))?"pageXOffset"in h?h[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&h.document.documentElement[d]||h.document.body[d]:f[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();
-c.fn["inner"+b]=function(){return this[0]?parseFloat(c.css(this[0],d,"padding")):null};c.fn["outer"+b]=function(e){return this[0]?parseFloat(c.css(this[0],d,e?"margin":"border")):null};c.fn[d]=function(e){var f=this[0];if(!f)return e==null?null:this;if(c.isFunction(e))return this.each(function(l){var k=c(this);k[d](e.call(this,l,k[d]()))});if(c.isWindow(f))return f.document.compatMode==="CSS1Compat"&&f.document.documentElement["client"+b]||f.document.body["client"+b];else if(f.nodeType===9)return Math.max(f.documentElement["client"+
-b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]);else if(e===B){f=c.css(f,d);var h=parseFloat(f);return c.isNaN(h)?f:h}else return this.css(d,typeof e==="string"?e:e+"px")}})})(window);
+++ /dev/null
-\feff/*!
- * jQuery blockUI plugin
- * Version 2.37 (29-JAN-2011)
- * @requires jQuery v1.2.3 or later
- *
- * Examples at: http://malsup.com/jquery/block/
- * Copyright (c) 2007-2010 M. Alsup
- * Dual licensed under the MIT and GPL licenses:
- * http://www.opensource.org/licenses/mit-license.php
- * http://www.gnu.org/licenses/gpl.html
- *
- * Thanks to Amir-Hossein Sobhi for some excellent contributions!
- */
-
-;(function($) {
-
-if (/1\.(0|1|2)\.(0|1|2)/.test($.fn.jquery) || /^1.1/.test($.fn.jquery)) {
- alert('blockUI requires jQuery v1.2.3 or later! You are using v' + $.fn.jquery);
- return;
-}
-
-$.fn._fadeIn = $.fn.fadeIn;
-
-var noOp = function() {};
-
-// this bit is to ensure we don't call setExpression when we shouldn't (with extra muscle to handle
-// retarded userAgent strings on Vista)
-var mode = document.documentMode || 0;
-var setExpr = $.browser.msie && (($.browser.version < 8 && !mode) || mode < 8);
-var ie6 = $.browser.msie && /MSIE 6.0/.test(navigator.userAgent) && !mode;
-
-// global $ methods for blocking/unblocking the entire page
-$.blockUI = function(opts) { install(window, opts); };
-$.unblockUI = function(opts) { remove(window, opts); };
-
-// convenience method for quick growl-like notifications (http://www.google.com/search?q=growl)
-$.growlUI = function(title, message, timeout, onClose) {
- var $m = $('<div class="growlUI"></div>');
- if (title) $m.append('<h1>'+title+'</h1>');
- if (message) $m.append('<h2>'+message+'</h2>');
- if (timeout == undefined) timeout = 3000;
- $.blockUI({
- message: $m, fadeIn: 700, fadeOut: 1000, centerY: false,
- timeout: timeout, showOverlay: false,
- onUnblock: onClose,
- css: $.blockUI.defaults.growlCSS
- });
-};
-
-// plugin method for blocking element content
-$.fn.block = function(opts) {
- return this.unblock({ fadeOut: 0 }).each(function() {
- if ($.css(this,'position') == 'static')
- this.style.position = 'relative';
- if ($.browser.msie)
- this.style.zoom = 1; // force 'hasLayout'
- install(this, opts);
- });
-};
-
-// plugin method for unblocking element content
-$.fn.unblock = function(opts) {
- return this.each(function() {
- remove(this, opts);
- });
-};
-
-$.blockUI.version = 2.37; // 2nd generation blocking at no extra cost!
-
-// override these in your code to change the default behavior and style
-$.blockUI.defaults = {
- // message displayed when blocking (use null for no message)
- message: '<h1>Please wait...</h1>',
-
- title: null, // title string; only used when theme == true
- draggable: true, // only used when theme == true (requires jquery-ui.js to be loaded)
-
- theme: false, // set to true to use with jQuery UI themes
-
- // styles for the message when blocking; if you wish to disable
- // these and use an external stylesheet then do this in your code:
- // $.blockUI.defaults.css = {};
- css: {
- padding: 0,
- margin: 0,
- width: '30%',
- top: '40%',
- left: '35%',
- textAlign: 'center',
- color: '#000',
- border: '3px solid #aaa',
- backgroundColor:'#fff',
- cursor: 'wait'
- },
-
- // minimal style set used when themes are used
- themedCSS: {
- width: '30%',
- top: '40%',
- left: '35%'
- },
-
- // styles for the overlay
- overlayCSS: {
- backgroundColor: '#000',
- opacity: 0.6,
- cursor: 'wait'
- },
-
- // styles applied when using $.growlUI
- growlCSS: {
- width: '350px',
- top: '10px',
- left: '',
- right: '10px',
- border: 'none',
- padding: '5px',
- opacity: 0.6,
- cursor: 'default',
- color: '#fff',
- backgroundColor: '#000',
- '-webkit-border-radius': '10px',
- '-moz-border-radius': '10px',
- 'border-radius': '10px'
- },
-
- // IE issues: 'about:blank' fails on HTTPS and javascript:false is s-l-o-w
- // (hat tip to Jorge H. N. de Vasconcelos)
- iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank',
-
- // force usage of iframe in non-IE browsers (handy for blocking applets)
- forceIframe: false,
-
- // z-index for the blocking overlay
- baseZ: 1000,
-
- // set these to true to have the message automatically centered
- centerX: true, // <-- only effects element blocking (page block controlled via css above)
- centerY: true,
-
- // allow body element to be stetched in ie6; this makes blocking look better
- // on "short" pages. disable if you wish to prevent changes to the body height
- allowBodyStretch: true,
-
- // enable if you want key and mouse events to be disabled for content that is blocked
- bindEvents: true,
-
- // be default blockUI will supress tab navigation from leaving blocking content
- // (if bindEvents is true)
- constrainTabKey: true,
-
- // fadeIn time in millis; set to 0 to disable fadeIn on block
- fadeIn: 200,
-
- // fadeOut time in millis; set to 0 to disable fadeOut on unblock
- fadeOut: 400,
-
- // time in millis to wait before auto-unblocking; set to 0 to disable auto-unblock
- timeout: 0,
-
- // disable if you don't want to show the overlay
- showOverlay: true,
-
- // if true, focus will be placed in the first available input field when
- // page blocking
- focusInput: true,
-
- // suppresses the use of overlay styles on FF/Linux (due to performance issues with opacity)
- applyPlatformOpacityRules: true,
-
- // callback method invoked when fadeIn has completed and blocking message is visible
- onBlock: null,
-
- // callback method invoked when unblocking has completed; the callback is
- // passed the element that has been unblocked (which is the window object for page
- // blocks) and the options that were passed to the unblock call:
- // onUnblock(element, options)
- onUnblock: null,
-
- // don't ask; if you really must know: http://groups.google.com/group/jquery-en/browse_thread/thread/36640a8730503595/2f6a79a77a78e493#2f6a79a77a78e493
- quirksmodeOffsetHack: 4,
-
- // class name of the message block
- blockMsgClass: 'blockMsg'
-};
-
-// private data and functions follow...
-
-var pageBlock = null;
-var pageBlockEls = [];
-
-function install(el, opts) {
- var full = (el == window);
- var msg = opts && opts.message !== undefined ? opts.message : undefined;
- opts = $.extend({}, $.blockUI.defaults, opts || {});
- opts.overlayCSS = $.extend({}, $.blockUI.defaults.overlayCSS, opts.overlayCSS || {});
- var css = $.extend({}, $.blockUI.defaults.css, opts.css || {});
- var themedCSS = $.extend({}, $.blockUI.defaults.themedCSS, opts.themedCSS || {});
- msg = msg === undefined ? opts.message : msg;
-
- // remove the current block (if there is one)
- if (full && pageBlock)
- remove(window, {fadeOut:0});
-
- // if an existing element is being used as the blocking content then we capture
- // its current place in the DOM (and current display style) so we can restore
- // it when we unblock
- if (msg && typeof msg != 'string' && (msg.parentNode || msg.jquery)) {
- var node = msg.jquery ? msg[0] : msg;
- var data = {};
- $(el).data('blockUI.history', data);
- data.el = node;
- data.parent = node.parentNode;
- data.display = node.style.display;
- data.position = node.style.position;
- if (data.parent)
- data.parent.removeChild(node);
- }
-
- var z = opts.baseZ;
-
- // blockUI uses 3 layers for blocking, for simplicity they are all used on every platform;
- // layer1 is the iframe layer which is used to supress bleed through of underlying content
- // layer2 is the overlay layer which has opacity and a wait cursor (by default)
- // layer3 is the message content that is displayed while blocking
-
- var lyr1 = ($.browser.msie || opts.forceIframe)
- ? $('<iframe class="blockUI" style="z-index:'+ (z++) +';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+opts.iframeSrc+'"></iframe>')
- : $('<div class="blockUI" style="display:none"></div>');
- var lyr2 = $('<div class="blockUI blockOverlay" style="z-index:'+ (z++) +';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');
-
- var lyr3, s;
- if (opts.theme && full) {
- s = '<div class="blockUI ' + opts.blockMsgClass + ' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+z+';display:none;position:fixed">' +
- '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(opts.title || ' ')+'</div>' +
- '<div class="ui-widget-content ui-dialog-content"></div>' +
- '</div>';
- }
- else if (opts.theme) {
- s = '<div class="blockUI ' + opts.blockMsgClass + ' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+z+';display:none;position:absolute">' +
- '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(opts.title || ' ')+'</div>' +
- '<div class="ui-widget-content ui-dialog-content"></div>' +
- '</div>';
- }
- else if (full) {
- s = '<div class="blockUI ' + opts.blockMsgClass + ' blockPage" style="z-index:'+z+';display:none;position:fixed"></div>';
- }
- else {
- s = '<div class="blockUI ' + opts.blockMsgClass + ' blockElement" style="z-index:'+z+';display:none;position:absolute"></div>';
- }
- lyr3 = $(s);
-
- // if we have a message, style it
- if (msg) {
- if (opts.theme) {
- lyr3.css(themedCSS);
- lyr3.addClass('ui-widget-content');
- }
- else
- lyr3.css(css);
- }
-
- // style the overlay
- if (!opts.applyPlatformOpacityRules || !($.browser.mozilla && /Linux/.test(navigator.platform)))
- lyr2.css(opts.overlayCSS);
- lyr2.css('position', full ? 'fixed' : 'absolute');
-
- // make iframe layer transparent in IE
- if ($.browser.msie || opts.forceIframe)
- lyr1.css('opacity',0.0);
-
- //$([lyr1[0],lyr2[0],lyr3[0]]).appendTo(full ? 'body' : el);
- var layers = [lyr1,lyr2,lyr3], $par = full ? $('body') : $(el);
- $.each(layers, function() {
- this.appendTo($par);
- });
-
- if (opts.theme && opts.draggable && $.fn.draggable) {
- lyr3.draggable({
- handle: '.ui-dialog-titlebar',
- cancel: 'li'
- });
- }
-
- // ie7 must use absolute positioning in quirks mode and to account for activex issues (when scrolling)
- var expr = setExpr && (!$.boxModel || $('object,embed', full ? null : el).length > 0);
- if (ie6 || expr) {
- // give body 100% height
- if (full && opts.allowBodyStretch && $.boxModel)
- $('html,body').css('height','100%');
-
- // fix ie6 issue when blocked element has a border width
- if ((ie6 || !$.boxModel) && !full) {
- var t = sz(el,'borderTopWidth'), l = sz(el,'borderLeftWidth');
- var fixT = t ? '(0 - '+t+')' : 0;
- var fixL = l ? '(0 - '+l+')' : 0;
- }
-
- // simulate fixed position
- $.each([lyr1,lyr2,lyr3], function(i,o) {
- var s = o[0].style;
- s.position = 'absolute';
- if (i < 2) {
- full ? s.setExpression('height','Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:'+opts.quirksmodeOffsetHack+') + "px"')
- : s.setExpression('height','this.parentNode.offsetHeight + "px"');
- full ? s.setExpression('width','jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"')
- : s.setExpression('width','this.parentNode.offsetWidth + "px"');
- if (fixL) s.setExpression('left', fixL);
- if (fixT) s.setExpression('top', fixT);
- }
- else if (opts.centerY) {
- if (full) s.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');
- s.marginTop = 0;
- }
- else if (!opts.centerY && full) {
- var top = (opts.css && opts.css.top) ? parseInt(opts.css.top) : 0;
- var expression = '((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + '+top+') + "px"';
- s.setExpression('top',expression);
- }
- });
- }
-
- // show the message
- if (msg) {
- if (opts.theme)
- lyr3.find('.ui-widget-content').append(msg);
- else
- lyr3.append(msg);
- if (msg.jquery || msg.nodeType)
- $(msg).show();
- }
-
- if (($.browser.msie || opts.forceIframe) && opts.showOverlay)
- lyr1.show(); // opacity is zero
- if (opts.fadeIn) {
- var cb = opts.onBlock ? opts.onBlock : noOp;
- var cb1 = (opts.showOverlay && !msg) ? cb : noOp;
- var cb2 = msg ? cb : noOp;
- if (opts.showOverlay)
- lyr2._fadeIn(opts.fadeIn, cb1);
- if (msg)
- lyr3._fadeIn(opts.fadeIn, cb2);
- }
- else {
- if (opts.showOverlay)
- lyr2.show();
- if (msg)
- lyr3.show();
- if (opts.onBlock)
- opts.onBlock();
- }
-
- // bind key and mouse events
- bind(1, el, opts);
-
- if (full) {
- pageBlock = lyr3[0];
- pageBlockEls = $(':input:enabled:visible',pageBlock);
- if (opts.focusInput)
- setTimeout(focus, 20);
- }
- else
- center(lyr3[0], opts.centerX, opts.centerY);
-
- if (opts.timeout) {
- // auto-unblock
- var to = setTimeout(function() {
- full ? $.unblockUI(opts) : $(el).unblock(opts);
- }, opts.timeout);
- $(el).data('blockUI.timeout', to);
- }
-};
-
-// remove the block
-function remove(el, opts) {
- var full = (el == window);
- var $el = $(el);
- var data = $el.data('blockUI.history');
- var to = $el.data('blockUI.timeout');
- if (to) {
- clearTimeout(to);
- $el.removeData('blockUI.timeout');
- }
- opts = $.extend({}, $.blockUI.defaults, opts || {});
- bind(0, el, opts); // unbind events
-
- var els;
- if (full) // crazy selector to handle odd field errors in ie6/7
- els = $('body').children().filter('.blockUI').add('body > .blockUI');
- else
- els = $('.blockUI', el);
-
- if (full)
- pageBlock = pageBlockEls = null;
-
- if (opts.fadeOut) {
- els.fadeOut(opts.fadeOut);
- setTimeout(function() { reset(els,data,opts,el); }, opts.fadeOut);
- }
- else
- reset(els, data, opts, el);
-};
-
-// move blocking element back into the DOM where it started
-function reset(els,data,opts,el) {
- els.each(function(i,o) {
- // remove via DOM calls so we don't lose event handlers
- if (this.parentNode)
- this.parentNode.removeChild(this);
- });
-
- if (data && data.el) {
- data.el.style.display = data.display;
- data.el.style.position = data.position;
- if (data.parent)
- data.parent.appendChild(data.el);
- $(el).removeData('blockUI.history');
- }
-
- if (typeof opts.onUnblock == 'function')
- opts.onUnblock(el,opts);
-};
-
-// bind/unbind the handler
-function bind(b, el, opts) {
- var full = el == window, $el = $(el);
-
- // don't bother unbinding if there is nothing to unbind
- if (!b && (full && !pageBlock || !full && !$el.data('blockUI.isBlocked')))
- return;
- if (!full)
- $el.data('blockUI.isBlocked', b);
-
- // don't bind events when overlay is not in use or if bindEvents is false
- if (!opts.bindEvents || (b && !opts.showOverlay))
- return;
-
- // bind anchors and inputs for mouse and key events
- var events = 'mousedown mouseup keydown keypress';
- b ? $(document).bind(events, opts, handler) : $(document).unbind(events, handler);
-
-// former impl...
-// var $e = $('a,:input');
-// b ? $e.bind(events, opts, handler) : $e.unbind(events, handler);
-};
-
-// event handler to suppress keyboard/mouse events when blocking
-function handler(e) {
- // allow tab navigation (conditionally)
- if (e.keyCode && e.keyCode == 9) {
- if (pageBlock && e.data.constrainTabKey) {
- var els = pageBlockEls;
- var fwd = !e.shiftKey && e.target === els[els.length-1];
- var back = e.shiftKey && e.target === els[0];
- if (fwd || back) {
- setTimeout(function(){focus(back)},10);
- return false;
- }
- }
- }
- var opts = e.data;
- // allow events within the message content
- if ($(e.target).parents('div.' + opts.blockMsgClass).length > 0)
- return true;
-
- // allow events for content that is not being blocked
- return $(e.target).parents().children().filter('div.blockUI').length == 0;
-};
-
-function focus(back) {
- if (!pageBlockEls)
- return;
- var e = pageBlockEls[back===true ? pageBlockEls.length-1 : 0];
- if (e)
- e.focus();
-};
-
-function center(el, x, y) {
- var p = el.parentNode, s = el.style;
- var l = ((p.offsetWidth - el.offsetWidth)/2) - sz(p,'borderLeftWidth');
- var t = ((p.offsetHeight - el.offsetHeight)/2) - sz(p,'borderTopWidth');
- if (x) s.left = l > 0 ? (l+'px') : '0';
- if (y) s.top = t > 0 ? (t+'px') : '0';
-};
-
-function sz(el, p) {
- return parseInt($.css(el,p))||0;
-};
-
-})(jQuery);
+++ /dev/null
-\feff/*
- *
- * jQuery Timer plugin v0.1
- * Matt Schmidt [http://www.mattptr.net]
- *
- * Licensed under the BSD License:
- * http://mattptr.net/license/license.txt
- *
- */
-
- jQuery.timer = function (interval, callback)
- {
- /**
- *
- * timer() provides a cleaner way to handle intervals
- *
- * @usage
- * $.timer(interval, callback);
- *
- *
- * @example
- * $.timer(1000, function (timer) {
- * alert("hello");
- * timer.stop();
- * });
- * @desc Show an alert box after 1 second and stop
- *
- * @example
- * var second = false;
- * $.timer(1000, function (timer) {
- * if (!second) {
- * alert('First time!');
- * second = true;
- * timer.reset(3000);
- * }
- * else {
- * alert('Second time');
- * timer.stop();
- * }
- * });
- * @desc Show an alert box after 1 second and show another after 3 seconds
- *
- *
- */
-
- var interval = interval || 100;
-
- if (!callback)
- return false;
-
- _timer = function (interval, callback) {
- this.stop = function () {
- clearInterval(self.id);
- };
-
- this.internalCallback = function () {
- callback(self);
- };
-
- this.reset = function (val) {
- if (self.id)
- clearInterval(self.id);
-
- var val = val || 100;
- this.id = setInterval(this.internalCallback, val);
- };
-
- this.interval = interval;
- this.id = setInterval(this.internalCallback, this.interval);
-
- var self = this;
- };
-
- return new _timer(interval, callback);
- };
\ No newline at end of file
+++ /dev/null
-/**
- * Copyright 2010 Tim Down.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-var Hashtable=(function(){var p="function";var n=(typeof Array.prototype.splice==p)?function(s,r){s.splice(r,1)}:function(u,t){var s,v,r;if(t===u.length-1){u.length=t}else{s=u.slice(t+1);u.length=t;for(v=0,r=s.length;v<r;++v){u[t+v]=s[v]}}};function a(t){var r;if(typeof t=="string"){return t}else{if(typeof t.hashCode==p){r=t.hashCode();return(typeof r=="string")?r:a(r)}else{if(typeof t.toString==p){return t.toString()}else{try{return String(t)}catch(s){return Object.prototype.toString.call(t)}}}}}function g(r,s){return r.equals(s)}function e(r,s){return(typeof s.equals==p)?s.equals(r):(r===s)}function c(r){return function(s){if(s===null){throw new Error("null is not a valid "+r)}else{if(typeof s=="undefined"){throw new Error(r+" must not be undefined")}}}}var q=c("key"),l=c("value");function d(u,s,t,r){this[0]=u;this.entries=[];this.addEntry(s,t);if(r!==null){this.getEqualityFunction=function(){return r}}}var h=0,j=1,f=2;function o(r){return function(t){var s=this.entries.length,v,u=this.getEqualityFunction(t);while(s--){v=this.entries[s];if(u(t,v[0])){switch(r){case h:return true;case j:return v;case f:return[s,v[1]]}}}return false}}function k(r){return function(u){var v=u.length;for(var t=0,s=this.entries.length;t<s;++t){u[v+t]=this.entries[t][r]}}}d.prototype={getEqualityFunction:function(r){return(typeof r.equals==p)?g:e},getEntryForKey:o(j),getEntryAndIndexForKey:o(f),removeEntryForKey:function(s){var r=this.getEntryAndIndexForKey(s);if(r){n(this.entries,r[0]);return r[1]}return null},addEntry:function(r,s){this.entries[this.entries.length]=[r,s]},keys:k(0),values:k(1),getEntries:function(s){var u=s.length;for(var t=0,r=this.entries.length;t<r;++t){s[u+t]=this.entries[t].slice(0)}},containsKey:o(h),containsValue:function(s){var r=this.entries.length;while(r--){if(s===this.entries[r][1]){return true}}return false}};function m(s,t){var r=s.length,u;while(r--){u=s[r];if(t===u[0]){return r}}return null}function i(r,s){var t=r[s];return(t&&(t instanceof d))?t:null}function b(t,r){var w=this;var v=[];var u={};var x=(typeof t==p)?t:a;var s=(typeof r==p)?r:null;this.put=function(B,C){q(B);l(C);var D=x(B),E,A,z=null;E=i(u,D);if(E){A=E.getEntryForKey(B);if(A){z=A[1];A[1]=C}else{E.addEntry(B,C)}}else{E=new d(D,B,C,s);v[v.length]=E;u[D]=E}return z};this.get=function(A){q(A);var B=x(A);var C=i(u,B);if(C){var z=C.getEntryForKey(A);if(z){return z[1]}}return null};this.containsKey=function(A){q(A);var z=x(A);var B=i(u,z);return B?B.containsKey(A):false};this.containsValue=function(A){l(A);var z=v.length;while(z--){if(v[z].containsValue(A)){return true}}return false};this.clear=function(){v.length=0;u={}};this.isEmpty=function(){return !v.length};var y=function(z){return function(){var A=[],B=v.length;while(B--){v[B][z](A)}return A}};this.keys=y("keys");this.values=y("values");this.entries=y("getEntries");this.remove=function(B){q(B);var C=x(B),z,A=null;var D=i(u,C);if(D){A=D.removeEntryForKey(B);if(A!==null){if(!D.entries.length){z=m(v,C);n(v,z);delete u[C]}}}return A};this.size=function(){var A=0,z=v.length;while(z--){A+=v[z].entries.length}return A};this.each=function(C){var z=w.entries(),A=z.length,B;while(A--){B=z[A];C(B[0],B[1])}};this.putAll=function(H,C){var B=H.entries();var E,F,D,z,A=B.length;var G=(typeof C==p);while(A--){E=B[A];F=E[0];D=E[1];if(G&&(z=w.get(F))){D=C(F,z,D)}w.put(F,D)}};this.clone=function(){var z=new b(t,r);z.putAll(w);return z}}return b})();
\ No newline at end of file
+++ /dev/null
-/* Jmol 12.0 script library Jmol.js 9:48 PM 1/31/2011 Bob Hanson
-
- checkbox heirarchy -- see http://chemapps.stolaf.edu/jmol/docs/examples-11/check.htm
-
- based on:
- *
- * Copyright (C) 2004-2005 Miguel, Jmol Development, www.jmol.org
- *
- * Contact: hansonr@stolaf.edu
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
- * 02111-1307 USA.
- */
-
-// for documentation see www.jmol.org/jslibrary
-
-try{if(typeof(_jmol)!="undefined")exit()
-
-// place "?NOAPPLET" on your command line to check applet control action with a textarea
-// place "?JMOLJAR=xxxxx" to use a specific jar file
-
-// bob hanson -- jmolResize(w,h) -- resizes absolutely or by percent (w or h 0.5 means 50%)
-// angel herraez -- update of jmolResize(w,h,targetSuffix) so it is not tied to first applet
-// bob hanson -- jmolEvaluate -- evaluates molecular math 8:37 AM 2/23/2007
-// bob hanson -- jmolScriptMessage -- returns all "scriptStatus" messages 8:37 AM 2/23/2007
-// bob hanson -- jmolScriptEcho -- returns all "scriptEcho" messages 8:37 AM 2/23/2007
-// bob hanson -- jmolScriptWait -- 11:31 AM 5/2/2006
-// bob hanson -- remove trailing separatorHTML in radio groups -- 12:18 PM 5/6/2006
-// bob hanson -- adds support for dynamic DOM script nodes 7:04 AM 5/19/2006
-// bob hanson -- adds try/catch for wiki - multiple code passes 7:05 AM 5/19/2006
-// bob hanson -- auto-initiates to defaultdir/defaultjar -- change as desired.
-// bob hanson -- adding save/restore orientation w/ and w/o delay 11:49 AM 5/25/2006
-// bob hanson -- adding AjaxJS service 11:16 AM 6/3/2006
-// bob hanson -- fix for iframes not available for finding applet
-// bob hanson -- added applet fake ?NOAPPLET URL flag
-// bob hanson -- added jmolSetCallback(calbackName, funcName) 3:32 PM 6/13/2006
-// used PRIOR to jmolApplet() or jmolAppletInline()
-// added 4th array element in jmolRadioGroup -- title
-// added <span> and id around link, checkbox, radio, menu
-// fixing AJAX loads for MSIE/Opera-Mozilla incompatibility
-// -- renamed Jmol-11.js from Jmol-new.js; JmolApplet.jar from JmolAppletProto.jar
-// renamed Jmol.js for Jmol 11 distribution
-// -- modified jmolRestoreOrientation() to be immediate, no 1-second delay
-// bob hanson -- jmolScriptWait always returns a string -- 11:23 AM 9/16/2006
-// bh -- jmolCommandInput()
-// bh -- jmolSetTranslation(TF) -- forces translation even if there might be message callback issues
-// bh -- minor fixes suggested by Angel
-// bh -- adds jmolSetSyncId() and jmolGetSyncId()
-// bh 3/2008 -- adds jmolAppendInlineScript() and jmolAppendInlineArray()
-// bh 3/2008 -- fixes IE7 bug in relation to jmolLoadInlineArray()
-// bh 6/2008 -- adds jmolSetAppletWindow()
-// Angel H. 6/2008 -- added html <label> tags to checkboxes and radio buttons [in jmolCheckbox() and _jmolRadio() functions]
-// bh 7/2008 -- code fix "for(i..." not "for(var i..."
-// bh 12/2008 -- jmolLoadInline, jmolLoadInlineArray, jmolLoadInlineScript, jmolAppendInlineScript, jmolAppendInlineArray all return error message or null (Jmol 11.7.16)
-// bh 12/2008 -- jmolScriptWaitOutput() -- waits for script to complete and delivers output normally sent to console
-
-// bh 5/2009 -- Support for XHTML using jmolSetXHTML(id)
-// ah & bh 6/2009 -- New jmolResizeApplet() more flexible, similar to jmolApplet() size syntax
-// bh 11/2009 -- care in accessing top.document
-// bh 12/2009 -- added jmolSetParameter(name, value)
-// bh 12/2009 -- added PARAMS=name:value;name:value;name:value... for command line
-// bh 12/2009 -- overhaul of target checking
-// bh 1/2010 -- all _xxxx() methods ALWAYS have complete argument list
-// bh 1/2010 -- adds option to run a JavaScript function from any Jmol control.
-// This is accomplished by passing an array rather than a script:
-// jmolHref([myfunc,"my param 1", "my param 2"], "testing")
-// function myfunc(jmolControlObject, [myfunc,"my param 1", "my param 2"], target){...}
-// and allows much more flexibility with responding to controls
-// bh 4/2010 -- added jmolSetMemoryMb(nMb)
-// ah 1/2011 -- wider detection of browsers; more browsers now use the object tag instead of the applet tag;
-// fix of object tag (removed classid) accounts for change of behavior in Chrome
-// bh 3/2011 -- added jmolLoadAjax_STOLAF_NIH
-
-var defaultdir = "."
-var defaultjar = "JmolApplet.jar"
-
-
-// Note added 12:41 PM 9/21/2008 by Bob Hanson, hansonr@stolaf.edu:
-
-// JMOLJAR=xxxxx.jar on the URL for this page will override
-// the JAR file specified in the jmolInitialize() call.
-
-// The idea is that it can be very useful to test a web page with different JAR files
-// Or for an expert user to substitute a signed applet for an unsigned one
-// so as to use a broader range of models or to create JPEG files, for example.
-
-// If the JAR file is not in the current directory (has any sort of "/" in its name)
-// then the user is presented with a warning and asked whether it is OK to change Jar files.
-// The default action, if the user just presses "OK" is to NOT allow the change.
-// The user must type the word "yes" in the prompt box for the change to be approved.
-
-// If you don't want people to be able to switch in their own JAR file on your page,
-// simply set this next line to read "var allowJMOLJAR = false".
-
-
-var undefined; // for IE 5 ... wherein undefined is undefined
-
-////////////////////////////////////////////////////////////////
-// Basic Scripting infrastruture
-////////////////////////////////////////////////////////////////
-
-function jmolInitialize(codebaseDirectory, fileNameOrUseSignedApplet) {
- if (_jmol.initialized)
- return;
- _jmol.initialized = true;
- if(_jmol.jmoljar) {
- var f = _jmol.jmoljar;
- if (f.indexOf("/") >= 0) {
- alert ("This web page URL is requesting that the applet used be " + f + ". This is a possible security risk, particularly if the applet is signed, because signed applets can read and write files on your local machine or network.")
- var ok = prompt("Do you want to use applet " + f + "? ","yes or no")
- if (ok == "yes") {
- codebaseDirectory = f.substring(0, f.lastIndexOf("/"));
- fileNameOrUseSignedApplet = f.substring(f.lastIndexOf("/") + 1);
- } else {
- _jmolGetJarFilename(fileNameOrUseSignedApplet);
- alert("The web page URL was ignored. Continuing using " + _jmol.archivePath + ' in directory "' + codebaseDirectory + '"');
- }
- } else {
- fileNameOrUseSignedApplet = f;
- }
- }
- _jmolSetCodebase(codebaseDirectory);
- _jmolGetJarFilename(fileNameOrUseSignedApplet);
- _jmolOnloadResetForms();
-}
-
-function jmolSetTranslation(TF) {
- _jmol.params.doTranslate = ''+TF;
-}
-
-function _jmolGetJarFilename(fileNameOrFlag) {
- _jmol.archivePath =
- (typeof(fileNameOrFlag) == "string" ? fileNameOrFlag : (fileNameOrFlag ? "JmolAppletSigned" : "JmolApplet") + "0.jar");
-}
-
-function jmolSetDocument(doc) {
- _jmol.currentDocument = doc;
-}
-
-function jmolSetAppletColor(boxbgcolor, boxfgcolor, progresscolor) {
- _jmolInitCheck();
- _jmol.params.boxbgcolor = boxbgcolor;
- if (boxfgcolor)
- _jmol.params.boxfgcolor = boxfgcolor
- else if (boxbgcolor == "white" || boxbgcolor == "#FFFFFF")
- _jmol.params.boxfgcolor = "black";
- else
- _jmol.params.boxfgcolor = "white";
- if (progresscolor)
- _jmol.params.progresscolor = progresscolor;
- if (_jmol.debugAlert)
- alert(" boxbgcolor=" + _jmol.params.boxbgcolor +
- " boxfgcolor=" + _jmol.params.boxfgcolor +
- " progresscolor=" + _jmol.params.progresscolor);
-}
-
-function jmolSetAppletWindow(w) {
- _jmol.appletWindow = w;
-}
-
-function jmolApplet(size, script, nameSuffix) {
- _jmolInitCheck();
- return _jmolApplet(size, null, script, nameSuffix);
-}
-
-////////////////////////////////////////////////////////////////
-// Basic controls
-////////////////////////////////////////////////////////////////
-
-// undefined means it wasn't there; null means it was explicitly listed as null (so as to skip it)
-
-function jmolButton(script, label, id, title) {
- _jmolInitCheck();
- id != undefined && id != null || (id = "jmolButton" + _jmol.buttonCount);
- label != undefined && label != null || (label = script.substring(0, 32));
- ++_jmol.buttonCount;
- var scriptIndex = _jmolAddScript(script);
- var t = "<span id=\"span_"+id+"\""+(title ? " title=\"" + title + "\"":"")+"><input type='button' name='" + id + "' id='" + id +
- "' value='" + label +
- "' onclick='_jmolClick(this," + scriptIndex + _jmol.targetText +
- ")' onmouseover='_jmolMouseOver(" + scriptIndex +
- ");return true' onmouseout='_jmolMouseOut()' " +
- _jmol.buttonCssText + " /></span>";
- if (_jmol.debugAlert)
- alert(t);
- return _jmolDocumentWrite(t);
-}
-
-function jmolCheckbox(scriptWhenChecked, scriptWhenUnchecked,
- labelHtml, isChecked, id, title) {
- _jmolInitCheck();
- id != undefined && id != null || (id = "jmolCheckbox" + _jmol.checkboxCount);
- ++_jmol.checkboxCount;
- if (scriptWhenChecked == undefined || scriptWhenChecked == null ||
- scriptWhenUnchecked == undefined || scriptWhenUnchecked == null) {
- alert("jmolCheckbox requires two scripts");
- return;
- }
- if (labelHtml == undefined || labelHtml == null) {
- alert("jmolCheckbox requires a label");
- return;
- }
- var indexChecked = _jmolAddScript(scriptWhenChecked);
- var indexUnchecked = _jmolAddScript(scriptWhenUnchecked);
- var eospan = "</span>"
- var t = "<span id=\"span_"+id+"\""+(title ? " title=\"" + title + "\"":"")+"><input type='checkbox' name='" + id + "' id='" + id +
- "' onclick='_jmolCbClick(this," +
- indexChecked + "," + indexUnchecked + _jmol.targetText +
- ")' onmouseover='_jmolCbOver(this," + indexChecked + "," +
- indexUnchecked +
- ");return true' onmouseout='_jmolMouseOut()' " +
- (isChecked ? "checked='true' " : "")+ _jmol.checkboxCssText + " />"
- if (labelHtml.toLowerCase().indexOf("<td>")>=0) {
- t += eospan
- eospan = "";
- }
- t += "<label for=\"" + id + "\">" + labelHtml + "</label>" +eospan;
- if (_jmol.debugAlert)
- alert(t);
- return _jmolDocumentWrite(t);
-}
-
-function jmolStartNewRadioGroup() {
- ++_jmol.radioGroupCount;
-}
-
-function jmolRadioGroup(arrayOfRadioButtons, separatorHtml, groupName, id, title) {
- /*
-
- array: [radio1,radio2,radio3...]
- where radioN = ["script","label",isSelected,"id","title"]
-
- */
-
- _jmolInitCheck();
- var type = typeof arrayOfRadioButtons;
- if (type != "object" || type == null || ! arrayOfRadioButtons.length) {
- alert("invalid arrayOfRadioButtons");
- return;
- }
- separatorHtml != undefined && separatorHtml != null || (separatorHtml = " ");
- var len = arrayOfRadioButtons.length;
- jmolStartNewRadioGroup();
- groupName || (groupName = "jmolRadioGroup" + (_jmol.radioGroupCount - 1));
- var t = "<span id='"+(id ? id : groupName)+"'>";
- for (var i = 0; i < len; ++i) {
- if (i == len - 1)
- separatorHtml = "";
- var radio = arrayOfRadioButtons[i];
- type = typeof radio;
- if (type == "object") {
- t += _jmolRadio(radio[0], radio[1], radio[2], separatorHtml, groupName, (radio.length > 3 ? radio[3]: (id ? id : groupName)+"_"+i), (radio.length > 4 ? radio[4] : 0), title);
- } else {
- t += _jmolRadio(radio, null, null, separatorHtml, groupName, (id ? id : groupName)+"_"+i, title);
- }
- }
- t+="</span>"
- if (_jmol.debugAlert)
- alert(t);
- return _jmolDocumentWrite(t);
-}
-
-
-function jmolRadio(script, labelHtml, isChecked, separatorHtml, groupName, id, title) {
- _jmolInitCheck();
- if (_jmol.radioGroupCount == 0)
- ++_jmol.radioGroupCount;
- var t = _jmolRadio(script, labelHtml, isChecked, separatorHtml, groupName, (id ? id : groupName + "_" + _jmol.radioCount), title ? title : 0);
- if (_jmol.debugAlert)
- alert(t);
- return _jmolDocumentWrite(t);
-}
-
-function jmolLink(script, label, id, title) {
- _jmolInitCheck();
- id != undefined && id != null || (id = "jmolLink" + _jmol.linkCount);
- label != undefined && label != null || (label = script.substring(0, 32));
- ++_jmol.linkCount;
- var scriptIndex = _jmolAddScript(script);
- var t = "<span id=\"span_"+id+"\""+(title ? " title=\"" + title + "\"":"")+"><a name='" + id + "' id='" + id +
- "' href='javascript:_jmolClick(this," + scriptIndex + _jmol.targetText + ");' onmouseover='_jmolMouseOver(" + scriptIndex +
- ");return true;' onmouseout='_jmolMouseOut()' " +
- _jmol.linkCssText + ">" + label + "</a></span>";
- if (_jmol.debugAlert)
- alert(t);
- return _jmolDocumentWrite(t);
-}
-
-function jmolCommandInput(label, size, id, title) {
- _jmolInitCheck();
- id != undefined && id != null || (id = "jmolCmd" + _jmol.cmdCount);
- label != undefined && label != null || (label = "Execute");
- size != undefined && !isNaN(size) || (size = 60);
- ++_jmol.cmdCount;
- var t = "<span id=\"span_"+id+"\""+(title ? " title=\"" + title + "\"":"")+"><input name='" + id + "' id='" + id +
- "' size='"+size+"' onkeypress='_jmolCommandKeyPress(event,\""+id+"\"" + _jmol.targetText + ")'><input type=button value = '"+label+"' onclick='jmolScript(document.getElementById(\""+id+"\").value" + _jmol.targetText + ")' /></span>";
- if (_jmol.debugAlert)
- alert(t);
- return _jmolDocumentWrite(t);
-}
-
-function _jmolCommandKeyPress(e, id, target) {
- var keycode = (window.event ? window.event.keyCode : e ? e.which : 0);
- if (keycode == 13) {
- var inputBox = document.getElementById(id)
- _jmolScriptExecute(inputBox, inputBox.value, target)
- }
-}
-
-function _jmolScriptExecute(element,script,target) {
- if (typeof(script) == "object")
- script[0](element, script, target)
- else
- jmolScript(script, target)
-}
-
-function jmolMenu(arrayOfMenuItems, size, id, title) {
- _jmolInitCheck();
- id != undefined && id != null || (id = "jmolMenu" + _jmol.menuCount);
- ++_jmol.menuCount;
- var type = typeof arrayOfMenuItems;
- if (type != null && type == "object" && arrayOfMenuItems.length) {
- var len = arrayOfMenuItems.length;
- if (typeof size != "number" || size == 1)
- size = null;
- else if (size < 0)
- size = len;
- var sizeText = size ? " size='" + size + "' " : "";
- var t = "<span id=\"span_"+id+"\""+(title ? " title=\"" + title + "\"":"")+"><select name='" + id + "' id='" + id +
- "' onChange='_jmolMenuSelected(this" + _jmol.targetText + ")'" +
- sizeText + _jmol.menuCssText + ">";
- for (var i = 0; i < len; ++i) {
- var menuItem = arrayOfMenuItems[i];
- type = typeof menuItem;
- var script, text;
- var isSelected = undefined;
- if (type == "object" && menuItem != null) {
- script = menuItem[0];
- text = menuItem[1];
- isSelected = menuItem[2];
- } else {
- script = text = menuItem;
- }
- text != undefined && text != null || (text = script);
- if (script=="#optgroup") {
- t += "<optgroup label='" + text + "'>";
- } else if (script=="#optgroupEnd") {
- t += "</optgroup>";
- } else {
- var scriptIndex = _jmolAddScript(script);
- var selectedText = isSelected ? "' selected='true'>" : "'>";
- t += "<option value='" + scriptIndex + selectedText + text + "</option>";
- }
- }
- t += "</select></span>";
- if (_jmol.debugAlert)
- alert(t);
- return _jmolDocumentWrite(t);
- }
-}
-
-function jmolHtml(html) {
- return _jmolDocumentWrite(html);
-}
-
-function jmolBr() {
- return _jmolDocumentWrite("<br />");
-}
-
-////////////////////////////////////////////////////////////////
-// advanced scripting functions
-////////////////////////////////////////////////////////////////
-
-function jmolDebugAlert(enableAlerts) {
- _jmol.debugAlert = (enableAlerts == undefined || enableAlerts)
-}
-
-function jmolAppletInline(size, inlineModel, script, nameSuffix) {
- _jmolInitCheck();
- return _jmolApplet(size, _jmolSterilizeInline(inlineModel),
- script, nameSuffix);
-}
-
-function jmolSetTarget(targetSuffix) {
- _jmol.targetSuffix = targetSuffix;
- _jmol.targetText = targetSuffix ? ",\"" + targetSuffix + "\"" : ",0";
-}
-
-function jmolScript(script, targetSuffix) {
- if (script) {
- _jmolCheckBrowser();
- if (targetSuffix == "all") {
- with (_jmol) {
- for (var i = 0; i < appletSuffixes.length; ++i) {
- var applet = _jmolGetApplet(appletSuffixes[i]);
- if (applet) applet.script(script);
- }
- }
- } else {
- var applet=_jmolGetApplet(targetSuffix);
- if (applet) applet.script(script);
- }
- }
-}
-
-function jmolLoadInline(model, targetSuffix) {
- if (!model)return "ERROR: NO MODEL"
- var applet=_jmolGetApplet(targetSuffix);
- if (!applet)return "ERROR: NO APPLET"
- if (typeof(model) == "string")
- return applet.loadInlineString(model, "", false);
- else
- return applet.loadInlineArray(model, "", false);
-}
-
-
-function jmolLoadInlineScript(model, script, targetSuffix) {
- if (!model)return "ERROR: NO MODEL"
- var applet=_jmolGetApplet(targetSuffix);
- if (!applet)return "ERROR: NO APPLET"
- return applet.loadInlineString(model, script, false);
-}
-
-
-function jmolLoadInlineArray(ModelArray, script, targetSuffix) {
- if (!model)return "ERROR: NO MODEL"
- script || (script="")
- var applet=_jmolGetApplet(targetSuffix);
- if (!applet)return "ERROR: NO APPLET"
- try {
- return applet.loadInlineArray(ModelArray, script, false);
- } catch (err) {
- //IE 7 bug
- return applet.loadInlineString(ModelArray.join("\n"), script, false);
- }
-}
-
-function jmolAppendInlineArray(ModelArray, script, targetSuffix) {
- if (!model)return "ERROR: NO MODEL"
- script || (script="")
- var applet=_jmolGetApplet(targetSuffix);
- if (!applet)return "ERROR: NO APPLET"
- try {
- return applet.loadInlineArray(ModelArray, script, true);
- } catch (err) {
- //IE 7 bug
- return applet.loadInlineString(ModelArray.join("\n"), script, true);
- }
-}
-
-function jmolAppendInlineScript(model, script, targetSuffix) {
- if (!model)return "ERROR: NO MODEL"
- var applet=_jmolGetApplet(targetSuffix);
- if (!applet)return "ERROR: NO APPLET"
- return applet.loadInlineString(model, script, true);
-}
-
-function jmolCheckBrowser(action, urlOrMessage, nowOrLater) {
- if (typeof action == "string") {
- action = action.toLowerCase();
- action == "alert" || action == "redirect" || action == "popup" || (action = null);
- }
- if (typeof action != "string")
- alert("jmolCheckBrowser(action, urlOrMessage, nowOrLater)\n\n" +
- "action must be 'alert', 'redirect', or 'popup'");
- else {
- if (typeof urlOrMessage != "string")
- alert("jmolCheckBrowser(action, urlOrMessage, nowOrLater)\n\n" +
- "urlOrMessage must be a string");
- else {
- _jmol.checkBrowserAction = action;
- _jmol.checkBrowserUrlOrMessage = urlOrMessage;
- }
- }
- if (typeof nowOrLater == "string" && nowOrLater.toLowerCase() == "now")
- _jmolCheckBrowser();
-}
-
-////////////////////////////////////////////////////////////////
-// Cascading Style Sheet Class support
-////////////////////////////////////////////////////////////////
-
-function jmolSetAppletCssClass(appletCssClass) {
- if (_jmol.hasGetElementById) {
- _jmol.appletCssClass = appletCssClass;
- _jmol.appletCssText = appletCssClass ? "class='" + appletCssClass + "' " : "";
- }
-}
-
-function jmolSetButtonCssClass(buttonCssClass) {
- if (_jmol.hasGetElementById) {
- _jmol.buttonCssClass = buttonCssClass;
- _jmol.buttonCssText = buttonCssClass ? "class='" + buttonCssClass + "' " : "";
- }
-}
-
-function jmolSetCheckboxCssClass(checkboxCssClass) {
- if (_jmol.hasGetElementById) {
- _jmol.checkboxCssClass = checkboxCssClass;
- _jmol.checkboxCssText = checkboxCssClass ? "class='" + checkboxCssClass + "' " : "";
- }
-}
-
-function jmolSetRadioCssClass(radioCssClass) {
- if (_jmol.hasGetElementById) {
- _jmol.radioCssClass = radioCssClass;
- _jmol.radioCssText = radioCssClass ? "class='" + radioCssClass + "' " : "";
- }
-}
-
-function jmolSetLinkCssClass(linkCssClass) {
- if (_jmol.hasGetElementById) {
- _jmol.linkCssClass = linkCssClass;
- _jmol.linkCssText = linkCssClass ? "class='" + linkCssClass + "' " : "";
- }
-}
-
-function jmolSetMenuCssClass(menuCssClass) {
- if (_jmol.hasGetElementById) {
- _jmol.menuCssClass = menuCssClass;
- _jmol.menuCssText = menuCssClass ? "class='" + menuCssClass + "' " : "";
- }
-}
-
-////////////////////////////////////////////////////////////////
-// functions for INTERNAL USE ONLY which are subject to change
-// use at your own risk ... you have been WARNED!
-////////////////////////////////////////////////////////////////
-var _jmol = {
- currentDocument: document,
-
- debugAlert: false,
-
- codebase: "",
- modelbase: ".",
-
- appletCount: 0,
- appletSuffixes: [],
- appletWindow: null,
- allowedJmolSize: [25, 2048, 300], // min, max, default (pixels)
- /* By setting the _jmol.allowedJmolSize[] variable in the webpage
- before calling jmolApplet(), limits for applet size can be overriden.
- 2048 standard for GeoWall (http://geowall.geo.lsa.umich.edu/home.html)
- */
- buttonCount: 0,
- checkboxCount: 0,
- linkCount: 0,
- cmdCount: 0,
- menuCount: 0,
- radioCount: 0,
- radioGroupCount: 0,
-
- appletCssClass: null,
- appletCssText: "",
- buttonCssClass: null,
- buttonCssText: "",
- checkboxCssClass: null,
- checkboxCssText: "",
- java_arguments: "-Xmx512m",
- radioCssClass: null,
- radioCssText: "",
- linkCssClass: null,
- linkCssText: "",
- menuCssClass: null,
- menuCssText: "",
-
- targetSuffix: 0,
- targetText: ",0",
- scripts: [""],
- params: {
- syncId: ("" + Math.random()).substring(3),
- progressbar: "true",
- progresscolor: "blue",
- boxbgcolor: "black",
- boxfgcolor: "white",
- boxmessage: "Downloading JmolApplet ..."
- },
- ua: navigator.userAgent.toLowerCase(),
- // uaVersion: parseFloat(navigator.appVersion), // not used
-
- os: "unknown",
- browser: "unknown",
- browserVersion: 0,
- hasGetElementById: !!document.getElementById,
- isJavaEnabled: navigator.javaEnabled(),
- // isNetscape47Win: false, // not used, N4.7 is no longer supported even for detection
- useIEObject: false,
- useHtml4Object: false,
-
- windowsClassId: "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93",
- windowsCabUrl:
- "http://java.sun.com/update/1.6.0/jinstall-6u22-windows-i586.cab",
-
- isBrowserCompliant: false,
- isJavaCompliant: false,
- isFullyCompliant: false,
-
- initialized: false,
- initChecked: false,
-
- browserChecked: false,
- checkBrowserAction: "alert",
- checkBrowserUrlOrMessage: null,
-
- archivePath: null, // JmolApplet0.jar OR JmolAppletSigned0.jar
-
- previousOnloadHandler: null,
-
- jmoljar: null,
- useNoApplet: false,
-
- ready: {}
-}
-
-with (_jmol) {
- function _jmolTestUA(candidate) {
- var ua = _jmol.ua;
- var index = ua.indexOf(candidate);
- if (index < 0)
- return false;
- _jmol.browser = candidate;
- _jmol.browserVersion = parseFloat(ua.substring(index+candidate.length+1));
- return true;
- }
-
- function _jmolTestOS(candidate) {
- if (_jmol.ua.indexOf(candidate) < 0)
- return false;
- _jmol.os = candidate;
- return true;
- }
-
- _jmolTestUA("konqueror") ||
- _jmolTestUA("webkit") ||
- _jmolTestUA("omniweb") ||
- _jmolTestUA("opera") ||
- _jmolTestUA("webtv") ||
- _jmolTestUA("icab") ||
- _jmolTestUA("msie") ||
- (_jmol.ua.indexOf("compatible") < 0 && _jmolTestUA("mozilla")); //Netscape, Mozilla, Seamonkey, Firefox and anything assimilated
-
- _jmolTestOS("linux") ||
- _jmolTestOS("unix") ||
- _jmolTestOS("mac") ||
- _jmolTestOS("win");
-
- /* not used:
- isNetscape47Win = (os == "win" && browser == "mozilla" &&
- browserVersion >= 4.78 && browserVersion <= 4.8);
- */
-
- if (os == "win") {
- isBrowserCompliant = hasGetElementById;
- } else if (os == "mac") { // mac is the problem child :-(
- if (browser == "mozilla" && browserVersion >= 5) {
- // miguel 2004 11 17
- // checking the plugins array does not work because
- // Netscape 7.2 OS X still has Java 1.3.1 listed even though
- // javaplugin.sf.net is installed to upgrade to 1.4.2
- eval("try {var v = java.lang.System.getProperty('java.version');" +
- " _jmol.isBrowserCompliant = v >= '1.4.2';" +
- " } catch (e) { }");
- } else if (browser == "opera" && browserVersion <= 7.54) {
- isBrowserCompliant = false;
- } else {
- isBrowserCompliant = hasGetElementById &&
- !((browser == "msie") ||
- (browser == "webkit" && browserVersion < 125.12));
- }
- } else if (os == "linux" || os == "unix") {
- if (browser == "konqueror" && browserVersion <= 3.3)
- isBrowserCompliant = false;
- else
- isBrowserCompliant = hasGetElementById;
- } else { // other OS
- isBrowserCompliant = hasGetElementById;
- }
-
- // possibly more checks in the future for this
- isJavaCompliant = isJavaEnabled;
-
- isFullyCompliant = isBrowserCompliant && isJavaCompliant;
-
- useIEObject = (os == "win" && browser == "msie" && browserVersion >= 5.5);
- useHtml4Object =
- (browser == "mozilla" && browserVersion >= 5) ||
- (browser == "opera" && browserVersion >= 8) ||
- (browser == "webkit" && browserVersion >= 412.2);
- try {
- if (top.location.search.indexOf("JMOLJAR=")>=0)
- jmoljar = top.location.search.split("JMOLJAR=")[1].split("&")[0];
- } catch(e) {
- // can't access top.location
- }
- try {
- useNoApplet = (top.location.search.indexOf("NOAPPLET")>=0);
- } catch(e) {
- // can't access top.document
- }
-}
-
-function jmolSetMemoryMb(nMb) {
- _jmol.java_arguments = "-Xmx" + Math.round(nMb) + "m"
-}
-
-function jmolSetParameter(name,value) {
- _jmol.params[name] = value
-}
-
-function jmolSetCallback(callbackName,funcName) {
- _jmol.params[callbackName] = funcName
-}
-
- try {
-// note this is done FIRST, so it cannot override a setting done by the developer
- if (top.location.search.indexOf("PARAMS=")>=0) {
- var pars = unescape(top.location.search.split("PARAMS=")[1].split("&")[0]).split(";");
- for (var i = 0; i < pars.length; i++) {
- var p = pars[i].split(":");
- jmolSetParameter(p[0],p[1]);
- }
- }
- } catch(e) {
- // can't access top.location
- }
-
-function jmolSetSyncId(n) {
- return _jmol.params["syncId"] = n
-}
-
-function jmolGetSyncId() {
- return _jmol.params["syncId"]
-}
-
-function jmolSetLogLevel(n) {
- _jmol.params.logLevel = ''+n;
-}
-
- /* AngelH, mar2007:
- By (re)setting these variables in the webpage before calling jmolApplet(),
- a custom message can be provided (e.g. localized for user's language) when no Java is installed.
- */
-if (noJavaMsg==undefined) var noJavaMsg =
- "You do not have Java applets enabled in your web browser, or your browser is blocking this applet.<br />\n" +
- "Check the warning message from your browser and/or enable Java applets in<br />\n" +
- "your web browser preferences, or install the Java Runtime Environment from <a href='http://www.java.com'>www.java.com</a><br />";
-if (noJavaMsg2==undefined) var noJavaMsg2 =
- "You do not have the<br />\n" +
- "Java Runtime Environment<br />\n" +
- "installed for applet support.<br />\n" +
- "Visit <a href='http://www.java.com'>www.java.com</a>";
-function _jmolApplet(size, inlineModel, script, nameSuffix) {
- /* AngelH, mar2007
- Fixed percent / pixel business, to avoid browser errors:
- put "px" where needed, avoid where not.
-
- Bob Hanson, 1/2010
- Fixed inline escape changing returns to |
- */
- with (_jmol) {
- nameSuffix == undefined && (nameSuffix = appletCount);
- appletSuffixes.push(nameSuffix);
- ++appletCount;
- script || (script = "select *");
- var sz = _jmolGetAppletSize(size);
- var widthAndHeight = " width='" + sz[0] + "' height='" + sz[1] + "' ";
- var tHeader, tFooter;
- codebase || jmolInitialize(".");
- if (useIEObject || useHtml4Object) {
- params.archive = archivePath;
- params.mayscript = 'true';
- params.codebase = codebase;
- params.code = 'JmolApplet';
- tHeader =
- "<object name='jmolApplet" + nameSuffix +
- "' id='jmolApplet" + nameSuffix + "' " + appletCssText + "\n" +
- widthAndHeight + "\n";
- tFooter = "</object>";
- }
- if (java_arguments)
- params.java_arguments = java_arguments;
- if (useIEObject) { // use MSFT IE6 object tag with .cab file reference
- tHeader += " classid='" + windowsClassId + "'\n" +
- (windowsCabUrl ? " codebase='" + windowsCabUrl + "'\n" : "") + ">\n";
- } else if (useHtml4Object) { // use HTML4 object tag
- tHeader += " type='application/x-java-applet'\n>\n";
- /* " classid='java:JmolApplet'\n" + AH removed this
- Chromium Issue 62076: Java Applets using an <object> with a classid paramater don't load.
- http://code.google.com/p/chromium/issues/detail?id=62076
- They say this is the correct behavior according to the spec, and there's no indication at this point
- that WebKit will be changing the handling, so eventually Safari will acquire this behavior too.
- Removing the classid parameter seems to be well tolerated by all browsers (even IE!).
- */
- } else { // use applet tag
- tHeader =
- "<applet name='jmolApplet" + nameSuffix +
- "' id='jmolApplet" + nameSuffix + "' " + appletCssText + "\n" +
- widthAndHeight + "\n" +
- " code='JmolApplet'" +
- " archive='" + archivePath + "' codebase='" + codebase + "'\n" +
- " mayscript='true'>\n";
- tFooter = "</applet>";
- }
- var visitJava;
- if (useIEObject || useHtml4Object) {
- var szX = "width:" + sz[0]
- if ( szX.indexOf("%")==-1 ) szX+="px"
- var szY = "height:" + sz[1]
- if ( szY.indexOf("%")==-1 ) szY+="px"
- visitJava =
- "<p style='background-color:yellow; color:black; " +
- szX + ";" + szY + ";" +
- // why doesn't this vertical-align work?
- "text-align:center;vertical-align:middle;'>\n" +
- noJavaMsg +
- "</p>";
- } else {
- visitJava =
- "<table bgcolor='yellow'><tr>" +
- "<td align='center' valign='middle' " + widthAndHeight + "><font color='black'>\n" +
- noJavaMsg2 +
- "</font></td></tr></table>";
- }
- params.loadInline = (inlineModel ? inlineModel : "");
- params.script = (script ? _jmolSterilizeScript(script) : "");
- var t = tHeader + _jmolParams() + visitJava + tFooter;
- jmolSetTarget(nameSuffix);
- ready["jmolApplet" + nameSuffix] = false;
- if (_jmol.debugAlert)
- alert(t);
- return _jmolDocumentWrite(t);
- }
-}
-
-function _jmolParams() {
- var t = "";
- for (var i in _jmol.params)
- if(_jmol.params[i]!="")
- t+=" <param name='"+i+"' value='"+_jmol.params[i]+"' />\n";
- return t
-}
-
-function _jmolInitCheck() {
- if (_jmol.initChecked)
- return;
- _jmol.initChecked = true;
- jmolInitialize(defaultdir, defaultjar)
-}
-
-function _jmolCheckBrowser() {
- with (_jmol) {
- if (browserChecked)
- return;
- browserChecked = true;
-
- if (isFullyCompliant)
- return true;
-
- if (checkBrowserAction == "redirect")
- location.href = checkBrowserUrlOrMessage;
- else if (checkBrowserAction == "popup")
- _jmolPopup(checkBrowserUrlOrMessage);
- else {
- var msg = checkBrowserUrlOrMessage;
- if (msg == null)
- msg = "Your web browser is not fully compatible with Jmol\n\n" +
- "browser: " + browser +
- " version: " + browserVersion +
- " os: " + os +
- " isBrowserCompliant: " + isBrowserCompliant +
- " isJavaCompliant: " + isJavaCompliant +
- "\n\n" + ua;
- alert(msg);
- }
- }
- return false;
-}
-
-function jmolSetXHTML(id) {
- _jmol.isXHTML = true
- _jmol.XhtmlElement = null
- _jmol.XhtmlAppendChild = false
- if (id){
- _jmol.XhtmlElement = document.getElementById(id)
- _jmol.XhtmlAppendChild = true
- }
-}
-
-function _jmolDocumentWrite(text) {
- if (_jmol.currentDocument) {
- if (_jmol.isXHTML && !_jmol.XhtmlElement) {
- var s = document.getElementsByTagName("script")
- _jmol.XhtmlElement = s.item(s.length - 1)
- _jmol.XhtmlAppendChild = false
- }
- if (_jmol.XhtmlElement) {
- _jmolDomDocumentWrite(text)
- } else {
- _jmol.currentDocument.write(text);
- }
- }
- return text;
-}
-
-function _jmolDomDocumentWrite(data) {
- var pt = 0
- var Ptr = []
- Ptr[0] = 0
- while (Ptr[0] < data.length) {
- var child = _jmolGetDomElement(data, Ptr)
- if (!child)break
- if (_jmol.XhtmlAppendChild)
- _jmol.XhtmlElement.appendChild(child)
- else
- _jmol.XhtmlElement.parentNode.insertBefore(child, _jmol.XhtmlElement);
- }
-}
-function _jmolGetDomElement(data, Ptr, closetag, lvel) {
- var e = document.createElement("span")
- e.innerHTML = data
- Ptr[0] = data.length
- return e
-
-//unnecessary?
-
- closetag || (closetag = "")
- lvel || (lvel = 0)
- var pt0 = Ptr[0]
- var pt = pt0
- while (pt < data.length && data.charAt(pt) != "<") pt++
- if (pt != pt0) {
- var text = data.substring(pt0, pt)
- Ptr[0] = pt
- return document.createTextNode(text)
- }
- pt0 = ++pt
- var ch
- while (pt < data.length && "\n\r\t >".indexOf(ch = data.charAt(pt)) < 0) pt++
- var tagname = data.substring(pt0, pt)
- var e = (tagname == closetag || tagname == "/" ? ""
- : document.createElementNS ? document.createElementNS('http://www.w3.org/1999/xhtml', tagname)
- : document.createElement(tagname));
- if (ch == ">") {
- Ptr[0] = ++pt
- return e
- }
- while (pt < data.length && (ch = data.charAt(pt)) != ">") {
- while (pt < data.length && "\n\r\t ".indexOf(ch = data.charAt(pt)) >= 0) pt++
- pt0 = pt
- while (pt < data.length && "\n\r\t =/>".indexOf(ch = data.charAt(pt)) < 0) pt++
- var attrname = data.substring(pt0, pt).toLowerCase()
- if (attrname && ch != "=")
- e.setAttribute(attrname, "true")
- while (pt < data.length && "\n\r\t ".indexOf(ch = data.charAt(pt)) >= 0) pt++
- if (ch == "/") {
- Ptr[0] = pt + 2
- return e
- } else if (ch == "=") {
- var quote = data.charAt(++pt)
- pt0 = ++pt
- while (pt < data.length && (ch = data.charAt(pt)) != quote) pt++
- var attrvalue = data.substring(pt0, pt)
- e.setAttribute(attrname, attrvalue)
- pt++
- }
- }
- Ptr[0] = ++pt
- while (Ptr[0] < data.length) {
- var child = _jmolGetDomElement(data, Ptr, "/" + tagname, lvel+1)
- if (!child)break
- e.appendChild(child)
- }
- return e
-}
-
-function _jmolPopup(url) {
- var popup = window.open(url, "JmolPopup",
- "left=150,top=150,height=400,width=600," +
- "directories=yes,location=yes,menubar=yes," +
- "toolbar=yes," +
- "resizable=yes,scrollbars=yes,status=yes");
- if (popup.focus)
- poup.focus();
-}
-
-function _jmolReadyCallback(name) {
- if (_jmol.debugAlert)
- alert(name + " is ready");
- _jmol.ready["" + name] = true;
-}
-
-function _jmolSterilizeScript(script) {
- script = script.replace(/'/g, "'");
- if (_jmol.debugAlert)
- alert("script:\n" + script);
- return script;
-}
-
-function _jmolSterilizeInline(model) {
- model = model.replace(/\r|\n|\r\n/g, (model.indexOf("|") >= 0 ? "\\/n" : "|")).replace(/'/g, "'");
- if (_jmol.debugAlert)
- alert("inline model:\n" + model);
- return model;
-}
-
-function _jmolRadio(script, labelHtml, isChecked, separatorHtml, groupName, id, title) {
- ++_jmol.radioCount;
- groupName != undefined && groupName != null || (groupName = "jmolRadioGroup" + (_jmol.radioGroupCount - 1));
- if (!script)
- return "";
- labelHtml != undefined && labelHtml != null || (labelHtml = script.substring(0, 32));
- separatorHtml || (separatorHtml = "")
- var scriptIndex = _jmolAddScript(script);
- var eospan = "</span>"
- var t = "<span id=\"span_"+id+"\""+(title ? " title=\"" + title + "\"":"")+"><input name='"
- + groupName + "' id='"+id+"' type='radio' onclick='_jmolClick(this," +
- scriptIndex + _jmol.targetText + ");return true;' onmouseover='_jmolMouseOver(" +
- scriptIndex + ");return true;' onmouseout='_jmolMouseOut()' " +
- (isChecked ? "checked='true' " : "") + _jmol.radioCssText + " />"
- if (labelHtml.toLowerCase().indexOf("<td>")>=0) {
- t += eospan
- eospan = "";
- }
- t += "<label for=\"" + id + "\">" + labelHtml + "</label>" +eospan + separatorHtml;
-
- return t;
-}
-
-function _jmolFindApplet(target) {
- // first look for the target in the current window
- var applet = _jmolFindAppletInWindow(_jmol.appletWindow != null ? _jmol.appletWindow : window, target);
- // THEN look for the target in child frames
- if (applet == undefined)
- applet = _jmolSearchFrames(window, target);
- // FINALLY look for the target in sibling frames
- if (applet == undefined)
- applet = _jmolSearchFrames(top, target); // look starting in top frame
- return applet;
-}
-
-function _jmolGetApplet(targetSuffix){
- var target = "jmolApplet" + (targetSuffix ? targetSuffix : "0");
- var applet = _jmolFindApplet(target);
- if (applet) return applet
- _jmol.alerted || alert("could not find applet " + target);
- _jmol.alerted = true;
- return null
-}
-
-function _jmolSearchFrames(win, target) {
- var applet;
- var frames = win.frames;
- if (frames && frames.length) { // look in all the frames below this window
- try{
- for (var i = 0; i < frames.length; ++i) {
- applet = _jmolSearchFrames(frames[i], target);
- if (applet)
- return applet;
- }
- }catch(e) {
- if (_jmol.debugAlert)
- alert("Jmol.js _jmolSearchFrames cannot access " + win.name + ".frame[" + i + "] consider using jmolSetAppletWindow()")
- }
- }
- return applet = _jmolFindAppletInWindow(win, target)
-}
-
-function _jmolFindAppletInWindow(win, target) {
- var doc = win.document;
- if (doc.getElementById(target))
- return doc.getElementById(target);
- else if (doc.applets)
- return doc.applets[target];
- else
- return doc[target];
-}
-
-function _jmolAddScript(script) {
- if (!script)
- return 0;
- var index = _jmol.scripts.length;
- _jmol.scripts[index] = script;
- return index;
-}
-
-function _jmolClick(elementClicked, scriptIndex, targetSuffix) {
- _jmol.element = elementClicked;
- _jmolScriptExecute(elementClicked, _jmol.scripts[scriptIndex], targetSuffix);
-}
-
-function _jmolMenuSelected(menuObject, targetSuffix) {
- var scriptIndex = menuObject.value;
- if (scriptIndex != undefined) {
- _jmolScriptExecute(menuObject, _jmol.scripts[scriptIndex], targetSuffix);
- return;
- }
- var len = menuObject.length;
- if (typeof len == "number") {
- for (var i = 0; i < len; ++i) {
- if (menuObject[i].selected) {
- _jmolClick(menuObject[i], menuObject[i].value, targetSuffix);
- return;
- }
- }
- }
- alert("?Que? menu selected bug #8734");
-}
-
-
-_jmol.checkboxMasters = {};
-_jmol.checkboxItems = {};
-
-function jmolSetCheckboxGroup(chkMaster,chkBox) {
- var id = chkMaster;
- if(typeof(id)=="number")id = "jmolCheckbox" + id;
- chkMaster = document.getElementById(id);
- if (!chkMaster)alert("jmolSetCheckboxGroup: master checkbox not found: " + id);
- var m = _jmol.checkboxMasters[id] = {};
- m.chkMaster = chkMaster;
- m.chkGroup = {};
- for (var i = 1; i < arguments.length; i++){
- var id = arguments[i];
- if(typeof(id)=="number")id = "jmolCheckbox" + id;
- checkboxItem = document.getElementById(id);
- if (!checkboxItem)alert("jmolSetCheckboxGroup: group checkbox not found: " + id);
- m.chkGroup[id] = checkboxItem;
- _jmol.checkboxItems[id] = m;
- }
-}
-
-function _jmolNotifyMaster(m){
- //called when a group item is checked
- var allOn = true;
- var allOff = true;
- for (var chkBox in m.chkGroup){
- if(m.chkGroup[chkBox].checked)
- allOff = false;
- else
- allOn = false;
- }
- if (allOn)m.chkMaster.checked = true;
- if (allOff)m.chkMaster.checked = false;
- if ((allOn || allOff) && _jmol.checkboxItems[m.chkMaster.id])
- _jmolNotifyMaster(_jmol.checkboxItems[m.chkMaster.id])
-}
-
-function _jmolNotifyGroup(m, isOn){
- //called when a master item is checked
- for (var chkBox in m.chkGroup){
- var item = m.chkGroup[chkBox]
- item.checked = isOn;
- if (_jmol.checkboxMasters[item.id])
- _jmolNotifyGroup(_jmol.checkboxMasters[item.id], isOn)
- }
-}
-
-function _jmolCbClick(ckbox, whenChecked, whenUnchecked, targetSuffix) {
- _jmol.control = ckbox
- _jmolClick(ckbox, ckbox.checked ? whenChecked : whenUnchecked, targetSuffix);
- if(_jmol.checkboxMasters[ckbox.id])
- _jmolNotifyGroup(_jmol.checkboxMasters[ckbox.id], ckbox.checked)
- if(_jmol.checkboxItems[ckbox.id])
- _jmolNotifyMaster(_jmol.checkboxItems[ckbox.id])
-}
-
-function _jmolCbOver(ckbox, whenChecked, whenUnchecked) {
- window.status = _jmol.scripts[ckbox.checked ? whenUnchecked : whenChecked];
-}
-
-function _jmolMouseOver(scriptIndex) {
- window.status = _jmol.scripts[scriptIndex];
-}
-
-function _jmolMouseOut() {
- window.status = " ";
- return true;
-}
-
-function _jmolSetCodebase(codebase) {
- _jmol.codebase = codebase ? codebase : ".";
- if (_jmol.debugAlert)
- alert("jmolCodebase=" + _jmol.codebase);
-}
-
-function _jmolOnloadResetForms() {
- // must be evaluated ONLY once
- _jmol.previousOnloadHandler = window.onload;
- window.onload =
- function() {
- with (_jmol) {
- if (buttonCount+checkboxCount+menuCount+radioCount+radioGroupCount > 0) {
- var forms = document.forms;
- for (var i = forms.length; --i >= 0; )
- forms[i].reset();
- }
- if (previousOnloadHandler)
- previousOnloadHandler();
- }
- }
-}
-
-////////////////////////////////////
-/////extensions for getProperty/////
-////////////////////////////////////
-
-
-function _jmolEvalJSON(s,key){
- s=s+""
- if(!s)return []
- if(s.charAt(0)!="{"){
- if(s.indexOf(" | ")>=0)s=s.replace(/\ \|\ /g, "\n")
- return s
- }
- var A = eval("("+s+")")
- if(!A)return
- if(key && A[key])A=A[key]
- return A
-}
-
-function _jmolEnumerateObject(A,key){
- var sout=""
- if(typeof(A) == "string" && A!="null"){
- sout+="\n"+key+"=\""+A+"\""
- }else if(!isNaN(A)||A==null){
- sout+="\n"+key+"="+(A+""==""?"null":A)
- }else if(A.length){
- sout+=key+"=[]"
- for(var i=0;i<A.length;i++){
- sout+="\n"
- if(typeof(A[i]) == "object"||typeof(A[i]) == "array"){
- sout+=_jmolEnumerateObject(A[i],key+"["+i+"]")
- }else{
- sout+=key+"["+i+"]="+(typeof(A[i]) == "string" && A[i]!="null"?"\""+A[i].replace(/\"/g,"\\\"")+"\"":A[i])
- }
- }
- }else{
- if(key != ""){
- sout+=key+"={}"
- key+="."
- }
-
- for(var i in A){
- sout+="\n"
- if(typeof(A[i]) == "object"||typeof(A[i]) == "array"){
- sout+=_jmolEnumerateObject(A[i],key+i)
- }else{
- sout+=key+i+"="+(typeof(A[i]) == "string" && A[i]!="null"?"\""+A[i].replace(/\"/g,"\\\"")+"\"":A[i])
- }
- }
- }
- return sout
-}
-
-
-function _jmolSortKey0(a,b){
- return (a[0]<b[0]?1:a[0]>b[0]?-1:0)
-}
-
-function _jmolSortMessages(A){
- if(!A || typeof(A)!="object")return []
- var B = []
- for(var i=A.length-1;i>=0;i--)for(var j=0;j<A[i].length;j++)B[B.length]=A[i][j]
- if(B.length == 0) return
- B=B.sort(_jmolSortKey0)
- return B
-}
-
-/////////additional extensions //////////
-
-
-function _jmolDomScriptLoad(URL){
- //open(URL) //to debug
- _jmol.servercall=URL
- var node = document.getElementById("_jmolScriptNode")
- if (node && _jmol.browser!="msie"){
- document.getElementsByTagName("HEAD")[0].removeChild(node)
- node=null
- }
- if (node) {
- node.setAttribute("src",URL)
- } else {
- node=document.createElement("script")
- node.setAttribute("id","_jmolScriptNode")
- node.setAttribute("type","text/javascript")
- node.setAttribute("src",URL)
- document.getElementsByTagName("HEAD")[0].appendChild(node)
- }
-}
-
-
-function _jmolExtractPostData(url){
- S=url.split("&POST:")
- var s=""
- for(var i=1;i<S.length;i++){
- KV=S[i].split("=")
- s+="&POSTKEY"+i+"="+KV[0]
- s+="&POSTVALUE"+i+"="+KV[1]
- }
- return "&url="+escape(S[0])+s
-}
-
-function _jmolLoadModel(targetSuffix,remoteURL,array,isError,errorMessage){
- //called by server, but in client
- //overload this function to customize return
- _jmol.remoteURL=remoteURL
- isError && alert(errorMessage)
- jmolLoadInlineScript(array.join("\n"),_jmol.optionalscript,targetSuffix)
-}
-
-//////////user property/status functions/////////
-
-function jmolGetStatus(strStatus,targetSuffix){
- return _jmolSortMessages(jmolGetPropertyAsArray("jmolStatus",strStatus,targetSuffix))
-}
-
-function jmolGetPropertyAsArray(sKey,sValue,targetSuffix) {
- return _jmolEvalJSON(jmolGetPropertyAsJSON(sKey,sValue,targetSuffix),sKey)
-}
-
-function jmolGetPropertyAsString(sKey,sValue,targetSuffix) {
- var applet = _jmolGetApplet(targetSuffix);
- sValue == undefined && (sValue="");
- return (applet ? applet.getPropertyAsString(sKey,sValue) + "" : "")
-}
-
-function jmolGetPropertyAsJSON(sKey,sValue,targetSuffix) {
- sValue == undefined && (sValue = "")
- var applet = _jmolGetApplet(targetSuffix);
- try {
- return (applet ? applet.getPropertyAsJSON(sKey,sValue) + "" : "")
- } catch(e) {
- return ""
- }
-}
-
-function jmolGetPropertyAsJavaObject(sKey,sValue,targetSuffix) {
- sValue == undefined && (sValue = "")
- var applet = _jmolGetApplet(targetSuffix);
- return (applet ? applet.getProperty(sKey,sValue) : null)
-}
-
-
-function jmolDecodeJSON(s) {
- return _jmolEnumerateObject(_jmolEvalJSON(s),"")
-}
-
-
-///////// synchronous scripting ////////
-
-function jmolScriptWait(script, targetSuffix) {
- targetSuffix == undefined && (targetSuffix="0")
- var Ret=jmolScriptWaitAsArray(script, targetSuffix)
- var s = ""
- for(var i=Ret.length;--i>=0;)
- for(var j=0;j< Ret[i].length;j++)
- s+=Ret[i][j]+"\n"
- return s
-}
-
-function jmolScriptWaitOutput(script, targetSuffix) {
- targetSuffix == undefined && (targetSuffix="0")
- var ret = ""
- try{
- if (script) {
- _jmolCheckBrowser();
- var applet=_jmolGetApplet(targetSuffix);
- if (applet) ret += applet.scriptWaitOutput(script);
- }
- }catch(e){
- }
- return ret;
-}
-
-function jmolEvaluate(molecularMath, targetSuffix) {
-
- //carries out molecular math on a model
-
- targetSuffix == undefined && (targetSuffix="0")
- var result = "" + jmolGetPropertyAsJavaObject("evaluate", molecularMath, targetSuffix);
- var s = result.replace(/\-*\d+/,"")
- if (s == "" && !isNaN(parseInt(result)))return parseInt(result);
- var s = result.replace(/\-*\d*\.\d*/,"")
- if (s == "" && !isNaN(parseFloat(result)))return parseFloat(result);
- return result;
-}
-
-function jmolScriptEcho(script, targetSuffix) {
- // returns a newline-separated list of all echos from a script
- targetSuffix == undefined && (targetSuffix="0")
- var Ret=jmolScriptWaitAsArray(script, targetSuffix)
- var s = ""
- for(var i=Ret.length;--i>=0;)
- for(var j=Ret[i].length;--j>=0;)
- if (Ret[i][j][1] == "scriptEcho")s+=Ret[i][j][3]+"\n"
- return s.replace(/ \| /g, "\n")
-}
-
-
-function jmolScriptMessage(script, targetSuffix) {
- // returns a newline-separated list of all messages from a script, ending with "script completed\n"
- targetSuffix == undefined && (targetSuffix="0")
- var Ret=jmolScriptWaitAsArray(script, targetSuffix)
- var s = ""
- for(var i=Ret.length;--i>=0;)
- for(var j=Ret[i].length;--j>=0;)
- if (Ret[i][j][1] == "scriptStatus")s+=Ret[i][j][3]+"\n"
- return s.replace(/ \| /g, "\n")
-}
-
-
-function jmolScriptWaitAsArray(script, targetSuffix) {
- var ret = ""
- try{
- jmolGetStatus("scriptEcho,scriptMessage,scriptStatus,scriptError",targetSuffix)
- if (script) {
- _jmolCheckBrowser();
- var applet=_jmolGetApplet(targetSuffix);
- if (applet) ret += applet.scriptWait(script);
- ret = _jmolEvalJSON(ret,"jmolStatus")
- if(typeof ret == "object")
- return ret
- }
- }catch(e){
- }
- return [[ret]]
-}
-
-
-
-//////////// save/restore orientation /////////////
-
-function jmolSaveOrientation(id, targetSuffix) {
- targetSuffix == undefined && (targetSuffix="0")
- return _jmol["savedOrientation"+id] = jmolGetPropertyAsArray("orientationInfo","info",targetSuffix).moveTo
-}
-
-function jmolRestoreOrientation(id, targetSuffix) {
- targetSuffix == undefined && (targetSuffix="0")
- var s=_jmol["savedOrientation"+id]
- if (!s || s == "")return
- s=s.replace(/1\.0/,"0")
- return jmolScriptWait(s,targetSuffix)
-}
-
-function jmolRestoreOrientationDelayed(id, delay, targetSuffix) {
- arguments.length < 2 && (delay=1)
- targetSuffix == undefined && (targetSuffix="0")
- var s=_jmol["savedOrientation"+id]
- if (!s || s == "")return
- s=s.replace(/1\.0/,delay)
- return jmolScriptWait(s,targetSuffix)
-}
-
-//////////// add parameter /////////////
-/*
- * for adding callbacks or other parameters. Use:
-
- jmolSetDocument(0)
- var s= jmolApplet(....)
- s = jmolAppletAddParam(s,"messageCallback", "myFunctionName")
- document.write(s)
- jmolSetDocument(document) // if you want to then write buttons and such normally
-
- */
-
-function jmolAppletAddParam(appletCode,name,value){
- return (value == "" ? appletCode : appletCode.replace(/\<param/,"\n<param name='"+name+"' value='"+value+"' />\n<param"))
-}
-
-///////////////auto load Research Consortium for Structural Biology (RCSB) data ///////////
-
-function jmolLoadAjax_STOLAF_RCSB(fileformat,pdbid,optionalscript,targetSuffix){
-
- _jmol.thismodel || (_jmol.thismodel = "1crn")
- _jmol.serverURL || (_jmol.serverURL="http://fusion.stolaf.edu/chemistry/jmol/getajaxjs.cfm")
- _jmol.RCSBserver || (_jmol.RCSBserver="http://www.rcsb.org")
- _jmol.defaultURL_RCSB || (_jmol.defaultURL_RCSB=_jmol.RCSBserver+"/pdb/files/1CRN.CIF")
- fileformat || (fileformat="PDB")
- pdbid || (pdbid=prompt("Enter a 4-digit PDB ID:",_jmol.thismodel))
- if(!pdbid || pdbid.length != 4)return ""
- targetSuffix || (targetSuffix="0")
- optionalscript || (optionalscript="")
- var url=_jmol.defaultURL_RCSB.replace(/1CRN/g,pdbid.toUpperCase())
- fileformat=="CIF" || (url=url.replace(/CIF/,fileformat))
- _jmol.optionalscript=optionalscript
- _jmol.thismodel=pdbid
- _jmol.thistargetsuffix=targetSuffix
- _jmol.thisurl=url
- _jmol.modelArray = []
- url=_jmol.serverURL+"?returnfunction=_jmolLoadModel&returnArray=_jmol.modelArray&id="+targetSuffix+_jmolExtractPostData(url)
- _jmolDomScriptLoad(url)
- return url
-}
-
-
-///////////////auto load NIH CACTVS data -- compound name or SMILES ///////////
-
-function jmolLoadAjax_STOLAF_NIH(compoundid,optionalscript,targetSuffix){
- _jmol.thismodel || (_jmol.thismodel = "aspirin")
- _jmol.serverURL || (_jmol.serverURL="http://fusion.stolaf.edu/chemistry/jmol/getajaxjs.cfm")
- _jmol.defaultURL_NIH || (_jmol.defaultURL_NIH="http://cactus.nci.nih.gov/chemical/structure/FILE/file?format=sdf&get3d=True")
- compoundid || (compoundid=prompt("Enter a compound name or a SMILES string:",_jmol.thismodel))
- if(!compoundid)return ""
- targetSuffix || (targetSuffix="0")
- optionalscript || (optionalscript="")
- var url=_jmol.defaultURL_NIH.replace(/FILE/g,compoundid)
- _jmol.optionalscript=optionalscript
- _jmol.thismodel=compoundid
- _jmol.thistargetsuffix=targetSuffix
- _jmol.thisurl=url
- _jmol.modelArray = []
- url=_jmol.serverURL+"?returnfunction=_jmolLoadModel&returnArray=_jmol.modelArray&id="+targetSuffix+_jmolExtractPostData(url)
- _jmolDomScriptLoad(url)
- return url
-}
-
-
-/////////////// St. Olaf College AJAX server -- ANY URL ///////////
-
-function jmolLoadAjax_STOLAF_ANY(url, userid, optionalscript,targetSuffix){
- _jmol.serverURL="http://fusion.stolaf.edu/chemistry/jmol/getajaxjs.cfm"
- _jmol.thisurlANY || (_jmol.thisurlANY = "http://www.stolaf.edu/depts/chemistry/mo/struc/data/ycp3-1.mol")
- url || (url=prompt("Enter any (uncompressed file) URL:", _jmol.thisurlANY))
- userid || (userid="0")
- targetSuffix || (targetSuffix="0")
- optionalscript || (optionalscript="")
- _jmol.optionalscript=optionalscript
- _jmol.thistargetsuffix=targetSuffix
- _jmol.modelArray = []
- _jmol.thisurl = url
- url=_jmol.serverURL+"?returnfunction=_jmolLoadModel&returnArray=_jmol.modelArray&id="+targetSuffix+_jmolExtractPostData(url)
- _jmolDomScriptLoad(url)
-}
-
-
-/////////////// Mineralogical Society of America (MSA) data /////////
-
-function jmolLoadAjax_MSA(key,value,optionalscript,targetSuffix){
-
- _jmol.thiskeyMSA || (_jmol.thiskeyMSA = "mineral")
- _jmol.thismodelMSA || (_jmol.thismodelMSA = "quartz")
- _jmol.ajaxURL_MSA || (_jmol.ajaxURL_MSA="http://rruff.geo.arizona.edu/AMS/result.php?mineral=quartz&viewing=ajaxjs")
- key || (key=prompt("Enter a field:", _jmol.thiskeyMSA))
- if(!key)return ""
- value || (value=prompt("Enter a "+key+":", _jmol.thismodelMSA))
- if(!value)return ""
- targetSuffix || (targetSuffix="0")
- optionalscript || (optionalscript="")
- optionalscript == 1 && (optionalscript='load "" {1 1 1}')
- var url=_jmol.ajaxURL_MSA.replace(/mineral/g,key).replace(/quartz/g,value)
- _jmol.optionalscript=optionalscript
- _jmol.thiskeyMSA=key
- _jmol.thismodelMSA=value
- _jmol.thistargetsuffix=targetSuffix
- _jmol.thisurl=url
- _jmol.modelArray = []
- loadModel=_jmolLoadModel
- _jmolDomScriptLoad(url)
- return url
-}
-
-
-
-function jmolLoadAjaxJS(url, userid, optionalscript,targetSuffix){
- userid || (userid="0")
- targetSuffix || (targetSuffix="0")
- optionalscript || (optionalscript="")
- _jmol.optionalscript=optionalscript
- _jmol.thismodel=userid
- _jmol.thistargetsuffix=targetSuffix
- _jmol.modelArray = []
- _jmol.thisurl = url
- url+="&returnFunction=_jmolLoadModel&returnArray=_jmol.modelArray&id="+targetSuffix
- _jmolDomScriptLoad(url)
-}
-
-
-//// in case Jmol library has already been loaded:
-
-}catch(e){}
-
-///////////////moving atoms //////////////
-
-// HIGHLY experimental!!
-
-function jmolSetAtomCoord(i,x,y,z,targetSuffix){
- _jmolCheckBrowser();
- var applet=_jmolGetApplet(targetSuffix);
- if (applet) applet.getProperty('jmolViewer').setAtomCoord(i,x,y,z)
-}
-
-function jmolSetAtomCoordRelative(i,x,y,z,targetSuffix){
- _jmolCheckBrowser();
- var applet=_jmolGetApplet(targetSuffix);
- if (applet) applet.getProperty('jmolViewer').setAtomCoordRelative(i,x,y,z)
-}
-
-
-///////////////applet fake for testing buttons/////////////
-
-
-if(_jmol.useNoApplet){
- jmolApplet = function(w){
- var s="<table style='background-color:black' width="+w+"><tr height="+w+">"
- +"<td align=center valign=center style='background-color:white'>"
- +"Applet would be here"
- +"<p><textarea id=fakeApplet rows=5 cols=50></textarea>"
- +"</td></tr></table>"
- return _jmolDocumentWrite(s)
- }
-
- _jmolFindApplet = function(){return jmolApplet0}
-
- jmolApplet0 = {
- script: function(script){document.getElementById("fakeApplet").value="\njmolScript:\n"+script}
- ,scriptWait: function(script){document.getElementById("fakeApplet").value="\njmolScriptWait:\n"+script}
- ,loadInline: function(data,script){document.getElementById("fakeApplet").value="\njmolLoadInline data:\n"+data+"\n\nscript:\n"+script}
- }
-}
-
-
-///////////////////////////////////////////
-
- // This should no longer be needed, jmolResizeApplet() is better; kept for backwards compatibility
- /*
- Resizes absolutely (pixels) or by percent of window (w or h 0.5 means 50%).
- targetSuffix is optional and defaults to zero (first applet in page).
- Both w and h are optional, but needed if you want to use targetSuffix.
- h defaults to w
- w defaults to 100% of window
- If either w or h is between 0 and 1, then it is taken as percent/100.
- If either w or h is greater than 1, then it is taken as a size (pixels).
- */
-function jmolResize(w,h,targetSuffix) {
- _jmol.alerted = true;
- var percentW = (!w ? 100 : w <= 1 && w > 0 ? w * 100 : 0);
- var percentH = (!h ? percentW : h <= 1 && h > 0 ? h * 100 : 0);
- if (_jmol.browser=="msie") {
- var width=document.body.clientWidth;
- var height=document.body.clientHeight;
- } else {
- var netscapeScrollWidth=15;
- var width=window.innerWidth - netscapeScrollWidth;
- var height=window.innerHeight-netscapeScrollWidth;
- }
- var applet = _jmolGetApplet(targetSuffix);
- if(!applet)return;
- applet.style.width = (percentW ? width * percentW/100 : w)+"px";
- applet.style.height = (percentH ? height * percentH/100 : (h ? h : w))+"px";
- //title=width + " " + height + " " + (new Date());
-}
-
-// 13 Jun 09 -- makes jmolResize() obsolete (kept for backwards compatibility)
-function jmolResizeApplet(size,targetSuffix) {
- // See _jmolGetAppletSize() for the formats accepted as size [same used by jmolApplet()]
- // Special case: an empty value for width or height is accepted, meaning no change in that dimension.
- _jmol.alerted = true;
- var applet = _jmolGetApplet(targetSuffix);
- if(!applet)return;
- var sz = _jmolGetAppletSize(size, "px");
- sz[0] && (applet.style.width = sz[0]);
- sz[1] && (applet.style.height = sz[1]);
-}
-
-function _jmolGetAppletSize(size, units) {
- /* Accepts single number or 2-value array, each one can be one of:
- percent (text string ending %), decimal 0 to 1 (percent/100), number, or text string (interpreted as nr.)
- [width, height] array of strings is returned, with units added if specified.
- Percent is relative to container div or element (which should have explicitly set size).
- */
- var width, height;
- if ( (typeof size) == "object" && size != null ) {
- width = size[0]; height = size[1];
- } else {
- width = height = size;
- }
- return [_jmolFixDim(width, units), _jmolFixDim(height, units)];
-}
-
-function _jmolFixDim(x, units) {
- var sx = "" + x;
- return (sx.length == 0 ? (units ? "" : _jmol.allowedJmolSize[2])
- : sx.indexOf("%") == sx.length-1 ? sx
- : (x = parseFloat(x)) <= 1 && x > 0 ? x * 100 + "%"
- : (isNaN(x = Math.floor(x)) ? _jmol.allowedJmolSize[2]
- : x < _jmol.allowedJmolSize[0] ? _jmol.allowedJmolSize[0]
- : x > _jmol.allowedJmolSize[1] ? _jmol.allowedJmolSize[1]
- : x) + (units ? units : ""));
-}
-
-
-
-
+++ /dev/null
->FER_CAPAA Ferredoxin
-ASYKVKLITPDGPIEFDCPDDVYILDQAEEAGHDLPYSCRAGSCSSCAGKIAGGAVDQTDGNFLDDDQLEEG
-WVLTCVAYPQSDVTIETHKEAELVG-
->FER_CAPAN Ferredoxin, chloroplast precursor
-ASYKVKLITPDGPIEFDCPDNVYILDQAEEAGHDLPYSCRAGSCSSCAGKIAGGAVDQTDGNFLDDDQLEEG
-WVLTCVAYPQSDVTIETHKEAELVG-
->FER1_SOLLC Ferredoxin-1, chloroplast precursor
-ASYKVKLITPEGPIEFECPDDVYILDQAEEEGHDLPYSCRAGSCSSCAGKVTAGSVDQSDGNFLDEDQEAAG
-FVLTCVAYPKGDVTIETHKEEELTA-
->Q93XJ9_SOLTU Ferredoxin I precursor
-ASYKVKLITPDGPIEFECPDDVYILDQAEEEGHDLPYSCRAGSCSSCAGKVTAGTVDQSDGKFLDDDQEAAG
-FVLTCVAYPKCDVTIETHKEEELTA-
->FER1_MESCR Ferredoxin-1, chloroplast precursor
-AAYKVTLVTPEGKQELECPDDVYILDAAEEAGIDLPYSCRAGSCSSCAGKVTSGSVNQDDGSFLDDDQIKEG
-WVLTCVAYPTGDVTIETHKEEELTA-
->FER1_SPIOL Ferredoxin-1, chloroplast precursor
-AAYKVTLVTPTGNVEFQCPDDVYILDAAEEEGIDLPYSCRAGSCSSCAGKLKTGSLNQDDQSFLDDDQIDEG
-WVLTCAAYPVSDVTIETHKEEELTA-
->FER1_ARATH Ferredoxin-1, chloroplast precursor
-ATYKVKFITPEGELEVECDDDVYVLDAAEEAGIDLPYSCRAGSCSSCAGKVVSGSVDQSDQSFLDDEQIGEG
-FVLTCAAYPTSDVTIETHKEEDIV--
->FER2_ARATH Ferredoxin-2, chloroplast precursor
-ATYKVKFITPEGEQEVECEEDVYVLDAAEEAGLDLPYSCRAGSCSSCAGKVVSGSIDQSDQSFLDDEQMSEG
-YVLTCVAYPTSDVVIETHKEEAIM--
->FER1_PEA Ferredoxin-1, chloroplast precursor
-ASYKVKLVTPDGTQEFECPSDVYILDHAEEVGIDLPYSCRAGSCSSCAGKVVGGEVDQSDGSFLDDEQIEAG
-FVLTCVAYPTSDVVIETHKEEDLTA-
->Q7XA98_TRIPR Ferredoxin I
-ATYKVKLITPEGPQEFDCPDDVYILDHAEEVGIELPYSCRAGSCSSCAGKVVNGNVNQEDGSFLDDEQIEGG
-WVLTCVAFPTSDVTIETHKEEELTA-
->FER1_MAIZE Ferredoxin-1, chloroplast precursor
-ATYNVKLITPEGEVELQVPDDVYILDQAEEDGIDLPYSCRAGSCSSCAGKVVSGSVDQSDQSYLDDGQIADG
-WVLTCHAYPTSDVVIETHKEEELTGA
->O80429_MAIZE Ferredoxin
-ATYNVKLITPEGEVELQVPDDVYILDFAEEEGIDLPFSCRAGSCSSCAGKVVSGSVDQSDQSFLNDNQVADG
-WVLTCAAYPTSDVVIETHKEDDLL--
->Q93Z60_ARATH At1g10960/T19D16_12
-ATYKVKFITPEGEQEVECEEDVYVLDAAEEAGLDLPYSCRAGSCSSCAGKVVSGSIDQSDQSFLDD------
---------------------------
->FER3_RAPSA Ferredoxin, leaf L-A
-ATYKVKFITPEGEQEVECDDDVYVLDAAEEAGIDLPYSCRAGSCSSCAGKVVSGSVDQSDQSFLDDDQIAEG
-FVLTCAAYPTSDVTIETHREEDMV--
->FER_BRANA Ferredoxin
-ATYKVKFITPEGEQEVECDDDVYVLDAAEEAGIDLPYSCRAGSCSSCAGKVVSGFVDQSDESFLDDDQIAEG
-FVLTCAAYPTSDVTIETHKEEELV--
+++ /dev/null
-Lupas_21:-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,
-Lupas_14:-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,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-,B,-,-,-,-,-,-,-,-,-,-,-,-,-,-,B,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,B,B,B,B,B,B,-,-,-,-,-,-,-,B,-,-,
-JNETSOL0:-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,B,-,B,-,-,-,-,-,-,-,-,-,-,-,-,-,
-JNETPROPH:0.44514,0.02676,0.50891,0.59931,0.03767,0.31300,0.54697,0.01490,0.41391,0.55820,0.01816,0.38620,0.82780,0.00804,0.16764,0.86436,0.00416,0.14111,0.96423,0.00391,0.03569,0.94587,0.00483,0.05758,0.88110,0.01273,0.13718,0.57335,0.02654,0.44509,0.17935,0.02373,0.80108,0.08085,0.00825,0.91351,0.06739,0.00450,0.93803,0.11202,0.00730,0.88142,0.41953,0.00953,0.55868,0.64171,0.00894,0.34807,0.74660,0.00831,0.27522,0.78367,0.00952,0.27786,0.54376,0.01578,0.49285,0.18080,0.01695,0.78463,0.05922,0.01157,0.90794,0.03565,0.02045,0.91548,0.12377,0.02896,0.77671,0.58102,0.05600,0.22143,0.82750,0.03376,0.07013,0.86371,0.02169,0.08984,0.81881,0.04410,0.14200,0.60784,0.05837,0.36725,0.27275,0.10034,0.53452,0.12405,0.28672,0.44961,0.07683,0.43094,0.40783,0.05134,0.55252,0.37353,0.03890,
-JNETPROPB:0.59931,0.03767,0.31300,0.54697,0.01490,0.41391,0.55820,0.01816,0.38620,0.82780,0.00804,0.16764,0.86436,0.00416,0.14111,0.96423,0.00391,0.03569,0.94587,0.00483,0.05758,0.88110,0.01273,0.13718,0.57335,0.02654,0.44509,0.17935,0.02373,0.80108,0.08085,0.00825,0.91351,0.06739,0.00450,0.93803,0.11202,0.00730,0.88142,0.41953,0.00953,0.55868,0.64171,0.00894,0.34807,0.74660,0.00831,0.27522,0.78367,0.00952,0.27786,0.54376,0.01578,0.49285,0.18080,0.01695,0.78463,0.05922,0.01157,0.90794,0.03565,0.02045,0.91548,0.12377,0.02896,0.77671,0.58102,0.05600,0.22143,0.82750,0.03376,0.07013,0.86371,0.02169,0.08984,0.81881,0.04410,0.14200,0.60784,0.05837,0.36725,0.27275,0.10034,0.53452,0.12405,0.28672,0.44961,0.07683,0.43094,0.40783,0.05134,0.55252,0.37353,0.03890,0.52815,0.46401,0.03979,
-JNETPROPC:0.54697,0.01490,0.41391,0.55820,0.01816,0.38620,0.82780,0.00804,0.16764,0.86436,0.00416,0.14111,0.96423,0.00391,0.03569,0.94587,0.00483,0.05758,0.88110,0.01273,0.13718,0.57335,0.02654,0.44509,0.17935,0.02373,0.80108,0.08085,0.00825,0.91351,0.06739,0.00450,0.93803,0.11202,0.00730,0.88142,0.41953,0.00953,0.55868,0.64171,0.00894,0.34807,0.74660,0.00831,0.27522,0.78367,0.00952,0.27786,0.54376,0.01578,0.49285,0.18080,0.01695,0.78463,0.05922,0.01157,0.90794,0.03565,0.02045,0.91548,0.12377,0.02896,0.77671,0.58102,0.05600,0.22143,0.82750,0.03376,0.07013,0.86371,0.02169,0.08984,0.81881,0.04410,0.14200,0.60784,0.05837,0.36725,0.27275,0.10034,0.53452,0.12405,0.28672,0.44961,0.07683,0.43094,0.40783,0.05134,0.55252,0.37353,0.03890,0.52815,0.46401,0.03979,0.40515,0.56556,0.03815,
-JNETHMM:-,-,-,-,E,E,E,E,E,E,-,-,-,-,-,E,E,E,E,-,-,-,-,E,E,E,E,E,-,-,H,H,H,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,E,E,E,E,-,-,E,E,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,E,E,E,E,E,E,E,E,-,-,-,-,E,E,E,E,-,
-JNETALIGN:-,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D,Q,A,E,E,D,G,I,D,L,P,Y,S,C,R,A,G,S,C,S,S,C,A,G,K,V,V,S,G,S,V,D,Q,S,D,Q,S,Y,L,D,D,G,Q,I,A,D,G,W,V,L,T,C,H,A,Y,P,T,S,D,V,V,I,E,T,H,K,E,E,E,L,T,G,
-align15;Sequence14/1.140:A,T,Y,N,V,K,L,I,T,P,E,G,E,V,E,L,Q,V,P,D,D,V,Y,I,L,D,F,A,E,E,E,G,I,D,L,P,F,S,C,R,A,G,S,C,S,S,C,A,G,K,V,V,S,G,S,V,D,Q,S,D,Q,S,F,L,N,D,N,Q,V,A,D,G,W,V,L,T,C,A,A,Y,P,T,S,D,V,V,I,E,T,H,K,E,D,D,L,L,.,
-jpred:-,-,-,-,E,E,E,E,E,E,-,-,-,-,-,E,E,E,E,-,-,-,-,E,E,E,E,E,-,H,H,H,H,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,E,E,E,E,-,-,E,E,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,E,E,E,E,E,E,E,E,-,-,-,-,E,E,E,E,-,
+++ /dev/null
->FER_CAPAA/1-97
-----------------------------------------------------------ASYKVKLITPDGPI
-EFDCPDDVYILDQAEEAGHDLPYSCRAGSCSSCAGKIAGGAVDQTDGNFLDDDQLEEGWVLTCVAYPQSDVT
-IETHKEAELVG-
->FER_CAPAN/1-144
-------MASVSATMISTSFMPRKPAVTSLKPIP-NVG-EALFGLKS---ANGGKVTCMASYKVKLITPDGPI
-EFDCPDNVYILDQAEEAGHDLPYSCRAGSCSSCAGKIAGGAVDQTDGNFLDDDQLEEGWVLTCVAYPQSDVT
-IETHKEAELVG-
->FER1_SOLLC/1-144
-------MASISGTMISTSFLPRKPAVTSLKAIS-NVG-EALFGLKS---GRNGRITCMASYKVKLITPEGPI
-EFECPDDVYILDQAEEEGHDLPYSCRAGSCSSCAGKVTAGSVDQSDGNFLDEDQEAAGFVLTCVAYPKGDVT
-IETHKEEELTA-
->Q93XJ9_SOLTU/1-144
-------MASISGTMISTSFLPRKPVVTSLKAIS-NVG-EALFGLKS---GRNGRITCMASYKVKLITPDGPI
-EFECPDDVYILDQAEEEGHDLPYSCRAGSCSSCAGKVTAGTVDQSDGKFLDDDQEAAGFVLTCVAYPKCDVT
-IETHKEEELTA-
->FER1_PEA/1-149
----MATTPALYGTAVSTSFLRTQPMPMSVTTTKAFSN--GFLGLKT-SLKRGDLAVAMASYKVKLVTPDGTQ
-EFECPSDVYILDHAEEVGIDLPYSCRAGSCSSCAGKVVGGEVDQSDGSFLDDEQIEAGFVLTCVAYPTSDVV
-IETHKEEDLTA-
->Q7XA98_TRIPR/1-152
----MATTPALYGTAVSTSFMRRQPVPMSVATTTTTKAFPSGFGLKSVSTKRGDLAVAMATYKVKLITPEGPQ
-EFDCPDDVYILDHAEEVGIELPYSCRAGSCSSCAGKVVNGNVNQEDGSFLDDEQIEGGWVLTCVAFPTSDVT
-IETHKEEELTA-
->FER1_MESCR/1-148
---MAATTAALSGATMSTAFAPKT--PPMTAALPTNVG-RALFGLKS--SASRGRVTAMAAYKVTLVTPEGKQ
-ELECPDDVYILDAAEEAGIDLPYSCRAGSCSSCAGKVTSGSVNQDDGSFLDDDQIKEGWVLTCVAYPTGDVT
-IETHKEEELTA-
->FER1_SPIOL/1-147
-----MAATTTTMMGMATTFVPKPQAPPMMAALPSNTG-RSLFGLKT--GSRGGRMT-MAAYKVTLVTPTGNV
-EFQCPDDVYILDAAEEEGIDLPYSCRAGSCSSCAGKLKTGSLNQDDQSFLDDDQIDEGWVLTCAAYPVSDVT
-IETHKEEELTA-
->FER3_RAPSA/1-96
-----------------------------------------------------------ATYKVKFITPEGEQ
-EVECDDDVYVLDAAEEAGIDLPYSCRAGSCSSCAGKVVSGSVDQSDQSFLDDDQIAEGFVLTCAAYPTSDVT
-IETHREEDMV--
->FER1_ARATH/1-148
-----MASTALSSAIVGTSFIRRSPAPISLRSLPSANT-QSLFGLKS-GTARGGRVTAMATYKVKFITPEGEL
-EVECDDDVYVLDAAEEAGIDLPYSCRAGSCSSCAGKVVSGSVDQSDQSFLDDEQIGEGFVLTCAAYPTSDVT
-IETHKEEDIV--
->FER_BRANA/1-96
-----------------------------------------------------------ATYKVKFITPEGEQ
-EVECDDDVYVLDAAEEAGIDLPYSCRAGSCSSCAGKVVSGFVDQSDESFLDDDQIAEGFVLTCAAYPTSDVT
-IETHKEEELV--
->FER2_ARATH/1-148
-----MASTALSSAIVSTSFLRRQQTPISLRSLPFANT-QSLFGLKS-STARGGRVTAMATYKVKFITPEGEQ
-EVECEEDVYVLDAAEEAGLDLPYSCRAGSCSSCAGKVVSGSIDQSDQSFLDDEQMSEGYVLTCVAYPTSDVV
-IETHKEEAIM--
->Q93Z60_ARATH/1-118
-----MASTALSSAIVSTSFLRRQQTPISLRSLPFANT-QSLFGLKS-STARGGRVTAMATYKVKFITPEGEQ
-EVECEEDVYVLDAAEEAGLDLPYSCRAGSCSSCAGKVVSGSIDQSDQSFLDD--------------------
-------------
->FER1_MAIZE/1-150
-MATVLGSPRAPAFFFSSSSLRAAPAPTAVALPAAKVG---IMGRSA---SSRRRLRAQATYNVKLITPEGEV
-ELQVPDDVYILDQAEEDGIDLPYSCRAGSCSSCAGKVVSGSVDQSDQSYLDDGQIADGWVLTCHAYPTSDVV
-IETHKEEELTGA
->O80429_MAIZE/1-140
----------MAATALSMSILRAPP-PCFSSPLRLRVAVAKPLAAPM----RRQLLRAQATYNVKLITPEGEV
-ELQVPDDVYILDFAEEEGIDLPFSCRAGSCSSCAGKVVSGSVDQSDQSFLNDNQVADGWVLTCAAYPTSDVV
-IETHKEDDLL--
+++ /dev/null
-HELIX d4d189
-MOD_RES 47e459
-TRANSIT 6f949b
-TURN 1d1e2d
-METAL 70686e
-SIGNAL 92c7dd
-VARIANT 60beac
-Pfam dc206a
-CONFLICT c46c6e
-STRAND 25c54c
-
-STARTGROUP uniprot
-Iron-sulfur (2Fe-2S) FER_CAPAA -1 39 39 METAL
-Iron-sulfur (2Fe-2S) FER_CAPAA -1 44 44 METAL
-Iron-sulfur (2Fe-2S) FER_CAPAA -1 47 47 METAL
-Iron-sulfur (2Fe-2S) FER_CAPAA -1 77 77 METAL
-<html>Description: Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 8_83</a></html> FER_CAPAA -1 8 83 Pfam
-Chloroplast FER_CAPAN -1 1 47 TRANSIT
-Iron-sulfur (2Fe-2S) FER_CAPAN -1 86 86 METAL
-Iron-sulfur (2Fe-2S) FER_CAPAN -1 91 91 METAL
-Iron-sulfur (2Fe-2S) FER_CAPAN -1 94 94 METAL
-Iron-sulfur (2Fe-2S) FER_CAPAN -1 124 124 METAL
-Phosphothreonine FER_CAPAN -1 136 136 MOD_RES
-<html>Description: Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 55_130</a></html> FER_CAPAN -1 55 130 Pfam
-Chloroplast FER1_SOLLC -1 1 47 TRANSIT
-Iron-sulfur (2Fe-2S) FER1_SOLLC -1 86 86 METAL
-Iron-sulfur (2Fe-2S) FER1_SOLLC -1 91 91 METAL
-Iron-sulfur (2Fe-2S) FER1_SOLLC -1 94 94 METAL
-Iron-sulfur (2Fe-2S) FER1_SOLLC -1 124 124 METAL
-<html>Description: Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 55_130</a></html> FER1_SOLLC -1 55 130 Pfam
-Evidence: EI4 Q93XJ9_SOLTU -1 1 48 SIGNAL
-<html>Description: Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 55_130</a></html> Q93XJ9_SOLTU -1 55 130 Pfam
-Chloroplast FER1_PEA -1 1 52 TRANSIT
-L -> I (in strain: cv. Onward) FER1_PEA -1 59 59 VARIANT
-I -> L (in strain: cv. Onward) FER1_PEA -1 85 85 VARIANT
-Iron-sulfur (2Fe-2S) FER1_PEA -1 91 91 METAL
-Iron-sulfur (2Fe-2S) FER1_PEA -1 96 96 METAL
-Iron-sulfur (2Fe-2S) FER1_PEA -1 99 99 METAL
-Iron-sulfur (2Fe-2S) FER1_PEA -1 129 129 METAL
-YPTS -> PPPA (in Ref. 2) FER1_PEA -1 132 135 CONFLICT
-<html>Description: Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 60_135</a></html> FER1_PEA -1 60 135 Pfam
-<html>Description: Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 63_138</a></html> Q7XA98_TRIPR -1 63 138 Pfam
-Chloroplast FER1_MESCR -1 1 51 TRANSIT
-Iron-sulfur (2Fe-2S) FER1_MESCR -1 90 90 METAL
-Iron-sulfur (2Fe-2S) FER1_MESCR -1 95 95 METAL
-Iron-sulfur (2Fe-2S) FER1_MESCR -1 98 98 METAL
-Iron-sulfur (2Fe-2S) FER1_MESCR -1 128 128 METAL
-<html>Description: Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 59_134</a></html> FER1_MESCR -1 59 134 Pfam
-Chloroplast FER1_SPIOL -1 1 50 TRANSIT
-STRAND FER1_SPIOL -1 52 59 STRAND
-TURN FER1_SPIOL -1 60 61 TURN
-STRAND FER1_SPIOL -1 62 69 STRAND
-TURN FER1_SPIOL -1 70 71 TURN
-HELIX FER1_SPIOL -1 74 80 HELIX
-TURN FER1_SPIOL -1 81 82 TURN
-STRAND FER1_SPIOL -1 88 92 STRAND
-Iron-sulfur (2Fe-2S) FER1_SPIOL -1 89 89 METAL
-Iron-sulfur (2Fe-2S) FER1_SPIOL -1 94 94 METAL
-TURN FER1_SPIOL -1 96 97 TURN
-Iron-sulfur (2Fe-2S) FER1_SPIOL -1 97 97 METAL
-STRAND FER1_SPIOL -1 98 104 STRAND
-TURN FER1_SPIOL -1 109 110 TURN
-HELIX FER1_SPIOL -1 116 121 HELIX
-TURN FER1_SPIOL -1 122 122 TURN
-STRAND FER1_SPIOL -1 123 125 STRAND
-HELIX FER1_SPIOL -1 126 128 HELIX
-Iron-sulfur (2Fe-2S) FER1_SPIOL -1 127 127 METAL
-STRAND FER1_SPIOL -1 130 133 STRAND
-STRAND FER1_SPIOL -1 135 138 STRAND
-HELIX FER1_SPIOL -1 142 144 HELIX
-<html>Description: Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 58_133</a></html> FER1_SPIOL -1 58 133 Pfam
-I -> V FER3_RAPSA -1 8 8 VARIANT
-Iron-sulfur (2Fe-2S) FER3_RAPSA -1 39 39 METAL
-Iron-sulfur (2Fe-2S) FER3_RAPSA -1 44 44 METAL
-Iron-sulfur (2Fe-2S) FER3_RAPSA -1 47 47 METAL
-S -> T FER3_RAPSA -1 55 55 VARIANT
-Iron-sulfur (2Fe-2S) FER3_RAPSA -1 77 77 METAL
-R -> K FER3_RAPSA -1 91 91 VARIANT
-M -> V FER3_RAPSA -1 95 95 VARIANT
-<html>Description: Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 8_83</a></html> FER3_RAPSA -1 8 83 Pfam
-Chloroplast FER1_ARATH -1 1 52 TRANSIT
-Iron-sulfur (2Fe-2S) FER1_ARATH -1 91 91 METAL
-Iron-sulfur (2Fe-2S) FER1_ARATH -1 96 96 METAL
-Iron-sulfur (2Fe-2S) FER1_ARATH -1 99 99 METAL
-Iron-sulfur (2Fe-2S) FER1_ARATH -1 129 129 METAL
-<html>Description: Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 60_135</a></html> FER1_ARATH -1 60 135 Pfam
-Iron-sulfur (2Fe-2S) FER_BRANA -1 39 39 METAL
-Iron-sulfur (2Fe-2S) FER_BRANA -1 44 44 METAL
-Iron-sulfur (2Fe-2S) FER_BRANA -1 47 47 METAL
-Iron-sulfur (2Fe-2S) FER_BRANA -1 77 77 METAL
-<html>Description: Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 8_83</a></html> FER_BRANA -1 8 83 Pfam
-Chloroplast FER2_ARATH -1 1 52 TRANSIT
-Iron-sulfur (2Fe-2S) FER2_ARATH -1 91 91 METAL
-Iron-sulfur (2Fe-2S) FER2_ARATH -1 96 96 METAL
-Iron-sulfur (2Fe-2S) FER2_ARATH -1 99 99 METAL
-Iron-sulfur (2Fe-2S) FER2_ARATH -1 129 129 METAL
-<html>Description: Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 60_135</a></html> FER2_ARATH -1 60 135 Pfam
-<html>Description: Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 60_118</a></html> Q93Z60_ARATH -1 60 118 Pfam
-Chloroplast FER1_MAIZE -1 1 52 TRANSIT
-STRAND FER1_MAIZE -1 57 59 STRAND
-STRAND FER1_MAIZE -1 72 74 STRAND
-HELIX FER1_MAIZE -1 76 80 HELIX
-TURN FER1_MAIZE -1 81 84 TURN
-STRAND FER1_MAIZE -1 90 97 STRAND
-Iron-sulfur (2Fe-2S) FER1_MAIZE -1 91 91 METAL
-Iron-sulfur (2Fe-2S) FER1_MAIZE -1 96 96 METAL
-TURN FER1_MAIZE -1 98 99 TURN
-Iron-sulfur (2Fe-2S) FER1_MAIZE -1 99 99 METAL
-TURN FER1_MAIZE -1 118 119 TURN
-HELIX FER1_MAIZE -1 120 123 HELIX
-TURN FER1_MAIZE -1 128 129 TURN
-Iron-sulfur (2Fe-2S) FER1_MAIZE -1 129 129 METAL
-STRAND FER1_MAIZE -1 132 135 STRAND
-STRAND FER1_MAIZE -1 137 141 STRAND
-TURN FER1_MAIZE -1 142 142 TURN
-<html>Description: Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 60_135</a></html> FER1_MAIZE -1 60 135 Pfam
-<html>Description: Fer2 Status: True Positive <a href="http://pfam.sanger.ac.uk/family/PF00111">Pfam 52_127</a></html> O80429_MAIZE -1 52 127 Pfam
-ENDGROUP uniprot
+++ /dev/null
->FER_CAPAA Ferredoxin
------------------------------------------------------------ASYKVKLITPDGP
-IEFDCPDDVYILDQAEEAGHDLPYSCRAGSCSSCAGKIAGGAVDQTDGNFLDDDQLEEGWVLTCVAYPQSDV
-TIETHKEAELVG-
->FER_CAPAN Ferredoxin, chloroplast precursor
-MA------SVSATMISTSFMPRKPAVTSL-KPIPNVGE--ALFGLKS-A--NGGKVTCMASYKVKLITPDGP
-IEFDCPDNVYILDQAEEAGHDLPYSCRAGSCSSCAGKIAGGAVDQTDGNFLDDDQLEEGWVLTCVAYPQSDV
-TIETHKEAELVG-
->FER1_SOLLC Ferredoxin-1, chloroplast precursor
-MA------SISGTMISTSFLPRKPAVTSL-KAISNVGE--ALFGLKS-G--RNGRITCMASYKVKLITPEGP
-IEFECPDDVYILDQAEEEGHDLPYSCRAGSCSSCAGKVTAGSVDQSDGNFLDEDQEAAGFVLTCVAYPKGDV
-TIETHKEEELTA-
->Q93XJ9_SOLTU Ferredoxin I precursor
-MA------SISGTMISTSFLPRKPVVTSL-KAISNVGE--ALFGLKS-G--RNGRITCMASYKVKLITPDGP
-IEFECPDDVYILDQAEEEGHDLPYSCRAGSCSSCAGKVTAGTVDQSDGKFLDDDQEAAGFVLTCVAYPKCDV
-TIETHKEEELTA-
->FER1_PEA Ferredoxin-1, chloroplast precursor
-MATT---PALYGTAVSTSFLRTQPMPMSV-TTTKAFSN--GFLGLKT-SLKRGDLAVAMASYKVKLVTPDGT
-QEFECPSDVYILDHAEEVGIDLPYSCRAGSCSSCAGKVVGGEVDQSDGSFLDDEQIEAGFVLTCVAYPTSDV
-VIETHKEEDLTA-
->Q7XA98_TRIPR Ferredoxin I
-MATT---PALYGTAVSTSFMRRQPVPMSV-ATTTTTKAFPSGFGLKSVSTKRGDLAVAMATYKVKLITPEGP
-QEFDCPDDVYILDHAEEVGIELPYSCRAGSCSSCAGKVVNGNVNQEDGSFLDDEQIEGGWVLTCVAFPTSDV
-TIETHKEEELTA-
->FER1_MESCR Ferredoxin-1, chloroplast precursor
-MAAT--TAALSGATMSTAFAPK--TPPMTAALPTNVGR--ALFGLKS-SASR-GRVTAMAAYKVTLVTPEGK
-QELECPDDVYILDAAEEAGIDLPYSCRAGSCSSCAGKVTSGSVNQDDGSFLDDDQIKEGWVLTCVAYPTGDV
-TIETHKEEELTA-
->FER1_SPIOL Ferredoxin-1, chloroplast precursor
-MAAT--TTTMMG--MATTFVPKPQAPPMMAALPSNTGR--SLFGLKT-GSR--GGRMTMAAYKVTLVTPTGN
-VEFQCPDDVYILDAAEEEGIDLPYSCRAGSCSSCAGKLKTGSLNQDDQSFLDDDQIDEGWVLTCAAYPVSDV
-TIETHKEEELTA-
->FER3_RAPSA Ferredoxin, leaf L-A
------------------------------------------------------------ATYKVKFITPEGE
-QEVECDDDVYVLDAAEEAGIDLPYSCRAGSCSSCAGKVVSGSVDQSDQSFLDDDQIAEGFVLTCAAYPTSDV
-TIETHREEDMV--
->FER1_ARATH Ferredoxin-1, chloroplast precursor
-MAST----ALSSAIVGTSFIRRSPAPISLRSLPSANTQ--SLFGLKS-GTARGGRVTAMATYKVKFITPEGE
-LEVECDDDVYVLDAAEEAGIDLPYSCRAGSCSSCAGKVVSGSVDQSDQSFLDDEQIGEGFVLTCAAYPTSDV
-TIETHKEEDIV--
->FER_BRANA Ferredoxin
------------------------------------------------------------ATYKVKFITPEGE
-QEVECDDDVYVLDAAEEAGIDLPYSCRAGSCSSCAGKVVSGFVDQSDESFLDDDQIAEGFVLTCAAYPTSDV
-TIETHKEEELV--
->FER2_ARATH Ferredoxin-2, chloroplast precursor
-MAST----ALSSAIVSTSFLRRQQTPISLRSLPFANTQ--SLFGLKS-STARGGRVTAMATYKVKFITPEGE
-QEVECEEDVYVLDAAEEAGLDLPYSCRAGSCSSCAGKVVSGSIDQSDQSFLDDEQMSEGYVLTCVAYPTSDV
-VIETHKEEAIM--
->Q93Z60_ARATH At1g10960/T19D16_12
-MAST----ALSSAIVSTSFLRRQQTPISLRSLPFANTQ--SLFGLKS-STARGGRVTAMATYKVKFITPEGE
-QEVECEEDVYVLDAAEEAGLDLPYSCRAGSCSSCAGKVVSGSIDQSDQSFLDD-------------------
--------------
->FER1_MAIZE Ferredoxin-1, chloroplast precursor
-MATVLGSPRAPAFFFSSSSLRAAPAPTAV--ALPAAKV--GIMGRSA-SSRR--RLRAQATYNVKLITPEGE
-VELQVPDDVYILDQAEEDGIDLPYSCRAGSCSSCAGKVVSGSVDQSDQSYLDDGQIADGWVLTCHAYPTSDV
-VIETHKEEELTGA
->O80429_MAIZE Ferredoxin
-MAAT---------ALSMSILR---APPPCFSSPLRLRV--AVAKPLA-APMRRQLLRAQATYNVKLITPEGE
-VELQVPDDVYILDFAEEEGIDLPFSCRAGSCSSCAGKVVSGSVDQSDQSFLNDNQVADGWVLTCAAYPTSDV
-VIETHKEDDLL--
+++ /dev/null
->FER1_MAIZE/53-118 Ferredoxin-1, chloroplast precursor
-ATYNVKLITPEGEVELQVPDDVYILDQAEEDGIDLPYSCRAGSCSSCAGKVVSGSVDQSDQSYLDD
->FER_CAPAA/1-66 Ferredoxin
-ASYKVKLITPDGPIEFDCPDDVYILDQAEEAGHDLPYSCRAGSCSSCAGKIAGGAVDQTDGNFLDD
->FER_CAPAN/48-113 Ferredoxin, chloroplast precursor
-ASYKVKLITPDGPIEFDCPDNVYILDQAEEAGHDLPYSCRAGSCSSCAGKIAGGAVDQTDGNFLDD
->FER1_SOLLC/48-113 Ferredoxin-1, chloroplast precursor
-ASYKVKLITPEGPIEFECPDDVYILDQAEEEGHDLPYSCRAGSCSSCAGKVTAGSVDQSDGNFLDE
->Q93XJ9_SOLTU/48-113 Ferredoxin I precursor
-ASYKVKLITPDGPIEFECPDDVYILDQAEEEGHDLPYSCRAGSCSSCAGKVTAGTVDQSDGKFLDD
->FER1_PEA/53-118 Ferredoxin-1, chloroplast precursor
-ASYKVKLVTPDGTQEFECPSDVYILDHAEEVGIDLPYSCRAGSCSSCAGKVVGGEVDQSDGSFLDD
->Q7XA98_TRIPR/56-121 Ferredoxin I
-ATYKVKLITPEGPQEFDCPDDVYILDHAEEVGIELPYSCRAGSCSSCAGKVVNGNVNQEDGSFLDD
->FER1_MESCR/52-117 Ferredoxin-1, chloroplast precursor
-AAYKVTLVTPEGKQELECPDDVYILDAAEEAGIDLPYSCRAGSCSSCAGKVTSGSVNQDDGSFLDD
->FER1_SPIOL/51-116 Ferredoxin-1, chloroplast precursor
-AAYKVTLVTPTGNVEFQCPDDVYILDAAEEEGIDLPYSCRAGSCSSCAGKLKTGSLNQDDQSFLDD
->FER3_RAPSA/1-66 Ferredoxin, leaf L-A
-ATYKVKFITPEGEQEVECDDDVYVLDAAEEAGIDLPYSCRAGSCSSCAGKVVSGSVDQSDQSFLDD
->FER1_ARATH/53-118 Ferredoxin-1, chloroplast precursor
-ATYKVKFITPEGELEVECDDDVYVLDAAEEAGIDLPYSCRAGSCSSCAGKVVSGSVDQSDQSFLDD
->FER_BRANA/1-66 Ferredoxin
-ATYKVKFITPEGEQEVECDDDVYVLDAAEEAGIDLPYSCRAGSCSSCAGKVVSGFVDQSDESFLDD
->FER2_ARATH/53-118 Ferredoxin-2, chloroplast precursor
-ATYKVKFITPEGEQEVECEEDVYVLDAAEEAGLDLPYSCRAGSCSSCAGKVVSGSIDQSDQSFLDD
->Q93Z60_ARATH/53-118 At1g10960/T19D16_12
-ATYKVKFITPEGEQEVECEEDVYVLDAAEEAGLDLPYSCRAGSCSSCAGKVVSGSIDQSDQSFLDD
->O80429_MAIZE/45-110 Ferredoxin
-ATYNVKLITPEGEVELQVPDDVYILDFAEEEGIDLPFSCRAGSCSSCAGKVVSGSVDQSDQSFLND
+++ /dev/null
-title=Applet Parameters
-type=page
-status=published
-~~~~~~
-<h2>JalviewLite Applet Parameter Documentation</h2>
-<p>
-The JalviewLite applet is configured through a series of applet parameters,
-which are described <a href="#parameters"> below</a>. Once initialised,
-the applet can be interacted with <em>via</em> its
-<a href="jalviewLiteJs.html">Javascript API</a>.
-</p><p><strong>Issues arising from tightening of Java Security default settings</strong><br/>JalviewLite is provided as a signed applet with 'sandbox' permissions and wildcards that allow it to be run from any website. Unfortunately, earlier versions of Java are not compatible with these settings, so if you find that you cannot see any of the examples on the left, try the <a href="u_applets.html">unsigned applet examples</a>.
-</p>
- <p>For additional deployment notes, <a href="#appletdeploymentnotes">see below</a>.</p>
- <p><h2>Applet Parameters</h2><br/>The applet takes the following initialisation parameters.</p>
- <a name="parameters"></a> <table width="97%" class="borderTable" align="center" >
- <tr>
- <td width="103" height="23"><strong><param name=""</strong></td>
- <td width="80" ><strong>value=""></strong></td>
- <td width="100%"><strong>Description</strong></td>
- </tr>
- <tr>
- <td>permissions</td>
- <td>sandbox</td>
- <td><strong>This parameter is necessary, and must have the value <em>sandbox</em> to allow the JalviewLite applet to run.</strong></td>
- </tr>
- <tr>
- <td>file</td>
- <td>fileName</td>
- <td>The file to open, must be on same server as the applet.</td>
- </tr>
- <tr>
- <td>sequence1,<br>
- sequence2,<br>
- sequence3</td>
- <td>sequence in (preferably) PFAM or Fasta format</td>
- <td>The alignment can be added as a series of sequences instead of
- from a file.</td>
- </tr>
- <tr>
- <td>tree</td>
- <td>fileName</td>
- <td>Tree file in Newick format</td>
- </tr>
- <tr>
- <td>features</td>
- <td>fileName</td>
- <td>Jalview Features file to be applied to the alignment</td>
- </tr>
- <tr>
- <td>annotations</td>
- <td>fileName</td>
- <td>Jalview Annotation file will be added to the alignment</td>
- </tr>
- <tr>
- <td>jnetfile</td>
- <td>fileName</td>
- <td>Secondary structure predictions from a <a
- href="http://www.compbio.dundee.ac.uk/~www-jpred/">Jnet</a> Concise
- file will be added to the first sequence in the alignment.</td>
- </tr>
- <tr>
- <td>PDBfile(x)</td>
- <td><p>fileName seq1 seq2 seq3</p>
- <p>or</p>
- <p>fileName A=seq1 B=seq2 C=seq3</p></td>
- <td>PDB file which is to be associated with a sequence, followed by
- space separated list of alignment sequence ids. PDB chains can be
- specifed to map to particular sequence by using A=SeqA notation</td>
- </tr>
- <tr>
- <td><p>PDBSeq<br>
- *Not needed post Jalview 2.3, use PDBFile instead</p></td>
- <td>SequenceId</td>
- <td>The sequence to associate a PDB file with. Note the value is case
- sensitive.</td>
- </tr>
- <tr>
- <td>defaultColour</td>
- <td> <em>One of: </em><br>
- Clustal, Blosum62, % Identity, Hydrophobic, Zappo, Taylor, Helix
- Propensity, Strand Propensity, Turn Propensity, Buried Index, Nucleotide, T-Coffee Scores, RNA Helices</td>
- <td>Default is no colour.</td>
- </tr>
- <tr>
- <td>userDefinedColour</td>
- <td><p><em>Example:</em><br>
- D,E=red; K,R,H=0022FF; c=yellow</p></td>
- <td>Define residue colours</td>
- </tr>
- <tr>
- <td height="35">showFullId</td>
- <td>true <em>or</em> false</td>
- <td>if true displays start and end residue at the end of sequence
- Id.</td>
- </tr>
- <tr>
- <td>showAnnotation</td>
- <td>true <em>or</em> false</td>
- <td>If true shows the annotation panel below the alignment.</td>
- </tr>
- <tr>
- <td>showConservation</td>
- <td>true <em>or</em> false</td>
- <td>Default is true.</td>
- </tr>
- <tr>
- <td>showQuality</td>
- <td>true <em>or</em> false</td>
- <td>Default is true.</td>
- </tr>
- <tr>
- <td>showConsensus</td>
- <td>true <em>or</em> false</td>
- <td>Default is true.</td>
- </tr>
- <tr>
- <td>sortBy</td>
- <td> Id <em>, </em> Pairwise Identity<em>, or</em> Length</td>
- <td> Sorts the alignment on startup</td>
- </tr>
- <tr>
- <td>RGB</td>
- <td>colour as hex string</td>
- <td>Background colour for applet button - purely cosmetic to blend
- in with your web page. For orange, enter the value FF6600</td>
- </tr>
- <tr>
- <td>embedded</td>
- <td>true <em>or</em> false</td>
- <td>The applet is embedded in the web page, the "Start Jalview"
- button is not displayed.</td>
- </tr>
- <tr>
- <td>windowWidth</td>
- <td>value</td>
- <td>frame width</td>
- </tr>
- <tr>
- <td>windowHeight</td>
- <td>value</td>
- <td>frame height</td>
- </tr>
- <tr>
- <td>label</td>
- <td>label text</td>
- <td>Change text for the Launch Jalview Button</td>
- </tr>
- <tr>
- <td>wrap</td>
- <td>true <em>or</em> false</td>
- <td>Opens new windows in wrapped mode</td>
- </tr>
- <tr>
- <td>linkLabel_1</td>
- <td>EMBL-EBI Search</td>
- <td rowspan="2"><p>Right click on sequence id to see list of available
- links. Any new links MUST have $SEQUENCE_ID$ as part of the linkURL_n
- value. For multiple links, increment the label and url name by
- 1. ie <br>
- <param name="linkLabel_2" ..., <br>
- <param name="linkUrl_2"....<br>
- </p>
- <p>Regular expressions may also be used (<em>since Jalview 2.4</em>) to process the ID string inserted into the URL:
- <br>$SEQUENCE_ID=/<regex to extract ID>/=$<br><em>Use the debug flag to check parsing and make sure that special symbols are properly escaped (particularly when generating applet tags from CGI scripts).
- <br>Regex URL links are also applied to the description line (since Jalview 2.4.+).</em></p></td>
- </tr>
- <tr>
- <td> <p>
- <br>
- linkUrl_1<br>
- </p></td>
- <td><p><br>
- http://www.ebi.ac.uk/ebisearch/<br/>search.ebi?db=allebi&query=$SEQUENCE_ID$</p>
- </td>
- </tr>
- <tr>
- <td>showFeatureSettings</td>
- <td>true <em>or</em> false</td>
- <td>Shows the feature settings window when starting the applet</td>
- </tr>
- <tr>
- <td>showfeaturegroups</td>
- <td><em>separator</em> separated list of feature groups</td>
- <td>Display the features in the given groups on the alignment</td>
- </tr>
- <tr>
- <td>hidefeaturegroups</td>
- <td><em>separator</em> separated list of feature groups</td>
- <td>Hide the features in the given groups on the alignment
- (will be overridden by showfeaturegroups for group names
- found in both lists)</td>
- </tr>
- <tr>
- <td>application_url</td>
- <td><p><em>URL of dynamic JNLP servlet,</em></p>
- <p>http://www.jalview.org/services/launchApp</p></td>
- <td>Launches full application with original alignment, features and
- annotations files used in applet</td>
- </tr>
- <tr>
- <td>separator</td>
- <td><em>non-empty separator string</em><br>default: |</td>
- <td>string used to separate fields in list parameters (such as <em>showfeaturegroups</em>)</td>
- </tr>
- <tr><td>debug</td>
- <td>true</td>
- <td>Instruct the applet to output additional debug messages to the java console</td>
- </tr>
- <tr><td>nojmol</td>
- <td>false</td>
- <td>When set, do not try to find Jmol classes. Set this to supress URL not found errors appearing
- in server logs when Jmol is not available.
- </td>
- </tr>
- <tr><td>showbutton</td>
- <td>true</td>
- <td>Show the jalview button on the page. When false, JalviewLite will open immediately.</td>
- </tr>
- </tr>
- <tr><td>sortByTree</td>
- <td>true or false (default is false)</td>
- <td>automatically sort the associated alignment view by the tree when a new tree is opened.</td>
- </tr>
- <tr>
- <td>showTreeBootstraps</td><td>true or false (default is true)</td><td>show or hide branch bootstraps</td>
- </tr>
- <tr><td>showTreeDistances</td><td>true or false (default is true)</td><td>show or hide branch lengths</td></tr>
- <tr><td>showUnlinkedTreeNodes</td><td>true or false (default is false)</td><td>indicate if unassociated nodes should be highlighted in the tree view</td>
- </tr>
- <tr><td>heightScale</td>
- <td>1.0 or greater</td>
- <td>Adjust the height of each cell in the alignment grid relative to the height of a character in the alignment font. (<em>since 2.5.1</em>)</td>
- </tr>
- <tr><td>widthScale</td>
- <td>1.0 or greater</td>
- <td>Adjust the width of each cell in the alignment grid relative to the width of a character in the alignment font. (<em>since 2.5.1</em>)</td>
- </tr>
- <tr><td>centrecolumnlabels</td>
- <td>true of false (default is false)</td>
- <td>When true, text labels associated with a column in the alignment will be shown centered with respect to the column. (<em>since 2.4</em>)</td>
- <tr><td>showUnconserved</td>
- <td>true of false (default is false)</td>
- <td>When true, only gaps and symbols different to the consensus sequence for a column will be shown. Useful for visualizing alignments exhibiting low sequence variation, where it is important to highlight mutations. (<em>since 2.5</em>)</td>
- </tr>
- <tr><td>upperCase</td>
- <td><em>bold</em> or other value</td>
- <td>Indicate a text style to apply to uppercase sequence symbols. Currently, only <strong>bold</strong> is supported.</td>
- </tr>
- <tr><td>automaticScrolling</td>
- <td>true of false (default is true)</td>
- <td>When true, alignment panels will automatically scroll to show any regions of the alignment highlighted due to javascript events or when mousing over a position in an associated structure. (<em>since 2.6</em>)</td>
- </tr>
-
- <tr><td>showGroupConsensus</td>
- <td>true of false (default is false)</td>
- <td>When true, shows consensus annotation row for any groups on the alignment. (<em>since 2.7</em>)</td>
- </tr>
-
- <tr><td>showGroupConservation</td>
- <td>true of false (default is false)</td>
- <td>When true, shows amino-acid property conservation annotation row for any groups on the alignment. (<em>since 2.7</em>)</td>
- </tr>
- <tr><td>showConsensusHistogram</td>
- <td>true of false (default is true)</td>
- <td>When true, shows the percentage occurence of the consensus symbol for each column as a histogram above the consensus sequence row. (<em>since 2.7</em>)</td>
- </tr>
- <tr><td>showSequenceLogo</td>
- <td>true of false (default is false)</td>
- <td>When true, shows a sequence logo above the consensus sequence (overlaid above the Consensus Histogram, if visible, with symbols coloured using the alignment's default colourscheme). (<em>since 2.7</em>)</td>
- </tr>
- <tr><td>normaliseSequenceLogo</td>
- <td>true of false (default is false)</td>
- <td>When true, all sequence logos will be normalised (all symbol stacks add up to full height of annotation row), rather than being scaled according to the fraction of symbols identical to the consensus. (<em>since 2.8</em>)</td>
- </tr>
- <tr><td>oninit</td>
- <td><em>after_init()</em></td>
- <td>name of javascript function that will be called after the jalviewLite instance has completed its initialisation. (<em>since 2.7</em>)</td>
- </tr>
- <tr><td>relaxedidmatch</td>
- <td><em>true or false (default is false)</em></td>
- <td>When true, use stem based matching to identify sequences that match features imported from a GFF or Jalview sequence features file, and for associating PDB data (passed on PDBfile parguments) with sequences (based on a given destination sequence ID). (<em>since 2.7</em>)</td>
- </tr>
- <tr><td>alignpdbfiles</td>
- <td><em>true or false (default is false)</em></td>
- <td>When true, and jalviewLite is able to use jmol as a structure viewer, attempt to show a superposition of all structures loaded onto the alignment, superimposed using the aligned regions of corresponding sequences. [experimental] (<em>since 2.7</em>)</td>
- </tr>
- <tr><td>externalstructureviewer</td>
- <td><em>true or false (default is false)</em></td>
- <td>re-route jmol colouring commands, selection and mouseover events to an external viewer using javascript callbacks. [experimental] (<em>since 2.7</em>)</td>
-
- </tr>
- <tr><td>annotationcolour_max</td>
- <td>colour name or RGB hex triplet (default is red)</td>
- <td>Default colour used for maximum value when shading by annotation. (<em>since 2.7</em>)</td>
- </tr>
- <tr><td>annotationcolour_min</td>
- <td>colour name or RGB hex triplet (default is orange)</td>
- <td>Default colour used for minimum value when shading by annotation. (<em>since 2.7</em>)</td>
- </tr>
- <tr><td>jalviewhelpurl</td>
- <td>absolute or relative url or javascript function prefixed by <em>javascript:</em> (default is http://www.jalview.org/help.html)</td>
- <td>Optional parameter allowing modification of the default Jalview Help URL normally opened when JalviewLite's 'Help' menu item is selected. (<em>since 2.7</em>)</td>
- </tr>
- <tr><td>resolvetocodebase</td>
- <td>True or False (False)</td>
- <td>Set to true to re-instate pre-JalviewLite 2.7 behaviour where relative URLs were prepended with the applet 'codebase' rather than the current document base URL before resolution. (<em>since 2.7</em>)</td>
- </tr>
- <tr><td>scoreFile</td>
- <td>file</td>
- <td>Multiple sequences aligment scores file. Currently is supported only the T-Coffee score_ascii file format</td>
- </tr>
- </table>
- <p><h2><a name="appletdeploymentnotes"/>Notes on applet deployment</h2><br/>
- <ul>
- <li>Package all your data files into a single (or multiple) zip / jar
- files. This is very useful to reduce download time of large data files.
- The applet archive tag can take multiple entries separated by commas,
- eg<br>
- <pre><applet code="jalview.bin.JalviewLite"<em><strong>
- archive="jalviewApplet.jar, mydata.zip"</strong></em>><br>
- </pre></li>
- <li> Use Jalview for input to a HTML form. For an example of how to
- code this using Javascript, click <a href="formComplete.html">here</a>.
- <br>
- </li>
- <li>Embed Jalview into the web page, without the "Start Jalview"
- button by setting the embed parameter to true;<br>
- <param name="embedded"
- value="true"> </li>
- </ul>
- <p><strong>**NEW FEATURES** in Jalview 2.8</strong></p>
- <ul>
- <li>Normalised sequence logo display
- </li>
- <li>RNA secondary structure annotation row
- </li>
-<li>Jmol compatibility updated to Jmol 12.2.x series - <a href="JmolApplet-14.2.14_2015.06.11.jar">download the JmolApplet here</a></li>
-<li>To use Jmol as the structure viewer for Jalview, you must include
- the jar file in the applet archive argument thus:<br>
- <pre>archive="jalviewApplet.jar,Jmol-12.2.4.jar"</pre>
- </li>
- <li>Jmol 12.2.x requires at least Java 1.6 to run in the clients web browser. If the client does not have
- Java 1.6, or if the Jmol-12.2.jar is not added to the archive, the
- original Jalview structure viewer will still be available. <br>
- </li>
-
- </ul>
- <p><strong>**NEW FEATURES** in Jalview 2.7</strong></p>
- <ul>
- <li>Javascript callbacks capabilities<ul><li>oninit parameter and methods for registering javascript handlers for selections, mouseovers and linking to Jmol applets on the page.</li>
- <li>To use javascript callbacks, ensure the applet tag includes the '<a href="http://download.oracle.com/javase/6/docs/technotes/guides/plugin/developer_guide/java_js.html">mayscript</a>' attribute - either as a parameter (<param name="mayscript" value="true"/;gt;) or as a bare attribute in the applet html tag).</li></ul>
- </li>
- <li>New <a href="jalviewLiteJs.html">jalviewLite java api</a> methods for selecting, highlighting, scrolling and reordering sequences in an alignment view.
- </li></ul>
- <p><strong>**NEW FEATURES** in Jalview 2.6</strong></p>
- <ul>
- <li>Jmol compatibility updated to Jmol 12.1.x series</li>
- <li>Jalview 2.6 works only with Jmol version 12.1.13 or later. You can use the JmolApplet.jar from
- the Jmol binary distribution available at the Jmol Sourceforge site,
- or <a href="JmolApplet-12.1.13.jar">download the Jmol applet from here</a></li>
- <li>Minimum recommended version of Java runtime for the applet is now 1.5 (JalviewLite v2.6 without the Jmol viewer may work ok on earlier Java environments but compatibility can no-longer be guaranteed).</li>
- </ul>
- <br><strong>**NEW FEATURES** in Jalview 2.5</strong></p>
- <ul>
- <li>New parameters to control display of tree annotation, width of alignment columns, and to disable the jalview button and check for Jmol on startup.</li>
- </ul>
- <br><strong>**NEW FEATURES** in Jalview 2.4</strong></p>
- <ul>
- <li>New applet API methods for feature display control, views, and obtaining current selection via javascript.</li>
- <li>Group show and hide parameters:
- "showfeaturegroups" and
- "hidefeaturegroups". Both take a list
- of feature group names (separarated by "|" by default) to hide or show on the displayed
- alignment.
- </li>
- <li>Regular expressions can be used in URL links for sequence IDs.</li>
- <li>"debug" parameter to control verbosity of the applet's console output.</li>
- <li>"showbutton" parameter to disable launch button and open JalviewLite immediatly.</li>
- <li>"nojmol" parameter to disable check for Jmol classes.</li>
- </ul><br>
- <strong>**NEW FEATURES** in Jalview 2.3</strong></p>
- <ul>
- <li>Note that Parameter "PDBFile" now takes
- the PDB file followed by a space separated list of alignment sequence
- ids to associate the structure to. It is also possible to associate
- multiple PDB files by adding an incremental value to PDBFile (up to
- 10). It is also possible to map specific sequences to specific chains
- by using the following notation:<br>
- <br>
- <pre>
- <param name="PDBFile" value="First.pdb SeqA SeqB
- SeqC"><br>
- <param name="PDBFile2" value="Second.pdb
- A=SeqA B=SeqB C=SeqC"><br>
- <param name="PDBFile3" value="Third.pdb
- D=SeqX B=SeqY C=SeqZ"><br>
- </pre>
- </li>
- <li>Note parameter "PDBSeq" is no longer required.<br>
- </li>
- <li>Jalview 2.3 was updated to work with Jmol 11. See the <a href="/development">versions archive if you want to download the old Jmol applet</a>.</li>
- <p> </p>
- </li>
- </ul>
- <strong>**NEW FEATURES** in Jalview 2.1</strong>
- <ul>
- <li>Jalview Applet can read and display JNet secondary structure annotation
- directly via the <strong>jnetfile</strong> parameter. <br>
- </li>
- <li>Param "UserDefinedColour" - specify your own colours for each residue using a semi colon
- separated list. Multiple residues can be assigned the same colour
- using commas. eg:<br>
- <pre><param name="userDefinedColour"
- value="D,E=red; K,R,H=0022FF; C=yellow"></pre>
- </li>
- <li>Param "showFeatureSettings"
- - this will display the feature settings window when the applet starts.
- </li>
- <li>Param "Application_URL" value="http://www.jalview.org/services/launchApp"<br/>
- This calls a servlet which creates a JNLP file with the alignment
- file, annotations file and features file of the applet as arguments.
- If the user has Java installed, the returned JNLP file should start
- up the full Jalview Application. BUT this does not currently work
- for alignment files added to the applet in a zip file.
- <br/>Look at the XML comments in the file downloaded from <a href="http://www.jalview.org/services/launchApp">The LaunchApp page</a> for full documentation.
- </li>
- <li>Alignment file can be a series of parameters using eg PFAM format
- <br>
- <pre><param name="sequence1"
- value="Q93XJ9_SOLTU/11-26 TSFLPRKPVVTSLKAI"><br>
- <param name="sequence2" value="FER1_PEA/14-29 TSFLRTQPMPMSVTTT"><br>
- </pre>(All the usual Jalview File formats are valid, however each
- new line in an alignment file must be entered as a parameter)</li>
- </ul>
-
+++ /dev/null
-title=JalviewLite Examples
-type=page
-jvl=jalviewApplet.jar
-jmol=JmolApplet-14.2.14_2015.06.11.jar
-status=published
-level=0
-class=jvl_examples.ftl
-~~~~~~
-
+++ /dev/null
-title=Embedded Alignment
-type=page
-jvl=jalviewApplet.jar
-jmol=JmolApplet-14.2.14_2015.06.11.jar
-class=jvl_embedded.ftl
-status=published
-level=2
-~~~~~~
+++ /dev/null
-title=Jalview and Jmol
-type=page
-jvl=jalviewApplet.jar
-jmol=JmolApplet-14.2.14_2015.06.11.jar
-class=jvl_embeddedWJmol.ftl
-hclass=jvl_embeddedWJmol_hdr.ftl
-status=published
-level=2
-~~~~~~
+++ /dev/null
-title=Access from Javascript
-type=page
-jvl=jalviewApplet.jar
-jmol=JmolApplet-14.2.14_2015.06.11.jar
-class=jvl_formComplete.ftl
-status=published
-level=2
-~~~~~~
-<!-- end of -->
+++ /dev/null
-title=Javascript API
-type=page
-status=published
-level=0
-~~~~~~
-
-
- <p>The jalviewLite applet's application programming interface (API) includes two components. A <a href="javascript/jalview.js">JalviewLite Javascript Library</a> and the <a href="#api">public methods on the JalviewLite applet</a>.
-</p>
- <h3>Notes</h3>
- <ul>
- <li>Unfortunately Javascript - Java communication is not possible
- using Internet Explorer or Opera on Macs. Please use Safari or
- Firefox.</li>
- <li>If more than one Jalview window is open, Jalview returns the
- alignment in the active window, unless you provide an AlignFrame
- object reference.</li>
- <li>The alignment output format can be either Fasta, PFAM, Clustal,
- MSF, PIR, or BLC.</li>
- <li>When referring to the Jalview applet in javascript, you must
- either give Jalview a name in the applet tag or use the document.applets index.</li>
- <li>When creating javascript functions that are called by jalviewLite (e.g. the <em>oninit</em> parameter, or any mouseOver, selection or structureListener handlers), ensure they complete very quickly, and do not access any jalview API methods that might result in more javascript calls (this which will cause your browser to hang). If you need to do this, we suggest that jalviewLite callbacks are used to add new javascript events to a queue (e.g. using a Jquery timer callback) to avoid any concurrency issues.
- </li>
- </ul>
- <a name="api">
- <h1>JalviewLite's Javascript API</h1></a>
- <p>The following public methods on the jalviewLite applet are available to be called from javascript:</p>
- <pre>//get list of IDs of selected sequences
-public String getSelectedSequences()
-
-// list of IDs of selected sequences terminated by sep or, if sep is null, '¬' (&#172;)
-public String getSelectedSequences(sep)
-
-// get list of selected sequences from specific alignFrame. (2.7)
-public String getSelectedSequencesFrom(AlignFrame alf)
-public String getSelectedSequencesFrom(AlignFrame alf, String sep)
-
-// highlight a position in a specific sequence or a column in an alignment containing it
-// provide ID sequence to highlight, integer (range highlighting will be supported in future versions)
-// and flag indicating if position is an alignment column or given according to sequence numbering (2.7)
-public void highlight(String sequenceId, String position, String alignedPosition)
-public void highlightIn(AlignFrame alf, String sequenceId, String position, String alignedPosition)
-
-
-// select regions of the currrent alignment frame using a list of sequence ids and a list of
-// column numbers and ranges (with minus sign indicating start-end) (separated by default separator) (2.7)
-public void select(String sequenceIds, String columns)
-public void select(String sequenceIds, String columns, String sep)
-public void selectIn(AlignFrame alf, String sequenceIds, String columns)
-public void selectIn(AlignFrame alf, String sequenceIds, String columns, String sep)
-
-
-// get selected sequences as alignment as format with or without start-end suffix
-public String getSelectedSequencesAsAlignment(String format, boolean suffix)
-
-// get selected sequences as alignment from given view as format with or without start-end suffix
-public String getSelectedSequencesAsAlignmentFrom(AlignFrame alf, String format, boolean suffix)
-
-// get a separator separated list of sequence IDs reflecting the order of the current alignment (2.7)
-public String getAlignmentOrder();
-public String getAlignmentOrderFrom(AlignFrame alf);
-public String getAlignmentOrderFrom(AlignFrame alf, String sep);
-
-// re-order the current alignment using the given list of sequence IDs separated by sep
-// undoName - is string to use when referring to ordering action in undo buffer
-// returns 'true' if alignment was actually reordered. empty string if alignment did not contain sequences.
-// (v2.7)
-public String orderBy(String order, String undoName)
-public String orderBy(String order, String undoName, String sep)
-String orderAlignmentBy(AlignFrame alf, String order, String undoName, String sep)
-
-
-// get alignment as format
-public String getAlignment(String format)
-
-// get alignment as format with jalview
-// start-end sequence suffix appended
-public String getAlignment(String format, String suffix)
-
-// get alignment displayed in alf as format
-public String getAlignmentFrom(AlignFrame alf, String format)
-
-// get alignment displayed in alf as format
-// with jalview start-end sequence suffix appended
-public String getAlignmentFrom(AlignFrame alf, String format, String suffix)
-
-// add the given features or annotation to the current alignment
-// if features are loaded, feature display is automatically enabled
-public void loadAnnotation(String annotation)
-
-// add the given features or annotation to the given alignment view
-// if features are loaded, feature display is automatically enabled
-public void loadAnnotationFrom(AlignFrame alf, String annotation)
-
-// parse the given string as a jalview or GFF features file and optionally enable feature display on the current alignment
-// (v2.8)
-public abstract void loadFeatures(String features, boolean autoenabledisplay)
-
-// parse the given string as a jalview or GFF features file and optionally enable feature display on the given alignment
-// (v2.8)
-public abstract void loadFeaturesFrom(AlignFrame alf, String features, boolean autoenabledisplay)
-
-// get the sequence features in the given format (Jalview or GFF)
-public String getFeatures(String format)
-
-// get the sequence features in alf in the given format (Jalview or GFF)
-public String getFeaturesFrom(AlignFrame alf, String format)
-
-// get current alignment's annotation as an annotation file
-public String getAnnotation()
-
-// get alignment view alf's annotation as an annotation file
-public String getAnnotationFrom(AlignFrame alf)
-
-// create a new view and return the alignFrame instance
-public AlignFrame newView()
-
-// create a new view named name and return the alignFrame instance
-public AlignFrame newView(String name)
-
-// create a new view on alf and return the alignFrame instance
-public AlignFrame newViewFrom(AlignFrame alf)
-
-// create a new view named name on alf
-// and return the alignFrame instance
-public AlignFrame newViewFrom(AlignFrame alf, String name)
-
-// load a new alignment
-// remember to store the AlignFrame object reference
-// if you want to manipulate the new alignment view.
-public AlignFrame loadAlignment(String text, String title)
-
-
-// register a javascript function to handle any alignment mouseover events
-// listener is name of javascript function which will be called
-// with arguments [jalview.appletgui.AlignFrame,String(sequence id),
-// String(column in alignment), String(position in sequence)]
-// (v2.7)
-public void setMouseoverListener(String listener)
-
-// register a javascript function to handle mouseover events for specific alignframe
-// (v2.7)
-public void setMouseoverListener(AlignFrame af, String listener)
-
-// register a javascript function to handle alignment selection events.
-// Events are generated when the user completes a selection event, or when
-// the user deselects all selected regions.
-// listener is name of javascript function that will be called with arguments
-// [jalview.appletgui.AlignFrame, String(sequence set id),
-// String(separator separated list of sequences which were selected),
-// String(separator separated list of column ranges)]
-// (v2.7)
-public void setSelectionListener(String listener)
-
-// register a selection listener for a specific alignment frame
-// (v2.7)
-public void setSelectionListener(AlignFrame af, String listener)
-
-// register a javascript function to handle events normally routed
-// to a Jmol structure viewer.
-// listener is a javascript function called with several different types
-// of arguments, dependent on the type of structure callback event.
-// See jalview.javascript.MouseOverStructureListener for full details or
-// the embedded Jmol example.
-// modelSet - is a separator separated list of PDB file URIs that this viewer is handling (where position in list equals model number in Jmol).
-// (v2.7)
-public void setStructureListener(String listener, String modelSet)
-
-// remove any callback using the given listener function and associated with
-// the given alignFrame (or null for all callbacks) (v2.7)
-public void removeJavascriptListener(AlignFrame af, String listener)
-
-// send a mouseover message to all the alignment windows associated with the
-// given residue in the pdbfile (v2.7)
-public void mouseOverStructure(String pdbResNum, String chain, String pdbfile)
-
-// bind a pdb file to a sequence in the given alignFrame - this will be searched
-// for sequences matching sequenceId. The PDB file in pdbFile is either the contents
-// of a PDB file or a URI that can be used to retrieve the file, and the pdbEntryString
-// is the user friendly name (or PDBID) shown in jalview's user interface.
-// returns true if binding was as success (v2.7)
-public boolean addPdbFile(AlignFrame alFrame,
- String sequenceId, String pdbEntryString, String pdbFile)
-
-// adjust horizontal/vertical scroll in alf to the make
-// the given location the top left hand corner for given current view (v2.7)
-public void scrollViewToIn(AlignFrame alf, String topRow, String leftHandColumn)
-
-// adjust horizontal scroll in alf to the make
-// the given location the left hand corner for given current view (v2.7)
-public void scrollViewToColumnIn(AlignFrame alf, String leftHandColumn)
-
-// adjust horizontal/vertical scroll in alf to the make
-// the given location the top row for given current view (v2.7)
-public void scrollViewToRowIn(AlignFrame alf, String topRow)
-
-
-// return separator separated list of feature groups
-// on the current alignment
-public String getFeatureGroups()
-
-// return separator separated list of feature groups on alf
-public String getFeatureGroupsOn(AlignFrame alf)
-
-// return separator separated list of feature groups
-// either visible or hidden
-public String getFeatureGroupsOfState(boolean state)
-
-// return separator separated list of feature groups
-// either visible or hidden on alf
-public String getFeatureGroupsOfStateOn(AlignFrame alf, boolean state)
-
-// set the separator separated list of feature groups as
-// visible or hidden on the current alignment
-public void setFeatureGroupState(String groupList, boolean state)
-
-// set the separator separated list of feature groups
-// as visible or hidden on alf
-public void setFeatureGroupStateOn(AlignFrame alf, String groupList, boolean state)
-
-// helper functions
-
-// Asynchronously retrieve next chunk of a large packet of data made available
-// for a JalviewLite event handler, or the empty string if no more data is available.
-// messageclass and viewId are keys used to retrieve a specific message related
-// to an event.
-// Use this in a javascript timer or GUI update thread to retrieve data without
-// blocking the JalviewLite applet. DO NOT USE IN THE CALLBACK THAT HANDLED THE EVENT
-// (v2.7)
-public String getJsMessage(String messageclass, String viewId)
-
-
-// convert list to a separator separated array
-public String arrayToSeparatorList(String[] list)
-
-// get a string array from a list
-public String[] separatorListToArray(String list)
-
-// get the current separator
-public String getSeparator()
-
-// set the current separator
-public void setSeparator(String)
-
-//// JalviewLite global state methods and fields
-
-// return the build date as a string
-public static String getBuildDate()
-
-// return the JalviewLite version as a string
-public static String getVersion()
-
-// debug flag - controls output to standard out
-public static boolean debug
-
-</pre>
-
+++ /dev/null
-title=Javascript Launch
-type=page
-jvl=jalviewApplet.jar
-jmol=JmolApplet-14.2.14_2015.06.11.jar
-class=jvl_javascriptLaunch.ftl
-status=published
-level=2
-~~~~~~
-
+++ /dev/null
-title=Linked JalviewLites
-type=page
-jvl=jalviewApplet.jar
-jmol=JmolApplet-14.2.14_2015.06.11.jar
-class=jvl_linkedapplets_ng.ftl
-status=published
-level=1
-~~~~~~
-
+++ /dev/null
-title=JalviewLite Examples
-type=page
-jvl=u_jalviewApplet.jar
-jmol=u_JmolApplet-14.2.14_2015.06.11.jar
-alteg=true
-status=published
-level=0
-class=jvl_examples.ftl
-~~~~~~
-
+++ /dev/null
-title=Embedded Alignment
-type=page
-jvl=u_jalviewApplet.jar
-jmol=u_JmolApplet-14.2.14_2015.06.11.jar
-alteg=true
-class=jvl_embedded.ftl
-status=published
-level=2
-~~~~~~
+++ /dev/null
-title=Jalview and Jmol
-type=page
-jvl=u_jalviewApplet.jar
-jmol=u_JmolApplet-14.2.14_2015.06.11.jar
-alteg=true
-class=jvl_embeddedWJmol.ftl
-hclass=jvl_embeddedWJmol_hdr.ftl
-status=published
-level=2
-~~~~~~
+++ /dev/null
-title=Access from Javascript
-type=page
-jvl=u_jalviewApplet.jar
-jmol=u_JmolApplet-14.2.14_2015.06.11.jar
-alteg=true
-class=jvl_formComplete.ftl
-status=published
-level=2
-~~~~~~
-<!-- end of -->
+++ /dev/null
-title=Javascript Launch
-type=page
-jvl=u_jalviewApplet.jar
-jmol=u_JmolApplet-14.2.14_2015.06.11.jar
-alteg=true
-class=jvl_javascriptLaunch.ftl
-status=published
-level=2
-~~~~~~
-
+++ /dev/null
-title=Linked JalviewLites
-type=page
-jvl=u_jalviewApplet.jar
-jmol=u_JmolApplet-14.2.14_2015.06.11.jar
-alteg=true
-class=jvl_linkedapplets_ng.ftl
-status=published
-level=1
-~~~~~~
-
+++ /dev/null
-site.host=http://www.jalview.org/examples/
-render.tags=false
\ No newline at end of file
+++ /dev/null
-</div> <!-- content -->
-</div> <!-- pagewrap -->
-<div id ="footer">
-<div id="innerFooter">
-<div id="copyright"><p>Published under <a href="http://creativecommons.org/licenses/by-sa/3.0/">CC-SA 3.0</a></p></div>
-<div id="cite">
-<p>
-If you use Jalview in your work, please cite this publication:
-</p>
-<br />
-<p>
-Waterhouse, A.M., Procter, J.B., Martin, D.M.A, Clamp, M. and Barton, G. J. (2009)
-"Jalview Version 2 - a multiple sequence alignment editor and analysis workbench"
-Bioinformatics 25 (9) 1189-1191 <a href="http://dx.doi.org/10.1093/bioinformatics/btp033">doi: 10.1093/bioinformatics/btp033</a>
-</p>
-</div>
-</div>
-</div>
-</body>
-</html>
+++ /dev/null
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<!--
- * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
- * Copyright (C) $$Year-Rel$$ The Jalview Authors
- *
- * This file is part of Jalview.
- *
- * Jalview is free software: you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
- *
- * Jalview is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty
- * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
- * The Jalview Authors are detailed in the 'AUTHORS' file.
--->
-<head>
- <TITLE>${content.title}</TITLE>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-
- <link href="css/reset.css" rel="stylesheet" type="text/css" />
- <link href="css/style.css" rel="stylesheet" type="text/css" />
-
- <!--[if IE 6]>
- <link rel="stylesheet" type="text/css" href="css/ie6.css" />
- <![endif]-->
-
- <!--[if IE 7]>
- <link rel="stylesheet" type="text/css" href="css/ie7.css" />
- <![endif]-->
-
- <!-- dd menu -->
- <script type="text/javascript">
- <!--
- var timeout = 500;
- var closetimer = 0;
- var ddmenuitem = 0;
-
- // open hidden layer
- function mopen(id)
- {
- // cancel close timer
- mcancelclosetime();
-
- // close old layer
- if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
-
- // get new layer and show it
- ddmenuitem = document.getElementById(id);
- ddmenuitem.style.visibility = 'visible';
-
- }
- // close showed layer
- function mclose()
- {
- if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
- }
-
- // go close timer
- function mclosetime()
- {
- closetimer = window.setTimeout(mclose, timeout);
- }
-
- // cancel close timer
- function mcancelclosetime()
- {
- if(closetimer)
- {
- window.clearTimeout(closetimer);
- closetimer = null;
- }
- }
-
- // close layer when click-out
- document.onclick = mclose;
- // -->
- </script>
- <script>
- <!--//--><![CDATA[//><!--
-var _gaq = _gaq || [];_gaq.push(["_setAccount", "UA-9060947-1"]);_gaq.push(["_trackPageview"]);(function() {var ga = document.createElement("script");ga.type = "text/javascript";ga.async = true;ga.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js";var s = document.getElementsByTagName("script")[0];s.parentNode.insertBefore(ga, s);})();
-//--><!]]>
- </script>
-<#if (content.hclass?exists) >
- <#include content.hclass />
-</#if>
-
-</head>
-
-
-<body>
-
-
- <div id="header">
- <div id="logo"><a href="http://www.jalview.org" title="Home"></a></div>
- <ul id="buttons">
- <li id="applet"><a href="applets.html" title="applet"></a></li>
- <li id="desktop"><a href="../webstart/jalview.jnlp" title="desktop"></a></li>
- </ul>
- </div>
-
-
- <div id ="nav">
- <div id="navInner">
-
- <ul id="sddm">
- <li><a href="http://www.jalview.org">Home</a></li>
- <li><a href="http://www.jalview.org/about" onmouseover="mopen('m1')" onmouseout="mclosetime()">About</a>
- <div id="m1" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
- <a href="http://www.jalview.org/about/documentation">Documentation</a>
- <a href="http://www.jalview.org/about/citation">Publications</a>
- <a href="http://www.jalview.org/about/credits">Credits</a>
- </div>
- </li>
- <li><a href="http://www.jalview.org/faq">FAQ</a></li>
- <li><a href="http://www.jalview.org/community" onmouseover="mopen('m3')" onmouseout="mclosetime()" class="community">Community</a>
- <div id="m3" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
- <a href="http://www.jalview.org/mailman/listinfo/jalview-announce">News Mailing List</a>
- <a href="http://www.jalview.org/mailman/listinfo/jalview-discuss">Discussion Mailing List</a>
- <a href="http://www.jalview.org/community/links">Links</a>
- <a href="http://www.jalview.org/community/community-news">Community News</a>
- </div>
- </li>
- <li><a href="http://www.jalview.org/development" onmouseover="mopen('m4')" onmouseout="mclosetime()" class="development">Development</a>
- <div id="m4" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
- <a href="http://www.jalview.org/development/release-history">Release History</a>
- <a href="http://issues.jalview.org">Jalview Bug Tracker</a>
- <a href="http://source.jalview.org/gitweb/">Jalview Git Web</a>
- <a href="http://www.jalview.org/development/development-news">Development News</a>
- </div>
- </li>
- <li><a href="http://www.jalview.org/training" onmouseover="mopen('m5')" onmouseout="mclosetime()" class="training">Training</a>
- <div id="m5" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
- <a href="http://www.jalview.org/training/training-courses">Training Courses</a>
- <a href="http://www.jalview.org/training/training-news">Training News</a>
- </div>
- </li>
- <li><a href="http://www.jalview.org/download" class="download-right">Download</a></li>
- </ul>
- <div style="clear:both"></div>
- </div>
-
- </div>
-<div id="pageWrap">
+++ /dev/null
-<h2>Embedded viewing of Alignments</h2>
-<p>The alignment below was generated from the following files:
- <ul>
- <li><a href="plantfdx.fa">plantfdx.fa</a> - Alignment file in
- FASTA format</li>
- <li><a href="plantfdx.features">plantfdx.features</a> - Jalview
- Format Sequence Features file</li>
- <li><a href="plantfdx.annotations">plantfdx.annotations</a> -
- Jalview Alignment Annotations File</li>
- </ul>
- <@jvlitebutton appjar="${content.jvl},${content.jmol}" width=756 height=560
- params={
- "file":"plantfdx.fa",
- "annotations":"plantfdx.annotations",
- "features":"plantfdx.features",
- "embedded":"true",
- "userDefinedColour":"C=yellow; R,K,H=FF5555; D,E=5555FF",
- "showFullId":"false"} />
-</p>
+++ /dev/null
-<h2>Structure and Alignment</h2>
-<p>This demo shows how JalviewLite and Jmol can be integrated with the JalviewLite javascript library.</p>
-<center>
- <script>
- jmolApplet("500x500","zap; load FILE '1gaq.txt'; frame 0; select all; wireframe off; spacefill off; cartoons; restrict; center *; set selectionhalos true;select 0","jmolView");
- </script>
- <script>
- deployJava.runApplet(_jvA.attributes, _jvA.parameters, '1.4');
- </script>
-</center>
+++ /dev/null
-<script src="javascript/deployJava.js"></script>
-<script src="jmol/Jmol.js"></script>
-<script src="javascript/jquery-1.4.4.min.js"></script>
-<script src="javascript/jquery.timer.js"></script>
-<script src="javascript/jquery.blockUI.js"></script>
-<script src="javascript/jshashtable-2.1.js" language="javascript"></script>
-<!-- <script src="archive-min.js" language="javascript"></script>
--->
-<script src="javascript/jalview.js" language="javascript"></script>
-<script language="JavaScript">
-// instead of this, we use a custom JmolApplet spec
-// jmolInitialize('jmol');
-jmolInitialize("","${content.jmol}");
-function genHref()
-{
- var s1 = "ml:i@midd..", s2 = "atelcpoueau", s3 = "iomyob.neck", href="";
- for(i=0; i<11; i++)
- { href = href + s1.charAt(i) + s2.charAt(i) + s3.charAt(i);
- }
- window.location=href;
-}
-</script>
-<script>
- var loglevel=1;
- function dbg(lvl,string) {
- if (_console && lvl<=loglevel) {_console.value += string + "\n";}
- }
- var _lastTime=new Date();
- var _path;
- var _datazip;
- var _zip;
- var alignA;
- var alignB;
- var featuresA;
- var featuresB;
- var pairs;
- var atompairs;
- var structdata;
- var jmolview;
- var jvstructassoc;
- var modeltofiles = new Array();
-
- function lJvA() {
- jvfollower = document.getElementById("jvA");
- setConsole(document.getElementById("stdout"));
-
- sep = jvfollower.getSeparator();
- //jvapp.setSeparator(""+jvapp.getSeparator());
- linkJvJmol(jvfollower, "jmolView", modeltofiles);
- };
-
- var _jvA=new Object();
- _jvA.attributes = {
- code : 'jalview.bin.JalviewLite',
- archive : '${content.jvl}',
- width : '500',
- height : '350',
- mayscript : 'True',
- scriptable: 'True',
- id : 'jvA'
- };
- _jvA.parameters = {
- java_arguments : "-Xmx256m",
- externalstructureviewer : "true",
- oninit : "lJvA",
- automaticScrolling : "true",
-// <!-- defaultColour : "Strand Propensity", -->
- file : "uniref50_mz.fa",
-
- relaxedidmatch : "true",
- debug : "true",
- wrap : "false",
- // separator : "^",
- showAnnotation : "false",
- embedded : "true",
- showFullId : "false",
- RGB : "F2F2FF",
- linkLabel_1 : "EMBL-EBI Search",
- linkUrl_1 : "http://www.ebi.ac.uk/ebisearch/search.ebi?db=allebi&query=$SEQUENCE_ID$"
- ,
- linkLabel_2 : "Uniprot"
- ,
- linkUrl_2 : "http://www.uniprot.org/uniprot/$SEQUENCE_ID$",
- APPLICATION_URL : "http://www.jalview.org/services/launchApp",
- PDBfile : "1gaq.txt FER1_MAIZE",
- permissions : "sandbox"
- };
- jmolSetCallback("hoverCallback","_jmolhover");
- jmolSetCallback("pickCallback","_jmolpick");
- modeltofiles+="1gaq.txt";
-</script>
+++ /dev/null
-
-<p align="left">
-<h2>JalviewLite Button Examples</h2>
-Try out JalviewLite by pressing one of the buttons below.<br/>
- For more information on how to use the applet in your website, see the <a href="appletParameters.html"><strong>applet parameters</strong></a> and other documentation in the links to the left.</p>
-<p> </p><div align="center">
- <p align="center">
- <h2>Ferredoxins, chloroplast precursor related UniRef50
- cluster</h2>
- <br /> (15 sequences x 150 residues)
- </p>
- <table width="90%">
- <tr>
- <td width="10%" valign="center">
- <@jvlitebutton appjar="${content.jvl},${content.jmol}" params={ "permissions":"all-permissions" , "file":"uniref50.fa"
- , "treeFile":"ferredoxin.nw"
- , "userDefinedColour":"C=yellow; R,K,H=FF5555; D,E=5555FF"
- , "showFullId":"false"
- , "sortByTree":"True"
- , "showSequenceLogo":"true"
- , "showGroupConsensus":"true"} prots=true /></td>
- <td valign="center">User Defined Colours, loads an associated
- Newick format tree file which is used to sort the alignment, and
- group consensus and sequence logos are shown below the alignment.</td>
- </tr>
- <tr>
- <td width="10%" valign="center"><@jvlitebutton appjar="${content.jvl},${content.jmol}" params={ "permissions":"all-permissions",
- "file":"uniref50.fa"
- , "features":"exampleFeatures.txt"
- , "showFeatureSettings":"true"
- , "wrap":"true"
- , "showAnnotation":"false"
- , "windowHeight":"500"
- , "windowWidth":"650"
- , "showFullId":"false"}/></td>
- <td valign="center">Displays a features file on the alignment</td>
- </tr>
- <tr>
- <td width="10%" valign="center"><@jvlitebutton appjar="${content.jvl},${content.jmol}" params={ "permissions":"all-permissions"
- , "file":"uniref50.fa"
- , "defaultColour":"Strand Propensity"
- , "wrap":"true"
- , "showAnnotation":"false"
- , "windowHeight":"500"
- , "windowWidth":"650"
- , "showFullId":"false"
- , "PDBfile":"1gaq.txt FER1_MAIZE"} /></td>
- <td valign="center">Associates PDB file 1GAQ with sequence
- FER1_MAIZE</td>
- </tr>
- <tr>
- <td width="10%" valign="center"><@jvlitebutton appjar="${content.jvl},${content.jmol}" params={ "permissions":"all-permissions"
- , "file":"jpred_msa.fasta"
- , "jnetfile":"jpred_msa.seq.concise"
- , "defaultColour":"Clustal"
- , "showAnnotation":"true"
- , "windowHeight":"515"
- , "windowWidth":"650"
- , "showConservation":"false"
- , "showQuality":"false"
- , "showConsensus":"false"
- , "showFullId":"false"} />
- </td>
- <td valign="middle">Displays a Multiple Sequence Alignment
- Based JNet Prediction for a Sequence</td>
- </tr>
- </table>
- <p>
- <h2>RF00031 RFAM Alignment with per sequence secondary
- structure</h2>
- </p>
- <table width="90%">
- <tr>
- <td width="10%" valign="center"><@jvlitebutton appjar="${content.jvl},${content.jmol}" params={ "permissions":"all-permissions"
- , "file":"RF00031_folded.stk"
- , "defaultColour":"Purine/Pyrimidine"
- , "showAnnotation":"true"
- , "windowHeight":"515"
- , "windowWidth":"650"
- , "showConservation":"false"
- , "showQuality":"false"
- , "showConsensus":"true"
- , "showFullId":"false"} prots=false /></td>
- <td valign="center">Displays an RFAM RNA fold family with
- secondary structure annotation</td>
- </tr>
- </table>
- <p>
- <h2>Linked amino acid and cDNA alignments for homologous proteins</h2>
- </p>
- <table width="90%">
- <tr>
- <td width="10%" valign="center"><@jvlitebutton appjar="${content.jvl},${content.jmol}" params={ "permissions":"all-permissions"
- , "file":"estrogenReceptorCdna.fa"
- , "file2":"estrogenReceptorProtein.fa"
- , "defaultColour":"Purine/Pyrimidine"
- , "showAnnotation":"false"
- , "windowHeight":"300"
- , "windowWidth":"800"
- , "showFullId":"false"} prots=true /></td>
- <td valign="center">Displays a split window view of protein and its related cDNA</td>
- </tr>
- </table>
-</div>
+++ /dev/null
-<h2><a href="jalviewLiteJs.html">JalviewLite API</a> Demo</h2>
-<p>Using the Javascript API to fill out forms using data from JalviewLite
-<br/>Click the Javascript buttons below to interact with the Applet
-instance on the page.</p>
-View the source in your browser to see how it has been done. <br/>
-<a name="api">View the full <a href="jalviewLiteJs.html">JalviewLite API documentation</a>.</a>
-<applet code="jalview.bin.JalviewLite" width="0" height="0"
- archive="${content.jvl},${content.jmol}" name="Jalview">
- <#if content.permissions?exists><param name="permissions" value="${content.permissions}"/></#if>
- <param name="file" value="plantfdx.fa"/>
- <param name="features" value="plantfdx.features"/>
- <param name="wrap" value="true"/>
- <param name="showAnnotation" value="false"/>
- <param name="windowHeight" value="500"/>
- <param name="windowWidth" value="650"/>
- <param name="showFullId" value="false"/>
- <param name="linkLabel_1" value="Uniprot"/>
- <param name="linkUrl_1"
- value="http://www.uniprot.org/uniprot/$SEQUENCE_ID$"/>
- <param name="linkLabel_2" value="Expasy">
- <param name="linkUrl_2"
- value="http://us.expasy.org/cgi-bin/niceprot.pl?$SEQUENCE_ID$"/>
- <param name="hidefeaturegroups" value="uniprot" />
- <param name="showbutton" value="false" />
-</applet>
-<form name="exampleForm"><br/>
- <br/>
- <center><strong>Using the Jalview Applet for Input
- to an HTML Form</strong></center>
- <div align="center"><input type="button"
- onClick="document.forms.exampleForm.exampleTextarea.value=document.applets.Jalview.getAlignment('fasta', 'false')"
- value="Fill Form from Jalview" /> <br/>
- <br/>
- <textarea name="exampleTextarea" cols="55" rows="9"></textarea></div>
-</form>
-<center><strong>Make a new View and Get and Set
- Group Display List</strong></center>
-<form name="groupForm">
- <div align="center"><input type="button"
- onClick="document.forms.groupForm.groups.value=document.applets.Jalview.getFeatureGroups()"
- value="Get groups" /> <input type="button"
- onClick="document.applets.Jalview.newView()" value="new View" /> <br/>
- <textarea name="groups" cols="55" rows="9"></textarea> <br/>
- <input type="button"
- onClick="document.applets.Jalview.setFeatureGroupState(document.forms.groupForm.groups.value, true)"
- value="Display groups" /> <input type="button"
- onClick="document.applets.Jalview.setFeatureGroupState(document.forms.groupForm.groups.value, false)"
- value="Hide groups" /></div>
-</form>
-</div>
+++ /dev/null
- <SCRIPT type="text/javascript">
- /* <![CDATA[ // */
-// From http://snipplr.com/view.php?codeview&id=1272
-//----------------------------------------
-//Wrapper function for constructing a request object.
-// Parameters:
-// reqType: The HTTP request type, such as GET or POST.
-// url: The URL of the server program.
-// asynch: Whether to send the request asynchronously or not.
-//----------------------------------------
-
-function httpRequest(reqType,url,asynch,respHandle) {
-
- // Mozilla-based browsers
- if (window.XMLHttpRequest) {
- request = new XMLHttpRequest();
- } else if (window.ActiveXObject) {
- request = new ActiveXObject("Msxml2.XMLHTTP");
- if (!request) {
- request = new ActiveXObject("Microsoft.XMLHTTP");
- }
- }
-
- // Request could still be null if neither ActiveXObject
- // initialization succeeded
- if (request) {
- // If the reqType param is POST, then the fifth arg is the POSTed data
- if (reqType.toLowerCase() != "post") {
- initReq(reqType, url, asynch, respHandle);
- } else {
- // The POSTed data
- var args = arguments[5];
- if (args != null && args.length > 0) {
- initReq(reqType, url, asynch, respHandle, args);
- }
- }
- } else {
- alert("Your browser does not permit the use of all " +
- "of this application's features!");
- }
-
-}
-
-//----------------------------------------
-//Initialize a request object that is already constructed
-//----------------------------------------
-
-function initReq(reqType, url, bool, respHandle) {
- try {
- // Specify the function that will handle the HTTP response
- request.onreadystatechange = respHandle;
- request.open(reqType, url, bool);
- // If the reqType param is POST, then the
- // fifth argument to the function is the POSTed data
- if (reqType.toLowerCase() == "post") {
- // Set the Content-Type header for a POST request
- request.setRequestHeader("Content-Type", "application/x-ww-form-urlencoded; charset=UTF-8");
- request.send(arguments[4]);
- } else {
- request.send(null);
- }
- } catch (errv) {
- alert("The application cannot contact the server at the moment. " +
- "Please try again in a few seconds.\n" +
- "Error detail: " + errv.message);
- }
-}
-
-// jalview launching with fetched data
-
-function startJalview(aligURL,title,alwvar) {
- var aligment = "";
- httpRequest("get",aligURL,true,function() {
- if (request.readyState == 4) {
- alignment = request.responseText;
- eval("var "+alwvar+" = document.JalviewLite.loadAlignment(alignment,title)");
- }
- })
-
-}
-
-/* ]]> */
-</SCRIPT>
- <form name="Form1">
-<applet name="JalviewLite" code="jalview.bin.JalviewLite"
-archive="${content.jvl},${content.jmol}" width="0" height="0">
-<param name="debug" value="true"/>
-<param name="showbutton" value="false"/>
-<#if (content.permissions?exists)>
-<param name="permissions" value="${content.permissions}"/>
-</#if>
-</applet>
-
-<h2>Javascript Launch Button</h2><p>The button below demonstrates how JalviewLite can be launched via a javascript action.</p>
-
- <input type="button" name="Button1" value="Start"
-onClick="startJalview('plantfdx.fa','Button1.alignment','alwvar')"/>
- </form>
+++ /dev/null
-<script src="javascript/deployJava.js"></script>
-<script src="javascript/jshashtable-2.1.js" language="javascript"></script>
-<script src="javascript/jalview.js" language="javascript"></script>
-<script> //deployJava.debug="true";
-
- function lJvApp() {
- var jvapp = document.getElementById("jvapp");
- var jvfollower = document.getElementById("jvfollower");
- setConsole(document.getElementById("stdout"));
- //jvapp.setSeparator(""+jvapp.getSeparator());
- linkJvJmol(jvapp);
- };
-
- function lJvFollow() {
- var jvapp = document.getElementById("jvapp");
- var jvfollower = document.getElementById("jvfollower");
- //jvfollower.setSeparator(""+jvfollower.getSeparator());
- linkJvJmol(jvfollower);
- };
-</script>
- <h2>JalviewLite Linked Applets Demo</h2>
- <p>The two applets below use <a href="jalviewLiteJs.html">JalviewLite's javascript API</a> to exchange events about the currently selected region and mouse position in the alignment.
- </p>
- <script>
- var attributes = {
- code : 'jalview.bin.JalviewLite',
- archive : '${content.jvl},${content.jmol}',
- width : 800,
- height : 300,
- mayscript : 'True', scriptable: 'True',
- id : 'jvapp'
- };
- var parameters = {
- oninit : "lJvApp",
- automaticScrolling : "true",
- file : "plantfdx.fa",
- annotations : "plantfdx.annotations",
- debug : "true",
- wrap : "false",
- // separator : "^",
- showAnnotation : "true",
- embedded : "true",
- showFullId : "false",
- RGB : "F2F2FF",
- linkLabel_1 : "EMBL-EBI Search",
- linkUrl_1 : "http://www.ebi.ac.uk/ebisearch/search.ebi?db=allebi&query=$SEQUENCE_ID$"
- ,
- linkLabel_2 : "Uniprot"
- ,
- linkUrl_2 : "http://www.uniprot.org/uniprot/$SEQUENCE_ID$",
- permissions : 'sandbox',
- APPLICATION_URL : "http://www.jalview.org/services/launchApp"
- };
-
- deployJava.runApplet(attributes, parameters, '1.6');
-</script>
-<script>
- var attributes = {
- code : 'jalview.bin.JalviewLite',
- archive : '${content.jvl},${content.jmol}',
- width : 800,
- height : 300,
- mayscript : 'True', scriptable: 'True',
- id : "jvfollower"
- };
- var parameters = {
- oninit : "lJvFollow",
- file : "plantfdx.fa",
- annotations : "plantfdx.annotations",
- automaticScrolling : "true",
- debug : "true",
- wrap : "false",
- // separator : "^",
- showAnnotation : "true",
- embedded : "true",
- showFullId : "false",
- RGB : "F2F2FF",
- linkLabel_1 : "EMBL-EBI Search",
- linkUrl_1 : "http://www.ebi.ac.uk/ebisearch/search.ebi?db=allebi&query=$SEQUENCE_ID$"
- ,
- linkLabel_2 : "Uniprot"
- ,
- linkUrl_2 : "http://www.uniprot.org/uniprot/$SEQUENCE_ID$",
- permissions : 'sandbox',
- APPLICATION_URL : "http://www.jalview.org/services/launchApp"
- };
- deployJava.runApplet(attributes, parameters, '1.6');
-</script>
- <p>
-<!-- <a href="javascript:linkJvJmol()">Click Me If you don't see any messages below</a>
- <br>
- -->
-<form name="console" id="console">
-<textarea name="output"
- id="stdout" rows="20" cols="80">Messages will appear here.</textarea></form>
- <br>
-</p>
+++ /dev/null
-<#assign appparams = [ "file","features","jnetfile","treeFile","userDefinedColour","sortByTree","showSequenceLogo","showGroupConsensus","showFullId","linkLabel_1","linkUrl_1","linkUrl_2","linkLabel_2","windowHeight","windowWidth","showFeatureSettings","wrap","showAnnotation","defaultColour","embedded", "debug", "PDBfile" ] />
-
-
-<#macro jvlitebutton appjar params prots=true width=140 height=35>
-<applet
- code="jalview.bin.JalviewLite" width="${width}" height="${height}"
- archive="${appjar}">
-<#if (!content.alteg?exists)>
-<param name="permissions" value="sandbox"/>
-</#if>
-<#list appparams as p>
-<#if (params[p])?has_content><param name="${p}" value="${params[p]}"/>
-</#if></#list>
-<#if (prots)>
- <param name="linkLabel_1" value="Uniprot"/>
- <param name="linkUrl_1"
- value="http://www.uniprot.org/uniprot/$SEQUENCE_ID$"/>
- <param name="linkLabel_2" value="EMBL-EBI Search"/>
- <param name="linkUrl_2"
- value="http://www.ebi.ac.uk/ebisearch/search.ebi?db=allebi&query=$SEQUENCE_ID$"/>
-</#if>
- <param name="APPLICATION_URL"
- value="http://www.jalview.org/services/launchApp"/>
-</applet>
-</#macro>
+++ /dev/null
-
- <!-- Fixed navbar -->
- <div class="navbar navbar-fixed-top">
- <div class="navbar-inner">
- <div class="container">
- <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a class="brand" href="/">JBake</a>
- <div class="nav-collapse collapse">
- <ul class="nav">
- <li><a href="/index.html">Home</a></li>
- <li><a href="about.html">About</a></li>
- <li><a href="${config.feed_file}">Subscribe</a></li>
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="#">Action</a></li>
- <li><a href="#">Another action</a></li>
- <li><a href="#">Something else here</a></li>
- <li class="divider"></li>
- <li class="nav-header">Nav header</li>
- <li><a href="#">Separated link</a></li>
- <li><a href="#">One more separated link</a></li>
- </ul>
- </li>
- </ul>
- </div><!--/.nav-collapse -->
- </div>
- </div>
- </div>
- <div class="container">
\ No newline at end of file
+++ /dev/null
-<#include "header.ftl"/>
-<#include "macros.ftl"/>
-<#include "sidebar.ftl"/>
-<div id="content" class="content">
-
-<#if (content.class?exists) >
-
-<!-- boiler plate link to alternate demopage -->
-
-<div style="width: 100%">
-<div style="width:35%; align:left; float:right;">
-<div style="margin:8px; padding:8px; border: 2px solid black; align: center; float:center;">
-<#if (content.alteg?exists) >
- Scary Java warnings ?<br/>Try <a href="${content.uri?substring(3)}">the signed applet demos</a>
-<#else>
- Examples aren't working ?<br/>Try <a href="u_${content.uri?substring(1)}">the unsigned applet demos</a>
-</#if>
-</div>
-<div style="margin:8px; padding:10px; align: left;">
-<p>Quick Links to jars for example:<br/><a href="${content.jvl}">jalviewApplet.jar</a> and <a href="${content.jmol}">JmolApplet.jar</a>
-</p></div>
-</div>
-</div>
-
-<!-- content template start -->
- <#include content.class />
-<!-- content template end -->
-
-
-<#else>
-
-<!-- content start -->
-${content.body}
-<!-- content end -->
-
-</#if>
-
-</div> <!-- end content div -->
-
-<#include "footer.ftl"/>
+++ /dev/null
-<#include "header.ftl">
-
- <#include "menu.ftl">
-
- <div class="page-header">
- <h1>${content.title}</h1>
- </div>
-
- <p><em>${content.date?string("dd MMMM yyyy")}</em></p>
-
- <p>${content.body}</p>
-
- <hr>
-
-<#include "footer.ftl">
\ No newline at end of file
+++ /dev/null
-<#macro allpages highlight="jvlite-nav-small">
- <#list pages as page>
- <#if page.alteg?exists>
- <#else>
- <#if content.alteg?exists && page.jvl?exists>
- <#assign pref="u_"/>
- <#else>
- <#assign pref=""/>
- </#if>
- <#assign noclass=""/>
- <#if page.title==content.title>
- <#assign noclass="class=\"${highlight}\"">
- </#if>
- <#nested page>
- </#if>
- </#list>
-</#macro>
-
-<div id="sideNav">
- <ul>
- <@allpages; page>
- <#if (((page.level!"1")?number)<1) >
- <li ${noclass}><a href="${pref}${page.uri?substring(1)}">${page.title}</a></li>
- </#if>
- </@allpages>
- <@allpages; page>
- <#if (((page.level!"1")?number)>0) >
- <li ${noclass}><a href="${pref}${page.uri?substring(1)}">${page.title}</a></li>
- </#if>
- </@allpages>
- </ul>
-</div>
-
+++ /dev/null
-<html>
-<header><title>BioJS viewer</title></header>
-
-<body>
-
-<!-- include MSA js + css -->
-<!-- <script src="https://s3-eu-west-1.amazonaws.com/biojs/msa/latest/msa.js"></script> -->
-<!-- <link type=text/css rel=stylesheet href=https://s3-eu-west-1.amazonaws.com/biojs/msa/latest/msa.css /> -->
-
- <img src="http://www.jalview.org/help/html/Jalview_Logo.png" alt="Jalview Logo" title="This html page was generated from Jalview, to import the data back to Jalview, please drag the generated html file and drop it unto the Jalview workbench.
-
- Alternatively, you could copy the url from the address bar and use Jalview's url importer (main menu-> File-> Input Alignment-> from URL) to import back the alignment jalview." >
-
-</br>
-</br>
-
-<input type="button" name="divToggleButton" id="divToggleButton" onclick="javascipt:toggleMenuVisibility();" value="Show Menu"></input>
-<button onclick="javascipt:openJalviewUsingCurrentUrl();">Launch in Jalview</button>
-
-</br>
-</br>
-
-<div id="yourDiv">press "Run with JS"</div>
-<input type='hidden' id='seqData' name='seqData' value='#sequenceData#'/>
-
-</body>
-</html>
-
-
-
-<script>
-
-function toggleMenuVisibility(){
- var menu = document.getElementsByClassName("biojs_msa_menubar");
- var divToggleButton = document.getElementById("divToggleButton");
- if(menu[0].style.display == 'block'){
- menu[0].style.display = 'none';
- divToggleButton.value="Show Menu";
- }else{
- menu[0].style.display = 'block';
- divToggleButton.value="Hide Menu";
- }
-}
-
-
-function openJalviewUsingCurrentUrl(){
- var json = JSON.parse(document.getElementById("seqData").value)
- var jalviewVersion = json['jalviewSettings'].jalviewVersion;
- var url = json['jalviewSettings'].webStartUrl;
- var myForm = document.createElement("form");
- myForm.action = url;
-
- var heap = document.createElement("input") ;
- heap.setAttribute("name", "jvm-max-heap") ;
- heap.setAttribute("value", "2G");
- myForm.appendChild(heap) ;
-
- var target = document.createElement("input") ;
- target.setAttribute("name", "open") ;
- target.setAttribute("value", document.URL);
- myForm.appendChild(target) ;
-
- var jvVersion = document.createElement("input") ;
- jvVersion.setAttribute("name", "version") ;
- jvVersion.setAttribute("value", jalviewVersion);
- myForm.appendChild(jvVersion) ;
-
-
- document.body.appendChild(myForm) ;
- myForm.submit() ;
- document.body.removeChild(myForm) ;
-}
-
-
-require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
-var css = ".biojs_msa_stage {\n cursor: default;\n line-height: normal; }\n\n.biojs_msa_labels {\n color: black;\n display: inline-block;\n white-space: nowrap;\n cursor: pointer;\n vertical-align: top; }\n\n.biojs_msa_seqblock {\n cursor: move; }\n\n.biojs_msa_layer {\n display: block;\n white-space: nowrap; }\n\n.biojs_msa_labelblock::-webkit-scrollbar, .biojs_msa_header::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 7px;\n height: 7px; }\n\n.biojs_msa_labelblock::-webkit-scrollbar-thumb, .biojs_msa_header::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0, 0, 0, 0.5);\n box-shadow: 0 0 1px rgba(255, 255, 255, 0.5); }\n\n.biojs_msa_marker {\n color: grey;\n white-space: nowrap;\n cursor: pointer; }\n\n.biojs_msa_marker span {\n text-align: center; }\n\n.biojs_msa_menubar .biojs_msa_menubar_alink {\n background: #3498db;\n background-image: -webkit-linear-gradient(top, #3498db, #2980b9);\n background-image: -moz-linear-gradient(top, #3498db, #2980b9);\n background-image: -ms-linear-gradient(top, #3498db, #2980b9);\n background-image: -o-linear-gradient(top, #3498db, #2980b9);\n background-image: linear-gradient(to bottom, #3498db, #2980b9);\n -webkit-border-radius: 28;\n -moz-border-radius: 28;\n border-radius: 28px;\n font-family: Arial;\n color: #ffffff;\n padding: 3px 10px 3px 10px;\n margin-left: 10px;\n text-decoration: none; }\n\n.biojs_msa_menubar .biojs_msa_menubar_alink:hover {\n cursor: pointer; }\n\n/* jquery dropdown CSS */\n.dropdown {\n position: absolute;\n z-index: 9999999;\n display: none; }\n\n.dropdown .dropdown-menu,\n.dropdown .dropdown-panel {\n min-width: 160px;\n max-width: 360px;\n list-style: none;\n background: #FFF;\n border: solid 1px #DDD;\n border: solid 1px rgba(0, 0, 0, 0.2);\n border-radius: 6px;\n box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n overflow: visible;\n padding: 4px 0;\n margin: 0; }\n\n.dropdown .dropdown-panel {\n padding: 10px; }\n\n.dropdown.dropdown-scroll .dropdown-menu,\n.dropdown.dropdown-scroll .dropdown-panel {\n max-height: 358px;\n overflow: auto; }\n\n.dropdown .dropdown-menu LI {\n list-style: none;\n padding: 0 0;\n margin: 0;\n line-height: 18px; }\n\n.dropdown .dropdown-menu LI,\n.dropdown .dropdown-menu LABEL {\n display: block;\n color: #555;\n text-decoration: none;\n line-height: 18px;\n padding: 3px 15px;\n white-space: nowrap; }\n\n.dropdown .dropdown-menu LI:hover,\n.dropdown .dropdown-menu LABEL:hover {\n background-color: #08C;\n color: #FFF;\n cursor: pointer; }\n\n.dropdown .dropdown-menu .dropdown-divider {\n font-size: 1px;\n border-top: solid 1px #E5E5E5;\n padding: 0;\n margin: 5px 0; }\n"; (require("/home/travis/build/greenify/biojs-vis-msa/node_modules/cssify"))(css); module.exports = css;
-},{"/home/travis/build/greenify/biojs-vis-msa/node_modules/cssify":48}],2:[function(require,module,exports){
-module.exports = require("./src/index");
-
-},{"./src/index":72}],3:[function(require,module,exports){
-var _ = require('underscore');
-var viewType = require("backbone-viewj");
-var pluginator;
-
-module.exports = pluginator = viewType.extend({
- renderSubviews: function() {
- var oldEl = this.el;
- var el = document.createElement("div");
- this.setElement(el);
- var frag = document.createDocumentFragment();
- if (oldEl.parentNode != null) {
- oldEl.parentNode.replaceChild(this.el, oldEl);
- }
- var views = this._views();
- var viewsSorted = _.sortBy(views, function(el) {
- return el.ordering;
- });
- var view, node;
- for (var i = 0; i < viewsSorted.length; i++) {
- view = viewsSorted[i];
- view.render();
- node = view.el;
- if (node != null) {
- frag.appendChild(node);
- }
- }
- el.appendChild(frag);
- return el;
- },
- addView: function(key, view) {
- var views = this._views();
- if (view == null) {
- throw "Invalid plugin. ";
- }
- if (view.ordering == null) {
- view.ordering = key;
- }
- return views[key] = view;
- },
- removeViews: function() {
- var el, key;
- var views = this._views();
- for (key in views) {
- el = views[key];
- el.undelegateEvents();
- el.unbind();
- if (el.removeViews != null) {
- el.removeViews();
- }
- el.remove();
- }
- return this.views = {};
- },
- removeView: function(key) {
- var views = this._views();
- views[key].remove();
- return delete views[key];
- },
- getView: function(key) {
- var views = this._views();
- return views[key];
- },
- remove: function() {
- this.removeViews();
- return viewType.prototype.remove.apply(this);
- },
- _views: function() {
- if (this.views == null) {
- this.views = {};
- }
- return this.views;
- }
-});
-
-},{"backbone-viewj":10,"underscore":59}],4:[function(require,module,exports){
-// Backbone.js 1.1.2
-
-// (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
-// Backbone may be freely distributed under the MIT license.
-// For all details and documentation:
-// http://backbonejs.org
-
-var Events = require("backbone-events-standalone");
-var extend = require("backbone-extend-standalone");
-var _ = require("underscore");
-var Model = require("./model");
-
-// Create local references to array methods we'll want to use later.
-var array = [];
-var slice = array.slice;
-
-// Backbone.Collection
-// -------------------
-
-// If models tend to represent a single row of data, a Backbone Collection is
-// more analogous to a table full of data ... or a small slice or page of that
-// table, or a collection of rows that belong together for a particular reason
-// -- all of the messages in this particular folder, all of the documents
-// belonging to this particular author, and so on. Collections maintain
-// indexes of their models, both in order, and for lookup by `id`.
-
-// Create a new **Collection**, perhaps to contain a specific type of `model`.
-// If a `comparator` is specified, the Collection will maintain
-// its models in sort order, as they're added and removed.
-var Collection = function(models, options) {
- options || (options = {});
- if (options.model) this.model = options.model;
- if (options.comparator !== void 0) this.comparator = options.comparator;
- this._reset();
- this.initialize.apply(this, arguments);
- if (models) this.reset(models, _.extend({silent: true}, options));
-};
-
-// Default options for `Collection#set`.
-var setOptions = {add: true, remove: true, merge: true};
-var addOptions = {add: true, remove: false};
-
-// Define the Collection's inheritable methods.
-_.extend(Collection.prototype, Events, {
-
- // The default model for a collection is just a **Backbone.Model**.
- // This should be overridden in most cases.
- model: Model,
-
- // Initialize is an empty function by default. Override it with your own
- // initialization logic.
- initialize: function(){},
-
- // The JSON representation of a Collection is an array of the
- // models' attributes.
- toJSON: function(options) {
- return this.map(function(model){ return model.toJSON(options); });
- },
-
- // Proxy `Backbone.sync` by default.
- sync: function() {
- return Backbone.sync.apply(this, arguments);
- },
-
- // Add a model, or list of models to the set.
- add: function(models, options) {
- return this.set(models, _.extend({merge: false}, options, addOptions));
- },
-
- // Remove a model, or a list of models from the set.
- remove: function(models, options) {
- var singular = !_.isArray(models);
- models = singular ? [models] : _.clone(models);
- options || (options = {});
- for (var i = 0, length = models.length; i < length; i++) {
- var model = models[i] = this.get(models[i]);
- if (!model) continue;
- var id = this.modelId(model.attributes);
- if (id != null) delete this._byId[id];
- delete this._byId[model.cid];
- var index = this.indexOf(model);
- this.models.splice(index, 1);
- this.length--;
- if (!options.silent) {
- options.index = index;
- model.trigger('remove', model, this, options);
- }
- this._removeReference(model, options);
- }
- return singular ? models[0] : models;
- },
-
- // Update a collection by `set`-ing a new list of models, adding new ones,
- // removing models that are no longer present, and merging models that
- // already exist in the collection, as necessary. Similar to **Model#set**,
- // the core operation for updating the data contained by the collection.
- set: function(models, options) {
- options = _.defaults({}, options, setOptions);
- if (options.parse) models = this.parse(models, options);
- var singular = !_.isArray(models);
- models = singular ? (models ? [models] : []) : models.slice();
- var id, model, attrs, existing, sort;
- var at = options.at;
- var sortable = this.comparator && (at == null) && options.sort !== false;
- var sortAttr = _.isString(this.comparator) ? this.comparator : null;
- var toAdd = [], toRemove = [], modelMap = {};
- var add = options.add, merge = options.merge, remove = options.remove;
- var order = !sortable && add && remove ? [] : false;
-
- // Turn bare objects into model references, and prevent invalid models
- // from being added.
- for (var i = 0, length = models.length; i < length; i++) {
- attrs = models[i];
-
- // If a duplicate is found, prevent it from being added and
- // optionally merge it into the existing model.
- if (existing = this.get(attrs)) {
- if (remove) modelMap[existing.cid] = true;
- if (merge && attrs !== existing) {
- attrs = this._isModel(attrs) ? attrs.attributes : attrs;
- if (options.parse) attrs = existing.parse(attrs, options);
- existing.set(attrs, options);
- if (sortable && !sort && existing.hasChanged(sortAttr)) sort = true;
- }
- models[i] = existing;
-
- // If this is a new, valid model, push it to the `toAdd` list.
- } else if (add) {
- model = models[i] = this._prepareModel(attrs, options);
- if (!model) continue;
- toAdd.push(model);
- this._addReference(model, options);
- }
-
- // Do not add multiple models with the same `id`.
- model = existing || model;
- if (!model) continue;
- id = this.modelId(model.attributes);
- if (order && (model.isNew() || !modelMap[id])) order.push(model);
- modelMap[id] = true;
- }
-
- // Remove nonexistent models if appropriate.
- if (remove) {
- for (var i = 0, length = this.length; i < length; i++) {
- if (!modelMap[(model = this.models[i]).cid]) toRemove.push(model);
- }
- if (toRemove.length) this.remove(toRemove, options);
- }
-
- // See if sorting is needed, update `length` and splice in new models.
- if (toAdd.length || (order && order.length)) {
- if (sortable) sort = true;
- this.length += toAdd.length;
- if (at != null) {
- for (var i = 0, length = toAdd.length; i < length; i++) {
- this.models.splice(at + i, 0, toAdd[i]);
- }
- } else {
- if (order) this.models.length = 0;
- var orderedModels = order || toAdd;
- for (var i = 0, length = orderedModels.length; i < length; i++) {
- this.models.push(orderedModels[i]);
- }
- }
- }
-
- // Silently sort the collection if appropriate.
- if (sort) this.sort({silent: true});
-
- // Unless silenced, it's time to fire all appropriate add/sort events.
- if (!options.silent) {
- var addOpts = at != null ? _.clone(options) : options;
- for (var i = 0, length = toAdd.length; i < length; i++) {
- if (at != null) addOpts.index = at + i;
- (model = toAdd[i]).trigger('add', model, this, addOpts);
- }
- if (sort || (order && order.length)) this.trigger('sort', this, options);
- }
-
- // Return the added (or merged) model (or models).
- return singular ? models[0] : models;
- },
-
- // When you have more items than you want to add or remove individually,
- // you can reset the entire set with a new list of models, without firing
- // any granular `add` or `remove` events. Fires `reset` when finished.
- // Useful for bulk operations and optimizations.
- reset: function(models, options) {
- options || (options = {});
- for (var i = 0, length = this.models.length; i < length; i++) {
- this._removeReference(this.models[i], options);
- }
- options.previousModels = this.models;
- this._reset();
- models = this.add(models, _.extend({silent: true}, options));
- if (!options.silent) this.trigger('reset', this, options);
- return models;
- },
-
- // Add a model to the end of the collection.
- push: function(model, options) {
- return this.add(model, _.extend({at: this.length}, options));
- },
-
- // Remove a model from the end of the collection.
- pop: function(options) {
- var model = this.at(this.length - 1);
- this.remove(model, options);
- return model;
- },
-
- // Add a model to the beginning of the collection.
- unshift: function(model, options) {
- return this.add(model, _.extend({at: 0}, options));
- },
-
- // Remove a model from the beginning of the collection.
- shift: function(options) {
- var model = this.at(0);
- this.remove(model, options);
- return model;
- },
-
- // Slice out a sub-array of models from the collection.
- slice: function() {
- return slice.apply(this.models, arguments);
- },
-
- // Get a model from the set by id.
- get: function(obj) {
- if (obj == null) return void 0;
- var id = this.modelId(this._isModel(obj) ? obj.attributes : obj);
- return this._byId[obj] || this._byId[id] || this._byId[obj.cid];
- },
-
- // Get the model at the given index.
- at: function(index) {
- if (index < 0) index += this.length;
- return this.models[index];
- },
-
- // Return models with matching attributes. Useful for simple cases of
- // `filter`.
- where: function(attrs, first) {
- if (_.isEmpty(attrs)) return first ? void 0 : [];
- return this[first ? 'find' : 'filter'](function(model) {
- for (var key in attrs) {
- if (attrs[key] !== model.get(key)) return false;
- }
- return true;
- });
- },
-
- // Return the first model with matching attributes. Useful for simple cases
- // of `find`.
- findWhere: function(attrs) {
- return this.where(attrs, true);
- },
-
- // Force the collection to re-sort itself. You don't need to call this under
- // normal circumstances, as the set will maintain sort order as each item
- // is added.
- sort: function(options) {
- if (!this.comparator) throw new Error('Cannot sort a set without a comparator');
- options || (options = {});
-
- // Run sort based on type of `comparator`.
- if (_.isString(this.comparator) || this.comparator.length === 1) {
- this.models = this.sortBy(this.comparator, this);
- } else {
- this.models.sort(_.bind(this.comparator, this));
- }
-
- if (!options.silent) this.trigger('sort', this, options);
- return this;
- },
-
- // Pluck an attribute from each model in the collection.
- pluck: function(attr) {
- return _.invoke(this.models, 'get', attr);
- },
-
- // Fetch the default set of models for this collection, resetting the
- // collection when they arrive. If `reset: true` is passed, the response
- // data will be passed through the `reset` method instead of `set`.
- fetch: function(options) {
- options = options ? _.clone(options) : {};
- if (options.parse === void 0) options.parse = true;
- var success = options.success;
- var collection = this;
- options.success = function(resp) {
- var method = options.reset ? 'reset' : 'set';
- collection[method](resp, options);
- if (success) success(collection, resp, options);
- collection.trigger('sync', collection, resp, options);
- };
- wrapError(this, options);
- return this.sync('read', this, options);
- },
-
- // Create a new instance of a model in this collection. Add the model to the
- // collection immediately, unless `wait: true` is passed, in which case we
- // wait for the server to agree.
- create: function(model, options) {
- options = options ? _.clone(options) : {};
- if (!(model = this._prepareModel(model, options))) return false;
- if (!options.wait) this.add(model, options);
- var collection = this;
- var success = options.success;
- options.success = function(model, resp) {
- if (options.wait) collection.add(model, options);
- if (success) success(model, resp, options);
- };
- model.save(null, options);
- return model;
- },
-
- // **parse** converts a response into a list of models to be added to the
- // collection. The default implementation is just to pass it through.
- parse: function(resp, options) {
- return resp;
- },
-
- // Create a new collection with an identical list of models as this one.
- clone: function() {
- return new this.constructor(this.models, {
- model: this.model,
- comparator: this.comparator
- });
- },
-
- // Define how to uniquely identify models in the collection.
- modelId: function (attrs) {
- return attrs[this.model.prototype.idAttribute || 'id'];
- },
-
- // Private method to reset all internal state. Called when the collection
- // is first initialized or reset.
- _reset: function() {
- this.length = 0;
- this.models = [];
- this._byId = {};
- },
-
- // Prepare a hash of attributes (or other model) to be added to this
- // collection.
- _prepareModel: function(attrs, options) {
- if (this._isModel(attrs)) {
- if (!attrs.collection) attrs.collection = this;
- return attrs;
- }
- options = options ? _.clone(options) : {};
- options.collection = this;
- var model = new this.model(attrs, options);
- if (!model.validationError) return model;
- this.trigger('invalid', this, model.validationError, options);
- return false;
- },
-
- // Method for checking whether an object should be considered a model for
- // the purposes of adding to the collection.
- _isModel: function (model) {
- return model instanceof Model;
- },
-
- // Internal method to create a model's ties to a collection.
- _addReference: function(model, options) {
- this._byId[model.cid] = model;
- var id = this.modelId(model.attributes);
- if (id != null) this._byId[id] = model;
- model.on('all', this._onModelEvent, this);
- },
-
- // Internal method to sever a model's ties to a collection.
- _removeReference: function(model, options) {
- if (this === model.collection) delete model.collection;
- model.off('all', this._onModelEvent, this);
- },
-
- // Internal method called every time a model in the set fires an event.
- // Sets need to update their indexes when models change ids. All other
- // events simply proxy through. "add" and "remove" events that originate
- // in other collections are ignored.
- _onModelEvent: function(event, model, collection, options) {
- if ((event === 'add' || event === 'remove') && collection !== this) return;
- if (event === 'destroy') this.remove(model, options);
- if (event === 'change') {
- var prevId = this.modelId(model.previousAttributes());
- var id = this.modelId(model.attributes);
- if (prevId !== id) {
- if (prevId != null) delete this._byId[prevId];
- if (id != null) this._byId[id] = model;
- }
- }
- this.trigger.apply(this, arguments);
- }
-
-});
-
-// Underscore methods that we want to implement on the Collection.
-// 90% of the core usefulness of Backbone Collections is actually implemented
-// right here:
-var methods = ['forEach', 'each', 'map', 'collect', 'reduce', 'foldl',
- 'inject', 'reduceRight', 'foldr', 'find', 'detect', 'filter', 'select',
- 'reject', 'every', 'all', 'some', 'any', 'include', 'contains', 'invoke',
- 'max', 'min', 'toArray', 'size', 'first', 'head', 'take', 'initial', 'rest',
- 'tail', 'drop', 'last', 'without', 'difference', 'indexOf', 'shuffle',
- 'lastIndexOf', 'isEmpty', 'chain', 'sample', 'partition'];
-
-// Mix in each Underscore method as a proxy to `Collection#models`.
-_.each(methods, function(method) {
- if (!_[method]) return;
- Collection.prototype[method] = function() {
- var args = slice.call(arguments);
- args.unshift(this.models);
- return _[method].apply(_, args);
- };
-});
-
-// Underscore methods that take a property name as an argument.
-var attributeMethods = ['groupBy', 'countBy', 'sortBy', 'indexBy'];
-
-// Use attributes instead of properties.
-_.each(attributeMethods, function(method) {
- if (!_[method]) return;
- Collection.prototype[method] = function(value, context) {
- var iterator = _.isFunction(value) ? value : function(model) {
- return model.get(value);
- };
- return _[method](this.models, iterator, context);
- };
-});
-
-// setup inheritance
-Collection.extend = extend;
-module.exports = Collection;
-
-},{"./model":6,"backbone-events-standalone":8,"backbone-extend-standalone":9,"underscore":59}],5:[function(require,module,exports){
-module.exports.Model = require("./model");
-module.exports.Collection = require("./collection");
-module.exports.Events = require("backbone-events-standalone");
-module.exports.extend = require("backbone-extend-standalone");
-
-},{"./collection":4,"./model":6,"backbone-events-standalone":8,"backbone-extend-standalone":9}],6:[function(require,module,exports){
-// Backbone.js 1.1.2
-
-// (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
-// Backbone may be freely distributed under the MIT license.
-// For all details and documentation:
-// http://backbonejs.org
-
-var Events = require("backbone-events-standalone");
-var extend = require("backbone-extend-standalone");
-var _ = require("underscore");
-
-// Backbone.Model
-// --------------
-
-// Backbone **Models** are the basic data object in the framework --
-// frequently representing a row in a table in a database on your server.
-// A discrete chunk of data and a bunch of useful, related methods for
-// performing computations and transformations on that data.
-
-// Create a new model with the specified attributes. A client id (`cid`)
-// is automatically generated and assigned for you.
-var Model = function(attributes, options) {
- var attrs = attributes || {};
- options || (options = {});
- this.cid = _.uniqueId('c');
- this.attributes = {};
- if (options.collection) this.collection = options.collection;
- if (options.parse) attrs = this.parse(attrs, options) || {};
- attrs = _.defaults({}, attrs, _.result(this, 'defaults'));
- this.set(attrs, options);
- this.changed = {};
- this.initialize.apply(this, arguments);
-};
-
-// Attach all inheritable methods to the Model prototype.
-_.extend(Model.prototype, Events, {
-
- // A hash of attributes whose current and previous value differ.
- changed: null,
-
- // The value returned during the last failed validation.
- validationError: null,
-
- // The default name for the JSON `id` attribute is `"id"`. MongoDB and
- // CouchDB users may want to set this to `"_id"`.
- idAttribute: 'id',
-
- // Initialize is an empty function by default. Override it with your own
- // initialization logic.
- initialize: function(){},
-
- // Return a copy of the model's `attributes` object.
- toJSON: function(options) {
- return _.clone(this.attributes);
- },
-
- // Proxy `Backbone.sync` by default -- but override this if you need
- // custom syncing semantics for *this* particular model.
- sync: function() {
- return Backbone.sync.apply(this, arguments);
- },
-
- // Get the value of an attribute.
- get: function(attr) {
- return this.attributes[attr];
- },
-
- // Get the HTML-escaped value of an attribute.
- escape: function(attr) {
- return _.escape(this.get(attr));
- },
-
- // Returns `true` if the attribute contains a value that is not null
- // or undefined.
- has: function(attr) {
- return this.get(attr) != null;
- },
-
- // Set a hash of model attributes on the object, firing `"change"`. This is
- // the core primitive operation of a model, updating the data and notifying
- // anyone who needs to know about the change in state. The heart of the beast.
- set: function(key, val, options) {
- var attr, attrs, unset, changes, silent, changing, prev, current;
- if (key == null) return this;
-
- // Handle both `"key", value` and `{key: value}` -style arguments.
- if (typeof key === 'object') {
- attrs = key;
- options = val;
- } else {
- (attrs = {})[key] = val;
- }
-
- options || (options = {});
-
- // Run validation.
- if (!this._validate(attrs, options)) return false;
-
- // Extract attributes and options.
- unset = options.unset;
- silent = options.silent;
- changes = [];
- changing = this._changing;
- this._changing = true;
-
- if (!changing) {
- this._previousAttributes = _.clone(this.attributes);
- this.changed = {};
- }
- current = this.attributes, prev = this._previousAttributes;
-
- // Check for changes of `id`.
- if (this.idAttribute in attrs) this.id = attrs[this.idAttribute];
-
- // For each `set` attribute, update or delete the current value.
- for (attr in attrs) {
- val = attrs[attr];
- if (!_.isEqual(current[attr], val)) changes.push(attr);
- if (!_.isEqual(prev[attr], val)) {
- this.changed[attr] = val;
- } else {
- delete this.changed[attr];
- }
- unset ? delete current[attr] : current[attr] = val;
- }
-
- // Trigger all relevant attribute changes.
- if (!silent) {
- if (changes.length) this._pending = options;
- for (var i = 0, length = changes.length; i < length; i++) {
- this.trigger('change:' + changes[i], this, current[changes[i]], options);
- }
- }
-
- // You might be wondering why there's a `while` loop here. Changes can
- // be recursively nested within `"change"` events.
- if (changing) return this;
- if (!silent) {
- while (this._pending) {
- options = this._pending;
- this._pending = false;
- this.trigger('change', this, options);
- }
- }
- this._pending = false;
- this._changing = false;
- return this;
- },
-
- // Remove an attribute from the model, firing `"change"`. `unset` is a noop
- // if the attribute doesn't exist.
- unset: function(attr, options) {
- return this.set(attr, void 0, _.extend({}, options, {unset: true}));
- },
-
- // Clear all attributes on the model, firing `"change"`.
- clear: function(options) {
- var attrs = {};
- for (var key in this.attributes) attrs[key] = void 0;
- return this.set(attrs, _.extend({}, options, {unset: true}));
- },
-
- // Determine if the model has changed since the last `"change"` event.
- // If you specify an attribute name, determine if that attribute has changed.
- hasChanged: function(attr) {
- if (attr == null) return !_.isEmpty(this.changed);
- return _.has(this.changed, attr);
- },
-
- // Return an object containing all the attributes that have changed, or
- // false if there are no changed attributes. Useful for determining what
- // parts of a view need to be updated and/or what attributes need to be
- // persisted to the server. Unset attributes will be set to undefined.
- // You can also pass an attributes object to diff against the model,
- // determining if there *would be* a change.
- changedAttributes: function(diff) {
- if (!diff) return this.hasChanged() ? _.clone(this.changed) : false;
- var val, changed = false;
- var old = this._changing ? this._previousAttributes : this.attributes;
- for (var attr in diff) {
- if (_.isEqual(old[attr], (val = diff[attr]))) continue;
- (changed || (changed = {}))[attr] = val;
- }
- return changed;
- },
-
- // Get the previous value of an attribute, recorded at the time the last
- // `"change"` event was fired.
- previous: function(attr) {
- if (attr == null || !this._previousAttributes) return null;
- return this._previousAttributes[attr];
- },
-
- // Get all of the attributes of the model at the time of the previous
- // `"change"` event.
- previousAttributes: function() {
- return _.clone(this._previousAttributes);
- },
-
- // Fetch the model from the server. If the server's representation of the
- // model differs from its current attributes, they will be overridden,
- // triggering a `"change"` event.
- fetch: function(options) {
- options = options ? _.clone(options) : {};
- if (options.parse === void 0) options.parse = true;
- var model = this;
- var success = options.success;
- options.success = function(resp) {
- if (!model.set(model.parse(resp, options), options)) return false;
- if (success) success(model, resp, options);
- model.trigger('sync', model, resp, options);
- };
- wrapError(this, options);
- return this.sync('read', this, options);
- },
-
- // Set a hash of model attributes, and sync the model to the server.
- // If the server returns an attributes hash that differs, the model's
- // state will be `set` again.
- save: function(key, val, options) {
- var attrs, method, xhr, attributes = this.attributes;
-
- // Handle both `"key", value` and `{key: value}` -style arguments.
- if (key == null || typeof key === 'object') {
- attrs = key;
- options = val;
- } else {
- (attrs = {})[key] = val;
- }
-
- options = _.extend({validate: true}, options);
-
- // If we're not waiting and attributes exist, save acts as
- // `set(attr).save(null, opts)` with validation. Otherwise, check if
- // the model will be valid when the attributes, if any, are set.
- if (attrs && !options.wait) {
- if (!this.set(attrs, options)) return false;
- } else {
- if (!this._validate(attrs, options)) return false;
- }
-
- // Set temporary attributes if `{wait: true}`.
- if (attrs && options.wait) {
- this.attributes = _.extend({}, attributes, attrs);
- }
-
- // After a successful server-side save, the client is (optionally)
- // updated with the server-side state.
- if (options.parse === void 0) options.parse = true;
- var model = this;
- var success = options.success;
- options.success = function(resp) {
- // Ensure attributes are restored during synchronous saves.
- model.attributes = attributes;
- var serverAttrs = model.parse(resp, options);
- if (options.wait) serverAttrs = _.extend(attrs || {}, serverAttrs);
- if (_.isObject(serverAttrs) && !model.set(serverAttrs, options)) {
- return false;
- }
- if (success) success(model, resp, options);
- model.trigger('sync', model, resp, options);
- };
- wrapError(this, options);
-
- method = this.isNew() ? 'create' : (options.patch ? 'patch' : 'update');
- if (method === 'patch' && !options.attrs) options.attrs = attrs;
- xhr = this.sync(method, this, options);
-
- // Restore attributes.
- if (attrs && options.wait) this.attributes = attributes;
-
- return xhr;
- },
-
- // Destroy this model on the server if it was already persisted.
- // Optimistically removes the model from its collection, if it has one.
- // If `wait: true` is passed, waits for the server to respond before removal.
- destroy: function(options) {
- options = options ? _.clone(options) : {};
- var model = this;
- var success = options.success;
-
- var destroy = function() {
- model.stopListening();
- model.trigger('destroy', model, model.collection, options);
- };
-
- options.success = function(resp) {
- if (options.wait || model.isNew()) destroy();
- if (success) success(model, resp, options);
- if (!model.isNew()) model.trigger('sync', model, resp, options);
- };
-
- if (this.isNew()) {
- options.success();
- return false;
- }
- wrapError(this, options);
-
- var xhr = this.sync('delete', this, options);
- if (!options.wait) destroy();
- return xhr;
- },
-
- // Default URL for the model's representation on the server -- if you're
- // using Backbone's restful methods, override this to change the endpoint
- // that will be called.
- url: function() {
- var base =
- _.result(this, 'urlRoot') ||
- _.result(this.collection, 'url') ||
- urlError();
- if (this.isNew()) return base;
- return base.replace(/([^\/])$/, '$1/') + encodeURIComponent(this.id);
- },
-
- // **parse** converts a response into the hash of attributes to be `set` on
- // the model. The default implementation is just to pass the response along.
- parse: function(resp, options) {
- return resp;
- },
-
- // Create a new model with identical attributes to this one.
- clone: function() {
- return new this.constructor(this.attributes);
- },
-
- // A model is new if it has never been saved to the server, and lacks an id.
- isNew: function() {
- return !this.has(this.idAttribute);
- },
-
- // Check if the model is currently in a valid state.
- isValid: function(options) {
- return this._validate({}, _.extend(options || {}, { validate: true }));
- },
-
- // Run validation against the next complete set of model attributes,
- // returning `true` if all is well. Otherwise, fire an `"invalid"` event.
- _validate: function(attrs, options) {
- if (!options.validate || !this.validate) return true;
- attrs = _.extend({}, this.attributes, attrs);
- var error = this.validationError = this.validate(attrs, options) || null;
- if (!error) return true;
- this.trigger('invalid', this, error, _.extend(options, {validationError: error}));
- return false;
- }
-
-});
-
-// Underscore methods that we want to implement on the Model.
-var modelMethods = ['keys', 'values', 'pairs', 'invert', 'pick', 'omit', 'chain', 'isEmpty'];
-
-// Mix in each Underscore method as a proxy to `Model#attributes`.
-_.each(modelMethods, function(method) {
- if (!_[method]) return;
- Model.prototype[method] = function() {
- var args = slice.call(arguments);
- args.unshift(this.attributes);
- return _[method].apply(_, args);
- };
-});
-
-// setup inheritance
-Model.extend = extend;
-module.exports = Model;
-
-},{"backbone-events-standalone":8,"backbone-extend-standalone":9,"underscore":59}],7:[function(require,module,exports){
-/**
- * Standalone extraction of Backbone.Events, no external dependency required.
- * Degrades nicely when Backone/underscore are already available in the current
- * global context.
- *
- * Note that docs suggest to use underscore's `_.extend()` method to add Events
- * support to some given object. A `mixin()` method has been added to the Events
- * prototype to avoid using underscore for that sole purpose:
- *
- * var myEventEmitter = BackboneEvents.mixin({});
- *
- * Or for a function constructor:
- *
- * function MyConstructor(){}
- * MyConstructor.prototype.foo = function(){}
- * BackboneEvents.mixin(MyConstructor.prototype);
- *
- * (c) 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
- * (c) 2013 Nicolas Perriault
- */
-/* global exports:true, define, module */
-(function() {
- var root = this,
- breaker = {},
- nativeForEach = Array.prototype.forEach,
- hasOwnProperty = Object.prototype.hasOwnProperty,
- slice = Array.prototype.slice,
- idCounter = 0;
-
- // Returns a partial implementation matching the minimal API subset required
- // by Backbone.Events
- function miniscore() {
- return {
- keys: Object.keys || function (obj) {
- if (typeof obj !== "object" && typeof obj !== "function" || obj === null) {
- throw new TypeError("keys() called on a non-object");
- }
- var key, keys = [];
- for (key in obj) {
- if (obj.hasOwnProperty(key)) {
- keys[keys.length] = key;
- }
- }
- return keys;
- },
-
- uniqueId: function(prefix) {
- var id = ++idCounter + '';
- return prefix ? prefix + id : id;
- },
-
- has: function(obj, key) {
- return hasOwnProperty.call(obj, key);
- },
-
- each: function(obj, iterator, context) {
- if (obj == null) return;
- if (nativeForEach && obj.forEach === nativeForEach) {
- obj.forEach(iterator, context);
- } else if (obj.length === +obj.length) {
- for (var i = 0, l = obj.length; i < l; i++) {
- if (iterator.call(context, obj[i], i, obj) === breaker) return;
- }
- } else {
- for (var key in obj) {
- if (this.has(obj, key)) {
- if (iterator.call(context, obj[key], key, obj) === breaker) return;
- }
- }
- }
- },
-
- once: function(func) {
- var ran = false, memo;
- return function() {
- if (ran) return memo;
- ran = true;
- memo = func.apply(this, arguments);
- func = null;
- return memo;
- };
- }
- };
- }
-
- var _ = miniscore(), Events;
-
- // Backbone.Events
- // ---------------
-
- // A module that can be mixed in to *any object* in order to provide it with
- // custom events. You may bind with `on` or remove with `off` callback
- // functions to an event; `trigger`-ing an event fires all callbacks in
- // succession.
- //
- // var object = {};
- // _.extend(object, Backbone.Events);
- // object.on('expand', function(){ alert('expanded'); });
- // object.trigger('expand');
- //
- Events = {
-
- // Bind an event to a `callback` function. Passing `"all"` will bind
- // the callback to all events fired.
- on: function(name, callback, context) {
- if (!eventsApi(this, 'on', name, [callback, context]) || !callback) return this;
- this._events || (this._events = {});
- var events = this._events[name] || (this._events[name] = []);
- events.push({callback: callback, context: context, ctx: context || this});
- return this;
- },
-
- // Bind an event to only be triggered a single time. After the first time
- // the callback is invoked, it will be removed.
- once: function(name, callback, context) {
- if (!eventsApi(this, 'once', name, [callback, context]) || !callback) return this;
- var self = this;
- var once = _.once(function() {
- self.off(name, once);
- callback.apply(this, arguments);
- });
- once._callback = callback;
- return this.on(name, once, context);
- },
-
- // Remove one or many callbacks. If `context` is null, removes all
- // callbacks with that function. If `callback` is null, removes all
- // callbacks for the event. If `name` is null, removes all bound
- // callbacks for all events.
- off: function(name, callback, context) {
- var retain, ev, events, names, i, l, j, k;
- if (!this._events || !eventsApi(this, 'off', name, [callback, context])) return this;
- if (!name && !callback && !context) {
- this._events = {};
- return this;
- }
-
- names = name ? [name] : _.keys(this._events);
- for (i = 0, l = names.length; i < l; i++) {
- name = names[i];
- if (events = this._events[name]) {
- this._events[name] = retain = [];
- if (callback || context) {
- for (j = 0, k = events.length; j < k; j++) {
- ev = events[j];
- if ((callback && callback !== ev.callback && callback !== ev.callback._callback) ||
- (context && context !== ev.context)) {
- retain.push(ev);
- }
- }
- }
- if (!retain.length) delete this._events[name];
- }
- }
-
- return this;
- },
-
- // Trigger one or many events, firing all bound callbacks. Callbacks are
- // passed the same arguments as `trigger` is, apart from the event name
- // (unless you're listening on `"all"`, which will cause your callback to
- // receive the true name of the event as the first argument).
- trigger: function(name) {
- if (!this._events) return this;
- var args = slice.call(arguments, 1);
- if (!eventsApi(this, 'trigger', name, args)) return this;
- var events = this._events[name];
- var allEvents = this._events.all;
- if (events) triggerEvents(events, args);
- if (allEvents) triggerEvents(allEvents, arguments);
- return this;
- },
-
- // Tell this object to stop listening to either specific events ... or
- // to every object it's currently listening to.
- stopListening: function(obj, name, callback) {
- var listeners = this._listeners;
- if (!listeners) return this;
- var deleteListener = !name && !callback;
- if (typeof name === 'object') callback = this;
- if (obj) (listeners = {})[obj._listenerId] = obj;
- for (var id in listeners) {
- listeners[id].off(name, callback, this);
- if (deleteListener) delete this._listeners[id];
- }
- return this;
- }
-
- };
-
- // Regular expression used to split event strings.
- var eventSplitter = /\s+/;
-
- // Implement fancy features of the Events API such as multiple event
- // names `"change blur"` and jQuery-style event maps `{change: action}`
- // in terms of the existing API.
- var eventsApi = function(obj, action, name, rest) {
- if (!name) return true;
-
- // Handle event maps.
- if (typeof name === 'object') {
- for (var key in name) {
- obj[action].apply(obj, [key, name[key]].concat(rest));
- }
- return false;
- }
-
- // Handle space separated event names.
- if (eventSplitter.test(name)) {
- var names = name.split(eventSplitter);
- for (var i = 0, l = names.length; i < l; i++) {
- obj[action].apply(obj, [names[i]].concat(rest));
- }
- return false;
- }
-
- return true;
- };
-
- // A difficult-to-believe, but optimized internal dispatch function for
- // triggering events. Tries to keep the usual cases speedy (most internal
- // Backbone events have 3 arguments).
- var triggerEvents = function(events, args) {
- var ev, i = -1, l = events.length, a1 = args[0], a2 = args[1], a3 = args[2];
- switch (args.length) {
- case 0: while (++i < l) (ev = events[i]).callback.call(ev.ctx); return;
- case 1: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1); return;
- case 2: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1, a2); return;
- case 3: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1, a2, a3); return;
- default: while (++i < l) (ev = events[i]).callback.apply(ev.ctx, args);
- }
- };
-
- var listenMethods = {listenTo: 'on', listenToOnce: 'once'};
-
- // Inversion-of-control versions of `on` and `once`. Tell *this* object to
- // listen to an event in another object ... keeping track of what it's
- // listening to.
- _.each(listenMethods, function(implementation, method) {
- Events[method] = function(obj, name, callback) {
- var listeners = this._listeners || (this._listeners = {});
- var id = obj._listenerId || (obj._listenerId = _.uniqueId('l'));
- listeners[id] = obj;
- if (typeof name === 'object') callback = this;
- obj[implementation](name, callback, this);
- return this;
- };
- });
-
- // Aliases for backwards compatibility.
- Events.bind = Events.on;
- Events.unbind = Events.off;
-
- // Mixin utility
- Events.mixin = function(proto) {
- var exports = ['on', 'once', 'off', 'trigger', 'stopListening', 'listenTo',
- 'listenToOnce', 'bind', 'unbind'];
- _.each(exports, function(name) {
- proto[name] = this[name];
- }, this);
- return proto;
- };
-
- // Export Events as BackboneEvents depending on current context
- if (typeof define === "function") {
- define(function() {
- return Events;
- });
- } else if (typeof exports !== 'undefined') {
- if (typeof module !== 'undefined' && module.exports) {
- exports = module.exports = Events;
- }
- exports.BackboneEvents = Events;
- } else {
- root.BackboneEvents = Events;
- }
-})(this);
-
-},{}],8:[function(require,module,exports){
-module.exports = require('./backbone-events-standalone');
-
-},{"./backbone-events-standalone":7}],9:[function(require,module,exports){
-(function (definition) {
- if (typeof exports === "object") {
- module.exports = definition();
- }
- else if (typeof define === 'function' && define.amd) {
- define(definition);
- }
- else {
- window.BackboneExtend = definition();
- }
-})(function () {
- "use strict";
-
- // mini-underscore
- var _ = {
- has: function (obj, key) {
- return Object.prototype.hasOwnProperty.call(obj, key);
- },
-
- extend: function(obj) {
- for (var i=1; i<arguments.length; ++i) {
- var source = arguments[i];
- if (source) {
- for (var prop in source) {
- obj[prop] = source[prop];
- }
- }
- }
- return obj;
- }
- };
-
- /// Following code is pasted from Backbone.js ///
-
- // Helper function to correctly set up the prototype chain, for subclasses.
- // Similar to `goog.inherits`, but uses a hash of prototype properties and
- // class properties to be extended.
- var extend = function(protoProps, staticProps) {
- var parent = this;
- var child;
-
- // The constructor function for the new subclass is either defined by you
- // (the "constructor" property in your `extend` definition), or defaulted
- // by us to simply call the parent's constructor.
- if (protoProps && _.has(protoProps, 'constructor')) {
- child = protoProps.constructor;
- } else {
- child = function(){ return parent.apply(this, arguments); };
- }
-
- // Add static properties to the constructor function, if supplied.
- _.extend(child, parent, staticProps);
-
- // Set the prototype chain to inherit from `parent`, without calling
- // `parent`'s constructor function.
- var Surrogate = function(){ this.constructor = child; };
- Surrogate.prototype = parent.prototype;
- child.prototype = new Surrogate();
-
- // Add prototype properties (instance properties) to the subclass,
- // if supplied.
- if (protoProps) _.extend(child.prototype, protoProps);
-
- // Set a convenience property in case the parent's prototype is needed
- // later.
- child.__super__ = parent.prototype;
-
- return child;
- };
-
- // Expose the extend function
- return extend;
-});
-
-},{}],10:[function(require,module,exports){
-// this is the extracted view model from backbone
-// note that we inject jbone as jquery replacment
-// (and underscore directly)
-//
-// Views are almost more convention than they are actual code.
-// MVC pattern
-// Backbone.View
-// -------------
-
-var _ = require("underscore");
-var Events = require("backbone-events-standalone");
-var extend = require("backbone-extend-standalone");
-var $ = require('jbone');
-
-// Backbone Views are almost more convention than they are actual code. A View
-// is simply a JavaScript object that represents a logical chunk of UI in the
-// DOM. This might be a single item, an entire list, a sidebar or panel, or
-// even the surrounding frame which wraps your whole app. Defining a chunk of
-// UI as a **View** allows you to define your DOM events declaratively, without
-// having to worry about render order ... and makes it easy for the view to
-// react to specific changes in the state of your models.
-
-// Creating a Backbone.View creates its initial element outside of the DOM,
-// if an existing element is not provided...
-var View = function(options) {
- this.cid = _.uniqueId('view');
- options || (options = {});
- _.extend(this, _.pick(options, viewOptions));
- this._ensureElement();
- this.initialize.apply(this, arguments);
-};
-
-// Cached regex to split keys for `delegate`.
-var delegateEventSplitter = /^(\S+)\s*(.*)$/;
-
-// List of view options to be merged as properties.
-var viewOptions = ['model', 'collection', 'el', 'id', 'attributes', 'className', 'tagName', 'events'];
-
-// Set up all inheritable **Backbone.View** properties and methods.
-_.extend(View.prototype, Events, {
-
- // The default `tagName` of a View's element is `"div"`.
- tagName: 'div',
-
- // jQuery delegate for element lookup, scoped to DOM elements within the
- // current view. This should be preferred to global lookups where possible.
- $: function(selector) {
- return this.$el.find(selector);
- },
-
- // Initialize is an empty function by default. Override it with your own
- // initialization logic.
- initialize: function(){},
-
- // **render** is the core function that your view should override, in order
- // to populate its element (`this.el`), with the appropriate HTML. The
- // convention is for **render** to always return `this`.
- render: function() {
- return this;
- },
-
- // Remove this view by taking the element out of the DOM, and removing any
- // applicable Backbone.Events listeners.
- remove: function() {
- this._removeElement();
- this.stopListening();
- return this;
- },
-
- // Remove this view's element from the document and all event listeners
- // attached to it. Exposed for subclasses using an alternative DOM
- // manipulation API.
- _removeElement: function() {
- this.$el.remove();
- },
-
- // Change the view's element (`this.el` property) and re-delegate the
- // view's events on the new element.
- setElement: function(element) {
- this.undelegateEvents();
- this._setElement(element);
- this.delegateEvents();
- return this;
- },
-
- // Creates the `this.el` and `this.$el` references for this view using the
- // given `el`. `el` can be a CSS selector or an HTML string, a jQuery
- // context or an element. Subclasses can override this to utilize an
- // alternative DOM manipulation API and are only required to set the
- // `this.el` property.
- _setElement: function(el) {
- this.$el = el instanceof $ ? el : $(el);
- this.el = this.$el[0];
- },
-
- // Set callbacks, where `this.events` is a hash of
- //
- // *{"event selector": "callback"}*
- //
- // {
- // 'mousedown .title': 'edit',
- // 'click .button': 'save',
- // 'click .open': function(e) { ... }
- // }
- //
- // pairs. Callbacks will be bound to the view, with `this` set properly.
- // Uses event delegation for efficiency.
- // Omitting the selector binds the event to `this.el`.
- delegateEvents: function(events) {
- if (!(events || (events = _.result(this, 'events')))) return this;
- this.undelegateEvents();
- for (var key in events) {
- var method = events[key];
- if (!_.isFunction(method)) method = this[events[key]];
- if (!method) continue;
- var match = key.match(delegateEventSplitter);
- this.delegate(match[1], match[2], _.bind(method, this));
- }
- return this;
- },
-
- // Add a single event listener to the view's element (or a child element
- // using `selector`). This only works for delegate-able events: not `focus`,
- // `blur`, and not `change`, `submit`, and `reset` in Internet Explorer.
- delegate: function(eventName, selector, listener) {
- this.$el.on(eventName + '.delegateEvents' + this.cid, selector, listener);
- },
-
- // Clears all callbacks previously bound to the view by `delegateEvents`.
- // You usually don't need to use this, but may wish to if you have multiple
- // Backbone views attached to the same DOM element.
- undelegateEvents: function() {
- if (this.$el) this.$el.off('.delegateEvents' + this.cid);
- return this;
- },
-
- // A finer-grained `undelegateEvents` for removing a single delegated event.
- // `selector` and `listener` are both optional.
- undelegate: function(eventName, selector, listener) {
- this.$el.off(eventName + '.delegateEvents' + this.cid, selector, listener);
- },
-
- // Produces a DOM element to be assigned to your view. Exposed for
- // subclasses using an alternative DOM manipulation API.
- _createElement: function(tagName) {
- return document.createElement(tagName);
- },
-
- // Ensure that the View has a DOM element to render into.
- // If `this.el` is a string, pass it through `$()`, take the first
- // matching element, and re-assign it to `el`. Otherwise, create
- // an element from the `id`, `className` and `tagName` properties.
- _ensureElement: function() {
- if (!this.el) {
- var attrs = _.extend({}, _.result(this, 'attributes'));
- if (this.id) attrs.id = _.result(this, 'id');
- if (this.className) attrs['class'] = _.result(this, 'className');
- this.setElement(this._createElement(_.result(this, 'tagName')));
- this._setAttributes(attrs);
- } else {
- this.setElement(_.result(this, 'el'));
- }
- },
-
- // Set attributes from a hash on this view's element. Exposed for
- // subclasses using an alternative DOM manipulation API.
- _setAttributes: function(attributes) {
- this.$el.attr(attributes);
- }
-
-});
-
-// setup inheritance
-View.extend = extend;
-module.exports = View;
-
-},{"backbone-events-standalone":12,"backbone-extend-standalone":13,"jbone":50,"underscore":59}],11:[function(require,module,exports){
-module.exports=require(7)
-},{"/home/travis/build/greenify/biojs-vis-msa/node_modules/backbone-thin/node_modules/backbone-events-standalone/backbone-events-standalone.js":7}],12:[function(require,module,exports){
-module.exports=require(8)
-},{"./backbone-events-standalone":11,"/home/travis/build/greenify/biojs-vis-msa/node_modules/backbone-thin/node_modules/backbone-events-standalone/index.js":8}],13:[function(require,module,exports){
-module.exports=require(9)
-},{"/home/travis/build/greenify/biojs-vis-msa/node_modules/backbone-thin/node_modules/backbone-extend-standalone/backbone-extend-standalone.js":9}],14:[function(require,module,exports){
-var events = require("backbone-events-standalone");
-
-events.onAll = function(callback,context){
- this.on("all", callback,context);
- return this;
-};
-
-// Mixin utility
-events.oldMixin = events.mixin;
-events.mixin = function(proto) {
- events.oldMixin(proto);
- // add custom onAll
- var exports = ['onAll'];
- for(var i=0; i < exports.length;i++){
- var name = exports[i];
- proto[name] = this[name];
- }
- return proto;
-};
-
-module.exports = events;
-
-},{"backbone-events-standalone":16}],15:[function(require,module,exports){
-module.exports=require(7)
-},{"/home/travis/build/greenify/biojs-vis-msa/node_modules/backbone-thin/node_modules/backbone-events-standalone/backbone-events-standalone.js":7}],16:[function(require,module,exports){
-module.exports=require(8)
-},{"./backbone-events-standalone":15,"/home/travis/build/greenify/biojs-vis-msa/node_modules/backbone-thin/node_modules/backbone-events-standalone/index.js":8}],17:[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-var GenericReader, xhr;
-
-xhr = require('nets');
-
-module.exports = GenericReader = (function() {
- function GenericReader() {}
-
- GenericReader.read = function(url, callback) {
- var onret;
- onret = (function(_this) {
- return function(err, response, text) {
- return _this._onRetrieval(text, callback);
- };
- })(this);
- return xhr(url, onret);
- };
-
- GenericReader._onRetrieval = function(text, callback) {
- var rText;
- rText = this.parse(text);
- return callback(rText);
- };
-
- return GenericReader;
-
-})();
-
-},{"nets":undefined}],18:[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-var Seq;
-
-module.exports = Seq = (function() {
- function Seq(seq, name, id) {
- var meta;
- this.seq = seq;
- this.name = name;
- this.id = id;
- meta = {};
- }
-
- return Seq;
-
-})();
-
-},{}],19:[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-var strings;
-
-strings = {
- contains: function(text, search) {
- return ''.indexOf.call(text, search, 0) !== -1;
- }
-};
-
-module.exports = strings;
-
-},{}],20:[function(require,module,exports){
-module.exports=require(17)
-},{"/home/travis/build/greenify/biojs-vis-msa/node_modules/biojs-io-clustal/lib/generic_reader.js":17,"nets":undefined}],21:[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-var Fasta, GenericReader, Seq, Str,
- __hasProp = {}.hasOwnProperty,
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
-
-Str = require("./strings");
-
-GenericReader = require("./generic_reader");
-
-Seq = require("biojs-model").seq;
-
-module.exports = Fasta = (function(_super) {
- __extends(Fasta, _super);
-
- function Fasta() {
- return Fasta.__super__.constructor.apply(this, arguments);
- }
-
- Fasta.parse = function(text) {
- var currentSeq, database, databaseID, identifiers, k, label, line, seqs, _i, _len;
- seqs = [];
- if (Object.prototype.toString.call(text) !== '[object Array]') {
- text = text.split("\n");
- }
- for (_i = 0, _len = text.length; _i < _len; _i++) {
- line = text[_i];
- if (line[0] === ">" || line[0] === ";") {
- label = line.slice(1);
- currentSeq = new Seq("", label, seqs.length);
- seqs.push(currentSeq);
- if (Str.contains("|", line)) {
- identifiers = label.split("|");
- k = 1;
- while (k < identifiers.length) {
- database = identifiers[k];
- databaseID = identifiers[k + 1];
- currentSeq.meta[database] = databaseID;
- k += 2;
- }
- currentSeq.name = identifiers[identifiers.length - 1];
- }
- } else {
- currentSeq.seq += line;
- }
- }
- return seqs;
- };
-
- return Fasta;
-
-})(GenericReader);
-
-},{"./generic_reader":20,"./strings":22,"biojs-model":25}],22:[function(require,module,exports){
-module.exports=require(19)
-},{"/home/travis/build/greenify/biojs-vis-msa/node_modules/biojs-io-clustal/lib/strings.js":19}],23:[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-var Utils;
-
-Utils = {};
-
-Utils.splitNChars = function(txt, num) {
- var i, result, _i, _ref;
- result = [];
- for (i = _i = 0, _ref = txt.length - 1; num > 0 ? _i <= _ref : _i >= _ref; i = _i += num) {
- result.push(txt.substr(i, num));
- }
- return result;
-};
-
-module.exports = Utils;
-
-},{}],24:[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-var FastaExporter, Utils;
-
-Utils = require("./utils");
-
-module.exports = FastaExporter = (function() {
- function FastaExporter() {}
-
- FastaExporter["export"] = function(seqs, access) {
- var seq, text, _i, _len;
- text = "";
- for (_i = 0, _len = seqs.length; _i < _len; _i++) {
- seq = seqs[_i];
- if (access != null) {
- seq = access(seq);
- }
- text += ">" + seq.name + "\n";
- text += (Utils.splitNChars(seq.seq, 80)).join("\n");
- text += "\n";
- }
- return text;
- };
-
- return FastaExporter;
-
-})();
-
-},{"./utils":23}],25:[function(require,module,exports){
-module.exports.seq = require("./seq");
-
-},{"./seq":26}],26:[function(require,module,exports){
-module.exports = function(seq, name, id) {
- this.seq = seq;
- this.name = name;
- this.id = id;
- this.meta = {};
-};
-
-},{}],27:[function(require,module,exports){
-module.exports=require(25)
-},{"./seq":28,"/home/travis/build/greenify/biojs-vis-msa/node_modules/biojs-io-fasta/node_modules/biojs-model/src/index.js":25}],28:[function(require,module,exports){
-module.exports=require(26)
-},{"/home/travis/build/greenify/biojs-vis-msa/node_modules/biojs-io-fasta/node_modules/biojs-model/src/seq.js":26}],29:[function(require,module,exports){
-module.exports = require('./src/index.js')
-
-},{"./src/index.js":36}],30:[function(require,module,exports){
-module.exports = {
- A: "#00a35c",
- R: "#00fc03",
- N: "#00eb14",
- D: "#00eb14",
- C: "#0000ff",
- Q: "#00f10e",
- E: "#00f10e",
- G: "#009d62",
- H: "#00d52a",
- I: "#0054ab",
- L: "#007b84",
- K: "#00ff00",
- M: "#009768",
- F: "#008778",
- P: "#00e01f",
- S: "#00d52a",
- T: "#00db24",
- W: "#00a857",
- Y: "#00e619",
- V: "#005fa0",
- B: "#00eb14",
- X: "#00b649",
- Z: "#00f10e"
-};
-
-},{}],31:[function(require,module,exports){
-module.exports = {
- A: "#BBBBBB",
- B: "grey",
- C: "yellow",
- D: "red",
- E: "red",
- F: "magenta",
- G: "brown",
- H: "#00FFFF",
- I: "#BBBBBB",
- J: "#fff",
- K: "#00FFFF",
- L: "#BBBBBB",
- M: "#BBBBBB",
- N: "green",
- O: "#fff",
- P: "brown",
- Q: "green",
- R: "#00FFFF",
- S: "green",
- T: "green",
- U: "#fff",
- V: "#BBBBBB",
- W: "magenta",
- X: "grey",
- Y: "magenta",
- Z: "grey",
- Gap: "grey"
-};
-
-},{}],32:[function(require,module,exports){
-module.exports = {
- A: "orange",
- B: "#fff",
- C: "green",
- D: "red",
- E: "red",
- F: "blue",
- G: "orange",
- H: "red",
- I: "green",
- J: "#fff",
- K: "red",
- L: "green",
- M: "green",
- N: "#fff",
- O: "#fff",
- P: "orange",
- Q: "#fff",
- R: "red",
- S: "orange",
- T: "orange",
- U: "#fff",
- V: "green",
- W: "blue",
- X: "#fff",
- Y: "blue",
- Z: "#fff",
- Gap: "#fff"
-};
-
-},{}],33:[function(require,module,exports){
-module.exports = {
- A: "#80a0f0",
- R: "#f01505",
- N: "#00ff00",
- D: "#c048c0",
- C: "#f08080",
- Q: "#00ff00",
- E: "#c048c0",
- G: "#f09048",
- H: "#15a4a4",
- I: "#80a0f0",
- L: "#80a0f0",
- K: "#f01505",
- M: "#80a0f0",
- F: "#80a0f0",
- P: "#ffff00",
- S: "#00ff00",
- T: "#00ff00",
- W: "#80a0f0",
- Y: "#15a4a4",
- V: "#80a0f0",
- B: "#fff",
- X: "#fff",
- Z: "#fff"
-};
-
-},{}],34:[function(require,module,exports){
-module.exports = {
- A: "#e718e7",
- R: "#6f906f",
- N: "#1be41b",
- D: "#778877",
- C: "#23dc23",
- Q: "#926d92",
- E: "#ff00ff",
- G: "#00ff00",
- H: "#758a75",
- I: "#8a758a",
- L: "#ae51ae",
- K: "#a05fa0",
- M: "#ef10ef",
- F: "#986798",
- P: "#00ff00",
- S: "#36c936",
- T: "#47b847",
- W: "#8a758a",
- Y: "#21de21",
- V: "#857a85",
- B: "#49b649",
- X: "#758a75",
- Z: "#c936c9"
-};
-
-},{}],35:[function(require,module,exports){
-module.exports = {
- A: "#ad0052",
- B: "#0c00f3",
- C: "#c2003d",
- D: "#0c00f3",
- E: "#0c00f3",
- F: "#cb0034",
- G: "#6a0095",
- H: "#1500ea",
- I: "#ff0000",
- J: "#fff",
- K: "#0000ff",
- L: "#ea0015",
- M: "#b0004f",
- N: "#0c00f3",
- O: "#fff",
- P: "#4600b9",
- Q: "#0c00f3",
- R: "#0000ff",
- S: "#5e00a1",
- T: "#61009e",
- U: "#fff",
- V: "#f60009",
- W: "#5b00a4",
- X: "#680097",
- Y: "#4f00b0",
- Z: "#0c00f3"
-};
-
-},{}],36:[function(require,module,exports){
-module.exports.selector = require("./selector");
-
-// basics
-module.exports.taylor = require("./taylor");
-module.exports.zappo= require("./zappo");
-module.exports.hydro= require("./hydrophobicity");
-
-module.exports.clustal = require("./clustal");
-module.exports.clustal2 = require("./clustal2");
-
-module.exports.curied = require("./buried");
-module.exports.cinema = require("./cinema");
-module.exports.nucleotide = require("./nucleotide");
-module.exports.helix = require("./helix");
-module.exports.lesk = require("./lesk");
-module.exports.mae = require("./mae");
-module.exports.purine = require("./purine");
-module.exports.strand = require("./strand");
-module.exports.turn = require("./turn");
-
-},{"./buried":30,"./cinema":31,"./clustal":32,"./clustal2":33,"./helix":34,"./hydrophobicity":35,"./lesk":37,"./mae":38,"./nucleotide":39,"./purine":40,"./selector":41,"./strand":42,"./taylor":43,"./turn":44,"./zappo":45}],37:[function(require,module,exports){
-module.exports = {
- A: " orange",
- B: " #fff",
- C: " green",
- D: " red",
- E: " red",
- F: " green",
- G: " orange",
- H: " magenta",
- I: " green",
- J: " #fff",
- K: " red",
- L: " green",
- M: " green",
- N: " magenta",
- O: " #fff",
- P: " green",
- Q: " magenta",
- R: " red",
- S: " orange",
- T: " orange",
- U: " #fff",
- V: " green",
- W: " green",
- X: " #fff",
- Y: " green",
- Z: " #fff",
- Gap: " #fff"
-};
-
-},{}],38:[function(require,module,exports){
-module.exports = {
- A: " #77dd88",
- B: " #fff",
- C: " #99ee66",
- D: " #55bb33",
- E: " #55bb33",
- F: " #9999ff",
- G: " #77dd88",
- H: " #5555ff",
- I: " #66bbff",
- J: " #fff",
- K: " #ffcc77",
- L: " #66bbff",
- M: " #66bbff",
- N: " #55bb33",
- O: " #fff",
- P: " #eeaaaa",
- Q: " #55bb33",
- R: " #ffcc77",
- S: " #ff4455",
- T: " #ff4455",
- U: " #fff",
- V: " #66bbff",
- W: " #9999ff",
- X: " #fff",
- Y: " #9999ff",
- Z: " #fff",
- Gap: " #fff"
-};
-
-},{}],39:[function(require,module,exports){
-module.exports = {
- A: " #64F73F",
- C: " #FFB340",
- G: " #EB413C",
- T: " #3C88EE",
- U: " #3C88EE"
-};
-
-},{}],40:[function(require,module,exports){
-module.exports = {
- A: " #FF83FA",
- C: " #40E0D0",
- G: " #FF83FA",
- R: " #FF83FA",
- T: " #40E0D0",
- U: " #40E0D0",
- Y: " #40E0D0"
-};
-
-},{}],41:[function(require,module,exports){
-var Buried = require("./buried");
-var Cinema = require("./cinema");
-var Clustal = require("./clustal");
-var Clustal2 = require("./clustal2");
-var Helix = require("./helix");
-var Hydro = require("./hydrophobicity");
-var Lesk = require("./lesk");
-var Mae = require("./mae");
-var Nucleotide = require("./nucleotide");
-var Purine = require("./purine");
-var Strand = require("./strand");
-var Taylor = require("./taylor");
-var Turn = require("./turn");
-var Zappo = require("./zappo");
-
-module.exports = Colors = {
- mapping: {
- buried: Buried,
- buried_index: Buried,
- cinema: Cinema,
- clustal2: Clustal2,
- clustal: Clustal,
- helix: Helix,
- helix_propensity: Helix,
- hydro: Hydro,
- lesk: Lesk,
- mae: Mae,
- nucleotide: Nucleotide,
- purine: Purine,
- purine_pyrimidine: Purine,
- strand: Strand,
- strand_propensity: Strand,
- taylor: Taylor,
- turn: Turn,
- turn_propensity: Turn,
- zappo: Zappo,
- },
- getColor: function(scheme) {
- var color = Colors.mapping[scheme];
- if (color === undefined) {
- color = {};
- }
- return color;
- }
-};
-
-},{"./buried":30,"./cinema":31,"./clustal":32,"./clustal2":33,"./helix":34,"./hydrophobicity":35,"./lesk":37,"./mae":38,"./nucleotide":39,"./purine":40,"./strand":42,"./taylor":43,"./turn":44,"./zappo":45}],42:[function(require,module,exports){
-module.exports = {
- A: "#5858a7",
- R: "#6b6b94",
- N: "#64649b",
- D: "#2121de",
- C: "#9d9d62",
- Q: "#8c8c73",
- E: "#0000ff",
- G: "#4949b6",
- H: "#60609f",
- I: "#ecec13",
- L: "#b2b24d",
- K: "#4747b8",
- M: "#82827d",
- F: "#c2c23d",
- P: "#2323dc",
- S: "#4949b6",
- T: "#9d9d62",
- W: "#c0c03f",
- Y: "#d3d32c",
- V: "#ffff00",
- B: "#4343bc",
- X: "#797986",
- Z: "#4747b8"
-};
-
-},{}],43:[function(require,module,exports){
-module.exports = {
- A: "#ccff00",
- R: "#0000ff",
- N: "#cc00ff",
- D: "#ff0000",
- C: "#ffff00",
- Q: "#ff00cc",
- E: "#ff0066",
- G: "#ff9900",
- H: "#0066ff",
- I: "#66ff00",
- L: "#33ff00",
- K: "#6600ff",
- M: "#00ff00",
- F: "#00ff66",
- P: "#ffcc00",
- S: "#ff3300",
- T: "#ff6600",
- W: "#00ccff",
- Y: "#00ffcc",
- V: "#99ff00",
- B: "#fff",
- X: "#fff",
- Z: "#fff"
-};
-
-},{}],44:[function(require,module,exports){
-module.exports = {
- A: "#2cd3d3",
- R: "#708f8f",
- N: "#ff0000",
- D: "#e81717",
- C: "#a85757",
- Q: "#3fc0c0",
- E: "#778888",
- G: "#ff0000",
- H: "#708f8f",
- I: "#00ffff",
- L: "#1ce3e3",
- K: "#7e8181",
- M: "#1ee1e1",
- F: "#1ee1e1",
- P: "#f60909",
- S: "#e11e1e",
- T: "#738c8c",
- W: "#738c8c",
- Y: "#9d6262",
- V: "#07f8f8",
- B: "#f30c0c",
- X: "#7c8383",
- Z: "#5ba4a4"
-};
-
-},{}],45:[function(require,module,exports){
-module.exports = {
- A: "#ffafaf",
- R: "#6464ff",
- N: "#00ff00",
- D: "#ff0000",
- C: "#ffff00",
- Q: "#00ff00",
- E: "#ff0000",
- G: "#ff00ff",
- H: "#6464ff",
- I: "#ffafaf",
- L: "#ffafaf",
- K: "#6464ff",
- M: "#ffafaf",
- F: "#ffc800",
- P: "#ff00ff",
- S: "#00ff00",
- T: "#00ff00",
- W: "#ffc800",
- Y: "#ffc800",
- V: "#ffafaf",
- B: "#fff",
- X: "#fff",
- Z: "#fff"
-};
-
-},{}],46:[function(require,module,exports){
-/*
- * JavaScript Canvas to Blob 2.0.5
- * https://github.com/blueimp/JavaScript-Canvas-to-Blob
- *
- * Copyright 2012, Sebastian Tschan
- * https://blueimp.net
- *
- * Licensed under the MIT license:
- * http://www.opensource.org/licenses/MIT
- *
- * Based on stackoverflow user Stoive's code snippet:
- * http://stackoverflow.com/q/4998908
- */
-var CanvasPrototype = window.HTMLCanvasElement &&
-window.HTMLCanvasElement.prototype,
- hasBlobConstructor = window.Blob && (function () {
- try {
- return Boolean(new Blob());
- } catch (e) {
- return false;
- }
- }()),
- hasArrayBufferViewSupport = hasBlobConstructor && window.Uint8Array &&
- (function () {
- try {
- return new Blob([new Uint8Array(100)]).size === 100;
- } catch (e) {
- return false;
- }
- }()),
- BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder ||
- window.MozBlobBuilder || window.MSBlobBuilder,
- dataURLtoBlob = (hasBlobConstructor || BlobBuilder) && window.atob &&
- window.ArrayBuffer && window.Uint8Array && function (dataURI) {
- var byteString,
- arrayBuffer,
- intArray,
- i,
- mimeString,
- bb;
- if (dataURI.split(',')[0].indexOf('base64') >= 0) {
- // Convert base64 to raw binary data held in a string:
- byteString = atob(dataURI.split(',')[1]);
- } else {
- // Convert base64/URLEncoded data component to raw binary data:
- byteString = decodeURIComponent(dataURI.split(',')[1]);
- }
- // Write the bytes of the string to an ArrayBuffer:
- arrayBuffer = new ArrayBuffer(byteString.length);
- intArray = new Uint8Array(arrayBuffer);
- for (i = 0; i < byteString.length; i += 1) {
- intArray[i] = byteString.charCodeAt(i);
- }
- // Separate out the mime component:
- mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0];
- // Write the ArrayBuffer (or ArrayBufferView) to a blob:
- if (hasBlobConstructor) {
- return new Blob(
- [hasArrayBufferViewSupport ? intArray : arrayBuffer],
- {type: mimeString}
- );
- }
- bb = new BlobBuilder();
- bb.append(arrayBuffer);
- return bb.getBlob(mimeString);
- };
-if (window.HTMLCanvasElement && !CanvasPrototype.toBlob) {
- if (CanvasPrototype.mozGetAsFile) {
- CanvasPrototype.toBlob = function (callback, type, quality) {
- if (quality && CanvasPrototype.toDataURL && dataURLtoBlob) {
- callback(dataURLtoBlob(this.toDataURL(type, quality)));
- } else {
- callback(this.mozGetAsFile('blob', type));
- }
- };
- } else if (CanvasPrototype.toDataURL && dataURLtoBlob) {
- CanvasPrototype.toBlob = function (callback, type, quality) {
- callback(dataURLtoBlob(this.toDataURL(type, quality)));
- };
- }
-}
-
-module.exports = dataURLtoBlob;
-
-},{}],47:[function(require,module,exports){
-/* FileSaver.js
- * A saveAs() FileSaver implementation.
- * 2014-05-27
- *
- * By Eli Grey, http://eligrey.com
- * License: X11/MIT
- * See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md
- */
-
-/*global self */
-/*jslint bitwise: true, indent: 4, laxbreak: true, laxcomma: true, smarttabs: true, plusplus: true */
-
-/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
-
-var saveAs = saveAs
- // IE 10+ (native saveAs)
- || (typeof navigator !== "undefined" &&
- navigator.msSaveOrOpenBlob && navigator.msSaveOrOpenBlob.bind(navigator))
- // Everyone else
- || (function(view) {
- "use strict";
- // IE <10 is explicitly unsupported
- if (typeof navigator !== "undefined" &&
- /MSIE [1-9]\./.test(navigator.userAgent)) {
- return;
- }
- var
- doc = view.document
- // only get URL when necessary in case Blob.js hasn't overridden it yet
- , get_URL = function() {
- return view.URL || view.webkitURL || view;
- }
- , save_link = doc.createElementNS("http://www.w3.org/1999/xhtml", "a")
- , can_use_save_link = !view.externalHost && "download" in save_link
- , click = function(node) {
- var event = doc.createEvent("MouseEvents");
- event.initMouseEvent(
- "click", true, false, view, 0, 0, 0, 0, 0
- , false, false, false, false, 0, null
- );
- node.dispatchEvent(event);
- }
- , webkit_req_fs = view.webkitRequestFileSystem
- , req_fs = view.requestFileSystem || webkit_req_fs || view.mozRequestFileSystem
- , throw_outside = function(ex) {
- (view.setImmediate || view.setTimeout)(function() {
- throw ex;
- }, 0);
- }
- , force_saveable_type = "application/octet-stream"
- , fs_min_size = 0
- , deletion_queue = []
- , process_deletion_queue = function() {
- var i = deletion_queue.length;
- while (i--) {
- var file = deletion_queue[i];
- if (typeof file === "string") { // file is an object URL
- get_URL().revokeObjectURL(file);
- } else { // file is a File
- file.remove();
- }
- }
- deletion_queue.length = 0; // clear queue
- }
- , dispatch = function(filesaver, event_types, event) {
- event_types = [].concat(event_types);
- var i = event_types.length;
- while (i--) {
- var listener = filesaver["on" + event_types[i]];
- if (typeof listener === "function") {
- try {
- listener.call(filesaver, event || filesaver);
- } catch (ex) {
- throw_outside(ex);
- }
- }
- }
- }
- , FileSaver = function(blob, name) {
- // First try a.download, then web filesystem, then object URLs
- var
- filesaver = this
- , type = blob.type
- , blob_changed = false
- , object_url
- , target_view
- , get_object_url = function() {
- var object_url = get_URL().createObjectURL(blob);
- deletion_queue.push(object_url);
- return object_url;
- }
- , dispatch_all = function() {
- dispatch(filesaver, "writestart progress write writeend".split(" "));
- }
- // on any filesys errors revert to saving with object URLs
- , fs_error = function() {
- // don't create more object URLs than needed
- if (blob_changed || !object_url) {
- object_url = get_object_url(blob);
- }
- if (target_view) {
- target_view.location.href = object_url;
- } else {
- window.open(object_url, "_blank");
- }
- filesaver.readyState = filesaver.DONE;
- dispatch_all();
- }
- , abortable = function(func) {
- return function() {
- if (filesaver.readyState !== filesaver.DONE) {
- return func.apply(this, arguments);
- }
- };
- }
- , create_if_not_found = {create: true, exclusive: false}
- , slice
- ;
- filesaver.readyState = filesaver.INIT;
- if (!name) {
- name = "download";
- }
- if (can_use_save_link) {
- object_url = get_object_url(blob);
- save_link.href = object_url;
- save_link.download = name;
- click(save_link);
- filesaver.readyState = filesaver.DONE;
- dispatch_all();
- return;
- }
- // Object and web filesystem URLs have a problem saving in Google Chrome when
- // viewed in a tab, so I force save with application/octet-stream
- // http://code.google.com/p/chromium/issues/detail?id=91158
- if (view.chrome && type && type !== force_saveable_type) {
- slice = blob.slice || blob.webkitSlice;
- blob = slice.call(blob, 0, blob.size, force_saveable_type);
- blob_changed = true;
- }
- // Since I can't be sure that the guessed media type will trigger a download
- // in WebKit, I append .download to the filename.
- // https://bugs.webkit.org/show_bug.cgi?id=65440
- if (webkit_req_fs && name !== "download") {
- name += ".download";
- }
- if (type === force_saveable_type || webkit_req_fs) {
- target_view = view;
- }
- if (!req_fs) {
- fs_error();
- return;
- }
- fs_min_size += blob.size;
- req_fs(view.TEMPORARY, fs_min_size, abortable(function(fs) {
- fs.root.getDirectory("saved", create_if_not_found, abortable(function(dir) {
- var save = function() {
- dir.getFile(name, create_if_not_found, abortable(function(file) {
- file.createWriter(abortable(function(writer) {
- writer.onwriteend = function(event) {
- target_view.location.href = file.toURL();
- deletion_queue.push(file);
- filesaver.readyState = filesaver.DONE;
- dispatch(filesaver, "writeend", event);
- };
- writer.onerror = function() {
- var error = writer.error;
- if (error.code !== error.ABORT_ERR) {
- fs_error();
- }
- };
- "writestart progress write abort".split(" ").forEach(function(event) {
- writer["on" + event] = filesaver["on" + event];
- });
- writer.write(blob);
- filesaver.abort = function() {
- writer.abort();
- filesaver.readyState = filesaver.DONE;
- };
- filesaver.readyState = filesaver.WRITING;
- }), fs_error);
- }), fs_error);
- };
- dir.getFile(name, {create: false}, abortable(function(file) {
- // delete file if it already exists
- file.remove();
- save();
- }), abortable(function(ex) {
- if (ex.code === ex.NOT_FOUND_ERR) {
- save();
- } else {
- fs_error();
- }
- }));
- }), fs_error);
- }), fs_error);
- }
- , FS_proto = FileSaver.prototype
- , saveAs = function(blob, name) {
- return new FileSaver(blob, name);
- }
- ;
- FS_proto.abort = function() {
- var filesaver = this;
- filesaver.readyState = filesaver.DONE;
- dispatch(filesaver, "abort");
- };
- FS_proto.readyState = FS_proto.INIT = 0;
- FS_proto.WRITING = 1;
- FS_proto.DONE = 2;
-
- FS_proto.error =
- FS_proto.onwritestart =
- FS_proto.onprogress =
- FS_proto.onwrite =
- FS_proto.onabort =
- FS_proto.onerror =
- FS_proto.onwriteend =
- null;
-
- view.addEventListener("unload", process_deletion_queue, false);
- saveAs.unload = function() {
- process_deletion_queue();
- view.removeEventListener("unload", process_deletion_queue, false);
- };
- return saveAs;
-}(
- typeof self !== "undefined" && self
- || typeof window !== "undefined" && window
- || this.content
-));
-// `self` is undefined in Firefox for Android content script context
-// while `this` is nsIContentFrameMessageManager
-// with an attribute `content` that corresponds to the window
-
-amdDefine = window.define;
-if( typeof amdDefine === "undefined" && (typeof window.almond !== "undefined"
- && "define" in window.almond )){
- amdDefine = window.almond.define;
-}
-
-if (typeof module !== "undefined" && module !== null) {
- module.exports = saveAs;
-} else if ((typeof amdDefine !== "undefined" && amdDefine !== null) && (amdDefine.amd != null)) {
- amdDefine("saveAs",[], function() {
- return saveAs;
- });
-}
-
-},{}],48:[function(require,module,exports){
-module.exports = function (css, customDocument) {
- var doc = customDocument || document;
- if (doc.createStyleSheet) {
- var sheet = doc.createStyleSheet()
- sheet.cssText = css;
- return sheet.ownerNode;
- } else {
- var head = doc.getElementsByTagName('head')[0],
- style = doc.createElement('style');
-
- style.type = 'text/css';
-
- if (style.styleSheet) {
- style.styleSheet.cssText = css;
- } else {
- style.appendChild(doc.createTextNode(css));
- }
-
- head.appendChild(style);
- return style;
- }
-};
-
-module.exports.byUrl = function(url) {
- if (document.createStyleSheet) {
- return document.createStyleSheet(url).ownerNode;
- } else {
- var head = document.getElementsByTagName('head')[0],
- link = document.createElement('link');
-
- link.rel = 'stylesheet';
- link.href = url;
-
- head.appendChild(link);
- return link;
- }
-};
-
-},{}],49:[function(require,module,exports){
-var Utils = {};
-
-
-/*
-Remove an element and provide a function that inserts it into its original position
-https://developers.google.com/speed/articles/javascript-dom
-@param element {Element} The element to be temporarily removed
-@return {Function} A function that inserts the element into its original position
- */
-
-Utils.removeToInsertLater = function(element) {
- var nextSibling, parentNode;
- parentNode = element.parentNode;
- nextSibling = element.nextSibling;
- parentNode.removeChild(element);
- return function() {
- if (nextSibling) {
- parentNode.insertBefore(element, nextSibling);
- } else {
- parentNode.appendChild(element);
- }
- };
-};
-
-
-/*
-fastest possible way to destroy all sub nodes (aka childs)
-http://jsperf.com/innerhtml-vs-removechild/15
-@param element {Element} The element for which all childs should be removed
- */
-
-Utils.removeAllChilds = function(element) {
- var count;
- count = 0;
- while (element.firstChild) {
- count++;
- element.removeChild(element.firstChild);
- }
-};
-
-module.exports = Utils;
-
-},{}],50:[function(require,module,exports){
-/*!
- * jBone v1.0.19 - 2014-10-12 - Library for DOM manipulation
- *
- * https://github.com/kupriyanenko/jbone
- *
- * Copyright 2014 Alexey Kupriyanenko
- * Released under the MIT license.
- */
-
-(function (win) {
-
-var
-// cache previous versions
-_$ = win.$,
-_jBone = win.jBone,
-
-// Quick match a standalone tag
-rquickSingleTag = /^<(\w+)\s*\/?>$/,
-
-// A simple way to check for HTML strings
-// Prioritize #id over <tag> to avoid XSS via location.hash
-rquickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
-
-// Alias for function
-slice = [].slice,
-splice = [].splice,
-keys = Object.keys,
-
-// Alias for global variables
-doc = document,
-
-isString = function(el) {
- return typeof el === "string";
-},
-isObject = function(el) {
- return el instanceof Object;
-},
-isFunction = function(el) {
- var getType = {};
- return el && getType.toString.call(el) === "[object Function]";
-},
-isArray = function(el) {
- return Array.isArray(el);
-},
-jBone = function(element, data) {
- return new fn.init(element, data);
-},
-fn;
-
-// set previous values and return the instance upon calling the no-conflict mode
-jBone.noConflict = function() {
- win.$ = _$;
- win.jBone = _jBone;
-
- return jBone;
-};
-
-fn = jBone.fn = jBone.prototype = {
- init: function(element, data) {
- var elements, tag, wraper, fragment;
-
- if (!element) {
- return this;
- }
- if (isString(element)) {
- // Create single DOM element
- if (tag = rquickSingleTag.exec(element)) {
- this[0] = doc.createElement(tag[1]);
- this.length = 1;
-
- if (isObject(data)) {
- this.attr(data);
- }
-
- return this;
- }
- // Create DOM collection
- if ((tag = rquickExpr.exec(element)) && tag[1]) {
- fragment = doc.createDocumentFragment();
- wraper = doc.createElement("div");
- wraper.innerHTML = element;
- while (wraper.lastChild) {
- fragment.appendChild(wraper.firstChild);
- }
- elements = slice.call(fragment.childNodes);
-
- return jBone.merge(this, elements);
- }
- // Find DOM elements with querySelectorAll
- if (jBone.isElement(data)) {
- return jBone(data).find(element);
- }
-
- try {
- elements = doc.querySelectorAll(element);
-
- return jBone.merge(this, elements);
- } catch (e) {
- return this;
- }
- }
- // Wrap DOMElement
- if (element.nodeType) {
- this[0] = element;
- this.length = 1;
-
- return this;
- }
- // Run function
- if (isFunction(element)) {
- return element();
- }
- // Return jBone element as is
- if (element instanceof jBone) {
- return element;
- }
-
- // Return element wrapped by jBone
- return jBone.makeArray(element, this);
- },
-
- pop: [].pop,
- push: [].push,
- reverse: [].reverse,
- shift: [].shift,
- sort: [].sort,
- splice: [].splice,
- slice: [].slice,
- indexOf: [].indexOf,
- forEach: [].forEach,
- unshift: [].unshift,
- concat: [].concat,
- join: [].join,
- every: [].every,
- some: [].some,
- filter: [].filter,
- map: [].map,
- reduce: [].reduce,
- reduceRight: [].reduceRight,
- length: 0
-};
-
-fn.constructor = jBone;
-
-fn.init.prototype = fn;
-
-jBone.setId = function(el) {
- var jid = el.jid;
-
- if (el === win) {
- jid = "window";
- } else if (el.jid === undefined) {
- el.jid = jid = ++jBone._cache.jid;
- }
-
- if (!jBone._cache.events[jid]) {
- jBone._cache.events[jid] = {};
- }
-};
-
-jBone.getData = function(el) {
- el = el instanceof jBone ? el[0] : el;
-
- var jid = el === win ? "window" : el.jid;
-
- return {
- jid: jid,
- events: jBone._cache.events[jid]
- };
-};
-
-jBone.isElement = function(el) {
- return el && el instanceof jBone || el instanceof HTMLElement || isString(el);
-};
-
-jBone._cache = {
- events: {},
- jid: 0
-};
-
-function isArraylike(obj) {
- var length = obj.length,
- type = typeof obj;
-
- if (isFunction(type) || obj === win) {
- return false;
- }
-
- if (obj.nodeType === 1 && length) {
- return true;
- }
-
- return isArray(type) || length === 0 ||
- typeof length === "number" && length > 0 && (length - 1) in obj;
-}
-
-jBone.merge = function(first, second) {
- var l = second.length,
- i = first.length,
- j = 0;
-
- while (j < l) {
- first[i++] = second[j++];
- }
-
- first.length = i;
-
- return first;
-};
-
-jBone.contains = function(container, contained) {
- var result;
-
- container.reverse().some(function(el) {
- if (el.contains(contained)) {
- return result = el;
- }
- });
-
- return result;
-};
-
-jBone.extend = function(target) {
- var k, kl, i, tg;
-
- splice.call(arguments, 1).forEach(function(object) {
- if (!object) {
- return;
- }
-
- k = keys(object);
- kl = k.length;
- i = 0;
- tg = target; //caching target for perf improvement
-
- for (; i < kl; i++) {
- tg[k[i]] = object[k[i]];
- }
- });
-
- return target;
-};
-
-jBone.makeArray = function(arr, results) {
- var ret = results || [];
-
- if (arr !== null) {
- if (isArraylike(arr)) {
- jBone.merge(ret, isString(arr) ? [arr] : arr);
- } else {
- ret.push(arr);
- }
- }
-
- return ret;
-};
-
-function BoneEvent(e, data) {
- var key, setter;
-
- this.originalEvent = e;
-
- setter = function(key, e) {
- if (key === "preventDefault") {
- this[key] = function() {
- this.defaultPrevented = true;
- return e[key]();
- };
- } else if (isFunction(e[key])) {
- this[key] = function() {
- return e[key]();
- };
- } else {
- this[key] = e[key];
- }
- };
-
- for (key in e) {
- if (e[key] || typeof e[key] === "function") {
- setter.call(this, key, e);
- }
- }
-
- jBone.extend(this, data);
-}
-
-jBone.Event = function(event, data) {
- var namespace, eventType;
-
- if (event.type && !data) {
- data = event;
- event = event.type;
- }
-
- namespace = event.split(".").splice(1).join(".");
- eventType = event.split(".")[0];
-
- event = doc.createEvent("Event");
- event.initEvent(eventType, true, true);
-
- return jBone.extend(event, {
- namespace: namespace,
- isDefaultPrevented: function() {
- return event.defaultPrevented;
- }
- }, data);
-};
-
-fn.on = function(event) {
- var args = arguments,
- length = this.length,
- i = 0,
- callback, target, namespace, fn, events, eventType, expectedTarget, addListener;
-
- if (args.length === 2) {
- callback = args[1];
- } else {
- target = args[1];
- callback = args[2];
- }
-
- addListener = function(el) {
- jBone.setId(el);
- events = jBone.getData(el).events;
- event.split(" ").forEach(function(event) {
- eventType = event.split(".")[0];
- namespace = event.split(".").splice(1).join(".");
- events[eventType] = events[eventType] || [];
-
- fn = function(e) {
- if (e.namespace && e.namespace !== namespace) {
- return;
- }
-
- expectedTarget = null;
- if (!target) {
- callback.call(el, e);
- } else if (~jBone(el).find(target).indexOf(e.target) || (expectedTarget = jBone.contains(jBone(el).find(target), e.target))) {
- expectedTarget = expectedTarget || e.target;
- e = new BoneEvent(e, {
- currentTarget: expectedTarget
- });
-
- callback.call(expectedTarget, e);
- }
- };
-
- events[eventType].push({
- namespace: namespace,
- fn: fn,
- originfn: callback
- });
-
- el.addEventListener && el.addEventListener(eventType, fn, false);
- });
- };
-
- for (; i < length; i++) {
- addListener(this[i]);
- }
-
- return this;
-};
-
-fn.one = function(event) {
- var args = arguments,
- i = 0,
- length = this.length,
- callback, target, addListener;
-
- if (args.length === 2) {
- callback = args[1];
- } else {
- target = args[1], callback = args[2];
- }
-
- addListener = function(el) {
- event.split(" ").forEach(function(event) {
- var fn = function(e) {
- jBone(el).off(event, fn);
- callback.call(el, e);
- };
-
- if (!target) {
- jBone(el).on(event, fn);
- } else {
- jBone(el).on(event, target, fn);
- }
- });
- };
-
- for (; i < length; i++) {
- addListener(this[i]);
- }
-
- return this;
-};
-
-fn.trigger = function(event) {
- var events = [],
- i = 0,
- length = this.length,
- dispatchEvents;
-
- if (!event) {
- return this;
- }
-
- if (isString(event)) {
- events = event.split(" ").map(function(event) {
- return jBone.Event(event);
- });
- } else {
- event = event instanceof Event ? event : jBone.Event(event);
- events = [event];
- }
-
- dispatchEvents = function(el) {
- events.forEach(function(event) {
- if (!event.type) {
- return;
- }
-
- el.dispatchEvent && el.dispatchEvent(event);
- });
- };
-
- for (; i < length; i++) {
- dispatchEvents(this[i]);
- }
-
- return this;
-};
-
-fn.off = function(event, fn) {
- var i = 0,
- length = this.length,
- removeListener = function(events, eventType, index, el, e) {
- var callback;
-
- // get callback
- if ((fn && e.originfn === fn) || !fn) {
- callback = e.fn;
- }
-
- if (events[eventType][index].fn === callback) {
- el.removeEventListener(eventType, callback);
-
- // remove handler from cache
- jBone._cache.events[jBone.getData(el).jid][eventType].splice(index, 1);
- }
- },
- events, namespace, removeListeners, eventType;
-
- removeListeners = function(el) {
- var l, eventsByType, e;
-
- events = jBone.getData(el).events;
-
- if (!events) {
- return;
- }
-
- // remove all events
- if (!event && events) {
- return keys(events).forEach(function(eventType) {
- eventsByType = events[eventType];
- l = eventsByType.length;
-
- while(l--) {
- removeListener(events, eventType, l, el, eventsByType[l]);
- }
- });
- }
-
- event.split(" ").forEach(function(event) {
- eventType = event.split(".")[0];
- namespace = event.split(".").splice(1).join(".");
-
- // remove named events
- if (events[eventType]) {
- eventsByType = events[eventType];
- l = eventsByType.length;
-
- while(l--) {
- e = eventsByType[l];
- if (!namespace || (namespace && e.namespace === namespace)) {
- removeListener(events, eventType, l, el, e);
- }
- }
- }
- // remove all namespaced events
- else if (namespace) {
- keys(events).forEach(function(eventType) {
- eventsByType = events[eventType];
- l = eventsByType.length;
-
- while(l--) {
- e = eventsByType[l];
- if (e.namespace.split(".")[0] === namespace.split(".")[0]) {
- removeListener(events, eventType, l, el, e);
- }
- }
- });
- }
- });
- };
-
- for (; i < length; i++) {
- removeListeners(this[i]);
- }
-
- return this;
-};
-
-fn.find = function(selector) {
- var results = [],
- i = 0,
- length = this.length,
- finder = function(el) {
- if (isFunction(el.querySelectorAll)) {
- [].forEach.call(el.querySelectorAll(selector), function(found) {
- results.push(found);
- });
- }
- };
-
- for (; i < length; i++) {
- finder(this[i]);
- }
-
- return jBone(results);
-};
-
-fn.get = function(index) {
- return this[index];
-};
-
-fn.eq = function(index) {
- return jBone(this[index]);
-};
-
-fn.parent = function() {
- var results = [],
- parent,
- i = 0,
- length = this.length;
-
- for (; i < length; i++) {
- if (!~results.indexOf(parent = this[i].parentElement) && parent) {
- results.push(parent);
- }
- }
-
- return jBone(results);
-};
-
-fn.toArray = function() {
- return slice.call(this);
-};
-
-fn.is = function() {
- var args = arguments;
-
- return this.some(function(el) {
- return el.tagName.toLowerCase() === args[0];
- });
-};
-
-fn.has = function() {
- var args = arguments;
-
- return this.some(function(el) {
- return el.querySelectorAll(args[0]).length;
- });
-};
-
-fn.attr = function(key, value) {
- var args = arguments,
- i = 0,
- length = this.length,
- setter;
-
- if (isString(key) && args.length === 1) {
- return this[0] && this[0].getAttribute(key);
- }
-
- if (args.length === 2) {
- setter = function(el) {
- el.setAttribute(key, value);
- };
- } else if (isObject(key)) {
- setter = function(el) {
- keys(key).forEach(function(name) {
- el.setAttribute(name, key[name]);
- });
- };
- }
-
- for (; i < length; i++) {
- setter(this[i]);
- }
-
- return this;
-};
-
-fn.removeAttr = function(key) {
- var i = 0,
- length = this.length;
-
- for (; i < length; i++) {
- this[i].removeAttribute(key);
- }
-
- return this;
-};
-
-fn.val = function(value) {
- var i = 0,
- length = this.length;
-
- if (arguments.length === 0) {
- return this[0] && this[0].value;
- }
-
- for (; i < length; i++) {
- this[i].value = value;
- }
-
- return this;
-};
-
-fn.css = function(key, value) {
- var args = arguments,
- i = 0,
- length = this.length,
- setter;
-
- // Get attribute
- if (isString(key) && args.length === 1) {
- return this[0] && win.getComputedStyle(this[0])[key];
- }
-
- // Set attributes
- if (args.length === 2) {
- setter = function(el) {
- el.style[key] = value;
- };
- } else if (isObject(key)) {
- setter = function(el) {
- keys(key).forEach(function(name) {
- el.style[name] = key[name];
- });
- };
- }
-
- for (; i < length; i++) {
- setter(this[i]);
- }
-
- return this;
-};
-
-fn.data = function(key, value) {
- var args = arguments, data = {},
- i = 0,
- length = this.length,
- setter,
- setValue = function(el, key, value) {
- if (isObject(value)) {
- el.jdata = el.jdata || {};
- el.jdata[key] = value;
- } else {
- el.dataset[key] = value;
- }
- },
- getValue = function(value) {
- if (value === "true") {
- return true;
- } else if (value === "false") {
- return false;
- } else {
- return value;
- }
- };
-
- // Get all data
- if (args.length === 0) {
- this[0].jdata && (data = this[0].jdata);
-
- keys(this[0].dataset).forEach(function(key) {
- data[key] = getValue(this[0].dataset[key]);
- }, this);
-
- return data;
- }
- // Get data by name
- if (args.length === 1 && isString(key)) {
- return this[0] && getValue(this[0].dataset[key] || this[0].jdata && this[0].jdata[key]);
- }
-
- // Set data
- if (args.length === 1 && isObject(key)) {
- setter = function(el) {
- keys(key).forEach(function(name) {
- setValue(el, name, key[name]);
- });
- };
- } else if (args.length === 2) {
- setter = function(el) {
- setValue(el, key, value);
- };
- }
-
- for (; i < length; i++) {
- setter(this[i]);
- }
-
- return this;
-};
-
-fn.removeData = function(key) {
- var i = 0,
- length = this.length,
- jdata, dataset;
-
- for (; i < length; i++) {
- jdata = this[i].jdata;
- dataset = this[i].dataset;
-
- if (key) {
- jdata && jdata[key] && delete jdata[key];
- delete dataset[key];
- } else {
- for (key in jdata) {
- delete jdata[key];
- }
-
- for (key in dataset) {
- delete dataset[key];
- }
- }
- }
-
- return this;
-};
-
-fn.html = function(value) {
- var args = arguments,
- el;
-
- // add HTML into elements
- if (args.length === 1 && value !== undefined) {
- return this.empty().append(value);
- }
- // get HTML from element
- else if (args.length === 0 && (el = this[0])) {
- return el.innerHTML;
- }
-
- return this;
-};
-
-fn.append = function(appended) {
- var i = 0,
- length = this.length,
- setter;
-
- // create jBone object and then append
- if (isString(appended) && rquickExpr.exec(appended)) {
- appended = jBone(appended);
- }
- // create text node for inserting
- else if (!isObject(appended)) {
- appended = document.createTextNode(appended);
- }
-
- appended = appended instanceof jBone ? appended : jBone(appended);
-
- setter = function(el, i) {
- appended.forEach(function(node) {
- if (i) {
- el.appendChild(node.cloneNode());
- } else {
- el.appendChild(node);
- }
- });
- };
-
- for (; i < length; i++) {
- setter(this[i], i);
- }
-
- return this;
-};
-
-fn.appendTo = function(to) {
- jBone(to).append(this);
-
- return this;
-};
-
-fn.empty = function() {
- var i = 0,
- length = this.length,
- el;
-
- for (; i < length; i++) {
- el = this[i];
-
- while (el.lastChild) {
- el.removeChild(el.lastChild);
- }
- }
-
- return this;
-};
-
-fn.remove = function() {
- var i = 0,
- length = this.length,
- el;
-
- // remove all listners
- this.off();
-
- for (; i < length; i++) {
- el = this[i];
-
- // remove data and nodes
- delete el.jdata;
- el.parentNode && el.parentNode.removeChild(el);
- }
-
- return this;
-};
-
-if (typeof module === "object" && module && typeof module.exports === "object") {
- // Expose jBone as module.exports in loaders that implement the Node
- // module pattern (including browserify). Do not create the global, since
- // the user will be storing it themselves locally, and globals are frowned
- // upon in the Node module world.
- module.exports = jBone;
-}
-// Register as a AMD module
-else if (typeof define === "function" && define.amd) {
- define(function() {
- return jBone;
- });
-
- win.jBone = win.$ = jBone;
-} else if (typeof win === "object" && typeof win.document === "object") {
- win.jBone = win.$ = jBone;
-}
-
-}(window));
-
-},{}],51:[function(require,module,exports){
-var Mouse;
-
-module.exports = Mouse = {
- rel: function(e) {
- var mouseX, mouseY, rect, target;
- mouseX = e.offsetX;
- mouseY = e.offsetY;
- if (mouseX == null) {
- rect = target.getBoundingClientRect();
- target = e.target || e.srcElement;
- if (mouseX == null) {
- mouseX = e.clientX - rect.left;
- mouseY = e.clientY - rect.top;
- }
- if (mouseX == null) {
- mouseX = e.pageX - target.offsetLeft;
- mouseY = e.pageY - target.offsetTop;
- }
- if (mouseX == null) {
- console.log(e, "no mouse event defined. your browser sucks");
- return;
- }
- }
- return [mouseX, mouseY];
- },
- abs: function(e) {
- var mouseX, mouseY;
- mouseX = e.pageX;
- mouseY = e.pageY;
- if (mouseX == null) {
- mouseX = e.layerX;
- mouseY = e.layerY;
- }
- if (mouseX == null) {
- mouseX = e.clientX;
- mouseY = e.clientY;
- }
- if (mouseX == null) {
- mouseX = e.x;
- mouseY = e.y;
- }
- return [mouseX, mouseY];
- },
- wheelDelta: function(e) {
- var delta, dir;
- delta = [e.deltaX, e.deltaY];
- if (delta[0] == null) {
- dir = Math.floor(e.detail / 3);
- delta = [0, e.mozMovementX * dir];
- }
- return delta;
- }
-};
-
-},{}],52:[function(require,module,exports){
-var window = require("global/window")
-var once = require("once")
-var parseHeaders = require('parse-headers')
-
-var messages = {
- "0": "Internal XMLHttpRequest Error",
- "4": "4xx Client Error",
- "5": "5xx Server Error"
-}
-
-var XHR = window.XMLHttpRequest || noop
-var XDR = "withCredentials" in (new XHR()) ? XHR : window.XDomainRequest
-
-module.exports = createXHR
-
-function createXHR(options, callback) {
- if (typeof options === "string") {
- options = { uri: options }
- }
-
- options = options || {}
- callback = once(callback)
-
- var xhr = options.xhr || null
-
- if (!xhr) {
- if (options.cors || options.useXDR) {
- xhr = new XDR()
- }else{
- xhr = new XHR()
- }
- }
-
- var uri = xhr.url = options.uri || options.url
- var method = xhr.method = options.method || "GET"
- var body = options.body || options.data
- var headers = xhr.headers = options.headers || {}
- var sync = !!options.sync
- var isJson = false
- var key
- var load = options.response ? loadResponse : loadXhr
-
- if ("json" in options) {
- isJson = true
- headers["Accept"] = "application/json"
- if (method !== "GET" && method !== "HEAD") {
- headers["Content-Type"] = "application/json"
- body = JSON.stringify(options.json)
- }
- }
-
- xhr.onreadystatechange = readystatechange
- xhr.onload = load
- xhr.onerror = error
- // IE9 must have onprogress be set to a unique function.
- xhr.onprogress = function () {
- // IE must die
- }
- // hate IE
- xhr.ontimeout = noop
- xhr.open(method, uri, !sync)
- //backward compatibility
- if (options.withCredentials || (options.cors && options.withCredentials !== false)) {
- xhr.withCredentials = true
- }
-
- // Cannot set timeout with sync request
- if (!sync) {
- xhr.timeout = "timeout" in options ? options.timeout : 5000
- }
-
- if (xhr.setRequestHeader) {
- for(key in headers){
- if(headers.hasOwnProperty(key)){
- xhr.setRequestHeader(key, headers[key])
- }
- }
- } else if (options.headers) {
- throw new Error("Headers cannot be set on an XDomainRequest object")
- }
-
- if ("responseType" in options) {
- xhr.responseType = options.responseType
- }
-
- if ("beforeSend" in options &&
- typeof options.beforeSend === "function"
- ) {
- options.beforeSend(xhr)
- }
-
- xhr.send(body)
-
- return xhr
-
- function readystatechange() {
- if (xhr.readyState === 4) {
- load()
- }
- }
-
- function getBody() {
- // Chrome with requestType=blob throws errors arround when even testing access to responseText
- var body = null
-
- if (xhr.response) {
- body = xhr.response
- } else if (xhr.responseType === 'text' || !xhr.responseType) {
- body = xhr.responseText || xhr.responseXML
- }
-
- if (isJson) {
- try {
- body = JSON.parse(body)
- } catch (e) {}
- }
-
- return body
- }
-
- function getStatusCode() {
- return xhr.status === 1223 ? 204 : xhr.status
- }
-
- // if we're getting a none-ok statusCode, build & return an error
- function errorFromStatusCode(status) {
- var error = null
- if (status === 0 || (status >= 400 && status < 600)) {
- var message = (typeof body === "string" ? body : false) ||
- messages[String(status).charAt(0)]
- error = new Error(message)
- error.statusCode = status
- }
-
- return error
- }
-
- // will load the data & process the response in a special response object
- function loadResponse() {
- var status = getStatusCode()
- var error = errorFromStatusCode(status)
- var response = {
- body: getBody(),
- statusCode: status,
- statusText: xhr.statusText,
- raw: xhr
- }
- if(xhr.getAllResponseHeaders){ //remember xhr can in fact be XDR for CORS in IE
- response.headers = parseHeaders(xhr.getAllResponseHeaders())
- } else {
- response.headers = {}
- }
-
- callback(error, response, response.body)
- }
-
- // will load the data and add some response properties to the source xhr
- // and then respond with that
- function loadXhr() {
- var status = getStatusCode()
- var error = errorFromStatusCode(status)
-
- xhr.status = xhr.statusCode = status
- xhr.body = getBody()
- xhr.headers = parseHeaders(xhr.getAllResponseHeaders())
-
- callback(error, xhr, xhr.body)
- }
-
- function error(evt) {
- callback(evt, xhr)
- }
-}
-
-
-function noop() {}
-
-},{"global/window":53,"once":54,"parse-headers":58}],53:[function(require,module,exports){
-(function (global){
-if (typeof window !== "undefined") {
- module.exports = window;
-} else if (typeof global !== "undefined") {
- module.exports = global;
-} else if (typeof self !== "undefined"){
- module.exports = self;
-} else {
- module.exports = {};
-}
-
-}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
-},{}],54:[function(require,module,exports){
-module.exports = once
-
-once.proto = once(function () {
- Object.defineProperty(Function.prototype, 'once', {
- value: function () {
- return once(this)
- },
- configurable: true
- })
-})
-
-function once (fn) {
- var called = false
- return function () {
- if (called) return
- called = true
- return fn.apply(this, arguments)
- }
-}
-
-},{}],55:[function(require,module,exports){
-var isFunction = require('is-function')
-
-module.exports = forEach
-
-var toString = Object.prototype.toString
-var hasOwnProperty = Object.prototype.hasOwnProperty
-
-function forEach(list, iterator, context) {
- if (!isFunction(iterator)) {
- throw new TypeError('iterator must be a function')
- }
-
- if (arguments.length < 3) {
- context = this
- }
-
- if (toString.call(list) === '[object Array]')
- forEachArray(list, iterator, context)
- else if (typeof list === 'string')
- forEachString(list, iterator, context)
- else
- forEachObject(list, iterator, context)
-}
-
-function forEachArray(array, iterator, context) {
- for (var i = 0, len = array.length; i < len; i++) {
- if (hasOwnProperty.call(array, i)) {
- iterator.call(context, array[i], i, array)
- }
- }
-}
-
-function forEachString(string, iterator, context) {
- for (var i = 0, len = string.length; i < len; i++) {
- // no such thing as a sparse string.
- iterator.call(context, string.charAt(i), i, string)
- }
-}
-
-function forEachObject(object, iterator, context) {
- for (var k in object) {
- if (hasOwnProperty.call(object, k)) {
- iterator.call(context, object[k], k, object)
- }
- }
-}
-
-},{"is-function":56}],56:[function(require,module,exports){
-module.exports = isFunction
-
-var toString = Object.prototype.toString
-
-function isFunction (fn) {
- var string = toString.call(fn)
- return string === '[object Function]' ||
- (typeof fn === 'function' && string !== '[object RegExp]') ||
- (typeof window !== 'undefined' &&
- // IE8 and below
- (fn === window.setTimeout ||
- fn === window.alert ||
- fn === window.confirm ||
- fn === window.prompt))
-};
-
-},{}],57:[function(require,module,exports){
-
-exports = module.exports = trim;
-
-function trim(str){
- return str.replace(/^\s*|\s*$/g, '');
-}
-
-exports.left = function(str){
- return str.replace(/^\s*/, '');
-};
-
-exports.right = function(str){
- return str.replace(/\s*$/, '');
-};
-
-},{}],58:[function(require,module,exports){
-var trim = require('trim')
- , forEach = require('for-each')
- , isArray = function(arg) {
- return Object.prototype.toString.call(arg) === '[object Array]';
- }
-
-module.exports = function (headers) {
- if (!headers)
- return {}
-
- var result = {}
-
- forEach(
- trim(headers).split('\n')
- , function (row) {
- var index = row.indexOf(':')
- , key = trim(row.slice(0, index)).toLowerCase()
- , value = trim(row.slice(index + 1))
-
- if (typeof(result[key]) === 'undefined') {
- result[key] = value
- } else if (isArray(result[key])) {
- result[key].push(value)
- } else {
- result[key] = [ result[key], value ]
- }
- }
- )
-
- return result
-}
-},{"for-each":55,"trim":57}],59:[function(require,module,exports){
-// Underscore.js 1.7.0
-// http://underscorejs.org
-// (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
-// Underscore may be freely distributed under the MIT license.
-
-(function() {
-
- // Baseline setup
- // --------------
-
- // Establish the root object, `window` in the browser, or `exports` on the server.
- var root = this;
-
- // Save the previous value of the `_` variable.
- var previousUnderscore = root._;
-
- // Save bytes in the minified (but not gzipped) version:
- var ArrayProto = Array.prototype, ObjProto = Object.prototype, FuncProto = Function.prototype;
-
- // Create quick reference variables for speed access to core prototypes.
- var
- push = ArrayProto.push,
- slice = ArrayProto.slice,
- concat = ArrayProto.concat,
- toString = ObjProto.toString,
- hasOwnProperty = ObjProto.hasOwnProperty;
-
- // All **ECMAScript 5** native function implementations that we hope to use
- // are declared here.
- var
- nativeIsArray = Array.isArray,
- nativeKeys = Object.keys,
- nativeBind = FuncProto.bind;
-
- // Create a safe reference to the Underscore object for use below.
- var _ = function(obj) {
- if (obj instanceof _) return obj;
- if (!(this instanceof _)) return new _(obj);
- this._wrapped = obj;
- };
-
- // Export the Underscore object for **Node.js**, with
- // backwards-compatibility for the old `require()` API. If we're in
- // the browser, add `_` as a global object.
- if (typeof exports !== 'undefined') {
- if (typeof module !== 'undefined' && module.exports) {
- exports = module.exports = _;
- }
- exports._ = _;
- } else {
- root._ = _;
- }
-
- // Current version.
- _.VERSION = '1.7.0';
-
- // Internal function that returns an efficient (for current engines) version
- // of the passed-in callback, to be repeatedly applied in other Underscore
- // functions.
- var createCallback = function(func, context, argCount) {
- if (context === void 0) return func;
- switch (argCount == null ? 3 : argCount) {
- case 1: return function(value) {
- return func.call(context, value);
- };
- case 2: return function(value, other) {
- return func.call(context, value, other);
- };
- case 3: return function(value, index, collection) {
- return func.call(context, value, index, collection);
- };
- case 4: return function(accumulator, value, index, collection) {
- return func.call(context, accumulator, value, index, collection);
- };
- }
- return function() {
- return func.apply(context, arguments);
- };
- };
-
- // A mostly-internal function to generate callbacks that can be applied
- // to each element in a collection, returning the desired result — either
- // identity, an arbitrary callback, a property matcher, or a property accessor.
- _.iteratee = function(value, context, argCount) {
- if (value == null) return _.identity;
- if (_.isFunction(value)) return createCallback(value, context, argCount);
- if (_.isObject(value)) return _.matches(value);
- return _.property(value);
- };
-
- // Collection Functions
- // --------------------
-
- // The cornerstone, an `each` implementation, aka `forEach`.
- // Handles raw objects in addition to array-likes. Treats all
- // sparse array-likes as if they were dense.
- _.each = _.forEach = function(obj, iteratee, context) {
- if (obj == null) return obj;
- iteratee = createCallback(iteratee, context);
- var i, length = obj.length;
- if (length === +length) {
- for (i = 0; i < length; i++) {
- iteratee(obj[i], i, obj);
- }
- } else {
- var keys = _.keys(obj);
- for (i = 0, length = keys.length; i < length; i++) {
- iteratee(obj[keys[i]], keys[i], obj);
- }
- }
- return obj;
- };
-
- // Return the results of applying the iteratee to each element.
- _.map = _.collect = function(obj, iteratee, context) {
- if (obj == null) return [];
- iteratee = _.iteratee(iteratee, context);
- var keys = obj.length !== +obj.length && _.keys(obj),
- length = (keys || obj).length,
- results = Array(length),
- currentKey;
- for (var index = 0; index < length; index++) {
- currentKey = keys ? keys[index] : index;
- results[index] = iteratee(obj[currentKey], currentKey, obj);
- }
- return results;
- };
-
- var reduceError = 'Reduce of empty array with no initial value';
-
- // **Reduce** builds up a single result from a list of values, aka `inject`,
- // or `foldl`.
- _.reduce = _.foldl = _.inject = function(obj, iteratee, memo, context) {
- if (obj == null) obj = [];
- iteratee = createCallback(iteratee, context, 4);
- var keys = obj.length !== +obj.length && _.keys(obj),
- length = (keys || obj).length,
- index = 0, currentKey;
- if (arguments.length < 3) {
- if (!length) throw new TypeError(reduceError);
- memo = obj[keys ? keys[index++] : index++];
- }
- for (; index < length; index++) {
- currentKey = keys ? keys[index] : index;
- memo = iteratee(memo, obj[currentKey], currentKey, obj);
- }
- return memo;
- };
-
- // The right-associative version of reduce, also known as `foldr`.
- _.reduceRight = _.foldr = function(obj, iteratee, memo, context) {
- if (obj == null) obj = [];
- iteratee = createCallback(iteratee, context, 4);
- var keys = obj.length !== + obj.length && _.keys(obj),
- index = (keys || obj).length,
- currentKey;
- if (arguments.length < 3) {
- if (!index) throw new TypeError(reduceError);
- memo = obj[keys ? keys[--index] : --index];
- }
- while (index--) {
- currentKey = keys ? keys[index] : index;
- memo = iteratee(memo, obj[currentKey], currentKey, obj);
- }
- return memo;
- };
-
- // Return the first value which passes a truth test. Aliased as `detect`.
- _.find = _.detect = function(obj, predicate, context) {
- var result;
- predicate = _.iteratee(predicate, context);
- _.some(obj, function(value, index, list) {
- if (predicate(value, index, list)) {
- result = value;
- return true;
- }
- });
- return result;
- };
-
- // Return all the elements that pass a truth test.
- // Aliased as `select`.
- _.filter = _.select = function(obj, predicate, context) {
- var results = [];
- if (obj == null) return results;
- predicate = _.iteratee(predicate, context);
- _.each(obj, function(value, index, list) {
- if (predicate(value, index, list)) results.push(value);
- });
- return results;
- };
-
- // Return all the elements for which a truth test fails.
- _.reject = function(obj, predicate, context) {
- return _.filter(obj, _.negate(_.iteratee(predicate)), context);
- };
-
- // Determine whether all of the elements match a truth test.
- // Aliased as `all`.
- _.every = _.all = function(obj, predicate, context) {
- if (obj == null) return true;
- predicate = _.iteratee(predicate, context);
- var keys = obj.length !== +obj.length && _.keys(obj),
- length = (keys || obj).length,
- index, currentKey;
- for (index = 0; index < length; index++) {
- currentKey = keys ? keys[index] : index;
- if (!predicate(obj[currentKey], currentKey, obj)) return false;
- }
- return true;
- };
-
- // Determine if at least one element in the object matches a truth test.
- // Aliased as `any`.
- _.some = _.any = function(obj, predicate, context) {
- if (obj == null) return false;
- predicate = _.iteratee(predicate, context);
- var keys = obj.length !== +obj.length && _.keys(obj),
- length = (keys || obj).length,
- index, currentKey;
- for (index = 0; index < length; index++) {
- currentKey = keys ? keys[index] : index;
- if (predicate(obj[currentKey], currentKey, obj)) return true;
- }
- return false;
- };
-
- // Determine if the array or object contains a given value (using `===`).
- // Aliased as `include`.
- _.contains = _.include = function(obj, target) {
- if (obj == null) return false;
- if (obj.length !== +obj.length) obj = _.values(obj);
- return _.indexOf(obj, target) >= 0;
- };
-
- // Invoke a method (with arguments) on every item in a collection.
- _.invoke = function(obj, method) {
- var args = slice.call(arguments, 2);
- var isFunc = _.isFunction(method);
- return _.map(obj, function(value) {
- return (isFunc ? method : value[method]).apply(value, args);
- });
- };
-
- // Convenience version of a common use case of `map`: fetching a property.
- _.pluck = function(obj, key) {
- return _.map(obj, _.property(key));
- };
-
- // Convenience version of a common use case of `filter`: selecting only objects
- // containing specific `key:value` pairs.
- _.where = function(obj, attrs) {
- return _.filter(obj, _.matches(attrs));
- };
-
- // Convenience version of a common use case of `find`: getting the first object
- // containing specific `key:value` pairs.
- _.findWhere = function(obj, attrs) {
- return _.find(obj, _.matches(attrs));
- };
-
- // Return the maximum element (or element-based computation).
- _.max = function(obj, iteratee, context) {
- var result = -Infinity, lastComputed = -Infinity,
- value, computed;
- if (iteratee == null && obj != null) {
- obj = obj.length === +obj.length ? obj : _.values(obj);
- for (var i = 0, length = obj.length; i < length; i++) {
- value = obj[i];
- if (value > result) {
- result = value;
- }
- }
- } else {
- iteratee = _.iteratee(iteratee, context);
- _.each(obj, function(value, index, list) {
- computed = iteratee(value, index, list);
- if (computed > lastComputed || computed === -Infinity && result === -Infinity) {
- result = value;
- lastComputed = computed;
- }
- });
- }
- return result;
- };
-
- // Return the minimum element (or element-based computation).
- _.min = function(obj, iteratee, context) {
- var result = Infinity, lastComputed = Infinity,
- value, computed;
- if (iteratee == null && obj != null) {
- obj = obj.length === +obj.length ? obj : _.values(obj);
- for (var i = 0, length = obj.length; i < length; i++) {
- value = obj[i];
- if (value < result) {
- result = value;
- }
- }
- } else {
- iteratee = _.iteratee(iteratee, context);
- _.each(obj, function(value, index, list) {
- computed = iteratee(value, index, list);
- if (computed < lastComputed || computed === Infinity && result === Infinity) {
- result = value;
- lastComputed = computed;
- }
- });
- }
- return result;
- };
-
- // Shuffle a collection, using the modern version of the
- // [Fisher-Yates shuffle](http://en.wikipedia.org/wiki/Fisher–Yates_shuffle).
- _.shuffle = function(obj) {
- var set = obj && obj.length === +obj.length ? obj : _.values(obj);
- var length = set.length;
- var shuffled = Array(length);
- for (var index = 0, rand; index < length; index++) {
- rand = _.random(0, index);
- if (rand !== index) shuffled[index] = shuffled[rand];
- shuffled[rand] = set[index];
- }
- return shuffled;
- };
-
- // Sample **n** random values from a collection.
- // If **n** is not specified, returns a single random element.
- // The internal `guard` argument allows it to work with `map`.
- _.sample = function(obj, n, guard) {
- if (n == null || guard) {
- if (obj.length !== +obj.length) obj = _.values(obj);
- return obj[_.random(obj.length - 1)];
- }
- return _.shuffle(obj).slice(0, Math.max(0, n));
- };
-
- // Sort the object's values by a criterion produced by an iteratee.
- _.sortBy = function(obj, iteratee, context) {
- iteratee = _.iteratee(iteratee, context);
- return _.pluck(_.map(obj, function(value, index, list) {
- return {
- value: value,
- index: index,
- criteria: iteratee(value, index, list)
- };
- }).sort(function(left, right) {
- var a = left.criteria;
- var b = right.criteria;
- if (a !== b) {
- if (a > b || a === void 0) return 1;
- if (a < b || b === void 0) return -1;
- }
- return left.index - right.index;
- }), 'value');
- };
-
- // An internal function used for aggregate "group by" operations.
- var group = function(behavior) {
- return function(obj, iteratee, context) {
- var result = {};
- iteratee = _.iteratee(iteratee, context);
- _.each(obj, function(value, index) {
- var key = iteratee(value, index, obj);
- behavior(result, value, key);
- });
- return result;
- };
- };
-
- // Groups the object's values by a criterion. Pass either a string attribute
- // to group by, or a function that returns the criterion.
- _.groupBy = group(function(result, value, key) {
- if (_.has(result, key)) result[key].push(value); else result[key] = [value];
- });
-
- // Indexes the object's values by a criterion, similar to `groupBy`, but for
- // when you know that your index values will be unique.
- _.indexBy = group(function(result, value, key) {
- result[key] = value;
- });
-
- // Counts instances of an object that group by a certain criterion. Pass
- // either a string attribute to count by, or a function that returns the
- // criterion.
- _.countBy = group(function(result, value, key) {
- if (_.has(result, key)) result[key]++; else result[key] = 1;
- });
-
- // Use a comparator function to figure out the smallest index at which
- // an object should be inserted so as to maintain order. Uses binary search.
- _.sortedIndex = function(array, obj, iteratee, context) {
- iteratee = _.iteratee(iteratee, context, 1);
- var value = iteratee(obj);
- var low = 0, high = array.length;
- while (low < high) {
- var mid = low + high >>> 1;
- if (iteratee(array[mid]) < value) low = mid + 1; else high = mid;
- }
- return low;
- };
-
- // Safely create a real, live array from anything iterable.
- _.toArray = function(obj) {
- if (!obj) return [];
- if (_.isArray(obj)) return slice.call(obj);
- if (obj.length === +obj.length) return _.map(obj, _.identity);
- return _.values(obj);
- };
-
- // Return the number of elements in an object.
- _.size = function(obj) {
- if (obj == null) return 0;
- return obj.length === +obj.length ? obj.length : _.keys(obj).length;
- };
-
- // Split a collection into two arrays: one whose elements all satisfy the given
- // predicate, and one whose elements all do not satisfy the predicate.
- _.partition = function(obj, predicate, context) {
- predicate = _.iteratee(predicate, context);
- var pass = [], fail = [];
- _.each(obj, function(value, key, obj) {
- (predicate(value, key, obj) ? pass : fail).push(value);
- });
- return [pass, fail];
- };
-
- // Array Functions
- // ---------------
-
- // Get the first element of an array. Passing **n** will return the first N
- // values in the array. Aliased as `head` and `take`. The **guard** check
- // allows it to work with `_.map`.
- _.first = _.head = _.take = function(array, n, guard) {
- if (array == null) return void 0;
- if (n == null || guard) return array[0];
- if (n < 0) return [];
- return slice.call(array, 0, n);
- };
-
- // Returns everything but the last entry of the array. Especially useful on
- // the arguments object. Passing **n** will return all the values in
- // the array, excluding the last N. The **guard** check allows it to work with
- // `_.map`.
- _.initial = function(array, n, guard) {
- return slice.call(array, 0, Math.max(0, array.length - (n == null || guard ? 1 : n)));
- };
-
- // Get the last element of an array. Passing **n** will return the last N
- // values in the array. The **guard** check allows it to work with `_.map`.
- _.last = function(array, n, guard) {
- if (array == null) return void 0;
- if (n == null || guard) return array[array.length - 1];
- return slice.call(array, Math.max(array.length - n, 0));
- };
-
- // Returns everything but the first entry of the array. Aliased as `tail` and `drop`.
- // Especially useful on the arguments object. Passing an **n** will return
- // the rest N values in the array. The **guard**
- // check allows it to work with `_.map`.
- _.rest = _.tail = _.drop = function(array, n, guard) {
- return slice.call(array, n == null || guard ? 1 : n);
- };
-
- // Trim out all falsy values from an array.
- _.compact = function(array) {
- return _.filter(array, _.identity);
- };
-
- // Internal implementation of a recursive `flatten` function.
- var flatten = function(input, shallow, strict, output) {
- if (shallow && _.every(input, _.isArray)) {
- return concat.apply(output, input);
- }
- for (var i = 0, length = input.length; i < length; i++) {
- var value = input[i];
- if (!_.isArray(value) && !_.isArguments(value)) {
- if (!strict) output.push(value);
- } else if (shallow) {
- push.apply(output, value);
- } else {
- flatten(value, shallow, strict, output);
- }
- }
- return output;
- };
-
- // Flatten out an array, either recursively (by default), or just one level.
- _.flatten = function(array, shallow) {
- return flatten(array, shallow, false, []);
- };
-
- // Return a version of the array that does not contain the specified value(s).
- _.without = function(array) {
- return _.difference(array, slice.call(arguments, 1));
- };
-
- // Produce a duplicate-free version of the array. If the array has already
- // been sorted, you have the option of using a faster algorithm.
- // Aliased as `unique`.
- _.uniq = _.unique = function(array, isSorted, iteratee, context) {
- if (array == null) return [];
- if (!_.isBoolean(isSorted)) {
- context = iteratee;
- iteratee = isSorted;
- isSorted = false;
- }
- if (iteratee != null) iteratee = _.iteratee(iteratee, context);
- var result = [];
- var seen = [];
- for (var i = 0, length = array.length; i < length; i++) {
- var value = array[i];
- if (isSorted) {
- if (!i || seen !== value) result.push(value);
- seen = value;
- } else if (iteratee) {
- var computed = iteratee(value, i, array);
- if (_.indexOf(seen, computed) < 0) {
- seen.push(computed);
- result.push(value);
- }
- } else if (_.indexOf(result, value) < 0) {
- result.push(value);
- }
- }
- return result;
- };
-
- // Produce an array that contains the union: each distinct element from all of
- // the passed-in arrays.
- _.union = function() {
- return _.uniq(flatten(arguments, true, true, []));
- };
-
- // Produce an array that contains every item shared between all the
- // passed-in arrays.
- _.intersection = function(array) {
- if (array == null) return [];
- var result = [];
- var argsLength = arguments.length;
- for (var i = 0, length = array.length; i < length; i++) {
- var item = array[i];
- if (_.contains(result, item)) continue;
- for (var j = 1; j < argsLength; j++) {
- if (!_.contains(arguments[j], item)) break;
- }
- if (j === argsLength) result.push(item);
- }
- return result;
- };
-
- // Take the difference between one array and a number of other arrays.
- // Only the elements present in just the first array will remain.
- _.difference = function(array) {
- var rest = flatten(slice.call(arguments, 1), true, true, []);
- return _.filter(array, function(value){
- return !_.contains(rest, value);
- });
- };
-
- // Zip together multiple lists into a single array -- elements that share
- // an index go together.
- _.zip = function(array) {
- if (array == null) return [];
- var length = _.max(arguments, 'length').length;
- var results = Array(length);
- for (var i = 0; i < length; i++) {
- results[i] = _.pluck(arguments, i);
- }
- return results;
- };
-
- // Converts lists into objects. Pass either a single array of `[key, value]`
- // pairs, or two parallel arrays of the same length -- one of keys, and one of
- // the corresponding values.
- _.object = function(list, values) {
- if (list == null) return {};
- var result = {};
- for (var i = 0, length = list.length; i < length; i++) {
- if (values) {
- result[list[i]] = values[i];
- } else {
- result[list[i][0]] = list[i][1];
- }
- }
- return result;
- };
-
- // Return the position of the first occurrence of an item in an array,
- // or -1 if the item is not included in the array.
- // If the array is large and already in sort order, pass `true`
- // for **isSorted** to use binary search.
- _.indexOf = function(array, item, isSorted) {
- if (array == null) return -1;
- var i = 0, length = array.length;
- if (isSorted) {
- if (typeof isSorted == 'number') {
- i = isSorted < 0 ? Math.max(0, length + isSorted) : isSorted;
- } else {
- i = _.sortedIndex(array, item);
- return array[i] === item ? i : -1;
- }
- }
- for (; i < length; i++) if (array[i] === item) return i;
- return -1;
- };
-
- _.lastIndexOf = function(array, item, from) {
- if (array == null) return -1;
- var idx = array.length;
- if (typeof from == 'number') {
- idx = from < 0 ? idx + from + 1 : Math.min(idx, from + 1);
- }
- while (--idx >= 0) if (array[idx] === item) return idx;
- return -1;
- };
-
- // Generate an integer Array containing an arithmetic progression. A port of
- // the native Python `range()` function. See
- // [the Python documentation](http://docs.python.org/library/functions.html#range).
- _.range = function(start, stop, step) {
- if (arguments.length <= 1) {
- stop = start || 0;
- start = 0;
- }
- step = step || 1;
-
- var length = Math.max(Math.ceil((stop - start) / step), 0);
- var range = Array(length);
-
- for (var idx = 0; idx < length; idx++, start += step) {
- range[idx] = start;
- }
-
- return range;
- };
-
- // Function (ahem) Functions
- // ------------------
-
- // Reusable constructor function for prototype setting.
- var Ctor = function(){};
-
- // Create a function bound to a given object (assigning `this`, and arguments,
- // optionally). Delegates to **ECMAScript 5**'s native `Function.bind` if
- // available.
- _.bind = function(func, context) {
- var args, bound;
- if (nativeBind && func.bind === nativeBind) return nativeBind.apply(func, slice.call(arguments, 1));
- if (!_.isFunction(func)) throw new TypeError('Bind must be called on a function');
- args = slice.call(arguments, 2);
- bound = function() {
- if (!(this instanceof bound)) return func.apply(context, args.concat(slice.call(arguments)));
- Ctor.prototype = func.prototype;
- var self = new Ctor;
- Ctor.prototype = null;
- var result = func.apply(self, args.concat(slice.call(arguments)));
- if (_.isObject(result)) return result;
- return self;
- };
- return bound;
- };
-
- // Partially apply a function by creating a version that has had some of its
- // arguments pre-filled, without changing its dynamic `this` context. _ acts
- // as a placeholder, allowing any combination of arguments to be pre-filled.
- _.partial = function(func) {
- var boundArgs = slice.call(arguments, 1);
- return function() {
- var position = 0;
- var args = boundArgs.slice();
- for (var i = 0, length = args.length; i < length; i++) {
- if (args[i] === _) args[i] = arguments[position++];
- }
- while (position < arguments.length) args.push(arguments[position++]);
- return func.apply(this, args);
- };
- };
-
- // Bind a number of an object's methods to that object. Remaining arguments
- // are the method names to be bound. Useful for ensuring that all callbacks
- // defined on an object belong to it.
- _.bindAll = function(obj) {
- var i, length = arguments.length, key;
- if (length <= 1) throw new Error('bindAll must be passed function names');
- for (i = 1; i < length; i++) {
- key = arguments[i];
- obj[key] = _.bind(obj[key], obj);
- }
- return obj;
- };
-
- // Memoize an expensive function by storing its results.
- _.memoize = function(func, hasher) {
- var memoize = function(key) {
- var cache = memoize.cache;
- var address = hasher ? hasher.apply(this, arguments) : key;
- if (!_.has(cache, address)) cache[address] = func.apply(this, arguments);
- return cache[address];
- };
- memoize.cache = {};
- return memoize;
- };
-
- // Delays a function for the given number of milliseconds, and then calls
- // it with the arguments supplied.
- _.delay = function(func, wait) {
- var args = slice.call(arguments, 2);
- return setTimeout(function(){
- return func.apply(null, args);
- }, wait);
- };
-
- // Defers a function, scheduling it to run after the current call stack has
- // cleared.
- _.defer = function(func) {
- return _.delay.apply(_, [func, 1].concat(slice.call(arguments, 1)));
- };
-
- // Returns a function, that, when invoked, will only be triggered at most once
- // during a given window of time. Normally, the throttled function will run
- // as much as it can, without ever going more than once per `wait` duration;
- // but if you'd like to disable the execution on the leading edge, pass
- // `{leading: false}`. To disable execution on the trailing edge, ditto.
- _.throttle = function(func, wait, options) {
- var context, args, result;
- var timeout = null;
- var previous = 0;
- if (!options) options = {};
- var later = function() {
- previous = options.leading === false ? 0 : _.now();
- timeout = null;
- result = func.apply(context, args);
- if (!timeout) context = args = null;
- };
- return function() {
- var now = _.now();
- if (!previous && options.leading === false) previous = now;
- var remaining = wait - (now - previous);
- context = this;
- args = arguments;
- if (remaining <= 0 || remaining > wait) {
- clearTimeout(timeout);
- timeout = null;
- previous = now;
- result = func.apply(context, args);
- if (!timeout) context = args = null;
- } else if (!timeout && options.trailing !== false) {
- timeout = setTimeout(later, remaining);
- }
- return result;
- };
- };
-
- // Returns a function, that, as long as it continues to be invoked, will not
- // be triggered. The function will be called after it stops being called for
- // N milliseconds. If `immediate` is passed, trigger the function on the
- // leading edge, instead of the trailing.
- _.debounce = function(func, wait, immediate) {
- var timeout, args, context, timestamp, result;
-
- var later = function() {
- var last = _.now() - timestamp;
-
- if (last < wait && last > 0) {
- timeout = setTimeout(later, wait - last);
- } else {
- timeout = null;
- if (!immediate) {
- result = func.apply(context, args);
- if (!timeout) context = args = null;
- }
- }
- };
-
- return function() {
- context = this;
- args = arguments;
- timestamp = _.now();
- var callNow = immediate && !timeout;
- if (!timeout) timeout = setTimeout(later, wait);
- if (callNow) {
- result = func.apply(context, args);
- context = args = null;
- }
-
- return result;
- };
- };
-
- // Returns the first function passed as an argument to the second,
- // allowing you to adjust arguments, run code before and after, and
- // conditionally execute the original function.
- _.wrap = function(func, wrapper) {
- return _.partial(wrapper, func);
- };
-
- // Returns a negated version of the passed-in predicate.
- _.negate = function(predicate) {
- return function() {
- return !predicate.apply(this, arguments);
- };
- };
-
- // Returns a function that is the composition of a list of functions, each
- // consuming the return value of the function that follows.
- _.compose = function() {
- var args = arguments;
- var start = args.length - 1;
- return function() {
- var i = start;
- var result = args[start].apply(this, arguments);
- while (i--) result = args[i].call(this, result);
- return result;
- };
- };
-
- // Returns a function that will only be executed after being called N times.
- _.after = function(times, func) {
- return function() {
- if (--times < 1) {
- return func.apply(this, arguments);
- }
- };
- };
-
- // Returns a function that will only be executed before being called N times.
- _.before = function(times, func) {
- var memo;
- return function() {
- if (--times > 0) {
- memo = func.apply(this, arguments);
- } else {
- func = null;
- }
- return memo;
- };
- };
-
- // Returns a function that will be executed at most one time, no matter how
- // often you call it. Useful for lazy initialization.
- _.once = _.partial(_.before, 2);
-
- // Object Functions
- // ----------------
-
- // Retrieve the names of an object's properties.
- // Delegates to **ECMAScript 5**'s native `Object.keys`
- _.keys = function(obj) {
- if (!_.isObject(obj)) return [];
- if (nativeKeys) return nativeKeys(obj);
- var keys = [];
- for (var key in obj) if (_.has(obj, key)) keys.push(key);
- return keys;
- };
-
- // Retrieve the values of an object's properties.
- _.values = function(obj) {
- var keys = _.keys(obj);
- var length = keys.length;
- var values = Array(length);
- for (var i = 0; i < length; i++) {
- values[i] = obj[keys[i]];
- }
- return values;
- };
-
- // Convert an object into a list of `[key, value]` pairs.
- _.pairs = function(obj) {
- var keys = _.keys(obj);
- var length = keys.length;
- var pairs = Array(length);
- for (var i = 0; i < length; i++) {
- pairs[i] = [keys[i], obj[keys[i]]];
- }
- return pairs;
- };
-
- // Invert the keys and values of an object. The values must be serializable.
- _.invert = function(obj) {
- var result = {};
- var keys = _.keys(obj);
- for (var i = 0, length = keys.length; i < length; i++) {
- result[obj[keys[i]]] = keys[i];
- }
- return result;
- };
-
- // Return a sorted list of the function names available on the object.
- // Aliased as `methods`
- _.functions = _.methods = function(obj) {
- var names = [];
- for (var key in obj) {
- if (_.isFunction(obj[key])) names.push(key);
- }
- return names.sort();
- };
-
- // Extend a given object with all the properties in passed-in object(s).
- _.extend = function(obj) {
- if (!_.isObject(obj)) return obj;
- var source, prop;
- for (var i = 1, length = arguments.length; i < length; i++) {
- source = arguments[i];
- for (prop in source) {
- if (hasOwnProperty.call(source, prop)) {
- obj[prop] = source[prop];
- }
- }
- }
- return obj;
- };
-
- // Return a copy of the object only containing the whitelisted properties.
- _.pick = function(obj, iteratee, context) {
- var result = {}, key;
- if (obj == null) return result;
- if (_.isFunction(iteratee)) {
- iteratee = createCallback(iteratee, context);
- for (key in obj) {
- var value = obj[key];
- if (iteratee(value, key, obj)) result[key] = value;
- }
- } else {
- var keys = concat.apply([], slice.call(arguments, 1));
- obj = new Object(obj);
- for (var i = 0, length = keys.length; i < length; i++) {
- key = keys[i];
- if (key in obj) result[key] = obj[key];
- }
- }
- return result;
- };
-
- // Return a copy of the object without the blacklisted properties.
- _.omit = function(obj, iteratee, context) {
- if (_.isFunction(iteratee)) {
- iteratee = _.negate(iteratee);
- } else {
- var keys = _.map(concat.apply([], slice.call(arguments, 1)), String);
- iteratee = function(value, key) {
- return !_.contains(keys, key);
- };
- }
- return _.pick(obj, iteratee, context);
- };
-
- // Fill in a given object with default properties.
- _.defaults = function(obj) {
- if (!_.isObject(obj)) return obj;
- for (var i = 1, length = arguments.length; i < length; i++) {
- var source = arguments[i];
- for (var prop in source) {
- if (obj[prop] === void 0) obj[prop] = source[prop];
- }
- }
- return obj;
- };
-
- // Create a (shallow-cloned) duplicate of an object.
- _.clone = function(obj) {
- if (!_.isObject(obj)) return obj;
- return _.isArray(obj) ? obj.slice() : _.extend({}, obj);
- };
-
- // Invokes interceptor with the obj, and then returns obj.
- // The primary purpose of this method is to "tap into" a method chain, in
- // order to perform operations on intermediate results within the chain.
- _.tap = function(obj, interceptor) {
- interceptor(obj);
- return obj;
- };
-
- // Internal recursive comparison function for `isEqual`.
- var eq = function(a, b, aStack, bStack) {
- // Identical objects are equal. `0 === -0`, but they aren't identical.
- // See the [Harmony `egal` proposal](http://wiki.ecmascript.org/doku.php?id=harmony:egal).
- if (a === b) return a !== 0 || 1 / a === 1 / b;
- // A strict comparison is necessary because `null == undefined`.
- if (a == null || b == null) return a === b;
- // Unwrap any wrapped objects.
- if (a instanceof _) a = a._wrapped;
- if (b instanceof _) b = b._wrapped;
- // Compare `[[Class]]` names.
- var className = toString.call(a);
- if (className !== toString.call(b)) return false;
- switch (className) {
- // Strings, numbers, regular expressions, dates, and booleans are compared by value.
- case '[object RegExp]':
- // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')
- case '[object String]':
- // Primitives and their corresponding object wrappers are equivalent; thus, `"5"` is
- // equivalent to `new String("5")`.
- return '' + a === '' + b;
- case '[object Number]':
- // `NaN`s are equivalent, but non-reflexive.
- // Object(NaN) is equivalent to NaN
- if (+a !== +a) return +b !== +b;
- // An `egal` comparison is performed for other numeric values.
- return +a === 0 ? 1 / +a === 1 / b : +a === +b;
- case '[object Date]':
- case '[object Boolean]':
- // Coerce dates and booleans to numeric primitive values. Dates are compared by their
- // millisecond representations. Note that invalid dates with millisecond representations
- // of `NaN` are not equivalent.
- return +a === +b;
- }
- if (typeof a != 'object' || typeof b != 'object') return false;
- // Assume equality for cyclic structures. The algorithm for detecting cyclic
- // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.
- var length = aStack.length;
- while (length--) {
- // Linear search. Performance is inversely proportional to the number of
- // unique nested structures.
- if (aStack[length] === a) return bStack[length] === b;
- }
- // Objects with different constructors are not equivalent, but `Object`s
- // from different frames are.
- var aCtor = a.constructor, bCtor = b.constructor;
- if (
- aCtor !== bCtor &&
- // Handle Object.create(x) cases
- 'constructor' in a && 'constructor' in b &&
- !(_.isFunction(aCtor) && aCtor instanceof aCtor &&
- _.isFunction(bCtor) && bCtor instanceof bCtor)
- ) {
- return false;
- }
- // Add the first object to the stack of traversed objects.
- aStack.push(a);
- bStack.push(b);
- var size, result;
- // Recursively compare objects and arrays.
- if (className === '[object Array]') {
- // Compare array lengths to determine if a deep comparison is necessary.
- size = a.length;
- result = size === b.length;
- if (result) {
- // Deep compare the contents, ignoring non-numeric properties.
- while (size--) {
- if (!(result = eq(a[size], b[size], aStack, bStack))) break;
- }
- }
- } else {
- // Deep compare objects.
- var keys = _.keys(a), key;
- size = keys.length;
- // Ensure that both objects contain the same number of properties before comparing deep equality.
- result = _.keys(b).length === size;
- if (result) {
- while (size--) {
- // Deep compare each member
- key = keys[size];
- if (!(result = _.has(b, key) && eq(a[key], b[key], aStack, bStack))) break;
- }
- }
- }
- // Remove the first object from the stack of traversed objects.
- aStack.pop();
- bStack.pop();
- return result;
- };
-
- // Perform a deep comparison to check if two objects are equal.
- _.isEqual = function(a, b) {
- return eq(a, b, [], []);
- };
-
- // Is a given array, string, or object empty?
- // An "empty" object has no enumerable own-properties.
- _.isEmpty = function(obj) {
- if (obj == null) return true;
- if (_.isArray(obj) || _.isString(obj) || _.isArguments(obj)) return obj.length === 0;
- for (var key in obj) if (_.has(obj, key)) return false;
- return true;
- };
-
- // Is a given value a DOM element?
- _.isElement = function(obj) {
- return !!(obj && obj.nodeType === 1);
- };
-
- // Is a given value an array?
- // Delegates to ECMA5's native Array.isArray
- _.isArray = nativeIsArray || function(obj) {
- return toString.call(obj) === '[object Array]';
- };
-
- // Is a given variable an object?
- _.isObject = function(obj) {
- var type = typeof obj;
- return type === 'function' || type === 'object' && !!obj;
- };
-
- // Add some isType methods: isArguments, isFunction, isString, isNumber, isDate, isRegExp.
- _.each(['Arguments', 'Function', 'String', 'Number', 'Date', 'RegExp'], function(name) {
- _['is' + name] = function(obj) {
- return toString.call(obj) === '[object ' + name + ']';
- };
- });
-
- // Define a fallback version of the method in browsers (ahem, IE), where
- // there isn't any inspectable "Arguments" type.
- if (!_.isArguments(arguments)) {
- _.isArguments = function(obj) {
- return _.has(obj, 'callee');
- };
- }
-
- // Optimize `isFunction` if appropriate. Work around an IE 11 bug.
- if (typeof /./ !== 'function') {
- _.isFunction = function(obj) {
- return typeof obj == 'function' || false;
- };
- }
-
- // Is a given object a finite number?
- _.isFinite = function(obj) {
- return isFinite(obj) && !isNaN(parseFloat(obj));
- };
-
- // Is the given value `NaN`? (NaN is the only number which does not equal itself).
- _.isNaN = function(obj) {
- return _.isNumber(obj) && obj !== +obj;
- };
-
- // Is a given value a boolean?
- _.isBoolean = function(obj) {
- return obj === true || obj === false || toString.call(obj) === '[object Boolean]';
- };
-
- // Is a given value equal to null?
- _.isNull = function(obj) {
- return obj === null;
- };
-
- // Is a given variable undefined?
- _.isUndefined = function(obj) {
- return obj === void 0;
- };
-
- // Shortcut function for checking if an object has a given property directly
- // on itself (in other words, not on a prototype).
- _.has = function(obj, key) {
- return obj != null && hasOwnProperty.call(obj, key);
- };
-
- // Utility Functions
- // -----------------
-
- // Run Underscore.js in *noConflict* mode, returning the `_` variable to its
- // previous owner. Returns a reference to the Underscore object.
- _.noConflict = function() {
- root._ = previousUnderscore;
- return this;
- };
-
- // Keep the identity function around for default iteratees.
- _.identity = function(value) {
- return value;
- };
-
- _.constant = function(value) {
- return function() {
- return value;
- };
- };
-
- _.noop = function(){};
-
- _.property = function(key) {
- return function(obj) {
- return obj[key];
- };
- };
-
- // Returns a predicate for checking whether an object has a given set of `key:value` pairs.
- _.matches = function(attrs) {
- var pairs = _.pairs(attrs), length = pairs.length;
- return function(obj) {
- if (obj == null) return !length;
- obj = new Object(obj);
- for (var i = 0; i < length; i++) {
- var pair = pairs[i], key = pair[0];
- if (pair[1] !== obj[key] || !(key in obj)) return false;
- }
- return true;
- };
- };
-
- // Run a function **n** times.
- _.times = function(n, iteratee, context) {
- var accum = Array(Math.max(0, n));
- iteratee = createCallback(iteratee, context, 1);
- for (var i = 0; i < n; i++) accum[i] = iteratee(i);
- return accum;
- };
-
- // Return a random integer between min and max (inclusive).
- _.random = function(min, max) {
- if (max == null) {
- max = min;
- min = 0;
- }
- return min + Math.floor(Math.random() * (max - min + 1));
- };
-
- // A (possibly faster) way to get the current timestamp as an integer.
- _.now = Date.now || function() {
- return new Date().getTime();
- };
-
- // List of HTML entities for escaping.
- var escapeMap = {
- '&': '&',
- '<': '<',
- '>': '>',
- '"': '"',
- "'": ''',
- '`': '`'
- };
- var unescapeMap = _.invert(escapeMap);
-
- // Functions for escaping and unescaping strings to/from HTML interpolation.
- var createEscaper = function(map) {
- var escaper = function(match) {
- return map[match];
- };
- // Regexes for identifying a key that needs to be escaped
- var source = '(?:' + _.keys(map).join('|') + ')';
- var testRegexp = RegExp(source);
- var replaceRegexp = RegExp(source, 'g');
- return function(string) {
- string = string == null ? '' : '' + string;
- return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string;
- };
- };
- _.escape = createEscaper(escapeMap);
- _.unescape = createEscaper(unescapeMap);
-
- // If the value of the named `property` is a function then invoke it with the
- // `object` as context; otherwise, return it.
- _.result = function(object, property) {
- if (object == null) return void 0;
- var value = object[property];
- return _.isFunction(value) ? object[property]() : value;
- };
-
- // Generate a unique integer id (unique within the entire client session).
- // Useful for temporary DOM ids.
- var idCounter = 0;
- _.uniqueId = function(prefix) {
- var id = ++idCounter + '';
- return prefix ? prefix + id : id;
- };
-
- // By default, Underscore uses ERB-style template delimiters, change the
- // following template settings to use alternative delimiters.
- _.templateSettings = {
- evaluate : /<%([\s\S]+?)%>/g,
- interpolate : /<%=([\s\S]+?)%>/g,
- escape : /<%-([\s\S]+?)%>/g
- };
-
- // When customizing `templateSettings`, if you don't want to define an
- // interpolation, evaluation or escaping regex, we need one that is
- // guaranteed not to match.
- var noMatch = /(.)^/;
-
- // Certain characters need to be escaped so that they can be put into a
- // string literal.
- var escapes = {
- "'": "'",
- '\\': '\\',
- '\r': 'r',
- '\n': 'n',
- '\u2028': 'u2028',
- '\u2029': 'u2029'
- };
-
- var escaper = /\\|'|\r|\n|\u2028|\u2029/g;
-
- var escapeChar = function(match) {
- return '\\' + escapes[match];
- };
-
- // JavaScript micro-templating, similar to John Resig's implementation.
- // Underscore templating handles arbitrary delimiters, preserves whitespace,
- // and correctly escapes quotes within interpolated code.
- // NB: `oldSettings` only exists for backwards compatibility.
- _.template = function(text, settings, oldSettings) {
- if (!settings && oldSettings) settings = oldSettings;
- settings = _.defaults({}, settings, _.templateSettings);
-
- // Combine delimiters into one regular expression via alternation.
- var matcher = RegExp([
- (settings.escape || noMatch).source,
- (settings.interpolate || noMatch).source,
- (settings.evaluate || noMatch).source
- ].join('|') + '|$', 'g');
-
- // Compile the template source, escaping string literals appropriately.
- var index = 0;
- var source = "__p+='";
- text.replace(matcher, function(match, escape, interpolate, evaluate, offset) {
- source += text.slice(index, offset).replace(escaper, escapeChar);
- index = offset + match.length;
-
- if (escape) {
- source += "'+\n((__t=(" + escape + "))==null?'':_.escape(__t))+\n'";
- } else if (interpolate) {
- source += "'+\n((__t=(" + interpolate + "))==null?'':__t)+\n'";
- } else if (evaluate) {
- source += "';\n" + evaluate + "\n__p+='";
- }
-
- // Adobe VMs need the match returned to produce the correct offest.
- return match;
- });
- source += "';\n";
-
- // If a variable is not specified, place data values in local scope.
- if (!settings.variable) source = 'with(obj||{}){\n' + source + '}\n';
-
- source = "var __t,__p='',__j=Array.prototype.join," +
- "print=function(){__p+=__j.call(arguments,'');};\n" +
- source + 'return __p;\n';
-
- try {
- var render = new Function(settings.variable || 'obj', '_', source);
- } catch (e) {
- e.source = source;
- throw e;
- }
-
- var template = function(data) {
- return render.call(this, data, _);
- };
-
- // Provide the compiled source as a convenience for precompilation.
- var argument = settings.variable || 'obj';
- template.source = 'function(' + argument + '){\n' + source + '}';
-
- return template;
- };
-
- // Add a "chain" function. Start chaining a wrapped Underscore object.
- _.chain = function(obj) {
- var instance = _(obj);
- instance._chain = true;
- return instance;
- };
-
- // OOP
- // ---------------
- // If Underscore is called as a function, it returns a wrapped object that
- // can be used OO-style. This wrapper holds altered versions of all the
- // underscore functions. Wrapped objects may be chained.
-
- // Helper function to continue chaining intermediate results.
- var result = function(obj) {
- return this._chain ? _(obj).chain() : obj;
- };
-
- // Add your own custom functions to the Underscore object.
- _.mixin = function(obj) {
- _.each(_.functions(obj), function(name) {
- var func = _[name] = obj[name];
- _.prototype[name] = function() {
- var args = [this._wrapped];
- push.apply(args, arguments);
- return result.call(this, func.apply(_, args));
- };
- });
- };
-
- // Add all of the Underscore functions to the wrapper object.
- _.mixin(_);
-
- // Add all mutator Array functions to the wrapper.
- _.each(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {
- var method = ArrayProto[name];
- _.prototype[name] = function() {
- var obj = this._wrapped;
- method.apply(obj, arguments);
- if ((name === 'shift' || name === 'splice') && obj.length === 0) delete obj[0];
- return result.call(this, obj);
- };
- });
-
- // Add all accessor Array functions to the wrapper.
- _.each(['concat', 'join', 'slice'], function(name) {
- var method = ArrayProto[name];
- _.prototype[name] = function() {
- return result.call(this, method.apply(this._wrapped, arguments));
- };
- });
-
- // Extracts the result from a wrapped and chained object.
- _.prototype.value = function() {
- return this._wrapped;
- };
-
- // AMD registration happens at the end for compatibility with AMD loaders
- // that may not enforce next-turn semantics on modules. Even though general
- // practice for AMD registration is to be anonymous, underscore registers
- // as a named module because, like jQuery, it is a base library that is
- // popular enough to be bundled in a third party lib, but not be part of
- // an AMD load request. Those cases could generate an error when an
- // anonymous define() is called outside of a loader request.
- if (typeof define === 'function' && define.amd) {
- define('underscore', [], function() {
- return _;
- });
- }
-}.call(this));
-
-},{}],60:[function(require,module,exports){
-var _;
-
-_ = require("underscore");
-
-module.exports = function(seqs) {
- var occs;
- seqs = seqs.map(function(el) {
- return el.get("seq");
- });
- occs = new Array(seqs.length);
- _.each(seqs, function(el, i) {
- return _.each(el, function(char, pos) {
- if (occs[pos] == null) {
- occs[pos] = {};
- }
- if (occs[pos][char] == null) {
- occs[pos][char] = 0;
- }
- return occs[pos][char]++;
- });
- });
- return _.reduce(occs, function(memo, occ) {
- var keys;
- keys = _.keys(occ);
- return memo += _.max(keys, function(key) {
- return occ[key];
- });
- }, "");
-};
-
-
-
-},{"underscore":59}],61:[function(require,module,exports){
-var identitiyCalc;
-
-module.exports = identitiyCalc = function(seqs, consensus) {
- if (consensus === void 0) {
- console.warn("bug on consenus calc");
- return;
- }
- return seqs.each(function(seqObj) {
- var i, matches, seq, total, _i, _ref;
- seq = seqObj.get("seq");
- matches = 0;
- total = 0;
- for (i = _i = 0, _ref = seq.length - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; i = 0 <= _ref ? ++_i : --_i) {
- if (seq[i] !== "-" && consensus[i] !== "-") {
- total++;
- if (seq[i] === consensus[i]) {
- matches++;
- }
- }
- }
- return seqObj.set("identity", matches / total);
- });
-};
-
-
-
-},{}],62:[function(require,module,exports){
-module.exports.consensus = require("./ConsensusCalc");
-
-
-
-},{"./ConsensusCalc":60}],63:[function(require,module,exports){
-var Colorator, Model;
-
-Model = require("backbone-thin").Model;
-
-module.exports = Colorator = Model.extend({
- defaults: {
- scheme: "taylor",
- colorBackground: true,
- showLowerCase: true,
- opacity: 0.6
- }
-});
-
-
-
-},{"backbone-thin":5}],64:[function(require,module,exports){
-var Columns, Model, consenus, _;
-
-Model = require("backbone-thin").Model;
-
-consenus = require("../algo/ConsensusCalc");
-
-_ = require("underscore");
-
-module.exports = Columns = Model.extend({
- defaults: {
- scaling: "lin"
- },
- initialize: function() {
- if (this.get("hidden") == null) {
- return this.set("hidden", []);
- }
- },
- calcHiddenColumns: function(n) {
- var hidden, i, newX, _i, _len;
- hidden = this.get("hidden");
- newX = n;
- for (_i = 0, _len = hidden.length; _i < _len; _i++) {
- i = hidden[_i];
- if (i <= newX) {
- newX++;
- }
- }
- return newX - n;
- },
- _calcConservationPre: function(seqs) {
- var cons, matches, nMax, total;
- console.log(seqs.length);
- if (seqs.length > 1000) {
- return;
- }
- cons = consenus(seqs);
- seqs = seqs.map(function(el) {
- return el.get("seq");
- });
- nMax = (_.max(seqs, function(el) {
- return el.length;
- })).length;
- total = new Array(nMax);
- matches = new Array(nMax);
- _.each(seqs, function(el, i) {
- return _.each(el, function(char, pos) {
- total[pos] = total[pos] + 1 || 1;
- if (cons[pos] === char) {
- return matches[pos] = matches[pos] + 1 || 1;
- }
- });
- });
- return [matches, total, nMax];
- },
- calcConservation: function(seqs) {
- if (this.attributes.scaling === "exp") {
- return this.calcConservationExp(seqs);
- } else if (this.attributes.scaling === "log") {
- return this.calcConservationLog(seqs);
- } else if (this.attributes.scaling === "lin") {
- return this.calcConservationLin(seqs);
- }
- },
- calcConservationLin: function(seqs) {
- var i, matches, nMax, total, _i, _ref, _ref1;
- _ref = this._calcConservationPre(seqs), matches = _ref[0], total = _ref[1], nMax = _ref[2];
- for (i = _i = 0, _ref1 = nMax - 1; 0 <= _ref1 ? _i <= _ref1 : _i >= _ref1; i = 0 <= _ref1 ? ++_i : --_i) {
- matches[i] = matches[i] / total[i];
- }
- this.set("conserv", matches);
- return matches;
- },
- calcConservationLog: function(seqs) {
- var i, matches, nMax, total, _i, _ref, _ref1;
- _ref = this._calcConservationPre(seqs), matches = _ref[0], total = _ref[1], nMax = _ref[2];
- for (i = _i = 0, _ref1 = nMax - 1; 0 <= _ref1 ? _i <= _ref1 : _i >= _ref1; i = 0 <= _ref1 ? ++_i : --_i) {
- matches[i] = Math.log(matches[i] + 1) / Math.log(total[i] + 1);
- }
- this.set("conserv", matches);
- return matches;
- },
- calcConservationExp: function(seqs) {
- var i, matches, nMax, total, _i, _ref, _ref1;
- _ref = this._calcConservationPre(seqs), matches = _ref[0], total = _ref[1], nMax = _ref[2];
- for (i = _i = 0, _ref1 = nMax - 1; 0 <= _ref1 ? _i <= _ref1 : _i >= _ref1; i = 0 <= _ref1 ? ++_i : --_i) {
- matches[i] = Math.exp(matches[i] + 1) / Math.exp(total[i] + 1);
- }
- this.set("conserv", matches);
- return matches;
- }
-});
-
-
-
-},{"../algo/ConsensusCalc":60,"backbone-thin":5,"underscore":59}],65:[function(require,module,exports){
-var Config, Model;
-
-Model = require("backbone-thin").Model;
-
-module.exports = Config = Model.extend({
- defaults: {
- registerMouseHover: false,
- registerMouseClicks: true,
- importProxy: "https://cors-anywhere.herokuapp.com/",
- eventBus: true
- }
-});
-
-
-
-},{"backbone-thin":5}],66:[function(require,module,exports){
-var Consenus, Model, consenusCalc;
-
-Model = require("backbone-thin").Model;
-
-consenusCalc = require("../algo/ConsensusCalc");
-
-module.exports = Consenus = Model.extend({
- defaults: {
- consenus: ""
- },
- getConsensus: function(seqs) {
- var cons;
- if (seqs.length > 1000) {
- return;
- }
- cons = consenusCalc(seqs);
- this.set("consenus", cons);
- return cons;
- }
-});
-
-
-
-},{"../algo/ConsensusCalc":60,"backbone-thin":5}],67:[function(require,module,exports){
-var ColumnSelection, Model, PosSelection, RowSelection, Selection, _;
-
-_ = require("underscore");
-
-Model = require("backbone-thin").Model;
-
-Selection = Model.extend({
- defaults: {
- type: "super"
- }
-});
-
-RowSelection = Selection.extend({
- defaults: _.extend({}, Selection.prototype.defaults, {
- type: "row",
- seqId: ""
- }),
- inRow: function(seqId) {
- return seqId === this.get("seqId");
- },
- inColumn: function(rowPos) {
- return true;
- },
- getLength: function() {
- return 1;
- }
-});
-
-ColumnSelection = Selection.extend({
- defaults: _.extend({}, Selection.prototype.defaults, {
- type: "column",
- xStart: -1,
- xEnd: -1
- }),
- inRow: function() {
- return true;
- },
- inColumn: function(rowPos) {
- return xStart <= rowPos && rowPos <= xEnd;
- },
- getLength: function() {
- return xEnd - xStart;
- }
-});
-
-PosSelection = RowSelection.extend(_.extend({}, _.pick(ColumnSelection, "inColumn"), _.pick(ColumnSelection, "getLength"), {
- defaults: _.extend({}, ColumnSelection.prototype.defaults, RowSelection.prototype.defaults, {
- type: "pos"
- })
-}));
-
-module.exports.sel = Selection;
-
-module.exports.possel = PosSelection;
-
-module.exports.rowsel = RowSelection;
-
-module.exports.columnsel = ColumnSelection;
-
-
-
-},{"backbone-thin":5,"underscore":59}],68:[function(require,module,exports){
-var Collection, SelectionManager, sel, _;
-
-sel = require("./Selection");
-
-_ = require("underscore");
-
-Collection = require("backbone-thin").Collection;
-
-module.exports = SelectionManager = Collection.extend({
- model: sel.sel,
- initialize: function(data, opts) {
- this.g = opts.g;
- this.listenTo(this.g, "residue:click", function(e) {
- return this._handleE(e.evt, new sel.possel({
- xStart: e.rowPos,
- xEnd: e.rowPos,
- seqId: e.seqId
- }));
- });
- this.listenTo(this.g, "row:click", function(e) {
- return this._handleE(e.evt, new sel.rowsel({
- xStart: e.rowPos,
- xEnd: e.rowPos,
- seqId: e.seqId
- }));
- });
- return this.listenTo(this.g, "column:click", function(e) {
- return this._handleE(e.evt, new sel.columnsel({
- xStart: e.rowPos,
- xEnd: e.rowPos + e.stepSize - 1
- }));
- });
- },
- getSelForRow: function(seqId) {
- return this.filter(function(el) {
- return el.inRow(seqId);
- });
- },
- getSelForColumns: function(rowPos) {
- return this.filter(function(el) {
- return el.inColumn(rowPos);
- });
- },
- getBlocksForRow: function(seqId, maxLen) {
- var blocks, seli, selis, _i, _j, _k, _len, _ref, _ref1, _results, _results1;
- selis = this.filter(function(el) {
- return el.inRow(seqId);
- });
- blocks = [];
- for (_i = 0, _len = selis.length; _i < _len; _i++) {
- seli = selis[_i];
- if (seli.attributes.type === "row") {
- blocks = (function() {
- _results = [];
- for (var _j = 0; 0 <= maxLen ? _j <= maxLen : _j >= maxLen; 0 <= maxLen ? _j++ : _j--){ _results.push(_j); }
- return _results;
- }).apply(this);
- break;
- } else {
- blocks = blocks.concat((function() {
- _results1 = [];
- for (var _k = _ref = seli.attributes.xStart, _ref1 = seli.attributes.xEnd; _ref <= _ref1 ? _k <= _ref1 : _k >= _ref1; _ref <= _ref1 ? _k++ : _k--){ _results1.push(_k); }
- return _results1;
- }).apply(this));
- }
- }
- return blocks;
- },
- getAllColumnBlocks: function(conf) {
- var blocks, filtered, maxLen, seli, withPos, _i, _j, _len, _ref, _ref1, _results;
- maxLen = conf.maxLen;
- withPos = conf.withPos;
- blocks = [];
- if (conf.withPos) {
- filtered = this.filter(function(el) {
- return el.get('xStart') != null;
- });
- } else {
- filtered = this.filter(function(el) {
- return el.get('type') === "column";
- });
- }
- for (_i = 0, _len = filtered.length; _i < _len; _i++) {
- seli = filtered[_i];
- blocks = blocks.concat((function() {
- _results = [];
- for (var _j = _ref = seli.attributes.xStart, _ref1 = seli.attributes.xEnd; _ref <= _ref1 ? _j <= _ref1 : _j >= _ref1; _ref <= _ref1 ? _j++ : _j--){ _results.push(_j); }
- return _results;
- }).apply(this));
- }
- blocks = _.uniq(blocks);
- return blocks;
- },
- invertRow: function(rows) {
- var el, inverted, s, selRows, _i, _len;
- selRows = this.where({
- type: "row"
- });
- selRows = _.map(selRows, function(el) {
- return el.attributes.seqId;
- });
- inverted = _.filter(rows, function(el) {
- if (selRows.indexOf(el) >= 0) {
- return false;
- }
- return true;
- });
- s = [];
- for (_i = 0, _len = inverted.length; _i < _len; _i++) {
- el = inverted[_i];
- s.push(new sel.rowsel({
- seqId: el
- }));
- }
- console.log(s);
- return this.reset(s);
- },
- invertCol: function(columns) {
- var el, inverted, s, selColumns, xEnd, xStart, _i, _len;
- selColumns = this.where({
- type: "column"
- });
- selColumns = _.reduce(selColumns, function(memo, el) {
- var _i, _ref, _ref1, _results;
- return memo.concat((function() {
- _results = [];
- for (var _i = _ref = el.attributes.xStart, _ref1 = el.attributes.xEnd; _ref <= _ref1 ? _i <= _ref1 : _i >= _ref1; _ref <= _ref1 ? _i++ : _i--){ _results.push(_i); }
- return _results;
- }).apply(this));
- }, []);
- inverted = _.filter(columns, function(el) {
- if (selColumns.indexOf(el) >= 0) {
- return false;
- }
- return true;
- });
- if (inverted.length === 0) {
- return;
- }
- s = [];
- console.log(inverted);
- xStart = xEnd = inverted[0];
- for (_i = 0, _len = inverted.length; _i < _len; _i++) {
- el = inverted[_i];
- if (xEnd + 1 === el) {
- xEnd = el;
- } else {
- s.push(new sel.columnsel({
- xStart: xStart,
- xEnd: xEnd
- }));
- xStart = xEnd = el;
- }
- }
- if (xStart !== xEnd) {
- s.push(new sel.columnsel({
- xStart: xStart,
- xEnd: inverted[inverted.length - 1]
- }));
- }
- return this.reset(s);
- },
- _handleE: function(e, selection) {
- if (e.ctrlKey || e.metaKey) {
- return this.add(selection);
- } else {
- return this.reset([selection]);
- }
- },
- _reduceColumns: function() {
- return this.each(function(el, index, arr) {
- var cols, left, lefts, right, rights, xEnd, xStart, _i, _j, _len, _len1;
- cols = _.filter(arr, function(el) {
- return el.get('type') === 'column';
- });
- xStart = el.get('xStart');
- xEnd = el.get('xEnd');
- lefts = _.filter(cols, function(el) {
- return el.get('xEnd') === (xStart - 1);
- });
- for (_i = 0, _len = lefts.length; _i < _len; _i++) {
- left = lefts[_i];
- left.set('xEnd', xStart);
- }
- rights = _.filter(cols, function(el) {
- return el.get('xStart') === (xEnd + 1);
- });
- for (_j = 0, _len1 = rights.length; _j < _len1; _j++) {
- right = rights[_j];
- right.set('xStart', xEnd);
- }
- if (lefts.length > 0 || rights.length > 0) {
- console.log("removed el");
- return el.collection.remove(el);
- }
- });
- }
-});
-
-
-
-},{"./Selection":67,"backbone-thin":5,"underscore":59}],69:[function(require,module,exports){
-var Model, Visibility;
-
-Model = require("backbone-thin").Model;
-
-module.exports = Visibility = Model.extend({
- defaults: {
- overviewBox: 30,
- headerBox: -1,
- alignmentBody: 0
- }
-});
-
-
-
-},{"backbone-thin":5}],70:[function(require,module,exports){
-var Model, Visibility;
-
-Model = require("backbone-thin").Model;
-
-module.exports = Visibility = Model.extend({
- defaults: {
- sequences: true,
- markers: true,
- metacell: false,
- conserv: true,
- overviewbox: false,
- labels: true,
- labelName: true,
- labelId: true,
- labelPartition: false,
- labelCheckbox: false
- }
-});
-
-
-
-},{"backbone-thin":5}],71:[function(require,module,exports){
-var Model, Zoomer;
-
-Model = require("backbone-thin").Model;
-
-module.exports = Zoomer = Model.extend({
- constructor: function(attributes, options) {
- Model.apply(this, arguments);
- this.g = options.g;
- return this;
- },
- defaults: {
- alignmentWidth: "auto",
- alignmentHeight: 195,
- columnWidth: 15,
- rowHeight: 15,
- labelWidth: 100,
- metaWidth: 100,
- textVisible: true,
- labelIdLength: 30,
- labelFontsize: "13px",
- labelLineHeight: "13px",
- markerFontsize: "10px",
- stepSize: 1,
- markerStepSize: 2,
- residueFont: "13px mono",
- canvasEventScale: 1,
- boxRectHeight: 5,
- boxRectWidth: 5,
- menuFontsize: "20px",
- menuItemFontsize: "18px",
- menuItemLineHeight: "18px",
- menuMarginLeft: "5px",
- menuPadding: "3px 5px 3px 5px",
- _alignmentScrollLeft: 0,
- _alignmentScrollTop: 0
- },
- getAlignmentWidth: function(n) {
- if (this.get("alignmentWidth") === "auto") {
- return this.get("columnWidth") * n;
- } else {
- return this.get("alignmentWidth");
- }
- },
- setLeftOffset: function(n) {
- var val;
- val = (n - 1) * this.get('columnWidth');
- val = Math.max(0, val);
- return this.set("_alignmentScrollLeft", val);
- },
- setTopOffset: function(n) {
- var val;
- val = (n - 1) * this.get('rowHeight');
- val = Math.max(0, val);
- return this.set("_alignmentScrollTop", val);
- },
- getLabelWidth: function() {
- var paddingLeft;
- paddingLeft = 0;
- if (this.g.vis.get("labels")) {
- paddingLeft += this.get("labelWidth");
- }
- if (this.g.vis.get("metacell")) {
- paddingLeft += this.get("metaWidth");
- }
- return paddingLeft;
- },
- _adjustWidth: function(el, model) {
- var calcWidth, maxWidth, parentWidth, val;
- if ((el.parentNode != null) && el.parentNode.offsetWidth !== 0) {
- parentWidth = el.parentNode.offsetWidth;
- } else {
- parentWidth = document.body.clientWidth - 35;
- }
- maxWidth = parentWidth - this.getLabelWidth();
- calcWidth = this.getAlignmentWidth(model.getMaxLength() - this.g.columns.get('hidden').length);
- val = Math.min(maxWidth, calcWidth);
- val = Math.floor(val / this.get("columnWidth")) * this.get("columnWidth");
- return this.set("alignmentWidth", val);
- },
- _checkScrolling: function(scrollObj, opts) {
- var xScroll, yScroll;
- xScroll = scrollObj[0];
- yScroll = scrollObj[1];
- this.set("_alignmentScrollLeft", xScroll, opts);
- return this.set("_alignmentScrollTop", yScroll, opts);
- }
-});
-
-
-
-},{"backbone-thin":5}],72:[function(require,module,exports){
-module.exports.msa = require("./msa");
-
-module.exports.model = require("./model");
-
-module.exports.algo = require("./algo");
-
-module.exports.menu = require("./menu");
-
-module.exports.utils = require("./utils");
-
-module.exports.selection = require("./g/selection/Selection");
-
-module.exports.view = require("backbone-viewj");
-
-module.exports.boneView = require("backbone-childs");
-
-module.exports._ = require('underscore');
-
-module.exports.$ = require('jbone');
-
-module.exports.version = "0.1.0";
-
-
-
-},{"./algo":62,"./g/selection/Selection":67,"./menu":74,"./model":89,"./msa":90,"./utils":92,"backbone-childs":3,"backbone-viewj":10,"jbone":50,"underscore":59}],73:[function(require,module,exports){
-var ColorMenu, ExportMenu, ExtraMenu, FilterMenu, HelpMenu, ImportMenu, MenuView, OrderingMenu, SelectionMenu, VisMenu, boneView;
-
-boneView = require("backbone-childs");
-
-ImportMenu = require("./views/ImportMenu");
-
-FilterMenu = require("./views/FilterMenu");
-
-SelectionMenu = require("./views/SelectionMenu");
-
-VisMenu = require("./views/VisMenu");
-
-ColorMenu = require("./views/ColorMenu");
-
-OrderingMenu = require("./views/OrderingMenu");
-
-ExtraMenu = require("./views/ExtraMenu");
-
-ExportMenu = require("./views/ExportMenu");
-
-HelpMenu = require("./views/HelpMenu");
-
-module.exports = MenuView = boneView.extend({
- initialize: function(data) {
- this.msa = data.msa;
- this.addView("10_import", new ImportMenu({
- model: this.msa.seqs,
- g: this.msa.g
- }));
- this.addView("20_filter", new FilterMenu({
- model: this.msa.seqs,
- g: this.msa.g
- }));
- this.addView("30_selection", new SelectionMenu({
- model: this.msa.seqs,
- g: this.msa.g
- }));
- this.addView("40_vis", new VisMenu({
- model: this.msa.seqs,
- g: this.msa.g
- }));
- this.addView("50_color", new ColorMenu({
- model: this.msa.seqs,
- g: this.msa.g
- }));
- this.addView("60_ordering", new OrderingMenu({
- model: this.msa.seqs,
- g: this.msa.g
- }));
- this.addView("70_extra", new ExtraMenu({
- model: this.msa.seqs,
- g: this.msa.g
- }));
- this.addView("80_export", new ExportMenu({
- model: this.msa.seqs,
- g: this.msa.g,
- msa: this.msa
- }));
- return this.addView("90_help", new HelpMenu({
- g: this.msa.g
- }));
- },
- render: function() {
- this.renderSubviews();
- this.el.setAttribute("class", "biojs_msa_menubar");
- return this.el.appendChild(document.createElement("p"));
- }
-});
-
-
-
-},{"./views/ColorMenu":76,"./views/ExportMenu":77,"./views/ExtraMenu":78,"./views/FilterMenu":79,"./views/HelpMenu":80,"./views/ImportMenu":81,"./views/OrderingMenu":82,"./views/SelectionMenu":83,"./views/VisMenu":84,"backbone-childs":3}],74:[function(require,module,exports){
-module.exports.defaultmenu = require("./defaultmenu");
-
-module.exports.menubuilder = require("./menubuilder");
-
-
-
-},{"./defaultmenu":73,"./menubuilder":75}],75:[function(require,module,exports){
-var BMath, MenuBuilder, jbone, view;
-
-BMath = require("../utils/bmath");
-
-jbone = require("jbone");
-
-view = require("backbone-viewj");
-
-module.exports = MenuBuilder = view.extend({
- setName: function(name) {
- this.name = name;
- return this._nodes = [];
- },
- addNode: function(label, callback, data) {
- var style;
- if (data != null) {
- style = data.style;
- }
- if (this._nodes == null) {
- this._nodes = [];
- }
- return this._nodes.push({
- label: label,
- callback: callback,
- style: style
- });
- },
- buildDOM: function() {
- return this._buildM({
- nodes: this._nodes,
- name: this.name
- });
- },
- _buildM: function(data) {
- var displayedButton, frag, key, li, menu, menuUl, name, node, nodes, style, _i, _len, _ref;
- nodes = data.nodes;
- name = data.name;
- menu = document.createElement("div");
- menu.className = "dropdown dropdown-tip";
- menu.id = "adrop-" + BMath.uniqueId();
- menu.style.display = "none";
- menuUl = document.createElement("ul");
- menuUl.className = "dropdown-menu";
- for (_i = 0, _len = nodes.length; _i < _len; _i++) {
- node = nodes[_i];
- li = document.createElement("li");
- li.textContent = node.label;
- _ref = node.style;
- for (key in _ref) {
- style = _ref[key];
- li.style[key] = style;
- }
- li.addEventListener("click", node.callback);
- if (this.g != null) {
- li.style.lineHeight = this.g.zoomer.get("menuItemLineHeight");
- }
- menuUl.appendChild(li);
- }
- menu.appendChild(menuUl);
- frag = document.createDocumentFragment();
- displayedButton = document.createElement("a");
- displayedButton.textContent = name;
- displayedButton.className = "biojs_msa_menubar_alink";
- if (this.g != null) {
- menuUl.style.fontSize = this.g.zoomer.get("menuItemFontsize");
- displayedButton.style.fontSize = this.g.zoomer.get("menuFontsize");
- displayedButton.style.marginLeft = this.g.zoomer.get("menuMarginLeft");
- displayedButton.style.padding = this.g.zoomer.get("menuPadding");
- }
- jbone(displayedButton).on("click", (function(_this) {
- return function(e) {
- _this._showMenu(e, menu, displayedButton);
- return window.setTimeout(function() {
- return jbone(document.body).one("click", function(e) {
- console.log("next click");
- return menu.style.display = "none";
- });
- }, 5);
- };
- })(this));
- frag.appendChild(menu);
- frag.appendChild(displayedButton);
- return frag;
- },
- _showMenu: function(e, menu, target) {
- var rect;
- menu.style.display = "block";
- menu.style.position = "absolute";
- rect = target.getBoundingClientRect();
- menu.style.left = rect.left + "px";
- return menu.style.top = (rect.top + target.offsetHeight) + "px";
- }
-});
-
-
-
-},{"../utils/bmath":91,"backbone-viewj":10,"jbone":50}],76:[function(require,module,exports){
-var ColorMenu, MenuBuilder, dom, _;
-
-MenuBuilder = require("../menubuilder");
-
-_ = require("underscore");
-
-dom = require("dom-helper");
-
-module.exports = ColorMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- this.el.style.display = "inline-block";
- return this.listenTo(this.g.colorscheme, "change", function() {
- return this.render();
- });
- },
- render: function() {
- var colorschemes, menuColor, scheme, text, _i, _len;
- menuColor = this.setName("Color scheme");
- colorschemes = this.getColorschemes();
- for (_i = 0, _len = colorschemes.length; _i < _len; _i++) {
- scheme = colorschemes[_i];
- this.addScheme(menuColor, scheme);
- }
- text = "Background";
- if (this.g.colorscheme.get("colorBackground")) {
- text = "Hide " + text;
- } else {
- text = "Show " + text;
- }
- this.addNode(text, (function(_this) {
- return function() {
- return _this.g.colorscheme.set("colorBackground", !_this.g.colorscheme.get("colorBackground"));
- };
- })(this));
- this.grey(menuColor);
- dom.removeAllChilds(this.el);
- this.el.appendChild(this.buildDOM());
- return this;
- },
- addScheme: function(menuColor, scheme) {
- var current, style;
- style = {};
- current = this.g.colorscheme.get("scheme");
- if (current === scheme.id) {
- style.backgroundColor = "#77ED80";
- }
- return this.addNode(scheme.name, (function(_this) {
- return function() {
- return _this.g.colorscheme.set("scheme", scheme.id);
- };
- })(this), {
- style: style
- });
- },
- getColorschemes: function() {
- var schemes;
- schemes = [];
- schemes.push({
- name: "Zappo",
- id: "zappo"
- });
- schemes.push({
- name: "Taylor",
- id: "taylor"
- });
- schemes.push({
- name: "Hydrophobicity",
- id: "hydro"
- });
- schemes.push({
- name: "Lesk",
- id: "lesk"
- });
- schemes.push({
- name: "Cinema",
- id: "cinema"
- });
- schemes.push({
- name: "MAE",
- id: "mae"
- });
- schemes.push({
- name: "Clustal",
- id: "clustal"
- });
- schemes.push({
- name: "Clustal2",
- id: "clustal2"
- });
- schemes.push({
- name: "Turn",
- id: "turn"
- });
- schemes.push({
- name: "Strand",
- id: "strand"
- });
- schemes.push({
- name: "Buried",
- id: "buried"
- });
- schemes.push({
- name: "Helix",
- id: "helix"
- });
- schemes.push({
- name: "Nucleotide",
- id: "nucleotide"
- });
- schemes.push({
- name: "Purine",
- id: "purine"
- });
- schemes.push({
- name: "PID",
- id: "pid"
- });
- schemes.push({
- name: "No color",
- id: "foo"
- });
- return schemes;
- },
- grey: function(menuColor) {
- this.addNode("Grey", (function(_this) {
- return function() {
- _this.g.colorscheme.set("showLowerCase", false);
- return _this.model.each(function(seq) {
- var grey, residues;
- residues = seq.get("seq");
- grey = [];
- _.each(residues, function(el, index) {
- if (el === el.toLowerCase()) {
- return grey.push(index);
- }
- });
- return seq.set("grey", grey);
- });
- };
- })(this));
- this.addNode("Grey by threshold", (function(_this) {
- return function() {
- var conserv, grey, i, maxLen, threshold, _i, _ref;
- threshold = prompt("Enter threshold (in percent)", 20);
- threshold = threshold / 100;
- maxLen = _this.model.getMaxLength();
- conserv = _this.g.columns.get("conserv");
- grey = [];
- for (i = _i = 0, _ref = maxLen - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; i = 0 <= _ref ? ++_i : --_i) {
- console.log(conserv[i]);
- if (conserv[i] < threshold) {
- grey.push(i);
- }
- }
- return _this.model.each(function(seq) {
- return seq.set("grey", grey);
- });
- };
- })(this));
- this.addNode("Grey selection", (function(_this) {
- return function() {
- var maxLen;
- maxLen = _this.model.getMaxLength();
- return _this.model.each(function(seq) {
- var blocks;
- blocks = _this.g.selcol.getBlocksForRow(seq.get("id"), maxLen);
- return seq.set("grey", blocks);
- });
- };
- })(this));
- return this.addNode("Reset grey", (function(_this) {
- return function() {
- _this.g.colorscheme.set("showLowerCase", true);
- return _this.model.each(function(seq) {
- return seq.set("grey", []);
- });
- };
- })(this));
- }
-});
-
-
-
-},{"../menubuilder":75,"dom-helper":49,"underscore":59}],77:[function(require,module,exports){
-var ExportMenu, FastaExporter, MenuBuilder, blobURL, saveAs, _;
-
-MenuBuilder = require("../menubuilder");
-
-saveAs = require("browser-saveas");
-
-FastaExporter = require("biojs-io-fasta").writer;
-
-_ = require("underscore");
-
-blobURL = require("blueimp_canvastoblob");
-
-module.exports = ExportMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- this.msa = data.msa;
- return this.el.style.display = "inline-block";
- },
- render: function() {
- this.setName("Export");
- this.addNode("Export sequences", (function(_this) {
- return function() {
- var blob, text;
- text = FastaExporter["export"](_this.model.toJSON());
- blob = new Blob([text], {
- type: 'text/plain'
- });
- return saveAs(blob, "all.fasta");
- };
- })(this));
- this.addNode("Export selection", (function(_this) {
- return function() {
- var blob, i, selection, text, _i, _ref;
- selection = _this.g.selcol.pluck("seqId");
- if (selection != null) {
- selection = _this.model.filter(function(el) {
- return _.contains(selection, el.get("id"));
- });
- for (i = _i = 0, _ref = selection.length - 1; _i <= _ref; i = _i += 1) {
- selection[i] = selection[i].toJSON();
- }
- } else {
- selection = _this.model.toJSON();
- console.log("no selection found");
- }
- text = FastaExporter["export"](selection);
- blob = new Blob([text], {
- type: 'text/plain'
- });
- return saveAs(blob, "selection.fasta");
- };
- })(this));
- this.addNode("Export image", (function(_this) {
- return function() {
- var canvas, url;
- canvas = _this.msa.getView('stage').getView('body').getView('seqblock').el;
- if (canvas != null) {
- url = canvas.toDataURL('image/png');
- return saveAs(blobURL(url), "biojs-msa.png", "image/png");
- }
- };
- })(this));
- this.el.appendChild(this.buildDOM());
- return this;
- }
-});
-
-
-
-},{"../menubuilder":75,"biojs-io-fasta":undefined,"blueimp_canvastoblob":46,"browser-saveas":47,"underscore":59}],78:[function(require,module,exports){
-var ExtraMenu, MenuBuilder, Seq, consenus;
-
-MenuBuilder = require("../menubuilder");
-
-consenus = require("../../algo/ConsensusCalc");
-
-Seq = require("../../model/Sequence");
-
-module.exports = ExtraMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- return this.el.style.display = "inline-block";
- },
- render: function() {
- this.setName("Extras");
- this.addNode("Add consensus seq", (function(_this) {
- return function() {
- var con, seq;
- con = consenus(_this.model);
- console.log(con);
- seq = new Seq({
- seq: con,
- id: "0c",
- name: "consenus"
- });
- _this.model.add(seq);
- _this.model.comparator = function(seq) {
- return seq.get("id");
- };
- return _this.model.sort();
- };
- })(this));
- this.addNode("Increase font size", (function(_this) {
- return function() {
- _this.g.zoomer.set("columnWidth", _this.g.zoomer.get("columnWidth") + 2);
- _this.g.zoomer.set("labelWidth", _this.g.zoomer.get("columnWidth") + 5);
- _this.g.zoomer.set("rowHeight", _this.g.zoomer.get("rowHeight") + 2);
- return _this.g.zoomer.set("labelFontSize", _this.g.zoomer.get("labelFontSize") + 2);
- };
- })(this));
- this.addNode("Decrease font size", (function(_this) {
- return function() {
- _this.g.zoomer.set("columnWidth", _this.g.zoomer.get("columnWidth") - 2);
- _this.g.zoomer.set("rowHeight", _this.g.zoomer.get("rowHeight") - 2);
- _this.g.zoomer.set("labelFontSize", _this.g.zoomer.get("labelFontSize") - 2);
- if (_this.g.zoomer.get("columnWidth") < 8) {
- return _this.g.zoomer.set("textVisible", false);
- }
- };
- })(this));
- this.addNode("Bar chart exp scaling", (function(_this) {
- return function() {
- return _this.g.columns.set("scaling", "exp");
- };
- })(this));
- this.addNode("Bar chart linear scaling", (function(_this) {
- return function() {
- return _this.g.columns.set("scaling", "lin");
- };
- })(this));
- this.addNode("Bar chart log scaling", (function(_this) {
- return function() {
- return _this.g.columns.set("scaling", "log");
- };
- })(this));
- this.addNode("Minimized width", (function(_this) {
- return function() {
- return _this.g.zoomer.set("alignmentWidth", 600);
- };
- })(this));
- this.addNode("Minimized height", (function(_this) {
- return function() {
- return _this.g.zoomer.set("alignmentHeight", 120);
- };
- })(this));
- this.addNode("Jump to a column", (function(_this) {
- return function() {
- var offset;
- offset = prompt("Column", "20");
- if (offset < 0 || offset > _this.model.getMaxLength() || isNaN(offset)) {
- alert("invalid column");
- return;
- }
- return _this.g.zoomer.setLeftOffset(offset);
- };
- })(this));
- this.el.appendChild(this.buildDOM());
- return this;
- }
-});
-
-
-
-},{"../../algo/ConsensusCalc":60,"../../model/Sequence":88,"../menubuilder":75}],79:[function(require,module,exports){
-var FilterMenu, MenuBuilder, _;
-
-MenuBuilder = require("../menubuilder");
-
-_ = require("underscore");
-
-module.exports = FilterMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- return this.el.style.display = "inline-block";
- },
- render: function() {
- this.setName("Filter");
- this.addNode("Hide columns by threshold", (function(_this) {
- return function(e) {
- var conserv, hidden, i, maxLen, threshold, _i, _ref;
- threshold = prompt("Enter threshold (in percent)", 20);
- threshold = threshold / 100;
- maxLen = _this.model.getMaxLength();
- hidden = [];
- conserv = _this.g.columns.get("conserv");
- for (i = _i = 0, _ref = maxLen - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; i = 0 <= _ref ? ++_i : --_i) {
- if (conserv[i] < threshold) {
- hidden.push(i);
- }
- }
- return _this.g.columns.set("hidden", hidden);
- };
- })(this));
- this.addNode("Hide columns by selection", (function(_this) {
- return function() {
- var hidden, hiddenOld;
- hiddenOld = _this.g.columns.get("hidden");
- hidden = hiddenOld.concat(_this.g.selcol.getAllColumnBlocks({
- maxLen: _this.model.getMaxLength(),
- withPos: true
- }));
- _this.g.selcol.reset([]);
- return _this.g.columns.set("hidden", hidden);
- };
- })(this));
- this.addNode("Hide columns by gaps", (function(_this) {
- return function() {
- var gapContent, gaps, hidden, i, maxLen, threshold, total, _i, _ref;
- threshold = prompt("Enter threshold (in percent)", 20);
- threshold = threshold / 100;
- maxLen = _this.model.getMaxLength();
- hidden = [];
- for (i = _i = 0, _ref = maxLen - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; i = 0 <= _ref ? ++_i : --_i) {
- gaps = 0;
- total = 0;
- _this.model.each(function(el) {
- if (el.get('seq')[i] === "-") {
- gaps++;
- }
- return total++;
- });
- gapContent = gaps / total;
- if (gapContent > threshold) {
- hidden.push(i);
- }
- }
- return _this.g.columns.set("hidden", hidden);
- };
- })(this));
- this.addNode("Hide seqs by identity", (function(_this) {
- return function() {
- var threshold;
- threshold = prompt("Enter threshold (in percent)", 20);
- threshold = threshold / 100;
- return _this.model.each(function(el) {
- if (el.get('identity') < threshold) {
- return el.set('hidden', true);
- }
- });
- };
- })(this));
- this.addNode("Hide seqs by selection", (function(_this) {
- return function() {
- var hidden, ids;
- hidden = _this.g.selcol.where({
- type: "row"
- });
- ids = _.map(hidden, function(el) {
- return el.get('seqId');
- });
- _this.g.selcol.reset([]);
- return _this.model.each(function(el) {
- if (ids.indexOf(el.get('id')) >= 0) {
- return el.set('hidden', true);
- }
- });
- };
- })(this));
- this.addNode("Hide seqs by gaps", (function(_this) {
- return function() {
- var threshold;
- threshold = prompt("Enter threshold (in percent)", 40);
- return _this.model.each(function(el, i) {
- var gaps, seq;
- seq = el.get('seq');
- gaps = _.reduce(seq, (function(memo, c) {
- if (c === '-') {
- memo++;
- }
- return memo;
- }), 0);
- console.log(gaps);
- if (gaps > threshold) {
- return el.set('hidden', true);
- }
- });
- };
- })(this));
- this.addNode("Reset", (function(_this) {
- return function() {
- _this.g.columns.set("hidden", []);
- return _this.model.each(function(el) {
- if (el.get('hidden')) {
- return el.set('hidden', false);
- }
- });
- };
- })(this));
- this.el.appendChild(this.buildDOM());
- return this;
- }
-});
-
-
-
-},{"../menubuilder":75,"underscore":59}],80:[function(require,module,exports){
-var HelpMenu, MenuBuilder;
-
-MenuBuilder = require("../menubuilder");
-
-module.exports = HelpMenu = MenuBuilder.extend({
- initialize: function(data) {
- return this.g = data.g;
- },
- render: function() {
- this.setName("Help");
- this.addNode("About the project", (function(_this) {
- return function() {
- return window.open("https://github.com/greenify/biojs-vis-msa");
- };
- })(this));
- this.addNode("Report issues", (function(_this) {
- return function() {
- return window.open("https://github.com/greenify/biojs-vis-msa/issues");
- };
- })(this));
- this.addNode("User manual", (function(_this) {
- return function() {
- return window.open("https://github.com/greenify/biojs-vis-msa/wiki");
- };
- })(this));
- this.el.style.display = "inline-block";
- this.el.appendChild(this.buildDOM());
- return this;
- }
-});
-
-
-
-},{"../menubuilder":75}],81:[function(require,module,exports){
-var Clustal, FastaReader, ImportMenu, MenuBuilder, corsURL;
-
-Clustal = require("biojs-io-clustal");
-
-FastaReader = require("biojs-io-fasta").parse;
-
-MenuBuilder = require("../menubuilder");
-
-corsURL = require("../../utils/proxy").corsURL;
-
-module.exports = ImportMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- return this.el.style.display = "inline-block";
- },
- render: function() {
- this.setName("Import");
- this.addNode("FASTA", (function(_this) {
- return function(e) {
- var url;
- url = prompt("URL", "/test/dummy/samples/p53.clustalo.fasta");
- url = corsURL(url, _this.g);
- return FastaReader.read(url, function(seqs) {
- var zoomer;
- zoomer = _this.g.zoomer.toJSON();
- zoomer.labelWidth = 200;
- zoomer.boxRectHeight = 2;
- zoomer.boxRectWidth = 2;
- _this.model.reset([]);
- _this.g.zoomer.set(zoomer);
- _this.model.reset(seqs);
- return _this.g.columns.calcConservation(_this.model);
- });
- };
- })(this));
- this.addNode("CLUSTAL", (function(_this) {
- return function() {
- var url;
- url = prompt("URL", "/test/dummy/samples/p53.clustalo.clustal");
- url = corsURL(url, _this.g);
- return Clustal.read(url, function(seqs) {
- var zoomer;
- zoomer = _this.g.zoomer.toJSON();
- zoomer.labelWidth = 200;
- zoomer.boxRectHeight = 2;
- zoomer.boxRectWidth = 2;
- _this.model.reset([]);
- _this.g.zoomer.set(zoomer);
- _this.model.reset(seqs);
- return _this.g.columns.calcConservation(_this.model);
- });
- };
- })(this));
- this.addNode("add your own Parser", (function(_this) {
- return function() {
- return window.open("https://github.com/biojs/biojs2");
- };
- })(this));
- this.el.appendChild(this.buildDOM());
- return this;
- }
-});
-
-
-
-},{"../../utils/proxy":93,"../menubuilder":75,"biojs-io-clustal":undefined,"biojs-io-fasta":undefined}],82:[function(require,module,exports){
-var MenuBuilder, OrderingMenu, dom, _;
-
-MenuBuilder = require("../menubuilder");
-
-dom = require("dom-helper");
-
-_ = require('underscore');
-
-module.exports = OrderingMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- this.order = "ID";
- return this.el.style.display = "inline-block";
- },
- setOrder: function(order) {
- this.order = order;
- return this.render();
- },
- render: function() {
- var comps, el, m, _i, _len;
- this.setName("Ordering");
- comps = this.getComparators();
- for (_i = 0, _len = comps.length; _i < _len; _i++) {
- m = comps[_i];
- this._addNode(m);
- }
- el = this.buildDOM();
- dom.removeAllChilds(this.el);
- this.el.appendChild(el);
- return this;
- },
- _addNode: function(m) {
- var style, text;
- text = m.text;
- style = {};
- if (text === this.order) {
- style.backgroundColor = "#77ED80";
- }
- return this.addNode(text, (function(_this) {
- return function() {
- if (m.precode != null) {
- m.precode();
- }
- _this.model.comparator = m.comparator;
- _this.model.sort();
- return _this.setOrder(m.text);
- };
- })(this), {
- style: style
- });
- },
- getComparators: function() {
- var models;
- models = [];
- models.push({
- text: "ID",
- comparator: "id"
- });
- models.push({
- text: "ID Desc",
- comparator: function(a, b) {
- return -a.get("id").localeCompare(b.get("id"));
- }
- });
- models.push({
- text: "Label",
- comparator: "name"
- });
- models.push({
- text: "Label Desc",
- comparator: function(a, b) {
- return -a.get("name").localeCompare(b.get("name"));
- }
- });
- models.push({
- text: "Seq",
- comparator: "seq"
- });
- models.push({
- text: "Seq Desc",
- comparator: function(a, b) {
- return -a.get("seq").localeCompare(b.get("seq"));
- }
- });
- models.push({
- text: "Identity",
- comparator: "identity"
- });
- models.push({
- text: "Identity Desc",
- comparator: function(seq) {
- return -seq.get("identity");
- }
- });
- models.push({
- text: "Partition codes",
- comparator: "partition",
- precode: (function(_this) {
- return function() {
- _this.g.vis.set('labelPartition', true);
- return _this.model.each(function(el) {
- return el.set('partition', _.random(1, 3));
- });
- };
- })(this)
- });
- return models;
- }
-});
-
-
-
-},{"../menubuilder":75,"dom-helper":49,"underscore":59}],83:[function(require,module,exports){
-var MenuBuilder, SelectionMenu, sel;
-
-sel = require("../../g/selection/Selection");
-
-MenuBuilder = require("../menubuilder");
-
-module.exports = SelectionMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- return this.el.style.display = "inline-block";
- },
- render: function() {
- this.setName("Selection");
- this.addNode("Find Motif (supports RegEx)", (function(_this) {
- return function() {
- var leftestIndex, newSeli, origIndex, search, selcol;
- search = prompt("your search", "D");
- search = new RegExp(search, "gi");
- selcol = _this.g.selcol;
- newSeli = [];
- leftestIndex = origIndex = 100042;
- _this.model.each(function(seq) {
- var args, index, match, strSeq, _results;
- strSeq = seq.get("seq");
- _results = [];
- while (match = search.exec(strSeq)) {
- index = match.index;
- args = {
- xStart: index,
- xEnd: index + match[0].length - 1,
- seqId: seq.get("id")
- };
- newSeli.push(new sel.possel(args));
- _results.push(leftestIndex = Math.min(index, leftestIndex));
- }
- return _results;
- });
- if (newSeli.length === 0) {
- alert("no selection found");
- }
- selcol.reset(newSeli);
- if (leftestIndex === origIndex) {
- leftestIndex = 0;
- }
- return _this.g.zoomer.setLeftOffset(leftestIndex);
- };
- })(this));
- this.addNode("Invert columns", (function(_this) {
- return function() {
- var _i, _ref, _results;
- return _this.g.selcol.invertCol((function() {
- _results = [];
- for (var _i = 0, _ref = _this.model.getMaxLength(); 0 <= _ref ? _i <= _ref : _i >= _ref; 0 <= _ref ? _i++ : _i--){ _results.push(_i); }
- return _results;
- }).apply(this));
- };
- })(this));
- this.addNode("Invert rows", (function(_this) {
- return function() {
- return _this.g.selcol.invertRow(_this.model.pluck("id"));
- };
- })(this));
- this.addNode("Reset", (function(_this) {
- return function() {
- return _this.g.selcol.reset();
- };
- })(this));
- this.el.appendChild(this.buildDOM());
- return this;
- }
-});
-
-
-
-},{"../../g/selection/Selection":67,"../menubuilder":75}],84:[function(require,module,exports){
-var ImportMenu, MenuBuilder, dom;
-
-MenuBuilder = require("../menubuilder");
-
-dom = require("dom-helper");
-
-module.exports = ImportMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- this.el.style.display = "inline-block";
- return this.listenTo(this.g.vis, "change", this.render);
- },
- render: function() {
- var visEl, visElements, _i, _len;
- this.setName("Vis. elements");
- visElements = this.getVisElements();
- for (_i = 0, _len = visElements.length; _i < _len; _i++) {
- visEl = visElements[_i];
- this._addVisEl(visEl);
- }
- this.addNode("Reset", (function(_this) {
- return function() {
- _this.g.vis.set("labels", true);
- _this.g.vis.set("sequences", true);
- _this.g.vis.set("metacell", true);
- _this.g.vis.set("conserv", true);
- _this.g.vis.set("labelId", true);
- _this.g.vis.set("labelName", true);
- return _this.g.vis.set("labelCheckbox", false);
- };
- })(this));
- this.addNode("Toggle mouseover events", (function(_this) {
- return function() {
- return _this.g.config.set("registerMouseHover", !_this.g.config.get("registerMouseHover"));
- };
- })(this));
- dom.removeAllChilds(this.el);
- this.el.appendChild(this.buildDOM());
- return this;
- },
- _addVisEl: function(visEl) {
- var pre, style;
- style = {};
- if (this.g.vis.get(visEl.id)) {
- pre = "Hide ";
- style.color = "red";
- } else {
- pre = "Show ";
- style.color = "green";
- }
- return this.addNode(pre + visEl.name, (function(_this) {
- return function() {
- return _this.g.vis.set(visEl.id, !_this.g.vis.get(visEl.id));
- };
- })(this), {
- style: style
- });
- },
- getVisElements: function() {
- var vis;
- vis = [];
- vis.push({
- name: "Markers",
- id: "markers"
- });
- vis.push({
- name: "Labels",
- id: "labels"
- });
- vis.push({
- name: "Sequences",
- id: "sequences"
- });
- vis.push({
- name: "Meta info",
- id: "metacell"
- });
- vis.push({
- name: "Overviewbox",
- id: "overviewbox"
- });
- vis.push({
- name: "conserv",
- id: "conserv"
- });
- vis.push({
- name: "LabelName",
- id: "labelName"
- });
- vis.push({
- name: "LabelId",
- id: "labelId"
- });
- vis.push({
- name: "LabelCheckbox",
- id: "labelCheckbox"
- });
- return vis;
- }
-});
-
-
-
-},{"../menubuilder":75,"dom-helper":49}],85:[function(require,module,exports){
-var Feature, Model;
-
-Feature = require("./Feature");
-
-Model = require("backbone-thin").Model;
-
-module.exports = Feature = Model.extend({
- defaults: {
- xStart: -1,
- xEnd: -1,
- height: -1,
- text: "",
- fillColor: "red",
- fillOpacity: 0.5,
- type: "rectangle",
- borderSize: 1,
- borderColor: "black",
- borderOpacity: 0.5,
- validate: true
- },
- validate: function() {
- if (isNaN(this.attributes.xStart || isNaN(this.attributes.xEnd))) {
- return "features need integer start and end.";
- }
- },
- contains: function(index) {
- return this.attributes.xStart <= index && index <= this.attributes.xEnd;
- }
-});
-
-
-
-},{"./Feature":85,"backbone-thin":5}],86:[function(require,module,exports){
-var Collection, Feature, FeatureCol, _;
-
-Feature = require("./Feature");
-
-Collection = require("backbone-thin").Collection;
-
-_ = require("underscore");
-
-module.exports = FeatureCol = Collection.extend({
- model: Feature,
- constructor: function() {
- this.startOnCache = [];
- this.on("all", function() {
- return this.startOnCache = [];
- }, this);
- return Collection.apply(this, arguments);
- },
- startOn: function(index) {
- if (this.startOnCache[index] == null) {
- this.startOnCache[index] = this.where({
- xStart: index
- });
- }
- return this.startOnCache[index];
- },
- contains: function(index) {
- return this.reduce(function(el, memo) {
- return memo || el.contains(index);
- }, false);
- },
- getMinRows: function() {
- var len, rows, x;
- len = this.max(function(el) {
- return el.get("xEnd");
- });
- rows = (function() {
- var _i, _results;
- _results = [];
- for (x = _i = 1; 1 <= len ? _i <= len : _i >= len; x = 1 <= len ? ++_i : --_i) {
- _results.push(0);
- }
- return _results;
- })();
- this.each(function(el) {
- var _i, _ref, _ref1, _results;
- _results = [];
- for (x = _i = _ref = el.get("xStart"), _ref1 = feature.get("xEnd"); _i <= _ref1; x = _i += 1) {
- _results.push(rows[x]++);
- }
- return _results;
- });
- return _.max(rows);
- }
-});
-
-
-
-},{"./Feature":85,"backbone-thin":5,"underscore":59}],87:[function(require,module,exports){
-var Collection, SeqManager, Sequence;
-
-Sequence = require("./Sequence");
-
-Collection = require("backbone-thin").Collection;
-
-module.exports = SeqManager = Collection.extend({
- model: Sequence,
- constructor: function() {
- Collection.apply(this, arguments);
- this.on("all", function() {
- return this.lengthCache = null;
- }, this);
- this.lengthCache = null;
- return this;
- },
- getMaxLength: function() {
- if (this.models.length === 0) {
- return 0;
- }
- if (this.lengthCache === null) {
- this.lengthCache = this.max(function(seq) {
- return seq.get("seq").length;
- }).get("seq").length;
- }
- return this.lengthCache;
- },
- prev: function(model, endless) {
- var index;
- index = this.indexOf(model) - 1;
- if (index < 0 && endless) {
- index = this.length - 1;
- }
- return this.at(index);
- },
- next: function(model, endless) {
- var index;
- index = this.indexOf(model) + 1;
- if (index === this.length && endless) {
- index = 0;
- }
- return this.at(index);
- },
- calcHiddenSeqs: function(n) {
- var i, nNew, _i;
- nNew = n;
- for (i = _i = 0; 0 <= nNew ? _i <= nNew : _i >= nNew; i = 0 <= nNew ? ++_i : --_i) {
- if (this.at(i).get("hidden")) {
- nNew++;
- }
- }
- return nNew - n;
- }
-});
-
-
-
-},{"./Sequence":88,"backbone-thin":5}],88:[function(require,module,exports){
-var FeatureCol, Model, Sequence;
-
-Model = require("backbone-thin").Model;
-
-FeatureCol = require("./FeatureCol");
-
-module.exports = Sequence = Model.extend({
- defaults: {
- name: "",
- id: "",
- seq: ""
- },
- initialize: function() {
- this.set("grey", []);
- return this.set("features", new FeatureCol());
- }
-});
-
-
-
-},{"./FeatureCol":86,"backbone-thin":5}],89:[function(require,module,exports){
-module.exports.seq = require("./Sequence");
-
-module.exports.seqcol = require("./SeqCollection");
-
-module.exports.feature = require("./Feature");
-
-module.exports.featurecol = require("./FeatureCol");
-
-
-
-},{"./Feature":85,"./FeatureCol":86,"./SeqCollection":87,"./Sequence":88}],90:[function(require,module,exports){
-var Colorator, Columns, Config, Consensus, Eventhandler, SelCol, SeqCollection, Stage, VisOrdering, Visibility, Zoomer, boneView;
-
-SeqCollection = require("./model/SeqCollection");
-
-Colorator = require("./g/colorator");
-
-Consensus = require("./g/consensus");
-
-Columns = require("./g/columns");
-
-Config = require("./g/config");
-
-SelCol = require("./g/selection/SelectionCol");
-
-Visibility = require("./g/visibility");
-
-VisOrdering = require("./g/visOrdering");
-
-Zoomer = require("./g/zoomer");
-
-boneView = require("backbone-childs");
-
-Eventhandler = require("biojs-events");
-
-Stage = require("./views/Stage");
-
-module.exports = boneView.extend({
- initialize: function(data) {
- var _ref;
- if (data.columns == null) {
- data.columns = {};
- }
- if (data.conf == null) {
- data.conf = {};
- }
- if (data.vis == null) {
- data.vis = {};
- }
- if (data.zoomer == null) {
- if (!((_ref = data.visorder) != null ? _ref : data.zoomer = {})) {
- data.visorder = {};
- }
- }
- this.g = Eventhandler.mixin({});
- if (data.seqs === void 0 || data.seqs.length === 0) {
- console.log("warning. empty seqs.");
- }
- this.seqs = new SeqCollection(data.seqs);
- this.g.config = new Config(data.conf);
- this.g.consensus = new Consensus();
- this.g.columns = new Columns(data.columns);
- this.g.colorscheme = new Colorator();
- this.g.selcol = new SelCol([], {
- g: this.g
- });
- this.g.vis = new Visibility(data.vis);
- this.g.visorder = new VisOrdering(data.visorder);
- this.g.zoomer = new Zoomer(data.zoomer, {
- g: this.g
- });
- this.addView("stage", new Stage({
- model: this.seqs,
- g: this.g
- }));
- this.el.setAttribute("class", "biojs_msa_div");
- if (this.g.config.get("eventBus") === true) {
- return this.startEventBus();
- }
- },
- startEventBus: function() {
- var busObjs, key, _i, _len, _results;
- busObjs = ["config", "consensus", "columns", "colorscheme", "selcol", "vis", "visorder", "zoomer"];
- _results = [];
- for (_i = 0, _len = busObjs.length; _i < _len; _i++) {
- key = busObjs[_i];
- _results.push(this._proxyToG(key));
- }
- return _results;
- },
- _proxyToG: function(key) {
- return this.listenTo(this.g[key], "all", function(name, prev, now) {
- if (name === "change") {
- return;
- }
- return this.g.trigger(key + ":" + name, now);
- });
- },
- render: function() {
- this.renderSubviews();
- this.g.vis.set("loaded", true);
- return this;
- }
-});
-
-
-
-},{"./g/colorator":63,"./g/columns":64,"./g/config":65,"./g/consensus":66,"./g/selection/SelectionCol":68,"./g/visOrdering":69,"./g/visibility":70,"./g/zoomer":71,"./model/SeqCollection":87,"./views/Stage":100,"backbone-childs":3,"biojs-events":14}],91:[function(require,module,exports){
-var BMath;
-
-module.exports = BMath = (function() {
- function BMath() {}
-
- BMath.randomInt = function(lower, upper) {
- var _ref, _ref1;
- if (upper == null) {
- _ref = [0, lower], lower = _ref[0], upper = _ref[1];
- }
- if (lower > upper) {
- _ref1 = [upper, lower], lower = _ref1[0], upper = _ref1[1];
- }
- return Math.floor(Math.random() * (upper - lower + 1) + lower);
- };
-
- BMath.uniqueId = function(length) {
- var id;
- if (length == null) {
- length = 8;
- }
- id = "";
- while (id.length < length) {
- id += Math.random().toString(36).substr(2);
- }
- return id.substr(0, length);
- };
-
- BMath.getRandomInt = function(min, max) {
- return Math.floor(Math.random() * (max - min + 1)) + min;
- };
-
- return BMath;
-
-})();
-
-
-
-},{}],92:[function(require,module,exports){
-module.exports.bmath = require("./bmath");
-
-module.exports.proxy = require("./proxy");
-
-module.exports.seqgen = require("./seqgen");
-
-
-
-},{"./bmath":91,"./proxy":93,"./seqgen":94}],93:[function(require,module,exports){
-var proxy;
-
-module.exports = proxy = {
- corsURL: (function(_this) {
- return function(url, g) {
- _this.g = g;
- if (document.URL.indexOf('localhost') >= 0 && url[0] === "/") {
- return url;
- }
- url = url.replace("www\.", "");
- url = url.replace("http://", "");
- url = _this.g.config.get('importProxy') + url;
- return url;
- };
- })(this)
-};
-
-
-
-},{}],94:[function(require,module,exports){
-var BMath, Sequence, seqgen;
-
-Sequence = require("biojs-model").seq;
-
-BMath = require("./bmath");
-
-seqgen = module.exports = {
- _generateSequence: function(len) {
- var i, possible, text, _i, _ref;
- text = "";
- possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
- for (i = _i = 0, _ref = len - 1; _i <= _ref; i = _i += 1) {
- text += possible.charAt(Math.floor(Math.random() * possible.length));
- }
- return text;
- },
- getDummySequences: function(len, seqLen) {
- var i, seqs, _i;
- seqs = [];
- if (len == null) {
- len = BMath.getRandomInt(3, 5);
- }
- if (seqLen == null) {
- seqLen = BMath.getRandomInt(50, 200);
- }
- for (i = _i = 1; _i <= len; i = _i += 1) {
- seqs.push(new Sequence(seqgen._generateSequence(seqLen), "seq" + i, "r" + i));
- }
- return seqs;
- }
-};
-
-
-
-},{"./bmath":91,"biojs-model":27}],95:[function(require,module,exports){
-var Base, Line, Polygon, Rect, setAttr, svgns;
-
-svgns = "http://www.w3.org/2000/svg";
-
-setAttr = function(obj, opts) {
- var name, value;
- for (name in opts) {
- value = opts[name];
- obj.setAttributeNS(null, name, value);
- }
- return obj;
-};
-
-Base = function(opts) {
- var svg;
- svg = document.createElementNS(svgns, 'svg');
- svg.setAttribute("width", opts.width);
- svg.setAttribute("height", opts.height);
- return svg;
-};
-
-Rect = function(opts) {
- var rect;
- rect = document.createElementNS(svgns, 'rect');
- return setAttr(rect, opts);
-};
-
-Line = function(opts) {
- var line;
- line = document.createElementNS(svgns, 'line');
- return setAttr(line, opts);
-};
-
-Polygon = function(opts) {
- var line;
- line = document.createElementNS(svgns, 'polygon');
- return setAttr(line, opts);
-};
-
-module.exports.rect = Rect;
-
-module.exports.line = Line;
-
-module.exports.polygon = Polygon;
-
-module.exports.base = Base;
-
-
-
-},{}],96:[function(require,module,exports){
-var LabelBlock, SeqBlock, boneView;
-
-boneView = require("backbone-childs");
-
-SeqBlock = require("./CanvasSeqBlock");
-
-LabelBlock = require("./labels/LabelBlock");
-
-module.exports = boneView.extend({
- initialize: function(data) {
- var labelblock, seqblock;
- this.g = data.g;
- if (true) {
- labelblock = new LabelBlock({
- model: this.model,
- g: this.g
- });
- labelblock.ordering = -1;
- this.addView("labelblock", labelblock);
- }
- if (this.g.vis.get("sequences")) {
- seqblock = new SeqBlock({
- model: this.model,
- g: this.g
- });
- seqblock.ordering = 0;
- this.addView("seqblock", seqblock);
- }
- this.listenTo(this.g.zoomer, "change:alignmentHeight", this.adjustHeight);
- return this.listenTo(this.g.columns, "change:hidden", this.adjustHeight);
- },
- render: function() {
- this.renderSubviews();
- this.el.className = "biojs_msa_albody";
- this.el.style.whiteSpace = "nowrap";
- this.adjustHeight();
- return this;
- },
- adjustHeight: function() {
- if (this.g.zoomer.get("alignmentHeight") === "auto") {
- this.el.style.height = (this.g.zoomer.get("rowHeight") * this.model.length) + 5;
- } else {
- this.el.style.height = this.g.zoomer.get("alignmentHeight");
- }
- return this.el.style.width = this.getWidth() + 15;
- },
- getWidth: function() {
- var width;
- width = 0;
- if (this.g.vis.get("labels")) {
- width += this.g.zoomer.get("labelWidth");
- }
- if (this.g.vis.get("metacell")) {
- width += this.g.zoomer.get("metaWidth");
- }
- if (this.g.vis.get("sequences")) {
- width += this.g.zoomer.get("alignmentWidth");
- }
- return width;
- }
-});
-
-
-
-},{"./CanvasSeqBlock":98,"./labels/LabelBlock":104,"backbone-childs":3}],97:[function(require,module,exports){
-var CanvasCharCache, Events;
-
-Events = require("biojs-events");
-
-module.exports = CanvasCharCache = (function() {
- function CanvasCharCache(g) {
- this.g = g;
- this.cache = {};
- this.cacheHeight = 0;
- this.cacheWidth = 0;
- }
-
- CanvasCharCache.prototype.getFontTile = function(letter, width, height) {
- if (width !== this.cacheWidth || height !== this.cacheHeight) {
- this.cacheHeight = height;
- this.cacheWidth = width;
- this.cache = {};
- }
- if (this.cache[letter] === void 0) {
- this.createTile(letter, width, height);
- }
- return this.cache[letter];
- };
-
- CanvasCharCache.prototype.createTile = function(letter, width, height) {
- var canvas;
- canvas = this.cache[letter] = document.createElement("canvas");
- canvas.width = width;
- canvas.height = height;
- this.ctx = canvas.getContext('2d');
- this.ctx.font = this.g.zoomer.get("residueFont");
- this.ctx.textBaseline = 'middle';
- this.ctx.textAlign = "center";
- return this.ctx.fillText(letter, width / 2, height / 2, width);
- };
-
- return CanvasCharCache;
-
-})();
-
-
-
-},{"biojs-events":14}],98:[function(require,module,exports){
-var CharCache, boneView, colorSelector, jbone, mouse, _;
-
-boneView = require("backbone-childs");
-
-mouse = require("mouse-pos");
-
-colorSelector = require("biojs-util-colorschemes").selector;
-
-_ = require("underscore");
-
-jbone = require("jbone");
-
-CharCache = require("./CanvasCharCache");
-
-module.exports = boneView.extend({
- tagName: "canvas",
- initialize: function(data) {
- this.g = data.g;
- this.listenTo(this.g.zoomer, "change:_alignmentScrollLeft change:_alignmentScrollTop", function(model, value, options) {
- if (((options != null ? options.origin : void 0) == null) || options.origin !== "canvasseq") {
- return this.render();
- }
- });
- this.listenTo(this.g.columns, "change:hidden", this.render);
- this.listenTo(this.g.zoomer, "change:alignmentWidth", this.render);
- this.listenTo(this.g.colorscheme, "change", this.render);
- this.listenTo(this.g.selcol, "reset add", this.render);
- this.el.style.display = "inline-block";
- this.el.style.overflowX = "hidden";
- this.el.style.overflowY = "hidden";
- this.el.className = "biojs_msa_seqblock";
- this.ctx = this.el.getContext('2d');
- this.cache = new CharCache(this.g);
- this.throttleTime = 0;
- this.throttleCounts = 0;
- if (document.documentElement.style.webkitAppearance != null) {
- this.throttledDraw = function() {
- var start, tTime;
- start = +new Date();
- this.draw();
- this.throttleTime += +new Date() - start;
- this.throttleCounts++;
- if (this.throttleCounts > 15) {
- tTime = Math.ceil(this.throttleTime / this.throttleCounts);
- console.log("avgDrawTime/WebKit", tTime);
- return this.throttledDraw = this.draw;
- }
- };
- } else {
- this.throttledDraw = _.throttle(this.throttledDraw, 30);
- }
- return this.manageEvents();
- },
- throttledDraw: function() {
- var start, tTime;
- start = +new Date();
- this.draw();
- this.throttleTime += +new Date() - start;
- this.throttleCounts++;
- if (this.throttleCounts > 15) {
- tTime = Math.ceil(this.throttleTime / this.throttleCounts);
- console.log("avgDrawTime", tTime);
- tTime *= 1.2;
- tTime = Math.max(20, tTime);
- return this.throttledDraw = _.throttle(this.draw, tTime);
- }
- },
- manageEvents: function() {
- var events;
- events = {};
- events.mousedown = "_onmousedown";
- events.touchstart = "_ontouchstart";
- if (this.g.config.get("registerMouseClicks")) {
- events.dblclick = "_onclick";
- }
- if (this.g.config.get("registerMouseHover")) {
- events.mousein = "_onmousein";
- events.mouseout = "_onmouseout";
- }
- events.mousewheel = "_onmousewheel";
- events.DOMMouseScroll = "_onmousewheel";
- this.delegateEvents(events);
- this.listenTo(this.g.config, "change:registerMouseHover", this.manageEvents);
- this.listenTo(this.g.config, "change:registerMouseClick", this.manageEvents);
- return this.dragStart = [];
- },
- draw: function() {
- var rectHeight;
- this.el.width = this.el.width;
- rectHeight = this.g.zoomer.get("rowHeight");
- this.ctx.globalAlpha = this.g.colorscheme.get("opacity");
- this.drawSeqs(function(data) {
- return this.drawSeq(data, this._drawRect);
- });
- this.ctx.globalAlpha = 1;
- this.drawSeqs(function(data) {
- return this.drawSeq(data, this._drawLetter);
- });
- return this.drawSeqs(this.drawSeqExtended);
- },
- drawSeqs: function(callback) {
- var hidden, i, rectHeight, start, y, _i, _ref, _results;
- rectHeight = this.g.zoomer.get("rowHeight");
- hidden = this.g.columns.get("hidden");
- start = Math.max(0, Math.abs(Math.ceil(-this.g.zoomer.get('_alignmentScrollTop') / rectHeight)));
- y = -Math.abs(-this.g.zoomer.get('_alignmentScrollTop') % rectHeight);
- _results = [];
- for (i = _i = start, _ref = this.model.length - 1; _i <= _ref; i = _i += 1) {
- if (this.model.at(i).get('hidden')) {
- continue;
- }
- callback.call(this, {
- model: this.model.at(i),
- y: y,
- hidden: hidden
- });
- y = y + rectHeight;
- if (y > this.el.height) {
- break;
- } else {
- _results.push(void 0);
- }
- }
- return _results;
- },
- drawSeq: function(data, callback) {
- var c, elWidth, j, rectHeight, rectWidth, res, seq, start, x, y, _i, _ref, _results;
- seq = data.model.get("seq");
- y = data.y;
- rectWidth = this.g.zoomer.get("columnWidth");
- rectHeight = this.g.zoomer.get("rowHeight");
- start = Math.max(0, Math.abs(Math.ceil(-this.g.zoomer.get('_alignmentScrollLeft') / rectWidth)));
- x = -Math.abs(-this.g.zoomer.get('_alignmentScrollLeft') % rectWidth);
- res = {
- rectWidth: rectWidth,
- rectHeight: rectHeight,
- y: y
- };
- elWidth = this.el.width;
- _results = [];
- for (j = _i = start, _ref = seq.length - 1; _i <= _ref; j = _i += 1) {
- c = seq[j];
- c = c.toUpperCase();
- res.x = x;
- res.c = c;
- if (data.hidden.indexOf(j) < 0) {
- callback(this, res);
- } else {
- continue;
- }
- x = x + rectWidth;
- if (x > elWidth) {
- break;
- } else {
- _results.push(void 0);
- }
- }
- return _results;
- },
- _drawRect: function(that, data) {
- var color;
- color = that.color[data.c];
- if (color != null) {
- that.ctx.fillStyle = color;
- return that.ctx.fillRect(data.x, data.y, data.rectWidth, data.rectHeight);
- }
- },
- _drawLetter: function(that, data) {
- return that.ctx.drawImage(that.cache.getFontTile(data.c, data.rectWidth, data.rectHeight), data.x, data.y, data.rectWidth, data.rectHeight);
- },
- drawSeqExtended: function(data) {
- var f, features, j, mNextSel, mPrevSel, rectHeight, rectWidth, selection, seq, start, starts, x, xZero, yZero, _i, _j, _len, _ref, _ref1;
- seq = data.model.get("seq");
- rectWidth = this.g.zoomer.get("columnWidth");
- rectHeight = this.g.zoomer.get("rowHeight");
- start = Math.max(0, Math.abs(Math.ceil(-this.g.zoomer.get('_alignmentScrollLeft') / rectWidth)));
- x = -Math.abs(-this.g.zoomer.get('_alignmentScrollLeft') % rectWidth);
- xZero = x - start * rectWidth;
- selection = this._getSelection(data.model);
- _ref = this._getPrevNextSelection(data.model), mPrevSel = _ref[0], mNextSel = _ref[1];
- features = data.model.get("features");
- yZero = data.y;
- for (j = _i = start, _ref1 = seq.length - 1; _i <= _ref1; j = _i += 1) {
- starts = features.startOn(j);
- if (data.hidden.indexOf(j) >= 0) {
- continue;
- }
- if (starts.length > 0) {
- for (_j = 0, _len = starts.length; _j < _len; _j++) {
- f = starts[_j];
- this.appendFeature({
- f: f,
- xZero: x,
- yZero: yZero
- });
- }
- }
- x = x + rectWidth;
- if (x > this.el.width) {
- break;
- }
- }
- return this._appendSelection({
- model: data.model,
- xZero: xZero,
- yZero: yZero,
- hidden: data.hidden
- });
- },
- render: function() {
- this.el.setAttribute('height', this.g.zoomer.get("alignmentHeight"));
- this.el.setAttribute('width', this.g.zoomer.get("alignmentWidth"));
- this.g.zoomer._adjustWidth(this.el, this.model);
- this.g.zoomer._checkScrolling(this._checkScrolling([this.g.zoomer.get('_alignmentScrollLeft'), this.g.zoomer.get('_alignmentScrollTop')]), {
- header: "canvasseq"
- });
- this.color = colorSelector.getColor(this.g.colorscheme.get("scheme"));
- this.throttledDraw();
- return this;
- },
- _onmousemove: function(e, reversed) {
- var dragEnd, i, relDist, relEnd, scaleFactor, scrollCorrected, _i, _j, _k;
- if (this.dragStart.length === 0) {
- return;
- }
- dragEnd = mouse.abs(e);
- relEnd = [dragEnd[0] - this.dragStart[0], dragEnd[1] - this.dragStart[1]];
- scaleFactor = this.g.zoomer.get("canvasEventScale");
- if (reversed) {
- scaleFactor = 3;
- }
- for (i = _i = 0; _i <= 1; i = _i += 1) {
- relEnd[i] = relEnd[i] * scaleFactor;
- }
- relDist = [this.dragStartScroll[0] - relEnd[0], this.dragStartScroll[1] - relEnd[1]];
- for (i = _j = 0; _j <= 1; i = _j += 1) {
- relDist[i] = Math.round(relDist[i]);
- }
- scrollCorrected = this._checkScrolling(relDist);
- this.g.zoomer._checkScrolling(scrollCorrected, {
- origin: "canvasseq"
- });
- for (i = _k = 0; _k <= 1; i = _k += 1) {
- if (scrollCorrected[i] !== relDist[i]) {
- if (scrollCorrected[i] === 0) {
- this.dragStart[i] = dragEnd[i];
- this.dragStartScroll[i] = 0;
- } else {
- this.dragStart[i] = dragEnd[i] - scrollCorrected[i];
- }
- }
- }
- this.throttledDraw();
- if (e.preventDefault != null) {
- e.preventDefault();
- return e.stopPropagation();
- }
- },
- _ontouchmove: function(e) {
- this._onmousemove(e.changedTouches[0], true);
- e.preventDefault();
- return e.stopPropagation();
- },
- _onmousedown: function(e) {
- this.dragStart = mouse.abs(e);
- this.dragStartScroll = [this.g.zoomer.get('_alignmentScrollLeft'), this.g.zoomer.get('_alignmentScrollTop')];
- jbone(document.body).on('mousemove.overmove', (function(_this) {
- return function(e) {
- return _this._onmousemove(e);
- };
- })(this));
- jbone(document.body).on('mouseup.overup', (function(_this) {
- return function() {
- return _this._cleanup();
- };
- })(this));
- return e.preventDefault();
- },
- _ontouchstart: function(e) {
- this.dragStart = mouse.abs(e.changedTouches[0]);
- this.dragStartScroll = [this.g.zoomer.get('_alignmentScrollLeft'), this.g.zoomer.get('_alignmentScrollTop')];
- jbone(document.body).on('touchmove.overtmove', (function(_this) {
- return function(e) {
- return _this._ontouchmove(e);
- };
- })(this));
- return jbone(document.body).on('touchend.overtend touchleave.overtleave touchcancel.overtcanel', (function(_this) {
- return function(e) {
- return _this._touchCleanup(e);
- };
- })(this));
- },
- _onmousewinout: function(e) {
- if (e.toElement === document.body.parentNode) {
- return this._cleanup();
- }
- },
- _cleanup: function() {
- this.dragStart = [];
- jbone(document.body).off('.overmove');
- jbone(document.body).off('.overup');
- return jbone(document.body).off('.overout');
- },
- _touchCleanup: function(e) {
- if (e.changedTouches.length > 0) {
- this._onmousemove(e.changedTouches[0], true);
- }
- this.dragStart = [];
- jbone(document.body).off('.overtmove');
- jbone(document.body).off('.overtend');
- jbone(document.body).off('.overtleave');
- return jbone(document.body).off('.overtcancel');
- },
- _onmousewheel: function(e) {
- var delta;
- delta = mouse.wheelDelta(e);
- this.g.zoomer.set('_alignmentScrollLeft', this.g.zoomer.get('_alignmentScrollLeft') + delta[0]);
- this.g.zoomer.set('_alignmentScrollTop', this.g.zoomer.get('_alignmentScrollTop') + delta[1]);
- return e.preventDefault();
- },
- _onclick: function(e) {
- this.g.trigger("residue:click", this._getClickPos(e));
- return this.throttledDraw();
- },
- _onmousein: function(e) {
- this.g.trigger("residue:click", this._getClickPos(e));
- return this.throttledDraw();
- },
- _onmouseout: function(e) {
- this.g.trigger("residue:click", this._getClickPos(e));
- return this.throttledDraw();
- },
- _getClickPos: function(e) {
- var coords, seqId, x, y;
- coords = mouse.rel(e);
- coords[0] += this.g.zoomer.get("_alignmentScrollLeft");
- coords[1] += this.g.zoomer.get("_alignmentScrollTop");
- x = Math.floor(coords[0] / this.g.zoomer.get("columnWidth"));
- y = Math.floor(coords[1] / this.g.zoomer.get("rowHeight"));
- x += this.g.columns.calcHiddenColumns(x);
- y += this.model.calcHiddenSeqs(y);
- x = Math.max(0, x);
- y = Math.max(0, y);
- seqId = this.model.at(y).get("id");
- return {
- seqId: seqId,
- rowPos: x,
- evt: e
- };
- },
- _checkScrolling: function(scrollObj) {
- var i, max, _i;
- max = [this.model.getMaxLength() * this.g.zoomer.get("columnWidth") - this.g.zoomer.get('alignmentWidth'), this.model.length * this.g.zoomer.get("rowHeight") - this.g.zoomer.get('alignmentHeight')];
- for (i = _i = 0; _i <= 1; i = _i += 1) {
- if (scrollObj[i] > max[i]) {
- scrollObj[i] = max[i];
- }
- if (scrollObj[i] < 0) {
- scrollObj[i] = 0;
- }
- }
- return scrollObj;
- },
- _getSelection: function(model) {
- var maxLen, n, rows, sel, selection, sels, _i, _j, _k, _len, _ref, _ref1, _ref2;
- maxLen = model.get("seq").length;
- selection = [];
- sels = this.g.selcol.getSelForRow(model.get("id"));
- rows = _.find(sels, function(el) {
- return el.get("type") === "row";
- });
- if (rows != null) {
- for (n = _i = 0, _ref = maxLen - 1; _i <= _ref; n = _i += 1) {
- selection.push(n);
- }
- } else if (sels.length > 0) {
- for (_j = 0, _len = sels.length; _j < _len; _j++) {
- sel = sels[_j];
- for (n = _k = _ref1 = sel.get("xStart"), _ref2 = sel.get("xEnd"); _k <= _ref2; n = _k += 1) {
- selection.push(n);
- }
- }
- }
- return selection;
- },
- appendFeature: function(data) {
- var beforeStyle, beforeWidth, boxHeight, boxWidth, f, width;
- f = data.f;
- boxWidth = this.g.zoomer.get("columnWidth");
- boxHeight = this.g.zoomer.get("rowHeight");
- width = (f.get("xEnd") - f.get("xStart")) * boxWidth;
- beforeWidth = this.ctx.lineWidth;
- this.ctx.lineWidth = 3;
- beforeStyle = this.ctx.strokeStyle;
- this.ctx.strokeStyle = f.get("fillColor");
- this.ctx.strokeRect(data.xZero, data.yZero, width, boxHeight);
- this.ctx.strokeStyle = beforeStyle;
- return this.ctx.lineWidth = beforeWidth;
- },
- _appendSelection: function(data) {
- var boxHeight, boxWidth, hiddenOffset, k, mNextSel, mPrevSel, n, selection, seq, _i, _ref, _ref1, _results;
- seq = data.model.get("seq");
- selection = this._getSelection(data.model);
- _ref = this._getPrevNextSelection(data.model), mPrevSel = _ref[0], mNextSel = _ref[1];
- boxWidth = this.g.zoomer.get("columnWidth");
- boxHeight = this.g.zoomer.get("rowHeight");
- if (selection.length === 0) {
- return;
- }
- hiddenOffset = 0;
- _results = [];
- for (n = _i = 0, _ref1 = seq.length - 1; _i <= _ref1; n = _i += 1) {
- if (data.hidden.indexOf(n) >= 0) {
- _results.push(hiddenOffset++);
- } else {
- k = n - hiddenOffset;
- if (selection.indexOf(n) >= 0 && (k === 0 || selection.indexOf(n - 1) < 0)) {
- _results.push(this._renderSelection({
- n: n,
- k: k,
- selection: selection,
- mPrevSel: mPrevSel,
- mNextSel: mNextSel,
- xZero: data.xZero,
- yZero: data.yZero,
- model: data.model
- }));
- } else {
- _results.push(void 0);
- }
- }
- }
- return _results;
- },
- _renderSelection: function(data) {
- var beforeStyle, beforeWidth, boxHeight, boxWidth, hidden, i, k, mNextSel, mPrevSel, n, selection, selectionLength, totalWidth, xPart, xPos, xZero, yZero, _i, _j, _ref, _ref1;
- xZero = data.xZero;
- yZero = data.yZero;
- n = data.n;
- k = data.k;
- selection = data.selection;
- mPrevSel = data.mPrevSel;
- mNextSel = data.mNextSel;
- selectionLength = 0;
- for (i = _i = n, _ref = data.model.get("seq").length - 1; _i <= _ref; i = _i += 1) {
- if (selection.indexOf(i) >= 0) {
- selectionLength++;
- } else {
- break;
- }
- }
- boxWidth = this.g.zoomer.get("columnWidth");
- boxHeight = this.g.zoomer.get("rowHeight");
- totalWidth = (boxWidth * selectionLength) + 1;
- hidden = this.g.columns.get('hidden');
- this.ctx.beginPath();
- beforeWidth = this.ctx.lineWidth;
- this.ctx.lineWidth = 3;
- beforeStyle = this.ctx.strokeStyle;
- this.ctx.strokeStyle = "#FF0000";
- xZero += k * boxWidth;
- xPart = 0;
- for (i = _j = 0, _ref1 = selectionLength - 1; 0 <= _ref1 ? _j <= _ref1 : _j >= _ref1; i = 0 <= _ref1 ? ++_j : --_j) {
- xPos = n + i;
- if (hidden.indexOf(xPos) >= 0) {
- continue;
- }
- if (!((mPrevSel != null) && mPrevSel.indexOf(xPos) >= 0)) {
- this.ctx.moveTo(xZero + xPart, yZero);
- this.ctx.lineTo(xPart + boxWidth + xZero, yZero);
- }
- if (!((mNextSel != null) && mNextSel.indexOf(xPos) >= 0)) {
- this.ctx.moveTo(xPart + xZero, boxHeight + yZero);
- this.ctx.lineTo(xPart + boxWidth + xZero, boxHeight + yZero);
- }
- xPart += boxWidth;
- }
- this.ctx.moveTo(xZero, yZero);
- this.ctx.lineTo(xZero, boxHeight + yZero);
- this.ctx.moveTo(xZero + totalWidth, yZero);
- this.ctx.lineTo(xZero + totalWidth, boxHeight + yZero);
- this.ctx.stroke();
- this.ctx.strokeStyle = beforeStyle;
- return this.ctx.lineWidth = beforeWidth;
- },
- _getPrevNextSelection: function(model) {
- var mNextSel, mPrevSel, modelNext, modelPrev;
- modelPrev = model.collection.prev(model);
- modelNext = model.collection.next(model);
- if (modelPrev != null) {
- mPrevSel = this._getSelection(modelPrev);
- }
- if (modelNext != null) {
- mNextSel = this._getSelection(modelNext);
- }
- return [mPrevSel, mNextSel];
- }
-});
-
-
-
-},{"./CanvasCharCache":97,"backbone-childs":3,"biojs-util-colorschemes":29,"jbone":50,"mouse-pos":51,"underscore":59}],99:[function(require,module,exports){
-var OverviewBox, colorSelector, jbone, mouse, selection, view, _;
-
-view = require("backbone-viewj");
-
-mouse = require("mouse-pos");
-
-selection = require("../g/selection/Selection");
-
-colorSelector = require("biojs-util-colorschemes").selector;
-
-jbone = require("jbone");
-
-_ = require("underscore");
-
-module.exports = OverviewBox = view.extend({
- className: "biojs_msa_overviewbox",
- tagName: "canvas",
- initialize: function(data) {
- this.g = data.g;
- this.listenTo(this.g.zoomer, "change:boxRectWidth change:boxRectHeight", this.render);
- this.listenTo(this.g.selcol, "add reset change", this.render);
- this.listenTo(this.g.columns, "change:hidden", this.render);
- this.listenTo(this.g.colorscheme, "change:showLowerCase", this.render);
- this.listenTo(this.model, "change", _.debounce(this.render, 5));
- this.color = colorSelector.getColor(this.g.colorscheme.get("scheme"));
- this.listenTo(this.g.colorscheme, "change:scheme", function() {
- this.color = colorSelector.getColor(this.g.colorscheme.get("scheme"));
- return this.render();
- });
- return this.dragStart = [];
- },
- events: {
- click: "_onclick",
- mousedown: "_onmousedown"
- },
- render: function() {
- var c, color, hidden, i, j, rectHeight, rectWidth, seq, showLowerCase, x, y, _i, _j, _ref, _ref1;
- this._createCanvas();
- this.el.textContent = "overview";
- this.ctx.fillStyle = "#999999";
- this.ctx.fillRect(0, 0, this.el.width, this.el.height);
- rectWidth = this.g.zoomer.get("boxRectWidth");
- rectHeight = this.g.zoomer.get("boxRectHeight");
- hidden = this.g.columns.get("hidden");
- showLowerCase = this.g.colorscheme.get("showLowerCase");
- y = -rectHeight;
- for (i = _i = 0, _ref = this.model.length - 1; _i <= _ref; i = _i += 1) {
- seq = this.model.at(i).get("seq");
- x = 0;
- y = y + rectHeight;
- if (this.model.at(i).get("hidden")) {
- console.log(this.model.at(i).get("hidden"));
- this.ctx.fillStyle = "grey";
- this.ctx.fillRect(0, y, seq.length * rectWidth, rectHeight);
- continue;
- }
- for (j = _j = 0, _ref1 = seq.length - 1; _j <= _ref1; j = _j += 1) {
- c = seq[j];
- if (showLowerCase) {
- c = c.toUpperCase();
- }
- color = this.color[c];
- if (hidden.indexOf(j) >= 0) {
- color = "grey";
- }
- if (color != null) {
- this.ctx.fillStyle = color;
- this.ctx.fillRect(x, y, rectWidth, rectHeight);
- }
- x = x + rectWidth;
- }
- }
- return this._drawSelection();
- },
- _drawSelection: function() {
- var i, maxHeight, pos, rectHeight, rectWidth, sel, seq, _i, _ref;
- if (this.dragStart.length > 0 && !this.prolongSelection) {
- return;
- }
- rectWidth = this.g.zoomer.get("boxRectWidth");
- rectHeight = this.g.zoomer.get("boxRectHeight");
- maxHeight = rectHeight * this.model.length;
- this.ctx.fillStyle = "#ffff00";
- this.ctx.globalAlpha = 0.9;
- for (i = _i = 0, _ref = this.g.selcol.length - 1; _i <= _ref; i = _i += 1) {
- sel = this.g.selcol.at(i);
- if (sel.get('type') === 'column') {
- this.ctx.fillRect(rectWidth * sel.get('xStart'), 0, rectWidth * (sel.get('xEnd') - sel.get('xStart') + 1), maxHeight);
- } else if (sel.get('type') === 'row') {
- seq = (this.model.filter(function(el) {
- return el.get('id') === sel.get('seqId');
- }))[0];
- pos = this.model.indexOf(seq);
- this.ctx.fillRect(0, rectHeight * pos, rectWidth * seq.get('seq').length, rectHeight);
- } else if (sel.get('type') === 'pos') {
- seq = (this.model.filter(function(el) {
- return el.get('id') === sel.get('seqId');
- }))[0];
- pos = this.model.indexOf(seq);
- this.ctx.fillRect(rectWidth * sel.get('xStart'), rectHeight * pos, rectWidth * (sel.get('xEnd') - sel.get('xStart') + 1), rectHeight);
- }
- }
- return this.ctx.globalAlpha = 1;
- },
- _onclick: function(evt) {
- return this.g.trigger("meta:click", {
- seqId: this.model.get("id", {
- evt: evt
- })
- });
- },
- _onmousemove: function(e) {
- var rect;
- if (this.dragStart.length === 0) {
- return;
- }
- this.render();
- this.ctx.fillStyle = "#ffff00";
- this.ctx.globalAlpha = 0.9;
- rect = this._calcSelection(mouse.abs(e));
- this.ctx.fillRect(rect[0][0], rect[1][0], rect[0][1] - rect[0][0], rect[1][1] - rect[1][0]);
- e.preventDefault();
- return e.stopPropagation();
- },
- _onmousedown: function(e) {
- this.dragStart = mouse.abs(e);
- this.dragStartRel = mouse.rel(e);
- if (e.ctrlKey || e.metaKey) {
- this.prolongSelection = true;
- } else {
- this.prolongSelection = false;
- }
- jbone(document.body).on('mousemove.overmove', (function(_this) {
- return function(e) {
- return _this._onmousemove(e);
- };
- })(this));
- jbone(document.body).on('mouseup.overup', (function(_this) {
- return function(e) {
- return _this._onmouseup(e);
- };
- })(this));
- return this.dragStart;
- },
- _calcSelection: function(dragMove) {
- var dragRel, i, rect, _i, _j;
- dragRel = [dragMove[0] - this.dragStart[0], dragMove[1] - this.dragStart[1]];
- for (i = _i = 0; _i <= 1; i = _i += 1) {
- dragRel[i] = this.dragStartRel[i] + dragRel[i];
- }
- rect = [[this.dragStartRel[0], dragRel[0]], [this.dragStartRel[1], dragRel[1]]];
- for (i = _j = 0; _j <= 1; i = _j += 1) {
- if (rect[i][1] < rect[i][0]) {
- rect[i] = [rect[i][1], rect[i][0]];
- }
- rect[i][0] = Math.max(rect[i][0], 0);
- }
- return rect;
- },
- _endSelection: function(dragEnd) {
- var args, i, j, rect, selis, _i, _j, _k, _ref, _ref1;
- jbone(document.body).off('.overmove');
- jbone(document.body).off('.overup');
- if (this.dragStart.length === 0) {
- return;
- }
- rect = this._calcSelection(dragEnd);
- for (i = _i = 0; _i <= 1; i = ++_i) {
- rect[0][i] = Math.floor(rect[0][i] / this.g.zoomer.get("boxRectWidth"));
- }
- for (i = _j = 0; _j <= 1; i = ++_j) {
- rect[1][i] = Math.floor(rect[1][i] / this.g.zoomer.get("boxRectHeight"));
- }
- rect[0][1] = Math.min(this.model.getMaxLength() - 1, rect[0][1]);
- rect[1][1] = Math.min(this.model.length - 1, rect[1][1]);
- selis = [];
- for (j = _k = _ref = rect[1][0], _ref1 = rect[1][1]; _k <= _ref1; j = _k += 1) {
- args = {
- seqId: this.model.at(j).get('id'),
- xStart: rect[0][0],
- xEnd: rect[0][1]
- };
- selis.push(new selection.possel(args));
- }
- this.dragStart = [];
- if (this.prolongSelection) {
- this.g.selcol.add(selis);
- } else {
- this.g.selcol.reset(selis);
- }
- this.g.zoomer.setLeftOffset(rect[0][0]);
- return this.g.zoomer.setTopOffset(rect[1][0]);
- },
- _onmouseup: function(e) {
- return this._endSelection(mouse.abs(e));
- },
- _onmouseout: function(e) {
- return this._endSelection(mouse.abs(e));
- },
- _createCanvas: function() {
- var rectHeight, rectWidth;
- rectWidth = this.g.zoomer.get("boxRectWidth");
- rectHeight = this.g.zoomer.get("boxRectHeight");
- this.el.height = this.model.length * rectHeight;
- this.el.width = this.model.getMaxLength() * rectWidth;
- this.ctx = this.el.getContext("2d");
- this.el.style.overflow = "scroll";
- return this.el.style.cursor = "crosshair";
- }
-});
-
-
-
-},{"../g/selection/Selection":67,"backbone-viewj":10,"biojs-util-colorschemes":29,"jbone":50,"mouse-pos":51,"underscore":59}],100:[function(require,module,exports){
-var AlignmentBody, HeaderBlock, OverviewBox, boneView, identityCalc, _;
-
-boneView = require("backbone-childs");
-
-AlignmentBody = require("./AlignmentBody");
-
-HeaderBlock = require("./header/HeaderBlock");
-
-OverviewBox = require("./OverviewBox");
-
-identityCalc = require("../algo/identityCalc");
-
-_ = require('underscore');
-
-module.exports = boneView.extend({
- initialize: function(data) {
- this.g = data.g;
- this.draw();
- this.listenTo(this.model, "reset", function() {
- this.isNotDirty = false;
- return this.rerender();
- });
- this.listenTo(this.model, "change:hidden", _.debounce(this.rerender, 10));
- this.listenTo(this.model, "sort", this.rerender);
- this.listenTo(this.model, "add", function() {
- return console.log("seq add");
- });
- this.listenTo(this.g.vis, "change:sequences", this.rerender);
- this.listenTo(this.g.vis, "change:overviewbox", this.rerender);
- return this.listenTo(this.g.visorder, "change", this.rerender);
- },
- draw: function() {
- var body, consensus, headerblock, overviewbox;
- this.removeViews();
- if (!this.isNotDirty) {
- consensus = this.g.consensus.getConsensus(this.model);
- identityCalc(this.model, consensus);
- this.isNotDirty = true;
- }
- if (this.g.vis.get("overviewbox")) {
- overviewbox = new OverviewBox({
- model: this.model,
- g: this.g
- });
- overviewbox.ordering = this.g.visorder.get('overviewBox');
- this.addView("overviewbox", overviewbox);
- }
- if (true) {
- headerblock = new HeaderBlock({
- model: this.model,
- g: this.g
- });
- headerblock.ordering = this.g.visorder.get('headerBox');
- this.addView("headerblock", headerblock);
- }
- body = new AlignmentBody({
- model: this.model,
- g: this.g
- });
- body.ordering = this.g.visorder.get('alignmentBody');
- return this.addView("body", body);
- },
- render: function() {
- this.renderSubviews();
- this.el.className = "biojs_msa_stage";
- return this;
- },
- rerender: function() {
- this.draw();
- return this.render();
- }
-});
-
-
-
-},{"../algo/identityCalc":61,"./AlignmentBody":96,"./OverviewBox":99,"./header/HeaderBlock":102,"backbone-childs":3,"underscore":59}],101:[function(require,module,exports){
-var ConservationView, dom, svg, view;
-
-view = require("backbone-viewj");
-
-dom = require("dom-helper");
-
-svg = require("../../utils/svg");
-
-ConservationView = view.extend({
- className: "biojs_msa_conserv",
- initialize: function(data) {
- this.g = data.g;
- this.listenTo(this.g.zoomer, "change:stepSize change:labelWidth change:columnWidth", this.render);
- this.listenTo(this.g.vis, "change:labels change:metacell", this.render);
- this.listenTo(this.g.columns, "change:scaling", this.render);
- this.listenTo(this.model, "reset", this.render);
- return this.manageEvents();
- },
- render: function() {
- var avgHeight, cellWidth, height, hidden, i, maxHeight, n, nMax, rect, s, stepSize, width, x, _i, _ref;
- this.g.columns.calcConservation(this.model);
- dom.removeAllChilds(this.el);
- nMax = this.model.getMaxLength();
- cellWidth = this.g.zoomer.get("columnWidth");
- maxHeight = 20;
- width = cellWidth * (nMax - this.g.columns.get('hidden').length);
- console.log(this.g.columns.get('hidden'));
- s = svg.base({
- height: maxHeight,
- width: width
- });
- s.style.display = "inline-block";
- s.style.cursor = "pointer";
- stepSize = this.g.zoomer.get("stepSize");
- hidden = this.g.columns.get("hidden");
- x = 0;
- n = 0;
- while (n < nMax) {
- if (hidden.indexOf(n) >= 0) {
- n += stepSize;
- continue;
- }
- width = cellWidth * stepSize;
- avgHeight = 0;
- for (i = _i = 0, _ref = stepSize - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; i = 0 <= _ref ? ++_i : --_i) {
- avgHeight += this.g.columns.get("conserv")[n];
- }
- height = maxHeight * (avgHeight / stepSize);
- rect = svg.rect({
- x: x,
- y: maxHeight - height,
- width: width - cellWidth / 4,
- height: height,
- style: "stroke:red;stroke-width:1;"
- });
- rect.rowPos = n;
- s.appendChild(rect);
- x += width;
- n += stepSize;
- }
- this.el.appendChild(s);
- return this;
- },
- _onclick: function(evt) {
- var i, rowPos, stepSize, _i, _ref, _results;
- rowPos = evt.target.rowPos;
- stepSize = this.g.zoomer.get("stepSize");
- _results = [];
- for (i = _i = 0, _ref = stepSize - 1; _i <= _ref; i = _i += 1) {
- _results.push(this.g.trigger("bar:click", {
- rowPos: rowPos + i,
- evt: evt
- }));
- }
- return _results;
- },
- manageEvents: function() {
- var events;
- events = {};
- if (this.g.config.get("registerMouseClicks")) {
- events.click = "_onclick";
- }
- if (this.g.config.get("registerMouseHover")) {
- events.mousein = "_onmousein";
- events.mouseout = "_onmouseout";
- }
- this.delegateEvents(events);
- this.listenTo(this.g.config, "change:registerMouseHover", this.manageEvents);
- return this.listenTo(this.g.config, "change:registerMouseClick", this.manageEvents);
- },
- _onmousein: function(evt) {
- var rowPos;
- rowPos = this.g.zoomer.get("stepSize" * evt.rowPos);
- return this.g.trigger("bar:mousein", {
- rowPos: rowPos,
- evt: evt
- });
- },
- _onmouseout: function(evt) {
- var rowPos;
- rowPos = this.g.zoomer.get("stepSize" * evt.rowPos);
- return this.g.trigger("bar:mouseout", {
- rowPos: rowPos,
- evt: evt
- });
- }
-});
-
-module.exports = ConservationView;
-
-
-
-},{"../../utils/svg":95,"backbone-viewj":10,"dom-helper":49}],102:[function(require,module,exports){
-var ConservationView, MarkerView, boneView, identityCalc, _;
-
-MarkerView = require("./MarkerView");
-
-ConservationView = require("./ConservationView");
-
-identityCalc = require("../../algo/identityCalc");
-
-boneView = require("backbone-childs");
-
-_ = require('underscore');
-
-module.exports = boneView.extend({
- initialize: function(data) {
- this.g = data.g;
- this.blockEvents = false;
- this.listenTo(this.g.vis, "change:markers change:conserv", function() {
- this.draw();
- return this.render();
- });
- this.listenTo(this.g.vis, "change", this._setSpacer);
- this.listenTo(this.g.zoomer, "change:alignmentWidth", function() {
- return this._adjustWidth();
- });
- this.listenTo(this.g.zoomer, "change:_alignmentScrollLeft", this._adjustScrollingLeft);
- this.listenTo(this.g.columns, "change:hidden", function() {
- this.draw();
- return this.render();
- });
- this.draw();
- this._onscroll = this._sendScrollEvent;
- return this.g.vis.once('change:loaded', this._adjustScrollingLeft, this);
- },
- events: {
- "scroll": "_onscroll"
- },
- draw: function() {
- var consensus, conserv, marker;
- this.removeViews();
- if (!this.isNotDirty) {
- consensus = this.g.consensus.getConsensus(this.model);
- identityCalc(this.model, consensus);
- this.isNotDirty = true;
- }
- if (this.g.vis.get("conserv")) {
- conserv = new ConservationView({
- model: this.model,
- g: this.g
- });
- conserv.ordering = -20;
- this.addView("conserv", conserv);
- }
- if (this.g.vis.get("markers")) {
- marker = new MarkerView({
- model: this.model,
- g: this.g
- });
- marker.ordering = -10;
- return this.addView("marker", marker);
- }
- },
- render: function() {
- this.renderSubviews();
- this._setSpacer();
- this.el.className = "biojs_msa_header";
- this.el.style.overflowX = "auto";
- this._adjustWidth();
- this._adjustScrollingLeft();
- return this;
- },
- _sendScrollEvent: function() {
- if (!this.blockEvents) {
- this.g.zoomer.set("_alignmentScrollLeft", this.el.scrollLeft, {
- origin: "header"
- });
- }
- return this.blockEvents = false;
- },
- _adjustScrollingLeft: function(model, value, options) {
- var scrollLeft;
- if (((options != null ? options.origin : void 0) == null) || options.origin !== "header") {
- scrollLeft = this.g.zoomer.get("_alignmentScrollLeft");
- this.blockEvents = true;
- return this.el.scrollLeft = scrollLeft;
- }
- },
- _setSpacer: function() {
- return this.el.style.marginLeft = this._getLabelWidth() + "px";
- },
- _getLabelWidth: function() {
- var paddingLeft;
- paddingLeft = 0;
- if (this.g.vis.get("labels")) {
- paddingLeft += this.g.zoomer.get("labelWidth");
- }
- if (this.g.vis.get("metacell")) {
- paddingLeft += this.g.zoomer.get("metaWidth");
- }
- return paddingLeft;
- },
- _adjustWidth: function() {
- return this.el.style.width = this.g.zoomer.get("alignmentWidth") + "px";
- }
-});
-
-
-
-},{"../../algo/identityCalc":61,"./ConservationView":101,"./MarkerView":103,"backbone-childs":3,"underscore":59}],103:[function(require,module,exports){
-var HeaderView, dom, jbone, svg, view;
-
-view = require("backbone-viewj");
-
-dom = require("dom-helper");
-
-svg = require("../../utils/svg");
-
-jbone = require("jbone");
-
-HeaderView = view.extend({
- className: "biojs_msa_marker",
- initialize: function(data) {
- this.g = data.g;
- this.listenTo(this.g.zoomer, "change:stepSize change:labelWidth change:columnWidth change:markerStepSize change:markerFontsize", this.render);
- this.listenTo(this.g.vis, "change:labels change:metacell", this.render);
- return this.manageEvents();
- },
- render: function() {
- var cellWidth, container, hidden, n, nMax, span, stepSize;
- dom.removeAllChilds(this.el);
- this.el.style.fontSize = this.g.zoomer.get("markerFontsize");
- container = document.createElement("span");
- n = 0;
- cellWidth = this.g.zoomer.get("columnWidth");
- nMax = this.model.getMaxLength();
- stepSize = this.g.zoomer.get("stepSize");
- hidden = this.g.columns.get("hidden");
- while (n < nMax) {
- if (hidden.indexOf(n) >= 0) {
- this.markerHidden(span, n, stepSize);
- n += stepSize;
- continue;
- }
- span = document.createElement("span");
- span.style.width = (cellWidth * stepSize) + "px";
- span.style.display = "inline-block";
- if ((n + 1) % this.g.zoomer.get('markerStepSize') === 0) {
- span.textContent = n + 1;
- } else {
- span.textContent = ".";
- }
- span.rowPos = n;
- n += stepSize;
- container.appendChild(span);
- }
- this.el.appendChild(container);
- return this;
- },
- markerHidden: function(span, n, stepSize) {
- var hidden, index, j, length, min, nMax, prevHidden, s, triangle, _i, _j;
- hidden = this.g.columns.get("hidden").slice(0);
- min = Math.max(0, n - stepSize);
- prevHidden = true;
- for (j = _i = min; _i <= n; j = _i += 1) {
- prevHidden &= hidden.indexOf(j) >= 0;
- }
- if (prevHidden) {
- return;
- }
- nMax = this.model.getMaxLength();
- length = 0;
- index = -1;
- for (n = _j = n; _j <= nMax; n = _j += 1) {
- if (!(index >= 0)) {
- index = hidden.indexOf(n);
- }
- if (hidden.indexOf(n) >= 0) {
- length++;
- } else {
- break;
- }
- }
- s = svg.base({
- height: 10,
- width: 10
- });
- s.style.position = "relative";
- triangle = svg.polygon({
- points: "0,0 5,5 10,0",
- style: "fill:lime;stroke:purple;stroke-width:1"
- });
- jbone(triangle).on("click", (function(_this) {
- return function(evt) {
- hidden.splice(index, length);
- return _this.g.columns.set("hidden", hidden);
- };
- })(this));
- s.appendChild(triangle);
- span.appendChild(s);
- return s;
- },
- manageEvents: function() {
- var events;
- events = {};
- if (this.g.config.get("registerMouseClicks")) {
- events.click = "_onclick";
- }
- if (this.g.config.get("registerMouseHover")) {
- events.mousein = "_onmousein";
- events.mouseout = "_onmouseout";
- }
- this.delegateEvents(events);
- this.listenTo(this.g.config, "change:registerMouseHover", this.manageEvents);
- return this.listenTo(this.g.config, "change:registerMouseClick", this.manageEvents);
- },
- _onclick: function(evt) {
- var rowPos, stepSize;
- rowPos = evt.target.rowPos;
- stepSize = this.g.zoomer.get("stepSize");
- return this.g.trigger("column:click", {
- rowPos: rowPos,
- stepSize: stepSize,
- evt: evt
- });
- },
- _onmousein: function(evt) {
- var rowPos, stepSize;
- rowPos = this.g.zoomer.get("stepSize" * evt.rowPos);
- stepSize = this.g.zoomer.get("stepSize");
- return this.g.trigger("column:mousein", {
- rowPos: rowPos,
- stepSize: stepSize,
- evt: evt
- });
- },
- _onmouseout: function(evt) {
- var rowPos, stepSize;
- rowPos = this.g.zoomer.get("stepSize" * evt.rowPos);
- stepSize = this.g.zoomer.get("stepSize");
- return this.g.trigger("column:mouseout", {
- rowPos: rowPos,
- stepSize: stepSize,
- evt: evt
- });
- }
-});
-
-module.exports = HeaderView;
-
-
-
-},{"../../utils/svg":95,"backbone-viewj":10,"dom-helper":49,"jbone":50}],104:[function(require,module,exports){
-var LabelRowView, boneView;
-
-LabelRowView = require("./LabelRowView");
-
-boneView = require("backbone-childs");
-
-module.exports = boneView.extend({
- initialize: function(data) {
- this.g = data.g;
- this.draw();
- this.listenTo(this.g.zoomer, "change:_alignmentScrollTop", this._adjustScrollingTop);
- return this.g.vis.once('change:loaded', this._adjustScrollingTop, this);
- },
- draw: function() {
- var i, view, _i, _ref, _results;
- this.removeViews();
- _results = [];
- for (i = _i = 0, _ref = this.model.length - 1; _i <= _ref; i = _i += 1) {
- if (this.model.at(i).get('hidden')) {
- continue;
- }
- view = new LabelRowView({
- model: this.model.at(i),
- g: this.g
- });
- view.ordering = i;
- _results.push(this.addView("row_" + i, view));
- }
- return _results;
- },
- events: {
- "scroll": "_sendScrollEvent"
- },
- _sendScrollEvent: function() {
- return this.g.zoomer.set("_alignmentScrollTop", this.el.scrollTop, {
- origin: "label"
- });
- },
- _adjustScrollingTop: function() {
- return this.el.scrollTop = this.g.zoomer.get("_alignmentScrollTop");
- },
- render: function() {
- this.renderSubviews();
- this.el.className = "biojs_msa_labelblock";
- this.el.style.display = "inline-block";
- this.el.style.verticalAlign = "top";
- this.el.style.height = this.g.zoomer.get("alignmentHeight") + "px";
- this.el.style.overflowY = "auto";
- this.el.style.overflowX = "hidden";
- this.el.style.fontSize = "" + (this.g.zoomer.get("labelFontsize"));
- this.el.style.lineHeight = "" + (this.g.zoomer.get("labelLineHeight"));
- return this;
- }
-});
-
-
-
-},{"./LabelRowView":105,"backbone-childs":3}],105:[function(require,module,exports){
-var LabelView, MetaView, boneView;
-
-boneView = require("backbone-childs");
-
-LabelView = require("./LabelView");
-
-MetaView = require("./MetaView");
-
-module.exports = boneView.extend({
- initialize: function(data) {
- this.g = data.g;
- this.draw();
- this.listenTo(this.g.vis, "change:labels", this.drawR);
- return this.listenTo(this.g.vis, "change:metacell", this.drawR);
- },
- draw: function() {
- this.removeViews();
- if (this.g.vis.get("labels")) {
- this.addView("labels", new LabelView({
- model: this.model,
- g: this.g
- }));
- }
- if (this.g.vis.get("metacell")) {
- return this.addView("metacell", new MetaView({
- model: this.model,
- g: this.g
- }));
- }
- },
- drawR: function() {
- this.draw();
- return this.render();
- },
- render: function() {
- this.renderSubviews();
- this.el.setAttribute("class", "biojs_msa_labelrow");
- this.el.style.height = this.g.zoomer.get("rowHeight");
- return this;
- }
-});
-
-
-
-},{"./LabelView":106,"./MetaView":107,"backbone-childs":3}],106:[function(require,module,exports){
-var LabelView, dom, view;
-
-view = require("backbone-viewj");
-
-dom = require("dom-helper");
-
-LabelView = view.extend({
- initialize: function(data) {
- this.seq = data.seq;
- this.g = data.g;
- return this.manageEvents();
- },
- manageEvents: function() {
- var events;
- events = {};
- if (this.g.config.get("registerMouseClicks")) {
- events.click = "_onclick";
- }
- if (this.g.config.get("registerMouseHover")) {
- events.mousein = "_onmousein";
- events.mouseout = "_onmouseout";
- }
- this.delegateEvents(events);
- this.listenTo(this.g.config, "change:registerMouseHover", this.manageEvents);
- this.listenTo(this.g.config, "change:registerMouseClick", this.manageEvents);
- this.listenTo(this.g.vis, "change:labelName", this.render);
- this.listenTo(this.g.vis, "change:labelId", this.render);
- this.listenTo(this.g.vis, "change:labelPartition", this.render);
- return this.listenTo(this.g.vis, "change:labelCheckbox", this.render);
- },
- render: function() {
- var checkBox, id, name, part;
- dom.removeAllChilds(this.el);
- this.el.style.width = "" + (this.g.zoomer.get("labelWidth")) + "px";
- this.el.style.height = "" + (this.g.zoomer.get("rowHeight")) + "px";
- this.el.setAttribute("class", "biojs_msa_labels");
- if (this.g.vis.get("labelCheckbox")) {
- checkBox = document.createElement("input");
- checkBox.setAttribute("type", "checkbox");
- checkBox.value = this.model.get('id');
- checkBox.name = "seq";
- this.el.appendChild(checkBox);
- }
- if (this.g.vis.get("labelId")) {
- id = document.createElement("span");
- id.textContent = this.model.get("id");
- id.style.width = this.g.zoomer.get("labelIdLength");
- id.style.display = "inline-block";
- this.el.appendChild(id);
- }
- if (this.g.vis.get("labelPartition")) {
- part = document.createElement("span");
- part.style.width = 15;
- part.textContent = this.model.get("partition");
- part.style.display = "inline-block";
- this.el.appendChild(id);
- this.el.appendChild(part);
- }
- if (this.g.vis.get("labelName")) {
- name = document.createElement("span");
- name.textContent = this.model.get("name");
- this.el.appendChild(name);
- }
- this.el.style.overflow = scroll;
- return this;
- },
- _onclick: function(evt) {
- var seqId;
- seqId = this.model.get("id");
- return this.g.trigger("row:click", {
- seqId: seqId,
- evt: evt
- });
- },
- _onmousein: function(evt) {
- var seqId;
- seqId = this.model.get("id");
- return this.g.trigger("row:mouseout", {
- seqId: seqId,
- evt: evt
- });
- },
- _onmouseout: function(evt) {
- var seqId;
- seqId = this.model.get("id");
- return this.g.trigger("row:mouseout", {
- seqId: seqId,
- evt: evt
- });
- }
-});
-
-module.exports = LabelView;
-
-
-
-},{"backbone-viewj":10,"dom-helper":49}],107:[function(require,module,exports){
-var MenuBuilder, MetaView, dom, view, _;
-
-view = require("backbone-viewj");
-
-MenuBuilder = require("../../menu/menubuilder");
-
-_ = require('underscore');
-
-dom = require("dom-helper");
-
-module.exports = MetaView = view.extend({
- className: "biojs_msa_metaview",
- initialize: function(data) {
- return this.g = data.g;
- },
- events: {
- click: "_onclick",
- mousein: "_onmousein",
- mouseout: "_onmouseout"
- },
- render: function() {
- var gapSpan, gaps, ident, identSpan, menu, seq, width;
- dom.removeAllChilds(this.el);
- this.el.style.display = "inline-block";
- width = this.g.zoomer.get("metaWidth");
- this.el.style.width = width - 5;
- this.el.style.paddingRight = 5;
- seq = this.model.get('seq');
- gaps = _.reduce(seq, (function(memo, c) {
- if (c === '-') {
- memo++;
- }
- return memo;
- }), 0);
- gaps = (gaps / seq.length).toFixed(1);
- gapSpan = document.createElement('span');
- gapSpan.textContent = gaps;
- gapSpan.style.display = "inline-block";
- gapSpan.style.width = 35;
- this.el.appendChild(gapSpan);
- ident = this.model.get('identity');
- identSpan = document.createElement('span');
- identSpan.textContent = ident.toFixed(2);
- identSpan.style.display = "inline-block";
- identSpan.style.width = 40;
- this.el.appendChild(identSpan);
- menu = new MenuBuilder("↗");
- menu.addNode("Uniprot", (function(_this) {
- return function(e) {
- return window.open("http://beta.uniprot.org/uniprot/Q7T2N8");
- };
- })(this));
- this.el.appendChild(menu.buildDOM());
- this.el.width = 10;
- this.el.style.height = "" + (this.g.zoomer.get("rowHeight")) + "px";
- return this.el.style.cursor = "pointer";
- },
- _onclick: function(evt) {
- return this.g.trigger("meta:click", {
- seqId: this.model.get("id", {
- evt: evt
- })
- });
- },
- _onmousein: function(evt) {
- return this.g.trigger("meta:mousein", {
- seqId: this.model.get("id", {
- evt: evt
- })
- });
- },
- _onmouseout: function(evt) {
- return this.g.trigger("meta:mouseout", {
- seqId: this.model.get("id", {
- evt: evt
- })
- });
- }
-});
-
-
-
-},{"../../menu/menubuilder":75,"backbone-viewj":10,"dom-helper":49,"underscore":59}],"biojs-io-clustal":[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-var Clustal, GenericReader, Seq, Str,
- __hasProp = {}.hasOwnProperty,
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
-
-Str = require("./strings");
-
-GenericReader = require("./generic_reader");
-
-Seq = require("./seq");
-
-module.exports = Clustal = (function(_super) {
- __extends(Clustal, _super);
-
- function Clustal() {
- return Clustal.__super__.constructor.apply(this, arguments);
- }
-
- Clustal.parse = function(text) {
- var blockstate, k, label, line, lines, match, regex, seqCounter, seqs, sequence;
- seqs = [];
- if (Object.prototype.toString.call(text) === '[object Array]') {
- lines = text;
- } else {
- lines = text.split("\n");
- }
- if (lines[0].slice(0, 6) === !"CLUSTAL") {
- throw new Error("Invalid CLUSTAL Header");
- }
- k = 0;
- blockstate = 1;
- seqCounter = 0;
- while (k < lines.length) {
- k++;
- line = lines[k];
- if ((line == null) || line.length === 0) {
- blockstate = 1;
- continue;
- }
- if (line.trim().length === 0) {
- blockstate = 1;
- continue;
- } else {
- if (Str.contains(line, "*")) {
- continue;
- }
- if (blockstate === 1) {
- seqCounter = 0;
- blockstate = 0;
- }
- regex = /^(?:\s*)(\S+)(?:\s+)(\S+)(?:\s*)(\d*)(?:\s*|$)/g;
- match = regex.exec(line);
- if (match != null) {
- label = match[1];
- sequence = match[2];
- if (seqCounter >= seqs.length) {
- seqs.push(new Seq(sequence, label, seqCounter));
- } else {
- seqs[seqCounter].seq += sequence;
- }
- seqCounter++;
- } else {
- console.log(line);
- }
- }
- }
- return seqs;
- };
-
- return Clustal;
-
-})(GenericReader);
-
-},{"./generic_reader":17,"./seq":18,"./strings":19}],"biojs-io-fasta":[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-module.exports.parse = require("./parser");
-
-module.exports.writer = require("./writer");
-
-},{"./parser":21,"./writer":24}],"biojs-vis-msa":[function(require,module,exports){
-if (typeof biojs === 'undefined') {
- biojs = {};
-}
-if (typeof biojs.vis === 'undefined') {
- biojs.vis = {};
-}
-// use two namespaces
-window.msa = biojs.vis.msa = module.exports = require('./index');
-
-// TODO: how should this be bundled
-
-if (typeof biojs.io === 'undefined') {
- biojs.io = {};
-}
-// just bundle the two parsers
-window.biojs.io.fasta = require("biojs-io-fasta");
-window.biojs.io.clustal = require("biojs-io-clustal");
-window.biojs.xhr = require("nets");
-
-// simulate standalone flag
-window.biojsVisMsa = window.msa;
-
-require('./build/msa.css');
-
-},{"./build/msa.css":1,"./index":2,"biojs-io-clustal":undefined,"biojs-io-fasta":undefined,"nets":undefined}],"nets":[function(require,module,exports){
-var req = require('request')
-
-module.exports = Nets
-
-function Nets(uri, opts, cb) {
- req(uri, opts, cb)
-}
-},{"request":52}]},{},["biojs-vis-msa"])
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyaWZ5L25vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCIvaG9tZS90cmF2aXMvYnVpbGQvZ3JlZW5pZnkvYmlvanMtdmlzLW1zYS9idWlsZC9tc2EuY3NzIiwiL2hvbWUvdHJhdmlzL2J1aWxkL2dyZWVuaWZ5L2Jpb2pzLXZpcy1tc2EvaW5kZXguanMiLCIvaG9tZS90cmF2aXMvYnVpbGQvZ3JlZW5pZnkvYmlvanMtdmlzLW1zYS9ub2RlX21vZHVsZXMvYmFja2JvbmUtY2hp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bGwob2JqLCBrZXkpO1xuICAgICAgfSxcblxuICAgICAgZWFjaDogZnVuY3Rpb24ob2JqLCBpdGVyYXRvciwgY29udGV4dCkge1xuICAgICAgICBpZiAob2JqID09IG51bGwpIHJldHVybjtcbiAgICAgICAgaWYgKG5hdGl2ZUZvckVhY2ggJiYgb2JqLmZvckVhY2ggPT09IG5hdGl2ZUZvckVhY2gpIHtcbiAgICAgICAgICBvYmouZm9yRWFjaChpdGVyYXRvciwgY29udGV4dCk7XG4gICAgICAgIH0gZWxzZSBpZiAob2JqLmxlbmd0aCA9PT0gK29iai5sZW5ndGgpIHtcbiAgICAgICAgICBmb3IgKHZhciBpID0gMCwgbCA9IG9iai5sZW5ndGg7IGkgPCBsOyBpKyspIHtcbiAgICAgICAgICAgIGlmIChpdGVyYXRvci5jYWxsKGNvbnRleHQsIG9ialtpXSwgaSwgb2JqKSA9PT0gYnJlYWtlcikgcmV0dXJuO1xuICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICBmb3IgKHZhciBrZXkgaW4gb2JqKSB7XG4gICAgICAgICAgICBpZiAodGhpcy5oYXMob2JqLCBrZXkpKSB7XG4gICAgICAgICAgICAgIGlmIChpdGVyYXRvci5jYWxsKGNvbnRleHQsIG9ialtrZXldLCBrZXksIG9iaikgPT09IGJyZWFrZXIpIHJldHVybjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH0sXG5cbiAgICAgIG9uY2U6IGZ1bmN0aW9uKGZ1bmMpIHtcbiAgICAgICAgdmFyIHJhbiA9IGZhbHNlLCBtZW1vO1xuICAgICAgICByZXR1cm4gZnVuY3Rpb24oKSB7XG4gICAgICAgICAgaWYgKHJhbikgcmV0dXJuIG1lbW87XG4gICAgICAgICAgcmFuID0gdHJ1ZTtcbiAgICAgICAgICBtZW1vID0gZnVuYy5hcHBseSh0aGlzLCBhcmd1bWVudHMpO1xuICAgICAgICAgIGZ1bmMgPSBudWx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yYXBlciwgZnJhZ21lbnQ7XG5cbiAgICAgICAgaWYgKCFlbGVtZW50KSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcztcbiAgICAgICAgfVxuICAgICAgICBpZiAoaXNTdHJpbmcoZWxlbWVudCkpIHtcbiAgICAgICAgICAgIC8vIENyZWF0ZSBzaW5nbGUgRE9NIGVsZW1lbnRcbiAgICAgICAgICAgIGlmICh0YWcgPSBycXVpY2tTaW5nbGVUYWcuZXhlYyhlbGVtZW50KSkge1xuICAgICAgICAgICAgICAgIHRoaXNbMF0gPSBkb2MuY3JlYXRlRWxlbWVudCh0YWdbMV0pO1xuICAgICAgICAgICAgICAgIHRoaXMubGVuZ3RoID0gMTtcblxuICAgICAgICAgICAgICAgIGlmIChpc09iamVjdChkYXRhKSkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmF0dHIoZGF0YSk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICAvLyBDcmVhdGUgRE9NIGNvbGxlY3Rpb25cbiAgICAgICAgICAgIGlmICgodGFnID0gcnF1aWNrRXhwci5leGVjKGVsZW1lbnQpKSAmJiB0YWdbMV0pIHtcbiAgICAgICAgICAgICAgICBmcmFnbWVudCA9IGRvYy5jcmVhdGVEb2N1bWVudEZyYWdtZW50KCk7XG4gICAgICAgICAgICAgICAgd3JhcGVyID0gZG9jLmNyZWF0ZUVsZW1lbnQoXCJkaXZcIik7XG4gICAgICAgICAgICAgICAgd3JhcGVyLmlubmVySFRNTCA9IGVsZW1lbnQ7XG4gICAgICAgICAgICAgICAgd2hpbGUgKHdyYXBlci5sYXN0Q2hpbGQpIHtcbiAgICAgICAgICAgICAgICAgICAgZnJhZ21lbnQuYXBwZW5kQ2hpbGQod3JhcGVyLmZpcnN0Q2hpbGQpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbGVtZW50cyA9IHNsaWNlLmNhbGwoZnJhZ21lbnQuY2hpbGROb2Rlcyk7XG5cbiAgICAgICAgICAgICAgICByZXR1cm4gakJvbmUubWVyZ2UodGhpcywgZWxlbWVudHMpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgLy8gRmluZCBET00gZWxlbWVudHMgd2l0aCBxdWVyeVNlbGVjdG9yQWxsXG4gICAgICAgICAgICBpZiAoakJvbmUuaXNFbGVtZW50KGRhdGEpKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGpCb25lKGRhdGEpLmZpbmQoZWxlbWVudCk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgICAgZWxlbWVudHMgPSBkb2MucXVlcnlTZWxlY3RvckFsbChlbGVtZW50KTtcblxuICAgICAgICAgICAgICAgIHJldHVybiBqQm9uZS5tZXJnZSh0aGlzLCBlbGVtZW50cyk7XG4gICAgICAgICAgICB9IGNhdGNoIChlKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgLy8gV3JhcCBET01FbGVtZW50XG4gICAgICAgIGlmIChlbGVtZW50Lm5vZGVUeXBlKSB7XG4gICAgICAgICAgICB0aGlzWzBdID0gZWxlbWVudDtcbiAgICAgICAgICAgIHRoaXMubGVuZ3RoID0gMTtcblxuICAgICAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgICAgIH1cbiAgICAgICAgLy8gUnVuIGZ1bmN0aW9uXG4gICAgICAgIGlmIChpc0Z1bmN0aW9uKGVsZW1lbnQpKSB7XG4gICAgICAgICAgICByZXR1cm4gZWxlbWVudCgpO1xuICAgICAgICB9XG4gICAgICAgIC8vIFJldHVybiBqQm9uZSBlbGVtZW50IGFzIGlzXG4gICAgICAgIGlmIChlbGVtZW50IGluc3RhbmNlb2YgakJvbmUpIHtcbiAgICAgICAgICAgIHJldHVybiBlbGVtZW50O1xuICAgICAgICB9XG5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yZ2UgPSBmdW5jdGlvbihmaXJzdCwgc2Vjb25kKSB7XG4gICAgdmFyIGwgPSBzZWNvbmQubGVuZ3RoLFxuICAgICAgICBpID0gZmlyc3QubGVuZ3RoLFxuICAgICAgICBqID0gMDtcblxuICAgIHdoaWxlIChqIDwgbCkge1xuICAgICAgICBmaXJzdFtpKytdID0gc2Vjb25kW2orK107XG4gICAgfVxuXG4gICAgZmlyc3QubGVuZ3RoID0gaTtcblxuICAgIHJldHVybiBmaXJzdDtcbn07XG5cbmpCb25lLmNvbnRhaW5zID0gZnVuY3Rpb24oY29udGFpbmVyLCBjb250YWluZWQpIHtcbiAgICB2YXIgcmVzdWx0O1xuXG4gICAgY29udGFpbmVyLnJldmVyc2UoKS5zb21lKGZ1bmN0aW9uKGVsKSB7XG4gICAgICAgIGlmIChlbC5jb250YWlucyhjb250YWluZWQpKSB7XG4gICAgICAgICAgICByZXR1cm4gcmVzdWx0ID0gZWw7XG4gICAgICAgIH1cbiAgICB9KTtcblxuICAgIHJldHVybiByZXN1bHQ7XG59O1xuXG5qQm9uZS5leHRlbmQgPSBmdW5jdGlvbih0YXJnZXQpIHtcbiAgICB2YXIgaywga2wsIGksIHRnO1xuXG4gICAgc3BsaWNlLmNhbGwoYXJndW1lbnRzLCAxKS5mb3JFYWNoKGZ1bmN0aW9uKG9iamVjdCkge1xuICAgICAgICBpZiAoIW9iamVjdCkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgayA9IGtleXMob2JqZWN0KTtcbiAgICAgICAga2wgPSBrLmxlbmd0aDtcbiAgICAgICAgaSA9IDA7XG4gICAgICAgIHRnID0gdGFyZ2V0OyAvL2NhY2hpbmcgdGFyZ2V0IGZvciBwZXJmIGltcHJvdmVtZW50XG5cbiAgICAgICAgZm9yICg7IGkgPCBrbDsgaSsrKSB7XG4gICAgICAgICAgICB0Z1trW2ldXSA9IG9iamVjdFtrW2ldXTtcbiAgICAgICAgfVxuICAgIH0pO1xuXG4gICAgcmV0dXJuIHRhcmdldDtcbn07XG5cbmpCb25lLm1ha2VBcnJheSA9IGZ1bmN0aW9uKGFyciwgcmVzdWx0cykge1xuICAgIHZhciByZXQgPSByZXN1bHRzIHx8IFtdO1xuXG4gICAgaWYgKGFyciAhPT0gbnVsbCkge1xuICAgICAgICBpZiAoaXNBcnJheWxpa2UoYXJyKSkge1xuICAgICAgICAgICAgakJvbmUubWVyZ2UocmV0LCBpc1N0cmluZyhhcnIpID8gW2Fycl0gOiBhcnIpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcmV0LnB1c2goYXJyKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiByZXQ7XG59O1xuXG5mdW5jdGlvbiBCb25lRXZlbnQoZSwgZGF0YSkge1xuICAgIHZhciBrZXksIHNldHRlcjtcblxuICAgIHRoaXMub3JpZ2luYWxFdmVudCA9IGU7XG5cbiAgICBzZXR0ZXIgPSBmdW5jdGlvbihrZXksIGUpIHtcbiAgICAgICAgaWYgKGtleSA9PT0gXCJwcmV2ZW50RGVmYXVsdFwiKSB7XG4gICAgICAgICAgICB0aGlzW2tleV0gPSBmdW5jdGlvbigpIHtcbiAgICAgICAgICAgICAgICB0aGlzLmRlZmF1bHRQcmV2ZW50ZWQgPSB0cnVlO1xuICAgICAgICAgICAgICAgIHJldHVybiBlW2tleV0oKTtcbiAgICAgICAgICAgIH07XG4gICAgICAgIH0gZWxzZSBpZiAoaXNGdW5jdGlvbihlW2tleV0pKSB7XG4gICAgICAgICAgICB0aGlzW2tleV0gPSBmdW5jdGlvbigpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gZVtrZXldKCk7XG4gICAgICAgICAgICB9O1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhpc1trZXldID0gZVtrZXldO1xuICAgICAgICB9XG4gICAgfTtcblxuICAgIGZvciAoa2V5IGluIGUpIHtcbiAgICAgICAgaWYgKGVba2V5XSB8fCB0eXBlb2Y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HwgKGV4cGVjdGVkVGFyZ2V0ID0gakJvbmUuY29udGFpbnMoakJvbmUoZWwpLmZpbmQodGFyZ2V0KSwgZS50YXJnZXQpKSkge1xuICAgICAgICAgICAgICAgICAgICBleHBlY3RlZFRhcmdldCA9IGV4cGVjdGVkVGFyZ2V0IHx8IGUudGFyZ2V0O1xuICAgICAgICAgICAgICAgICAgICBlID0gbmV3IEJvbmVFdmVudChlLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjdXJyZW50VGFyZ2V0OiBleHBlY3RlZFRhcmdldFxuICAgICAgICAgICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgICAgICAgICBjYWxsYmFjay5jYWxsKGV4cGVjdGVkVGFyZ2V0LCBlKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9O1xuXG4gICAgICAgICAgICBldmVudHNbZXZlbnRUeXBlXS5wdXNoKHtcbiAgICAgICAgICAgICAgICBuYW1lc3BhY2U6IG5hbWVzcGFjZSxcbiAgICAgICAgICAgICAgICBmbjogZm4sXG4gICAgICAgICAgICAgICAgb3JpZ2luZm46IGNhbGxiYWNrXG4gICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgZWwuYWRkRXZlbnRMaXN0ZW5lciAmJiBlbC5hZGRFdmVudExpc3RlbmVyKGV2ZW50VHlwZSwgZm4sIGZhbHNlKTtcbiAgICAgICAgfSk7XG4gICAgfTtcblxuICAgIGZvciAoOyBpIDwgbGVuZ3RoOyBpKyspIHtcbiAgICAgICAgYWRkTGlzdGVuZXIodGhpc1tpXSk7XG4gICAgfVxuXG4gICAgcmV0dXJuIHRoaXM7XG59O1xuXG5mbi5vbmUgPSBmdW5jdGlvbihldmVudCkge1xuICAgIHZhciBhcmdzID0gYXJndW1lbnRzLFxuICAgICAgICBpID0gMCxcbiAgICAgICAgbGVuZ3RoID0gdGhpcy5sZW5ndGgsXG4gICAgICAgIGNhbGxiYWNrLCB0YXJnZXQsIGFkZExpc3RlbmVyO1xuXG4gICAgaWYgKGFyZ3MubGVuZ3RoID09PSAyKSB7XG4gICAgICAgIGNhbGxiYWNrID0gYXJnc1sxXTtcbiAgICB9IGVsc2Uge1xuICAgICAgICB0YXJnZXQgPSBhcmdzWzFdLCBjYWxsYmFjayA9IGFyZ3NbMl07XG4gICAgfVxuXG4gICAgYWRkTGlzdGVuZXIgPSBmdW5jdGlvbihlbCkge1xuICAgICAgICBldmVudC5zcGxpdChcIiBcIikuZm9yRWFjaChmdW5jdGlvbihldmVudCkge1xuICAgICAgICAgICAgdmFyIGZuID0gZnVuY3Rpb24oZSkge1xuICAgICAgICAgICAgICAgIGpCb25lKGVsKS5vZmYoZXZlbnQsIGZuKTtcbiAgICAgICAgICAgICAgICBjYWxsYmFjay5jYWxsKGVsLCBlKTtcbiAgICAgICAgICAgIH07XG5cbiAgICAgICAgICAgIGlmICghdGFyZ2V0KSB7XG4gICAgICAgICAgICAgICAgakJvbmUoZWwpLm9uKGV2ZW50LCBmbik7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGpCb25lKGVsKS5vbihldmVudCwgdGFyZ2V0LCBmbik7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH07XG5cbiAgICBmb3IgKDsgaSA8IGxlbmd0aDsgaSsrKSB7XG4gICAgICAgIGFkZExpc3RlbmVyKHRoaXNbaV0pO1xuICAgIH1cblxuICAgIHJldHVybiB0aGlzO1xufTtcblxuZm4udHJpZ2dlciA9IGZ1bmN0aW9uKGV2ZW50KSB7XG4gICAgdmFyIGV2ZW50cyA9IFtdLFxuICAgICAgICBpID0gMCxcbiAgICAgICAgbGVuZ3RoID0gdGhpcy5sZW5ndGgsXG4gICAgICAgIGRpc3BhdGNoRXZlbnRzO1xuXG4gICAgaWYgKCFldmVudCkge1xuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBpZiAoaXNTdHJpbmcoZXZlbnQpKSB7XG4gICAgICAgIGV2ZW50cyA9IGV2Z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gICAgICB9XG5cbiAgICAgICAgICAgIGlmIChldmVudHNbZXZlbnRUeXBlXVtpbmRleF0uZm4gPT09IGNhbGxiYWNrKSB7XG4gICAgICAgICAgICAgICAgZWwucmVtb3ZlRXZlbnRMaXN0ZW5lcihldmVudFR5cGUsIGNhbGxiYWNrKTtcblxuICAgICAgICAgICAgICAgIC8vIHJlbW92ZSBoYW5kbGVyIGZyb20gY2FjaGVcbiAgICAgICAgICAgICAgICBqQm9uZS5fY2FjaGUuZXZlbnRzW2pCb25lLmdldERhdGEoZWwpLmppZF1bZXZlbnRUeXBlXS5zcGxpY2UoaW5kZXgsIDEpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBldmVudHMsIG5hbWVzcGFjZSwgcmVtb3ZlTGlzdGVuZXJzLCBldmVudFR5cGU7XG5cbiAgICByZW1vdmVMaXN0ZW5lcnMgPSBmdW5jdGlvbihlbCkge1xuICAgICAgICB2YXIgbCwgZXZlbnRzQnlUeXBlLCBlO1xuXG4gICAgICAgIGV2ZW50cyA9IGpCb25lLmdldERhdGEoZWwpLmV2ZW50cztcblxuICAgICAgICBpZiAoIWV2ZW50cykge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gcmVtb3ZlIGFsbCBldmVudHNcbiAgICAgICAgaWYgKCFldmVudCAmJiBldmVudHMpIHtcbiAgICAgICAgICAgIHJldHVybiBrZXlzKGV2ZW50cykuZm9yRWFjaChmdW5jdGlvbihldmVudFR5cGUpIHtcbiAgICAgICAgICAgICAgICBldmVudHNCeVR5cGUgPSBldmVudHNbZXZlbnRUeXBlXTtcbiAgICAgICAgICAgICAgICBsID0gZXZlbnRzQnlUeXBlLmxlbmd0aDtcblxuICAgICAgICAgICAgICAgIHdoaWxlKGwtLSkge1xuICAgICAgICAgICAgICAgICAgICByZW1vdmVMaXN0ZW5lcihldmVudHMsIGV2ZW50VHlwZSwgbCwgZWwsIGV2ZW50c0J5VHlwZVtsXSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cblxuICAgICAgICBldmVudC5zcGxpdChcIiBcIikuZm9yRWFjaChmdW5jdGlvbihldmVudCkge1xuICAgICAgICAgICAgZXZlbnRUeXBlID0gZXZlbnQuc3BsaXQoXCIuXCIpWzBdO1xuICAgICAgICAgICAgbmFtZXNwYWNlID0gZXZlbnQuc3BsaXQoXCIuXCIpLnNwbGljZSgxKS5qb2luKFwiLlwiKTtcblxuICAgICAgICAgICAgLy8gcmVtb3ZlIG5hbWVkIGV2ZW50c1xuICAgICAgICAgICAgaWYgKGV2ZW50c1tldmVudFR5cGVdKSB7XG4gICAgICAgICAgICAgICAgZXZlbnRzQnlUeXBlID0gZXZlbnRzW2V2ZW50VHlwZV07XG4gICAgICAgICAgICAgICAgbCA9IGV2ZW50c0J5VHlwZS5sZW5ndGg7XG5cbiAgICAgICAgICAgICAgICB3aGlsZShsLS0pIHtcbiAgICAgICAgICAgICAgICAgICAgZSA9IGV2ZW50c0J5VHlwZVtsXTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKCFuYW1lc3BhY2UgfHwgKG5hbWVzcGFjZSAmJiBlLm5hbWVzcGFjZSA9PT0gbmFtZXNwYWNlKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmVtb3ZlTGlzdGVuZXIoZXZlbnRzLCBldmVudFR5cGUsIGwsIGVsLCBlKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIC8vIHJlbW92ZSBhbGwgbmFtZXNwYWNlZCBldmVudHNcbiAgICAgICAgICAgIGVsc2UgaWYgKG5hbWVzcGFjZSkge1xuICAgICAgICAgICAgICAgIGtleXMoZXZlbnRzKS5mb3JFYWNoKGZ1bmN0aW9uKGV2ZW50VHlwZSkge1xuICAgICAgICAgICAgICAgICAgICBldmVudHNCeVR5cGUgPSBldmVudHNbZXZlbnRUeXBlXTtcbiAgICAgICAgICAgICAgICAgICAgbCA9IGV2ZW50c0J5VHlwZS5sZW5ndGg7XG5cbiAgICAgICAgICAgICAgICAgICAgd2hpbGUobC0tKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBlID0gZXZlbnRzQnlUeXBlW2xdO1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGUubmFtZXNwYWNlLnNwbGl0KFwiLlwiKVswXSA9PT0gbmFtZXNwYWNlLnNwbGl0KFwiLlwiKVswXSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlbW92ZUxpc3RlbmVyKGV2ZW50cywgZXZlbnRUeXBlLCBsLCBlbCwgZSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgfTtcblxuICAgIGZvciAoOyBpIDwgbGVuZ3RoOyBpKyspIHtcbiAgICAgICAgcmVtb3ZlTGlzdGVuZXJzKHRoaXNbaV0pO1xuICAgIH1cblxuICAgIHJldHVybiB0aGlzO1xufTtcblxuZm4uZmluZCA9IGZ1bmN0aW9uKHNlbGVjdG9yKSB7XG4gICAgdmFyIHJlc3VsdHMgPSBbXSxcbiAgICAgICAgaSA9IDAsXG4gICAgICAgIGxlbmd0aCA9IHRoaXMubGVuZ3RoLFxuICAgICAgICBmaW5kZXIgPSBmdW5jdGlvbihlbCkge1xuICAgICAgICAgICAgaWYgKGlzRnVuY3Rpb24oZWwucXVlcnlTZWxlY3RvckFsbCkpIHtcbiAgICAgICAgICAgICAgICBbXS5mb3JFYWNoLmNhbGwoZWwucXVlcnlTZWxlY3RvckFsbChzZWxlY3RvciksIGZ1bmN0aW9uKGZvdW5kKSB7XG4gICAgICAgICAgICAgICAgICAgIHJlc3VsdHMucHVzaChmb3VuZCk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9XG4gICAgICA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zKGtleSkuZm9yRWFjaChmdW5jdGlvbihuYW1lKSB7XG4gICAgICAgICAgICAgICAgZWwuc3R5bGVbbmFtZV0gPSBrZXlbbmFtZV07XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfTtcbiAgICB9XG5cbiAgICBmb3IgKDsgaSA8IGxlbmd0aDsgaSsrKSB7XG4gICAgICAgIHNldHRlcih0aGlzW2ldKTtcbiAgICB9XG5cbiAgICByZXR1cm4gdGhpcztcbn07XG5cbmZuLmRhdGEgPSBmdW5jdGlvbihrZXksIHZhbHVlKSB7XG4gICAgdmFyIGFyZ3MgPSBhcmd1bWVudHMsIGRhdGEgPSB7fSxcbiAgICAgICAgaSA9IDAsXG4gICAgICAgIGxlbmd0aCA9IHRoaXMubGVuZ3RoLFxuICAgICAgICBzZXR0ZXIsXG4gICAgICAgIHNldFZhbHVlID0gZnVuY3Rpb24oZWwsIGtleSwgdmFsdWUpIHtcbiAgICAgICAgICAgIGlmIChpc09iamVjdCh2YWx1ZSkpIHtcbiAgICAgICAgICAgICAgICBlbC5qZGF0YSA9IGVsLmpkYXRhIHx8IHt9O1xuICAgICAgICAgICAgICAgIGVsLmpkYXRhW2tleV0gPSB2YWx1ZTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgZWwuZGF0YXNldFtrZXldID0gdmFsdWU7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIGdldFZhbHVlID0gZnVuY3Rpb24odmFsdWUpIHtcbiAgICAgICAgICAgIGlmICh2YWx1ZSA9PT0gXCJ0cnVlXCIpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAodmFsdWUgPT09IFwiZmFsc2VcIikge1xuICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHZhbHVlO1xuICAgICAgICAgICAg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em9vbWVyLnRleHRWaXNpYmxlID0gZmFsc2VcbiAgICAgICAgI3pvb21lci5jb2x1bW5XaWR0aCA9IDRcbiAgICAgICAgem9vbWVyLmxhYmVsV2lkdGggPSAyMDBcbiAgICAgICAgem9vbWVyLmJveFJlY3RIZWlnaHQgPSAyXG4gICAgICAgIHpvb21lci5ib3hSZWN0V2lkdGggPSAyXG4gICAgICAgIEBtb2RlbC5yZXNldCBbXVxuICAgICAgICBAZy56b29tZXIuc2V0IHpvb21lclxuICAgICAgICBAbW9kZWwucmVzZXQgc2Vxc1xuICAgICAgICBAZy5jb2x1bW5zLmNhbGNDb25zZXJ2YXRpb24gQG1vZGVsXG5cbiAgICBAYWRkTm9kZSBcIkNMVVNUQUxcIiwgPT5cbiAgICAgIHVybCA9IHByb21wdCBcIlVSTFwiLCBcIi90ZXN0L2R1bW15L3NhbXBsZXMvcDUzLmNsdXN0YWxvLmNsdXN0YWxcIlxuICAgICAgdXJsID0gY29yc1VSTCB1cmwsIEBnXG4gICAgICBDbHVzdGFsLnJlYWQgdXJsLCAoc2VxcykgPT5cbiAgICAgICAgem9vbWVyID0gQGcuem9vbWVyLnRvSlNPTigpXG4gICAgICAgICN6b29tZXIudGV4dFZpc2libGUgPSBmYWxzZVxuICAgICAgICAjem9vbWVyLmNvbHVtbldpZHRoID0gNFxuICAgICAgICB6b29tZXIubGFiZWxXaWR0aCA9IDIwMFxuICAgICAgICB6b29tZXIuYm94UmVjdEhlaWdodCA9IDJcbiAgICAgICAgem9vbWVyLmJveFJlY3RXaWR0aCA9IDJcbiAgICAgICAgQG1vZGVsLnJlc2V0IFtdXG4gICAgICAgIEBnLnpvb21lci5zZXQgem9vbWVyXG4gICAgICAgIEBtb2RlbC5yZXNldCBzZXFzXG4gICAgICAgIEBnLmNvbHVtbnMuY2FsY0NvbnNlcnZhdGlvbiBAbW9kZWxcblxuICAgIEBhZGROb2RlIFwiYWRkIHlvdXIgb3duIFBhcnNlclwiLCA9PlxuICAgICAgd2luZG93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UubGVuZ3RoID09PSAwKSB7XG4gICAgICAgIGJsb2Nrc3RhdGUgPSAxO1xuICAgICAgICBjb250aW51ZTtcbiAgICAgIH1cbiAgICAgIGlmIChsaW5lLnRyaW0oKS5sZW5ndGggPT09IDApIHtcbiAgICAgICAgYmxvY2tzdGF0ZSA9IDE7XG4gICAgICAgIGNvbnRpbnVlO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgaWYgKFN0ci5jb250YWlucyhsaW5lLCBcIipcIikpIHtcbiAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoYmxvY2tzdGF0ZSA9PT0gMSkge1xuICAgICAgICAgIHNlcUNvdW50ZXIgPSAwO1xuICAgICAgICAgIGJsb2Nrc3RhdGUgPSAwO1xuICAgICAgICB9XG4gICAgICAgIHJlZ2V4ID0gL14oPzpcXHMqKShcXFMrKSg/OlxccyspKFxcUyspKD86XFxzKikoXFxkKikoPzpcXHMqfCQpL2c7XG4gICAgICAgIG1hdGNoID0gcmVnZXguZXhlYyhsaW5lKTtcbiAgICAgICAgaWYgKG1hdGNoICE9IG51bGwpIHtcbiAgICAgICAgICBsYWJlbCA9IG1hdGNoWzFdO1xuICAgICAgICAgIHNlcXVlbmNlID0gbWF0Y2hbMl07XG4gICAgICAgICAgaWYgKHNlcUNvdW50ZXIgPj0gc2Vxcy5sZW5ndGgpIHtcbiAgICAgICAgICAgIHNlcXMucHVzaChuZXcgU2VxKHNlcXVlbmNlLCBsYWJlbCwgc2VxQ291bnRlcikpO1xuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBzZXFzW3NlcUNvdW50ZXJdLnNlcSArPSBzZXF1ZW5jZTtcbiAgICAgICAgICB9XG4gICAgICAgICAgc2VxQ291bnRlcisrO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIGNvbnNvbGUubG9nKGxpbmUpO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICAgIHJldHVybiBzZXFzO1xuICB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GUuZXhwb3J0cyA9IE5ldHNcblxuZnVuY3Rpb24gTmV0cyh1cmksIG9wdHMsIGNiKSB7XG4gIHJlcSh1cmksIG9wdHMsIGNiKVxufSJdfQ==
-
-
-
-// this is a way how you use a bundled file parser
-biojs.io.clustal.read("#", function(seqs){
-var opts = {};
-
-// set your custom properties
-// @see: https://github.com/greenify/biojs-vis-msa/tree/master/src/g
-
-var jalviewData = JSON.parse(document.getElementById("seqData").value);
-opts.seqs = jalviewData['seqs'];
-
-opts.el = document.getElementById("yourDiv");
-opts.vis = {conserv: false, overviewbox: false, labelId: false};
-opts.zoomer = {alignmentHeight: 225, labelWidth: 130,labelFontsize: "13px",labelIdLength: 20, menuFontsize: "12px",menuMarginLeft: "3px", menuPadding: "3px 4px 3px 4px", menuItemFontsize: "14px", menuItemLineHeight: "14px"};
-
-
-
-// init msa
-var m = new msa.msa(opts);
-
-m.g.colorscheme.set("scheme", jalviewData['jalviewSettings'].globalColorScheme);
-
-var x = 0;
-//jalviewData.seqs.forEach( function (seq)
-//{
-//m.seqs.at(x++).set("features", new msa.model.featurecol(seq.features));
-//});
-
-//console.debug(">>>>>>>>>>>>>" + m.seqs.length);
-//console.debug(">>>>>>>>>>>>> Found features : " + jalviewData.seqFeatures.length);
-m.seqs.forEach( function (seq )
-{
- var seqFeats = [];
- for (i = 0; i < jalviewData.seqFeatures.length; i++) {
- console.debug('comparing >>>>>>>> '+ seq.id)
- if(jalviewData.seqFeatures[i].sequenceRef === seq.id){
- // console.debug('>>>>>>>> '+jalviewData.seqFeatures[i].sequenceRef+' | '+ seq.id)
- seqFeats.push(jalviewData.seqFeatures[i]);
- }
- }
-console.debug('matched features count : '+seqFeats.length);
-seq.set("features", new msa.model.featurecol(seqFeats));
-});
-
-// the menu is independent to the MSA container
-var menuOpts = {};
-menuOpts.el = document.getElementById('div');
-menuOpts.msa = m;
-var defMenu = new msa.menu.defaultmenu(menuOpts);
-m.addView("menu", defMenu);
-
-// call render at the end to display the whole MSA
-m.render();
-toggleMenuVisibility();
-toggleMenuVisibility();
-});
-</script>
+++ /dev/null
-<html>
-<header><title>BioJS viewer</title></header>
-
-<body>
-
-<!-- include MSA js + css -->
-<!-- <script src="https://s3-eu-west-1.amazonaws.com/biojs/msa/latest/msa.js"></script> -->
-<!-- <link type=text/css rel=stylesheet href=https://s3-eu-west-1.amazonaws.com/biojs/msa/latest/msa.css /> -->
-
- <img src="http://www.jalview.org/help/html/Jalview_Logo.png" alt="Jalview Logo" title="This html page was generated from Jalview, to import the data back to Jalview, please drag the generated html file and drop it unto the Jalview workbench.
-
- Alternatively, you could copy the url from the address bar and use Jalview's url importer (main menu-> File-> Input Alignment-> from URL) to import back the alignment jalview." >
-
-</br>
-</br>
-
-<input type="button" name="divToggleButton" id="divToggleButton" onclick="javascipt:toggleMenuVisibility();" value="Show Menu"></input>
-<button onclick="javascipt:openJalviewUsingCurrentUrl();">Launch in Jalview</button>
-
-</br>
-</br>
-
-<div id="yourDiv">press "Run with JS"</div>
-<input type='hidden' id='seqData' name='seqData' value='#sequenceData#'/>
-
-</body>
-</html>
-
-
-
-<script>
-
-function toggleMenuVisibility(){
- var menu = document.getElementsByClassName("biojs_msa_menubar");
- var divToggleButton = document.getElementById("divToggleButton");
- if(menu[0].style.display == 'block'){
- menu[0].style.display = 'none';
- divToggleButton.value="Show Menu";
- }else{
- menu[0].style.display = 'block';
- divToggleButton.value="Hide Menu";
- }
-}
-
-
-function openJalviewUsingCurrentUrl(){
- var json = JSON.parse(document.getElementById("seqData").value)
- var jalviewVersion = json['jalviewSettings'].jalviewVersion;
- var url = json['jalviewSettings'].webStartUrl;
- var myForm = document.createElement("form");
- myForm.action = url;
-
- var heap = document.createElement("input") ;
- heap.setAttribute("name", "jvm-max-heap") ;
- heap.setAttribute("value", "2G");
- myForm.appendChild(heap) ;
-
- var target = document.createElement("input") ;
- target.setAttribute("name", "open") ;
- target.setAttribute("value", document.URL);
- myForm.appendChild(target) ;
-
- var jvVersion = document.createElement("input") ;
- jvVersion.setAttribute("name", "version") ;
- jvVersion.setAttribute("value", jalviewVersion);
- myForm.appendChild(jvVersion) ;
-
-
- document.body.appendChild(myForm) ;
- myForm.submit() ;
- document.body.removeChild(myForm) ;
-}
-
-
-require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
-var css = ".biojs_msa_stage {\n cursor: default;\n line-height: normal; }\n\n.biojs_msa_labels {\n color: black;\n display: inline-block;\n white-space: nowrap;\n cursor: pointer;\n vertical-align: top; }\n\n.biojs_msa_seqblock {\n cursor: move; }\n\n.biojs_msa_layer {\n display: block;\n white-space: nowrap; }\n\n.biojs_msa_labelblock::-webkit-scrollbar, .biojs_msa_header::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 7px;\n height: 7px; }\n\n.biojs_msa_labelblock::-webkit-scrollbar-thumb, .biojs_msa_header::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0, 0, 0, 0.5);\n box-shadow: 0 0 1px rgba(255, 255, 255, 0.5); }\n\n.biojs_msa_marker {\n color: grey;\n white-space: nowrap;\n cursor: pointer; }\n\n.biojs_msa_marker span {\n text-align: center; }\n\n.biojs_msa_menubar .biojs_msa_menubar_alink {\n background: #3498db;\n background-image: -webkit-linear-gradient(top, #3498db, #2980b9);\n background-image: -moz-linear-gradient(top, #3498db, #2980b9);\n background-image: -ms-linear-gradient(top, #3498db, #2980b9);\n background-image: -o-linear-gradient(top, #3498db, #2980b9);\n background-image: linear-gradient(to bottom, #3498db, #2980b9);\n -webkit-border-radius: 28;\n -moz-border-radius: 28;\n border-radius: 28px;\n font-family: Arial;\n color: #ffffff;\n padding: 3px 10px 3px 10px;\n margin-left: 10px;\n text-decoration: none; }\n\n.biojs_msa_menubar .biojs_msa_menubar_alink:hover {\n cursor: pointer; }\n\n/* jquery dropdown CSS */\n.dropdown {\n position: absolute;\n z-index: 9999999;\n display: none; }\n\n.dropdown .dropdown-menu,\n.dropdown .dropdown-panel {\n min-width: 160px;\n max-width: 360px;\n list-style: none;\n background: #FFF;\n border: solid 1px #DDD;\n border: solid 1px rgba(0, 0, 0, 0.2);\n border-radius: 6px;\n box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n overflow: visible;\n padding: 4px 0;\n margin: 0; }\n\n.dropdown .dropdown-panel {\n padding: 10px; }\n\n.dropdown.dropdown-scroll .dropdown-menu,\n.dropdown.dropdown-scroll .dropdown-panel {\n max-height: 358px;\n overflow: auto; }\n\n.dropdown .dropdown-menu LI {\n list-style: none;\n padding: 0 0;\n margin: 0;\n line-height: 18px; }\n\n.dropdown .dropdown-menu LI,\n.dropdown .dropdown-menu LABEL {\n display: block;\n color: #555;\n text-decoration: none;\n line-height: 18px;\n padding: 3px 15px;\n white-space: nowrap; }\n\n.dropdown .dropdown-menu LI:hover,\n.dropdown .dropdown-menu LABEL:hover {\n background-color: #08C;\n color: #FFF;\n cursor: pointer; }\n\n.dropdown .dropdown-menu .dropdown-divider {\n font-size: 1px;\n border-top: solid 1px #E5E5E5;\n padding: 0;\n margin: 5px 0; }\n"; (require("/home/travis/build/greenify/biojs-vis-msa/node_modules/cssify"))(css); module.exports = css;
-},{"/home/travis/build/greenify/biojs-vis-msa/node_modules/cssify":48}],2:[function(require,module,exports){
-module.exports = require("./src/index");
-
-},{"./src/index":72}],3:[function(require,module,exports){
-var _ = require('underscore');
-var viewType = require("backbone-viewj");
-var pluginator;
-
-module.exports = pluginator = viewType.extend({
- renderSubviews: function() {
- var oldEl = this.el;
- var el = document.createElement("div");
- this.setElement(el);
- var frag = document.createDocumentFragment();
- if (oldEl.parentNode != null) {
- oldEl.parentNode.replaceChild(this.el, oldEl);
- }
- var views = this._views();
- var viewsSorted = _.sortBy(views, function(el) {
- return el.ordering;
- });
- var view, node;
- for (var i = 0; i < viewsSorted.length; i++) {
- view = viewsSorted[i];
- view.render();
- node = view.el;
- if (node != null) {
- frag.appendChild(node);
- }
- }
- el.appendChild(frag);
- return el;
- },
- addView: function(key, view) {
- var views = this._views();
- if (view == null) {
- throw "Invalid plugin. ";
- }
- if (view.ordering == null) {
- view.ordering = key;
- }
- return views[key] = view;
- },
- removeViews: function() {
- var el, key;
- var views = this._views();
- for (key in views) {
- el = views[key];
- el.undelegateEvents();
- el.unbind();
- if (el.removeViews != null) {
- el.removeViews();
- }
- el.remove();
- }
- return this.views = {};
- },
- removeView: function(key) {
- var views = this._views();
- views[key].remove();
- return delete views[key];
- },
- getView: function(key) {
- var views = this._views();
- return views[key];
- },
- remove: function() {
- this.removeViews();
- return viewType.prototype.remove.apply(this);
- },
- _views: function() {
- if (this.views == null) {
- this.views = {};
- }
- return this.views;
- }
-});
-
-},{"backbone-viewj":10,"underscore":59}],4:[function(require,module,exports){
-// Backbone.js 1.1.2
-
-// (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
-// Backbone may be freely distributed under the MIT license.
-// For all details and documentation:
-// http://backbonejs.org
-
-var Events = require("backbone-events-standalone");
-var extend = require("backbone-extend-standalone");
-var _ = require("underscore");
-var Model = require("./model");
-
-// Create local references to array methods we'll want to use later.
-var array = [];
-var slice = array.slice;
-
-// Backbone.Collection
-// -------------------
-
-// If models tend to represent a single row of data, a Backbone Collection is
-// more analogous to a table full of data ... or a small slice or page of that
-// table, or a collection of rows that belong together for a particular reason
-// -- all of the messages in this particular folder, all of the documents
-// belonging to this particular author, and so on. Collections maintain
-// indexes of their models, both in order, and for lookup by `id`.
-
-// Create a new **Collection**, perhaps to contain a specific type of `model`.
-// If a `comparator` is specified, the Collection will maintain
-// its models in sort order, as they're added and removed.
-var Collection = function(models, options) {
- options || (options = {});
- if (options.model) this.model = options.model;
- if (options.comparator !== void 0) this.comparator = options.comparator;
- this._reset();
- this.initialize.apply(this, arguments);
- if (models) this.reset(models, _.extend({silent: true}, options));
-};
-
-// Default options for `Collection#set`.
-var setOptions = {add: true, remove: true, merge: true};
-var addOptions = {add: true, remove: false};
-
-// Define the Collection's inheritable methods.
-_.extend(Collection.prototype, Events, {
-
- // The default model for a collection is just a **Backbone.Model**.
- // This should be overridden in most cases.
- model: Model,
-
- // Initialize is an empty function by default. Override it with your own
- // initialization logic.
- initialize: function(){},
-
- // The JSON representation of a Collection is an array of the
- // models' attributes.
- toJSON: function(options) {
- return this.map(function(model){ return model.toJSON(options); });
- },
-
- // Proxy `Backbone.sync` by default.
- sync: function() {
- return Backbone.sync.apply(this, arguments);
- },
-
- // Add a model, or list of models to the set.
- add: function(models, options) {
- return this.set(models, _.extend({merge: false}, options, addOptions));
- },
-
- // Remove a model, or a list of models from the set.
- remove: function(models, options) {
- var singular = !_.isArray(models);
- models = singular ? [models] : _.clone(models);
- options || (options = {});
- for (var i = 0, length = models.length; i < length; i++) {
- var model = models[i] = this.get(models[i]);
- if (!model) continue;
- var id = this.modelId(model.attributes);
- if (id != null) delete this._byId[id];
- delete this._byId[model.cid];
- var index = this.indexOf(model);
- this.models.splice(index, 1);
- this.length--;
- if (!options.silent) {
- options.index = index;
- model.trigger('remove', model, this, options);
- }
- this._removeReference(model, options);
- }
- return singular ? models[0] : models;
- },
-
- // Update a collection by `set`-ing a new list of models, adding new ones,
- // removing models that are no longer present, and merging models that
- // already exist in the collection, as necessary. Similar to **Model#set**,
- // the core operation for updating the data contained by the collection.
- set: function(models, options) {
- options = _.defaults({}, options, setOptions);
- if (options.parse) models = this.parse(models, options);
- var singular = !_.isArray(models);
- models = singular ? (models ? [models] : []) : models.slice();
- var id, model, attrs, existing, sort;
- var at = options.at;
- var sortable = this.comparator && (at == null) && options.sort !== false;
- var sortAttr = _.isString(this.comparator) ? this.comparator : null;
- var toAdd = [], toRemove = [], modelMap = {};
- var add = options.add, merge = options.merge, remove = options.remove;
- var order = !sortable && add && remove ? [] : false;
-
- // Turn bare objects into model references, and prevent invalid models
- // from being added.
- for (var i = 0, length = models.length; i < length; i++) {
- attrs = models[i];
-
- // If a duplicate is found, prevent it from being added and
- // optionally merge it into the existing model.
- if (existing = this.get(attrs)) {
- if (remove) modelMap[existing.cid] = true;
- if (merge && attrs !== existing) {
- attrs = this._isModel(attrs) ? attrs.attributes : attrs;
- if (options.parse) attrs = existing.parse(attrs, options);
- existing.set(attrs, options);
- if (sortable && !sort && existing.hasChanged(sortAttr)) sort = true;
- }
- models[i] = existing;
-
- // If this is a new, valid model, push it to the `toAdd` list.
- } else if (add) {
- model = models[i] = this._prepareModel(attrs, options);
- if (!model) continue;
- toAdd.push(model);
- this._addReference(model, options);
- }
-
- // Do not add multiple models with the same `id`.
- model = existing || model;
- if (!model) continue;
- id = this.modelId(model.attributes);
- if (order && (model.isNew() || !modelMap[id])) order.push(model);
- modelMap[id] = true;
- }
-
- // Remove nonexistent models if appropriate.
- if (remove) {
- for (var i = 0, length = this.length; i < length; i++) {
- if (!modelMap[(model = this.models[i]).cid]) toRemove.push(model);
- }
- if (toRemove.length) this.remove(toRemove, options);
- }
-
- // See if sorting is needed, update `length` and splice in new models.
- if (toAdd.length || (order && order.length)) {
- if (sortable) sort = true;
- this.length += toAdd.length;
- if (at != null) {
- for (var i = 0, length = toAdd.length; i < length; i++) {
- this.models.splice(at + i, 0, toAdd[i]);
- }
- } else {
- if (order) this.models.length = 0;
- var orderedModels = order || toAdd;
- for (var i = 0, length = orderedModels.length; i < length; i++) {
- this.models.push(orderedModels[i]);
- }
- }
- }
-
- // Silently sort the collection if appropriate.
- if (sort) this.sort({silent: true});
-
- // Unless silenced, it's time to fire all appropriate add/sort events.
- if (!options.silent) {
- var addOpts = at != null ? _.clone(options) : options;
- for (var i = 0, length = toAdd.length; i < length; i++) {
- if (at != null) addOpts.index = at + i;
- (model = toAdd[i]).trigger('add', model, this, addOpts);
- }
- if (sort || (order && order.length)) this.trigger('sort', this, options);
- }
-
- // Return the added (or merged) model (or models).
- return singular ? models[0] : models;
- },
-
- // When you have more items than you want to add or remove individually,
- // you can reset the entire set with a new list of models, without firing
- // any granular `add` or `remove` events. Fires `reset` when finished.
- // Useful for bulk operations and optimizations.
- reset: function(models, options) {
- options || (options = {});
- for (var i = 0, length = this.models.length; i < length; i++) {
- this._removeReference(this.models[i], options);
- }
- options.previousModels = this.models;
- this._reset();
- models = this.add(models, _.extend({silent: true}, options));
- if (!options.silent) this.trigger('reset', this, options);
- return models;
- },
-
- // Add a model to the end of the collection.
- push: function(model, options) {
- return this.add(model, _.extend({at: this.length}, options));
- },
-
- // Remove a model from the end of the collection.
- pop: function(options) {
- var model = this.at(this.length - 1);
- this.remove(model, options);
- return model;
- },
-
- // Add a model to the beginning of the collection.
- unshift: function(model, options) {
- return this.add(model, _.extend({at: 0}, options));
- },
-
- // Remove a model from the beginning of the collection.
- shift: function(options) {
- var model = this.at(0);
- this.remove(model, options);
- return model;
- },
-
- // Slice out a sub-array of models from the collection.
- slice: function() {
- return slice.apply(this.models, arguments);
- },
-
- // Get a model from the set by id.
- get: function(obj) {
- if (obj == null) return void 0;
- var id = this.modelId(this._isModel(obj) ? obj.attributes : obj);
- return this._byId[obj] || this._byId[id] || this._byId[obj.cid];
- },
-
- // Get the model at the given index.
- at: function(index) {
- if (index < 0) index += this.length;
- return this.models[index];
- },
-
- // Return models with matching attributes. Useful for simple cases of
- // `filter`.
- where: function(attrs, first) {
- if (_.isEmpty(attrs)) return first ? void 0 : [];
- return this[first ? 'find' : 'filter'](function(model) {
- for (var key in attrs) {
- if (attrs[key] !== model.get(key)) return false;
- }
- return true;
- });
- },
-
- // Return the first model with matching attributes. Useful for simple cases
- // of `find`.
- findWhere: function(attrs) {
- return this.where(attrs, true);
- },
-
- // Force the collection to re-sort itself. You don't need to call this under
- // normal circumstances, as the set will maintain sort order as each item
- // is added.
- sort: function(options) {
- if (!this.comparator) throw new Error('Cannot sort a set without a comparator');
- options || (options = {});
-
- // Run sort based on type of `comparator`.
- if (_.isString(this.comparator) || this.comparator.length === 1) {
- this.models = this.sortBy(this.comparator, this);
- } else {
- this.models.sort(_.bind(this.comparator, this));
- }
-
- if (!options.silent) this.trigger('sort', this, options);
- return this;
- },
-
- // Pluck an attribute from each model in the collection.
- pluck: function(attr) {
- return _.invoke(this.models, 'get', attr);
- },
-
- // Fetch the default set of models for this collection, resetting the
- // collection when they arrive. If `reset: true` is passed, the response
- // data will be passed through the `reset` method instead of `set`.
- fetch: function(options) {
- options = options ? _.clone(options) : {};
- if (options.parse === void 0) options.parse = true;
- var success = options.success;
- var collection = this;
- options.success = function(resp) {
- var method = options.reset ? 'reset' : 'set';
- collection[method](resp, options);
- if (success) success(collection, resp, options);
- collection.trigger('sync', collection, resp, options);
- };
- wrapError(this, options);
- return this.sync('read', this, options);
- },
-
- // Create a new instance of a model in this collection. Add the model to the
- // collection immediately, unless `wait: true` is passed, in which case we
- // wait for the server to agree.
- create: function(model, options) {
- options = options ? _.clone(options) : {};
- if (!(model = this._prepareModel(model, options))) return false;
- if (!options.wait) this.add(model, options);
- var collection = this;
- var success = options.success;
- options.success = function(model, resp) {
- if (options.wait) collection.add(model, options);
- if (success) success(model, resp, options);
- };
- model.save(null, options);
- return model;
- },
-
- // **parse** converts a response into a list of models to be added to the
- // collection. The default implementation is just to pass it through.
- parse: function(resp, options) {
- return resp;
- },
-
- // Create a new collection with an identical list of models as this one.
- clone: function() {
- return new this.constructor(this.models, {
- model: this.model,
- comparator: this.comparator
- });
- },
-
- // Define how to uniquely identify models in the collection.
- modelId: function (attrs) {
- return attrs[this.model.prototype.idAttribute || 'id'];
- },
-
- // Private method to reset all internal state. Called when the collection
- // is first initialized or reset.
- _reset: function() {
- this.length = 0;
- this.models = [];
- this._byId = {};
- },
-
- // Prepare a hash of attributes (or other model) to be added to this
- // collection.
- _prepareModel: function(attrs, options) {
- if (this._isModel(attrs)) {
- if (!attrs.collection) attrs.collection = this;
- return attrs;
- }
- options = options ? _.clone(options) : {};
- options.collection = this;
- var model = new this.model(attrs, options);
- if (!model.validationError) return model;
- this.trigger('invalid', this, model.validationError, options);
- return false;
- },
-
- // Method for checking whether an object should be considered a model for
- // the purposes of adding to the collection.
- _isModel: function (model) {
- return model instanceof Model;
- },
-
- // Internal method to create a model's ties to a collection.
- _addReference: function(model, options) {
- this._byId[model.cid] = model;
- var id = this.modelId(model.attributes);
- if (id != null) this._byId[id] = model;
- model.on('all', this._onModelEvent, this);
- },
-
- // Internal method to sever a model's ties to a collection.
- _removeReference: function(model, options) {
- if (this === model.collection) delete model.collection;
- model.off('all', this._onModelEvent, this);
- },
-
- // Internal method called every time a model in the set fires an event.
- // Sets need to update their indexes when models change ids. All other
- // events simply proxy through. "add" and "remove" events that originate
- // in other collections are ignored.
- _onModelEvent: function(event, model, collection, options) {
- if ((event === 'add' || event === 'remove') && collection !== this) return;
- if (event === 'destroy') this.remove(model, options);
- if (event === 'change') {
- var prevId = this.modelId(model.previousAttributes());
- var id = this.modelId(model.attributes);
- if (prevId !== id) {
- if (prevId != null) delete this._byId[prevId];
- if (id != null) this._byId[id] = model;
- }
- }
- this.trigger.apply(this, arguments);
- }
-
-});
-
-// Underscore methods that we want to implement on the Collection.
-// 90% of the core usefulness of Backbone Collections is actually implemented
-// right here:
-var methods = ['forEach', 'each', 'map', 'collect', 'reduce', 'foldl',
- 'inject', 'reduceRight', 'foldr', 'find', 'detect', 'filter', 'select',
- 'reject', 'every', 'all', 'some', 'any', 'include', 'contains', 'invoke',
- 'max', 'min', 'toArray', 'size', 'first', 'head', 'take', 'initial', 'rest',
- 'tail', 'drop', 'last', 'without', 'difference', 'indexOf', 'shuffle',
- 'lastIndexOf', 'isEmpty', 'chain', 'sample', 'partition'];
-
-// Mix in each Underscore method as a proxy to `Collection#models`.
-_.each(methods, function(method) {
- if (!_[method]) return;
- Collection.prototype[method] = function() {
- var args = slice.call(arguments);
- args.unshift(this.models);
- return _[method].apply(_, args);
- };
-});
-
-// Underscore methods that take a property name as an argument.
-var attributeMethods = ['groupBy', 'countBy', 'sortBy', 'indexBy'];
-
-// Use attributes instead of properties.
-_.each(attributeMethods, function(method) {
- if (!_[method]) return;
- Collection.prototype[method] = function(value, context) {
- var iterator = _.isFunction(value) ? value : function(model) {
- return model.get(value);
- };
- return _[method](this.models, iterator, context);
- };
-});
-
-// setup inheritance
-Collection.extend = extend;
-module.exports = Collection;
-
-},{"./model":6,"backbone-events-standalone":8,"backbone-extend-standalone":9,"underscore":59}],5:[function(require,module,exports){
-module.exports.Model = require("./model");
-module.exports.Collection = require("./collection");
-module.exports.Events = require("backbone-events-standalone");
-module.exports.extend = require("backbone-extend-standalone");
-
-},{"./collection":4,"./model":6,"backbone-events-standalone":8,"backbone-extend-standalone":9}],6:[function(require,module,exports){
-// Backbone.js 1.1.2
-
-// (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
-// Backbone may be freely distributed under the MIT license.
-// For all details and documentation:
-// http://backbonejs.org
-
-var Events = require("backbone-events-standalone");
-var extend = require("backbone-extend-standalone");
-var _ = require("underscore");
-
-// Backbone.Model
-// --------------
-
-// Backbone **Models** are the basic data object in the framework --
-// frequently representing a row in a table in a database on your server.
-// A discrete chunk of data and a bunch of useful, related methods for
-// performing computations and transformations on that data.
-
-// Create a new model with the specified attributes. A client id (`cid`)
-// is automatically generated and assigned for you.
-var Model = function(attributes, options) {
- var attrs = attributes || {};
- options || (options = {});
- this.cid = _.uniqueId('c');
- this.attributes = {};
- if (options.collection) this.collection = options.collection;
- if (options.parse) attrs = this.parse(attrs, options) || {};
- attrs = _.defaults({}, attrs, _.result(this, 'defaults'));
- this.set(attrs, options);
- this.changed = {};
- this.initialize.apply(this, arguments);
-};
-
-// Attach all inheritable methods to the Model prototype.
-_.extend(Model.prototype, Events, {
-
- // A hash of attributes whose current and previous value differ.
- changed: null,
-
- // The value returned during the last failed validation.
- validationError: null,
-
- // The default name for the JSON `id` attribute is `"id"`. MongoDB and
- // CouchDB users may want to set this to `"_id"`.
- idAttribute: 'id',
-
- // Initialize is an empty function by default. Override it with your own
- // initialization logic.
- initialize: function(){},
-
- // Return a copy of the model's `attributes` object.
- toJSON: function(options) {
- return _.clone(this.attributes);
- },
-
- // Proxy `Backbone.sync` by default -- but override this if you need
- // custom syncing semantics for *this* particular model.
- sync: function() {
- return Backbone.sync.apply(this, arguments);
- },
-
- // Get the value of an attribute.
- get: function(attr) {
- return this.attributes[attr];
- },
-
- // Get the HTML-escaped value of an attribute.
- escape: function(attr) {
- return _.escape(this.get(attr));
- },
-
- // Returns `true` if the attribute contains a value that is not null
- // or undefined.
- has: function(attr) {
- return this.get(attr) != null;
- },
-
- // Set a hash of model attributes on the object, firing `"change"`. This is
- // the core primitive operation of a model, updating the data and notifying
- // anyone who needs to know about the change in state. The heart of the beast.
- set: function(key, val, options) {
- var attr, attrs, unset, changes, silent, changing, prev, current;
- if (key == null) return this;
-
- // Handle both `"key", value` and `{key: value}` -style arguments.
- if (typeof key === 'object') {
- attrs = key;
- options = val;
- } else {
- (attrs = {})[key] = val;
- }
-
- options || (options = {});
-
- // Run validation.
- if (!this._validate(attrs, options)) return false;
-
- // Extract attributes and options.
- unset = options.unset;
- silent = options.silent;
- changes = [];
- changing = this._changing;
- this._changing = true;
-
- if (!changing) {
- this._previousAttributes = _.clone(this.attributes);
- this.changed = {};
- }
- current = this.attributes, prev = this._previousAttributes;
-
- // Check for changes of `id`.
- if (this.idAttribute in attrs) this.id = attrs[this.idAttribute];
-
- // For each `set` attribute, update or delete the current value.
- for (attr in attrs) {
- val = attrs[attr];
- if (!_.isEqual(current[attr], val)) changes.push(attr);
- if (!_.isEqual(prev[attr], val)) {
- this.changed[attr] = val;
- } else {
- delete this.changed[attr];
- }
- unset ? delete current[attr] : current[attr] = val;
- }
-
- // Trigger all relevant attribute changes.
- if (!silent) {
- if (changes.length) this._pending = options;
- for (var i = 0, length = changes.length; i < length; i++) {
- this.trigger('change:' + changes[i], this, current[changes[i]], options);
- }
- }
-
- // You might be wondering why there's a `while` loop here. Changes can
- // be recursively nested within `"change"` events.
- if (changing) return this;
- if (!silent) {
- while (this._pending) {
- options = this._pending;
- this._pending = false;
- this.trigger('change', this, options);
- }
- }
- this._pending = false;
- this._changing = false;
- return this;
- },
-
- // Remove an attribute from the model, firing `"change"`. `unset` is a noop
- // if the attribute doesn't exist.
- unset: function(attr, options) {
- return this.set(attr, void 0, _.extend({}, options, {unset: true}));
- },
-
- // Clear all attributes on the model, firing `"change"`.
- clear: function(options) {
- var attrs = {};
- for (var key in this.attributes) attrs[key] = void 0;
- return this.set(attrs, _.extend({}, options, {unset: true}));
- },
-
- // Determine if the model has changed since the last `"change"` event.
- // If you specify an attribute name, determine if that attribute has changed.
- hasChanged: function(attr) {
- if (attr == null) return !_.isEmpty(this.changed);
- return _.has(this.changed, attr);
- },
-
- // Return an object containing all the attributes that have changed, or
- // false if there are no changed attributes. Useful for determining what
- // parts of a view need to be updated and/or what attributes need to be
- // persisted to the server. Unset attributes will be set to undefined.
- // You can also pass an attributes object to diff against the model,
- // determining if there *would be* a change.
- changedAttributes: function(diff) {
- if (!diff) return this.hasChanged() ? _.clone(this.changed) : false;
- var val, changed = false;
- var old = this._changing ? this._previousAttributes : this.attributes;
- for (var attr in diff) {
- if (_.isEqual(old[attr], (val = diff[attr]))) continue;
- (changed || (changed = {}))[attr] = val;
- }
- return changed;
- },
-
- // Get the previous value of an attribute, recorded at the time the last
- // `"change"` event was fired.
- previous: function(attr) {
- if (attr == null || !this._previousAttributes) return null;
- return this._previousAttributes[attr];
- },
-
- // Get all of the attributes of the model at the time of the previous
- // `"change"` event.
- previousAttributes: function() {
- return _.clone(this._previousAttributes);
- },
-
- // Fetch the model from the server. If the server's representation of the
- // model differs from its current attributes, they will be overridden,
- // triggering a `"change"` event.
- fetch: function(options) {
- options = options ? _.clone(options) : {};
- if (options.parse === void 0) options.parse = true;
- var model = this;
- var success = options.success;
- options.success = function(resp) {
- if (!model.set(model.parse(resp, options), options)) return false;
- if (success) success(model, resp, options);
- model.trigger('sync', model, resp, options);
- };
- wrapError(this, options);
- return this.sync('read', this, options);
- },
-
- // Set a hash of model attributes, and sync the model to the server.
- // If the server returns an attributes hash that differs, the model's
- // state will be `set` again.
- save: function(key, val, options) {
- var attrs, method, xhr, attributes = this.attributes;
-
- // Handle both `"key", value` and `{key: value}` -style arguments.
- if (key == null || typeof key === 'object') {
- attrs = key;
- options = val;
- } else {
- (attrs = {})[key] = val;
- }
-
- options = _.extend({validate: true}, options);
-
- // If we're not waiting and attributes exist, save acts as
- // `set(attr).save(null, opts)` with validation. Otherwise, check if
- // the model will be valid when the attributes, if any, are set.
- if (attrs && !options.wait) {
- if (!this.set(attrs, options)) return false;
- } else {
- if (!this._validate(attrs, options)) return false;
- }
-
- // Set temporary attributes if `{wait: true}`.
- if (attrs && options.wait) {
- this.attributes = _.extend({}, attributes, attrs);
- }
-
- // After a successful server-side save, the client is (optionally)
- // updated with the server-side state.
- if (options.parse === void 0) options.parse = true;
- var model = this;
- var success = options.success;
- options.success = function(resp) {
- // Ensure attributes are restored during synchronous saves.
- model.attributes = attributes;
- var serverAttrs = model.parse(resp, options);
- if (options.wait) serverAttrs = _.extend(attrs || {}, serverAttrs);
- if (_.isObject(serverAttrs) && !model.set(serverAttrs, options)) {
- return false;
- }
- if (success) success(model, resp, options);
- model.trigger('sync', model, resp, options);
- };
- wrapError(this, options);
-
- method = this.isNew() ? 'create' : (options.patch ? 'patch' : 'update');
- if (method === 'patch' && !options.attrs) options.attrs = attrs;
- xhr = this.sync(method, this, options);
-
- // Restore attributes.
- if (attrs && options.wait) this.attributes = attributes;
-
- return xhr;
- },
-
- // Destroy this model on the server if it was already persisted.
- // Optimistically removes the model from its collection, if it has one.
- // If `wait: true` is passed, waits for the server to respond before removal.
- destroy: function(options) {
- options = options ? _.clone(options) : {};
- var model = this;
- var success = options.success;
-
- var destroy = function() {
- model.stopListening();
- model.trigger('destroy', model, model.collection, options);
- };
-
- options.success = function(resp) {
- if (options.wait || model.isNew()) destroy();
- if (success) success(model, resp, options);
- if (!model.isNew()) model.trigger('sync', model, resp, options);
- };
-
- if (this.isNew()) {
- options.success();
- return false;
- }
- wrapError(this, options);
-
- var xhr = this.sync('delete', this, options);
- if (!options.wait) destroy();
- return xhr;
- },
-
- // Default URL for the model's representation on the server -- if you're
- // using Backbone's restful methods, override this to change the endpoint
- // that will be called.
- url: function() {
- var base =
- _.result(this, 'urlRoot') ||
- _.result(this.collection, 'url') ||
- urlError();
- if (this.isNew()) return base;
- return base.replace(/([^\/])$/, '$1/') + encodeURIComponent(this.id);
- },
-
- // **parse** converts a response into the hash of attributes to be `set` on
- // the model. The default implementation is just to pass the response along.
- parse: function(resp, options) {
- return resp;
- },
-
- // Create a new model with identical attributes to this one.
- clone: function() {
- return new this.constructor(this.attributes);
- },
-
- // A model is new if it has never been saved to the server, and lacks an id.
- isNew: function() {
- return !this.has(this.idAttribute);
- },
-
- // Check if the model is currently in a valid state.
- isValid: function(options) {
- return this._validate({}, _.extend(options || {}, { validate: true }));
- },
-
- // Run validation against the next complete set of model attributes,
- // returning `true` if all is well. Otherwise, fire an `"invalid"` event.
- _validate: function(attrs, options) {
- if (!options.validate || !this.validate) return true;
- attrs = _.extend({}, this.attributes, attrs);
- var error = this.validationError = this.validate(attrs, options) || null;
- if (!error) return true;
- this.trigger('invalid', this, error, _.extend(options, {validationError: error}));
- return false;
- }
-
-});
-
-// Underscore methods that we want to implement on the Model.
-var modelMethods = ['keys', 'values', 'pairs', 'invert', 'pick', 'omit', 'chain', 'isEmpty'];
-
-// Mix in each Underscore method as a proxy to `Model#attributes`.
-_.each(modelMethods, function(method) {
- if (!_[method]) return;
- Model.prototype[method] = function() {
- var args = slice.call(arguments);
- args.unshift(this.attributes);
- return _[method].apply(_, args);
- };
-});
-
-// setup inheritance
-Model.extend = extend;
-module.exports = Model;
-
-},{"backbone-events-standalone":8,"backbone-extend-standalone":9,"underscore":59}],7:[function(require,module,exports){
-/**
- * Standalone extraction of Backbone.Events, no external dependency required.
- * Degrades nicely when Backone/underscore are already available in the current
- * global context.
- *
- * Note that docs suggest to use underscore's `_.extend()` method to add Events
- * support to some given object. A `mixin()` method has been added to the Events
- * prototype to avoid using underscore for that sole purpose:
- *
- * var myEventEmitter = BackboneEvents.mixin({});
- *
- * Or for a function constructor:
- *
- * function MyConstructor(){}
- * MyConstructor.prototype.foo = function(){}
- * BackboneEvents.mixin(MyConstructor.prototype);
- *
- * (c) 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
- * (c) 2013 Nicolas Perriault
- */
-/* global exports:true, define, module */
-(function() {
- var root = this,
- breaker = {},
- nativeForEach = Array.prototype.forEach,
- hasOwnProperty = Object.prototype.hasOwnProperty,
- slice = Array.prototype.slice,
- idCounter = 0;
-
- // Returns a partial implementation matching the minimal API subset required
- // by Backbone.Events
- function miniscore() {
- return {
- keys: Object.keys || function (obj) {
- if (typeof obj !== "object" && typeof obj !== "function" || obj === null) {
- throw new TypeError("keys() called on a non-object");
- }
- var key, keys = [];
- for (key in obj) {
- if (obj.hasOwnProperty(key)) {
- keys[keys.length] = key;
- }
- }
- return keys;
- },
-
- uniqueId: function(prefix) {
- var id = ++idCounter + '';
- return prefix ? prefix + id : id;
- },
-
- has: function(obj, key) {
- return hasOwnProperty.call(obj, key);
- },
-
- each: function(obj, iterator, context) {
- if (obj == null) return;
- if (nativeForEach && obj.forEach === nativeForEach) {
- obj.forEach(iterator, context);
- } else if (obj.length === +obj.length) {
- for (var i = 0, l = obj.length; i < l; i++) {
- if (iterator.call(context, obj[i], i, obj) === breaker) return;
- }
- } else {
- for (var key in obj) {
- if (this.has(obj, key)) {
- if (iterator.call(context, obj[key], key, obj) === breaker) return;
- }
- }
- }
- },
-
- once: function(func) {
- var ran = false, memo;
- return function() {
- if (ran) return memo;
- ran = true;
- memo = func.apply(this, arguments);
- func = null;
- return memo;
- };
- }
- };
- }
-
- var _ = miniscore(), Events;
-
- // Backbone.Events
- // ---------------
-
- // A module that can be mixed in to *any object* in order to provide it with
- // custom events. You may bind with `on` or remove with `off` callback
- // functions to an event; `trigger`-ing an event fires all callbacks in
- // succession.
- //
- // var object = {};
- // _.extend(object, Backbone.Events);
- // object.on('expand', function(){ alert('expanded'); });
- // object.trigger('expand');
- //
- Events = {
-
- // Bind an event to a `callback` function. Passing `"all"` will bind
- // the callback to all events fired.
- on: function(name, callback, context) {
- if (!eventsApi(this, 'on', name, [callback, context]) || !callback) return this;
- this._events || (this._events = {});
- var events = this._events[name] || (this._events[name] = []);
- events.push({callback: callback, context: context, ctx: context || this});
- return this;
- },
-
- // Bind an event to only be triggered a single time. After the first time
- // the callback is invoked, it will be removed.
- once: function(name, callback, context) {
- if (!eventsApi(this, 'once', name, [callback, context]) || !callback) return this;
- var self = this;
- var once = _.once(function() {
- self.off(name, once);
- callback.apply(this, arguments);
- });
- once._callback = callback;
- return this.on(name, once, context);
- },
-
- // Remove one or many callbacks. If `context` is null, removes all
- // callbacks with that function. If `callback` is null, removes all
- // callbacks for the event. If `name` is null, removes all bound
- // callbacks for all events.
- off: function(name, callback, context) {
- var retain, ev, events, names, i, l, j, k;
- if (!this._events || !eventsApi(this, 'off', name, [callback, context])) return this;
- if (!name && !callback && !context) {
- this._events = {};
- return this;
- }
-
- names = name ? [name] : _.keys(this._events);
- for (i = 0, l = names.length; i < l; i++) {
- name = names[i];
- if (events = this._events[name]) {
- this._events[name] = retain = [];
- if (callback || context) {
- for (j = 0, k = events.length; j < k; j++) {
- ev = events[j];
- if ((callback && callback !== ev.callback && callback !== ev.callback._callback) ||
- (context && context !== ev.context)) {
- retain.push(ev);
- }
- }
- }
- if (!retain.length) delete this._events[name];
- }
- }
-
- return this;
- },
-
- // Trigger one or many events, firing all bound callbacks. Callbacks are
- // passed the same arguments as `trigger` is, apart from the event name
- // (unless you're listening on `"all"`, which will cause your callback to
- // receive the true name of the event as the first argument).
- trigger: function(name) {
- if (!this._events) return this;
- var args = slice.call(arguments, 1);
- if (!eventsApi(this, 'trigger', name, args)) return this;
- var events = this._events[name];
- var allEvents = this._events.all;
- if (events) triggerEvents(events, args);
- if (allEvents) triggerEvents(allEvents, arguments);
- return this;
- },
-
- // Tell this object to stop listening to either specific events ... or
- // to every object it's currently listening to.
- stopListening: function(obj, name, callback) {
- var listeners = this._listeners;
- if (!listeners) return this;
- var deleteListener = !name && !callback;
- if (typeof name === 'object') callback = this;
- if (obj) (listeners = {})[obj._listenerId] = obj;
- for (var id in listeners) {
- listeners[id].off(name, callback, this);
- if (deleteListener) delete this._listeners[id];
- }
- return this;
- }
-
- };
-
- // Regular expression used to split event strings.
- var eventSplitter = /\s+/;
-
- // Implement fancy features of the Events API such as multiple event
- // names `"change blur"` and jQuery-style event maps `{change: action}`
- // in terms of the existing API.
- var eventsApi = function(obj, action, name, rest) {
- if (!name) return true;
-
- // Handle event maps.
- if (typeof name === 'object') {
- for (var key in name) {
- obj[action].apply(obj, [key, name[key]].concat(rest));
- }
- return false;
- }
-
- // Handle space separated event names.
- if (eventSplitter.test(name)) {
- var names = name.split(eventSplitter);
- for (var i = 0, l = names.length; i < l; i++) {
- obj[action].apply(obj, [names[i]].concat(rest));
- }
- return false;
- }
-
- return true;
- };
-
- // A difficult-to-believe, but optimized internal dispatch function for
- // triggering events. Tries to keep the usual cases speedy (most internal
- // Backbone events have 3 arguments).
- var triggerEvents = function(events, args) {
- var ev, i = -1, l = events.length, a1 = args[0], a2 = args[1], a3 = args[2];
- switch (args.length) {
- case 0: while (++i < l) (ev = events[i]).callback.call(ev.ctx); return;
- case 1: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1); return;
- case 2: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1, a2); return;
- case 3: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1, a2, a3); return;
- default: while (++i < l) (ev = events[i]).callback.apply(ev.ctx, args);
- }
- };
-
- var listenMethods = {listenTo: 'on', listenToOnce: 'once'};
-
- // Inversion-of-control versions of `on` and `once`. Tell *this* object to
- // listen to an event in another object ... keeping track of what it's
- // listening to.
- _.each(listenMethods, function(implementation, method) {
- Events[method] = function(obj, name, callback) {
- var listeners = this._listeners || (this._listeners = {});
- var id = obj._listenerId || (obj._listenerId = _.uniqueId('l'));
- listeners[id] = obj;
- if (typeof name === 'object') callback = this;
- obj[implementation](name, callback, this);
- return this;
- };
- });
-
- // Aliases for backwards compatibility.
- Events.bind = Events.on;
- Events.unbind = Events.off;
-
- // Mixin utility
- Events.mixin = function(proto) {
- var exports = ['on', 'once', 'off', 'trigger', 'stopListening', 'listenTo',
- 'listenToOnce', 'bind', 'unbind'];
- _.each(exports, function(name) {
- proto[name] = this[name];
- }, this);
- return proto;
- };
-
- // Export Events as BackboneEvents depending on current context
- if (typeof define === "function") {
- define(function() {
- return Events;
- });
- } else if (typeof exports !== 'undefined') {
- if (typeof module !== 'undefined' && module.exports) {
- exports = module.exports = Events;
- }
- exports.BackboneEvents = Events;
- } else {
- root.BackboneEvents = Events;
- }
-})(this);
-
-},{}],8:[function(require,module,exports){
-module.exports = require('./backbone-events-standalone');
-
-},{"./backbone-events-standalone":7}],9:[function(require,module,exports){
-(function (definition) {
- if (typeof exports === "object") {
- module.exports = definition();
- }
- else if (typeof define === 'function' && define.amd) {
- define(definition);
- }
- else {
- window.BackboneExtend = definition();
- }
-})(function () {
- "use strict";
-
- // mini-underscore
- var _ = {
- has: function (obj, key) {
- return Object.prototype.hasOwnProperty.call(obj, key);
- },
-
- extend: function(obj) {
- for (var i=1; i<arguments.length; ++i) {
- var source = arguments[i];
- if (source) {
- for (var prop in source) {
- obj[prop] = source[prop];
- }
- }
- }
- return obj;
- }
- };
-
- /// Following code is pasted from Backbone.js ///
-
- // Helper function to correctly set up the prototype chain, for subclasses.
- // Similar to `goog.inherits`, but uses a hash of prototype properties and
- // class properties to be extended.
- var extend = function(protoProps, staticProps) {
- var parent = this;
- var child;
-
- // The constructor function for the new subclass is either defined by you
- // (the "constructor" property in your `extend` definition), or defaulted
- // by us to simply call the parent's constructor.
- if (protoProps && _.has(protoProps, 'constructor')) {
- child = protoProps.constructor;
- } else {
- child = function(){ return parent.apply(this, arguments); };
- }
-
- // Add static properties to the constructor function, if supplied.
- _.extend(child, parent, staticProps);
-
- // Set the prototype chain to inherit from `parent`, without calling
- // `parent`'s constructor function.
- var Surrogate = function(){ this.constructor = child; };
- Surrogate.prototype = parent.prototype;
- child.prototype = new Surrogate();
-
- // Add prototype properties (instance properties) to the subclass,
- // if supplied.
- if (protoProps) _.extend(child.prototype, protoProps);
-
- // Set a convenience property in case the parent's prototype is needed
- // later.
- child.__super__ = parent.prototype;
-
- return child;
- };
-
- // Expose the extend function
- return extend;
-});
-
-},{}],10:[function(require,module,exports){
-// this is the extracted view model from backbone
-// note that we inject jbone as jquery replacment
-// (and underscore directly)
-//
-// Views are almost more convention than they are actual code.
-// MVC pattern
-// Backbone.View
-// -------------
-
-var _ = require("underscore");
-var Events = require("backbone-events-standalone");
-var extend = require("backbone-extend-standalone");
-var $ = require('jbone');
-
-// Backbone Views are almost more convention than they are actual code. A View
-// is simply a JavaScript object that represents a logical chunk of UI in the
-// DOM. This might be a single item, an entire list, a sidebar or panel, or
-// even the surrounding frame which wraps your whole app. Defining a chunk of
-// UI as a **View** allows you to define your DOM events declaratively, without
-// having to worry about render order ... and makes it easy for the view to
-// react to specific changes in the state of your models.
-
-// Creating a Backbone.View creates its initial element outside of the DOM,
-// if an existing element is not provided...
-var View = function(options) {
- this.cid = _.uniqueId('view');
- options || (options = {});
- _.extend(this, _.pick(options, viewOptions));
- this._ensureElement();
- this.initialize.apply(this, arguments);
-};
-
-// Cached regex to split keys for `delegate`.
-var delegateEventSplitter = /^(\S+)\s*(.*)$/;
-
-// List of view options to be merged as properties.
-var viewOptions = ['model', 'collection', 'el', 'id', 'attributes', 'className', 'tagName', 'events'];
-
-// Set up all inheritable **Backbone.View** properties and methods.
-_.extend(View.prototype, Events, {
-
- // The default `tagName` of a View's element is `"div"`.
- tagName: 'div',
-
- // jQuery delegate for element lookup, scoped to DOM elements within the
- // current view. This should be preferred to global lookups where possible.
- $: function(selector) {
- return this.$el.find(selector);
- },
-
- // Initialize is an empty function by default. Override it with your own
- // initialization logic.
- initialize: function(){},
-
- // **render** is the core function that your view should override, in order
- // to populate its element (`this.el`), with the appropriate HTML. The
- // convention is for **render** to always return `this`.
- render: function() {
- return this;
- },
-
- // Remove this view by taking the element out of the DOM, and removing any
- // applicable Backbone.Events listeners.
- remove: function() {
- this._removeElement();
- this.stopListening();
- return this;
- },
-
- // Remove this view's element from the document and all event listeners
- // attached to it. Exposed for subclasses using an alternative DOM
- // manipulation API.
- _removeElement: function() {
- this.$el.remove();
- },
-
- // Change the view's element (`this.el` property) and re-delegate the
- // view's events on the new element.
- setElement: function(element) {
- this.undelegateEvents();
- this._setElement(element);
- this.delegateEvents();
- return this;
- },
-
- // Creates the `this.el` and `this.$el` references for this view using the
- // given `el`. `el` can be a CSS selector or an HTML string, a jQuery
- // context or an element. Subclasses can override this to utilize an
- // alternative DOM manipulation API and are only required to set the
- // `this.el` property.
- _setElement: function(el) {
- this.$el = el instanceof $ ? el : $(el);
- this.el = this.$el[0];
- },
-
- // Set callbacks, where `this.events` is a hash of
- //
- // *{"event selector": "callback"}*
- //
- // {
- // 'mousedown .title': 'edit',
- // 'click .button': 'save',
- // 'click .open': function(e) { ... }
- // }
- //
- // pairs. Callbacks will be bound to the view, with `this` set properly.
- // Uses event delegation for efficiency.
- // Omitting the selector binds the event to `this.el`.
- delegateEvents: function(events) {
- if (!(events || (events = _.result(this, 'events')))) return this;
- this.undelegateEvents();
- for (var key in events) {
- var method = events[key];
- if (!_.isFunction(method)) method = this[events[key]];
- if (!method) continue;
- var match = key.match(delegateEventSplitter);
- this.delegate(match[1], match[2], _.bind(method, this));
- }
- return this;
- },
-
- // Add a single event listener to the view's element (or a child element
- // using `selector`). This only works for delegate-able events: not `focus`,
- // `blur`, and not `change`, `submit`, and `reset` in Internet Explorer.
- delegate: function(eventName, selector, listener) {
- this.$el.on(eventName + '.delegateEvents' + this.cid, selector, listener);
- },
-
- // Clears all callbacks previously bound to the view by `delegateEvents`.
- // You usually don't need to use this, but may wish to if you have multiple
- // Backbone views attached to the same DOM element.
- undelegateEvents: function() {
- if (this.$el) this.$el.off('.delegateEvents' + this.cid);
- return this;
- },
-
- // A finer-grained `undelegateEvents` for removing a single delegated event.
- // `selector` and `listener` are both optional.
- undelegate: function(eventName, selector, listener) {
- this.$el.off(eventName + '.delegateEvents' + this.cid, selector, listener);
- },
-
- // Produces a DOM element to be assigned to your view. Exposed for
- // subclasses using an alternative DOM manipulation API.
- _createElement: function(tagName) {
- return document.createElement(tagName);
- },
-
- // Ensure that the View has a DOM element to render into.
- // If `this.el` is a string, pass it through `$()`, take the first
- // matching element, and re-assign it to `el`. Otherwise, create
- // an element from the `id`, `className` and `tagName` properties.
- _ensureElement: function() {
- if (!this.el) {
- var attrs = _.extend({}, _.result(this, 'attributes'));
- if (this.id) attrs.id = _.result(this, 'id');
- if (this.className) attrs['class'] = _.result(this, 'className');
- this.setElement(this._createElement(_.result(this, 'tagName')));
- this._setAttributes(attrs);
- } else {
- this.setElement(_.result(this, 'el'));
- }
- },
-
- // Set attributes from a hash on this view's element. Exposed for
- // subclasses using an alternative DOM manipulation API.
- _setAttributes: function(attributes) {
- this.$el.attr(attributes);
- }
-
-});
-
-// setup inheritance
-View.extend = extend;
-module.exports = View;
-
-},{"backbone-events-standalone":12,"backbone-extend-standalone":13,"jbone":50,"underscore":59}],11:[function(require,module,exports){
-module.exports=require(7)
-},{"/home/travis/build/greenify/biojs-vis-msa/node_modules/backbone-thin/node_modules/backbone-events-standalone/backbone-events-standalone.js":7}],12:[function(require,module,exports){
-module.exports=require(8)
-},{"./backbone-events-standalone":11,"/home/travis/build/greenify/biojs-vis-msa/node_modules/backbone-thin/node_modules/backbone-events-standalone/index.js":8}],13:[function(require,module,exports){
-module.exports=require(9)
-},{"/home/travis/build/greenify/biojs-vis-msa/node_modules/backbone-thin/node_modules/backbone-extend-standalone/backbone-extend-standalone.js":9}],14:[function(require,module,exports){
-var events = require("backbone-events-standalone");
-
-events.onAll = function(callback,context){
- this.on("all", callback,context);
- return this;
-};
-
-// Mixin utility
-events.oldMixin = events.mixin;
-events.mixin = function(proto) {
- events.oldMixin(proto);
- // add custom onAll
- var exports = ['onAll'];
- for(var i=0; i < exports.length;i++){
- var name = exports[i];
- proto[name] = this[name];
- }
- return proto;
-};
-
-module.exports = events;
-
-},{"backbone-events-standalone":16}],15:[function(require,module,exports){
-module.exports=require(7)
-},{"/home/travis/build/greenify/biojs-vis-msa/node_modules/backbone-thin/node_modules/backbone-events-standalone/backbone-events-standalone.js":7}],16:[function(require,module,exports){
-module.exports=require(8)
-},{"./backbone-events-standalone":15,"/home/travis/build/greenify/biojs-vis-msa/node_modules/backbone-thin/node_modules/backbone-events-standalone/index.js":8}],17:[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-var GenericReader, xhr;
-
-xhr = require('nets');
-
-module.exports = GenericReader = (function() {
- function GenericReader() {}
-
- GenericReader.read = function(url, callback) {
- var onret;
- onret = (function(_this) {
- return function(err, response, text) {
- return _this._onRetrieval(text, callback);
- };
- })(this);
- return xhr(url, onret);
- };
-
- GenericReader._onRetrieval = function(text, callback) {
- var rText;
- rText = this.parse(text);
- return callback(rText);
- };
-
- return GenericReader;
-
-})();
-
-},{"nets":undefined}],18:[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-var Seq;
-
-module.exports = Seq = (function() {
- function Seq(seq, name, id) {
- var meta;
- this.seq = seq;
- this.name = name;
- this.id = id;
- meta = {};
- }
-
- return Seq;
-
-})();
-
-},{}],19:[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-var strings;
-
-strings = {
- contains: function(text, search) {
- return ''.indexOf.call(text, search, 0) !== -1;
- }
-};
-
-module.exports = strings;
-
-},{}],20:[function(require,module,exports){
-module.exports=require(17)
-},{"/home/travis/build/greenify/biojs-vis-msa/node_modules/biojs-io-clustal/lib/generic_reader.js":17,"nets":undefined}],21:[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-var Fasta, GenericReader, Seq, Str,
- __hasProp = {}.hasOwnProperty,
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
-
-Str = require("./strings");
-
-GenericReader = require("./generic_reader");
-
-Seq = require("biojs-model").seq;
-
-module.exports = Fasta = (function(_super) {
- __extends(Fasta, _super);
-
- function Fasta() {
- return Fasta.__super__.constructor.apply(this, arguments);
- }
-
- Fasta.parse = function(text) {
- var currentSeq, database, databaseID, identifiers, k, label, line, seqs, _i, _len;
- seqs = [];
- if (Object.prototype.toString.call(text) !== '[object Array]') {
- text = text.split("\n");
- }
- for (_i = 0, _len = text.length; _i < _len; _i++) {
- line = text[_i];
- if (line[0] === ">" || line[0] === ";") {
- label = line.slice(1);
- currentSeq = new Seq("", label, seqs.length);
- seqs.push(currentSeq);
- if (Str.contains("|", line)) {
- identifiers = label.split("|");
- k = 1;
- while (k < identifiers.length) {
- database = identifiers[k];
- databaseID = identifiers[k + 1];
- currentSeq.meta[database] = databaseID;
- k += 2;
- }
- currentSeq.name = identifiers[identifiers.length - 1];
- }
- } else {
- currentSeq.seq += line;
- }
- }
- return seqs;
- };
-
- return Fasta;
-
-})(GenericReader);
-
-},{"./generic_reader":20,"./strings":22,"biojs-model":25}],22:[function(require,module,exports){
-module.exports=require(19)
-},{"/home/travis/build/greenify/biojs-vis-msa/node_modules/biojs-io-clustal/lib/strings.js":19}],23:[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-var Utils;
-
-Utils = {};
-
-Utils.splitNChars = function(txt, num) {
- var i, result, _i, _ref;
- result = [];
- for (i = _i = 0, _ref = txt.length - 1; num > 0 ? _i <= _ref : _i >= _ref; i = _i += num) {
- result.push(txt.substr(i, num));
- }
- return result;
-};
-
-module.exports = Utils;
-
-},{}],24:[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-var FastaExporter, Utils;
-
-Utils = require("./utils");
-
-module.exports = FastaExporter = (function() {
- function FastaExporter() {}
-
- FastaExporter["export"] = function(seqs, access) {
- var seq, text, _i, _len;
- text = "";
- for (_i = 0, _len = seqs.length; _i < _len; _i++) {
- seq = seqs[_i];
- if (access != null) {
- seq = access(seq);
- }
- text += ">" + seq.name + "\n";
- text += (Utils.splitNChars(seq.seq, 80)).join("\n");
- text += "\n";
- }
- return text;
- };
-
- return FastaExporter;
-
-})();
-
-},{"./utils":23}],25:[function(require,module,exports){
-module.exports.seq = require("./seq");
-
-},{"./seq":26}],26:[function(require,module,exports){
-module.exports = function(seq, name, id) {
- this.seq = seq;
- this.name = name;
- this.id = id;
- this.meta = {};
-};
-
-},{}],27:[function(require,module,exports){
-module.exports=require(25)
-},{"./seq":28,"/home/travis/build/greenify/biojs-vis-msa/node_modules/biojs-io-fasta/node_modules/biojs-model/src/index.js":25}],28:[function(require,module,exports){
-module.exports=require(26)
-},{"/home/travis/build/greenify/biojs-vis-msa/node_modules/biojs-io-fasta/node_modules/biojs-model/src/seq.js":26}],29:[function(require,module,exports){
-module.exports = require('./src/index.js')
-
-},{"./src/index.js":36}],30:[function(require,module,exports){
-module.exports = {
- A: "#00a35c",
- R: "#00fc03",
- N: "#00eb14",
- D: "#00eb14",
- C: "#0000ff",
- Q: "#00f10e",
- E: "#00f10e",
- G: "#009d62",
- H: "#00d52a",
- I: "#0054ab",
- L: "#007b84",
- K: "#00ff00",
- M: "#009768",
- F: "#008778",
- P: "#00e01f",
- S: "#00d52a",
- T: "#00db24",
- W: "#00a857",
- Y: "#00e619",
- V: "#005fa0",
- B: "#00eb14",
- X: "#00b649",
- Z: "#00f10e"
-};
-
-},{}],31:[function(require,module,exports){
-module.exports = {
- A: "#BBBBBB",
- B: "grey",
- C: "yellow",
- D: "red",
- E: "red",
- F: "magenta",
- G: "brown",
- H: "#00FFFF",
- I: "#BBBBBB",
- J: "#fff",
- K: "#00FFFF",
- L: "#BBBBBB",
- M: "#BBBBBB",
- N: "green",
- O: "#fff",
- P: "brown",
- Q: "green",
- R: "#00FFFF",
- S: "green",
- T: "green",
- U: "#fff",
- V: "#BBBBBB",
- W: "magenta",
- X: "grey",
- Y: "magenta",
- Z: "grey",
- Gap: "grey"
-};
-
-},{}],32:[function(require,module,exports){
-module.exports = {
- A: "orange",
- B: "#fff",
- C: "green",
- D: "red",
- E: "red",
- F: "blue",
- G: "orange",
- H: "red",
- I: "green",
- J: "#fff",
- K: "red",
- L: "green",
- M: "green",
- N: "#fff",
- O: "#fff",
- P: "orange",
- Q: "#fff",
- R: "red",
- S: "orange",
- T: "orange",
- U: "#fff",
- V: "green",
- W: "blue",
- X: "#fff",
- Y: "blue",
- Z: "#fff",
- Gap: "#fff"
-};
-
-},{}],33:[function(require,module,exports){
-module.exports = {
- A: "#80a0f0",
- R: "#f01505",
- N: "#00ff00",
- D: "#c048c0",
- C: "#f08080",
- Q: "#00ff00",
- E: "#c048c0",
- G: "#f09048",
- H: "#15a4a4",
- I: "#80a0f0",
- L: "#80a0f0",
- K: "#f01505",
- M: "#80a0f0",
- F: "#80a0f0",
- P: "#ffff00",
- S: "#00ff00",
- T: "#00ff00",
- W: "#80a0f0",
- Y: "#15a4a4",
- V: "#80a0f0",
- B: "#fff",
- X: "#fff",
- Z: "#fff"
-};
-
-},{}],34:[function(require,module,exports){
-module.exports = {
- A: "#e718e7",
- R: "#6f906f",
- N: "#1be41b",
- D: "#778877",
- C: "#23dc23",
- Q: "#926d92",
- E: "#ff00ff",
- G: "#00ff00",
- H: "#758a75",
- I: "#8a758a",
- L: "#ae51ae",
- K: "#a05fa0",
- M: "#ef10ef",
- F: "#986798",
- P: "#00ff00",
- S: "#36c936",
- T: "#47b847",
- W: "#8a758a",
- Y: "#21de21",
- V: "#857a85",
- B: "#49b649",
- X: "#758a75",
- Z: "#c936c9"
-};
-
-},{}],35:[function(require,module,exports){
-module.exports = {
- A: "#ad0052",
- B: "#0c00f3",
- C: "#c2003d",
- D: "#0c00f3",
- E: "#0c00f3",
- F: "#cb0034",
- G: "#6a0095",
- H: "#1500ea",
- I: "#ff0000",
- J: "#fff",
- K: "#0000ff",
- L: "#ea0015",
- M: "#b0004f",
- N: "#0c00f3",
- O: "#fff",
- P: "#4600b9",
- Q: "#0c00f3",
- R: "#0000ff",
- S: "#5e00a1",
- T: "#61009e",
- U: "#fff",
- V: "#f60009",
- W: "#5b00a4",
- X: "#680097",
- Y: "#4f00b0",
- Z: "#0c00f3"
-};
-
-},{}],36:[function(require,module,exports){
-module.exports.selector = require("./selector");
-
-// basics
-module.exports.taylor = require("./taylor");
-module.exports.zappo= require("./zappo");
-module.exports.hydro= require("./hydrophobicity");
-
-module.exports.clustal = require("./clustal");
-module.exports.clustal2 = require("./clustal2");
-
-module.exports.curied = require("./buried");
-module.exports.cinema = require("./cinema");
-module.exports.nucleotide = require("./nucleotide");
-module.exports.helix = require("./helix");
-module.exports.lesk = require("./lesk");
-module.exports.mae = require("./mae");
-module.exports.purine = require("./purine");
-module.exports.strand = require("./strand");
-module.exports.turn = require("./turn");
-
-},{"./buried":30,"./cinema":31,"./clustal":32,"./clustal2":33,"./helix":34,"./hydrophobicity":35,"./lesk":37,"./mae":38,"./nucleotide":39,"./purine":40,"./selector":41,"./strand":42,"./taylor":43,"./turn":44,"./zappo":45}],37:[function(require,module,exports){
-module.exports = {
- A: " orange",
- B: " #fff",
- C: " green",
- D: " red",
- E: " red",
- F: " green",
- G: " orange",
- H: " magenta",
- I: " green",
- J: " #fff",
- K: " red",
- L: " green",
- M: " green",
- N: " magenta",
- O: " #fff",
- P: " green",
- Q: " magenta",
- R: " red",
- S: " orange",
- T: " orange",
- U: " #fff",
- V: " green",
- W: " green",
- X: " #fff",
- Y: " green",
- Z: " #fff",
- Gap: " #fff"
-};
-
-},{}],38:[function(require,module,exports){
-module.exports = {
- A: " #77dd88",
- B: " #fff",
- C: " #99ee66",
- D: " #55bb33",
- E: " #55bb33",
- F: " #9999ff",
- G: " #77dd88",
- H: " #5555ff",
- I: " #66bbff",
- J: " #fff",
- K: " #ffcc77",
- L: " #66bbff",
- M: " #66bbff",
- N: " #55bb33",
- O: " #fff",
- P: " #eeaaaa",
- Q: " #55bb33",
- R: " #ffcc77",
- S: " #ff4455",
- T: " #ff4455",
- U: " #fff",
- V: " #66bbff",
- W: " #9999ff",
- X: " #fff",
- Y: " #9999ff",
- Z: " #fff",
- Gap: " #fff"
-};
-
-},{}],39:[function(require,module,exports){
-module.exports = {
- A: " #64F73F",
- C: " #FFB340",
- G: " #EB413C",
- T: " #3C88EE",
- U: " #3C88EE"
-};
-
-},{}],40:[function(require,module,exports){
-module.exports = {
- A: " #FF83FA",
- C: " #40E0D0",
- G: " #FF83FA",
- R: " #FF83FA",
- T: " #40E0D0",
- U: " #40E0D0",
- Y: " #40E0D0"
-};
-
-},{}],41:[function(require,module,exports){
-var Buried = require("./buried");
-var Cinema = require("./cinema");
-var Clustal = require("./clustal");
-var Clustal2 = require("./clustal2");
-var Helix = require("./helix");
-var Hydro = require("./hydrophobicity");
-var Lesk = require("./lesk");
-var Mae = require("./mae");
-var Nucleotide = require("./nucleotide");
-var Purine = require("./purine");
-var Strand = require("./strand");
-var Taylor = require("./taylor");
-var Turn = require("./turn");
-var Zappo = require("./zappo");
-
-module.exports = Colors = {
- mapping: {
- buried: Buried,
- buried_index: Buried,
- cinema: Cinema,
- clustal2: Clustal2,
- clustal: Clustal,
- helix: Helix,
- helix_propensity: Helix,
- hydro: Hydro,
- lesk: Lesk,
- mae: Mae,
- nucleotide: Nucleotide,
- purine: Purine,
- purine_pyrimidine: Purine,
- strand: Strand,
- strand_propensity: Strand,
- taylor: Taylor,
- turn: Turn,
- turn_propensity: Turn,
- zappo: Zappo,
- },
- getColor: function(scheme) {
- var color = Colors.mapping[scheme];
- if (color === undefined) {
- color = {};
- }
- return color;
- }
-};
-
-},{"./buried":30,"./cinema":31,"./clustal":32,"./clustal2":33,"./helix":34,"./hydrophobicity":35,"./lesk":37,"./mae":38,"./nucleotide":39,"./purine":40,"./strand":42,"./taylor":43,"./turn":44,"./zappo":45}],42:[function(require,module,exports){
-module.exports = {
- A: "#5858a7",
- R: "#6b6b94",
- N: "#64649b",
- D: "#2121de",
- C: "#9d9d62",
- Q: "#8c8c73",
- E: "#0000ff",
- G: "#4949b6",
- H: "#60609f",
- I: "#ecec13",
- L: "#b2b24d",
- K: "#4747b8",
- M: "#82827d",
- F: "#c2c23d",
- P: "#2323dc",
- S: "#4949b6",
- T: "#9d9d62",
- W: "#c0c03f",
- Y: "#d3d32c",
- V: "#ffff00",
- B: "#4343bc",
- X: "#797986",
- Z: "#4747b8"
-};
-
-},{}],43:[function(require,module,exports){
-module.exports = {
- A: "#ccff00",
- R: "#0000ff",
- N: "#cc00ff",
- D: "#ff0000",
- C: "#ffff00",
- Q: "#ff00cc",
- E: "#ff0066",
- G: "#ff9900",
- H: "#0066ff",
- I: "#66ff00",
- L: "#33ff00",
- K: "#6600ff",
- M: "#00ff00",
- F: "#00ff66",
- P: "#ffcc00",
- S: "#ff3300",
- T: "#ff6600",
- W: "#00ccff",
- Y: "#00ffcc",
- V: "#99ff00",
- B: "#fff",
- X: "#fff",
- Z: "#fff"
-};
-
-},{}],44:[function(require,module,exports){
-module.exports = {
- A: "#2cd3d3",
- R: "#708f8f",
- N: "#ff0000",
- D: "#e81717",
- C: "#a85757",
- Q: "#3fc0c0",
- E: "#778888",
- G: "#ff0000",
- H: "#708f8f",
- I: "#00ffff",
- L: "#1ce3e3",
- K: "#7e8181",
- M: "#1ee1e1",
- F: "#1ee1e1",
- P: "#f60909",
- S: "#e11e1e",
- T: "#738c8c",
- W: "#738c8c",
- Y: "#9d6262",
- V: "#07f8f8",
- B: "#f30c0c",
- X: "#7c8383",
- Z: "#5ba4a4"
-};
-
-},{}],45:[function(require,module,exports){
-module.exports = {
- A: "#ffafaf",
- R: "#6464ff",
- N: "#00ff00",
- D: "#ff0000",
- C: "#ffff00",
- Q: "#00ff00",
- E: "#ff0000",
- G: "#ff00ff",
- H: "#6464ff",
- I: "#ffafaf",
- L: "#ffafaf",
- K: "#6464ff",
- M: "#ffafaf",
- F: "#ffc800",
- P: "#ff00ff",
- S: "#00ff00",
- T: "#00ff00",
- W: "#ffc800",
- Y: "#ffc800",
- V: "#ffafaf",
- B: "#fff",
- X: "#fff",
- Z: "#fff"
-};
-
-},{}],46:[function(require,module,exports){
-/*
- * JavaScript Canvas to Blob 2.0.5
- * https://github.com/blueimp/JavaScript-Canvas-to-Blob
- *
- * Copyright 2012, Sebastian Tschan
- * https://blueimp.net
- *
- * Licensed under the MIT license:
- * http://www.opensource.org/licenses/MIT
- *
- * Based on stackoverflow user Stoive's code snippet:
- * http://stackoverflow.com/q/4998908
- */
-var CanvasPrototype = window.HTMLCanvasElement &&
-window.HTMLCanvasElement.prototype,
- hasBlobConstructor = window.Blob && (function () {
- try {
- return Boolean(new Blob());
- } catch (e) {
- return false;
- }
- }()),
- hasArrayBufferViewSupport = hasBlobConstructor && window.Uint8Array &&
- (function () {
- try {
- return new Blob([new Uint8Array(100)]).size === 100;
- } catch (e) {
- return false;
- }
- }()),
- BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder ||
- window.MozBlobBuilder || window.MSBlobBuilder,
- dataURLtoBlob = (hasBlobConstructor || BlobBuilder) && window.atob &&
- window.ArrayBuffer && window.Uint8Array && function (dataURI) {
- var byteString,
- arrayBuffer,
- intArray,
- i,
- mimeString,
- bb;
- if (dataURI.split(',')[0].indexOf('base64') >= 0) {
- // Convert base64 to raw binary data held in a string:
- byteString = atob(dataURI.split(',')[1]);
- } else {
- // Convert base64/URLEncoded data component to raw binary data:
- byteString = decodeURIComponent(dataURI.split(',')[1]);
- }
- // Write the bytes of the string to an ArrayBuffer:
- arrayBuffer = new ArrayBuffer(byteString.length);
- intArray = new Uint8Array(arrayBuffer);
- for (i = 0; i < byteString.length; i += 1) {
- intArray[i] = byteString.charCodeAt(i);
- }
- // Separate out the mime component:
- mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0];
- // Write the ArrayBuffer (or ArrayBufferView) to a blob:
- if (hasBlobConstructor) {
- return new Blob(
- [hasArrayBufferViewSupport ? intArray : arrayBuffer],
- {type: mimeString}
- );
- }
- bb = new BlobBuilder();
- bb.append(arrayBuffer);
- return bb.getBlob(mimeString);
- };
-if (window.HTMLCanvasElement && !CanvasPrototype.toBlob) {
- if (CanvasPrototype.mozGetAsFile) {
- CanvasPrototype.toBlob = function (callback, type, quality) {
- if (quality && CanvasPrototype.toDataURL && dataURLtoBlob) {
- callback(dataURLtoBlob(this.toDataURL(type, quality)));
- } else {
- callback(this.mozGetAsFile('blob', type));
- }
- };
- } else if (CanvasPrototype.toDataURL && dataURLtoBlob) {
- CanvasPrototype.toBlob = function (callback, type, quality) {
- callback(dataURLtoBlob(this.toDataURL(type, quality)));
- };
- }
-}
-
-module.exports = dataURLtoBlob;
-
-},{}],47:[function(require,module,exports){
-/* FileSaver.js
- * A saveAs() FileSaver implementation.
- * 2014-05-27
- *
- * By Eli Grey, http://eligrey.com
- * License: X11/MIT
- * See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md
- */
-
-/*global self */
-/*jslint bitwise: true, indent: 4, laxbreak: true, laxcomma: true, smarttabs: true, plusplus: true */
-
-/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
-
-var saveAs = saveAs
- // IE 10+ (native saveAs)
- || (typeof navigator !== "undefined" &&
- navigator.msSaveOrOpenBlob && navigator.msSaveOrOpenBlob.bind(navigator))
- // Everyone else
- || (function(view) {
- "use strict";
- // IE <10 is explicitly unsupported
- if (typeof navigator !== "undefined" &&
- /MSIE [1-9]\./.test(navigator.userAgent)) {
- return;
- }
- var
- doc = view.document
- // only get URL when necessary in case Blob.js hasn't overridden it yet
- , get_URL = function() {
- return view.URL || view.webkitURL || view;
- }
- , save_link = doc.createElementNS("http://www.w3.org/1999/xhtml", "a")
- , can_use_save_link = !view.externalHost && "download" in save_link
- , click = function(node) {
- var event = doc.createEvent("MouseEvents");
- event.initMouseEvent(
- "click", true, false, view, 0, 0, 0, 0, 0
- , false, false, false, false, 0, null
- );
- node.dispatchEvent(event);
- }
- , webkit_req_fs = view.webkitRequestFileSystem
- , req_fs = view.requestFileSystem || webkit_req_fs || view.mozRequestFileSystem
- , throw_outside = function(ex) {
- (view.setImmediate || view.setTimeout)(function() {
- throw ex;
- }, 0);
- }
- , force_saveable_type = "application/octet-stream"
- , fs_min_size = 0
- , deletion_queue = []
- , process_deletion_queue = function() {
- var i = deletion_queue.length;
- while (i--) {
- var file = deletion_queue[i];
- if (typeof file === "string") { // file is an object URL
- get_URL().revokeObjectURL(file);
- } else { // file is a File
- file.remove();
- }
- }
- deletion_queue.length = 0; // clear queue
- }
- , dispatch = function(filesaver, event_types, event) {
- event_types = [].concat(event_types);
- var i = event_types.length;
- while (i--) {
- var listener = filesaver["on" + event_types[i]];
- if (typeof listener === "function") {
- try {
- listener.call(filesaver, event || filesaver);
- } catch (ex) {
- throw_outside(ex);
- }
- }
- }
- }
- , FileSaver = function(blob, name) {
- // First try a.download, then web filesystem, then object URLs
- var
- filesaver = this
- , type = blob.type
- , blob_changed = false
- , object_url
- , target_view
- , get_object_url = function() {
- var object_url = get_URL().createObjectURL(blob);
- deletion_queue.push(object_url);
- return object_url;
- }
- , dispatch_all = function() {
- dispatch(filesaver, "writestart progress write writeend".split(" "));
- }
- // on any filesys errors revert to saving with object URLs
- , fs_error = function() {
- // don't create more object URLs than needed
- if (blob_changed || !object_url) {
- object_url = get_object_url(blob);
- }
- if (target_view) {
- target_view.location.href = object_url;
- } else {
- window.open(object_url, "_blank");
- }
- filesaver.readyState = filesaver.DONE;
- dispatch_all();
- }
- , abortable = function(func) {
- return function() {
- if (filesaver.readyState !== filesaver.DONE) {
- return func.apply(this, arguments);
- }
- };
- }
- , create_if_not_found = {create: true, exclusive: false}
- , slice
- ;
- filesaver.readyState = filesaver.INIT;
- if (!name) {
- name = "download";
- }
- if (can_use_save_link) {
- object_url = get_object_url(blob);
- save_link.href = object_url;
- save_link.download = name;
- click(save_link);
- filesaver.readyState = filesaver.DONE;
- dispatch_all();
- return;
- }
- // Object and web filesystem URLs have a problem saving in Google Chrome when
- // viewed in a tab, so I force save with application/octet-stream
- // http://code.google.com/p/chromium/issues/detail?id=91158
- if (view.chrome && type && type !== force_saveable_type) {
- slice = blob.slice || blob.webkitSlice;
- blob = slice.call(blob, 0, blob.size, force_saveable_type);
- blob_changed = true;
- }
- // Since I can't be sure that the guessed media type will trigger a download
- // in WebKit, I append .download to the filename.
- // https://bugs.webkit.org/show_bug.cgi?id=65440
- if (webkit_req_fs && name !== "download") {
- name += ".download";
- }
- if (type === force_saveable_type || webkit_req_fs) {
- target_view = view;
- }
- if (!req_fs) {
- fs_error();
- return;
- }
- fs_min_size += blob.size;
- req_fs(view.TEMPORARY, fs_min_size, abortable(function(fs) {
- fs.root.getDirectory("saved", create_if_not_found, abortable(function(dir) {
- var save = function() {
- dir.getFile(name, create_if_not_found, abortable(function(file) {
- file.createWriter(abortable(function(writer) {
- writer.onwriteend = function(event) {
- target_view.location.href = file.toURL();
- deletion_queue.push(file);
- filesaver.readyState = filesaver.DONE;
- dispatch(filesaver, "writeend", event);
- };
- writer.onerror = function() {
- var error = writer.error;
- if (error.code !== error.ABORT_ERR) {
- fs_error();
- }
- };
- "writestart progress write abort".split(" ").forEach(function(event) {
- writer["on" + event] = filesaver["on" + event];
- });
- writer.write(blob);
- filesaver.abort = function() {
- writer.abort();
- filesaver.readyState = filesaver.DONE;
- };
- filesaver.readyState = filesaver.WRITING;
- }), fs_error);
- }), fs_error);
- };
- dir.getFile(name, {create: false}, abortable(function(file) {
- // delete file if it already exists
- file.remove();
- save();
- }), abortable(function(ex) {
- if (ex.code === ex.NOT_FOUND_ERR) {
- save();
- } else {
- fs_error();
- }
- }));
- }), fs_error);
- }), fs_error);
- }
- , FS_proto = FileSaver.prototype
- , saveAs = function(blob, name) {
- return new FileSaver(blob, name);
- }
- ;
- FS_proto.abort = function() {
- var filesaver = this;
- filesaver.readyState = filesaver.DONE;
- dispatch(filesaver, "abort");
- };
- FS_proto.readyState = FS_proto.INIT = 0;
- FS_proto.WRITING = 1;
- FS_proto.DONE = 2;
-
- FS_proto.error =
- FS_proto.onwritestart =
- FS_proto.onprogress =
- FS_proto.onwrite =
- FS_proto.onabort =
- FS_proto.onerror =
- FS_proto.onwriteend =
- null;
-
- view.addEventListener("unload", process_deletion_queue, false);
- saveAs.unload = function() {
- process_deletion_queue();
- view.removeEventListener("unload", process_deletion_queue, false);
- };
- return saveAs;
-}(
- typeof self !== "undefined" && self
- || typeof window !== "undefined" && window
- || this.content
-));
-// `self` is undefined in Firefox for Android content script context
-// while `this` is nsIContentFrameMessageManager
-// with an attribute `content` that corresponds to the window
-
-amdDefine = window.define;
-if( typeof amdDefine === "undefined" && (typeof window.almond !== "undefined"
- && "define" in window.almond )){
- amdDefine = window.almond.define;
-}
-
-if (typeof module !== "undefined" && module !== null) {
- module.exports = saveAs;
-} else if ((typeof amdDefine !== "undefined" && amdDefine !== null) && (amdDefine.amd != null)) {
- amdDefine("saveAs",[], function() {
- return saveAs;
- });
-}
-
-},{}],48:[function(require,module,exports){
-module.exports = function (css, customDocument) {
- var doc = customDocument || document;
- if (doc.createStyleSheet) {
- var sheet = doc.createStyleSheet()
- sheet.cssText = css;
- return sheet.ownerNode;
- } else {
- var head = doc.getElementsByTagName('head')[0],
- style = doc.createElement('style');
-
- style.type = 'text/css';
-
- if (style.styleSheet) {
- style.styleSheet.cssText = css;
- } else {
- style.appendChild(doc.createTextNode(css));
- }
-
- head.appendChild(style);
- return style;
- }
-};
-
-module.exports.byUrl = function(url) {
- if (document.createStyleSheet) {
- return document.createStyleSheet(url).ownerNode;
- } else {
- var head = document.getElementsByTagName('head')[0],
- link = document.createElement('link');
-
- link.rel = 'stylesheet';
- link.href = url;
-
- head.appendChild(link);
- return link;
- }
-};
-
-},{}],49:[function(require,module,exports){
-var Utils = {};
-
-
-/*
-Remove an element and provide a function that inserts it into its original position
-https://developers.google.com/speed/articles/javascript-dom
-@param element {Element} The element to be temporarily removed
-@return {Function} A function that inserts the element into its original position
- */
-
-Utils.removeToInsertLater = function(element) {
- var nextSibling, parentNode;
- parentNode = element.parentNode;
- nextSibling = element.nextSibling;
- parentNode.removeChild(element);
- return function() {
- if (nextSibling) {
- parentNode.insertBefore(element, nextSibling);
- } else {
- parentNode.appendChild(element);
- }
- };
-};
-
-
-/*
-fastest possible way to destroy all sub nodes (aka childs)
-http://jsperf.com/innerhtml-vs-removechild/15
-@param element {Element} The element for which all childs should be removed
- */
-
-Utils.removeAllChilds = function(element) {
- var count;
- count = 0;
- while (element.firstChild) {
- count++;
- element.removeChild(element.firstChild);
- }
-};
-
-module.exports = Utils;
-
-},{}],50:[function(require,module,exports){
-/*!
- * jBone v1.0.19 - 2014-10-12 - Library for DOM manipulation
- *
- * https://github.com/kupriyanenko/jbone
- *
- * Copyright 2014 Alexey Kupriyanenko
- * Released under the MIT license.
- */
-
-(function (win) {
-
-var
-// cache previous versions
-_$ = win.$,
-_jBone = win.jBone,
-
-// Quick match a standalone tag
-rquickSingleTag = /^<(\w+)\s*\/?>$/,
-
-// A simple way to check for HTML strings
-// Prioritize #id over <tag> to avoid XSS via location.hash
-rquickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
-
-// Alias for function
-slice = [].slice,
-splice = [].splice,
-keys = Object.keys,
-
-// Alias for global variables
-doc = document,
-
-isString = function(el) {
- return typeof el === "string";
-},
-isObject = function(el) {
- return el instanceof Object;
-},
-isFunction = function(el) {
- var getType = {};
- return el && getType.toString.call(el) === "[object Function]";
-},
-isArray = function(el) {
- return Array.isArray(el);
-},
-jBone = function(element, data) {
- return new fn.init(element, data);
-},
-fn;
-
-// set previous values and return the instance upon calling the no-conflict mode
-jBone.noConflict = function() {
- win.$ = _$;
- win.jBone = _jBone;
-
- return jBone;
-};
-
-fn = jBone.fn = jBone.prototype = {
- init: function(element, data) {
- var elements, tag, wraper, fragment;
-
- if (!element) {
- return this;
- }
- if (isString(element)) {
- // Create single DOM element
- if (tag = rquickSingleTag.exec(element)) {
- this[0] = doc.createElement(tag[1]);
- this.length = 1;
-
- if (isObject(data)) {
- this.attr(data);
- }
-
- return this;
- }
- // Create DOM collection
- if ((tag = rquickExpr.exec(element)) && tag[1]) {
- fragment = doc.createDocumentFragment();
- wraper = doc.createElement("div");
- wraper.innerHTML = element;
- while (wraper.lastChild) {
- fragment.appendChild(wraper.firstChild);
- }
- elements = slice.call(fragment.childNodes);
-
- return jBone.merge(this, elements);
- }
- // Find DOM elements with querySelectorAll
- if (jBone.isElement(data)) {
- return jBone(data).find(element);
- }
-
- try {
- elements = doc.querySelectorAll(element);
-
- return jBone.merge(this, elements);
- } catch (e) {
- return this;
- }
- }
- // Wrap DOMElement
- if (element.nodeType) {
- this[0] = element;
- this.length = 1;
-
- return this;
- }
- // Run function
- if (isFunction(element)) {
- return element();
- }
- // Return jBone element as is
- if (element instanceof jBone) {
- return element;
- }
-
- // Return element wrapped by jBone
- return jBone.makeArray(element, this);
- },
-
- pop: [].pop,
- push: [].push,
- reverse: [].reverse,
- shift: [].shift,
- sort: [].sort,
- splice: [].splice,
- slice: [].slice,
- indexOf: [].indexOf,
- forEach: [].forEach,
- unshift: [].unshift,
- concat: [].concat,
- join: [].join,
- every: [].every,
- some: [].some,
- filter: [].filter,
- map: [].map,
- reduce: [].reduce,
- reduceRight: [].reduceRight,
- length: 0
-};
-
-fn.constructor = jBone;
-
-fn.init.prototype = fn;
-
-jBone.setId = function(el) {
- var jid = el.jid;
-
- if (el === win) {
- jid = "window";
- } else if (el.jid === undefined) {
- el.jid = jid = ++jBone._cache.jid;
- }
-
- if (!jBone._cache.events[jid]) {
- jBone._cache.events[jid] = {};
- }
-};
-
-jBone.getData = function(el) {
- el = el instanceof jBone ? el[0] : el;
-
- var jid = el === win ? "window" : el.jid;
-
- return {
- jid: jid,
- events: jBone._cache.events[jid]
- };
-};
-
-jBone.isElement = function(el) {
- return el && el instanceof jBone || el instanceof HTMLElement || isString(el);
-};
-
-jBone._cache = {
- events: {},
- jid: 0
-};
-
-function isArraylike(obj) {
- var length = obj.length,
- type = typeof obj;
-
- if (isFunction(type) || obj === win) {
- return false;
- }
-
- if (obj.nodeType === 1 && length) {
- return true;
- }
-
- return isArray(type) || length === 0 ||
- typeof length === "number" && length > 0 && (length - 1) in obj;
-}
-
-jBone.merge = function(first, second) {
- var l = second.length,
- i = first.length,
- j = 0;
-
- while (j < l) {
- first[i++] = second[j++];
- }
-
- first.length = i;
-
- return first;
-};
-
-jBone.contains = function(container, contained) {
- var result;
-
- container.reverse().some(function(el) {
- if (el.contains(contained)) {
- return result = el;
- }
- });
-
- return result;
-};
-
-jBone.extend = function(target) {
- var k, kl, i, tg;
-
- splice.call(arguments, 1).forEach(function(object) {
- if (!object) {
- return;
- }
-
- k = keys(object);
- kl = k.length;
- i = 0;
- tg = target; //caching target for perf improvement
-
- for (; i < kl; i++) {
- tg[k[i]] = object[k[i]];
- }
- });
-
- return target;
-};
-
-jBone.makeArray = function(arr, results) {
- var ret = results || [];
-
- if (arr !== null) {
- if (isArraylike(arr)) {
- jBone.merge(ret, isString(arr) ? [arr] : arr);
- } else {
- ret.push(arr);
- }
- }
-
- return ret;
-};
-
-function BoneEvent(e, data) {
- var key, setter;
-
- this.originalEvent = e;
-
- setter = function(key, e) {
- if (key === "preventDefault") {
- this[key] = function() {
- this.defaultPrevented = true;
- return e[key]();
- };
- } else if (isFunction(e[key])) {
- this[key] = function() {
- return e[key]();
- };
- } else {
- this[key] = e[key];
- }
- };
-
- for (key in e) {
- if (e[key] || typeof e[key] === "function") {
- setter.call(this, key, e);
- }
- }
-
- jBone.extend(this, data);
-}
-
-jBone.Event = function(event, data) {
- var namespace, eventType;
-
- if (event.type && !data) {
- data = event;
- event = event.type;
- }
-
- namespace = event.split(".").splice(1).join(".");
- eventType = event.split(".")[0];
-
- event = doc.createEvent("Event");
- event.initEvent(eventType, true, true);
-
- return jBone.extend(event, {
- namespace: namespace,
- isDefaultPrevented: function() {
- return event.defaultPrevented;
- }
- }, data);
-};
-
-fn.on = function(event) {
- var args = arguments,
- length = this.length,
- i = 0,
- callback, target, namespace, fn, events, eventType, expectedTarget, addListener;
-
- if (args.length === 2) {
- callback = args[1];
- } else {
- target = args[1];
- callback = args[2];
- }
-
- addListener = function(el) {
- jBone.setId(el);
- events = jBone.getData(el).events;
- event.split(" ").forEach(function(event) {
- eventType = event.split(".")[0];
- namespace = event.split(".").splice(1).join(".");
- events[eventType] = events[eventType] || [];
-
- fn = function(e) {
- if (e.namespace && e.namespace !== namespace) {
- return;
- }
-
- expectedTarget = null;
- if (!target) {
- callback.call(el, e);
- } else if (~jBone(el).find(target).indexOf(e.target) || (expectedTarget = jBone.contains(jBone(el).find(target), e.target))) {
- expectedTarget = expectedTarget || e.target;
- e = new BoneEvent(e, {
- currentTarget: expectedTarget
- });
-
- callback.call(expectedTarget, e);
- }
- };
-
- events[eventType].push({
- namespace: namespace,
- fn: fn,
- originfn: callback
- });
-
- el.addEventListener && el.addEventListener(eventType, fn, false);
- });
- };
-
- for (; i < length; i++) {
- addListener(this[i]);
- }
-
- return this;
-};
-
-fn.one = function(event) {
- var args = arguments,
- i = 0,
- length = this.length,
- callback, target, addListener;
-
- if (args.length === 2) {
- callback = args[1];
- } else {
- target = args[1], callback = args[2];
- }
-
- addListener = function(el) {
- event.split(" ").forEach(function(event) {
- var fn = function(e) {
- jBone(el).off(event, fn);
- callback.call(el, e);
- };
-
- if (!target) {
- jBone(el).on(event, fn);
- } else {
- jBone(el).on(event, target, fn);
- }
- });
- };
-
- for (; i < length; i++) {
- addListener(this[i]);
- }
-
- return this;
-};
-
-fn.trigger = function(event) {
- var events = [],
- i = 0,
- length = this.length,
- dispatchEvents;
-
- if (!event) {
- return this;
- }
-
- if (isString(event)) {
- events = event.split(" ").map(function(event) {
- return jBone.Event(event);
- });
- } else {
- event = event instanceof Event ? event : jBone.Event(event);
- events = [event];
- }
-
- dispatchEvents = function(el) {
- events.forEach(function(event) {
- if (!event.type) {
- return;
- }
-
- el.dispatchEvent && el.dispatchEvent(event);
- });
- };
-
- for (; i < length; i++) {
- dispatchEvents(this[i]);
- }
-
- return this;
-};
-
-fn.off = function(event, fn) {
- var i = 0,
- length = this.length,
- removeListener = function(events, eventType, index, el, e) {
- var callback;
-
- // get callback
- if ((fn && e.originfn === fn) || !fn) {
- callback = e.fn;
- }
-
- if (events[eventType][index].fn === callback) {
- el.removeEventListener(eventType, callback);
-
- // remove handler from cache
- jBone._cache.events[jBone.getData(el).jid][eventType].splice(index, 1);
- }
- },
- events, namespace, removeListeners, eventType;
-
- removeListeners = function(el) {
- var l, eventsByType, e;
-
- events = jBone.getData(el).events;
-
- if (!events) {
- return;
- }
-
- // remove all events
- if (!event && events) {
- return keys(events).forEach(function(eventType) {
- eventsByType = events[eventType];
- l = eventsByType.length;
-
- while(l--) {
- removeListener(events, eventType, l, el, eventsByType[l]);
- }
- });
- }
-
- event.split(" ").forEach(function(event) {
- eventType = event.split(".")[0];
- namespace = event.split(".").splice(1).join(".");
-
- // remove named events
- if (events[eventType]) {
- eventsByType = events[eventType];
- l = eventsByType.length;
-
- while(l--) {
- e = eventsByType[l];
- if (!namespace || (namespace && e.namespace === namespace)) {
- removeListener(events, eventType, l, el, e);
- }
- }
- }
- // remove all namespaced events
- else if (namespace) {
- keys(events).forEach(function(eventType) {
- eventsByType = events[eventType];
- l = eventsByType.length;
-
- while(l--) {
- e = eventsByType[l];
- if (e.namespace.split(".")[0] === namespace.split(".")[0]) {
- removeListener(events, eventType, l, el, e);
- }
- }
- });
- }
- });
- };
-
- for (; i < length; i++) {
- removeListeners(this[i]);
- }
-
- return this;
-};
-
-fn.find = function(selector) {
- var results = [],
- i = 0,
- length = this.length,
- finder = function(el) {
- if (isFunction(el.querySelectorAll)) {
- [].forEach.call(el.querySelectorAll(selector), function(found) {
- results.push(found);
- });
- }
- };
-
- for (; i < length; i++) {
- finder(this[i]);
- }
-
- return jBone(results);
-};
-
-fn.get = function(index) {
- return this[index];
-};
-
-fn.eq = function(index) {
- return jBone(this[index]);
-};
-
-fn.parent = function() {
- var results = [],
- parent,
- i = 0,
- length = this.length;
-
- for (; i < length; i++) {
- if (!~results.indexOf(parent = this[i].parentElement) && parent) {
- results.push(parent);
- }
- }
-
- return jBone(results);
-};
-
-fn.toArray = function() {
- return slice.call(this);
-};
-
-fn.is = function() {
- var args = arguments;
-
- return this.some(function(el) {
- return el.tagName.toLowerCase() === args[0];
- });
-};
-
-fn.has = function() {
- var args = arguments;
-
- return this.some(function(el) {
- return el.querySelectorAll(args[0]).length;
- });
-};
-
-fn.attr = function(key, value) {
- var args = arguments,
- i = 0,
- length = this.length,
- setter;
-
- if (isString(key) && args.length === 1) {
- return this[0] && this[0].getAttribute(key);
- }
-
- if (args.length === 2) {
- setter = function(el) {
- el.setAttribute(key, value);
- };
- } else if (isObject(key)) {
- setter = function(el) {
- keys(key).forEach(function(name) {
- el.setAttribute(name, key[name]);
- });
- };
- }
-
- for (; i < length; i++) {
- setter(this[i]);
- }
-
- return this;
-};
-
-fn.removeAttr = function(key) {
- var i = 0,
- length = this.length;
-
- for (; i < length; i++) {
- this[i].removeAttribute(key);
- }
-
- return this;
-};
-
-fn.val = function(value) {
- var i = 0,
- length = this.length;
-
- if (arguments.length === 0) {
- return this[0] && this[0].value;
- }
-
- for (; i < length; i++) {
- this[i].value = value;
- }
-
- return this;
-};
-
-fn.css = function(key, value) {
- var args = arguments,
- i = 0,
- length = this.length,
- setter;
-
- // Get attribute
- if (isString(key) && args.length === 1) {
- return this[0] && win.getComputedStyle(this[0])[key];
- }
-
- // Set attributes
- if (args.length === 2) {
- setter = function(el) {
- el.style[key] = value;
- };
- } else if (isObject(key)) {
- setter = function(el) {
- keys(key).forEach(function(name) {
- el.style[name] = key[name];
- });
- };
- }
-
- for (; i < length; i++) {
- setter(this[i]);
- }
-
- return this;
-};
-
-fn.data = function(key, value) {
- var args = arguments, data = {},
- i = 0,
- length = this.length,
- setter,
- setValue = function(el, key, value) {
- if (isObject(value)) {
- el.jdata = el.jdata || {};
- el.jdata[key] = value;
- } else {
- el.dataset[key] = value;
- }
- },
- getValue = function(value) {
- if (value === "true") {
- return true;
- } else if (value === "false") {
- return false;
- } else {
- return value;
- }
- };
-
- // Get all data
- if (args.length === 0) {
- this[0].jdata && (data = this[0].jdata);
-
- keys(this[0].dataset).forEach(function(key) {
- data[key] = getValue(this[0].dataset[key]);
- }, this);
-
- return data;
- }
- // Get data by name
- if (args.length === 1 && isString(key)) {
- return this[0] && getValue(this[0].dataset[key] || this[0].jdata && this[0].jdata[key]);
- }
-
- // Set data
- if (args.length === 1 && isObject(key)) {
- setter = function(el) {
- keys(key).forEach(function(name) {
- setValue(el, name, key[name]);
- });
- };
- } else if (args.length === 2) {
- setter = function(el) {
- setValue(el, key, value);
- };
- }
-
- for (; i < length; i++) {
- setter(this[i]);
- }
-
- return this;
-};
-
-fn.removeData = function(key) {
- var i = 0,
- length = this.length,
- jdata, dataset;
-
- for (; i < length; i++) {
- jdata = this[i].jdata;
- dataset = this[i].dataset;
-
- if (key) {
- jdata && jdata[key] && delete jdata[key];
- delete dataset[key];
- } else {
- for (key in jdata) {
- delete jdata[key];
- }
-
- for (key in dataset) {
- delete dataset[key];
- }
- }
- }
-
- return this;
-};
-
-fn.html = function(value) {
- var args = arguments,
- el;
-
- // add HTML into elements
- if (args.length === 1 && value !== undefined) {
- return this.empty().append(value);
- }
- // get HTML from element
- else if (args.length === 0 && (el = this[0])) {
- return el.innerHTML;
- }
-
- return this;
-};
-
-fn.append = function(appended) {
- var i = 0,
- length = this.length,
- setter;
-
- // create jBone object and then append
- if (isString(appended) && rquickExpr.exec(appended)) {
- appended = jBone(appended);
- }
- // create text node for inserting
- else if (!isObject(appended)) {
- appended = document.createTextNode(appended);
- }
-
- appended = appended instanceof jBone ? appended : jBone(appended);
-
- setter = function(el, i) {
- appended.forEach(function(node) {
- if (i) {
- el.appendChild(node.cloneNode());
- } else {
- el.appendChild(node);
- }
- });
- };
-
- for (; i < length; i++) {
- setter(this[i], i);
- }
-
- return this;
-};
-
-fn.appendTo = function(to) {
- jBone(to).append(this);
-
- return this;
-};
-
-fn.empty = function() {
- var i = 0,
- length = this.length,
- el;
-
- for (; i < length; i++) {
- el = this[i];
-
- while (el.lastChild) {
- el.removeChild(el.lastChild);
- }
- }
-
- return this;
-};
-
-fn.remove = function() {
- var i = 0,
- length = this.length,
- el;
-
- // remove all listners
- this.off();
-
- for (; i < length; i++) {
- el = this[i];
-
- // remove data and nodes
- delete el.jdata;
- el.parentNode && el.parentNode.removeChild(el);
- }
-
- return this;
-};
-
-if (typeof module === "object" && module && typeof module.exports === "object") {
- // Expose jBone as module.exports in loaders that implement the Node
- // module pattern (including browserify). Do not create the global, since
- // the user will be storing it themselves locally, and globals are frowned
- // upon in the Node module world.
- module.exports = jBone;
-}
-// Register as a AMD module
-else if (typeof define === "function" && define.amd) {
- define(function() {
- return jBone;
- });
-
- win.jBone = win.$ = jBone;
-} else if (typeof win === "object" && typeof win.document === "object") {
- win.jBone = win.$ = jBone;
-}
-
-}(window));
-
-},{}],51:[function(require,module,exports){
-var Mouse;
-
-module.exports = Mouse = {
- rel: function(e) {
- var mouseX, mouseY, rect, target;
- mouseX = e.offsetX;
- mouseY = e.offsetY;
- if (mouseX == null) {
- rect = target.getBoundingClientRect();
- target = e.target || e.srcElement;
- if (mouseX == null) {
- mouseX = e.clientX - rect.left;
- mouseY = e.clientY - rect.top;
- }
- if (mouseX == null) {
- mouseX = e.pageX - target.offsetLeft;
- mouseY = e.pageY - target.offsetTop;
- }
- if (mouseX == null) {
- console.log(e, "no mouse event defined. your browser sucks");
- return;
- }
- }
- return [mouseX, mouseY];
- },
- abs: function(e) {
- var mouseX, mouseY;
- mouseX = e.pageX;
- mouseY = e.pageY;
- if (mouseX == null) {
- mouseX = e.layerX;
- mouseY = e.layerY;
- }
- if (mouseX == null) {
- mouseX = e.clientX;
- mouseY = e.clientY;
- }
- if (mouseX == null) {
- mouseX = e.x;
- mouseY = e.y;
- }
- return [mouseX, mouseY];
- },
- wheelDelta: function(e) {
- var delta, dir;
- delta = [e.deltaX, e.deltaY];
- if (delta[0] == null) {
- dir = Math.floor(e.detail / 3);
- delta = [0, e.mozMovementX * dir];
- }
- return delta;
- }
-};
-
-},{}],52:[function(require,module,exports){
-var window = require("global/window")
-var once = require("once")
-var parseHeaders = require('parse-headers')
-
-var messages = {
- "0": "Internal XMLHttpRequest Error",
- "4": "4xx Client Error",
- "5": "5xx Server Error"
-}
-
-var XHR = window.XMLHttpRequest || noop
-var XDR = "withCredentials" in (new XHR()) ? XHR : window.XDomainRequest
-
-module.exports = createXHR
-
-function createXHR(options, callback) {
- if (typeof options === "string") {
- options = { uri: options }
- }
-
- options = options || {}
- callback = once(callback)
-
- var xhr = options.xhr || null
-
- if (!xhr) {
- if (options.cors || options.useXDR) {
- xhr = new XDR()
- }else{
- xhr = new XHR()
- }
- }
-
- var uri = xhr.url = options.uri || options.url
- var method = xhr.method = options.method || "GET"
- var body = options.body || options.data
- var headers = xhr.headers = options.headers || {}
- var sync = !!options.sync
- var isJson = false
- var key
- var load = options.response ? loadResponse : loadXhr
-
- if ("json" in options) {
- isJson = true
- headers["Accept"] = "application/json"
- if (method !== "GET" && method !== "HEAD") {
- headers["Content-Type"] = "application/json"
- body = JSON.stringify(options.json)
- }
- }
-
- xhr.onreadystatechange = readystatechange
- xhr.onload = load
- xhr.onerror = error
- // IE9 must have onprogress be set to a unique function.
- xhr.onprogress = function () {
- // IE must die
- }
- // hate IE
- xhr.ontimeout = noop
- xhr.open(method, uri, !sync)
- //backward compatibility
- if (options.withCredentials || (options.cors && options.withCredentials !== false)) {
- xhr.withCredentials = true
- }
-
- // Cannot set timeout with sync request
- if (!sync) {
- xhr.timeout = "timeout" in options ? options.timeout : 5000
- }
-
- if (xhr.setRequestHeader) {
- for(key in headers){
- if(headers.hasOwnProperty(key)){
- xhr.setRequestHeader(key, headers[key])
- }
- }
- } else if (options.headers) {
- throw new Error("Headers cannot be set on an XDomainRequest object")
- }
-
- if ("responseType" in options) {
- xhr.responseType = options.responseType
- }
-
- if ("beforeSend" in options &&
- typeof options.beforeSend === "function"
- ) {
- options.beforeSend(xhr)
- }
-
- xhr.send(body)
-
- return xhr
-
- function readystatechange() {
- if (xhr.readyState === 4) {
- load()
- }
- }
-
- function getBody() {
- // Chrome with requestType=blob throws errors arround when even testing access to responseText
- var body = null
-
- if (xhr.response) {
- body = xhr.response
- } else if (xhr.responseType === 'text' || !xhr.responseType) {
- body = xhr.responseText || xhr.responseXML
- }
-
- if (isJson) {
- try {
- body = JSON.parse(body)
- } catch (e) {}
- }
-
- return body
- }
-
- function getStatusCode() {
- return xhr.status === 1223 ? 204 : xhr.status
- }
-
- // if we're getting a none-ok statusCode, build & return an error
- function errorFromStatusCode(status) {
- var error = null
- if (status === 0 || (status >= 400 && status < 600)) {
- var message = (typeof body === "string" ? body : false) ||
- messages[String(status).charAt(0)]
- error = new Error(message)
- error.statusCode = status
- }
-
- return error
- }
-
- // will load the data & process the response in a special response object
- function loadResponse() {
- var status = getStatusCode()
- var error = errorFromStatusCode(status)
- var response = {
- body: getBody(),
- statusCode: status,
- statusText: xhr.statusText,
- raw: xhr
- }
- if(xhr.getAllResponseHeaders){ //remember xhr can in fact be XDR for CORS in IE
- response.headers = parseHeaders(xhr.getAllResponseHeaders())
- } else {
- response.headers = {}
- }
-
- callback(error, response, response.body)
- }
-
- // will load the data and add some response properties to the source xhr
- // and then respond with that
- function loadXhr() {
- var status = getStatusCode()
- var error = errorFromStatusCode(status)
-
- xhr.status = xhr.statusCode = status
- xhr.body = getBody()
- xhr.headers = parseHeaders(xhr.getAllResponseHeaders())
-
- callback(error, xhr, xhr.body)
- }
-
- function error(evt) {
- callback(evt, xhr)
- }
-}
-
-
-function noop() {}
-
-},{"global/window":53,"once":54,"parse-headers":58}],53:[function(require,module,exports){
-(function (global){
-if (typeof window !== "undefined") {
- module.exports = window;
-} else if (typeof global !== "undefined") {
- module.exports = global;
-} else if (typeof self !== "undefined"){
- module.exports = self;
-} else {
- module.exports = {};
-}
-
-}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
-},{}],54:[function(require,module,exports){
-module.exports = once
-
-once.proto = once(function () {
- Object.defineProperty(Function.prototype, 'once', {
- value: function () {
- return once(this)
- },
- configurable: true
- })
-})
-
-function once (fn) {
- var called = false
- return function () {
- if (called) return
- called = true
- return fn.apply(this, arguments)
- }
-}
-
-},{}],55:[function(require,module,exports){
-var isFunction = require('is-function')
-
-module.exports = forEach
-
-var toString = Object.prototype.toString
-var hasOwnProperty = Object.prototype.hasOwnProperty
-
-function forEach(list, iterator, context) {
- if (!isFunction(iterator)) {
- throw new TypeError('iterator must be a function')
- }
-
- if (arguments.length < 3) {
- context = this
- }
-
- if (toString.call(list) === '[object Array]')
- forEachArray(list, iterator, context)
- else if (typeof list === 'string')
- forEachString(list, iterator, context)
- else
- forEachObject(list, iterator, context)
-}
-
-function forEachArray(array, iterator, context) {
- for (var i = 0, len = array.length; i < len; i++) {
- if (hasOwnProperty.call(array, i)) {
- iterator.call(context, array[i], i, array)
- }
- }
-}
-
-function forEachString(string, iterator, context) {
- for (var i = 0, len = string.length; i < len; i++) {
- // no such thing as a sparse string.
- iterator.call(context, string.charAt(i), i, string)
- }
-}
-
-function forEachObject(object, iterator, context) {
- for (var k in object) {
- if (hasOwnProperty.call(object, k)) {
- iterator.call(context, object[k], k, object)
- }
- }
-}
-
-},{"is-function":56}],56:[function(require,module,exports){
-module.exports = isFunction
-
-var toString = Object.prototype.toString
-
-function isFunction (fn) {
- var string = toString.call(fn)
- return string === '[object Function]' ||
- (typeof fn === 'function' && string !== '[object RegExp]') ||
- (typeof window !== 'undefined' &&
- // IE8 and below
- (fn === window.setTimeout ||
- fn === window.alert ||
- fn === window.confirm ||
- fn === window.prompt))
-};
-
-},{}],57:[function(require,module,exports){
-
-exports = module.exports = trim;
-
-function trim(str){
- return str.replace(/^\s*|\s*$/g, '');
-}
-
-exports.left = function(str){
- return str.replace(/^\s*/, '');
-};
-
-exports.right = function(str){
- return str.replace(/\s*$/, '');
-};
-
-},{}],58:[function(require,module,exports){
-var trim = require('trim')
- , forEach = require('for-each')
- , isArray = function(arg) {
- return Object.prototype.toString.call(arg) === '[object Array]';
- }
-
-module.exports = function (headers) {
- if (!headers)
- return {}
-
- var result = {}
-
- forEach(
- trim(headers).split('\n')
- , function (row) {
- var index = row.indexOf(':')
- , key = trim(row.slice(0, index)).toLowerCase()
- , value = trim(row.slice(index + 1))
-
- if (typeof(result[key]) === 'undefined') {
- result[key] = value
- } else if (isArray(result[key])) {
- result[key].push(value)
- } else {
- result[key] = [ result[key], value ]
- }
- }
- )
-
- return result
-}
-},{"for-each":55,"trim":57}],59:[function(require,module,exports){
-// Underscore.js 1.7.0
-// http://underscorejs.org
-// (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
-// Underscore may be freely distributed under the MIT license.
-
-(function() {
-
- // Baseline setup
- // --------------
-
- // Establish the root object, `window` in the browser, or `exports` on the server.
- var root = this;
-
- // Save the previous value of the `_` variable.
- var previousUnderscore = root._;
-
- // Save bytes in the minified (but not gzipped) version:
- var ArrayProto = Array.prototype, ObjProto = Object.prototype, FuncProto = Function.prototype;
-
- // Create quick reference variables for speed access to core prototypes.
- var
- push = ArrayProto.push,
- slice = ArrayProto.slice,
- concat = ArrayProto.concat,
- toString = ObjProto.toString,
- hasOwnProperty = ObjProto.hasOwnProperty;
-
- // All **ECMAScript 5** native function implementations that we hope to use
- // are declared here.
- var
- nativeIsArray = Array.isArray,
- nativeKeys = Object.keys,
- nativeBind = FuncProto.bind;
-
- // Create a safe reference to the Underscore object for use below.
- var _ = function(obj) {
- if (obj instanceof _) return obj;
- if (!(this instanceof _)) return new _(obj);
- this._wrapped = obj;
- };
-
- // Export the Underscore object for **Node.js**, with
- // backwards-compatibility for the old `require()` API. If we're in
- // the browser, add `_` as a global object.
- if (typeof exports !== 'undefined') {
- if (typeof module !== 'undefined' && module.exports) {
- exports = module.exports = _;
- }
- exports._ = _;
- } else {
- root._ = _;
- }
-
- // Current version.
- _.VERSION = '1.7.0';
-
- // Internal function that returns an efficient (for current engines) version
- // of the passed-in callback, to be repeatedly applied in other Underscore
- // functions.
- var createCallback = function(func, context, argCount) {
- if (context === void 0) return func;
- switch (argCount == null ? 3 : argCount) {
- case 1: return function(value) {
- return func.call(context, value);
- };
- case 2: return function(value, other) {
- return func.call(context, value, other);
- };
- case 3: return function(value, index, collection) {
- return func.call(context, value, index, collection);
- };
- case 4: return function(accumulator, value, index, collection) {
- return func.call(context, accumulator, value, index, collection);
- };
- }
- return function() {
- return func.apply(context, arguments);
- };
- };
-
- // A mostly-internal function to generate callbacks that can be applied
- // to each element in a collection, returning the desired result — either
- // identity, an arbitrary callback, a property matcher, or a property accessor.
- _.iteratee = function(value, context, argCount) {
- if (value == null) return _.identity;
- if (_.isFunction(value)) return createCallback(value, context, argCount);
- if (_.isObject(value)) return _.matches(value);
- return _.property(value);
- };
-
- // Collection Functions
- // --------------------
-
- // The cornerstone, an `each` implementation, aka `forEach`.
- // Handles raw objects in addition to array-likes. Treats all
- // sparse array-likes as if they were dense.
- _.each = _.forEach = function(obj, iteratee, context) {
- if (obj == null) return obj;
- iteratee = createCallback(iteratee, context);
- var i, length = obj.length;
- if (length === +length) {
- for (i = 0; i < length; i++) {
- iteratee(obj[i], i, obj);
- }
- } else {
- var keys = _.keys(obj);
- for (i = 0, length = keys.length; i < length; i++) {
- iteratee(obj[keys[i]], keys[i], obj);
- }
- }
- return obj;
- };
-
- // Return the results of applying the iteratee to each element.
- _.map = _.collect = function(obj, iteratee, context) {
- if (obj == null) return [];
- iteratee = _.iteratee(iteratee, context);
- var keys = obj.length !== +obj.length && _.keys(obj),
- length = (keys || obj).length,
- results = Array(length),
- currentKey;
- for (var index = 0; index < length; index++) {
- currentKey = keys ? keys[index] : index;
- results[index] = iteratee(obj[currentKey], currentKey, obj);
- }
- return results;
- };
-
- var reduceError = 'Reduce of empty array with no initial value';
-
- // **Reduce** builds up a single result from a list of values, aka `inject`,
- // or `foldl`.
- _.reduce = _.foldl = _.inject = function(obj, iteratee, memo, context) {
- if (obj == null) obj = [];
- iteratee = createCallback(iteratee, context, 4);
- var keys = obj.length !== +obj.length && _.keys(obj),
- length = (keys || obj).length,
- index = 0, currentKey;
- if (arguments.length < 3) {
- if (!length) throw new TypeError(reduceError);
- memo = obj[keys ? keys[index++] : index++];
- }
- for (; index < length; index++) {
- currentKey = keys ? keys[index] : index;
- memo = iteratee(memo, obj[currentKey], currentKey, obj);
- }
- return memo;
- };
-
- // The right-associative version of reduce, also known as `foldr`.
- _.reduceRight = _.foldr = function(obj, iteratee, memo, context) {
- if (obj == null) obj = [];
- iteratee = createCallback(iteratee, context, 4);
- var keys = obj.length !== + obj.length && _.keys(obj),
- index = (keys || obj).length,
- currentKey;
- if (arguments.length < 3) {
- if (!index) throw new TypeError(reduceError);
- memo = obj[keys ? keys[--index] : --index];
- }
- while (index--) {
- currentKey = keys ? keys[index] : index;
- memo = iteratee(memo, obj[currentKey], currentKey, obj);
- }
- return memo;
- };
-
- // Return the first value which passes a truth test. Aliased as `detect`.
- _.find = _.detect = function(obj, predicate, context) {
- var result;
- predicate = _.iteratee(predicate, context);
- _.some(obj, function(value, index, list) {
- if (predicate(value, index, list)) {
- result = value;
- return true;
- }
- });
- return result;
- };
-
- // Return all the elements that pass a truth test.
- // Aliased as `select`.
- _.filter = _.select = function(obj, predicate, context) {
- var results = [];
- if (obj == null) return results;
- predicate = _.iteratee(predicate, context);
- _.each(obj, function(value, index, list) {
- if (predicate(value, index, list)) results.push(value);
- });
- return results;
- };
-
- // Return all the elements for which a truth test fails.
- _.reject = function(obj, predicate, context) {
- return _.filter(obj, _.negate(_.iteratee(predicate)), context);
- };
-
- // Determine whether all of the elements match a truth test.
- // Aliased as `all`.
- _.every = _.all = function(obj, predicate, context) {
- if (obj == null) return true;
- predicate = _.iteratee(predicate, context);
- var keys = obj.length !== +obj.length && _.keys(obj),
- length = (keys || obj).length,
- index, currentKey;
- for (index = 0; index < length; index++) {
- currentKey = keys ? keys[index] : index;
- if (!predicate(obj[currentKey], currentKey, obj)) return false;
- }
- return true;
- };
-
- // Determine if at least one element in the object matches a truth test.
- // Aliased as `any`.
- _.some = _.any = function(obj, predicate, context) {
- if (obj == null) return false;
- predicate = _.iteratee(predicate, context);
- var keys = obj.length !== +obj.length && _.keys(obj),
- length = (keys || obj).length,
- index, currentKey;
- for (index = 0; index < length; index++) {
- currentKey = keys ? keys[index] : index;
- if (predicate(obj[currentKey], currentKey, obj)) return true;
- }
- return false;
- };
-
- // Determine if the array or object contains a given value (using `===`).
- // Aliased as `include`.
- _.contains = _.include = function(obj, target) {
- if (obj == null) return false;
- if (obj.length !== +obj.length) obj = _.values(obj);
- return _.indexOf(obj, target) >= 0;
- };
-
- // Invoke a method (with arguments) on every item in a collection.
- _.invoke = function(obj, method) {
- var args = slice.call(arguments, 2);
- var isFunc = _.isFunction(method);
- return _.map(obj, function(value) {
- return (isFunc ? method : value[method]).apply(value, args);
- });
- };
-
- // Convenience version of a common use case of `map`: fetching a property.
- _.pluck = function(obj, key) {
- return _.map(obj, _.property(key));
- };
-
- // Convenience version of a common use case of `filter`: selecting only objects
- // containing specific `key:value` pairs.
- _.where = function(obj, attrs) {
- return _.filter(obj, _.matches(attrs));
- };
-
- // Convenience version of a common use case of `find`: getting the first object
- // containing specific `key:value` pairs.
- _.findWhere = function(obj, attrs) {
- return _.find(obj, _.matches(attrs));
- };
-
- // Return the maximum element (or element-based computation).
- _.max = function(obj, iteratee, context) {
- var result = -Infinity, lastComputed = -Infinity,
- value, computed;
- if (iteratee == null && obj != null) {
- obj = obj.length === +obj.length ? obj : _.values(obj);
- for (var i = 0, length = obj.length; i < length; i++) {
- value = obj[i];
- if (value > result) {
- result = value;
- }
- }
- } else {
- iteratee = _.iteratee(iteratee, context);
- _.each(obj, function(value, index, list) {
- computed = iteratee(value, index, list);
- if (computed > lastComputed || computed === -Infinity && result === -Infinity) {
- result = value;
- lastComputed = computed;
- }
- });
- }
- return result;
- };
-
- // Return the minimum element (or element-based computation).
- _.min = function(obj, iteratee, context) {
- var result = Infinity, lastComputed = Infinity,
- value, computed;
- if (iteratee == null && obj != null) {
- obj = obj.length === +obj.length ? obj : _.values(obj);
- for (var i = 0, length = obj.length; i < length; i++) {
- value = obj[i];
- if (value < result) {
- result = value;
- }
- }
- } else {
- iteratee = _.iteratee(iteratee, context);
- _.each(obj, function(value, index, list) {
- computed = iteratee(value, index, list);
- if (computed < lastComputed || computed === Infinity && result === Infinity) {
- result = value;
- lastComputed = computed;
- }
- });
- }
- return result;
- };
-
- // Shuffle a collection, using the modern version of the
- // [Fisher-Yates shuffle](http://en.wikipedia.org/wiki/Fisher–Yates_shuffle).
- _.shuffle = function(obj) {
- var set = obj && obj.length === +obj.length ? obj : _.values(obj);
- var length = set.length;
- var shuffled = Array(length);
- for (var index = 0, rand; index < length; index++) {
- rand = _.random(0, index);
- if (rand !== index) shuffled[index] = shuffled[rand];
- shuffled[rand] = set[index];
- }
- return shuffled;
- };
-
- // Sample **n** random values from a collection.
- // If **n** is not specified, returns a single random element.
- // The internal `guard` argument allows it to work with `map`.
- _.sample = function(obj, n, guard) {
- if (n == null || guard) {
- if (obj.length !== +obj.length) obj = _.values(obj);
- return obj[_.random(obj.length - 1)];
- }
- return _.shuffle(obj).slice(0, Math.max(0, n));
- };
-
- // Sort the object's values by a criterion produced by an iteratee.
- _.sortBy = function(obj, iteratee, context) {
- iteratee = _.iteratee(iteratee, context);
- return _.pluck(_.map(obj, function(value, index, list) {
- return {
- value: value,
- index: index,
- criteria: iteratee(value, index, list)
- };
- }).sort(function(left, right) {
- var a = left.criteria;
- var b = right.criteria;
- if (a !== b) {
- if (a > b || a === void 0) return 1;
- if (a < b || b === void 0) return -1;
- }
- return left.index - right.index;
- }), 'value');
- };
-
- // An internal function used for aggregate "group by" operations.
- var group = function(behavior) {
- return function(obj, iteratee, context) {
- var result = {};
- iteratee = _.iteratee(iteratee, context);
- _.each(obj, function(value, index) {
- var key = iteratee(value, index, obj);
- behavior(result, value, key);
- });
- return result;
- };
- };
-
- // Groups the object's values by a criterion. Pass either a string attribute
- // to group by, or a function that returns the criterion.
- _.groupBy = group(function(result, value, key) {
- if (_.has(result, key)) result[key].push(value); else result[key] = [value];
- });
-
- // Indexes the object's values by a criterion, similar to `groupBy`, but for
- // when you know that your index values will be unique.
- _.indexBy = group(function(result, value, key) {
- result[key] = value;
- });
-
- // Counts instances of an object that group by a certain criterion. Pass
- // either a string attribute to count by, or a function that returns the
- // criterion.
- _.countBy = group(function(result, value, key) {
- if (_.has(result, key)) result[key]++; else result[key] = 1;
- });
-
- // Use a comparator function to figure out the smallest index at which
- // an object should be inserted so as to maintain order. Uses binary search.
- _.sortedIndex = function(array, obj, iteratee, context) {
- iteratee = _.iteratee(iteratee, context, 1);
- var value = iteratee(obj);
- var low = 0, high = array.length;
- while (low < high) {
- var mid = low + high >>> 1;
- if (iteratee(array[mid]) < value) low = mid + 1; else high = mid;
- }
- return low;
- };
-
- // Safely create a real, live array from anything iterable.
- _.toArray = function(obj) {
- if (!obj) return [];
- if (_.isArray(obj)) return slice.call(obj);
- if (obj.length === +obj.length) return _.map(obj, _.identity);
- return _.values(obj);
- };
-
- // Return the number of elements in an object.
- _.size = function(obj) {
- if (obj == null) return 0;
- return obj.length === +obj.length ? obj.length : _.keys(obj).length;
- };
-
- // Split a collection into two arrays: one whose elements all satisfy the given
- // predicate, and one whose elements all do not satisfy the predicate.
- _.partition = function(obj, predicate, context) {
- predicate = _.iteratee(predicate, context);
- var pass = [], fail = [];
- _.each(obj, function(value, key, obj) {
- (predicate(value, key, obj) ? pass : fail).push(value);
- });
- return [pass, fail];
- };
-
- // Array Functions
- // ---------------
-
- // Get the first element of an array. Passing **n** will return the first N
- // values in the array. Aliased as `head` and `take`. The **guard** check
- // allows it to work with `_.map`.
- _.first = _.head = _.take = function(array, n, guard) {
- if (array == null) return void 0;
- if (n == null || guard) return array[0];
- if (n < 0) return [];
- return slice.call(array, 0, n);
- };
-
- // Returns everything but the last entry of the array. Especially useful on
- // the arguments object. Passing **n** will return all the values in
- // the array, excluding the last N. The **guard** check allows it to work with
- // `_.map`.
- _.initial = function(array, n, guard) {
- return slice.call(array, 0, Math.max(0, array.length - (n == null || guard ? 1 : n)));
- };
-
- // Get the last element of an array. Passing **n** will return the last N
- // values in the array. The **guard** check allows it to work with `_.map`.
- _.last = function(array, n, guard) {
- if (array == null) return void 0;
- if (n == null || guard) return array[array.length - 1];
- return slice.call(array, Math.max(array.length - n, 0));
- };
-
- // Returns everything but the first entry of the array. Aliased as `tail` and `drop`.
- // Especially useful on the arguments object. Passing an **n** will return
- // the rest N values in the array. The **guard**
- // check allows it to work with `_.map`.
- _.rest = _.tail = _.drop = function(array, n, guard) {
- return slice.call(array, n == null || guard ? 1 : n);
- };
-
- // Trim out all falsy values from an array.
- _.compact = function(array) {
- return _.filter(array, _.identity);
- };
-
- // Internal implementation of a recursive `flatten` function.
- var flatten = function(input, shallow, strict, output) {
- if (shallow && _.every(input, _.isArray)) {
- return concat.apply(output, input);
- }
- for (var i = 0, length = input.length; i < length; i++) {
- var value = input[i];
- if (!_.isArray(value) && !_.isArguments(value)) {
- if (!strict) output.push(value);
- } else if (shallow) {
- push.apply(output, value);
- } else {
- flatten(value, shallow, strict, output);
- }
- }
- return output;
- };
-
- // Flatten out an array, either recursively (by default), or just one level.
- _.flatten = function(array, shallow) {
- return flatten(array, shallow, false, []);
- };
-
- // Return a version of the array that does not contain the specified value(s).
- _.without = function(array) {
- return _.difference(array, slice.call(arguments, 1));
- };
-
- // Produce a duplicate-free version of the array. If the array has already
- // been sorted, you have the option of using a faster algorithm.
- // Aliased as `unique`.
- _.uniq = _.unique = function(array, isSorted, iteratee, context) {
- if (array == null) return [];
- if (!_.isBoolean(isSorted)) {
- context = iteratee;
- iteratee = isSorted;
- isSorted = false;
- }
- if (iteratee != null) iteratee = _.iteratee(iteratee, context);
- var result = [];
- var seen = [];
- for (var i = 0, length = array.length; i < length; i++) {
- var value = array[i];
- if (isSorted) {
- if (!i || seen !== value) result.push(value);
- seen = value;
- } else if (iteratee) {
- var computed = iteratee(value, i, array);
- if (_.indexOf(seen, computed) < 0) {
- seen.push(computed);
- result.push(value);
- }
- } else if (_.indexOf(result, value) < 0) {
- result.push(value);
- }
- }
- return result;
- };
-
- // Produce an array that contains the union: each distinct element from all of
- // the passed-in arrays.
- _.union = function() {
- return _.uniq(flatten(arguments, true, true, []));
- };
-
- // Produce an array that contains every item shared between all the
- // passed-in arrays.
- _.intersection = function(array) {
- if (array == null) return [];
- var result = [];
- var argsLength = arguments.length;
- for (var i = 0, length = array.length; i < length; i++) {
- var item = array[i];
- if (_.contains(result, item)) continue;
- for (var j = 1; j < argsLength; j++) {
- if (!_.contains(arguments[j], item)) break;
- }
- if (j === argsLength) result.push(item);
- }
- return result;
- };
-
- // Take the difference between one array and a number of other arrays.
- // Only the elements present in just the first array will remain.
- _.difference = function(array) {
- var rest = flatten(slice.call(arguments, 1), true, true, []);
- return _.filter(array, function(value){
- return !_.contains(rest, value);
- });
- };
-
- // Zip together multiple lists into a single array -- elements that share
- // an index go together.
- _.zip = function(array) {
- if (array == null) return [];
- var length = _.max(arguments, 'length').length;
- var results = Array(length);
- for (var i = 0; i < length; i++) {
- results[i] = _.pluck(arguments, i);
- }
- return results;
- };
-
- // Converts lists into objects. Pass either a single array of `[key, value]`
- // pairs, or two parallel arrays of the same length -- one of keys, and one of
- // the corresponding values.
- _.object = function(list, values) {
- if (list == null) return {};
- var result = {};
- for (var i = 0, length = list.length; i < length; i++) {
- if (values) {
- result[list[i]] = values[i];
- } else {
- result[list[i][0]] = list[i][1];
- }
- }
- return result;
- };
-
- // Return the position of the first occurrence of an item in an array,
- // or -1 if the item is not included in the array.
- // If the array is large and already in sort order, pass `true`
- // for **isSorted** to use binary search.
- _.indexOf = function(array, item, isSorted) {
- if (array == null) return -1;
- var i = 0, length = array.length;
- if (isSorted) {
- if (typeof isSorted == 'number') {
- i = isSorted < 0 ? Math.max(0, length + isSorted) : isSorted;
- } else {
- i = _.sortedIndex(array, item);
- return array[i] === item ? i : -1;
- }
- }
- for (; i < length; i++) if (array[i] === item) return i;
- return -1;
- };
-
- _.lastIndexOf = function(array, item, from) {
- if (array == null) return -1;
- var idx = array.length;
- if (typeof from == 'number') {
- idx = from < 0 ? idx + from + 1 : Math.min(idx, from + 1);
- }
- while (--idx >= 0) if (array[idx] === item) return idx;
- return -1;
- };
-
- // Generate an integer Array containing an arithmetic progression. A port of
- // the native Python `range()` function. See
- // [the Python documentation](http://docs.python.org/library/functions.html#range).
- _.range = function(start, stop, step) {
- if (arguments.length <= 1) {
- stop = start || 0;
- start = 0;
- }
- step = step || 1;
-
- var length = Math.max(Math.ceil((stop - start) / step), 0);
- var range = Array(length);
-
- for (var idx = 0; idx < length; idx++, start += step) {
- range[idx] = start;
- }
-
- return range;
- };
-
- // Function (ahem) Functions
- // ------------------
-
- // Reusable constructor function for prototype setting.
- var Ctor = function(){};
-
- // Create a function bound to a given object (assigning `this`, and arguments,
- // optionally). Delegates to **ECMAScript 5**'s native `Function.bind` if
- // available.
- _.bind = function(func, context) {
- var args, bound;
- if (nativeBind && func.bind === nativeBind) return nativeBind.apply(func, slice.call(arguments, 1));
- if (!_.isFunction(func)) throw new TypeError('Bind must be called on a function');
- args = slice.call(arguments, 2);
- bound = function() {
- if (!(this instanceof bound)) return func.apply(context, args.concat(slice.call(arguments)));
- Ctor.prototype = func.prototype;
- var self = new Ctor;
- Ctor.prototype = null;
- var result = func.apply(self, args.concat(slice.call(arguments)));
- if (_.isObject(result)) return result;
- return self;
- };
- return bound;
- };
-
- // Partially apply a function by creating a version that has had some of its
- // arguments pre-filled, without changing its dynamic `this` context. _ acts
- // as a placeholder, allowing any combination of arguments to be pre-filled.
- _.partial = function(func) {
- var boundArgs = slice.call(arguments, 1);
- return function() {
- var position = 0;
- var args = boundArgs.slice();
- for (var i = 0, length = args.length; i < length; i++) {
- if (args[i] === _) args[i] = arguments[position++];
- }
- while (position < arguments.length) args.push(arguments[position++]);
- return func.apply(this, args);
- };
- };
-
- // Bind a number of an object's methods to that object. Remaining arguments
- // are the method names to be bound. Useful for ensuring that all callbacks
- // defined on an object belong to it.
- _.bindAll = function(obj) {
- var i, length = arguments.length, key;
- if (length <= 1) throw new Error('bindAll must be passed function names');
- for (i = 1; i < length; i++) {
- key = arguments[i];
- obj[key] = _.bind(obj[key], obj);
- }
- return obj;
- };
-
- // Memoize an expensive function by storing its results.
- _.memoize = function(func, hasher) {
- var memoize = function(key) {
- var cache = memoize.cache;
- var address = hasher ? hasher.apply(this, arguments) : key;
- if (!_.has(cache, address)) cache[address] = func.apply(this, arguments);
- return cache[address];
- };
- memoize.cache = {};
- return memoize;
- };
-
- // Delays a function for the given number of milliseconds, and then calls
- // it with the arguments supplied.
- _.delay = function(func, wait) {
- var args = slice.call(arguments, 2);
- return setTimeout(function(){
- return func.apply(null, args);
- }, wait);
- };
-
- // Defers a function, scheduling it to run after the current call stack has
- // cleared.
- _.defer = function(func) {
- return _.delay.apply(_, [func, 1].concat(slice.call(arguments, 1)));
- };
-
- // Returns a function, that, when invoked, will only be triggered at most once
- // during a given window of time. Normally, the throttled function will run
- // as much as it can, without ever going more than once per `wait` duration;
- // but if you'd like to disable the execution on the leading edge, pass
- // `{leading: false}`. To disable execution on the trailing edge, ditto.
- _.throttle = function(func, wait, options) {
- var context, args, result;
- var timeout = null;
- var previous = 0;
- if (!options) options = {};
- var later = function() {
- previous = options.leading === false ? 0 : _.now();
- timeout = null;
- result = func.apply(context, args);
- if (!timeout) context = args = null;
- };
- return function() {
- var now = _.now();
- if (!previous && options.leading === false) previous = now;
- var remaining = wait - (now - previous);
- context = this;
- args = arguments;
- if (remaining <= 0 || remaining > wait) {
- clearTimeout(timeout);
- timeout = null;
- previous = now;
- result = func.apply(context, args);
- if (!timeout) context = args = null;
- } else if (!timeout && options.trailing !== false) {
- timeout = setTimeout(later, remaining);
- }
- return result;
- };
- };
-
- // Returns a function, that, as long as it continues to be invoked, will not
- // be triggered. The function will be called after it stops being called for
- // N milliseconds. If `immediate` is passed, trigger the function on the
- // leading edge, instead of the trailing.
- _.debounce = function(func, wait, immediate) {
- var timeout, args, context, timestamp, result;
-
- var later = function() {
- var last = _.now() - timestamp;
-
- if (last < wait && last > 0) {
- timeout = setTimeout(later, wait - last);
- } else {
- timeout = null;
- if (!immediate) {
- result = func.apply(context, args);
- if (!timeout) context = args = null;
- }
- }
- };
-
- return function() {
- context = this;
- args = arguments;
- timestamp = _.now();
- var callNow = immediate && !timeout;
- if (!timeout) timeout = setTimeout(later, wait);
- if (callNow) {
- result = func.apply(context, args);
- context = args = null;
- }
-
- return result;
- };
- };
-
- // Returns the first function passed as an argument to the second,
- // allowing you to adjust arguments, run code before and after, and
- // conditionally execute the original function.
- _.wrap = function(func, wrapper) {
- return _.partial(wrapper, func);
- };
-
- // Returns a negated version of the passed-in predicate.
- _.negate = function(predicate) {
- return function() {
- return !predicate.apply(this, arguments);
- };
- };
-
- // Returns a function that is the composition of a list of functions, each
- // consuming the return value of the function that follows.
- _.compose = function() {
- var args = arguments;
- var start = args.length - 1;
- return function() {
- var i = start;
- var result = args[start].apply(this, arguments);
- while (i--) result = args[i].call(this, result);
- return result;
- };
- };
-
- // Returns a function that will only be executed after being called N times.
- _.after = function(times, func) {
- return function() {
- if (--times < 1) {
- return func.apply(this, arguments);
- }
- };
- };
-
- // Returns a function that will only be executed before being called N times.
- _.before = function(times, func) {
- var memo;
- return function() {
- if (--times > 0) {
- memo = func.apply(this, arguments);
- } else {
- func = null;
- }
- return memo;
- };
- };
-
- // Returns a function that will be executed at most one time, no matter how
- // often you call it. Useful for lazy initialization.
- _.once = _.partial(_.before, 2);
-
- // Object Functions
- // ----------------
-
- // Retrieve the names of an object's properties.
- // Delegates to **ECMAScript 5**'s native `Object.keys`
- _.keys = function(obj) {
- if (!_.isObject(obj)) return [];
- if (nativeKeys) return nativeKeys(obj);
- var keys = [];
- for (var key in obj) if (_.has(obj, key)) keys.push(key);
- return keys;
- };
-
- // Retrieve the values of an object's properties.
- _.values = function(obj) {
- var keys = _.keys(obj);
- var length = keys.length;
- var values = Array(length);
- for (var i = 0; i < length; i++) {
- values[i] = obj[keys[i]];
- }
- return values;
- };
-
- // Convert an object into a list of `[key, value]` pairs.
- _.pairs = function(obj) {
- var keys = _.keys(obj);
- var length = keys.length;
- var pairs = Array(length);
- for (var i = 0; i < length; i++) {
- pairs[i] = [keys[i], obj[keys[i]]];
- }
- return pairs;
- };
-
- // Invert the keys and values of an object. The values must be serializable.
- _.invert = function(obj) {
- var result = {};
- var keys = _.keys(obj);
- for (var i = 0, length = keys.length; i < length; i++) {
- result[obj[keys[i]]] = keys[i];
- }
- return result;
- };
-
- // Return a sorted list of the function names available on the object.
- // Aliased as `methods`
- _.functions = _.methods = function(obj) {
- var names = [];
- for (var key in obj) {
- if (_.isFunction(obj[key])) names.push(key);
- }
- return names.sort();
- };
-
- // Extend a given object with all the properties in passed-in object(s).
- _.extend = function(obj) {
- if (!_.isObject(obj)) return obj;
- var source, prop;
- for (var i = 1, length = arguments.length; i < length; i++) {
- source = arguments[i];
- for (prop in source) {
- if (hasOwnProperty.call(source, prop)) {
- obj[prop] = source[prop];
- }
- }
- }
- return obj;
- };
-
- // Return a copy of the object only containing the whitelisted properties.
- _.pick = function(obj, iteratee, context) {
- var result = {}, key;
- if (obj == null) return result;
- if (_.isFunction(iteratee)) {
- iteratee = createCallback(iteratee, context);
- for (key in obj) {
- var value = obj[key];
- if (iteratee(value, key, obj)) result[key] = value;
- }
- } else {
- var keys = concat.apply([], slice.call(arguments, 1));
- obj = new Object(obj);
- for (var i = 0, length = keys.length; i < length; i++) {
- key = keys[i];
- if (key in obj) result[key] = obj[key];
- }
- }
- return result;
- };
-
- // Return a copy of the object without the blacklisted properties.
- _.omit = function(obj, iteratee, context) {
- if (_.isFunction(iteratee)) {
- iteratee = _.negate(iteratee);
- } else {
- var keys = _.map(concat.apply([], slice.call(arguments, 1)), String);
- iteratee = function(value, key) {
- return !_.contains(keys, key);
- };
- }
- return _.pick(obj, iteratee, context);
- };
-
- // Fill in a given object with default properties.
- _.defaults = function(obj) {
- if (!_.isObject(obj)) return obj;
- for (var i = 1, length = arguments.length; i < length; i++) {
- var source = arguments[i];
- for (var prop in source) {
- if (obj[prop] === void 0) obj[prop] = source[prop];
- }
- }
- return obj;
- };
-
- // Create a (shallow-cloned) duplicate of an object.
- _.clone = function(obj) {
- if (!_.isObject(obj)) return obj;
- return _.isArray(obj) ? obj.slice() : _.extend({}, obj);
- };
-
- // Invokes interceptor with the obj, and then returns obj.
- // The primary purpose of this method is to "tap into" a method chain, in
- // order to perform operations on intermediate results within the chain.
- _.tap = function(obj, interceptor) {
- interceptor(obj);
- return obj;
- };
-
- // Internal recursive comparison function for `isEqual`.
- var eq = function(a, b, aStack, bStack) {
- // Identical objects are equal. `0 === -0`, but they aren't identical.
- // See the [Harmony `egal` proposal](http://wiki.ecmascript.org/doku.php?id=harmony:egal).
- if (a === b) return a !== 0 || 1 / a === 1 / b;
- // A strict comparison is necessary because `null == undefined`.
- if (a == null || b == null) return a === b;
- // Unwrap any wrapped objects.
- if (a instanceof _) a = a._wrapped;
- if (b instanceof _) b = b._wrapped;
- // Compare `[[Class]]` names.
- var className = toString.call(a);
- if (className !== toString.call(b)) return false;
- switch (className) {
- // Strings, numbers, regular expressions, dates, and booleans are compared by value.
- case '[object RegExp]':
- // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')
- case '[object String]':
- // Primitives and their corresponding object wrappers are equivalent; thus, `"5"` is
- // equivalent to `new String("5")`.
- return '' + a === '' + b;
- case '[object Number]':
- // `NaN`s are equivalent, but non-reflexive.
- // Object(NaN) is equivalent to NaN
- if (+a !== +a) return +b !== +b;
- // An `egal` comparison is performed for other numeric values.
- return +a === 0 ? 1 / +a === 1 / b : +a === +b;
- case '[object Date]':
- case '[object Boolean]':
- // Coerce dates and booleans to numeric primitive values. Dates are compared by their
- // millisecond representations. Note that invalid dates with millisecond representations
- // of `NaN` are not equivalent.
- return +a === +b;
- }
- if (typeof a != 'object' || typeof b != 'object') return false;
- // Assume equality for cyclic structures. The algorithm for detecting cyclic
- // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.
- var length = aStack.length;
- while (length--) {
- // Linear search. Performance is inversely proportional to the number of
- // unique nested structures.
- if (aStack[length] === a) return bStack[length] === b;
- }
- // Objects with different constructors are not equivalent, but `Object`s
- // from different frames are.
- var aCtor = a.constructor, bCtor = b.constructor;
- if (
- aCtor !== bCtor &&
- // Handle Object.create(x) cases
- 'constructor' in a && 'constructor' in b &&
- !(_.isFunction(aCtor) && aCtor instanceof aCtor &&
- _.isFunction(bCtor) && bCtor instanceof bCtor)
- ) {
- return false;
- }
- // Add the first object to the stack of traversed objects.
- aStack.push(a);
- bStack.push(b);
- var size, result;
- // Recursively compare objects and arrays.
- if (className === '[object Array]') {
- // Compare array lengths to determine if a deep comparison is necessary.
- size = a.length;
- result = size === b.length;
- if (result) {
- // Deep compare the contents, ignoring non-numeric properties.
- while (size--) {
- if (!(result = eq(a[size], b[size], aStack, bStack))) break;
- }
- }
- } else {
- // Deep compare objects.
- var keys = _.keys(a), key;
- size = keys.length;
- // Ensure that both objects contain the same number of properties before comparing deep equality.
- result = _.keys(b).length === size;
- if (result) {
- while (size--) {
- // Deep compare each member
- key = keys[size];
- if (!(result = _.has(b, key) && eq(a[key], b[key], aStack, bStack))) break;
- }
- }
- }
- // Remove the first object from the stack of traversed objects.
- aStack.pop();
- bStack.pop();
- return result;
- };
-
- // Perform a deep comparison to check if two objects are equal.
- _.isEqual = function(a, b) {
- return eq(a, b, [], []);
- };
-
- // Is a given array, string, or object empty?
- // An "empty" object has no enumerable own-properties.
- _.isEmpty = function(obj) {
- if (obj == null) return true;
- if (_.isArray(obj) || _.isString(obj) || _.isArguments(obj)) return obj.length === 0;
- for (var key in obj) if (_.has(obj, key)) return false;
- return true;
- };
-
- // Is a given value a DOM element?
- _.isElement = function(obj) {
- return !!(obj && obj.nodeType === 1);
- };
-
- // Is a given value an array?
- // Delegates to ECMA5's native Array.isArray
- _.isArray = nativeIsArray || function(obj) {
- return toString.call(obj) === '[object Array]';
- };
-
- // Is a given variable an object?
- _.isObject = function(obj) {
- var type = typeof obj;
- return type === 'function' || type === 'object' && !!obj;
- };
-
- // Add some isType methods: isArguments, isFunction, isString, isNumber, isDate, isRegExp.
- _.each(['Arguments', 'Function', 'String', 'Number', 'Date', 'RegExp'], function(name) {
- _['is' + name] = function(obj) {
- return toString.call(obj) === '[object ' + name + ']';
- };
- });
-
- // Define a fallback version of the method in browsers (ahem, IE), where
- // there isn't any inspectable "Arguments" type.
- if (!_.isArguments(arguments)) {
- _.isArguments = function(obj) {
- return _.has(obj, 'callee');
- };
- }
-
- // Optimize `isFunction` if appropriate. Work around an IE 11 bug.
- if (typeof /./ !== 'function') {
- _.isFunction = function(obj) {
- return typeof obj == 'function' || false;
- };
- }
-
- // Is a given object a finite number?
- _.isFinite = function(obj) {
- return isFinite(obj) && !isNaN(parseFloat(obj));
- };
-
- // Is the given value `NaN`? (NaN is the only number which does not equal itself).
- _.isNaN = function(obj) {
- return _.isNumber(obj) && obj !== +obj;
- };
-
- // Is a given value a boolean?
- _.isBoolean = function(obj) {
- return obj === true || obj === false || toString.call(obj) === '[object Boolean]';
- };
-
- // Is a given value equal to null?
- _.isNull = function(obj) {
- return obj === null;
- };
-
- // Is a given variable undefined?
- _.isUndefined = function(obj) {
- return obj === void 0;
- };
-
- // Shortcut function for checking if an object has a given property directly
- // on itself (in other words, not on a prototype).
- _.has = function(obj, key) {
- return obj != null && hasOwnProperty.call(obj, key);
- };
-
- // Utility Functions
- // -----------------
-
- // Run Underscore.js in *noConflict* mode, returning the `_` variable to its
- // previous owner. Returns a reference to the Underscore object.
- _.noConflict = function() {
- root._ = previousUnderscore;
- return this;
- };
-
- // Keep the identity function around for default iteratees.
- _.identity = function(value) {
- return value;
- };
-
- _.constant = function(value) {
- return function() {
- return value;
- };
- };
-
- _.noop = function(){};
-
- _.property = function(key) {
- return function(obj) {
- return obj[key];
- };
- };
-
- // Returns a predicate for checking whether an object has a given set of `key:value` pairs.
- _.matches = function(attrs) {
- var pairs = _.pairs(attrs), length = pairs.length;
- return function(obj) {
- if (obj == null) return !length;
- obj = new Object(obj);
- for (var i = 0; i < length; i++) {
- var pair = pairs[i], key = pair[0];
- if (pair[1] !== obj[key] || !(key in obj)) return false;
- }
- return true;
- };
- };
-
- // Run a function **n** times.
- _.times = function(n, iteratee, context) {
- var accum = Array(Math.max(0, n));
- iteratee = createCallback(iteratee, context, 1);
- for (var i = 0; i < n; i++) accum[i] = iteratee(i);
- return accum;
- };
-
- // Return a random integer between min and max (inclusive).
- _.random = function(min, max) {
- if (max == null) {
- max = min;
- min = 0;
- }
- return min + Math.floor(Math.random() * (max - min + 1));
- };
-
- // A (possibly faster) way to get the current timestamp as an integer.
- _.now = Date.now || function() {
- return new Date().getTime();
- };
-
- // List of HTML entities for escaping.
- var escapeMap = {
- '&': '&',
- '<': '<',
- '>': '>',
- '"': '"',
- "'": ''',
- '`': '`'
- };
- var unescapeMap = _.invert(escapeMap);
-
- // Functions for escaping and unescaping strings to/from HTML interpolation.
- var createEscaper = function(map) {
- var escaper = function(match) {
- return map[match];
- };
- // Regexes for identifying a key that needs to be escaped
- var source = '(?:' + _.keys(map).join('|') + ')';
- var testRegexp = RegExp(source);
- var replaceRegexp = RegExp(source, 'g');
- return function(string) {
- string = string == null ? '' : '' + string;
- return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string;
- };
- };
- _.escape = createEscaper(escapeMap);
- _.unescape = createEscaper(unescapeMap);
-
- // If the value of the named `property` is a function then invoke it with the
- // `object` as context; otherwise, return it.
- _.result = function(object, property) {
- if (object == null) return void 0;
- var value = object[property];
- return _.isFunction(value) ? object[property]() : value;
- };
-
- // Generate a unique integer id (unique within the entire client session).
- // Useful for temporary DOM ids.
- var idCounter = 0;
- _.uniqueId = function(prefix) {
- var id = ++idCounter + '';
- return prefix ? prefix + id : id;
- };
-
- // By default, Underscore uses ERB-style template delimiters, change the
- // following template settings to use alternative delimiters.
- _.templateSettings = {
- evaluate : /<%([\s\S]+?)%>/g,
- interpolate : /<%=([\s\S]+?)%>/g,
- escape : /<%-([\s\S]+?)%>/g
- };
-
- // When customizing `templateSettings`, if you don't want to define an
- // interpolation, evaluation or escaping regex, we need one that is
- // guaranteed not to match.
- var noMatch = /(.)^/;
-
- // Certain characters need to be escaped so that they can be put into a
- // string literal.
- var escapes = {
- "'": "'",
- '\\': '\\',
- '\r': 'r',
- '\n': 'n',
- '\u2028': 'u2028',
- '\u2029': 'u2029'
- };
-
- var escaper = /\\|'|\r|\n|\u2028|\u2029/g;
-
- var escapeChar = function(match) {
- return '\\' + escapes[match];
- };
-
- // JavaScript micro-templating, similar to John Resig's implementation.
- // Underscore templating handles arbitrary delimiters, preserves whitespace,
- // and correctly escapes quotes within interpolated code.
- // NB: `oldSettings` only exists for backwards compatibility.
- _.template = function(text, settings, oldSettings) {
- if (!settings && oldSettings) settings = oldSettings;
- settings = _.defaults({}, settings, _.templateSettings);
-
- // Combine delimiters into one regular expression via alternation.
- var matcher = RegExp([
- (settings.escape || noMatch).source,
- (settings.interpolate || noMatch).source,
- (settings.evaluate || noMatch).source
- ].join('|') + '|$', 'g');
-
- // Compile the template source, escaping string literals appropriately.
- var index = 0;
- var source = "__p+='";
- text.replace(matcher, function(match, escape, interpolate, evaluate, offset) {
- source += text.slice(index, offset).replace(escaper, escapeChar);
- index = offset + match.length;
-
- if (escape) {
- source += "'+\n((__t=(" + escape + "))==null?'':_.escape(__t))+\n'";
- } else if (interpolate) {
- source += "'+\n((__t=(" + interpolate + "))==null?'':__t)+\n'";
- } else if (evaluate) {
- source += "';\n" + evaluate + "\n__p+='";
- }
-
- // Adobe VMs need the match returned to produce the correct offest.
- return match;
- });
- source += "';\n";
-
- // If a variable is not specified, place data values in local scope.
- if (!settings.variable) source = 'with(obj||{}){\n' + source + '}\n';
-
- source = "var __t,__p='',__j=Array.prototype.join," +
- "print=function(){__p+=__j.call(arguments,'');};\n" +
- source + 'return __p;\n';
-
- try {
- var render = new Function(settings.variable || 'obj', '_', source);
- } catch (e) {
- e.source = source;
- throw e;
- }
-
- var template = function(data) {
- return render.call(this, data, _);
- };
-
- // Provide the compiled source as a convenience for precompilation.
- var argument = settings.variable || 'obj';
- template.source = 'function(' + argument + '){\n' + source + '}';
-
- return template;
- };
-
- // Add a "chain" function. Start chaining a wrapped Underscore object.
- _.chain = function(obj) {
- var instance = _(obj);
- instance._chain = true;
- return instance;
- };
-
- // OOP
- // ---------------
- // If Underscore is called as a function, it returns a wrapped object that
- // can be used OO-style. This wrapper holds altered versions of all the
- // underscore functions. Wrapped objects may be chained.
-
- // Helper function to continue chaining intermediate results.
- var result = function(obj) {
- return this._chain ? _(obj).chain() : obj;
- };
-
- // Add your own custom functions to the Underscore object.
- _.mixin = function(obj) {
- _.each(_.functions(obj), function(name) {
- var func = _[name] = obj[name];
- _.prototype[name] = function() {
- var args = [this._wrapped];
- push.apply(args, arguments);
- return result.call(this, func.apply(_, args));
- };
- });
- };
-
- // Add all of the Underscore functions to the wrapper object.
- _.mixin(_);
-
- // Add all mutator Array functions to the wrapper.
- _.each(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {
- var method = ArrayProto[name];
- _.prototype[name] = function() {
- var obj = this._wrapped;
- method.apply(obj, arguments);
- if ((name === 'shift' || name === 'splice') && obj.length === 0) delete obj[0];
- return result.call(this, obj);
- };
- });
-
- // Add all accessor Array functions to the wrapper.
- _.each(['concat', 'join', 'slice'], function(name) {
- var method = ArrayProto[name];
- _.prototype[name] = function() {
- return result.call(this, method.apply(this._wrapped, arguments));
- };
- });
-
- // Extracts the result from a wrapped and chained object.
- _.prototype.value = function() {
- return this._wrapped;
- };
-
- // AMD registration happens at the end for compatibility with AMD loaders
- // that may not enforce next-turn semantics on modules. Even though general
- // practice for AMD registration is to be anonymous, underscore registers
- // as a named module because, like jQuery, it is a base library that is
- // popular enough to be bundled in a third party lib, but not be part of
- // an AMD load request. Those cases could generate an error when an
- // anonymous define() is called outside of a loader request.
- if (typeof define === 'function' && define.amd) {
- define('underscore', [], function() {
- return _;
- });
- }
-}.call(this));
-
-},{}],60:[function(require,module,exports){
-var _;
-
-_ = require("underscore");
-
-module.exports = function(seqs) {
- var occs;
- seqs = seqs.map(function(el) {
- return el.get("seq");
- });
- occs = new Array(seqs.length);
- _.each(seqs, function(el, i) {
- return _.each(el, function(char, pos) {
- if (occs[pos] == null) {
- occs[pos] = {};
- }
- if (occs[pos][char] == null) {
- occs[pos][char] = 0;
- }
- return occs[pos][char]++;
- });
- });
- return _.reduce(occs, function(memo, occ) {
- var keys;
- keys = _.keys(occ);
- return memo += _.max(keys, function(key) {
- return occ[key];
- });
- }, "");
-};
-
-
-
-},{"underscore":59}],61:[function(require,module,exports){
-var identitiyCalc;
-
-module.exports = identitiyCalc = function(seqs, consensus) {
- if (consensus === void 0) {
- console.warn("bug on consenus calc");
- return;
- }
- return seqs.each(function(seqObj) {
- var i, matches, seq, total, _i, _ref;
- seq = seqObj.get("seq");
- matches = 0;
- total = 0;
- for (i = _i = 0, _ref = seq.length - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; i = 0 <= _ref ? ++_i : --_i) {
- if (seq[i] !== "-" && consensus[i] !== "-") {
- total++;
- if (seq[i] === consensus[i]) {
- matches++;
- }
- }
- }
- return seqObj.set("identity", matches / total);
- });
-};
-
-
-
-},{}],62:[function(require,module,exports){
-module.exports.consensus = require("./ConsensusCalc");
-
-
-
-},{"./ConsensusCalc":60}],63:[function(require,module,exports){
-var Colorator, Model;
-
-Model = require("backbone-thin").Model;
-
-module.exports = Colorator = Model.extend({
- defaults: {
- scheme: "taylor",
- colorBackground: true,
- showLowerCase: true,
- opacity: 0.6
- }
-});
-
-
-
-},{"backbone-thin":5}],64:[function(require,module,exports){
-var Columns, Model, consenus, _;
-
-Model = require("backbone-thin").Model;
-
-consenus = require("../algo/ConsensusCalc");
-
-_ = require("underscore");
-
-module.exports = Columns = Model.extend({
- defaults: {
- scaling: "lin"
- },
- initialize: function() {
- if (this.get("hidden") == null) {
- return this.set("hidden", []);
- }
- },
- calcHiddenColumns: function(n) {
- var hidden, i, newX, _i, _len;
- hidden = this.get("hidden");
- newX = n;
- for (_i = 0, _len = hidden.length; _i < _len; _i++) {
- i = hidden[_i];
- if (i <= newX) {
- newX++;
- }
- }
- return newX - n;
- },
- _calcConservationPre: function(seqs) {
- var cons, matches, nMax, total;
- console.log(seqs.length);
- if (seqs.length > 1000) {
- return;
- }
- cons = consenus(seqs);
- seqs = seqs.map(function(el) {
- return el.get("seq");
- });
- nMax = (_.max(seqs, function(el) {
- return el.length;
- })).length;
- total = new Array(nMax);
- matches = new Array(nMax);
- _.each(seqs, function(el, i) {
- return _.each(el, function(char, pos) {
- total[pos] = total[pos] + 1 || 1;
- if (cons[pos] === char) {
- return matches[pos] = matches[pos] + 1 || 1;
- }
- });
- });
- return [matches, total, nMax];
- },
- calcConservation: function(seqs) {
- if (this.attributes.scaling === "exp") {
- return this.calcConservationExp(seqs);
- } else if (this.attributes.scaling === "log") {
- return this.calcConservationLog(seqs);
- } else if (this.attributes.scaling === "lin") {
- return this.calcConservationLin(seqs);
- }
- },
- calcConservationLin: function(seqs) {
- var i, matches, nMax, total, _i, _ref, _ref1;
- _ref = this._calcConservationPre(seqs), matches = _ref[0], total = _ref[1], nMax = _ref[2];
- for (i = _i = 0, _ref1 = nMax - 1; 0 <= _ref1 ? _i <= _ref1 : _i >= _ref1; i = 0 <= _ref1 ? ++_i : --_i) {
- matches[i] = matches[i] / total[i];
- }
- this.set("conserv", matches);
- return matches;
- },
- calcConservationLog: function(seqs) {
- var i, matches, nMax, total, _i, _ref, _ref1;
- _ref = this._calcConservationPre(seqs), matches = _ref[0], total = _ref[1], nMax = _ref[2];
- for (i = _i = 0, _ref1 = nMax - 1; 0 <= _ref1 ? _i <= _ref1 : _i >= _ref1; i = 0 <= _ref1 ? ++_i : --_i) {
- matches[i] = Math.log(matches[i] + 1) / Math.log(total[i] + 1);
- }
- this.set("conserv", matches);
- return matches;
- },
- calcConservationExp: function(seqs) {
- var i, matches, nMax, total, _i, _ref, _ref1;
- _ref = this._calcConservationPre(seqs), matches = _ref[0], total = _ref[1], nMax = _ref[2];
- for (i = _i = 0, _ref1 = nMax - 1; 0 <= _ref1 ? _i <= _ref1 : _i >= _ref1; i = 0 <= _ref1 ? ++_i : --_i) {
- matches[i] = Math.exp(matches[i] + 1) / Math.exp(total[i] + 1);
- }
- this.set("conserv", matches);
- return matches;
- }
-});
-
-
-
-},{"../algo/ConsensusCalc":60,"backbone-thin":5,"underscore":59}],65:[function(require,module,exports){
-var Config, Model;
-
-Model = require("backbone-thin").Model;
-
-module.exports = Config = Model.extend({
- defaults: {
- registerMouseHover: false,
- registerMouseClicks: true,
- importProxy: "https://cors-anywhere.herokuapp.com/",
- eventBus: true
- }
-});
-
-
-
-},{"backbone-thin":5}],66:[function(require,module,exports){
-var Consenus, Model, consenusCalc;
-
-Model = require("backbone-thin").Model;
-
-consenusCalc = require("../algo/ConsensusCalc");
-
-module.exports = Consenus = Model.extend({
- defaults: {
- consenus: ""
- },
- getConsensus: function(seqs) {
- var cons;
- if (seqs.length > 1000) {
- return;
- }
- cons = consenusCalc(seqs);
- this.set("consenus", cons);
- return cons;
- }
-});
-
-
-
-},{"../algo/ConsensusCalc":60,"backbone-thin":5}],67:[function(require,module,exports){
-var ColumnSelection, Model, PosSelection, RowSelection, Selection, _;
-
-_ = require("underscore");
-
-Model = require("backbone-thin").Model;
-
-Selection = Model.extend({
- defaults: {
- type: "super"
- }
-});
-
-RowSelection = Selection.extend({
- defaults: _.extend({}, Selection.prototype.defaults, {
- type: "row",
- seqId: ""
- }),
- inRow: function(seqId) {
- return seqId === this.get("seqId");
- },
- inColumn: function(rowPos) {
- return true;
- },
- getLength: function() {
- return 1;
- }
-});
-
-ColumnSelection = Selection.extend({
- defaults: _.extend({}, Selection.prototype.defaults, {
- type: "column",
- xStart: -1,
- xEnd: -1
- }),
- inRow: function() {
- return true;
- },
- inColumn: function(rowPos) {
- return xStart <= rowPos && rowPos <= xEnd;
- },
- getLength: function() {
- return xEnd - xStart;
- }
-});
-
-PosSelection = RowSelection.extend(_.extend({}, _.pick(ColumnSelection, "inColumn"), _.pick(ColumnSelection, "getLength"), {
- defaults: _.extend({}, ColumnSelection.prototype.defaults, RowSelection.prototype.defaults, {
- type: "pos"
- })
-}));
-
-module.exports.sel = Selection;
-
-module.exports.possel = PosSelection;
-
-module.exports.rowsel = RowSelection;
-
-module.exports.columnsel = ColumnSelection;
-
-
-
-},{"backbone-thin":5,"underscore":59}],68:[function(require,module,exports){
-var Collection, SelectionManager, sel, _;
-
-sel = require("./Selection");
-
-_ = require("underscore");
-
-Collection = require("backbone-thin").Collection;
-
-module.exports = SelectionManager = Collection.extend({
- model: sel.sel,
- initialize: function(data, opts) {
- this.g = opts.g;
- this.listenTo(this.g, "residue:click", function(e) {
- return this._handleE(e.evt, new sel.possel({
- xStart: e.rowPos,
- xEnd: e.rowPos,
- seqId: e.seqId
- }));
- });
- this.listenTo(this.g, "row:click", function(e) {
- return this._handleE(e.evt, new sel.rowsel({
- xStart: e.rowPos,
- xEnd: e.rowPos,
- seqId: e.seqId
- }));
- });
- return this.listenTo(this.g, "column:click", function(e) {
- return this._handleE(e.evt, new sel.columnsel({
- xStart: e.rowPos,
- xEnd: e.rowPos + e.stepSize - 1
- }));
- });
- },
- getSelForRow: function(seqId) {
- return this.filter(function(el) {
- return el.inRow(seqId);
- });
- },
- getSelForColumns: function(rowPos) {
- return this.filter(function(el) {
- return el.inColumn(rowPos);
- });
- },
- getBlocksForRow: function(seqId, maxLen) {
- var blocks, seli, selis, _i, _j, _k, _len, _ref, _ref1, _results, _results1;
- selis = this.filter(function(el) {
- return el.inRow(seqId);
- });
- blocks = [];
- for (_i = 0, _len = selis.length; _i < _len; _i++) {
- seli = selis[_i];
- if (seli.attributes.type === "row") {
- blocks = (function() {
- _results = [];
- for (var _j = 0; 0 <= maxLen ? _j <= maxLen : _j >= maxLen; 0 <= maxLen ? _j++ : _j--){ _results.push(_j); }
- return _results;
- }).apply(this);
- break;
- } else {
- blocks = blocks.concat((function() {
- _results1 = [];
- for (var _k = _ref = seli.attributes.xStart, _ref1 = seli.attributes.xEnd; _ref <= _ref1 ? _k <= _ref1 : _k >= _ref1; _ref <= _ref1 ? _k++ : _k--){ _results1.push(_k); }
- return _results1;
- }).apply(this));
- }
- }
- return blocks;
- },
- getAllColumnBlocks: function(conf) {
- var blocks, filtered, maxLen, seli, withPos, _i, _j, _len, _ref, _ref1, _results;
- maxLen = conf.maxLen;
- withPos = conf.withPos;
- blocks = [];
- if (conf.withPos) {
- filtered = this.filter(function(el) {
- return el.get('xStart') != null;
- });
- } else {
- filtered = this.filter(function(el) {
- return el.get('type') === "column";
- });
- }
- for (_i = 0, _len = filtered.length; _i < _len; _i++) {
- seli = filtered[_i];
- blocks = blocks.concat((function() {
- _results = [];
- for (var _j = _ref = seli.attributes.xStart, _ref1 = seli.attributes.xEnd; _ref <= _ref1 ? _j <= _ref1 : _j >= _ref1; _ref <= _ref1 ? _j++ : _j--){ _results.push(_j); }
- return _results;
- }).apply(this));
- }
- blocks = _.uniq(blocks);
- return blocks;
- },
- invertRow: function(rows) {
- var el, inverted, s, selRows, _i, _len;
- selRows = this.where({
- type: "row"
- });
- selRows = _.map(selRows, function(el) {
- return el.attributes.seqId;
- });
- inverted = _.filter(rows, function(el) {
- if (selRows.indexOf(el) >= 0) {
- return false;
- }
- return true;
- });
- s = [];
- for (_i = 0, _len = inverted.length; _i < _len; _i++) {
- el = inverted[_i];
- s.push(new sel.rowsel({
- seqId: el
- }));
- }
- console.log(s);
- return this.reset(s);
- },
- invertCol: function(columns) {
- var el, inverted, s, selColumns, xEnd, xStart, _i, _len;
- selColumns = this.where({
- type: "column"
- });
- selColumns = _.reduce(selColumns, function(memo, el) {
- var _i, _ref, _ref1, _results;
- return memo.concat((function() {
- _results = [];
- for (var _i = _ref = el.attributes.xStart, _ref1 = el.attributes.xEnd; _ref <= _ref1 ? _i <= _ref1 : _i >= _ref1; _ref <= _ref1 ? _i++ : _i--){ _results.push(_i); }
- return _results;
- }).apply(this));
- }, []);
- inverted = _.filter(columns, function(el) {
- if (selColumns.indexOf(el) >= 0) {
- return false;
- }
- return true;
- });
- if (inverted.length === 0) {
- return;
- }
- s = [];
- console.log(inverted);
- xStart = xEnd = inverted[0];
- for (_i = 0, _len = inverted.length; _i < _len; _i++) {
- el = inverted[_i];
- if (xEnd + 1 === el) {
- xEnd = el;
- } else {
- s.push(new sel.columnsel({
- xStart: xStart,
- xEnd: xEnd
- }));
- xStart = xEnd = el;
- }
- }
- if (xStart !== xEnd) {
- s.push(new sel.columnsel({
- xStart: xStart,
- xEnd: inverted[inverted.length - 1]
- }));
- }
- return this.reset(s);
- },
- _handleE: function(e, selection) {
- if (e.ctrlKey || e.metaKey) {
- return this.add(selection);
- } else {
- return this.reset([selection]);
- }
- },
- _reduceColumns: function() {
- return this.each(function(el, index, arr) {
- var cols, left, lefts, right, rights, xEnd, xStart, _i, _j, _len, _len1;
- cols = _.filter(arr, function(el) {
- return el.get('type') === 'column';
- });
- xStart = el.get('xStart');
- xEnd = el.get('xEnd');
- lefts = _.filter(cols, function(el) {
- return el.get('xEnd') === (xStart - 1);
- });
- for (_i = 0, _len = lefts.length; _i < _len; _i++) {
- left = lefts[_i];
- left.set('xEnd', xStart);
- }
- rights = _.filter(cols, function(el) {
- return el.get('xStart') === (xEnd + 1);
- });
- for (_j = 0, _len1 = rights.length; _j < _len1; _j++) {
- right = rights[_j];
- right.set('xStart', xEnd);
- }
- if (lefts.length > 0 || rights.length > 0) {
- console.log("removed el");
- return el.collection.remove(el);
- }
- });
- }
-});
-
-
-
-},{"./Selection":67,"backbone-thin":5,"underscore":59}],69:[function(require,module,exports){
-var Model, Visibility;
-
-Model = require("backbone-thin").Model;
-
-module.exports = Visibility = Model.extend({
- defaults: {
- overviewBox: 30,
- headerBox: -1,
- alignmentBody: 0
- }
-});
-
-
-
-},{"backbone-thin":5}],70:[function(require,module,exports){
-var Model, Visibility;
-
-Model = require("backbone-thin").Model;
-
-module.exports = Visibility = Model.extend({
- defaults: {
- sequences: true,
- markers: true,
- metacell: false,
- conserv: true,
- overviewbox: false,
- labels: true,
- labelName: true,
- labelId: true,
- labelPartition: false,
- labelCheckbox: false
- }
-});
-
-
-
-},{"backbone-thin":5}],71:[function(require,module,exports){
-var Model, Zoomer;
-
-Model = require("backbone-thin").Model;
-
-module.exports = Zoomer = Model.extend({
- constructor: function(attributes, options) {
- Model.apply(this, arguments);
- this.g = options.g;
- return this;
- },
- defaults: {
- alignmentWidth: "auto",
- alignmentHeight: 195,
- columnWidth: 15,
- rowHeight: 15,
- labelWidth: 100,
- metaWidth: 100,
- textVisible: true,
- labelIdLength: 30,
- labelFontsize: "13px",
- labelLineHeight: "13px",
- markerFontsize: "10px",
- stepSize: 1,
- markerStepSize: 2,
- residueFont: "13px mono",
- canvasEventScale: 1,
- boxRectHeight: 5,
- boxRectWidth: 5,
- menuFontsize: "20px",
- menuItemFontsize: "18px",
- menuItemLineHeight: "18px",
- menuMarginLeft: "5px",
- menuPadding: "3px 5px 3px 5px",
- _alignmentScrollLeft: 0,
- _alignmentScrollTop: 0
- },
- getAlignmentWidth: function(n) {
- if (this.get("alignmentWidth") === "auto") {
- return this.get("columnWidth") * n;
- } else {
- return this.get("alignmentWidth");
- }
- },
- setLeftOffset: function(n) {
- var val;
- val = (n - 1) * this.get('columnWidth');
- val = Math.max(0, val);
- return this.set("_alignmentScrollLeft", val);
- },
- setTopOffset: function(n) {
- var val;
- val = (n - 1) * this.get('rowHeight');
- val = Math.max(0, val);
- return this.set("_alignmentScrollTop", val);
- },
- getLabelWidth: function() {
- var paddingLeft;
- paddingLeft = 0;
- if (this.g.vis.get("labels")) {
- paddingLeft += this.get("labelWidth");
- }
- if (this.g.vis.get("metacell")) {
- paddingLeft += this.get("metaWidth");
- }
- return paddingLeft;
- },
- _adjustWidth: function(el, model) {
- var calcWidth, maxWidth, parentWidth, val;
- if ((el.parentNode != null) && el.parentNode.offsetWidth !== 0) {
- parentWidth = el.parentNode.offsetWidth;
- } else {
- parentWidth = document.body.clientWidth - 35;
- }
- maxWidth = parentWidth - this.getLabelWidth();
- calcWidth = this.getAlignmentWidth(model.getMaxLength() - this.g.columns.get('hidden').length);
- val = Math.min(maxWidth, calcWidth);
- val = Math.floor(val / this.get("columnWidth")) * this.get("columnWidth");
- return this.set("alignmentWidth", val);
- },
- _checkScrolling: function(scrollObj, opts) {
- var xScroll, yScroll;
- xScroll = scrollObj[0];
- yScroll = scrollObj[1];
- this.set("_alignmentScrollLeft", xScroll, opts);
- return this.set("_alignmentScrollTop", yScroll, opts);
- }
-});
-
-
-
-},{"backbone-thin":5}],72:[function(require,module,exports){
-module.exports.msa = require("./msa");
-
-module.exports.model = require("./model");
-
-module.exports.algo = require("./algo");
-
-module.exports.menu = require("./menu");
-
-module.exports.utils = require("./utils");
-
-module.exports.selection = require("./g/selection/Selection");
-
-module.exports.view = require("backbone-viewj");
-
-module.exports.boneView = require("backbone-childs");
-
-module.exports._ = require('underscore');
-
-module.exports.$ = require('jbone');
-
-module.exports.version = "0.1.0";
-
-
-
-},{"./algo":62,"./g/selection/Selection":67,"./menu":74,"./model":89,"./msa":90,"./utils":92,"backbone-childs":3,"backbone-viewj":10,"jbone":50,"underscore":59}],73:[function(require,module,exports){
-var ColorMenu, ExportMenu, ExtraMenu, FilterMenu, HelpMenu, ImportMenu, MenuView, OrderingMenu, SelectionMenu, VisMenu, boneView;
-
-boneView = require("backbone-childs");
-
-ImportMenu = require("./views/ImportMenu");
-
-FilterMenu = require("./views/FilterMenu");
-
-SelectionMenu = require("./views/SelectionMenu");
-
-VisMenu = require("./views/VisMenu");
-
-ColorMenu = require("./views/ColorMenu");
-
-OrderingMenu = require("./views/OrderingMenu");
-
-ExtraMenu = require("./views/ExtraMenu");
-
-ExportMenu = require("./views/ExportMenu");
-
-HelpMenu = require("./views/HelpMenu");
-
-module.exports = MenuView = boneView.extend({
- initialize: function(data) {
- this.msa = data.msa;
- this.addView("10_import", new ImportMenu({
- model: this.msa.seqs,
- g: this.msa.g
- }));
- this.addView("20_filter", new FilterMenu({
- model: this.msa.seqs,
- g: this.msa.g
- }));
- this.addView("30_selection", new SelectionMenu({
- model: this.msa.seqs,
- g: this.msa.g
- }));
- this.addView("40_vis", new VisMenu({
- model: this.msa.seqs,
- g: this.msa.g
- }));
- this.addView("50_color", new ColorMenu({
- model: this.msa.seqs,
- g: this.msa.g
- }));
- this.addView("60_ordering", new OrderingMenu({
- model: this.msa.seqs,
- g: this.msa.g
- }));
- this.addView("70_extra", new ExtraMenu({
- model: this.msa.seqs,
- g: this.msa.g
- }));
- this.addView("80_export", new ExportMenu({
- model: this.msa.seqs,
- g: this.msa.g,
- msa: this.msa
- }));
- return this.addView("90_help", new HelpMenu({
- g: this.msa.g
- }));
- },
- render: function() {
- this.renderSubviews();
- this.el.setAttribute("class", "biojs_msa_menubar");
- return this.el.appendChild(document.createElement("p"));
- }
-});
-
-
-
-},{"./views/ColorMenu":76,"./views/ExportMenu":77,"./views/ExtraMenu":78,"./views/FilterMenu":79,"./views/HelpMenu":80,"./views/ImportMenu":81,"./views/OrderingMenu":82,"./views/SelectionMenu":83,"./views/VisMenu":84,"backbone-childs":3}],74:[function(require,module,exports){
-module.exports.defaultmenu = require("./defaultmenu");
-
-module.exports.menubuilder = require("./menubuilder");
-
-
-
-},{"./defaultmenu":73,"./menubuilder":75}],75:[function(require,module,exports){
-var BMath, MenuBuilder, jbone, view;
-
-BMath = require("../utils/bmath");
-
-jbone = require("jbone");
-
-view = require("backbone-viewj");
-
-module.exports = MenuBuilder = view.extend({
- setName: function(name) {
- this.name = name;
- return this._nodes = [];
- },
- addNode: function(label, callback, data) {
- var style;
- if (data != null) {
- style = data.style;
- }
- if (this._nodes == null) {
- this._nodes = [];
- }
- return this._nodes.push({
- label: label,
- callback: callback,
- style: style
- });
- },
- buildDOM: function() {
- return this._buildM({
- nodes: this._nodes,
- name: this.name
- });
- },
- _buildM: function(data) {
- var displayedButton, frag, key, li, menu, menuUl, name, node, nodes, style, _i, _len, _ref;
- nodes = data.nodes;
- name = data.name;
- menu = document.createElement("div");
- menu.className = "dropdown dropdown-tip";
- menu.id = "adrop-" + BMath.uniqueId();
- menu.style.display = "none";
- menuUl = document.createElement("ul");
- menuUl.className = "dropdown-menu";
- for (_i = 0, _len = nodes.length; _i < _len; _i++) {
- node = nodes[_i];
- li = document.createElement("li");
- li.textContent = node.label;
- _ref = node.style;
- for (key in _ref) {
- style = _ref[key];
- li.style[key] = style;
- }
- li.addEventListener("click", node.callback);
- if (this.g != null) {
- li.style.lineHeight = this.g.zoomer.get("menuItemLineHeight");
- }
- menuUl.appendChild(li);
- }
- menu.appendChild(menuUl);
- frag = document.createDocumentFragment();
- displayedButton = document.createElement("a");
- displayedButton.textContent = name;
- displayedButton.className = "biojs_msa_menubar_alink";
- if (this.g != null) {
- menuUl.style.fontSize = this.g.zoomer.get("menuItemFontsize");
- displayedButton.style.fontSize = this.g.zoomer.get("menuFontsize");
- displayedButton.style.marginLeft = this.g.zoomer.get("menuMarginLeft");
- displayedButton.style.padding = this.g.zoomer.get("menuPadding");
- }
- jbone(displayedButton).on("click", (function(_this) {
- return function(e) {
- _this._showMenu(e, menu, displayedButton);
- return window.setTimeout(function() {
- return jbone(document.body).one("click", function(e) {
- console.log("next click");
- return menu.style.display = "none";
- });
- }, 5);
- };
- })(this));
- frag.appendChild(menu);
- frag.appendChild(displayedButton);
- return frag;
- },
- _showMenu: function(e, menu, target) {
- var rect;
- menu.style.display = "block";
- menu.style.position = "absolute";
- rect = target.getBoundingClientRect();
- menu.style.left = rect.left + "px";
- return menu.style.top = (rect.top + target.offsetHeight) + "px";
- }
-});
-
-
-
-},{"../utils/bmath":91,"backbone-viewj":10,"jbone":50}],76:[function(require,module,exports){
-var ColorMenu, MenuBuilder, dom, _;
-
-MenuBuilder = require("../menubuilder");
-
-_ = require("underscore");
-
-dom = require("dom-helper");
-
-module.exports = ColorMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- this.el.style.display = "inline-block";
- return this.listenTo(this.g.colorscheme, "change", function() {
- return this.render();
- });
- },
- render: function() {
- var colorschemes, menuColor, scheme, text, _i, _len;
- menuColor = this.setName("Color scheme");
- colorschemes = this.getColorschemes();
- for (_i = 0, _len = colorschemes.length; _i < _len; _i++) {
- scheme = colorschemes[_i];
- this.addScheme(menuColor, scheme);
- }
- text = "Background";
- if (this.g.colorscheme.get("colorBackground")) {
- text = "Hide " + text;
- } else {
- text = "Show " + text;
- }
- this.addNode(text, (function(_this) {
- return function() {
- return _this.g.colorscheme.set("colorBackground", !_this.g.colorscheme.get("colorBackground"));
- };
- })(this));
- this.grey(menuColor);
- dom.removeAllChilds(this.el);
- this.el.appendChild(this.buildDOM());
- return this;
- },
- addScheme: function(menuColor, scheme) {
- var current, style;
- style = {};
- current = this.g.colorscheme.get("scheme");
- if (current === scheme.id) {
- style.backgroundColor = "#77ED80";
- }
- return this.addNode(scheme.name, (function(_this) {
- return function() {
- return _this.g.colorscheme.set("scheme", scheme.id);
- };
- })(this), {
- style: style
- });
- },
- getColorschemes: function() {
- var schemes;
- schemes = [];
- schemes.push({
- name: "Zappo",
- id: "zappo"
- });
- schemes.push({
- name: "Taylor",
- id: "taylor"
- });
- schemes.push({
- name: "Hydrophobicity",
- id: "hydro"
- });
- schemes.push({
- name: "Lesk",
- id: "lesk"
- });
- schemes.push({
- name: "Cinema",
- id: "cinema"
- });
- schemes.push({
- name: "MAE",
- id: "mae"
- });
- schemes.push({
- name: "Clustal",
- id: "clustal"
- });
- schemes.push({
- name: "Clustal2",
- id: "clustal2"
- });
- schemes.push({
- name: "Turn",
- id: "turn"
- });
- schemes.push({
- name: "Strand",
- id: "strand"
- });
- schemes.push({
- name: "Buried",
- id: "buried"
- });
- schemes.push({
- name: "Helix",
- id: "helix"
- });
- schemes.push({
- name: "Nucleotide",
- id: "nucleotide"
- });
- schemes.push({
- name: "Purine",
- id: "purine"
- });
- schemes.push({
- name: "PID",
- id: "pid"
- });
- schemes.push({
- name: "No color",
- id: "foo"
- });
- return schemes;
- },
- grey: function(menuColor) {
- this.addNode("Grey", (function(_this) {
- return function() {
- _this.g.colorscheme.set("showLowerCase", false);
- return _this.model.each(function(seq) {
- var grey, residues;
- residues = seq.get("seq");
- grey = [];
- _.each(residues, function(el, index) {
- if (el === el.toLowerCase()) {
- return grey.push(index);
- }
- });
- return seq.set("grey", grey);
- });
- };
- })(this));
- this.addNode("Grey by threshold", (function(_this) {
- return function() {
- var conserv, grey, i, maxLen, threshold, _i, _ref;
- threshold = prompt("Enter threshold (in percent)", 20);
- threshold = threshold / 100;
- maxLen = _this.model.getMaxLength();
- conserv = _this.g.columns.get("conserv");
- grey = [];
- for (i = _i = 0, _ref = maxLen - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; i = 0 <= _ref ? ++_i : --_i) {
- console.log(conserv[i]);
- if (conserv[i] < threshold) {
- grey.push(i);
- }
- }
- return _this.model.each(function(seq) {
- return seq.set("grey", grey);
- });
- };
- })(this));
- this.addNode("Grey selection", (function(_this) {
- return function() {
- var maxLen;
- maxLen = _this.model.getMaxLength();
- return _this.model.each(function(seq) {
- var blocks;
- blocks = _this.g.selcol.getBlocksForRow(seq.get("id"), maxLen);
- return seq.set("grey", blocks);
- });
- };
- })(this));
- return this.addNode("Reset grey", (function(_this) {
- return function() {
- _this.g.colorscheme.set("showLowerCase", true);
- return _this.model.each(function(seq) {
- return seq.set("grey", []);
- });
- };
- })(this));
- }
-});
-
-
-
-},{"../menubuilder":75,"dom-helper":49,"underscore":59}],77:[function(require,module,exports){
-var ExportMenu, FastaExporter, MenuBuilder, blobURL, saveAs, _;
-
-MenuBuilder = require("../menubuilder");
-
-saveAs = require("browser-saveas");
-
-FastaExporter = require("biojs-io-fasta").writer;
-
-_ = require("underscore");
-
-blobURL = require("blueimp_canvastoblob");
-
-module.exports = ExportMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- this.msa = data.msa;
- return this.el.style.display = "inline-block";
- },
- render: function() {
- this.setName("Export");
- this.addNode("Export sequences", (function(_this) {
- return function() {
- var blob, text;
- text = FastaExporter["export"](_this.model.toJSON());
- blob = new Blob([text], {
- type: 'text/plain'
- });
- return saveAs(blob, "all.fasta");
- };
- })(this));
- this.addNode("Export selection", (function(_this) {
- return function() {
- var blob, i, selection, text, _i, _ref;
- selection = _this.g.selcol.pluck("seqId");
- if (selection != null) {
- selection = _this.model.filter(function(el) {
- return _.contains(selection, el.get("id"));
- });
- for (i = _i = 0, _ref = selection.length - 1; _i <= _ref; i = _i += 1) {
- selection[i] = selection[i].toJSON();
- }
- } else {
- selection = _this.model.toJSON();
- console.log("no selection found");
- }
- text = FastaExporter["export"](selection);
- blob = new Blob([text], {
- type: 'text/plain'
- });
- return saveAs(blob, "selection.fasta");
- };
- })(this));
- this.addNode("Export image", (function(_this) {
- return function() {
- var canvas, url;
- canvas = _this.msa.getView('stage').getView('body').getView('seqblock').el;
- if (canvas != null) {
- url = canvas.toDataURL('image/png');
- return saveAs(blobURL(url), "biojs-msa.png", "image/png");
- }
- };
- })(this));
- this.el.appendChild(this.buildDOM());
- return this;
- }
-});
-
-
-
-},{"../menubuilder":75,"biojs-io-fasta":undefined,"blueimp_canvastoblob":46,"browser-saveas":47,"underscore":59}],78:[function(require,module,exports){
-var ExtraMenu, MenuBuilder, Seq, consenus;
-
-MenuBuilder = require("../menubuilder");
-
-consenus = require("../../algo/ConsensusCalc");
-
-Seq = require("../../model/Sequence");
-
-module.exports = ExtraMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- return this.el.style.display = "inline-block";
- },
- render: function() {
- this.setName("Extras");
- this.addNode("Add consensus seq", (function(_this) {
- return function() {
- var con, seq;
- con = consenus(_this.model);
- console.log(con);
- seq = new Seq({
- seq: con,
- id: "0c",
- name: "consenus"
- });
- _this.model.add(seq);
- _this.model.comparator = function(seq) {
- return seq.get("id");
- };
- return _this.model.sort();
- };
- })(this));
- this.addNode("Increase font size", (function(_this) {
- return function() {
- _this.g.zoomer.set("columnWidth", _this.g.zoomer.get("columnWidth") + 2);
- _this.g.zoomer.set("labelWidth", _this.g.zoomer.get("columnWidth") + 5);
- _this.g.zoomer.set("rowHeight", _this.g.zoomer.get("rowHeight") + 2);
- return _this.g.zoomer.set("labelFontSize", _this.g.zoomer.get("labelFontSize") + 2);
- };
- })(this));
- this.addNode("Decrease font size", (function(_this) {
- return function() {
- _this.g.zoomer.set("columnWidth", _this.g.zoomer.get("columnWidth") - 2);
- _this.g.zoomer.set("rowHeight", _this.g.zoomer.get("rowHeight") - 2);
- _this.g.zoomer.set("labelFontSize", _this.g.zoomer.get("labelFontSize") - 2);
- if (_this.g.zoomer.get("columnWidth") < 8) {
- return _this.g.zoomer.set("textVisible", false);
- }
- };
- })(this));
- this.addNode("Bar chart exp scaling", (function(_this) {
- return function() {
- return _this.g.columns.set("scaling", "exp");
- };
- })(this));
- this.addNode("Bar chart linear scaling", (function(_this) {
- return function() {
- return _this.g.columns.set("scaling", "lin");
- };
- })(this));
- this.addNode("Bar chart log scaling", (function(_this) {
- return function() {
- return _this.g.columns.set("scaling", "log");
- };
- })(this));
- this.addNode("Minimized width", (function(_this) {
- return function() {
- return _this.g.zoomer.set("alignmentWidth", 600);
- };
- })(this));
- this.addNode("Minimized height", (function(_this) {
- return function() {
- return _this.g.zoomer.set("alignmentHeight", 120);
- };
- })(this));
- this.addNode("Jump to a column", (function(_this) {
- return function() {
- var offset;
- offset = prompt("Column", "20");
- if (offset < 0 || offset > _this.model.getMaxLength() || isNaN(offset)) {
- alert("invalid column");
- return;
- }
- return _this.g.zoomer.setLeftOffset(offset);
- };
- })(this));
- this.el.appendChild(this.buildDOM());
- return this;
- }
-});
-
-
-
-},{"../../algo/ConsensusCalc":60,"../../model/Sequence":88,"../menubuilder":75}],79:[function(require,module,exports){
-var FilterMenu, MenuBuilder, _;
-
-MenuBuilder = require("../menubuilder");
-
-_ = require("underscore");
-
-module.exports = FilterMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- return this.el.style.display = "inline-block";
- },
- render: function() {
- this.setName("Filter");
- this.addNode("Hide columns by threshold", (function(_this) {
- return function(e) {
- var conserv, hidden, i, maxLen, threshold, _i, _ref;
- threshold = prompt("Enter threshold (in percent)", 20);
- threshold = threshold / 100;
- maxLen = _this.model.getMaxLength();
- hidden = [];
- conserv = _this.g.columns.get("conserv");
- for (i = _i = 0, _ref = maxLen - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; i = 0 <= _ref ? ++_i : --_i) {
- if (conserv[i] < threshold) {
- hidden.push(i);
- }
- }
- return _this.g.columns.set("hidden", hidden);
- };
- })(this));
- this.addNode("Hide columns by selection", (function(_this) {
- return function() {
- var hidden, hiddenOld;
- hiddenOld = _this.g.columns.get("hidden");
- hidden = hiddenOld.concat(_this.g.selcol.getAllColumnBlocks({
- maxLen: _this.model.getMaxLength(),
- withPos: true
- }));
- _this.g.selcol.reset([]);
- return _this.g.columns.set("hidden", hidden);
- };
- })(this));
- this.addNode("Hide columns by gaps", (function(_this) {
- return function() {
- var gapContent, gaps, hidden, i, maxLen, threshold, total, _i, _ref;
- threshold = prompt("Enter threshold (in percent)", 20);
- threshold = threshold / 100;
- maxLen = _this.model.getMaxLength();
- hidden = [];
- for (i = _i = 0, _ref = maxLen - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; i = 0 <= _ref ? ++_i : --_i) {
- gaps = 0;
- total = 0;
- _this.model.each(function(el) {
- if (el.get('seq')[i] === "-") {
- gaps++;
- }
- return total++;
- });
- gapContent = gaps / total;
- if (gapContent > threshold) {
- hidden.push(i);
- }
- }
- return _this.g.columns.set("hidden", hidden);
- };
- })(this));
- this.addNode("Hide seqs by identity", (function(_this) {
- return function() {
- var threshold;
- threshold = prompt("Enter threshold (in percent)", 20);
- threshold = threshold / 100;
- return _this.model.each(function(el) {
- if (el.get('identity') < threshold) {
- return el.set('hidden', true);
- }
- });
- };
- })(this));
- this.addNode("Hide seqs by selection", (function(_this) {
- return function() {
- var hidden, ids;
- hidden = _this.g.selcol.where({
- type: "row"
- });
- ids = _.map(hidden, function(el) {
- return el.get('seqId');
- });
- _this.g.selcol.reset([]);
- return _this.model.each(function(el) {
- if (ids.indexOf(el.get('id')) >= 0) {
- return el.set('hidden', true);
- }
- });
- };
- })(this));
- this.addNode("Hide seqs by gaps", (function(_this) {
- return function() {
- var threshold;
- threshold = prompt("Enter threshold (in percent)", 40);
- return _this.model.each(function(el, i) {
- var gaps, seq;
- seq = el.get('seq');
- gaps = _.reduce(seq, (function(memo, c) {
- if (c === '-') {
- memo++;
- }
- return memo;
- }), 0);
- console.log(gaps);
- if (gaps > threshold) {
- return el.set('hidden', true);
- }
- });
- };
- })(this));
- this.addNode("Reset", (function(_this) {
- return function() {
- _this.g.columns.set("hidden", []);
- return _this.model.each(function(el) {
- if (el.get('hidden')) {
- return el.set('hidden', false);
- }
- });
- };
- })(this));
- this.el.appendChild(this.buildDOM());
- return this;
- }
-});
-
-
-
-},{"../menubuilder":75,"underscore":59}],80:[function(require,module,exports){
-var HelpMenu, MenuBuilder;
-
-MenuBuilder = require("../menubuilder");
-
-module.exports = HelpMenu = MenuBuilder.extend({
- initialize: function(data) {
- return this.g = data.g;
- },
- render: function() {
- this.setName("Help");
- this.addNode("About the project", (function(_this) {
- return function() {
- return window.open("https://github.com/greenify/biojs-vis-msa");
- };
- })(this));
- this.addNode("Report issues", (function(_this) {
- return function() {
- return window.open("https://github.com/greenify/biojs-vis-msa/issues");
- };
- })(this));
- this.addNode("User manual", (function(_this) {
- return function() {
- return window.open("https://github.com/greenify/biojs-vis-msa/wiki");
- };
- })(this));
- this.el.style.display = "inline-block";
- this.el.appendChild(this.buildDOM());
- return this;
- }
-});
-
-
-
-},{"../menubuilder":75}],81:[function(require,module,exports){
-var Clustal, FastaReader, ImportMenu, MenuBuilder, corsURL;
-
-Clustal = require("biojs-io-clustal");
-
-FastaReader = require("biojs-io-fasta").parse;
-
-MenuBuilder = require("../menubuilder");
-
-corsURL = require("../../utils/proxy").corsURL;
-
-module.exports = ImportMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- return this.el.style.display = "inline-block";
- },
- render: function() {
- this.setName("Import");
- this.addNode("FASTA", (function(_this) {
- return function(e) {
- var url;
- url = prompt("URL", "/test/dummy/samples/p53.clustalo.fasta");
- url = corsURL(url, _this.g);
- return FastaReader.read(url, function(seqs) {
- var zoomer;
- zoomer = _this.g.zoomer.toJSON();
- zoomer.labelWidth = 200;
- zoomer.boxRectHeight = 2;
- zoomer.boxRectWidth = 2;
- _this.model.reset([]);
- _this.g.zoomer.set(zoomer);
- _this.model.reset(seqs);
- return _this.g.columns.calcConservation(_this.model);
- });
- };
- })(this));
- this.addNode("CLUSTAL", (function(_this) {
- return function() {
- var url;
- url = prompt("URL", "/test/dummy/samples/p53.clustalo.clustal");
- url = corsURL(url, _this.g);
- return Clustal.read(url, function(seqs) {
- var zoomer;
- zoomer = _this.g.zoomer.toJSON();
- zoomer.labelWidth = 200;
- zoomer.boxRectHeight = 2;
- zoomer.boxRectWidth = 2;
- _this.model.reset([]);
- _this.g.zoomer.set(zoomer);
- _this.model.reset(seqs);
- return _this.g.columns.calcConservation(_this.model);
- });
- };
- })(this));
- this.addNode("add your own Parser", (function(_this) {
- return function() {
- return window.open("https://github.com/biojs/biojs2");
- };
- })(this));
- this.el.appendChild(this.buildDOM());
- return this;
- }
-});
-
-
-
-},{"../../utils/proxy":93,"../menubuilder":75,"biojs-io-clustal":undefined,"biojs-io-fasta":undefined}],82:[function(require,module,exports){
-var MenuBuilder, OrderingMenu, dom, _;
-
-MenuBuilder = require("../menubuilder");
-
-dom = require("dom-helper");
-
-_ = require('underscore');
-
-module.exports = OrderingMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- this.order = "ID";
- return this.el.style.display = "inline-block";
- },
- setOrder: function(order) {
- this.order = order;
- return this.render();
- },
- render: function() {
- var comps, el, m, _i, _len;
- this.setName("Ordering");
- comps = this.getComparators();
- for (_i = 0, _len = comps.length; _i < _len; _i++) {
- m = comps[_i];
- this._addNode(m);
- }
- el = this.buildDOM();
- dom.removeAllChilds(this.el);
- this.el.appendChild(el);
- return this;
- },
- _addNode: function(m) {
- var style, text;
- text = m.text;
- style = {};
- if (text === this.order) {
- style.backgroundColor = "#77ED80";
- }
- return this.addNode(text, (function(_this) {
- return function() {
- if (m.precode != null) {
- m.precode();
- }
- _this.model.comparator = m.comparator;
- _this.model.sort();
- return _this.setOrder(m.text);
- };
- })(this), {
- style: style
- });
- },
- getComparators: function() {
- var models;
- models = [];
- models.push({
- text: "ID",
- comparator: "id"
- });
- models.push({
- text: "ID Desc",
- comparator: function(a, b) {
- return -a.get("id").localeCompare(b.get("id"));
- }
- });
- models.push({
- text: "Label",
- comparator: "name"
- });
- models.push({
- text: "Label Desc",
- comparator: function(a, b) {
- return -a.get("name").localeCompare(b.get("name"));
- }
- });
- models.push({
- text: "Seq",
- comparator: "seq"
- });
- models.push({
- text: "Seq Desc",
- comparator: function(a, b) {
- return -a.get("seq").localeCompare(b.get("seq"));
- }
- });
- models.push({
- text: "Identity",
- comparator: "identity"
- });
- models.push({
- text: "Identity Desc",
- comparator: function(seq) {
- return -seq.get("identity");
- }
- });
- models.push({
- text: "Partition codes",
- comparator: "partition",
- precode: (function(_this) {
- return function() {
- _this.g.vis.set('labelPartition', true);
- return _this.model.each(function(el) {
- return el.set('partition', _.random(1, 3));
- });
- };
- })(this)
- });
- return models;
- }
-});
-
-
-
-},{"../menubuilder":75,"dom-helper":49,"underscore":59}],83:[function(require,module,exports){
-var MenuBuilder, SelectionMenu, sel;
-
-sel = require("../../g/selection/Selection");
-
-MenuBuilder = require("../menubuilder");
-
-module.exports = SelectionMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- return this.el.style.display = "inline-block";
- },
- render: function() {
- this.setName("Selection");
- this.addNode("Find Motif (supports RegEx)", (function(_this) {
- return function() {
- var leftestIndex, newSeli, origIndex, search, selcol;
- search = prompt("your search", "D");
- search = new RegExp(search, "gi");
- selcol = _this.g.selcol;
- newSeli = [];
- leftestIndex = origIndex = 100042;
- _this.model.each(function(seq) {
- var args, index, match, strSeq, _results;
- strSeq = seq.get("seq");
- _results = [];
- while (match = search.exec(strSeq)) {
- index = match.index;
- args = {
- xStart: index,
- xEnd: index + match[0].length - 1,
- seqId: seq.get("id")
- };
- newSeli.push(new sel.possel(args));
- _results.push(leftestIndex = Math.min(index, leftestIndex));
- }
- return _results;
- });
- if (newSeli.length === 0) {
- alert("no selection found");
- }
- selcol.reset(newSeli);
- if (leftestIndex === origIndex) {
- leftestIndex = 0;
- }
- return _this.g.zoomer.setLeftOffset(leftestIndex);
- };
- })(this));
- this.addNode("Invert columns", (function(_this) {
- return function() {
- var _i, _ref, _results;
- return _this.g.selcol.invertCol((function() {
- _results = [];
- for (var _i = 0, _ref = _this.model.getMaxLength(); 0 <= _ref ? _i <= _ref : _i >= _ref; 0 <= _ref ? _i++ : _i--){ _results.push(_i); }
- return _results;
- }).apply(this));
- };
- })(this));
- this.addNode("Invert rows", (function(_this) {
- return function() {
- return _this.g.selcol.invertRow(_this.model.pluck("id"));
- };
- })(this));
- this.addNode("Reset", (function(_this) {
- return function() {
- return _this.g.selcol.reset();
- };
- })(this));
- this.el.appendChild(this.buildDOM());
- return this;
- }
-});
-
-
-
-},{"../../g/selection/Selection":67,"../menubuilder":75}],84:[function(require,module,exports){
-var ImportMenu, MenuBuilder, dom;
-
-MenuBuilder = require("../menubuilder");
-
-dom = require("dom-helper");
-
-module.exports = ImportMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- this.el.style.display = "inline-block";
- return this.listenTo(this.g.vis, "change", this.render);
- },
- render: function() {
- var visEl, visElements, _i, _len;
- this.setName("Vis. elements");
- visElements = this.getVisElements();
- for (_i = 0, _len = visElements.length; _i < _len; _i++) {
- visEl = visElements[_i];
- this._addVisEl(visEl);
- }
- this.addNode("Reset", (function(_this) {
- return function() {
- _this.g.vis.set("labels", true);
- _this.g.vis.set("sequences", true);
- _this.g.vis.set("metacell", true);
- _this.g.vis.set("conserv", true);
- _this.g.vis.set("labelId", true);
- _this.g.vis.set("labelName", true);
- return _this.g.vis.set("labelCheckbox", false);
- };
- })(this));
- this.addNode("Toggle mouseover events", (function(_this) {
- return function() {
- return _this.g.config.set("registerMouseHover", !_this.g.config.get("registerMouseHover"));
- };
- })(this));
- dom.removeAllChilds(this.el);
- this.el.appendChild(this.buildDOM());
- return this;
- },
- _addVisEl: function(visEl) {
- var pre, style;
- style = {};
- if (this.g.vis.get(visEl.id)) {
- pre = "Hide ";
- style.color = "red";
- } else {
- pre = "Show ";
- style.color = "green";
- }
- return this.addNode(pre + visEl.name, (function(_this) {
- return function() {
- return _this.g.vis.set(visEl.id, !_this.g.vis.get(visEl.id));
- };
- })(this), {
- style: style
- });
- },
- getVisElements: function() {
- var vis;
- vis = [];
- vis.push({
- name: "Markers",
- id: "markers"
- });
- vis.push({
- name: "Labels",
- id: "labels"
- });
- vis.push({
- name: "Sequences",
- id: "sequences"
- });
- vis.push({
- name: "Meta info",
- id: "metacell"
- });
- vis.push({
- name: "Overviewbox",
- id: "overviewbox"
- });
- vis.push({
- name: "conserv",
- id: "conserv"
- });
- vis.push({
- name: "LabelName",
- id: "labelName"
- });
- vis.push({
- name: "LabelId",
- id: "labelId"
- });
- vis.push({
- name: "LabelCheckbox",
- id: "labelCheckbox"
- });
- return vis;
- }
-});
-
-
-
-},{"../menubuilder":75,"dom-helper":49}],85:[function(require,module,exports){
-var Feature, Model;
-
-Feature = require("./Feature");
-
-Model = require("backbone-thin").Model;
-
-module.exports = Feature = Model.extend({
- defaults: {
- xStart: -1,
- xEnd: -1,
- height: -1,
- text: "",
- fillColor: "red",
- fillOpacity: 0.5,
- type: "rectangle",
- borderSize: 1,
- borderColor: "black",
- borderOpacity: 0.5,
- validate: true
- },
- validate: function() {
- if (isNaN(this.attributes.xStart || isNaN(this.attributes.xEnd))) {
- return "features need integer start and end.";
- }
- },
- contains: function(index) {
- return this.attributes.xStart <= index && index <= this.attributes.xEnd;
- }
-});
-
-
-
-},{"./Feature":85,"backbone-thin":5}],86:[function(require,module,exports){
-var Collection, Feature, FeatureCol, _;
-
-Feature = require("./Feature");
-
-Collection = require("backbone-thin").Collection;
-
-_ = require("underscore");
-
-module.exports = FeatureCol = Collection.extend({
- model: Feature,
- constructor: function() {
- this.startOnCache = [];
- this.on("all", function() {
- return this.startOnCache = [];
- }, this);
- return Collection.apply(this, arguments);
- },
- startOn: function(index) {
- if (this.startOnCache[index] == null) {
- this.startOnCache[index] = this.where({
- xStart: index
- });
- }
- return this.startOnCache[index];
- },
- contains: function(index) {
- return this.reduce(function(el, memo) {
- return memo || el.contains(index);
- }, false);
- },
- getMinRows: function() {
- var len, rows, x;
- len = this.max(function(el) {
- return el.get("xEnd");
- });
- rows = (function() {
- var _i, _results;
- _results = [];
- for (x = _i = 1; 1 <= len ? _i <= len : _i >= len; x = 1 <= len ? ++_i : --_i) {
- _results.push(0);
- }
- return _results;
- })();
- this.each(function(el) {
- var _i, _ref, _ref1, _results;
- _results = [];
- for (x = _i = _ref = el.get("xStart"), _ref1 = feature.get("xEnd"); _i <= _ref1; x = _i += 1) {
- _results.push(rows[x]++);
- }
- return _results;
- });
- return _.max(rows);
- }
-});
-
-
-
-},{"./Feature":85,"backbone-thin":5,"underscore":59}],87:[function(require,module,exports){
-var Collection, SeqManager, Sequence;
-
-Sequence = require("./Sequence");
-
-Collection = require("backbone-thin").Collection;
-
-module.exports = SeqManager = Collection.extend({
- model: Sequence,
- constructor: function() {
- Collection.apply(this, arguments);
- this.on("all", function() {
- return this.lengthCache = null;
- }, this);
- this.lengthCache = null;
- return this;
- },
- getMaxLength: function() {
- if (this.models.length === 0) {
- return 0;
- }
- if (this.lengthCache === null) {
- this.lengthCache = this.max(function(seq) {
- return seq.get("seq").length;
- }).get("seq").length;
- }
- return this.lengthCache;
- },
- prev: function(model, endless) {
- var index;
- index = this.indexOf(model) - 1;
- if (index < 0 && endless) {
- index = this.length - 1;
- }
- return this.at(index);
- },
- next: function(model, endless) {
- var index;
- index = this.indexOf(model) + 1;
- if (index === this.length && endless) {
- index = 0;
- }
- return this.at(index);
- },
- calcHiddenSeqs: function(n) {
- var i, nNew, _i;
- nNew = n;
- for (i = _i = 0; 0 <= nNew ? _i <= nNew : _i >= nNew; i = 0 <= nNew ? ++_i : --_i) {
- if (this.at(i).get("hidden")) {
- nNew++;
- }
- }
- return nNew - n;
- }
-});
-
-
-
-},{"./Sequence":88,"backbone-thin":5}],88:[function(require,module,exports){
-var FeatureCol, Model, Sequence;
-
-Model = require("backbone-thin").Model;
-
-FeatureCol = require("./FeatureCol");
-
-module.exports = Sequence = Model.extend({
- defaults: {
- name: "",
- id: "",
- seq: ""
- },
- initialize: function() {
- this.set("grey", []);
- return this.set("features", new FeatureCol());
- }
-});
-
-
-
-},{"./FeatureCol":86,"backbone-thin":5}],89:[function(require,module,exports){
-module.exports.seq = require("./Sequence");
-
-module.exports.seqcol = require("./SeqCollection");
-
-module.exports.feature = require("./Feature");
-
-module.exports.featurecol = require("./FeatureCol");
-
-
-
-},{"./Feature":85,"./FeatureCol":86,"./SeqCollection":87,"./Sequence":88}],90:[function(require,module,exports){
-var Colorator, Columns, Config, Consensus, Eventhandler, SelCol, SeqCollection, Stage, VisOrdering, Visibility, Zoomer, boneView;
-
-SeqCollection = require("./model/SeqCollection");
-
-Colorator = require("./g/colorator");
-
-Consensus = require("./g/consensus");
-
-Columns = require("./g/columns");
-
-Config = require("./g/config");
-
-SelCol = require("./g/selection/SelectionCol");
-
-Visibility = require("./g/visibility");
-
-VisOrdering = require("./g/visOrdering");
-
-Zoomer = require("./g/zoomer");
-
-boneView = require("backbone-childs");
-
-Eventhandler = require("biojs-events");
-
-Stage = require("./views/Stage");
-
-module.exports = boneView.extend({
- initialize: function(data) {
- var _ref;
- if (data.columns == null) {
- data.columns = {};
- }
- if (data.conf == null) {
- data.conf = {};
- }
- if (data.vis == null) {
- data.vis = {};
- }
- if (data.zoomer == null) {
- if (!((_ref = data.visorder) != null ? _ref : data.zoomer = {})) {
- data.visorder = {};
- }
- }
- this.g = Eventhandler.mixin({});
- if (data.seqs === void 0 || data.seqs.length === 0) {
- console.log("warning. empty seqs.");
- }
- this.seqs = new SeqCollection(data.seqs);
- this.g.config = new Config(data.conf);
- this.g.consensus = new Consensus();
- this.g.columns = new Columns(data.columns);
- this.g.colorscheme = new Colorator();
- this.g.selcol = new SelCol([], {
- g: this.g
- });
- this.g.vis = new Visibility(data.vis);
- this.g.visorder = new VisOrdering(data.visorder);
- this.g.zoomer = new Zoomer(data.zoomer, {
- g: this.g
- });
- this.addView("stage", new Stage({
- model: this.seqs,
- g: this.g
- }));
- this.el.setAttribute("class", "biojs_msa_div");
- if (this.g.config.get("eventBus") === true) {
- return this.startEventBus();
- }
- },
- startEventBus: function() {
- var busObjs, key, _i, _len, _results;
- busObjs = ["config", "consensus", "columns", "colorscheme", "selcol", "vis", "visorder", "zoomer"];
- _results = [];
- for (_i = 0, _len = busObjs.length; _i < _len; _i++) {
- key = busObjs[_i];
- _results.push(this._proxyToG(key));
- }
- return _results;
- },
- _proxyToG: function(key) {
- return this.listenTo(this.g[key], "all", function(name, prev, now) {
- if (name === "change") {
- return;
- }
- return this.g.trigger(key + ":" + name, now);
- });
- },
- render: function() {
- this.renderSubviews();
- this.g.vis.set("loaded", true);
- return this;
- }
-});
-
-
-
-},{"./g/colorator":63,"./g/columns":64,"./g/config":65,"./g/consensus":66,"./g/selection/SelectionCol":68,"./g/visOrdering":69,"./g/visibility":70,"./g/zoomer":71,"./model/SeqCollection":87,"./views/Stage":100,"backbone-childs":3,"biojs-events":14}],91:[function(require,module,exports){
-var BMath;
-
-module.exports = BMath = (function() {
- function BMath() {}
-
- BMath.randomInt = function(lower, upper) {
- var _ref, _ref1;
- if (upper == null) {
- _ref = [0, lower], lower = _ref[0], upper = _ref[1];
- }
- if (lower > upper) {
- _ref1 = [upper, lower], lower = _ref1[0], upper = _ref1[1];
- }
- return Math.floor(Math.random() * (upper - lower + 1) + lower);
- };
-
- BMath.uniqueId = function(length) {
- var id;
- if (length == null) {
- length = 8;
- }
- id = "";
- while (id.length < length) {
- id += Math.random().toString(36).substr(2);
- }
- return id.substr(0, length);
- };
-
- BMath.getRandomInt = function(min, max) {
- return Math.floor(Math.random() * (max - min + 1)) + min;
- };
-
- return BMath;
-
-})();
-
-
-
-},{}],92:[function(require,module,exports){
-module.exports.bmath = require("./bmath");
-
-module.exports.proxy = require("./proxy");
-
-module.exports.seqgen = require("./seqgen");
-
-
-
-},{"./bmath":91,"./proxy":93,"./seqgen":94}],93:[function(require,module,exports){
-var proxy;
-
-module.exports = proxy = {
- corsURL: (function(_this) {
- return function(url, g) {
- _this.g = g;
- if (document.URL.indexOf('localhost') >= 0 && url[0] === "/") {
- return url;
- }
- url = url.replace("www\.", "");
- url = url.replace("http://", "");
- url = _this.g.config.get('importProxy') + url;
- return url;
- };
- })(this)
-};
-
-
-
-},{}],94:[function(require,module,exports){
-var BMath, Sequence, seqgen;
-
-Sequence = require("biojs-model").seq;
-
-BMath = require("./bmath");
-
-seqgen = module.exports = {
- _generateSequence: function(len) {
- var i, possible, text, _i, _ref;
- text = "";
- possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
- for (i = _i = 0, _ref = len - 1; _i <= _ref; i = _i += 1) {
- text += possible.charAt(Math.floor(Math.random() * possible.length));
- }
- return text;
- },
- getDummySequences: function(len, seqLen) {
- var i, seqs, _i;
- seqs = [];
- if (len == null) {
- len = BMath.getRandomInt(3, 5);
- }
- if (seqLen == null) {
- seqLen = BMath.getRandomInt(50, 200);
- }
- for (i = _i = 1; _i <= len; i = _i += 1) {
- seqs.push(new Sequence(seqgen._generateSequence(seqLen), "seq" + i, "r" + i));
- }
- return seqs;
- }
-};
-
-
-
-},{"./bmath":91,"biojs-model":27}],95:[function(require,module,exports){
-var Base, Line, Polygon, Rect, setAttr, svgns;
-
-svgns = "http://www.w3.org/2000/svg";
-
-setAttr = function(obj, opts) {
- var name, value;
- for (name in opts) {
- value = opts[name];
- obj.setAttributeNS(null, name, value);
- }
- return obj;
-};
-
-Base = function(opts) {
- var svg;
- svg = document.createElementNS(svgns, 'svg');
- svg.setAttribute("width", opts.width);
- svg.setAttribute("height", opts.height);
- return svg;
-};
-
-Rect = function(opts) {
- var rect;
- rect = document.createElementNS(svgns, 'rect');
- return setAttr(rect, opts);
-};
-
-Line = function(opts) {
- var line;
- line = document.createElementNS(svgns, 'line');
- return setAttr(line, opts);
-};
-
-Polygon = function(opts) {
- var line;
- line = document.createElementNS(svgns, 'polygon');
- return setAttr(line, opts);
-};
-
-module.exports.rect = Rect;
-
-module.exports.line = Line;
-
-module.exports.polygon = Polygon;
-
-module.exports.base = Base;
-
-
-
-},{}],96:[function(require,module,exports){
-var LabelBlock, SeqBlock, boneView;
-
-boneView = require("backbone-childs");
-
-SeqBlock = require("./CanvasSeqBlock");
-
-LabelBlock = require("./labels/LabelBlock");
-
-module.exports = boneView.extend({
- initialize: function(data) {
- var labelblock, seqblock;
- this.g = data.g;
- if (true) {
- labelblock = new LabelBlock({
- model: this.model,
- g: this.g
- });
- labelblock.ordering = -1;
- this.addView("labelblock", labelblock);
- }
- if (this.g.vis.get("sequences")) {
- seqblock = new SeqBlock({
- model: this.model,
- g: this.g
- });
- seqblock.ordering = 0;
- this.addView("seqblock", seqblock);
- }
- this.listenTo(this.g.zoomer, "change:alignmentHeight", this.adjustHeight);
- return this.listenTo(this.g.columns, "change:hidden", this.adjustHeight);
- },
- render: function() {
- this.renderSubviews();
- this.el.className = "biojs_msa_albody";
- this.el.style.whiteSpace = "nowrap";
- this.adjustHeight();
- return this;
- },
- adjustHeight: function() {
- if (this.g.zoomer.get("alignmentHeight") === "auto") {
- this.el.style.height = (this.g.zoomer.get("rowHeight") * this.model.length) + 5;
- } else {
- this.el.style.height = this.g.zoomer.get("alignmentHeight");
- }
- return this.el.style.width = this.getWidth() + 15;
- },
- getWidth: function() {
- var width;
- width = 0;
- if (this.g.vis.get("labels")) {
- width += this.g.zoomer.get("labelWidth");
- }
- if (this.g.vis.get("metacell")) {
- width += this.g.zoomer.get("metaWidth");
- }
- if (this.g.vis.get("sequences")) {
- width += this.g.zoomer.get("alignmentWidth");
- }
- return width;
- }
-});
-
-
-
-},{"./CanvasSeqBlock":98,"./labels/LabelBlock":104,"backbone-childs":3}],97:[function(require,module,exports){
-var CanvasCharCache, Events;
-
-Events = require("biojs-events");
-
-module.exports = CanvasCharCache = (function() {
- function CanvasCharCache(g) {
- this.g = g;
- this.cache = {};
- this.cacheHeight = 0;
- this.cacheWidth = 0;
- }
-
- CanvasCharCache.prototype.getFontTile = function(letter, width, height) {
- if (width !== this.cacheWidth || height !== this.cacheHeight) {
- this.cacheHeight = height;
- this.cacheWidth = width;
- this.cache = {};
- }
- if (this.cache[letter] === void 0) {
- this.createTile(letter, width, height);
- }
- return this.cache[letter];
- };
-
- CanvasCharCache.prototype.createTile = function(letter, width, height) {
- var canvas;
- canvas = this.cache[letter] = document.createElement("canvas");
- canvas.width = width;
- canvas.height = height;
- this.ctx = canvas.getContext('2d');
- this.ctx.font = this.g.zoomer.get("residueFont");
- this.ctx.textBaseline = 'middle';
- this.ctx.textAlign = "center";
- return this.ctx.fillText(letter, width / 2, height / 2, width);
- };
-
- return CanvasCharCache;
-
-})();
-
-
-
-},{"biojs-events":14}],98:[function(require,module,exports){
-var CharCache, boneView, colorSelector, jbone, mouse, _;
-
-boneView = require("backbone-childs");
-
-mouse = require("mouse-pos");
-
-colorSelector = require("biojs-util-colorschemes").selector;
-
-_ = require("underscore");
-
-jbone = require("jbone");
-
-CharCache = require("./CanvasCharCache");
-
-module.exports = boneView.extend({
- tagName: "canvas",
- initialize: function(data) {
- this.g = data.g;
- this.listenTo(this.g.zoomer, "change:_alignmentScrollLeft change:_alignmentScrollTop", function(model, value, options) {
- if (((options != null ? options.origin : void 0) == null) || options.origin !== "canvasseq") {
- return this.render();
- }
- });
- this.listenTo(this.g.columns, "change:hidden", this.render);
- this.listenTo(this.g.zoomer, "change:alignmentWidth", this.render);
- this.listenTo(this.g.colorscheme, "change", this.render);
- this.listenTo(this.g.selcol, "reset add", this.render);
- this.el.style.display = "inline-block";
- this.el.style.overflowX = "hidden";
- this.el.style.overflowY = "hidden";
- this.el.className = "biojs_msa_seqblock";
- this.ctx = this.el.getContext('2d');
- this.cache = new CharCache(this.g);
- this.throttleTime = 0;
- this.throttleCounts = 0;
- if (document.documentElement.style.webkitAppearance != null) {
- this.throttledDraw = function() {
- var start, tTime;
- start = +new Date();
- this.draw();
- this.throttleTime += +new Date() - start;
- this.throttleCounts++;
- if (this.throttleCounts > 15) {
- tTime = Math.ceil(this.throttleTime / this.throttleCounts);
- console.log("avgDrawTime/WebKit", tTime);
- return this.throttledDraw = this.draw;
- }
- };
- } else {
- this.throttledDraw = _.throttle(this.throttledDraw, 30);
- }
- return this.manageEvents();
- },
- throttledDraw: function() {
- var start, tTime;
- start = +new Date();
- this.draw();
- this.throttleTime += +new Date() - start;
- this.throttleCounts++;
- if (this.throttleCounts > 15) {
- tTime = Math.ceil(this.throttleTime / this.throttleCounts);
- console.log("avgDrawTime", tTime);
- tTime *= 1.2;
- tTime = Math.max(20, tTime);
- return this.throttledDraw = _.throttle(this.draw, tTime);
- }
- },
- manageEvents: function() {
- var events;
- events = {};
- events.mousedown = "_onmousedown";
- events.touchstart = "_ontouchstart";
- if (this.g.config.get("registerMouseClicks")) {
- events.dblclick = "_onclick";
- }
- if (this.g.config.get("registerMouseHover")) {
- events.mousein = "_onmousein";
- events.mouseout = "_onmouseout";
- }
- events.mousewheel = "_onmousewheel";
- events.DOMMouseScroll = "_onmousewheel";
- this.delegateEvents(events);
- this.listenTo(this.g.config, "change:registerMouseHover", this.manageEvents);
- this.listenTo(this.g.config, "change:registerMouseClick", this.manageEvents);
- return this.dragStart = [];
- },
- draw: function() {
- var rectHeight;
- this.el.width = this.el.width;
- rectHeight = this.g.zoomer.get("rowHeight");
- this.ctx.globalAlpha = this.g.colorscheme.get("opacity");
- this.drawSeqs(function(data) {
- return this.drawSeq(data, this._drawRect);
- });
- this.ctx.globalAlpha = 1;
- this.drawSeqs(function(data) {
- return this.drawSeq(data, this._drawLetter);
- });
- return this.drawSeqs(this.drawSeqExtended);
- },
- drawSeqs: function(callback) {
- var hidden, i, rectHeight, start, y, _i, _ref, _results;
- rectHeight = this.g.zoomer.get("rowHeight");
- hidden = this.g.columns.get("hidden");
- start = Math.max(0, Math.abs(Math.ceil(-this.g.zoomer.get('_alignmentScrollTop') / rectHeight)));
- y = -Math.abs(-this.g.zoomer.get('_alignmentScrollTop') % rectHeight);
- _results = [];
- for (i = _i = start, _ref = this.model.length - 1; _i <= _ref; i = _i += 1) {
- if (this.model.at(i).get('hidden')) {
- continue;
- }
- callback.call(this, {
- model: this.model.at(i),
- y: y,
- hidden: hidden
- });
- y = y + rectHeight;
- if (y > this.el.height) {
- break;
- } else {
- _results.push(void 0);
- }
- }
- return _results;
- },
- drawSeq: function(data, callback) {
- var c, elWidth, j, rectHeight, rectWidth, res, seq, start, x, y, _i, _ref, _results;
- seq = data.model.get("seq");
- y = data.y;
- rectWidth = this.g.zoomer.get("columnWidth");
- rectHeight = this.g.zoomer.get("rowHeight");
- start = Math.max(0, Math.abs(Math.ceil(-this.g.zoomer.get('_alignmentScrollLeft') / rectWidth)));
- x = -Math.abs(-this.g.zoomer.get('_alignmentScrollLeft') % rectWidth);
- res = {
- rectWidth: rectWidth,
- rectHeight: rectHeight,
- y: y
- };
- elWidth = this.el.width;
- _results = [];
- for (j = _i = start, _ref = seq.length - 1; _i <= _ref; j = _i += 1) {
- c = seq[j];
- c = c.toUpperCase();
- res.x = x;
- res.c = c;
- if (data.hidden.indexOf(j) < 0) {
- callback(this, res);
- } else {
- continue;
- }
- x = x + rectWidth;
- if (x > elWidth) {
- break;
- } else {
- _results.push(void 0);
- }
- }
- return _results;
- },
- _drawRect: function(that, data) {
- var color;
- color = that.color[data.c];
- if (color != null) {
- that.ctx.fillStyle = color;
- return that.ctx.fillRect(data.x, data.y, data.rectWidth, data.rectHeight);
- }
- },
- _drawLetter: function(that, data) {
- return that.ctx.drawImage(that.cache.getFontTile(data.c, data.rectWidth, data.rectHeight), data.x, data.y, data.rectWidth, data.rectHeight);
- },
- drawSeqExtended: function(data) {
- var f, features, j, mNextSel, mPrevSel, rectHeight, rectWidth, selection, seq, start, starts, x, xZero, yZero, _i, _j, _len, _ref, _ref1;
- seq = data.model.get("seq");
- rectWidth = this.g.zoomer.get("columnWidth");
- rectHeight = this.g.zoomer.get("rowHeight");
- start = Math.max(0, Math.abs(Math.ceil(-this.g.zoomer.get('_alignmentScrollLeft') / rectWidth)));
- x = -Math.abs(-this.g.zoomer.get('_alignmentScrollLeft') % rectWidth);
- xZero = x - start * rectWidth;
- selection = this._getSelection(data.model);
- _ref = this._getPrevNextSelection(data.model), mPrevSel = _ref[0], mNextSel = _ref[1];
- features = data.model.get("features");
- yZero = data.y;
- for (j = _i = start, _ref1 = seq.length - 1; _i <= _ref1; j = _i += 1) {
- starts = features.startOn(j);
- if (data.hidden.indexOf(j) >= 0) {
- continue;
- }
- if (starts.length > 0) {
- for (_j = 0, _len = starts.length; _j < _len; _j++) {
- f = starts[_j];
- this.appendFeature({
- f: f,
- xZero: x,
- yZero: yZero
- });
- }
- }
- x = x + rectWidth;
- if (x > this.el.width) {
- break;
- }
- }
- return this._appendSelection({
- model: data.model,
- xZero: xZero,
- yZero: yZero,
- hidden: data.hidden
- });
- },
- render: function() {
- this.el.setAttribute('height', this.g.zoomer.get("alignmentHeight"));
- this.el.setAttribute('width', this.g.zoomer.get("alignmentWidth"));
- this.g.zoomer._adjustWidth(this.el, this.model);
- this.g.zoomer._checkScrolling(this._checkScrolling([this.g.zoomer.get('_alignmentScrollLeft'), this.g.zoomer.get('_alignmentScrollTop')]), {
- header: "canvasseq"
- });
- this.color = colorSelector.getColor(this.g.colorscheme.get("scheme"));
- this.throttledDraw();
- return this;
- },
- _onmousemove: function(e, reversed) {
- var dragEnd, i, relDist, relEnd, scaleFactor, scrollCorrected, _i, _j, _k;
- if (this.dragStart.length === 0) {
- return;
- }
- dragEnd = mouse.abs(e);
- relEnd = [dragEnd[0] - this.dragStart[0], dragEnd[1] - this.dragStart[1]];
- scaleFactor = this.g.zoomer.get("canvasEventScale");
- if (reversed) {
- scaleFactor = 3;
- }
- for (i = _i = 0; _i <= 1; i = _i += 1) {
- relEnd[i] = relEnd[i] * scaleFactor;
- }
- relDist = [this.dragStartScroll[0] - relEnd[0], this.dragStartScroll[1] - relEnd[1]];
- for (i = _j = 0; _j <= 1; i = _j += 1) {
- relDist[i] = Math.round(relDist[i]);
- }
- scrollCorrected = this._checkScrolling(relDist);
- this.g.zoomer._checkScrolling(scrollCorrected, {
- origin: "canvasseq"
- });
- for (i = _k = 0; _k <= 1; i = _k += 1) {
- if (scrollCorrected[i] !== relDist[i]) {
- if (scrollCorrected[i] === 0) {
- this.dragStart[i] = dragEnd[i];
- this.dragStartScroll[i] = 0;
- } else {
- this.dragStart[i] = dragEnd[i] - scrollCorrected[i];
- }
- }
- }
- this.throttledDraw();
- if (e.preventDefault != null) {
- e.preventDefault();
- return e.stopPropagation();
- }
- },
- _ontouchmove: function(e) {
- this._onmousemove(e.changedTouches[0], true);
- e.preventDefault();
- return e.stopPropagation();
- },
- _onmousedown: function(e) {
- this.dragStart = mouse.abs(e);
- this.dragStartScroll = [this.g.zoomer.get('_alignmentScrollLeft'), this.g.zoomer.get('_alignmentScrollTop')];
- jbone(document.body).on('mousemove.overmove', (function(_this) {
- return function(e) {
- return _this._onmousemove(e);
- };
- })(this));
- jbone(document.body).on('mouseup.overup', (function(_this) {
- return function() {
- return _this._cleanup();
- };
- })(this));
- return e.preventDefault();
- },
- _ontouchstart: function(e) {
- this.dragStart = mouse.abs(e.changedTouches[0]);
- this.dragStartScroll = [this.g.zoomer.get('_alignmentScrollLeft'), this.g.zoomer.get('_alignmentScrollTop')];
- jbone(document.body).on('touchmove.overtmove', (function(_this) {
- return function(e) {
- return _this._ontouchmove(e);
- };
- })(this));
- return jbone(document.body).on('touchend.overtend touchleave.overtleave touchcancel.overtcanel', (function(_this) {
- return function(e) {
- return _this._touchCleanup(e);
- };
- })(this));
- },
- _onmousewinout: function(e) {
- if (e.toElement === document.body.parentNode) {
- return this._cleanup();
- }
- },
- _cleanup: function() {
- this.dragStart = [];
- jbone(document.body).off('.overmove');
- jbone(document.body).off('.overup');
- return jbone(document.body).off('.overout');
- },
- _touchCleanup: function(e) {
- if (e.changedTouches.length > 0) {
- this._onmousemove(e.changedTouches[0], true);
- }
- this.dragStart = [];
- jbone(document.body).off('.overtmove');
- jbone(document.body).off('.overtend');
- jbone(document.body).off('.overtleave');
- return jbone(document.body).off('.overtcancel');
- },
- _onmousewheel: function(e) {
- var delta;
- delta = mouse.wheelDelta(e);
- this.g.zoomer.set('_alignmentScrollLeft', this.g.zoomer.get('_alignmentScrollLeft') + delta[0]);
- this.g.zoomer.set('_alignmentScrollTop', this.g.zoomer.get('_alignmentScrollTop') + delta[1]);
- return e.preventDefault();
- },
- _onclick: function(e) {
- this.g.trigger("residue:click", this._getClickPos(e));
- return this.throttledDraw();
- },
- _onmousein: function(e) {
- this.g.trigger("residue:click", this._getClickPos(e));
- return this.throttledDraw();
- },
- _onmouseout: function(e) {
- this.g.trigger("residue:click", this._getClickPos(e));
- return this.throttledDraw();
- },
- _getClickPos: function(e) {
- var coords, seqId, x, y;
- coords = mouse.rel(e);
- coords[0] += this.g.zoomer.get("_alignmentScrollLeft");
- coords[1] += this.g.zoomer.get("_alignmentScrollTop");
- x = Math.floor(coords[0] / this.g.zoomer.get("columnWidth"));
- y = Math.floor(coords[1] / this.g.zoomer.get("rowHeight"));
- x += this.g.columns.calcHiddenColumns(x);
- y += this.model.calcHiddenSeqs(y);
- x = Math.max(0, x);
- y = Math.max(0, y);
- seqId = this.model.at(y).get("id");
- return {
- seqId: seqId,
- rowPos: x,
- evt: e
- };
- },
- _checkScrolling: function(scrollObj) {
- var i, max, _i;
- max = [this.model.getMaxLength() * this.g.zoomer.get("columnWidth") - this.g.zoomer.get('alignmentWidth'), this.model.length * this.g.zoomer.get("rowHeight") - this.g.zoomer.get('alignmentHeight')];
- for (i = _i = 0; _i <= 1; i = _i += 1) {
- if (scrollObj[i] > max[i]) {
- scrollObj[i] = max[i];
- }
- if (scrollObj[i] < 0) {
- scrollObj[i] = 0;
- }
- }
- return scrollObj;
- },
- _getSelection: function(model) {
- var maxLen, n, rows, sel, selection, sels, _i, _j, _k, _len, _ref, _ref1, _ref2;
- maxLen = model.get("seq").length;
- selection = [];
- sels = this.g.selcol.getSelForRow(model.get("id"));
- rows = _.find(sels, function(el) {
- return el.get("type") === "row";
- });
- if (rows != null) {
- for (n = _i = 0, _ref = maxLen - 1; _i <= _ref; n = _i += 1) {
- selection.push(n);
- }
- } else if (sels.length > 0) {
- for (_j = 0, _len = sels.length; _j < _len; _j++) {
- sel = sels[_j];
- for (n = _k = _ref1 = sel.get("xStart"), _ref2 = sel.get("xEnd"); _k <= _ref2; n = _k += 1) {
- selection.push(n);
- }
- }
- }
- return selection;
- },
- appendFeature: function(data) {
- var beforeStyle, beforeWidth, boxHeight, boxWidth, f, width;
- f = data.f;
- boxWidth = this.g.zoomer.get("columnWidth");
- boxHeight = this.g.zoomer.get("rowHeight");
- width = (f.get("xEnd") - f.get("xStart")) * boxWidth;
- beforeWidth = this.ctx.lineWidth;
- this.ctx.lineWidth = 3;
- beforeStyle = this.ctx.strokeStyle;
- this.ctx.strokeStyle = f.get("fillColor");
- this.ctx.strokeRect(data.xZero, data.yZero, width, boxHeight);
- this.ctx.strokeStyle = beforeStyle;
- return this.ctx.lineWidth = beforeWidth;
- },
- _appendSelection: function(data) {
- var boxHeight, boxWidth, hiddenOffset, k, mNextSel, mPrevSel, n, selection, seq, _i, _ref, _ref1, _results;
- seq = data.model.get("seq");
- selection = this._getSelection(data.model);
- _ref = this._getPrevNextSelection(data.model), mPrevSel = _ref[0], mNextSel = _ref[1];
- boxWidth = this.g.zoomer.get("columnWidth");
- boxHeight = this.g.zoomer.get("rowHeight");
- if (selection.length === 0) {
- return;
- }
- hiddenOffset = 0;
- _results = [];
- for (n = _i = 0, _ref1 = seq.length - 1; _i <= _ref1; n = _i += 1) {
- if (data.hidden.indexOf(n) >= 0) {
- _results.push(hiddenOffset++);
- } else {
- k = n - hiddenOffset;
- if (selection.indexOf(n) >= 0 && (k === 0 || selection.indexOf(n - 1) < 0)) {
- _results.push(this._renderSelection({
- n: n,
- k: k,
- selection: selection,
- mPrevSel: mPrevSel,
- mNextSel: mNextSel,
- xZero: data.xZero,
- yZero: data.yZero,
- model: data.model
- }));
- } else {
- _results.push(void 0);
- }
- }
- }
- return _results;
- },
- _renderSelection: function(data) {
- var beforeStyle, beforeWidth, boxHeight, boxWidth, hidden, i, k, mNextSel, mPrevSel, n, selection, selectionLength, totalWidth, xPart, xPos, xZero, yZero, _i, _j, _ref, _ref1;
- xZero = data.xZero;
- yZero = data.yZero;
- n = data.n;
- k = data.k;
- selection = data.selection;
- mPrevSel = data.mPrevSel;
- mNextSel = data.mNextSel;
- selectionLength = 0;
- for (i = _i = n, _ref = data.model.get("seq").length - 1; _i <= _ref; i = _i += 1) {
- if (selection.indexOf(i) >= 0) {
- selectionLength++;
- } else {
- break;
- }
- }
- boxWidth = this.g.zoomer.get("columnWidth");
- boxHeight = this.g.zoomer.get("rowHeight");
- totalWidth = (boxWidth * selectionLength) + 1;
- hidden = this.g.columns.get('hidden');
- this.ctx.beginPath();
- beforeWidth = this.ctx.lineWidth;
- this.ctx.lineWidth = 3;
- beforeStyle = this.ctx.strokeStyle;
- this.ctx.strokeStyle = "#FF0000";
- xZero += k * boxWidth;
- xPart = 0;
- for (i = _j = 0, _ref1 = selectionLength - 1; 0 <= _ref1 ? _j <= _ref1 : _j >= _ref1; i = 0 <= _ref1 ? ++_j : --_j) {
- xPos = n + i;
- if (hidden.indexOf(xPos) >= 0) {
- continue;
- }
- if (!((mPrevSel != null) && mPrevSel.indexOf(xPos) >= 0)) {
- this.ctx.moveTo(xZero + xPart, yZero);
- this.ctx.lineTo(xPart + boxWidth + xZero, yZero);
- }
- if (!((mNextSel != null) && mNextSel.indexOf(xPos) >= 0)) {
- this.ctx.moveTo(xPart + xZero, boxHeight + yZero);
- this.ctx.lineTo(xPart + boxWidth + xZero, boxHeight + yZero);
- }
- xPart += boxWidth;
- }
- this.ctx.moveTo(xZero, yZero);
- this.ctx.lineTo(xZero, boxHeight + yZero);
- this.ctx.moveTo(xZero + totalWidth, yZero);
- this.ctx.lineTo(xZero + totalWidth, boxHeight + yZero);
- this.ctx.stroke();
- this.ctx.strokeStyle = beforeStyle;
- return this.ctx.lineWidth = beforeWidth;
- },
- _getPrevNextSelection: function(model) {
- var mNextSel, mPrevSel, modelNext, modelPrev;
- modelPrev = model.collection.prev(model);
- modelNext = model.collection.next(model);
- if (modelPrev != null) {
- mPrevSel = this._getSelection(modelPrev);
- }
- if (modelNext != null) {
- mNextSel = this._getSelection(modelNext);
- }
- return [mPrevSel, mNextSel];
- }
-});
-
-
-
-},{"./CanvasCharCache":97,"backbone-childs":3,"biojs-util-colorschemes":29,"jbone":50,"mouse-pos":51,"underscore":59}],99:[function(require,module,exports){
-var OverviewBox, colorSelector, jbone, mouse, selection, view, _;
-
-view = require("backbone-viewj");
-
-mouse = require("mouse-pos");
-
-selection = require("../g/selection/Selection");
-
-colorSelector = require("biojs-util-colorschemes").selector;
-
-jbone = require("jbone");
-
-_ = require("underscore");
-
-module.exports = OverviewBox = view.extend({
- className: "biojs_msa_overviewbox",
- tagName: "canvas",
- initialize: function(data) {
- this.g = data.g;
- this.listenTo(this.g.zoomer, "change:boxRectWidth change:boxRectHeight", this.render);
- this.listenTo(this.g.selcol, "add reset change", this.render);
- this.listenTo(this.g.columns, "change:hidden", this.render);
- this.listenTo(this.g.colorscheme, "change:showLowerCase", this.render);
- this.listenTo(this.model, "change", _.debounce(this.render, 5));
- this.color = colorSelector.getColor(this.g.colorscheme.get("scheme"));
- this.listenTo(this.g.colorscheme, "change:scheme", function() {
- this.color = colorSelector.getColor(this.g.colorscheme.get("scheme"));
- return this.render();
- });
- return this.dragStart = [];
- },
- events: {
- click: "_onclick",
- mousedown: "_onmousedown"
- },
- render: function() {
- var c, color, hidden, i, j, rectHeight, rectWidth, seq, showLowerCase, x, y, _i, _j, _ref, _ref1;
- this._createCanvas();
- this.el.textContent = "overview";
- this.ctx.fillStyle = "#999999";
- this.ctx.fillRect(0, 0, this.el.width, this.el.height);
- rectWidth = this.g.zoomer.get("boxRectWidth");
- rectHeight = this.g.zoomer.get("boxRectHeight");
- hidden = this.g.columns.get("hidden");
- showLowerCase = this.g.colorscheme.get("showLowerCase");
- y = -rectHeight;
- for (i = _i = 0, _ref = this.model.length - 1; _i <= _ref; i = _i += 1) {
- seq = this.model.at(i).get("seq");
- x = 0;
- y = y + rectHeight;
- if (this.model.at(i).get("hidden")) {
- console.log(this.model.at(i).get("hidden"));
- this.ctx.fillStyle = "grey";
- this.ctx.fillRect(0, y, seq.length * rectWidth, rectHeight);
- continue;
- }
- for (j = _j = 0, _ref1 = seq.length - 1; _j <= _ref1; j = _j += 1) {
- c = seq[j];
- if (showLowerCase) {
- c = c.toUpperCase();
- }
- color = this.color[c];
- if (hidden.indexOf(j) >= 0) {
- color = "grey";
- }
- if (color != null) {
- this.ctx.fillStyle = color;
- this.ctx.fillRect(x, y, rectWidth, rectHeight);
- }
- x = x + rectWidth;
- }
- }
- return this._drawSelection();
- },
- _drawSelection: function() {
- var i, maxHeight, pos, rectHeight, rectWidth, sel, seq, _i, _ref;
- if (this.dragStart.length > 0 && !this.prolongSelection) {
- return;
- }
- rectWidth = this.g.zoomer.get("boxRectWidth");
- rectHeight = this.g.zoomer.get("boxRectHeight");
- maxHeight = rectHeight * this.model.length;
- this.ctx.fillStyle = "#ffff00";
- this.ctx.globalAlpha = 0.9;
- for (i = _i = 0, _ref = this.g.selcol.length - 1; _i <= _ref; i = _i += 1) {
- sel = this.g.selcol.at(i);
- if (sel.get('type') === 'column') {
- this.ctx.fillRect(rectWidth * sel.get('xStart'), 0, rectWidth * (sel.get('xEnd') - sel.get('xStart') + 1), maxHeight);
- } else if (sel.get('type') === 'row') {
- seq = (this.model.filter(function(el) {
- return el.get('id') === sel.get('seqId');
- }))[0];
- pos = this.model.indexOf(seq);
- this.ctx.fillRect(0, rectHeight * pos, rectWidth * seq.get('seq').length, rectHeight);
- } else if (sel.get('type') === 'pos') {
- seq = (this.model.filter(function(el) {
- return el.get('id') === sel.get('seqId');
- }))[0];
- pos = this.model.indexOf(seq);
- this.ctx.fillRect(rectWidth * sel.get('xStart'), rectHeight * pos, rectWidth * (sel.get('xEnd') - sel.get('xStart') + 1), rectHeight);
- }
- }
- return this.ctx.globalAlpha = 1;
- },
- _onclick: function(evt) {
- return this.g.trigger("meta:click", {
- seqId: this.model.get("id", {
- evt: evt
- })
- });
- },
- _onmousemove: function(e) {
- var rect;
- if (this.dragStart.length === 0) {
- return;
- }
- this.render();
- this.ctx.fillStyle = "#ffff00";
- this.ctx.globalAlpha = 0.9;
- rect = this._calcSelection(mouse.abs(e));
- this.ctx.fillRect(rect[0][0], rect[1][0], rect[0][1] - rect[0][0], rect[1][1] - rect[1][0]);
- e.preventDefault();
- return e.stopPropagation();
- },
- _onmousedown: function(e) {
- this.dragStart = mouse.abs(e);
- this.dragStartRel = mouse.rel(e);
- if (e.ctrlKey || e.metaKey) {
- this.prolongSelection = true;
- } else {
- this.prolongSelection = false;
- }
- jbone(document.body).on('mousemove.overmove', (function(_this) {
- return function(e) {
- return _this._onmousemove(e);
- };
- })(this));
- jbone(document.body).on('mouseup.overup', (function(_this) {
- return function(e) {
- return _this._onmouseup(e);
- };
- })(this));
- return this.dragStart;
- },
- _calcSelection: function(dragMove) {
- var dragRel, i, rect, _i, _j;
- dragRel = [dragMove[0] - this.dragStart[0], dragMove[1] - this.dragStart[1]];
- for (i = _i = 0; _i <= 1; i = _i += 1) {
- dragRel[i] = this.dragStartRel[i] + dragRel[i];
- }
- rect = [[this.dragStartRel[0], dragRel[0]], [this.dragStartRel[1], dragRel[1]]];
- for (i = _j = 0; _j <= 1; i = _j += 1) {
- if (rect[i][1] < rect[i][0]) {
- rect[i] = [rect[i][1], rect[i][0]];
- }
- rect[i][0] = Math.max(rect[i][0], 0);
- }
- return rect;
- },
- _endSelection: function(dragEnd) {
- var args, i, j, rect, selis, _i, _j, _k, _ref, _ref1;
- jbone(document.body).off('.overmove');
- jbone(document.body).off('.overup');
- if (this.dragStart.length === 0) {
- return;
- }
- rect = this._calcSelection(dragEnd);
- for (i = _i = 0; _i <= 1; i = ++_i) {
- rect[0][i] = Math.floor(rect[0][i] / this.g.zoomer.get("boxRectWidth"));
- }
- for (i = _j = 0; _j <= 1; i = ++_j) {
- rect[1][i] = Math.floor(rect[1][i] / this.g.zoomer.get("boxRectHeight"));
- }
- rect[0][1] = Math.min(this.model.getMaxLength() - 1, rect[0][1]);
- rect[1][1] = Math.min(this.model.length - 1, rect[1][1]);
- selis = [];
- for (j = _k = _ref = rect[1][0], _ref1 = rect[1][1]; _k <= _ref1; j = _k += 1) {
- args = {
- seqId: this.model.at(j).get('id'),
- xStart: rect[0][0],
- xEnd: rect[0][1]
- };
- selis.push(new selection.possel(args));
- }
- this.dragStart = [];
- if (this.prolongSelection) {
- this.g.selcol.add(selis);
- } else {
- this.g.selcol.reset(selis);
- }
- this.g.zoomer.setLeftOffset(rect[0][0]);
- return this.g.zoomer.setTopOffset(rect[1][0]);
- },
- _onmouseup: function(e) {
- return this._endSelection(mouse.abs(e));
- },
- _onmouseout: function(e) {
- return this._endSelection(mouse.abs(e));
- },
- _createCanvas: function() {
- var rectHeight, rectWidth;
- rectWidth = this.g.zoomer.get("boxRectWidth");
- rectHeight = this.g.zoomer.get("boxRectHeight");
- this.el.height = this.model.length * rectHeight;
- this.el.width = this.model.getMaxLength() * rectWidth;
- this.ctx = this.el.getContext("2d");
- this.el.style.overflow = "scroll";
- return this.el.style.cursor = "crosshair";
- }
-});
-
-
-
-},{"../g/selection/Selection":67,"backbone-viewj":10,"biojs-util-colorschemes":29,"jbone":50,"mouse-pos":51,"underscore":59}],100:[function(require,module,exports){
-var AlignmentBody, HeaderBlock, OverviewBox, boneView, identityCalc, _;
-
-boneView = require("backbone-childs");
-
-AlignmentBody = require("./AlignmentBody");
-
-HeaderBlock = require("./header/HeaderBlock");
-
-OverviewBox = require("./OverviewBox");
-
-identityCalc = require("../algo/identityCalc");
-
-_ = require('underscore');
-
-module.exports = boneView.extend({
- initialize: function(data) {
- this.g = data.g;
- this.draw();
- this.listenTo(this.model, "reset", function() {
- this.isNotDirty = false;
- return this.rerender();
- });
- this.listenTo(this.model, "change:hidden", _.debounce(this.rerender, 10));
- this.listenTo(this.model, "sort", this.rerender);
- this.listenTo(this.model, "add", function() {
- return console.log("seq add");
- });
- this.listenTo(this.g.vis, "change:sequences", this.rerender);
- this.listenTo(this.g.vis, "change:overviewbox", this.rerender);
- return this.listenTo(this.g.visorder, "change", this.rerender);
- },
- draw: function() {
- var body, consensus, headerblock, overviewbox;
- this.removeViews();
- if (!this.isNotDirty) {
- consensus = this.g.consensus.getConsensus(this.model);
- identityCalc(this.model, consensus);
- this.isNotDirty = true;
- }
- if (this.g.vis.get("overviewbox")) {
- overviewbox = new OverviewBox({
- model: this.model,
- g: this.g
- });
- overviewbox.ordering = this.g.visorder.get('overviewBox');
- this.addView("overviewbox", overviewbox);
- }
- if (true) {
- headerblock = new HeaderBlock({
- model: this.model,
- g: this.g
- });
- headerblock.ordering = this.g.visorder.get('headerBox');
- this.addView("headerblock", headerblock);
- }
- body = new AlignmentBody({
- model: this.model,
- g: this.g
- });
- body.ordering = this.g.visorder.get('alignmentBody');
- return this.addView("body", body);
- },
- render: function() {
- this.renderSubviews();
- this.el.className = "biojs_msa_stage";
- return this;
- },
- rerender: function() {
- this.draw();
- return this.render();
- }
-});
-
-
-
-},{"../algo/identityCalc":61,"./AlignmentBody":96,"./OverviewBox":99,"./header/HeaderBlock":102,"backbone-childs":3,"underscore":59}],101:[function(require,module,exports){
-var ConservationView, dom, svg, view;
-
-view = require("backbone-viewj");
-
-dom = require("dom-helper");
-
-svg = require("../../utils/svg");
-
-ConservationView = view.extend({
- className: "biojs_msa_conserv",
- initialize: function(data) {
- this.g = data.g;
- this.listenTo(this.g.zoomer, "change:stepSize change:labelWidth change:columnWidth", this.render);
- this.listenTo(this.g.vis, "change:labels change:metacell", this.render);
- this.listenTo(this.g.columns, "change:scaling", this.render);
- this.listenTo(this.model, "reset", this.render);
- return this.manageEvents();
- },
- render: function() {
- var avgHeight, cellWidth, height, hidden, i, maxHeight, n, nMax, rect, s, stepSize, width, x, _i, _ref;
- this.g.columns.calcConservation(this.model);
- dom.removeAllChilds(this.el);
- nMax = this.model.getMaxLength();
- cellWidth = this.g.zoomer.get("columnWidth");
- maxHeight = 20;
- width = cellWidth * (nMax - this.g.columns.get('hidden').length);
- console.log(this.g.columns.get('hidden'));
- s = svg.base({
- height: maxHeight,
- width: width
- });
- s.style.display = "inline-block";
- s.style.cursor = "pointer";
- stepSize = this.g.zoomer.get("stepSize");
- hidden = this.g.columns.get("hidden");
- x = 0;
- n = 0;
- while (n < nMax) {
- if (hidden.indexOf(n) >= 0) {
- n += stepSize;
- continue;
- }
- width = cellWidth * stepSize;
- avgHeight = 0;
- for (i = _i = 0, _ref = stepSize - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; i = 0 <= _ref ? ++_i : --_i) {
- avgHeight += this.g.columns.get("conserv")[n];
- }
- height = maxHeight * (avgHeight / stepSize);
- rect = svg.rect({
- x: x,
- y: maxHeight - height,
- width: width - cellWidth / 4,
- height: height,
- style: "stroke:red;stroke-width:1;"
- });
- rect.rowPos = n;
- s.appendChild(rect);
- x += width;
- n += stepSize;
- }
- this.el.appendChild(s);
- return this;
- },
- _onclick: function(evt) {
- var i, rowPos, stepSize, _i, _ref, _results;
- rowPos = evt.target.rowPos;
- stepSize = this.g.zoomer.get("stepSize");
- _results = [];
- for (i = _i = 0, _ref = stepSize - 1; _i <= _ref; i = _i += 1) {
- _results.push(this.g.trigger("bar:click", {
- rowPos: rowPos + i,
- evt: evt
- }));
- }
- return _results;
- },
- manageEvents: function() {
- var events;
- events = {};
- if (this.g.config.get("registerMouseClicks")) {
- events.click = "_onclick";
- }
- if (this.g.config.get("registerMouseHover")) {
- events.mousein = "_onmousein";
- events.mouseout = "_onmouseout";
- }
- this.delegateEvents(events);
- this.listenTo(this.g.config, "change:registerMouseHover", this.manageEvents);
- return this.listenTo(this.g.config, "change:registerMouseClick", this.manageEvents);
- },
- _onmousein: function(evt) {
- var rowPos;
- rowPos = this.g.zoomer.get("stepSize" * evt.rowPos);
- return this.g.trigger("bar:mousein", {
- rowPos: rowPos,
- evt: evt
- });
- },
- _onmouseout: function(evt) {
- var rowPos;
- rowPos = this.g.zoomer.get("stepSize" * evt.rowPos);
- return this.g.trigger("bar:mouseout", {
- rowPos: rowPos,
- evt: evt
- });
- }
-});
-
-module.exports = ConservationView;
-
-
-
-},{"../../utils/svg":95,"backbone-viewj":10,"dom-helper":49}],102:[function(require,module,exports){
-var ConservationView, MarkerView, boneView, identityCalc, _;
-
-MarkerView = require("./MarkerView");
-
-ConservationView = require("./ConservationView");
-
-identityCalc = require("../../algo/identityCalc");
-
-boneView = require("backbone-childs");
-
-_ = require('underscore');
-
-module.exports = boneView.extend({
- initialize: function(data) {
- this.g = data.g;
- this.blockEvents = false;
- this.listenTo(this.g.vis, "change:markers change:conserv", function() {
- this.draw();
- return this.render();
- });
- this.listenTo(this.g.vis, "change", this._setSpacer);
- this.listenTo(this.g.zoomer, "change:alignmentWidth", function() {
- return this._adjustWidth();
- });
- this.listenTo(this.g.zoomer, "change:_alignmentScrollLeft", this._adjustScrollingLeft);
- this.listenTo(this.g.columns, "change:hidden", function() {
- this.draw();
- return this.render();
- });
- this.draw();
- this._onscroll = this._sendScrollEvent;
- return this.g.vis.once('change:loaded', this._adjustScrollingLeft, this);
- },
- events: {
- "scroll": "_onscroll"
- },
- draw: function() {
- var consensus, conserv, marker;
- this.removeViews();
- if (!this.isNotDirty) {
- consensus = this.g.consensus.getConsensus(this.model);
- identityCalc(this.model, consensus);
- this.isNotDirty = true;
- }
- if (this.g.vis.get("conserv")) {
- conserv = new ConservationView({
- model: this.model,
- g: this.g
- });
- conserv.ordering = -20;
- this.addView("conserv", conserv);
- }
- if (this.g.vis.get("markers")) {
- marker = new MarkerView({
- model: this.model,
- g: this.g
- });
- marker.ordering = -10;
- return this.addView("marker", marker);
- }
- },
- render: function() {
- this.renderSubviews();
- this._setSpacer();
- this.el.className = "biojs_msa_header";
- this.el.style.overflowX = "auto";
- this._adjustWidth();
- this._adjustScrollingLeft();
- return this;
- },
- _sendScrollEvent: function() {
- if (!this.blockEvents) {
- this.g.zoomer.set("_alignmentScrollLeft", this.el.scrollLeft, {
- origin: "header"
- });
- }
- return this.blockEvents = false;
- },
- _adjustScrollingLeft: function(model, value, options) {
- var scrollLeft;
- if (((options != null ? options.origin : void 0) == null) || options.origin !== "header") {
- scrollLeft = this.g.zoomer.get("_alignmentScrollLeft");
- this.blockEvents = true;
- return this.el.scrollLeft = scrollLeft;
- }
- },
- _setSpacer: function() {
- return this.el.style.marginLeft = this._getLabelWidth() + "px";
- },
- _getLabelWidth: function() {
- var paddingLeft;
- paddingLeft = 0;
- if (this.g.vis.get("labels")) {
- paddingLeft += this.g.zoomer.get("labelWidth");
- }
- if (this.g.vis.get("metacell")) {
- paddingLeft += this.g.zoomer.get("metaWidth");
- }
- return paddingLeft;
- },
- _adjustWidth: function() {
- return this.el.style.width = this.g.zoomer.get("alignmentWidth") + "px";
- }
-});
-
-
-
-},{"../../algo/identityCalc":61,"./ConservationView":101,"./MarkerView":103,"backbone-childs":3,"underscore":59}],103:[function(require,module,exports){
-var HeaderView, dom, jbone, svg, view;
-
-view = require("backbone-viewj");
-
-dom = require("dom-helper");
-
-svg = require("../../utils/svg");
-
-jbone = require("jbone");
-
-HeaderView = view.extend({
- className: "biojs_msa_marker",
- initialize: function(data) {
- this.g = data.g;
- this.listenTo(this.g.zoomer, "change:stepSize change:labelWidth change:columnWidth change:markerStepSize change:markerFontsize", this.render);
- this.listenTo(this.g.vis, "change:labels change:metacell", this.render);
- return this.manageEvents();
- },
- render: function() {
- var cellWidth, container, hidden, n, nMax, span, stepSize;
- dom.removeAllChilds(this.el);
- this.el.style.fontSize = this.g.zoomer.get("markerFontsize");
- container = document.createElement("span");
- n = 0;
- cellWidth = this.g.zoomer.get("columnWidth");
- nMax = this.model.getMaxLength();
- stepSize = this.g.zoomer.get("stepSize");
- hidden = this.g.columns.get("hidden");
- while (n < nMax) {
- if (hidden.indexOf(n) >= 0) {
- this.markerHidden(span, n, stepSize);
- n += stepSize;
- continue;
- }
- span = document.createElement("span");
- span.style.width = (cellWidth * stepSize) + "px";
- span.style.display = "inline-block";
- if ((n + 1) % this.g.zoomer.get('markerStepSize') === 0) {
- span.textContent = n + 1;
- } else {
- span.textContent = ".";
- }
- span.rowPos = n;
- n += stepSize;
- container.appendChild(span);
- }
- this.el.appendChild(container);
- return this;
- },
- markerHidden: function(span, n, stepSize) {
- var hidden, index, j, length, min, nMax, prevHidden, s, triangle, _i, _j;
- hidden = this.g.columns.get("hidden").slice(0);
- min = Math.max(0, n - stepSize);
- prevHidden = true;
- for (j = _i = min; _i <= n; j = _i += 1) {
- prevHidden &= hidden.indexOf(j) >= 0;
- }
- if (prevHidden) {
- return;
- }
- nMax = this.model.getMaxLength();
- length = 0;
- index = -1;
- for (n = _j = n; _j <= nMax; n = _j += 1) {
- if (!(index >= 0)) {
- index = hidden.indexOf(n);
- }
- if (hidden.indexOf(n) >= 0) {
- length++;
- } else {
- break;
- }
- }
- s = svg.base({
- height: 10,
- width: 10
- });
- s.style.position = "relative";
- triangle = svg.polygon({
- points: "0,0 5,5 10,0",
- style: "fill:lime;stroke:purple;stroke-width:1"
- });
- jbone(triangle).on("click", (function(_this) {
- return function(evt) {
- hidden.splice(index, length);
- return _this.g.columns.set("hidden", hidden);
- };
- })(this));
- s.appendChild(triangle);
- span.appendChild(s);
- return s;
- },
- manageEvents: function() {
- var events;
- events = {};
- if (this.g.config.get("registerMouseClicks")) {
- events.click = "_onclick";
- }
- if (this.g.config.get("registerMouseHover")) {
- events.mousein = "_onmousein";
- events.mouseout = "_onmouseout";
- }
- this.delegateEvents(events);
- this.listenTo(this.g.config, "change:registerMouseHover", this.manageEvents);
- return this.listenTo(this.g.config, "change:registerMouseClick", this.manageEvents);
- },
- _onclick: function(evt) {
- var rowPos, stepSize;
- rowPos = evt.target.rowPos;
- stepSize = this.g.zoomer.get("stepSize");
- return this.g.trigger("column:click", {
- rowPos: rowPos,
- stepSize: stepSize,
- evt: evt
- });
- },
- _onmousein: function(evt) {
- var rowPos, stepSize;
- rowPos = this.g.zoomer.get("stepSize" * evt.rowPos);
- stepSize = this.g.zoomer.get("stepSize");
- return this.g.trigger("column:mousein", {
- rowPos: rowPos,
- stepSize: stepSize,
- evt: evt
- });
- },
- _onmouseout: function(evt) {
- var rowPos, stepSize;
- rowPos = this.g.zoomer.get("stepSize" * evt.rowPos);
- stepSize = this.g.zoomer.get("stepSize");
- return this.g.trigger("column:mouseout", {
- rowPos: rowPos,
- stepSize: stepSize,
- evt: evt
- });
- }
-});
-
-module.exports = HeaderView;
-
-
-
-},{"../../utils/svg":95,"backbone-viewj":10,"dom-helper":49,"jbone":50}],104:[function(require,module,exports){
-var LabelRowView, boneView;
-
-LabelRowView = require("./LabelRowView");
-
-boneView = require("backbone-childs");
-
-module.exports = boneView.extend({
- initialize: function(data) {
- this.g = data.g;
- this.draw();
- this.listenTo(this.g.zoomer, "change:_alignmentScrollTop", this._adjustScrollingTop);
- return this.g.vis.once('change:loaded', this._adjustScrollingTop, this);
- },
- draw: function() {
- var i, view, _i, _ref, _results;
- this.removeViews();
- _results = [];
- for (i = _i = 0, _ref = this.model.length - 1; _i <= _ref; i = _i += 1) {
- if (this.model.at(i).get('hidden')) {
- continue;
- }
- view = new LabelRowView({
- model: this.model.at(i),
- g: this.g
- });
- view.ordering = i;
- _results.push(this.addView("row_" + i, view));
- }
- return _results;
- },
- events: {
- "scroll": "_sendScrollEvent"
- },
- _sendScrollEvent: function() {
- return this.g.zoomer.set("_alignmentScrollTop", this.el.scrollTop, {
- origin: "label"
- });
- },
- _adjustScrollingTop: function() {
- return this.el.scrollTop = this.g.zoomer.get("_alignmentScrollTop");
- },
- render: function() {
- this.renderSubviews();
- this.el.className = "biojs_msa_labelblock";
- this.el.style.display = "inline-block";
- this.el.style.verticalAlign = "top";
- this.el.style.height = this.g.zoomer.get("alignmentHeight") + "px";
- this.el.style.overflowY = "auto";
- this.el.style.overflowX = "hidden";
- this.el.style.fontSize = "" + (this.g.zoomer.get("labelFontsize"));
- this.el.style.lineHeight = "" + (this.g.zoomer.get("labelLineHeight"));
- return this;
- }
-});
-
-
-
-},{"./LabelRowView":105,"backbone-childs":3}],105:[function(require,module,exports){
-var LabelView, MetaView, boneView;
-
-boneView = require("backbone-childs");
-
-LabelView = require("./LabelView");
-
-MetaView = require("./MetaView");
-
-module.exports = boneView.extend({
- initialize: function(data) {
- this.g = data.g;
- this.draw();
- this.listenTo(this.g.vis, "change:labels", this.drawR);
- return this.listenTo(this.g.vis, "change:metacell", this.drawR);
- },
- draw: function() {
- this.removeViews();
- if (this.g.vis.get("labels")) {
- this.addView("labels", new LabelView({
- model: this.model,
- g: this.g
- }));
- }
- if (this.g.vis.get("metacell")) {
- return this.addView("metacell", new MetaView({
- model: this.model,
- g: this.g
- }));
- }
- },
- drawR: function() {
- this.draw();
- return this.render();
- },
- render: function() {
- this.renderSubviews();
- this.el.setAttribute("class", "biojs_msa_labelrow");
- this.el.style.height = this.g.zoomer.get("rowHeight");
- return this;
- }
-});
-
-
-
-},{"./LabelView":106,"./MetaView":107,"backbone-childs":3}],106:[function(require,module,exports){
-var LabelView, dom, view;
-
-view = require("backbone-viewj");
-
-dom = require("dom-helper");
-
-LabelView = view.extend({
- initialize: function(data) {
- this.seq = data.seq;
- this.g = data.g;
- return this.manageEvents();
- },
- manageEvents: function() {
- var events;
- events = {};
- if (this.g.config.get("registerMouseClicks")) {
- events.click = "_onclick";
- }
- if (this.g.config.get("registerMouseHover")) {
- events.mousein = "_onmousein";
- events.mouseout = "_onmouseout";
- }
- this.delegateEvents(events);
- this.listenTo(this.g.config, "change:registerMouseHover", this.manageEvents);
- this.listenTo(this.g.config, "change:registerMouseClick", this.manageEvents);
- this.listenTo(this.g.vis, "change:labelName", this.render);
- this.listenTo(this.g.vis, "change:labelId", this.render);
- this.listenTo(this.g.vis, "change:labelPartition", this.render);
- return this.listenTo(this.g.vis, "change:labelCheckbox", this.render);
- },
- render: function() {
- var checkBox, id, name, part;
- dom.removeAllChilds(this.el);
- this.el.style.width = "" + (this.g.zoomer.get("labelWidth")) + "px";
- this.el.style.height = "" + (this.g.zoomer.get("rowHeight")) + "px";
- this.el.setAttribute("class", "biojs_msa_labels");
- if (this.g.vis.get("labelCheckbox")) {
- checkBox = document.createElement("input");
- checkBox.setAttribute("type", "checkbox");
- checkBox.value = this.model.get('id');
- checkBox.name = "seq";
- this.el.appendChild(checkBox);
- }
- if (this.g.vis.get("labelId")) {
- id = document.createElement("span");
- id.textContent = this.model.get("id");
- id.style.width = this.g.zoomer.get("labelIdLength");
- id.style.display = "inline-block";
- this.el.appendChild(id);
- }
- if (this.g.vis.get("labelPartition")) {
- part = document.createElement("span");
- part.style.width = 15;
- part.textContent = this.model.get("partition");
- part.style.display = "inline-block";
- this.el.appendChild(id);
- this.el.appendChild(part);
- }
- if (this.g.vis.get("labelName")) {
- name = document.createElement("span");
- name.textContent = this.model.get("name");
- this.el.appendChild(name);
- }
- this.el.style.overflow = scroll;
- return this;
- },
- _onclick: function(evt) {
- var seqId;
- seqId = this.model.get("id");
- return this.g.trigger("row:click", {
- seqId: seqId,
- evt: evt
- });
- },
- _onmousein: function(evt) {
- var seqId;
- seqId = this.model.get("id");
- return this.g.trigger("row:mouseout", {
- seqId: seqId,
- evt: evt
- });
- },
- _onmouseout: function(evt) {
- var seqId;
- seqId = this.model.get("id");
- return this.g.trigger("row:mouseout", {
- seqId: seqId,
- evt: evt
- });
- }
-});
-
-module.exports = LabelView;
-
-
-
-},{"backbone-viewj":10,"dom-helper":49}],107:[function(require,module,exports){
-var MenuBuilder, MetaView, dom, view, _;
-
-view = require("backbone-viewj");
-
-MenuBuilder = require("../../menu/menubuilder");
-
-_ = require('underscore');
-
-dom = require("dom-helper");
-
-module.exports = MetaView = view.extend({
- className: "biojs_msa_metaview",
- initialize: function(data) {
- return this.g = data.g;
- },
- events: {
- click: "_onclick",
- mousein: "_onmousein",
- mouseout: "_onmouseout"
- },
- render: function() {
- var gapSpan, gaps, ident, identSpan, menu, seq, width;
- dom.removeAllChilds(this.el);
- this.el.style.display = "inline-block";
- width = this.g.zoomer.get("metaWidth");
- this.el.style.width = width - 5;
- this.el.style.paddingRight = 5;
- seq = this.model.get('seq');
- gaps = _.reduce(seq, (function(memo, c) {
- if (c === '-') {
- memo++;
- }
- return memo;
- }), 0);
- gaps = (gaps / seq.length).toFixed(1);
- gapSpan = document.createElement('span');
- gapSpan.textContent = gaps;
- gapSpan.style.display = "inline-block";
- gapSpan.style.width = 35;
- this.el.appendChild(gapSpan);
- ident = this.model.get('identity');
- identSpan = document.createElement('span');
- identSpan.textContent = ident.toFixed(2);
- identSpan.style.display = "inline-block";
- identSpan.style.width = 40;
- this.el.appendChild(identSpan);
- menu = new MenuBuilder("↗");
- menu.addNode("Uniprot", (function(_this) {
- return function(e) {
- return window.open("http://beta.uniprot.org/uniprot/Q7T2N8");
- };
- })(this));
- this.el.appendChild(menu.buildDOM());
- this.el.width = 10;
- this.el.style.height = "" + (this.g.zoomer.get("rowHeight")) + "px";
- return this.el.style.cursor = "pointer";
- },
- _onclick: function(evt) {
- return this.g.trigger("meta:click", {
- seqId: this.model.get("id", {
- evt: evt
- })
- });
- },
- _onmousein: function(evt) {
- return this.g.trigger("meta:mousein", {
- seqId: this.model.get("id", {
- evt: evt
- })
- });
- },
- _onmouseout: function(evt) {
- return this.g.trigger("meta:mouseout", {
- seqId: this.model.get("id", {
- evt: evt
- })
- });
- }
-});
-
-
-
-},{"../../menu/menubuilder":75,"backbone-viewj":10,"dom-helper":49,"underscore":59}],"biojs-io-clustal":[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-var Clustal, GenericReader, Seq, Str,
- __hasProp = {}.hasOwnProperty,
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
-
-Str = require("./strings");
-
-GenericReader = require("./generic_reader");
-
-Seq = require("./seq");
-
-module.exports = Clustal = (function(_super) {
- __extends(Clustal, _super);
-
- function Clustal() {
- return Clustal.__super__.constructor.apply(this, arguments);
- }
-
- Clustal.parse = function(text) {
- var blockstate, k, label, line, lines, match, regex, seqCounter, seqs, sequence;
- seqs = [];
- if (Object.prototype.toString.call(text) === '[object Array]') {
- lines = text;
- } else {
- lines = text.split("\n");
- }
- if (lines[0].slice(0, 6) === !"CLUSTAL") {
- throw new Error("Invalid CLUSTAL Header");
- }
- k = 0;
- blockstate = 1;
- seqCounter = 0;
- while (k < lines.length) {
- k++;
- line = lines[k];
- if ((line == null) || line.length === 0) {
- blockstate = 1;
- continue;
- }
- if (line.trim().length === 0) {
- blockstate = 1;
- continue;
- } else {
- if (Str.contains(line, "*")) {
- continue;
- }
- if (blockstate === 1) {
- seqCounter = 0;
- blockstate = 0;
- }
- regex = /^(?:\s*)(\S+)(?:\s+)(\S+)(?:\s*)(\d*)(?:\s*|$)/g;
- match = regex.exec(line);
- if (match != null) {
- label = match[1];
- sequence = match[2];
- if (seqCounter >= seqs.length) {
- seqs.push(new Seq(sequence, label, seqCounter));
- } else {
- seqs[seqCounter].seq += sequence;
- }
- seqCounter++;
- } else {
- console.log(line);
- }
- }
- }
- return seqs;
- };
-
- return Clustal;
-
-})(GenericReader);
-
-},{"./generic_reader":17,"./seq":18,"./strings":19}],"biojs-io-fasta":[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-module.exports.parse = require("./parser");
-
-module.exports.writer = require("./writer");
-
-},{"./parser":21,"./writer":24}],"biojs-vis-msa":[function(require,module,exports){
-if (typeof biojs === 'undefined') {
- biojs = {};
-}
-if (typeof biojs.vis === 'undefined') {
- biojs.vis = {};
-}
-// use two namespaces
-window.msa = biojs.vis.msa = module.exports = require('./index');
-
-// TODO: how should this be bundled
-
-if (typeof biojs.io === 'undefined') {
- biojs.io = {};
-}
-// just bundle the two parsers
-window.biojs.io.fasta = require("biojs-io-fasta");
-window.biojs.io.clustal = require("biojs-io-clustal");
-window.biojs.xhr = require("nets");
-
-// simulate standalone flag
-window.biojsVisMsa = window.msa;
-
-require('./build/msa.css');
-
-},{"./build/msa.css":1,"./index":2,"biojs-io-clustal":undefined,"biojs-io-fasta":undefined,"nets":undefined}],"nets":[function(require,module,exports){
-var req = require('request')
-
-module.exports = Nets
-
-function Nets(uri, opts, cb) {
- req(uri, opts, cb)
-}
-},{"request":52}]},{},["biojs-vis-msa"])
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyaWZ5L25vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCIvaG9tZS90cmF2aXMvYnVpbGQvZ3JlZW5pZnkvYmlvanMtdmlzLW1zYS9idWlsZC9tc2EuY3NzIiwiL2hvbWUvdHJhdmlzL2J1aWxkL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cm4gcHJlZml4ID8gcHJlZml4ICsgaWQgOiBpZDtcbiAgICAgIH0sXG5cbiAgICAgIGhhczogZnVuY3Rpb24ob2JqLCBrZXkpIHtcbiAgICAgICAgcmV0dXJuIGhhc093blByb3BlcnR5LmNhbGwob2JqLCBrZXkpO1xuICAgICAgfSxcblxuICAgICAgZWFjaDogZnVuY3Rpb24ob2JqLCBpdGVyYXRvciwgY29udGV4dCkge1xuICAgICAgICBpZiAob2JqID09IG51bGwpIHJldHVybjtcbiAgICAgICAgaWYgKG5hdGl2ZUZvckVhY2ggJiYgb2JqLmZvckVhY2ggPT09IG5hdGl2ZUZvckVhY2gpIHtcbiAgICAgICAgICBvYmouZm9yRWFjaChpdGVyYXRvciwgY29udGV4dCk7XG4gICAgICAgIH0gZWxzZSBpZiAob2JqLmxlbmd0aCA9PT0gK29iai5sZW5ndGgpIHtcbiAgICAgICAgICBmb3IgKHZhciBpID0gMCwgbCA9IG9iai5sZW5ndGg7IGkgPCBsOyBpKyspIHtcbiAgICAgICAgICAgIGlmIChpdGVyYXRvci5jYWxsKGNvbnRleHQsIG9ialtpXSwgaSwgb2JqKSA9PT0gYnJlYWtlcikgcmV0dXJuO1xuICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICBmb3IgKHZhciBrZXkgaW4gb2JqKSB7XG4gICAgICAgICAgICBpZiAodGhpcy5oYXMob2JqLCBrZXkpKSB7XG4gICAgICAgICAgICAgIGlmIChpdGVyYXRvci5jYWxsKGNvbnRleHQsIG9ialtrZXldLCBrZXksIG9iaikgPT09IGJyZWFrZXIpIHJldHVybjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH0sXG5cbiAgICAgIG9uY2U6IGZ1bmN0aW9uKGZ1bmMpIHtcbiAgICAgICAgdmFyIHJhbiA9IGZhbHNlLCBtZW1vO1xuICAgICAgICByZXR1cm4gZnVuY3Rpb24oKSB7XG4gICAgICAgICAgaWYgKH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uXG5mbiA9IGpCb25lLmZuID0gakJvbmUucHJvdG90eXBlID0ge1xuICAgIGluaXQ6IGZ1bmN0aW9uKGVsZW1lbnQsIGRhdGEpIHtcbiAgICAgICAgdmFyIGVsZW1lbnRzLCB0YWcsIHdyYXBlciwgZnJhZ21lbnQ7XG5cbiAgICAgICAgaWYgKCFlbGVtZW50KSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcztcbiAgICAgICAgfVxuICAgICAgICBpZiAoaXNTdHJpbmcoZWxlbWVudCkpIHtcbiAgICAgICAgICAgIC8vIENyZWF0ZSBzaW5nbGUgRE9NIGVsZW1lbnRcbiAgICAgICAgICAgIGlmICh0YWcgPSBycXVpY2tTaW5nbGVUYWcuZXhlYyhlbGVtZW50KSkge1xuICAgICAgICAgICAgICAgIHRoaXNbMF0gPSBkb2MuY3JlYXRlRWxlbWVudCh0YWdbMV0pO1xuICAgICAgICAgICAgICAgIHRoaXMubGVuZ3RoID0gMTtcblxuICAgICAgICAgICAgICAgIGlmIChpc09iamVjdChkYXRhKSkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmF0dHIoZGF0YSk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICAvLyBDcmVhdGUgRE9NIGNvbGxlY3Rpb25cbiAgICAgICAgICAgIGlmICgodGFnID0gcnF1aWNrRXhwci5leGVjKGVsZW1lbnQpKSAmJiB0YWdbMV0pIHtcbiAgICAgICAgICAgICAgICBmcmFnbWVudCA9IGRvYy5jcmVhdGVEb2N1bWVudEZyYWdtZW50KCk7XG4gICAgICAgICAgICAgICAgd3JhcGVyID0gZG9jLmNyZWF0ZUVsZW1lbnQoXCJkaXZcIik7XG4gICAgICAgICAgICAgICAgd3JhcGVyLmlubmVySFRNTCA9IGVsZW1lbnQ7XG4gICAgICAgICAgICAgICAgd2hpbGUgKHdyYXBlci5sYXN0Q2hpbGQpIHtcbiAgICAgICAgICAgICAgICAgICAgZnJhZ21lbnQuYXBwZW5kQ2hpbGQod3JhcGVyLmZpcnN0Q2hpbGQpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbGVtZW50cyA9IHNsaWNlLmNhbGwoZnJhZ21lbnQuY2hpbGROb2Rlcyk7XG5cbiAgICAgICAgICAgICAgICByZXR1cm4gakJvbmUubWVyZ2UodGhpcywgZWxlbWVudHMpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgLy8gRmluZCBET00gZWxlbWVudHMgd2l0aCBxdWVyeVNlbGVjdG9yQWxsXG4gICAgICAgICAgICBpZiAoakJvbmUuaXNFbGVtZW50KGRhdGEpKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGpCb25lKGRhdGEpLmZpbmQoZWxlbWVudCk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgICAgZWxlbWVudHMgPSBkb2MucXVlcnlTZWxlY3RvckFsbChlbGVtZW50KTtcblxuICAgICAgICAgICAgICAgIHJldHVybiBqQm9uZS5tZXJnZSh0aGlzLCBlbGVtZW50cyk7XG4gICAgICAgICAgICB9IGNhdGNoIChlKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgLy8gV3JhcCBET01FbGVtZW50XG4gICAgICAgIGlmIChlbGVtZW50Lm5vZGVUeXBlKSB7XG4gICAgICAgICAgICB0aGlzWzBdID0gZWxlbWVudDtcbiAgICAgICAgICAgIHRoaXMubGVuZ3RoID0gMTtcblxuICAgICAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgICAgIH1cbiAgICAgICAgLy8gUnVuIGZ1bmN0aW9uXG4gICAgICAgIGlmIChpc0Z1bmN0aW9uKGVsZW1lbnQpKSB7XG4gICAgICAgICAgICByZXR1cm4gZWxlbWVudCgpO1xuICAgICAgICB9XG4gICAgICAgI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8IGxlbmd0aCA9PT0gMCB8fFxuICAgICAgICB0eXBlb2YgbGVuZ3RoID09PSBcIm51bWJlclwiICYmIGxlbmd0aCA+IDAgJiYgKGxlbmd0aCAtIDEpIGluIG9iajtcbn1cblxuakJvbmUubWVyZ2UgPSBmdW5jdGlvbihmaXJzdCwgc2Vjb25kKSB7XG4gICAgdmFyIGwgPSBzZWNvbmQubGVuZ3RoLFxuICAgICAgICBpID0gZmlyc3QubGVuZ3RoLFxuICAgICAgICBqID0gMDtcblxuICAgIHdoaWxlIChqIDwgbCkge1xuICAgICAgICBmaXJzdFtpKytdID0gc2Vjb25kW2orK107XG4gICAgfVxuXG4gICAgZmlyc3QubGVuZ3RoID0gaTtcblxuICAgIHJldHVybiBmaXJzdDtcbn07XG5cbmpCb25lLmNvbnRhaW5zID0gZnVuY3Rpb24oY29udGFpbmVyLCBjb250YWluZWQpIHtcbiAgICB2YXIgcmVzdWx0O1xuXG4gICAgY29udGFpbmVyLnJldmVyc2UoKS5zb21lKGZ1bmN0aW9uKGVsKSB7XG4gICAgICAgIGlmIChlbC5jb250YWlucyhjb250YWluZWQpKSB7XG4gICAgICAgICAgICByZXR1cm4gcmVzdWx0ID0gZWw7XG4gICAgICAgIH1cbiAgICB9KTtcblxuICAgIHJldHVybiByZXN1bHQ7XG59O1xuXG5qQm9uZS5leHRlbmQgPSBmdW5jdGlvbih0YXJnZXQpIHtcbiAgICB2YXIgaywga2wsIGksIHRnO1xuXG4gICAgc3BsaWNlLmNhbGwoYXJndW1lbnRzLCAxKS5mb3JFYWNoKGZ1bmN0aW9uKG9iamVjdCkge1xuICAgICAgICBpZiAoIW9iamVjdCkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgayA9IGtleXMob2JqZWN0KTtcbiAgICAgICAga2wgPSBrLmxlbmd0aDtcbiAgICAgICAgaSA9IDA7XG4gICAgICAgIHRnID0gdGFyZ2V0OyAvL2NhY2hpbmcgdGFyZ2V0IGZvciBwZXJmIGltcHJvdmVtZW50XG5cbiAgICAgICAgZm9yICg7IGkgPCBrbDsgaSsrKSB7XG4gICAgICAgICAgICB0Z1trW2ldXSA9IG9iamVjdFtrW2ldXTtcbiAgICAgICAgfVxuICAgIH0pO1xuXG4gICAgcmV0dXJuIHRhcmdldDtcbn07XG5cbmpCb25lLm1ha2VBcnJheSA9IGZ1bmN0aW9uKGFyciwgcmVzdWx0cykge1xuICAgIHZhciByZXQgPSByZXN1bHRzIHx8IFtdO1xuXG4gICAgaWYgKGFyciAhPT0gbnVsbCkge1xuICAgICAgICBpZiAoaXNBcnJheWxpa2UoYXJyKSkge1xuICAgICAgICAgICAgakJvbmUubWVyZ2UocmV0LCBpc1N0cmluZyhhcnIpID8gW2Fycl0gOiBhcnIpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcmV0LnB1c2goYXJyKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiByZXQ7XG59O1xuXG5mdW5jdGlvbiBCb25lRXZlbnQoZSwgZGF0YSkge1xuICAgIHZhciBrZXksIHNldHRlcjtcblxuICAgIHRoaXMub3JpZ2luYWxFdmVudCA9IGU7XG5cbiAgICBzZXR0ZXIgPSBmdW5jdGlvbihrZXksIGUpIHtcbiAgICAgICAgaWYgKGtleSA9PT0gXCJwcmV2ZW50RGVmYXVsdFwiKSB7XG4gICAgICAgICAgICB0aGlzW2tleV0gPSBmdW5jdGlvbigpIHtcbiAgICAgICAgICAgICAgICB0aGlzLmRlZmF1bHRQcmV2ZW50ZWQgPSB0cnVlO1xuICAgICAgICAgICAgICAgIHJldHVybiBlW2tleV0oKTtcbiAgICAgICAgICAgIH07XG4gICAgICAgIH0gZWxzZSBpZiAoaXNGdW5jdGlvbihlW2tleV0pKSB7XG4gICAgICAgICAgICB0aGlzW2tleV0gPSBmdW5jdGlvbigpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gZVtrZXldKCk7XG4gICAgICAgICAgICB9O1xuICAgICAgICB9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ICAgICAgICAgICAgICAgICAgIGNhbGxiYWNrLmNhbGwoZWwsIGUpO1xuICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAofmpCb25lKGVsKS5maW5kKHRhcmdldCkuaW5kZXhPZihlLnRhcmdldCkgfHwgKGV4cGVjdGVkVGFyZ2V0ID0gakJvbmUuY29udGFpbnMoakJvbmUoZWwpLmZpbmQodGFyZ2V0KSwgZS50YXJnZXQpKSkge1xuICAgICAgICAgICAgICAgICAgICBleHBlY3RlZFRhcmdldCA9IGV4cGVjdGVkVGFyZ2V0IHx8IGUudGFyZ2V0O1xuICAgICAgICAgICAgICAgICAgICBlID0gbmV3IEJvbmVFdmVudChlLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjdXJyZW50VGFyZ2V0OiBleHBlY3RlZFRhcmdldFxuICAgICAgICAgICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgICAgICAgICBjYWxsYmFjay5jYWxsKGV4cGVjdGVkVGFyZ2V0LCBlKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9O1xuXG4gICAgICAgICAgICBldmVudHNbZXZlbnRUeXBlXS5wdXNoKHtcbiAgICAgICAgICAgICAgICBuYW1lc3BhY2U6IG5hbWVzcGFjZSxcbiAgICAgICAgICAgICAgICBmbjogZm4sXG4gICAgICAgICAgICAgICAgb3JpZ2luZm46IGNhbGxiYWNrXG4gICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgZWwuYWRkRXZlbnRMaXN0ZW5lciAmJiBlbC5hZGRFdmVudExpc3RlbmVyKGV2ZW50VHlwZSwgZm4sIGZhbHNlKTtcbiAgICAgICAgfSk7XG4gICAgfTtcblxuICAgIGZvciAoOyBpIDwgbGVuZ3RoOyBpKyspIHtcbiAgICAgICAgYWRkTGlzdGVuZXIodGhpc1tpXSk7XG4gICAgfVxuXG4gICAgcmV0dXJuIHRoaXM7XG59O1xuXG5mbi5vbmUgPSBmdW5jdGlvbihldmVudCkge1xuICAgIHZhciBhcmdzID0gYXJndW1lbnRzLFxuICAgICAgICBpID0gMCxcbiAgICAgICAgbGVuZ3RoID0gdGhpcy5sZW5ndGgsXG4gICAgICAgIGNhbGxiYWNrLCB0YXJnZXQsIGFkZExpc3RlbmVyO1xuXG4gICAgaWYgKGFyZ3MubGVuZ3RoID09PSAyKSB7XG4gICAgICAgIGNhbGxiYWNrID0gYXJnc1sxXTtcbiAgICB9IGVsc2Uge1xuICAgICAgICB0YXJnZXQgPSBhcmdzWzFdLCBjYWxsYmFjayA9IGFyZ3NbMl07XG4gICAgfVxuXG4gICAgYWRkTGlzdGVuZXIgPSBmdW5jdGlvbihlbCkge1xuICAgICAgICBldmVudC5zcGxpdChcIiBcIikuZm9yRWFjaChmdW5jdGlvbihldmVudCkge1xuICAgICAgICAgICAgdmFyIGZuID0gZnVuY3Rpb24oZSkge1xuICAgICAgICAgICAgICAgIGpCb25lKGVsKS5vZmYoZXZlbnQsIGZuKTtcbiAgICAgICAgICAgICAgICBjYWxsYmFjay5jYWxsKGVsLCBlKTtcbiAgICAgICAgICAgIH07XG5cbiAgICAgICAgICAgIGlmICghdGFyZ2V0KSB7XG4gICAgICAgICAgICAgICAgakJvbmUoZWwpLm9uKGV2ZW50LCBmbik7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGpCb25lKGVsKS5vbihldmVudCwgdGFyZ2V0LCBmbik7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH07XG5cbiAgICBmb3IgKDsgaSA8IGxlbmd0aDsgaSsrKSB7XG4gICAgICAgIGFkZExpc3RlbmVyKHRoaXNbaV0pO1xuICAgIH1cblxuICAgIHJldHVybiB0aGlzO1xufTtcblxuZm4udHJpZ2dlciA9IGZ1bmN0aW9uKGV2ZW50KSB7XG4gICAgdmFyIGV2ZW50cyA9IFtdLFxuICAgICAgICBpID0gMCxcbiAgICAgICAgbGVuZ3RoID0gdGhpcy5sZW5ndGgsXG4gICAgICAgIGRpc3BhdGNoR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Ly8gZ2V0IGNhbGxiYWNrXG4gICAgICAgICAgICBpZiAoKGZuICYmIGUub3JpZ2luZm4gPT09IGZuKSB8fCAhZm4pIHtcbiAgICAgICAgICAgICAgICBjYWxsYmFjayA9IGUuZm47XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChldmVudHNbZXZlbnRUeXBlXVtpbmRleF0uZm4gPT09IGNhbGxiYWNrKSB7XG4gICAgICAgICAgICAgICAgZWwucmVtb3ZlRXZlbnRMaXN0ZW5lcihldmVudFR5cGUsIGNhbGxiYWNrKTtcblxuICAgICAgICAgICAgICAgIC8vIHJlbW92ZSBoYW5kbGVyIGZyb20gY2FjaGVcbiAgICAgICAgICAgICAgICBqQm9uZS5fY2FjaGUuZXZlbnRzW2pCb25lLmdldERhdGEoZWwpLmppZF1bZXZlbnRUeXBlXS5zcGxpY2UoaW5kZXgsIDEpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBldmVudHMsIG5hbWVzcGFjZSwgcmVtb3ZlTGlzdGVuZXJzLCBldmVudFR5cGU7XG5cbiAgICByZW1vdmVMaXN0ZW5lcnMgPSBmdW5jdGlvbihlbCkge1xuICAgICAgICB2YXIgbCwgZXZlbnRzQnlUeXBlLCBlO1xuXG4gICAgICAgIGV2ZW50cyA9IGpCb25lLmdldERhdGEoZWwpLmV2ZW50cztcblxuICAgICAgICBpZiAoIWV2ZW50cykge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gcmVtb3ZlIGFsbCBldmVudHNcbiAgICAgICAgaWYgKCFldmVudCAmJiBldmVudHMpIHtcbiAgICAgICAgICAgIHJldHVybiBrZXlzKGV2ZW50cykuZm9yRWFjaChmdW5jdGlvbihldmVudFR5cGUpIHtcbiAgICAgICAgICAgICAgICBldmVudHNCeVR5cGUgPSBldmVudHNbZXZlbnRUeXBlXTtcbiAgICAgICAgICAgICAgICBsID0gZXZlbnRzQnlUeXBlLmxlbmd0aDtcblxuICAgICAgICAgICAgICAgIHdoaWxlKGwtLSkge1xuICAgICAgICAgICAgICAgICAgICByZW1vdmVMaXN0ZW5lcihldmVudHMsIGV2ZW50VHlwZSwgbCwgZWwsIGV2ZW50c0J5VHlwZVtsXSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cblxuICAgICAgICBldmVudC5zcGxpdChcIiBcIikuZm9yRWFjaChmdW5jdGlvbihldmVudCkge1xuICAgICAgICAgICAgZXZlbnRUeXBlID0gZXZlbnQuc3BsaXQoXCIuXCIpWzBdO1xuICAgICAgICAgICAgbmFtZXNwYWNlID0gZXZlbnQuc3BsaXQoXCIuXCIpLnNwbGljZSgxKS5qb2luKFwiLlwiKTtcblxuICAgICAgICAgICAgLy8gcmVtb3ZlIG5hbWVkIGV2ZW50c1xuICAgICAgICAgICAgaWYgKGV2ZW50c1tldmVudFR5cGVdKSB7XG4gICAgICAgICAgICAgICAgZXZlbnRzQnlUeXBlID0gZXZlbnRzW2V2ZW50VHlwZV07XG4gICAgICAgICAgICAgICAgbCA9IGV2ZW50c0J5VHlwZS5sZW5ndGg7XG5cbiAgICAgICAgICAgICAgICB3aGlsZShsLS0pIHtcbiAgICAgICAgICAgICAgICAgICAgZSA9IGV2ZW50c0J5VHlwZVtsXTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKCFuYW1lc3BhY2UgfHwgKG5hbWVzcGFjZSAmJiBlLm5hbWVzcGFjZSA9PT0gbmFtZXNwYWNlKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmVtb3ZlTGlzdGVuZXIoZXZlbnRzLCBldmVudFR5cGUsIGwsIGVsLCBlKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIC8vIHJlbW92ZSBhbGwgbmFtZXNwYWNlZCBldmVudHNcbiAgICAgICAgICAgIGVsc2UgaWYgKG5hbWVzcGFjZSkge1xuICAgICAgICAgICAgICAgIGtleXMoZXZlbnRzKS5mb3JFYWNoKGZ1bmN0aW9uKGV2ZW50VHlwZSkge1xuICAgICAgICAgICAgICAgICAgICBldmVudHNCeVR5cGUgPSBldmVudHNbZXZlbnRUeXBlXTtcbiAgICAgICAgICAgICAgICAgICAgbCA9IGV2ZW50c0J5VHlwZS5sZW5ndGg7XG5cbiAgICAgICAgICAgICAgICAgICAgd2hpbGUobC0tKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBlID0gZXZlbnRzQnlUeXBlW2xdO1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGUubmFtZXNwYWNlLnNwbGl0KFwiLlwiKVswXSA9PT0gbmFtZXNwYWNlLnNwbGl0KFwiLlwiKVswXSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlbW92ZUxpc3RlbmVyKGV2ZW50cywgZXZlbnRUeXBlLCBsLCBlbCwgZSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgfTtcblxuICAgIGZvciAoOyBpIDwgbGVuZ3RoOyBpKyspIHtcbiAgICAgICAgcmVtb3ZlTGlzdGVuZXJzKHRoaXNbaV0pO1xuICAgIH1cblxuICAgIHJldHVybiB0aGlzO1xufTtcblxuZm4uZmluZCA9IGZ1bmN0aW9uKHNlbGVjdG9yKSB7XG4gICAgdmFyIHJlc3VsdHMgPSBbXSxcbiAgICAgICAgaSA9IDAsXG4gICAgICAgIGxlbmd0aCA9IHRoaXMubGVuZ3RoLFxuICAgICAgICBmaW5kZXIgPSBmdW5jdGlvbihlbCkge1xuICAgICAgICAgICAgaWYgKGlzRnVuY3Rpb24oZWwucXVlcnlTZWxlY3RvckFsbCkpIHtcbiAgICAgICAgICAgICAgICBbXS5mb3JFYWNoLmNhbGwoZWwucXVlcnlTZWxlY3RvckFsbCh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lsZVtrZXldID0gdmFsdWU7XG4gICAgICAgIH07XG4gICAgfSBlbHNlIGlmIChpc09iamVjdChrZXkpKSB7XG4gICAgICAgIHNldHRlciA9IGZ1bmN0aW9uKGVsKSB7XG4gICAgICAgICAgICBrZXlzKGtleSkuZm9yRWFjaChmdW5jdGlvbihuYW1lKSB7XG4gICAgICAgICAgICAgICAgZWwuc3R5bGVbbmFtZV0gPSBrZXlbbmFtZV07XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfTtcbiAgICB9XG5cbiAgICBmb3IgKDsgaSA8IGxlbmd0aDsgaSsrKSB7XG4gICAgICAgIHNldHRlcih0aGlzW2ldKTtcbiAgICB9XG5cbiAgICByZXR1cm4gdGhpcztcbn07XG5cbmZuLmRhdGEgPSBmdW5jdGlvbihrZXksIHZhbHVlKSB7XG4gICAgdmFyIGFyZ3MgPSBhcmd1bWVudHMsIGRhdGEgPSB7fSxcbiAgICAgICAgaSA9IDAsXG4gICAgICAgIGxlbmd0aCA9IHRoaXMubGVuZ3RoLFxuICAgICAgICBzZXR0ZXIsXG4gICAgICAgIHNldFZhbHVlID0gZnVuY3Rpb24oZWwsIGtleSwgdmFsdWUpIHtcbiAgICAgICAgICAgIGlmIChpc09iamVjdCh2YWx1ZSkpIHtcbiAgICAgICAgICAgICAgICBlbC5qZGF0YSA9IGVsLmpkYXRhIHx8IHt9O1xuICAgICAgICAgICAgICAgIGVsLmpkYXRhW2tleV0gPSB2YWx1ZTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgZWwuZGF0YXNldFtrZXldID0gdmFsdWU7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIGdldFZhbHVlID0gZnVuY3Rpb24odmFsdWUpIHtcbiAgICAgICAgICAgIGlmICh2YWx1ZSA9PT0gXCJ0cnVlXCIpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAodmFsdWUgPT09IFwiZmFsc2VcIikge1xuICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHZhbHVlO1xuICAgICAgICAgICAgfVxuICAgICAgICB9O1xuXG4gICAgLy8gR2V0IGFsbCBkYXRhXG4gICAgaWYgKGFyZ3MubGVuZ3RoID09PSAwKSB7XG4gICAgICAgIHRoaXNbMF0uamRhdGEgJiYgKGRhdGEgPSB0aGlzWzBdLmpkYXRhKTtcblxuICAgICAgICBrZXlzKHRoaXNbMF0uZGF0YXNldCkuZm9yRWFjaChmdW5jdGlvbihrZXkpIHtcbiAgICAgICAgICAgIGRhdGFba2V5XSA9IGdldFZhbHVlKHRoaXNbMF0uZGF0YXNldFtrZXldKTtcbiAgICAgICAgfSwgdGhpcyk7XG5cbiAgICAgICAgcmV0dXJuIGRhdGE7XG4gICAgfVxuICAgIC8vIEdldCBkYXRhIGJ5IG5hbWVcbiAgICBpZiAoYXJncy5sZW5ndGggPT09IDEgJiYgaXNTdHJpbmcoa2V5KSkge1xuICAgICAgICByZXR1cm4gdGhpc1swXSAmJiBnZXRWYWx1ZSh0aGlzWzBdLmRhdGFzZXRba2V5XSB8fCB0aGlzWzBdLmpkYXRhICYmIHRoaXNbMF0uamRhdGFba2V5XSk7XG4gICAgfVxuXG4gICAgLy8gU2V0IGRhdGFcbiAgICBpZiAoYXJncy5sZW5ndGggPT09IDEgJiYgaXNPYmplY3Qoa2V5KSkge1xuICAgICAgICBzZXR0ZXIgPSBmdW5jdGlvbihlbCkge1xuICAgICAgICAgICAga2V5cyhrZXkpLmZvckVhY2goZnVuY3Rpb24obmFtZSkge1xuICAgICAgICAgICAgICAgIHNldFZhbHVlKGVsLCBuYW1lLCBrZXlbbmFtZV0pO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH07XG4gICAgfSBlbHNlIGlmIChhcmdzLmxlbmd0aCA9PT0gMikge1xuICAgICAgICBzZXR0ZXIgPSBmdW5jdGlvbihlbCkge1xuICAgICAgICAgICAgc2V0VmFsdWUoZWwsIGtleSwgdmFsdWUpO1xuICAgICAgICB9O1xuICAgIH1cblxuICAgIGZvciAoOyBpIDwgbGVuZ3RoOyBpKyspIHtcbiAgICAgICAgc2V0dGVyKHRoaXNbaV0pO1xuICAgIH1cblxuICAgIHJldHVybiB0aGlzO1xufTtcblxuZm4ucmVtb3ZlRGF0YSA9IGZ1bmN0aW9uKGtleSkge1xuICAgIHZhciBpID0gMCxcbiAgICAgICAgbGVuZ3RoID0gdGhpcy5sZW5ndGgsXG4gICAgICAgIGpkYXRhLCBkYXRhc2V0O1xuXG4gICAgZm9yICg7IGkgPCBsZW5ndGg7IGkrKykge1xuICAgICAgICBqZGF0YSA9IHRoaXNbaV0uamRhdGE7XG4gICAgICAgIGRhdGFzZXQgPSB0aGlzW2ldLmRhdGFzZXQ7XG5cbiAgICAgICAgaWYgKGtleSkge1xuICAgICAgICAgICAgamRhdGEgJiYgamRhdGFba2V5XSAmJiBkZWxldGUgamRhdGFba2V5XTtcbiAgICAgICAgICAgIGRlbGV0ZSBkYXRhc2V0W2tleV07XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBmb3IgKGtleSBpbiBqZGF0YSkge1xuICAgICAgICAgICAgICAgIGRlbGV0ZSBqZGF0YVtrZXldO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBmb3IgKGtleSBpbiBkYXRhc2V0KSB7XG4gICAgICAgICAgICAgICAgZGVsZXRlIGRhdGFzZXRba2V5XTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiB0aGlzO1xufTtcblxuZm4uaHRtbCA9IGZ1bmN0aW9uKHZhbHVlKSB7XG4gICAgdmFyIGFyZ3MgPSBhcmd1bWVudHMsXG4gICAgICAgIGVsO1xuXG4gICAgLy8gYWRkIEhUTUwgaW50byBlbGVtZW50c1xuICAgIGlmIChhcmdzLmxlbm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ICBGYXN0YVJlYWRlci5yZWFkIHVybCwgKHNlcXMpID0+XG4gICAgICAgICMgbWFzcyB1cGRhdGUgb24gem9vbWVyXG4gICAgICAgIHpvb21lciA9IEBnLnpvb21lci50b0pTT04oKVxuICAgICAgICAjem9vbWVyLnRleHRWaXNpYmxlID0gZmFsc2VcbiAgICAgICAgI3pvb21lci5jb2x1bW5XaWR0aCA9IDRcbiAgICAgICAgem9vbWVyLmxhYmVsV2lkdGggPSAyMDBcbiAgICAgICAgem9vbWVyLmJveFJlY3RIZWlnaHQgPSAyXG4gICAgICAgIHpvb21lci5ib3hSZWN0V2lkdGggPSAyXG4gICAgICAgIEBtb2RlbC5yZXNldCBbXVxuICAgICAgICBAZy56b29tZXIuc2V0IHpvb21lclxuICAgICAgICBAbW9kZWwucmVzZXQgc2Vxc1xuICAgICAgICBAZy5jb2x1bW5zLmNhbGNDb25zZXJ2YXRpb24gQG1vZGVsXG5cbiAgICBAYWRkTm9kZSBcIkNMVVNUQUxcIiwgPT5cbiAgICAgIHVybCA9IHByb21wdCBcIlVSTFwiLCBcIi90ZXN0L2R1bW15L3NhbXBsZXMvcDUzLmNsdXN0YWxvLmNsdXN0YWxcIlxuICAgICAgdXJsID0gY29yc1VSTCB1cmwsIEBnXG4gICAgICBDbHVzdGFsLnJlYWQgdXJsLCAoc2VxcykgPT5cbiAgICAgICAgem9vbWVyID0gQGcuem9vbWVyLnRvSlNPTigpXG4gICAgICAgICN6b29tZXIudGV4dFZpc2libGUgPSBmYWxzZVxuICAgICAgICAjem9vbWVyLmNvbHVtbldpZHRoID0gNFxuICAgICAgICB6b29tZXIubGFiZWxXaWR0aCA9IDIwMFxuICAgICAgICB6b29tZXIuYm94UmVjdEhlaWdodCA9IDJcbiAgICAgICAgem9vbWVyLmJveFJlY3RXaWR0aCA9IDJcbiAgICAgICAgQG1vZGVsLnJlc2V0IFtdXG4gICAgICAgIEBnLnpvb21lci5zZXQgem9vbWVyXG4gICAgICAgIEBtb2RlbC5yZXNldC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3VudGVyID0gMDtcbiAgICB3aGlsZSAoayA8IGxpbmVzLmxlbmd0aCkge1xuICAgICAgaysrO1xuICAgICAgbGluZSA9IGxpbmVzW2tdO1xuICAgICAgaWYgKChsaW5lID09IG51bGwpIHx8IGxpbmUubGVuZ3RoID09PSAwKSB7XG4gICAgICAgIGJsb2Nrc3RhdGUgPSAxO1xuICAgICAgICBjb250aW51ZTtcbiAgICAgIH1cbiAgICAgIGlmIChsaW5lLnRyaW0oKS5sZW5ndGggPT09IDApIHtcbiAgICAgICAgYmxvY2tzdGF0ZSA9IDE7XG4gICAgICAgIGNvbnRpbnVlO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgaWYgKFN0ci5jb250YWlucyhsaW5lLCBcIipcIikpIHtcbiAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoYmxvY2tzdGF0ZSA9PT0gMSkge1xuICAgICAgICAgIHNlcUNvdW50ZXIgPSAwO1xuICAgICAgICAgIGJsb2Nrc3RhdGUgPSAwO1xuICAgICAgICB9XG4gICAgICAgIHJlZ2V4ID0gL14oPzpcXHMqKShcXFMrKSg/OlxccyspKFxcUyspKD86XFxzKikoXFxkKikoPzpcXHMqfCQpL2c7XG4gICAgICAgIG1hdGNoID0gcmVnZXguZXhlYyhsaW5lKTtcbiAgICAgICAgaWYgKG1hdGNoICE9IG51bGwpIHtcbiAgICAgICAgICBsYWJlbCA9IG1hdGNoWzFdO1xuICAgICAgICAgIHNlcXVlbmNlID0gbWF0Y2hbMl07XG4gICAgICAgICAgaWYgKHNlcUNvdW50ZXIgPj0gc2Vxcy5sZW5ndGgpIHtcbiAgICAgICAgICAgIHNlcXMucHVzaChuZXcgU2VxKHNlcXVlbmNlLCBsYWJlbCwgc2VxQ291bnRlcikpO1xuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBzZXFzW3NlcUNvdW50ZXJdLnNlcSArPSBzZXF1ZW5jZTtcbiAgICAgICAgICB9XG4gICAgICA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dy5iaW9qc1Zpc01zYSA9IHdpbmRvdy5tc2E7XG5cbnJlcXVpcmUoJy4vYnVpbGQvbXNhLmNzcycpO1xuIiwidmFyIHJlcSA9IHJlcXVpcmUoJ3JlcXVlc3QnKVxuXG5tb2R1bGUuZXhwb3J0cyA9IE5ldHNcblxuZnVuY3Rpb24gTmV0cyh1cmksIG9wdHMsIGNiKSB7XG4gIHJlcSh1cmksIG9wdHMsIGNiKVxufSJdfQ==
-
-
-
-// this is a way how you use a bundled file parser
-biojs.io.clustal.read("#", function(seqs){
-var opts = {};
-
-// set your custom properties
-// @see: https://github.com/greenify/biojs-vis-msa/tree/master/src/g
-
-var jalviewData = JSON.parse(document.getElementById("seqData").value);
-opts.seqs = jalviewData['seqs'];
-
-opts.el = document.getElementById("yourDiv");
-opts.vis = {conserv: false, overviewbox: false, labelId: false};
-opts.zoomer = {alignmentHeight: 225, labelWidth: 130,labelFontsize: "13px",labelIdLength: 20, menuFontsize: "12px",menuMarginLeft: "3px", menuPadding: "3px 4px 3px 4px", menuItemFontsize: "14px", menuItemLineHeight: "14px"};
-
-
-
-// init msa
-var m = new msa.msa(opts);
-
-m.g.colorscheme.set("scheme", jalviewData['jalviewSettings'].globalColorScheme);
-
-var x = 0;
-//jalviewData.seqs.forEach( function (seq)
-//{
-//m.seqs.at(x++).set("features", new msa.model.featurecol(seq.features));
-//});
-
-//console.debug(">>>>>>>>>>>>>" + m.seqs.length);
-//console.debug(">>>>>>>>>>>>> Found features : " + jalviewData.seqFeatures.length);
-m.seqs.forEach( function (seq )
-{
- var seqFeats = [];
- for (i = 0; i < jalviewData.seqFeatures.length; i++) {
- console.debug('comparing >>>>>>>> '+ seq.id)
- if(jalviewData.seqFeatures[i].sequenceRef === seq.id){
- // console.debug('>>>>>>>> '+jalviewData.seqFeatures[i].sequenceRef+' | '+ seq.id)
- seqFeats.push(jalviewData.seqFeatures[i]);
- }
- }
-console.debug('matched features count : '+seqFeats.length);
-seq.set("features", new msa.model.featurecol(seqFeats));
-});
-
-// the menu is independent to the MSA container
-var menuOpts = {};
-menuOpts.el = document.getElementById('div');
-menuOpts.msa = m;
-var defMenu = new msa.menu.defaultmenu(menuOpts);
-m.addView("menu", defMenu);
-
-// call render at the end to display the whole MSA
-m.render();
-toggleMenuVisibility();
-toggleMenuVisibility();
-});
-</script>
+++ /dev/null
-<html>
-<header><title>BioJS viewer</title></header>
-
-<body>
-
-<!-- include MSA js + css -->
-<!-- <script src="https://s3-eu-west-1.amazonaws.com/biojs/msa/latest/msa.js"></script> -->
-<!-- <link type=text/css rel=stylesheet href=https://s3-eu-west-1.amazonaws.com/biojs/msa/latest/msa.css /> -->
-
- <img src="http://www.jalview.org/help/html/Jalview_Logo.png" alt="Jalview Logo" title="This html page was generated from Jalview, to import the data back to Jalview, please drag the generated html file and drop it unto the Jalview workbench.
-
- Alternatively, you could copy the url from the address bar and use Jalview's url importer (main menu-> File-> Input Alignment-> from URL) to import back the alignment jalview." >
-
-</br>
-</br>
-
-<input type="button" name="divToggleButton" id="divToggleButton" onclick="javascipt:toggleMenuVisibility();" value="Show Menu"></input>
-<button onclick="javascipt:openJalviewUsingCurrentUrl();">Launch in Jalview</button>
-
-</br>
-</br>
-
-<div id="yourDiv">press "Run with JS"</div>
-<input type='hidden' id='seqData' name='seqData' value='#sequenceData#'/>
-
-</body>
-</html>
-
-
-
-<script>
-
-function toggleMenuVisibility(){
- var menu = document.getElementsByClassName("biojs_msa_menubar");
- var divToggleButton = document.getElementById("divToggleButton");
- if(menu[0].style.display == 'block'){
- menu[0].style.display = 'none';
- divToggleButton.value="Show Menu";
- }else{
- menu[0].style.display = 'block';
- divToggleButton.value="Hide Menu";
- }
-}
-
-
-function openJalviewUsingCurrentUrl(){
- var json = JSON.parse(document.getElementById("seqData").value)
- var jalviewVersion = json['jalviewSettings'].jalviewVersion;
- var url = json['jalviewSettings'].webStartUrl;
- var myForm = document.createElement("form");
- myForm.action = url;
-
- var heap = document.createElement("input") ;
- heap.setAttribute("name", "jvm-max-heap") ;
- heap.setAttribute("value", "2G");
- myForm.appendChild(heap) ;
-
- var target = document.createElement("input") ;
- target.setAttribute("name", "open") ;
- target.setAttribute("value", document.URL);
- myForm.appendChild(target) ;
-
- var jvVersion = document.createElement("input") ;
- jvVersion.setAttribute("name", "version") ;
- jvVersion.setAttribute("value", jalviewVersion);
- myForm.appendChild(jvVersion) ;
-
-
- document.body.appendChild(myForm) ;
- myForm.submit() ;
- document.body.removeChild(myForm) ;
-}
-
-
-require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
-var css = ".biojs_msa_stage {\n cursor: default;\n line-height: normal; }\n\n.biojs_msa_labels {\n color: black;\n display: inline-block;\n white-space: nowrap;\n cursor: pointer;\n vertical-align: top; }\n\n.biojs_msa_seqblock {\n cursor: move; }\n\n.biojs_msa_layer {\n display: block;\n white-space: nowrap; }\n\n.biojs_msa_labelblock::-webkit-scrollbar, .biojs_msa_header::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 7px;\n height: 7px; }\n\n.biojs_msa_labelblock::-webkit-scrollbar-thumb, .biojs_msa_header::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0, 0, 0, 0.5);\n box-shadow: 0 0 1px rgba(255, 255, 255, 0.5); }\n\n.biojs_msa_marker {\n color: grey;\n white-space: nowrap;\n cursor: pointer; }\n\n.biojs_msa_marker span {\n text-align: center; }\n\n.biojs_msa_menubar .biojs_msa_menubar_alink {\n background: #3498db;\n background-image: -webkit-linear-gradient(top, #3498db, #2980b9);\n background-image: -moz-linear-gradient(top, #3498db, #2980b9);\n background-image: -ms-linear-gradient(top, #3498db, #2980b9);\n background-image: -o-linear-gradient(top, #3498db, #2980b9);\n background-image: linear-gradient(to bottom, #3498db, #2980b9);\n -webkit-border-radius: 28;\n -moz-border-radius: 28;\n border-radius: 28px;\n font-family: Arial;\n color: #ffffff;\n padding: 3px 10px 3px 10px;\n margin-left: 10px;\n text-decoration: none; }\n\n.biojs_msa_menubar .biojs_msa_menubar_alink:hover {\n cursor: pointer; }\n\n/* jquery dropdown CSS */\n.dropdown {\n position: absolute;\n z-index: 9999999;\n display: none; }\n\n.dropdown .dropdown-menu,\n.dropdown .dropdown-panel {\n min-width: 160px;\n max-width: 360px;\n list-style: none;\n background: #FFF;\n border: solid 1px #DDD;\n border: solid 1px rgba(0, 0, 0, 0.2);\n border-radius: 6px;\n box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n overflow: visible;\n padding: 4px 0;\n margin: 0; }\n\n.dropdown .dropdown-panel {\n padding: 10px; }\n\n.dropdown.dropdown-scroll .dropdown-menu,\n.dropdown.dropdown-scroll .dropdown-panel {\n max-height: 358px;\n overflow: auto; }\n\n.dropdown .dropdown-menu LI {\n list-style: none;\n padding: 0 0;\n margin: 0;\n line-height: 18px; }\n\n.dropdown .dropdown-menu LI,\n.dropdown .dropdown-menu LABEL {\n display: block;\n color: #555;\n text-decoration: none;\n line-height: 18px;\n padding: 3px 15px;\n white-space: nowrap; }\n\n.dropdown .dropdown-menu LI:hover,\n.dropdown .dropdown-menu LABEL:hover {\n background-color: #08C;\n color: #FFF;\n cursor: pointer; }\n\n.dropdown .dropdown-menu .dropdown-divider {\n font-size: 1px;\n border-top: solid 1px #E5E5E5;\n padding: 0;\n margin: 5px 0; }\n"; (require("/home/travis/build/greenify/biojs-vis-msa/node_modules/cssify"))(css); module.exports = css;
-},{"/home/travis/build/greenify/biojs-vis-msa/node_modules/cssify":48}],2:[function(require,module,exports){
-module.exports = require("./src/index");
-
-},{"./src/index":72}],3:[function(require,module,exports){
-var _ = require('underscore');
-var viewType = require("backbone-viewj");
-var pluginator;
-
-module.exports = pluginator = viewType.extend({
- renderSubviews: function() {
- var oldEl = this.el;
- var el = document.createElement("div");
- this.setElement(el);
- var frag = document.createDocumentFragment();
- if (oldEl.parentNode != null) {
- oldEl.parentNode.replaceChild(this.el, oldEl);
- }
- var views = this._views();
- var viewsSorted = _.sortBy(views, function(el) {
- return el.ordering;
- });
- var view, node;
- for (var i = 0; i < viewsSorted.length; i++) {
- view = viewsSorted[i];
- view.render();
- node = view.el;
- if (node != null) {
- frag.appendChild(node);
- }
- }
- el.appendChild(frag);
- return el;
- },
- addView: function(key, view) {
- var views = this._views();
- if (view == null) {
- throw "Invalid plugin. ";
- }
- if (view.ordering == null) {
- view.ordering = key;
- }
- return views[key] = view;
- },
- removeViews: function() {
- var el, key;
- var views = this._views();
- for (key in views) {
- el = views[key];
- el.undelegateEvents();
- el.unbind();
- if (el.removeViews != null) {
- el.removeViews();
- }
- el.remove();
- }
- return this.views = {};
- },
- removeView: function(key) {
- var views = this._views();
- views[key].remove();
- return delete views[key];
- },
- getView: function(key) {
- var views = this._views();
- return views[key];
- },
- remove: function() {
- this.removeViews();
- return viewType.prototype.remove.apply(this);
- },
- _views: function() {
- if (this.views == null) {
- this.views = {};
- }
- return this.views;
- }
-});
-
-},{"backbone-viewj":10,"underscore":59}],4:[function(require,module,exports){
-// Backbone.js 1.1.2
-
-// (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
-// Backbone may be freely distributed under the MIT license.
-// For all details and documentation:
-// http://backbonejs.org
-
-var Events = require("backbone-events-standalone");
-var extend = require("backbone-extend-standalone");
-var _ = require("underscore");
-var Model = require("./model");
-
-// Create local references to array methods we'll want to use later.
-var array = [];
-var slice = array.slice;
-
-// Backbone.Collection
-// -------------------
-
-// If models tend to represent a single row of data, a Backbone Collection is
-// more analogous to a table full of data ... or a small slice or page of that
-// table, or a collection of rows that belong together for a particular reason
-// -- all of the messages in this particular folder, all of the documents
-// belonging to this particular author, and so on. Collections maintain
-// indexes of their models, both in order, and for lookup by `id`.
-
-// Create a new **Collection**, perhaps to contain a specific type of `model`.
-// If a `comparator` is specified, the Collection will maintain
-// its models in sort order, as they're added and removed.
-var Collection = function(models, options) {
- options || (options = {});
- if (options.model) this.model = options.model;
- if (options.comparator !== void 0) this.comparator = options.comparator;
- this._reset();
- this.initialize.apply(this, arguments);
- if (models) this.reset(models, _.extend({silent: true}, options));
-};
-
-// Default options for `Collection#set`.
-var setOptions = {add: true, remove: true, merge: true};
-var addOptions = {add: true, remove: false};
-
-// Define the Collection's inheritable methods.
-_.extend(Collection.prototype, Events, {
-
- // The default model for a collection is just a **Backbone.Model**.
- // This should be overridden in most cases.
- model: Model,
-
- // Initialize is an empty function by default. Override it with your own
- // initialization logic.
- initialize: function(){},
-
- // The JSON representation of a Collection is an array of the
- // models' attributes.
- toJSON: function(options) {
- return this.map(function(model){ return model.toJSON(options); });
- },
-
- // Proxy `Backbone.sync` by default.
- sync: function() {
- return Backbone.sync.apply(this, arguments);
- },
-
- // Add a model, or list of models to the set.
- add: function(models, options) {
- return this.set(models, _.extend({merge: false}, options, addOptions));
- },
-
- // Remove a model, or a list of models from the set.
- remove: function(models, options) {
- var singular = !_.isArray(models);
- models = singular ? [models] : _.clone(models);
- options || (options = {});
- for (var i = 0, length = models.length; i < length; i++) {
- var model = models[i] = this.get(models[i]);
- if (!model) continue;
- var id = this.modelId(model.attributes);
- if (id != null) delete this._byId[id];
- delete this._byId[model.cid];
- var index = this.indexOf(model);
- this.models.splice(index, 1);
- this.length--;
- if (!options.silent) {
- options.index = index;
- model.trigger('remove', model, this, options);
- }
- this._removeReference(model, options);
- }
- return singular ? models[0] : models;
- },
-
- // Update a collection by `set`-ing a new list of models, adding new ones,
- // removing models that are no longer present, and merging models that
- // already exist in the collection, as necessary. Similar to **Model#set**,
- // the core operation for updating the data contained by the collection.
- set: function(models, options) {
- options = _.defaults({}, options, setOptions);
- if (options.parse) models = this.parse(models, options);
- var singular = !_.isArray(models);
- models = singular ? (models ? [models] : []) : models.slice();
- var id, model, attrs, existing, sort;
- var at = options.at;
- var sortable = this.comparator && (at == null) && options.sort !== false;
- var sortAttr = _.isString(this.comparator) ? this.comparator : null;
- var toAdd = [], toRemove = [], modelMap = {};
- var add = options.add, merge = options.merge, remove = options.remove;
- var order = !sortable && add && remove ? [] : false;
-
- // Turn bare objects into model references, and prevent invalid models
- // from being added.
- for (var i = 0, length = models.length; i < length; i++) {
- attrs = models[i];
-
- // If a duplicate is found, prevent it from being added and
- // optionally merge it into the existing model.
- if (existing = this.get(attrs)) {
- if (remove) modelMap[existing.cid] = true;
- if (merge && attrs !== existing) {
- attrs = this._isModel(attrs) ? attrs.attributes : attrs;
- if (options.parse) attrs = existing.parse(attrs, options);
- existing.set(attrs, options);
- if (sortable && !sort && existing.hasChanged(sortAttr)) sort = true;
- }
- models[i] = existing;
-
- // If this is a new, valid model, push it to the `toAdd` list.
- } else if (add) {
- model = models[i] = this._prepareModel(attrs, options);
- if (!model) continue;
- toAdd.push(model);
- this._addReference(model, options);
- }
-
- // Do not add multiple models with the same `id`.
- model = existing || model;
- if (!model) continue;
- id = this.modelId(model.attributes);
- if (order && (model.isNew() || !modelMap[id])) order.push(model);
- modelMap[id] = true;
- }
-
- // Remove nonexistent models if appropriate.
- if (remove) {
- for (var i = 0, length = this.length; i < length; i++) {
- if (!modelMap[(model = this.models[i]).cid]) toRemove.push(model);
- }
- if (toRemove.length) this.remove(toRemove, options);
- }
-
- // See if sorting is needed, update `length` and splice in new models.
- if (toAdd.length || (order && order.length)) {
- if (sortable) sort = true;
- this.length += toAdd.length;
- if (at != null) {
- for (var i = 0, length = toAdd.length; i < length; i++) {
- this.models.splice(at + i, 0, toAdd[i]);
- }
- } else {
- if (order) this.models.length = 0;
- var orderedModels = order || toAdd;
- for (var i = 0, length = orderedModels.length; i < length; i++) {
- this.models.push(orderedModels[i]);
- }
- }
- }
-
- // Silently sort the collection if appropriate.
- if (sort) this.sort({silent: true});
-
- // Unless silenced, it's time to fire all appropriate add/sort events.
- if (!options.silent) {
- var addOpts = at != null ? _.clone(options) : options;
- for (var i = 0, length = toAdd.length; i < length; i++) {
- if (at != null) addOpts.index = at + i;
- (model = toAdd[i]).trigger('add', model, this, addOpts);
- }
- if (sort || (order && order.length)) this.trigger('sort', this, options);
- }
-
- // Return the added (or merged) model (or models).
- return singular ? models[0] : models;
- },
-
- // When you have more items than you want to add or remove individually,
- // you can reset the entire set with a new list of models, without firing
- // any granular `add` or `remove` events. Fires `reset` when finished.
- // Useful for bulk operations and optimizations.
- reset: function(models, options) {
- options || (options = {});
- for (var i = 0, length = this.models.length; i < length; i++) {
- this._removeReference(this.models[i], options);
- }
- options.previousModels = this.models;
- this._reset();
- models = this.add(models, _.extend({silent: true}, options));
- if (!options.silent) this.trigger('reset', this, options);
- return models;
- },
-
- // Add a model to the end of the collection.
- push: function(model, options) {
- return this.add(model, _.extend({at: this.length}, options));
- },
-
- // Remove a model from the end of the collection.
- pop: function(options) {
- var model = this.at(this.length - 1);
- this.remove(model, options);
- return model;
- },
-
- // Add a model to the beginning of the collection.
- unshift: function(model, options) {
- return this.add(model, _.extend({at: 0}, options));
- },
-
- // Remove a model from the beginning of the collection.
- shift: function(options) {
- var model = this.at(0);
- this.remove(model, options);
- return model;
- },
-
- // Slice out a sub-array of models from the collection.
- slice: function() {
- return slice.apply(this.models, arguments);
- },
-
- // Get a model from the set by id.
- get: function(obj) {
- if (obj == null) return void 0;
- var id = this.modelId(this._isModel(obj) ? obj.attributes : obj);
- return this._byId[obj] || this._byId[id] || this._byId[obj.cid];
- },
-
- // Get the model at the given index.
- at: function(index) {
- if (index < 0) index += this.length;
- return this.models[index];
- },
-
- // Return models with matching attributes. Useful for simple cases of
- // `filter`.
- where: function(attrs, first) {
- if (_.isEmpty(attrs)) return first ? void 0 : [];
- return this[first ? 'find' : 'filter'](function(model) {
- for (var key in attrs) {
- if (attrs[key] !== model.get(key)) return false;
- }
- return true;
- });
- },
-
- // Return the first model with matching attributes. Useful for simple cases
- // of `find`.
- findWhere: function(attrs) {
- return this.where(attrs, true);
- },
-
- // Force the collection to re-sort itself. You don't need to call this under
- // normal circumstances, as the set will maintain sort order as each item
- // is added.
- sort: function(options) {
- if (!this.comparator) throw new Error('Cannot sort a set without a comparator');
- options || (options = {});
-
- // Run sort based on type of `comparator`.
- if (_.isString(this.comparator) || this.comparator.length === 1) {
- this.models = this.sortBy(this.comparator, this);
- } else {
- this.models.sort(_.bind(this.comparator, this));
- }
-
- if (!options.silent) this.trigger('sort', this, options);
- return this;
- },
-
- // Pluck an attribute from each model in the collection.
- pluck: function(attr) {
- return _.invoke(this.models, 'get', attr);
- },
-
- // Fetch the default set of models for this collection, resetting the
- // collection when they arrive. If `reset: true` is passed, the response
- // data will be passed through the `reset` method instead of `set`.
- fetch: function(options) {
- options = options ? _.clone(options) : {};
- if (options.parse === void 0) options.parse = true;
- var success = options.success;
- var collection = this;
- options.success = function(resp) {
- var method = options.reset ? 'reset' : 'set';
- collection[method](resp, options);
- if (success) success(collection, resp, options);
- collection.trigger('sync', collection, resp, options);
- };
- wrapError(this, options);
- return this.sync('read', this, options);
- },
-
- // Create a new instance of a model in this collection. Add the model to the
- // collection immediately, unless `wait: true` is passed, in which case we
- // wait for the server to agree.
- create: function(model, options) {
- options = options ? _.clone(options) : {};
- if (!(model = this._prepareModel(model, options))) return false;
- if (!options.wait) this.add(model, options);
- var collection = this;
- var success = options.success;
- options.success = function(model, resp) {
- if (options.wait) collection.add(model, options);
- if (success) success(model, resp, options);
- };
- model.save(null, options);
- return model;
- },
-
- // **parse** converts a response into a list of models to be added to the
- // collection. The default implementation is just to pass it through.
- parse: function(resp, options) {
- return resp;
- },
-
- // Create a new collection with an identical list of models as this one.
- clone: function() {
- return new this.constructor(this.models, {
- model: this.model,
- comparator: this.comparator
- });
- },
-
- // Define how to uniquely identify models in the collection.
- modelId: function (attrs) {
- return attrs[this.model.prototype.idAttribute || 'id'];
- },
-
- // Private method to reset all internal state. Called when the collection
- // is first initialized or reset.
- _reset: function() {
- this.length = 0;
- this.models = [];
- this._byId = {};
- },
-
- // Prepare a hash of attributes (or other model) to be added to this
- // collection.
- _prepareModel: function(attrs, options) {
- if (this._isModel(attrs)) {
- if (!attrs.collection) attrs.collection = this;
- return attrs;
- }
- options = options ? _.clone(options) : {};
- options.collection = this;
- var model = new this.model(attrs, options);
- if (!model.validationError) return model;
- this.trigger('invalid', this, model.validationError, options);
- return false;
- },
-
- // Method for checking whether an object should be considered a model for
- // the purposes of adding to the collection.
- _isModel: function (model) {
- return model instanceof Model;
- },
-
- // Internal method to create a model's ties to a collection.
- _addReference: function(model, options) {
- this._byId[model.cid] = model;
- var id = this.modelId(model.attributes);
- if (id != null) this._byId[id] = model;
- model.on('all', this._onModelEvent, this);
- },
-
- // Internal method to sever a model's ties to a collection.
- _removeReference: function(model, options) {
- if (this === model.collection) delete model.collection;
- model.off('all', this._onModelEvent, this);
- },
-
- // Internal method called every time a model in the set fires an event.
- // Sets need to update their indexes when models change ids. All other
- // events simply proxy through. "add" and "remove" events that originate
- // in other collections are ignored.
- _onModelEvent: function(event, model, collection, options) {
- if ((event === 'add' || event === 'remove') && collection !== this) return;
- if (event === 'destroy') this.remove(model, options);
- if (event === 'change') {
- var prevId = this.modelId(model.previousAttributes());
- var id = this.modelId(model.attributes);
- if (prevId !== id) {
- if (prevId != null) delete this._byId[prevId];
- if (id != null) this._byId[id] = model;
- }
- }
- this.trigger.apply(this, arguments);
- }
-
-});
-
-// Underscore methods that we want to implement on the Collection.
-// 90% of the core usefulness of Backbone Collections is actually implemented
-// right here:
-var methods = ['forEach', 'each', 'map', 'collect', 'reduce', 'foldl',
- 'inject', 'reduceRight', 'foldr', 'find', 'detect', 'filter', 'select',
- 'reject', 'every', 'all', 'some', 'any', 'include', 'contains', 'invoke',
- 'max', 'min', 'toArray', 'size', 'first', 'head', 'take', 'initial', 'rest',
- 'tail', 'drop', 'last', 'without', 'difference', 'indexOf', 'shuffle',
- 'lastIndexOf', 'isEmpty', 'chain', 'sample', 'partition'];
-
-// Mix in each Underscore method as a proxy to `Collection#models`.
-_.each(methods, function(method) {
- if (!_[method]) return;
- Collection.prototype[method] = function() {
- var args = slice.call(arguments);
- args.unshift(this.models);
- return _[method].apply(_, args);
- };
-});
-
-// Underscore methods that take a property name as an argument.
-var attributeMethods = ['groupBy', 'countBy', 'sortBy', 'indexBy'];
-
-// Use attributes instead of properties.
-_.each(attributeMethods, function(method) {
- if (!_[method]) return;
- Collection.prototype[method] = function(value, context) {
- var iterator = _.isFunction(value) ? value : function(model) {
- return model.get(value);
- };
- return _[method](this.models, iterator, context);
- };
-});
-
-// setup inheritance
-Collection.extend = extend;
-module.exports = Collection;
-
-},{"./model":6,"backbone-events-standalone":8,"backbone-extend-standalone":9,"underscore":59}],5:[function(require,module,exports){
-module.exports.Model = require("./model");
-module.exports.Collection = require("./collection");
-module.exports.Events = require("backbone-events-standalone");
-module.exports.extend = require("backbone-extend-standalone");
-
-},{"./collection":4,"./model":6,"backbone-events-standalone":8,"backbone-extend-standalone":9}],6:[function(require,module,exports){
-// Backbone.js 1.1.2
-
-// (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
-// Backbone may be freely distributed under the MIT license.
-// For all details and documentation:
-// http://backbonejs.org
-
-var Events = require("backbone-events-standalone");
-var extend = require("backbone-extend-standalone");
-var _ = require("underscore");
-
-// Backbone.Model
-// --------------
-
-// Backbone **Models** are the basic data object in the framework --
-// frequently representing a row in a table in a database on your server.
-// A discrete chunk of data and a bunch of useful, related methods for
-// performing computations and transformations on that data.
-
-// Create a new model with the specified attributes. A client id (`cid`)
-// is automatically generated and assigned for you.
-var Model = function(attributes, options) {
- var attrs = attributes || {};
- options || (options = {});
- this.cid = _.uniqueId('c');
- this.attributes = {};
- if (options.collection) this.collection = options.collection;
- if (options.parse) attrs = this.parse(attrs, options) || {};
- attrs = _.defaults({}, attrs, _.result(this, 'defaults'));
- this.set(attrs, options);
- this.changed = {};
- this.initialize.apply(this, arguments);
-};
-
-// Attach all inheritable methods to the Model prototype.
-_.extend(Model.prototype, Events, {
-
- // A hash of attributes whose current and previous value differ.
- changed: null,
-
- // The value returned during the last failed validation.
- validationError: null,
-
- // The default name for the JSON `id` attribute is `"id"`. MongoDB and
- // CouchDB users may want to set this to `"_id"`.
- idAttribute: 'id',
-
- // Initialize is an empty function by default. Override it with your own
- // initialization logic.
- initialize: function(){},
-
- // Return a copy of the model's `attributes` object.
- toJSON: function(options) {
- return _.clone(this.attributes);
- },
-
- // Proxy `Backbone.sync` by default -- but override this if you need
- // custom syncing semantics for *this* particular model.
- sync: function() {
- return Backbone.sync.apply(this, arguments);
- },
-
- // Get the value of an attribute.
- get: function(attr) {
- return this.attributes[attr];
- },
-
- // Get the HTML-escaped value of an attribute.
- escape: function(attr) {
- return _.escape(this.get(attr));
- },
-
- // Returns `true` if the attribute contains a value that is not null
- // or undefined.
- has: function(attr) {
- return this.get(attr) != null;
- },
-
- // Set a hash of model attributes on the object, firing `"change"`. This is
- // the core primitive operation of a model, updating the data and notifying
- // anyone who needs to know about the change in state. The heart of the beast.
- set: function(key, val, options) {
- var attr, attrs, unset, changes, silent, changing, prev, current;
- if (key == null) return this;
-
- // Handle both `"key", value` and `{key: value}` -style arguments.
- if (typeof key === 'object') {
- attrs = key;
- options = val;
- } else {
- (attrs = {})[key] = val;
- }
-
- options || (options = {});
-
- // Run validation.
- if (!this._validate(attrs, options)) return false;
-
- // Extract attributes and options.
- unset = options.unset;
- silent = options.silent;
- changes = [];
- changing = this._changing;
- this._changing = true;
-
- if (!changing) {
- this._previousAttributes = _.clone(this.attributes);
- this.changed = {};
- }
- current = this.attributes, prev = this._previousAttributes;
-
- // Check for changes of `id`.
- if (this.idAttribute in attrs) this.id = attrs[this.idAttribute];
-
- // For each `set` attribute, update or delete the current value.
- for (attr in attrs) {
- val = attrs[attr];
- if (!_.isEqual(current[attr], val)) changes.push(attr);
- if (!_.isEqual(prev[attr], val)) {
- this.changed[attr] = val;
- } else {
- delete this.changed[attr];
- }
- unset ? delete current[attr] : current[attr] = val;
- }
-
- // Trigger all relevant attribute changes.
- if (!silent) {
- if (changes.length) this._pending = options;
- for (var i = 0, length = changes.length; i < length; i++) {
- this.trigger('change:' + changes[i], this, current[changes[i]], options);
- }
- }
-
- // You might be wondering why there's a `while` loop here. Changes can
- // be recursively nested within `"change"` events.
- if (changing) return this;
- if (!silent) {
- while (this._pending) {
- options = this._pending;
- this._pending = false;
- this.trigger('change', this, options);
- }
- }
- this._pending = false;
- this._changing = false;
- return this;
- },
-
- // Remove an attribute from the model, firing `"change"`. `unset` is a noop
- // if the attribute doesn't exist.
- unset: function(attr, options) {
- return this.set(attr, void 0, _.extend({}, options, {unset: true}));
- },
-
- // Clear all attributes on the model, firing `"change"`.
- clear: function(options) {
- var attrs = {};
- for (var key in this.attributes) attrs[key] = void 0;
- return this.set(attrs, _.extend({}, options, {unset: true}));
- },
-
- // Determine if the model has changed since the last `"change"` event.
- // If you specify an attribute name, determine if that attribute has changed.
- hasChanged: function(attr) {
- if (attr == null) return !_.isEmpty(this.changed);
- return _.has(this.changed, attr);
- },
-
- // Return an object containing all the attributes that have changed, or
- // false if there are no changed attributes. Useful for determining what
- // parts of a view need to be updated and/or what attributes need to be
- // persisted to the server. Unset attributes will be set to undefined.
- // You can also pass an attributes object to diff against the model,
- // determining if there *would be* a change.
- changedAttributes: function(diff) {
- if (!diff) return this.hasChanged() ? _.clone(this.changed) : false;
- var val, changed = false;
- var old = this._changing ? this._previousAttributes : this.attributes;
- for (var attr in diff) {
- if (_.isEqual(old[attr], (val = diff[attr]))) continue;
- (changed || (changed = {}))[attr] = val;
- }
- return changed;
- },
-
- // Get the previous value of an attribute, recorded at the time the last
- // `"change"` event was fired.
- previous: function(attr) {
- if (attr == null || !this._previousAttributes) return null;
- return this._previousAttributes[attr];
- },
-
- // Get all of the attributes of the model at the time of the previous
- // `"change"` event.
- previousAttributes: function() {
- return _.clone(this._previousAttributes);
- },
-
- // Fetch the model from the server. If the server's representation of the
- // model differs from its current attributes, they will be overridden,
- // triggering a `"change"` event.
- fetch: function(options) {
- options = options ? _.clone(options) : {};
- if (options.parse === void 0) options.parse = true;
- var model = this;
- var success = options.success;
- options.success = function(resp) {
- if (!model.set(model.parse(resp, options), options)) return false;
- if (success) success(model, resp, options);
- model.trigger('sync', model, resp, options);
- };
- wrapError(this, options);
- return this.sync('read', this, options);
- },
-
- // Set a hash of model attributes, and sync the model to the server.
- // If the server returns an attributes hash that differs, the model's
- // state will be `set` again.
- save: function(key, val, options) {
- var attrs, method, xhr, attributes = this.attributes;
-
- // Handle both `"key", value` and `{key: value}` -style arguments.
- if (key == null || typeof key === 'object') {
- attrs = key;
- options = val;
- } else {
- (attrs = {})[key] = val;
- }
-
- options = _.extend({validate: true}, options);
-
- // If we're not waiting and attributes exist, save acts as
- // `set(attr).save(null, opts)` with validation. Otherwise, check if
- // the model will be valid when the attributes, if any, are set.
- if (attrs && !options.wait) {
- if (!this.set(attrs, options)) return false;
- } else {
- if (!this._validate(attrs, options)) return false;
- }
-
- // Set temporary attributes if `{wait: true}`.
- if (attrs && options.wait) {
- this.attributes = _.extend({}, attributes, attrs);
- }
-
- // After a successful server-side save, the client is (optionally)
- // updated with the server-side state.
- if (options.parse === void 0) options.parse = true;
- var model = this;
- var success = options.success;
- options.success = function(resp) {
- // Ensure attributes are restored during synchronous saves.
- model.attributes = attributes;
- var serverAttrs = model.parse(resp, options);
- if (options.wait) serverAttrs = _.extend(attrs || {}, serverAttrs);
- if (_.isObject(serverAttrs) && !model.set(serverAttrs, options)) {
- return false;
- }
- if (success) success(model, resp, options);
- model.trigger('sync', model, resp, options);
- };
- wrapError(this, options);
-
- method = this.isNew() ? 'create' : (options.patch ? 'patch' : 'update');
- if (method === 'patch' && !options.attrs) options.attrs = attrs;
- xhr = this.sync(method, this, options);
-
- // Restore attributes.
- if (attrs && options.wait) this.attributes = attributes;
-
- return xhr;
- },
-
- // Destroy this model on the server if it was already persisted.
- // Optimistically removes the model from its collection, if it has one.
- // If `wait: true` is passed, waits for the server to respond before removal.
- destroy: function(options) {
- options = options ? _.clone(options) : {};
- var model = this;
- var success = options.success;
-
- var destroy = function() {
- model.stopListening();
- model.trigger('destroy', model, model.collection, options);
- };
-
- options.success = function(resp) {
- if (options.wait || model.isNew()) destroy();
- if (success) success(model, resp, options);
- if (!model.isNew()) model.trigger('sync', model, resp, options);
- };
-
- if (this.isNew()) {
- options.success();
- return false;
- }
- wrapError(this, options);
-
- var xhr = this.sync('delete', this, options);
- if (!options.wait) destroy();
- return xhr;
- },
-
- // Default URL for the model's representation on the server -- if you're
- // using Backbone's restful methods, override this to change the endpoint
- // that will be called.
- url: function() {
- var base =
- _.result(this, 'urlRoot') ||
- _.result(this.collection, 'url') ||
- urlError();
- if (this.isNew()) return base;
- return base.replace(/([^\/])$/, '$1/') + encodeURIComponent(this.id);
- },
-
- // **parse** converts a response into the hash of attributes to be `set` on
- // the model. The default implementation is just to pass the response along.
- parse: function(resp, options) {
- return resp;
- },
-
- // Create a new model with identical attributes to this one.
- clone: function() {
- return new this.constructor(this.attributes);
- },
-
- // A model is new if it has never been saved to the server, and lacks an id.
- isNew: function() {
- return !this.has(this.idAttribute);
- },
-
- // Check if the model is currently in a valid state.
- isValid: function(options) {
- return this._validate({}, _.extend(options || {}, { validate: true }));
- },
-
- // Run validation against the next complete set of model attributes,
- // returning `true` if all is well. Otherwise, fire an `"invalid"` event.
- _validate: function(attrs, options) {
- if (!options.validate || !this.validate) return true;
- attrs = _.extend({}, this.attributes, attrs);
- var error = this.validationError = this.validate(attrs, options) || null;
- if (!error) return true;
- this.trigger('invalid', this, error, _.extend(options, {validationError: error}));
- return false;
- }
-
-});
-
-// Underscore methods that we want to implement on the Model.
-var modelMethods = ['keys', 'values', 'pairs', 'invert', 'pick', 'omit', 'chain', 'isEmpty'];
-
-// Mix in each Underscore method as a proxy to `Model#attributes`.
-_.each(modelMethods, function(method) {
- if (!_[method]) return;
- Model.prototype[method] = function() {
- var args = slice.call(arguments);
- args.unshift(this.attributes);
- return _[method].apply(_, args);
- };
-});
-
-// setup inheritance
-Model.extend = extend;
-module.exports = Model;
-
-},{"backbone-events-standalone":8,"backbone-extend-standalone":9,"underscore":59}],7:[function(require,module,exports){
-/**
- * Standalone extraction of Backbone.Events, no external dependency required.
- * Degrades nicely when Backone/underscore are already available in the current
- * global context.
- *
- * Note that docs suggest to use underscore's `_.extend()` method to add Events
- * support to some given object. A `mixin()` method has been added to the Events
- * prototype to avoid using underscore for that sole purpose:
- *
- * var myEventEmitter = BackboneEvents.mixin({});
- *
- * Or for a function constructor:
- *
- * function MyConstructor(){}
- * MyConstructor.prototype.foo = function(){}
- * BackboneEvents.mixin(MyConstructor.prototype);
- *
- * (c) 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
- * (c) 2013 Nicolas Perriault
- */
-/* global exports:true, define, module */
-(function() {
- var root = this,
- breaker = {},
- nativeForEach = Array.prototype.forEach,
- hasOwnProperty = Object.prototype.hasOwnProperty,
- slice = Array.prototype.slice,
- idCounter = 0;
-
- // Returns a partial implementation matching the minimal API subset required
- // by Backbone.Events
- function miniscore() {
- return {
- keys: Object.keys || function (obj) {
- if (typeof obj !== "object" && typeof obj !== "function" || obj === null) {
- throw new TypeError("keys() called on a non-object");
- }
- var key, keys = [];
- for (key in obj) {
- if (obj.hasOwnProperty(key)) {
- keys[keys.length] = key;
- }
- }
- return keys;
- },
-
- uniqueId: function(prefix) {
- var id = ++idCounter + '';
- return prefix ? prefix + id : id;
- },
-
- has: function(obj, key) {
- return hasOwnProperty.call(obj, key);
- },
-
- each: function(obj, iterator, context) {
- if (obj == null) return;
- if (nativeForEach && obj.forEach === nativeForEach) {
- obj.forEach(iterator, context);
- } else if (obj.length === +obj.length) {
- for (var i = 0, l = obj.length; i < l; i++) {
- if (iterator.call(context, obj[i], i, obj) === breaker) return;
- }
- } else {
- for (var key in obj) {
- if (this.has(obj, key)) {
- if (iterator.call(context, obj[key], key, obj) === breaker) return;
- }
- }
- }
- },
-
- once: function(func) {
- var ran = false, memo;
- return function() {
- if (ran) return memo;
- ran = true;
- memo = func.apply(this, arguments);
- func = null;
- return memo;
- };
- }
- };
- }
-
- var _ = miniscore(), Events;
-
- // Backbone.Events
- // ---------------
-
- // A module that can be mixed in to *any object* in order to provide it with
- // custom events. You may bind with `on` or remove with `off` callback
- // functions to an event; `trigger`-ing an event fires all callbacks in
- // succession.
- //
- // var object = {};
- // _.extend(object, Backbone.Events);
- // object.on('expand', function(){ alert('expanded'); });
- // object.trigger('expand');
- //
- Events = {
-
- // Bind an event to a `callback` function. Passing `"all"` will bind
- // the callback to all events fired.
- on: function(name, callback, context) {
- if (!eventsApi(this, 'on', name, [callback, context]) || !callback) return this;
- this._events || (this._events = {});
- var events = this._events[name] || (this._events[name] = []);
- events.push({callback: callback, context: context, ctx: context || this});
- return this;
- },
-
- // Bind an event to only be triggered a single time. After the first time
- // the callback is invoked, it will be removed.
- once: function(name, callback, context) {
- if (!eventsApi(this, 'once', name, [callback, context]) || !callback) return this;
- var self = this;
- var once = _.once(function() {
- self.off(name, once);
- callback.apply(this, arguments);
- });
- once._callback = callback;
- return this.on(name, once, context);
- },
-
- // Remove one or many callbacks. If `context` is null, removes all
- // callbacks with that function. If `callback` is null, removes all
- // callbacks for the event. If `name` is null, removes all bound
- // callbacks for all events.
- off: function(name, callback, context) {
- var retain, ev, events, names, i, l, j, k;
- if (!this._events || !eventsApi(this, 'off', name, [callback, context])) return this;
- if (!name && !callback && !context) {
- this._events = {};
- return this;
- }
-
- names = name ? [name] : _.keys(this._events);
- for (i = 0, l = names.length; i < l; i++) {
- name = names[i];
- if (events = this._events[name]) {
- this._events[name] = retain = [];
- if (callback || context) {
- for (j = 0, k = events.length; j < k; j++) {
- ev = events[j];
- if ((callback && callback !== ev.callback && callback !== ev.callback._callback) ||
- (context && context !== ev.context)) {
- retain.push(ev);
- }
- }
- }
- if (!retain.length) delete this._events[name];
- }
- }
-
- return this;
- },
-
- // Trigger one or many events, firing all bound callbacks. Callbacks are
- // passed the same arguments as `trigger` is, apart from the event name
- // (unless you're listening on `"all"`, which will cause your callback to
- // receive the true name of the event as the first argument).
- trigger: function(name) {
- if (!this._events) return this;
- var args = slice.call(arguments, 1);
- if (!eventsApi(this, 'trigger', name, args)) return this;
- var events = this._events[name];
- var allEvents = this._events.all;
- if (events) triggerEvents(events, args);
- if (allEvents) triggerEvents(allEvents, arguments);
- return this;
- },
-
- // Tell this object to stop listening to either specific events ... or
- // to every object it's currently listening to.
- stopListening: function(obj, name, callback) {
- var listeners = this._listeners;
- if (!listeners) return this;
- var deleteListener = !name && !callback;
- if (typeof name === 'object') callback = this;
- if (obj) (listeners = {})[obj._listenerId] = obj;
- for (var id in listeners) {
- listeners[id].off(name, callback, this);
- if (deleteListener) delete this._listeners[id];
- }
- return this;
- }
-
- };
-
- // Regular expression used to split event strings.
- var eventSplitter = /\s+/;
-
- // Implement fancy features of the Events API such as multiple event
- // names `"change blur"` and jQuery-style event maps `{change: action}`
- // in terms of the existing API.
- var eventsApi = function(obj, action, name, rest) {
- if (!name) return true;
-
- // Handle event maps.
- if (typeof name === 'object') {
- for (var key in name) {
- obj[action].apply(obj, [key, name[key]].concat(rest));
- }
- return false;
- }
-
- // Handle space separated event names.
- if (eventSplitter.test(name)) {
- var names = name.split(eventSplitter);
- for (var i = 0, l = names.length; i < l; i++) {
- obj[action].apply(obj, [names[i]].concat(rest));
- }
- return false;
- }
-
- return true;
- };
-
- // A difficult-to-believe, but optimized internal dispatch function for
- // triggering events. Tries to keep the usual cases speedy (most internal
- // Backbone events have 3 arguments).
- var triggerEvents = function(events, args) {
- var ev, i = -1, l = events.length, a1 = args[0], a2 = args[1], a3 = args[2];
- switch (args.length) {
- case 0: while (++i < l) (ev = events[i]).callback.call(ev.ctx); return;
- case 1: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1); return;
- case 2: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1, a2); return;
- case 3: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1, a2, a3); return;
- default: while (++i < l) (ev = events[i]).callback.apply(ev.ctx, args);
- }
- };
-
- var listenMethods = {listenTo: 'on', listenToOnce: 'once'};
-
- // Inversion-of-control versions of `on` and `once`. Tell *this* object to
- // listen to an event in another object ... keeping track of what it's
- // listening to.
- _.each(listenMethods, function(implementation, method) {
- Events[method] = function(obj, name, callback) {
- var listeners = this._listeners || (this._listeners = {});
- var id = obj._listenerId || (obj._listenerId = _.uniqueId('l'));
- listeners[id] = obj;
- if (typeof name === 'object') callback = this;
- obj[implementation](name, callback, this);
- return this;
- };
- });
-
- // Aliases for backwards compatibility.
- Events.bind = Events.on;
- Events.unbind = Events.off;
-
- // Mixin utility
- Events.mixin = function(proto) {
- var exports = ['on', 'once', 'off', 'trigger', 'stopListening', 'listenTo',
- 'listenToOnce', 'bind', 'unbind'];
- _.each(exports, function(name) {
- proto[name] = this[name];
- }, this);
- return proto;
- };
-
- // Export Events as BackboneEvents depending on current context
- if (typeof define === "function") {
- define(function() {
- return Events;
- });
- } else if (typeof exports !== 'undefined') {
- if (typeof module !== 'undefined' && module.exports) {
- exports = module.exports = Events;
- }
- exports.BackboneEvents = Events;
- } else {
- root.BackboneEvents = Events;
- }
-})(this);
-
-},{}],8:[function(require,module,exports){
-module.exports = require('./backbone-events-standalone');
-
-},{"./backbone-events-standalone":7}],9:[function(require,module,exports){
-(function (definition) {
- if (typeof exports === "object") {
- module.exports = definition();
- }
- else if (typeof define === 'function' && define.amd) {
- define(definition);
- }
- else {
- window.BackboneExtend = definition();
- }
-})(function () {
- "use strict";
-
- // mini-underscore
- var _ = {
- has: function (obj, key) {
- return Object.prototype.hasOwnProperty.call(obj, key);
- },
-
- extend: function(obj) {
- for (var i=1; i<arguments.length; ++i) {
- var source = arguments[i];
- if (source) {
- for (var prop in source) {
- obj[prop] = source[prop];
- }
- }
- }
- return obj;
- }
- };
-
- /// Following code is pasted from Backbone.js ///
-
- // Helper function to correctly set up the prototype chain, for subclasses.
- // Similar to `goog.inherits`, but uses a hash of prototype properties and
- // class properties to be extended.
- var extend = function(protoProps, staticProps) {
- var parent = this;
- var child;
-
- // The constructor function for the new subclass is either defined by you
- // (the "constructor" property in your `extend` definition), or defaulted
- // by us to simply call the parent's constructor.
- if (protoProps && _.has(protoProps, 'constructor')) {
- child = protoProps.constructor;
- } else {
- child = function(){ return parent.apply(this, arguments); };
- }
-
- // Add static properties to the constructor function, if supplied.
- _.extend(child, parent, staticProps);
-
- // Set the prototype chain to inherit from `parent`, without calling
- // `parent`'s constructor function.
- var Surrogate = function(){ this.constructor = child; };
- Surrogate.prototype = parent.prototype;
- child.prototype = new Surrogate();
-
- // Add prototype properties (instance properties) to the subclass,
- // if supplied.
- if (protoProps) _.extend(child.prototype, protoProps);
-
- // Set a convenience property in case the parent's prototype is needed
- // later.
- child.__super__ = parent.prototype;
-
- return child;
- };
-
- // Expose the extend function
- return extend;
-});
-
-},{}],10:[function(require,module,exports){
-// this is the extracted view model from backbone
-// note that we inject jbone as jquery replacment
-// (and underscore directly)
-//
-// Views are almost more convention than they are actual code.
-// MVC pattern
-// Backbone.View
-// -------------
-
-var _ = require("underscore");
-var Events = require("backbone-events-standalone");
-var extend = require("backbone-extend-standalone");
-var $ = require('jbone');
-
-// Backbone Views are almost more convention than they are actual code. A View
-// is simply a JavaScript object that represents a logical chunk of UI in the
-// DOM. This might be a single item, an entire list, a sidebar or panel, or
-// even the surrounding frame which wraps your whole app. Defining a chunk of
-// UI as a **View** allows you to define your DOM events declaratively, without
-// having to worry about render order ... and makes it easy for the view to
-// react to specific changes in the state of your models.
-
-// Creating a Backbone.View creates its initial element outside of the DOM,
-// if an existing element is not provided...
-var View = function(options) {
- this.cid = _.uniqueId('view');
- options || (options = {});
- _.extend(this, _.pick(options, viewOptions));
- this._ensureElement();
- this.initialize.apply(this, arguments);
-};
-
-// Cached regex to split keys for `delegate`.
-var delegateEventSplitter = /^(\S+)\s*(.*)$/;
-
-// List of view options to be merged as properties.
-var viewOptions = ['model', 'collection', 'el', 'id', 'attributes', 'className', 'tagName', 'events'];
-
-// Set up all inheritable **Backbone.View** properties and methods.
-_.extend(View.prototype, Events, {
-
- // The default `tagName` of a View's element is `"div"`.
- tagName: 'div',
-
- // jQuery delegate for element lookup, scoped to DOM elements within the
- // current view. This should be preferred to global lookups where possible.
- $: function(selector) {
- return this.$el.find(selector);
- },
-
- // Initialize is an empty function by default. Override it with your own
- // initialization logic.
- initialize: function(){},
-
- // **render** is the core function that your view should override, in order
- // to populate its element (`this.el`), with the appropriate HTML. The
- // convention is for **render** to always return `this`.
- render: function() {
- return this;
- },
-
- // Remove this view by taking the element out of the DOM, and removing any
- // applicable Backbone.Events listeners.
- remove: function() {
- this._removeElement();
- this.stopListening();
- return this;
- },
-
- // Remove this view's element from the document and all event listeners
- // attached to it. Exposed for subclasses using an alternative DOM
- // manipulation API.
- _removeElement: function() {
- this.$el.remove();
- },
-
- // Change the view's element (`this.el` property) and re-delegate the
- // view's events on the new element.
- setElement: function(element) {
- this.undelegateEvents();
- this._setElement(element);
- this.delegateEvents();
- return this;
- },
-
- // Creates the `this.el` and `this.$el` references for this view using the
- // given `el`. `el` can be a CSS selector or an HTML string, a jQuery
- // context or an element. Subclasses can override this to utilize an
- // alternative DOM manipulation API and are only required to set the
- // `this.el` property.
- _setElement: function(el) {
- this.$el = el instanceof $ ? el : $(el);
- this.el = this.$el[0];
- },
-
- // Set callbacks, where `this.events` is a hash of
- //
- // *{"event selector": "callback"}*
- //
- // {
- // 'mousedown .title': 'edit',
- // 'click .button': 'save',
- // 'click .open': function(e) { ... }
- // }
- //
- // pairs. Callbacks will be bound to the view, with `this` set properly.
- // Uses event delegation for efficiency.
- // Omitting the selector binds the event to `this.el`.
- delegateEvents: function(events) {
- if (!(events || (events = _.result(this, 'events')))) return this;
- this.undelegateEvents();
- for (var key in events) {
- var method = events[key];
- if (!_.isFunction(method)) method = this[events[key]];
- if (!method) continue;
- var match = key.match(delegateEventSplitter);
- this.delegate(match[1], match[2], _.bind(method, this));
- }
- return this;
- },
-
- // Add a single event listener to the view's element (or a child element
- // using `selector`). This only works for delegate-able events: not `focus`,
- // `blur`, and not `change`, `submit`, and `reset` in Internet Explorer.
- delegate: function(eventName, selector, listener) {
- this.$el.on(eventName + '.delegateEvents' + this.cid, selector, listener);
- },
-
- // Clears all callbacks previously bound to the view by `delegateEvents`.
- // You usually don't need to use this, but may wish to if you have multiple
- // Backbone views attached to the same DOM element.
- undelegateEvents: function() {
- if (this.$el) this.$el.off('.delegateEvents' + this.cid);
- return this;
- },
-
- // A finer-grained `undelegateEvents` for removing a single delegated event.
- // `selector` and `listener` are both optional.
- undelegate: function(eventName, selector, listener) {
- this.$el.off(eventName + '.delegateEvents' + this.cid, selector, listener);
- },
-
- // Produces a DOM element to be assigned to your view. Exposed for
- // subclasses using an alternative DOM manipulation API.
- _createElement: function(tagName) {
- return document.createElement(tagName);
- },
-
- // Ensure that the View has a DOM element to render into.
- // If `this.el` is a string, pass it through `$()`, take the first
- // matching element, and re-assign it to `el`. Otherwise, create
- // an element from the `id`, `className` and `tagName` properties.
- _ensureElement: function() {
- if (!this.el) {
- var attrs = _.extend({}, _.result(this, 'attributes'));
- if (this.id) attrs.id = _.result(this, 'id');
- if (this.className) attrs['class'] = _.result(this, 'className');
- this.setElement(this._createElement(_.result(this, 'tagName')));
- this._setAttributes(attrs);
- } else {
- this.setElement(_.result(this, 'el'));
- }
- },
-
- // Set attributes from a hash on this view's element. Exposed for
- // subclasses using an alternative DOM manipulation API.
- _setAttributes: function(attributes) {
- this.$el.attr(attributes);
- }
-
-});
-
-// setup inheritance
-View.extend = extend;
-module.exports = View;
-
-},{"backbone-events-standalone":12,"backbone-extend-standalone":13,"jbone":50,"underscore":59}],11:[function(require,module,exports){
-module.exports=require(7)
-},{"/home/travis/build/greenify/biojs-vis-msa/node_modules/backbone-thin/node_modules/backbone-events-standalone/backbone-events-standalone.js":7}],12:[function(require,module,exports){
-module.exports=require(8)
-},{"./backbone-events-standalone":11,"/home/travis/build/greenify/biojs-vis-msa/node_modules/backbone-thin/node_modules/backbone-events-standalone/index.js":8}],13:[function(require,module,exports){
-module.exports=require(9)
-},{"/home/travis/build/greenify/biojs-vis-msa/node_modules/backbone-thin/node_modules/backbone-extend-standalone/backbone-extend-standalone.js":9}],14:[function(require,module,exports){
-var events = require("backbone-events-standalone");
-
-events.onAll = function(callback,context){
- this.on("all", callback,context);
- return this;
-};
-
-// Mixin utility
-events.oldMixin = events.mixin;
-events.mixin = function(proto) {
- events.oldMixin(proto);
- // add custom onAll
- var exports = ['onAll'];
- for(var i=0; i < exports.length;i++){
- var name = exports[i];
- proto[name] = this[name];
- }
- return proto;
-};
-
-module.exports = events;
-
-},{"backbone-events-standalone":16}],15:[function(require,module,exports){
-module.exports=require(7)
-},{"/home/travis/build/greenify/biojs-vis-msa/node_modules/backbone-thin/node_modules/backbone-events-standalone/backbone-events-standalone.js":7}],16:[function(require,module,exports){
-module.exports=require(8)
-},{"./backbone-events-standalone":15,"/home/travis/build/greenify/biojs-vis-msa/node_modules/backbone-thin/node_modules/backbone-events-standalone/index.js":8}],17:[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-var GenericReader, xhr;
-
-xhr = require('nets');
-
-module.exports = GenericReader = (function() {
- function GenericReader() {}
-
- GenericReader.read = function(url, callback) {
- var onret;
- onret = (function(_this) {
- return function(err, response, text) {
- return _this._onRetrieval(text, callback);
- };
- })(this);
- return xhr(url, onret);
- };
-
- GenericReader._onRetrieval = function(text, callback) {
- var rText;
- rText = this.parse(text);
- return callback(rText);
- };
-
- return GenericReader;
-
-})();
-
-},{"nets":undefined}],18:[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-var Seq;
-
-module.exports = Seq = (function() {
- function Seq(seq, name, id) {
- var meta;
- this.seq = seq;
- this.name = name;
- this.id = id;
- meta = {};
- }
-
- return Seq;
-
-})();
-
-},{}],19:[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-var strings;
-
-strings = {
- contains: function(text, search) {
- return ''.indexOf.call(text, search, 0) !== -1;
- }
-};
-
-module.exports = strings;
-
-},{}],20:[function(require,module,exports){
-module.exports=require(17)
-},{"/home/travis/build/greenify/biojs-vis-msa/node_modules/biojs-io-clustal/lib/generic_reader.js":17,"nets":undefined}],21:[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-var Fasta, GenericReader, Seq, Str,
- __hasProp = {}.hasOwnProperty,
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
-
-Str = require("./strings");
-
-GenericReader = require("./generic_reader");
-
-Seq = require("biojs-model").seq;
-
-module.exports = Fasta = (function(_super) {
- __extends(Fasta, _super);
-
- function Fasta() {
- return Fasta.__super__.constructor.apply(this, arguments);
- }
-
- Fasta.parse = function(text) {
- var currentSeq, database, databaseID, identifiers, k, label, line, seqs, _i, _len;
- seqs = [];
- if (Object.prototype.toString.call(text) !== '[object Array]') {
- text = text.split("\n");
- }
- for (_i = 0, _len = text.length; _i < _len; _i++) {
- line = text[_i];
- if (line[0] === ">" || line[0] === ";") {
- label = line.slice(1);
- currentSeq = new Seq("", label, seqs.length);
- seqs.push(currentSeq);
- if (Str.contains("|", line)) {
- identifiers = label.split("|");
- k = 1;
- while (k < identifiers.length) {
- database = identifiers[k];
- databaseID = identifiers[k + 1];
- currentSeq.meta[database] = databaseID;
- k += 2;
- }
- currentSeq.name = identifiers[identifiers.length - 1];
- }
- } else {
- currentSeq.seq += line;
- }
- }
- return seqs;
- };
-
- return Fasta;
-
-})(GenericReader);
-
-},{"./generic_reader":20,"./strings":22,"biojs-model":25}],22:[function(require,module,exports){
-module.exports=require(19)
-},{"/home/travis/build/greenify/biojs-vis-msa/node_modules/biojs-io-clustal/lib/strings.js":19}],23:[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-var Utils;
-
-Utils = {};
-
-Utils.splitNChars = function(txt, num) {
- var i, result, _i, _ref;
- result = [];
- for (i = _i = 0, _ref = txt.length - 1; num > 0 ? _i <= _ref : _i >= _ref; i = _i += num) {
- result.push(txt.substr(i, num));
- }
- return result;
-};
-
-module.exports = Utils;
-
-},{}],24:[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-var FastaExporter, Utils;
-
-Utils = require("./utils");
-
-module.exports = FastaExporter = (function() {
- function FastaExporter() {}
-
- FastaExporter["export"] = function(seqs, access) {
- var seq, text, _i, _len;
- text = "";
- for (_i = 0, _len = seqs.length; _i < _len; _i++) {
- seq = seqs[_i];
- if (access != null) {
- seq = access(seq);
- }
- text += ">" + seq.name + "\n";
- text += (Utils.splitNChars(seq.seq, 80)).join("\n");
- text += "\n";
- }
- return text;
- };
-
- return FastaExporter;
-
-})();
-
-},{"./utils":23}],25:[function(require,module,exports){
-module.exports.seq = require("./seq");
-
-},{"./seq":26}],26:[function(require,module,exports){
-module.exports = function(seq, name, id) {
- this.seq = seq;
- this.name = name;
- this.id = id;
- this.meta = {};
-};
-
-},{}],27:[function(require,module,exports){
-module.exports=require(25)
-},{"./seq":28,"/home/travis/build/greenify/biojs-vis-msa/node_modules/biojs-io-fasta/node_modules/biojs-model/src/index.js":25}],28:[function(require,module,exports){
-module.exports=require(26)
-},{"/home/travis/build/greenify/biojs-vis-msa/node_modules/biojs-io-fasta/node_modules/biojs-model/src/seq.js":26}],29:[function(require,module,exports){
-module.exports = require('./src/index.js')
-
-},{"./src/index.js":36}],30:[function(require,module,exports){
-module.exports = {
- A: "#00a35c",
- R: "#00fc03",
- N: "#00eb14",
- D: "#00eb14",
- C: "#0000ff",
- Q: "#00f10e",
- E: "#00f10e",
- G: "#009d62",
- H: "#00d52a",
- I: "#0054ab",
- L: "#007b84",
- K: "#00ff00",
- M: "#009768",
- F: "#008778",
- P: "#00e01f",
- S: "#00d52a",
- T: "#00db24",
- W: "#00a857",
- Y: "#00e619",
- V: "#005fa0",
- B: "#00eb14",
- X: "#00b649",
- Z: "#00f10e"
-};
-
-},{}],31:[function(require,module,exports){
-module.exports = {
- A: "#BBBBBB",
- B: "grey",
- C: "yellow",
- D: "red",
- E: "red",
- F: "magenta",
- G: "brown",
- H: "#00FFFF",
- I: "#BBBBBB",
- J: "#fff",
- K: "#00FFFF",
- L: "#BBBBBB",
- M: "#BBBBBB",
- N: "green",
- O: "#fff",
- P: "brown",
- Q: "green",
- R: "#00FFFF",
- S: "green",
- T: "green",
- U: "#fff",
- V: "#BBBBBB",
- W: "magenta",
- X: "grey",
- Y: "magenta",
- Z: "grey",
- Gap: "grey"
-};
-
-},{}],32:[function(require,module,exports){
-module.exports = {
- A: "orange",
- B: "#fff",
- C: "green",
- D: "red",
- E: "red",
- F: "blue",
- G: "orange",
- H: "red",
- I: "green",
- J: "#fff",
- K: "red",
- L: "green",
- M: "green",
- N: "#fff",
- O: "#fff",
- P: "orange",
- Q: "#fff",
- R: "red",
- S: "orange",
- T: "orange",
- U: "#fff",
- V: "green",
- W: "blue",
- X: "#fff",
- Y: "blue",
- Z: "#fff",
- Gap: "#fff"
-};
-
-},{}],33:[function(require,module,exports){
-module.exports = {
- A: "#80a0f0",
- R: "#f01505",
- N: "#00ff00",
- D: "#c048c0",
- C: "#f08080",
- Q: "#00ff00",
- E: "#c048c0",
- G: "#f09048",
- H: "#15a4a4",
- I: "#80a0f0",
- L: "#80a0f0",
- K: "#f01505",
- M: "#80a0f0",
- F: "#80a0f0",
- P: "#ffff00",
- S: "#00ff00",
- T: "#00ff00",
- W: "#80a0f0",
- Y: "#15a4a4",
- V: "#80a0f0",
- B: "#fff",
- X: "#fff",
- Z: "#fff"
-};
-
-},{}],34:[function(require,module,exports){
-module.exports = {
- A: "#e718e7",
- R: "#6f906f",
- N: "#1be41b",
- D: "#778877",
- C: "#23dc23",
- Q: "#926d92",
- E: "#ff00ff",
- G: "#00ff00",
- H: "#758a75",
- I: "#8a758a",
- L: "#ae51ae",
- K: "#a05fa0",
- M: "#ef10ef",
- F: "#986798",
- P: "#00ff00",
- S: "#36c936",
- T: "#47b847",
- W: "#8a758a",
- Y: "#21de21",
- V: "#857a85",
- B: "#49b649",
- X: "#758a75",
- Z: "#c936c9"
-};
-
-},{}],35:[function(require,module,exports){
-module.exports = {
- A: "#ad0052",
- B: "#0c00f3",
- C: "#c2003d",
- D: "#0c00f3",
- E: "#0c00f3",
- F: "#cb0034",
- G: "#6a0095",
- H: "#1500ea",
- I: "#ff0000",
- J: "#fff",
- K: "#0000ff",
- L: "#ea0015",
- M: "#b0004f",
- N: "#0c00f3",
- O: "#fff",
- P: "#4600b9",
- Q: "#0c00f3",
- R: "#0000ff",
- S: "#5e00a1",
- T: "#61009e",
- U: "#fff",
- V: "#f60009",
- W: "#5b00a4",
- X: "#680097",
- Y: "#4f00b0",
- Z: "#0c00f3"
-};
-
-},{}],36:[function(require,module,exports){
-module.exports.selector = require("./selector");
-
-// basics
-module.exports.taylor = require("./taylor");
-module.exports.zappo= require("./zappo");
-module.exports.hydro= require("./hydrophobicity");
-
-module.exports.clustal = require("./clustal");
-module.exports.clustal2 = require("./clustal2");
-
-module.exports.curied = require("./buried");
-module.exports.cinema = require("./cinema");
-module.exports.nucleotide = require("./nucleotide");
-module.exports.helix = require("./helix");
-module.exports.lesk = require("./lesk");
-module.exports.mae = require("./mae");
-module.exports.purine = require("./purine");
-module.exports.strand = require("./strand");
-module.exports.turn = require("./turn");
-
-},{"./buried":30,"./cinema":31,"./clustal":32,"./clustal2":33,"./helix":34,"./hydrophobicity":35,"./lesk":37,"./mae":38,"./nucleotide":39,"./purine":40,"./selector":41,"./strand":42,"./taylor":43,"./turn":44,"./zappo":45}],37:[function(require,module,exports){
-module.exports = {
- A: " orange",
- B: " #fff",
- C: " green",
- D: " red",
- E: " red",
- F: " green",
- G: " orange",
- H: " magenta",
- I: " green",
- J: " #fff",
- K: " red",
- L: " green",
- M: " green",
- N: " magenta",
- O: " #fff",
- P: " green",
- Q: " magenta",
- R: " red",
- S: " orange",
- T: " orange",
- U: " #fff",
- V: " green",
- W: " green",
- X: " #fff",
- Y: " green",
- Z: " #fff",
- Gap: " #fff"
-};
-
-},{}],38:[function(require,module,exports){
-module.exports = {
- A: " #77dd88",
- B: " #fff",
- C: " #99ee66",
- D: " #55bb33",
- E: " #55bb33",
- F: " #9999ff",
- G: " #77dd88",
- H: " #5555ff",
- I: " #66bbff",
- J: " #fff",
- K: " #ffcc77",
- L: " #66bbff",
- M: " #66bbff",
- N: " #55bb33",
- O: " #fff",
- P: " #eeaaaa",
- Q: " #55bb33",
- R: " #ffcc77",
- S: " #ff4455",
- T: " #ff4455",
- U: " #fff",
- V: " #66bbff",
- W: " #9999ff",
- X: " #fff",
- Y: " #9999ff",
- Z: " #fff",
- Gap: " #fff"
-};
-
-},{}],39:[function(require,module,exports){
-module.exports = {
- A: " #64F73F",
- C: " #FFB340",
- G: " #EB413C",
- T: " #3C88EE",
- U: " #3C88EE"
-};
-
-},{}],40:[function(require,module,exports){
-module.exports = {
- A: " #FF83FA",
- C: " #40E0D0",
- G: " #FF83FA",
- R: " #FF83FA",
- T: " #40E0D0",
- U: " #40E0D0",
- Y: " #40E0D0"
-};
-
-},{}],41:[function(require,module,exports){
-var Buried = require("./buried");
-var Cinema = require("./cinema");
-var Clustal = require("./clustal");
-var Clustal2 = require("./clustal2");
-var Helix = require("./helix");
-var Hydro = require("./hydrophobicity");
-var Lesk = require("./lesk");
-var Mae = require("./mae");
-var Nucleotide = require("./nucleotide");
-var Purine = require("./purine");
-var Strand = require("./strand");
-var Taylor = require("./taylor");
-var Turn = require("./turn");
-var Zappo = require("./zappo");
-
-module.exports = Colors = {
- mapping: {
- buried: Buried,
- buried_index: Buried,
- cinema: Cinema,
- clustal2: Clustal2,
- clustal: Clustal,
- helix: Helix,
- helix_propensity: Helix,
- hydro: Hydro,
- lesk: Lesk,
- mae: Mae,
- nucleotide: Nucleotide,
- purine: Purine,
- purine_pyrimidine: Purine,
- strand: Strand,
- strand_propensity: Strand,
- taylor: Taylor,
- turn: Turn,
- turn_propensity: Turn,
- zappo: Zappo,
- },
- getColor: function(scheme) {
- var color = Colors.mapping[scheme];
- if (color === undefined) {
- color = {};
- }
- return color;
- }
-};
-
-},{"./buried":30,"./cinema":31,"./clustal":32,"./clustal2":33,"./helix":34,"./hydrophobicity":35,"./lesk":37,"./mae":38,"./nucleotide":39,"./purine":40,"./strand":42,"./taylor":43,"./turn":44,"./zappo":45}],42:[function(require,module,exports){
-module.exports = {
- A: "#5858a7",
- R: "#6b6b94",
- N: "#64649b",
- D: "#2121de",
- C: "#9d9d62",
- Q: "#8c8c73",
- E: "#0000ff",
- G: "#4949b6",
- H: "#60609f",
- I: "#ecec13",
- L: "#b2b24d",
- K: "#4747b8",
- M: "#82827d",
- F: "#c2c23d",
- P: "#2323dc",
- S: "#4949b6",
- T: "#9d9d62",
- W: "#c0c03f",
- Y: "#d3d32c",
- V: "#ffff00",
- B: "#4343bc",
- X: "#797986",
- Z: "#4747b8"
-};
-
-},{}],43:[function(require,module,exports){
-module.exports = {
- A: "#ccff00",
- R: "#0000ff",
- N: "#cc00ff",
- D: "#ff0000",
- C: "#ffff00",
- Q: "#ff00cc",
- E: "#ff0066",
- G: "#ff9900",
- H: "#0066ff",
- I: "#66ff00",
- L: "#33ff00",
- K: "#6600ff",
- M: "#00ff00",
- F: "#00ff66",
- P: "#ffcc00",
- S: "#ff3300",
- T: "#ff6600",
- W: "#00ccff",
- Y: "#00ffcc",
- V: "#99ff00",
- B: "#fff",
- X: "#fff",
- Z: "#fff"
-};
-
-},{}],44:[function(require,module,exports){
-module.exports = {
- A: "#2cd3d3",
- R: "#708f8f",
- N: "#ff0000",
- D: "#e81717",
- C: "#a85757",
- Q: "#3fc0c0",
- E: "#778888",
- G: "#ff0000",
- H: "#708f8f",
- I: "#00ffff",
- L: "#1ce3e3",
- K: "#7e8181",
- M: "#1ee1e1",
- F: "#1ee1e1",
- P: "#f60909",
- S: "#e11e1e",
- T: "#738c8c",
- W: "#738c8c",
- Y: "#9d6262",
- V: "#07f8f8",
- B: "#f30c0c",
- X: "#7c8383",
- Z: "#5ba4a4"
-};
-
-},{}],45:[function(require,module,exports){
-module.exports = {
- A: "#ffafaf",
- R: "#6464ff",
- N: "#00ff00",
- D: "#ff0000",
- C: "#ffff00",
- Q: "#00ff00",
- E: "#ff0000",
- G: "#ff00ff",
- H: "#6464ff",
- I: "#ffafaf",
- L: "#ffafaf",
- K: "#6464ff",
- M: "#ffafaf",
- F: "#ffc800",
- P: "#ff00ff",
- S: "#00ff00",
- T: "#00ff00",
- W: "#ffc800",
- Y: "#ffc800",
- V: "#ffafaf",
- B: "#fff",
- X: "#fff",
- Z: "#fff"
-};
-
-},{}],46:[function(require,module,exports){
-/*
- * JavaScript Canvas to Blob 2.0.5
- * https://github.com/blueimp/JavaScript-Canvas-to-Blob
- *
- * Copyright 2012, Sebastian Tschan
- * https://blueimp.net
- *
- * Licensed under the MIT license:
- * http://www.opensource.org/licenses/MIT
- *
- * Based on stackoverflow user Stoive's code snippet:
- * http://stackoverflow.com/q/4998908
- */
-var CanvasPrototype = window.HTMLCanvasElement &&
-window.HTMLCanvasElement.prototype,
- hasBlobConstructor = window.Blob && (function () {
- try {
- return Boolean(new Blob());
- } catch (e) {
- return false;
- }
- }()),
- hasArrayBufferViewSupport = hasBlobConstructor && window.Uint8Array &&
- (function () {
- try {
- return new Blob([new Uint8Array(100)]).size === 100;
- } catch (e) {
- return false;
- }
- }()),
- BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder ||
- window.MozBlobBuilder || window.MSBlobBuilder,
- dataURLtoBlob = (hasBlobConstructor || BlobBuilder) && window.atob &&
- window.ArrayBuffer && window.Uint8Array && function (dataURI) {
- var byteString,
- arrayBuffer,
- intArray,
- i,
- mimeString,
- bb;
- if (dataURI.split(',')[0].indexOf('base64') >= 0) {
- // Convert base64 to raw binary data held in a string:
- byteString = atob(dataURI.split(',')[1]);
- } else {
- // Convert base64/URLEncoded data component to raw binary data:
- byteString = decodeURIComponent(dataURI.split(',')[1]);
- }
- // Write the bytes of the string to an ArrayBuffer:
- arrayBuffer = new ArrayBuffer(byteString.length);
- intArray = new Uint8Array(arrayBuffer);
- for (i = 0; i < byteString.length; i += 1) {
- intArray[i] = byteString.charCodeAt(i);
- }
- // Separate out the mime component:
- mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0];
- // Write the ArrayBuffer (or ArrayBufferView) to a blob:
- if (hasBlobConstructor) {
- return new Blob(
- [hasArrayBufferViewSupport ? intArray : arrayBuffer],
- {type: mimeString}
- );
- }
- bb = new BlobBuilder();
- bb.append(arrayBuffer);
- return bb.getBlob(mimeString);
- };
-if (window.HTMLCanvasElement && !CanvasPrototype.toBlob) {
- if (CanvasPrototype.mozGetAsFile) {
- CanvasPrototype.toBlob = function (callback, type, quality) {
- if (quality && CanvasPrototype.toDataURL && dataURLtoBlob) {
- callback(dataURLtoBlob(this.toDataURL(type, quality)));
- } else {
- callback(this.mozGetAsFile('blob', type));
- }
- };
- } else if (CanvasPrototype.toDataURL && dataURLtoBlob) {
- CanvasPrototype.toBlob = function (callback, type, quality) {
- callback(dataURLtoBlob(this.toDataURL(type, quality)));
- };
- }
-}
-
-module.exports = dataURLtoBlob;
-
-},{}],47:[function(require,module,exports){
-/* FileSaver.js
- * A saveAs() FileSaver implementation.
- * 2014-05-27
- *
- * By Eli Grey, http://eligrey.com
- * License: X11/MIT
- * See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md
- */
-
-/*global self */
-/*jslint bitwise: true, indent: 4, laxbreak: true, laxcomma: true, smarttabs: true, plusplus: true */
-
-/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
-
-var saveAs = saveAs
- // IE 10+ (native saveAs)
- || (typeof navigator !== "undefined" &&
- navigator.msSaveOrOpenBlob && navigator.msSaveOrOpenBlob.bind(navigator))
- // Everyone else
- || (function(view) {
- "use strict";
- // IE <10 is explicitly unsupported
- if (typeof navigator !== "undefined" &&
- /MSIE [1-9]\./.test(navigator.userAgent)) {
- return;
- }
- var
- doc = view.document
- // only get URL when necessary in case Blob.js hasn't overridden it yet
- , get_URL = function() {
- return view.URL || view.webkitURL || view;
- }
- , save_link = doc.createElementNS("http://www.w3.org/1999/xhtml", "a")
- , can_use_save_link = !view.externalHost && "download" in save_link
- , click = function(node) {
- var event = doc.createEvent("MouseEvents");
- event.initMouseEvent(
- "click", true, false, view, 0, 0, 0, 0, 0
- , false, false, false, false, 0, null
- );
- node.dispatchEvent(event);
- }
- , webkit_req_fs = view.webkitRequestFileSystem
- , req_fs = view.requestFileSystem || webkit_req_fs || view.mozRequestFileSystem
- , throw_outside = function(ex) {
- (view.setImmediate || view.setTimeout)(function() {
- throw ex;
- }, 0);
- }
- , force_saveable_type = "application/octet-stream"
- , fs_min_size = 0
- , deletion_queue = []
- , process_deletion_queue = function() {
- var i = deletion_queue.length;
- while (i--) {
- var file = deletion_queue[i];
- if (typeof file === "string") { // file is an object URL
- get_URL().revokeObjectURL(file);
- } else { // file is a File
- file.remove();
- }
- }
- deletion_queue.length = 0; // clear queue
- }
- , dispatch = function(filesaver, event_types, event) {
- event_types = [].concat(event_types);
- var i = event_types.length;
- while (i--) {
- var listener = filesaver["on" + event_types[i]];
- if (typeof listener === "function") {
- try {
- listener.call(filesaver, event || filesaver);
- } catch (ex) {
- throw_outside(ex);
- }
- }
- }
- }
- , FileSaver = function(blob, name) {
- // First try a.download, then web filesystem, then object URLs
- var
- filesaver = this
- , type = blob.type
- , blob_changed = false
- , object_url
- , target_view
- , get_object_url = function() {
- var object_url = get_URL().createObjectURL(blob);
- deletion_queue.push(object_url);
- return object_url;
- }
- , dispatch_all = function() {
- dispatch(filesaver, "writestart progress write writeend".split(" "));
- }
- // on any filesys errors revert to saving with object URLs
- , fs_error = function() {
- // don't create more object URLs than needed
- if (blob_changed || !object_url) {
- object_url = get_object_url(blob);
- }
- if (target_view) {
- target_view.location.href = object_url;
- } else {
- window.open(object_url, "_blank");
- }
- filesaver.readyState = filesaver.DONE;
- dispatch_all();
- }
- , abortable = function(func) {
- return function() {
- if (filesaver.readyState !== filesaver.DONE) {
- return func.apply(this, arguments);
- }
- };
- }
- , create_if_not_found = {create: true, exclusive: false}
- , slice
- ;
- filesaver.readyState = filesaver.INIT;
- if (!name) {
- name = "download";
- }
- if (can_use_save_link) {
- object_url = get_object_url(blob);
- save_link.href = object_url;
- save_link.download = name;
- click(save_link);
- filesaver.readyState = filesaver.DONE;
- dispatch_all();
- return;
- }
- // Object and web filesystem URLs have a problem saving in Google Chrome when
- // viewed in a tab, so I force save with application/octet-stream
- // http://code.google.com/p/chromium/issues/detail?id=91158
- if (view.chrome && type && type !== force_saveable_type) {
- slice = blob.slice || blob.webkitSlice;
- blob = slice.call(blob, 0, blob.size, force_saveable_type);
- blob_changed = true;
- }
- // Since I can't be sure that the guessed media type will trigger a download
- // in WebKit, I append .download to the filename.
- // https://bugs.webkit.org/show_bug.cgi?id=65440
- if (webkit_req_fs && name !== "download") {
- name += ".download";
- }
- if (type === force_saveable_type || webkit_req_fs) {
- target_view = view;
- }
- if (!req_fs) {
- fs_error();
- return;
- }
- fs_min_size += blob.size;
- req_fs(view.TEMPORARY, fs_min_size, abortable(function(fs) {
- fs.root.getDirectory("saved", create_if_not_found, abortable(function(dir) {
- var save = function() {
- dir.getFile(name, create_if_not_found, abortable(function(file) {
- file.createWriter(abortable(function(writer) {
- writer.onwriteend = function(event) {
- target_view.location.href = file.toURL();
- deletion_queue.push(file);
- filesaver.readyState = filesaver.DONE;
- dispatch(filesaver, "writeend", event);
- };
- writer.onerror = function() {
- var error = writer.error;
- if (error.code !== error.ABORT_ERR) {
- fs_error();
- }
- };
- "writestart progress write abort".split(" ").forEach(function(event) {
- writer["on" + event] = filesaver["on" + event];
- });
- writer.write(blob);
- filesaver.abort = function() {
- writer.abort();
- filesaver.readyState = filesaver.DONE;
- };
- filesaver.readyState = filesaver.WRITING;
- }), fs_error);
- }), fs_error);
- };
- dir.getFile(name, {create: false}, abortable(function(file) {
- // delete file if it already exists
- file.remove();
- save();
- }), abortable(function(ex) {
- if (ex.code === ex.NOT_FOUND_ERR) {
- save();
- } else {
- fs_error();
- }
- }));
- }), fs_error);
- }), fs_error);
- }
- , FS_proto = FileSaver.prototype
- , saveAs = function(blob, name) {
- return new FileSaver(blob, name);
- }
- ;
- FS_proto.abort = function() {
- var filesaver = this;
- filesaver.readyState = filesaver.DONE;
- dispatch(filesaver, "abort");
- };
- FS_proto.readyState = FS_proto.INIT = 0;
- FS_proto.WRITING = 1;
- FS_proto.DONE = 2;
-
- FS_proto.error =
- FS_proto.onwritestart =
- FS_proto.onprogress =
- FS_proto.onwrite =
- FS_proto.onabort =
- FS_proto.onerror =
- FS_proto.onwriteend =
- null;
-
- view.addEventListener("unload", process_deletion_queue, false);
- saveAs.unload = function() {
- process_deletion_queue();
- view.removeEventListener("unload", process_deletion_queue, false);
- };
- return saveAs;
-}(
- typeof self !== "undefined" && self
- || typeof window !== "undefined" && window
- || this.content
-));
-// `self` is undefined in Firefox for Android content script context
-// while `this` is nsIContentFrameMessageManager
-// with an attribute `content` that corresponds to the window
-
-amdDefine = window.define;
-if( typeof amdDefine === "undefined" && (typeof window.almond !== "undefined"
- && "define" in window.almond )){
- amdDefine = window.almond.define;
-}
-
-if (typeof module !== "undefined" && module !== null) {
- module.exports = saveAs;
-} else if ((typeof amdDefine !== "undefined" && amdDefine !== null) && (amdDefine.amd != null)) {
- amdDefine("saveAs",[], function() {
- return saveAs;
- });
-}
-
-},{}],48:[function(require,module,exports){
-module.exports = function (css, customDocument) {
- var doc = customDocument || document;
- if (doc.createStyleSheet) {
- var sheet = doc.createStyleSheet()
- sheet.cssText = css;
- return sheet.ownerNode;
- } else {
- var head = doc.getElementsByTagName('head')[0],
- style = doc.createElement('style');
-
- style.type = 'text/css';
-
- if (style.styleSheet) {
- style.styleSheet.cssText = css;
- } else {
- style.appendChild(doc.createTextNode(css));
- }
-
- head.appendChild(style);
- return style;
- }
-};
-
-module.exports.byUrl = function(url) {
- if (document.createStyleSheet) {
- return document.createStyleSheet(url).ownerNode;
- } else {
- var head = document.getElementsByTagName('head')[0],
- link = document.createElement('link');
-
- link.rel = 'stylesheet';
- link.href = url;
-
- head.appendChild(link);
- return link;
- }
-};
-
-},{}],49:[function(require,module,exports){
-var Utils = {};
-
-
-/*
-Remove an element and provide a function that inserts it into its original position
-https://developers.google.com/speed/articles/javascript-dom
-@param element {Element} The element to be temporarily removed
-@return {Function} A function that inserts the element into its original position
- */
-
-Utils.removeToInsertLater = function(element) {
- var nextSibling, parentNode;
- parentNode = element.parentNode;
- nextSibling = element.nextSibling;
- parentNode.removeChild(element);
- return function() {
- if (nextSibling) {
- parentNode.insertBefore(element, nextSibling);
- } else {
- parentNode.appendChild(element);
- }
- };
-};
-
-
-/*
-fastest possible way to destroy all sub nodes (aka childs)
-http://jsperf.com/innerhtml-vs-removechild/15
-@param element {Element} The element for which all childs should be removed
- */
-
-Utils.removeAllChilds = function(element) {
- var count;
- count = 0;
- while (element.firstChild) {
- count++;
- element.removeChild(element.firstChild);
- }
-};
-
-module.exports = Utils;
-
-},{}],50:[function(require,module,exports){
-/*!
- * jBone v1.0.19 - 2014-10-12 - Library for DOM manipulation
- *
- * https://github.com/kupriyanenko/jbone
- *
- * Copyright 2014 Alexey Kupriyanenko
- * Released under the MIT license.
- */
-
-(function (win) {
-
-var
-// cache previous versions
-_$ = win.$,
-_jBone = win.jBone,
-
-// Quick match a standalone tag
-rquickSingleTag = /^<(\w+)\s*\/?>$/,
-
-// A simple way to check for HTML strings
-// Prioritize #id over <tag> to avoid XSS via location.hash
-rquickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
-
-// Alias for function
-slice = [].slice,
-splice = [].splice,
-keys = Object.keys,
-
-// Alias for global variables
-doc = document,
-
-isString = function(el) {
- return typeof el === "string";
-},
-isObject = function(el) {
- return el instanceof Object;
-},
-isFunction = function(el) {
- var getType = {};
- return el && getType.toString.call(el) === "[object Function]";
-},
-isArray = function(el) {
- return Array.isArray(el);
-},
-jBone = function(element, data) {
- return new fn.init(element, data);
-},
-fn;
-
-// set previous values and return the instance upon calling the no-conflict mode
-jBone.noConflict = function() {
- win.$ = _$;
- win.jBone = _jBone;
-
- return jBone;
-};
-
-fn = jBone.fn = jBone.prototype = {
- init: function(element, data) {
- var elements, tag, wraper, fragment;
-
- if (!element) {
- return this;
- }
- if (isString(element)) {
- // Create single DOM element
- if (tag = rquickSingleTag.exec(element)) {
- this[0] = doc.createElement(tag[1]);
- this.length = 1;
-
- if (isObject(data)) {
- this.attr(data);
- }
-
- return this;
- }
- // Create DOM collection
- if ((tag = rquickExpr.exec(element)) && tag[1]) {
- fragment = doc.createDocumentFragment();
- wraper = doc.createElement("div");
- wraper.innerHTML = element;
- while (wraper.lastChild) {
- fragment.appendChild(wraper.firstChild);
- }
- elements = slice.call(fragment.childNodes);
-
- return jBone.merge(this, elements);
- }
- // Find DOM elements with querySelectorAll
- if (jBone.isElement(data)) {
- return jBone(data).find(element);
- }
-
- try {
- elements = doc.querySelectorAll(element);
-
- return jBone.merge(this, elements);
- } catch (e) {
- return this;
- }
- }
- // Wrap DOMElement
- if (element.nodeType) {
- this[0] = element;
- this.length = 1;
-
- return this;
- }
- // Run function
- if (isFunction(element)) {
- return element();
- }
- // Return jBone element as is
- if (element instanceof jBone) {
- return element;
- }
-
- // Return element wrapped by jBone
- return jBone.makeArray(element, this);
- },
-
- pop: [].pop,
- push: [].push,
- reverse: [].reverse,
- shift: [].shift,
- sort: [].sort,
- splice: [].splice,
- slice: [].slice,
- indexOf: [].indexOf,
- forEach: [].forEach,
- unshift: [].unshift,
- concat: [].concat,
- join: [].join,
- every: [].every,
- some: [].some,
- filter: [].filter,
- map: [].map,
- reduce: [].reduce,
- reduceRight: [].reduceRight,
- length: 0
-};
-
-fn.constructor = jBone;
-
-fn.init.prototype = fn;
-
-jBone.setId = function(el) {
- var jid = el.jid;
-
- if (el === win) {
- jid = "window";
- } else if (el.jid === undefined) {
- el.jid = jid = ++jBone._cache.jid;
- }
-
- if (!jBone._cache.events[jid]) {
- jBone._cache.events[jid] = {};
- }
-};
-
-jBone.getData = function(el) {
- el = el instanceof jBone ? el[0] : el;
-
- var jid = el === win ? "window" : el.jid;
-
- return {
- jid: jid,
- events: jBone._cache.events[jid]
- };
-};
-
-jBone.isElement = function(el) {
- return el && el instanceof jBone || el instanceof HTMLElement || isString(el);
-};
-
-jBone._cache = {
- events: {},
- jid: 0
-};
-
-function isArraylike(obj) {
- var length = obj.length,
- type = typeof obj;
-
- if (isFunction(type) || obj === win) {
- return false;
- }
-
- if (obj.nodeType === 1 && length) {
- return true;
- }
-
- return isArray(type) || length === 0 ||
- typeof length === "number" && length > 0 && (length - 1) in obj;
-}
-
-jBone.merge = function(first, second) {
- var l = second.length,
- i = first.length,
- j = 0;
-
- while (j < l) {
- first[i++] = second[j++];
- }
-
- first.length = i;
-
- return first;
-};
-
-jBone.contains = function(container, contained) {
- var result;
-
- container.reverse().some(function(el) {
- if (el.contains(contained)) {
- return result = el;
- }
- });
-
- return result;
-};
-
-jBone.extend = function(target) {
- var k, kl, i, tg;
-
- splice.call(arguments, 1).forEach(function(object) {
- if (!object) {
- return;
- }
-
- k = keys(object);
- kl = k.length;
- i = 0;
- tg = target; //caching target for perf improvement
-
- for (; i < kl; i++) {
- tg[k[i]] = object[k[i]];
- }
- });
-
- return target;
-};
-
-jBone.makeArray = function(arr, results) {
- var ret = results || [];
-
- if (arr !== null) {
- if (isArraylike(arr)) {
- jBone.merge(ret, isString(arr) ? [arr] : arr);
- } else {
- ret.push(arr);
- }
- }
-
- return ret;
-};
-
-function BoneEvent(e, data) {
- var key, setter;
-
- this.originalEvent = e;
-
- setter = function(key, e) {
- if (key === "preventDefault") {
- this[key] = function() {
- this.defaultPrevented = true;
- return e[key]();
- };
- } else if (isFunction(e[key])) {
- this[key] = function() {
- return e[key]();
- };
- } else {
- this[key] = e[key];
- }
- };
-
- for (key in e) {
- if (e[key] || typeof e[key] === "function") {
- setter.call(this, key, e);
- }
- }
-
- jBone.extend(this, data);
-}
-
-jBone.Event = function(event, data) {
- var namespace, eventType;
-
- if (event.type && !data) {
- data = event;
- event = event.type;
- }
-
- namespace = event.split(".").splice(1).join(".");
- eventType = event.split(".")[0];
-
- event = doc.createEvent("Event");
- event.initEvent(eventType, true, true);
-
- return jBone.extend(event, {
- namespace: namespace,
- isDefaultPrevented: function() {
- return event.defaultPrevented;
- }
- }, data);
-};
-
-fn.on = function(event) {
- var args = arguments,
- length = this.length,
- i = 0,
- callback, target, namespace, fn, events, eventType, expectedTarget, addListener;
-
- if (args.length === 2) {
- callback = args[1];
- } else {
- target = args[1];
- callback = args[2];
- }
-
- addListener = function(el) {
- jBone.setId(el);
- events = jBone.getData(el).events;
- event.split(" ").forEach(function(event) {
- eventType = event.split(".")[0];
- namespace = event.split(".").splice(1).join(".");
- events[eventType] = events[eventType] || [];
-
- fn = function(e) {
- if (e.namespace && e.namespace !== namespace) {
- return;
- }
-
- expectedTarget = null;
- if (!target) {
- callback.call(el, e);
- } else if (~jBone(el).find(target).indexOf(e.target) || (expectedTarget = jBone.contains(jBone(el).find(target), e.target))) {
- expectedTarget = expectedTarget || e.target;
- e = new BoneEvent(e, {
- currentTarget: expectedTarget
- });
-
- callback.call(expectedTarget, e);
- }
- };
-
- events[eventType].push({
- namespace: namespace,
- fn: fn,
- originfn: callback
- });
-
- el.addEventListener && el.addEventListener(eventType, fn, false);
- });
- };
-
- for (; i < length; i++) {
- addListener(this[i]);
- }
-
- return this;
-};
-
-fn.one = function(event) {
- var args = arguments,
- i = 0,
- length = this.length,
- callback, target, addListener;
-
- if (args.length === 2) {
- callback = args[1];
- } else {
- target = args[1], callback = args[2];
- }
-
- addListener = function(el) {
- event.split(" ").forEach(function(event) {
- var fn = function(e) {
- jBone(el).off(event, fn);
- callback.call(el, e);
- };
-
- if (!target) {
- jBone(el).on(event, fn);
- } else {
- jBone(el).on(event, target, fn);
- }
- });
- };
-
- for (; i < length; i++) {
- addListener(this[i]);
- }
-
- return this;
-};
-
-fn.trigger = function(event) {
- var events = [],
- i = 0,
- length = this.length,
- dispatchEvents;
-
- if (!event) {
- return this;
- }
-
- if (isString(event)) {
- events = event.split(" ").map(function(event) {
- return jBone.Event(event);
- });
- } else {
- event = event instanceof Event ? event : jBone.Event(event);
- events = [event];
- }
-
- dispatchEvents = function(el) {
- events.forEach(function(event) {
- if (!event.type) {
- return;
- }
-
- el.dispatchEvent && el.dispatchEvent(event);
- });
- };
-
- for (; i < length; i++) {
- dispatchEvents(this[i]);
- }
-
- return this;
-};
-
-fn.off = function(event, fn) {
- var i = 0,
- length = this.length,
- removeListener = function(events, eventType, index, el, e) {
- var callback;
-
- // get callback
- if ((fn && e.originfn === fn) || !fn) {
- callback = e.fn;
- }
-
- if (events[eventType][index].fn === callback) {
- el.removeEventListener(eventType, callback);
-
- // remove handler from cache
- jBone._cache.events[jBone.getData(el).jid][eventType].splice(index, 1);
- }
- },
- events, namespace, removeListeners, eventType;
-
- removeListeners = function(el) {
- var l, eventsByType, e;
-
- events = jBone.getData(el).events;
-
- if (!events) {
- return;
- }
-
- // remove all events
- if (!event && events) {
- return keys(events).forEach(function(eventType) {
- eventsByType = events[eventType];
- l = eventsByType.length;
-
- while(l--) {
- removeListener(events, eventType, l, el, eventsByType[l]);
- }
- });
- }
-
- event.split(" ").forEach(function(event) {
- eventType = event.split(".")[0];
- namespace = event.split(".").splice(1).join(".");
-
- // remove named events
- if (events[eventType]) {
- eventsByType = events[eventType];
- l = eventsByType.length;
-
- while(l--) {
- e = eventsByType[l];
- if (!namespace || (namespace && e.namespace === namespace)) {
- removeListener(events, eventType, l, el, e);
- }
- }
- }
- // remove all namespaced events
- else if (namespace) {
- keys(events).forEach(function(eventType) {
- eventsByType = events[eventType];
- l = eventsByType.length;
-
- while(l--) {
- e = eventsByType[l];
- if (e.namespace.split(".")[0] === namespace.split(".")[0]) {
- removeListener(events, eventType, l, el, e);
- }
- }
- });
- }
- });
- };
-
- for (; i < length; i++) {
- removeListeners(this[i]);
- }
-
- return this;
-};
-
-fn.find = function(selector) {
- var results = [],
- i = 0,
- length = this.length,
- finder = function(el) {
- if (isFunction(el.querySelectorAll)) {
- [].forEach.call(el.querySelectorAll(selector), function(found) {
- results.push(found);
- });
- }
- };
-
- for (; i < length; i++) {
- finder(this[i]);
- }
-
- return jBone(results);
-};
-
-fn.get = function(index) {
- return this[index];
-};
-
-fn.eq = function(index) {
- return jBone(this[index]);
-};
-
-fn.parent = function() {
- var results = [],
- parent,
- i = 0,
- length = this.length;
-
- for (; i < length; i++) {
- if (!~results.indexOf(parent = this[i].parentElement) && parent) {
- results.push(parent);
- }
- }
-
- return jBone(results);
-};
-
-fn.toArray = function() {
- return slice.call(this);
-};
-
-fn.is = function() {
- var args = arguments;
-
- return this.some(function(el) {
- return el.tagName.toLowerCase() === args[0];
- });
-};
-
-fn.has = function() {
- var args = arguments;
-
- return this.some(function(el) {
- return el.querySelectorAll(args[0]).length;
- });
-};
-
-fn.attr = function(key, value) {
- var args = arguments,
- i = 0,
- length = this.length,
- setter;
-
- if (isString(key) && args.length === 1) {
- return this[0] && this[0].getAttribute(key);
- }
-
- if (args.length === 2) {
- setter = function(el) {
- el.setAttribute(key, value);
- };
- } else if (isObject(key)) {
- setter = function(el) {
- keys(key).forEach(function(name) {
- el.setAttribute(name, key[name]);
- });
- };
- }
-
- for (; i < length; i++) {
- setter(this[i]);
- }
-
- return this;
-};
-
-fn.removeAttr = function(key) {
- var i = 0,
- length = this.length;
-
- for (; i < length; i++) {
- this[i].removeAttribute(key);
- }
-
- return this;
-};
-
-fn.val = function(value) {
- var i = 0,
- length = this.length;
-
- if (arguments.length === 0) {
- return this[0] && this[0].value;
- }
-
- for (; i < length; i++) {
- this[i].value = value;
- }
-
- return this;
-};
-
-fn.css = function(key, value) {
- var args = arguments,
- i = 0,
- length = this.length,
- setter;
-
- // Get attribute
- if (isString(key) && args.length === 1) {
- return this[0] && win.getComputedStyle(this[0])[key];
- }
-
- // Set attributes
- if (args.length === 2) {
- setter = function(el) {
- el.style[key] = value;
- };
- } else if (isObject(key)) {
- setter = function(el) {
- keys(key).forEach(function(name) {
- el.style[name] = key[name];
- });
- };
- }
-
- for (; i < length; i++) {
- setter(this[i]);
- }
-
- return this;
-};
-
-fn.data = function(key, value) {
- var args = arguments, data = {},
- i = 0,
- length = this.length,
- setter,
- setValue = function(el, key, value) {
- if (isObject(value)) {
- el.jdata = el.jdata || {};
- el.jdata[key] = value;
- } else {
- el.dataset[key] = value;
- }
- },
- getValue = function(value) {
- if (value === "true") {
- return true;
- } else if (value === "false") {
- return false;
- } else {
- return value;
- }
- };
-
- // Get all data
- if (args.length === 0) {
- this[0].jdata && (data = this[0].jdata);
-
- keys(this[0].dataset).forEach(function(key) {
- data[key] = getValue(this[0].dataset[key]);
- }, this);
-
- return data;
- }
- // Get data by name
- if (args.length === 1 && isString(key)) {
- return this[0] && getValue(this[0].dataset[key] || this[0].jdata && this[0].jdata[key]);
- }
-
- // Set data
- if (args.length === 1 && isObject(key)) {
- setter = function(el) {
- keys(key).forEach(function(name) {
- setValue(el, name, key[name]);
- });
- };
- } else if (args.length === 2) {
- setter = function(el) {
- setValue(el, key, value);
- };
- }
-
- for (; i < length; i++) {
- setter(this[i]);
- }
-
- return this;
-};
-
-fn.removeData = function(key) {
- var i = 0,
- length = this.length,
- jdata, dataset;
-
- for (; i < length; i++) {
- jdata = this[i].jdata;
- dataset = this[i].dataset;
-
- if (key) {
- jdata && jdata[key] && delete jdata[key];
- delete dataset[key];
- } else {
- for (key in jdata) {
- delete jdata[key];
- }
-
- for (key in dataset) {
- delete dataset[key];
- }
- }
- }
-
- return this;
-};
-
-fn.html = function(value) {
- var args = arguments,
- el;
-
- // add HTML into elements
- if (args.length === 1 && value !== undefined) {
- return this.empty().append(value);
- }
- // get HTML from element
- else if (args.length === 0 && (el = this[0])) {
- return el.innerHTML;
- }
-
- return this;
-};
-
-fn.append = function(appended) {
- var i = 0,
- length = this.length,
- setter;
-
- // create jBone object and then append
- if (isString(appended) && rquickExpr.exec(appended)) {
- appended = jBone(appended);
- }
- // create text node for inserting
- else if (!isObject(appended)) {
- appended = document.createTextNode(appended);
- }
-
- appended = appended instanceof jBone ? appended : jBone(appended);
-
- setter = function(el, i) {
- appended.forEach(function(node) {
- if (i) {
- el.appendChild(node.cloneNode());
- } else {
- el.appendChild(node);
- }
- });
- };
-
- for (; i < length; i++) {
- setter(this[i], i);
- }
-
- return this;
-};
-
-fn.appendTo = function(to) {
- jBone(to).append(this);
-
- return this;
-};
-
-fn.empty = function() {
- var i = 0,
- length = this.length,
- el;
-
- for (; i < length; i++) {
- el = this[i];
-
- while (el.lastChild) {
- el.removeChild(el.lastChild);
- }
- }
-
- return this;
-};
-
-fn.remove = function() {
- var i = 0,
- length = this.length,
- el;
-
- // remove all listners
- this.off();
-
- for (; i < length; i++) {
- el = this[i];
-
- // remove data and nodes
- delete el.jdata;
- el.parentNode && el.parentNode.removeChild(el);
- }
-
- return this;
-};
-
-if (typeof module === "object" && module && typeof module.exports === "object") {
- // Expose jBone as module.exports in loaders that implement the Node
- // module pattern (including browserify). Do not create the global, since
- // the user will be storing it themselves locally, and globals are frowned
- // upon in the Node module world.
- module.exports = jBone;
-}
-// Register as a AMD module
-else if (typeof define === "function" && define.amd) {
- define(function() {
- return jBone;
- });
-
- win.jBone = win.$ = jBone;
-} else if (typeof win === "object" && typeof win.document === "object") {
- win.jBone = win.$ = jBone;
-}
-
-}(window));
-
-},{}],51:[function(require,module,exports){
-var Mouse;
-
-module.exports = Mouse = {
- rel: function(e) {
- var mouseX, mouseY, rect, target;
- mouseX = e.offsetX;
- mouseY = e.offsetY;
- if (mouseX == null) {
- rect = target.getBoundingClientRect();
- target = e.target || e.srcElement;
- if (mouseX == null) {
- mouseX = e.clientX - rect.left;
- mouseY = e.clientY - rect.top;
- }
- if (mouseX == null) {
- mouseX = e.pageX - target.offsetLeft;
- mouseY = e.pageY - target.offsetTop;
- }
- if (mouseX == null) {
- console.log(e, "no mouse event defined. your browser sucks");
- return;
- }
- }
- return [mouseX, mouseY];
- },
- abs: function(e) {
- var mouseX, mouseY;
- mouseX = e.pageX;
- mouseY = e.pageY;
- if (mouseX == null) {
- mouseX = e.layerX;
- mouseY = e.layerY;
- }
- if (mouseX == null) {
- mouseX = e.clientX;
- mouseY = e.clientY;
- }
- if (mouseX == null) {
- mouseX = e.x;
- mouseY = e.y;
- }
- return [mouseX, mouseY];
- },
- wheelDelta: function(e) {
- var delta, dir;
- delta = [e.deltaX, e.deltaY];
- if (delta[0] == null) {
- dir = Math.floor(e.detail / 3);
- delta = [0, e.mozMovementX * dir];
- }
- return delta;
- }
-};
-
-},{}],52:[function(require,module,exports){
-var window = require("global/window")
-var once = require("once")
-var parseHeaders = require('parse-headers')
-
-var messages = {
- "0": "Internal XMLHttpRequest Error",
- "4": "4xx Client Error",
- "5": "5xx Server Error"
-}
-
-var XHR = window.XMLHttpRequest || noop
-var XDR = "withCredentials" in (new XHR()) ? XHR : window.XDomainRequest
-
-module.exports = createXHR
-
-function createXHR(options, callback) {
- if (typeof options === "string") {
- options = { uri: options }
- }
-
- options = options || {}
- callback = once(callback)
-
- var xhr = options.xhr || null
-
- if (!xhr) {
- if (options.cors || options.useXDR) {
- xhr = new XDR()
- }else{
- xhr = new XHR()
- }
- }
-
- var uri = xhr.url = options.uri || options.url
- var method = xhr.method = options.method || "GET"
- var body = options.body || options.data
- var headers = xhr.headers = options.headers || {}
- var sync = !!options.sync
- var isJson = false
- var key
- var load = options.response ? loadResponse : loadXhr
-
- if ("json" in options) {
- isJson = true
- headers["Accept"] = "application/json"
- if (method !== "GET" && method !== "HEAD") {
- headers["Content-Type"] = "application/json"
- body = JSON.stringify(options.json)
- }
- }
-
- xhr.onreadystatechange = readystatechange
- xhr.onload = load
- xhr.onerror = error
- // IE9 must have onprogress be set to a unique function.
- xhr.onprogress = function () {
- // IE must die
- }
- // hate IE
- xhr.ontimeout = noop
- xhr.open(method, uri, !sync)
- //backward compatibility
- if (options.withCredentials || (options.cors && options.withCredentials !== false)) {
- xhr.withCredentials = true
- }
-
- // Cannot set timeout with sync request
- if (!sync) {
- xhr.timeout = "timeout" in options ? options.timeout : 5000
- }
-
- if (xhr.setRequestHeader) {
- for(key in headers){
- if(headers.hasOwnProperty(key)){
- xhr.setRequestHeader(key, headers[key])
- }
- }
- } else if (options.headers) {
- throw new Error("Headers cannot be set on an XDomainRequest object")
- }
-
- if ("responseType" in options) {
- xhr.responseType = options.responseType
- }
-
- if ("beforeSend" in options &&
- typeof options.beforeSend === "function"
- ) {
- options.beforeSend(xhr)
- }
-
- xhr.send(body)
-
- return xhr
-
- function readystatechange() {
- if (xhr.readyState === 4) {
- load()
- }
- }
-
- function getBody() {
- // Chrome with requestType=blob throws errors arround when even testing access to responseText
- var body = null
-
- if (xhr.response) {
- body = xhr.response
- } else if (xhr.responseType === 'text' || !xhr.responseType) {
- body = xhr.responseText || xhr.responseXML
- }
-
- if (isJson) {
- try {
- body = JSON.parse(body)
- } catch (e) {}
- }
-
- return body
- }
-
- function getStatusCode() {
- return xhr.status === 1223 ? 204 : xhr.status
- }
-
- // if we're getting a none-ok statusCode, build & return an error
- function errorFromStatusCode(status) {
- var error = null
- if (status === 0 || (status >= 400 && status < 600)) {
- var message = (typeof body === "string" ? body : false) ||
- messages[String(status).charAt(0)]
- error = new Error(message)
- error.statusCode = status
- }
-
- return error
- }
-
- // will load the data & process the response in a special response object
- function loadResponse() {
- var status = getStatusCode()
- var error = errorFromStatusCode(status)
- var response = {
- body: getBody(),
- statusCode: status,
- statusText: xhr.statusText,
- raw: xhr
- }
- if(xhr.getAllResponseHeaders){ //remember xhr can in fact be XDR for CORS in IE
- response.headers = parseHeaders(xhr.getAllResponseHeaders())
- } else {
- response.headers = {}
- }
-
- callback(error, response, response.body)
- }
-
- // will load the data and add some response properties to the source xhr
- // and then respond with that
- function loadXhr() {
- var status = getStatusCode()
- var error = errorFromStatusCode(status)
-
- xhr.status = xhr.statusCode = status
- xhr.body = getBody()
- xhr.headers = parseHeaders(xhr.getAllResponseHeaders())
-
- callback(error, xhr, xhr.body)
- }
-
- function error(evt) {
- callback(evt, xhr)
- }
-}
-
-
-function noop() {}
-
-},{"global/window":53,"once":54,"parse-headers":58}],53:[function(require,module,exports){
-(function (global){
-if (typeof window !== "undefined") {
- module.exports = window;
-} else if (typeof global !== "undefined") {
- module.exports = global;
-} else if (typeof self !== "undefined"){
- module.exports = self;
-} else {
- module.exports = {};
-}
-
-}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
-},{}],54:[function(require,module,exports){
-module.exports = once
-
-once.proto = once(function () {
- Object.defineProperty(Function.prototype, 'once', {
- value: function () {
- return once(this)
- },
- configurable: true
- })
-})
-
-function once (fn) {
- var called = false
- return function () {
- if (called) return
- called = true
- return fn.apply(this, arguments)
- }
-}
-
-},{}],55:[function(require,module,exports){
-var isFunction = require('is-function')
-
-module.exports = forEach
-
-var toString = Object.prototype.toString
-var hasOwnProperty = Object.prototype.hasOwnProperty
-
-function forEach(list, iterator, context) {
- if (!isFunction(iterator)) {
- throw new TypeError('iterator must be a function')
- }
-
- if (arguments.length < 3) {
- context = this
- }
-
- if (toString.call(list) === '[object Array]')
- forEachArray(list, iterator, context)
- else if (typeof list === 'string')
- forEachString(list, iterator, context)
- else
- forEachObject(list, iterator, context)
-}
-
-function forEachArray(array, iterator, context) {
- for (var i = 0, len = array.length; i < len; i++) {
- if (hasOwnProperty.call(array, i)) {
- iterator.call(context, array[i], i, array)
- }
- }
-}
-
-function forEachString(string, iterator, context) {
- for (var i = 0, len = string.length; i < len; i++) {
- // no such thing as a sparse string.
- iterator.call(context, string.charAt(i), i, string)
- }
-}
-
-function forEachObject(object, iterator, context) {
- for (var k in object) {
- if (hasOwnProperty.call(object, k)) {
- iterator.call(context, object[k], k, object)
- }
- }
-}
-
-},{"is-function":56}],56:[function(require,module,exports){
-module.exports = isFunction
-
-var toString = Object.prototype.toString
-
-function isFunction (fn) {
- var string = toString.call(fn)
- return string === '[object Function]' ||
- (typeof fn === 'function' && string !== '[object RegExp]') ||
- (typeof window !== 'undefined' &&
- // IE8 and below
- (fn === window.setTimeout ||
- fn === window.alert ||
- fn === window.confirm ||
- fn === window.prompt))
-};
-
-},{}],57:[function(require,module,exports){
-
-exports = module.exports = trim;
-
-function trim(str){
- return str.replace(/^\s*|\s*$/g, '');
-}
-
-exports.left = function(str){
- return str.replace(/^\s*/, '');
-};
-
-exports.right = function(str){
- return str.replace(/\s*$/, '');
-};
-
-},{}],58:[function(require,module,exports){
-var trim = require('trim')
- , forEach = require('for-each')
- , isArray = function(arg) {
- return Object.prototype.toString.call(arg) === '[object Array]';
- }
-
-module.exports = function (headers) {
- if (!headers)
- return {}
-
- var result = {}
-
- forEach(
- trim(headers).split('\n')
- , function (row) {
- var index = row.indexOf(':')
- , key = trim(row.slice(0, index)).toLowerCase()
- , value = trim(row.slice(index + 1))
-
- if (typeof(result[key]) === 'undefined') {
- result[key] = value
- } else if (isArray(result[key])) {
- result[key].push(value)
- } else {
- result[key] = [ result[key], value ]
- }
- }
- )
-
- return result
-}
-},{"for-each":55,"trim":57}],59:[function(require,module,exports){
-// Underscore.js 1.7.0
-// http://underscorejs.org
-// (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
-// Underscore may be freely distributed under the MIT license.
-
-(function() {
-
- // Baseline setup
- // --------------
-
- // Establish the root object, `window` in the browser, or `exports` on the server.
- var root = this;
-
- // Save the previous value of the `_` variable.
- var previousUnderscore = root._;
-
- // Save bytes in the minified (but not gzipped) version:
- var ArrayProto = Array.prototype, ObjProto = Object.prototype, FuncProto = Function.prototype;
-
- // Create quick reference variables for speed access to core prototypes.
- var
- push = ArrayProto.push,
- slice = ArrayProto.slice,
- concat = ArrayProto.concat,
- toString = ObjProto.toString,
- hasOwnProperty = ObjProto.hasOwnProperty;
-
- // All **ECMAScript 5** native function implementations that we hope to use
- // are declared here.
- var
- nativeIsArray = Array.isArray,
- nativeKeys = Object.keys,
- nativeBind = FuncProto.bind;
-
- // Create a safe reference to the Underscore object for use below.
- var _ = function(obj) {
- if (obj instanceof _) return obj;
- if (!(this instanceof _)) return new _(obj);
- this._wrapped = obj;
- };
-
- // Export the Underscore object for **Node.js**, with
- // backwards-compatibility for the old `require()` API. If we're in
- // the browser, add `_` as a global object.
- if (typeof exports !== 'undefined') {
- if (typeof module !== 'undefined' && module.exports) {
- exports = module.exports = _;
- }
- exports._ = _;
- } else {
- root._ = _;
- }
-
- // Current version.
- _.VERSION = '1.7.0';
-
- // Internal function that returns an efficient (for current engines) version
- // of the passed-in callback, to be repeatedly applied in other Underscore
- // functions.
- var createCallback = function(func, context, argCount) {
- if (context === void 0) return func;
- switch (argCount == null ? 3 : argCount) {
- case 1: return function(value) {
- return func.call(context, value);
- };
- case 2: return function(value, other) {
- return func.call(context, value, other);
- };
- case 3: return function(value, index, collection) {
- return func.call(context, value, index, collection);
- };
- case 4: return function(accumulator, value, index, collection) {
- return func.call(context, accumulator, value, index, collection);
- };
- }
- return function() {
- return func.apply(context, arguments);
- };
- };
-
- // A mostly-internal function to generate callbacks that can be applied
- // to each element in a collection, returning the desired result — either
- // identity, an arbitrary callback, a property matcher, or a property accessor.
- _.iteratee = function(value, context, argCount) {
- if (value == null) return _.identity;
- if (_.isFunction(value)) return createCallback(value, context, argCount);
- if (_.isObject(value)) return _.matches(value);
- return _.property(value);
- };
-
- // Collection Functions
- // --------------------
-
- // The cornerstone, an `each` implementation, aka `forEach`.
- // Handles raw objects in addition to array-likes. Treats all
- // sparse array-likes as if they were dense.
- _.each = _.forEach = function(obj, iteratee, context) {
- if (obj == null) return obj;
- iteratee = createCallback(iteratee, context);
- var i, length = obj.length;
- if (length === +length) {
- for (i = 0; i < length; i++) {
- iteratee(obj[i], i, obj);
- }
- } else {
- var keys = _.keys(obj);
- for (i = 0, length = keys.length; i < length; i++) {
- iteratee(obj[keys[i]], keys[i], obj);
- }
- }
- return obj;
- };
-
- // Return the results of applying the iteratee to each element.
- _.map = _.collect = function(obj, iteratee, context) {
- if (obj == null) return [];
- iteratee = _.iteratee(iteratee, context);
- var keys = obj.length !== +obj.length && _.keys(obj),
- length = (keys || obj).length,
- results = Array(length),
- currentKey;
- for (var index = 0; index < length; index++) {
- currentKey = keys ? keys[index] : index;
- results[index] = iteratee(obj[currentKey], currentKey, obj);
- }
- return results;
- };
-
- var reduceError = 'Reduce of empty array with no initial value';
-
- // **Reduce** builds up a single result from a list of values, aka `inject`,
- // or `foldl`.
- _.reduce = _.foldl = _.inject = function(obj, iteratee, memo, context) {
- if (obj == null) obj = [];
- iteratee = createCallback(iteratee, context, 4);
- var keys = obj.length !== +obj.length && _.keys(obj),
- length = (keys || obj).length,
- index = 0, currentKey;
- if (arguments.length < 3) {
- if (!length) throw new TypeError(reduceError);
- memo = obj[keys ? keys[index++] : index++];
- }
- for (; index < length; index++) {
- currentKey = keys ? keys[index] : index;
- memo = iteratee(memo, obj[currentKey], currentKey, obj);
- }
- return memo;
- };
-
- // The right-associative version of reduce, also known as `foldr`.
- _.reduceRight = _.foldr = function(obj, iteratee, memo, context) {
- if (obj == null) obj = [];
- iteratee = createCallback(iteratee, context, 4);
- var keys = obj.length !== + obj.length && _.keys(obj),
- index = (keys || obj).length,
- currentKey;
- if (arguments.length < 3) {
- if (!index) throw new TypeError(reduceError);
- memo = obj[keys ? keys[--index] : --index];
- }
- while (index--) {
- currentKey = keys ? keys[index] : index;
- memo = iteratee(memo, obj[currentKey], currentKey, obj);
- }
- return memo;
- };
-
- // Return the first value which passes a truth test. Aliased as `detect`.
- _.find = _.detect = function(obj, predicate, context) {
- var result;
- predicate = _.iteratee(predicate, context);
- _.some(obj, function(value, index, list) {
- if (predicate(value, index, list)) {
- result = value;
- return true;
- }
- });
- return result;
- };
-
- // Return all the elements that pass a truth test.
- // Aliased as `select`.
- _.filter = _.select = function(obj, predicate, context) {
- var results = [];
- if (obj == null) return results;
- predicate = _.iteratee(predicate, context);
- _.each(obj, function(value, index, list) {
- if (predicate(value, index, list)) results.push(value);
- });
- return results;
- };
-
- // Return all the elements for which a truth test fails.
- _.reject = function(obj, predicate, context) {
- return _.filter(obj, _.negate(_.iteratee(predicate)), context);
- };
-
- // Determine whether all of the elements match a truth test.
- // Aliased as `all`.
- _.every = _.all = function(obj, predicate, context) {
- if (obj == null) return true;
- predicate = _.iteratee(predicate, context);
- var keys = obj.length !== +obj.length && _.keys(obj),
- length = (keys || obj).length,
- index, currentKey;
- for (index = 0; index < length; index++) {
- currentKey = keys ? keys[index] : index;
- if (!predicate(obj[currentKey], currentKey, obj)) return false;
- }
- return true;
- };
-
- // Determine if at least one element in the object matches a truth test.
- // Aliased as `any`.
- _.some = _.any = function(obj, predicate, context) {
- if (obj == null) return false;
- predicate = _.iteratee(predicate, context);
- var keys = obj.length !== +obj.length && _.keys(obj),
- length = (keys || obj).length,
- index, currentKey;
- for (index = 0; index < length; index++) {
- currentKey = keys ? keys[index] : index;
- if (predicate(obj[currentKey], currentKey, obj)) return true;
- }
- return false;
- };
-
- // Determine if the array or object contains a given value (using `===`).
- // Aliased as `include`.
- _.contains = _.include = function(obj, target) {
- if (obj == null) return false;
- if (obj.length !== +obj.length) obj = _.values(obj);
- return _.indexOf(obj, target) >= 0;
- };
-
- // Invoke a method (with arguments) on every item in a collection.
- _.invoke = function(obj, method) {
- var args = slice.call(arguments, 2);
- var isFunc = _.isFunction(method);
- return _.map(obj, function(value) {
- return (isFunc ? method : value[method]).apply(value, args);
- });
- };
-
- // Convenience version of a common use case of `map`: fetching a property.
- _.pluck = function(obj, key) {
- return _.map(obj, _.property(key));
- };
-
- // Convenience version of a common use case of `filter`: selecting only objects
- // containing specific `key:value` pairs.
- _.where = function(obj, attrs) {
- return _.filter(obj, _.matches(attrs));
- };
-
- // Convenience version of a common use case of `find`: getting the first object
- // containing specific `key:value` pairs.
- _.findWhere = function(obj, attrs) {
- return _.find(obj, _.matches(attrs));
- };
-
- // Return the maximum element (or element-based computation).
- _.max = function(obj, iteratee, context) {
- var result = -Infinity, lastComputed = -Infinity,
- value, computed;
- if (iteratee == null && obj != null) {
- obj = obj.length === +obj.length ? obj : _.values(obj);
- for (var i = 0, length = obj.length; i < length; i++) {
- value = obj[i];
- if (value > result) {
- result = value;
- }
- }
- } else {
- iteratee = _.iteratee(iteratee, context);
- _.each(obj, function(value, index, list) {
- computed = iteratee(value, index, list);
- if (computed > lastComputed || computed === -Infinity && result === -Infinity) {
- result = value;
- lastComputed = computed;
- }
- });
- }
- return result;
- };
-
- // Return the minimum element (or element-based computation).
- _.min = function(obj, iteratee, context) {
- var result = Infinity, lastComputed = Infinity,
- value, computed;
- if (iteratee == null && obj != null) {
- obj = obj.length === +obj.length ? obj : _.values(obj);
- for (var i = 0, length = obj.length; i < length; i++) {
- value = obj[i];
- if (value < result) {
- result = value;
- }
- }
- } else {
- iteratee = _.iteratee(iteratee, context);
- _.each(obj, function(value, index, list) {
- computed = iteratee(value, index, list);
- if (computed < lastComputed || computed === Infinity && result === Infinity) {
- result = value;
- lastComputed = computed;
- }
- });
- }
- return result;
- };
-
- // Shuffle a collection, using the modern version of the
- // [Fisher-Yates shuffle](http://en.wikipedia.org/wiki/Fisher–Yates_shuffle).
- _.shuffle = function(obj) {
- var set = obj && obj.length === +obj.length ? obj : _.values(obj);
- var length = set.length;
- var shuffled = Array(length);
- for (var index = 0, rand; index < length; index++) {
- rand = _.random(0, index);
- if (rand !== index) shuffled[index] = shuffled[rand];
- shuffled[rand] = set[index];
- }
- return shuffled;
- };
-
- // Sample **n** random values from a collection.
- // If **n** is not specified, returns a single random element.
- // The internal `guard` argument allows it to work with `map`.
- _.sample = function(obj, n, guard) {
- if (n == null || guard) {
- if (obj.length !== +obj.length) obj = _.values(obj);
- return obj[_.random(obj.length - 1)];
- }
- return _.shuffle(obj).slice(0, Math.max(0, n));
- };
-
- // Sort the object's values by a criterion produced by an iteratee.
- _.sortBy = function(obj, iteratee, context) {
- iteratee = _.iteratee(iteratee, context);
- return _.pluck(_.map(obj, function(value, index, list) {
- return {
- value: value,
- index: index,
- criteria: iteratee(value, index, list)
- };
- }).sort(function(left, right) {
- var a = left.criteria;
- var b = right.criteria;
- if (a !== b) {
- if (a > b || a === void 0) return 1;
- if (a < b || b === void 0) return -1;
- }
- return left.index - right.index;
- }), 'value');
- };
-
- // An internal function used for aggregate "group by" operations.
- var group = function(behavior) {
- return function(obj, iteratee, context) {
- var result = {};
- iteratee = _.iteratee(iteratee, context);
- _.each(obj, function(value, index) {
- var key = iteratee(value, index, obj);
- behavior(result, value, key);
- });
- return result;
- };
- };
-
- // Groups the object's values by a criterion. Pass either a string attribute
- // to group by, or a function that returns the criterion.
- _.groupBy = group(function(result, value, key) {
- if (_.has(result, key)) result[key].push(value); else result[key] = [value];
- });
-
- // Indexes the object's values by a criterion, similar to `groupBy`, but for
- // when you know that your index values will be unique.
- _.indexBy = group(function(result, value, key) {
- result[key] = value;
- });
-
- // Counts instances of an object that group by a certain criterion. Pass
- // either a string attribute to count by, or a function that returns the
- // criterion.
- _.countBy = group(function(result, value, key) {
- if (_.has(result, key)) result[key]++; else result[key] = 1;
- });
-
- // Use a comparator function to figure out the smallest index at which
- // an object should be inserted so as to maintain order. Uses binary search.
- _.sortedIndex = function(array, obj, iteratee, context) {
- iteratee = _.iteratee(iteratee, context, 1);
- var value = iteratee(obj);
- var low = 0, high = array.length;
- while (low < high) {
- var mid = low + high >>> 1;
- if (iteratee(array[mid]) < value) low = mid + 1; else high = mid;
- }
- return low;
- };
-
- // Safely create a real, live array from anything iterable.
- _.toArray = function(obj) {
- if (!obj) return [];
- if (_.isArray(obj)) return slice.call(obj);
- if (obj.length === +obj.length) return _.map(obj, _.identity);
- return _.values(obj);
- };
-
- // Return the number of elements in an object.
- _.size = function(obj) {
- if (obj == null) return 0;
- return obj.length === +obj.length ? obj.length : _.keys(obj).length;
- };
-
- // Split a collection into two arrays: one whose elements all satisfy the given
- // predicate, and one whose elements all do not satisfy the predicate.
- _.partition = function(obj, predicate, context) {
- predicate = _.iteratee(predicate, context);
- var pass = [], fail = [];
- _.each(obj, function(value, key, obj) {
- (predicate(value, key, obj) ? pass : fail).push(value);
- });
- return [pass, fail];
- };
-
- // Array Functions
- // ---------------
-
- // Get the first element of an array. Passing **n** will return the first N
- // values in the array. Aliased as `head` and `take`. The **guard** check
- // allows it to work with `_.map`.
- _.first = _.head = _.take = function(array, n, guard) {
- if (array == null) return void 0;
- if (n == null || guard) return array[0];
- if (n < 0) return [];
- return slice.call(array, 0, n);
- };
-
- // Returns everything but the last entry of the array. Especially useful on
- // the arguments object. Passing **n** will return all the values in
- // the array, excluding the last N. The **guard** check allows it to work with
- // `_.map`.
- _.initial = function(array, n, guard) {
- return slice.call(array, 0, Math.max(0, array.length - (n == null || guard ? 1 : n)));
- };
-
- // Get the last element of an array. Passing **n** will return the last N
- // values in the array. The **guard** check allows it to work with `_.map`.
- _.last = function(array, n, guard) {
- if (array == null) return void 0;
- if (n == null || guard) return array[array.length - 1];
- return slice.call(array, Math.max(array.length - n, 0));
- };
-
- // Returns everything but the first entry of the array. Aliased as `tail` and `drop`.
- // Especially useful on the arguments object. Passing an **n** will return
- // the rest N values in the array. The **guard**
- // check allows it to work with `_.map`.
- _.rest = _.tail = _.drop = function(array, n, guard) {
- return slice.call(array, n == null || guard ? 1 : n);
- };
-
- // Trim out all falsy values from an array.
- _.compact = function(array) {
- return _.filter(array, _.identity);
- };
-
- // Internal implementation of a recursive `flatten` function.
- var flatten = function(input, shallow, strict, output) {
- if (shallow && _.every(input, _.isArray)) {
- return concat.apply(output, input);
- }
- for (var i = 0, length = input.length; i < length; i++) {
- var value = input[i];
- if (!_.isArray(value) && !_.isArguments(value)) {
- if (!strict) output.push(value);
- } else if (shallow) {
- push.apply(output, value);
- } else {
- flatten(value, shallow, strict, output);
- }
- }
- return output;
- };
-
- // Flatten out an array, either recursively (by default), or just one level.
- _.flatten = function(array, shallow) {
- return flatten(array, shallow, false, []);
- };
-
- // Return a version of the array that does not contain the specified value(s).
- _.without = function(array) {
- return _.difference(array, slice.call(arguments, 1));
- };
-
- // Produce a duplicate-free version of the array. If the array has already
- // been sorted, you have the option of using a faster algorithm.
- // Aliased as `unique`.
- _.uniq = _.unique = function(array, isSorted, iteratee, context) {
- if (array == null) return [];
- if (!_.isBoolean(isSorted)) {
- context = iteratee;
- iteratee = isSorted;
- isSorted = false;
- }
- if (iteratee != null) iteratee = _.iteratee(iteratee, context);
- var result = [];
- var seen = [];
- for (var i = 0, length = array.length; i < length; i++) {
- var value = array[i];
- if (isSorted) {
- if (!i || seen !== value) result.push(value);
- seen = value;
- } else if (iteratee) {
- var computed = iteratee(value, i, array);
- if (_.indexOf(seen, computed) < 0) {
- seen.push(computed);
- result.push(value);
- }
- } else if (_.indexOf(result, value) < 0) {
- result.push(value);
- }
- }
- return result;
- };
-
- // Produce an array that contains the union: each distinct element from all of
- // the passed-in arrays.
- _.union = function() {
- return _.uniq(flatten(arguments, true, true, []));
- };
-
- // Produce an array that contains every item shared between all the
- // passed-in arrays.
- _.intersection = function(array) {
- if (array == null) return [];
- var result = [];
- var argsLength = arguments.length;
- for (var i = 0, length = array.length; i < length; i++) {
- var item = array[i];
- if (_.contains(result, item)) continue;
- for (var j = 1; j < argsLength; j++) {
- if (!_.contains(arguments[j], item)) break;
- }
- if (j === argsLength) result.push(item);
- }
- return result;
- };
-
- // Take the difference between one array and a number of other arrays.
- // Only the elements present in just the first array will remain.
- _.difference = function(array) {
- var rest = flatten(slice.call(arguments, 1), true, true, []);
- return _.filter(array, function(value){
- return !_.contains(rest, value);
- });
- };
-
- // Zip together multiple lists into a single array -- elements that share
- // an index go together.
- _.zip = function(array) {
- if (array == null) return [];
- var length = _.max(arguments, 'length').length;
- var results = Array(length);
- for (var i = 0; i < length; i++) {
- results[i] = _.pluck(arguments, i);
- }
- return results;
- };
-
- // Converts lists into objects. Pass either a single array of `[key, value]`
- // pairs, or two parallel arrays of the same length -- one of keys, and one of
- // the corresponding values.
- _.object = function(list, values) {
- if (list == null) return {};
- var result = {};
- for (var i = 0, length = list.length; i < length; i++) {
- if (values) {
- result[list[i]] = values[i];
- } else {
- result[list[i][0]] = list[i][1];
- }
- }
- return result;
- };
-
- // Return the position of the first occurrence of an item in an array,
- // or -1 if the item is not included in the array.
- // If the array is large and already in sort order, pass `true`
- // for **isSorted** to use binary search.
- _.indexOf = function(array, item, isSorted) {
- if (array == null) return -1;
- var i = 0, length = array.length;
- if (isSorted) {
- if (typeof isSorted == 'number') {
- i = isSorted < 0 ? Math.max(0, length + isSorted) : isSorted;
- } else {
- i = _.sortedIndex(array, item);
- return array[i] === item ? i : -1;
- }
- }
- for (; i < length; i++) if (array[i] === item) return i;
- return -1;
- };
-
- _.lastIndexOf = function(array, item, from) {
- if (array == null) return -1;
- var idx = array.length;
- if (typeof from == 'number') {
- idx = from < 0 ? idx + from + 1 : Math.min(idx, from + 1);
- }
- while (--idx >= 0) if (array[idx] === item) return idx;
- return -1;
- };
-
- // Generate an integer Array containing an arithmetic progression. A port of
- // the native Python `range()` function. See
- // [the Python documentation](http://docs.python.org/library/functions.html#range).
- _.range = function(start, stop, step) {
- if (arguments.length <= 1) {
- stop = start || 0;
- start = 0;
- }
- step = step || 1;
-
- var length = Math.max(Math.ceil((stop - start) / step), 0);
- var range = Array(length);
-
- for (var idx = 0; idx < length; idx++, start += step) {
- range[idx] = start;
- }
-
- return range;
- };
-
- // Function (ahem) Functions
- // ------------------
-
- // Reusable constructor function for prototype setting.
- var Ctor = function(){};
-
- // Create a function bound to a given object (assigning `this`, and arguments,
- // optionally). Delegates to **ECMAScript 5**'s native `Function.bind` if
- // available.
- _.bind = function(func, context) {
- var args, bound;
- if (nativeBind && func.bind === nativeBind) return nativeBind.apply(func, slice.call(arguments, 1));
- if (!_.isFunction(func)) throw new TypeError('Bind must be called on a function');
- args = slice.call(arguments, 2);
- bound = function() {
- if (!(this instanceof bound)) return func.apply(context, args.concat(slice.call(arguments)));
- Ctor.prototype = func.prototype;
- var self = new Ctor;
- Ctor.prototype = null;
- var result = func.apply(self, args.concat(slice.call(arguments)));
- if (_.isObject(result)) return result;
- return self;
- };
- return bound;
- };
-
- // Partially apply a function by creating a version that has had some of its
- // arguments pre-filled, without changing its dynamic `this` context. _ acts
- // as a placeholder, allowing any combination of arguments to be pre-filled.
- _.partial = function(func) {
- var boundArgs = slice.call(arguments, 1);
- return function() {
- var position = 0;
- var args = boundArgs.slice();
- for (var i = 0, length = args.length; i < length; i++) {
- if (args[i] === _) args[i] = arguments[position++];
- }
- while (position < arguments.length) args.push(arguments[position++]);
- return func.apply(this, args);
- };
- };
-
- // Bind a number of an object's methods to that object. Remaining arguments
- // are the method names to be bound. Useful for ensuring that all callbacks
- // defined on an object belong to it.
- _.bindAll = function(obj) {
- var i, length = arguments.length, key;
- if (length <= 1) throw new Error('bindAll must be passed function names');
- for (i = 1; i < length; i++) {
- key = arguments[i];
- obj[key] = _.bind(obj[key], obj);
- }
- return obj;
- };
-
- // Memoize an expensive function by storing its results.
- _.memoize = function(func, hasher) {
- var memoize = function(key) {
- var cache = memoize.cache;
- var address = hasher ? hasher.apply(this, arguments) : key;
- if (!_.has(cache, address)) cache[address] = func.apply(this, arguments);
- return cache[address];
- };
- memoize.cache = {};
- return memoize;
- };
-
- // Delays a function for the given number of milliseconds, and then calls
- // it with the arguments supplied.
- _.delay = function(func, wait) {
- var args = slice.call(arguments, 2);
- return setTimeout(function(){
- return func.apply(null, args);
- }, wait);
- };
-
- // Defers a function, scheduling it to run after the current call stack has
- // cleared.
- _.defer = function(func) {
- return _.delay.apply(_, [func, 1].concat(slice.call(arguments, 1)));
- };
-
- // Returns a function, that, when invoked, will only be triggered at most once
- // during a given window of time. Normally, the throttled function will run
- // as much as it can, without ever going more than once per `wait` duration;
- // but if you'd like to disable the execution on the leading edge, pass
- // `{leading: false}`. To disable execution on the trailing edge, ditto.
- _.throttle = function(func, wait, options) {
- var context, args, result;
- var timeout = null;
- var previous = 0;
- if (!options) options = {};
- var later = function() {
- previous = options.leading === false ? 0 : _.now();
- timeout = null;
- result = func.apply(context, args);
- if (!timeout) context = args = null;
- };
- return function() {
- var now = _.now();
- if (!previous && options.leading === false) previous = now;
- var remaining = wait - (now - previous);
- context = this;
- args = arguments;
- if (remaining <= 0 || remaining > wait) {
- clearTimeout(timeout);
- timeout = null;
- previous = now;
- result = func.apply(context, args);
- if (!timeout) context = args = null;
- } else if (!timeout && options.trailing !== false) {
- timeout = setTimeout(later, remaining);
- }
- return result;
- };
- };
-
- // Returns a function, that, as long as it continues to be invoked, will not
- // be triggered. The function will be called after it stops being called for
- // N milliseconds. If `immediate` is passed, trigger the function on the
- // leading edge, instead of the trailing.
- _.debounce = function(func, wait, immediate) {
- var timeout, args, context, timestamp, result;
-
- var later = function() {
- var last = _.now() - timestamp;
-
- if (last < wait && last > 0) {
- timeout = setTimeout(later, wait - last);
- } else {
- timeout = null;
- if (!immediate) {
- result = func.apply(context, args);
- if (!timeout) context = args = null;
- }
- }
- };
-
- return function() {
- context = this;
- args = arguments;
- timestamp = _.now();
- var callNow = immediate && !timeout;
- if (!timeout) timeout = setTimeout(later, wait);
- if (callNow) {
- result = func.apply(context, args);
- context = args = null;
- }
-
- return result;
- };
- };
-
- // Returns the first function passed as an argument to the second,
- // allowing you to adjust arguments, run code before and after, and
- // conditionally execute the original function.
- _.wrap = function(func, wrapper) {
- return _.partial(wrapper, func);
- };
-
- // Returns a negated version of the passed-in predicate.
- _.negate = function(predicate) {
- return function() {
- return !predicate.apply(this, arguments);
- };
- };
-
- // Returns a function that is the composition of a list of functions, each
- // consuming the return value of the function that follows.
- _.compose = function() {
- var args = arguments;
- var start = args.length - 1;
- return function() {
- var i = start;
- var result = args[start].apply(this, arguments);
- while (i--) result = args[i].call(this, result);
- return result;
- };
- };
-
- // Returns a function that will only be executed after being called N times.
- _.after = function(times, func) {
- return function() {
- if (--times < 1) {
- return func.apply(this, arguments);
- }
- };
- };
-
- // Returns a function that will only be executed before being called N times.
- _.before = function(times, func) {
- var memo;
- return function() {
- if (--times > 0) {
- memo = func.apply(this, arguments);
- } else {
- func = null;
- }
- return memo;
- };
- };
-
- // Returns a function that will be executed at most one time, no matter how
- // often you call it. Useful for lazy initialization.
- _.once = _.partial(_.before, 2);
-
- // Object Functions
- // ----------------
-
- // Retrieve the names of an object's properties.
- // Delegates to **ECMAScript 5**'s native `Object.keys`
- _.keys = function(obj) {
- if (!_.isObject(obj)) return [];
- if (nativeKeys) return nativeKeys(obj);
- var keys = [];
- for (var key in obj) if (_.has(obj, key)) keys.push(key);
- return keys;
- };
-
- // Retrieve the values of an object's properties.
- _.values = function(obj) {
- var keys = _.keys(obj);
- var length = keys.length;
- var values = Array(length);
- for (var i = 0; i < length; i++) {
- values[i] = obj[keys[i]];
- }
- return values;
- };
-
- // Convert an object into a list of `[key, value]` pairs.
- _.pairs = function(obj) {
- var keys = _.keys(obj);
- var length = keys.length;
- var pairs = Array(length);
- for (var i = 0; i < length; i++) {
- pairs[i] = [keys[i], obj[keys[i]]];
- }
- return pairs;
- };
-
- // Invert the keys and values of an object. The values must be serializable.
- _.invert = function(obj) {
- var result = {};
- var keys = _.keys(obj);
- for (var i = 0, length = keys.length; i < length; i++) {
- result[obj[keys[i]]] = keys[i];
- }
- return result;
- };
-
- // Return a sorted list of the function names available on the object.
- // Aliased as `methods`
- _.functions = _.methods = function(obj) {
- var names = [];
- for (var key in obj) {
- if (_.isFunction(obj[key])) names.push(key);
- }
- return names.sort();
- };
-
- // Extend a given object with all the properties in passed-in object(s).
- _.extend = function(obj) {
- if (!_.isObject(obj)) return obj;
- var source, prop;
- for (var i = 1, length = arguments.length; i < length; i++) {
- source = arguments[i];
- for (prop in source) {
- if (hasOwnProperty.call(source, prop)) {
- obj[prop] = source[prop];
- }
- }
- }
- return obj;
- };
-
- // Return a copy of the object only containing the whitelisted properties.
- _.pick = function(obj, iteratee, context) {
- var result = {}, key;
- if (obj == null) return result;
- if (_.isFunction(iteratee)) {
- iteratee = createCallback(iteratee, context);
- for (key in obj) {
- var value = obj[key];
- if (iteratee(value, key, obj)) result[key] = value;
- }
- } else {
- var keys = concat.apply([], slice.call(arguments, 1));
- obj = new Object(obj);
- for (var i = 0, length = keys.length; i < length; i++) {
- key = keys[i];
- if (key in obj) result[key] = obj[key];
- }
- }
- return result;
- };
-
- // Return a copy of the object without the blacklisted properties.
- _.omit = function(obj, iteratee, context) {
- if (_.isFunction(iteratee)) {
- iteratee = _.negate(iteratee);
- } else {
- var keys = _.map(concat.apply([], slice.call(arguments, 1)), String);
- iteratee = function(value, key) {
- return !_.contains(keys, key);
- };
- }
- return _.pick(obj, iteratee, context);
- };
-
- // Fill in a given object with default properties.
- _.defaults = function(obj) {
- if (!_.isObject(obj)) return obj;
- for (var i = 1, length = arguments.length; i < length; i++) {
- var source = arguments[i];
- for (var prop in source) {
- if (obj[prop] === void 0) obj[prop] = source[prop];
- }
- }
- return obj;
- };
-
- // Create a (shallow-cloned) duplicate of an object.
- _.clone = function(obj) {
- if (!_.isObject(obj)) return obj;
- return _.isArray(obj) ? obj.slice() : _.extend({}, obj);
- };
-
- // Invokes interceptor with the obj, and then returns obj.
- // The primary purpose of this method is to "tap into" a method chain, in
- // order to perform operations on intermediate results within the chain.
- _.tap = function(obj, interceptor) {
- interceptor(obj);
- return obj;
- };
-
- // Internal recursive comparison function for `isEqual`.
- var eq = function(a, b, aStack, bStack) {
- // Identical objects are equal. `0 === -0`, but they aren't identical.
- // See the [Harmony `egal` proposal](http://wiki.ecmascript.org/doku.php?id=harmony:egal).
- if (a === b) return a !== 0 || 1 / a === 1 / b;
- // A strict comparison is necessary because `null == undefined`.
- if (a == null || b == null) return a === b;
- // Unwrap any wrapped objects.
- if (a instanceof _) a = a._wrapped;
- if (b instanceof _) b = b._wrapped;
- // Compare `[[Class]]` names.
- var className = toString.call(a);
- if (className !== toString.call(b)) return false;
- switch (className) {
- // Strings, numbers, regular expressions, dates, and booleans are compared by value.
- case '[object RegExp]':
- // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')
- case '[object String]':
- // Primitives and their corresponding object wrappers are equivalent; thus, `"5"` is
- // equivalent to `new String("5")`.
- return '' + a === '' + b;
- case '[object Number]':
- // `NaN`s are equivalent, but non-reflexive.
- // Object(NaN) is equivalent to NaN
- if (+a !== +a) return +b !== +b;
- // An `egal` comparison is performed for other numeric values.
- return +a === 0 ? 1 / +a === 1 / b : +a === +b;
- case '[object Date]':
- case '[object Boolean]':
- // Coerce dates and booleans to numeric primitive values. Dates are compared by their
- // millisecond representations. Note that invalid dates with millisecond representations
- // of `NaN` are not equivalent.
- return +a === +b;
- }
- if (typeof a != 'object' || typeof b != 'object') return false;
- // Assume equality for cyclic structures. The algorithm for detecting cyclic
- // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.
- var length = aStack.length;
- while (length--) {
- // Linear search. Performance is inversely proportional to the number of
- // unique nested structures.
- if (aStack[length] === a) return bStack[length] === b;
- }
- // Objects with different constructors are not equivalent, but `Object`s
- // from different frames are.
- var aCtor = a.constructor, bCtor = b.constructor;
- if (
- aCtor !== bCtor &&
- // Handle Object.create(x) cases
- 'constructor' in a && 'constructor' in b &&
- !(_.isFunction(aCtor) && aCtor instanceof aCtor &&
- _.isFunction(bCtor) && bCtor instanceof bCtor)
- ) {
- return false;
- }
- // Add the first object to the stack of traversed objects.
- aStack.push(a);
- bStack.push(b);
- var size, result;
- // Recursively compare objects and arrays.
- if (className === '[object Array]') {
- // Compare array lengths to determine if a deep comparison is necessary.
- size = a.length;
- result = size === b.length;
- if (result) {
- // Deep compare the contents, ignoring non-numeric properties.
- while (size--) {
- if (!(result = eq(a[size], b[size], aStack, bStack))) break;
- }
- }
- } else {
- // Deep compare objects.
- var keys = _.keys(a), key;
- size = keys.length;
- // Ensure that both objects contain the same number of properties before comparing deep equality.
- result = _.keys(b).length === size;
- if (result) {
- while (size--) {
- // Deep compare each member
- key = keys[size];
- if (!(result = _.has(b, key) && eq(a[key], b[key], aStack, bStack))) break;
- }
- }
- }
- // Remove the first object from the stack of traversed objects.
- aStack.pop();
- bStack.pop();
- return result;
- };
-
- // Perform a deep comparison to check if two objects are equal.
- _.isEqual = function(a, b) {
- return eq(a, b, [], []);
- };
-
- // Is a given array, string, or object empty?
- // An "empty" object has no enumerable own-properties.
- _.isEmpty = function(obj) {
- if (obj == null) return true;
- if (_.isArray(obj) || _.isString(obj) || _.isArguments(obj)) return obj.length === 0;
- for (var key in obj) if (_.has(obj, key)) return false;
- return true;
- };
-
- // Is a given value a DOM element?
- _.isElement = function(obj) {
- return !!(obj && obj.nodeType === 1);
- };
-
- // Is a given value an array?
- // Delegates to ECMA5's native Array.isArray
- _.isArray = nativeIsArray || function(obj) {
- return toString.call(obj) === '[object Array]';
- };
-
- // Is a given variable an object?
- _.isObject = function(obj) {
- var type = typeof obj;
- return type === 'function' || type === 'object' && !!obj;
- };
-
- // Add some isType methods: isArguments, isFunction, isString, isNumber, isDate, isRegExp.
- _.each(['Arguments', 'Function', 'String', 'Number', 'Date', 'RegExp'], function(name) {
- _['is' + name] = function(obj) {
- return toString.call(obj) === '[object ' + name + ']';
- };
- });
-
- // Define a fallback version of the method in browsers (ahem, IE), where
- // there isn't any inspectable "Arguments" type.
- if (!_.isArguments(arguments)) {
- _.isArguments = function(obj) {
- return _.has(obj, 'callee');
- };
- }
-
- // Optimize `isFunction` if appropriate. Work around an IE 11 bug.
- if (typeof /./ !== 'function') {
- _.isFunction = function(obj) {
- return typeof obj == 'function' || false;
- };
- }
-
- // Is a given object a finite number?
- _.isFinite = function(obj) {
- return isFinite(obj) && !isNaN(parseFloat(obj));
- };
-
- // Is the given value `NaN`? (NaN is the only number which does not equal itself).
- _.isNaN = function(obj) {
- return _.isNumber(obj) && obj !== +obj;
- };
-
- // Is a given value a boolean?
- _.isBoolean = function(obj) {
- return obj === true || obj === false || toString.call(obj) === '[object Boolean]';
- };
-
- // Is a given value equal to null?
- _.isNull = function(obj) {
- return obj === null;
- };
-
- // Is a given variable undefined?
- _.isUndefined = function(obj) {
- return obj === void 0;
- };
-
- // Shortcut function for checking if an object has a given property directly
- // on itself (in other words, not on a prototype).
- _.has = function(obj, key) {
- return obj != null && hasOwnProperty.call(obj, key);
- };
-
- // Utility Functions
- // -----------------
-
- // Run Underscore.js in *noConflict* mode, returning the `_` variable to its
- // previous owner. Returns a reference to the Underscore object.
- _.noConflict = function() {
- root._ = previousUnderscore;
- return this;
- };
-
- // Keep the identity function around for default iteratees.
- _.identity = function(value) {
- return value;
- };
-
- _.constant = function(value) {
- return function() {
- return value;
- };
- };
-
- _.noop = function(){};
-
- _.property = function(key) {
- return function(obj) {
- return obj[key];
- };
- };
-
- // Returns a predicate for checking whether an object has a given set of `key:value` pairs.
- _.matches = function(attrs) {
- var pairs = _.pairs(attrs), length = pairs.length;
- return function(obj) {
- if (obj == null) return !length;
- obj = new Object(obj);
- for (var i = 0; i < length; i++) {
- var pair = pairs[i], key = pair[0];
- if (pair[1] !== obj[key] || !(key in obj)) return false;
- }
- return true;
- };
- };
-
- // Run a function **n** times.
- _.times = function(n, iteratee, context) {
- var accum = Array(Math.max(0, n));
- iteratee = createCallback(iteratee, context, 1);
- for (var i = 0; i < n; i++) accum[i] = iteratee(i);
- return accum;
- };
-
- // Return a random integer between min and max (inclusive).
- _.random = function(min, max) {
- if (max == null) {
- max = min;
- min = 0;
- }
- return min + Math.floor(Math.random() * (max - min + 1));
- };
-
- // A (possibly faster) way to get the current timestamp as an integer.
- _.now = Date.now || function() {
- return new Date().getTime();
- };
-
- // List of HTML entities for escaping.
- var escapeMap = {
- '&': '&',
- '<': '<',
- '>': '>',
- '"': '"',
- "'": ''',
- '`': '`'
- };
- var unescapeMap = _.invert(escapeMap);
-
- // Functions for escaping and unescaping strings to/from HTML interpolation.
- var createEscaper = function(map) {
- var escaper = function(match) {
- return map[match];
- };
- // Regexes for identifying a key that needs to be escaped
- var source = '(?:' + _.keys(map).join('|') + ')';
- var testRegexp = RegExp(source);
- var replaceRegexp = RegExp(source, 'g');
- return function(string) {
- string = string == null ? '' : '' + string;
- return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string;
- };
- };
- _.escape = createEscaper(escapeMap);
- _.unescape = createEscaper(unescapeMap);
-
- // If the value of the named `property` is a function then invoke it with the
- // `object` as context; otherwise, return it.
- _.result = function(object, property) {
- if (object == null) return void 0;
- var value = object[property];
- return _.isFunction(value) ? object[property]() : value;
- };
-
- // Generate a unique integer id (unique within the entire client session).
- // Useful for temporary DOM ids.
- var idCounter = 0;
- _.uniqueId = function(prefix) {
- var id = ++idCounter + '';
- return prefix ? prefix + id : id;
- };
-
- // By default, Underscore uses ERB-style template delimiters, change the
- // following template settings to use alternative delimiters.
- _.templateSettings = {
- evaluate : /<%([\s\S]+?)%>/g,
- interpolate : /<%=([\s\S]+?)%>/g,
- escape : /<%-([\s\S]+?)%>/g
- };
-
- // When customizing `templateSettings`, if you don't want to define an
- // interpolation, evaluation or escaping regex, we need one that is
- // guaranteed not to match.
- var noMatch = /(.)^/;
-
- // Certain characters need to be escaped so that they can be put into a
- // string literal.
- var escapes = {
- "'": "'",
- '\\': '\\',
- '\r': 'r',
- '\n': 'n',
- '\u2028': 'u2028',
- '\u2029': 'u2029'
- };
-
- var escaper = /\\|'|\r|\n|\u2028|\u2029/g;
-
- var escapeChar = function(match) {
- return '\\' + escapes[match];
- };
-
- // JavaScript micro-templating, similar to John Resig's implementation.
- // Underscore templating handles arbitrary delimiters, preserves whitespace,
- // and correctly escapes quotes within interpolated code.
- // NB: `oldSettings` only exists for backwards compatibility.
- _.template = function(text, settings, oldSettings) {
- if (!settings && oldSettings) settings = oldSettings;
- settings = _.defaults({}, settings, _.templateSettings);
-
- // Combine delimiters into one regular expression via alternation.
- var matcher = RegExp([
- (settings.escape || noMatch).source,
- (settings.interpolate || noMatch).source,
- (settings.evaluate || noMatch).source
- ].join('|') + '|$', 'g');
-
- // Compile the template source, escaping string literals appropriately.
- var index = 0;
- var source = "__p+='";
- text.replace(matcher, function(match, escape, interpolate, evaluate, offset) {
- source += text.slice(index, offset).replace(escaper, escapeChar);
- index = offset + match.length;
-
- if (escape) {
- source += "'+\n((__t=(" + escape + "))==null?'':_.escape(__t))+\n'";
- } else if (interpolate) {
- source += "'+\n((__t=(" + interpolate + "))==null?'':__t)+\n'";
- } else if (evaluate) {
- source += "';\n" + evaluate + "\n__p+='";
- }
-
- // Adobe VMs need the match returned to produce the correct offest.
- return match;
- });
- source += "';\n";
-
- // If a variable is not specified, place data values in local scope.
- if (!settings.variable) source = 'with(obj||{}){\n' + source + '}\n';
-
- source = "var __t,__p='',__j=Array.prototype.join," +
- "print=function(){__p+=__j.call(arguments,'');};\n" +
- source + 'return __p;\n';
-
- try {
- var render = new Function(settings.variable || 'obj', '_', source);
- } catch (e) {
- e.source = source;
- throw e;
- }
-
- var template = function(data) {
- return render.call(this, data, _);
- };
-
- // Provide the compiled source as a convenience for precompilation.
- var argument = settings.variable || 'obj';
- template.source = 'function(' + argument + '){\n' + source + '}';
-
- return template;
- };
-
- // Add a "chain" function. Start chaining a wrapped Underscore object.
- _.chain = function(obj) {
- var instance = _(obj);
- instance._chain = true;
- return instance;
- };
-
- // OOP
- // ---------------
- // If Underscore is called as a function, it returns a wrapped object that
- // can be used OO-style. This wrapper holds altered versions of all the
- // underscore functions. Wrapped objects may be chained.
-
- // Helper function to continue chaining intermediate results.
- var result = function(obj) {
- return this._chain ? _(obj).chain() : obj;
- };
-
- // Add your own custom functions to the Underscore object.
- _.mixin = function(obj) {
- _.each(_.functions(obj), function(name) {
- var func = _[name] = obj[name];
- _.prototype[name] = function() {
- var args = [this._wrapped];
- push.apply(args, arguments);
- return result.call(this, func.apply(_, args));
- };
- });
- };
-
- // Add all of the Underscore functions to the wrapper object.
- _.mixin(_);
-
- // Add all mutator Array functions to the wrapper.
- _.each(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {
- var method = ArrayProto[name];
- _.prototype[name] = function() {
- var obj = this._wrapped;
- method.apply(obj, arguments);
- if ((name === 'shift' || name === 'splice') && obj.length === 0) delete obj[0];
- return result.call(this, obj);
- };
- });
-
- // Add all accessor Array functions to the wrapper.
- _.each(['concat', 'join', 'slice'], function(name) {
- var method = ArrayProto[name];
- _.prototype[name] = function() {
- return result.call(this, method.apply(this._wrapped, arguments));
- };
- });
-
- // Extracts the result from a wrapped and chained object.
- _.prototype.value = function() {
- return this._wrapped;
- };
-
- // AMD registration happens at the end for compatibility with AMD loaders
- // that may not enforce next-turn semantics on modules. Even though general
- // practice for AMD registration is to be anonymous, underscore registers
- // as a named module because, like jQuery, it is a base library that is
- // popular enough to be bundled in a third party lib, but not be part of
- // an AMD load request. Those cases could generate an error when an
- // anonymous define() is called outside of a loader request.
- if (typeof define === 'function' && define.amd) {
- define('underscore', [], function() {
- return _;
- });
- }
-}.call(this));
-
-},{}],60:[function(require,module,exports){
-var _;
-
-_ = require("underscore");
-
-module.exports = function(seqs) {
- var occs;
- seqs = seqs.map(function(el) {
- return el.get("seq");
- });
- occs = new Array(seqs.length);
- _.each(seqs, function(el, i) {
- return _.each(el, function(char, pos) {
- if (occs[pos] == null) {
- occs[pos] = {};
- }
- if (occs[pos][char] == null) {
- occs[pos][char] = 0;
- }
- return occs[pos][char]++;
- });
- });
- return _.reduce(occs, function(memo, occ) {
- var keys;
- keys = _.keys(occ);
- return memo += _.max(keys, function(key) {
- return occ[key];
- });
- }, "");
-};
-
-
-
-},{"underscore":59}],61:[function(require,module,exports){
-var identitiyCalc;
-
-module.exports = identitiyCalc = function(seqs, consensus) {
- if (consensus === void 0) {
- console.warn("bug on consenus calc");
- return;
- }
- return seqs.each(function(seqObj) {
- var i, matches, seq, total, _i, _ref;
- seq = seqObj.get("seq");
- matches = 0;
- total = 0;
- for (i = _i = 0, _ref = seq.length - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; i = 0 <= _ref ? ++_i : --_i) {
- if (seq[i] !== "-" && consensus[i] !== "-") {
- total++;
- if (seq[i] === consensus[i]) {
- matches++;
- }
- }
- }
- return seqObj.set("identity", matches / total);
- });
-};
-
-
-
-},{}],62:[function(require,module,exports){
-module.exports.consensus = require("./ConsensusCalc");
-
-
-
-},{"./ConsensusCalc":60}],63:[function(require,module,exports){
-var Colorator, Model;
-
-Model = require("backbone-thin").Model;
-
-module.exports = Colorator = Model.extend({
- defaults: {
- scheme: "taylor",
- colorBackground: true,
- showLowerCase: true,
- opacity: 0.6
- }
-});
-
-
-
-},{"backbone-thin":5}],64:[function(require,module,exports){
-var Columns, Model, consenus, _;
-
-Model = require("backbone-thin").Model;
-
-consenus = require("../algo/ConsensusCalc");
-
-_ = require("underscore");
-
-module.exports = Columns = Model.extend({
- defaults: {
- scaling: "lin"
- },
- initialize: function() {
- if (this.get("hidden") == null) {
- return this.set("hidden", []);
- }
- },
- calcHiddenColumns: function(n) {
- var hidden, i, newX, _i, _len;
- hidden = this.get("hidden");
- newX = n;
- for (_i = 0, _len = hidden.length; _i < _len; _i++) {
- i = hidden[_i];
- if (i <= newX) {
- newX++;
- }
- }
- return newX - n;
- },
- _calcConservationPre: function(seqs) {
- var cons, matches, nMax, total;
- console.log(seqs.length);
- if (seqs.length > 1000) {
- return;
- }
- cons = consenus(seqs);
- seqs = seqs.map(function(el) {
- return el.get("seq");
- });
- nMax = (_.max(seqs, function(el) {
- return el.length;
- })).length;
- total = new Array(nMax);
- matches = new Array(nMax);
- _.each(seqs, function(el, i) {
- return _.each(el, function(char, pos) {
- total[pos] = total[pos] + 1 || 1;
- if (cons[pos] === char) {
- return matches[pos] = matches[pos] + 1 || 1;
- }
- });
- });
- return [matches, total, nMax];
- },
- calcConservation: function(seqs) {
- if (this.attributes.scaling === "exp") {
- return this.calcConservationExp(seqs);
- } else if (this.attributes.scaling === "log") {
- return this.calcConservationLog(seqs);
- } else if (this.attributes.scaling === "lin") {
- return this.calcConservationLin(seqs);
- }
- },
- calcConservationLin: function(seqs) {
- var i, matches, nMax, total, _i, _ref, _ref1;
- _ref = this._calcConservationPre(seqs), matches = _ref[0], total = _ref[1], nMax = _ref[2];
- for (i = _i = 0, _ref1 = nMax - 1; 0 <= _ref1 ? _i <= _ref1 : _i >= _ref1; i = 0 <= _ref1 ? ++_i : --_i) {
- matches[i] = matches[i] / total[i];
- }
- this.set("conserv", matches);
- return matches;
- },
- calcConservationLog: function(seqs) {
- var i, matches, nMax, total, _i, _ref, _ref1;
- _ref = this._calcConservationPre(seqs), matches = _ref[0], total = _ref[1], nMax = _ref[2];
- for (i = _i = 0, _ref1 = nMax - 1; 0 <= _ref1 ? _i <= _ref1 : _i >= _ref1; i = 0 <= _ref1 ? ++_i : --_i) {
- matches[i] = Math.log(matches[i] + 1) / Math.log(total[i] + 1);
- }
- this.set("conserv", matches);
- return matches;
- },
- calcConservationExp: function(seqs) {
- var i, matches, nMax, total, _i, _ref, _ref1;
- _ref = this._calcConservationPre(seqs), matches = _ref[0], total = _ref[1], nMax = _ref[2];
- for (i = _i = 0, _ref1 = nMax - 1; 0 <= _ref1 ? _i <= _ref1 : _i >= _ref1; i = 0 <= _ref1 ? ++_i : --_i) {
- matches[i] = Math.exp(matches[i] + 1) / Math.exp(total[i] + 1);
- }
- this.set("conserv", matches);
- return matches;
- }
-});
-
-
-
-},{"../algo/ConsensusCalc":60,"backbone-thin":5,"underscore":59}],65:[function(require,module,exports){
-var Config, Model;
-
-Model = require("backbone-thin").Model;
-
-module.exports = Config = Model.extend({
- defaults: {
- registerMouseHover: false,
- registerMouseClicks: true,
- importProxy: "https://cors-anywhere.herokuapp.com/",
- eventBus: true
- }
-});
-
-
-
-},{"backbone-thin":5}],66:[function(require,module,exports){
-var Consenus, Model, consenusCalc;
-
-Model = require("backbone-thin").Model;
-
-consenusCalc = require("../algo/ConsensusCalc");
-
-module.exports = Consenus = Model.extend({
- defaults: {
- consenus: ""
- },
- getConsensus: function(seqs) {
- var cons;
- if (seqs.length > 1000) {
- return;
- }
- cons = consenusCalc(seqs);
- this.set("consenus", cons);
- return cons;
- }
-});
-
-
-
-},{"../algo/ConsensusCalc":60,"backbone-thin":5}],67:[function(require,module,exports){
-var ColumnSelection, Model, PosSelection, RowSelection, Selection, _;
-
-_ = require("underscore");
-
-Model = require("backbone-thin").Model;
-
-Selection = Model.extend({
- defaults: {
- type: "super"
- }
-});
-
-RowSelection = Selection.extend({
- defaults: _.extend({}, Selection.prototype.defaults, {
- type: "row",
- seqId: ""
- }),
- inRow: function(seqId) {
- return seqId === this.get("seqId");
- },
- inColumn: function(rowPos) {
- return true;
- },
- getLength: function() {
- return 1;
- }
-});
-
-ColumnSelection = Selection.extend({
- defaults: _.extend({}, Selection.prototype.defaults, {
- type: "column",
- xStart: -1,
- xEnd: -1
- }),
- inRow: function() {
- return true;
- },
- inColumn: function(rowPos) {
- return xStart <= rowPos && rowPos <= xEnd;
- },
- getLength: function() {
- return xEnd - xStart;
- }
-});
-
-PosSelection = RowSelection.extend(_.extend({}, _.pick(ColumnSelection, "inColumn"), _.pick(ColumnSelection, "getLength"), {
- defaults: _.extend({}, ColumnSelection.prototype.defaults, RowSelection.prototype.defaults, {
- type: "pos"
- })
-}));
-
-module.exports.sel = Selection;
-
-module.exports.possel = PosSelection;
-
-module.exports.rowsel = RowSelection;
-
-module.exports.columnsel = ColumnSelection;
-
-
-
-},{"backbone-thin":5,"underscore":59}],68:[function(require,module,exports){
-var Collection, SelectionManager, sel, _;
-
-sel = require("./Selection");
-
-_ = require("underscore");
-
-Collection = require("backbone-thin").Collection;
-
-module.exports = SelectionManager = Collection.extend({
- model: sel.sel,
- initialize: function(data, opts) {
- this.g = opts.g;
- this.listenTo(this.g, "residue:click", function(e) {
- return this._handleE(e.evt, new sel.possel({
- xStart: e.rowPos,
- xEnd: e.rowPos,
- seqId: e.seqId
- }));
- });
- this.listenTo(this.g, "row:click", function(e) {
- return this._handleE(e.evt, new sel.rowsel({
- xStart: e.rowPos,
- xEnd: e.rowPos,
- seqId: e.seqId
- }));
- });
- return this.listenTo(this.g, "column:click", function(e) {
- return this._handleE(e.evt, new sel.columnsel({
- xStart: e.rowPos,
- xEnd: e.rowPos + e.stepSize - 1
- }));
- });
- },
- getSelForRow: function(seqId) {
- return this.filter(function(el) {
- return el.inRow(seqId);
- });
- },
- getSelForColumns: function(rowPos) {
- return this.filter(function(el) {
- return el.inColumn(rowPos);
- });
- },
- getBlocksForRow: function(seqId, maxLen) {
- var blocks, seli, selis, _i, _j, _k, _len, _ref, _ref1, _results, _results1;
- selis = this.filter(function(el) {
- return el.inRow(seqId);
- });
- blocks = [];
- for (_i = 0, _len = selis.length; _i < _len; _i++) {
- seli = selis[_i];
- if (seli.attributes.type === "row") {
- blocks = (function() {
- _results = [];
- for (var _j = 0; 0 <= maxLen ? _j <= maxLen : _j >= maxLen; 0 <= maxLen ? _j++ : _j--){ _results.push(_j); }
- return _results;
- }).apply(this);
- break;
- } else {
- blocks = blocks.concat((function() {
- _results1 = [];
- for (var _k = _ref = seli.attributes.xStart, _ref1 = seli.attributes.xEnd; _ref <= _ref1 ? _k <= _ref1 : _k >= _ref1; _ref <= _ref1 ? _k++ : _k--){ _results1.push(_k); }
- return _results1;
- }).apply(this));
- }
- }
- return blocks;
- },
- getAllColumnBlocks: function(conf) {
- var blocks, filtered, maxLen, seli, withPos, _i, _j, _len, _ref, _ref1, _results;
- maxLen = conf.maxLen;
- withPos = conf.withPos;
- blocks = [];
- if (conf.withPos) {
- filtered = this.filter(function(el) {
- return el.get('xStart') != null;
- });
- } else {
- filtered = this.filter(function(el) {
- return el.get('type') === "column";
- });
- }
- for (_i = 0, _len = filtered.length; _i < _len; _i++) {
- seli = filtered[_i];
- blocks = blocks.concat((function() {
- _results = [];
- for (var _j = _ref = seli.attributes.xStart, _ref1 = seli.attributes.xEnd; _ref <= _ref1 ? _j <= _ref1 : _j >= _ref1; _ref <= _ref1 ? _j++ : _j--){ _results.push(_j); }
- return _results;
- }).apply(this));
- }
- blocks = _.uniq(blocks);
- return blocks;
- },
- invertRow: function(rows) {
- var el, inverted, s, selRows, _i, _len;
- selRows = this.where({
- type: "row"
- });
- selRows = _.map(selRows, function(el) {
- return el.attributes.seqId;
- });
- inverted = _.filter(rows, function(el) {
- if (selRows.indexOf(el) >= 0) {
- return false;
- }
- return true;
- });
- s = [];
- for (_i = 0, _len = inverted.length; _i < _len; _i++) {
- el = inverted[_i];
- s.push(new sel.rowsel({
- seqId: el
- }));
- }
- console.log(s);
- return this.reset(s);
- },
- invertCol: function(columns) {
- var el, inverted, s, selColumns, xEnd, xStart, _i, _len;
- selColumns = this.where({
- type: "column"
- });
- selColumns = _.reduce(selColumns, function(memo, el) {
- var _i, _ref, _ref1, _results;
- return memo.concat((function() {
- _results = [];
- for (var _i = _ref = el.attributes.xStart, _ref1 = el.attributes.xEnd; _ref <= _ref1 ? _i <= _ref1 : _i >= _ref1; _ref <= _ref1 ? _i++ : _i--){ _results.push(_i); }
- return _results;
- }).apply(this));
- }, []);
- inverted = _.filter(columns, function(el) {
- if (selColumns.indexOf(el) >= 0) {
- return false;
- }
- return true;
- });
- if (inverted.length === 0) {
- return;
- }
- s = [];
- console.log(inverted);
- xStart = xEnd = inverted[0];
- for (_i = 0, _len = inverted.length; _i < _len; _i++) {
- el = inverted[_i];
- if (xEnd + 1 === el) {
- xEnd = el;
- } else {
- s.push(new sel.columnsel({
- xStart: xStart,
- xEnd: xEnd
- }));
- xStart = xEnd = el;
- }
- }
- if (xStart !== xEnd) {
- s.push(new sel.columnsel({
- xStart: xStart,
- xEnd: inverted[inverted.length - 1]
- }));
- }
- return this.reset(s);
- },
- _handleE: function(e, selection) {
- if (e.ctrlKey || e.metaKey) {
- return this.add(selection);
- } else {
- return this.reset([selection]);
- }
- },
- _reduceColumns: function() {
- return this.each(function(el, index, arr) {
- var cols, left, lefts, right, rights, xEnd, xStart, _i, _j, _len, _len1;
- cols = _.filter(arr, function(el) {
- return el.get('type') === 'column';
- });
- xStart = el.get('xStart');
- xEnd = el.get('xEnd');
- lefts = _.filter(cols, function(el) {
- return el.get('xEnd') === (xStart - 1);
- });
- for (_i = 0, _len = lefts.length; _i < _len; _i++) {
- left = lefts[_i];
- left.set('xEnd', xStart);
- }
- rights = _.filter(cols, function(el) {
- return el.get('xStart') === (xEnd + 1);
- });
- for (_j = 0, _len1 = rights.length; _j < _len1; _j++) {
- right = rights[_j];
- right.set('xStart', xEnd);
- }
- if (lefts.length > 0 || rights.length > 0) {
- console.log("removed el");
- return el.collection.remove(el);
- }
- });
- }
-});
-
-
-
-},{"./Selection":67,"backbone-thin":5,"underscore":59}],69:[function(require,module,exports){
-var Model, Visibility;
-
-Model = require("backbone-thin").Model;
-
-module.exports = Visibility = Model.extend({
- defaults: {
- overviewBox: 30,
- headerBox: -1,
- alignmentBody: 0
- }
-});
-
-
-
-},{"backbone-thin":5}],70:[function(require,module,exports){
-var Model, Visibility;
-
-Model = require("backbone-thin").Model;
-
-module.exports = Visibility = Model.extend({
- defaults: {
- sequences: true,
- markers: true,
- metacell: false,
- conserv: true,
- overviewbox: false,
- labels: true,
- labelName: true,
- labelId: true,
- labelPartition: false,
- labelCheckbox: false
- }
-});
-
-
-
-},{"backbone-thin":5}],71:[function(require,module,exports){
-var Model, Zoomer;
-
-Model = require("backbone-thin").Model;
-
-module.exports = Zoomer = Model.extend({
- constructor: function(attributes, options) {
- Model.apply(this, arguments);
- this.g = options.g;
- return this;
- },
- defaults: {
- alignmentWidth: "auto",
- alignmentHeight: 195,
- columnWidth: 15,
- rowHeight: 15,
- labelWidth: 100,
- metaWidth: 100,
- textVisible: true,
- labelIdLength: 30,
- labelFontsize: "13px",
- labelLineHeight: "13px",
- markerFontsize: "10px",
- stepSize: 1,
- markerStepSize: 2,
- residueFont: "13px mono",
- canvasEventScale: 1,
- boxRectHeight: 5,
- boxRectWidth: 5,
- menuFontsize: "20px",
- menuItemFontsize: "18px",
- menuItemLineHeight: "18px",
- menuMarginLeft: "5px",
- menuPadding: "3px 5px 3px 5px",
- _alignmentScrollLeft: 0,
- _alignmentScrollTop: 0
- },
- getAlignmentWidth: function(n) {
- if (this.get("alignmentWidth") === "auto") {
- return this.get("columnWidth") * n;
- } else {
- return this.get("alignmentWidth");
- }
- },
- setLeftOffset: function(n) {
- var val;
- val = (n - 1) * this.get('columnWidth');
- val = Math.max(0, val);
- return this.set("_alignmentScrollLeft", val);
- },
- setTopOffset: function(n) {
- var val;
- val = (n - 1) * this.get('rowHeight');
- val = Math.max(0, val);
- return this.set("_alignmentScrollTop", val);
- },
- getLabelWidth: function() {
- var paddingLeft;
- paddingLeft = 0;
- if (this.g.vis.get("labels")) {
- paddingLeft += this.get("labelWidth");
- }
- if (this.g.vis.get("metacell")) {
- paddingLeft += this.get("metaWidth");
- }
- return paddingLeft;
- },
- _adjustWidth: function(el, model) {
- var calcWidth, maxWidth, parentWidth, val;
- if ((el.parentNode != null) && el.parentNode.offsetWidth !== 0) {
- parentWidth = el.parentNode.offsetWidth;
- } else {
- parentWidth = document.body.clientWidth - 35;
- }
- maxWidth = parentWidth - this.getLabelWidth();
- calcWidth = this.getAlignmentWidth(model.getMaxLength() - this.g.columns.get('hidden').length);
- val = Math.min(maxWidth, calcWidth);
- val = Math.floor(val / this.get("columnWidth")) * this.get("columnWidth");
- return this.set("alignmentWidth", val);
- },
- _checkScrolling: function(scrollObj, opts) {
- var xScroll, yScroll;
- xScroll = scrollObj[0];
- yScroll = scrollObj[1];
- this.set("_alignmentScrollLeft", xScroll, opts);
- return this.set("_alignmentScrollTop", yScroll, opts);
- }
-});
-
-
-
-},{"backbone-thin":5}],72:[function(require,module,exports){
-module.exports.msa = require("./msa");
-
-module.exports.model = require("./model");
-
-module.exports.algo = require("./algo");
-
-module.exports.menu = require("./menu");
-
-module.exports.utils = require("./utils");
-
-module.exports.selection = require("./g/selection/Selection");
-
-module.exports.view = require("backbone-viewj");
-
-module.exports.boneView = require("backbone-childs");
-
-module.exports._ = require('underscore');
-
-module.exports.$ = require('jbone');
-
-module.exports.version = "0.1.0";
-
-
-
-},{"./algo":62,"./g/selection/Selection":67,"./menu":74,"./model":89,"./msa":90,"./utils":92,"backbone-childs":3,"backbone-viewj":10,"jbone":50,"underscore":59}],73:[function(require,module,exports){
-var ColorMenu, ExportMenu, ExtraMenu, FilterMenu, HelpMenu, ImportMenu, MenuView, OrderingMenu, SelectionMenu, VisMenu, boneView;
-
-boneView = require("backbone-childs");
-
-ImportMenu = require("./views/ImportMenu");
-
-FilterMenu = require("./views/FilterMenu");
-
-SelectionMenu = require("./views/SelectionMenu");
-
-VisMenu = require("./views/VisMenu");
-
-ColorMenu = require("./views/ColorMenu");
-
-OrderingMenu = require("./views/OrderingMenu");
-
-ExtraMenu = require("./views/ExtraMenu");
-
-ExportMenu = require("./views/ExportMenu");
-
-HelpMenu = require("./views/HelpMenu");
-
-module.exports = MenuView = boneView.extend({
- initialize: function(data) {
- this.msa = data.msa;
- this.addView("10_import", new ImportMenu({
- model: this.msa.seqs,
- g: this.msa.g
- }));
- this.addView("20_filter", new FilterMenu({
- model: this.msa.seqs,
- g: this.msa.g
- }));
- this.addView("30_selection", new SelectionMenu({
- model: this.msa.seqs,
- g: this.msa.g
- }));
- this.addView("40_vis", new VisMenu({
- model: this.msa.seqs,
- g: this.msa.g
- }));
- this.addView("50_color", new ColorMenu({
- model: this.msa.seqs,
- g: this.msa.g
- }));
- this.addView("60_ordering", new OrderingMenu({
- model: this.msa.seqs,
- g: this.msa.g
- }));
- this.addView("70_extra", new ExtraMenu({
- model: this.msa.seqs,
- g: this.msa.g
- }));
- this.addView("80_export", new ExportMenu({
- model: this.msa.seqs,
- g: this.msa.g,
- msa: this.msa
- }));
- return this.addView("90_help", new HelpMenu({
- g: this.msa.g
- }));
- },
- render: function() {
- this.renderSubviews();
- this.el.setAttribute("class", "biojs_msa_menubar");
- return this.el.appendChild(document.createElement("p"));
- }
-});
-
-
-
-},{"./views/ColorMenu":76,"./views/ExportMenu":77,"./views/ExtraMenu":78,"./views/FilterMenu":79,"./views/HelpMenu":80,"./views/ImportMenu":81,"./views/OrderingMenu":82,"./views/SelectionMenu":83,"./views/VisMenu":84,"backbone-childs":3}],74:[function(require,module,exports){
-module.exports.defaultmenu = require("./defaultmenu");
-
-module.exports.menubuilder = require("./menubuilder");
-
-
-
-},{"./defaultmenu":73,"./menubuilder":75}],75:[function(require,module,exports){
-var BMath, MenuBuilder, jbone, view;
-
-BMath = require("../utils/bmath");
-
-jbone = require("jbone");
-
-view = require("backbone-viewj");
-
-module.exports = MenuBuilder = view.extend({
- setName: function(name) {
- this.name = name;
- return this._nodes = [];
- },
- addNode: function(label, callback, data) {
- var style;
- if (data != null) {
- style = data.style;
- }
- if (this._nodes == null) {
- this._nodes = [];
- }
- return this._nodes.push({
- label: label,
- callback: callback,
- style: style
- });
- },
- buildDOM: function() {
- return this._buildM({
- nodes: this._nodes,
- name: this.name
- });
- },
- _buildM: function(data) {
- var displayedButton, frag, key, li, menu, menuUl, name, node, nodes, style, _i, _len, _ref;
- nodes = data.nodes;
- name = data.name;
- menu = document.createElement("div");
- menu.className = "dropdown dropdown-tip";
- menu.id = "adrop-" + BMath.uniqueId();
- menu.style.display = "none";
- menuUl = document.createElement("ul");
- menuUl.className = "dropdown-menu";
- for (_i = 0, _len = nodes.length; _i < _len; _i++) {
- node = nodes[_i];
- li = document.createElement("li");
- li.textContent = node.label;
- _ref = node.style;
- for (key in _ref) {
- style = _ref[key];
- li.style[key] = style;
- }
- li.addEventListener("click", node.callback);
- if (this.g != null) {
- li.style.lineHeight = this.g.zoomer.get("menuItemLineHeight");
- }
- menuUl.appendChild(li);
- }
- menu.appendChild(menuUl);
- frag = document.createDocumentFragment();
- displayedButton = document.createElement("a");
- displayedButton.textContent = name;
- displayedButton.className = "biojs_msa_menubar_alink";
- if (this.g != null) {
- menuUl.style.fontSize = this.g.zoomer.get("menuItemFontsize");
- displayedButton.style.fontSize = this.g.zoomer.get("menuFontsize");
- displayedButton.style.marginLeft = this.g.zoomer.get("menuMarginLeft");
- displayedButton.style.padding = this.g.zoomer.get("menuPadding");
- }
- jbone(displayedButton).on("click", (function(_this) {
- return function(e) {
- _this._showMenu(e, menu, displayedButton);
- return window.setTimeout(function() {
- return jbone(document.body).one("click", function(e) {
- console.log("next click");
- return menu.style.display = "none";
- });
- }, 5);
- };
- })(this));
- frag.appendChild(menu);
- frag.appendChild(displayedButton);
- return frag;
- },
- _showMenu: function(e, menu, target) {
- var rect;
- menu.style.display = "block";
- menu.style.position = "absolute";
- rect = target.getBoundingClientRect();
- menu.style.left = rect.left + "px";
- return menu.style.top = (rect.top + target.offsetHeight) + "px";
- }
-});
-
-
-
-},{"../utils/bmath":91,"backbone-viewj":10,"jbone":50}],76:[function(require,module,exports){
-var ColorMenu, MenuBuilder, dom, _;
-
-MenuBuilder = require("../menubuilder");
-
-_ = require("underscore");
-
-dom = require("dom-helper");
-
-module.exports = ColorMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- this.el.style.display = "inline-block";
- return this.listenTo(this.g.colorscheme, "change", function() {
- return this.render();
- });
- },
- render: function() {
- var colorschemes, menuColor, scheme, text, _i, _len;
- menuColor = this.setName("Color scheme");
- colorschemes = this.getColorschemes();
- for (_i = 0, _len = colorschemes.length; _i < _len; _i++) {
- scheme = colorschemes[_i];
- this.addScheme(menuColor, scheme);
- }
- text = "Background";
- if (this.g.colorscheme.get("colorBackground")) {
- text = "Hide " + text;
- } else {
- text = "Show " + text;
- }
- this.addNode(text, (function(_this) {
- return function() {
- return _this.g.colorscheme.set("colorBackground", !_this.g.colorscheme.get("colorBackground"));
- };
- })(this));
- this.grey(menuColor);
- dom.removeAllChilds(this.el);
- this.el.appendChild(this.buildDOM());
- return this;
- },
- addScheme: function(menuColor, scheme) {
- var current, style;
- style = {};
- current = this.g.colorscheme.get("scheme");
- if (current === scheme.id) {
- style.backgroundColor = "#77ED80";
- }
- return this.addNode(scheme.name, (function(_this) {
- return function() {
- return _this.g.colorscheme.set("scheme", scheme.id);
- };
- })(this), {
- style: style
- });
- },
- getColorschemes: function() {
- var schemes;
- schemes = [];
- schemes.push({
- name: "Zappo",
- id: "zappo"
- });
- schemes.push({
- name: "Taylor",
- id: "taylor"
- });
- schemes.push({
- name: "Hydrophobicity",
- id: "hydro"
- });
- schemes.push({
- name: "Lesk",
- id: "lesk"
- });
- schemes.push({
- name: "Cinema",
- id: "cinema"
- });
- schemes.push({
- name: "MAE",
- id: "mae"
- });
- schemes.push({
- name: "Clustal",
- id: "clustal"
- });
- schemes.push({
- name: "Clustal2",
- id: "clustal2"
- });
- schemes.push({
- name: "Turn",
- id: "turn"
- });
- schemes.push({
- name: "Strand",
- id: "strand"
- });
- schemes.push({
- name: "Buried",
- id: "buried"
- });
- schemes.push({
- name: "Helix",
- id: "helix"
- });
- schemes.push({
- name: "Nucleotide",
- id: "nucleotide"
- });
- schemes.push({
- name: "Purine",
- id: "purine"
- });
- schemes.push({
- name: "PID",
- id: "pid"
- });
- schemes.push({
- name: "No color",
- id: "foo"
- });
- return schemes;
- },
- grey: function(menuColor) {
- this.addNode("Grey", (function(_this) {
- return function() {
- _this.g.colorscheme.set("showLowerCase", false);
- return _this.model.each(function(seq) {
- var grey, residues;
- residues = seq.get("seq");
- grey = [];
- _.each(residues, function(el, index) {
- if (el === el.toLowerCase()) {
- return grey.push(index);
- }
- });
- return seq.set("grey", grey);
- });
- };
- })(this));
- this.addNode("Grey by threshold", (function(_this) {
- return function() {
- var conserv, grey, i, maxLen, threshold, _i, _ref;
- threshold = prompt("Enter threshold (in percent)", 20);
- threshold = threshold / 100;
- maxLen = _this.model.getMaxLength();
- conserv = _this.g.columns.get("conserv");
- grey = [];
- for (i = _i = 0, _ref = maxLen - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; i = 0 <= _ref ? ++_i : --_i) {
- console.log(conserv[i]);
- if (conserv[i] < threshold) {
- grey.push(i);
- }
- }
- return _this.model.each(function(seq) {
- return seq.set("grey", grey);
- });
- };
- })(this));
- this.addNode("Grey selection", (function(_this) {
- return function() {
- var maxLen;
- maxLen = _this.model.getMaxLength();
- return _this.model.each(function(seq) {
- var blocks;
- blocks = _this.g.selcol.getBlocksForRow(seq.get("id"), maxLen);
- return seq.set("grey", blocks);
- });
- };
- })(this));
- return this.addNode("Reset grey", (function(_this) {
- return function() {
- _this.g.colorscheme.set("showLowerCase", true);
- return _this.model.each(function(seq) {
- return seq.set("grey", []);
- });
- };
- })(this));
- }
-});
-
-
-
-},{"../menubuilder":75,"dom-helper":49,"underscore":59}],77:[function(require,module,exports){
-var ExportMenu, FastaExporter, MenuBuilder, blobURL, saveAs, _;
-
-MenuBuilder = require("../menubuilder");
-
-saveAs = require("browser-saveas");
-
-FastaExporter = require("biojs-io-fasta").writer;
-
-_ = require("underscore");
-
-blobURL = require("blueimp_canvastoblob");
-
-module.exports = ExportMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- this.msa = data.msa;
- return this.el.style.display = "inline-block";
- },
- render: function() {
- this.setName("Export");
- this.addNode("Export sequences", (function(_this) {
- return function() {
- var blob, text;
- text = FastaExporter["export"](_this.model.toJSON());
- blob = new Blob([text], {
- type: 'text/plain'
- });
- return saveAs(blob, "all.fasta");
- };
- })(this));
- this.addNode("Export selection", (function(_this) {
- return function() {
- var blob, i, selection, text, _i, _ref;
- selection = _this.g.selcol.pluck("seqId");
- if (selection != null) {
- selection = _this.model.filter(function(el) {
- return _.contains(selection, el.get("id"));
- });
- for (i = _i = 0, _ref = selection.length - 1; _i <= _ref; i = _i += 1) {
- selection[i] = selection[i].toJSON();
- }
- } else {
- selection = _this.model.toJSON();
- console.log("no selection found");
- }
- text = FastaExporter["export"](selection);
- blob = new Blob([text], {
- type: 'text/plain'
- });
- return saveAs(blob, "selection.fasta");
- };
- })(this));
- this.addNode("Export image", (function(_this) {
- return function() {
- var canvas, url;
- canvas = _this.msa.getView('stage').getView('body').getView('seqblock').el;
- if (canvas != null) {
- url = canvas.toDataURL('image/png');
- return saveAs(blobURL(url), "biojs-msa.png", "image/png");
- }
- };
- })(this));
- this.el.appendChild(this.buildDOM());
- return this;
- }
-});
-
-
-
-},{"../menubuilder":75,"biojs-io-fasta":undefined,"blueimp_canvastoblob":46,"browser-saveas":47,"underscore":59}],78:[function(require,module,exports){
-var ExtraMenu, MenuBuilder, Seq, consenus;
-
-MenuBuilder = require("../menubuilder");
-
-consenus = require("../../algo/ConsensusCalc");
-
-Seq = require("../../model/Sequence");
-
-module.exports = ExtraMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- return this.el.style.display = "inline-block";
- },
- render: function() {
- this.setName("Extras");
- this.addNode("Add consensus seq", (function(_this) {
- return function() {
- var con, seq;
- con = consenus(_this.model);
- console.log(con);
- seq = new Seq({
- seq: con,
- id: "0c",
- name: "consenus"
- });
- _this.model.add(seq);
- _this.model.comparator = function(seq) {
- return seq.get("id");
- };
- return _this.model.sort();
- };
- })(this));
- this.addNode("Increase font size", (function(_this) {
- return function() {
- _this.g.zoomer.set("columnWidth", _this.g.zoomer.get("columnWidth") + 2);
- _this.g.zoomer.set("labelWidth", _this.g.zoomer.get("columnWidth") + 5);
- _this.g.zoomer.set("rowHeight", _this.g.zoomer.get("rowHeight") + 2);
- return _this.g.zoomer.set("labelFontSize", _this.g.zoomer.get("labelFontSize") + 2);
- };
- })(this));
- this.addNode("Decrease font size", (function(_this) {
- return function() {
- _this.g.zoomer.set("columnWidth", _this.g.zoomer.get("columnWidth") - 2);
- _this.g.zoomer.set("rowHeight", _this.g.zoomer.get("rowHeight") - 2);
- _this.g.zoomer.set("labelFontSize", _this.g.zoomer.get("labelFontSize") - 2);
- if (_this.g.zoomer.get("columnWidth") < 8) {
- return _this.g.zoomer.set("textVisible", false);
- }
- };
- })(this));
- this.addNode("Bar chart exp scaling", (function(_this) {
- return function() {
- return _this.g.columns.set("scaling", "exp");
- };
- })(this));
- this.addNode("Bar chart linear scaling", (function(_this) {
- return function() {
- return _this.g.columns.set("scaling", "lin");
- };
- })(this));
- this.addNode("Bar chart log scaling", (function(_this) {
- return function() {
- return _this.g.columns.set("scaling", "log");
- };
- })(this));
- this.addNode("Minimized width", (function(_this) {
- return function() {
- return _this.g.zoomer.set("alignmentWidth", 600);
- };
- })(this));
- this.addNode("Minimized height", (function(_this) {
- return function() {
- return _this.g.zoomer.set("alignmentHeight", 120);
- };
- })(this));
- this.addNode("Jump to a column", (function(_this) {
- return function() {
- var offset;
- offset = prompt("Column", "20");
- if (offset < 0 || offset > _this.model.getMaxLength() || isNaN(offset)) {
- alert("invalid column");
- return;
- }
- return _this.g.zoomer.setLeftOffset(offset);
- };
- })(this));
- this.el.appendChild(this.buildDOM());
- return this;
- }
-});
-
-
-
-},{"../../algo/ConsensusCalc":60,"../../model/Sequence":88,"../menubuilder":75}],79:[function(require,module,exports){
-var FilterMenu, MenuBuilder, _;
-
-MenuBuilder = require("../menubuilder");
-
-_ = require("underscore");
-
-module.exports = FilterMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- return this.el.style.display = "inline-block";
- },
- render: function() {
- this.setName("Filter");
- this.addNode("Hide columns by threshold", (function(_this) {
- return function(e) {
- var conserv, hidden, i, maxLen, threshold, _i, _ref;
- threshold = prompt("Enter threshold (in percent)", 20);
- threshold = threshold / 100;
- maxLen = _this.model.getMaxLength();
- hidden = [];
- conserv = _this.g.columns.get("conserv");
- for (i = _i = 0, _ref = maxLen - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; i = 0 <= _ref ? ++_i : --_i) {
- if (conserv[i] < threshold) {
- hidden.push(i);
- }
- }
- return _this.g.columns.set("hidden", hidden);
- };
- })(this));
- this.addNode("Hide columns by selection", (function(_this) {
- return function() {
- var hidden, hiddenOld;
- hiddenOld = _this.g.columns.get("hidden");
- hidden = hiddenOld.concat(_this.g.selcol.getAllColumnBlocks({
- maxLen: _this.model.getMaxLength(),
- withPos: true
- }));
- _this.g.selcol.reset([]);
- return _this.g.columns.set("hidden", hidden);
- };
- })(this));
- this.addNode("Hide columns by gaps", (function(_this) {
- return function() {
- var gapContent, gaps, hidden, i, maxLen, threshold, total, _i, _ref;
- threshold = prompt("Enter threshold (in percent)", 20);
- threshold = threshold / 100;
- maxLen = _this.model.getMaxLength();
- hidden = [];
- for (i = _i = 0, _ref = maxLen - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; i = 0 <= _ref ? ++_i : --_i) {
- gaps = 0;
- total = 0;
- _this.model.each(function(el) {
- if (el.get('seq')[i] === "-") {
- gaps++;
- }
- return total++;
- });
- gapContent = gaps / total;
- if (gapContent > threshold) {
- hidden.push(i);
- }
- }
- return _this.g.columns.set("hidden", hidden);
- };
- })(this));
- this.addNode("Hide seqs by identity", (function(_this) {
- return function() {
- var threshold;
- threshold = prompt("Enter threshold (in percent)", 20);
- threshold = threshold / 100;
- return _this.model.each(function(el) {
- if (el.get('identity') < threshold) {
- return el.set('hidden', true);
- }
- });
- };
- })(this));
- this.addNode("Hide seqs by selection", (function(_this) {
- return function() {
- var hidden, ids;
- hidden = _this.g.selcol.where({
- type: "row"
- });
- ids = _.map(hidden, function(el) {
- return el.get('seqId');
- });
- _this.g.selcol.reset([]);
- return _this.model.each(function(el) {
- if (ids.indexOf(el.get('id')) >= 0) {
- return el.set('hidden', true);
- }
- });
- };
- })(this));
- this.addNode("Hide seqs by gaps", (function(_this) {
- return function() {
- var threshold;
- threshold = prompt("Enter threshold (in percent)", 40);
- return _this.model.each(function(el, i) {
- var gaps, seq;
- seq = el.get('seq');
- gaps = _.reduce(seq, (function(memo, c) {
- if (c === '-') {
- memo++;
- }
- return memo;
- }), 0);
- console.log(gaps);
- if (gaps > threshold) {
- return el.set('hidden', true);
- }
- });
- };
- })(this));
- this.addNode("Reset", (function(_this) {
- return function() {
- _this.g.columns.set("hidden", []);
- return _this.model.each(function(el) {
- if (el.get('hidden')) {
- return el.set('hidden', false);
- }
- });
- };
- })(this));
- this.el.appendChild(this.buildDOM());
- return this;
- }
-});
-
-
-
-},{"../menubuilder":75,"underscore":59}],80:[function(require,module,exports){
-var HelpMenu, MenuBuilder;
-
-MenuBuilder = require("../menubuilder");
-
-module.exports = HelpMenu = MenuBuilder.extend({
- initialize: function(data) {
- return this.g = data.g;
- },
- render: function() {
- this.setName("Help");
- this.addNode("About the project", (function(_this) {
- return function() {
- return window.open("https://github.com/greenify/biojs-vis-msa");
- };
- })(this));
- this.addNode("Report issues", (function(_this) {
- return function() {
- return window.open("https://github.com/greenify/biojs-vis-msa/issues");
- };
- })(this));
- this.addNode("User manual", (function(_this) {
- return function() {
- return window.open("https://github.com/greenify/biojs-vis-msa/wiki");
- };
- })(this));
- this.el.style.display = "inline-block";
- this.el.appendChild(this.buildDOM());
- return this;
- }
-});
-
-
-
-},{"../menubuilder":75}],81:[function(require,module,exports){
-var Clustal, FastaReader, ImportMenu, MenuBuilder, corsURL;
-
-Clustal = require("biojs-io-clustal");
-
-FastaReader = require("biojs-io-fasta").parse;
-
-MenuBuilder = require("../menubuilder");
-
-corsURL = require("../../utils/proxy").corsURL;
-
-module.exports = ImportMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- return this.el.style.display = "inline-block";
- },
- render: function() {
- this.setName("Import");
- this.addNode("FASTA", (function(_this) {
- return function(e) {
- var url;
- url = prompt("URL", "/test/dummy/samples/p53.clustalo.fasta");
- url = corsURL(url, _this.g);
- return FastaReader.read(url, function(seqs) {
- var zoomer;
- zoomer = _this.g.zoomer.toJSON();
- zoomer.labelWidth = 200;
- zoomer.boxRectHeight = 2;
- zoomer.boxRectWidth = 2;
- _this.model.reset([]);
- _this.g.zoomer.set(zoomer);
- _this.model.reset(seqs);
- return _this.g.columns.calcConservation(_this.model);
- });
- };
- })(this));
- this.addNode("CLUSTAL", (function(_this) {
- return function() {
- var url;
- url = prompt("URL", "/test/dummy/samples/p53.clustalo.clustal");
- url = corsURL(url, _this.g);
- return Clustal.read(url, function(seqs) {
- var zoomer;
- zoomer = _this.g.zoomer.toJSON();
- zoomer.labelWidth = 200;
- zoomer.boxRectHeight = 2;
- zoomer.boxRectWidth = 2;
- _this.model.reset([]);
- _this.g.zoomer.set(zoomer);
- _this.model.reset(seqs);
- return _this.g.columns.calcConservation(_this.model);
- });
- };
- })(this));
- this.addNode("add your own Parser", (function(_this) {
- return function() {
- return window.open("https://github.com/biojs/biojs2");
- };
- })(this));
- this.el.appendChild(this.buildDOM());
- return this;
- }
-});
-
-
-
-},{"../../utils/proxy":93,"../menubuilder":75,"biojs-io-clustal":undefined,"biojs-io-fasta":undefined}],82:[function(require,module,exports){
-var MenuBuilder, OrderingMenu, dom, _;
-
-MenuBuilder = require("../menubuilder");
-
-dom = require("dom-helper");
-
-_ = require('underscore');
-
-module.exports = OrderingMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- this.order = "ID";
- return this.el.style.display = "inline-block";
- },
- setOrder: function(order) {
- this.order = order;
- return this.render();
- },
- render: function() {
- var comps, el, m, _i, _len;
- this.setName("Ordering");
- comps = this.getComparators();
- for (_i = 0, _len = comps.length; _i < _len; _i++) {
- m = comps[_i];
- this._addNode(m);
- }
- el = this.buildDOM();
- dom.removeAllChilds(this.el);
- this.el.appendChild(el);
- return this;
- },
- _addNode: function(m) {
- var style, text;
- text = m.text;
- style = {};
- if (text === this.order) {
- style.backgroundColor = "#77ED80";
- }
- return this.addNode(text, (function(_this) {
- return function() {
- if (m.precode != null) {
- m.precode();
- }
- _this.model.comparator = m.comparator;
- _this.model.sort();
- return _this.setOrder(m.text);
- };
- })(this), {
- style: style
- });
- },
- getComparators: function() {
- var models;
- models = [];
- models.push({
- text: "ID",
- comparator: "id"
- });
- models.push({
- text: "ID Desc",
- comparator: function(a, b) {
- return -a.get("id").localeCompare(b.get("id"));
- }
- });
- models.push({
- text: "Label",
- comparator: "name"
- });
- models.push({
- text: "Label Desc",
- comparator: function(a, b) {
- return -a.get("name").localeCompare(b.get("name"));
- }
- });
- models.push({
- text: "Seq",
- comparator: "seq"
- });
- models.push({
- text: "Seq Desc",
- comparator: function(a, b) {
- return -a.get("seq").localeCompare(b.get("seq"));
- }
- });
- models.push({
- text: "Identity",
- comparator: "identity"
- });
- models.push({
- text: "Identity Desc",
- comparator: function(seq) {
- return -seq.get("identity");
- }
- });
- models.push({
- text: "Partition codes",
- comparator: "partition",
- precode: (function(_this) {
- return function() {
- _this.g.vis.set('labelPartition', true);
- return _this.model.each(function(el) {
- return el.set('partition', _.random(1, 3));
- });
- };
- })(this)
- });
- return models;
- }
-});
-
-
-
-},{"../menubuilder":75,"dom-helper":49,"underscore":59}],83:[function(require,module,exports){
-var MenuBuilder, SelectionMenu, sel;
-
-sel = require("../../g/selection/Selection");
-
-MenuBuilder = require("../menubuilder");
-
-module.exports = SelectionMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- return this.el.style.display = "inline-block";
- },
- render: function() {
- this.setName("Selection");
- this.addNode("Find Motif (supports RegEx)", (function(_this) {
- return function() {
- var leftestIndex, newSeli, origIndex, search, selcol;
- search = prompt("your search", "D");
- search = new RegExp(search, "gi");
- selcol = _this.g.selcol;
- newSeli = [];
- leftestIndex = origIndex = 100042;
- _this.model.each(function(seq) {
- var args, index, match, strSeq, _results;
- strSeq = seq.get("seq");
- _results = [];
- while (match = search.exec(strSeq)) {
- index = match.index;
- args = {
- xStart: index,
- xEnd: index + match[0].length - 1,
- seqId: seq.get("id")
- };
- newSeli.push(new sel.possel(args));
- _results.push(leftestIndex = Math.min(index, leftestIndex));
- }
- return _results;
- });
- if (newSeli.length === 0) {
- alert("no selection found");
- }
- selcol.reset(newSeli);
- if (leftestIndex === origIndex) {
- leftestIndex = 0;
- }
- return _this.g.zoomer.setLeftOffset(leftestIndex);
- };
- })(this));
- this.addNode("Invert columns", (function(_this) {
- return function() {
- var _i, _ref, _results;
- return _this.g.selcol.invertCol((function() {
- _results = [];
- for (var _i = 0, _ref = _this.model.getMaxLength(); 0 <= _ref ? _i <= _ref : _i >= _ref; 0 <= _ref ? _i++ : _i--){ _results.push(_i); }
- return _results;
- }).apply(this));
- };
- })(this));
- this.addNode("Invert rows", (function(_this) {
- return function() {
- return _this.g.selcol.invertRow(_this.model.pluck("id"));
- };
- })(this));
- this.addNode("Reset", (function(_this) {
- return function() {
- return _this.g.selcol.reset();
- };
- })(this));
- this.el.appendChild(this.buildDOM());
- return this;
- }
-});
-
-
-
-},{"../../g/selection/Selection":67,"../menubuilder":75}],84:[function(require,module,exports){
-var ImportMenu, MenuBuilder, dom;
-
-MenuBuilder = require("../menubuilder");
-
-dom = require("dom-helper");
-
-module.exports = ImportMenu = MenuBuilder.extend({
- initialize: function(data) {
- this.g = data.g;
- this.el.style.display = "inline-block";
- return this.listenTo(this.g.vis, "change", this.render);
- },
- render: function() {
- var visEl, visElements, _i, _len;
- this.setName("Vis. elements");
- visElements = this.getVisElements();
- for (_i = 0, _len = visElements.length; _i < _len; _i++) {
- visEl = visElements[_i];
- this._addVisEl(visEl);
- }
- this.addNode("Reset", (function(_this) {
- return function() {
- _this.g.vis.set("labels", true);
- _this.g.vis.set("sequences", true);
- _this.g.vis.set("metacell", true);
- _this.g.vis.set("conserv", true);
- _this.g.vis.set("labelId", true);
- _this.g.vis.set("labelName", true);
- return _this.g.vis.set("labelCheckbox", false);
- };
- })(this));
- this.addNode("Toggle mouseover events", (function(_this) {
- return function() {
- return _this.g.config.set("registerMouseHover", !_this.g.config.get("registerMouseHover"));
- };
- })(this));
- dom.removeAllChilds(this.el);
- this.el.appendChild(this.buildDOM());
- return this;
- },
- _addVisEl: function(visEl) {
- var pre, style;
- style = {};
- if (this.g.vis.get(visEl.id)) {
- pre = "Hide ";
- style.color = "red";
- } else {
- pre = "Show ";
- style.color = "green";
- }
- return this.addNode(pre + visEl.name, (function(_this) {
- return function() {
- return _this.g.vis.set(visEl.id, !_this.g.vis.get(visEl.id));
- };
- })(this), {
- style: style
- });
- },
- getVisElements: function() {
- var vis;
- vis = [];
- vis.push({
- name: "Markers",
- id: "markers"
- });
- vis.push({
- name: "Labels",
- id: "labels"
- });
- vis.push({
- name: "Sequences",
- id: "sequences"
- });
- vis.push({
- name: "Meta info",
- id: "metacell"
- });
- vis.push({
- name: "Overviewbox",
- id: "overviewbox"
- });
- vis.push({
- name: "conserv",
- id: "conserv"
- });
- vis.push({
- name: "LabelName",
- id: "labelName"
- });
- vis.push({
- name: "LabelId",
- id: "labelId"
- });
- vis.push({
- name: "LabelCheckbox",
- id: "labelCheckbox"
- });
- return vis;
- }
-});
-
-
-
-},{"../menubuilder":75,"dom-helper":49}],85:[function(require,module,exports){
-var Feature, Model;
-
-Feature = require("./Feature");
-
-Model = require("backbone-thin").Model;
-
-module.exports = Feature = Model.extend({
- defaults: {
- xStart: -1,
- xEnd: -1,
- height: -1,
- text: "",
- fillColor: "red",
- fillOpacity: 0.5,
- type: "rectangle",
- borderSize: 1,
- borderColor: "black",
- borderOpacity: 0.5,
- validate: true
- },
- validate: function() {
- if (isNaN(this.attributes.xStart || isNaN(this.attributes.xEnd))) {
- return "features need integer start and end.";
- }
- },
- contains: function(index) {
- return this.attributes.xStart <= index && index <= this.attributes.xEnd;
- }
-});
-
-
-
-},{"./Feature":85,"backbone-thin":5}],86:[function(require,module,exports){
-var Collection, Feature, FeatureCol, _;
-
-Feature = require("./Feature");
-
-Collection = require("backbone-thin").Collection;
-
-_ = require("underscore");
-
-module.exports = FeatureCol = Collection.extend({
- model: Feature,
- constructor: function() {
- this.startOnCache = [];
- this.on("all", function() {
- return this.startOnCache = [];
- }, this);
- return Collection.apply(this, arguments);
- },
- startOn: function(index) {
- if (this.startOnCache[index] == null) {
- this.startOnCache[index] = this.where({
- xStart: index
- });
- }
- return this.startOnCache[index];
- },
- contains: function(index) {
- return this.reduce(function(el, memo) {
- return memo || el.contains(index);
- }, false);
- },
- getMinRows: function() {
- var len, rows, x;
- len = this.max(function(el) {
- return el.get("xEnd");
- });
- rows = (function() {
- var _i, _results;
- _results = [];
- for (x = _i = 1; 1 <= len ? _i <= len : _i >= len; x = 1 <= len ? ++_i : --_i) {
- _results.push(0);
- }
- return _results;
- })();
- this.each(function(el) {
- var _i, _ref, _ref1, _results;
- _results = [];
- for (x = _i = _ref = el.get("xStart"), _ref1 = feature.get("xEnd"); _i <= _ref1; x = _i += 1) {
- _results.push(rows[x]++);
- }
- return _results;
- });
- return _.max(rows);
- }
-});
-
-
-
-},{"./Feature":85,"backbone-thin":5,"underscore":59}],87:[function(require,module,exports){
-var Collection, SeqManager, Sequence;
-
-Sequence = require("./Sequence");
-
-Collection = require("backbone-thin").Collection;
-
-module.exports = SeqManager = Collection.extend({
- model: Sequence,
- constructor: function() {
- Collection.apply(this, arguments);
- this.on("all", function() {
- return this.lengthCache = null;
- }, this);
- this.lengthCache = null;
- return this;
- },
- getMaxLength: function() {
- if (this.models.length === 0) {
- return 0;
- }
- if (this.lengthCache === null) {
- this.lengthCache = this.max(function(seq) {
- return seq.get("seq").length;
- }).get("seq").length;
- }
- return this.lengthCache;
- },
- prev: function(model, endless) {
- var index;
- index = this.indexOf(model) - 1;
- if (index < 0 && endless) {
- index = this.length - 1;
- }
- return this.at(index);
- },
- next: function(model, endless) {
- var index;
- index = this.indexOf(model) + 1;
- if (index === this.length && endless) {
- index = 0;
- }
- return this.at(index);
- },
- calcHiddenSeqs: function(n) {
- var i, nNew, _i;
- nNew = n;
- for (i = _i = 0; 0 <= nNew ? _i <= nNew : _i >= nNew; i = 0 <= nNew ? ++_i : --_i) {
- if (this.at(i).get("hidden")) {
- nNew++;
- }
- }
- return nNew - n;
- }
-});
-
-
-
-},{"./Sequence":88,"backbone-thin":5}],88:[function(require,module,exports){
-var FeatureCol, Model, Sequence;
-
-Model = require("backbone-thin").Model;
-
-FeatureCol = require("./FeatureCol");
-
-module.exports = Sequence = Model.extend({
- defaults: {
- name: "",
- id: "",
- seq: ""
- },
- initialize: function() {
- this.set("grey", []);
- return this.set("features", new FeatureCol());
- }
-});
-
-
-
-},{"./FeatureCol":86,"backbone-thin":5}],89:[function(require,module,exports){
-module.exports.seq = require("./Sequence");
-
-module.exports.seqcol = require("./SeqCollection");
-
-module.exports.feature = require("./Feature");
-
-module.exports.featurecol = require("./FeatureCol");
-
-
-
-},{"./Feature":85,"./FeatureCol":86,"./SeqCollection":87,"./Sequence":88}],90:[function(require,module,exports){
-var Colorator, Columns, Config, Consensus, Eventhandler, SelCol, SeqCollection, Stage, VisOrdering, Visibility, Zoomer, boneView;
-
-SeqCollection = require("./model/SeqCollection");
-
-Colorator = require("./g/colorator");
-
-Consensus = require("./g/consensus");
-
-Columns = require("./g/columns");
-
-Config = require("./g/config");
-
-SelCol = require("./g/selection/SelectionCol");
-
-Visibility = require("./g/visibility");
-
-VisOrdering = require("./g/visOrdering");
-
-Zoomer = require("./g/zoomer");
-
-boneView = require("backbone-childs");
-
-Eventhandler = require("biojs-events");
-
-Stage = require("./views/Stage");
-
-module.exports = boneView.extend({
- initialize: function(data) {
- var _ref;
- if (data.columns == null) {
- data.columns = {};
- }
- if (data.conf == null) {
- data.conf = {};
- }
- if (data.vis == null) {
- data.vis = {};
- }
- if (data.zoomer == null) {
- if (!((_ref = data.visorder) != null ? _ref : data.zoomer = {})) {
- data.visorder = {};
- }
- }
- this.g = Eventhandler.mixin({});
- if (data.seqs === void 0 || data.seqs.length === 0) {
- console.log("warning. empty seqs.");
- }
- this.seqs = new SeqCollection(data.seqs);
- this.g.config = new Config(data.conf);
- this.g.consensus = new Consensus();
- this.g.columns = new Columns(data.columns);
- this.g.colorscheme = new Colorator();
- this.g.selcol = new SelCol([], {
- g: this.g
- });
- this.g.vis = new Visibility(data.vis);
- this.g.visorder = new VisOrdering(data.visorder);
- this.g.zoomer = new Zoomer(data.zoomer, {
- g: this.g
- });
- this.addView("stage", new Stage({
- model: this.seqs,
- g: this.g
- }));
- this.el.setAttribute("class", "biojs_msa_div");
- if (this.g.config.get("eventBus") === true) {
- return this.startEventBus();
- }
- },
- startEventBus: function() {
- var busObjs, key, _i, _len, _results;
- busObjs = ["config", "consensus", "columns", "colorscheme", "selcol", "vis", "visorder", "zoomer"];
- _results = [];
- for (_i = 0, _len = busObjs.length; _i < _len; _i++) {
- key = busObjs[_i];
- _results.push(this._proxyToG(key));
- }
- return _results;
- },
- _proxyToG: function(key) {
- return this.listenTo(this.g[key], "all", function(name, prev, now) {
- if (name === "change") {
- return;
- }
- return this.g.trigger(key + ":" + name, now);
- });
- },
- render: function() {
- this.renderSubviews();
- this.g.vis.set("loaded", true);
- return this;
- }
-});
-
-
-
-},{"./g/colorator":63,"./g/columns":64,"./g/config":65,"./g/consensus":66,"./g/selection/SelectionCol":68,"./g/visOrdering":69,"./g/visibility":70,"./g/zoomer":71,"./model/SeqCollection":87,"./views/Stage":100,"backbone-childs":3,"biojs-events":14}],91:[function(require,module,exports){
-var BMath;
-
-module.exports = BMath = (function() {
- function BMath() {}
-
- BMath.randomInt = function(lower, upper) {
- var _ref, _ref1;
- if (upper == null) {
- _ref = [0, lower], lower = _ref[0], upper = _ref[1];
- }
- if (lower > upper) {
- _ref1 = [upper, lower], lower = _ref1[0], upper = _ref1[1];
- }
- return Math.floor(Math.random() * (upper - lower + 1) + lower);
- };
-
- BMath.uniqueId = function(length) {
- var id;
- if (length == null) {
- length = 8;
- }
- id = "";
- while (id.length < length) {
- id += Math.random().toString(36).substr(2);
- }
- return id.substr(0, length);
- };
-
- BMath.getRandomInt = function(min, max) {
- return Math.floor(Math.random() * (max - min + 1)) + min;
- };
-
- return BMath;
-
-})();
-
-
-
-},{}],92:[function(require,module,exports){
-module.exports.bmath = require("./bmath");
-
-module.exports.proxy = require("./proxy");
-
-module.exports.seqgen = require("./seqgen");
-
-
-
-},{"./bmath":91,"./proxy":93,"./seqgen":94}],93:[function(require,module,exports){
-var proxy;
-
-module.exports = proxy = {
- corsURL: (function(_this) {
- return function(url, g) {
- _this.g = g;
- if (document.URL.indexOf('localhost') >= 0 && url[0] === "/") {
- return url;
- }
- url = url.replace("www\.", "");
- url = url.replace("http://", "");
- url = _this.g.config.get('importProxy') + url;
- return url;
- };
- })(this)
-};
-
-
-
-},{}],94:[function(require,module,exports){
-var BMath, Sequence, seqgen;
-
-Sequence = require("biojs-model").seq;
-
-BMath = require("./bmath");
-
-seqgen = module.exports = {
- _generateSequence: function(len) {
- var i, possible, text, _i, _ref;
- text = "";
- possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
- for (i = _i = 0, _ref = len - 1; _i <= _ref; i = _i += 1) {
- text += possible.charAt(Math.floor(Math.random() * possible.length));
- }
- return text;
- },
- getDummySequences: function(len, seqLen) {
- var i, seqs, _i;
- seqs = [];
- if (len == null) {
- len = BMath.getRandomInt(3, 5);
- }
- if (seqLen == null) {
- seqLen = BMath.getRandomInt(50, 200);
- }
- for (i = _i = 1; _i <= len; i = _i += 1) {
- seqs.push(new Sequence(seqgen._generateSequence(seqLen), "seq" + i, "r" + i));
- }
- return seqs;
- }
-};
-
-
-
-},{"./bmath":91,"biojs-model":27}],95:[function(require,module,exports){
-var Base, Line, Polygon, Rect, setAttr, svgns;
-
-svgns = "http://www.w3.org/2000/svg";
-
-setAttr = function(obj, opts) {
- var name, value;
- for (name in opts) {
- value = opts[name];
- obj.setAttributeNS(null, name, value);
- }
- return obj;
-};
-
-Base = function(opts) {
- var svg;
- svg = document.createElementNS(svgns, 'svg');
- svg.setAttribute("width", opts.width);
- svg.setAttribute("height", opts.height);
- return svg;
-};
-
-Rect = function(opts) {
- var rect;
- rect = document.createElementNS(svgns, 'rect');
- return setAttr(rect, opts);
-};
-
-Line = function(opts) {
- var line;
- line = document.createElementNS(svgns, 'line');
- return setAttr(line, opts);
-};
-
-Polygon = function(opts) {
- var line;
- line = document.createElementNS(svgns, 'polygon');
- return setAttr(line, opts);
-};
-
-module.exports.rect = Rect;
-
-module.exports.line = Line;
-
-module.exports.polygon = Polygon;
-
-module.exports.base = Base;
-
-
-
-},{}],96:[function(require,module,exports){
-var LabelBlock, SeqBlock, boneView;
-
-boneView = require("backbone-childs");
-
-SeqBlock = require("./CanvasSeqBlock");
-
-LabelBlock = require("./labels/LabelBlock");
-
-module.exports = boneView.extend({
- initialize: function(data) {
- var labelblock, seqblock;
- this.g = data.g;
- if (true) {
- labelblock = new LabelBlock({
- model: this.model,
- g: this.g
- });
- labelblock.ordering = -1;
- this.addView("labelblock", labelblock);
- }
- if (this.g.vis.get("sequences")) {
- seqblock = new SeqBlock({
- model: this.model,
- g: this.g
- });
- seqblock.ordering = 0;
- this.addView("seqblock", seqblock);
- }
- this.listenTo(this.g.zoomer, "change:alignmentHeight", this.adjustHeight);
- return this.listenTo(this.g.columns, "change:hidden", this.adjustHeight);
- },
- render: function() {
- this.renderSubviews();
- this.el.className = "biojs_msa_albody";
- this.el.style.whiteSpace = "nowrap";
- this.adjustHeight();
- return this;
- },
- adjustHeight: function() {
- if (this.g.zoomer.get("alignmentHeight") === "auto") {
- this.el.style.height = (this.g.zoomer.get("rowHeight") * this.model.length) + 5;
- } else {
- this.el.style.height = this.g.zoomer.get("alignmentHeight");
- }
- return this.el.style.width = this.getWidth() + 15;
- },
- getWidth: function() {
- var width;
- width = 0;
- if (this.g.vis.get("labels")) {
- width += this.g.zoomer.get("labelWidth");
- }
- if (this.g.vis.get("metacell")) {
- width += this.g.zoomer.get("metaWidth");
- }
- if (this.g.vis.get("sequences")) {
- width += this.g.zoomer.get("alignmentWidth");
- }
- return width;
- }
-});
-
-
-
-},{"./CanvasSeqBlock":98,"./labels/LabelBlock":104,"backbone-childs":3}],97:[function(require,module,exports){
-var CanvasCharCache, Events;
-
-Events = require("biojs-events");
-
-module.exports = CanvasCharCache = (function() {
- function CanvasCharCache(g) {
- this.g = g;
- this.cache = {};
- this.cacheHeight = 0;
- this.cacheWidth = 0;
- }
-
- CanvasCharCache.prototype.getFontTile = function(letter, width, height) {
- if (width !== this.cacheWidth || height !== this.cacheHeight) {
- this.cacheHeight = height;
- this.cacheWidth = width;
- this.cache = {};
- }
- if (this.cache[letter] === void 0) {
- this.createTile(letter, width, height);
- }
- return this.cache[letter];
- };
-
- CanvasCharCache.prototype.createTile = function(letter, width, height) {
- var canvas;
- canvas = this.cache[letter] = document.createElement("canvas");
- canvas.width = width;
- canvas.height = height;
- this.ctx = canvas.getContext('2d');
- this.ctx.font = this.g.zoomer.get("residueFont");
- this.ctx.textBaseline = 'middle';
- this.ctx.textAlign = "center";
- return this.ctx.fillText(letter, width / 2, height / 2, width);
- };
-
- return CanvasCharCache;
-
-})();
-
-
-
-},{"biojs-events":14}],98:[function(require,module,exports){
-var CharCache, boneView, colorSelector, jbone, mouse, _;
-
-boneView = require("backbone-childs");
-
-mouse = require("mouse-pos");
-
-colorSelector = require("biojs-util-colorschemes").selector;
-
-_ = require("underscore");
-
-jbone = require("jbone");
-
-CharCache = require("./CanvasCharCache");
-
-module.exports = boneView.extend({
- tagName: "canvas",
- initialize: function(data) {
- this.g = data.g;
- this.listenTo(this.g.zoomer, "change:_alignmentScrollLeft change:_alignmentScrollTop", function(model, value, options) {
- if (((options != null ? options.origin : void 0) == null) || options.origin !== "canvasseq") {
- return this.render();
- }
- });
- this.listenTo(this.g.columns, "change:hidden", this.render);
- this.listenTo(this.g.zoomer, "change:alignmentWidth", this.render);
- this.listenTo(this.g.colorscheme, "change", this.render);
- this.listenTo(this.g.selcol, "reset add", this.render);
- this.el.style.display = "inline-block";
- this.el.style.overflowX = "hidden";
- this.el.style.overflowY = "hidden";
- this.el.className = "biojs_msa_seqblock";
- this.ctx = this.el.getContext('2d');
- this.cache = new CharCache(this.g);
- this.throttleTime = 0;
- this.throttleCounts = 0;
- if (document.documentElement.style.webkitAppearance != null) {
- this.throttledDraw = function() {
- var start, tTime;
- start = +new Date();
- this.draw();
- this.throttleTime += +new Date() - start;
- this.throttleCounts++;
- if (this.throttleCounts > 15) {
- tTime = Math.ceil(this.throttleTime / this.throttleCounts);
- console.log("avgDrawTime/WebKit", tTime);
- return this.throttledDraw = this.draw;
- }
- };
- } else {
- this.throttledDraw = _.throttle(this.throttledDraw, 30);
- }
- return this.manageEvents();
- },
- throttledDraw: function() {
- var start, tTime;
- start = +new Date();
- this.draw();
- this.throttleTime += +new Date() - start;
- this.throttleCounts++;
- if (this.throttleCounts > 15) {
- tTime = Math.ceil(this.throttleTime / this.throttleCounts);
- console.log("avgDrawTime", tTime);
- tTime *= 1.2;
- tTime = Math.max(20, tTime);
- return this.throttledDraw = _.throttle(this.draw, tTime);
- }
- },
- manageEvents: function() {
- var events;
- events = {};
- events.mousedown = "_onmousedown";
- events.touchstart = "_ontouchstart";
- if (this.g.config.get("registerMouseClicks")) {
- events.dblclick = "_onclick";
- }
- if (this.g.config.get("registerMouseHover")) {
- events.mousein = "_onmousein";
- events.mouseout = "_onmouseout";
- }
- events.mousewheel = "_onmousewheel";
- events.DOMMouseScroll = "_onmousewheel";
- this.delegateEvents(events);
- this.listenTo(this.g.config, "change:registerMouseHover", this.manageEvents);
- this.listenTo(this.g.config, "change:registerMouseClick", this.manageEvents);
- return this.dragStart = [];
- },
- draw: function() {
- var rectHeight;
- this.el.width = this.el.width;
- rectHeight = this.g.zoomer.get("rowHeight");
- this.ctx.globalAlpha = this.g.colorscheme.get("opacity");
- this.drawSeqs(function(data) {
- return this.drawSeq(data, this._drawRect);
- });
- this.ctx.globalAlpha = 1;
- this.drawSeqs(function(data) {
- return this.drawSeq(data, this._drawLetter);
- });
- return this.drawSeqs(this.drawSeqExtended);
- },
- drawSeqs: function(callback) {
- var hidden, i, rectHeight, start, y, _i, _ref, _results;
- rectHeight = this.g.zoomer.get("rowHeight");
- hidden = this.g.columns.get("hidden");
- start = Math.max(0, Math.abs(Math.ceil(-this.g.zoomer.get('_alignmentScrollTop') / rectHeight)));
- y = -Math.abs(-this.g.zoomer.get('_alignmentScrollTop') % rectHeight);
- _results = [];
- for (i = _i = start, _ref = this.model.length - 1; _i <= _ref; i = _i += 1) {
- if (this.model.at(i).get('hidden')) {
- continue;
- }
- callback.call(this, {
- model: this.model.at(i),
- y: y,
- hidden: hidden
- });
- y = y + rectHeight;
- if (y > this.el.height) {
- break;
- } else {
- _results.push(void 0);
- }
- }
- return _results;
- },
- drawSeq: function(data, callback) {
- var c, elWidth, j, rectHeight, rectWidth, res, seq, start, x, y, _i, _ref, _results;
- seq = data.model.get("seq");
- y = data.y;
- rectWidth = this.g.zoomer.get("columnWidth");
- rectHeight = this.g.zoomer.get("rowHeight");
- start = Math.max(0, Math.abs(Math.ceil(-this.g.zoomer.get('_alignmentScrollLeft') / rectWidth)));
- x = -Math.abs(-this.g.zoomer.get('_alignmentScrollLeft') % rectWidth);
- res = {
- rectWidth: rectWidth,
- rectHeight: rectHeight,
- y: y
- };
- elWidth = this.el.width;
- _results = [];
- for (j = _i = start, _ref = seq.length - 1; _i <= _ref; j = _i += 1) {
- c = seq[j];
- c = c.toUpperCase();
- res.x = x;
- res.c = c;
- if (data.hidden.indexOf(j) < 0) {
- callback(this, res);
- } else {
- continue;
- }
- x = x + rectWidth;
- if (x > elWidth) {
- break;
- } else {
- _results.push(void 0);
- }
- }
- return _results;
- },
- _drawRect: function(that, data) {
- var color;
- color = that.color[data.c];
- if (color != null) {
- that.ctx.fillStyle = color;
- return that.ctx.fillRect(data.x, data.y, data.rectWidth, data.rectHeight);
- }
- },
- _drawLetter: function(that, data) {
- return that.ctx.drawImage(that.cache.getFontTile(data.c, data.rectWidth, data.rectHeight), data.x, data.y, data.rectWidth, data.rectHeight);
- },
- drawSeqExtended: function(data) {
- var f, features, j, mNextSel, mPrevSel, rectHeight, rectWidth, selection, seq, start, starts, x, xZero, yZero, _i, _j, _len, _ref, _ref1;
- seq = data.model.get("seq");
- rectWidth = this.g.zoomer.get("columnWidth");
- rectHeight = this.g.zoomer.get("rowHeight");
- start = Math.max(0, Math.abs(Math.ceil(-this.g.zoomer.get('_alignmentScrollLeft') / rectWidth)));
- x = -Math.abs(-this.g.zoomer.get('_alignmentScrollLeft') % rectWidth);
- xZero = x - start * rectWidth;
- selection = this._getSelection(data.model);
- _ref = this._getPrevNextSelection(data.model), mPrevSel = _ref[0], mNextSel = _ref[1];
- features = data.model.get("features");
- yZero = data.y;
- for (j = _i = start, _ref1 = seq.length - 1; _i <= _ref1; j = _i += 1) {
- starts = features.startOn(j);
- if (data.hidden.indexOf(j) >= 0) {
- continue;
- }
- if (starts.length > 0) {
- for (_j = 0, _len = starts.length; _j < _len; _j++) {
- f = starts[_j];
- this.appendFeature({
- f: f,
- xZero: x,
- yZero: yZero
- });
- }
- }
- x = x + rectWidth;
- if (x > this.el.width) {
- break;
- }
- }
- return this._appendSelection({
- model: data.model,
- xZero: xZero,
- yZero: yZero,
- hidden: data.hidden
- });
- },
- render: function() {
- this.el.setAttribute('height', this.g.zoomer.get("alignmentHeight"));
- this.el.setAttribute('width', this.g.zoomer.get("alignmentWidth"));
- this.g.zoomer._adjustWidth(this.el, this.model);
- this.g.zoomer._checkScrolling(this._checkScrolling([this.g.zoomer.get('_alignmentScrollLeft'), this.g.zoomer.get('_alignmentScrollTop')]), {
- header: "canvasseq"
- });
- this.color = colorSelector.getColor(this.g.colorscheme.get("scheme"));
- this.throttledDraw();
- return this;
- },
- _onmousemove: function(e, reversed) {
- var dragEnd, i, relDist, relEnd, scaleFactor, scrollCorrected, _i, _j, _k;
- if (this.dragStart.length === 0) {
- return;
- }
- dragEnd = mouse.abs(e);
- relEnd = [dragEnd[0] - this.dragStart[0], dragEnd[1] - this.dragStart[1]];
- scaleFactor = this.g.zoomer.get("canvasEventScale");
- if (reversed) {
- scaleFactor = 3;
- }
- for (i = _i = 0; _i <= 1; i = _i += 1) {
- relEnd[i] = relEnd[i] * scaleFactor;
- }
- relDist = [this.dragStartScroll[0] - relEnd[0], this.dragStartScroll[1] - relEnd[1]];
- for (i = _j = 0; _j <= 1; i = _j += 1) {
- relDist[i] = Math.round(relDist[i]);
- }
- scrollCorrected = this._checkScrolling(relDist);
- this.g.zoomer._checkScrolling(scrollCorrected, {
- origin: "canvasseq"
- });
- for (i = _k = 0; _k <= 1; i = _k += 1) {
- if (scrollCorrected[i] !== relDist[i]) {
- if (scrollCorrected[i] === 0) {
- this.dragStart[i] = dragEnd[i];
- this.dragStartScroll[i] = 0;
- } else {
- this.dragStart[i] = dragEnd[i] - scrollCorrected[i];
- }
- }
- }
- this.throttledDraw();
- if (e.preventDefault != null) {
- e.preventDefault();
- return e.stopPropagation();
- }
- },
- _ontouchmove: function(e) {
- this._onmousemove(e.changedTouches[0], true);
- e.preventDefault();
- return e.stopPropagation();
- },
- _onmousedown: function(e) {
- this.dragStart = mouse.abs(e);
- this.dragStartScroll = [this.g.zoomer.get('_alignmentScrollLeft'), this.g.zoomer.get('_alignmentScrollTop')];
- jbone(document.body).on('mousemove.overmove', (function(_this) {
- return function(e) {
- return _this._onmousemove(e);
- };
- })(this));
- jbone(document.body).on('mouseup.overup', (function(_this) {
- return function() {
- return _this._cleanup();
- };
- })(this));
- return e.preventDefault();
- },
- _ontouchstart: function(e) {
- this.dragStart = mouse.abs(e.changedTouches[0]);
- this.dragStartScroll = [this.g.zoomer.get('_alignmentScrollLeft'), this.g.zoomer.get('_alignmentScrollTop')];
- jbone(document.body).on('touchmove.overtmove', (function(_this) {
- return function(e) {
- return _this._ontouchmove(e);
- };
- })(this));
- return jbone(document.body).on('touchend.overtend touchleave.overtleave touchcancel.overtcanel', (function(_this) {
- return function(e) {
- return _this._touchCleanup(e);
- };
- })(this));
- },
- _onmousewinout: function(e) {
- if (e.toElement === document.body.parentNode) {
- return this._cleanup();
- }
- },
- _cleanup: function() {
- this.dragStart = [];
- jbone(document.body).off('.overmove');
- jbone(document.body).off('.overup');
- return jbone(document.body).off('.overout');
- },
- _touchCleanup: function(e) {
- if (e.changedTouches.length > 0) {
- this._onmousemove(e.changedTouches[0], true);
- }
- this.dragStart = [];
- jbone(document.body).off('.overtmove');
- jbone(document.body).off('.overtend');
- jbone(document.body).off('.overtleave');
- return jbone(document.body).off('.overtcancel');
- },
- _onmousewheel: function(e) {
- var delta;
- delta = mouse.wheelDelta(e);
- this.g.zoomer.set('_alignmentScrollLeft', this.g.zoomer.get('_alignmentScrollLeft') + delta[0]);
- this.g.zoomer.set('_alignmentScrollTop', this.g.zoomer.get('_alignmentScrollTop') + delta[1]);
- return e.preventDefault();
- },
- _onclick: function(e) {
- this.g.trigger("residue:click", this._getClickPos(e));
- return this.throttledDraw();
- },
- _onmousein: function(e) {
- this.g.trigger("residue:click", this._getClickPos(e));
- return this.throttledDraw();
- },
- _onmouseout: function(e) {
- this.g.trigger("residue:click", this._getClickPos(e));
- return this.throttledDraw();
- },
- _getClickPos: function(e) {
- var coords, seqId, x, y;
- coords = mouse.rel(e);
- coords[0] += this.g.zoomer.get("_alignmentScrollLeft");
- coords[1] += this.g.zoomer.get("_alignmentScrollTop");
- x = Math.floor(coords[0] / this.g.zoomer.get("columnWidth"));
- y = Math.floor(coords[1] / this.g.zoomer.get("rowHeight"));
- x += this.g.columns.calcHiddenColumns(x);
- y += this.model.calcHiddenSeqs(y);
- x = Math.max(0, x);
- y = Math.max(0, y);
- seqId = this.model.at(y).get("id");
- return {
- seqId: seqId,
- rowPos: x,
- evt: e
- };
- },
- _checkScrolling: function(scrollObj) {
- var i, max, _i;
- max = [this.model.getMaxLength() * this.g.zoomer.get("columnWidth") - this.g.zoomer.get('alignmentWidth'), this.model.length * this.g.zoomer.get("rowHeight") - this.g.zoomer.get('alignmentHeight')];
- for (i = _i = 0; _i <= 1; i = _i += 1) {
- if (scrollObj[i] > max[i]) {
- scrollObj[i] = max[i];
- }
- if (scrollObj[i] < 0) {
- scrollObj[i] = 0;
- }
- }
- return scrollObj;
- },
- _getSelection: function(model) {
- var maxLen, n, rows, sel, selection, sels, _i, _j, _k, _len, _ref, _ref1, _ref2;
- maxLen = model.get("seq").length;
- selection = [];
- sels = this.g.selcol.getSelForRow(model.get("id"));
- rows = _.find(sels, function(el) {
- return el.get("type") === "row";
- });
- if (rows != null) {
- for (n = _i = 0, _ref = maxLen - 1; _i <= _ref; n = _i += 1) {
- selection.push(n);
- }
- } else if (sels.length > 0) {
- for (_j = 0, _len = sels.length; _j < _len; _j++) {
- sel = sels[_j];
- for (n = _k = _ref1 = sel.get("xStart"), _ref2 = sel.get("xEnd"); _k <= _ref2; n = _k += 1) {
- selection.push(n);
- }
- }
- }
- return selection;
- },
- appendFeature: function(data) {
- var beforeStyle, beforeWidth, boxHeight, boxWidth, f, width;
- f = data.f;
- boxWidth = this.g.zoomer.get("columnWidth");
- boxHeight = this.g.zoomer.get("rowHeight");
- width = (f.get("xEnd") - f.get("xStart")) * boxWidth;
- beforeWidth = this.ctx.lineWidth;
- this.ctx.lineWidth = 3;
- beforeStyle = this.ctx.strokeStyle;
- this.ctx.strokeStyle = f.get("fillColor");
- this.ctx.strokeRect(data.xZero, data.yZero, width, boxHeight);
- this.ctx.strokeStyle = beforeStyle;
- return this.ctx.lineWidth = beforeWidth;
- },
- _appendSelection: function(data) {
- var boxHeight, boxWidth, hiddenOffset, k, mNextSel, mPrevSel, n, selection, seq, _i, _ref, _ref1, _results;
- seq = data.model.get("seq");
- selection = this._getSelection(data.model);
- _ref = this._getPrevNextSelection(data.model), mPrevSel = _ref[0], mNextSel = _ref[1];
- boxWidth = this.g.zoomer.get("columnWidth");
- boxHeight = this.g.zoomer.get("rowHeight");
- if (selection.length === 0) {
- return;
- }
- hiddenOffset = 0;
- _results = [];
- for (n = _i = 0, _ref1 = seq.length - 1; _i <= _ref1; n = _i += 1) {
- if (data.hidden.indexOf(n) >= 0) {
- _results.push(hiddenOffset++);
- } else {
- k = n - hiddenOffset;
- if (selection.indexOf(n) >= 0 && (k === 0 || selection.indexOf(n - 1) < 0)) {
- _results.push(this._renderSelection({
- n: n,
- k: k,
- selection: selection,
- mPrevSel: mPrevSel,
- mNextSel: mNextSel,
- xZero: data.xZero,
- yZero: data.yZero,
- model: data.model
- }));
- } else {
- _results.push(void 0);
- }
- }
- }
- return _results;
- },
- _renderSelection: function(data) {
- var beforeStyle, beforeWidth, boxHeight, boxWidth, hidden, i, k, mNextSel, mPrevSel, n, selection, selectionLength, totalWidth, xPart, xPos, xZero, yZero, _i, _j, _ref, _ref1;
- xZero = data.xZero;
- yZero = data.yZero;
- n = data.n;
- k = data.k;
- selection = data.selection;
- mPrevSel = data.mPrevSel;
- mNextSel = data.mNextSel;
- selectionLength = 0;
- for (i = _i = n, _ref = data.model.get("seq").length - 1; _i <= _ref; i = _i += 1) {
- if (selection.indexOf(i) >= 0) {
- selectionLength++;
- } else {
- break;
- }
- }
- boxWidth = this.g.zoomer.get("columnWidth");
- boxHeight = this.g.zoomer.get("rowHeight");
- totalWidth = (boxWidth * selectionLength) + 1;
- hidden = this.g.columns.get('hidden');
- this.ctx.beginPath();
- beforeWidth = this.ctx.lineWidth;
- this.ctx.lineWidth = 3;
- beforeStyle = this.ctx.strokeStyle;
- this.ctx.strokeStyle = "#FF0000";
- xZero += k * boxWidth;
- xPart = 0;
- for (i = _j = 0, _ref1 = selectionLength - 1; 0 <= _ref1 ? _j <= _ref1 : _j >= _ref1; i = 0 <= _ref1 ? ++_j : --_j) {
- xPos = n + i;
- if (hidden.indexOf(xPos) >= 0) {
- continue;
- }
- if (!((mPrevSel != null) && mPrevSel.indexOf(xPos) >= 0)) {
- this.ctx.moveTo(xZero + xPart, yZero);
- this.ctx.lineTo(xPart + boxWidth + xZero, yZero);
- }
- if (!((mNextSel != null) && mNextSel.indexOf(xPos) >= 0)) {
- this.ctx.moveTo(xPart + xZero, boxHeight + yZero);
- this.ctx.lineTo(xPart + boxWidth + xZero, boxHeight + yZero);
- }
- xPart += boxWidth;
- }
- this.ctx.moveTo(xZero, yZero);
- this.ctx.lineTo(xZero, boxHeight + yZero);
- this.ctx.moveTo(xZero + totalWidth, yZero);
- this.ctx.lineTo(xZero + totalWidth, boxHeight + yZero);
- this.ctx.stroke();
- this.ctx.strokeStyle = beforeStyle;
- return this.ctx.lineWidth = beforeWidth;
- },
- _getPrevNextSelection: function(model) {
- var mNextSel, mPrevSel, modelNext, modelPrev;
- modelPrev = model.collection.prev(model);
- modelNext = model.collection.next(model);
- if (modelPrev != null) {
- mPrevSel = this._getSelection(modelPrev);
- }
- if (modelNext != null) {
- mNextSel = this._getSelection(modelNext);
- }
- return [mPrevSel, mNextSel];
- }
-});
-
-
-
-},{"./CanvasCharCache":97,"backbone-childs":3,"biojs-util-colorschemes":29,"jbone":50,"mouse-pos":51,"underscore":59}],99:[function(require,module,exports){
-var OverviewBox, colorSelector, jbone, mouse, selection, view, _;
-
-view = require("backbone-viewj");
-
-mouse = require("mouse-pos");
-
-selection = require("../g/selection/Selection");
-
-colorSelector = require("biojs-util-colorschemes").selector;
-
-jbone = require("jbone");
-
-_ = require("underscore");
-
-module.exports = OverviewBox = view.extend({
- className: "biojs_msa_overviewbox",
- tagName: "canvas",
- initialize: function(data) {
- this.g = data.g;
- this.listenTo(this.g.zoomer, "change:boxRectWidth change:boxRectHeight", this.render);
- this.listenTo(this.g.selcol, "add reset change", this.render);
- this.listenTo(this.g.columns, "change:hidden", this.render);
- this.listenTo(this.g.colorscheme, "change:showLowerCase", this.render);
- this.listenTo(this.model, "change", _.debounce(this.render, 5));
- this.color = colorSelector.getColor(this.g.colorscheme.get("scheme"));
- this.listenTo(this.g.colorscheme, "change:scheme", function() {
- this.color = colorSelector.getColor(this.g.colorscheme.get("scheme"));
- return this.render();
- });
- return this.dragStart = [];
- },
- events: {
- click: "_onclick",
- mousedown: "_onmousedown"
- },
- render: function() {
- var c, color, hidden, i, j, rectHeight, rectWidth, seq, showLowerCase, x, y, _i, _j, _ref, _ref1;
- this._createCanvas();
- this.el.textContent = "overview";
- this.ctx.fillStyle = "#999999";
- this.ctx.fillRect(0, 0, this.el.width, this.el.height);
- rectWidth = this.g.zoomer.get("boxRectWidth");
- rectHeight = this.g.zoomer.get("boxRectHeight");
- hidden = this.g.columns.get("hidden");
- showLowerCase = this.g.colorscheme.get("showLowerCase");
- y = -rectHeight;
- for (i = _i = 0, _ref = this.model.length - 1; _i <= _ref; i = _i += 1) {
- seq = this.model.at(i).get("seq");
- x = 0;
- y = y + rectHeight;
- if (this.model.at(i).get("hidden")) {
- console.log(this.model.at(i).get("hidden"));
- this.ctx.fillStyle = "grey";
- this.ctx.fillRect(0, y, seq.length * rectWidth, rectHeight);
- continue;
- }
- for (j = _j = 0, _ref1 = seq.length - 1; _j <= _ref1; j = _j += 1) {
- c = seq[j];
- if (showLowerCase) {
- c = c.toUpperCase();
- }
- color = this.color[c];
- if (hidden.indexOf(j) >= 0) {
- color = "grey";
- }
- if (color != null) {
- this.ctx.fillStyle = color;
- this.ctx.fillRect(x, y, rectWidth, rectHeight);
- }
- x = x + rectWidth;
- }
- }
- return this._drawSelection();
- },
- _drawSelection: function() {
- var i, maxHeight, pos, rectHeight, rectWidth, sel, seq, _i, _ref;
- if (this.dragStart.length > 0 && !this.prolongSelection) {
- return;
- }
- rectWidth = this.g.zoomer.get("boxRectWidth");
- rectHeight = this.g.zoomer.get("boxRectHeight");
- maxHeight = rectHeight * this.model.length;
- this.ctx.fillStyle = "#ffff00";
- this.ctx.globalAlpha = 0.9;
- for (i = _i = 0, _ref = this.g.selcol.length - 1; _i <= _ref; i = _i += 1) {
- sel = this.g.selcol.at(i);
- if (sel.get('type') === 'column') {
- this.ctx.fillRect(rectWidth * sel.get('xStart'), 0, rectWidth * (sel.get('xEnd') - sel.get('xStart') + 1), maxHeight);
- } else if (sel.get('type') === 'row') {
- seq = (this.model.filter(function(el) {
- return el.get('id') === sel.get('seqId');
- }))[0];
- pos = this.model.indexOf(seq);
- this.ctx.fillRect(0, rectHeight * pos, rectWidth * seq.get('seq').length, rectHeight);
- } else if (sel.get('type') === 'pos') {
- seq = (this.model.filter(function(el) {
- return el.get('id') === sel.get('seqId');
- }))[0];
- pos = this.model.indexOf(seq);
- this.ctx.fillRect(rectWidth * sel.get('xStart'), rectHeight * pos, rectWidth * (sel.get('xEnd') - sel.get('xStart') + 1), rectHeight);
- }
- }
- return this.ctx.globalAlpha = 1;
- },
- _onclick: function(evt) {
- return this.g.trigger("meta:click", {
- seqId: this.model.get("id", {
- evt: evt
- })
- });
- },
- _onmousemove: function(e) {
- var rect;
- if (this.dragStart.length === 0) {
- return;
- }
- this.render();
- this.ctx.fillStyle = "#ffff00";
- this.ctx.globalAlpha = 0.9;
- rect = this._calcSelection(mouse.abs(e));
- this.ctx.fillRect(rect[0][0], rect[1][0], rect[0][1] - rect[0][0], rect[1][1] - rect[1][0]);
- e.preventDefault();
- return e.stopPropagation();
- },
- _onmousedown: function(e) {
- this.dragStart = mouse.abs(e);
- this.dragStartRel = mouse.rel(e);
- if (e.ctrlKey || e.metaKey) {
- this.prolongSelection = true;
- } else {
- this.prolongSelection = false;
- }
- jbone(document.body).on('mousemove.overmove', (function(_this) {
- return function(e) {
- return _this._onmousemove(e);
- };
- })(this));
- jbone(document.body).on('mouseup.overup', (function(_this) {
- return function(e) {
- return _this._onmouseup(e);
- };
- })(this));
- return this.dragStart;
- },
- _calcSelection: function(dragMove) {
- var dragRel, i, rect, _i, _j;
- dragRel = [dragMove[0] - this.dragStart[0], dragMove[1] - this.dragStart[1]];
- for (i = _i = 0; _i <= 1; i = _i += 1) {
- dragRel[i] = this.dragStartRel[i] + dragRel[i];
- }
- rect = [[this.dragStartRel[0], dragRel[0]], [this.dragStartRel[1], dragRel[1]]];
- for (i = _j = 0; _j <= 1; i = _j += 1) {
- if (rect[i][1] < rect[i][0]) {
- rect[i] = [rect[i][1], rect[i][0]];
- }
- rect[i][0] = Math.max(rect[i][0], 0);
- }
- return rect;
- },
- _endSelection: function(dragEnd) {
- var args, i, j, rect, selis, _i, _j, _k, _ref, _ref1;
- jbone(document.body).off('.overmove');
- jbone(document.body).off('.overup');
- if (this.dragStart.length === 0) {
- return;
- }
- rect = this._calcSelection(dragEnd);
- for (i = _i = 0; _i <= 1; i = ++_i) {
- rect[0][i] = Math.floor(rect[0][i] / this.g.zoomer.get("boxRectWidth"));
- }
- for (i = _j = 0; _j <= 1; i = ++_j) {
- rect[1][i] = Math.floor(rect[1][i] / this.g.zoomer.get("boxRectHeight"));
- }
- rect[0][1] = Math.min(this.model.getMaxLength() - 1, rect[0][1]);
- rect[1][1] = Math.min(this.model.length - 1, rect[1][1]);
- selis = [];
- for (j = _k = _ref = rect[1][0], _ref1 = rect[1][1]; _k <= _ref1; j = _k += 1) {
- args = {
- seqId: this.model.at(j).get('id'),
- xStart: rect[0][0],
- xEnd: rect[0][1]
- };
- selis.push(new selection.possel(args));
- }
- this.dragStart = [];
- if (this.prolongSelection) {
- this.g.selcol.add(selis);
- } else {
- this.g.selcol.reset(selis);
- }
- this.g.zoomer.setLeftOffset(rect[0][0]);
- return this.g.zoomer.setTopOffset(rect[1][0]);
- },
- _onmouseup: function(e) {
- return this._endSelection(mouse.abs(e));
- },
- _onmouseout: function(e) {
- return this._endSelection(mouse.abs(e));
- },
- _createCanvas: function() {
- var rectHeight, rectWidth;
- rectWidth = this.g.zoomer.get("boxRectWidth");
- rectHeight = this.g.zoomer.get("boxRectHeight");
- this.el.height = this.model.length * rectHeight;
- this.el.width = this.model.getMaxLength() * rectWidth;
- this.ctx = this.el.getContext("2d");
- this.el.style.overflow = "scroll";
- return this.el.style.cursor = "crosshair";
- }
-});
-
-
-
-},{"../g/selection/Selection":67,"backbone-viewj":10,"biojs-util-colorschemes":29,"jbone":50,"mouse-pos":51,"underscore":59}],100:[function(require,module,exports){
-var AlignmentBody, HeaderBlock, OverviewBox, boneView, identityCalc, _;
-
-boneView = require("backbone-childs");
-
-AlignmentBody = require("./AlignmentBody");
-
-HeaderBlock = require("./header/HeaderBlock");
-
-OverviewBox = require("./OverviewBox");
-
-identityCalc = require("../algo/identityCalc");
-
-_ = require('underscore');
-
-module.exports = boneView.extend({
- initialize: function(data) {
- this.g = data.g;
- this.draw();
- this.listenTo(this.model, "reset", function() {
- this.isNotDirty = false;
- return this.rerender();
- });
- this.listenTo(this.model, "change:hidden", _.debounce(this.rerender, 10));
- this.listenTo(this.model, "sort", this.rerender);
- this.listenTo(this.model, "add", function() {
- return console.log("seq add");
- });
- this.listenTo(this.g.vis, "change:sequences", this.rerender);
- this.listenTo(this.g.vis, "change:overviewbox", this.rerender);
- return this.listenTo(this.g.visorder, "change", this.rerender);
- },
- draw: function() {
- var body, consensus, headerblock, overviewbox;
- this.removeViews();
- if (!this.isNotDirty) {
- consensus = this.g.consensus.getConsensus(this.model);
- identityCalc(this.model, consensus);
- this.isNotDirty = true;
- }
- if (this.g.vis.get("overviewbox")) {
- overviewbox = new OverviewBox({
- model: this.model,
- g: this.g
- });
- overviewbox.ordering = this.g.visorder.get('overviewBox');
- this.addView("overviewbox", overviewbox);
- }
- if (true) {
- headerblock = new HeaderBlock({
- model: this.model,
- g: this.g
- });
- headerblock.ordering = this.g.visorder.get('headerBox');
- this.addView("headerblock", headerblock);
- }
- body = new AlignmentBody({
- model: this.model,
- g: this.g
- });
- body.ordering = this.g.visorder.get('alignmentBody');
- return this.addView("body", body);
- },
- render: function() {
- this.renderSubviews();
- this.el.className = "biojs_msa_stage";
- return this;
- },
- rerender: function() {
- this.draw();
- return this.render();
- }
-});
-
-
-
-},{"../algo/identityCalc":61,"./AlignmentBody":96,"./OverviewBox":99,"./header/HeaderBlock":102,"backbone-childs":3,"underscore":59}],101:[function(require,module,exports){
-var ConservationView, dom, svg, view;
-
-view = require("backbone-viewj");
-
-dom = require("dom-helper");
-
-svg = require("../../utils/svg");
-
-ConservationView = view.extend({
- className: "biojs_msa_conserv",
- initialize: function(data) {
- this.g = data.g;
- this.listenTo(this.g.zoomer, "change:stepSize change:labelWidth change:columnWidth", this.render);
- this.listenTo(this.g.vis, "change:labels change:metacell", this.render);
- this.listenTo(this.g.columns, "change:scaling", this.render);
- this.listenTo(this.model, "reset", this.render);
- return this.manageEvents();
- },
- render: function() {
- var avgHeight, cellWidth, height, hidden, i, maxHeight, n, nMax, rect, s, stepSize, width, x, _i, _ref;
- this.g.columns.calcConservation(this.model);
- dom.removeAllChilds(this.el);
- nMax = this.model.getMaxLength();
- cellWidth = this.g.zoomer.get("columnWidth");
- maxHeight = 20;
- width = cellWidth * (nMax - this.g.columns.get('hidden').length);
- console.log(this.g.columns.get('hidden'));
- s = svg.base({
- height: maxHeight,
- width: width
- });
- s.style.display = "inline-block";
- s.style.cursor = "pointer";
- stepSize = this.g.zoomer.get("stepSize");
- hidden = this.g.columns.get("hidden");
- x = 0;
- n = 0;
- while (n < nMax) {
- if (hidden.indexOf(n) >= 0) {
- n += stepSize;
- continue;
- }
- width = cellWidth * stepSize;
- avgHeight = 0;
- for (i = _i = 0, _ref = stepSize - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; i = 0 <= _ref ? ++_i : --_i) {
- avgHeight += this.g.columns.get("conserv")[n];
- }
- height = maxHeight * (avgHeight / stepSize);
- rect = svg.rect({
- x: x,
- y: maxHeight - height,
- width: width - cellWidth / 4,
- height: height,
- style: "stroke:red;stroke-width:1;"
- });
- rect.rowPos = n;
- s.appendChild(rect);
- x += width;
- n += stepSize;
- }
- this.el.appendChild(s);
- return this;
- },
- _onclick: function(evt) {
- var i, rowPos, stepSize, _i, _ref, _results;
- rowPos = evt.target.rowPos;
- stepSize = this.g.zoomer.get("stepSize");
- _results = [];
- for (i = _i = 0, _ref = stepSize - 1; _i <= _ref; i = _i += 1) {
- _results.push(this.g.trigger("bar:click", {
- rowPos: rowPos + i,
- evt: evt
- }));
- }
- return _results;
- },
- manageEvents: function() {
- var events;
- events = {};
- if (this.g.config.get("registerMouseClicks")) {
- events.click = "_onclick";
- }
- if (this.g.config.get("registerMouseHover")) {
- events.mousein = "_onmousein";
- events.mouseout = "_onmouseout";
- }
- this.delegateEvents(events);
- this.listenTo(this.g.config, "change:registerMouseHover", this.manageEvents);
- return this.listenTo(this.g.config, "change:registerMouseClick", this.manageEvents);
- },
- _onmousein: function(evt) {
- var rowPos;
- rowPos = this.g.zoomer.get("stepSize" * evt.rowPos);
- return this.g.trigger("bar:mousein", {
- rowPos: rowPos,
- evt: evt
- });
- },
- _onmouseout: function(evt) {
- var rowPos;
- rowPos = this.g.zoomer.get("stepSize" * evt.rowPos);
- return this.g.trigger("bar:mouseout", {
- rowPos: rowPos,
- evt: evt
- });
- }
-});
-
-module.exports = ConservationView;
-
-
-
-},{"../../utils/svg":95,"backbone-viewj":10,"dom-helper":49}],102:[function(require,module,exports){
-var ConservationView, MarkerView, boneView, identityCalc, _;
-
-MarkerView = require("./MarkerView");
-
-ConservationView = require("./ConservationView");
-
-identityCalc = require("../../algo/identityCalc");
-
-boneView = require("backbone-childs");
-
-_ = require('underscore');
-
-module.exports = boneView.extend({
- initialize: function(data) {
- this.g = data.g;
- this.blockEvents = false;
- this.listenTo(this.g.vis, "change:markers change:conserv", function() {
- this.draw();
- return this.render();
- });
- this.listenTo(this.g.vis, "change", this._setSpacer);
- this.listenTo(this.g.zoomer, "change:alignmentWidth", function() {
- return this._adjustWidth();
- });
- this.listenTo(this.g.zoomer, "change:_alignmentScrollLeft", this._adjustScrollingLeft);
- this.listenTo(this.g.columns, "change:hidden", function() {
- this.draw();
- return this.render();
- });
- this.draw();
- this._onscroll = this._sendScrollEvent;
- return this.g.vis.once('change:loaded', this._adjustScrollingLeft, this);
- },
- events: {
- "scroll": "_onscroll"
- },
- draw: function() {
- var consensus, conserv, marker;
- this.removeViews();
- if (!this.isNotDirty) {
- consensus = this.g.consensus.getConsensus(this.model);
- identityCalc(this.model, consensus);
- this.isNotDirty = true;
- }
- if (this.g.vis.get("conserv")) {
- conserv = new ConservationView({
- model: this.model,
- g: this.g
- });
- conserv.ordering = -20;
- this.addView("conserv", conserv);
- }
- if (this.g.vis.get("markers")) {
- marker = new MarkerView({
- model: this.model,
- g: this.g
- });
- marker.ordering = -10;
- return this.addView("marker", marker);
- }
- },
- render: function() {
- this.renderSubviews();
- this._setSpacer();
- this.el.className = "biojs_msa_header";
- this.el.style.overflowX = "auto";
- this._adjustWidth();
- this._adjustScrollingLeft();
- return this;
- },
- _sendScrollEvent: function() {
- if (!this.blockEvents) {
- this.g.zoomer.set("_alignmentScrollLeft", this.el.scrollLeft, {
- origin: "header"
- });
- }
- return this.blockEvents = false;
- },
- _adjustScrollingLeft: function(model, value, options) {
- var scrollLeft;
- if (((options != null ? options.origin : void 0) == null) || options.origin !== "header") {
- scrollLeft = this.g.zoomer.get("_alignmentScrollLeft");
- this.blockEvents = true;
- return this.el.scrollLeft = scrollLeft;
- }
- },
- _setSpacer: function() {
- return this.el.style.marginLeft = this._getLabelWidth() + "px";
- },
- _getLabelWidth: function() {
- var paddingLeft;
- paddingLeft = 0;
- if (this.g.vis.get("labels")) {
- paddingLeft += this.g.zoomer.get("labelWidth");
- }
- if (this.g.vis.get("metacell")) {
- paddingLeft += this.g.zoomer.get("metaWidth");
- }
- return paddingLeft;
- },
- _adjustWidth: function() {
- return this.el.style.width = this.g.zoomer.get("alignmentWidth") + "px";
- }
-});
-
-
-
-},{"../../algo/identityCalc":61,"./ConservationView":101,"./MarkerView":103,"backbone-childs":3,"underscore":59}],103:[function(require,module,exports){
-var HeaderView, dom, jbone, svg, view;
-
-view = require("backbone-viewj");
-
-dom = require("dom-helper");
-
-svg = require("../../utils/svg");
-
-jbone = require("jbone");
-
-HeaderView = view.extend({
- className: "biojs_msa_marker",
- initialize: function(data) {
- this.g = data.g;
- this.listenTo(this.g.zoomer, "change:stepSize change:labelWidth change:columnWidth change:markerStepSize change:markerFontsize", this.render);
- this.listenTo(this.g.vis, "change:labels change:metacell", this.render);
- return this.manageEvents();
- },
- render: function() {
- var cellWidth, container, hidden, n, nMax, span, stepSize;
- dom.removeAllChilds(this.el);
- this.el.style.fontSize = this.g.zoomer.get("markerFontsize");
- container = document.createElement("span");
- n = 0;
- cellWidth = this.g.zoomer.get("columnWidth");
- nMax = this.model.getMaxLength();
- stepSize = this.g.zoomer.get("stepSize");
- hidden = this.g.columns.get("hidden");
- while (n < nMax) {
- if (hidden.indexOf(n) >= 0) {
- this.markerHidden(span, n, stepSize);
- n += stepSize;
- continue;
- }
- span = document.createElement("span");
- span.style.width = (cellWidth * stepSize) + "px";
- span.style.display = "inline-block";
- if ((n + 1) % this.g.zoomer.get('markerStepSize') === 0) {
- span.textContent = n + 1;
- } else {
- span.textContent = ".";
- }
- span.rowPos = n;
- n += stepSize;
- container.appendChild(span);
- }
- this.el.appendChild(container);
- return this;
- },
- markerHidden: function(span, n, stepSize) {
- var hidden, index, j, length, min, nMax, prevHidden, s, triangle, _i, _j;
- hidden = this.g.columns.get("hidden").slice(0);
- min = Math.max(0, n - stepSize);
- prevHidden = true;
- for (j = _i = min; _i <= n; j = _i += 1) {
- prevHidden &= hidden.indexOf(j) >= 0;
- }
- if (prevHidden) {
- return;
- }
- nMax = this.model.getMaxLength();
- length = 0;
- index = -1;
- for (n = _j = n; _j <= nMax; n = _j += 1) {
- if (!(index >= 0)) {
- index = hidden.indexOf(n);
- }
- if (hidden.indexOf(n) >= 0) {
- length++;
- } else {
- break;
- }
- }
- s = svg.base({
- height: 10,
- width: 10
- });
- s.style.position = "relative";
- triangle = svg.polygon({
- points: "0,0 5,5 10,0",
- style: "fill:lime;stroke:purple;stroke-width:1"
- });
- jbone(triangle).on("click", (function(_this) {
- return function(evt) {
- hidden.splice(index, length);
- return _this.g.columns.set("hidden", hidden);
- };
- })(this));
- s.appendChild(triangle);
- span.appendChild(s);
- return s;
- },
- manageEvents: function() {
- var events;
- events = {};
- if (this.g.config.get("registerMouseClicks")) {
- events.click = "_onclick";
- }
- if (this.g.config.get("registerMouseHover")) {
- events.mousein = "_onmousein";
- events.mouseout = "_onmouseout";
- }
- this.delegateEvents(events);
- this.listenTo(this.g.config, "change:registerMouseHover", this.manageEvents);
- return this.listenTo(this.g.config, "change:registerMouseClick", this.manageEvents);
- },
- _onclick: function(evt) {
- var rowPos, stepSize;
- rowPos = evt.target.rowPos;
- stepSize = this.g.zoomer.get("stepSize");
- return this.g.trigger("column:click", {
- rowPos: rowPos,
- stepSize: stepSize,
- evt: evt
- });
- },
- _onmousein: function(evt) {
- var rowPos, stepSize;
- rowPos = this.g.zoomer.get("stepSize" * evt.rowPos);
- stepSize = this.g.zoomer.get("stepSize");
- return this.g.trigger("column:mousein", {
- rowPos: rowPos,
- stepSize: stepSize,
- evt: evt
- });
- },
- _onmouseout: function(evt) {
- var rowPos, stepSize;
- rowPos = this.g.zoomer.get("stepSize" * evt.rowPos);
- stepSize = this.g.zoomer.get("stepSize");
- return this.g.trigger("column:mouseout", {
- rowPos: rowPos,
- stepSize: stepSize,
- evt: evt
- });
- }
-});
-
-module.exports = HeaderView;
-
-
-
-},{"../../utils/svg":95,"backbone-viewj":10,"dom-helper":49,"jbone":50}],104:[function(require,module,exports){
-var LabelRowView, boneView;
-
-LabelRowView = require("./LabelRowView");
-
-boneView = require("backbone-childs");
-
-module.exports = boneView.extend({
- initialize: function(data) {
- this.g = data.g;
- this.draw();
- this.listenTo(this.g.zoomer, "change:_alignmentScrollTop", this._adjustScrollingTop);
- return this.g.vis.once('change:loaded', this._adjustScrollingTop, this);
- },
- draw: function() {
- var i, view, _i, _ref, _results;
- this.removeViews();
- _results = [];
- for (i = _i = 0, _ref = this.model.length - 1; _i <= _ref; i = _i += 1) {
- if (this.model.at(i).get('hidden')) {
- continue;
- }
- view = new LabelRowView({
- model: this.model.at(i),
- g: this.g
- });
- view.ordering = i;
- _results.push(this.addView("row_" + i, view));
- }
- return _results;
- },
- events: {
- "scroll": "_sendScrollEvent"
- },
- _sendScrollEvent: function() {
- return this.g.zoomer.set("_alignmentScrollTop", this.el.scrollTop, {
- origin: "label"
- });
- },
- _adjustScrollingTop: function() {
- return this.el.scrollTop = this.g.zoomer.get("_alignmentScrollTop");
- },
- render: function() {
- this.renderSubviews();
- this.el.className = "biojs_msa_labelblock";
- this.el.style.display = "inline-block";
- this.el.style.verticalAlign = "top";
- this.el.style.height = this.g.zoomer.get("alignmentHeight") + "px";
- this.el.style.overflowY = "auto";
- this.el.style.overflowX = "hidden";
- this.el.style.fontSize = "" + (this.g.zoomer.get("labelFontsize"));
- this.el.style.lineHeight = "" + (this.g.zoomer.get("labelLineHeight"));
- return this;
- }
-});
-
-
-
-},{"./LabelRowView":105,"backbone-childs":3}],105:[function(require,module,exports){
-var LabelView, MetaView, boneView;
-
-boneView = require("backbone-childs");
-
-LabelView = require("./LabelView");
-
-MetaView = require("./MetaView");
-
-module.exports = boneView.extend({
- initialize: function(data) {
- this.g = data.g;
- this.draw();
- this.listenTo(this.g.vis, "change:labels", this.drawR);
- return this.listenTo(this.g.vis, "change:metacell", this.drawR);
- },
- draw: function() {
- this.removeViews();
- if (this.g.vis.get("labels")) {
- this.addView("labels", new LabelView({
- model: this.model,
- g: this.g
- }));
- }
- if (this.g.vis.get("metacell")) {
- return this.addView("metacell", new MetaView({
- model: this.model,
- g: this.g
- }));
- }
- },
- drawR: function() {
- this.draw();
- return this.render();
- },
- render: function() {
- this.renderSubviews();
- this.el.setAttribute("class", "biojs_msa_labelrow");
- this.el.style.height = this.g.zoomer.get("rowHeight");
- return this;
- }
-});
-
-
-
-},{"./LabelView":106,"./MetaView":107,"backbone-childs":3}],106:[function(require,module,exports){
-var LabelView, dom, view;
-
-view = require("backbone-viewj");
-
-dom = require("dom-helper");
-
-LabelView = view.extend({
- initialize: function(data) {
- this.seq = data.seq;
- this.g = data.g;
- return this.manageEvents();
- },
- manageEvents: function() {
- var events;
- events = {};
- if (this.g.config.get("registerMouseClicks")) {
- events.click = "_onclick";
- }
- if (this.g.config.get("registerMouseHover")) {
- events.mousein = "_onmousein";
- events.mouseout = "_onmouseout";
- }
- this.delegateEvents(events);
- this.listenTo(this.g.config, "change:registerMouseHover", this.manageEvents);
- this.listenTo(this.g.config, "change:registerMouseClick", this.manageEvents);
- this.listenTo(this.g.vis, "change:labelName", this.render);
- this.listenTo(this.g.vis, "change:labelId", this.render);
- this.listenTo(this.g.vis, "change:labelPartition", this.render);
- return this.listenTo(this.g.vis, "change:labelCheckbox", this.render);
- },
- render: function() {
- var checkBox, id, name, part;
- dom.removeAllChilds(this.el);
- this.el.style.width = "" + (this.g.zoomer.get("labelWidth")) + "px";
- this.el.style.height = "" + (this.g.zoomer.get("rowHeight")) + "px";
- this.el.setAttribute("class", "biojs_msa_labels");
- if (this.g.vis.get("labelCheckbox")) {
- checkBox = document.createElement("input");
- checkBox.setAttribute("type", "checkbox");
- checkBox.value = this.model.get('id');
- checkBox.name = "seq";
- this.el.appendChild(checkBox);
- }
- if (this.g.vis.get("labelId")) {
- id = document.createElement("span");
- id.textContent = this.model.get("id");
- id.style.width = this.g.zoomer.get("labelIdLength");
- id.style.display = "inline-block";
- this.el.appendChild(id);
- }
- if (this.g.vis.get("labelPartition")) {
- part = document.createElement("span");
- part.style.width = 15;
- part.textContent = this.model.get("partition");
- part.style.display = "inline-block";
- this.el.appendChild(id);
- this.el.appendChild(part);
- }
- if (this.g.vis.get("labelName")) {
- name = document.createElement("span");
- name.textContent = this.model.get("name");
- this.el.appendChild(name);
- }
- this.el.style.overflow = scroll;
- return this;
- },
- _onclick: function(evt) {
- var seqId;
- seqId = this.model.get("id");
- return this.g.trigger("row:click", {
- seqId: seqId,
- evt: evt
- });
- },
- _onmousein: function(evt) {
- var seqId;
- seqId = this.model.get("id");
- return this.g.trigger("row:mouseout", {
- seqId: seqId,
- evt: evt
- });
- },
- _onmouseout: function(evt) {
- var seqId;
- seqId = this.model.get("id");
- return this.g.trigger("row:mouseout", {
- seqId: seqId,
- evt: evt
- });
- }
-});
-
-module.exports = LabelView;
-
-
-
-},{"backbone-viewj":10,"dom-helper":49}],107:[function(require,module,exports){
-var MenuBuilder, MetaView, dom, view, _;
-
-view = require("backbone-viewj");
-
-MenuBuilder = require("../../menu/menubuilder");
-
-_ = require('underscore');
-
-dom = require("dom-helper");
-
-module.exports = MetaView = view.extend({
- className: "biojs_msa_metaview",
- initialize: function(data) {
- return this.g = data.g;
- },
- events: {
- click: "_onclick",
- mousein: "_onmousein",
- mouseout: "_onmouseout"
- },
- render: function() {
- var gapSpan, gaps, ident, identSpan, menu, seq, width;
- dom.removeAllChilds(this.el);
- this.el.style.display = "inline-block";
- width = this.g.zoomer.get("metaWidth");
- this.el.style.width = width - 5;
- this.el.style.paddingRight = 5;
- seq = this.model.get('seq');
- gaps = _.reduce(seq, (function(memo, c) {
- if (c === '-') {
- memo++;
- }
- return memo;
- }), 0);
- gaps = (gaps / seq.length).toFixed(1);
- gapSpan = document.createElement('span');
- gapSpan.textContent = gaps;
- gapSpan.style.display = "inline-block";
- gapSpan.style.width = 35;
- this.el.appendChild(gapSpan);
- ident = this.model.get('identity');
- identSpan = document.createElement('span');
- identSpan.textContent = ident.toFixed(2);
- identSpan.style.display = "inline-block";
- identSpan.style.width = 40;
- this.el.appendChild(identSpan);
- menu = new MenuBuilder("↗");
- menu.addNode("Uniprot", (function(_this) {
- return function(e) {
- return window.open("http://beta.uniprot.org/uniprot/Q7T2N8");
- };
- })(this));
- this.el.appendChild(menu.buildDOM());
- this.el.width = 10;
- this.el.style.height = "" + (this.g.zoomer.get("rowHeight")) + "px";
- return this.el.style.cursor = "pointer";
- },
- _onclick: function(evt) {
- return this.g.trigger("meta:click", {
- seqId: this.model.get("id", {
- evt: evt
- })
- });
- },
- _onmousein: function(evt) {
- return this.g.trigger("meta:mousein", {
- seqId: this.model.get("id", {
- evt: evt
- })
- });
- },
- _onmouseout: function(evt) {
- return this.g.trigger("meta:mouseout", {
- seqId: this.model.get("id", {
- evt: evt
- })
- });
- }
-});
-
-
-
-},{"../../menu/menubuilder":75,"backbone-viewj":10,"dom-helper":49,"underscore":59}],"biojs-io-clustal":[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-var Clustal, GenericReader, Seq, Str,
- __hasProp = {}.hasOwnProperty,
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
-
-Str = require("./strings");
-
-GenericReader = require("./generic_reader");
-
-Seq = require("./seq");
-
-module.exports = Clustal = (function(_super) {
- __extends(Clustal, _super);
-
- function Clustal() {
- return Clustal.__super__.constructor.apply(this, arguments);
- }
-
- Clustal.parse = function(text) {
- var blockstate, k, label, line, lines, match, regex, seqCounter, seqs, sequence;
- seqs = [];
- if (Object.prototype.toString.call(text) === '[object Array]') {
- lines = text;
- } else {
- lines = text.split("\n");
- }
- if (lines[0].slice(0, 6) === !"CLUSTAL") {
- throw new Error("Invalid CLUSTAL Header");
- }
- k = 0;
- blockstate = 1;
- seqCounter = 0;
- while (k < lines.length) {
- k++;
- line = lines[k];
- if ((line == null) || line.length === 0) {
- blockstate = 1;
- continue;
- }
- if (line.trim().length === 0) {
- blockstate = 1;
- continue;
- } else {
- if (Str.contains(line, "*")) {
- continue;
- }
- if (blockstate === 1) {
- seqCounter = 0;
- blockstate = 0;
- }
- regex = /^(?:\s*)(\S+)(?:\s+)(\S+)(?:\s*)(\d*)(?:\s*|$)/g;
- match = regex.exec(line);
- if (match != null) {
- label = match[1];
- sequence = match[2];
- if (seqCounter >= seqs.length) {
- seqs.push(new Seq(sequence, label, seqCounter));
- } else {
- seqs[seqCounter].seq += sequence;
- }
- seqCounter++;
- } else {
- console.log(line);
- }
- }
- }
- return seqs;
- };
-
- return Clustal;
-
-})(GenericReader);
-
-},{"./generic_reader":17,"./seq":18,"./strings":19}],"biojs-io-fasta":[function(require,module,exports){
-// Generated by CoffeeScript 1.8.0
-module.exports.parse = require("./parser");
-
-module.exports.writer = require("./writer");
-
-},{"./parser":21,"./writer":24}],"biojs-vis-msa":[function(require,module,exports){
-if (typeof biojs === 'undefined') {
- biojs = {};
-}
-if (typeof biojs.vis === 'undefined') {
- biojs.vis = {};
-}
-// use two namespaces
-window.msa = biojs.vis.msa = module.exports = require('./index');
-
-// TODO: how should this be bundled
-
-if (typeof biojs.io === 'undefined') {
- biojs.io = {};
-}
-// just bundle the two parsers
-window.biojs.io.fasta = require("biojs-io-fasta");
-window.biojs.io.clustal = require("biojs-io-clustal");
-window.biojs.xhr = require("nets");
-
-// simulate standalone flag
-window.biojsVisMsa = window.msa;
-
-require('./build/msa.css');
-
-},{"./build/msa.css":1,"./index":2,"biojs-io-clustal":undefined,"biojs-io-fasta":undefined,"nets":undefined}],"nets":[function(require,module,exports){
-var req = require('request')
-
-module.exports = Nets
-
-function Nets(uri, opts, cb) {
- req(uri, opts, cb)
-}
-},{"request":52}]},{},["biojs-vis-msa"])
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyaWZ5L25vZGVfbW9kdWxlcy9ic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ICAgIHJldHVybiBrZXlzO1xuICAgICAgfSxcblxuICAgICAgdW5pcXVlSWQ6IGZ1bmN0aW9uKHByZWZpeCkge1xuICAgICAgICB2YXIgaWQgPSArK2lkQ291bnRlciArICcnO1xuICAgICAgICByZXR1cm4gcHJlZml4ID8gcHJlZml4ICsgaWQgOiBpZDtcbiAgICAgIH0sXG5cbiAgICAgIGhhczogZnVuY3Rpb24ob2JqLCBrZXkpIHtcbiAgICAgICAgcmV0dXJuIGhhc093blByb3BlcnR5LmNhbGwob2JqLCBrZXkpO1xuICAgICAgfSxcblxuICAgICAgZWFjaDogZnVuY3Rpb24ob2JqLCBpdGVyYXRvciwgY29udGV4dCkge1xuICAgICAgICBpZiAob2JqID09IG51bGwpIHJldHVybjtcbiAgICAgICAgaWYgKG5hdGl2ZUZvckVhY2ggJiYgb2JqLmZvckVhY2ggPT09IG5hdGl2ZUZvckVhY2gpIHtcbiAgICAgICAgICBvYmouZm9yRWFjaChpdGVyYXRvciwgY29udGV4dCk7XG4gICAgICAgIH0gZWxzZSBpZiAob2JqLmxlbmd0aCA9PT0gK29iai5sZW5ndGgpIHtcbiAgICAgICAgICBmb3IgKHZhciBpID0gMCwgbCA9IG9iai5sZW5ndGg7IGkgPCBsOyBpKyspIHtcbiAgICAgICAgICAgIGlmIChpdGVyYXRvci5jYWxsKGNvbnRleHQsIG9ialtpXSwgaSwgb2JqKSA9PT0gYnJlYWtlcikgcmV0dXJuO1xuICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICBmb3IgKHZhciBrZXkgaW4gb2JqKSB7XG4gICAgICAgICAgICBpZiAodGhpcy5oYXMob2JqLCBrZXkpKSB7XG4gICAgICAgICAgICAgIGlmIChpdGVyYXRvci5jYWxsKGNvbnRleHQsIG9ialtrZXldLCBrZXksIG9iaikgPT09IGJyZWFrZXIpIHJldHVybjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH0sXG5cbi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Btb2RlXG5qQm9uZS5ub0NvbmZsaWN0ID0gZnVuY3Rpb24oKSB7XG4gICAgd2luLiQgPSBfJDtcbiAgICB3aW4uakJvbmUgPSBfakJvbmU7XG5cbiAgICByZXR1cm4gakJvbmU7XG59O1xuXG5mbiA9IGpCb25lLmZuID0gakJvbmUucHJvdG90eXBlID0ge1xuICAgIGluaXQ6IGZ1bmN0aW9uKGVsZW1lbnQsIGRhdGEpIHtcbiAgICAgICAgdmFyIGVsZW1lbnRzLCB0YWcsIHdyYXBlciwgZnJhZ21lbnQ7XG5cbiAgICAgICAgaWYgKCFlbGVtZW50KSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcztcbiAgICAgICAgfVxuICAgICAgICBpZiAoaXNTdHJpbmcoZWxlbWVudCkpIHtcbiAgICAgICAgICAgIC8vIENyZWF0ZSBzaW5nbGUgRE9NIGVsZW1lbnRcbiAgICAgICAgICAgIGlmICh0YWcgPSBycXVpY2tTaW5nbGVUYWcuZXhlYyhlbGVtZW50KSkge1xuICAgICAgICAgICAgICAgIHRoaXNbMF0gPSBkb2MuY3JlYXRlRWxlbWVudCh0YWdbMV0pO1xuICAgICAgICAgICAgICAgIHRoaXMubGVuZ3RoID0gMTtcblxuICAgICAgICAgICAgICAgIGlmIChpc09iamVjdChkYXRhKSkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmF0dHIoZGF0YSk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICAvLyBDcmVhdGUgRE9NIGNvbGxlY3Rpb25cbiAgICAgICAgICAgIGlmICgodGFnID0gcnF1aWNrRXhwci5leGVjKGVsZW1lbnQpKSAmJiB0YWdbMV0pIHtcbiAgICAgICAgICAgICAgICBmcmFnbWVudCA9IGRvYy5jcmVhdGVEb2N1bWVudEZyYWdtZW50KCk7XG4gICAgICAgICAgICAgICAgd3JhcGVyID0gZG9jLmNyZWF0ZUVsZW1lbnQoXCJkaXZcIik7XG4gICAgICAgICAgICAgICAgd3JhcGVyLmlubmVySFRNTCA9IGVsZW1lbnQ7XG4gICAgICAgICAgICAgICAgd2hpbGUgKHdyYXBlci5sYXN0Q2hpbGQpIHtcbiAgICAgICAgICAgICAgICAgICAgZnJhZ21lbnQuYXBwZW5kQ2hpbGQod3JhcGVyLmZpcnN0Q2hpbGQpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbGVtZW50cyA9IHNsaWNlLmNhbGwoZnJhZ21lbnQuY2hpbGROb2Rlcyk7XG5cbiAgICAgICAgICAgICAgICByZXR1cm4gakJvbmUubWVyZ2UodGhpcywgZWxlbWVudHMpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgLy8gRmluZCBET00gZWxlbWVudHMgd2l0aCBxdWVyeVNlbGVjdG9yQWxsXG4gICAgICAgICAgICBpZiAoakJvbmUuaXNFbGVtZW50KGRhdGEpKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGpCb25lKGRhdGEpLmZpbmQoZWxlbWVudCk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgICAgZWxlbWVudHMgPSBkb2MucXVlcnlTZWxlY3RvckFsbChlbGVtZW50KTtcblxuICAgICAgICAgICAgICAgIHJldHVybiBqQm9uZS5tZXJnZSh0aGlzLCBlbGVtZW50cyk7XG4gICAgICAgICAgICB9IGNhdGNoIChlKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgLy8gV3JhcCBET01FbGVtZW50XG4gICAgICAgIGlmIChlbGVtZW50Lm5vZGVUeXBlKSB7XG4gICAgICAgICAgICB0aGlzWzBdID0gZWxlbWVudDtcbiAgICAgICAgICAgIHRoaXMubGVuZ3RoID0gMTtcblxuICAgICAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgICAgIH1cbiA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O1xuICAgIH1cblxuICAgIGlmIChvYmoubm9kZVR5cGUgPT09IDEgJiYgbGVuZ3RoKSB7XG4gICAgICAgIHJldHVybiB0cnVlO1xuICAgIH1cblxuICAgIHJldHVybiBpc0FycmF5KHR5cGUpIHx8IGxlbmd0aCA9PT0gMCB8fFxuICAgICAgICB0eXBlb2YgbGVuZ3RoID09PSBcIm51bWJlclwiICYmIGxlbmd0aCA+IDAgJiYgKGxlbmd0aCAtIDEpIGluIG9iajtcbn1cblxuakJvbmUubWVyZ2UgPSBmdW5jdGlvbihmaXJzdCwgc2Vjb25kKSB7XG4gICAgdmFyIGwgPSBzZWNvbmQubGVuZ3RoLFxuICAgICAgICBpID0gZmlyc3QubGVuZ3RoLFxuICAgICAgICBqID0gMDtcblxuICAgIHdoaWxlIChqIDwgbCkge1xuICAgICAgICBmaXJzdFtpKytdID0gc2Vjb25kW2orK107XG4gICAgfVxuXG4gICAgZmlyc3QubGVuZ3RoID0gaTtcblxuICAgIHJldHVybiBmaXJzdDtcbn07XG5cbmpCb25lLmNvbnRhaW5zID0gZnVuY3Rpb24oY29udGFpbmVyLCBjb250YWluZWQpIHtcbiAgICB2YXIgcmVzdWx0O1xuXG4gICAgY29udGFpbmVyLnJldmVyc2UoKS5zb21lKGZ1bmN0aW9uKGVsKSB7XG4gICAgICAgIGlmIChlbC5jb250YWlucyhjb250YWluZWQpKSB7XG4gICAgICAgICAgICByZXR1cm4gcmVzdWx0ID0gZWw7XG4gICAgICAgIH1cbiAgICB9KTtcblxuICAgIHJldHVybiByZXN1bHQ7XG59O1xuXG5qQm9uZS5leHRlbmQgPSBmdW5jdGlvbih0YXJnZXQpIHtcbiAgICB2YXIgaywga2wsIGksIHRnO1xuXG4gICAgc3BsaWNlLmNhbGwoYXJndW1lbnRzLCAxKS5mb3JFYWNoKGZ1bmN0aW9uKG9iamVjdCkge1xuICAgICAgICBpZiAoIW9iamVjdCkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgayA9IGtleXMob2JqZWN0KTtcbiAgICAgICAga2wgPSBrLmxlbmd0aDtcbiAgICAgICAgaSA9IDA7XG4gICAgICAgIHRnID0gdGFyZ2V0OyAvL2NhY2hpbmcgdGFyZ2V0IGZvciBwZXJmIGltcHJvdmVtZW50XG5cbiAgICAgICAgZm9yICg7IGkgPCBrbDsgaSsrKSB7XG4gICAgICAgICAgICB0Z1trW2ldXSA9IG9iamVjdFtrW2ldXTtcbiAgICAgICAgfVxuICAgIH0pO1xuXG4gICAgcmV0dXJuIHRhcmdldDtcbn07XG5cbmpCb25lLm1ha2VBcnJheSA9IGZ1bmN0aW9uKGFyciwgcmVzdWx0cykge1xuICAgIHZhciByZXQgPSByZXN1bHRzIHx8IFtdO1xuXG4gICAgaWYgKGFyciAhPT0gbnVsbCkge1xuICAgICAgICBpZiAoaXNBcnJheWxpa2UoYXJyKSkge1xuICAgICAgICAgICAgakJvbmUubWVyZ2UocmV0LCBpc1N0cmluZyhhcnIpID8gW2Fycl0gOiBhcnIpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcmV0LnB1c2goYXJyKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiByZXQ7XG59O1xuXG5mdW5jdGlvbiBCb25lRXZlbnQoZSwgZGF0YSkge1xuICAgIHZhciBrZXksIHNldHRlcjtcblxuICAgIHRoaXMub3JpZ2luYWxFdmVudCA9IGU7XG5cbiAgICBzZXR0ZXIgPSBmdW5jdGlvbihrZXksIGUpIHtcbiAgICAgICAgaWYgKGtleSA9PT0gXCJwcmV2ZW50RGVmYXVsdFwiKSB7XG4gICAgICAgICAgICB0aGlzW2tleV0gPSBmdW5jdGlvbigpIHtcbiAgICAgICAgICAgICAgICB0aGlzLmRlZmF1bHRQcmV2ZW50ZWQgPSB0cnVlO1xuICAgICAgICAgICAgICAgIHJldHVybiBlW2tleV0oKTtcbiAgICAgICAgICAgIH07XG4gICAgICAgIH0gZWxzZSBpZiAoaXNGdW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AgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgZXhwZWN0ZWRUYXJnZXQgPSBudWxsO1xuICAgICAgICAgICAgICAgIGlmICghdGFyZ2V0KSB7XG4gICAgICAgICAgICAgICAgICAgIGNhbGxiYWNrLmNhbGwoZWwsIGUpO1xuICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAofmpCb25lKGVsKS5maW5kKHRhcmdldCkuaW5kZXhPZihlLnRhcmdldCkgfHwgKGV4cGVjdGVkVGFyZ2V0ID0gakJvbmUuY29udGFpbnMoakJvbmUoZWwpLmZpbmQodGFyZ2V0KSwgZS50YXJnZXQpKSkge1xuICAgICAgICAgICAgICAgICAgICBleHBlY3RlZFRhcmdldCA9IGV4cGVjdGVkVGFyZ2V0IHx8IGUudGFyZ2V0O1xuICAgICAgICAgICAgICAgICAgICBlID0gbmV3IEJvbmVFdmVudChlLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjdXJyZW50VGFyZ2V0OiBleHBlY3RlZFRhcmdldFxuICAgICAgICAgICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgICAgICAgICBjYWxsYmFjay5jYWxsKGV4cGVjdGVkVGFyZ2V0LCBlKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9O1xuXG4gICAgICAgICAgICBldmVudHNbZXZlbnRUeXBlXS5wdXNoKHtcbiAgICAgICAgICAgICAgICBuYW1lc3BhY2U6IG5hbWVzcGFjZSxcbiAgICAgICAgICAgICAgICBmbjogZm4sXG4gICAgICAgICAgICAgICAgb3JpZ2luZm46IGNhbGxiYWNrXG4gICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgZWwuYWRkRXZlbnRMaXN0ZW5lciAmJiBlbC5hZGRFdmVudExpc3RlbmVyKGV2ZW50VHlwZSwgZm4sIGZhbHNlKTtcbiAgICAgICAgfSk7XG4gICAgfTtcblxuICAgIGZvciAoOyBpIDwgbGVuZ3RoOyBpKyspIHtcbiAgICAgICAgYWRkTGlzdGVuZXIodGhpc1tpXSk7XG4gICAgfVxuXG4gICAgcmV0dXJuIHRoaXM7XG59O1xuXG5mbi5vbmUgPSBmdW5jdGlvbihldmVudCkge1xuICAgIHZhciBhcmdzID0gYXJndW1lbnRzLFxuICAgICAgICBpID0gMCxcbiAgICAgICAgbGVuZ3RoID0gdGhpcy5sZW5ndGgsXG4gICAgICAgIGNhbGxiYWNrLCB0YXJnZXQsIGFkZExpc3RlbmVyO1xuXG4gICAgaWYgKGFyZ3MubGVuZ3RoID09PSAyKSB7XG4gICAgICAgIGNhbGxiYWNrID0gYXJnc1sxXTtcbiAgICB9IGVsc2Uge1xuICAgICAgICB0YXJnZXQgPSBhcmdzWzFdLCBjYWxsYmFjayA9IGFyZ3NbMl07XG4gICAgfVxuXG4gICAgYWRkTGlzdGVuZXIgPSBmdW5jdGlvbihlbCkge1xuICAgICAgICBldmVudC5zcGxpdChcIiBcIikuZm9yRWFjaChmdW5jdGlvbihldmVudCkge1xuICAgICAgICAgICAgdmFyIGZuID0gZnVuY3Rpb24oZSkge1xuICAgICAgICAgICAgICAgIGpCb25lKGVsKS5vZmYoZXZlbnQsIGZuKTtcbiAgICAgICAgICAgICAgICBjYWxsYmFjay5jYWxsKGVsLCBlKTtcbiAgICAgICAgICAgIH07XG5cbiAgICAgICAgICAgIGlmICghdGFyZ2V0KSB7XG4gICAgICAgICAgICAgICAgakJvbmUoZWwpLm9uKGV2ZW50LCBmbik7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGpCb25lKGVsKS5vbihldmVudCwgdGFyZ2V0LCBmbik7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH07XG5cbiAgICBmb3IgKDsgaSA8IGxlbmd0aDsgaSsrKSB7XG4gICAgICAgIGFkZExpc3RlbmVyKHRoaXNbaV0pO1xuICAgIH1cblxuICAgIHJldHVybiB0aGlzO1xufTtcblxuZm4udHJpZ2dlciA9I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AgICAgICByZW1vdmVMaXN0ZW5lciA9IGZ1bmN0aW9uKGV2ZW50cywgZXZlbnRUeXBlLCBpbmRleCwgZWwsIGUpIHtcbiAgICAgICAgICAgIHZhciBjYWxsYmFjaztcblxuICAgICAgICAgICAgLy8gZ2V0IGNhbGxiYWNrXG4gICAgICAgICAgICBpZiAoKGZuICYmIGUub3JpZ2luZm4gPT09IGZuKSB8fCAhZm4pIHtcbiAgICAgICAgICAgICAgICBjYWxsYmFjayA9IGUuZm47XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChldmVudHNbZXZlbnRUeXBlXVtpbmRleF0uZm4gPT09IGNhbGxiYWNrKSB7XG4gICAgICAgICAgICAgICAgZWwucmVtb3ZlRXZlbnRMaXN0ZW5lcihldmVudFR5cGUsIGNhbGxiYWNrKTtcblxuICAgICAgICAgICAgICAgIC8vIHJlbW92ZSBoYW5kbGVyIGZyb20gY2FjaGVcbiAgICAgICAgICAgICAgICBqQm9uZS5fY2FjaGUuZXZlbnRzW2pCb25lLmdldERhdGEoZWwpLmppZF1bZXZlbnRUeXBlXS5zcGxpY2UoaW5kZXgsIDEpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBldmVudHMsIG5hbWVzcGFjZSwgcmVtb3ZlTGlzdGVuZXJzLCBldmVudFR5cGU7XG5cbiAgICByZW1vdmVMaXN0ZW5lcnMgPSBmdW5jdGlvbihlbCkge1xuICAgICAgICB2YXIgbCwgZXZlbnRzQnlUeXBlLCBlO1xuXG4gICAgICAgIGV2ZW50cyA9IGpCb25lLmdldERhdGEoZWwpLmV2ZW50cztcblxuICAgICAgICBpZiAoIWV2ZW50cykge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gcmVtb3ZlIGFsbCBldmVudHNcbiAgICAgICAgaWYgKCFldmVudCAmJiBldmVudHMpIHtcbiAgICAgICAgICAgIHJldHVybiBrZXlzKGV2ZW50cykuZm9yRWFjaChmdW5jdGlvbihldmVudFR5cGUpIHtcbiAgICAgICAgICAgICAgICBldmVudHNCeVR5cGUgPSBldmVudHNbZXZlbnRUeXBlXTtcbiAgICAgICAgICAgICAgICBsID0gZXZlbnRzQnlUeXBlLmxlbmd0aDtcblxuICAgICAgICAgICAgICAgIHdoaWxlKGwtLSkge1xuICAgICAgICAgICAgICAgICAgICByZW1vdmVMaXN0ZW5lcihldmVudHMsIGV2ZW50VHlwZSwgbCwgZWwsIGV2ZW50c0J5VHlwZVtsXSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cblxuICAgICAgICBldmVudC5zcGxpdChcIiBcIikuZm9yRWFjaChmdW5jdGlvbihldmVudCkge1xuICAgICAgICAgICAgZXZlbnRUeXBlID0gZXZlbnQuc3BsaXQoXCIuXCIpWzBdO1xuICAgICAgICAgICAgbmFtZXNwYWNlID0gZXZlbnQuc3BsaXQoXCIuXCIpLnNwbGljZSgxKS5qb2luKFwiLlwiKTtcblxuICAgICAgICAgICAgLy8gcmVtb3ZlIG5hbWVkIGV2ZW50c1xuICAgICAgICAgICAgaWYgKGV2ZW50c1tldmVudFR5cGVdKSB7XG4gICAgICAgICAgICAgICAgZXZlbnRzQnlUeXBlID0gZXZlbnRzW2V2ZW50VHlwZV07XG4gICAgICAgICAgICAgICAgbCA9IGV2ZW50c0J5VHlwZS5sZW5ndGg7XG5cbiAgICAgICAgICAgICAgICB3aGlsZShsLS0pIHtcbiAgICAgICAgICAgICAgICAgICAgZSA9IGV2ZW50c0J5VHlwZVtsXTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKCFuYW1lc3BhY2UgfHwgKG5hbWVzcGFjZSAmJiBlLm5hbWVzcGFjZSA9PT0gbmFtZXNwYWNlKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmVtb3ZlTGlzdGVuZXIoZXZlbnRzLCBldmVudFR5cGUsIGwsIGVsLCBlKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIC8vIHJlbW92ZSBhbGwgbmFtZXNwYWNlZCBldmVudHNcbiAgICAgICAgICAgIGVsc2UgaWYgKG5hbWVzcGFjZSkge1xuICAgICAgICAgICAgICAgIGtleXMoZXZlbnRzKS5mb3JFYWNoKGZ1bmN0aW9uKGV2ZW50VHlwZSkge1xuICAgICAgICAgICAgICAgICAgICBldmVudHNCeVR5cGUgPSBldmVudHNbZXZlbnRUeXBlXTtcbiAgICAgICAgICAgICAgICAgICAgbCA9IGV2ZW50c0J5VHlwZS5sZW5ndGg7XG5cbiAgICAgICAgICAgICAgICAgICAgd2hpbGUobC0tKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBlID0gZXZlbnRzQnlUeXBlW2xdO1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGUubmFtZXNwYWNlLnNwbGl0KFwiLlwiKVswXSA9PT0gbmFtZXNwYWNlLnNwbGl0KFwiLlwiKVswXSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlbW92ZUxpc3RlbmVyKGV2ZW50cywgZXZlbnRUeXBlLCBsLCBlbCwgZSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgfTtcblxuICAgIGZvciAoOyBpIDwgbGVuZ3RoOyBpKyspIHtcbiAgICAgICAgcmVtb3ZlTGlzdGVuZXJzKHRoaXNbaV0pO1xuICAgIH1cblxuICAgIHJldHVybiB0aGlzO1xufTtcblxuZm4uZmluZCA9IGZ1bmN0aW9uKHNlbGVjdG9yKSB7XG4gICAgdmFyIHJlc3VsdHMgPSBbXSxcbiAgICAgICAgaSA9IDAsXG4gICAgICAgIGxlbmd0aCA9IHRoaXMubGVuZ3RoLFxuICAgICAgICBmaW5kZXIgPSBmdW5jdGlvbihl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cblxuICAgIC8vIFNldCBhdHRyaWJ1dGVzXG4gICAgaWYgKGFyZ3MubGVuZ3RoID09PSAyKSB7XG4gICAgICAgIHNldHRlciA9IGZ1bmN0aW9uKGVsKSB7XG4gICAgICAgICAgICBlbC5zdHlsZVtrZXldID0gdmFsdWU7XG4gICAgICAgIH07XG4gICAgfSBlbHNlIGlmIChpc09iamVjdChrZXkpKSB7XG4gICAgICAgIHNldHRlciA9IGZ1bmN0aW9uKGVsKSB7XG4gICAgICAgICAgICBrZXlzKGtleSkuZm9yRWFjaChmdW5jdGlvbihuYW1lKSB7XG4gICAgICAgICAgICAgICAgZWwuc3R5bGVbbmFtZV0gPSBrZXlbbmFtZV07XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfTtcbiAgICB9XG5cbiAgICBmb3IgKDsgaSA8IGxlbmd0aDsgaSsrKSB7XG4gICAgICAgIHNldHRlcih0aGlzW2ldKTtcbiAgICB9XG5cbiAgICByZXR1cm4gdGhpcztcbn07XG5cbmZuLmRhdGEgPSBmdW5jdGlvbihrZXksIHZhbHVlKSB7XG4gICAgdmFyIGFyZ3MgPSBhcmd1bWVudHMsIGRhdGEgPSB7fSxcbiAgICAgICAgaSA9IDAsXG4gICAgICAgIGxlbmd0aCA9IHRoaXMubGVuZ3RoLFxuICAgICAgICBzZXR0ZXIsXG4gICAgICAgIHNldFZhbHVlID0gZnVuY3Rpb24oZWwsIGtleSwgdmFsdWUpIHtcbiAgICAgICAgICAgIGlmIChpc09iamVjdCh2YWx1ZSkpIHtcbiAgICAgICAgICAgICAgICBlbC5qZGF0YSA9IGVsLmpkYXRhIHx8IHt9O1xuICAgICAgICAgICAgICAgIGVsLmpkYXRhW2tleV0gPSB2YWx1ZTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgZWwuZGF0YXNldFtrZXldID0gdmFsdWU7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIGdldFZhbHVlID0gZnVuY3Rpb24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gIHNldFZhbHVlKGVsLCBuYW1lLCBrZXlbbmFtZV0pO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH07XG4gICAgfSBlbHNlIGlmIChhcmdzLmxlbmd0aCA9PT0gMikge1xuICAgICAgICBzZXR0ZXIgPSBmdW5jdGlvbihlbCkge1xuICAgICAgICAgICAgc2V0VmFsdWUoZWwsIGtleSwgdmFsdWUpO1xuICAgICAgICB9O1xuICAgIH1cblxuICAgIGZvciAoOyBpIDwgbGVuZ3RoOyBpKyspIHtcbiAgICAgICAgc2V0dGVyKHRoaXNbaV0pO1xuICAgIH1cblxuICAgIHJldHVybiB0aGlzO1xufTtcblxuZm4ucmVtb3ZlRGF0YSA9IGZ1bmN0aW9uKGtleSkge1xuICAgIHZhciBpID0gMCxcbiAgICAgICAgbGVuZ3RoID0gdGhpcy5sZW5ndGgsXG4gICAgICAgIGpkYXRhLCBkYXRhc2V0O1xuXG4gICAgZm9yICg7IGkgPCBsZW5ndGg7IGkrKykge1xuICAgICAgICBqZGF0YSA9IHRoaXNbaV0uamRhdGE7XG4gICAgICAgIGRhdGFzZXQgPSB0aGlzW2ldLmRhdGFzZXQ7XG5cbiAgICAgICAgaWYgKGtleSkge1xuICAgICAgICAgICAgamRhdGEgJiYgamRhdGFba2V5XSAmJiBkZWxldGUgamRhdGFba2V5XTtcbiAgICAgICAgICAgIGRlbGV0ZSBkYXRhc2V0W2tleV07XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBmb3IgKGtleSBpbiBqZGF0YSkge1xuICAgICAgICAgICAgICAgIGRlbGV0ZSBqZGF0YVtrZXldO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBmb3IgKGtleSBpbiBkYXRhc2V0KSB7XG4gICAgICAgICAgICAgICAgZGVsZXRlIGRhdGFzZXRba2V5XTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiB0aGlzO1xufTtcblxuZm4uaHRtbCA9IGZ1b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ZhciBwcmV2aW91cyA9IDA7XG4gICAgaWYgKCFvcHRpb25zKSBvcHRpb25zID0ge307XG4gICAgdmFyIGxhdGVyID0gZnVuY3Rpb24oKSB7XG4gICAgICBwcmV2aW91cyA9IG9wdGlvbnMubGVhZGluZyA9PT0gZmFsc2UgPyAwIDogXy5ub3coKTtcbiAgICAgIHRpbWVvdXQgPSBudWxsO1xuICAgICAgcmVzdWx0ID0gZnVuYy5hcHBseShjb250ZXh0LCBhcmdzKTtcbiAgICAgIGlmICghdGltZW91dCkgY29udGV4dCA9IGFyZ3MgPSBudWxsO1xuICAgIH07XG4gICAgcmV0dXJuIGZ1bmN0aW9uKCkge1xuICAgICAgdmFyIG5vdyA9IF8ubm93KCk7XG4gICAgICBpZiAoIXByZXZpb3VzICYmIG9wdGlvbnMubGVhZGluZyA9PT0gZmFsc2UpIHByZXZpb3VzID0gbm93O1xuICAgICAgdmFyIHJlbWFpbmluZyA9IHdhaXQgLSAobm93IC0gcHJldmlvdXMpO1xuICAgICAgY29udGV4dCA9IHRoaXM7XG4gICAgICBhcmdzID0gYXJndW1lbnRzO1xuICAgICAgaWYgKHJlbWFpbmluZyA8PSAwIHx8IHJlbWFpbmluZyA+IHdhaXQpIHtcbiAgICAgICAgY2xlYXJUaW1lb3V0KHRpbWVvdXQpO1xuICAgICAgICB0aW1lb3V0ID0gbnVsbDtcbiAgICAgICAgcHJldmlvdXMgPSBub3c7XG4gICAgICAgIHJlc3VsdCA9IGZ1bmMuYXBwbHkoY29udGV4dCwgYXJncyk7XG4gICAgICAgIGlmICghdGltZW91dCkgY29udGV4dCA9IGFyZ3MgPSBudWxsO1xuICAgICAgfSBlbHNlIGlmICghdGltZW91dCAmJiBvcHRpb25zLnRyYWlsaW5nICE9PSBmYWxzZSkge1xuICAgICAgICB0aW1lb3V0ID0gc2V0VGltZW91dChsYXRlciwgcmVtYWluaW5nKTtcbiAgICAgIH1cbiAgICAgIHJldHVybiByZXN1bHQ7XG4gICAgfTtcbiAgfTtcbl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AgICAgdXJsID0gcHJvbXB0IFwiVVJMXCIsIFwiL3Rlc3QvZHVtbXkvc2FtcGxlcy9wNTMuY2x1c3RhbG8uZmFzdGFcIlxuICAgICAgdXJsID0gY29yc1VSTCB1cmwsIEBnXG4gICAgICBGYXN0YVJlYWRlci5yZWFkIHVybCwgKHNlcXMpID0+XG4gICAgICAgICMgbWFzcyB1cGRhdGUgb24gem9vbWVyXG4gICAgICAgIHpvb21lciA9IEBnLnpvb21lci50b0pTT04oKVxuICAgICAgICAjem9vbWVyLnRleHRWaXNpYmxlID0gZmFsc2VcbiAgICAgICAgI3pvb21lci5jb2x1bW5XaWR0aCA9IDRcbiAgICAgICAgem9vbWVyLmxhYmVsV2lkdGggPSAyMDBcbiAgICAgICAgem9vbWVyLmJveFJlY3RIZWlnaHQgPSAyXG4gICAgICAgIHpvb21lci5ib3hSZWN0V2lkdGggPSAyXG4gICAgICAgIEBtb2RlbC5yZXNldCBbXVxuICAgICAgICBAZy56b29tZXIuc2V0IHpvb21lclxuICAgICAgICBAbW9kZWwucmVzZXQgc2Vxc1xuICAgICAgICBAZy5jb2x1bW5zLmNhbGNDb25zZXJ2YXRpb24gQG1vZGVsXG5cbiAgICBAYWRkTm9kZSBcIkNMVVNUQUxcIiwgPT5cbiAgICAgIHVybCA9IHByb21wdCBcIlVSTFwiLCBcIi90ZXN0L2R1bW15L3NhbXBsZXMvcDUzLmNsdXN0YWxvLmNsdXN0YWxcIlxuICAgICAgdXJsID0gY29yc1VSTCB1cmwsIEBnXG4gICAgICBDbHVzdGFsLnJlYWQgdXJsLCAoc2VxcykgPT5cbiAgICAgICAgem9vbWVyID0gQGcuem9vbWVyLnRvSlNPTigpXG4gICAgICAgICN6b29tZXIudGV4dFZpc2libGUgPSBmYWxzZVxuICAgICAgICAjem9vbWVyLmNvbHVtbldpZHRoID0gNFxuICAgICAgICB6b29tZXIubGFiZWxXaWR0aCA9IDIwMFxuICAgICAgICB6b29tZXIuYm94UmVjdEhlaWdodCA9IDJc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cXVpcmUoXCJiaW9qcy1pby1jbHVzdGFsXCIpO1xud2luZG93LmJpb2pzLnhociA9IHJlcXVpcmUoXCJuZXRzXCIpO1xuXG4vLyBzaW11bGF0ZSBzdGFuZGFsb25lIGZsYWdcbndpbmRvdy5iaW9qc1Zpc01zYSA9IHdpbmRvdy5tc2E7XG5cbnJlcXVpcmUoJy4vYnVpbGQvbXNhLmNzcycpO1xuIiwidmFyIHJlcSA9IHJlcXVpcmUoJ3JlcXVlc3QnKVxuXG5tb2R1bGUuZXhwb3J0cyA9IE5ldHNcblxuZnVuY3Rpb24gTmV0cyh1cmksIG9wdHMsIGNiKSB7XG4gIHJlcSh1cmksIG9wdHMsIGNiKVxufSJdfQ==
-
-
-
-// this is a way how you use a bundled file parser
-biojs.io.clustal.read("#", function(seqs){
-var opts = {};
-
-// set your custom properties
-// @see: https://github.com/greenify/biojs-vis-msa/tree/master/src/g
-
-var jalviewData = JSON.parse(document.getElementById("seqData").value);
-opts.seqs = jalviewData['seqs'];
-
-opts.el = document.getElementById("yourDiv");
-opts.vis = {conserv: false, overviewbox: false, labelId: false};
-opts.zoomer = {alignmentHeight: 225, labelWidth: 130,labelFontsize: "13px",labelIdLength: 20, menuFontsize: "12px",menuMarginLeft: "3px", menuPadding: "3px 4px 3px 4px", menuItemFontsize: "14px", menuItemLineHeight: "14px"};
-
-
-
-// init msa
-var m = new msa.msa(opts);
-
-m.g.colorscheme.set("scheme", jalviewData['jalviewSettings'].globalColorScheme);
-
-var x = 0;
-//jalviewData.seqs.forEach( function (seq)
-//{
-//m.seqs.at(x++).set("features", new msa.model.featurecol(seq.features));
-//});
-
-//console.debug(">>>>>>>>>>>>>" + m.seqs.length);
-//console.debug(">>>>>>>>>>>>> Found features : " + jalviewData.seqFeatures.length);
-m.seqs.forEach( function (seq )
-{
- var seqFeats = [];
- for (i = 0; i < jalviewData.seqFeatures.length; i++) {
- console.debug('comparing >>>>>>>> '+ seq.id)
- if(jalviewData.seqFeatures[i].sequenceRef === seq.id){
- // console.debug('>>>>>>>> '+jalviewData.seqFeatures[i].sequenceRef+' | '+ seq.id)
- seqFeats.push(jalviewData.seqFeatures[i]);
- }
- }
-console.debug('matched features count : '+seqFeats.length);
-seq.set("features", new msa.model.featurecol(seqFeats));
-});
-
-// the menu is independent to the MSA container
-var menuOpts = {};
-menuOpts.el = document.getElementById('div');
-menuOpts.msa = m;
-var defMenu = new msa.menu.defaultmenu(menuOpts);
-m.addView("menu", defMenu);
-
-// call render at the end to display the whole MSA
-m.render();
-toggleMenuVisibility();
-toggleMenuVisibility();
-});
-</script>