iqvoc 3.3.0 → 3.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. data/Gemfile +1 -1
  2. data/Gemfile.lock +2 -2
  3. data/config/database.yml +2 -2
  4. data/config/deploy.rb +72 -0
  5. data/config/engine.rb +7 -11
  6. data/config/environments/production.rb +6 -0
  7. data/db/schema.rb +3 -3
  8. data/iqvoc.gemspec +1 -1
  9. data/lib/engine_tasks/db.rake +61 -1
  10. data/lib/iqvoc.rb +12 -1
  11. data/lib/iqvoc/version.rb +1 -1
  12. data/public/assets/ajax-loader-0fa916c3be443770cc9e800077e4e9b2.gif +0 -0
  13. data/public/assets/ajax-loader.gif +0 -0
  14. data/public/assets/application-d65a2a29c82b44dda72b13621ddb47c7.js +21 -0
  15. data/public/assets/application-d65a2a29c82b44dda72b13621ddb47c7.js.gz +0 -0
  16. data/public/assets/application.js +21 -0
  17. data/public/assets/application.js.gz +0 -0
  18. data/public/assets/arrow_down-5207848d1c2483637d23222d0a699bec.gif +0 -0
  19. data/public/assets/arrow_down.gif +0 -0
  20. data/public/assets/arrow_up-05112da8e77bcb5e6f0c74923d8d2046.gif +0 -0
  21. data/public/assets/arrow_up.gif +0 -0
  22. data/public/assets/back-c6339fdb1267ffad7181a80f4a8193fc.png +0 -0
  23. data/public/assets/back.png +0 -0
  24. data/public/assets/blueprint/ie-0761b92d02baf44f0b2011e3009e6aa9.css +36 -0
  25. data/public/assets/blueprint/ie-0761b92d02baf44f0b2011e3009e6aa9.css.gz +0 -0
  26. data/public/assets/blueprint/ie.css +36 -0
  27. data/public/assets/blueprint/ie.css.gz +0 -0
  28. data/public/assets/blueprint/print-5340d510f8a3aaea2879ccb701f5ce4a.css +30 -0
  29. data/public/assets/blueprint/print-5340d510f8a3aaea2879ccb701f5ce4a.css.gz +0 -0
  30. data/public/assets/blueprint/print.css +30 -0
  31. data/public/assets/blueprint/print.css.gz +0 -0
  32. data/public/assets/blueprint/screen-b57fcdc7a38d7572b2f442522dbbde0d.css +259 -0
  33. data/public/assets/blueprint/screen-b57fcdc7a38d7572b2f442522dbbde0d.css.gz +0 -0
  34. data/public/assets/blueprint/screen.css +259 -0
  35. data/public/assets/blueprint/screen.css.gz +0 -0
  36. data/public/assets/branch-c1c90f973cc2cd8b2d5ae7e2214fd4f7.png +0 -0
  37. data/public/assets/branch.png +0 -0
  38. data/public/assets/categ-66a10d72780bccbd3a6f196091021bbf.png +0 -0
  39. data/public/assets/categ.png +0 -0
  40. data/public/assets/categ_open-2d3546d40f05036d0e08da8cb1d0fc87.png +0 -0
  41. data/public/assets/categ_open.png +0 -0
  42. data/public/assets/file-45c18a58eafafdac404d858f4a148cd2.gif +0 -0
  43. data/public/assets/file.gif +0 -0
  44. data/public/assets/folder-3f2075b676cac310e1f9daa39fc50d54.gif +0 -0
  45. data/public/assets/folder-closed-c6f37b78cc35d7b09ce4115625d665c2.gif +0 -0
  46. data/public/assets/folder-closed.gif +0 -0
  47. data/public/assets/folder.gif +0 -0
  48. data/public/assets/footer-3b7d79bf0c4924fc68b4eaf3927a29df.png +0 -0
  49. data/public/assets/footer.png +0 -0
  50. data/public/assets/go_there-de3af0fac53cd580c5967c841ed4e996.png +0 -0
  51. data/public/assets/go_there.png +0 -0
  52. data/public/assets/header_long-4eb824a89cfbbad56dfd917e6142a5da.png +0 -0
  53. data/public/assets/header_long.png +0 -0
  54. data/public/assets/iqvoc-37d26e519d0a9f0f70b9edba282a0cc7.png +0 -0
  55. data/public/assets/iqvoc.png +0 -0
  56. data/public/assets/iqvoc/ie_fixes-7a001f31445ddfb2e0668c419f81742f.css +7 -0
  57. data/public/assets/iqvoc/ie_fixes-7a001f31445ddfb2e0668c419f81742f.css.gz +0 -0
  58. data/public/assets/iqvoc/ie_fixes.css +7 -0
  59. data/public/assets/iqvoc/ie_fixes.css.gz +0 -0
  60. data/public/assets/jquery-ui/ui-bg_flat_0_aaaaaa_40x100-2cf4f64704121d570c8c944feecb599d.png +0 -0
  61. data/public/assets/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  62. data/public/assets/jquery-ui/ui-bg_flat_55_fbec88_40x100-8f50cdf335d64e5d9895aaec152586aa.png +0 -0
  63. data/public/assets/jquery-ui/ui-bg_flat_55_fbec88_40x100.png +0 -0
  64. data/public/assets/jquery-ui/ui-bg_glass_75_d0e5f5_1x400-c149282e2a5d003d978b5c506282f9dd.png +0 -0
  65. data/public/assets/jquery-ui/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  66. data/public/assets/jquery-ui/ui-bg_glass_85_dfeffc_1x400-8d727817e068fe9f5e68574497632df1.png +0 -0
  67. data/public/assets/jquery-ui/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  68. data/public/assets/jquery-ui/ui-bg_glass_95_fef1ec_1x400-e0594ba8df95fda58e653d52b471897e.png +0 -0
  69. data/public/assets/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  70. data/public/assets/jquery-ui/ui-bg_gloss-wave_55_5c9ccc_500x100-f0681dc174ac10396aafaad6a1911416.png +0 -0
  71. data/public/assets/jquery-ui/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  72. data/public/assets/jquery-ui/ui-bg_inset-hard_100_f5f8f9_1x100-955df99e8d8cbf64b2994ababf68ad10.png +0 -0
  73. data/public/assets/jquery-ui/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  74. data/public/assets/jquery-ui/ui-bg_inset-hard_100_fcfdfd_1x100-69d0968ce999cafcf93f3e46387c6f57.png +0 -0
  75. data/public/assets/jquery-ui/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  76. data/public/assets/jquery-ui/ui-icons_217bc0_256x240-6dcd65bc29c791cb800678e3d2dff52a.png +0 -0
  77. data/public/assets/jquery-ui/ui-icons_217bc0_256x240.png +0 -0
  78. data/public/assets/jquery-ui/ui-icons_2e83ff_256x240-f4ef86290cf23b605ae667668f854294.png +0 -0
  79. data/public/assets/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
  80. data/public/assets/jquery-ui/ui-icons_469bdd_256x240-7d1fb4e22e8b0406b8b539f3922df871.png +0 -0
  81. data/public/assets/jquery-ui/ui-icons_469bdd_256x240.png +0 -0
  82. data/public/assets/jquery-ui/ui-icons_6da8d5_256x240-8f956fe8d003b98a78c7cf3fd1f01b5a.png +0 -0
  83. data/public/assets/jquery-ui/ui-icons_6da8d5_256x240.png +0 -0
  84. data/public/assets/jquery-ui/ui-icons_cd0a0a_256x240-5e404740e7b81db33ff68615256381c7.png +0 -0
  85. data/public/assets/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
  86. data/public/assets/jquery-ui/ui-icons_d8e7f3_256x240-4a8e8266fbe7c500dbb89f245adb380a.png +0 -0
  87. data/public/assets/jquery-ui/ui-icons_d8e7f3_256x240.png +0 -0
  88. data/public/assets/jquery-ui/ui-icons_f9bd01_256x240-1bbe87b055494b5ffc3297ade0fd4e5d.png +0 -0
  89. data/public/assets/jquery-ui/ui-icons_f9bd01_256x240.png +0 -0
  90. data/public/assets/json2-c87ab6ae12eefd145eaabf20addd7d14.js +157 -0
  91. data/public/assets/json2-c87ab6ae12eefd145eaabf20addd7d14.js.gz +0 -0
  92. data/public/assets/json2.js +157 -0
  93. data/public/assets/json2.js.gz +0 -0
  94. data/public/assets/leaf_end-c746324c7ae93955a71344540e19be57.png +0 -0
  95. data/public/assets/leaf_end.png +0 -0
  96. data/public/assets/leaf_end_filled-ffd6d8a1edf2b6c89140039c41c5a6c8.png +0 -0
  97. data/public/assets/leaf_end_filled.png +0 -0
  98. data/public/assets/leaf_mid-36f0aeb7d394be1f41411cc898c849ee.png +0 -0
  99. data/public/assets/leaf_mid.png +0 -0
  100. data/public/assets/leaf_mid_filled-3f929ebf2751edaa0070cf020720239e.png +0 -0
  101. data/public/assets/leaf_mid_filled.png +0 -0
  102. data/public/assets/leaf_nothing-b16696e96882b9c52fb58505c747d152.png +0 -0
  103. data/public/assets/leaf_nothing.png +0 -0
  104. data/public/assets/leaf_only-832baae54f2ac297f04345301f9b2e8b.png +0 -0
  105. data/public/assets/leaf_only.png +0 -0
  106. data/public/assets/leaf_only_filled-845d1817f13a20b80c72c9c5d109ef89.png +0 -0
  107. data/public/assets/leaf_only_filled.png +0 -0
  108. data/public/assets/leaf_top-8b0c6af753f319d658fd15305b3f72e6.png +0 -0
  109. data/public/assets/leaf_top.png +0 -0
  110. data/public/assets/leaf_top_filled-46854fbdb9a9d53519587ebcf883fdf2.png +0 -0
  111. data/public/assets/leaf_top_filled.png +0 -0
  112. data/public/assets/manifest-8554416e5abd292b31e978c42f20350f.css +1126 -0
  113. data/public/assets/manifest-8554416e5abd292b31e978c42f20350f.css.gz +0 -0
  114. data/public/assets/manifest-d65a2a29c82b44dda72b13621ddb47c7.js +21 -0
  115. data/public/assets/manifest-d65a2a29c82b44dda72b13621ddb47c7.js.gz +0 -0
  116. data/public/assets/manifest-ie-2d35dab17a0668b54761c5e09caa3a25.css +45 -0
  117. data/public/assets/manifest-ie-2d35dab17a0668b54761c5e09caa3a25.css.gz +0 -0
  118. data/public/assets/manifest-ie-c87ab6ae12eefd145eaabf20addd7d14.js +157 -0
  119. data/public/assets/manifest-ie-c87ab6ae12eefd145eaabf20addd7d14.js.gz +0 -0
  120. data/public/assets/manifest-ie.css +45 -0
  121. data/public/assets/manifest-ie.css.gz +0 -0
  122. data/public/assets/manifest-ie.js +157 -0
  123. data/public/assets/manifest-ie.js.gz +0 -0
  124. data/public/assets/manifest-print-fa33f9ec79743207309a4c15585417dd.css +32 -0
  125. data/public/assets/manifest-print-fa33f9ec79743207309a4c15585417dd.css.gz +0 -0
  126. data/public/assets/manifest-print.css +32 -0
  127. data/public/assets/manifest-print.css.gz +0 -0
  128. data/public/assets/manifest-screen-d75139d61efe94f6bee940daf1f205cd.css +261 -0
  129. data/public/assets/manifest-screen-d75139d61efe94f6bee940daf1f205cd.css.gz +0 -0
  130. data/public/assets/manifest-screen.css +261 -0
  131. data/public/assets/manifest-screen.css.gz +0 -0
  132. data/public/assets/manifest.css +1126 -0
  133. data/public/assets/manifest.css.gz +0 -0
  134. data/public/assets/manifest.js +21 -0
  135. data/public/assets/manifest.js.gz +0 -0
  136. data/public/assets/manifest.yml +70 -0
  137. data/public/assets/minus-b2a188eb9c79e297cf226940d274bde3.gif +0 -0
  138. data/public/assets/minus.gif +0 -0
  139. data/public/assets/nothing-13356bee8ae7be80ca9e2b12437ec11b.png +0 -0
  140. data/public/assets/nothing.png +0 -0
  141. data/public/assets/ok-b470e6ad2a51f8d831337bcdceac81b3.png +0 -0
  142. data/public/assets/ok.png +0 -0
  143. data/public/assets/plus-48a82f482680dc6a40b228c598f7737a.gif +0 -0
  144. data/public/assets/plus.gif +0 -0
  145. data/public/assets/rdf_flyer-2c03ecea52ac7c51ea052214ec51cf41.gif +0 -0
  146. data/public/assets/rdf_flyer.gif +0 -0
  147. data/public/assets/red_arrow-bd4018c221ad0d64ff39591301978985.png +0 -0
  148. data/public/assets/red_arrow.png +0 -0
  149. data/public/assets/shadow-e8b8808c02efb04cd6dd03cb60b1df51.png +0 -0
  150. data/public/assets/shadow.png +0 -0
  151. data/public/assets/spinner-376ad78a3c6a4731a4d08e6a7a958a08.gif +0 -0
  152. data/public/assets/spinner.gif +0 -0
  153. data/public/assets/tokenizer_delete-9fcf87a2460fd26e1d06694a674c64fd.png +0 -0
  154. data/public/assets/tokenizer_delete.png +0 -0
  155. data/public/assets/tokenizer_pencile-0ce94776c0a1a2f26de102be8d93e01f.png +0 -0
  156. data/public/assets/tokenizer_pencile.png +0 -0
  157. data/public/assets/tokenizer_show-3e3b535ad0047218c41a67bab0bde5a1.png +0 -0
  158. data/public/assets/tokenizer_show.png +0 -0
  159. data/public/assets/top_01-20317bcf2744bf21f09646edf1db83e3.png +0 -0
  160. data/public/assets/top_01.png +0 -0
  161. data/public/assets/treeview-black-b9efd44ad2274dd1a755680f05c97190.gif +0 -0
  162. data/public/assets/treeview-black-line-c017011af5be73fb837016e0a7548275.gif +0 -0
  163. data/public/assets/treeview-black-line.gif +0 -0
  164. data/public/assets/treeview-black.gif +0 -0
  165. data/public/assets/treeview-default-aa27b2f289c0f4e17c9848db92b7efc7.gif +0 -0
  166. data/public/assets/treeview-default-line-88dfb2ce9ef6ce0b6728e9b8b625dc56.gif +0 -0
  167. data/public/assets/treeview-default-line.gif +0 -0
  168. data/public/assets/treeview-default.gif +0 -0
  169. data/public/assets/treeview-famfamfam-e4842329994e3a6650a61aa96b744c88.gif +0 -0
  170. data/public/assets/treeview-famfamfam-line-f36551e5105684a46193f6723fe9dd02.gif +0 -0
  171. data/public/assets/treeview-famfamfam-line.gif +0 -0
  172. data/public/assets/treeview-famfamfam.gif +0 -0
  173. data/public/assets/treeview-gray-7725ad8dad103df1dddd282e8b76ad38.gif +0 -0
  174. data/public/assets/treeview-gray-line-139b3c730f3ea071ee459da1c97ceddb.gif +0 -0
  175. data/public/assets/treeview-gray-line.gif +0 -0
  176. data/public/assets/treeview-gray.gif +0 -0
  177. data/public/assets/treeview-red-abf293cd5d1fe415f8c11bd96936f8e4.gif +0 -0
  178. data/public/assets/treeview-red-line-1a93b70ab4c8e3cd5982e91e9def3afe.gif +0 -0
  179. data/public/assets/treeview-red-line.gif +0 -0
  180. data/public/assets/treeview-red.gif +0 -0
  181. data/public/assets/trunk-608b3757340ea0e291ef7bae37739530.png +0 -0
  182. data/public/assets/trunk.png +0 -0
  183. data/public/assets/unfinished-7f5796d43fa537f8e16caddaf0ba759b.png +0 -0
  184. data/public/assets/unfinished.png +0 -0
  185. metadata +193 -21
  186. data/lib/engine_tasks/assets.rake +0 -49
  187. data/lib/engine_tasks/release.rake +0 -118
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,7 @@
1
+ /* Internet Explorer Bugfixes */
2
+
3
+
4
+ .sections .entity_list li.last-child:after,
5
+ .relation-body .entity_list li.last-child:after {
6
+ content: "";
7
+ }
@@ -0,0 +1,7 @@
1
+ /* Internet Explorer Bugfixes */
2
+
3
+
4
+ .sections .entity_list li.last-child:after,
5
+ .relation-body .entity_list li.last-child:after {
6
+ content: "";
7
+ }
Binary file
@@ -0,0 +1,157 @@
1
+ /*
2
+ http://www.JSON.org/json2.js
3
+ 2011-02-23
4
+
5
+ Public Domain.
6
+
7
+ NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
8
+
9
+ See http://www.JSON.org/js.html
10
+
11
+
12
+ This code should be minified before deployment.
13
+ See http://javascript.crockford.com/jsmin.html
14
+
15
+ USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
16
+ NOT CONTROL.
17
+
18
+
19
+ This file creates a global JSON object containing two methods: stringify
20
+ and parse.
21
+
22
+ JSON.stringify(value, replacer, space)
23
+ value any JavaScript value, usually an object or array.
24
+
25
+ replacer an optional parameter that determines how object
26
+ values are stringified for objects. It can be a
27
+ function or an array of strings.
28
+
29
+ space an optional parameter that specifies the indentation
30
+ of nested structures. If it is omitted, the text will
31
+ be packed without extra whitespace. If it is a number,
32
+ it will specify the number of spaces to indent at each
33
+ level. If it is a string (such as '\t' or ' '),
34
+ it contains the characters used to indent at each level.
35
+
36
+ This method produces a JSON text from a JavaScript value.
37
+
38
+ When an object value is found, if the object contains a toJSON
39
+ method, its toJSON method will be called and the result will be
40
+ stringified. A toJSON method does not serialize: it returns the
41
+ value represented by the name/value pair that should be serialized,
42
+ or undefined if nothing should be serialized. The toJSON method
43
+ will be passed the key associated with the value, and this will be
44
+ bound to the value
45
+
46
+ For example, this would serialize Dates as ISO strings.
47
+
48
+ Date.prototype.toJSON = function (key) {
49
+ function f(n) {
50
+ // Format integers to have at least two digits.
51
+ return n < 10 ? '0' + n : n;
52
+ }
53
+
54
+ return this.getUTCFullYear() + '-' +
55
+ f(this.getUTCMonth() + 1) + '-' +
56
+ f(this.getUTCDate()) + 'T' +
57
+ f(this.getUTCHours()) + ':' +
58
+ f(this.getUTCMinutes()) + ':' +
59
+ f(this.getUTCSeconds()) + 'Z';
60
+ };
61
+
62
+ You can provide an optional replacer method. It will be passed the
63
+ key and value of each member, with this bound to the containing
64
+ object. The value that is returned from your method will be
65
+ serialized. If your method returns undefined, then the member will
66
+ be excluded from the serialization.
67
+
68
+ If the replacer parameter is an array of strings, then it will be
69
+ used to select the members to be serialized. It filters the results
70
+ such that only members with keys listed in the replacer array are
71
+ stringified.
72
+
73
+ Values that do not have JSON representations, such as undefined or
74
+ functions, will not be serialized. Such values in objects will be
75
+ dropped; in arrays they will be replaced with null. You can use
76
+ a replacer function to replace those with JSON values.
77
+ JSON.stringify(undefined) returns undefined.
78
+
79
+ The optional space parameter produces a stringification of the
80
+ value that is filled with line breaks and indentation to make it
81
+ easier to read.
82
+
83
+ If the space parameter is a non-empty string, then that string will
84
+ be used for indentation. If the space parameter is a number, then
85
+ the indentation will be that many spaces.
86
+
87
+ Example:
88
+
89
+ text = JSON.stringify(['e', {pluribus: 'unum'}]);
90
+ // text is '["e",{"pluribus":"unum"}]'
91
+
92
+
93
+ text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
94
+ // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]'
95
+
96
+ text = JSON.stringify([new Date()], function (key, value) {
97
+ return this[key] instanceof Date ?
98
+ 'Date(' + this[key] + ')' : value;
99
+ });
100
+ // text is '["Date(---current time---)"]'
101
+
102
+
103
+ JSON.parse(text, reviver)
104
+ This method parses a JSON text to produce an object or array.
105
+ It can throw a SyntaxError exception.
106
+
107
+ The optional reviver parameter is a function that can filter and
108
+ transform the results. It receives each of the keys and values,
109
+ and its return value is used instead of the original value.
110
+ If it returns what it received, then the structure is not modified.
111
+ If it returns undefined then the member is deleted.
112
+
113
+ Example:
114
+
115
+ // Parse the text. Values that look like ISO date strings will
116
+ // be converted to Date objects.
117
+
118
+ myData = JSON.parse(text, function (key, value) {
119
+ var a;
120
+ if (typeof value === 'string') {
121
+ a =
122
+ /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
123
+ if (a) {
124
+ return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
125
+ +a[5], +a[6]));
126
+ }
127
+ }
128
+ return value;
129
+ });
130
+
131
+ myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
132
+ var d;
133
+ if (typeof value === 'string' &&
134
+ value.slice(0, 5) === 'Date(' &&
135
+ value.slice(-1) === ')') {
136
+ d = new Date(value.slice(5, -1));
137
+ if (d) {
138
+ return d;
139
+ }
140
+ }
141
+ return value;
142
+ });
143
+
144
+
145
+ This is a reference implementation. You are free to copy, modify, or
146
+ redistribute.
147
+ */
148
+ /*jslint evil: true, strict: false, regexp: false */
149
+ /*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply,
150
+ call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,
151
+ getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join,
152
+ lastIndex, length, parse, prototype, push, replace, slice, stringify,
153
+ test, toJSON, toString, valueOf
154
+ */
155
+ // Create a JSON object only if one does not already exist. We create the
156
+ // methods in a closure to avoid creating global variables.
157
+ var JSON;JSON||(JSON={}),function(){function f(a){return a<10?"0"+a:a}function quote(a){return escapable.lastIndex=0,escapable.test(a)?'"'+a.replace(escapable,function(a){var b=meta[a];return typeof b=="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function str(a,b){var c,d,e,f,g=gap,h,i=b[a];i&&typeof i=="object"&&typeof i.toJSON=="function"&&(i=i.toJSON(a)),typeof rep=="function"&&(i=rep.call(b,a,i));switch(typeof i){case"string":return quote(i);case"number":return isFinite(i)?String(i):"null";case"boolean":case"null":return String(i);case"object":if(!i)return"null";gap+=indent,h=[];if(Object.prototype.toString.apply(i)==="[object Array]"){f=i.length;for(c=0;c<f;c+=1)h[c]=str(c,i)||"null";return e=h.length===0?"[]":gap?"[\n"+gap+h.join(",\n"+gap)+"\n"+g+"]":"["+h.join(",")+"]",gap=g,e}if(rep&&typeof rep=="object"){f=rep.length;for(c=0;c<f;c+=1)typeof rep[c]=="string"&&(d=rep[c],e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e))}else for(d in i)Object.prototype.hasOwnProperty.call(i,d)&&(e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e));return e=h.length===0?"{}":gap?"{\n"+gap+h.join(",\n"+gap)+"\n"+g+"}":"{"+h.join(",")+"}",gap=g,e}}"use strict",typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(a){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(a){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;typeof JSON.stringify!="function"&&(JSON.stringify=function(a,b,c){var d;gap="",indent="";if(typeof c=="number")for(d=0;d<c;d+=1)indent+=" ";else typeof c=="string"&&(indent=c);rep=b;if(!b||typeof b=="function"||typeof b=="object"&&typeof b.length=="number")return str("",{"":a});throw new Error("JSON.stringify")}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(a,b){var c,d,e=a[b];if(e&&typeof e=="object")for(c in e)Object.prototype.hasOwnProperty.call(e,c)&&(d=walk(e,c),d!==undefined?e[c]=d:delete e[c]);return reviver.call(a,b,e)}var j;text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()
@@ -0,0 +1,157 @@
1
+ /*
2
+ http://www.JSON.org/json2.js
3
+ 2011-02-23
4
+
5
+ Public Domain.
6
+
7
+ NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
8
+
9
+ See http://www.JSON.org/js.html
10
+
11
+
12
+ This code should be minified before deployment.
13
+ See http://javascript.crockford.com/jsmin.html
14
+
15
+ USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
16
+ NOT CONTROL.
17
+
18
+
19
+ This file creates a global JSON object containing two methods: stringify
20
+ and parse.
21
+
22
+ JSON.stringify(value, replacer, space)
23
+ value any JavaScript value, usually an object or array.
24
+
25
+ replacer an optional parameter that determines how object
26
+ values are stringified for objects. It can be a
27
+ function or an array of strings.
28
+
29
+ space an optional parameter that specifies the indentation
30
+ of nested structures. If it is omitted, the text will
31
+ be packed without extra whitespace. If it is a number,
32
+ it will specify the number of spaces to indent at each
33
+ level. If it is a string (such as '\t' or '&nbsp;'),
34
+ it contains the characters used to indent at each level.
35
+
36
+ This method produces a JSON text from a JavaScript value.
37
+
38
+ When an object value is found, if the object contains a toJSON
39
+ method, its toJSON method will be called and the result will be
40
+ stringified. A toJSON method does not serialize: it returns the
41
+ value represented by the name/value pair that should be serialized,
42
+ or undefined if nothing should be serialized. The toJSON method
43
+ will be passed the key associated with the value, and this will be
44
+ bound to the value
45
+
46
+ For example, this would serialize Dates as ISO strings.
47
+
48
+ Date.prototype.toJSON = function (key) {
49
+ function f(n) {
50
+ // Format integers to have at least two digits.
51
+ return n < 10 ? '0' + n : n;
52
+ }
53
+
54
+ return this.getUTCFullYear() + '-' +
55
+ f(this.getUTCMonth() + 1) + '-' +
56
+ f(this.getUTCDate()) + 'T' +
57
+ f(this.getUTCHours()) + ':' +
58
+ f(this.getUTCMinutes()) + ':' +
59
+ f(this.getUTCSeconds()) + 'Z';
60
+ };
61
+
62
+ You can provide an optional replacer method. It will be passed the
63
+ key and value of each member, with this bound to the containing
64
+ object. The value that is returned from your method will be
65
+ serialized. If your method returns undefined, then the member will
66
+ be excluded from the serialization.
67
+
68
+ If the replacer parameter is an array of strings, then it will be
69
+ used to select the members to be serialized. It filters the results
70
+ such that only members with keys listed in the replacer array are
71
+ stringified.
72
+
73
+ Values that do not have JSON representations, such as undefined or
74
+ functions, will not be serialized. Such values in objects will be
75
+ dropped; in arrays they will be replaced with null. You can use
76
+ a replacer function to replace those with JSON values.
77
+ JSON.stringify(undefined) returns undefined.
78
+
79
+ The optional space parameter produces a stringification of the
80
+ value that is filled with line breaks and indentation to make it
81
+ easier to read.
82
+
83
+ If the space parameter is a non-empty string, then that string will
84
+ be used for indentation. If the space parameter is a number, then
85
+ the indentation will be that many spaces.
86
+
87
+ Example:
88
+
89
+ text = JSON.stringify(['e', {pluribus: 'unum'}]);
90
+ // text is '["e",{"pluribus":"unum"}]'
91
+
92
+
93
+ text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
94
+ // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]'
95
+
96
+ text = JSON.stringify([new Date()], function (key, value) {
97
+ return this[key] instanceof Date ?
98
+ 'Date(' + this[key] + ')' : value;
99
+ });
100
+ // text is '["Date(---current time---)"]'
101
+
102
+
103
+ JSON.parse(text, reviver)
104
+ This method parses a JSON text to produce an object or array.
105
+ It can throw a SyntaxError exception.
106
+
107
+ The optional reviver parameter is a function that can filter and
108
+ transform the results. It receives each of the keys and values,
109
+ and its return value is used instead of the original value.
110
+ If it returns what it received, then the structure is not modified.
111
+ If it returns undefined then the member is deleted.
112
+
113
+ Example:
114
+
115
+ // Parse the text. Values that look like ISO date strings will
116
+ // be converted to Date objects.
117
+
118
+ myData = JSON.parse(text, function (key, value) {
119
+ var a;
120
+ if (typeof value === 'string') {
121
+ a =
122
+ /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
123
+ if (a) {
124
+ return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
125
+ +a[5], +a[6]));
126
+ }
127
+ }
128
+ return value;
129
+ });
130
+
131
+ myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
132
+ var d;
133
+ if (typeof value === 'string' &&
134
+ value.slice(0, 5) === 'Date(' &&
135
+ value.slice(-1) === ')') {
136
+ d = new Date(value.slice(5, -1));
137
+ if (d) {
138
+ return d;
139
+ }
140
+ }
141
+ return value;
142
+ });
143
+
144
+
145
+ This is a reference implementation. You are free to copy, modify, or
146
+ redistribute.
147
+ */
148
+ /*jslint evil: true, strict: false, regexp: false */
149
+ /*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply,
150
+ call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,
151
+ getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join,
152
+ lastIndex, length, parse, prototype, push, replace, slice, stringify,
153
+ test, toJSON, toString, valueOf
154
+ */
155
+ // Create a JSON object only if one does not already exist. We create the
156
+ // methods in a closure to avoid creating global variables.
157
+ var JSON;JSON||(JSON={}),function(){function f(a){return a<10?"0"+a:a}function quote(a){return escapable.lastIndex=0,escapable.test(a)?'"'+a.replace(escapable,function(a){var b=meta[a];return typeof b=="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function str(a,b){var c,d,e,f,g=gap,h,i=b[a];i&&typeof i=="object"&&typeof i.toJSON=="function"&&(i=i.toJSON(a)),typeof rep=="function"&&(i=rep.call(b,a,i));switch(typeof i){case"string":return quote(i);case"number":return isFinite(i)?String(i):"null";case"boolean":case"null":return String(i);case"object":if(!i)return"null";gap+=indent,h=[];if(Object.prototype.toString.apply(i)==="[object Array]"){f=i.length;for(c=0;c<f;c+=1)h[c]=str(c,i)||"null";return e=h.length===0?"[]":gap?"[\n"+gap+h.join(",\n"+gap)+"\n"+g+"]":"["+h.join(",")+"]",gap=g,e}if(rep&&typeof rep=="object"){f=rep.length;for(c=0;c<f;c+=1)typeof rep[c]=="string"&&(d=rep[c],e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e))}else for(d in i)Object.prototype.hasOwnProperty.call(i,d)&&(e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e));return e=h.length===0?"{}":gap?"{\n"+gap+h.join(",\n"+gap)+"\n"+g+"}":"{"+h.join(",")+"}",gap=g,e}}"use strict",typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(a){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(a){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;typeof JSON.stringify!="function"&&(JSON.stringify=function(a,b,c){var d;gap="",indent="";if(typeof c=="number")for(d=0;d<c;d+=1)indent+=" ";else typeof c=="string"&&(indent=c);rep=b;if(!b||typeof b=="function"||typeof b=="object"&&typeof b.length=="number")return str("",{"":a});throw new Error("JSON.stringify")}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(a,b){var c,d,e=a[b];if(e&&typeof e=="object")for(c in e)Object.prototype.hasOwnProperty.call(e,c)&&(d=walk(e,c),d!==undefined?e[c]=d:delete e[c]);return reviver.call(a,b,e)}var j;text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()