chef 12.4.0.rc.0-universal-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1709) hide show
  1. checksums.yaml +7 -0
  2. data/CONTRIBUTING.md +212 -0
  3. data/LICENSE +201 -0
  4. data/README.md +134 -0
  5. data/Rakefile +160 -0
  6. data/bin/chef-apply +25 -0
  7. data/bin/chef-client +26 -0
  8. data/bin/chef-service-manager +37 -0
  9. data/bin/chef-shell +37 -0
  10. data/bin/chef-solo +25 -0
  11. data/bin/chef-windows-service +35 -0
  12. data/bin/knife +26 -0
  13. data/distro/common/html/_sources/ctl_chef_client.txt +36 -0
  14. data/distro/common/html/_sources/ctl_chef_server.txt +341 -0
  15. data/distro/common/html/_sources/ctl_chef_shell.txt +15 -0
  16. data/distro/common/html/_sources/ctl_chef_solo.txt +25 -0
  17. data/distro/common/html/_sources/index.txt +135 -0
  18. data/distro/common/html/_sources/knife.txt +74 -0
  19. data/distro/common/html/_sources/knife_bootstrap.txt +56 -0
  20. data/distro/common/html/_sources/knife_client.txt +151 -0
  21. data/distro/common/html/_sources/knife_common_options.txt +6 -0
  22. data/distro/common/html/_sources/knife_configure.txt +29 -0
  23. data/distro/common/html/_sources/knife_cookbook.txt +236 -0
  24. data/distro/common/html/_sources/knife_cookbook_site.txt +157 -0
  25. data/distro/common/html/_sources/knife_data_bag.txt +160 -0
  26. data/distro/common/html/_sources/knife_delete.txt +26 -0
  27. data/distro/common/html/_sources/knife_deps.txt +61 -0
  28. data/distro/common/html/_sources/knife_diff.txt +34 -0
  29. data/distro/common/html/_sources/knife_download.txt +44 -0
  30. data/distro/common/html/_sources/knife_edit.txt +26 -0
  31. data/distro/common/html/_sources/knife_environment.txt +158 -0
  32. data/distro/common/html/_sources/knife_exec.txt +47 -0
  33. data/distro/common/html/_sources/knife_index_rebuild.txt +21 -0
  34. data/distro/common/html/_sources/knife_list.txt +33 -0
  35. data/distro/common/html/_sources/knife_node.txt +250 -0
  36. data/distro/common/html/_sources/knife_raw.txt +35 -0
  37. data/distro/common/html/_sources/knife_recipe_list.txt +23 -0
  38. data/distro/common/html/_sources/knife_role.txt +157 -0
  39. data/distro/common/html/_sources/knife_search.txt +53 -0
  40. data/distro/common/html/_sources/knife_serve.txt +19 -0
  41. data/distro/common/html/_sources/knife_show.txt +27 -0
  42. data/distro/common/html/_sources/knife_ssh.txt +43 -0
  43. data/distro/common/html/_sources/knife_ssl_check.txt +41 -0
  44. data/distro/common/html/_sources/knife_ssl_fetch.txt +41 -0
  45. data/distro/common/html/_sources/knife_status.txt +37 -0
  46. data/distro/common/html/_sources/knife_tag.txt +69 -0
  47. data/distro/common/html/_sources/knife_upload.txt +49 -0
  48. data/distro/common/html/_sources/knife_user.txt +127 -0
  49. data/distro/common/html/_sources/knife_using.txt +43 -0
  50. data/distro/common/html/_sources/knife_xargs.txt +30 -0
  51. data/distro/common/html/_static/ajax-loader.gif +0 -0
  52. data/distro/common/html/_static/basic.css +537 -0
  53. data/distro/common/html/_static/chef.ico +0 -0
  54. data/distro/common/html/_static/chef_html_logo.png +0 -0
  55. data/distro/common/html/_static/comment-bright.png +0 -0
  56. data/distro/common/html/_static/comment-close.png +0 -0
  57. data/distro/common/html/_static/comment.png +0 -0
  58. data/distro/common/html/_static/contents.png +0 -0
  59. data/distro/common/html/_static/doctools.js +238 -0
  60. data/distro/common/html/_static/down-pressed.png +0 -0
  61. data/distro/common/html/_static/down.png +0 -0
  62. data/distro/common/html/_static/file.png +0 -0
  63. data/distro/common/html/_static/guide.css +505 -0
  64. data/distro/common/html/_static/jquery.js +2 -0
  65. data/distro/common/html/_static/minus.png +0 -0
  66. data/distro/common/html/_static/navigation.png +0 -0
  67. data/distro/common/html/_static/plus.png +0 -0
  68. data/distro/common/html/_static/pygments.css +62 -0
  69. data/distro/common/html/_static/searchtools.js +622 -0
  70. data/distro/common/html/_static/underscore.js +31 -0
  71. data/distro/common/html/_static/up-pressed.png +0 -0
  72. data/distro/common/html/_static/up.png +0 -0
  73. data/distro/common/html/_static/websupport.js +808 -0
  74. data/distro/common/html/ctl_chef_client.html +270 -0
  75. data/distro/common/html/ctl_chef_server.html +728 -0
  76. data/distro/common/html/ctl_chef_shell.html +163 -0
  77. data/distro/common/html/ctl_chef_solo.html +194 -0
  78. data/distro/common/html/index.html +202 -0
  79. data/distro/common/html/knife.html +170 -0
  80. data/distro/common/html/knife_bootstrap.html +285 -0
  81. data/distro/common/html/knife_client.html +285 -0
  82. data/distro/common/html/knife_common_options.html +96 -0
  83. data/distro/common/html/knife_configure.html +105 -0
  84. data/distro/common/html/knife_cookbook.html +487 -0
  85. data/distro/common/html/knife_cookbook_site.html +375 -0
  86. data/distro/common/html/knife_data_bag.html +374 -0
  87. data/distro/common/html/knife_delete.html +93 -0
  88. data/distro/common/html/knife_deps.html +143 -0
  89. data/distro/common/html/knife_diff.html +123 -0
  90. data/distro/common/html/knife_download.html +145 -0
  91. data/distro/common/html/knife_edit.html +89 -0
  92. data/distro/common/html/knife_environment.html +326 -0
  93. data/distro/common/html/knife_exec.html +220 -0
  94. data/distro/common/html/knife_index_rebuild.html +83 -0
  95. data/distro/common/html/knife_list.html +114 -0
  96. data/distro/common/html/knife_node.html +458 -0
  97. data/distro/common/html/knife_raw.html +110 -0
  98. data/distro/common/html/knife_recipe_list.html +91 -0
  99. data/distro/common/html/knife_role.html +295 -0
  100. data/distro/common/html/knife_search.html +203 -0
  101. data/distro/common/html/knife_serve.html +79 -0
  102. data/distro/common/html/knife_show.html +104 -0
  103. data/distro/common/html/knife_ssh.html +177 -0
  104. data/distro/common/html/knife_ssl_check.html +151 -0
  105. data/distro/common/html/knife_ssl_fetch.html +151 -0
  106. data/distro/common/html/knife_status.html +144 -0
  107. data/distro/common/html/knife_tag.html +138 -0
  108. data/distro/common/html/knife_upload.html +153 -0
  109. data/distro/common/html/knife_user.html +242 -0
  110. data/distro/common/html/knife_using.html +210 -0
  111. data/distro/common/html/knife_xargs.html +122 -0
  112. data/distro/common/html/objects.inv +0 -0
  113. data/distro/common/html/search.html +82 -0
  114. data/distro/common/html/searchindex.js +1 -0
  115. data/distro/common/man/man1/README.md +58 -0
  116. data/distro/common/man/man1/chef-shell.1 +194 -0
  117. data/distro/common/man/man1/knife-bootstrap.1 +215 -0
  118. data/distro/common/man/man1/knife-client.1 +443 -0
  119. data/distro/common/man/man1/knife-configure.1 +161 -0
  120. data/distro/common/man/man1/knife-cookbook-site.1 +552 -0
  121. data/distro/common/man/man1/knife-cookbook.1 +770 -0
  122. data/distro/common/man/man1/knife-data-bag.1 +617 -0
  123. data/distro/common/man/man1/knife-delete.1 +127 -0
  124. data/distro/common/man/man1/knife-deps.1 +246 -0
  125. data/distro/common/man/man1/knife-diff.1 +226 -0
  126. data/distro/common/man/man1/knife-download.1 +258 -0
  127. data/distro/common/man/man1/knife-edit.1 +121 -0
  128. data/distro/common/man/man1/knife-environment.1 +508 -0
  129. data/distro/common/man/man1/knife-exec.1 +362 -0
  130. data/distro/common/man/man1/knife-index-rebuild.1 +63 -0
  131. data/distro/common/man/man1/knife-list.1 +174 -0
  132. data/distro/common/man/man1/knife-node.1 +716 -0
  133. data/distro/common/man/man1/knife-raw.1 +172 -0
  134. data/distro/common/man/man1/knife-recipe-list.1 +85 -0
  135. data/distro/common/man/man1/knife-role.1 +426 -0
  136. data/distro/common/man/man1/knife-search.1 +359 -0
  137. data/distro/common/man/man1/knife-serve.1 +109 -0
  138. data/distro/common/man/man1/knife-show.1 +160 -0
  139. data/distro/common/man/man1/knife-ssh.1 +284 -0
  140. data/distro/common/man/man1/knife-ssl-check.1 +207 -0
  141. data/distro/common/man/man1/knife-ssl-fetch.1 +207 -0
  142. data/distro/common/man/man1/knife-status.1 +234 -0
  143. data/distro/common/man/man1/knife-tag.1 +189 -0
  144. data/distro/common/man/man1/knife-upload.1 +280 -0
  145. data/distro/common/man/man1/knife-user.1 +356 -0
  146. data/distro/common/man/man1/knife-xargs.1 +189 -0
  147. data/distro/common/man/man1/knife.1 +332 -0
  148. data/distro/common/man/man8/chef-apply.8 +86 -0
  149. data/distro/common/man/man8/chef-client.8 +398 -0
  150. data/distro/common/man/man8/chef-solo.8 +260 -0
  151. data/distro/common/markdown/README +3 -0
  152. data/distro/common/markdown/man1/chef-shell.mkd +195 -0
  153. data/distro/common/markdown/man1/knife-bootstrap.mkd +141 -0
  154. data/distro/common/markdown/man1/knife-client.mkd +103 -0
  155. data/distro/common/markdown/man1/knife-configure.mkd +70 -0
  156. data/distro/common/markdown/man1/knife-cookbook-site.mkd +123 -0
  157. data/distro/common/markdown/man1/knife-cookbook.mkd +263 -0
  158. data/distro/common/markdown/man1/knife-data-bag.mkd +121 -0
  159. data/distro/common/markdown/man1/knife-environment.mkd +151 -0
  160. data/distro/common/markdown/man1/knife-exec.mkd +42 -0
  161. data/distro/common/markdown/man1/knife-index.mkd +30 -0
  162. data/distro/common/markdown/man1/knife-node.mkd +130 -0
  163. data/distro/common/markdown/man1/knife-role.mkd +85 -0
  164. data/distro/common/markdown/man1/knife-search.mkd +180 -0
  165. data/distro/common/markdown/man1/knife-ssh.mkd +69 -0
  166. data/distro/common/markdown/man1/knife-status.mkd +36 -0
  167. data/distro/common/markdown/man1/knife-tag.mkd +39 -0
  168. data/distro/common/markdown/man1/knife.mkd +213 -0
  169. data/distro/common/markdown/man8/chef-client.mkd +73 -0
  170. data/distro/common/markdown/man8/chef-expander.mkd +81 -0
  171. data/distro/common/markdown/man8/chef-expanderctl.mkd +57 -0
  172. data/distro/common/markdown/man8/chef-server-webui.mkd +121 -0
  173. data/distro/common/markdown/man8/chef-server.mkd +120 -0
  174. data/distro/common/markdown/man8/chef-solo.mkd +107 -0
  175. data/distro/common/markdown/man8/chef-solr.mkd +89 -0
  176. data/ext/win32-eventlog/Rakefile +54 -0
  177. data/ext/win32-eventlog/chef-log.man +56 -0
  178. data/lib/chef.rb +35 -0
  179. data/lib/chef/api_client.rb +226 -0
  180. data/lib/chef/api_client/registration.rb +163 -0
  181. data/lib/chef/application.rb +415 -0
  182. data/lib/chef/application/apply.rb +196 -0
  183. data/lib/chef/application/client.rb +481 -0
  184. data/lib/chef/application/knife.rb +202 -0
  185. data/lib/chef/application/solo.rb +313 -0
  186. data/lib/chef/application/windows_service.rb +323 -0
  187. data/lib/chef/application/windows_service_manager.rb +196 -0
  188. data/lib/chef/applications.rb +4 -0
  189. data/lib/chef/audit/audit_event_proxy.rb +93 -0
  190. data/lib/chef/audit/audit_reporter.rb +169 -0
  191. data/lib/chef/audit/control_group_data.rb +140 -0
  192. data/lib/chef/audit/rspec_formatter.rb +37 -0
  193. data/lib/chef/audit/runner.rb +192 -0
  194. data/lib/chef/chef_class.rb +130 -0
  195. data/lib/chef/chef_fs.rb +9 -0
  196. data/lib/chef/chef_fs/chef_fs_data_store.rb +482 -0
  197. data/lib/chef/chef_fs/command_line.rb +285 -0
  198. data/lib/chef/chef_fs/config.rb +255 -0
  199. data/lib/chef/chef_fs/data_handler/acl_data_handler.rb +26 -0
  200. data/lib/chef/chef_fs/data_handler/client_data_handler.rb +37 -0
  201. data/lib/chef/chef_fs/data_handler/container_data_handler.rb +29 -0
  202. data/lib/chef/chef_fs/data_handler/cookbook_data_handler.rb +38 -0
  203. data/lib/chef/chef_fs/data_handler/data_bag_item_data_handler.rb +56 -0
  204. data/lib/chef/chef_fs/data_handler/data_handler_base.rb +202 -0
  205. data/lib/chef/chef_fs/data_handler/environment_data_handler.rb +40 -0
  206. data/lib/chef/chef_fs/data_handler/group_data_handler.rb +55 -0
  207. data/lib/chef/chef_fs/data_handler/node_data_handler.rb +36 -0
  208. data/lib/chef/chef_fs/data_handler/organization_data_handler.rb +30 -0
  209. data/lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb +17 -0
  210. data/lib/chef/chef_fs/data_handler/organization_members_data_handler.rb +17 -0
  211. data/lib/chef/chef_fs/data_handler/policy_data_handler.rb +15 -0
  212. data/lib/chef/chef_fs/data_handler/role_data_handler.rb +40 -0
  213. data/lib/chef/chef_fs/data_handler/user_data_handler.rb +29 -0
  214. data/lib/chef/chef_fs/file_pattern.rb +312 -0
  215. data/lib/chef/chef_fs/file_system.rb +429 -0
  216. data/lib/chef/chef_fs/file_system/acl_dir.rb +64 -0
  217. data/lib/chef/chef_fs/file_system/acl_entry.rb +58 -0
  218. data/lib/chef/chef_fs/file_system/acls_dir.rb +68 -0
  219. data/lib/chef/chef_fs/file_system/already_exists_error.rb +31 -0
  220. data/lib/chef/chef_fs/file_system/base_fs_dir.rb +52 -0
  221. data/lib/chef/chef_fs/file_system/base_fs_object.rb +180 -0
  222. data/lib/chef/chef_fs/file_system/chef_repository_file_system_acls_dir.rb +37 -0
  223. data/lib/chef/chef_fs/file_system/chef_repository_file_system_cookbook_dir.rb +109 -0
  224. data/lib/chef/chef_fs/file_system/chef_repository_file_system_cookbook_entry.rb +87 -0
  225. data/lib/chef/chef_fs/file_system/chef_repository_file_system_cookbooks_dir.rb +89 -0
  226. data/lib/chef/chef_fs/file_system/chef_repository_file_system_data_bags_dir.rb +36 -0
  227. data/lib/chef/chef_fs/file_system/chef_repository_file_system_entry.rb +92 -0
  228. data/lib/chef/chef_fs/file_system/chef_repository_file_system_policies_dir.rb +38 -0
  229. data/lib/chef/chef_fs/file_system/chef_repository_file_system_root_dir.rb +192 -0
  230. data/lib/chef/chef_fs/file_system/chef_server_root_dir.rb +159 -0
  231. data/lib/chef/chef_fs/file_system/cookbook_dir.rb +224 -0
  232. data/lib/chef/chef_fs/file_system/cookbook_file.rb +82 -0
  233. data/lib/chef/chef_fs/file_system/cookbook_frozen_error.rb +31 -0
  234. data/lib/chef/chef_fs/file_system/cookbook_subdir.rb +54 -0
  235. data/lib/chef/chef_fs/file_system/cookbooks_acl_dir.rb +41 -0
  236. data/lib/chef/chef_fs/file_system/cookbooks_dir.rb +164 -0
  237. data/lib/chef/chef_fs/file_system/data_bag_dir.rb +69 -0
  238. data/lib/chef/chef_fs/file_system/data_bags_dir.rb +73 -0
  239. data/lib/chef/chef_fs/file_system/default_environment_cannot_be_modified_error.rb +36 -0
  240. data/lib/chef/chef_fs/file_system/environments_dir.rb +60 -0
  241. data/lib/chef/chef_fs/file_system/file_system_entry.rb +108 -0
  242. data/lib/chef/chef_fs/file_system/file_system_error.rb +33 -0
  243. data/lib/chef/chef_fs/file_system/file_system_root_dir.rb +31 -0
  244. data/lib/chef/chef_fs/file_system/memory_dir.rb +52 -0
  245. data/lib/chef/chef_fs/file_system/memory_file.rb +17 -0
  246. data/lib/chef/chef_fs/file_system/memory_root.rb +21 -0
  247. data/lib/chef/chef_fs/file_system/multiplexed_dir.rb +49 -0
  248. data/lib/chef/chef_fs/file_system/must_delete_recursively_error.rb +31 -0
  249. data/lib/chef/chef_fs/file_system/nodes_dir.rb +55 -0
  250. data/lib/chef/chef_fs/file_system/nonexistent_fs_object.rb +36 -0
  251. data/lib/chef/chef_fs/file_system/not_found_error.rb +31 -0
  252. data/lib/chef/chef_fs/file_system/operation_failed_error.rb +42 -0
  253. data/lib/chef/chef_fs/file_system/operation_not_allowed_error.rb +48 -0
  254. data/lib/chef/chef_fs/file_system/org_entry.rb +34 -0
  255. data/lib/chef/chef_fs/file_system/organization_invites_entry.rb +59 -0
  256. data/lib/chef/chef_fs/file_system/organization_members_entry.rb +58 -0
  257. data/lib/chef/chef_fs/file_system/rest_list_dir.rb +115 -0
  258. data/lib/chef/chef_fs/file_system/rest_list_entry.rb +185 -0
  259. data/lib/chef/chef_fs/knife.rb +133 -0
  260. data/lib/chef/chef_fs/parallelizer.rb +105 -0
  261. data/lib/chef/chef_fs/parallelizer/flatten_enumerable.rb +35 -0
  262. data/lib/chef/chef_fs/parallelizer/parallel_enumerable.rb +281 -0
  263. data/lib/chef/chef_fs/path_utils.rb +95 -0
  264. data/lib/chef/client.rb +546 -0
  265. data/lib/chef/config.rb +54 -0
  266. data/lib/chef/config_fetcher.rb +64 -0
  267. data/lib/chef/cookbook/chefignore.rb +75 -0
  268. data/lib/chef/cookbook/cookbook_collection.rb +45 -0
  269. data/lib/chef/cookbook/cookbook_version_loader.rb +301 -0
  270. data/lib/chef/cookbook/file_system_file_vendor.rb +59 -0
  271. data/lib/chef/cookbook/file_vendor.rb +72 -0
  272. data/lib/chef/cookbook/metadata.rb +757 -0
  273. data/lib/chef/cookbook/remote_file_vendor.rb +87 -0
  274. data/lib/chef/cookbook/synchronizer.rb +293 -0
  275. data/lib/chef/cookbook/syntax_check.rb +260 -0
  276. data/lib/chef/cookbook_loader.rb +182 -0
  277. data/lib/chef/cookbook_manifest.rb +289 -0
  278. data/lib/chef/cookbook_site_streaming_uploader.rb +244 -0
  279. data/lib/chef/cookbook_uploader.rb +156 -0
  280. data/lib/chef/cookbook_version.rb +623 -0
  281. data/lib/chef/daemon.rb +131 -0
  282. data/lib/chef/data_bag.rb +169 -0
  283. data/lib/chef/data_bag_item.rb +215 -0
  284. data/lib/chef/deprecation/mixin/template.rb +49 -0
  285. data/lib/chef/deprecation/provider/cookbook_file.rb +55 -0
  286. data/lib/chef/deprecation/provider/file.rb +198 -0
  287. data/lib/chef/deprecation/provider/remote_file.rb +86 -0
  288. data/lib/chef/deprecation/provider/template.rb +63 -0
  289. data/lib/chef/deprecation/warnings.rb +39 -0
  290. data/lib/chef/digester.rb +70 -0
  291. data/lib/chef/dsl.rb +6 -0
  292. data/lib/chef/dsl/audit.rb +51 -0
  293. data/lib/chef/dsl/data_query.rb +89 -0
  294. data/lib/chef/dsl/definitions.rb +44 -0
  295. data/lib/chef/dsl/include_attribute.rb +63 -0
  296. data/lib/chef/dsl/include_recipe.rb +44 -0
  297. data/lib/chef/dsl/platform_introspection.rb +260 -0
  298. data/lib/chef/dsl/powershell.rb +29 -0
  299. data/lib/chef/dsl/reboot_pending.rb +64 -0
  300. data/lib/chef/dsl/recipe.rb +196 -0
  301. data/lib/chef/dsl/registry_helper.rb +59 -0
  302. data/lib/chef/dsl/resources.rb +28 -0
  303. data/lib/chef/encrypted_data_bag_item.rb +155 -0
  304. data/lib/chef/encrypted_data_bag_item/assertions.rb +54 -0
  305. data/lib/chef/encrypted_data_bag_item/check_encrypted.rb +56 -0
  306. data/lib/chef/encrypted_data_bag_item/decryption_failure.rb +22 -0
  307. data/lib/chef/encrypted_data_bag_item/decryptor.rb +225 -0
  308. data/lib/chef/encrypted_data_bag_item/encrypted_data_bag_item_assertions.rb +37 -0
  309. data/lib/chef/encrypted_data_bag_item/encryption_failure.rb +22 -0
  310. data/lib/chef/encrypted_data_bag_item/encryptor.rb +225 -0
  311. data/lib/chef/encrypted_data_bag_item/unacceptable_encrypted_data_bag_item_format.rb +22 -0
  312. data/lib/chef/encrypted_data_bag_item/unsupported_cipher.rb +22 -0
  313. data/lib/chef/encrypted_data_bag_item/unsupported_encrypted_data_bag_item_format.rb +22 -0
  314. data/lib/chef/environment.rb +319 -0
  315. data/lib/chef/event_dispatch/base.rb +363 -0
  316. data/lib/chef/event_dispatch/dispatcher.rb +42 -0
  317. data/lib/chef/event_dispatch/events_output_stream.rb +29 -0
  318. data/lib/chef/event_loggers/base.rb +62 -0
  319. data/lib/chef/event_loggers/windows_eventlog.rb +101 -0
  320. data/lib/chef/exceptions.rb +465 -0
  321. data/lib/chef/file_access_control.rb +75 -0
  322. data/lib/chef/file_access_control/unix.rb +290 -0
  323. data/lib/chef/file_access_control/windows.rb +335 -0
  324. data/lib/chef/file_cache.rb +221 -0
  325. data/lib/chef/file_content_management/content_base.rb +56 -0
  326. data/lib/chef/file_content_management/deploy.rb +38 -0
  327. data/lib/chef/file_content_management/deploy/cp.rb +48 -0
  328. data/lib/chef/file_content_management/deploy/mv_unix.rb +77 -0
  329. data/lib/chef/file_content_management/deploy/mv_windows.rb +95 -0
  330. data/lib/chef/file_content_management/tempfile.rb +96 -0
  331. data/lib/chef/formatters/base.rb +228 -0
  332. data/lib/chef/formatters/doc.rb +338 -0
  333. data/lib/chef/formatters/error_descriptor.rb +67 -0
  334. data/lib/chef/formatters/error_inspectors.rb +19 -0
  335. data/lib/chef/formatters/error_inspectors/api_error_formatting.rb +146 -0
  336. data/lib/chef/formatters/error_inspectors/compile_error_inspector.rb +118 -0
  337. data/lib/chef/formatters/error_inspectors/cookbook_resolve_error_inspector.rb +168 -0
  338. data/lib/chef/formatters/error_inspectors/cookbook_sync_error_inspector.rb +80 -0
  339. data/lib/chef/formatters/error_inspectors/node_load_error_inspector.rb +127 -0
  340. data/lib/chef/formatters/error_inspectors/registration_error_inspector.rb +145 -0
  341. data/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb +127 -0
  342. data/lib/chef/formatters/error_inspectors/run_list_expansion_error_inspector.rb +120 -0
  343. data/lib/chef/formatters/error_mapper.rb +85 -0
  344. data/lib/chef/formatters/indentable_output_stream.rb +165 -0
  345. data/lib/chef/formatters/minimal.rb +235 -0
  346. data/lib/chef/guard_interpreter.rb +32 -0
  347. data/lib/chef/guard_interpreter/default_guard_interpreter.rb +42 -0
  348. data/lib/chef/guard_interpreter/resource_guard_interpreter.rb +132 -0
  349. data/lib/chef/handler.rb +235 -0
  350. data/lib/chef/handler/error_report.rb +33 -0
  351. data/lib/chef/handler/json_file.rb +63 -0
  352. data/lib/chef/http.rb +414 -0
  353. data/lib/chef/http/auth_credentials.rb +57 -0
  354. data/lib/chef/http/authenticator.rb +96 -0
  355. data/lib/chef/http/basic_client.rb +169 -0
  356. data/lib/chef/http/cookie_jar.rb +31 -0
  357. data/lib/chef/http/cookie_manager.rb +59 -0
  358. data/lib/chef/http/decompressor.rb +144 -0
  359. data/lib/chef/http/http_request.rb +187 -0
  360. data/lib/chef/http/json_input.rb +73 -0
  361. data/lib/chef/http/json_output.rb +78 -0
  362. data/lib/chef/http/json_to_model_output.rb +34 -0
  363. data/lib/chef/http/remote_request_id.rb +46 -0
  364. data/lib/chef/http/simple.rb +22 -0
  365. data/lib/chef/http/socketless_chef_zero_client.rb +207 -0
  366. data/lib/chef/http/ssl_policies.rb +130 -0
  367. data/lib/chef/http/validate_content_length.rb +110 -0
  368. data/lib/chef/json_compat.rb +163 -0
  369. data/lib/chef/key.rb +271 -0
  370. data/lib/chef/knife.rb +571 -0
  371. data/lib/chef/knife/bootstrap.rb +394 -0
  372. data/lib/chef/knife/bootstrap/chef_vault_handler.rb +165 -0
  373. data/lib/chef/knife/bootstrap/client_builder.rb +190 -0
  374. data/lib/chef/knife/bootstrap/templates/README.md +12 -0
  375. data/lib/chef/knife/bootstrap/templates/archlinux-gems.erb +76 -0
  376. data/lib/chef/knife/bootstrap/templates/chef-aix.erb +72 -0
  377. data/lib/chef/knife/bootstrap/templates/chef-full.erb +231 -0
  378. data/lib/chef/knife/client_bulk_delete.rb +104 -0
  379. data/lib/chef/knife/client_create.rb +87 -0
  380. data/lib/chef/knife/client_delete.rb +60 -0
  381. data/lib/chef/knife/client_edit.rb +45 -0
  382. data/lib/chef/knife/client_key_create.rb +67 -0
  383. data/lib/chef/knife/client_key_delete.rb +76 -0
  384. data/lib/chef/knife/client_key_edit.rb +80 -0
  385. data/lib/chef/knife/client_key_list.rb +69 -0
  386. data/lib/chef/knife/client_key_show.rb +76 -0
  387. data/lib/chef/knife/client_list.rb +42 -0
  388. data/lib/chef/knife/client_reregister.rb +59 -0
  389. data/lib/chef/knife/client_show.rb +49 -0
  390. data/lib/chef/knife/configure.rb +171 -0
  391. data/lib/chef/knife/configure_client.rb +50 -0
  392. data/lib/chef/knife/cookbook_bulk_delete.rb +72 -0
  393. data/lib/chef/knife/cookbook_create.rb +448 -0
  394. data/lib/chef/knife/cookbook_delete.rb +151 -0
  395. data/lib/chef/knife/cookbook_download.rb +145 -0
  396. data/lib/chef/knife/cookbook_list.rb +47 -0
  397. data/lib/chef/knife/cookbook_metadata.rb +108 -0
  398. data/lib/chef/knife/cookbook_metadata_from_file.rb +44 -0
  399. data/lib/chef/knife/cookbook_show.rb +102 -0
  400. data/lib/chef/knife/cookbook_site_download.rb +109 -0
  401. data/lib/chef/knife/cookbook_site_install.rb +188 -0
  402. data/lib/chef/knife/cookbook_site_list.rb +62 -0
  403. data/lib/chef/knife/cookbook_site_search.rb +51 -0
  404. data/lib/chef/knife/cookbook_site_share.rb +170 -0
  405. data/lib/chef/knife/cookbook_site_show.rb +60 -0
  406. data/lib/chef/knife/cookbook_site_unshare.rb +56 -0
  407. data/lib/chef/knife/cookbook_site_vendor.rb +46 -0
  408. data/lib/chef/knife/cookbook_test.rb +96 -0
  409. data/lib/chef/knife/cookbook_upload.rb +311 -0
  410. data/lib/chef/knife/core/bootstrap_context.rb +187 -0
  411. data/lib/chef/knife/core/cookbook_scm_repo.rb +160 -0
  412. data/lib/chef/knife/core/generic_presenter.rb +223 -0
  413. data/lib/chef/knife/core/node_editor.rb +109 -0
  414. data/lib/chef/knife/core/node_presenter.rb +137 -0
  415. data/lib/chef/knife/core/object_loader.rb +114 -0
  416. data/lib/chef/knife/core/status_presenter.rb +157 -0
  417. data/lib/chef/knife/core/subcommand_loader.rb +222 -0
  418. data/lib/chef/knife/core/text_formatter.rb +86 -0
  419. data/lib/chef/knife/core/ui.rb +276 -0
  420. data/lib/chef/knife/data_bag_create.rb +77 -0
  421. data/lib/chef/knife/data_bag_delete.rb +51 -0
  422. data/lib/chef/knife/data_bag_edit.rb +77 -0
  423. data/lib/chef/knife/data_bag_from_file.rb +113 -0
  424. data/lib/chef/knife/data_bag_list.rb +46 -0
  425. data/lib/chef/knife/data_bag_secret_options.rb +142 -0
  426. data/lib/chef/knife/data_bag_show.rb +69 -0
  427. data/lib/chef/knife/delete.rb +108 -0
  428. data/lib/chef/knife/deps.rb +140 -0
  429. data/lib/chef/knife/diff.rb +69 -0
  430. data/lib/chef/knife/download.rb +69 -0
  431. data/lib/chef/knife/edit.rb +73 -0
  432. data/lib/chef/knife/environment_compare.rb +127 -0
  433. data/lib/chef/knife/environment_create.rb +53 -0
  434. data/lib/chef/knife/environment_delete.rb +45 -0
  435. data/lib/chef/knife/environment_edit.rb +45 -0
  436. data/lib/chef/knife/environment_from_file.rb +83 -0
  437. data/lib/chef/knife/environment_list.rb +42 -0
  438. data/lib/chef/knife/environment_show.rb +48 -0
  439. data/lib/chef/knife/exec.rb +87 -0
  440. data/lib/chef/knife/help.rb +103 -0
  441. data/lib/chef/knife/help_topics.rb +4 -0
  442. data/lib/chef/knife/index_rebuild.rb +134 -0
  443. data/lib/chef/knife/key_create.rb +108 -0
  444. data/lib/chef/knife/key_create_base.rb +50 -0
  445. data/lib/chef/knife/key_delete.rb +55 -0
  446. data/lib/chef/knife/key_edit.rb +114 -0
  447. data/lib/chef/knife/key_edit_base.rb +55 -0
  448. data/lib/chef/knife/key_list.rb +88 -0
  449. data/lib/chef/knife/key_list_base.rb +45 -0
  450. data/lib/chef/knife/key_show.rb +53 -0
  451. data/lib/chef/knife/list.rb +156 -0
  452. data/lib/chef/knife/node_bulk_delete.rb +80 -0
  453. data/lib/chef/knife/node_create.rb +50 -0
  454. data/lib/chef/knife/node_delete.rb +47 -0
  455. data/lib/chef/knife/node_edit.rb +72 -0
  456. data/lib/chef/knife/node_environment_set.rb +54 -0
  457. data/lib/chef/knife/node_from_file.rb +51 -0
  458. data/lib/chef/knife/node_list.rb +46 -0
  459. data/lib/chef/knife/node_run_list_add.rb +104 -0
  460. data/lib/chef/knife/node_run_list_remove.rb +56 -0
  461. data/lib/chef/knife/node_run_list_set.rb +66 -0
  462. data/lib/chef/knife/node_show.rb +67 -0
  463. data/lib/chef/knife/raw.rb +102 -0
  464. data/lib/chef/knife/recipe_list.rb +32 -0
  465. data/lib/chef/knife/role_bulk_delete.rb +70 -0
  466. data/lib/chef/knife/role_create.rb +55 -0
  467. data/lib/chef/knife/role_delete.rb +47 -0
  468. data/lib/chef/knife/role_edit.rb +48 -0
  469. data/lib/chef/knife/role_env_run_list_add.rb +86 -0
  470. data/lib/chef/knife/role_env_run_list_clear.rb +55 -0
  471. data/lib/chef/knife/role_env_run_list_remove.rb +57 -0
  472. data/lib/chef/knife/role_env_run_list_replace.rb +59 -0
  473. data/lib/chef/knife/role_env_run_list_set.rb +70 -0
  474. data/lib/chef/knife/role_from_file.rb +56 -0
  475. data/lib/chef/knife/role_list.rb +43 -0
  476. data/lib/chef/knife/role_run_list_add.rb +86 -0
  477. data/lib/chef/knife/role_run_list_clear.rb +55 -0
  478. data/lib/chef/knife/role_run_list_remove.rb +57 -0
  479. data/lib/chef/knife/role_run_list_replace.rb +59 -0
  480. data/lib/chef/knife/role_run_list_set.rb +70 -0
  481. data/lib/chef/knife/role_show.rb +52 -0
  482. data/lib/chef/knife/search.rb +201 -0
  483. data/lib/chef/knife/serve.rb +48 -0
  484. data/lib/chef/knife/show.rb +56 -0
  485. data/lib/chef/knife/ssh.rb +539 -0
  486. data/lib/chef/knife/ssl_check.rb +277 -0
  487. data/lib/chef/knife/ssl_fetch.rb +158 -0
  488. data/lib/chef/knife/status.rb +97 -0
  489. data/lib/chef/knife/tag_create.rb +52 -0
  490. data/lib/chef/knife/tag_delete.rb +60 -0
  491. data/lib/chef/knife/tag_list.rb +47 -0
  492. data/lib/chef/knife/upload.rb +71 -0
  493. data/lib/chef/knife/user_create.rb +93 -0
  494. data/lib/chef/knife/user_delete.rb +46 -0
  495. data/lib/chef/knife/user_edit.rb +53 -0
  496. data/lib/chef/knife/user_key_create.rb +69 -0
  497. data/lib/chef/knife/user_key_delete.rb +76 -0
  498. data/lib/chef/knife/user_key_edit.rb +80 -0
  499. data/lib/chef/knife/user_key_list.rb +69 -0
  500. data/lib/chef/knife/user_key_show.rb +76 -0
  501. data/lib/chef/knife/user_list.rb +42 -0
  502. data/lib/chef/knife/user_reregister.rb +59 -0
  503. data/lib/chef/knife/user_show.rb +49 -0
  504. data/lib/chef/knife/xargs.rb +267 -0
  505. data/lib/chef/local_mode.rb +121 -0
  506. data/lib/chef/log.rb +50 -0
  507. data/lib/chef/log/syslog.rb +46 -0
  508. data/lib/chef/log/winevt.rb +99 -0
  509. data/lib/chef/mash.rb +225 -0
  510. data/lib/chef/mixin/checksum.rb +32 -0
  511. data/lib/chef/mixin/command.rb +192 -0
  512. data/lib/chef/mixin/command/unix.rb +220 -0
  513. data/lib/chef/mixin/command/windows.rb +72 -0
  514. data/lib/chef/mixin/convert_to_class_name.rb +120 -0
  515. data/lib/chef/mixin/create_path.rb +73 -0
  516. data/lib/chef/mixin/deep_merge.rb +140 -0
  517. data/lib/chef/mixin/deprecation.rb +100 -0
  518. data/lib/chef/mixin/descendants_tracker.rb +82 -0
  519. data/lib/chef/mixin/enforce_ownership_and_permissions.rb +39 -0
  520. data/lib/chef/mixin/file_class.rb +37 -0
  521. data/lib/chef/mixin/from_file.rb +50 -0
  522. data/lib/chef/mixin/get_source_from_package.rb +43 -0
  523. data/lib/chef/mixin/homebrew_user.rb +68 -0
  524. data/lib/chef/mixin/language.rb +48 -0
  525. data/lib/chef/mixin/language_include_attribute.rb +35 -0
  526. data/lib/chef/mixin/language_include_recipe.rb +32 -0
  527. data/lib/chef/mixin/params_validate.rb +242 -0
  528. data/lib/chef/mixin/path_sanity.rb +68 -0
  529. data/lib/chef/mixin/powershell_type_coercions.rb +82 -0
  530. data/lib/chef/mixin/provides.rb +40 -0
  531. data/lib/chef/mixin/recipe_definition_dsl_core.rb +35 -0
  532. data/lib/chef/mixin/securable.rb +199 -0
  533. data/lib/chef/mixin/shell_out.rb +117 -0
  534. data/lib/chef/mixin/template.rb +215 -0
  535. data/lib/chef/mixin/unformatter.rb +32 -0
  536. data/lib/chef/mixin/uris.rb +33 -0
  537. data/lib/chef/mixin/which.rb +37 -0
  538. data/lib/chef/mixin/why_run.rb +332 -0
  539. data/lib/chef/mixin/windows_architecture_helper.rb +136 -0
  540. data/lib/chef/mixin/windows_env_helper.rb +56 -0
  541. data/lib/chef/mixin/wstring.rb +31 -0
  542. data/lib/chef/mixin/xml_escape.rb +140 -0
  543. data/lib/chef/mixins.rb +14 -0
  544. data/lib/chef/monkey_patches/net-ssh-multi.rb +140 -0
  545. data/lib/chef/monkey_patches/net_http.rb +60 -0
  546. data/lib/chef/monologger.rb +90 -0
  547. data/lib/chef/nil_argument.rb +3 -0
  548. data/lib/chef/node.rb +573 -0
  549. data/lib/chef/node/attribute.rb +586 -0
  550. data/lib/chef/node/attribute_collections.rb +323 -0
  551. data/lib/chef/node/immutable_collections.rb +219 -0
  552. data/lib/chef/node_map.rb +146 -0
  553. data/lib/chef/null_logger.rb +72 -0
  554. data/lib/chef/org.rb +148 -0
  555. data/lib/chef/platform.rb +30 -0
  556. data/lib/chef/platform/provider_mapping.rb +481 -0
  557. data/lib/chef/platform/provider_priority_map.rb +92 -0
  558. data/lib/chef/platform/query_helpers.rb +55 -0
  559. data/lib/chef/platform/rebooter.rb +54 -0
  560. data/lib/chef/platform/resource_priority_map.rb +37 -0
  561. data/lib/chef/platform/service_helpers.rb +142 -0
  562. data/lib/chef/policy_builder.rb +49 -0
  563. data/lib/chef/policy_builder/expand_node_object.rb +251 -0
  564. data/lib/chef/policy_builder/policyfile.rb +387 -0
  565. data/lib/chef/provider.rb +228 -0
  566. data/lib/chef/provider/batch.rb +37 -0
  567. data/lib/chef/provider/breakpoint.rb +38 -0
  568. data/lib/chef/provider/cookbook_file.rb +53 -0
  569. data/lib/chef/provider/cookbook_file/content.rb +49 -0
  570. data/lib/chef/provider/cron.rb +263 -0
  571. data/lib/chef/provider/cron/aix.rb +50 -0
  572. data/lib/chef/provider/cron/solaris.rb +22 -0
  573. data/lib/chef/provider/cron/unix.rb +83 -0
  574. data/lib/chef/provider/deploy.rb +479 -0
  575. data/lib/chef/provider/deploy/revision.rb +109 -0
  576. data/lib/chef/provider/deploy/timestamped.rb +34 -0
  577. data/lib/chef/provider/directory.rb +137 -0
  578. data/lib/chef/provider/dsc_resource.rb +157 -0
  579. data/lib/chef/provider/dsc_script.rb +185 -0
  580. data/lib/chef/provider/env.rb +169 -0
  581. data/lib/chef/provider/env/windows.rb +72 -0
  582. data/lib/chef/provider/erl_call.rb +108 -0
  583. data/lib/chef/provider/execute.rb +104 -0
  584. data/lib/chef/provider/file.rb +494 -0
  585. data/lib/chef/provider/file/content.rb +39 -0
  586. data/lib/chef/provider/git.rb +334 -0
  587. data/lib/chef/provider/group.rb +183 -0
  588. data/lib/chef/provider/group/aix.rb +85 -0
  589. data/lib/chef/provider/group/dscl.rb +170 -0
  590. data/lib/chef/provider/group/gpasswd.rb +57 -0
  591. data/lib/chef/provider/group/groupadd.rb +137 -0
  592. data/lib/chef/provider/group/groupmod.rb +128 -0
  593. data/lib/chef/provider/group/pw.rb +139 -0
  594. data/lib/chef/provider/group/suse.rb +60 -0
  595. data/lib/chef/provider/group/usermod.rb +90 -0
  596. data/lib/chef/provider/group/windows.rb +98 -0
  597. data/lib/chef/provider/http_request.rb +122 -0
  598. data/lib/chef/provider/ifconfig.rb +223 -0
  599. data/lib/chef/provider/ifconfig/aix.rb +97 -0
  600. data/lib/chef/provider/ifconfig/debian.rb +82 -0
  601. data/lib/chef/provider/ifconfig/redhat.rb +47 -0
  602. data/lib/chef/provider/link.rb +159 -0
  603. data/lib/chef/provider/log.rb +57 -0
  604. data/lib/chef/provider/lwrp_base.rb +168 -0
  605. data/lib/chef/provider/mdadm.rb +92 -0
  606. data/lib/chef/provider/mount.rb +170 -0
  607. data/lib/chef/provider/mount/aix.rb +179 -0
  608. data/lib/chef/provider/mount/mount.rb +268 -0
  609. data/lib/chef/provider/mount/solaris.rb +269 -0
  610. data/lib/chef/provider/mount/windows.rb +86 -0
  611. data/lib/chef/provider/ohai.rb +49 -0
  612. data/lib/chef/provider/package.rb +495 -0
  613. data/lib/chef/provider/package/aix.rb +136 -0
  614. data/lib/chef/provider/package/apt.rb +184 -0
  615. data/lib/chef/provider/package/dpkg.rb +149 -0
  616. data/lib/chef/provider/package/easy_install.rb +134 -0
  617. data/lib/chef/provider/package/freebsd/base.rb +89 -0
  618. data/lib/chef/provider/package/freebsd/pkg.rb +114 -0
  619. data/lib/chef/provider/package/freebsd/pkgng.rb +78 -0
  620. data/lib/chef/provider/package/freebsd/port.rb +60 -0
  621. data/lib/chef/provider/package/homebrew.rb +136 -0
  622. data/lib/chef/provider/package/ips.rb +90 -0
  623. data/lib/chef/provider/package/macports.rb +100 -0
  624. data/lib/chef/provider/package/openbsd.rb +138 -0
  625. data/lib/chef/provider/package/pacman.rb +106 -0
  626. data/lib/chef/provider/package/paludis.rb +88 -0
  627. data/lib/chef/provider/package/portage.rb +139 -0
  628. data/lib/chef/provider/package/rpm.rb +125 -0
  629. data/lib/chef/provider/package/rubygems.rb +593 -0
  630. data/lib/chef/provider/package/smartos.rb +94 -0
  631. data/lib/chef/provider/package/solaris.rb +139 -0
  632. data/lib/chef/provider/package/windows.rb +170 -0
  633. data/lib/chef/provider/package/windows/msi.rb +69 -0
  634. data/lib/chef/provider/package/yum-dump.py +307 -0
  635. data/lib/chef/provider/package/yum.rb +1401 -0
  636. data/lib/chef/provider/package/zypper.rb +130 -0
  637. data/lib/chef/provider/powershell_script.rb +94 -0
  638. data/lib/chef/provider/reboot.rb +70 -0
  639. data/lib/chef/provider/registry_key.rb +155 -0
  640. data/lib/chef/provider/remote_directory.rb +193 -0
  641. data/lib/chef/provider/remote_file.rb +53 -0
  642. data/lib/chef/provider/remote_file/cache_control_data.rb +163 -0
  643. data/lib/chef/provider/remote_file/content.rb +78 -0
  644. data/lib/chef/provider/remote_file/fetcher.rb +55 -0
  645. data/lib/chef/provider/remote_file/ftp.rb +183 -0
  646. data/lib/chef/provider/remote_file/http.rb +117 -0
  647. data/lib/chef/provider/remote_file/local_file.rb +54 -0
  648. data/lib/chef/provider/remote_file/network_file.rb +48 -0
  649. data/lib/chef/provider/resource_update.rb +52 -0
  650. data/lib/chef/provider/route.rb +229 -0
  651. data/lib/chef/provider/ruby_block.rb +44 -0
  652. data/lib/chef/provider/script.rb +84 -0
  653. data/lib/chef/provider/service.rb +173 -0
  654. data/lib/chef/provider/service/aix.rb +129 -0
  655. data/lib/chef/provider/service/aixinit.rb +117 -0
  656. data/lib/chef/provider/service/arch.rb +118 -0
  657. data/lib/chef/provider/service/debian.rb +185 -0
  658. data/lib/chef/provider/service/freebsd.rb +195 -0
  659. data/lib/chef/provider/service/gentoo.rb +71 -0
  660. data/lib/chef/provider/service/init.rb +93 -0
  661. data/lib/chef/provider/service/insserv.rb +61 -0
  662. data/lib/chef/provider/service/invokercd.rb +43 -0
  663. data/lib/chef/provider/service/macosx.rb +246 -0
  664. data/lib/chef/provider/service/openbsd.rb +216 -0
  665. data/lib/chef/provider/service/redhat.rb +84 -0
  666. data/lib/chef/provider/service/simple.rb +174 -0
  667. data/lib/chef/provider/service/solaris.rb +91 -0
  668. data/lib/chef/provider/service/systemd.rb +141 -0
  669. data/lib/chef/provider/service/upstart.rb +243 -0
  670. data/lib/chef/provider/service/windows.rb +360 -0
  671. data/lib/chef/provider/subversion.rb +215 -0
  672. data/lib/chef/provider/template.rb +65 -0
  673. data/lib/chef/provider/template/content.rb +60 -0
  674. data/lib/chef/provider/template_finder.rb +61 -0
  675. data/lib/chef/provider/user.rb +214 -0
  676. data/lib/chef/provider/user/aix.rb +95 -0
  677. data/lib/chef/provider/user/dscl.rb +700 -0
  678. data/lib/chef/provider/user/pw.rb +113 -0
  679. data/lib/chef/provider/user/solaris.rb +91 -0
  680. data/lib/chef/provider/user/useradd.rb +162 -0
  681. data/lib/chef/provider/user/windows.rb +126 -0
  682. data/lib/chef/provider/whyrun_safe_ruby_block.rb +32 -0
  683. data/lib/chef/provider/windows_script.rb +74 -0
  684. data/lib/chef/provider_resolver.rb +211 -0
  685. data/lib/chef/providers.rb +138 -0
  686. data/lib/chef/recipe.rb +129 -0
  687. data/lib/chef/request_id.rb +37 -0
  688. data/lib/chef/reserved_names.rb +9 -0
  689. data/lib/chef/resource.rb +1187 -0
  690. data/lib/chef/resource/apt_package.rb +45 -0
  691. data/lib/chef/resource/bash.rb +35 -0
  692. data/lib/chef/resource/batch.rb +33 -0
  693. data/lib/chef/resource/bff_package.rb +34 -0
  694. data/lib/chef/resource/breakpoint.rb +36 -0
  695. data/lib/chef/resource/chef_gem.rb +70 -0
  696. data/lib/chef/resource/conditional.rb +127 -0
  697. data/lib/chef/resource/conditional_action_not_nothing.rb +48 -0
  698. data/lib/chef/resource/cookbook_file.rb +51 -0
  699. data/lib/chef/resource/cron.rb +218 -0
  700. data/lib/chef/resource/csh.rb +35 -0
  701. data/lib/chef/resource/deploy.rb +434 -0
  702. data/lib/chef/resource/deploy_revision.rb +45 -0
  703. data/lib/chef/resource/directory.rb +64 -0
  704. data/lib/chef/resource/dpkg_package.rb +35 -0
  705. data/lib/chef/resource/dsc_resource.rb +83 -0
  706. data/lib/chef/resource/dsc_script.rb +139 -0
  707. data/lib/chef/resource/easy_install_package.rb +58 -0
  708. data/lib/chef/resource/env.rb +65 -0
  709. data/lib/chef/resource/erl_call.rb +88 -0
  710. data/lib/chef/resource/execute.rb +166 -0
  711. data/lib/chef/resource/file.rb +152 -0
  712. data/lib/chef/resource/file/verification.rb +122 -0
  713. data/lib/chef/resource/freebsd_package.rb +66 -0
  714. data/lib/chef/resource/gem_package.rb +59 -0
  715. data/lib/chef/resource/git.rb +47 -0
  716. data/lib/chef/resource/group.rb +105 -0
  717. data/lib/chef/resource/homebrew_package.rb +47 -0
  718. data/lib/chef/resource/http_request.rb +67 -0
  719. data/lib/chef/resource/ifconfig.rb +148 -0
  720. data/lib/chef/resource/ips_package.rb +44 -0
  721. data/lib/chef/resource/link.rb +108 -0
  722. data/lib/chef/resource/log.rb +78 -0
  723. data/lib/chef/resource/lwrp_base.rb +184 -0
  724. data/lib/chef/resource/macosx_service.rb +59 -0
  725. data/lib/chef/resource/macports_package.rb +32 -0
  726. data/lib/chef/resource/mdadm.rb +107 -0
  727. data/lib/chef/resource/mount.rb +181 -0
  728. data/lib/chef/resource/ohai.rb +55 -0
  729. data/lib/chef/resource/openbsd_package.rb +51 -0
  730. data/lib/chef/resource/package.rb +104 -0
  731. data/lib/chef/resource/pacman_package.rb +34 -0
  732. data/lib/chef/resource/paludis_package.rb +36 -0
  733. data/lib/chef/resource/perl.rb +35 -0
  734. data/lib/chef/resource/portage_package.rb +34 -0
  735. data/lib/chef/resource/powershell_script.rb +51 -0
  736. data/lib/chef/resource/python.rb +34 -0
  737. data/lib/chef/resource/reboot.rb +50 -0
  738. data/lib/chef/resource/registry_key.rb +146 -0
  739. data/lib/chef/resource/remote_directory.rb +125 -0
  740. data/lib/chef/resource/remote_file.rb +150 -0
  741. data/lib/chef/resource/resource_notification.rb +109 -0
  742. data/lib/chef/resource/route.rb +139 -0
  743. data/lib/chef/resource/rpm_package.rb +44 -0
  744. data/lib/chef/resource/ruby.rb +35 -0
  745. data/lib/chef/resource/ruby_block.rb +55 -0
  746. data/lib/chef/resource/scm.rb +188 -0
  747. data/lib/chef/resource/script.rb +77 -0
  748. data/lib/chef/resource/service.rb +191 -0
  749. data/lib/chef/resource/smartos_package.rb +37 -0
  750. data/lib/chef/resource/solaris_package.rb +43 -0
  751. data/lib/chef/resource/subversion.rb +41 -0
  752. data/lib/chef/resource/template.rb +219 -0
  753. data/lib/chef/resource/timestamped_deploy.rb +30 -0
  754. data/lib/chef/resource/user.rb +163 -0
  755. data/lib/chef/resource/whyrun_safe_ruby_block.rb +31 -0
  756. data/lib/chef/resource/windows_package.rb +100 -0
  757. data/lib/chef/resource/windows_script.rb +61 -0
  758. data/lib/chef/resource/windows_service.rb +71 -0
  759. data/lib/chef/resource/yum_package.rb +65 -0
  760. data/lib/chef/resource_builder.rb +137 -0
  761. data/lib/chef/resource_collection.rb +89 -0
  762. data/lib/chef/resource_collection/resource_collection_serialization.rb +59 -0
  763. data/lib/chef/resource_collection/resource_list.rb +89 -0
  764. data/lib/chef/resource_collection/resource_set.rb +170 -0
  765. data/lib/chef/resource_collection/stepable_iterator.rb +124 -0
  766. data/lib/chef/resource_definition.rb +68 -0
  767. data/lib/chef/resource_definition_list.rb +38 -0
  768. data/lib/chef/resource_reporter.rb +322 -0
  769. data/lib/chef/resource_resolver.rb +111 -0
  770. data/lib/chef/resources.rb +89 -0
  771. data/lib/chef/rest.rb +208 -0
  772. data/lib/chef/role.rb +274 -0
  773. data/lib/chef/run_context.rb +310 -0
  774. data/lib/chef/run_context/cookbook_compiler.rb +292 -0
  775. data/lib/chef/run_list.rb +166 -0
  776. data/lib/chef/run_list/run_list_expansion.rb +191 -0
  777. data/lib/chef/run_list/run_list_item.rb +99 -0
  778. data/lib/chef/run_list/versioned_recipe_list.rb +86 -0
  779. data/lib/chef/run_lock.rb +188 -0
  780. data/lib/chef/run_status.rb +125 -0
  781. data/lib/chef/runner.rb +117 -0
  782. data/lib/chef/sandbox.rb +20 -0
  783. data/lib/chef/scan_access_control.rb +138 -0
  784. data/lib/chef/search/query.rb +152 -0
  785. data/lib/chef/server_api.rb +44 -0
  786. data/lib/chef/shell.rb +323 -0
  787. data/lib/chef/shell/ext.rb +593 -0
  788. data/lib/chef/shell/model_wrapper.rb +120 -0
  789. data/lib/chef/shell/shell_rest.rb +28 -0
  790. data/lib/chef/shell/shell_session.rb +298 -0
  791. data/lib/chef/shell_out.rb +13 -0
  792. data/lib/chef/tasks/chef_repo.rake +201 -0
  793. data/lib/chef/user.rb +183 -0
  794. data/lib/chef/util/backup.rb +86 -0
  795. data/lib/chef/util/diff.rb +184 -0
  796. data/lib/chef/util/dsc/configuration_generator.rb +139 -0
  797. data/lib/chef/util/dsc/lcm_output_parser.rb +137 -0
  798. data/lib/chef/util/dsc/local_configuration_manager.rb +141 -0
  799. data/lib/chef/util/dsc/resource_info.rb +26 -0
  800. data/lib/chef/util/dsc/resource_store.rb +110 -0
  801. data/lib/chef/util/editor.rb +92 -0
  802. data/lib/chef/util/file_edit.rb +100 -0
  803. data/lib/chef/util/path_helper.rb +26 -0
  804. data/lib/chef/util/powershell/cmdlet.rb +170 -0
  805. data/lib/chef/util/powershell/cmdlet_result.rb +61 -0
  806. data/lib/chef/util/powershell/ps_credential.rb +38 -0
  807. data/lib/chef/util/selinux.rb +92 -0
  808. data/lib/chef/util/threaded_job_queue.rb +61 -0
  809. data/lib/chef/util/windows.rb +56 -0
  810. data/lib/chef/util/windows/net_group.rb +106 -0
  811. data/lib/chef/util/windows/net_use.rb +121 -0
  812. data/lib/chef/util/windows/net_user.rb +169 -0
  813. data/lib/chef/util/windows/volume.rb +59 -0
  814. data/lib/chef/version.rb +34 -0
  815. data/lib/chef/version/platform.rb +44 -0
  816. data/lib/chef/version_class.rb +70 -0
  817. data/lib/chef/version_constraint.rb +118 -0
  818. data/lib/chef/version_constraint/platform.rb +26 -0
  819. data/lib/chef/whitelist.rb +86 -0
  820. data/lib/chef/win32/api.rb +368 -0
  821. data/lib/chef/win32/api/crypto.rb +63 -0
  822. data/lib/chef/win32/api/error.rb +921 -0
  823. data/lib/chef/win32/api/file.rb +551 -0
  824. data/lib/chef/win32/api/installer.rb +166 -0
  825. data/lib/chef/win32/api/memory.rb +105 -0
  826. data/lib/chef/win32/api/net.rb +204 -0
  827. data/lib/chef/win32/api/process.rb +42 -0
  828. data/lib/chef/win32/api/psapi.rb +51 -0
  829. data/lib/chef/win32/api/security.rb +435 -0
  830. data/lib/chef/win32/api/synchronization.rb +89 -0
  831. data/lib/chef/win32/api/system.rb +215 -0
  832. data/lib/chef/win32/api/unicode.rb +178 -0
  833. data/lib/chef/win32/crypto.rb +49 -0
  834. data/lib/chef/win32/error.rb +73 -0
  835. data/lib/chef/win32/eventlog.rb +31 -0
  836. data/lib/chef/win32/file.rb +188 -0
  837. data/lib/chef/win32/file/info.rb +100 -0
  838. data/lib/chef/win32/handle.rb +55 -0
  839. data/lib/chef/win32/memory.rb +101 -0
  840. data/lib/chef/win32/mutex.rb +117 -0
  841. data/lib/chef/win32/net.rb +190 -0
  842. data/lib/chef/win32/process.rb +84 -0
  843. data/lib/chef/win32/registry.rb +381 -0
  844. data/lib/chef/win32/security.rb +603 -0
  845. data/lib/chef/win32/security/ace.rb +123 -0
  846. data/lib/chef/win32/security/acl.rb +103 -0
  847. data/lib/chef/win32/security/securable_object.rb +109 -0
  848. data/lib/chef/win32/security/security_descriptor.rb +93 -0
  849. data/lib/chef/win32/security/sid.rb +266 -0
  850. data/lib/chef/win32/security/token.rb +72 -0
  851. data/lib/chef/win32/unicode.rb +55 -0
  852. data/lib/chef/win32/version.rb +162 -0
  853. data/lib/chef/workstation_config_loader.rb +178 -0
  854. data/spec/data/apt/chef-integration-test-1.0/debian/changelog +5 -0
  855. data/spec/data/apt/chef-integration-test-1.0/debian/compat +1 -0
  856. data/spec/data/apt/chef-integration-test-1.0/debian/control +13 -0
  857. data/spec/data/apt/chef-integration-test-1.0/debian/copyright +34 -0
  858. data/spec/data/apt/chef-integration-test-1.0/debian/files +1 -0
  859. data/spec/data/apt/chef-integration-test-1.0/debian/rules +13 -0
  860. data/spec/data/apt/chef-integration-test-1.0/debian/source/format +1 -0
  861. data/spec/data/apt/chef-integration-test-1.1/debian/changelog +11 -0
  862. data/spec/data/apt/chef-integration-test-1.1/debian/compat +1 -0
  863. data/spec/data/apt/chef-integration-test-1.1/debian/control +13 -0
  864. data/spec/data/apt/chef-integration-test-1.1/debian/copyright +34 -0
  865. data/spec/data/apt/chef-integration-test-1.1/debian/files +1 -0
  866. data/spec/data/apt/chef-integration-test-1.1/debian/rules +13 -0
  867. data/spec/data/apt/chef-integration-test-1.1/debian/source/format +1 -0
  868. data/spec/data/apt/chef-integration-test_1.0-1_amd64.changes +22 -0
  869. data/spec/data/apt/chef-integration-test_1.0-1_amd64.deb +0 -0
  870. data/spec/data/apt/chef-integration-test_1.0.orig.tar.gz +0 -0
  871. data/spec/data/apt/chef-integration-test_1.1-1_amd64.changes +22 -0
  872. data/spec/data/apt/chef-integration-test_1.1-1_amd64.deb +0 -0
  873. data/spec/data/apt/chef-integration-test_1.1.orig.tar.gz +0 -0
  874. data/spec/data/apt/var/www/apt/conf/distributions +7 -0
  875. data/spec/data/apt/var/www/apt/conf/incoming +4 -0
  876. data/spec/data/apt/var/www/apt/conf/pulls +3 -0
  877. data/spec/data/apt/var/www/apt/db/checksums.db +0 -0
  878. data/spec/data/apt/var/www/apt/db/contents.cache.db +0 -0
  879. data/spec/data/apt/var/www/apt/db/packages.db +0 -0
  880. data/spec/data/apt/var/www/apt/db/references.db +0 -0
  881. data/spec/data/apt/var/www/apt/db/release.caches.db +0 -0
  882. data/spec/data/apt/var/www/apt/db/version +4 -0
  883. data/spec/data/apt/var/www/apt/dists/sid/Release +19 -0
  884. data/spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Packages +16 -0
  885. data/spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Packages.gz +0 -0
  886. data/spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Release +5 -0
  887. data/spec/data/apt/var/www/apt/dists/sid/main/binary-i386/Packages +0 -0
  888. data/spec/data/apt/var/www/apt/pool/main/c/chef-integration-test/chef-integration-test_1.0-1_amd64.deb +0 -0
  889. data/spec/data/apt/var/www/apt/pool/main/c/chef-integration-test/chef-integration-test_1.1-1_amd64.deb +0 -0
  890. data/spec/data/bad-config.rb +1 -0
  891. data/spec/data/bootstrap/encrypted_data_bag_secret +1 -0
  892. data/spec/data/bootstrap/no_proxy.erb +2 -0
  893. data/spec/data/bootstrap/secret.erb +9 -0
  894. data/spec/data/bootstrap/test-hints.erb +12 -0
  895. data/spec/data/bootstrap/test.erb +1 -0
  896. data/spec/data/cb_version_cookbooks/cookbook2/files/test.txt +0 -0
  897. data/spec/data/cb_version_cookbooks/cookbook2/templates/test.erb +0 -0
  898. data/spec/data/cb_version_cookbooks/tatft/README.rdoc +3 -0
  899. data/spec/data/cb_version_cookbooks/tatft/attributes/default.rb +1 -0
  900. data/spec/data/cb_version_cookbooks/tatft/definitions/runit_service.rb +1 -0
  901. data/spec/data/cb_version_cookbooks/tatft/files/default/giant_blob.tgz +1 -0
  902. data/spec/data/cb_version_cookbooks/tatft/libraries/ownage.rb +1 -0
  903. data/spec/data/cb_version_cookbooks/tatft/providers/lwp.rb +1 -0
  904. data/spec/data/cb_version_cookbooks/tatft/recipes/default.rb +1 -0
  905. data/spec/data/cb_version_cookbooks/tatft/resources/lwr.rb +1 -0
  906. data/spec/data/cb_version_cookbooks/tatft/templates/default/configuration.erb +0 -0
  907. data/spec/data/checksum/random.txt +1 -0
  908. data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-600hhz-0 +1 -0
  909. data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-6m8zdk-0 +0 -0
  910. data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-ahd2gq-0 +1 -0
  911. data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-api8ux-0 +1 -0
  912. data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-b0r1m1-0 +1 -0
  913. data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-bfygsi-0 +1 -0
  914. data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-el14l6-0 +1 -0
  915. data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-ivrl3y-0 +1 -0
  916. data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-kkbs85-0 +1 -0
  917. data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-ory1ux-0 +1 -0
  918. data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-pgsq76-0 +1 -0
  919. data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-ra8uim-0 +1 -0
  920. data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-t7k1g-0 +1 -0
  921. data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-t8g0sv-0 +1 -0
  922. data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-ufy6g3-0 +1 -0
  923. data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-x2d6j9-0 +1 -0
  924. data/spec/data/checksum_cache/chef-file--tmp-chef-rendered-template20100929-10863-xi0l6h-0 +1 -0
  925. data/spec/data/config.rb +6 -0
  926. data/spec/data/cookbooks/angrybash/metadata.rb +2 -0
  927. data/spec/data/cookbooks/angrybash/recipes/default.rb +8 -0
  928. data/spec/data/cookbooks/apache2/files/default/apache2_module_conf_generate.pl +2 -0
  929. data/spec/data/cookbooks/apache2/metadata.rb +2 -0
  930. data/spec/data/cookbooks/apache2/recipes/default.rb +3 -0
  931. data/spec/data/cookbooks/borken/metadata.rb +2 -0
  932. data/spec/data/cookbooks/borken/recipes/default.rb +2 -0
  933. data/spec/data/cookbooks/borken/templates/default/borken.erb +2 -0
  934. data/spec/data/cookbooks/chefignore +8 -0
  935. data/spec/data/cookbooks/ignorken/files/default/not_me.rb +2 -0
  936. data/spec/data/cookbooks/ignorken/metadata.rb +2 -0
  937. data/spec/data/cookbooks/ignorken/recipes/default.rb +1 -0
  938. data/spec/data/cookbooks/ignorken/recipes/ignoreme.rb +2 -0
  939. data/spec/data/cookbooks/ignorken/templates/ubuntu-12.10/not_me.rb +2 -0
  940. data/spec/data/cookbooks/java/files/default/java.response +2 -0
  941. data/spec/data/cookbooks/java/metadata.rb +2 -0
  942. data/spec/data/cookbooks/name-mismatch-versionnumber/README.md +4 -0
  943. data/spec/data/cookbooks/name-mismatch-versionnumber/metadata.rb +8 -0
  944. data/spec/data/cookbooks/name-mismatch-versionnumber/recipes/default.rb +8 -0
  945. data/spec/data/cookbooks/openldap/attributes/default.rb +16 -0
  946. data/spec/data/cookbooks/openldap/attributes/smokey.rb +1 -0
  947. data/spec/data/cookbooks/openldap/definitions/client.rb +5 -0
  948. data/spec/data/cookbooks/openldap/definitions/server.rb +5 -0
  949. data/spec/data/cookbooks/openldap/files/default/.dotfile +1 -0
  950. data/spec/data/cookbooks/openldap/files/default/.ssh/id_rsa +1 -0
  951. data/spec/data/cookbooks/openldap/files/default/remotedir/.a_dotdir/.a_dotfile_in_a_dotdir +1 -0
  952. data/spec/data/cookbooks/openldap/files/default/remotedir/not_a_template.erb +2 -0
  953. data/spec/data/cookbooks/openldap/files/default/remotedir/remote_dir_file1.txt +3 -0
  954. data/spec/data/cookbooks/openldap/files/default/remotedir/remote_dir_file2.txt +3 -0
  955. data/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/.a_dotfile +1 -0
  956. data/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file1.txt +3 -0
  957. data/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file2.txt +3 -0
  958. data/spec/data/cookbooks/openldap/files/default/remotedir/subdir_with_no_file_just_a_subsubdir/the_subsubdir/some_file.txt +3 -0
  959. data/spec/data/cookbooks/openldap/libraries/openldap.rb +4 -0
  960. data/spec/data/cookbooks/openldap/libraries/openldap/version.rb +3 -0
  961. data/spec/data/cookbooks/openldap/metadata.rb +8 -0
  962. data/spec/data/cookbooks/openldap/recipes/default.rb +4 -0
  963. data/spec/data/cookbooks/openldap/recipes/gigantor.rb +3 -0
  964. data/spec/data/cookbooks/openldap/recipes/one.rb +15 -0
  965. data/spec/data/cookbooks/openldap/recipes/return.rb +2 -0
  966. data/spec/data/cookbooks/openldap/templates/default/all_windows_line_endings.erb +4 -0
  967. data/spec/data/cookbooks/openldap/templates/default/helper_test.erb +1 -0
  968. data/spec/data/cookbooks/openldap/templates/default/helpers_via_partial_test.erb +1 -0
  969. data/spec/data/cookbooks/openldap/templates/default/no_windows_line_endings.erb +4 -0
  970. data/spec/data/cookbooks/openldap/templates/default/openldap_stuff.conf.erb +1 -0
  971. data/spec/data/cookbooks/openldap/templates/default/openldap_variable_stuff.conf.erb +1 -0
  972. data/spec/data/cookbooks/openldap/templates/default/some_windows_line_endings.erb +4 -0
  973. data/spec/data/cookbooks/openldap/templates/default/test.erb +1 -0
  974. data/spec/data/cookbooks/preseed/files/default/preseed-file.seed +1 -0
  975. data/spec/data/cookbooks/preseed/files/default/preseed-template.seed +4 -0
  976. data/spec/data/cookbooks/preseed/metadata.rb +2 -0
  977. data/spec/data/cookbooks/preseed/templates/default/preseed-template-variables.seed +1 -0
  978. data/spec/data/cookbooks/preseed/templates/default/preseed-template.seed +1 -0
  979. data/spec/data/definitions/test.rb +5 -0
  980. data/spec/data/environment-config.rb +5 -0
  981. data/spec/data/file-providers-method-snapshot-chef-11-4.json +127 -0
  982. data/spec/data/fileedit/blank +0 -0
  983. data/spec/data/fileedit/hosts +4 -0
  984. data/spec/data/gems/chef-integration-test-0.1.0.gem +0 -0
  985. data/spec/data/git_bundles/example-repo.gitbundle +0 -0
  986. data/spec/data/git_bundles/sinatra-test-app-with-callback-files.gitbundle +0 -0
  987. data/spec/data/git_bundles/sinatra-test-app-with-symlinks.gitbundle +0 -0
  988. data/spec/data/git_bundles/sinatra-test-app.gitbundle +0 -0
  989. data/spec/data/incomplete-metadata-chef-repo/incomplete-metadata/README.md +4 -0
  990. data/spec/data/incomplete-metadata-chef-repo/incomplete-metadata/metadata.rb +13 -0
  991. data/spec/data/incomplete-metadata-chef-repo/incomplete-metadata/recipes/default.rb +8 -0
  992. data/spec/data/invalid-metadata-chef-repo/invalid-metadata/README.md +4 -0
  993. data/spec/data/invalid-metadata-chef-repo/invalid-metadata/metadata.rb +10 -0
  994. data/spec/data/invalid-metadata-chef-repo/invalid-metadata/recipes/default.rb +8 -0
  995. data/spec/data/kitchen/chefignore +6 -0
  996. data/spec/data/kitchen/openldap/attributes/default.rb +3 -0
  997. data/spec/data/kitchen/openldap/attributes/robinson.rb +3 -0
  998. data/spec/data/kitchen/openldap/definitions/client.rb +3 -0
  999. data/spec/data/kitchen/openldap/definitions/drewbarrymore.rb +3 -0
  1000. data/spec/data/kitchen/openldap/recipes/gigantor.rb +3 -0
  1001. data/spec/data/kitchen/openldap/recipes/ignoreme.rb +3 -0
  1002. data/spec/data/kitchen/openldap/recipes/woot.rb +3 -0
  1003. data/spec/data/knife-home/.chef/plugins/knife/example_home_subcommand.rb +0 -0
  1004. data/spec/data/knife-site-subcommands/plugins/knife/example_subcommand.rb +0 -0
  1005. data/spec/data/knife_subcommand/test_explicit_category.rb +7 -0
  1006. data/spec/data/knife_subcommand/test_name_mapping.rb +4 -0
  1007. data/spec/data/knife_subcommand/test_yourself.rb +21 -0
  1008. data/spec/data/lwrp/providers/buck_passer.rb +28 -0
  1009. data/spec/data/lwrp/providers/buck_passer_2.rb +26 -0
  1010. data/spec/data/lwrp/providers/embedded_resource_accesses_providers_scope.rb +28 -0
  1011. data/spec/data/lwrp/providers/inline_compiler.rb +26 -0
  1012. data/spec/data/lwrp/providers/monkey_name_printer.rb +5 -0
  1013. data/spec/data/lwrp/providers/paint_drying_watcher.rb +7 -0
  1014. data/spec/data/lwrp/providers/thumb_twiddler.rb +7 -0
  1015. data/spec/data/lwrp/resources/bar.rb +2 -0
  1016. data/spec/data/lwrp/resources/foo.rb +4 -0
  1017. data/spec/data/lwrp/resources_with_default_attributes/nodeattr.rb +1 -0
  1018. data/spec/data/lwrp_const_scoping/resources/conflict.rb +0 -0
  1019. data/spec/data/lwrp_override/providers/buck_passer.rb +5 -0
  1020. data/spec/data/lwrp_override/resources/foo.rb +10 -0
  1021. data/spec/data/mac_users/10.7-8.plist.xml +559 -0
  1022. data/spec/data/mac_users/10.7-8.shadow.xml +11 -0
  1023. data/spec/data/mac_users/10.7.plist.xml +559 -0
  1024. data/spec/data/mac_users/10.7.shadow.xml +11 -0
  1025. data/spec/data/mac_users/10.8.plist.xml +559 -0
  1026. data/spec/data/mac_users/10.8.shadow.xml +21 -0
  1027. data/spec/data/mac_users/10.9.plist.xml +560 -0
  1028. data/spec/data/mac_users/10.9.shadow.xml +21 -0
  1029. data/spec/data/metadata/quick_start/metadata.rb +19 -0
  1030. data/spec/data/nested.json +2 -0
  1031. data/spec/data/nodes/default.rb +15 -0
  1032. data/spec/data/nodes/test.example.com.rb +17 -0
  1033. data/spec/data/nodes/test.rb +15 -0
  1034. data/spec/data/null_config.rb +1 -0
  1035. data/spec/data/object_loader/environments/test.json +7 -0
  1036. data/spec/data/object_loader/environments/test.rb +2 -0
  1037. data/spec/data/object_loader/environments/test_json_class.json +8 -0
  1038. data/spec/data/object_loader/nodes/test.json +7 -0
  1039. data/spec/data/object_loader/nodes/test.rb +2 -0
  1040. data/spec/data/object_loader/nodes/test_json_class.json +8 -0
  1041. data/spec/data/object_loader/roles/test.json +7 -0
  1042. data/spec/data/object_loader/roles/test.rb +2 -0
  1043. data/spec/data/object_loader/roles/test_json_class.json +8 -0
  1044. data/spec/data/old_home_dir/my-dot-emacs +0 -0
  1045. data/spec/data/old_home_dir/my-dot-vim +0 -0
  1046. data/spec/data/partial_one.erb +1 -0
  1047. data/spec/data/recipes.tgz +0 -0
  1048. data/spec/data/recipes/test.rb +7 -0
  1049. data/spec/data/remote_directory_data/remote_dir_file.txt +1 -0
  1050. data/spec/data/remote_directory_data/remote_subdirectory/remote_subdir_file.txt +1 -0
  1051. data/spec/data/remote_file/nyan_cat.png +0 -0
  1052. data/spec/data/remote_file/nyan_cat.png.gz +0 -0
  1053. data/spec/data/run_context/cookbooks/circular-dep1/attributes/default.rb +4 -0
  1054. data/spec/data/run_context/cookbooks/circular-dep1/definitions/circular_dep1_res.rb +1 -0
  1055. data/spec/data/run_context/cookbooks/circular-dep1/libraries/lib.rb +2 -0
  1056. data/spec/data/run_context/cookbooks/circular-dep1/metadata.rb +2 -0
  1057. data/spec/data/run_context/cookbooks/circular-dep1/providers/provider.rb +1 -0
  1058. data/spec/data/run_context/cookbooks/circular-dep1/recipes/default.rb +0 -0
  1059. data/spec/data/run_context/cookbooks/circular-dep1/resources/resource.rb +1 -0
  1060. data/spec/data/run_context/cookbooks/circular-dep2/attributes/default.rb +3 -0
  1061. data/spec/data/run_context/cookbooks/circular-dep2/definitions/circular_dep2_res.rb +1 -0
  1062. data/spec/data/run_context/cookbooks/circular-dep2/libraries/lib.rb +2 -0
  1063. data/spec/data/run_context/cookbooks/circular-dep2/metadata.rb +2 -0
  1064. data/spec/data/run_context/cookbooks/circular-dep2/providers/provider.rb +1 -0
  1065. data/spec/data/run_context/cookbooks/circular-dep2/recipes/default.rb +0 -0
  1066. data/spec/data/run_context/cookbooks/circular-dep2/resources/resource.rb +1 -0
  1067. data/spec/data/run_context/cookbooks/dependency1/attributes/aa_first.rb +2 -0
  1068. data/spec/data/run_context/cookbooks/dependency1/attributes/default.rb +2 -0
  1069. data/spec/data/run_context/cookbooks/dependency1/attributes/zz_last.rb +3 -0
  1070. data/spec/data/run_context/cookbooks/dependency1/definitions/dependency1_res.rb +1 -0
  1071. data/spec/data/run_context/cookbooks/dependency1/libraries/lib.rb +2 -0
  1072. data/spec/data/run_context/cookbooks/dependency1/providers/provider.rb +1 -0
  1073. data/spec/data/run_context/cookbooks/dependency1/recipes/default.rb +0 -0
  1074. data/spec/data/run_context/cookbooks/dependency1/resources/resource.rb +1 -0
  1075. data/spec/data/run_context/cookbooks/dependency2/attributes/default.rb +3 -0
  1076. data/spec/data/run_context/cookbooks/dependency2/definitions/dependency2_res.rb +1 -0
  1077. data/spec/data/run_context/cookbooks/dependency2/libraries/lib.rb +2 -0
  1078. data/spec/data/run_context/cookbooks/dependency2/providers/provider.rb +1 -0
  1079. data/spec/data/run_context/cookbooks/dependency2/recipes/default.rb +0 -0
  1080. data/spec/data/run_context/cookbooks/dependency2/resources/resource.rb +1 -0
  1081. data/spec/data/run_context/cookbooks/no-default-attr/attributes/server.rb +3 -0
  1082. data/spec/data/run_context/cookbooks/no-default-attr/definitions/no_default-attr_res.rb +1 -0
  1083. data/spec/data/run_context/cookbooks/no-default-attr/providers/provider.rb +1 -0
  1084. data/spec/data/run_context/cookbooks/no-default-attr/recipes/default.rb +0 -0
  1085. data/spec/data/run_context/cookbooks/no-default-attr/resources/resource.rb +1 -0
  1086. data/spec/data/run_context/cookbooks/test-with-circular-deps/attributes/default.rb +3 -0
  1087. data/spec/data/run_context/cookbooks/test-with-circular-deps/definitions/test_with-circular-deps_res.rb +1 -0
  1088. data/spec/data/run_context/cookbooks/test-with-circular-deps/libraries/lib.rb +2 -0
  1089. data/spec/data/run_context/cookbooks/test-with-circular-deps/metadata.rb +2 -0
  1090. data/spec/data/run_context/cookbooks/test-with-circular-deps/providers/provider.rb +1 -0
  1091. data/spec/data/run_context/cookbooks/test-with-circular-deps/recipes/default.rb +0 -0
  1092. data/spec/data/run_context/cookbooks/test-with-circular-deps/resources/resource.rb +1 -0
  1093. data/spec/data/run_context/cookbooks/test-with-deps/attributes/default.rb +3 -0
  1094. data/spec/data/run_context/cookbooks/test-with-deps/definitions/test_with-deps_res.rb +1 -0
  1095. data/spec/data/run_context/cookbooks/test-with-deps/libraries/lib.rb +1 -0
  1096. data/spec/data/run_context/cookbooks/test-with-deps/metadata.rb +3 -0
  1097. data/spec/data/run_context/cookbooks/test-with-deps/providers/provider.rb +1 -0
  1098. data/spec/data/run_context/cookbooks/test-with-deps/recipes/default.rb +0 -0
  1099. data/spec/data/run_context/cookbooks/test-with-deps/recipes/server.rb +0 -0
  1100. data/spec/data/run_context/cookbooks/test-with-deps/resources/resource.rb +1 -0
  1101. data/spec/data/run_context/cookbooks/test/attributes/default.rb +0 -0
  1102. data/spec/data/run_context/cookbooks/test/attributes/george.rb +1 -0
  1103. data/spec/data/run_context/cookbooks/test/definitions/new_animals.rb +9 -0
  1104. data/spec/data/run_context/cookbooks/test/definitions/new_cat.rb +5 -0
  1105. data/spec/data/run_context/cookbooks/test/definitions/test_res.rb +1 -0
  1106. data/spec/data/run_context/cookbooks/test/providers/provider.rb +1 -0
  1107. data/spec/data/run_context/cookbooks/test/recipes/default.rb +5 -0
  1108. data/spec/data/run_context/cookbooks/test/recipes/one.rb +7 -0
  1109. data/spec/data/run_context/cookbooks/test/recipes/two.rb +7 -0
  1110. data/spec/data/run_context/cookbooks/test/resources/resource.rb +1 -0
  1111. data/spec/data/run_context/nodes/run_context.rb +5 -0
  1112. data/spec/data/search_queries_to_transform.txt +98 -0
  1113. data/spec/data/shef-config.rb +10 -0
  1114. data/spec/data/ssl/5e707473.0 +18 -0
  1115. data/spec/data/ssl/chef-rspec.cert +27 -0
  1116. data/spec/data/ssl/chef-rspec.key +27 -0
  1117. data/spec/data/ssl/key.pem +15 -0
  1118. data/spec/data/ssl/private_key.pem +27 -0
  1119. data/spec/data/ssl/private_key_with_whitespace.pem +32 -0
  1120. data/spec/data/standalone_cookbook/Gemfile +1 -0
  1121. data/spec/data/standalone_cookbook/chefignore +9 -0
  1122. data/spec/data/standalone_cookbook/recipes/default.rb +3 -0
  1123. data/spec/data/standalone_cookbook/vendor/bundle/ruby/2.0.0/gems/multi_json-1.9.0/lib/multi_json.rb +1 -0
  1124. data/spec/data/templates/seattle.txt +1 -0
  1125. data/spec/data/trusted_certs/example.crt +22 -0
  1126. data/spec/data/trusted_certs/intermediate.pem +27 -0
  1127. data/spec/data/trusted_certs/opscode.pem +60 -0
  1128. data/spec/data/trusted_certs/root.pem +22 -0
  1129. data/spec/functional/application_spec.rb +58 -0
  1130. data/spec/functional/assets/PkgA.1.0.0.0.bff +0 -0
  1131. data/spec/functional/assets/PkgA.2.0.0.0.bff +0 -0
  1132. data/spec/functional/assets/chefinittest +34 -0
  1133. data/spec/functional/assets/dummy-1-0.aix6.1.noarch.rpm +0 -0
  1134. data/spec/functional/assets/dummy-2-0.aix6.1.noarch.rpm +0 -0
  1135. data/spec/functional/assets/mytest-1.0-1.noarch.rpm +0 -0
  1136. data/spec/functional/assets/mytest-2.0-1.noarch.rpm +0 -0
  1137. data/spec/functional/assets/testchefsubsys +11 -0
  1138. data/spec/functional/audit/rspec_formatter_spec.rb +54 -0
  1139. data/spec/functional/audit/runner_spec.rb +137 -0
  1140. data/spec/functional/dsl/reboot_pending_spec.rb +121 -0
  1141. data/spec/functional/dsl/registry_helper_spec.rb +63 -0
  1142. data/spec/functional/event_loggers/windows_eventlog_spec.rb +96 -0
  1143. data/spec/functional/file_content_management/deploy_strategies_spec.rb +230 -0
  1144. data/spec/functional/http/simple_spec.rb +140 -0
  1145. data/spec/functional/knife/configure_spec.rb +38 -0
  1146. data/spec/functional/knife/cookbook_delete_spec.rb +157 -0
  1147. data/spec/functional/knife/exec_spec.rb +55 -0
  1148. data/spec/functional/knife/smoke_test.rb +34 -0
  1149. data/spec/functional/knife/ssh_spec.rb +268 -0
  1150. data/spec/functional/mixin/shell_out_spec.rb +48 -0
  1151. data/spec/functional/notifications_spec.rb +169 -0
  1152. data/spec/functional/provider/remote_file/cache_control_data_spec.rb +101 -0
  1153. data/spec/functional/provider/whyrun_safe_ruby_block_spec.rb +51 -0
  1154. data/spec/functional/rebooter_spec.rb +105 -0
  1155. data/spec/functional/resource/aix_service_spec.rb +139 -0
  1156. data/spec/functional/resource/aixinit_service_spec.rb +211 -0
  1157. data/spec/functional/resource/base.rb +30 -0
  1158. data/spec/functional/resource/bash_spec.rb +88 -0
  1159. data/spec/functional/resource/batch_spec.rb +30 -0
  1160. data/spec/functional/resource/bff_spec.rb +122 -0
  1161. data/spec/functional/resource/cookbook_file_spec.rb +81 -0
  1162. data/spec/functional/resource/cron_spec.rb +172 -0
  1163. data/spec/functional/resource/deploy_revision_spec.rb +881 -0
  1164. data/spec/functional/resource/directory_spec.rb +43 -0
  1165. data/spec/functional/resource/dsc_resource_spec.rb +93 -0
  1166. data/spec/functional/resource/dsc_script_spec.rb +382 -0
  1167. data/spec/functional/resource/env_spec.rb +192 -0
  1168. data/spec/functional/resource/execute_spec.rb +147 -0
  1169. data/spec/functional/resource/file_spec.rb +143 -0
  1170. data/spec/functional/resource/git_spec.rb +259 -0
  1171. data/spec/functional/resource/group_spec.rb +433 -0
  1172. data/spec/functional/resource/ifconfig_spec.rb +163 -0
  1173. data/spec/functional/resource/link_spec.rb +614 -0
  1174. data/spec/functional/resource/mount_spec.rb +212 -0
  1175. data/spec/functional/resource/ohai_spec.rb +65 -0
  1176. data/spec/functional/resource/package_spec.rb +390 -0
  1177. data/spec/functional/resource/powershell_spec.rb +477 -0
  1178. data/spec/functional/resource/reboot_spec.rb +103 -0
  1179. data/spec/functional/resource/registry_spec.rb +561 -0
  1180. data/spec/functional/resource/remote_directory_spec.rb +220 -0
  1181. data/spec/functional/resource/remote_file_spec.rb +240 -0
  1182. data/spec/functional/resource/rpm_spec.rb +123 -0
  1183. data/spec/functional/resource/template_spec.rb +212 -0
  1184. data/spec/functional/resource/user/dscl_spec.rb +198 -0
  1185. data/spec/functional/resource/user/useradd_spec.rb +713 -0
  1186. data/spec/functional/resource/user/windows_spec.rb +125 -0
  1187. data/spec/functional/resource/windows_service_spec.rb +98 -0
  1188. data/spec/functional/rest_spec.rb +94 -0
  1189. data/spec/functional/run_lock_spec.rb +286 -0
  1190. data/spec/functional/shell_spec.rb +147 -0
  1191. data/spec/functional/tiny_server_spec.rb +78 -0
  1192. data/spec/functional/util/path_helper_spec.rb +37 -0
  1193. data/spec/functional/util/powershell/cmdlet_spec.rb +114 -0
  1194. data/spec/functional/version_spec.rb +35 -0
  1195. data/spec/functional/win32/crypto_spec.rb +57 -0
  1196. data/spec/functional/win32/registry_helper_spec.rb +632 -0
  1197. data/spec/functional/win32/security_spec.rb +100 -0
  1198. data/spec/functional/win32/service_manager_spec.rb +221 -0
  1199. data/spec/functional/win32/sid_spec.rb +55 -0
  1200. data/spec/functional/win32/versions_spec.rb +117 -0
  1201. data/spec/integration/client/client_spec.rb +370 -0
  1202. data/spec/integration/client/ipv6_spec.rb +135 -0
  1203. data/spec/integration/knife/chef_fs_data_store_spec.rb +370 -0
  1204. data/spec/integration/knife/chef_repo_path_spec.rb +888 -0
  1205. data/spec/integration/knife/chef_repository_file_system_spec.rb +292 -0
  1206. data/spec/integration/knife/chefignore_spec.rb +300 -0
  1207. data/spec/integration/knife/common_options_spec.rb +155 -0
  1208. data/spec/integration/knife/cookbook_api_ipv6_spec.rb +112 -0
  1209. data/spec/integration/knife/delete_spec.rb +1003 -0
  1210. data/spec/integration/knife/deps_spec.rb +706 -0
  1211. data/spec/integration/knife/diff_spec.rb +602 -0
  1212. data/spec/integration/knife/download_spec.rb +1170 -0
  1213. data/spec/integration/knife/list_spec.rb +865 -0
  1214. data/spec/integration/knife/raw_spec.rb +242 -0
  1215. data/spec/integration/knife/redirection_spec.rb +52 -0
  1216. data/spec/integration/knife/serve_spec.rb +57 -0
  1217. data/spec/integration/knife/show_spec.rb +167 -0
  1218. data/spec/integration/knife/upload_spec.rb +1391 -0
  1219. data/spec/integration/recipes/lwrp_inline_resources_spec.rb +78 -0
  1220. data/spec/integration/recipes/provider_choice.rb +41 -0
  1221. data/spec/integration/recipes/recipe_dsl_spec.rb +259 -0
  1222. data/spec/integration/solo/solo_spec.rb +143 -0
  1223. data/spec/rcov.opts +2 -0
  1224. data/spec/scripts/ssl-serve.rb +52 -0
  1225. data/spec/spec_helper.rb +219 -0
  1226. data/spec/stress/win32/file_spec.rb +37 -0
  1227. data/spec/stress/win32/memory_spec.rb +22 -0
  1228. data/spec/stress/win32/security_spec.rb +69 -0
  1229. data/spec/support/chef_helpers.rb +96 -0
  1230. data/spec/support/key_helpers.rb +104 -0
  1231. data/spec/support/lib/chef/provider/easy.rb +35 -0
  1232. data/spec/support/lib/chef/provider/snakeoil.rb +41 -0
  1233. data/spec/support/lib/chef/resource/cat.rb +40 -0
  1234. data/spec/support/lib/chef/resource/one_two_three_four.rb +43 -0
  1235. data/spec/support/lib/chef/resource/with_state.rb +37 -0
  1236. data/spec/support/lib/chef/resource/zen_follower.rb +41 -0
  1237. data/spec/support/lib/chef/resource/zen_master.rb +47 -0
  1238. data/spec/support/lib/library_load_order.rb +22 -0
  1239. data/spec/support/matchers/leak.rb +96 -0
  1240. data/spec/support/mock/constant.rb +52 -0
  1241. data/spec/support/mock/platform.rb +25 -0
  1242. data/spec/support/pedant/Gemfile +3 -0
  1243. data/spec/support/pedant/Gemfile.lock +67 -0
  1244. data/spec/support/pedant/pedant_config.rb +129 -0
  1245. data/spec/support/pedant/run_pedant.rb +63 -0
  1246. data/spec/support/pedant/stickywicket.pem +27 -0
  1247. data/spec/support/platform_helpers.rb +184 -0
  1248. data/spec/support/platforms/prof/gc.rb +54 -0
  1249. data/spec/support/platforms/prof/win32.rb +46 -0
  1250. data/spec/support/platforms/win32/spec_service.rb +59 -0
  1251. data/spec/support/shared/context/config.rb +21 -0
  1252. data/spec/support/shared/functional/diff_disabled.rb +10 -0
  1253. data/spec/support/shared/functional/directory_resource.rb +176 -0
  1254. data/spec/support/shared/functional/file_resource.rb +1056 -0
  1255. data/spec/support/shared/functional/http.rb +249 -0
  1256. data/spec/support/shared/functional/knife.rb +37 -0
  1257. data/spec/support/shared/functional/securable_resource.rb +571 -0
  1258. data/spec/support/shared/functional/securable_resource_with_reporting.rb +398 -0
  1259. data/spec/support/shared/functional/win32_service.rb +60 -0
  1260. data/spec/support/shared/functional/windows_script.rb +165 -0
  1261. data/spec/support/shared/integration/app_server_support.rb +42 -0
  1262. data/spec/support/shared/integration/integration_helper.rb +148 -0
  1263. data/spec/support/shared/integration/knife_support.rb +173 -0
  1264. data/spec/support/shared/matchers/exit_with_code.rb +32 -0
  1265. data/spec/support/shared/matchers/match_environment_variable.rb +17 -0
  1266. data/spec/support/shared/shared_examples.rb +14 -0
  1267. data/spec/support/shared/unit/api_error_inspector.rb +192 -0
  1268. data/spec/support/shared/unit/execute_resource.rb +128 -0
  1269. data/spec/support/shared/unit/file_system_support.rb +70 -0
  1270. data/spec/support/shared/unit/platform_introspector.rb +184 -0
  1271. data/spec/support/shared/unit/provider/file.rb +840 -0
  1272. data/spec/support/shared/unit/provider/useradd_based_user_provider.rb +434 -0
  1273. data/spec/support/shared/unit/resource/static_provider_resolution.rb +66 -0
  1274. data/spec/support/shared/unit/script_resource.rb +98 -0
  1275. data/spec/support/shared/unit/windows_script_resource.rb +81 -0
  1276. data/spec/tiny_server.rb +203 -0
  1277. data/spec/unit/api_client/registration_spec.rb +274 -0
  1278. data/spec/unit/api_client_spec.rb +348 -0
  1279. data/spec/unit/application/agent_spec.rb +0 -0
  1280. data/spec/unit/application/apply_spec.rb +110 -0
  1281. data/spec/unit/application/client_spec.rb +420 -0
  1282. data/spec/unit/application/knife_spec.rb +177 -0
  1283. data/spec/unit/application/server_spec.rb +0 -0
  1284. data/spec/unit/application/solo_spec.rb +185 -0
  1285. data/spec/unit/application_spec.rb +544 -0
  1286. data/spec/unit/audit/audit_event_proxy_spec.rb +311 -0
  1287. data/spec/unit/audit/audit_reporter_spec.rb +393 -0
  1288. data/spec/unit/audit/control_group_data_spec.rb +478 -0
  1289. data/spec/unit/audit/rspec_formatter_spec.rb +29 -0
  1290. data/spec/unit/audit/runner_spec.rb +145 -0
  1291. data/spec/unit/chef_class_spec.rb +91 -0
  1292. data/spec/unit/chef_fs/config_spec.rb +110 -0
  1293. data/spec/unit/chef_fs/data_handler/group_handler_spec.rb +63 -0
  1294. data/spec/unit/chef_fs/diff_spec.rb +328 -0
  1295. data/spec/unit/chef_fs/file_pattern_spec.rb +525 -0
  1296. data/spec/unit/chef_fs/file_system/operation_failed_error_spec.rb +47 -0
  1297. data/spec/unit/chef_fs/file_system_spec.rb +148 -0
  1298. data/spec/unit/chef_fs/parallelizer.rb +482 -0
  1299. data/spec/unit/chef_spec.rb +25 -0
  1300. data/spec/unit/client_spec.rb +839 -0
  1301. data/spec/unit/config_fetcher_spec.rb +97 -0
  1302. data/spec/unit/cookbook/chefignore_spec.rb +49 -0
  1303. data/spec/unit/cookbook/cookbook_version_loader_spec.rb +187 -0
  1304. data/spec/unit/cookbook/file_vendor_spec.rb +98 -0
  1305. data/spec/unit/cookbook/metadata_spec.rb +787 -0
  1306. data/spec/unit/cookbook/synchronizer_spec.rb +521 -0
  1307. data/spec/unit/cookbook/syntax_check_spec.rb +214 -0
  1308. data/spec/unit/cookbook_loader_spec.rb +291 -0
  1309. data/spec/unit/cookbook_manifest_spec.rb +244 -0
  1310. data/spec/unit/cookbook_site_streaming_uploader_spec.rb +199 -0
  1311. data/spec/unit/cookbook_spec.rb +75 -0
  1312. data/spec/unit/cookbook_uploader_spec.rb +200 -0
  1313. data/spec/unit/cookbook_version_file_specificity_spec.rb +554 -0
  1314. data/spec/unit/cookbook_version_spec.rb +364 -0
  1315. data/spec/unit/daemon_spec.rb +174 -0
  1316. data/spec/unit/data_bag_item_spec.rb +324 -0
  1317. data/spec/unit/data_bag_spec.rb +260 -0
  1318. data/spec/unit/deprecation_spec.rb +98 -0
  1319. data/spec/unit/digester_spec.rb +50 -0
  1320. data/spec/unit/dsl/audit_spec.rb +43 -0
  1321. data/spec/unit/dsl/data_query_spec.rb +106 -0
  1322. data/spec/unit/dsl/platform_introspection_spec.rb +130 -0
  1323. data/spec/unit/dsl/reboot_pending_spec.rb +94 -0
  1324. data/spec/unit/dsl/recipe_spec.rb +82 -0
  1325. data/spec/unit/dsl/regsitry_helper_spec.rb +55 -0
  1326. data/spec/unit/encrypted_data_bag_item/check_encrypted_spec.rb +95 -0
  1327. data/spec/unit/encrypted_data_bag_item_spec.rb +437 -0
  1328. data/spec/unit/environment_spec.rb +470 -0
  1329. data/spec/unit/event_dispatch/dispatcher_spec.rb +61 -0
  1330. data/spec/unit/exceptions_spec.rb +130 -0
  1331. data/spec/unit/file_access_control_spec.rb +308 -0
  1332. data/spec/unit/file_cache_spec.rb +114 -0
  1333. data/spec/unit/file_content_management/deploy/cp_spec.rb +46 -0
  1334. data/spec/unit/file_content_management/deploy/mv_unix_spec.rb +103 -0
  1335. data/spec/unit/file_content_management/deploy/mv_windows_spec.rb +179 -0
  1336. data/spec/unit/formatters/base_spec.rb +48 -0
  1337. data/spec/unit/formatters/error_inspectors/api_error_formatting_spec.rb +75 -0
  1338. data/spec/unit/formatters/error_inspectors/compile_error_inspector_spec.rb +239 -0
  1339. data/spec/unit/formatters/error_inspectors/cookbook_resolve_error_inspector_spec.rb +129 -0
  1340. data/spec/unit/formatters/error_inspectors/cookbook_sync_error_inspector_spec.rb +43 -0
  1341. data/spec/unit/formatters/error_inspectors/node_load_error_inspector_spec.rb +27 -0
  1342. data/spec/unit/formatters/error_inspectors/registration_error_inspector_spec.rb +27 -0
  1343. data/spec/unit/formatters/error_inspectors/resource_failure_inspector_spec.rb +193 -0
  1344. data/spec/unit/formatters/error_inspectors/run_list_expansion_error_inspector_spec.rb +93 -0
  1345. data/spec/unit/guard_interpreter/resource_guard_interpreter_spec.rb +147 -0
  1346. data/spec/unit/guard_interpreter_spec.rb +41 -0
  1347. data/spec/unit/handler/json_file_spec.rb +64 -0
  1348. data/spec/unit/handler_spec.rb +215 -0
  1349. data/spec/unit/http/authenticator_spec.rb +69 -0
  1350. data/spec/unit/http/basic_client_spec.rb +129 -0
  1351. data/spec/unit/http/http_request_spec.rb +91 -0
  1352. data/spec/unit/http/json_input_spec.rb +128 -0
  1353. data/spec/unit/http/simple_spec.rb +32 -0
  1354. data/spec/unit/http/socketless_chef_zero_client_spec.rb +174 -0
  1355. data/spec/unit/http/ssl_policies_spec.rb +170 -0
  1356. data/spec/unit/http/validate_content_length_spec.rb +192 -0
  1357. data/spec/unit/http_spec.rb +92 -0
  1358. data/spec/unit/json_compat_spec.rb +97 -0
  1359. data/spec/unit/key_spec.rb +634 -0
  1360. data/spec/unit/knife/bootstrap/chef_vault_handler_spec.rb +153 -0
  1361. data/spec/unit/knife/bootstrap/client_builder_spec.rb +178 -0
  1362. data/spec/unit/knife/bootstrap_spec.rb +641 -0
  1363. data/spec/unit/knife/client_bulk_delete_spec.rb +166 -0
  1364. data/spec/unit/knife/client_create_spec.rb +116 -0
  1365. data/spec/unit/knife/client_delete_spec.rb +83 -0
  1366. data/spec/unit/knife/client_edit_spec.rb +40 -0
  1367. data/spec/unit/knife/client_list_spec.rb +34 -0
  1368. data/spec/unit/knife/client_reregister_spec.rb +62 -0
  1369. data/spec/unit/knife/client_show_spec.rb +52 -0
  1370. data/spec/unit/knife/configure_client_spec.rb +84 -0
  1371. data/spec/unit/knife/configure_spec.rb +243 -0
  1372. data/spec/unit/knife/cookbook_bulk_delete_spec.rb +89 -0
  1373. data/spec/unit/knife/cookbook_create_spec.rb +260 -0
  1374. data/spec/unit/knife/cookbook_delete_spec.rb +239 -0
  1375. data/spec/unit/knife/cookbook_download_spec.rb +238 -0
  1376. data/spec/unit/knife/cookbook_list_spec.rb +88 -0
  1377. data/spec/unit/knife/cookbook_metadata_from_file_spec.rb +65 -0
  1378. data/spec/unit/knife/cookbook_metadata_spec.rb +179 -0
  1379. data/spec/unit/knife/cookbook_show_spec.rb +223 -0
  1380. data/spec/unit/knife/cookbook_site_download_spec.rb +151 -0
  1381. data/spec/unit/knife/cookbook_site_install_spec.rb +195 -0
  1382. data/spec/unit/knife/cookbook_site_share_spec.rb +209 -0
  1383. data/spec/unit/knife/cookbook_site_unshare_spec.rb +77 -0
  1384. data/spec/unit/knife/cookbook_test_spec.rb +84 -0
  1385. data/spec/unit/knife/cookbook_upload_spec.rb +329 -0
  1386. data/spec/unit/knife/core/bootstrap_context_spec.rb +227 -0
  1387. data/spec/unit/knife/core/cookbook_scm_repo_spec.rb +187 -0
  1388. data/spec/unit/knife/core/object_loader_spec.rb +81 -0
  1389. data/spec/unit/knife/core/subcommand_loader_spec.rb +224 -0
  1390. data/spec/unit/knife/core/ui_spec.rb +577 -0
  1391. data/spec/unit/knife/data_bag_create_spec.rb +109 -0
  1392. data/spec/unit/knife/data_bag_edit_spec.rb +127 -0
  1393. data/spec/unit/knife/data_bag_from_file_spec.rb +172 -0
  1394. data/spec/unit/knife/data_bag_secret_options_spec.rb +165 -0
  1395. data/spec/unit/knife/data_bag_show_spec.rb +123 -0
  1396. data/spec/unit/knife/environment_compare_spec.rb +112 -0
  1397. data/spec/unit/knife/environment_create_spec.rb +91 -0
  1398. data/spec/unit/knife/environment_delete_spec.rb +71 -0
  1399. data/spec/unit/knife/environment_edit_spec.rb +79 -0
  1400. data/spec/unit/knife/environment_from_file_spec.rb +90 -0
  1401. data/spec/unit/knife/environment_list_spec.rb +54 -0
  1402. data/spec/unit/knife/environment_show_spec.rb +52 -0
  1403. data/spec/unit/knife/index_rebuild_spec.rb +128 -0
  1404. data/spec/unit/knife/key_create_spec.rb +224 -0
  1405. data/spec/unit/knife/key_delete_spec.rb +135 -0
  1406. data/spec/unit/knife/key_edit_spec.rb +267 -0
  1407. data/spec/unit/knife/key_helper.rb +74 -0
  1408. data/spec/unit/knife/key_list_spec.rb +216 -0
  1409. data/spec/unit/knife/key_show_spec.rb +126 -0
  1410. data/spec/unit/knife/knife_help.rb +92 -0
  1411. data/spec/unit/knife/node_bulk_delete_spec.rb +97 -0
  1412. data/spec/unit/knife/node_delete_spec.rb +68 -0
  1413. data/spec/unit/knife/node_edit_spec.rb +115 -0
  1414. data/spec/unit/knife/node_environment_set_spec.rb +80 -0
  1415. data/spec/unit/knife/node_from_file_spec.rb +59 -0
  1416. data/spec/unit/knife/node_list_spec.rb +63 -0
  1417. data/spec/unit/knife/node_run_list_add_spec.rb +148 -0
  1418. data/spec/unit/knife/node_run_list_remove_spec.rb +89 -0
  1419. data/spec/unit/knife/node_run_list_set_spec.rb +140 -0
  1420. data/spec/unit/knife/node_show_spec.rb +65 -0
  1421. data/spec/unit/knife/raw_spec.rb +43 -0
  1422. data/spec/unit/knife/role_bulk_delete_spec.rb +80 -0
  1423. data/spec/unit/knife/role_create_spec.rb +80 -0
  1424. data/spec/unit/knife/role_delete_spec.rb +67 -0
  1425. data/spec/unit/knife/role_edit_spec.rb +79 -0
  1426. data/spec/unit/knife/role_env_run_list_add_spec.rb +217 -0
  1427. data/spec/unit/knife/role_env_run_list_clear_spec.rb +100 -0
  1428. data/spec/unit/knife/role_env_run_list_remove_spec.rb +108 -0
  1429. data/spec/unit/knife/role_env_run_list_replace_spec.rb +108 -0
  1430. data/spec/unit/knife/role_env_run_list_set_spec.rb +102 -0
  1431. data/spec/unit/knife/role_from_file_spec.rb +69 -0
  1432. data/spec/unit/knife/role_list_spec.rb +56 -0
  1433. data/spec/unit/knife/role_run_list_add_spec.rb +179 -0
  1434. data/spec/unit/knife/role_run_list_clear_spec.rb +90 -0
  1435. data/spec/unit/knife/role_run_list_remove_spec.rb +98 -0
  1436. data/spec/unit/knife/role_run_list_replace_spec.rb +101 -0
  1437. data/spec/unit/knife/role_run_list_set_spec.rb +92 -0
  1438. data/spec/unit/knife/role_show_spec.rb +59 -0
  1439. data/spec/unit/knife/ssh_spec.rb +410 -0
  1440. data/spec/unit/knife/ssl_check_spec.rb +232 -0
  1441. data/spec/unit/knife/ssl_fetch_spec.rb +184 -0
  1442. data/spec/unit/knife/status_spec.rb +108 -0
  1443. data/spec/unit/knife/tag_create_spec.rb +23 -0
  1444. data/spec/unit/knife/tag_delete_spec.rb +25 -0
  1445. data/spec/unit/knife/tag_list_spec.rb +23 -0
  1446. data/spec/unit/knife/user_create_spec.rb +88 -0
  1447. data/spec/unit/knife/user_delete_spec.rb +39 -0
  1448. data/spec/unit/knife/user_edit_spec.rb +47 -0
  1449. data/spec/unit/knife/user_list_spec.rb +32 -0
  1450. data/spec/unit/knife/user_reregister_spec.rb +53 -0
  1451. data/spec/unit/knife/user_show_spec.rb +41 -0
  1452. data/spec/unit/knife_spec.rb +492 -0
  1453. data/spec/unit/log/syslog_spec.rb +53 -0
  1454. data/spec/unit/log/winevt_spec.rb +55 -0
  1455. data/spec/unit/log_spec.rb +24 -0
  1456. data/spec/unit/lwrp_spec.rb +497 -0
  1457. data/spec/unit/mash_spec.rb +51 -0
  1458. data/spec/unit/mixin/checksum_spec.rb +41 -0
  1459. data/spec/unit/mixin/command_spec.rb +105 -0
  1460. data/spec/unit/mixin/convert_to_class_name_spec.rb +54 -0
  1461. data/spec/unit/mixin/deep_merge_spec.rb +342 -0
  1462. data/spec/unit/mixin/deprecation_spec.rb +57 -0
  1463. data/spec/unit/mixin/enforce_ownership_and_permissions_spec.rb +96 -0
  1464. data/spec/unit/mixin/homebrew_user_spec.rb +100 -0
  1465. data/spec/unit/mixin/params_validate_spec.rb +407 -0
  1466. data/spec/unit/mixin/path_sanity_spec.rb +86 -0
  1467. data/spec/unit/mixin/powershell_type_coercions_spec.rb +72 -0
  1468. data/spec/unit/mixin/securable_spec.rb +314 -0
  1469. data/spec/unit/mixin/shell_out_spec.rb +299 -0
  1470. data/spec/unit/mixin/template_spec.rb +269 -0
  1471. data/spec/unit/mixin/unformatter_spec.rb +61 -0
  1472. data/spec/unit/mixin/uris_spec.rb +45 -0
  1473. data/spec/unit/mixin/windows_architecture_helper_spec.rb +83 -0
  1474. data/spec/unit/mixin/xml_escape_spec.rb +54 -0
  1475. data/spec/unit/monkey_patches/uri_spec.rb +34 -0
  1476. data/spec/unit/monologger_spec.rb +45 -0
  1477. data/spec/unit/node/attribute_spec.rb +1224 -0
  1478. data/spec/unit/node/immutable_collections_spec.rb +198 -0
  1479. data/spec/unit/node_map_spec.rb +155 -0
  1480. data/spec/unit/node_spec.rb +1307 -0
  1481. data/spec/unit/org_spec.rb +196 -0
  1482. data/spec/unit/platform/query_helpers_spec.rb +77 -0
  1483. data/spec/unit/platform_spec.rb +301 -0
  1484. data/spec/unit/policy_builder/expand_node_object_spec.rb +335 -0
  1485. data/spec/unit/policy_builder/policyfile_spec.rb +530 -0
  1486. data/spec/unit/policy_builder_spec.rb +26 -0
  1487. data/spec/unit/provider/breakpoint_spec.rb +54 -0
  1488. data/spec/unit/provider/cookbook_file/content_spec.rb +40 -0
  1489. data/spec/unit/provider/cookbook_file_spec.rb +58 -0
  1490. data/spec/unit/provider/cron/unix_spec.rb +139 -0
  1491. data/spec/unit/provider/cron_spec.rb +1010 -0
  1492. data/spec/unit/provider/deploy/revision_spec.rb +111 -0
  1493. data/spec/unit/provider/deploy/timestamped_spec.rb +40 -0
  1494. data/spec/unit/provider/deploy_spec.rb +642 -0
  1495. data/spec/unit/provider/directory_spec.rb +188 -0
  1496. data/spec/unit/provider/dsc_resource_spec.rb +84 -0
  1497. data/spec/unit/provider/dsc_script_spec.rb +174 -0
  1498. data/spec/unit/provider/env/windows_spec.rb +103 -0
  1499. data/spec/unit/provider/env_spec.rb +310 -0
  1500. data/spec/unit/provider/erl_call_spec.rb +86 -0
  1501. data/spec/unit/provider/execute_spec.rb +176 -0
  1502. data/spec/unit/provider/file/content_spec.rb +114 -0
  1503. data/spec/unit/provider/file_spec.rb +57 -0
  1504. data/spec/unit/provider/git_spec.rb +669 -0
  1505. data/spec/unit/provider/group/dscl_spec.rb +331 -0
  1506. data/spec/unit/provider/group/gpasswd_spec.rb +116 -0
  1507. data/spec/unit/provider/group/groupadd_spec.rb +174 -0
  1508. data/spec/unit/provider/group/groupmod_spec.rb +133 -0
  1509. data/spec/unit/provider/group/pw_spec.rb +138 -0
  1510. data/spec/unit/provider/group/usermod_spec.rb +115 -0
  1511. data/spec/unit/provider/group/windows_spec.rb +101 -0
  1512. data/spec/unit/provider/group_spec.rb +286 -0
  1513. data/spec/unit/provider/http_request_spec.rb +159 -0
  1514. data/spec/unit/provider/ifconfig/aix_spec.rb +181 -0
  1515. data/spec/unit/provider/ifconfig/debian_spec.rb +354 -0
  1516. data/spec/unit/provider/ifconfig/redhat_spec.rb +73 -0
  1517. data/spec/unit/provider/ifconfig_spec.rb +180 -0
  1518. data/spec/unit/provider/link_spec.rb +252 -0
  1519. data/spec/unit/provider/log_spec.rb +75 -0
  1520. data/spec/unit/provider/mdadm_spec.rb +131 -0
  1521. data/spec/unit/provider/mount/aix_spec.rb +237 -0
  1522. data/spec/unit/provider/mount/mount_spec.rb +474 -0
  1523. data/spec/unit/provider/mount/solaris_spec.rb +822 -0
  1524. data/spec/unit/provider/mount/windows_spec.rb +137 -0
  1525. data/spec/unit/provider/mount_spec.rb +193 -0
  1526. data/spec/unit/provider/ohai_spec.rb +84 -0
  1527. data/spec/unit/provider/package/aix_spec.rb +172 -0
  1528. data/spec/unit/provider/package/apt_spec.rb +386 -0
  1529. data/spec/unit/provider/package/dpkg_spec.rb +195 -0
  1530. data/spec/unit/provider/package/easy_install_spec.rb +112 -0
  1531. data/spec/unit/provider/package/freebsd/pkg_spec.rb +274 -0
  1532. data/spec/unit/provider/package/freebsd/pkgng_spec.rb +155 -0
  1533. data/spec/unit/provider/package/freebsd/port_spec.rb +170 -0
  1534. data/spec/unit/provider/package/homebrew_spec.rb +292 -0
  1535. data/spec/unit/provider/package/ips_spec.rb +228 -0
  1536. data/spec/unit/provider/package/macports_spec.rb +203 -0
  1537. data/spec/unit/provider/package/openbsd_spec.rb +154 -0
  1538. data/spec/unit/provider/package/pacman_spec.rb +195 -0
  1539. data/spec/unit/provider/package/paludis_spec.rb +135 -0
  1540. data/spec/unit/provider/package/portage_spec.rb +310 -0
  1541. data/spec/unit/provider/package/rpm_spec.rb +205 -0
  1542. data/spec/unit/provider/package/rubygems_spec.rb +701 -0
  1543. data/spec/unit/provider/package/smartos_spec.rb +112 -0
  1544. data/spec/unit/provider/package/solaris_spec.rb +167 -0
  1545. data/spec/unit/provider/package/windows/msi_spec.rb +75 -0
  1546. data/spec/unit/provider/package/windows_spec.rb +165 -0
  1547. data/spec/unit/provider/package/yum_spec.rb +2190 -0
  1548. data/spec/unit/provider/package/zypper_spec.rb +230 -0
  1549. data/spec/unit/provider/package_spec.rb +707 -0
  1550. data/spec/unit/provider/package_spec.rbe +0 -0
  1551. data/spec/unit/provider/powershell_spec.rb +38 -0
  1552. data/spec/unit/provider/registry_key_spec.rb +283 -0
  1553. data/spec/unit/provider/remote_directory_spec.rb +222 -0
  1554. data/spec/unit/provider/remote_file/cache_control_data_spec.rb +220 -0
  1555. data/spec/unit/provider/remote_file/content_spec.rb +253 -0
  1556. data/spec/unit/provider/remote_file/fetcher_spec.rb +94 -0
  1557. data/spec/unit/provider/remote_file/ftp_spec.rb +219 -0
  1558. data/spec/unit/provider/remote_file/http_spec.rb +303 -0
  1559. data/spec/unit/provider/remote_file/local_file_spec.rb +84 -0
  1560. data/spec/unit/provider/remote_file/network_file_spec.rb +45 -0
  1561. data/spec/unit/provider/remote_file_spec.rb +63 -0
  1562. data/spec/unit/provider/route_spec.rb +243 -0
  1563. data/spec/unit/provider/ruby_block_spec.rb +46 -0
  1564. data/spec/unit/provider/script_spec.rb +114 -0
  1565. data/spec/unit/provider/service/aix_service_spec.rb +196 -0
  1566. data/spec/unit/provider/service/aixinit_service_spec.rb +269 -0
  1567. data/spec/unit/provider/service/arch_service_spec.rb +324 -0
  1568. data/spec/unit/provider/service/debian_service_spec.rb +375 -0
  1569. data/spec/unit/provider/service/freebsd_service_spec.rb +625 -0
  1570. data/spec/unit/provider/service/gentoo_service_spec.rb +144 -0
  1571. data/spec/unit/provider/service/init_service_spec.rb +235 -0
  1572. data/spec/unit/provider/service/insserv_service_spec.rb +75 -0
  1573. data/spec/unit/provider/service/invokercd_service_spec.rb +211 -0
  1574. data/spec/unit/provider/service/macosx_spec.rb +335 -0
  1575. data/spec/unit/provider/service/openbsd_service_spec.rb +543 -0
  1576. data/spec/unit/provider/service/redhat_spec.rb +156 -0
  1577. data/spec/unit/provider/service/simple_service_spec.rb +169 -0
  1578. data/spec/unit/provider/service/solaris_smf_service_spec.rb +184 -0
  1579. data/spec/unit/provider/service/systemd_service_spec.rb +279 -0
  1580. data/spec/unit/provider/service/upstart_service_spec.rb +319 -0
  1581. data/spec/unit/provider/service/windows_spec.rb +461 -0
  1582. data/spec/unit/provider/service_spec.rb +169 -0
  1583. data/spec/unit/provider/subversion_spec.rb +280 -0
  1584. data/spec/unit/provider/template/content_spec.rb +78 -0
  1585. data/spec/unit/provider/template_spec.rb +90 -0
  1586. data/spec/unit/provider/user/dscl_spec.rb +887 -0
  1587. data/spec/unit/provider/user/pw_spec.rb +252 -0
  1588. data/spec/unit/provider/user/solaris_spec.rb +80 -0
  1589. data/spec/unit/provider/user/useradd_spec.rb +51 -0
  1590. data/spec/unit/provider/user/windows_spec.rb +185 -0
  1591. data/spec/unit/provider/user_spec.rb +466 -0
  1592. data/spec/unit/provider/whyrun_safe_ruby_block_spec.rb +47 -0
  1593. data/spec/unit/provider_resolver_spec.rb +689 -0
  1594. data/spec/unit/provider_spec.rb +201 -0
  1595. data/spec/unit/pure_application_spec.rb +32 -0
  1596. data/spec/unit/recipe_spec.rb +649 -0
  1597. data/spec/unit/registry_helper_spec.rb +376 -0
  1598. data/spec/unit/resource/apt_package_spec.rb +38 -0
  1599. data/spec/unit/resource/bash_spec.rb +40 -0
  1600. data/spec/unit/resource/batch_spec.rb +49 -0
  1601. data/spec/unit/resource/breakpoint_spec.rb +47 -0
  1602. data/spec/unit/resource/chef_gem_spec.rb +161 -0
  1603. data/spec/unit/resource/conditional_action_not_nothing_spec.rb +45 -0
  1604. data/spec/unit/resource/conditional_spec.rb +208 -0
  1605. data/spec/unit/resource/cookbook_file_spec.rb +89 -0
  1606. data/spec/unit/resource/cron_spec.rb +186 -0
  1607. data/spec/unit/resource/csh_spec.rb +40 -0
  1608. data/spec/unit/resource/deploy_revision_spec.rb +42 -0
  1609. data/spec/unit/resource/deploy_spec.rb +278 -0
  1610. data/spec/unit/resource/directory_spec.rb +82 -0
  1611. data/spec/unit/resource/dpkg_package_spec.rb +32 -0
  1612. data/spec/unit/resource/dsc_resource_spec.rb +85 -0
  1613. data/spec/unit/resource/dsc_script_spec.rb +130 -0
  1614. data/spec/unit/resource/easy_install_package_spec.rb +39 -0
  1615. data/spec/unit/resource/env_spec.rb +85 -0
  1616. data/spec/unit/resource/erl_call_spec.rb +81 -0
  1617. data/spec/unit/resource/execute_spec.rb +35 -0
  1618. data/spec/unit/resource/file/verification_spec.rb +111 -0
  1619. data/spec/unit/resource/file_spec.rb +130 -0
  1620. data/spec/unit/resource/freebsd_package_spec.rb +90 -0
  1621. data/spec/unit/resource/gem_package_spec.rb +42 -0
  1622. data/spec/unit/resource/git_spec.rb +50 -0
  1623. data/spec/unit/resource/group_spec.rb +157 -0
  1624. data/spec/unit/resource/homebrew_package_spec.rb +50 -0
  1625. data/spec/unit/resource/http_request_spec.rb +59 -0
  1626. data/spec/unit/resource/ifconfig_spec.rb +105 -0
  1627. data/spec/unit/resource/ips_package_spec.rb +40 -0
  1628. data/spec/unit/resource/link_spec.rb +134 -0
  1629. data/spec/unit/resource/log_spec.rb +73 -0
  1630. data/spec/unit/resource/macports_package_spec.rb +32 -0
  1631. data/spec/unit/resource/mdadm_spec.rb +102 -0
  1632. data/spec/unit/resource/mount_spec.rb +214 -0
  1633. data/spec/unit/resource/ohai_spec.rb +62 -0
  1634. data/spec/unit/resource/openbsd_package_spec.rb +49 -0
  1635. data/spec/unit/resource/package_spec.rb +93 -0
  1636. data/spec/unit/resource/pacman_package_spec.rb +32 -0
  1637. data/spec/unit/resource/perl_spec.rb +40 -0
  1638. data/spec/unit/resource/portage_package_spec.rb +38 -0
  1639. data/spec/unit/resource/powershell_spec.rb +132 -0
  1640. data/spec/unit/resource/python_spec.rb +40 -0
  1641. data/spec/unit/resource/registry_key_spec.rb +199 -0
  1642. data/spec/unit/resource/remote_directory_spec.rb +97 -0
  1643. data/spec/unit/resource/remote_file_spec.rb +202 -0
  1644. data/spec/unit/resource/resource_notification_spec.rb +170 -0
  1645. data/spec/unit/resource/route_spec.rb +107 -0
  1646. data/spec/unit/resource/rpm_package_spec.rb +46 -0
  1647. data/spec/unit/resource/ruby_block_spec.rb +61 -0
  1648. data/spec/unit/resource/ruby_spec.rb +40 -0
  1649. data/spec/unit/resource/scm_spec.rb +193 -0
  1650. data/spec/unit/resource/script_spec.rb +44 -0
  1651. data/spec/unit/resource/service_spec.rb +180 -0
  1652. data/spec/unit/resource/smartos_package_spec.rb +33 -0
  1653. data/spec/unit/resource/solaris_package_spec.rb +42 -0
  1654. data/spec/unit/resource/subversion_spec.rb +67 -0
  1655. data/spec/unit/resource/template_spec.rb +211 -0
  1656. data/spec/unit/resource/timestamped_deploy_spec.rb +33 -0
  1657. data/spec/unit/resource/user_spec.rb +133 -0
  1658. data/spec/unit/resource/windows_package_spec.rb +95 -0
  1659. data/spec/unit/resource/windows_service_spec.rb +49 -0
  1660. data/spec/unit/resource/yum_package_spec.rb +80 -0
  1661. data/spec/unit/resource_builder_spec.rb +1 -0
  1662. data/spec/unit/resource_collection/resource_list_spec.rb +137 -0
  1663. data/spec/unit/resource_collection/resource_set_spec.rb +199 -0
  1664. data/spec/unit/resource_collection/stepable_iterator_spec.rb +144 -0
  1665. data/spec/unit/resource_collection_spec.rb +300 -0
  1666. data/spec/unit/resource_definition_spec.rb +117 -0
  1667. data/spec/unit/resource_reporter_spec.rb +759 -0
  1668. data/spec/unit/resource_spec.rb +879 -0
  1669. data/spec/unit/rest/auth_credentials_spec.rb +328 -0
  1670. data/spec/unit/rest_spec.rb +747 -0
  1671. data/spec/unit/role_spec.rb +362 -0
  1672. data/spec/unit/run_context/cookbook_compiler_spec.rb +186 -0
  1673. data/spec/unit/run_context_spec.rb +193 -0
  1674. data/spec/unit/run_list/run_list_expansion_spec.rb +129 -0
  1675. data/spec/unit/run_list/run_list_item_spec.rb +117 -0
  1676. data/spec/unit/run_list/versioned_recipe_list_spec.rb +123 -0
  1677. data/spec/unit/run_list_spec.rb +316 -0
  1678. data/spec/unit/run_lock_spec.rb +140 -0
  1679. data/spec/unit/run_status_spec.rb +145 -0
  1680. data/spec/unit/runner_spec.rb +411 -0
  1681. data/spec/unit/scan_access_control_spec.rb +184 -0
  1682. data/spec/unit/search/query_spec.rb +267 -0
  1683. data/spec/unit/shell/model_wrapper_spec.rb +97 -0
  1684. data/spec/unit/shell/shell_ext_spec.rb +153 -0
  1685. data/spec/unit/shell/shell_session_spec.rb +196 -0
  1686. data/spec/unit/shell_out_spec.rb +18 -0
  1687. data/spec/unit/shell_spec.rb +162 -0
  1688. data/spec/unit/user_spec.rb +271 -0
  1689. data/spec/unit/util/backup_spec.rb +142 -0
  1690. data/spec/unit/util/diff_spec.rb +579 -0
  1691. data/spec/unit/util/dsc/configuration_generator_spec.rb +193 -0
  1692. data/spec/unit/util/dsc/lcm_output_parser_spec.rb +164 -0
  1693. data/spec/unit/util/dsc/local_configuration_manager_spec.rb +139 -0
  1694. data/spec/unit/util/dsc/resource_store.rb +76 -0
  1695. data/spec/unit/util/editor_spec.rb +152 -0
  1696. data/spec/unit/util/file_edit_spec.rb +224 -0
  1697. data/spec/unit/util/powershell/cmdlet_spec.rb +106 -0
  1698. data/spec/unit/util/powershell/ps_credential_spec.rb +37 -0
  1699. data/spec/unit/util/selinux_spec.rb +172 -0
  1700. data/spec/unit/util/threaded_job_queue_spec.rb +51 -0
  1701. data/spec/unit/version/platform_spec.rb +61 -0
  1702. data/spec/unit/version_class_spec.rb +172 -0
  1703. data/spec/unit/version_constraint/platform_spec.rb +46 -0
  1704. data/spec/unit/version_constraint_spec.rb +179 -0
  1705. data/spec/unit/windows_service_spec.rb +71 -0
  1706. data/spec/unit/workstation_config_loader_spec.rb +283 -0
  1707. data/tasks/external_tests.rb +29 -0
  1708. data/tasks/rspec.rb +86 -0
  1709. metadata +2305 -0
@@ -0,0 +1,2 @@
1
+ /*! jQuery v1.8.3 jquery.com | jquery.org/license */
2
+ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:D.test(r)?v.parseJSON(r):r}catch(s){}v.data(e,n,r)}else r=t}return r}function B(e){var t;for(t in e){if(t==="data"&&v.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function et(){return!1}function tt(){return!0}function ut(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function at(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function ft(e,t,n){t=t||0;if(v.isFunction(t))return v.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return v.grep(e,function(e,r){return e===t===n});if(typeof t=="string"){var r=v.grep(e,function(e){return e.nodeType===1});if(it.test(t))return v.filter(t,r,!n);t=v.filter(t,r)}return v.grep(e,function(e,r){return v.inArray(e,t)>=0===n})}function lt(e){var t=ct.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function At(e,t){if(t.nodeType!==1||!v.hasData(e))return;var n,r,i,s=v._data(e),o=v._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u)for(r=0,i=u[n].length;r<i;r++)v.event.add(t,n,u[n][r])}o.data&&(o.data=v.extend({},o.data))}function Ot(e,t){var n;if(t.nodeType!==1)return;t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),n=t.nodeName.toLowerCase(),n==="object"?(t.parentNode&&(t.outerHTML=e.outerHTML),v.support.html5Clone&&e.innerHTML&&!v.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):n==="input"&&Et.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):n==="option"?t.selected=e.defaultSelected:n==="input"||n==="textarea"?t.defaultValue=e.defaultValue:n==="script"&&t.text!==e.text&&(t.text=e.text),t.removeAttribute(v.expando)}function Mt(e){return typeof e.getElementsByTagName!="undefined"?e.getElementsByTagName("*"):typeof e.querySelectorAll!="undefined"?e.querySelectorAll("*"):[]}function _t(e){Et.test(e.type)&&(e.defaultChecked=e.checked)}function Qt(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Jt.length;while(i--){t=Jt[i]+n;if(t in e)return t}return r}function Gt(e,t){return e=t||e,v.css(e,"display")==="none"||!v.contains(e.ownerDocument,e)}function Yt(e,t){var n,r,i=[],s=0,o=e.length;for(;s<o;s++){n=e[s];if(!n.style)continue;i[s]=v._data(n,"olddisplay"),t?(!i[s]&&n.style.display==="none"&&(n.style.display=""),n.style.display===""&&Gt(n)&&(i[s]=v._data(n,"olddisplay",nn(n.nodeName)))):(r=Dt(n,"display"),!i[s]&&r!=="none"&&v._data(n,"olddisplay",r))}for(s=0;s<o;s++){n=e[s];if(!n.style)continue;if(!t||n.style.display==="none"||n.style.display==="")n.style.display=t?i[s]||"":"none"}return e}function Zt(e,t,n){var r=Rt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function en(e,t,n,r){var i=n===(r?"border":"content")?4:t==="width"?1:0,s=0;for(;i<4;i+=2)n==="margin"&&(s+=v.css(e,n+$t[i],!0)),r?(n==="content"&&(s-=parseFloat(Dt(e,"padding"+$t[i]))||0),n!=="margin"&&(s-=parseFloat(Dt(e,"border"+$t[i]+"Width"))||0)):(s+=parseFloat(Dt(e,"padding"+$t[i]))||0,n!=="padding"&&(s+=parseFloat(Dt(e,"border"+$t[i]+"Width"))||0));return s}function tn(e,t,n){var r=t==="width"?e.offsetWidth:e.offsetHeight,i=!0,s=v.support.boxSizing&&v.css(e,"boxSizing")==="border-box";if(r<=0||r==null){r=Dt(e,t);if(r<0||r==null)r=e.style[t];if(Ut.test(r))return r;i=s&&(v.support.boxSizingReliable||r===e.style[t]),r=parseFloat(r)||0}return r+en(e,t,n||(s?"border":"content"),i)+"px"}function nn(e){if(Wt[e])return Wt[e];var t=v("<"+e+">").appendTo(i.body),n=t.css("display");t.remove();if(n==="none"||n===""){Pt=i.body.appendChild(Pt||v.extend(i.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!Ht||!Pt.createElement)Ht=(Pt.contentWindow||Pt.contentDocument).document,Ht.write("<!doctype html><html><body>"),Ht.close();t=Ht.body.appendChild(Ht.createElement(e)),n=Dt(t,"display"),i.body.removeChild(Pt)}return Wt[e]=n,n}function fn(e,t,n,r){var i;if(v.isArray(t))v.each(t,function(t,i){n||sn.test(e)?r(e,i):fn(e+"["+(typeof i=="object"?t:"")+"]",i,n,r)});else if(!n&&v.type(t)==="object")for(i in t)fn(e+"["+i+"]",t[i],n,r);else r(e,t)}function Cn(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,i,s,o=t.toLowerCase().split(y),u=0,a=o.length;if(v.isFunction(n))for(;u<a;u++)r=o[u],s=/^\+/.test(r),s&&(r=r.substr(1)||"*"),i=e[r]=e[r]||[],i[s?"unshift":"push"](n)}}function kn(e,n,r,i,s,o){s=s||n.dataTypes[0],o=o||{},o[s]=!0;var u,a=e[s],f=0,l=a?a.length:0,c=e===Sn;for(;f<l&&(c||!u);f++)u=a[f](n,r,i),typeof u=="string"&&(!c||o[u]?u=t:(n.dataTypes.unshift(u),u=kn(e,n,r,i,u,o)));return(c||!u)&&!o["*"]&&(u=kn(e,n,r,i,"*",o)),u}function Ln(e,n){var r,i,s=v.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((s[r]?e:i||(i={}))[r]=n[r]);i&&v.extend(!0,e,i)}function An(e,n,r){var i,s,o,u,a=e.contents,f=e.dataTypes,l=e.responseFields;for(s in l)s in r&&(n[l[s]]=r[s]);while(f[0]==="*")f.shift(),i===t&&(i=e.mimeType||n.getResponseHeader("content-type"));if(i)for(s in a)if(a[s]&&a[s].test(i)){f.unshift(s);break}if(f[0]in r)o=f[0];else{for(s in r){if(!f[0]||e.converters[s+" "+f[0]]){o=s;break}u||(u=s)}o=o||u}if(o)return o!==f[0]&&f.unshift(o),r[o]}function On(e,t){var n,r,i,s,o=e.dataTypes.slice(),u=o[0],a={},f=0;e.dataFilter&&(t=e.dataFilter(t,e.dataType));if(o[1])for(n in e.converters)a[n.toLowerCase()]=e.converters[n];for(;i=o[++f];)if(i!=="*"){if(u!=="*"&&u!==i){n=a[u+" "+i]||a["* "+i];if(!n)for(r in a){s=r.split(" ");if(s[1]===i){n=a[u+" "+s[0]]||a["* "+s[0]];if(n){n===!0?n=a[r]:a[r]!==!0&&(i=s[0],o.splice(f--,0,i));break}}}if(n!==!0)if(n&&e["throws"])t=n(t);else try{t=n(t)}catch(l){return{state:"parsererror",error:n?l:"No conversion from "+u+" to "+i}}}u=i}return{state:"success",data:t}}function Fn(){try{return new e.XMLHttpRequest}catch(t){}}function In(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function $n(){return setTimeout(function(){qn=t},0),qn=v.now()}function Jn(e,t){v.each(t,function(t,n){var r=(Vn[t]||[]).concat(Vn["*"]),i=0,s=r.length;for(;i<s;i++)if(r[i].call(e,t,n))return})}function Kn(e,t,n){var r,i=0,s=0,o=Xn.length,u=v.Deferred().always(function(){delete a.elem}),a=function(){var t=qn||$n(),n=Math.max(0,f.startTime+f.duration-t),r=n/f.duration||0,i=1-r,s=0,o=f.tweens.length;for(;s<o;s++)f.tweens[s].run(i);return u.notifyWith(e,[f,i,n]),i<1&&o?n:(u.resolveWith(e,[f]),!1)},f=u.promise({elem:e,props:v.extend({},t),opts:v.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:qn||$n(),duration:n.duration,tweens:[],createTween:function(t,n,r){var i=v.Tween(e,f.opts,t,n,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(i),i},stop:function(t){var n=0,r=t?f.tweens.length:0;for(;n<r;n++)f.tweens[n].run(1);return t?u.resolveWith(e,[f,t]):u.rejectWith(e,[f,t]),this}}),l=f.props;Qn(l,f.opts.specialEasing);for(;i<o;i++){r=Xn[i].call(f,e,l,f.opts);if(r)return r}return Jn(f,l),v.isFunction(f.opts.start)&&f.opts.start.call(e,f),v.fx.timer(v.extend(a,{anim:f,queue:f.opts.queue,elem:e})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}function Qn(e,t){var n,r,i,s,o;for(n in e){r=v.camelCase(n),i=t[r],s=e[n],v.isArray(s)&&(i=s[1],s=e[n]=s[0]),n!==r&&(e[r]=s,delete e[n]),o=v.cssHooks[r];if(o&&"expand"in o){s=o.expand(s),delete e[r];for(n in s)n in e||(e[n]=s[n],t[n]=i)}else t[r]=i}}function Gn(e,t,n){var r,i,s,o,u,a,f,l,c,h=this,p=e.style,d={},m=[],g=e.nodeType&&Gt(e);n.queue||(l=v._queueHooks(e,"fx"),l.unqueued==null&&(l.unqueued=0,c=l.empty.fire,l.empty.fire=function(){l.unqueued||c()}),l.unqueued++,h.always(function(){h.always(function(){l.unqueued--,v.queue(e,"fx").length||l.empty.fire()})})),e.nodeType===1&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],v.css(e,"display")==="inline"&&v.css(e,"float")==="none"&&(!v.support.inlineBlockNeedsLayout||nn(e.nodeName)==="inline"?p.display="inline-block":p.zoom=1)),n.overflow&&(p.overflow="hidden",v.support.shrinkWrapBlocks||h.done(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t){s=t[r];if(Un.exec(s)){delete t[r],a=a||s==="toggle";if(s===(g?"hide":"show"))continue;m.push(r)}}o=m.length;if(o){u=v._data(e,"fxshow")||v._data(e,"fxshow",{}),"hidden"in u&&(g=u.hidden),a&&(u.hidden=!g),g?v(e).show():h.done(function(){v(e).hide()}),h.done(function(){var t;v.removeData(e,"fxshow",!0);for(t in d)v.style(e,t,d[t])});for(r=0;r<o;r++)i=m[r],f=h.createTween(i,g?u[i]:0),d[i]=u[i]||v.style(e,i),i in u||(u[i]=f.start,g&&(f.end=f.start,f.start=i==="width"||i==="height"?1:0))}}function Yn(e,t,n,r,i){return new Yn.prototype.init(e,t,n,r,i)}function Zn(e,t){var n,r={height:e},i=0;t=t?1:0;for(;i<4;i+=2-t)n=$t[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function tr(e){return v.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:!1}var n,r,i=e.document,s=e.location,o=e.navigator,u=e.jQuery,a=e.$,f=Array.prototype.push,l=Array.prototype.slice,c=Array.prototype.indexOf,h=Object.prototype.toString,p=Object.prototype.hasOwnProperty,d=String.prototype.trim,v=function(e,t){return new v.fn.init(e,t,n)},m=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,g=/\S/,y=/\s+/,b=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,w=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,E=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,S=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,T=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,N=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,C=/^-ms-/,k=/-([\da-z])/gi,L=function(e,t){return(t+"").toUpperCase()},A=function(){i.addEventListener?(i.removeEventListener("DOMContentLoaded",A,!1),v.ready()):i.readyState==="complete"&&(i.detachEvent("onreadystatechange",A),v.ready())},O={};v.fn=v.prototype={constructor:v,init:function(e,n,r){var s,o,u,a;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if(typeof e=="string"){e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?s=[null,e,null]:s=w.exec(e);if(s&&(s[1]||!n)){if(s[1])return n=n instanceof v?n[0]:n,a=n&&n.nodeType?n.ownerDocument||n:i,e=v.parseHTML(s[1],a,!0),E.test(s[1])&&v.isPlainObject(n)&&this.attr.call(e,n,!0),v.merge(this,e);o=i.getElementById(s[2]);if(o&&o.parentNode){if(o.id!==s[2])return r.find(e);this.length=1,this[0]=o}return this.context=i,this.selector=e,this}return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}return v.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),v.makeArray(e,this))},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return l.call(this)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=v.merge(this.constructor(),e);return r.prevObject=this,r.context=this.context,t==="find"?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return v.each(this,e,t)},ready:function(e){return v.ready.promise().done(e),this},eq:function(e){return e=+e,e===-1?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(l.apply(this,arguments),"slice",l.call(arguments).join(","))},map:function(e){return this.pushStack(v.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:[].sort,splice:[].splice},v.fn.init.prototype=v.fn,v.extend=v.fn.extend=function(){var e,n,r,i,s,o,u=arguments[0]||{},a=1,f=arguments.length,l=!1;typeof u=="boolean"&&(l=u,u=arguments[1]||{},a=2),typeof u!="object"&&!v.isFunction(u)&&(u={}),f===a&&(u=this,--a);for(;a<f;a++)if((e=arguments[a])!=null)for(n in e){r=u[n],i=e[n];if(u===i)continue;l&&i&&(v.isPlainObject(i)||(s=v.isArray(i)))?(s?(s=!1,o=r&&v.isArray(r)?r:[]):o=r&&v.isPlainObject(r)?r:{},u[n]=v.extend(l,o,i)):i!==t&&(u[n]=i)}return u},v.extend({noConflict:function(t){return e.$===v&&(e.$=a),t&&e.jQuery===v&&(e.jQuery=u),v},isReady:!1,readyWait:1,holdReady:function(e){e?v.readyWait++:v.ready(!0)},ready:function(e){if(e===!0?--v.readyWait:v.isReady)return;if(!i.body)return setTimeout(v.ready,1);v.isReady=!0;if(e!==!0&&--v.readyWait>0)return;r.resolveWith(i,[v]),v.fn.trigger&&v(i).trigger("ready").off("ready")},isFunction:function(e){return v.type(e)==="function"},isArray:Array.isArray||function(e){return v.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):O[h.call(e)]||"object"},isPlainObject:function(e){if(!e||v.type(e)!=="object"||e.nodeType||v.isWindow(e))return!1;try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||p.call(e,r)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){var r;return!e||typeof e!="string"?null:(typeof t=="boolean"&&(n=t,t=0),t=t||i,(r=E.exec(e))?[t.createElement(r[1])]:(r=v.buildFragment([e],t,n?null:[]),v.merge([],(r.cacheable?v.clone(r.fragment):r.fragment).childNodes)))},parseJSON:function(t){if(!t||typeof t!="string")return null;t=v.trim(t);if(e.JSON&&e.JSON.parse)return e.JSON.parse(t);if(S.test(t.replace(T,"@").replace(N,"]").replace(x,"")))return(new Function("return "+t))();v.error("Invalid JSON: "+t)},parseXML:function(n){var r,i;if(!n||typeof n!="string")return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(s){r=t}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&v.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&g.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(C,"ms-").replace(k,L)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,n,r){var i,s=0,o=e.length,u=o===t||v.isFunction(e);if(r){if(u){for(i in e)if(n.apply(e[i],r)===!1)break}else for(;s<o;)if(n.apply(e[s++],r)===!1)break}else if(u){for(i in e)if(n.call(e[i],i,e[i])===!1)break}else for(;s<o;)if(n.call(e[s],s,e[s++])===!1)break;return e},trim:d&&!d.call("\ufeff\u00a0")?function(e){return e==null?"":d.call(e)}:function(e){return e==null?"":(e+"").replace(b,"")},makeArray:function(e,t){var n,r=t||[];return e!=null&&(n=v.type(e),e.length==null||n==="string"||n==="function"||n==="regexp"||v.isWindow(e)?f.call(r,e):v.merge(r,e)),r},inArray:function(e,t,n){var r;if(t){if(c)return c.call(t,e,n);r=t.length,n=n?n<0?Math.max(0,r+n):n:0;for(;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,s=0;if(typeof r=="number")for(;s<r;s++)e[i++]=n[s];else while(n[s]!==t)e[i++]=n[s++];return e.length=i,e},grep:function(e,t,n){var r,i=[],s=0,o=e.length;n=!!n;for(;s<o;s++)r=!!t(e[s],s),n!==r&&i.push(e[s]);return i},map:function(e,n,r){var i,s,o=[],u=0,a=e.length,f=e instanceof v||a!==t&&typeof a=="number"&&(a>0&&e[0]&&e[a-1]||a===0||v.isArray(e));if(f)for(;u<a;u++)i=n(e[u],u,r),i!=null&&(o[o.length]=i);else for(s in e)i=n(e[s],s,r),i!=null&&(o[o.length]=i);return o.concat.apply([],o)},guid:1,proxy:function(e,n){var r,i,s;return typeof n=="string"&&(r=e[n],n=e,e=r),v.isFunction(e)?(i=l.call(arguments,2),s=function(){return e.apply(n,i.concat(l.call(arguments)))},s.guid=e.guid=e.guid||v.guid++,s):t},access:function(e,n,r,i,s,o,u){var a,f=r==null,l=0,c=e.length;if(r&&typeof r=="object"){for(l in r)v.access(e,n,l,r[l],1,o,i);s=1}else if(i!==t){a=u===t&&v.isFunction(i),f&&(a?(a=n,n=function(e,t,n){return a.call(v(e),n)}):(n.call(e,i),n=null));if(n)for(;l<c;l++)n(e[l],r,a?i.call(e[l],l,n(e[l],r)):i,u);s=1}return s?e:f?n.call(e):c?n(e[0],r):o},now:function(){return(new Date).getTime()}}),v.ready.promise=function(t){if(!r){r=v.Deferred();if(i.readyState==="complete")setTimeout(v.ready,1);else if(i.addEventListener)i.addEventListener("DOMContentLoaded",A,!1),e.addEventListener("load",v.ready,!1);else{i.attachEvent("onreadystatechange",A),e.attachEvent("onload",v.ready);var n=!1;try{n=e.frameElement==null&&i.documentElement}catch(s){}n&&n.doScroll&&function o(){if(!v.isReady){try{n.doScroll("left")}catch(e){return setTimeout(o,50)}v.ready()}}()}}return r.promise(t)},v.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,t){O["[object "+t+"]"]=t.toLowerCase()}),n=v(i);var M={};v.Callbacks=function(e){e=typeof e=="string"?M[e]||_(e):v.extend({},e);var n,r,i,s,o,u,a=[],f=!e.once&&[],l=function(t){n=e.memory&&t,r=!0,u=s||0,s=0,o=a.length,i=!0;for(;a&&u<o;u++)if(a[u].apply(t[0],t[1])===!1&&e.stopOnFalse){n=!1;break}i=!1,a&&(f?f.length&&l(f.shift()):n?a=[]:c.disable())},c={add:function(){if(a){var t=a.length;(function r(t){v.each(t,function(t,n){var i=v.type(n);i==="function"?(!e.unique||!c.has(n))&&a.push(n):n&&n.length&&i!=="string"&&r(n)})})(arguments),i?o=a.length:n&&(s=t,l(n))}return this},remove:function(){return a&&v.each(arguments,function(e,t){var n;while((n=v.inArray(t,a,n))>-1)a.splice(n,1),i&&(n<=o&&o--,n<=u&&u--)}),this},has:function(e){return v.inArray(e,a)>-1},empty:function(){return a=[],this},disable:function(){return a=f=n=t,this},disabled:function(){return!a},lock:function(){return f=t,n||c.disable(),this},locked:function(){return!f},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],a&&(!r||f)&&(i?f.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},v.extend({Deferred:function(e){var t=[["resolve","done",v.Callbacks("once memory"),"resolved"],["reject","fail",v.Callbacks("once memory"),"rejected"],["notify","progress",v.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return v.Deferred(function(n){v.each(t,function(t,r){var s=r[0],o=e[t];i[r[1]](v.isFunction(o)?function(){var e=o.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===i?n:this,[e])}:n[s])}),e=null}).promise()},promise:function(e){return e!=null?v.extend(e,r):r}},i={};return r.pipe=r.then,v.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add,u&&o.add(function(){n=u},t[e^1][2].disable,t[2][2].lock),i[s[0]]=o.fire,i[s[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=l.call(arguments),r=n.length,i=r!==1||e&&v.isFunction(e.promise)?r:0,s=i===1?e:v.Deferred(),o=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?l.call(arguments):r,n===u?s.notifyWith(t,n):--i||s.resolveWith(t,n)}},u,a,f;if(r>1){u=new Array(r),a=new Array(r),f=new Array(r);for(;t<r;t++)n[t]&&v.isFunction(n[t].promise)?n[t].promise().done(o(t,f,n)).fail(s.reject).progress(o(t,a,u)):--i}return i||s.resolveWith(f,n),s.promise()}}),v.support=function(){var t,n,r,s,o,u,a,f,l,c,h,p=i.createElement("div");p.setAttribute("className","t"),p.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=p.getElementsByTagName("*"),r=p.getElementsByTagName("a")[0];if(!n||!r||!n.length)return{};s=i.createElement("select"),o=s.appendChild(i.createElement("option")),u=p.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:r.getAttribute("href")==="/a",opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:u.value==="on",optSelected:o.selected,getSetAttribute:p.className!=="t",enctype:!!i.createElement("form").enctype,html5Clone:i.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",boxModel:i.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},u.checked=!0,t.noCloneChecked=u.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!o.disabled;try{delete p.test}catch(d){t.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",h=function(){t.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick"),p.detachEvent("onclick",h)),u=i.createElement("input"),u.value="t",u.setAttribute("type","radio"),t.radioValue=u.value==="t",u.setAttribute("checked","checked"),u.setAttribute("name","t"),p.appendChild(u),a=i.createDocumentFragment(),a.appendChild(p.lastChild),t.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=u.checked,a.removeChild(u),a.appendChild(p);if(p.attachEvent)for(l in{submit:!0,change:!0,focusin:!0})f="on"+l,c=f in p,c||(p.setAttribute(f,"return;"),c=typeof p[f]=="function"),t[l+"Bubbles"]=c;return v(function(){var n,r,s,o,u="padding:0;margin:0;border:0;display:block;overflow:hidden;",a=i.getElementsByTagName("body")[0];if(!a)return;n=i.createElement("div"),n.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",a.insertBefore(n,a.firstChild),r=i.createElement("div"),n.appendChild(r),r.innerHTML="<table><tr><td></td><td>t</td></tr></table>",s=r.getElementsByTagName("td"),s[0].style.cssText="padding:0;margin:0;border:0;display:none",c=s[0].offsetHeight===0,s[0].style.display="",s[1].style.display="none",t.reliableHiddenOffsets=c&&s[0].offsetHeight===0,r.innerHTML="",r.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=r.offsetWidth===4,t.doesNotIncludeMarginInBodyOffset=a.offsetTop!==1,e.getComputedStyle&&(t.pixelPosition=(e.getComputedStyle(r,null)||{}).top!=="1%",t.boxSizingReliable=(e.getComputedStyle(r,null)||{width:"4px"}).width==="4px",o=i.createElement("div"),o.style.cssText=r.style.cssText=u,o.style.marginRight=o.style.width="0",r.style.width="1px",r.appendChild(o),t.reliableMarginRight=!parseFloat((e.getComputedStyle(o,null)||{}).marginRight)),typeof r.style.zoom!="undefined"&&(r.innerHTML="",r.style.cssText=u+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=r.offsetWidth===3,r.style.display="block",r.style.overflow="visible",r.innerHTML="<div></div>",r.firstChild.style.width="5px",t.shrinkWrapBlocks=r.offsetWidth!==3,n.style.zoom=1),a.removeChild(n),n=r=s=o=null}),a.removeChild(p),n=r=s=o=u=a=p=null,t}();var D=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;v.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(v.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?v.cache[e[v.expando]]:e[v.expando],!!e&&!B(e)},data:function(e,n,r,i){if(!v.acceptData(e))return;var s,o,u=v.expando,a=typeof n=="string",f=e.nodeType,l=f?v.cache:e,c=f?e[u]:e[u]&&u;if((!c||!l[c]||!i&&!l[c].data)&&a&&r===t)return;c||(f?e[u]=c=v.deletedIds.pop()||v.guid++:c=u),l[c]||(l[c]={},f||(l[c].toJSON=v.noop));if(typeof n=="object"||typeof n=="function")i?l[c]=v.extend(l[c],n):l[c].data=v.extend(l[c].data,n);return s=l[c],i||(s.data||(s.data={}),s=s.data),r!==t&&(s[v.camelCase(n)]=r),a?(o=s[n],o==null&&(o=s[v.camelCase(n)])):o=s,o},removeData:function(e,t,n){if(!v.acceptData(e))return;var r,i,s,o=e.nodeType,u=o?v.cache:e,a=o?e[v.expando]:v.expando;if(!u[a])return;if(t){r=n?u[a]:u[a].data;if(r){v.isArray(t)||(t in r?t=[t]:(t=v.camelCase(t),t in r?t=[t]:t=t.split(" ")));for(i=0,s=t.length;i<s;i++)delete r[t[i]];if(!(n?B:v.isEmptyObject)(r))return}}if(!n){delete u[a].data;if(!B(u[a]))return}o?v.cleanData([e],!0):v.support.deleteExpando||u!=u.window?delete u[a]:u[a]=null},_data:function(e,t,n){return v.data(e,t,n,!0)},acceptData:function(e){var t=e.nodeName&&v.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),v.fn.extend({data:function(e,n){var r,i,s,o,u,a=this[0],f=0,l=null;if(e===t){if(this.length){l=v.data(a);if(a.nodeType===1&&!v._data(a,"parsedAttrs")){s=a.attributes;for(u=s.length;f<u;f++)o=s[f].name,o.indexOf("data-")||(o=v.camelCase(o.substring(5)),H(a,o,l[o]));v._data(a,"parsedAttrs",!0)}}return l}return typeof e=="object"?this.each(function(){v.data(this,e)}):(r=e.split(".",2),r[1]=r[1]?"."+r[1]:"",i=r[1]+"!",v.access(this,function(n){if(n===t)return l=this.triggerHandler("getData"+i,[r[0]]),l===t&&a&&(l=v.data(a,e),l=H(a,e,l)),l===t&&r[1]?this.data(r[0]):l;r[1]=n,this.each(function(){var t=v(this);t.triggerHandler("setData"+i,r),v.data(this,e,n),t.triggerHandler("changeData"+i,r)})},null,n,arguments.length>1,null,!1))},removeData:function(e){return this.each(function(){v.removeData(this,e)})}}),v.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=v._data(e,t),n&&(!r||v.isArray(n)?r=v._data(e,t,v.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),r=n.length,i=n.shift(),s=v._queueHooks(e,t),o=function(){v.dequeue(e,t)};i==="inprogress"&&(i=n.shift(),r--),i&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return v._data(e,n)||v._data(e,n,{empty:v.Callbacks("once memory").add(function(){v.removeData(e,t+"queue",!0),v.removeData(e,n,!0)})})}}),v.fn.extend({queue:function(e,n){var r=2;return typeof e!="string"&&(n=e,e="fx",r--),arguments.length<r?v.queue(this[0],e):n===t?this:this.each(function(){var t=v.queue(this,e,n);v._queueHooks(this,e),e==="fx"&&t[0]!=="inprogress"&&v.dequeue(this,e)})},dequeue:function(e){return this.each(function(){v.dequeue(this,e)})},delay:function(e,t){return e=v.fx?v.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,s=v.Deferred(),o=this,u=this.length,a=function(){--i||s.resolveWith(o,[o])};typeof e!="string"&&(n=e,e=t),e=e||"fx";while(u--)r=v._data(o[u],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(a));return a(),s.promise(n)}});var j,F,I,q=/[\t\r\n]/g,R=/\r/g,U=/^(?:button|input)$/i,z=/^(?:button|input|object|select|textarea)$/i,W=/^a(?:rea|)$/i,X=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,V=v.support.getSetAttribute;v.fn.extend({attr:function(e,t){return v.access(this,v.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})},prop:function(e,t){return v.access(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return e=v.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,s,o,u;if(v.isFunction(e))return this.each(function(t){v(this).addClass(e.call(this,t,this.className))});if(e&&typeof e=="string"){t=e.split(y);for(n=0,r=this.length;n<r;n++){i=this[n];if(i.nodeType===1)if(!i.className&&t.length===1)i.className=e;else{s=" "+i.className+" ";for(o=0,u=t.length;o<u;o++)s.indexOf(" "+t[o]+" ")<0&&(s+=t[o]+" ");i.className=v.trim(s)}}}return this},removeClass:function(e){var n,r,i,s,o,u,a;if(v.isFunction(e))return this.each(function(t){v(this).removeClass(e.call(this,t,this.className))});if(e&&typeof e=="string"||e===t){n=(e||"").split(y);for(u=0,a=this.length;u<a;u++){i=this[u];if(i.nodeType===1&&i.className){r=(" "+i.className+" ").replace(q," ");for(s=0,o=n.length;s<o;s++)while(r.indexOf(" "+n[s]+" ")>=0)r=r.replace(" "+n[s]+" "," ");i.className=e?v.trim(r):""}}}return this},toggleClass:function(e,t){var n=typeof e,r=typeof t=="boolean";return v.isFunction(e)?this.each(function(n){v(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(n==="string"){var i,s=0,o=v(this),u=t,a=e.split(y);while(i=a[s++])u=r?u:!o.hasClass(i),o[u?"addClass":"removeClass"](i)}else if(n==="undefined"||n==="boolean")this.className&&v._data(this,"__className__",this.className),this.className=this.className||e===!1?"":v._data(this,"__className__")||""})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;n<r;n++)if(this[n].nodeType===1&&(" "+this[n].className+" ").replace(q," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,s=this[0];if(!arguments.length){if(s)return n=v.valHooks[s.type]||v.valHooks[s.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(s,"value"))!==t?r:(r=s.value,typeof r=="string"?r.replace(R,""):r==null?"":r);return}return i=v.isFunction(e),this.each(function(r){var s,o=v(this);if(this.nodeType!==1)return;i?s=e.call(this,r,o.val()):s=e,s==null?s="":typeof s=="number"?s+="":v.isArray(s)&&(s=v.map(s,function(e){return e==null?"":e+""})),n=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()];if(!n||!("set"in n)||n.set(this,s,"value")===t)this.value=s})}}),v.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s=e.type==="select-one"||i<0,o=s?null:[],u=s?i+1:r.length,a=i<0?u:s?i:0;for(;a<u;a++){n=r[a];if((n.selected||a===i)&&(v.support.optDisabled?!n.disabled:n.getAttribute("disabled")===null)&&(!n.parentNode.disabled||!v.nodeName(n.parentNode,"optgroup"))){t=v(n).val();if(s)return t;o.push(t)}}return o},set:function(e,t){var n=v.makeArray(t);return v(e).find("option").each(function(){this.selected=v.inArray(v(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{},attr:function(e,n,r,i){var s,o,u,a=e.nodeType;if(!e||a===3||a===8||a===2)return;if(i&&v.isFunction(v.fn[n]))return v(e)[n](r);if(typeof e.getAttribute=="undefined")return v.prop(e,n,r);u=a!==1||!v.isXMLDoc(e),u&&(n=n.toLowerCase(),o=v.attrHooks[n]||(X.test(n)?F:j));if(r!==t){if(r===null){v.removeAttr(e,n);return}return o&&"set"in o&&u&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r)}return o&&"get"in o&&u&&(s=o.get(e,n))!==null?s:(s=e.getAttribute(n),s===null?t:s)},removeAttr:function(e,t){var n,r,i,s,o=0;if(t&&e.nodeType===1){r=t.split(y);for(;o<r.length;o++)i=r[o],i&&(n=v.propFix[i]||i,s=X.test(i),s||v.attr(e,i,""),e.removeAttribute(V?i:n),s&&n in e&&(e[n]=!1))}},attrHooks:{type:{set:function(e,t){if(U.test(e.nodeName)&&e.parentNode)v.error("type property can't be changed");else if(!v.support.radioValue&&t==="radio"&&v.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}},value:{get:function(e,t){return j&&v.nodeName(e,"button")?j.get(e,t):t in e?e.value:null},set:function(e,t,n){if(j&&v.nodeName(e,"button"))return j.set(e,t,n);e.value=t}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,r){var i,s,o,u=e.nodeType;if(!e||u===3||u===8||u===2)return;return o=u!==1||!v.isXMLDoc(e),o&&(n=v.propFix[n]||n,s=v.propHooks[n]),r!==t?s&&"set"in s&&(i=s.set(e,r,n))!==t?i:e[n]=r:s&&"get"in s&&(i=s.get(e,n))!==null?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):z.test(e.nodeName)||W.test(e.nodeName)&&e.href?0:t}}}}),F={get:function(e,n){var r,i=v.prop(e,n);return i===!0||typeof i!="boolean"&&(r=e.getAttributeNode(n))&&r.nodeValue!==!1?n.toLowerCase():t},set:function(e,t,n){var r;return t===!1?v.removeAttr(e,n):(r=v.propFix[n]||n,r in e&&(e[r]=!0),e.setAttribute(n,n.toLowerCase())),n}},V||(I={name:!0,id:!0,coords:!0},j=v.valHooks.button={get:function(e,n){var r;return r=e.getAttributeNode(n),r&&(I[n]?r.value!=="":r.specified)?r.value:t},set:function(e,t,n){var r=e.getAttributeNode(n);return r||(r=i.createAttribute(n),e.setAttributeNode(r)),r.value=t+""}},v.each(["width","height"],function(e,t){v.attrHooks[t]=v.extend(v.attrHooks[t],{set:function(e,n){if(n==="")return e.setAttribute(t,"auto"),n}})}),v.attrHooks.contenteditable={get:j.get,set:function(e,t,n){t===""&&(t="false"),j.set(e,t,n)}}),v.support.hrefNormalized||v.each(["href","src","width","height"],function(e,n){v.attrHooks[n]=v.extend(v.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return r===null?t:r}})}),v.support.style||(v.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||t},set:function(e,t){return e.style.cssText=t+""}}),v.support.optSelected||(v.propHooks.selected=v.extend(v.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),v.support.enctype||(v.propFix.enctype="encoding"),v.support.checkOn||v.each(["radio","checkbox"],function(){v.valHooks[this]={get:function(e){return e.getAttribute("value")===null?"on":e.value}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]=v.extend(v.valHooks[this],{set:function(e,t){if(v.isArray(t))return e.checked=v.inArray(v(e).val(),t)>=0}})});var $=/^(?:textarea|input|select)$/i,J=/^([^\.]*|)(?:\.(.+)|)$/,K=/(?:^|\s)hover(\.\S+|)\b/,Q=/^key/,G=/^(?:mouse|contextmenu)|click/,Y=/^(?:focusinfocus|focusoutblur)$/,Z=function(e){return v.event.special.hover?e:e.replace(K,"mouseenter$1 mouseleave$1")};v.event={add:function(e,n,r,i,s){var o,u,a,f,l,c,h,p,d,m,g;if(e.nodeType===3||e.nodeType===8||!n||!r||!(o=v._data(e)))return;r.handler&&(d=r,r=d.handler,s=d.selector),r.guid||(r.guid=v.guid++),a=o.events,a||(o.events=a={}),u=o.handle,u||(o.handle=u=function(e){return typeof v=="undefined"||!!e&&v.event.triggered===e.type?t:v.event.dispatch.apply(u.elem,arguments)},u.elem=e),n=v.trim(Z(n)).split(" ");for(f=0;f<n.length;f++){l=J.exec(n[f])||[],c=l[1],h=(l[2]||"").split(".").sort(),g=v.event.special[c]||{},c=(s?g.delegateType:g.bindType)||c,g=v.event.special[c]||{},p=v.extend({type:c,origType:l[1],data:i,handler:r,guid:r.guid,selector:s,needsContext:s&&v.expr.match.needsContext.test(s),namespace:h.join(".")},d),m=a[c];if(!m){m=a[c]=[],m.delegateCount=0;if(!g.setup||g.setup.call(e,i,h,u)===!1)e.addEventListener?e.addEventListener(c,u,!1):e.attachEvent&&e.attachEvent("on"+c,u)}g.add&&(g.add.call(e,p),p.handler.guid||(p.handler.guid=r.guid)),s?m.splice(m.delegateCount++,0,p):m.push(p),v.event.global[c]=!0}e=null},global:{},remove:function(e,t,n,r,i){var s,o,u,a,f,l,c,h,p,d,m,g=v.hasData(e)&&v._data(e);if(!g||!(h=g.events))return;t=v.trim(Z(t||"")).split(" ");for(s=0;s<t.length;s++){o=J.exec(t[s])||[],u=a=o[1],f=o[2];if(!u){for(u in h)v.event.remove(e,u+t[s],n,r,!0);continue}p=v.event.special[u]||{},u=(r?p.delegateType:p.bindType)||u,d=h[u]||[],l=d.length,f=f?new RegExp("(^|\\.)"+f.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null;for(c=0;c<d.length;c++)m=d[c],(i||a===m.origType)&&(!n||n.guid===m.guid)&&(!f||f.test(m.namespace))&&(!r||r===m.selector||r==="**"&&m.selector)&&(d.splice(c--,1),m.selector&&d.delegateCount--,p.remove&&p.remove.call(e,m));d.length===0&&l!==d.length&&((!p.teardown||p.teardown.call(e,f,g.handle)===!1)&&v.removeEvent(e,u,g.handle),delete h[u])}v.isEmptyObject(h)&&(delete g.handle,v.removeData(e,"events",!0))},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(n,r,s,o){if(!s||s.nodeType!==3&&s.nodeType!==8){var u,a,f,l,c,h,p,d,m,g,y=n.type||n,b=[];if(Y.test(y+v.event.triggered))return;y.indexOf("!")>=0&&(y=y.slice(0,-1),a=!0),y.indexOf(".")>=0&&(b=y.split("."),y=b.shift(),b.sort());if((!s||v.event.customEvent[y])&&!v.event.global[y])return;n=typeof n=="object"?n[v.expando]?n:new v.Event(y,n):new v.Event(y),n.type=y,n.isTrigger=!0,n.exclusive=a,n.namespace=b.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,h=y.indexOf(":")<0?"on"+y:"";if(!s){u=v.cache;for(f in u)u[f].events&&u[f].events[y]&&v.event.trigger(n,r,u[f].handle.elem,!0);return}n.result=t,n.target||(n.target=s),r=r!=null?v.makeArray(r):[],r.unshift(n),p=v.event.special[y]||{};if(p.trigger&&p.trigger.apply(s,r)===!1)return;m=[[s,p.bindType||y]];if(!o&&!p.noBubble&&!v.isWindow(s)){g=p.delegateType||y,l=Y.test(g+y)?s:s.parentNode;for(c=s;l;l=l.parentNode)m.push([l,g]),c=l;c===(s.ownerDocument||i)&&m.push([c.defaultView||c.parentWindow||e,g])}for(f=0;f<m.length&&!n.isPropagationStopped();f++)l=m[f][0],n.type=m[f][1],d=(v._data(l,"events")||{})[n.type]&&v._data(l,"handle"),d&&d.apply(l,r),d=h&&l[h],d&&v.acceptData(l)&&d.apply&&d.apply(l,r)===!1&&n.preventDefault();return n.type=y,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(s.ownerDocument,r)===!1)&&(y!=="click"||!v.nodeName(s,"a"))&&v.acceptData(s)&&h&&s[y]&&(y!=="focus"&&y!=="blur"||n.target.offsetWidth!==0)&&!v.isWindow(s)&&(c=s[h],c&&(s[h]=null),v.event.triggered=y,s[y](),v.event.triggered=t,c&&(s[h]=c)),n.result}return},dispatch:function(n){n=v.event.fix(n||e.event);var r,i,s,o,u,a,f,c,h,p,d=(v._data(this,"events")||{})[n.type]||[],m=d.delegateCount,g=l.call(arguments),y=!n.exclusive&&!n.namespace,b=v.event.special[n.type]||{},w=[];g[0]=n,n.delegateTarget=this;if(b.preDispatch&&b.preDispatch.call(this,n)===!1)return;if(m&&(!n.button||n.type!=="click"))for(s=n.target;s!=this;s=s.parentNode||this)if(s.disabled!==!0||n.type!=="click"){u={},f=[];for(r=0;r<m;r++)c=d[r],h=c.selector,u[h]===t&&(u[h]=c.needsContext?v(h,this).index(s)>=0:v.find(h,this,null,[s]).length),u[h]&&f.push(c);f.length&&w.push({elem:s,matches:f})}d.length>m&&w.push({elem:this,matches:d.slice(m)});for(r=0;r<w.length&&!n.isPropagationStopped();r++){a=w[r],n.currentTarget=a.elem;for(i=0;i<a.matches.length&&!n.isImmediatePropagationStopped();i++){c=a.matches[i];if(y||!n.namespace&&!c.namespace||n.namespace_re&&n.namespace_re.test(c.namespace))n.data=c.data,n.handleObj=c,o=((v.event.special[c.origType]||{}).handle||c.handler).apply(a.elem,g),o!==t&&(n.result=o,o===!1&&(n.preventDefault(),n.stopPropagation()))}}return b.postDispatch&&b.postDispatch.call(this,n),n.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return e.which==null&&(e.which=t.charCode!=null?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,s,o,u=n.button,a=n.fromElement;return e.pageX==null&&n.clientX!=null&&(r=e.target.ownerDocument||i,s=r.documentElement,o=r.body,e.pageX=n.clientX+(s&&s.scrollLeft||o&&o.scrollLeft||0)-(s&&s.clientLeft||o&&o.clientLeft||0),e.pageY=n.clientY+(s&&s.scrollTop||o&&o.scrollTop||0)-(s&&s.clientTop||o&&o.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?n.toElement:a),!e.which&&u!==t&&(e.which=u&1?1:u&2?3:u&4?2:0),e}},fix:function(e){if(e[v.expando])return e;var t,n,r=e,s=v.event.fixHooks[e.type]||{},o=s.props?this.props.concat(s.props):this.props;e=v.Event(r);for(t=o.length;t;)n=o[--t],e[n]=r[n];return e.target||(e.target=r.srcElement||i),e.target.nodeType===3&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,r):e},special:{load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(e,t,n){v.isWindow(this)&&(this.onbeforeunload=n)},teardown:function(e,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}},simulate:function(e,t,n,r){var i=v.extend(new v.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?v.event.trigger(i,null,t):v.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},v.event.handle=v.event.dispatch,v.removeEvent=i.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]=="undefined"&&(e[r]=null),e.detachEvent(r,n))},v.Event=function(e,t){if(!(this instanceof v.Event))return new v.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?tt:et):this.type=e,t&&v.extend(this,t),this.timeStamp=e&&e.timeStamp||v.now(),this[v.expando]=!0},v.Event.prototype={preventDefault:function(){this.isDefaultPrevented=tt;var e=this.originalEvent;if(!e)return;e.preventDefault?e.preventDefault():e.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=tt;var e=this.originalEvent;if(!e)return;e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=tt,this.stopPropagation()},isDefaultPrevented:et,isPropagationStopped:et,isImmediatePropagationStopped:et},v.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){v.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,s=e.handleObj,o=s.selector;if(!i||i!==r&&!v.contains(r,i))e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t;return n}}}),v.support.submitBubbles||(v.event.special.submit={setup:function(){if(v.nodeName(this,"form"))return!1;v.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=v.nodeName(n,"input")||v.nodeName(n,"button")?n.form:t;r&&!v._data(r,"_submit_attached")&&(v.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),v._data(r,"_submit_attached",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&v.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(v.nodeName(this,"form"))return!1;v.event.remove(this,"._submit")}}),v.support.changeBubbles||(v.event.special.change={setup:function(){if($.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")v.event.add(this,"propertychange._change",function(e){e.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),v.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),v.event.simulate("change",this,e,!0)});return!1}v.event.add(this,"beforeactivate._change",function(e){var t=e.target;$.test(t.nodeName)&&!v._data(t,"_change_attached")&&(v.event.add(t,"change._change",function(e){this.parentNode&&!e.isSimulated&&!e.isTrigger&&v.event.simulate("change",this.parentNode,e,!0)}),v._data(t,"_change_attached",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return e.handleObj.handler.apply(this,arguments)},teardown:function(){return v.event.remove(this,"._change"),!$.test(this.nodeName)}}),v.support.focusinBubbles||v.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){v.event.simulate(t,e.target,v.event.fix(e),!0)};v.event.special[t]={setup:function(){n++===0&&i.addEventListener(e,r,!0)},teardown:function(){--n===0&&i.removeEventListener(e,r,!0)}}}),v.fn.extend({on:function(e,n,r,i,s){var o,u;if(typeof e=="object"){typeof n!="string"&&(r=r||n,n=t);for(u in e)this.on(u,n,r,e[u],s);return this}r==null&&i==null?(i=n,r=n=t):i==null&&(typeof n=="string"?(i=r,r=t):(i=r,r=n,n=t));if(i===!1)i=et;else if(!i)return this;return s===1&&(o=i,i=function(e){return v().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=v.guid++)),this.each(function(){v.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,s;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,v(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if(typeof e=="object"){for(s in e)this.off(s,n,e[s]);return this}if(n===!1||typeof n=="function")r=n,n=t;return r===!1&&(r=et),this.each(function(){v.event.remove(this,e,r,n)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},live:function(e,t,n){return v(this.context).on(e,this.selector,t,n),this},die:function(e,t){return v(this.context).off(e,this.selector||"**",t),this},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)},trigger:function(e,t){return this.each(function(){v.event.trigger(e,t,this)})},triggerHandler:function(e,t){if(this[0])return v.event.trigger(e,t,this[0],!0)},toggle:function(e){var t=arguments,n=e.guid||v.guid++,r=0,i=function(n){var i=(v._data(this,"lastToggle"+e.guid)||0)%r;return v._data(this,"lastToggle"+e.guid,i+1),n.preventDefault(),t[i].apply(this,arguments)||!1};i.guid=n;while(r<t.length)t[r++].guid=n;return this.click(i)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),v.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 contextmenu".split(" "),function(e,t){v.fn[t]=function(e,n){return n==null&&(n=e,e=null),arguments.length>0?this.on(t,null,e,n):this.trigger(t)},Q.test(t)&&(v.event.fixHooks[t]=v.event.keyHooks),G.test(t)&&(v.event.fixHooks[t]=v.event.mouseHooks)}),function(e,t){function nt(e,t,n,r){n=n||[],t=t||g;var i,s,a,f,l=t.nodeType;if(!e||typeof e!="string")return n;if(l!==1&&l!==9)return[];a=o(t);if(!a&&!r)if(i=R.exec(e))if(f=i[1]){if(l===9){s=t.getElementById(f);if(!s||!s.parentNode)return n;if(s.id===f)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(f))&&u(t,s)&&s.id===f)return n.push(s),n}else{if(i[2])return S.apply(n,x.call(t.getElementsByTagName(e),0)),n;if((f=i[3])&&Z&&t.getElementsByClassName)return S.apply(n,x.call(t.getElementsByClassName(f),0)),n}return vt(e.replace(j,"$1"),t,n,r,a)}function rt(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function it(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function st(e){return N(function(t){return t=+t,N(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function ot(e,t,n){if(e===t)return n;var r=e.nextSibling;while(r){if(r===t)return-1;r=r.nextSibling}return 1}function ut(e,t){var n,r,s,o,u,a,f,l=L[d][e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=i.preFilter;while(u){if(!n||(r=F.exec(u)))r&&(u=u.slice(r[0].length)||u),a.push(s=[]);n=!1;if(r=I.exec(u))s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=r[0].replace(j," ");for(o in i.filter)(r=J[o].exec(u))&&(!f[o]||(r=f[o](r)))&&(s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=o,n.matches=r);if(!n)break}return t?u.length:u?nt.error(e):L(e,a).slice(0)}function at(e,t,r){var i=t.dir,s=r&&t.dir==="parentNode",o=w++;return t.first?function(t,n,r){while(t=t[i])if(s||t.nodeType===1)return e(t,n,r)}:function(t,r,u){if(!u){var a,f=b+" "+o+" ",l=f+n;while(t=t[i])if(s||t.nodeType===1){if((a=t[d])===l)return t.sizset;if(typeof a=="string"&&a.indexOf(f)===0){if(t.sizset)return t}else{t[d]=l;if(e(t,r,u))return t.sizset=!0,t;t.sizset=!1}}}else while(t=t[i])if(s||t.nodeType===1)if(e(t,r,u))return t}}function ft(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function lt(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u<a;u++)if(s=e[u])if(!n||n(s,r,i))o.push(s),f&&t.push(u);return o}function ct(e,t,n,r,i,s){return r&&!r[d]&&(r=ct(r)),i&&!i[d]&&(i=ct(i,s)),N(function(s,o,u,a){var f,l,c,h=[],p=[],d=o.length,v=s||dt(t||"*",u.nodeType?[u]:u,[]),m=e&&(s||!t)?lt(v,h,e,u,a):v,g=n?i||(s?e:d||r)?[]:o:m;n&&n(m,g,u,a);if(r){f=lt(g,p),r(f,[],u,a),l=f.length;while(l--)if(c=f[l])g[p[l]]=!(m[p[l]]=c)}if(s){if(i||e){if(i){f=[],l=g.length;while(l--)(c=g[l])&&f.push(m[l]=c);i(null,g=[],f,a)}l=g.length;while(l--)(c=g[l])&&(f=i?T.call(s,c):h[l])>-1&&(s[f]=!(o[f]=c))}}else g=lt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):S.apply(o,g)})}function ht(e){var t,n,r,s=e.length,o=i.relative[e[0].type],u=o||i.relative[" "],a=o?1:0,f=at(function(e){return e===t},u,!0),l=at(function(e){return T.call(t,e)>-1},u,!0),h=[function(e,n,r){return!o&&(r||n!==c)||((t=n).nodeType?f(e,n,r):l(e,n,r))}];for(;a<s;a++)if(n=i.relative[e[a].type])h=[at(ft(h),n)];else{n=i.filter[e[a].type].apply(null,e[a].matches);if(n[d]){r=++a;for(;r<s;r++)if(i.relative[e[r].type])break;return ct(a>1&&ft(h),a>1&&e.slice(0,a-1).join("").replace(j,"$1"),n,a<r&&ht(e.slice(a,r)),r<s&&ht(e=e.slice(r)),r<s&&e.join(""))}h.push(n)}return ft(h)}function pt(e,t){var r=t.length>0,s=e.length>0,o=function(u,a,f,l,h){var p,d,v,m=[],y=0,w="0",x=u&&[],T=h!=null,N=c,C=u||s&&i.find.TAG("*",h&&a.parentNode||a),k=b+=N==null?1:Math.E;T&&(c=a!==g&&a,n=o.el);for(;(p=C[w])!=null;w++){if(s&&p){for(d=0;v=e[d];d++)if(v(p,a,f)){l.push(p);break}T&&(b=k,n=++o.el)}r&&((p=!v&&p)&&y--,u&&x.push(p))}y+=w;if(r&&w!==y){for(d=0;v=t[d];d++)v(x,m,a,f);if(u){if(y>0)while(w--)!x[w]&&!m[w]&&(m[w]=E.call(l));m=lt(m)}S.apply(l,m),T&&!u&&m.length>0&&y+t.length>1&&nt.uniqueSort(l)}return T&&(b=k,c=N),x};return o.el=0,r?N(o):o}function dt(e,t,n){var r=0,i=t.length;for(;r<i;r++)nt(e,t[r],n);return n}function vt(e,t,n,r,s){var o,u,f,l,c,h=ut(e),p=h.length;if(!r&&h.length===1){u=h[0]=h[0].slice(0);if(u.length>2&&(f=u[0]).type==="ID"&&t.nodeType===9&&!s&&i.relative[u[1].type]){t=i.find.ID(f.matches[0].replace($,""),t,s)[0];if(!t)return n;e=e.slice(u.shift().length)}for(o=J.POS.test(e)?-1:u.length-1;o>=0;o--){f=u[o];if(i.relative[l=f.type])break;if(c=i.find[l])if(r=c(f.matches[0].replace($,""),z.test(u[0].type)&&t.parentNode||t,s)){u.splice(o,1),e=r.length&&u.join("");if(!e)return S.apply(n,x.call(r,0)),n;break}}}return a(e,h)(r,t,s,n,z.test(e)),n}function mt(){}var n,r,i,s,o,u,a,f,l,c,h=!0,p="undefined",d=("sizcache"+Math.random()).replace(".",""),m=String,g=e.document,y=g.documentElement,b=0,w=0,E=[].pop,S=[].push,x=[].slice,T=[].indexOf||function(e){var t=0,n=this.length;for(;t<n;t++)if(this[t]===e)return t;return-1},N=function(e,t){return e[d]=t==null||t,e},C=function(){var e={},t=[];return N(function(n,r){return t.push(n)>i.cacheLength&&delete e[t.shift()],e[n+" "]=r},e)},k=C(),L=C(),A=C(),O="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",_=M.replace("w","w#"),D="([*^$|!~]?=)",P="\\["+O+"*("+M+")"+O+"*(?:"+D+O+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+_+")|)|)"+O+"*\\]",H=":("+M+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+P+")|[^:]|\\\\.)*|.*))\\)|)",B=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)",j=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),F=new RegExp("^"+O+"*,"+O+"*"),I=new RegExp("^"+O+"*([\\x20\\t\\r\\n\\f>+~])"+O+"*"),q=new RegExp(H),R=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,U=/^:not/,z=/[\x20\t\r\n\f]*[+~]/,W=/:not\($/,X=/h\d/i,V=/input|select|textarea|button/i,$=/\\(?!\\)/g,J={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),NAME:new RegExp("^\\[name=['\"]?("+M+")['\"]?\\]"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+H),POS:new RegExp(B,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),needsContext:new RegExp("^"+O+"*[>+~]|"+B,"i")},K=function(e){var t=g.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}},Q=K(function(e){return e.appendChild(g.createComment("")),!e.getElementsByTagName("*").length}),G=K(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!==p&&e.firstChild.getAttribute("href")==="#"}),Y=K(function(e){e.innerHTML="<select></select>";var t=typeof e.lastChild.getAttribute("multiple");return t!=="boolean"&&t!=="string"}),Z=K(function(e){return e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",!e.getElementsByClassName||!e.getElementsByClassName("e").length?!1:(e.lastChild.className="e",e.getElementsByClassName("e").length===2)}),et=K(function(e){e.id=d+0,e.innerHTML="<a name='"+d+"'></a><div name='"+d+"'></div>",y.insertBefore(e,y.firstChild);var t=g.getElementsByName&&g.getElementsByName(d).length===2+g.getElementsByName(d+0).length;return r=!g.getElementById(d),y.removeChild(e),t});try{x.call(y.childNodes,0)[0].nodeType}catch(tt){x=function(e){var t,n=[];for(;t=this[e];e++)n.push(t);return n}}nt.matches=function(e,t){return nt(e,null,null,t)},nt.matchesSelector=function(e,t){return nt(t,null,null,[e]).length>0},s=nt.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(i===1||i===9||i===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(i===3||i===4)return e.nodeValue}else for(;t=e[r];r++)n+=s(t);return n},o=nt.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1},u=nt.contains=y.contains?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!(r&&r.nodeType===1&&n.contains&&n.contains(r))}:y.compareDocumentPosition?function(e,t){return t&&!!(e.compareDocumentPosition(t)&16)}:function(e,t){while(t=t.parentNode)if(t===e)return!0;return!1},nt.attr=function(e,t){var n,r=o(e);return r||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):r||Y?e.getAttribute(t):(n=e.getAttributeNode(t),n?typeof e[t]=="boolean"?e[t]?t:null:n.specified?n.value:null:null)},i=nt.selectors={cacheLength:50,createPseudo:N,match:J,attrHandle:G?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:r?function(e,t,n){if(typeof t.getElementById!==p&&!n){var r=t.getElementById(e);return r&&r.parentNode?[r]:[]}}:function(e,n,r){if(typeof n.getElementById!==p&&!r){var i=n.getElementById(e);return i?i.id===e||typeof i.getAttributeNode!==p&&i.getAttributeNode("id").value===e?[i]:t:[]}},TAG:Q?function(e,t){if(typeof t.getElementsByTagName!==p)return t.getElementsByTagName(e)}:function(e,t){var n=t.getElementsByTagName(e);if(e==="*"){var r,i=[],s=0;for(;r=n[s];s++)r.nodeType===1&&i.push(r);return i}return n},NAME:et&&function(e,t){if(typeof t.getElementsByName!==p)return t.getElementsByName(name)},CLASS:Z&&function(e,t,n){if(typeof t.getElementsByClassName!==p&&!n)return t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace($,""),e[3]=(e[4]||e[5]||"").replace($,""),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1]==="nth"?(e[2]||nt.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*(e[2]==="even"||e[2]==="odd")),e[4]=+(e[6]+e[7]||e[2]==="odd")):e[2]&&nt.error(e[0]),e},PSEUDO:function(e){var t,n;if(J.CHILD.test(e[0]))return null;if(e[3])e[2]=e[3];else if(t=e[4])q.test(t)&&(n=ut(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(t=t.slice(0,n),e[0]=e[0].slice(0,n)),e[2]=t;return e.slice(0,3)}},filter:{ID:r?function(e){return e=e.replace($,""),function(t){return t.getAttribute("id")===e}}:function(e){return e=e.replace($,""),function(t){var n=typeof t.getAttributeNode!==p&&t.getAttributeNode("id");return n&&n.value===e}},TAG:function(e){return e==="*"?function(){return!0}:(e=e.replace($,"").toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[d][e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&k(e,function(e){return t.test(e.className||typeof e.getAttribute!==p&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r,i){var s=nt.attr(r,e);return s==null?t==="!=":t?(s+="",t==="="?s===n:t==="!="?s!==n:t==="^="?n&&s.indexOf(n)===0:t==="*="?n&&s.indexOf(n)>-1:t==="$="?n&&s.substr(s.length-n.length)===n:t==="~="?(" "+s+" ").indexOf(n)>-1:t==="|="?s===n||s.substr(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r){return e==="nth"?function(e){var t,i,s=e.parentNode;if(n===1&&r===0)return!0;if(s){i=0;for(t=s.firstChild;t;t=t.nextSibling)if(t.nodeType===1){i++;if(e===t)break}}return i-=r,i===n||i%n===0&&i/n>=0}:function(t){var n=t;switch(e){case"only":case"first":while(n=n.previousSibling)if(n.nodeType===1)return!1;if(e==="first")return!0;n=t;case"last":while(n=n.nextSibling)if(n.nodeType===1)return!1;return!0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||nt.error("unsupported pseudo: "+e);return r[d]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?N(function(e,n){var i,s=r(e,t),o=s.length;while(o--)i=T.call(e,s[o]),e[i]=!(n[i]=s[o])}):function(e){return r(e,0,n)}):r}},pseudos:{not:N(function(e){var t=[],n=[],r=a(e.replace(j,"$1"));return r[d]?N(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)if(s=o[u])e[u]=!(t[u]=s)}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:N(function(e){return function(t){return nt(e,t).length>0}}),contains:N(function(e){return function(t){return(t.textContent||t.innerText||s(t)).indexOf(e)>-1}}),enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!i.pseudos.empty(e)},empty:function(e){var t;e=e.firstChild;while(e){if(e.nodeName>"@"||(t=e.nodeType)===3||t===4)return!1;e=e.nextSibling}return!0},header:function(e){return X.test(e.nodeName)},text:function(e){var t,n;return e.nodeName.toLowerCase()==="input"&&(t=e.type)==="text"&&((n=e.getAttribute("type"))==null||n.toLowerCase()===t)},radio:rt("radio"),checkbox:rt("checkbox"),file:rt("file"),password:rt("password"),image:rt("image"),submit:it("submit"),reset:it("reset"),button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},input:function(e){return V.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},active:function(e){return e===e.ownerDocument.activeElement},first:st(function(){return[0]}),last:st(function(e,t){return[t-1]}),eq:st(function(e,t,n){return[n<0?n+t:n]}),even:st(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:st(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:st(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:st(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},f=y.compareDocumentPosition?function(e,t){return e===t?(l=!0,0):(!e.compareDocumentPosition||!t.compareDocumentPosition?e.compareDocumentPosition:e.compareDocumentPosition(t)&4)?-1:1}:function(e,t){if(e===t)return l=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var n,r,i=[],s=[],o=e.parentNode,u=t.parentNode,a=o;if(o===u)return ot(e,t);if(!o)return-1;if(!u)return 1;while(a)i.unshift(a),a=a.parentNode;a=u;while(a)s.unshift(a),a=a.parentNode;n=i.length,r=s.length;for(var f=0;f<n&&f<r;f++)if(i[f]!==s[f])return ot(i[f],s[f]);return f===n?ot(e,s[f],-1):ot(i[f],t,1)},[0,0].sort(f),h=!l,nt.uniqueSort=function(e){var t,n=[],r=1,i=0;l=h,e.sort(f);if(l){for(;t=e[r];r++)t===e[r-1]&&(i=n.push(r));while(i--)e.splice(n[i],1)}return e},nt.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},a=nt.compile=function(e,t){var n,r=[],i=[],s=A[d][e+" "];if(!s){t||(t=ut(e)),n=t.length;while(n--)s=ht(t[n]),s[d]?r.push(s):i.push(s);s=A(e,pt(i,r))}return s},g.querySelectorAll&&function(){var e,t=vt,n=/'|\\/g,r=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,i=[":focus"],s=[":active"],u=y.matchesSelector||y.mozMatchesSelector||y.webkitMatchesSelector||y.oMatchesSelector||y.msMatchesSelector;K(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||i.push("\\["+O+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||i.push(":checked")}),K(function(e){e.innerHTML="<p test=''></p>",e.querySelectorAll("[test^='']").length&&i.push("[*^$]="+O+"*(?:\"\"|'')"),e.innerHTML="<input type='hidden'/>",e.querySelectorAll(":enabled").length||i.push(":enabled",":disabled")}),i=new RegExp(i.join("|")),vt=function(e,r,s,o,u){if(!o&&!u&&!i.test(e)){var a,f,l=!0,c=d,h=r,p=r.nodeType===9&&e;if(r.nodeType===1&&r.nodeName.toLowerCase()!=="object"){a=ut(e),(l=r.getAttribute("id"))?c=l.replace(n,"\\$&"):r.setAttribute("id",c),c="[id='"+c+"'] ",f=a.length;while(f--)a[f]=c+a[f].join("");h=z.test(e)&&r.parentNode||r,p=a.join(",")}if(p)try{return S.apply(s,x.call(h.querySelectorAll(p),0)),s}catch(v){}finally{l||r.removeAttribute("id")}}return t(e,r,s,o,u)},u&&(K(function(t){e=u.call(t,"div");try{u.call(t,"[test!='']:sizzle"),s.push("!=",H)}catch(n){}}),s=new RegExp(s.join("|")),nt.matchesSelector=function(t,n){n=n.replace(r,"='$1']");if(!o(t)&&!s.test(n)&&!i.test(n))try{var a=u.call(t,n);if(a||e||t.document&&t.document.nodeType!==11)return a}catch(f){}return nt(n,null,null,[t]).length>0})}(),i.pseudos.nth=i.pseudos.eq,i.filters=mt.prototype=i.pseudos,i.setFilters=new mt,nt.attr=v.attr,v.find=nt,v.expr=nt.selectors,v.expr[":"]=v.expr.pseudos,v.unique=nt.uniqueSort,v.text=nt.getText,v.isXMLDoc=nt.isXML,v.contains=nt.contains}(e);var nt=/Until$/,rt=/^(?:parents|prev(?:Until|All))/,it=/^.[^:#\[\.,]*$/,st=v.expr.match.needsContext,ot={children:!0,contents:!0,next:!0,prev:!0};v.fn.extend({find:function(e){var t,n,r,i,s,o,u=this;if(typeof e!="string")return v(e).filter(function(){for(t=0,n=u.length;t<n;t++)if(v.contains(u[t],this))return!0});o=this.pushStack("","find",e);for(t=0,n=this.length;t<n;t++){r=o.length,v.find(e,this[t],o);if(t>0)for(i=r;i<o.length;i++)for(s=0;s<r;s++)if(o[s]===o[i]){o.splice(i--,1);break}}return o},has:function(e){var t,n=v(e,this),r=n.length;return this.filter(function(){for(t=0;t<r;t++)if(v.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e,!1),"not",e)},filter:function(e){return this.pushStack(ft(this,e,!0),"filter",e)},is:function(e){return!!e&&(typeof e=="string"?st.test(e)?v(e,this.context).index(this[0])>=0:v.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,s=[],o=st.test(e)||typeof e!="string"?v(e,t||this.context):0;for(;r<i;r++){n=this[r];while(n&&n.ownerDocument&&n!==t&&n.nodeType!==11){if(o?o.index(n)>-1:v.find.matchesSelector(n,e)){s.push(n);break}n=n.parentNode}}return s=s.length>1?v.unique(s):s,this.pushStack(s,"closest",e)},index:function(e){return e?typeof e=="string"?v.inArray(this[0],v(e)):v.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n=typeof e=="string"?v(e,t):v.makeArray(e&&e.nodeType?[e]:e),r=v.merge(this.get(),n);return this.pushStack(ut(n[0])||ut(r[0])?r:v.unique(r))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),v.fn.andSelf=v.fn.addBack,v.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return v.dir(e,"parentNode")},parentsUntil:function(e,t,n){return v.dir(e,"parentNode",n)},next:function(e){return at(e,"nextSibling")},prev:function(e){return at(e,"previousSibling")},nextAll:function(e){return v.dir(e,"nextSibling")},prevAll:function(e){return v.dir(e,"previousSibling")},nextUntil:function(e,t,n){return v.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return v.dir(e,"previousSibling",n)},siblings:function(e){return v.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return v.sibling(e.firstChild)},contents:function(e){return v.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:v.merge([],e.childNodes)}},function(e,t){v.fn[e]=function(n,r){var i=v.map(this,t,n);return nt.test(e)||(r=n),r&&typeof r=="string"&&(i=v.filter(r,i)),i=this.length>1&&!ot[e]?v.unique(i):i,this.length>1&&rt.test(e)&&(i=i.reverse()),this.pushStack(i,e,l.call(arguments).join(","))}}),v.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),t.length===1?v.find.matchesSelector(t[0],e)?[t[0]]:[]:v.find.matches(e,t)},dir:function(e,n,r){var i=[],s=e[n];while(s&&s.nodeType!==9&&(r===t||s.nodeType!==1||!v(s).is(r)))s.nodeType===1&&i.push(s),s=s[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}});var ct="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ht=/ jQuery\d+="(?:null|\d+)"/g,pt=/^\s+/,dt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,vt=/<([\w:]+)/,mt=/<tbody/i,gt=/<|&#?\w+;/,yt=/<(?:script|style|link)/i,bt=/<(?:script|object|embed|option|style)/i,wt=new RegExp("<(?:"+ct+")[\\s/>]","i"),Et=/^(?:checkbox|radio)$/,St=/checked\s*(?:[^=]|=\s*.checked.)/i,xt=/\/(java|ecma)script/i,Tt=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,Nt={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,"",""]},Ct=lt(i),kt=Ct.appendChild(i.createElement("div"));Nt.optgroup=Nt.option,Nt.tbody=Nt.tfoot=Nt.colgroup=Nt.caption=Nt.thead,Nt.th=Nt.td,v.support.htmlSerialize||(Nt._default=[1,"X<div>","</div>"]),v.fn.extend({text:function(e){return v.access(this,function(e){return e===t?v.text(this):this.empty().append((this[0]&&this[0].ownerDocument||i).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(v.isFunction(e))return this.each(function(t){v(this).wrapAll(e.call(this,t))});if(this[0]){var t=v(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return v.isFunction(e)?this.each(function(t){v(this).wrapInner(e.call(this,t))}):this.each(function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v.isFunction(e);return this.each(function(n){v(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){v.nodeName(this,"body")||v(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(e,this.firstChild)})},before:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(e,this),"before",this.selector)}},after:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(this,e),"after",this.selector)}},remove:function(e,t){var n,r=0;for(;(n=this[r])!=null;r++)if(!e||v.filter(e,[n]).length)!t&&n.nodeType===1&&(v.cleanData(n.getElementsByTagName("*")),v.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n);return this},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){e.nodeType===1&&v.cleanData(e.getElementsByTagName("*"));while(e.firstChild)e.removeChild(e.firstChild)}return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return v.clone(this,e,t)})},html:function(e){return v.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return n.nodeType===1?n.innerHTML.replace(ht,""):t;if(typeof e=="string"&&!yt.test(e)&&(v.support.htmlSerialize||!wt.test(e))&&(v.support.leadingWhitespace||!pt.test(e))&&!Nt[(vt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(dt,"<$1></$2>");try{for(;r<i;r++)n=this[r]||{},n.nodeType===1&&(v.cleanData(n.getElementsByTagName("*")),n.innerHTML=e);n=0}catch(s){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){return ut(this[0])?this.length?this.pushStack(v(v.isFunction(e)?e():e),"replaceWith",e):this:v.isFunction(e)?this.each(function(t){var n=v(this),r=n.html();n.replaceWith(e.call(this,t,r))}):(typeof e!="string"&&(e=v(e).detach()),this.each(function(){var t=this.nextSibling,n=this.parentNode;v(this).remove(),t?v(t).before(e):v(n).append(e)}))},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){e=[].concat.apply([],e);var i,s,o,u,a=0,f=e[0],l=[],c=this.length;if(!v.support.checkClone&&c>1&&typeof f=="string"&&St.test(f))return this.each(function(){v(this).domManip(e,n,r)});if(v.isFunction(f))return this.each(function(i){var s=v(this);e[0]=f.call(this,i,n?s.html():t),s.domManip(e,n,r)});if(this[0]){i=v.buildFragment(e,this,l),o=i.fragment,s=o.firstChild,o.childNodes.length===1&&(o=s);if(s){n=n&&v.nodeName(s,"tr");for(u=i.cacheable||c-1;a<c;a++)r.call(n&&v.nodeName(this[a],"table")?Lt(this[a],"tbody"):this[a],a===u?o:v.clone(o,!0,!0))}o=s=null,l.length&&v.each(l,function(e,t){t.src?v.ajax?v.ajax({url:t.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):v.error("no ajax"):v.globalEval((t.text||t.textContent||t.innerHTML||"").replace(Tt,"")),t.parentNode&&t.parentNode.removeChild(t)})}return this}}),v.buildFragment=function(e,n,r){var s,o,u,a=e[0];return n=n||i,n=!n.nodeType&&n[0]||n,n=n.ownerDocument||n,e.length===1&&typeof a=="string"&&a.length<512&&n===i&&a.charAt(0)==="<"&&!bt.test(a)&&(v.support.checkClone||!St.test(a))&&(v.support.html5Clone||!wt.test(a))&&(o=!0,s=v.fragments[a],u=s!==t),s||(s=n.createDocumentFragment(),v.clean(e,n,s,r),o&&(v.fragments[a]=u&&s)),{fragment:s,cacheable:o}},v.fragments={},v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){v.fn[e]=function(n){var r,i=0,s=[],o=v(n),u=o.length,a=this.length===1&&this[0].parentNode;if((a==null||a&&a.nodeType===11&&a.childNodes.length===1)&&u===1)return o[t](this[0]),this;for(;i<u;i++)r=(i>0?this.clone(!0):this).get(),v(o[i])[t](r),s=s.concat(r);return this.pushStack(s,e,o.selector)}}),v.extend({clone:function(e,t,n){var r,i,s,o;v.support.html5Clone||v.isXMLDoc(e)||!wt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(kt.innerHTML=e.outerHTML,kt.removeChild(o=kt.firstChild));if((!v.support.noCloneEvent||!v.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!v.isXMLDoc(e)){Ot(e,o),r=Mt(e),i=Mt(o);for(s=0;r[s];++s)i[s]&&Ot(r[s],i[s])}if(t){At(e,o);if(n){r=Mt(e),i=Mt(o);for(s=0;r[s];++s)At(r[s],i[s])}}return r=i=null,o},clean:function(e,t,n,r){var s,o,u,a,f,l,c,h,p,d,m,g,y=t===i&&Ct,b=[];if(!t||typeof t.createDocumentFragment=="undefined")t=i;for(s=0;(u=e[s])!=null;s++){typeof u=="number"&&(u+="");if(!u)continue;if(typeof u=="string")if(!gt.test(u))u=t.createTextNode(u);else{y=y||lt(t),c=t.createElement("div"),y.appendChild(c),u=u.replace(dt,"<$1></$2>"),a=(vt.exec(u)||["",""])[1].toLowerCase(),f=Nt[a]||Nt._default,l=f[0],c.innerHTML=f[1]+u+f[2];while(l--)c=c.lastChild;if(!v.support.tbody){h=mt.test(u),p=a==="table"&&!h?c.firstChild&&c.firstChild.childNodes:f[1]==="<table>"&&!h?c.childNodes:[];for(o=p.length-1;o>=0;--o)v.nodeName(p[o],"tbody")&&!p[o].childNodes.length&&p[o].parentNode.removeChild(p[o])}!v.support.leadingWhitespace&&pt.test(u)&&c.insertBefore(t.createTextNode(pt.exec(u)[0]),c.firstChild),u=c.childNodes,c.parentNode.removeChild(c)}u.nodeType?b.push(u):v.merge(b,u)}c&&(u=c=y=null);if(!v.support.appendChecked)for(s=0;(u=b[s])!=null;s++)v.nodeName(u,"input")?_t(u):typeof u.getElementsByTagName!="undefined"&&v.grep(u.getElementsByTagName("input"),_t);if(n){m=function(e){if(!e.type||xt.test(e.type))return r?r.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e)};for(s=0;(u=b[s])!=null;s++)if(!v.nodeName(u,"script")||!m(u))n.appendChild(u),typeof u.getElementsByTagName!="undefined"&&(g=v.grep(v.merge([],u.getElementsByTagName("script")),m),b.splice.apply(b,[s+1,0].concat(g)),s+=g.length)}return b},cleanData:function(e,t){var n,r,i,s,o=0,u=v.expando,a=v.cache,f=v.support.deleteExpando,l=v.event.special;for(;(i=e[o])!=null;o++)if(t||v.acceptData(i)){r=i[u],n=r&&a[r];if(n){if(n.events)for(s in n.events)l[s]?v.event.remove(i,s):v.removeEvent(i,s,n.handle);a[r]&&(delete a[r],f?delete i[u]:i.removeAttribute?i.removeAttribute(u):i[u]=null,v.deletedIds.push(r))}}}}),function(){var e,t;v.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e=v.uaMatch(o.userAgent),t={},e.browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),v.browser=t,v.sub=function(){function e(t,n){return new e.fn.init(t,n)}v.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(r,i){return i&&i instanceof v&&!(i instanceof e)&&(i=e(i)),v.fn.init.call(this,r,i,t)},e.fn.init.prototype=e.fn;var t=e(i);return e}}();var Dt,Pt,Ht,Bt=/alpha\([^)]*\)/i,jt=/opacity=([^)]*)/,Ft=/^(top|right|bottom|left)$/,It=/^(none|table(?!-c[ea]).+)/,qt=/^margin/,Rt=new RegExp("^("+m+")(.*)$","i"),Ut=new RegExp("^("+m+")(?!px)[a-z%]+$","i"),zt=new RegExp("^([-+])=("+m+")","i"),Wt={BODY:"block"},Xt={position:"absolute",visibility:"hidden",display:"block"},Vt={letterSpacing:0,fontWeight:400},$t=["Top","Right","Bottom","Left"],Jt=["Webkit","O","Moz","ms"],Kt=v.fn.toggle;v.fn.extend({css:function(e,n){return v.access(this,function(e,n,r){return r!==t?v.style(e,n,r):v.css(e,n)},e,n,arguments.length>1)},show:function(){return Yt(this,!0)},hide:function(){return Yt(this)},toggle:function(e,t){var n=typeof e=="boolean";return v.isFunction(e)&&v.isFunction(t)?Kt.apply(this,arguments):this.each(function(){(n?e:Gt(this))?v(this).show():v(this).hide()})}}),v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Dt(e,"opacity");return n===""?"1":n}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":v.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;var s,o,u,a=v.camelCase(n),f=e.style;n=v.cssProps[a]||(v.cssProps[a]=Qt(f,a)),u=v.cssHooks[n]||v.cssHooks[a];if(r===t)return u&&"get"in u&&(s=u.get(e,!1,i))!==t?s:f[n];o=typeof r,o==="string"&&(s=zt.exec(r))&&(r=(s[1]+1)*s[2]+parseFloat(v.css(e,n)),o="number");if(r==null||o==="number"&&isNaN(r))return;o==="number"&&!v.cssNumber[a]&&(r+="px");if(!u||!("set"in u)||(r=u.set(e,r,i))!==t)try{f[n]=r}catch(l){}},css:function(e,n,r,i){var s,o,u,a=v.camelCase(n);return n=v.cssProps[a]||(v.cssProps[a]=Qt(e.style,a)),u=v.cssHooks[n]||v.cssHooks[a],u&&"get"in u&&(s=u.get(e,!0,i)),s===t&&(s=Dt(e,n)),s==="normal"&&n in Vt&&(s=Vt[n]),r||i!==t?(o=parseFloat(s),r||v.isNumeric(o)?o||0:s):s},swap:function(e,t,n){var r,i,s={};for(i in t)s[i]=e.style[i],e.style[i]=t[i];r=n.call(e);for(i in t)e.style[i]=s[i];return r}}),e.getComputedStyle?Dt=function(t,n){var r,i,s,o,u=e.getComputedStyle(t,null),a=t.style;return u&&(r=u.getPropertyValue(n)||u[n],r===""&&!v.contains(t.ownerDocument,t)&&(r=v.style(t,n)),Ut.test(r)&&qt.test(n)&&(i=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=u.width,a.width=i,a.minWidth=s,a.maxWidth=o)),r}:i.documentElement.currentStyle&&(Dt=function(e,t){var n,r,i=e.currentStyle&&e.currentStyle[t],s=e.style;return i==null&&s&&s[t]&&(i=s[t]),Ut.test(i)&&!Ft.test(t)&&(n=s.left,r=e.runtimeStyle&&e.runtimeStyle.left,r&&(e.runtimeStyle.left=e.currentStyle.left),s.left=t==="fontSize"?"1em":i,i=s.pixelLeft+"px",s.left=n,r&&(e.runtimeStyle.left=r)),i===""?"auto":i}),v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,n,r){if(n)return e.offsetWidth===0&&It.test(Dt(e,"display"))?v.swap(e,Xt,function(){return tn(e,t,r)}):tn(e,t,r)},set:function(e,n,r){return Zt(e,n,r?en(e,t,r,v.support.boxSizing&&v.css(e,"boxSizing")==="border-box"):0)}}}),v.support.opacity||(v.cssHooks.opacity={get:function(e,t){return jt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=v.isNumeric(t)?"alpha(opacity="+t*100+")":"",s=r&&r.filter||n.filter||"";n.zoom=1;if(t>=1&&v.trim(s.replace(Bt,""))===""&&n.removeAttribute){n.removeAttribute("filter");if(r&&!r.filter)return}n.filter=Bt.test(s)?s.replace(Bt,i):s+" "+i}}),v(function(){v.support.reliableMarginRight||(v.cssHooks.marginRight={get:function(e,t){return v.swap(e,{display:"inline-block"},function(){if(t)return Dt(e,"marginRight")})}}),!v.support.pixelPosition&&v.fn.position&&v.each(["top","left"],function(e,t){v.cssHooks[t]={get:function(e,n){if(n){var r=Dt(e,t);return Ut.test(r)?v(e).position()[t]+"px":r}}}})}),v.expr&&v.expr.filters&&(v.expr.filters.hidden=function(e){return e.offsetWidth===0&&e.offsetHeight===0||!v.support.reliableHiddenOffsets&&(e.style&&e.style.display||Dt(e,"display"))==="none"},v.expr.filters.visible=function(e){return!v.expr.filters.hidden(e)}),v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(n){var r,i=typeof n=="string"?n.split(" "):[n],s={};for(r=0;r<4;r++)s[e+$t[r]+t]=i[r]||i[r-2]||i[0];return s}},qt.test(e)||(v.cssHooks[e+t].set=Zt)});var rn=/%20/g,sn=/\[\]$/,on=/\r?\n/g,un=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,an=/^(?:select|textarea)/i;v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?v.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||an.test(this.nodeName)||un.test(this.type))}).map(function(e,t){var n=v(this).val();return n==null?null:v.isArray(n)?v.map(n,function(e,n){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),v.param=function(e,n){var r,i=[],s=function(e,t){t=v.isFunction(t)?t():t==null?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};n===t&&(n=v.ajaxSettings&&v.ajaxSettings.traditional);if(v.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,function(){s(this.name,this.value)});else for(r in e)fn(r,e[r],n,s);return i.join("&").replace(rn,"+")};var ln,cn,hn=/#.*$/,pn=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,dn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,vn=/^(?:GET|HEAD)$/,mn=/^\/\//,gn=/\?/,yn=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bn=/([?&])_=[^&]*/,wn=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,En=v.fn.load,Sn={},xn={},Tn=["*/"]+["*"];try{cn=s.href}catch(Nn){cn=i.createElement("a"),cn.href="",cn=cn.href}ln=wn.exec(cn.toLowerCase())||[],v.fn.load=function(e,n,r){if(typeof e!="string"&&En)return En.apply(this,arguments);if(!this.length)return this;var i,s,o,u=this,a=e.indexOf(" ");return a>=0&&(i=e.slice(a,e.length),e=e.slice(0,a)),v.isFunction(n)?(r=n,n=t):n&&typeof n=="object"&&(s="POST"),v.ajax({url:e,type:s,dataType:"html",data:n,complete:function(e,t){r&&u.each(r,o||[e.responseText,t,e])}}).done(function(e){o=arguments,u.html(i?v("<div>").append(e.replace(yn,"")).find(i):e)}),this},v.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){v.fn[t]=function(e){return this.on(t,e)}}),v.each(["get","post"],function(e,n){v[n]=function(e,r,i,s){return v.isFunction(r)&&(s=s||i,i=r,r=t),v.ajax({type:n,url:e,data:r,success:i,dataType:s})}}),v.extend({getScript:function(e,n){return v.get(e,t,n,"script")},getJSON:function(e,t,n){return v.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?Ln(e,v.ajaxSettings):(t=e,e=v.ajaxSettings),Ln(e,t),e},ajaxSettings:{url:cn,isLocal:dn.test(ln[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Tn},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":v.parseJSON,"text xml":v.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Cn(Sn),ajaxTransport:Cn(xn),ajax:function(e,n){function T(e,n,s,a){var l,y,b,w,S,T=n;if(E===2)return;E=2,u&&clearTimeout(u),o=t,i=a||"",x.readyState=e>0?4:0,s&&(w=An(c,x,s));if(e>=200&&e<300||e===304)c.ifModified&&(S=x.getResponseHeader("Last-Modified"),S&&(v.lastModified[r]=S),S=x.getResponseHeader("Etag"),S&&(v.etag[r]=S)),e===304?(T="notmodified",l=!0):(l=On(c,w),T=l.state,y=l.data,b=l.error,l=!b);else{b=T;if(!T||e)T="error",e<0&&(e=0)}x.status=e,x.statusText=(n||T)+"",l?d.resolveWith(h,[y,T,x]):d.rejectWith(h,[x,T,b]),x.statusCode(g),g=t,f&&p.trigger("ajax"+(l?"Success":"Error"),[x,c,l?y:b]),m.fireWith(h,[x,T]),f&&(p.trigger("ajaxComplete",[x,c]),--v.active||v.event.trigger("ajaxStop"))}typeof e=="object"&&(n=e,e=t),n=n||{};var r,i,s,o,u,a,f,l,c=v.ajaxSetup({},n),h=c.context||c,p=h!==c&&(h.nodeType||h instanceof v)?v(h):v.event,d=v.Deferred(),m=v.Callbacks("once memory"),g=c.statusCode||{},b={},w={},E=0,S="canceled",x={readyState:0,setRequestHeader:function(e,t){if(!E){var n=e.toLowerCase();e=w[n]=w[n]||e,b[e]=t}return this},getAllResponseHeaders:function(){return E===2?i:null},getResponseHeader:function(e){var n;if(E===2){if(!s){s={};while(n=pn.exec(i))s[n[1].toLowerCase()]=n[2]}n=s[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return E||(c.mimeType=e),this},abort:function(e){return e=e||S,o&&o.abort(e),T(0,e),this}};d.promise(x),x.success=x.done,x.error=x.fail,x.complete=m.add,x.statusCode=function(e){if(e){var t;if(E<2)for(t in e)g[t]=[g[t],e[t]];else t=e[x.status],x.always(t)}return this},c.url=((e||c.url)+"").replace(hn,"").replace(mn,ln[1]+"//"),c.dataTypes=v.trim(c.dataType||"*").toLowerCase().split(y),c.crossDomain==null&&(a=wn.exec(c.url.toLowerCase()),c.crossDomain=!(!a||a[1]===ln[1]&&a[2]===ln[2]&&(a[3]||(a[1]==="http:"?80:443))==(ln[3]||(ln[1]==="http:"?80:443)))),c.data&&c.processData&&typeof c.data!="string"&&(c.data=v.param(c.data,c.traditional)),kn(Sn,c,n,x);if(E===2)return x;f=c.global,c.type=c.type.toUpperCase(),c.hasContent=!vn.test(c.type),f&&v.active++===0&&v.event.trigger("ajaxStart");if(!c.hasContent){c.data&&(c.url+=(gn.test(c.url)?"&":"?")+c.data,delete c.data),r=c.url;if(c.cache===!1){var N=v.now(),C=c.url.replace(bn,"$1_="+N);c.url=C+(C===c.url?(gn.test(c.url)?"&":"?")+"_="+N:"")}}(c.data&&c.hasContent&&c.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",c.contentType),c.ifModified&&(r=r||c.url,v.lastModified[r]&&x.setRequestHeader("If-Modified-Since",v.lastModified[r]),v.etag[r]&&x.setRequestHeader("If-None-Match",v.etag[r])),x.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", "+Tn+"; q=0.01":""):c.accepts["*"]);for(l in c.headers)x.setRequestHeader(l,c.headers[l]);if(!c.beforeSend||c.beforeSend.call(h,x,c)!==!1&&E!==2){S="abort";for(l in{success:1,error:1,complete:1})x[l](c[l]);o=kn(xn,c,n,x);if(!o)T(-1,"No Transport");else{x.readyState=1,f&&p.trigger("ajaxSend",[x,c]),c.async&&c.timeout>0&&(u=setTimeout(function(){x.abort("timeout")},c.timeout));try{E=1,o.send(b,T)}catch(k){if(!(E<2))throw k;T(-1,k)}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var Mn=[],_n=/\?/,Dn=/(=)\?(?=&|$)|\?\?/,Pn=v.now();v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Mn.pop()||v.expando+"_"+Pn++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",function(n,r,i){var s,o,u,a=n.data,f=n.url,l=n.jsonp!==!1,c=l&&Dn.test(f),h=l&&!c&&typeof a=="string"&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Dn.test(a);if(n.dataTypes[0]==="jsonp"||c||h)return s=n.jsonpCallback=v.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,o=e[s],c?n.url=f.replace(Dn,"$1"+s):h?n.data=a.replace(Dn,"$1"+s):l&&(n.url+=(_n.test(f)?"&":"?")+n.jsonp+"="+s),n.converters["script json"]=function(){return u||v.error(s+" was not called"),u[0]},n.dataTypes[0]="json",e[s]=function(){u=arguments},i.always(function(){e[s]=o,n[s]&&(n.jsonpCallback=r.jsonpCallback,Mn.push(s)),u&&v.isFunction(o)&&o(u[0]),u=o=t}),"script"}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),v.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=i.head||i.getElementsByTagName("head")[0]||i.documentElement;return{send:function(s,o){n=i.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,i){if(i||!n.readyState||/loaded|complete/.test(n.readyState))n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=t,i||o(200,"success")},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var Hn,Bn=e.ActiveXObject?function(){for(var e in Hn)Hn[e](0,1)}:!1,jn=0;v.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&Fn()||In()}:Fn,function(e){v.extend(v.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(v.ajaxSettings.xhr()),v.support.ajax&&v.ajaxTransport(function(n){if(!n.crossDomain||v.support.cors){var r;return{send:function(i,s){var o,u,a=n.xhr();n.username?a.open(n.type,n.url,n.async,n.username,n.password):a.open(n.type,n.url,n.async);if(n.xhrFields)for(u in n.xhrFields)a[u]=n.xhrFields[u];n.mimeType&&a.overrideMimeType&&a.overrideMimeType(n.mimeType),!n.crossDomain&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");try{for(u in i)a.setRequestHeader(u,i[u])}catch(f){}a.send(n.hasContent&&n.data||null),r=function(e,i){var u,f,l,c,h;try{if(r&&(i||a.readyState===4)){r=t,o&&(a.onreadystatechange=v.noop,Bn&&delete Hn[o]);if(i)a.readyState!==4&&a.abort();else{u=a.status,l=a.getAllResponseHeaders(),c={},h=a.responseXML,h&&h.documentElement&&(c.xml=h);try{c.text=a.responseText}catch(p){}try{f=a.statusText}catch(p){f=""}!u&&n.isLocal&&!n.crossDomain?u=c.text?200:404:u===1223&&(u=204)}}}catch(d){i||s(-1,d)}c&&s(u,f,c,l)},n.async?a.readyState===4?setTimeout(r,0):(o=++jn,Bn&&(Hn||(Hn={},v(e).unload(Bn)),Hn[o]=r),a.onreadystatechange=r):r()},abort:function(){r&&r(0,1)}}}});var qn,Rn,Un=/^(?:toggle|show|hide)$/,zn=new RegExp("^(?:([-+])=|)("+m+")([a-z%]*)$","i"),Wn=/queueHooks$/,Xn=[Gn],Vn={"*":[function(e,t){var n,r,i=this.createTween(e,t),s=zn.exec(t),o=i.cur(),u=+o||0,a=1,f=20;if(s){n=+s[2],r=s[3]||(v.cssNumber[e]?"":"px");if(r!=="px"&&u){u=v.css(i.elem,e,!0)||n||1;do a=a||".5",u/=a,v.style(i.elem,e,u+r);while(a!==(a=i.cur()/o)&&a!==1&&--f)}i.unit=r,i.start=u,i.end=s[1]?u+(s[1]+1)*n:n}return i}]};v.Animation=v.extend(Kn,{tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;r<i;r++)n=e[r],Vn[n]=Vn[n]||[],Vn[n].unshift(t)},prefilter:function(e,t){t?Xn.unshift(e):Xn.push(e)}}),v.Tween=Yn,Yn.prototype={constructor:Yn,init:function(e,t,n,r,i,s){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(v.cssNumber[n]?"":"px")},cur:function(){var e=Yn.propHooks[this.prop];return e&&e.get?e.get(this):Yn.propHooks._default.get(this)},run:function(e){var t,n=Yn.propHooks[this.prop];return this.options.duration?this.pos=t=v.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Yn.propHooks._default.set(this),this}},Yn.prototype.init.prototype=Yn.prototype,Yn.propHooks={_default:{get:function(e){var t;return e.elem[e.prop]==null||!!e.elem.style&&e.elem.style[e.prop]!=null?(t=v.css(e.elem,e.prop,!1,""),!t||t==="auto"?0:t):e.elem[e.prop]},set:function(e){v.fx.step[e.prop]?v.fx.step[e.prop](e):e.elem.style&&(e.elem.style[v.cssProps[e.prop]]!=null||v.cssHooks[e.prop])?v.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Yn.propHooks.scrollTop=Yn.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},v.each(["toggle","show","hide"],function(e,t){var n=v.fn[t];v.fn[t]=function(r,i,s){return r==null||typeof r=="boolean"||!e&&v.isFunction(r)&&v.isFunction(i)?n.apply(this,arguments):this.animate(Zn(t,!0),r,i,s)}}),v.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Gt).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=v.isEmptyObject(e),s=v.speed(t,n,r),o=function(){var t=Kn(this,v.extend({},e),s);i&&t.stop(!0)};return i||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return typeof e!="string"&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=e!=null&&e+"queueHooks",s=v.timers,o=v._data(this);if(n)o[n]&&o[n].stop&&i(o[n]);else for(n in o)o[n]&&o[n].stop&&Wn.test(n)&&i(o[n]);for(n=s.length;n--;)s[n].elem===this&&(e==null||s[n].queue===e)&&(s[n].anim.stop(r),t=!1,s.splice(n,1));(t||!r)&&v.dequeue(this,e)})}}),v.each({slideDown:Zn("show"),slideUp:Zn("hide"),slideToggle:Zn("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){v.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),v.speed=function(e,t,n){var r=e&&typeof e=="object"?v.extend({},e):{complete:n||!n&&t||v.isFunction(e)&&e,duration:e,easing:n&&t||t&&!v.isFunction(t)&&t};r.duration=v.fx.off?0:typeof r.duration=="number"?r.duration:r.duration in v.fx.speeds?v.fx.speeds[r.duration]:v.fx.speeds._default;if(r.queue==null||r.queue===!0)r.queue="fx";return r.old=r.complete,r.complete=function(){v.isFunction(r.old)&&r.old.call(this),r.queue&&v.dequeue(this,r.queue)},r},v.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},v.timers=[],v.fx=Yn.prototype.init,v.fx.tick=function(){var e,n=v.timers,r=0;qn=v.now();for(;r<n.length;r++)e=n[r],!e()&&n[r]===e&&n.splice(r--,1);n.length||v.fx.stop(),qn=t},v.fx.timer=function(e){e()&&v.timers.push(e)&&!Rn&&(Rn=setInterval(v.fx.tick,v.fx.interval))},v.fx.interval=13,v.fx.stop=function(){clearInterval(Rn),Rn=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fx.step={},v.expr&&v.expr.filters&&(v.expr.filters.animated=function(e){return v.grep(v.timers,function(t){return e===t.elem}).length});var er=/^(?:body|html)$/i;v.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){v.offset.setOffset(this,e,t)});var n,r,i,s,o,u,a,f={top:0,left:0},l=this[0],c=l&&l.ownerDocument;if(!c)return;return(r=c.body)===l?v.offset.bodyOffset(l):(n=c.documentElement,v.contains(n,l)?(typeof l.getBoundingClientRect!="undefined"&&(f=l.getBoundingClientRect()),i=tr(c),s=n.clientTop||r.clientTop||0,o=n.clientLeft||r.clientLeft||0,u=i.pageYOffset||n.scrollTop,a=i.pageXOffset||n.scrollLeft,{top:f.top+u-s,left:f.left+a-o}):f)},v.offset={bodyOffset:function(e){var t=e.offsetTop,n=e.offsetLeft;return v.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(v.css(e,"marginTop"))||0,n+=parseFloat(v.css(e,"marginLeft"))||0),{top:t,left:n}},setOffset:function(e,t,n){var r=v.css(e,"position");r==="static"&&(e.style.position="relative");var i=v(e),s=i.offset(),o=v.css(e,"top"),u=v.css(e,"left"),a=(r==="absolute"||r==="fixed")&&v.inArray("auto",[o,u])>-1,f={},l={},c,h;a?(l=i.position(),c=l.top,h=l.left):(c=parseFloat(o)||0,h=parseFloat(u)||0),v.isFunction(t)&&(t=t.call(e,n,s)),t.top!=null&&(f.top=t.top-s.top+c),t.left!=null&&(f.left=t.left-s.left+h),"using"in t?t.using.call(e,f):i.css(f)}},v.fn.extend({position:function(){if(!this[0])return;var e=this[0],t=this.offsetParent(),n=this.offset(),r=er.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(v.css(e,"marginTop"))||0,n.left-=parseFloat(v.css(e,"marginLeft"))||0,r.top+=parseFloat(v.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(v.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||i.body;while(e&&!er.test(e.nodeName)&&v.css(e,"position")==="static")e=e.offsetParent;return e||i.body})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);v.fn[e]=function(i){return v.access(this,function(e,i,s){var o=tr(e);if(s===t)return o?n in o?o[n]:o.document.documentElement[i]:e[i];o?o.scrollTo(r?v(o).scrollLeft():s,r?s:v(o).scrollTop()):e[i]=s},e,i,arguments.length,null)}}),v.each({Height:"height",Width:"width"},function(e,n){v.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){v.fn[i]=function(i,s){var o=arguments.length&&(r||typeof i!="boolean"),u=r||(i===!0||s===!0?"margin":"border");return v.access(this,function(n,r,i){var s;return v.isWindow(n)?n.document.documentElement["client"+e]:n.nodeType===9?(s=n.documentElement,Math.max(n.body["scroll"+e],s["scroll"+e],n.body["offset"+e],s["offset"+e],s["client"+e])):i===t?v.css(n,r,i,u):v.style(n,r,i,u)},n,o?i:t,o,null)}})}),e.jQuery=e.$=v,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return v})})(window);
Binary file
@@ -0,0 +1,62 @@
1
+ .highlight .hll { background-color: #ffffcc }
2
+ .highlight { background: #f8f8f8; }
3
+ .highlight .c { color: #008800; font-style: italic } /* Comment */
4
+ .highlight .err { border: 1px solid #FF0000 } /* Error */
5
+ .highlight .k { color: #AA22FF; font-weight: bold } /* Keyword */
6
+ .highlight .o { color: #666666 } /* Operator */
7
+ .highlight .cm { color: #008800; font-style: italic } /* Comment.Multiline */
8
+ .highlight .cp { color: #008800 } /* Comment.Preproc */
9
+ .highlight .c1 { color: #008800; font-style: italic } /* Comment.Single */
10
+ .highlight .cs { color: #008800; font-weight: bold } /* Comment.Special */
11
+ .highlight .gd { color: #A00000 } /* Generic.Deleted */
12
+ .highlight .ge { font-style: italic } /* Generic.Emph */
13
+ .highlight .gr { color: #FF0000 } /* Generic.Error */
14
+ .highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
15
+ .highlight .gi { color: #00A000 } /* Generic.Inserted */
16
+ .highlight .go { color: #888888 } /* Generic.Output */
17
+ .highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
18
+ .highlight .gs { font-weight: bold } /* Generic.Strong */
19
+ .highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
20
+ .highlight .gt { color: #0044DD } /* Generic.Traceback */
21
+ .highlight .kc { color: #AA22FF; font-weight: bold } /* Keyword.Constant */
22
+ .highlight .kd { color: #AA22FF; font-weight: bold } /* Keyword.Declaration */
23
+ .highlight .kn { color: #AA22FF; font-weight: bold } /* Keyword.Namespace */
24
+ .highlight .kp { color: #AA22FF } /* Keyword.Pseudo */
25
+ .highlight .kr { color: #AA22FF; font-weight: bold } /* Keyword.Reserved */
26
+ .highlight .kt { color: #00BB00; font-weight: bold } /* Keyword.Type */
27
+ .highlight .m { color: #666666 } /* Literal.Number */
28
+ .highlight .s { color: #BB4444 } /* Literal.String */
29
+ .highlight .na { color: #BB4444 } /* Name.Attribute */
30
+ .highlight .nb { color: #AA22FF } /* Name.Builtin */
31
+ .highlight .nc { color: #0000FF } /* Name.Class */
32
+ .highlight .no { color: #880000 } /* Name.Constant */
33
+ .highlight .nd { color: #AA22FF } /* Name.Decorator */
34
+ .highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */
35
+ .highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
36
+ .highlight .nf { color: #00A000 } /* Name.Function */
37
+ .highlight .nl { color: #A0A000 } /* Name.Label */
38
+ .highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
39
+ .highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */
40
+ .highlight .nv { color: #B8860B } /* Name.Variable */
41
+ .highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
42
+ .highlight .w { color: #bbbbbb } /* Text.Whitespace */
43
+ .highlight .mf { color: #666666 } /* Literal.Number.Float */
44
+ .highlight .mh { color: #666666 } /* Literal.Number.Hex */
45
+ .highlight .mi { color: #666666 } /* Literal.Number.Integer */
46
+ .highlight .mo { color: #666666 } /* Literal.Number.Oct */
47
+ .highlight .sb { color: #BB4444 } /* Literal.String.Backtick */
48
+ .highlight .sc { color: #BB4444 } /* Literal.String.Char */
49
+ .highlight .sd { color: #BB4444; font-style: italic } /* Literal.String.Doc */
50
+ .highlight .s2 { color: #BB4444 } /* Literal.String.Double */
51
+ .highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
52
+ .highlight .sh { color: #BB4444 } /* Literal.String.Heredoc */
53
+ .highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
54
+ .highlight .sx { color: #008000 } /* Literal.String.Other */
55
+ .highlight .sr { color: #BB6688 } /* Literal.String.Regex */
56
+ .highlight .s1 { color: #BB4444 } /* Literal.String.Single */
57
+ .highlight .ss { color: #B8860B } /* Literal.String.Symbol */
58
+ .highlight .bp { color: #AA22FF } /* Name.Builtin.Pseudo */
59
+ .highlight .vc { color: #B8860B } /* Name.Variable.Class */
60
+ .highlight .vg { color: #B8860B } /* Name.Variable.Global */
61
+ .highlight .vi { color: #B8860B } /* Name.Variable.Instance */
62
+ .highlight .il { color: #666666 } /* Literal.Number.Integer.Long */
@@ -0,0 +1,622 @@
1
+ /*
2
+ * searchtools.js_t
3
+ * ~~~~~~~~~~~~~~~~
4
+ *
5
+ * Sphinx JavaScript utilties for the full-text search.
6
+ *
7
+ * :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS.
8
+ * :license: BSD, see LICENSE for details.
9
+ *
10
+ */
11
+
12
+
13
+ /**
14
+ * Porter Stemmer
15
+ */
16
+ var Stemmer = function() {
17
+
18
+ var step2list = {
19
+ ational: 'ate',
20
+ tional: 'tion',
21
+ enci: 'ence',
22
+ anci: 'ance',
23
+ izer: 'ize',
24
+ bli: 'ble',
25
+ alli: 'al',
26
+ entli: 'ent',
27
+ eli: 'e',
28
+ ousli: 'ous',
29
+ ization: 'ize',
30
+ ation: 'ate',
31
+ ator: 'ate',
32
+ alism: 'al',
33
+ iveness: 'ive',
34
+ fulness: 'ful',
35
+ ousness: 'ous',
36
+ aliti: 'al',
37
+ iviti: 'ive',
38
+ biliti: 'ble',
39
+ logi: 'log'
40
+ };
41
+
42
+ var step3list = {
43
+ icate: 'ic',
44
+ ative: '',
45
+ alize: 'al',
46
+ iciti: 'ic',
47
+ ical: 'ic',
48
+ ful: '',
49
+ ness: ''
50
+ };
51
+
52
+ var c = "[^aeiou]"; // consonant
53
+ var v = "[aeiouy]"; // vowel
54
+ var C = c + "[^aeiouy]*"; // consonant sequence
55
+ var V = v + "[aeiou]*"; // vowel sequence
56
+
57
+ var mgr0 = "^(" + C + ")?" + V + C; // [C]VC... is m>0
58
+ var meq1 = "^(" + C + ")?" + V + C + "(" + V + ")?$"; // [C]VC[V] is m=1
59
+ var mgr1 = "^(" + C + ")?" + V + C + V + C; // [C]VCVC... is m>1
60
+ var s_v = "^(" + C + ")?" + v; // vowel in stem
61
+
62
+ this.stemWord = function (w) {
63
+ var stem;
64
+ var suffix;
65
+ var firstch;
66
+ var origword = w;
67
+
68
+ if (w.length < 3)
69
+ return w;
70
+
71
+ var re;
72
+ var re2;
73
+ var re3;
74
+ var re4;
75
+
76
+ firstch = w.substr(0,1);
77
+ if (firstch == "y")
78
+ w = firstch.toUpperCase() + w.substr(1);
79
+
80
+ // Step 1a
81
+ re = /^(.+?)(ss|i)es$/;
82
+ re2 = /^(.+?)([^s])s$/;
83
+
84
+ if (re.test(w))
85
+ w = w.replace(re,"$1$2");
86
+ else if (re2.test(w))
87
+ w = w.replace(re2,"$1$2");
88
+
89
+ // Step 1b
90
+ re = /^(.+?)eed$/;
91
+ re2 = /^(.+?)(ed|ing)$/;
92
+ if (re.test(w)) {
93
+ var fp = re.exec(w);
94
+ re = new RegExp(mgr0);
95
+ if (re.test(fp[1])) {
96
+ re = /.$/;
97
+ w = w.replace(re,"");
98
+ }
99
+ }
100
+ else if (re2.test(w)) {
101
+ var fp = re2.exec(w);
102
+ stem = fp[1];
103
+ re2 = new RegExp(s_v);
104
+ if (re2.test(stem)) {
105
+ w = stem;
106
+ re2 = /(at|bl|iz)$/;
107
+ re3 = new RegExp("([^aeiouylsz])\\1$");
108
+ re4 = new RegExp("^" + C + v + "[^aeiouwxy]$");
109
+ if (re2.test(w))
110
+ w = w + "e";
111
+ else if (re3.test(w)) {
112
+ re = /.$/;
113
+ w = w.replace(re,"");
114
+ }
115
+ else if (re4.test(w))
116
+ w = w + "e";
117
+ }
118
+ }
119
+
120
+ // Step 1c
121
+ re = /^(.+?)y$/;
122
+ if (re.test(w)) {
123
+ var fp = re.exec(w);
124
+ stem = fp[1];
125
+ re = new RegExp(s_v);
126
+ if (re.test(stem))
127
+ w = stem + "i";
128
+ }
129
+
130
+ // Step 2
131
+ re = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/;
132
+ if (re.test(w)) {
133
+ var fp = re.exec(w);
134
+ stem = fp[1];
135
+ suffix = fp[2];
136
+ re = new RegExp(mgr0);
137
+ if (re.test(stem))
138
+ w = stem + step2list[suffix];
139
+ }
140
+
141
+ // Step 3
142
+ re = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/;
143
+ if (re.test(w)) {
144
+ var fp = re.exec(w);
145
+ stem = fp[1];
146
+ suffix = fp[2];
147
+ re = new RegExp(mgr0);
148
+ if (re.test(stem))
149
+ w = stem + step3list[suffix];
150
+ }
151
+
152
+ // Step 4
153
+ re = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/;
154
+ re2 = /^(.+?)(s|t)(ion)$/;
155
+ if (re.test(w)) {
156
+ var fp = re.exec(w);
157
+ stem = fp[1];
158
+ re = new RegExp(mgr1);
159
+ if (re.test(stem))
160
+ w = stem;
161
+ }
162
+ else if (re2.test(w)) {
163
+ var fp = re2.exec(w);
164
+ stem = fp[1] + fp[2];
165
+ re2 = new RegExp(mgr1);
166
+ if (re2.test(stem))
167
+ w = stem;
168
+ }
169
+
170
+ // Step 5
171
+ re = /^(.+?)e$/;
172
+ if (re.test(w)) {
173
+ var fp = re.exec(w);
174
+ stem = fp[1];
175
+ re = new RegExp(mgr1);
176
+ re2 = new RegExp(meq1);
177
+ re3 = new RegExp("^" + C + v + "[^aeiouwxy]$");
178
+ if (re.test(stem) || (re2.test(stem) && !(re3.test(stem))))
179
+ w = stem;
180
+ }
181
+ re = /ll$/;
182
+ re2 = new RegExp(mgr1);
183
+ if (re.test(w) && re2.test(w)) {
184
+ re = /.$/;
185
+ w = w.replace(re,"");
186
+ }
187
+
188
+ // and turn initial Y back to y
189
+ if (firstch == "y")
190
+ w = firstch.toLowerCase() + w.substr(1);
191
+ return w;
192
+ }
193
+ }
194
+
195
+
196
+
197
+ /**
198
+ * Simple result scoring code.
199
+ */
200
+ var Scorer = {
201
+ // Implement the following function to further tweak the score for each result
202
+ // The function takes a result array [filename, title, anchor, descr, score]
203
+ // and returns the new score.
204
+ /*
205
+ score: function(result) {
206
+ return result[4];
207
+ },
208
+ */
209
+
210
+ // query matches the full name of an object
211
+ objNameMatch: 11,
212
+ // or matches in the last dotted part of the object name
213
+ objPartialMatch: 6,
214
+ // Additive scores depending on the priority of the object
215
+ objPrio: {0: 15, // used to be importantResults
216
+ 1: 5, // used to be objectResults
217
+ 2: -5}, // used to be unimportantResults
218
+ // Used when the priority is not in the mapping.
219
+ objPrioDefault: 0,
220
+
221
+ // query found in title
222
+ title: 15,
223
+ // query found in terms
224
+ term: 5
225
+ };
226
+
227
+
228
+ /**
229
+ * Search Module
230
+ */
231
+ var Search = {
232
+
233
+ _index : null,
234
+ _queued_query : null,
235
+ _pulse_status : -1,
236
+
237
+ init : function() {
238
+ var params = $.getQueryParameters();
239
+ if (params.q) {
240
+ var query = params.q[0];
241
+ $('input[name="q"]')[0].value = query;
242
+ this.performSearch(query);
243
+ }
244
+ },
245
+
246
+ loadIndex : function(url) {
247
+ $.ajax({type: "GET", url: url, data: null,
248
+ dataType: "script", cache: true,
249
+ complete: function(jqxhr, textstatus) {
250
+ if (textstatus != "success") {
251
+ document.getElementById("searchindexloader").src = url;
252
+ }
253
+ }});
254
+ },
255
+
256
+ setIndex : function(index) {
257
+ var q;
258
+ this._index = index;
259
+ if ((q = this._queued_query) !== null) {
260
+ this._queued_query = null;
261
+ Search.query(q);
262
+ }
263
+ },
264
+
265
+ hasIndex : function() {
266
+ return this._index !== null;
267
+ },
268
+
269
+ deferQuery : function(query) {
270
+ this._queued_query = query;
271
+ },
272
+
273
+ stopPulse : function() {
274
+ this._pulse_status = 0;
275
+ },
276
+
277
+ startPulse : function() {
278
+ if (this._pulse_status >= 0)
279
+ return;
280
+ function pulse() {
281
+ var i;
282
+ Search._pulse_status = (Search._pulse_status + 1) % 4;
283
+ var dotString = '';
284
+ for (i = 0; i < Search._pulse_status; i++)
285
+ dotString += '.';
286
+ Search.dots.text(dotString);
287
+ if (Search._pulse_status > -1)
288
+ window.setTimeout(pulse, 500);
289
+ }
290
+ pulse();
291
+ },
292
+
293
+ /**
294
+ * perform a search for something (or wait until index is loaded)
295
+ */
296
+ performSearch : function(query) {
297
+ // create the required interface elements
298
+ this.out = $('#search-results');
299
+ this.title = $('<h2>' + _('Searching') + '</h2>').appendTo(this.out);
300
+ this.dots = $('<span></span>').appendTo(this.title);
301
+ this.status = $('<p style="display: none"></p>').appendTo(this.out);
302
+ this.output = $('<ul class="search"/>').appendTo(this.out);
303
+
304
+ $('#search-progress').text(_('Preparing search...'));
305
+ this.startPulse();
306
+
307
+ // index already loaded, the browser was quick!
308
+ if (this.hasIndex())
309
+ this.query(query);
310
+ else
311
+ this.deferQuery(query);
312
+ },
313
+
314
+ /**
315
+ * execute search (requires search index to be loaded)
316
+ */
317
+ query : function(query) {
318
+ var i;
319
+ var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"];
320
+
321
+ // stem the searchterms and add them to the correct list
322
+ var stemmer = new Stemmer();
323
+ var searchterms = [];
324
+ var excluded = [];
325
+ var hlterms = [];
326
+ var tmp = query.split(/\s+/);
327
+ var objectterms = [];
328
+ for (i = 0; i < tmp.length; i++) {
329
+ if (tmp[i] !== "") {
330
+ objectterms.push(tmp[i].toLowerCase());
331
+ }
332
+
333
+ if ($u.indexOf(stopwords, tmp[i].toLowerCase()) != -1 || tmp[i].match(/^\d+$/) ||
334
+ tmp[i] === "") {
335
+ // skip this "word"
336
+ continue;
337
+ }
338
+ // stem the word
339
+ var word = stemmer.stemWord(tmp[i].toLowerCase());
340
+ var toAppend;
341
+ // select the correct list
342
+ if (word[0] == '-') {
343
+ toAppend = excluded;
344
+ word = word.substr(1);
345
+ }
346
+ else {
347
+ toAppend = searchterms;
348
+ hlterms.push(tmp[i].toLowerCase());
349
+ }
350
+ // only add if not already in the list
351
+ if (!$u.contains(toAppend, word))
352
+ toAppend.push(word);
353
+ }
354
+ var highlightstring = '?highlight=' + $.urlencode(hlterms.join(" "));
355
+
356
+ // console.debug('SEARCH: searching for:');
357
+ // console.info('required: ', searchterms);
358
+ // console.info('excluded: ', excluded);
359
+
360
+ // prepare search
361
+ var terms = this._index.terms;
362
+ var titleterms = this._index.titleterms;
363
+
364
+ // array of [filename, title, anchor, descr, score]
365
+ var results = [];
366
+ $('#search-progress').empty();
367
+
368
+ // lookup as object
369
+ for (i = 0; i < objectterms.length; i++) {
370
+ var others = [].concat(objectterms.slice(0, i),
371
+ objectterms.slice(i+1, objectterms.length));
372
+ results = results.concat(this.performObjectSearch(objectterms[i], others));
373
+ }
374
+
375
+ // lookup as search terms in fulltext
376
+ results = results.concat(this.performTermsSearch(searchterms, excluded, terms, Scorer.term))
377
+ .concat(this.performTermsSearch(searchterms, excluded, titleterms, Scorer.title));
378
+
379
+ // let the scorer override scores with a custom scoring function
380
+ if (Scorer.score) {
381
+ for (i = 0; i < results.length; i++)
382
+ results[i][4] = Scorer.score(results[i]);
383
+ }
384
+
385
+ // now sort the results by score (in opposite order of appearance, since the
386
+ // display function below uses pop() to retrieve items) and then
387
+ // alphabetically
388
+ results.sort(function(a, b) {
389
+ var left = a[4];
390
+ var right = b[4];
391
+ if (left > right) {
392
+ return 1;
393
+ } else if (left < right) {
394
+ return -1;
395
+ } else {
396
+ // same score: sort alphabetically
397
+ left = a[1].toLowerCase();
398
+ right = b[1].toLowerCase();
399
+ return (left > right) ? -1 : ((left < right) ? 1 : 0);
400
+ }
401
+ });
402
+
403
+ // for debugging
404
+ //Search.lastresults = results.slice(); // a copy
405
+ //console.info('search results:', Search.lastresults);
406
+
407
+ // print the results
408
+ var resultCount = results.length;
409
+ function displayNextItem() {
410
+ // results left, load the summary and display it
411
+ if (results.length) {
412
+ var item = results.pop();
413
+ var listItem = $('<li style="display:none"></li>');
414
+ if (DOCUMENTATION_OPTIONS.FILE_SUFFIX === '') {
415
+ // dirhtml builder
416
+ var dirname = item[0] + '/';
417
+ if (dirname.match(/\/index\/$/)) {
418
+ dirname = dirname.substring(0, dirname.length-6);
419
+ } else if (dirname == 'index/') {
420
+ dirname = '';
421
+ }
422
+ listItem.append($('<a/>').attr('href',
423
+ DOCUMENTATION_OPTIONS.URL_ROOT + dirname +
424
+ highlightstring + item[2]).html(item[1]));
425
+ } else {
426
+ // normal html builders
427
+ listItem.append($('<a/>').attr('href',
428
+ item[0] + DOCUMENTATION_OPTIONS.FILE_SUFFIX +
429
+ highlightstring + item[2]).html(item[1]));
430
+ }
431
+ if (item[3]) {
432
+ listItem.append($('<span> (' + item[3] + ')</span>'));
433
+ Search.output.append(listItem);
434
+ listItem.slideDown(5, function() {
435
+ displayNextItem();
436
+ });
437
+ } else if (DOCUMENTATION_OPTIONS.HAS_SOURCE) {
438
+ $.ajax({url: DOCUMENTATION_OPTIONS.URL_ROOT + '_sources/' + item[0] + '.txt',
439
+ dataType: "text",
440
+ complete: function(jqxhr, textstatus) {
441
+ var data = jqxhr.responseText;
442
+ if (data !== '') {
443
+ listItem.append(Search.makeSearchSummary(data, searchterms, hlterms));
444
+ }
445
+ Search.output.append(listItem);
446
+ listItem.slideDown(5, function() {
447
+ displayNextItem();
448
+ });
449
+ }});
450
+ } else {
451
+ // no source available, just display title
452
+ Search.output.append(listItem);
453
+ listItem.slideDown(5, function() {
454
+ displayNextItem();
455
+ });
456
+ }
457
+ }
458
+ // search finished, update title and status message
459
+ else {
460
+ Search.stopPulse();
461
+ Search.title.text(_('Search Results'));
462
+ if (!resultCount)
463
+ Search.status.text(_('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve selected enough categories.'));
464
+ else
465
+ Search.status.text(_('Search finished, found %s page(s) matching the search query.').replace('%s', resultCount));
466
+ Search.status.fadeIn(500);
467
+ }
468
+ }
469
+ displayNextItem();
470
+ },
471
+
472
+ /**
473
+ * search for object names
474
+ */
475
+ performObjectSearch : function(object, otherterms) {
476
+ var filenames = this._index.filenames;
477
+ var objects = this._index.objects;
478
+ var objnames = this._index.objnames;
479
+ var titles = this._index.titles;
480
+
481
+ var i;
482
+ var results = [];
483
+
484
+ for (var prefix in objects) {
485
+ for (var name in objects[prefix]) {
486
+ var fullname = (prefix ? prefix + '.' : '') + name;
487
+ if (fullname.toLowerCase().indexOf(object) > -1) {
488
+ var score = 0;
489
+ var parts = fullname.split('.');
490
+ // check for different match types: exact matches of full name or
491
+ // "last name" (i.e. last dotted part)
492
+ if (fullname == object || parts[parts.length - 1] == object) {
493
+ score += Scorer.objNameMatch;
494
+ // matches in last name
495
+ } else if (parts[parts.length - 1].indexOf(object) > -1) {
496
+ score += Scorer.objPartialMatch;
497
+ }
498
+ var match = objects[prefix][name];
499
+ var objname = objnames[match[1]][2];
500
+ var title = titles[match[0]];
501
+ // If more than one term searched for, we require other words to be
502
+ // found in the name/title/description
503
+ if (otherterms.length > 0) {
504
+ var haystack = (prefix + ' ' + name + ' ' +
505
+ objname + ' ' + title).toLowerCase();
506
+ var allfound = true;
507
+ for (i = 0; i < otherterms.length; i++) {
508
+ if (haystack.indexOf(otherterms[i]) == -1) {
509
+ allfound = false;
510
+ break;
511
+ }
512
+ }
513
+ if (!allfound) {
514
+ continue;
515
+ }
516
+ }
517
+ var descr = objname + _(', in ') + title;
518
+
519
+ var anchor = match[3];
520
+ if (anchor === '')
521
+ anchor = fullname;
522
+ else if (anchor == '-')
523
+ anchor = objnames[match[1]][1] + '-' + fullname;
524
+ // add custom score for some objects according to scorer
525
+ if (Scorer.objPrio.hasOwnProperty(match[2])) {
526
+ score += Scorer.objPrio[match[2]];
527
+ } else {
528
+ score += Scorer.objPrioDefault;
529
+ }
530
+ results.push([filenames[match[0]], fullname, '#'+anchor, descr, score]);
531
+ }
532
+ }
533
+ }
534
+
535
+ return results;
536
+ },
537
+
538
+ /**
539
+ * search for full-text terms in the index
540
+ */
541
+ performTermsSearch : function(searchterms, excluded, terms, score) {
542
+ var filenames = this._index.filenames;
543
+ var titles = this._index.titles;
544
+
545
+ var i, j, file, files;
546
+ var fileMap = {};
547
+ var results = [];
548
+
549
+ // perform the search on the required terms
550
+ for (i = 0; i < searchterms.length; i++) {
551
+ var word = searchterms[i];
552
+ // no match but word was a required one
553
+ if ((files = terms[word]) === undefined)
554
+ break;
555
+ if (files.length === undefined) {
556
+ files = [files];
557
+ }
558
+ // create the mapping
559
+ for (j = 0; j < files.length; j++) {
560
+ file = files[j];
561
+ if (file in fileMap)
562
+ fileMap[file].push(word);
563
+ else
564
+ fileMap[file] = [word];
565
+ }
566
+ }
567
+
568
+ // now check if the files don't contain excluded terms
569
+ for (file in fileMap) {
570
+ var valid = true;
571
+
572
+ // check if all requirements are matched
573
+ if (fileMap[file].length != searchterms.length)
574
+ continue;
575
+
576
+ // ensure that none of the excluded terms is in the search result
577
+ for (i = 0; i < excluded.length; i++) {
578
+ if (terms[excluded[i]] == file ||
579
+ $u.contains(terms[excluded[i]] || [], file)) {
580
+ valid = false;
581
+ break;
582
+ }
583
+ }
584
+
585
+ // if we have still a valid result we can add it to the result list
586
+ if (valid) {
587
+ results.push([filenames[file], titles[file], '', null, score]);
588
+ }
589
+ }
590
+ return results;
591
+ },
592
+
593
+ /**
594
+ * helper function to return a node containing the
595
+ * search summary for a given text. keywords is a list
596
+ * of stemmed words, hlwords is the list of normal, unstemmed
597
+ * words. the first one is used to find the occurrence, the
598
+ * latter for highlighting it.
599
+ */
600
+ makeSearchSummary : function(text, keywords, hlwords) {
601
+ var textLower = text.toLowerCase();
602
+ var start = 0;
603
+ $.each(keywords, function() {
604
+ var i = textLower.indexOf(this.toLowerCase());
605
+ if (i > -1)
606
+ start = i;
607
+ });
608
+ start = Math.max(start - 120, 0);
609
+ var excerpt = ((start > 0) ? '...' : '') +
610
+ $.trim(text.substr(start, 240)) +
611
+ ((start + 240 - text.length) ? '...' : '');
612
+ var rv = $('<div class="context"></div>').text(excerpt);
613
+ $.each(hlwords, function() {
614
+ rv = rv.highlightText(this, 'highlighted');
615
+ });
616
+ return rv;
617
+ }
618
+ };
619
+
620
+ $(document).ready(function() {
621
+ Search.init();
622
+ });