morrigan_editor_rails 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (281) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/morrigan_editor_rails/main.js.erb +2 -1
  3. data/app/assets/stylesheets/morrigan_editor_rails/morrigan-jquery-editor.css +2 -0
  4. data/app/helpers/morrigan_editor_rails/application_helper.rb +7 -0
  5. data/lib/morrigan_editor_rails/version.rb +1 -1
  6. data/test/dummy/{public/assets/morrigan_editor_rails/iframe-93d4936ce81b8a587abd68279b479b59.css → app/assets/stylesheets/editor_iframe.css} +4 -0
  7. data/test/dummy/config/environments/development.rb +3 -0
  8. data/test/dummy/config/initializers/assets.rb +1 -1
  9. data/test/dummy/config/initializers/morrigan_editor_rails.rb +5 -0
  10. data/test/dummy/log/development.log +5486 -0
  11. data/test/dummy/log/production.log +93 -0
  12. metadata +10 -546
  13. data/test/dummy/public/assets/FontAwesome-0ee664430e2da5ac56f2c971f0c63439.otf +0 -0
  14. data/test/dummy/public/assets/application-5d9d85d8335ff5721dca488f2d3688c5.css +0 -1834
  15. data/test/dummy/public/assets/application-5d9d85d8335ff5721dca488f2d3688c5.css.gz +0 -0
  16. data/test/dummy/public/assets/application-b05116063bc54b50b0fc8e88b4ed45b7.js +0 -5
  17. data/test/dummy/public/assets/application-b05116063bc54b50b0fc8e88b4ed45b7.js.gz +0 -0
  18. data/test/dummy/public/assets/application-b447577661d7c947a02fc712ce3d54f8.css +0 -16
  19. data/test/dummy/public/assets/application-b447577661d7c947a02fc712ce3d54f8.css.gz +0 -0
  20. data/test/dummy/public/assets/application-d3e06ca2fe4671e7a5d4e3d53c3b6cb3.js +0 -0
  21. data/test/dummy/public/assets/application-d3e06ca2fe4671e7a5d4e3d53c3b6cb3.js.gz +0 -0
  22. data/test/dummy/public/assets/fontawesome-webfont-2e73f13fc92463b8c5adb7ced8b5d5b3.woff +0 -0
  23. data/test/dummy/public/assets/fontawesome-webfont-43e93d81f55ce274e25bf3f75828fafc.eot +0 -0
  24. data/test/dummy/public/assets/fontawesome-webfont-45b82a11e17bf3eff3a6c1bd3eeb9921.ttf +0 -0
  25. data/test/dummy/public/assets/fontawesome-webfont-53cbb7cd1e1b43f08a90a14e42a2fcee.svg +0 -504
  26. data/test/dummy/public/assets/jquery-ui/animated-overlay-b5c0e0b06482d0e89bffaf0debe20059.gif +0 -0
  27. data/test/dummy/public/assets/jquery-ui/ui-bg_flat_0_aaaaaa_40x100-52033e8f8b9950eb2d17d7546faf10b4.png +0 -0
  28. data/test/dummy/public/assets/jquery-ui/ui-bg_flat_75_ffffff_40x100-9ec4bccc0ec08b6cb2a3dc5b142c9719.png +0 -0
  29. data/test/dummy/public/assets/jquery-ui/ui-bg_glass_55_fbf9ee_1x400-991430c1b213887d326620964ba40d2c.png +0 -0
  30. data/test/dummy/public/assets/jquery-ui/ui-bg_glass_65_ffffff_1x400-9c9ed386167ac17fc071f66c8cc4e6b5.png +0 -0
  31. data/test/dummy/public/assets/jquery-ui/ui-bg_glass_75_dadada_1x400-837edac49ae0a7f6f4639ccb9bd43c45.png +0 -0
  32. data/test/dummy/public/assets/jquery-ui/ui-bg_glass_75_e6e6e6_1x400-e398a4beda0443dfcec41bb22617dfc6.png +0 -0
  33. data/test/dummy/public/assets/jquery-ui/ui-bg_glass_95_fef1ec_1x400-86dd6772ce1bd01efa2d05c35fd9f0b5.png +0 -0
  34. data/test/dummy/public/assets/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100-0b73c10c5d594c1b003abf738969cdd5.png +0 -0
  35. data/test/dummy/public/assets/jquery-ui/ui-icons_222222_256x240-e4c1f6f86abd1a26b45c6d05a5f55520.png +0 -0
  36. data/test/dummy/public/assets/jquery-ui/ui-icons_2e83ff_256x240-321c7442bc996b1c2ce61babe7dfb644.png +0 -0
  37. data/test/dummy/public/assets/jquery-ui/ui-icons_454545_256x240-279585d60e34996188801101c02b0798.png +0 -0
  38. data/test/dummy/public/assets/jquery-ui/ui-icons_888888_256x240-7ddf0b271b9e1bfb11b436320a3a9463.png +0 -0
  39. data/test/dummy/public/assets/jquery-ui/ui-icons_cd0a0a_256x240-869786ce2d622313ecb58eac27734b40.png +0 -0
  40. data/test/dummy/public/assets/manifest-46f4a276c4039d42dc50b69b8ac12233.json +0 -1
  41. data/test/dummy/public/assets/morrigan_editor_rails/application-2c25763efa1ea44c67dbcd60f809c658.css +0 -1817
  42. data/test/dummy/public/assets/morrigan_editor_rails/application-2c25763efa1ea44c67dbcd60f809c658.css.gz +0 -0
  43. data/test/dummy/public/assets/morrigan_editor_rails/application-3eb996b320cc28baa482e10d3ba74811.css +0 -245
  44. data/test/dummy/public/assets/morrigan_editor_rails/application-3eb996b320cc28baa482e10d3ba74811.css.gz +0 -0
  45. data/test/dummy/public/assets/morrigan_editor_rails/application-76ff70872a2c7bd087c5a784454fdcbf.js +0 -1
  46. data/test/dummy/public/assets/morrigan_editor_rails/application-76ff70872a2c7bd087c5a784454fdcbf.js.gz +0 -0
  47. data/test/dummy/public/assets/morrigan_editor_rails/application-b05116063bc54b50b0fc8e88b4ed45b7.js +0 -5
  48. data/test/dummy/public/assets/morrigan_editor_rails/application-b05116063bc54b50b0fc8e88b4ed45b7.js.gz +0 -0
  49. data/test/dummy/public/assets/morrigan_editor_rails/iframe-93d4936ce81b8a587abd68279b479b59.css.gz +0 -0
  50. data/test/dummy/tmp/cache/assets/development/sprockets/0321185df67e40bb3d25cd9337d2e385 +0 -0
  51. data/test/dummy/tmp/cache/assets/development/sprockets/03e1339eff7bcd68961c6ebdb153644b +0 -0
  52. data/test/dummy/tmp/cache/assets/development/sprockets/04948aacd517f6321408a23ec2cf2e8b +0 -0
  53. data/test/dummy/tmp/cache/assets/development/sprockets/0610b50a9901b0a2eca737d8e7d2df4b +0 -0
  54. data/test/dummy/tmp/cache/assets/development/sprockets/092800bd18a5a96af8478489a4506eaf +0 -0
  55. data/test/dummy/tmp/cache/assets/development/sprockets/09813fb06f8819289e4d255076279e18 +0 -0
  56. data/test/dummy/tmp/cache/assets/development/sprockets/0c11377f5ad51416949263789e357c4c +0 -0
  57. data/test/dummy/tmp/cache/assets/development/sprockets/0caecb91e6d9e452d53f31ca3964f79f +0 -0
  58. data/test/dummy/tmp/cache/assets/development/sprockets/11ac1275e4692ee633b3c71b1c0bebb1 +0 -0
  59. data/test/dummy/tmp/cache/assets/development/sprockets/131967afa143dc8b7c46f5a217a6fa46 +0 -0
  60. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  61. data/test/dummy/tmp/cache/assets/development/sprockets/1568af041aa62d4031484f66405395c1 +0 -0
  62. data/test/dummy/tmp/cache/assets/development/sprockets/1627275c923b4943e38a21568937484d +0 -0
  63. data/test/dummy/tmp/cache/assets/development/sprockets/165355c398d384fb242c7c8a5532a3d8 +0 -0
  64. data/test/dummy/tmp/cache/assets/development/sprockets/19df4d11f557925c9bc7cb43578262e0 +0 -0
  65. data/test/dummy/tmp/cache/assets/development/sprockets/1db5c2b3a1138df948a5e88032482a02 +0 -0
  66. data/test/dummy/tmp/cache/assets/development/sprockets/1e7f5993a53ac2d5f4e340b4d30c82fa +0 -0
  67. data/test/dummy/tmp/cache/assets/development/sprockets/1eb00276a56856d27894122e801cea9e +0 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/20e68a2461ec2ce4d88685eb2eff16e2 +0 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/21e0c27bff259f767f698abebdb76299 +0 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/21f02a02275d56fe5d76b703527b23d2 +0 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/24abd23f27e203f719f88a78e5896a8f +0 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/261af5ee646085a4961021fe32cc566c +0 -0
  73. data/test/dummy/tmp/cache/assets/development/sprockets/26ed15cf1b1bc0bddf4af089b3bb3d33 +0 -0
  74. data/test/dummy/tmp/cache/assets/development/sprockets/27a5bd50809b05e00f8452041f27defa +0 -0
  75. data/test/dummy/tmp/cache/assets/development/sprockets/285add66fb6488ba76ff575577dbd7f0 +0 -0
  76. data/test/dummy/tmp/cache/assets/development/sprockets/2b5cb8530a7a99b3a8a2f15ba14cf951 +0 -0
  77. data/test/dummy/tmp/cache/assets/development/sprockets/2d64754f4c82d6ae4d30ca64c8845bc7 +0 -0
  78. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  79. data/test/dummy/tmp/cache/assets/development/sprockets/3057e979013485b60820bbc714a17f48 +0 -0
  80. data/test/dummy/tmp/cache/assets/development/sprockets/305b26fd4eec32622cd245e7e14a9902 +0 -0
  81. data/test/dummy/tmp/cache/assets/development/sprockets/30cccc5e4ef7bec14d1ac7bc7cc5e2f8 +0 -0
  82. data/test/dummy/tmp/cache/assets/development/sprockets/31ab1d6acf577e64fd258d229d207e59 +0 -0
  83. data/test/dummy/tmp/cache/assets/development/sprockets/3311bfd0df44b78f2dbdc3307d5a8e9f +0 -0
  84. data/test/dummy/tmp/cache/assets/development/sprockets/33b77053db9b4ed4e7e2a6e09a36f5fd +0 -0
  85. data/test/dummy/tmp/cache/assets/development/sprockets/341745765db05cc4c68995b4f4e39604 +0 -0
  86. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  87. data/test/dummy/tmp/cache/assets/development/sprockets/3672c41e6db53e97984682a1ad650d6f +0 -0
  88. data/test/dummy/tmp/cache/assets/development/sprockets/3b5cc9e4bac2c88831bb6ed7123131b7 +0 -0
  89. data/test/dummy/tmp/cache/assets/development/sprockets/3da0d6c0233f50dfe7159acf3404fa1d +0 -0
  90. data/test/dummy/tmp/cache/assets/development/sprockets/3effcc056262db5d2008bc7c6cf7489c +0 -0
  91. data/test/dummy/tmp/cache/assets/development/sprockets/4351525a108108f6192fc5387e453818 +0 -0
  92. data/test/dummy/tmp/cache/assets/development/sprockets/45fa6684beecb1f47b504c645cd13d74 +0 -0
  93. data/test/dummy/tmp/cache/assets/development/sprockets/4931c0ce6688a380bfc814df8e8bc6e3 +0 -0
  94. data/test/dummy/tmp/cache/assets/development/sprockets/4ada4e87544fdf2c95f38e383b6d11b5 +0 -0
  95. data/test/dummy/tmp/cache/assets/development/sprockets/4b025d7472b6b56e65bd626895e9c4c0 +0 -0
  96. data/test/dummy/tmp/cache/assets/development/sprockets/4ba383dd6ec1f1afc27223824db4f457 +0 -0
  97. data/test/dummy/tmp/cache/assets/development/sprockets/4db7f5fba90627a1a61931591491dcf4 +0 -0
  98. data/test/dummy/tmp/cache/assets/development/sprockets/51ffcaad707969960737655c2c223646 +0 -0
  99. data/test/dummy/tmp/cache/assets/development/sprockets/543958ca14afb95bbd93b55b7ac039cb +0 -0
  100. data/test/dummy/tmp/cache/assets/development/sprockets/55aff9808a8f3b94c4c614c3d44de610 +0 -0
  101. data/test/dummy/tmp/cache/assets/development/sprockets/55f300def7082e0e8894bf13ba1a6e85 +0 -0
  102. data/test/dummy/tmp/cache/assets/development/sprockets/5630e76b0def5573fcc8ccafd03f999a +0 -0
  103. data/test/dummy/tmp/cache/assets/development/sprockets/5643fd23961c801885d334b9d91df10e +0 -0
  104. data/test/dummy/tmp/cache/assets/development/sprockets/5ae44866f65a3c1c70ac7f5e4e9e8ada +0 -0
  105. data/test/dummy/tmp/cache/assets/development/sprockets/5b062b88b0ebb5c59eff6ecb3ec187e0 +0 -0
  106. data/test/dummy/tmp/cache/assets/development/sprockets/5dff01fe5dc9d7360ffc28bf99768306 +0 -0
  107. data/test/dummy/tmp/cache/assets/development/sprockets/5fc153905da1e5638b3194f45b0bd518 +0 -0
  108. data/test/dummy/tmp/cache/assets/development/sprockets/64722984598132f8ac30183766b0dd35 +0 -0
  109. data/test/dummy/tmp/cache/assets/development/sprockets/64d9c6efddaa74954e277731b2ff35d8 +0 -0
  110. data/test/dummy/tmp/cache/assets/development/sprockets/65497f75b82f8f0244f7ce35e7a441de +0 -0
  111. data/test/dummy/tmp/cache/assets/development/sprockets/667be9aaff6922cfc307d2aef0d20155 +0 -0
  112. data/test/dummy/tmp/cache/assets/development/sprockets/670af6208613d95a01f67bd7698977ca +0 -0
  113. data/test/dummy/tmp/cache/assets/development/sprockets/6899d2e976400c1fd62b154e6674aa2e +0 -0
  114. data/test/dummy/tmp/cache/assets/development/sprockets/6aafd5e1553b224b2e8cbde9894e2258 +0 -0
  115. data/test/dummy/tmp/cache/assets/development/sprockets/6cec73a1dbc690ab10f5a2340aa8e5a1 +0 -0
  116. data/test/dummy/tmp/cache/assets/development/sprockets/6d18b8bfd186ca130994040626f1236a +0 -0
  117. data/test/dummy/tmp/cache/assets/development/sprockets/70bc086882ef55cf7c9559f6cfb6d0f7 +0 -0
  118. data/test/dummy/tmp/cache/assets/development/sprockets/723d939c3ed433c4194986cb1c3507e4 +0 -0
  119. data/test/dummy/tmp/cache/assets/development/sprockets/738336559a9b4c5634fe949f1533d18d +0 -0
  120. data/test/dummy/tmp/cache/assets/development/sprockets/738d20441dc2db3daf94fc801d0b749f +0 -0
  121. data/test/dummy/tmp/cache/assets/development/sprockets/73d36b8ce4aed83d2de01ddd3b1b215b +0 -0
  122. data/test/dummy/tmp/cache/assets/development/sprockets/7404c3a6418ab85fecfbe08a3e49fb09 +0 -0
  123. data/test/dummy/tmp/cache/assets/development/sprockets/74fdea8b59cc67802fe7c93a1388c29d +0 -0
  124. data/test/dummy/tmp/cache/assets/development/sprockets/783d4f6f094d6c7ef5c35f00b637f45f +0 -0
  125. data/test/dummy/tmp/cache/assets/development/sprockets/7d524a66b3d1c1758ede69bf9d62bd69 +0 -0
  126. data/test/dummy/tmp/cache/assets/development/sprockets/7f156dc99b191c09d91d4892823faf7c +0 -0
  127. data/test/dummy/tmp/cache/assets/development/sprockets/802d75b370122c5a6a27f468cbf628a0 +0 -0
  128. data/test/dummy/tmp/cache/assets/development/sprockets/80951849171128f842bf8ab6eed8927b +0 -0
  129. data/test/dummy/tmp/cache/assets/development/sprockets/85d4ee080e5f140e3875f6c9f19ec335 +0 -0
  130. data/test/dummy/tmp/cache/assets/development/sprockets/862aa884a910ed39f85c10c46585baf1 +0 -0
  131. data/test/dummy/tmp/cache/assets/development/sprockets/87979023010b6a744323476cc9d46897 +0 -0
  132. data/test/dummy/tmp/cache/assets/development/sprockets/8b4b0571bc6bceed77ea9d67a31cbcfb +0 -0
  133. data/test/dummy/tmp/cache/assets/development/sprockets/8e36ec2be40c955f90b23b320584c189 +0 -0
  134. data/test/dummy/tmp/cache/assets/development/sprockets/900963b318e41fc312cfa0c26a49d9a8 +0 -0
  135. data/test/dummy/tmp/cache/assets/development/sprockets/90c5335a27fffe032beda891c25caa91 +0 -0
  136. data/test/dummy/tmp/cache/assets/development/sprockets/92a25f2119a691a2054f8791fb329abc +0 -0
  137. data/test/dummy/tmp/cache/assets/development/sprockets/94ba0ce43390611a9cf148e7d61a985e +0 -0
  138. data/test/dummy/tmp/cache/assets/development/sprockets/9545ff1b6f25a295a615fedf3d9ce653 +0 -0
  139. data/test/dummy/tmp/cache/assets/development/sprockets/9638a39246fade955b32f50726130a41 +0 -0
  140. data/test/dummy/tmp/cache/assets/development/sprockets/96554de8dd673b00ec6de3d7b9ce7279 +0 -0
  141. data/test/dummy/tmp/cache/assets/development/sprockets/968722a2d9059f1b9e09054f0ded5983 +0 -0
  142. data/test/dummy/tmp/cache/assets/development/sprockets/9741144d89c2bdc161d6aa876d47dc54 +0 -0
  143. data/test/dummy/tmp/cache/assets/development/sprockets/9ec445575fbe149a0abf5581fc782c0e +0 -0
  144. data/test/dummy/tmp/cache/assets/development/sprockets/a0eb37113fe7d9f74dc2f7dab6335c0d +0 -0
  145. data/test/dummy/tmp/cache/assets/development/sprockets/a165ed02557046eb86639600af323a42 +0 -0
  146. data/test/dummy/tmp/cache/assets/development/sprockets/a3a10a53974bb94c03743dff3b8a7712 +0 -0
  147. data/test/dummy/tmp/cache/assets/development/sprockets/a4674c57d471e349811bf9015e0bb0aa +0 -0
  148. data/test/dummy/tmp/cache/assets/development/sprockets/a63031eebc585d7d4c73b109dcaef7ab +0 -0
  149. data/test/dummy/tmp/cache/assets/development/sprockets/a65b378bd76aa841321c05ed998b2be8 +0 -0
  150. data/test/dummy/tmp/cache/assets/development/sprockets/a76e10e60a77abadef90284eb02d617d +0 -0
  151. data/test/dummy/tmp/cache/assets/development/sprockets/abc182b9bf1173963d6ff14892f1198f +0 -0
  152. data/test/dummy/tmp/cache/assets/development/sprockets/ac20e633649b099d4510c51800e92509 +0 -0
  153. data/test/dummy/tmp/cache/assets/development/sprockets/ad0177260aced4dde036899458fed5b1 +0 -0
  154. data/test/dummy/tmp/cache/assets/development/sprockets/b1fca3b536dcd71e0f0f04597921b746 +0 -0
  155. data/test/dummy/tmp/cache/assets/development/sprockets/b5ba3b627b6d1694d05398bc69add4a4 +0 -0
  156. data/test/dummy/tmp/cache/assets/development/sprockets/b7a4acdbe133653d2184b8676098c06e +0 -0
  157. data/test/dummy/tmp/cache/assets/development/sprockets/b997032241c368015b78c01cda8fb95b +0 -0
  158. data/test/dummy/tmp/cache/assets/development/sprockets/bb303f1f4e186fd522af42c989bde916 +0 -0
  159. data/test/dummy/tmp/cache/assets/development/sprockets/bdf7a9f9ad09c351a23156ea51b309e5 +0 -0
  160. data/test/dummy/tmp/cache/assets/development/sprockets/be9248bb5ad1baf293d1248d601efaaf +0 -0
  161. data/test/dummy/tmp/cache/assets/development/sprockets/bee0437b881469b143b739613750a3be +0 -0
  162. data/test/dummy/tmp/cache/assets/development/sprockets/bf2f87df19f2d1c849a4f6245553880b +0 -0
  163. data/test/dummy/tmp/cache/assets/development/sprockets/bf65075e056ebf9a40e628d610777d56 +0 -0
  164. data/test/dummy/tmp/cache/assets/development/sprockets/bfa762041885279e7c8fe4a9a62be7d3 +0 -0
  165. data/test/dummy/tmp/cache/assets/development/sprockets/c063ad7a08240a74dff7288152b3d363 +0 -0
  166. data/test/dummy/tmp/cache/assets/development/sprockets/c0e62549e67404bacf7444400cb05ad6 +0 -0
  167. data/test/dummy/tmp/cache/assets/development/sprockets/c65a5c1953f6db8c4889a4a281f1c38e +0 -0
  168. data/test/dummy/tmp/cache/assets/development/sprockets/cd1940a81ce614cc11931fe258692acb +0 -0
  169. data/test/dummy/tmp/cache/assets/development/sprockets/cd85b9366bc5f3f1fffe58b0c95ad640 +0 -0
  170. data/test/dummy/tmp/cache/assets/development/sprockets/cde4d69e5340a5fdff14a15395b09754 +0 -0
  171. data/test/dummy/tmp/cache/assets/development/sprockets/ce968fc7b385299b9920848ba992bba3 +0 -0
  172. data/test/dummy/tmp/cache/assets/development/sprockets/cef88d7383e5c841717e78a7fe2f93a8 +0 -0
  173. data/test/dummy/tmp/cache/assets/development/sprockets/cf24959a2a954dc9b412c6e18eaebe7c +0 -0
  174. data/test/dummy/tmp/cache/assets/development/sprockets/cf2c9ff2d31202713fa1d127c3315cd0 +0 -0
  175. data/test/dummy/tmp/cache/assets/development/sprockets/cf6ca7de953faa380b36e54eb75a78b9 +0 -0
  176. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  177. data/test/dummy/tmp/cache/assets/development/sprockets/d18c37db337a14b152f9e409c40129e3 +0 -0
  178. data/test/dummy/tmp/cache/assets/development/sprockets/d4426367f94684ff1a00a65b322bd8ce +0 -0
  179. data/test/dummy/tmp/cache/assets/development/sprockets/d4e11a3bb074775e2ac1e41f7cfc444c +0 -0
  180. data/test/dummy/tmp/cache/assets/development/sprockets/d73bc0fc2189e6ae7cb59c50707b51f4 +0 -0
  181. data/test/dummy/tmp/cache/assets/development/sprockets/d73be4268256b23fad7da7c3bbc6a297 +0 -0
  182. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  183. data/test/dummy/tmp/cache/assets/development/sprockets/d83408e74da3ed32025f99f441cfe546 +0 -0
  184. data/test/dummy/tmp/cache/assets/development/sprockets/da3f432129d762202201653f1fff5fc0 +0 -0
  185. data/test/dummy/tmp/cache/assets/development/sprockets/dca2dcac26fb981cf50463376c2812f6 +0 -0
  186. data/test/dummy/tmp/cache/assets/development/sprockets/e1cc9b1775e8ee16ae97ccf72ee0161c +0 -0
  187. data/test/dummy/tmp/cache/assets/development/sprockets/e6e5e010457e6197330309d38389d068 +0 -0
  188. data/test/dummy/tmp/cache/assets/development/sprockets/e7ec1731e510bdfb33f21ed2a0d2fda0 +0 -0
  189. data/test/dummy/tmp/cache/assets/development/sprockets/e906347e6a20e1ad8d34f31e0d2ac79a +0 -0
  190. data/test/dummy/tmp/cache/assets/development/sprockets/e95c8caf76355ea153236c73c0c93c2c +0 -0
  191. data/test/dummy/tmp/cache/assets/development/sprockets/eb2c3698df750c7c99a1f52b5462bb09 +0 -0
  192. data/test/dummy/tmp/cache/assets/development/sprockets/ec3c456c5908aa82b2279276c230baf3 +0 -0
  193. data/test/dummy/tmp/cache/assets/development/sprockets/ec8f89f47b4b0a16dcde3e5579f47d4b +0 -0
  194. data/test/dummy/tmp/cache/assets/development/sprockets/ec997013aa18ee0fa1b00bbf8283ce3f +0 -0
  195. data/test/dummy/tmp/cache/assets/development/sprockets/eda077c74db6201b5989642ecd8c4361 +0 -0
  196. data/test/dummy/tmp/cache/assets/development/sprockets/edc1dbe3537a9e0d17f74a12233b8574 +0 -0
  197. data/test/dummy/tmp/cache/assets/development/sprockets/ef6a2031ddc4c25518bd5b7da05980ea +0 -0
  198. data/test/dummy/tmp/cache/assets/development/sprockets/f05cedc33b8ef6a2a53c6683ed59fcda +0 -0
  199. data/test/dummy/tmp/cache/assets/development/sprockets/f5eaca1050a93fa117d1320e4d77e625 +0 -0
  200. data/test/dummy/tmp/cache/assets/development/sprockets/f71a0f222190bc4d6adb2f84a3e493c8 +0 -0
  201. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  202. data/test/dummy/tmp/cache/assets/development/sprockets/f800b5c038f2c0b7abaff7196bb7dc4f +0 -0
  203. data/test/dummy/tmp/cache/assets/development/sprockets/f95bcd17a28696d1b7384e55d21c5e71 +0 -0
  204. data/test/dummy/tmp/cache/assets/development/sprockets/f9c812dc9510ae65c55f0438735bfcc3 +0 -0
  205. data/test/dummy/tmp/cache/assets/development/sprockets/fa54025f04071ac4022e7d532c58513f +0 -0
  206. data/test/dummy/tmp/cache/assets/development/sprockets/fa54f83fd4d0a2c36ff161a7f5406828 +0 -0
  207. data/test/dummy/tmp/cache/assets/development/sprockets/fa707e9dacab90f24198586f2ed18184 +0 -0
  208. data/test/dummy/tmp/cache/assets/development/sprockets/faef49d6ae9c3dc9db00521b59a8bc1a +0 -0
  209. data/test/dummy/tmp/cache/assets/development/sprockets/fd31617d454f515dc7ccb68a36bb42a4 +0 -0
  210. data/test/dummy/tmp/cache/assets/production/sprockets/03e1339eff7bcd68961c6ebdb153644b +0 -0
  211. data/test/dummy/tmp/cache/assets/production/sprockets/092800bd18a5a96af8478489a4506eaf +0 -0
  212. data/test/dummy/tmp/cache/assets/production/sprockets/0e19f8202609949dabc07ed8b095470b +0 -0
  213. data/test/dummy/tmp/cache/assets/production/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  214. data/test/dummy/tmp/cache/assets/production/sprockets/19ec4693e7f8034682758ebeb784caf4 +0 -0
  215. data/test/dummy/tmp/cache/assets/production/sprockets/1a93153ce3836c5d6837723f6d5a244c +0 -0
  216. data/test/dummy/tmp/cache/assets/production/sprockets/1e78d36ec03d73575ed3f02e1a84d8da +0 -0
  217. data/test/dummy/tmp/cache/assets/production/sprockets/1e7f5993a53ac2d5f4e340b4d30c82fa +0 -0
  218. data/test/dummy/tmp/cache/assets/production/sprockets/1f0f08c54d915b04f25266fb88281f6e +0 -0
  219. data/test/dummy/tmp/cache/assets/production/sprockets/20a26da8529e3a51c5e1ce3c47f1db90 +0 -0
  220. data/test/dummy/tmp/cache/assets/production/sprockets/21f02a02275d56fe5d76b703527b23d2 +0 -0
  221. data/test/dummy/tmp/cache/assets/production/sprockets/237c8eab1ea38442b26d8710e5556b99 +0 -0
  222. data/test/dummy/tmp/cache/assets/production/sprockets/26ed15cf1b1bc0bddf4af089b3bb3d33 +0 -0
  223. data/test/dummy/tmp/cache/assets/production/sprockets/27a5bd50809b05e00f8452041f27defa +0 -0
  224. data/test/dummy/tmp/cache/assets/production/sprockets/28aecca92286e0662b612d8c9fc4d759 +0 -0
  225. data/test/dummy/tmp/cache/assets/production/sprockets/2aa5266b019ec8eef0bcf65b922a63e6 +0 -0
  226. data/test/dummy/tmp/cache/assets/production/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  227. data/test/dummy/tmp/cache/assets/production/sprockets/3057e979013485b60820bbc714a17f48 +0 -0
  228. data/test/dummy/tmp/cache/assets/production/sprockets/30cccc5e4ef7bec14d1ac7bc7cc5e2f8 +0 -0
  229. data/test/dummy/tmp/cache/assets/production/sprockets/319a811d32f03d31d3e1d7afb14f41eb +0 -0
  230. data/test/dummy/tmp/cache/assets/production/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  231. data/test/dummy/tmp/cache/assets/production/sprockets/3c119f15854a0be1964494bfc871a214 +0 -0
  232. data/test/dummy/tmp/cache/assets/production/sprockets/47ea87fe292c37f25cfbdc27b4ca2f4c +0 -0
  233. data/test/dummy/tmp/cache/assets/production/sprockets/4948c0b011347c0a6735a2ca2e535ffb +0 -0
  234. data/test/dummy/tmp/cache/assets/production/sprockets/4db7f5fba90627a1a61931591491dcf4 +0 -0
  235. data/test/dummy/tmp/cache/assets/production/sprockets/4ee2b4107242bb84c1a7fff870637ea2 +0 -0
  236. data/test/dummy/tmp/cache/assets/production/sprockets/505d2141082342a40629715a8ccdab64 +0 -0
  237. data/test/dummy/tmp/cache/assets/production/sprockets/543958ca14afb95bbd93b55b7ac039cb +0 -0
  238. data/test/dummy/tmp/cache/assets/production/sprockets/5dff01fe5dc9d7360ffc28bf99768306 +0 -0
  239. data/test/dummy/tmp/cache/assets/production/sprockets/670af6208613d95a01f67bd7698977ca +0 -0
  240. data/test/dummy/tmp/cache/assets/production/sprockets/6d18b8bfd186ca130994040626f1236a +0 -0
  241. data/test/dummy/tmp/cache/assets/production/sprockets/70bc086882ef55cf7c9559f6cfb6d0f7 +0 -0
  242. data/test/dummy/tmp/cache/assets/production/sprockets/7404c3a6418ab85fecfbe08a3e49fb09 +0 -0
  243. data/test/dummy/tmp/cache/assets/production/sprockets/74fdea8b59cc67802fe7c93a1388c29d +0 -0
  244. data/test/dummy/tmp/cache/assets/production/sprockets/783d4f6f094d6c7ef5c35f00b637f45f +0 -0
  245. data/test/dummy/tmp/cache/assets/production/sprockets/7925c24c53084dc9987bf9eaebf534f3 +0 -0
  246. data/test/dummy/tmp/cache/assets/production/sprockets/7c94e39026e1b69c7de824cea32b66b5 +0 -0
  247. data/test/dummy/tmp/cache/assets/production/sprockets/80951849171128f842bf8ab6eed8927b +0 -0
  248. data/test/dummy/tmp/cache/assets/production/sprockets/87dd8b056add6e6fd9ae20535509de81 +0 -0
  249. data/test/dummy/tmp/cache/assets/production/sprockets/8a2bdcc15fd8625edd63cee50c21e46e +0 -0
  250. data/test/dummy/tmp/cache/assets/production/sprockets/8b4b0571bc6bceed77ea9d67a31cbcfb +0 -0
  251. data/test/dummy/tmp/cache/assets/production/sprockets/8d5c3d413736edecc6bc775540172f09 +0 -0
  252. data/test/dummy/tmp/cache/assets/production/sprockets/90c5335a27fffe032beda891c25caa91 +0 -0
  253. data/test/dummy/tmp/cache/assets/production/sprockets/92a25f2119a691a2054f8791fb329abc +0 -0
  254. data/test/dummy/tmp/cache/assets/production/sprockets/9545ff1b6f25a295a615fedf3d9ce653 +0 -0
  255. data/test/dummy/tmp/cache/assets/production/sprockets/968722a2d9059f1b9e09054f0ded5983 +0 -0
  256. data/test/dummy/tmp/cache/assets/production/sprockets/97e6f53ed13baa9f3e154c950b1dfc7a +0 -0
  257. data/test/dummy/tmp/cache/assets/production/sprockets/9d53f65dc02ac342964571b4a52bd7e1 +0 -0
  258. data/test/dummy/tmp/cache/assets/production/sprockets/a26112ddbf1829adea4a7713471eafe7 +0 -0
  259. data/test/dummy/tmp/cache/assets/production/sprockets/a662aec525173c644ccd45afd6eaaf91 +0 -0
  260. data/test/dummy/tmp/cache/assets/production/sprockets/a76e10e60a77abadef90284eb02d617d +0 -0
  261. data/test/dummy/tmp/cache/assets/production/sprockets/ab0a007b34cc2e2db6a1c2280b07f7fb +0 -0
  262. data/test/dummy/tmp/cache/assets/production/sprockets/ad060ac8e1d548c83d147081a6b7ebae +0 -0
  263. data/test/dummy/tmp/cache/assets/production/sprockets/afaf5379ab34b4826f87462ee039b106 +0 -0
  264. data/test/dummy/tmp/cache/assets/production/sprockets/b5ba3b627b6d1694d05398bc69add4a4 +0 -0
  265. data/test/dummy/tmp/cache/assets/production/sprockets/b997032241c368015b78c01cda8fb95b +0 -0
  266. data/test/dummy/tmp/cache/assets/production/sprockets/bf2f87df19f2d1c849a4f6245553880b +0 -0
  267. data/test/dummy/tmp/cache/assets/production/sprockets/c063ad7a08240a74dff7288152b3d363 +0 -0
  268. data/test/dummy/tmp/cache/assets/production/sprockets/c0e62549e67404bacf7444400cb05ad6 +0 -0
  269. data/test/dummy/tmp/cache/assets/production/sprockets/c4eb0e779c4215872b4e9467852495b9 +0 -0
  270. data/test/dummy/tmp/cache/assets/production/sprockets/c7a30ef0a33b813f17b48482c4605cb5 +0 -0
  271. data/test/dummy/tmp/cache/assets/production/sprockets/cf2c9ff2d31202713fa1d127c3315cd0 +0 -0
  272. data/test/dummy/tmp/cache/assets/production/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  273. data/test/dummy/tmp/cache/assets/production/sprockets/d18c37db337a14b152f9e409c40129e3 +0 -0
  274. data/test/dummy/tmp/cache/assets/production/sprockets/d73bc0fc2189e6ae7cb59c50707b51f4 +0 -0
  275. data/test/dummy/tmp/cache/assets/production/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  276. data/test/dummy/tmp/cache/assets/production/sprockets/dda643fb5a9c5352b382ac7f8e7b9fd7 +0 -0
  277. data/test/dummy/tmp/cache/assets/production/sprockets/df9cddc8374d865bcb77173e6c6a18a3 +0 -0
  278. data/test/dummy/tmp/cache/assets/production/sprockets/ec8f89f47b4b0a16dcde3e5579f47d4b +0 -0
  279. data/test/dummy/tmp/cache/assets/production/sprockets/f6f036d8e1c0b10fa5cb30ce8eb22d03 +0 -0
  280. data/test/dummy/tmp/cache/assets/production/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  281. data/test/dummy/tmp/pids/server.pid +0 -1
@@ -1,5 +0,0 @@
1
- !function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=e.length,n=ot.type(e);return"function"===n||ot.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function i(e,t,n){if(ot.isFunction(t))return ot.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)return ot.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(ft.test(t))return ot.filter(t,e,n);t=ot.filter(t,e)}return ot.grep(e,function(e){return ot.inArray(e,t)>=0!==n})}function o(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function r(e){var t=wt[e]={};return ot.each(e.match(bt)||[],function(e,n){t[n]=!0}),t}function a(){ht.addEventListener?(ht.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1)):(ht.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(ht.addEventListener||"load"===event.type||"complete"===ht.readyState)&&(a(),ot.ready())}function c(e,t,n){if(void 0===n&&1===e.nodeType){var i="data-"+t.replace(Tt,"-$1").toLowerCase();if(n=e.getAttribute(i),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:Ct.test(n)?ot.parseJSON(n):n}catch(o){}ot.data(e,t,n)}else n=void 0}return n}function l(e){var t;for(t in e)if(("data"!==t||!ot.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function u(e,t,n,i){if(ot.acceptData(e)){var o,r,a=ot.expando,s=e.nodeType,c=s?ot.cache:e,l=s?e[a]:e[a]&&a;if(l&&c[l]&&(i||c[l].data)||void 0!==n||"string"!=typeof t)return l||(l=s?e[a]=G.pop()||ot.guid++:a),c[l]||(c[l]=s?{}:{toJSON:ot.noop}),("object"==typeof t||"function"==typeof t)&&(i?c[l]=ot.extend(c[l],t):c[l].data=ot.extend(c[l].data,t)),r=c[l],i||(r.data||(r.data={}),r=r.data),void 0!==n&&(r[ot.camelCase(t)]=n),"string"==typeof t?(o=r[t],null==o&&(o=r[ot.camelCase(t)])):o=r,o}}function d(e,t,n){if(ot.acceptData(e)){var i,o,r=e.nodeType,a=r?ot.cache:e,s=r?e[ot.expando]:ot.expando;if(a[s]){if(t&&(i=n?a[s]:a[s].data)){ot.isArray(t)?t=t.concat(ot.map(t,ot.camelCase)):t in i?t=[t]:(t=ot.camelCase(t),t=t in i?[t]:t.split(" ")),o=t.length;for(;o--;)delete i[t[o]];if(n?!l(i):!ot.isEmptyObject(i))return}(n||(delete a[s].data,l(a[s])))&&(r?ot.cleanData([e],!0):nt.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}function f(){return!0}function p(){return!1}function h(){try{return ht.activeElement}catch(e){}}function g(e){var t=jt.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function m(e,t){var n,i,o=0,r=typeof e.getElementsByTagName!==kt?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==kt?e.querySelectorAll(t||"*"):void 0;if(!r)for(r=[],n=e.childNodes||e;null!=(i=n[o]);o++)!t||ot.nodeName(i,t)?r.push(i):ot.merge(r,m(i,t));return void 0===t||t&&ot.nodeName(e,t)?ot.merge([e],r):r}function v(e){Ht.test(e.type)&&(e.defaultChecked=e.checked)}function y(e,t){return ot.nodeName(e,"table")&&ot.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function b(e){return e.type=(null!==ot.find.attr(e,"type"))+"/"+e.type,e}function w(e){var t=Vt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function x(e,t){for(var n,i=0;null!=(n=e[i]);i++)ot._data(n,"globalEval",!t||ot._data(t[i],"globalEval"))}function _(e,t){if(1===t.nodeType&&ot.hasData(e)){var n,i,o,r=ot._data(e),a=ot._data(t,r),s=r.events;if(s){delete a.handle,a.events={};for(n in s)for(i=0,o=s[n].length;o>i;i++)ot.event.add(t,n,s[n][i])}a.data&&(a.data=ot.extend({},a.data))}}function k(e,t){var n,i,o;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!nt.noCloneEvent&&t[ot.expando]){o=ot._data(t);for(i in o.events)ot.removeEvent(t,i,o.handle);t.removeAttribute(ot.expando)}"script"===n&&t.text!==e.text?(b(t).text=e.text,w(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),nt.html5Clone&&e.innerHTML&&!ot.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ht.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}function C(t,n){var i,o=ot(n.createElement(t)).appendTo(n.body),r=e.getDefaultComputedStyle&&(i=e.getDefaultComputedStyle(o[0]))?i.display:ot.css(o[0],"display");return o.detach(),r}function T(e){var t=ht,n=Zt[e];return n||(n=C(e,t),"none"!==n&&n||(Qt=(Qt||ot("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=(Qt[0].contentWindow||Qt[0].contentDocument).document,t.write(),t.close(),n=C(e,t),Qt.detach()),Zt[e]=n),n}function N(e,t){return{get:function(){var n=e();if(null!=n)return n?void delete this.get:(this.get=t).apply(this,arguments)}}}function E(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),i=t,o=pn.length;o--;)if(t=pn[o]+n,t in e)return t;return i}function S(e,t){for(var n,i,o,r=[],a=0,s=e.length;s>a;a++)i=e[a],i.style&&(r[a]=ot._data(i,"olddisplay"),n=i.style.display,t?(r[a]||"none"!==n||(i.style.display=""),""===i.style.display&&St(i)&&(r[a]=ot._data(i,"olddisplay",T(i.nodeName)))):(o=St(i),(n&&"none"!==n||!o)&&ot._data(i,"olddisplay",o?n:ot.css(i,"display"))));for(a=0;s>a;a++)i=e[a],i.style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?r[a]||"":"none"));return e}function A(e,t,n){var i=ln.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function H(e,t,n,i,o){for(var r=n===(i?"border":"content")?4:"width"===t?1:0,a=0;4>r;r+=2)"margin"===n&&(a+=ot.css(e,n+Et[r],!0,o)),i?("content"===n&&(a-=ot.css(e,"padding"+Et[r],!0,o)),"margin"!==n&&(a-=ot.css(e,"border"+Et[r]+"Width",!0,o))):(a+=ot.css(e,"padding"+Et[r],!0,o),"padding"!==n&&(a+=ot.css(e,"border"+Et[r]+"Width",!0,o)));return a}function L(e,t,n){var i=!0,o="width"===t?e.offsetWidth:e.offsetHeight,r=en(e),a=nt.boxSizing&&"border-box"===ot.css(e,"boxSizing",!1,r);if(0>=o||null==o){if(o=tn(e,t,r),(0>o||null==o)&&(o=e.style[t]),on.test(o))return o;i=a&&(nt.boxSizingReliable()||o===e.style[t]),o=parseFloat(o)||0}return o+H(e,t,n||(a?"border":"content"),i,r)+"px"}function D(e,t,n,i,o){return new D.prototype.init(e,t,n,i,o)}function B(){return setTimeout(function(){hn=void 0}),hn=ot.now()}function M(e,t){var n,i={height:e},o=0;for(t=t?1:0;4>o;o+=2-t)n=Et[o],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function $(e,t,n){for(var i,o=(wn[t]||[]).concat(wn["*"]),r=0,a=o.length;a>r;r++)if(i=o[r].call(n,t,e))return i}function j(e,t,n){var i,o,r,a,s,c,l,u,d=this,f={},p=e.style,h=e.nodeType&&St(e),g=ot._data(e,"fxshow");n.queue||(s=ot._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,c=s.empty.fire,s.empty.fire=function(){s.unqueued||c()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,ot.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],l=ot.css(e,"display"),u="none"===l?ot._data(e,"olddisplay")||T(e.nodeName):l,"inline"===u&&"none"===ot.css(e,"float")&&(nt.inlineBlockNeedsLayout&&"inline"!==T(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",nt.shrinkWrapBlocks()||d.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(i in t)if(o=t[i],mn.exec(o)){if(delete t[i],r=r||"toggle"===o,o===(h?"hide":"show")){if("show"!==o||!g||void 0===g[i])continue;h=!0}f[i]=g&&g[i]||ot.style(e,i)}else l=void 0;if(ot.isEmptyObject(f))"inline"===("none"===l?T(e.nodeName):l)&&(p.display=l);else{g?"hidden"in g&&(h=g.hidden):g=ot._data(e,"fxshow",{}),r&&(g.hidden=!h),h?ot(e).show():d.done(function(){ot(e).hide()}),d.done(function(){var t;ot._removeData(e,"fxshow");for(t in f)ot.style(e,t,f[t])});for(i in f)a=$(h?g[i]:0,i,d),i in g||(g[i]=a.start,h&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}}function I(e,t){var n,i,o,r,a;for(n in e)if(i=ot.camelCase(n),o=t[i],r=e[n],ot.isArray(r)&&(o=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),a=ot.cssHooks[i],a&&"expand"in a){r=a.expand(r),delete e[i];for(n in r)n in e||(e[n]=r[n],t[n]=o)}else t[i]=o}function O(e,t,n){var i,o,r=0,a=bn.length,s=ot.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var t=hn||B(),n=Math.max(0,l.startTime+l.duration-t),i=n/l.duration||0,r=1-i,a=0,c=l.tweens.length;c>a;a++)l.tweens[a].run(r);return s.notifyWith(e,[l,r,n]),1>r&&c?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:ot.extend({},t),opts:ot.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:hn||B(),duration:n.duration,tweens:[],createTween:function(t,n){var i=ot.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(i),i},stop:function(t){var n=0,i=t?l.tweens.length:0;if(o)return this;for(o=!0;i>n;n++)l.tweens[n].run(1);return t?s.resolveWith(e,[l,t]):s.rejectWith(e,[l,t]),this}}),u=l.props;for(I(u,l.opts.specialEasing);a>r;r++)if(i=bn[r].call(l,e,u,l.opts))return i;return ot.map(u,$,l),ot.isFunction(l.opts.start)&&l.opts.start.call(e,l),ot.fx.timer(ot.extend(c,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function P(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,o=0,r=t.toLowerCase().match(bt)||[];if(ot.isFunction(n))for(;i=r[o++];)"+"===i.charAt(0)?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function F(e,t,n,i){function o(s){var c;return r[s]=!0,ot.each(e[s]||[],function(e,s){var l=s(t,n,i);return"string"!=typeof l||a||r[l]?a?!(c=l):void 0:(t.dataTypes.unshift(l),o(l),!1)}),c}var r={},a=e===zn;return o(t.dataTypes[0])||!r["*"]&&o("*")}function q(e,t){var n,i,o=ot.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((o[i]?e:n||(n={}))[i]=t[i]);return n&&ot.extend(!0,e,n),e}function R(e,t,n){for(var i,o,r,a,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===o&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(a in s)if(s[a]&&s[a].test(o)){c.unshift(a);break}if(c[0]in n)r=c[0];else{for(a in n){if(!c[0]||e.converters[a+" "+c[0]]){r=a;break}i||(i=a)}r=r||i}return r?(r!==c[0]&&c.unshift(r),n[r]):void 0}function W(e,t,n,i){var o,r,a,s,c,l={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(r=u.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!c&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=r,r=u.shift())if("*"===r)r=c;else if("*"!==c&&c!==r){if(a=l[c+" "+r]||l["* "+r],!a)for(o in l)if(s=o.split(" "),s[1]===r&&(a=l[c+" "+s[0]]||l["* "+s[0]])){a===!0?a=l[o]:l[o]!==!0&&(r=s[0],u.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(d){return{state:"parsererror",error:a?d:"No conversion from "+c+" to "+r}}}return{state:"success",data:t}}function z(e,t,n,i){var o;if(ot.isArray(t))ot.each(t,function(t,o){n||Gn.test(e)?i(e,o):z(e+"["+("object"==typeof o?t:"")+"]",o,n,i)});else if(n||"object"!==ot.type(t))i(e,t);else for(o in t)z(e+"["+o+"]",t[o],n,i)}function U(){try{return new e.XMLHttpRequest}catch(t){}}function X(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function V(e){return ot.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}var G=[],Y=G.slice,J=G.concat,K=G.push,Q=G.indexOf,Z={},et=Z.toString,tt=Z.hasOwnProperty,nt={},it="1.11.1",ot=function(e,t){return new ot.fn.init(e,t)},rt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,at=/^-ms-/,st=/-([\da-z])/gi,ct=function(e,t){return t.toUpperCase()};ot.fn=ot.prototype={jquery:it,constructor:ot,selector:"",length:0,toArray:function(){return Y.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:Y.call(this)},pushStack:function(e){var t=ot.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return ot.each(this,e,t)},map:function(e){return this.pushStack(ot.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(Y.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:K,sort:G.sort,splice:G.splice},ot.extend=ot.fn.extend=function(){var e,t,n,i,o,r,a=arguments[0]||{},s=1,c=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||ot.isFunction(a)||(a={}),s===c&&(a=this,s--);c>s;s++)if(null!=(o=arguments[s]))for(i in o)e=a[i],n=o[i],a!==n&&(l&&n&&(ot.isPlainObject(n)||(t=ot.isArray(n)))?(t?(t=!1,r=e&&ot.isArray(e)?e:[]):r=e&&ot.isPlainObject(e)?e:{},a[i]=ot.extend(l,r,n)):void 0!==n&&(a[i]=n));return a},ot.extend({expando:"jQuery"+(it+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===ot.type(e)},isArray:Array.isArray||function(e){return"array"===ot.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!ot.isArray(e)&&e-parseFloat(e)>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==ot.type(e)||e.nodeType||ot.isWindow(e))return!1;try{if(e.constructor&&!tt.call(e,"constructor")&&!tt.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(nt.ownLast)for(t in e)return tt.call(e,t);for(t in e);return void 0===t||tt.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?Z[et.call(e)]||"object":typeof e},globalEval:function(t){t&&ot.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(at,"ms-").replace(st,ct)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,i){var o,r=0,a=e.length,s=n(e);if(i){if(s)for(;a>r&&(o=t.apply(e[r],i),o!==!1);r++);else for(r in e)if(o=t.apply(e[r],i),o===!1)break}else if(s)for(;a>r&&(o=t.call(e[r],r,e[r]),o!==!1);r++);else for(r in e)if(o=t.call(e[r],r,e[r]),o===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(rt,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(n(Object(e))?ot.merge(i,"string"==typeof e?[e]:e):K.call(i,e)),i},inArray:function(e,t,n){var i;if(t){if(Q)return Q.call(t,e,n);for(i=t.length,n=n?0>n?Math.max(0,i+n):n:0;i>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;n>i;)e[o++]=t[i++];if(n!==n)for(;void 0!==t[i];)e[o++]=t[i++];return e.length=o,e},grep:function(e,t,n){for(var i,o=[],r=0,a=e.length,s=!n;a>r;r++)i=!t(e[r],r),i!==s&&o.push(e[r]);return o},map:function(e,t,i){var o,r=0,a=e.length,s=n(e),c=[];if(s)for(;a>r;r++)o=t(e[r],r,i),null!=o&&c.push(o);else for(r in e)o=t(e[r],r,i),null!=o&&c.push(o);return J.apply([],c)},guid:1,proxy:function(e,t){var n,i,o;return"string"==typeof t&&(o=e[t],t=e,e=o),ot.isFunction(e)?(n=Y.call(arguments,2),i=function(){return e.apply(t||this,n.concat(Y.call(arguments)))},i.guid=e.guid=e.guid||ot.guid++,i):void 0},now:function(){return+new Date},support:nt}),ot.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){Z["[object "+t+"]"]=t.toLowerCase()});var lt=function(e){function t(e,t,n,i){var o,r,a,s,c,l,d,p,h,g;if((t?t.ownerDocument||t:F)!==D&&L(t),t=t||D,n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(M&&!i){if(o=yt.exec(e))if(a=o[1]){if(9===s){if(r=t.getElementById(a),!r||!r.parentNode)return n;if(r.id===a)return n.push(r),n}else if(t.ownerDocument&&(r=t.ownerDocument.getElementById(a))&&O(t,r)&&r.id===a)return n.push(r),n}else{if(o[2])return Z.apply(n,t.getElementsByTagName(e)),n;if((a=o[3])&&x.getElementsByClassName&&t.getElementsByClassName)return Z.apply(n,t.getElementsByClassName(a)),n}if(x.qsa&&(!$||!$.test(e))){if(p=d=P,h=t,g=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(l=T(e),(d=t.getAttribute("id"))?p=d.replace(wt,"\\$&"):t.setAttribute("id",p),p="[id='"+p+"'] ",c=l.length;c--;)l[c]=p+f(l[c]);h=bt.test(e)&&u(t.parentNode)||t,g=l.join(",")}if(g)try{return Z.apply(n,h.querySelectorAll(g)),n}catch(m){}finally{d||t.removeAttribute("id")}}}return E(e.replace(ct,"$1"),t,n,i)}function n(){function e(n,i){return t.push(n+" ")>_.cacheLength&&delete e[t.shift()],e[n+" "]=i}var t=[];return e}function i(e){return e[P]=!0,e}function o(e){var t=D.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function r(e,t){for(var n=e.split("|"),i=e.length;i--;)_.attrHandle[n[i]]=t}function a(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||G)-(~e.sourceIndex||G);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function c(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return i(function(t){return t=+t,i(function(n,i){for(var o,r=e([],n.length,t),a=r.length;a--;)n[o=r[a]]&&(n[o]=!(i[o]=n[o]))})})}function u(e){return e&&typeof e.getElementsByTagName!==V&&e}function d(){}function f(e){for(var t=0,n=e.length,i="";n>t;t++)i+=e[t].value;return i}function p(e,t,n){var i=t.dir,o=n&&"parentNode"===i,r=R++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||o)return e(t,n,r)}:function(t,n,a){var s,c,l=[q,r];if(a){for(;t=t[i];)if((1===t.nodeType||o)&&e(t,n,a))return!0}else for(;t=t[i];)if(1===t.nodeType||o){if(c=t[P]||(t[P]={}),(s=c[i])&&s[0]===q&&s[1]===r)return l[2]=s[2];if(c[i]=l,l[2]=e(t,n,a))return!0}}}function h(e){return e.length>1?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function g(e,n,i){for(var o=0,r=n.length;r>o;o++)t(e,n[o],i);return i}function m(e,t,n,i,o){for(var r,a=[],s=0,c=e.length,l=null!=t;c>s;s++)(r=e[s])&&(!n||n(r,i,o))&&(a.push(r),l&&t.push(s));return a}function v(e,t,n,o,r,a){return o&&!o[P]&&(o=v(o)),r&&!r[P]&&(r=v(r,a)),i(function(i,a,s,c){var l,u,d,f=[],p=[],h=a.length,v=i||g(t||"*",s.nodeType?[s]:s,[]),y=!e||!i&&t?v:m(v,f,e,s,c),b=n?r||(i?e:h||o)?[]:a:y;if(n&&n(y,b,s,c),o)for(l=m(b,p),o(l,[],s,c),u=l.length;u--;)(d=l[u])&&(b[p[u]]=!(y[p[u]]=d));if(i){if(r||e){if(r){for(l=[],u=b.length;u--;)(d=b[u])&&l.push(y[u]=d);r(null,b=[],l,c)}for(u=b.length;u--;)(d=b[u])&&(l=r?tt.call(i,d):f[u])>-1&&(i[l]=!(a[l]=d))}}else b=m(b===a?b.splice(h,b.length):b),r?r(null,a,b,c):Z.apply(a,b)})}function y(e){for(var t,n,i,o=e.length,r=_.relative[e[0].type],a=r||_.relative[" "],s=r?1:0,c=p(function(e){return e===t},a,!0),l=p(function(e){return tt.call(t,e)>-1},a,!0),u=[function(e,n,i){return!r&&(i||n!==S)||((t=n).nodeType?c(e,n,i):l(e,n,i))}];o>s;s++)if(n=_.relative[e[s].type])u=[p(h(u),n)];else{if(n=_.filter[e[s].type].apply(null,e[s].matches),n[P]){for(i=++s;o>i&&!_.relative[e[i].type];i++);return v(s>1&&h(u),s>1&&f(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ct,"$1"),n,i>s&&y(e.slice(s,i)),o>i&&y(e=e.slice(i)),o>i&&f(e))}u.push(n)}return h(u)}function b(e,n){var o=n.length>0,r=e.length>0,a=function(i,a,s,c,l){var u,d,f,p=0,h="0",g=i&&[],v=[],y=S,b=i||r&&_.find.TAG("*",l),w=q+=null==y?1:Math.random()||.1,x=b.length;for(l&&(S=a!==D&&a);h!==x&&null!=(u=b[h]);h++){if(r&&u){for(d=0;f=e[d++];)if(f(u,a,s)){c.push(u);break}l&&(q=w)}o&&((u=!f&&u)&&p--,i&&g.push(u))}if(p+=h,o&&h!==p){for(d=0;f=n[d++];)f(g,v,a,s);if(i){if(p>0)for(;h--;)g[h]||v[h]||(v[h]=K.call(c));v=m(v)}Z.apply(c,v),l&&!i&&v.length>0&&p+n.length>1&&t.uniqueSort(c)}return l&&(q=w,S=y),g};return o?i(a):a}var w,x,_,k,C,T,N,E,S,A,H,L,D,B,M,$,j,I,O,P="sizzle"+-new Date,F=e.document,q=0,R=0,W=n(),z=n(),U=n(),X=function(e,t){return e===t&&(H=!0),0},V="undefined",G=1<<31,Y={}.hasOwnProperty,J=[],K=J.pop,Q=J.push,Z=J.push,et=J.slice,tt=J.indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(this[t]===e)return t;return-1},nt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",it="[\\x20\\t\\r\\n\\f]",ot="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",rt=ot.replace("w","w#"),at="\\["+it+"*("+ot+")(?:"+it+"*([*^$|!~]?=)"+it+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+rt+"))|)"+it+"*\\]",st=":("+ot+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+at+")*)|.*)\\)|)",ct=new RegExp("^"+it+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g"),lt=new RegExp("^"+it+"*,"+it+"*"),ut=new RegExp("^"+it+"*([>+~]|"+it+")"+it+"*"),dt=new RegExp("="+it+"*([^\\]'\"]*?)"+it+"*\\]","g"),ft=new RegExp(st),pt=new RegExp("^"+rt+"$"),ht={ID:new RegExp("^#("+ot+")"),CLASS:new RegExp("^\\.("+ot+")"),TAG:new RegExp("^("+ot.replace("w","w*")+")"),ATTR:new RegExp("^"+at),PSEUDO:new RegExp("^"+st),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+nt+")$","i"),needsContext:new RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},gt=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bt=/[+~]/,wt=/'|\\/g,xt=new RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),_t=function(e,t,n){var i="0x"+t-65536;return i!==i||n?t:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)};try{Z.apply(J=et.call(F.childNodes),F.childNodes),J[F.childNodes.length].nodeType}catch(kt){Z={apply:J.length?function(e,t){Q.apply(e,et.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}x=t.support={},C=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},L=t.setDocument=function(e){var t,n=e?e.ownerDocument||e:F,i=n.defaultView;return n!==D&&9===n.nodeType&&n.documentElement?(D=n,B=n.documentElement,M=!C(n),i&&i!==i.top&&(i.addEventListener?i.addEventListener("unload",function(){L()},!1):i.attachEvent&&i.attachEvent("onunload",function(){L()})),x.attributes=o(function(e){return e.className="i",!e.getAttribute("className")}),x.getElementsByTagName=o(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),x.getElementsByClassName=vt.test(n.getElementsByClassName)&&o(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),x.getById=o(function(e){return B.appendChild(e).id=P,!n.getElementsByName||!n.getElementsByName(P).length}),x.getById?(_.find.ID=function(e,t){if(typeof t.getElementById!==V&&M){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},_.filter.ID=function(e){var t=e.replace(xt,_t);return function(e){return e.getAttribute("id")===t}}):(delete _.find.ID,_.filter.ID=function(e){var t=e.replace(xt,_t);return function(e){var n=typeof e.getAttributeNode!==V&&e.getAttributeNode("id");return n&&n.value===t}}),_.find.TAG=x.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==V?t.getElementsByTagName(e):void 0}:function(e,t){var n,i=[],o=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},_.find.CLASS=x.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==V&&M?t.getElementsByClassName(e):void 0},j=[],$=[],(x.qsa=vt.test(n.querySelectorAll))&&(o(function(e){e.innerHTML="<select msallowclip=''><option selected=''></option></select>",e.querySelectorAll("[msallowclip^='']").length&&$.push("[*^$]="+it+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||$.push("\\["+it+"*(?:value|"+nt+")"),e.querySelectorAll(":checked").length||$.push(":checked")}),o(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&$.push("name"+it+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||$.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),$.push(",.*:")})),(x.matchesSelector=vt.test(I=B.matches||B.webkitMatchesSelector||B.mozMatchesSelector||B.oMatchesSelector||B.msMatchesSelector))&&o(function(e){x.disconnectedMatch=I.call(e,"div"),I.call(e,"[s!='']:x"),j.push("!=",st)}),$=$.length&&new RegExp($.join("|")),j=j.length&&new RegExp(j.join("|")),t=vt.test(B.compareDocumentPosition),O=t||vt.test(B.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},X=t?function(e,t){if(e===t)return H=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i?i:(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&i||!x.sortDetached&&t.compareDocumentPosition(e)===i?e===n||e.ownerDocument===F&&O(F,e)?-1:t===n||t.ownerDocument===F&&O(F,t)?1:A?tt.call(A,e)-tt.call(A,t):0:4&i?-1:1)}:function(e,t){if(e===t)return H=!0,0;var i,o=0,r=e.parentNode,s=t.parentNode,c=[e],l=[t];if(!r||!s)return e===n?-1:t===n?1:r?-1:s?1:A?tt.call(A,e)-tt.call(A,t):0;if(r===s)return a(e,t);for(i=e;i=i.parentNode;)c.unshift(i);for(i=t;i=i.parentNode;)l.unshift(i);for(;c[o]===l[o];)o++;return o?a(c[o],l[o]):c[o]===F?-1:l[o]===F?1:0},n):D},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==D&&L(e),n=n.replace(dt,"='$1']"),!(!x.matchesSelector||!M||j&&j.test(n)||$&&$.test(n)))try{var i=I.call(e,n);if(i||x.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(o){}return t(n,D,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==D&&L(e),O(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==D&&L(e);var n=_.attrHandle[t.toLowerCase()],i=n&&Y.call(_.attrHandle,t.toLowerCase())?n(e,t,!M):void 0;return void 0!==i?i:x.attributes||!M?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],i=0,o=0;if(H=!x.detectDuplicates,A=!x.sortStable&&e.slice(0),e.sort(X),H){for(;t=e[o++];)t===e[o]&&(i=n.push(o));for(;i--;)e.splice(n[i],1)}return A=null,e},k=t.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=k(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=k(t);return n},_=t.selectors={cacheLength:50,createPseudo:i,match:ht,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(xt,_t),e[3]=(e[3]||e[4]||e[5]||"").replace(xt,_t),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return ht.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ft.test(n)&&(t=T(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(xt,_t).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+it+")"+e+"("+it+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==V&&e.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(o){var r=t.attr(o,e);return null==r?"!="===n:n?(r+="","="===n?r===i:"!="===n?r!==i:"^="===n?i&&0===r.indexOf(i):"*="===n?i&&r.indexOf(i)>-1:"$="===n?i&&r.slice(-i.length)===i:"~="===n?(" "+r+" ").indexOf(i)>-1:"|="===n?r===i||r.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(e,t,n,i,o){var r="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===o?function(e){return!!e.parentNode}:function(t,n,c){var l,u,d,f,p,h,g=r!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!c&&!s;if(m){if(r){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(u=m[P]||(m[P]={}),l=u[e]||[],p=l[0]===q&&l[1],f=l[0]===q&&l[2],d=p&&m.childNodes[p];d=++p&&d&&d[g]||(f=p=0)||h.pop();)if(1===d.nodeType&&++f&&d===t){u[e]=[q,p,f];break}}else if(y&&(l=(t[P]||(t[P]={}))[e])&&l[0]===q)f=l[1];else for(;(d=++p&&d&&d[g]||(f=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++f||(y&&((d[P]||(d[P]={}))[e]=[q,f]),d!==t)););return f-=o,f===i||f%i===0&&f/i>=0}}},PSEUDO:function(e,n){var o,r=_.pseudos[e]||_.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return r[P]?r(n):r.length>1?(o=[e,e,"",n],_.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,t){for(var i,o=r(e,n),a=o.length;a--;)i=tt.call(e,o[a]),e[i]=!(t[i]=o[a])}):function(e){return r(e,0,o)}):r}},pseudos:{not:i(function(e){var t=[],n=[],o=N(e.replace(ct,"$1"));return o[P]?i(function(e,t,n,i){for(var r,a=o(e,null,i,[]),s=e.length;s--;)(r=a[s])&&(e[s]=!(t[s]=r))}):function(e,i,r){return t[0]=e,o(t,null,r,n),!n.pop()}}),has:i(function(e){return function(n){return t(e,n).length>0}}),contains:i(function(e){return function(t){return(t.textContent||t.innerText||k(t)).indexOf(e)>-1}}),lang:i(function(e){return pt.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(xt,_t).toLowerCase(),function(t){var n;do if(n=M?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===B},focus:function(e){return e===D.activeElement&&(!D.hasFocus||D.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!_.pseudos.empty(e)},header:function(e){return mt.test(e.nodeName)},input:function(e){return gt.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[0>n?n+t:n]}),even:l(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:l(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:l(function(e,t,n){for(var i=0>n?n+t:n;--i>=0;)e.push(i);return e}),gt:l(function(e,t,n){for(var i=0>n?n+t:n;++i<t;)e.push(i);return e})}},_.pseudos.nth=_.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[w]=s(w);for(w in{submit:!0,reset:!0})_.pseudos[w]=c(w);return d.prototype=_.filters=_.pseudos,_.setFilters=new d,T=t.tokenize=function(e,n){var i,o,r,a,s,c,l,u=z[e+" "];if(u)return n?0:u.slice(0);for(s=e,c=[],l=_.preFilter;s;){(!i||(o=lt.exec(s)))&&(o&&(s=s.slice(o[0].length)||s),c.push(r=[])),i=!1,(o=ut.exec(s))&&(i=o.shift(),r.push({value:i,type:o[0].replace(ct," ")}),s=s.slice(i.length));for(a in _.filter)!(o=ht[a].exec(s))||l[a]&&!(o=l[a](o))||(i=o.shift(),r.push({value:i,type:a,matches:o}),s=s.slice(i.length));if(!i)break}return n?s.length:s?t.error(e):z(e,c).slice(0)},N=t.compile=function(e,t){var n,i=[],o=[],r=U[e+" "];if(!r){for(t||(t=T(e)),n=t.length;n--;)r=y(t[n]),r[P]?i.push(r):o.push(r);r=U(e,b(o,i)),r.selector=e}return r},E=t.select=function(e,t,n,i){var o,r,a,s,c,l="function"==typeof e&&e,d=!i&&T(e=l.selector||e);if(n=n||[],1===d.length){if(r=d[0]=d[0].slice(0),r.length>2&&"ID"===(a=r[0]).type&&x.getById&&9===t.nodeType&&M&&_.relative[r[1].type]){if(t=(_.find.ID(a.matches[0].replace(xt,_t),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(o=ht.needsContext.test(e)?0:r.length;o--&&(a=r[o],!_.relative[s=a.type]);)if((c=_.find[s])&&(i=c(a.matches[0].replace(xt,_t),bt.test(r[0].type)&&u(t.parentNode)||t))){if(r.splice(o,1),e=i.length&&f(r),!e)return Z.apply(n,i),n;
2
- break}}return(l||N(e,d))(i,t,!M,n,bt.test(e)&&u(t.parentNode)||t),n},x.sortStable=P.split("").sort(X).join("")===P,x.detectDuplicates=!!H,L(),x.sortDetached=o(function(e){return 1&e.compareDocumentPosition(D.createElement("div"))}),o(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||r("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),x.attributes&&o(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||r("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),o(function(e){return null==e.getAttribute("disabled")})||r(nt,function(e,t,n){var i;return n?void 0:e[t]===!0?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),t}(e);ot.find=lt,ot.expr=lt.selectors,ot.expr[":"]=ot.expr.pseudos,ot.unique=lt.uniqueSort,ot.text=lt.getText,ot.isXMLDoc=lt.isXML,ot.contains=lt.contains;var ut=ot.expr.match.needsContext,dt=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ft=/^.[^:#\[\.,]*$/;ot.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?ot.find.matchesSelector(i,e)?[i]:[]:ot.find.matches(e,ot.grep(t,function(e){return 1===e.nodeType}))},ot.fn.extend({find:function(e){var t,n=[],i=this,o=i.length;if("string"!=typeof e)return this.pushStack(ot(e).filter(function(){for(t=0;o>t;t++)if(ot.contains(i[t],this))return!0}));for(t=0;o>t;t++)ot.find(e,i[t],n);return n=this.pushStack(o>1?ot.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(i(this,e||[],!1))},not:function(e){return this.pushStack(i(this,e||[],!0))},is:function(e){return!!i(this,"string"==typeof e&&ut.test(e)?ot(e):e||[],!1).length}});var pt,ht=e.document,gt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,mt=ot.fn.init=function(e,t){var n,i;if(!e)return this;if("string"==typeof e){if(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:gt.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||pt).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof ot?t[0]:t,ot.merge(this,ot.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:ht,!0)),dt.test(n[1])&&ot.isPlainObject(t))for(n in t)ot.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if(i=ht.getElementById(n[2]),i&&i.parentNode){if(i.id!==n[2])return pt.find(e);this.length=1,this[0]=i}return this.context=ht,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):ot.isFunction(e)?"undefined"!=typeof pt.ready?pt.ready(e):e(ot):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),ot.makeArray(e,this))};mt.prototype=ot.fn,pt=ot(ht);var vt=/^(?:parents|prev(?:Until|All))/,yt={children:!0,contents:!0,next:!0,prev:!0};ot.extend({dir:function(e,t,n){for(var i=[],o=e[t];o&&9!==o.nodeType&&(void 0===n||1!==o.nodeType||!ot(o).is(n));)1===o.nodeType&&i.push(o),o=o[t];return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),ot.fn.extend({has:function(e){var t,n=ot(e,this),i=n.length;return this.filter(function(){for(t=0;i>t;t++)if(ot.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,i=0,o=this.length,r=[],a=ut.test(e)||"string"!=typeof e?ot(e,t||this.context):0;o>i;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&ot.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?ot.unique(r):r)},index:function(e){return e?"string"==typeof e?ot.inArray(this[0],ot(e)):ot.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ot.unique(ot.merge(this.get(),ot(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ot.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ot.dir(e,"parentNode")},parentsUntil:function(e,t,n){return ot.dir(e,"parentNode",n)},next:function(e){return o(e,"nextSibling")},prev:function(e){return o(e,"previousSibling")},nextAll:function(e){return ot.dir(e,"nextSibling")},prevAll:function(e){return ot.dir(e,"previousSibling")},nextUntil:function(e,t,n){return ot.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return ot.dir(e,"previousSibling",n)},siblings:function(e){return ot.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return ot.sibling(e.firstChild)},contents:function(e){return ot.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:ot.merge([],e.childNodes)}},function(e,t){ot.fn[e]=function(n,i){var o=ot.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=ot.filter(i,o)),this.length>1&&(yt[e]||(o=ot.unique(o)),vt.test(e)&&(o=o.reverse())),this.pushStack(o)}});var bt=/\S+/g,wt={};ot.Callbacks=function(e){e="string"==typeof e?wt[e]||r(e):ot.extend({},e);var t,n,i,o,a,s,c=[],l=!e.once&&[],u=function(r){for(n=e.memory&&r,i=!0,a=s||0,s=0,o=c.length,t=!0;c&&o>a;a++)if(c[a].apply(r[0],r[1])===!1&&e.stopOnFalse){n=!1;break}t=!1,c&&(l?l.length&&u(l.shift()):n?c=[]:d.disable())},d={add:function(){if(c){var i=c.length;!function r(t){ot.each(t,function(t,n){var i=ot.type(n);"function"===i?e.unique&&d.has(n)||c.push(n):n&&n.length&&"string"!==i&&r(n)})}(arguments),t?o=c.length:n&&(s=i,u(n))}return this},remove:function(){return c&&ot.each(arguments,function(e,n){for(var i;(i=ot.inArray(n,c,i))>-1;)c.splice(i,1),t&&(o>=i&&o--,a>=i&&a--)}),this},has:function(e){return e?ot.inArray(e,c)>-1:!(!c||!c.length)},empty:function(){return c=[],o=0,this},disable:function(){return c=l=n=void 0,this},disabled:function(){return!c},lock:function(){return l=void 0,n||d.disable(),this},locked:function(){return!l},fireWith:function(e,n){return!c||i&&!l||(n=n||[],n=[e,n.slice?n.slice():n],t?l.push(n):u(n)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!i}};return d},ot.extend({Deferred:function(e){var t=[["resolve","done",ot.Callbacks("once memory"),"resolved"],["reject","fail",ot.Callbacks("once memory"),"rejected"],["notify","progress",ot.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return ot.Deferred(function(n){ot.each(t,function(t,r){var a=ot.isFunction(e[t])&&e[t];o[r[1]](function(){var e=a&&a.apply(this,arguments);e&&ot.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[r[0]+"With"](this===i?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?ot.extend(e,i):i}},o={};return i.pipe=i.then,ot.each(t,function(e,r){var a=r[2],s=r[3];i[r[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),o[r[0]]=function(){return o[r[0]+"With"](this===o?i:this,arguments),this},o[r[0]+"With"]=a.fireWith}),i.promise(o),e&&e.call(o,o),o},when:function(e){var t,n,i,o=0,r=Y.call(arguments),a=r.length,s=1!==a||e&&ot.isFunction(e.promise)?a:0,c=1===s?e:ot.Deferred(),l=function(e,n,i){return function(o){n[e]=this,i[e]=arguments.length>1?Y.call(arguments):o,i===t?c.notifyWith(n,i):--s||c.resolveWith(n,i)}};if(a>1)for(t=new Array(a),n=new Array(a),i=new Array(a);a>o;o++)r[o]&&ot.isFunction(r[o].promise)?r[o].promise().done(l(o,i,r)).fail(c.reject).progress(l(o,n,t)):--s;return s||c.resolveWith(i,r),c.promise()}});var xt;ot.fn.ready=function(e){return ot.ready.promise().done(e),this},ot.extend({isReady:!1,readyWait:1,holdReady:function(e){e?ot.readyWait++:ot.ready(!0)},ready:function(e){if(e===!0?!--ot.readyWait:!ot.isReady){if(!ht.body)return setTimeout(ot.ready);ot.isReady=!0,e!==!0&&--ot.readyWait>0||(xt.resolveWith(ht,[ot]),ot.fn.triggerHandler&&(ot(ht).triggerHandler("ready"),ot(ht).off("ready")))}}}),ot.ready.promise=function(t){if(!xt)if(xt=ot.Deferred(),"complete"===ht.readyState)setTimeout(ot.ready);else if(ht.addEventListener)ht.addEventListener("DOMContentLoaded",s,!1),e.addEventListener("load",s,!1);else{ht.attachEvent("onreadystatechange",s),e.attachEvent("onload",s);var n=!1;try{n=null==e.frameElement&&ht.documentElement}catch(i){}n&&n.doScroll&&!function o(){if(!ot.isReady){try{n.doScroll("left")}catch(e){return setTimeout(o,50)}a(),ot.ready()}}()}return xt.promise(t)};var _t,kt="undefined";for(_t in ot(nt))break;nt.ownLast="0"!==_t,nt.inlineBlockNeedsLayout=!1,ot(function(){var e,t,n,i;n=ht.getElementsByTagName("body")[0],n&&n.style&&(t=ht.createElement("div"),i=ht.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),typeof t.style.zoom!==kt&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",nt.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(i))}),function(){var e=ht.createElement("div");if(null==nt.deleteExpando){nt.deleteExpando=!0;try{delete e.test}catch(t){nt.deleteExpando=!1}}e=null}(),ot.acceptData=function(e){var t=ot.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return 1!==n&&9!==n?!1:!t||t!==!0&&e.getAttribute("classid")===t};var Ct=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Tt=/([A-Z])/g;ot.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?ot.cache[e[ot.expando]]:e[ot.expando],!!e&&!l(e)},data:function(e,t,n){return u(e,t,n)},removeData:function(e,t){return d(e,t)},_data:function(e,t,n){return u(e,t,n,!0)},_removeData:function(e,t){return d(e,t,!0)}}),ot.fn.extend({data:function(e,t){var n,i,o,r=this[0],a=r&&r.attributes;if(void 0===e){if(this.length&&(o=ot.data(r),1===r.nodeType&&!ot._data(r,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&(i=a[n].name,0===i.indexOf("data-")&&(i=ot.camelCase(i.slice(5)),c(r,i,o[i])));ot._data(r,"parsedAttrs",!0)}return o}return"object"==typeof e?this.each(function(){ot.data(this,e)}):arguments.length>1?this.each(function(){ot.data(this,e,t)}):r?c(r,e,ot.data(r,e)):void 0},removeData:function(e){return this.each(function(){ot.removeData(this,e)})}}),ot.extend({queue:function(e,t,n){var i;return e?(t=(t||"fx")+"queue",i=ot._data(e,t),n&&(!i||ot.isArray(n)?i=ot._data(e,t,ot.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=ot.queue(e,t),i=n.length,o=n.shift(),r=ot._queueHooks(e,t),a=function(){ot.dequeue(e,t)};"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete r.stop,o.call(e,a,r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ot._data(e,n)||ot._data(e,n,{empty:ot.Callbacks("once memory").add(function(){ot._removeData(e,t+"queue"),ot._removeData(e,n)})})}}),ot.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?ot.queue(this[0],e):void 0===t?this:this.each(function(){var n=ot.queue(this,e,t);ot._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&ot.dequeue(this,e)})},dequeue:function(e){return this.each(function(){ot.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=ot.Deferred(),r=this,a=this.length,s=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)n=ot._data(r[a],e+"queueHooks"),n&&n.empty&&(i++,n.empty.add(s));return s(),o.promise(t)}});var Nt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Et=["Top","Right","Bottom","Left"],St=function(e,t){return e=t||e,"none"===ot.css(e,"display")||!ot.contains(e.ownerDocument,e)},At=ot.access=function(e,t,n,i,o,r,a){var s=0,c=e.length,l=null==n;if("object"===ot.type(n)){o=!0;for(s in n)ot.access(e,t,s,n[s],!0,r,a)}else if(void 0!==i&&(o=!0,ot.isFunction(i)||(a=!0),l&&(a?(t.call(e,i),t=null):(l=t,t=function(e,t,n){return l.call(ot(e),n)})),t))for(;c>s;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return o?e:l?t.call(e):c?t(e[0],n):r},Ht=/^(?:checkbox|radio)$/i;!function(){var e=ht.createElement("input"),t=ht.createElement("div"),n=ht.createDocumentFragment();if(t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",nt.leadingWhitespace=3===t.firstChild.nodeType,nt.tbody=!t.getElementsByTagName("tbody").length,nt.htmlSerialize=!!t.getElementsByTagName("link").length,nt.html5Clone="<:nav></:nav>"!==ht.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,n.appendChild(e),nt.appendChecked=e.checked,t.innerHTML="<textarea>x</textarea>",nt.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,n.appendChild(t),t.innerHTML="<input type='radio' checked='checked' name='t'/>",nt.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,nt.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){nt.noCloneEvent=!1}),t.cloneNode(!0).click()),null==nt.deleteExpando){nt.deleteExpando=!0;try{delete t.test}catch(i){nt.deleteExpando=!1}}}(),function(){var t,n,i=ht.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})n="on"+t,(nt[t+"Bubbles"]=n in e)||(i.setAttribute(n,"t"),nt[t+"Bubbles"]=i.attributes[n].expando===!1);i=null}();var Lt=/^(?:input|select|textarea)$/i,Dt=/^key/,Bt=/^(?:mouse|pointer|contextmenu)|click/,Mt=/^(?:focusinfocus|focusoutblur)$/,$t=/^([^.]*)(?:\.(.+)|)$/;ot.event={global:{},add:function(e,t,n,i,o){var r,a,s,c,l,u,d,f,p,h,g,m=ot._data(e);if(m){for(n.handler&&(c=n,n=c.handler,o=c.selector),n.guid||(n.guid=ot.guid++),(a=m.events)||(a=m.events={}),(u=m.handle)||(u=m.handle=function(e){return typeof ot===kt||e&&ot.event.triggered===e.type?void 0:ot.event.dispatch.apply(u.elem,arguments)},u.elem=e),t=(t||"").match(bt)||[""],s=t.length;s--;)r=$t.exec(t[s])||[],p=g=r[1],h=(r[2]||"").split(".").sort(),p&&(l=ot.event.special[p]||{},p=(o?l.delegateType:l.bindType)||p,l=ot.event.special[p]||{},d=ot.extend({type:p,origType:g,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&ot.expr.match.needsContext.test(o),namespace:h.join(".")},c),(f=a[p])||(f=a[p]=[],f.delegateCount=0,l.setup&&l.setup.call(e,i,h,u)!==!1||(e.addEventListener?e.addEventListener(p,u,!1):e.attachEvent&&e.attachEvent("on"+p,u))),l.add&&(l.add.call(e,d),d.handler.guid||(d.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,d):f.push(d),ot.event.global[p]=!0);e=null}},remove:function(e,t,n,i,o){var r,a,s,c,l,u,d,f,p,h,g,m=ot.hasData(e)&&ot._data(e);if(m&&(u=m.events)){for(t=(t||"").match(bt)||[""],l=t.length;l--;)if(s=$t.exec(t[l])||[],p=g=s[1],h=(s[2]||"").split(".").sort(),p){for(d=ot.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,f=u[p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),c=r=f.length;r--;)a=f[r],!o&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||i&&i!==a.selector&&("**"!==i||!a.selector)||(f.splice(r,1),a.selector&&f.delegateCount--,d.remove&&d.remove.call(e,a));c&&!f.length&&(d.teardown&&d.teardown.call(e,h,m.handle)!==!1||ot.removeEvent(e,p,m.handle),delete u[p])}else for(p in u)ot.event.remove(e,p+t[l],n,i,!0);ot.isEmptyObject(u)&&(delete m.handle,ot._removeData(e,"events"))}},trigger:function(t,n,i,o){var r,a,s,c,l,u,d,f=[i||ht],p=tt.call(t,"type")?t.type:t,h=tt.call(t,"namespace")?t.namespace.split("."):[];if(s=u=i=i||ht,3!==i.nodeType&&8!==i.nodeType&&!Mt.test(p+ot.event.triggered)&&(p.indexOf(".")>=0&&(h=p.split("."),p=h.shift(),h.sort()),a=p.indexOf(":")<0&&"on"+p,t=t[ot.expando]?t:new ot.Event(p,"object"==typeof t&&t),t.isTrigger=o?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:ot.makeArray(n,[t]),l=ot.event.special[p]||{},o||!l.trigger||l.trigger.apply(i,n)!==!1)){if(!o&&!l.noBubble&&!ot.isWindow(i)){for(c=l.delegateType||p,Mt.test(c+p)||(s=s.parentNode);s;s=s.parentNode)f.push(s),u=s;u===(i.ownerDocument||ht)&&f.push(u.defaultView||u.parentWindow||e)}for(d=0;(s=f[d++])&&!t.isPropagationStopped();)t.type=d>1?c:l.bindType||p,r=(ot._data(s,"events")||{})[t.type]&&ot._data(s,"handle"),r&&r.apply(s,n),r=a&&s[a],r&&r.apply&&ot.acceptData(s)&&(t.result=r.apply(s,n),t.result===!1&&t.preventDefault());if(t.type=p,!o&&!t.isDefaultPrevented()&&(!l._default||l._default.apply(f.pop(),n)===!1)&&ot.acceptData(i)&&a&&i[p]&&!ot.isWindow(i)){u=i[a],u&&(i[a]=null),ot.event.triggered=p;try{i[p]()}catch(g){}ot.event.triggered=void 0,u&&(i[a]=u)}return t.result}},dispatch:function(e){e=ot.event.fix(e);var t,n,i,o,r,a=[],s=Y.call(arguments),c=(ot._data(this,"events")||{})[e.type]||[],l=ot.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){for(a=ot.event.handlers.call(this,e,c),t=0;(o=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,r=0;(i=o.handlers[r++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,n=((ot.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,s),void 0!==n&&(e.result=n)===!1&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,o,r,a=[],s=t.delegateCount,c=e.target;if(s&&c.nodeType&&(!e.button||"click"!==e.type))for(;c!=this;c=c.parentNode||this)if(1===c.nodeType&&(c.disabled!==!0||"click"!==e.type)){for(o=[],r=0;s>r;r++)i=t[r],n=i.selector+" ",void 0===o[n]&&(o[n]=i.needsContext?ot(n,this).index(c)>=0:ot.find(n,this,null,[c]).length),o[n]&&o.push(i);o.length&&a.push({elem:c,handlers:o})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[ot.expando])return e;var t,n,i,o=e.type,r=e,a=this.fixHooks[o];for(a||(this.fixHooks[o]=a=Bt.test(o)?this.mouseHooks:Dt.test(o)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,e=new ot.Event(r),t=i.length;t--;)n=i[t],e[n]=r[n];return e.target||(e.target=r.srcElement||ht),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,r):e},props:"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 null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,o,r=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=e.target.ownerDocument||ht,o=i.documentElement,n=i.body,e.pageX=t.clientX+(o&&o.scrollLeft||n&&n.scrollLeft||0)-(o&&o.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(o&&o.scrollTop||n&&n.scrollTop||0)-(o&&o.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||void 0===r||(e.which=1&r?1:2&r?3:4&r?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==h()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===h()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return ot.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(e){return ot.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,i){var o=ot.extend(new ot.Event,n,{type:e,isSimulated:!0,originalEvent:{}});i?ot.event.trigger(o,null,t):ot.event.dispatch.call(t,o),o.isDefaultPrevented()&&n.preventDefault()}},ot.removeEvent=ht.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var i="on"+t;e.detachEvent&&(typeof e[i]===kt&&(e[i]=null),e.detachEvent(i,n))},ot.Event=function(e,t){return this instanceof ot.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?f:p):this.type=e,t&&ot.extend(this,t),this.timeStamp=e&&e.timeStamp||ot.now(),void(this[ot.expando]=!0)):new ot.Event(e,t)},ot.Event.prototype={isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=f,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=f,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=f,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},ot.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){ot.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,o=e.relatedTarget,r=e.handleObj;return(!o||o!==i&&!ot.contains(i,o))&&(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}}),nt.submitBubbles||(ot.event.special.submit={setup:function(){return ot.nodeName(this,"form")?!1:void ot.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=ot.nodeName(t,"input")||ot.nodeName(t,"button")?t.form:void 0;n&&!ot._data(n,"submitBubbles")&&(ot.event.add(n,"submit._submit",function(e){e._submit_bubble=!0}),ot._data(n,"submitBubbles",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&ot.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return ot.nodeName(this,"form")?!1:void ot.event.remove(this,"._submit")}}),nt.changeBubbles||(ot.event.special.change={setup:function(){return Lt.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(ot.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),ot.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),ot.event.simulate("change",this,e,!0)})),!1):void ot.event.add(this,"beforeactivate._change",function(e){var t=e.target;Lt.test(t.nodeName)&&!ot._data(t,"changeBubbles")&&(ot.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||ot.event.simulate("change",this.parentNode,e,!0)}),ot._data(t,"changeBubbles",!0))})},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return ot.event.remove(this,"._change"),!Lt.test(this.nodeName)}}),nt.focusinBubbles||ot.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){ot.event.simulate(t,e.target,ot.event.fix(e),!0)};ot.event.special[t]={setup:function(){var i=this.ownerDocument||this,o=ot._data(i,t);o||i.addEventListener(e,n,!0),ot._data(i,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=ot._data(i,t)-1;o?ot._data(i,t,o):(i.removeEventListener(e,n,!0),ot._removeData(i,t))}}}),ot.fn.extend({on:function(e,t,n,i,o){var r,a;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=void 0);for(r in e)this.on(r,t,n,e[r],o);return this}if(null==n&&null==i?(i=t,n=t=void 0):null==i&&("string"==typeof t?(i=n,n=void 0):(i=n,n=t,t=void 0)),i===!1)i=p;else if(!i)return this;return 1===o&&(a=i,i=function(e){return ot().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=ot.guid++)),this.each(function(){ot.event.add(this,e,i,n,t)})},one:function(e,t,n,i){return this.on(e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,ot(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=void 0),n===!1&&(n=p),this.each(function(){ot.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){ot.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?ot.event.trigger(e,t,n,!0):void 0}});var jt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",It=/ jQuery\d+="(?:null|\d+)"/g,Ot=new RegExp("<(?:"+jt+")[\\s/>]","i"),Pt=/^\s+/,Ft=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,qt=/<([\w:]+)/,Rt=/<tbody/i,Wt=/<|&#?\w+;/,zt=/<(?:script|style|link)/i,Ut=/checked\s*(?:[^=]|=\s*.checked.)/i,Xt=/^$|\/(?:java|ecma)script/i,Vt=/^true\/(.*)/,Gt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Yt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:nt.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Jt=g(ht),Kt=Jt.appendChild(ht.createElement("div"));Yt.optgroup=Yt.option,Yt.tbody=Yt.tfoot=Yt.colgroup=Yt.caption=Yt.thead,Yt.th=Yt.td,ot.extend({clone:function(e,t,n){var i,o,r,a,s,c=ot.contains(e.ownerDocument,e);if(nt.html5Clone||ot.isXMLDoc(e)||!Ot.test("<"+e.nodeName+">")?r=e.cloneNode(!0):(Kt.innerHTML=e.outerHTML,Kt.removeChild(r=Kt.firstChild)),!(nt.noCloneEvent&&nt.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ot.isXMLDoc(e)))for(i=m(r),s=m(e),a=0;null!=(o=s[a]);++a)i[a]&&k(o,i[a]);if(t)if(n)for(s=s||m(e),i=i||m(r),a=0;null!=(o=s[a]);a++)_(o,i[a]);else _(e,r);return i=m(r,"script"),i.length>0&&x(i,!c&&m(e,"script")),i=s=o=null,r},buildFragment:function(e,t,n,i){for(var o,r,a,s,c,l,u,d=e.length,f=g(t),p=[],h=0;d>h;h++)if(r=e[h],r||0===r)if("object"===ot.type(r))ot.merge(p,r.nodeType?[r]:r);else if(Wt.test(r)){for(s=s||f.appendChild(t.createElement("div")),c=(qt.exec(r)||["",""])[1].toLowerCase(),u=Yt[c]||Yt._default,s.innerHTML=u[1]+r.replace(Ft,"<$1></$2>")+u[2],o=u[0];o--;)s=s.lastChild;if(!nt.leadingWhitespace&&Pt.test(r)&&p.push(t.createTextNode(Pt.exec(r)[0])),!nt.tbody)for(r="table"!==c||Rt.test(r)?"<table>"!==u[1]||Rt.test(r)?0:s:s.firstChild,o=r&&r.childNodes.length;o--;)ot.nodeName(l=r.childNodes[o],"tbody")&&!l.childNodes.length&&r.removeChild(l);for(ot.merge(p,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=f.lastChild}else p.push(t.createTextNode(r));for(s&&f.removeChild(s),nt.appendChecked||ot.grep(m(p,"input"),v),h=0;r=p[h++];)if((!i||-1===ot.inArray(r,i))&&(a=ot.contains(r.ownerDocument,r),s=m(f.appendChild(r),"script"),a&&x(s),n))for(o=0;r=s[o++];)Xt.test(r.type||"")&&n.push(r);return s=null,f},cleanData:function(e,t){for(var n,i,o,r,a=0,s=ot.expando,c=ot.cache,l=nt.deleteExpando,u=ot.event.special;null!=(n=e[a]);a++)if((t||ot.acceptData(n))&&(o=n[s],r=o&&c[o])){if(r.events)for(i in r.events)u[i]?ot.event.remove(n,i):ot.removeEvent(n,i,r.handle);c[o]&&(delete c[o],l?delete n[s]:typeof n.removeAttribute!==kt?n.removeAttribute(s):n[s]=null,G.push(o))}}}),ot.fn.extend({text:function(e){return At(this,function(e){return void 0===e?ot.text(this):this.empty().append((this[0]&&this[0].ownerDocument||ht).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=y(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=y(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,i=e?ot.filter(e,this):this,o=0;null!=(n=i[o]);o++)t||1!==n.nodeType||ot.cleanData(m(n)),n.parentNode&&(t&&ot.contains(n.ownerDocument,n)&&x(m(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&ot.cleanData(m(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&ot.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return ot.clone(this,e,t)})},html:function(e){return At(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(It,""):void 0;if(!("string"!=typeof e||zt.test(e)||!nt.htmlSerialize&&Ot.test(e)||!nt.leadingWhitespace&&Pt.test(e)||Yt[(qt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(Ft,"<$1></$2>");try{for(;i>n;n++)t=this[n]||{},1===t.nodeType&&(ot.cleanData(m(t,!1)),t.innerHTML=e);t=0}catch(o){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,ot.cleanData(m(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=J.apply([],e);var n,i,o,r,a,s,c=0,l=this.length,u=this,d=l-1,f=e[0],p=ot.isFunction(f);if(p||l>1&&"string"==typeof f&&!nt.checkClone&&Ut.test(f))return this.each(function(n){var i=u.eq(n);p&&(e[0]=f.call(this,n,i.html())),i.domManip(e,t)});if(l&&(s=ot.buildFragment(e,this[0].ownerDocument,!1,this),n=s.firstChild,1===s.childNodes.length&&(s=n),n)){for(r=ot.map(m(s,"script"),b),o=r.length;l>c;c++)i=s,c!==d&&(i=ot.clone(i,!0,!0),o&&ot.merge(r,m(i,"script"))),t.call(this[c],i,c);if(o)for(a=r[r.length-1].ownerDocument,ot.map(r,w),c=0;o>c;c++)i=r[c],Xt.test(i.type||"")&&!ot._data(i,"globalEval")&&ot.contains(a,i)&&(i.src?ot._evalUrl&&ot._evalUrl(i.src):ot.globalEval((i.text||i.textContent||i.innerHTML||"").replace(Gt,"")));s=n=null}return this}}),ot.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){ot.fn[e]=function(e){for(var n,i=0,o=[],r=ot(e),a=r.length-1;a>=i;i++)n=i===a?this:this.clone(!0),ot(r[i])[t](n),K.apply(o,n.get());return this.pushStack(o)}});var Qt,Zt={};!function(){var e;nt.shrinkWrapBlocks=function(){if(null!=e)return e;e=!1;var t,n,i;return n=ht.getElementsByTagName("body")[0],n&&n.style?(t=ht.createElement("div"),i=ht.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),typeof t.style.zoom!==kt&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(ht.createElement("div")).style.width="5px",e=3!==t.offsetWidth),n.removeChild(i),e):void 0}}();var en,tn,nn=/^margin/,on=new RegExp("^("+Nt+")(?!px)[a-z%]+$","i"),rn=/^(top|right|bottom|left)$/;e.getComputedStyle?(en=function(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)},tn=function(e,t,n){var i,o,r,a,s=e.style;return n=n||en(e),a=n?n.getPropertyValue(t)||n[t]:void 0,n&&(""!==a||ot.contains(e.ownerDocument,e)||(a=ot.style(e,t)),on.test(a)&&nn.test(t)&&(i=s.width,o=s.minWidth,r=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=o,s.maxWidth=r)),void 0===a?a:a+""}):ht.documentElement.currentStyle&&(en=function(e){return e.currentStyle},tn=function(e,t,n){var i,o,r,a,s=e.style;return n=n||en(e),a=n?n[t]:void 0,null==a&&s&&s[t]&&(a=s[t]),on.test(a)&&!rn.test(t)&&(i=s.left,o=e.runtimeStyle,r=o&&o.left,r&&(o.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=i,r&&(o.left=r)),void 0===a?a:a+""||"auto"}),function(){function t(){var t,n,i,o;n=ht.getElementsByTagName("body")[0],n&&n.style&&(t=ht.createElement("div"),i=ht.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",r=a=!1,c=!0,e.getComputedStyle&&(r="1%"!==(e.getComputedStyle(t,null)||{}).top,a="4px"===(e.getComputedStyle(t,null)||{width:"4px"}).width,o=t.appendChild(ht.createElement("div")),o.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",o.style.marginRight=o.style.width="0",t.style.width="1px",c=!parseFloat((e.getComputedStyle(o,null)||{}).marginRight)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",o=t.getElementsByTagName("td"),o[0].style.cssText="margin:0;border:0;padding:0;display:none",s=0===o[0].offsetHeight,s&&(o[0].style.display="",o[1].style.display="none",s=0===o[0].offsetHeight),n.removeChild(i))}var n,i,o,r,a,s,c;n=ht.createElement("div"),n.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",o=n.getElementsByTagName("a")[0],i=o&&o.style,i&&(i.cssText="float:left;opacity:.5",nt.opacity="0.5"===i.opacity,nt.cssFloat=!!i.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",nt.clearCloneStyle="content-box"===n.style.backgroundClip,nt.boxSizing=""===i.boxSizing||""===i.MozBoxSizing||""===i.WebkitBoxSizing,ot.extend(nt,{reliableHiddenOffsets:function(){return null==s&&t(),s
3
- },boxSizingReliable:function(){return null==a&&t(),a},pixelPosition:function(){return null==r&&t(),r},reliableMarginRight:function(){return null==c&&t(),c}}))}(),ot.swap=function(e,t,n,i){var o,r,a={};for(r in t)a[r]=e.style[r],e.style[r]=t[r];o=n.apply(e,i||[]);for(r in t)e.style[r]=a[r];return o};var an=/alpha\([^)]*\)/i,sn=/opacity\s*=\s*([^)]*)/,cn=/^(none|table(?!-c[ea]).+)/,ln=new RegExp("^("+Nt+")(.*)$","i"),un=new RegExp("^([+-])=("+Nt+")","i"),dn={position:"absolute",visibility:"hidden",display:"block"},fn={letterSpacing:"0",fontWeight:"400"},pn=["Webkit","O","Moz","ms"];ot.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=tn(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":nt.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,r,a,s=ot.camelCase(t),c=e.style;if(t=ot.cssProps[s]||(ot.cssProps[s]=E(c,s)),a=ot.cssHooks[t]||ot.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,i))?o:c[t];if(r=typeof n,"string"===r&&(o=un.exec(n))&&(n=(o[1]+1)*o[2]+parseFloat(ot.css(e,t)),r="number"),null!=n&&n===n&&("number"!==r||ot.cssNumber[s]||(n+="px"),nt.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,i)))))try{c[t]=n}catch(l){}}},css:function(e,t,n,i){var o,r,a,s=ot.camelCase(t);return t=ot.cssProps[s]||(ot.cssProps[s]=E(e.style,s)),a=ot.cssHooks[t]||ot.cssHooks[s],a&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=tn(e,t,i)),"normal"===r&&t in fn&&(r=fn[t]),""===n||n?(o=parseFloat(r),n===!0||ot.isNumeric(o)?o||0:r):r}}),ot.each(["height","width"],function(e,t){ot.cssHooks[t]={get:function(e,n,i){return n?cn.test(ot.css(e,"display"))&&0===e.offsetWidth?ot.swap(e,dn,function(){return L(e,t,i)}):L(e,t,i):void 0},set:function(e,n,i){var o=i&&en(e);return A(e,n,i?H(e,t,i,nt.boxSizing&&"border-box"===ot.css(e,"boxSizing",!1,o),o):0)}}}),nt.opacity||(ot.cssHooks.opacity={get:function(e,t){return sn.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,o=ot.isNumeric(t)?"alpha(opacity="+100*t+")":"",r=i&&i.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===ot.trim(r.replace(an,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||i&&!i.filter)||(n.filter=an.test(r)?r.replace(an,o):r+" "+o)}}),ot.cssHooks.marginRight=N(nt.reliableMarginRight,function(e,t){return t?ot.swap(e,{display:"inline-block"},tn,[e,"marginRight"]):void 0}),ot.each({margin:"",padding:"",border:"Width"},function(e,t){ot.cssHooks[e+t]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];4>i;i++)o[e+Et[i]+t]=r[i]||r[i-2]||r[0];return o}},nn.test(e)||(ot.cssHooks[e+t].set=A)}),ot.fn.extend({css:function(e,t){return At(this,function(e,t,n){var i,o,r={},a=0;if(ot.isArray(t)){for(i=en(e),o=t.length;o>a;a++)r[t[a]]=ot.css(e,t[a],!1,i);return r}return void 0!==n?ot.style(e,t,n):ot.css(e,t)},e,t,arguments.length>1)},show:function(){return S(this,!0)},hide:function(){return S(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){St(this)?ot(this).show():ot(this).hide()})}}),ot.Tween=D,D.prototype={constructor:D,init:function(e,t,n,i,o,r){this.elem=e,this.prop=n,this.easing=o||"swing",this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(ot.cssNumber[n]?"":"px")},cur:function(){var e=D.propHooks[this.prop];return e&&e.get?e.get(this):D.propHooks._default.get(this)},run:function(e){var t,n=D.propHooks[this.prop];return this.pos=t=this.options.duration?ot.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):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):D.propHooks._default.set(this),this}},D.prototype.init.prototype=D.prototype,D.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=ot.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){ot.fx.step[e.prop]?ot.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[ot.cssProps[e.prop]]||ot.cssHooks[e.prop])?ot.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},D.propHooks.scrollTop=D.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ot.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},ot.fx=D.prototype.init,ot.fx.step={};var hn,gn,mn=/^(?:toggle|show|hide)$/,vn=new RegExp("^(?:([+-])=|)("+Nt+")([a-z%]*)$","i"),yn=/queueHooks$/,bn=[j],wn={"*":[function(e,t){var n=this.createTween(e,t),i=n.cur(),o=vn.exec(t),r=o&&o[3]||(ot.cssNumber[e]?"":"px"),a=(ot.cssNumber[e]||"px"!==r&&+i)&&vn.exec(ot.css(n.elem,e)),s=1,c=20;if(a&&a[3]!==r){r=r||a[3],o=o||[],a=+i||1;do s=s||".5",a/=s,ot.style(n.elem,e,a+r);while(s!==(s=n.cur()/i)&&1!==s&&--c)}return o&&(a=n.start=+a||+i||0,n.unit=r,n.end=o[1]?a+(o[1]+1)*o[2]:+o[2]),n}]};ot.Animation=ot.extend(O,{tweener:function(e,t){ot.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,i=0,o=e.length;o>i;i++)n=e[i],wn[n]=wn[n]||[],wn[n].unshift(t)},prefilter:function(e,t){t?bn.unshift(e):bn.push(e)}}),ot.speed=function(e,t,n){var i=e&&"object"==typeof e?ot.extend({},e):{complete:n||!n&&t||ot.isFunction(e)&&e,duration:e,easing:n&&t||t&&!ot.isFunction(t)&&t};return i.duration=ot.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in ot.fx.speeds?ot.fx.speeds[i.duration]:ot.fx.speeds._default,(null==i.queue||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){ot.isFunction(i.old)&&i.old.call(this),i.queue&&ot.dequeue(this,i.queue)},i},ot.fn.extend({fadeTo:function(e,t,n,i){return this.filter(St).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=ot.isEmptyObject(e),r=ot.speed(t,n,i),a=function(){var t=O(this,ot.extend({},e),r);(o||ot._data(this,"finish"))&&t.stop(!0)};return a.finish=a,o||r.queue===!1?this.each(a):this.queue(r.queue,a)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",r=ot.timers,a=ot._data(this);if(o)a[o]&&a[o].stop&&i(a[o]);else for(o in a)a[o]&&a[o].stop&&yn.test(o)&&i(a[o]);for(o=r.length;o--;)r[o].elem!==this||null!=e&&r[o].queue!==e||(r[o].anim.stop(n),t=!1,r.splice(o,1));(t||!n)&&ot.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=ot._data(this),i=n[e+"queue"],o=n[e+"queueHooks"],r=ot.timers,a=i?i.length:0;for(n.finish=!0,ot.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;a>t;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),ot.each(["toggle","show","hide"],function(e,t){var n=ot.fn[t];ot.fn[t]=function(e,i,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(M(t,!0),e,i,o)}}),ot.each({slideDown:M("show"),slideUp:M("hide"),slideToggle:M("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){ot.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),ot.timers=[],ot.fx.tick=function(){var e,t=ot.timers,n=0;for(hn=ot.now();n<t.length;n++)e=t[n],e()||t[n]!==e||t.splice(n--,1);t.length||ot.fx.stop(),hn=void 0},ot.fx.timer=function(e){ot.timers.push(e),e()?ot.fx.start():ot.timers.pop()},ot.fx.interval=13,ot.fx.start=function(){gn||(gn=setInterval(ot.fx.tick,ot.fx.interval))},ot.fx.stop=function(){clearInterval(gn),gn=null},ot.fx.speeds={slow:600,fast:200,_default:400},ot.fn.delay=function(e,t){return e=ot.fx?ot.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var i=setTimeout(t,e);n.stop=function(){clearTimeout(i)}})},function(){var e,t,n,i,o;t=ht.createElement("div"),t.setAttribute("className","t"),t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",i=t.getElementsByTagName("a")[0],n=ht.createElement("select"),o=n.appendChild(ht.createElement("option")),e=t.getElementsByTagName("input")[0],i.style.cssText="top:1px",nt.getSetAttribute="t"!==t.className,nt.style=/top/.test(i.getAttribute("style")),nt.hrefNormalized="/a"===i.getAttribute("href"),nt.checkOn=!!e.value,nt.optSelected=o.selected,nt.enctype=!!ht.createElement("form").enctype,n.disabled=!0,nt.optDisabled=!o.disabled,e=ht.createElement("input"),e.setAttribute("value",""),nt.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),nt.radioValue="t"===e.value}();var xn=/\r/g;ot.fn.extend({val:function(e){var t,n,i,o=this[0];{if(arguments.length)return i=ot.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=i?e.call(this,n,ot(this).val()):e,null==o?o="":"number"==typeof o?o+="":ot.isArray(o)&&(o=ot.map(o,function(e){return null==e?"":e+""})),t=ot.valHooks[this.type]||ot.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))});if(o)return t=ot.valHooks[o.type]||ot.valHooks[o.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:(n=o.value,"string"==typeof n?n.replace(xn,""):null==n?"":n)}}}),ot.extend({valHooks:{option:{get:function(e){var t=ot.find.attr(e,"value");return null!=t?t:ot.trim(ot.text(e))}},select:{get:function(e){for(var t,n,i=e.options,o=e.selectedIndex,r="select-one"===e.type||0>o,a=r?null:[],s=r?o+1:i.length,c=0>o?s:r?o:0;s>c;c++)if(n=i[c],!(!n.selected&&c!==o||(nt.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&ot.nodeName(n.parentNode,"optgroup"))){if(t=ot(n).val(),r)return t;a.push(t)}return a},set:function(e,t){for(var n,i,o=e.options,r=ot.makeArray(t),a=o.length;a--;)if(i=o[a],ot.inArray(ot.valHooks.option.get(i),r)>=0)try{i.selected=n=!0}catch(s){i.scrollHeight}else i.selected=!1;return n||(e.selectedIndex=-1),o}}}}),ot.each(["radio","checkbox"],function(){ot.valHooks[this]={set:function(e,t){return ot.isArray(t)?e.checked=ot.inArray(ot(e).val(),t)>=0:void 0}},nt.checkOn||(ot.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var _n,kn,Cn=ot.expr.attrHandle,Tn=/^(?:checked|selected)$/i,Nn=nt.getSetAttribute,En=nt.input;ot.fn.extend({attr:function(e,t){return At(this,ot.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){ot.removeAttr(this,e)})}}),ot.extend({attr:function(e,t,n){var i,o,r=e.nodeType;if(e&&3!==r&&8!==r&&2!==r)return typeof e.getAttribute===kt?ot.prop(e,t,n):(1===r&&ot.isXMLDoc(e)||(t=t.toLowerCase(),i=ot.attrHooks[t]||(ot.expr.match.bool.test(t)?kn:_n)),void 0===n?i&&"get"in i&&null!==(o=i.get(e,t))?o:(o=ot.find.attr(e,t),null==o?void 0:o):null!==n?i&&"set"in i&&void 0!==(o=i.set(e,n,t))?o:(e.setAttribute(t,n+""),n):void ot.removeAttr(e,t))},removeAttr:function(e,t){var n,i,o=0,r=t&&t.match(bt);if(r&&1===e.nodeType)for(;n=r[o++];)i=ot.propFix[n]||n,ot.expr.match.bool.test(n)?En&&Nn||!Tn.test(n)?e[i]=!1:e[ot.camelCase("default-"+n)]=e[i]=!1:ot.attr(e,n,""),e.removeAttribute(Nn?n:i)},attrHooks:{type:{set:function(e,t){if(!nt.radioValue&&"radio"===t&&ot.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),kn={set:function(e,t,n){return t===!1?ot.removeAttr(e,n):En&&Nn||!Tn.test(n)?e.setAttribute(!Nn&&ot.propFix[n]||n,n):e[ot.camelCase("default-"+n)]=e[n]=!0,n}},ot.each(ot.expr.match.bool.source.match(/\w+/g),function(e,t){var n=Cn[t]||ot.find.attr;Cn[t]=En&&Nn||!Tn.test(t)?function(e,t,i){var o,r;return i||(r=Cn[t],Cn[t]=o,o=null!=n(e,t,i)?t.toLowerCase():null,Cn[t]=r),o}:function(e,t,n){return n?void 0:e[ot.camelCase("default-"+t)]?t.toLowerCase():null}}),En&&Nn||(ot.attrHooks.value={set:function(e,t,n){return ot.nodeName(e,"input")?void(e.defaultValue=t):_n&&_n.set(e,t,n)}}),Nn||(_n={set:function(e,t,n){var i=e.getAttributeNode(n);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(n)),i.value=t+="","value"===n||t===e.getAttribute(n)?t:void 0}},Cn.id=Cn.name=Cn.coords=function(e,t,n){var i;return n?void 0:(i=e.getAttributeNode(t))&&""!==i.value?i.value:null},ot.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);return n&&n.specified?n.value:void 0},set:_n.set},ot.attrHooks.contenteditable={set:function(e,t,n){_n.set(e,""===t?!1:t,n)}},ot.each(["width","height"],function(e,t){ot.attrHooks[t]={set:function(e,n){return""===n?(e.setAttribute(t,"auto"),n):void 0}}})),nt.style||(ot.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Sn=/^(?:input|select|textarea|button|object)$/i,An=/^(?:a|area)$/i;ot.fn.extend({prop:function(e,t){return At(this,ot.prop,e,t,arguments.length>1)},removeProp:function(e){return e=ot.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(t){}})}}),ot.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var i,o,r,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return r=1!==a||!ot.isXMLDoc(e),r&&(t=ot.propFix[t]||t,o=ot.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=ot.find.attr(e,"tabindex");return t?parseInt(t,10):Sn.test(e.nodeName)||An.test(e.nodeName)&&e.href?0:-1}}}}),nt.hrefNormalized||ot.each(["href","src"],function(e,t){ot.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),nt.optSelected||(ot.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),ot.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ot.propFix[this.toLowerCase()]=this}),nt.enctype||(ot.propFix.enctype="encoding");var Hn=/[\t\r\n\f]/g;ot.fn.extend({addClass:function(e){var t,n,i,o,r,a,s=0,c=this.length,l="string"==typeof e&&e;if(ot.isFunction(e))return this.each(function(t){ot(this).addClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(bt)||[];c>s;s++)if(n=this[s],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Hn," "):" ")){for(r=0;o=t[r++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");a=ot.trim(i),n.className!==a&&(n.className=a)}return this},removeClass:function(e){var t,n,i,o,r,a,s=0,c=this.length,l=0===arguments.length||"string"==typeof e&&e;if(ot.isFunction(e))return this.each(function(t){ot(this).removeClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(bt)||[];c>s;s++)if(n=this[s],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Hn," "):"")){for(r=0;o=t[r++];)for(;i.indexOf(" "+o+" ")>=0;)i=i.replace(" "+o+" "," ");a=e?ot.trim(i):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):this.each(ot.isFunction(e)?function(n){ot(this).toggleClass(e.call(this,n,this.className,t),t)}:function(){if("string"===n)for(var t,i=0,o=ot(this),r=e.match(bt)||[];t=r[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else(n===kt||"boolean"===n)&&(this.className&&ot._data(this,"__className__",this.className),this.className=this.className||e===!1?"":ot._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,i=this.length;i>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Hn," ").indexOf(t)>=0)return!0;return!1}}),ot.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){ot.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ot.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var Ln=ot.now(),Dn=/\?/,Bn=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;ot.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,i=null,o=ot.trim(t+"");return o&&!ot.trim(o.replace(Bn,function(e,t,o,r){return n&&t&&(i=0),0===i?e:(n=o||t,i+=!r-!o,"")}))?Function("return "+o)():ot.error("Invalid JSON: "+t)},ot.parseXML=function(t){var n,i;if(!t||"string"!=typeof t)return null;try{e.DOMParser?(i=new DOMParser,n=i.parseFromString(t,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(t))}catch(o){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||ot.error("Invalid XML: "+t),n};var Mn,$n,jn=/#.*$/,In=/([?&])_=[^&]*/,On=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Pn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Fn=/^(?:GET|HEAD)$/,qn=/^\/\//,Rn=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Wn={},zn={},Un="*/".concat("*");try{$n=location.href}catch(Xn){$n=ht.createElement("a"),$n.href="",$n=$n.href}Mn=Rn.exec($n.toLowerCase())||[],ot.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:$n,type:"GET",isLocal:Pn.test(Mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Un,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ot.parseJSON,"text xml":ot.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?q(q(e,ot.ajaxSettings),t):q(ot.ajaxSettings,e)},ajaxPrefilter:P(Wn),ajaxTransport:P(zn),ajax:function(e,t){function n(e,t,n,i){var o,u,v,y,w,_=t;2!==b&&(b=2,s&&clearTimeout(s),l=void 0,a=i||"",x.readyState=e>0?4:0,o=e>=200&&300>e||304===e,n&&(y=R(d,x,n)),y=W(d,y,x,o),o?(d.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(ot.lastModified[r]=w),w=x.getResponseHeader("etag"),w&&(ot.etag[r]=w)),204===e||"HEAD"===d.type?_="nocontent":304===e?_="notmodified":(_=y.state,u=y.data,v=y.error,o=!v)):(v=_,(e||!_)&&(_="error",0>e&&(e=0))),x.status=e,x.statusText=(t||_)+"",o?h.resolveWith(f,[u,_,x]):h.rejectWith(f,[x,_,v]),x.statusCode(m),m=void 0,c&&p.trigger(o?"ajaxSuccess":"ajaxError",[x,d,o?u:v]),g.fireWith(f,[x,_]),c&&(p.trigger("ajaxComplete",[x,d]),--ot.active||ot.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,o,r,a,s,c,l,u,d=ot.ajaxSetup({},t),f=d.context||d,p=d.context&&(f.nodeType||f.jquery)?ot(f):ot.event,h=ot.Deferred(),g=ot.Callbacks("once memory"),m=d.statusCode||{},v={},y={},b=0,w="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!u)for(u={};t=On.exec(a);)u[t[1].toLowerCase()]=t[2];t=u[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,v[e]=t),this},overrideMimeType:function(e){return b||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){var t=e||w;return l&&l.abort(t),n(0,t),this}};if(h.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,d.url=((e||d.url||$n)+"").replace(jn,"").replace(qn,Mn[1]+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=ot.trim(d.dataType||"*").toLowerCase().match(bt)||[""],null==d.crossDomain&&(i=Rn.exec(d.url.toLowerCase()),d.crossDomain=!(!i||i[1]===Mn[1]&&i[2]===Mn[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(Mn[3]||("http:"===Mn[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=ot.param(d.data,d.traditional)),F(Wn,d,t,x),2===b)return x;c=d.global,c&&0===ot.active++&&ot.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Fn.test(d.type),r=d.url,d.hasContent||(d.data&&(r=d.url+=(Dn.test(r)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=In.test(r)?r.replace(In,"$1_="+Ln++):r+(Dn.test(r)?"&":"?")+"_="+Ln++)),d.ifModified&&(ot.lastModified[r]&&x.setRequestHeader("If-Modified-Since",ot.lastModified[r]),ot.etag[r]&&x.setRequestHeader("If-None-Match",ot.etag[r])),(d.data&&d.hasContent&&d.contentType!==!1||t.contentType)&&x.setRequestHeader("Content-Type",d.contentType),x.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Un+"; q=0.01":""):d.accepts["*"]);for(o in d.headers)x.setRequestHeader(o,d.headers[o]);if(d.beforeSend&&(d.beforeSend.call(f,x,d)===!1||2===b))return x.abort();w="abort";for(o in{success:1,error:1,complete:1})x[o](d[o]);if(l=F(zn,d,t,x)){x.readyState=1,c&&p.trigger("ajaxSend",[x,d]),d.async&&d.timeout>0&&(s=setTimeout(function(){x.abort("timeout")},d.timeout));try{b=1,l.send(v,n)}catch(_){if(!(2>b))throw _;n(-1,_)}}else n(-1,"No Transport");return x},getJSON:function(e,t,n){return ot.get(e,t,n,"json")},getScript:function(e,t){return ot.get(e,void 0,t,"script")}}),ot.each(["get","post"],function(e,t){ot[t]=function(e,n,i,o){return ot.isFunction(n)&&(o=o||i,i=n,n=void 0),ot.ajax({url:e,type:t,dataType:o,data:n,success:i})}}),ot.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ot.fn[t]=function(e){return this.on(t,e)}}),ot._evalUrl=function(e){return ot.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},ot.fn.extend({wrapAll:function(e){if(ot.isFunction(e))return this.each(function(t){ot(this).wrapAll(e.call(this,t))});if(this[0]){var t=ot(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return this.each(ot.isFunction(e)?function(t){ot(this).wrapInner(e.call(this,t))}:function(){var t=ot(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ot.isFunction(e);return this.each(function(n){ot(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){ot.nodeName(this,"body")||ot(this).replaceWith(this.childNodes)}).end()}}),ot.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!nt.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||ot.css(e,"display"))},ot.expr.filters.visible=function(e){return!ot.expr.filters.hidden(e)};var Vn=/%20/g,Gn=/\[\]$/,Yn=/\r?\n/g,Jn=/^(?:submit|button|image|reset|file)$/i,Kn=/^(?:input|select|textarea|keygen)/i;ot.param=function(e,t){var n,i=[],o=function(e,t){t=ot.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=ot.ajaxSettings&&ot.ajaxSettings.traditional),ot.isArray(e)||e.jquery&&!ot.isPlainObject(e))ot.each(e,function(){o(this.name,this.value)});else for(n in e)z(n,e[n],t,o);return i.join("&").replace(Vn,"+")},ot.fn.extend({serialize:function(){return ot.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ot.prop(this,"elements");return e?ot.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ot(this).is(":disabled")&&Kn.test(this.nodeName)&&!Jn.test(e)&&(this.checked||!Ht.test(e))}).map(function(e,t){var n=ot(this).val();return null==n?null:ot.isArray(n)?ot.map(n,function(e){return{name:t.name,value:e.replace(Yn,"\r\n")}}):{name:t.name,value:n.replace(Yn,"\r\n")}}).get()}}),ot.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&U()||X()}:U;var Qn=0,Zn={},ei=ot.ajaxSettings.xhr();e.ActiveXObject&&ot(e).on("unload",function(){for(var e in Zn)Zn[e](void 0,!0)}),nt.cors=!!ei&&"withCredentials"in ei,ei=nt.ajax=!!ei,ei&&ot.ajaxTransport(function(e){if(!e.crossDomain||nt.cors){var t;return{send:function(n,i){var o,r=e.xhr(),a=++Qn;if(r.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)r[o]=e.xhrFields[o];e.mimeType&&r.overrideMimeType&&r.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(o in n)void 0!==n[o]&&r.setRequestHeader(o,n[o]+"");r.send(e.hasContent&&e.data||null),t=function(n,o){var s,c,l;if(t&&(o||4===r.readyState))if(delete Zn[a],t=void 0,r.onreadystatechange=ot.noop,o)4!==r.readyState&&r.abort();else{l={},s=r.status,"string"==typeof r.responseText&&(l.text=r.responseText);try{c=r.statusText}catch(u){c=""}s||!e.isLocal||e.crossDomain?1223===s&&(s=204):s=l.text?200:404}l&&i(s,c,l,r.getAllResponseHeaders())},e.async?4===r.readyState?setTimeout(t):r.onreadystatechange=Zn[a]=t:t()},abort:function(){t&&t(void 0,!0)}}}}),ot.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return ot.globalEval(e),e}}}),ot.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),ot.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=ht.head||ot("head")[0]||ht.documentElement;return{send:function(i,o){t=ht.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||o(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var ti=[],ni=/(=)\?(?=&|$)|\?\?/;ot.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=ti.pop()||ot.expando+"_"+Ln++;return this[e]=!0,e}}),ot.ajaxPrefilter("json jsonp",function(t,n,i){var o,r,a,s=t.jsonp!==!1&&(ni.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ni.test(t.data)&&"data");return s||"jsonp"===t.dataTypes[0]?(o=t.jsonpCallback=ot.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ni,"$1"+o):t.jsonp!==!1&&(t.url+=(Dn.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return a||ot.error(o+" was not called"),a[0]},t.dataTypes[0]="json",r=e[o],e[o]=function(){a=arguments},i.always(function(){e[o]=r,t[o]&&(t.jsonpCallback=n.jsonpCallback,ti.push(o)),a&&ot.isFunction(r)&&r(a[0]),a=r=void 0}),"script"):void 0}),ot.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||ht;var i=dt.exec(e),o=!n&&[];return i?[t.createElement(i[1])]:(i=ot.buildFragment([e],t,o),o&&o.length&&ot(o).remove(),ot.merge([],i.childNodes))};var ii=ot.fn.load;ot.fn.load=function(e,t,n){if("string"!=typeof e&&ii)return ii.apply(this,arguments);var i,o,r,a=this,s=e.indexOf(" ");return s>=0&&(i=ot.trim(e.slice(s,e.length)),e=e.slice(0,s)),ot.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),a.length>0&&ot.ajax({url:e,type:r,dataType:"html",data:t}).done(function(e){o=arguments,a.html(i?ot("<div>").append(ot.parseHTML(e)).find(i):e)}).complete(n&&function(e,t){a.each(n,o||[e.responseText,t,e])}),this},ot.expr.filters.animated=function(e){return ot.grep(ot.timers,function(t){return e===t.elem}).length};var oi=e.document.documentElement;ot.offset={setOffset:function(e,t,n){var i,o,r,a,s,c,l,u=ot.css(e,"position"),d=ot(e),f={};"static"===u&&(e.style.position="relative"),s=d.offset(),r=ot.css(e,"top"),c=ot.css(e,"left"),l=("absolute"===u||"fixed"===u)&&ot.inArray("auto",[r,c])>-1,l?(i=d.position(),a=i.top,o=i.left):(a=parseFloat(r)||0,o=parseFloat(c)||0),ot.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+o),"using"in t?t.using.call(e,f):d.css(f)}},ot.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){ot.offset.setOffset(this,e,t)});var t,n,i={top:0,left:0},o=this[0],r=o&&o.ownerDocument;if(r)return t=r.documentElement,ot.contains(t,o)?(typeof o.getBoundingClientRect!==kt&&(i=o.getBoundingClientRect()),n=V(r),{top:i.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:i.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):i},position:function(){if(this[0]){var e,t,n={top:0,left:0},i=this[0];return"fixed"===ot.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),ot.nodeName(e[0],"html")||(n=e.offset()),n.top+=ot.css(e[0],"borderTopWidth",!0),n.left+=ot.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-ot.css(i,"marginTop",!0),left:t.left-n.left-ot.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||oi;e&&!ot.nodeName(e,"html")&&"static"===ot.css(e,"position");)e=e.offsetParent;return e||oi})}}),ot.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);ot.fn[e]=function(i){return At(this,function(e,i,o){var r=V(e);return void 0===o?r?t in r?r[t]:r.document.documentElement[i]:e[i]:void(r?r.scrollTo(n?ot(r).scrollLeft():o,n?o:ot(r).scrollTop()):e[i]=o)},e,i,arguments.length,null)}}),ot.each(["top","left"],function(e,t){ot.cssHooks[t]=N(nt.pixelPosition,function(e,n){return n?(n=tn(e,t),on.test(n)?ot(e).position()[t]+"px":n):void 0})}),ot.each({Height:"height",Width:"width"},function(e,t){ot.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){ot.fn[i]=function(i,o){var r=arguments.length&&(n||"boolean"!=typeof i),a=n||(i===!0||o===!0?"margin":"border");return At(this,function(t,n,i){var o;return ot.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?ot.css(t,n,a):ot.style(t,n,i,a)},t,r?i:void 0,r,null)}})}),ot.fn.size=function(){return this.length},ot.fn.andSelf=ot.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ot});var ri=e.jQuery,ai=e.$;return ot.noConflict=function(t){return e.$===ot&&(e.$=ai),t&&e.jQuery===ot&&(e.jQuery=ri),ot},typeof t===kt&&(e.jQuery=e.$=ot),ot}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){function t(t,i){var o,r,a,s=t.nodeName.toLowerCase();return"area"===s?(o=t.parentNode,r=o.name,t.href&&r&&"map"===o.nodeName.toLowerCase()?(a=e("img[usemap=#"+r+"]")[0],!!a&&n(a)):!1):(/input|select|textarea|button|object/.test(s)?!t.disabled:"a"===s?t.href||i:i)&&n(t)}function n(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")}).length}e.ui=e.ui||{},e.extend(e.ui,{version:"1.11.0",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({scrollParent:function(){var t=this.css("position"),n="absolute"===t,i=this.parents().filter(function(){var t=e(this);return n&&"static"===t.css("position")?!1:/(auto|scroll)/.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==t&&i.length?i:e(this[0].ownerDocument||document)},uniqueId:function(){var e=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(n){return!!e.data(n,t)}}):function(t,n,i){return!!e.data(t,i[3])},focusable:function(n){return t(n,!isNaN(e.attr(n,"tabindex")))},tabbable:function(n){var i=e.attr(n,"tabindex"),o=isNaN(i);return(o||i>=0)&&t(n,!o)}}),e("<a>").outerWidth(1).jquery||e.each(["Width","Height"],function(t,n){function i(t,n,i,r){return e.each(o,function(){n-=parseFloat(e.css(t,"padding"+this))||0,i&&(n-=parseFloat(e.css(t,"border"+this+"Width"))||0),r&&(n-=parseFloat(e.css(t,"margin"+this))||0)}),n}var o="Width"===n?["Left","Right"]:["Top","Bottom"],r=n.toLowerCase(),a={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+n]=function(t){return void 0===t?a["inner"+n].call(this):this.each(function(){e(this).css(r,i(this,t)+"px")})},e.fn["outer"+n]=function(t,o){return"number"!=typeof t?a["outer"+n].call(this,t):this.each(function(){e(this).css(r,i(this,t,!0,o)+"px")})}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(n){return arguments.length?t.call(this,e.camelCase(n)):t.call(this)
4
- }}(e.fn.removeData)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.fn.extend({focus:function(t){return function(n,i){return"number"==typeof n?this.each(function(){var t=this;setTimeout(function(){e(t).focus(),i&&i.call(t)},n)}):t.apply(this,arguments)}}(e.fn.focus),disableSelection:function(){var e="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(e+".ui-disableSelection",function(e){e.preventDefault()})}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(t){if(void 0!==t)return this.css("zIndex",t);if(this.length)for(var n,i,o=e(this[0]);o.length&&o[0]!==document;){if(n=o.css("position"),("absolute"===n||"relative"===n||"fixed"===n)&&(i=parseInt(o.css("zIndex"),10),!isNaN(i)&&0!==i))return i;o=o.parent()}return 0}}),e.ui.plugin={add:function(t,n,i){var o,r=e.ui[t].prototype;for(o in i)r.plugins[o]=r.plugins[o]||[],r.plugins[o].push([n,i[o]])},call:function(e,t,n,i){var o,r=e.plugins[t];if(r&&(i||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(o=0;o<r.length;o++)e.options[r[o][0]]&&r[o][1].apply(e.element,n)}}}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){var t=0,n=Array.prototype.slice;return e.cleanData=function(t){return function(n){for(var i,o=0;null!=(i=n[o]);o++)try{e(i).triggerHandler("remove")}catch(r){}t(n)}}(e.cleanData),e.widget=function(t,n,i){var o,r,a,s,c={},l=t.split(".")[0];return t=t.split(".")[1],o=l+"-"+t,i||(i=n,n=e.Widget),e.expr[":"][o.toLowerCase()]=function(t){return!!e.data(t,o)},e[l]=e[l]||{},r=e[l][t],a=e[l][t]=function(e,t){return this._createWidget?void(arguments.length&&this._createWidget(e,t)):new a(e,t)},e.extend(a,r,{version:i.version,_proto:e.extend({},i),_childConstructors:[]}),s=new n,s.options=e.widget.extend({},s.options),e.each(i,function(t,i){return e.isFunction(i)?void(c[t]=function(){var e=function(){return n.prototype[t].apply(this,arguments)},o=function(e){return n.prototype[t].apply(this,e)};return function(){var t,n=this._super,r=this._superApply;return this._super=e,this._superApply=o,t=i.apply(this,arguments),this._super=n,this._superApply=r,t}}()):void(c[t]=i)}),a.prototype=e.widget.extend(s,{widgetEventPrefix:r?s.widgetEventPrefix||t:t},c,{constructor:a,namespace:l,widgetName:t,widgetFullName:o}),r?(e.each(r._childConstructors,function(t,n){var i=n.prototype;e.widget(i.namespace+"."+i.widgetName,a,n._proto)}),delete r._childConstructors):n._childConstructors.push(a),e.widget.bridge(t,a),a},e.widget.extend=function(t){for(var i,o,r=n.call(arguments,1),a=0,s=r.length;s>a;a++)for(i in r[a])o=r[a][i],r[a].hasOwnProperty(i)&&void 0!==o&&(t[i]=e.isPlainObject(o)?e.isPlainObject(t[i])?e.widget.extend({},t[i],o):e.widget.extend({},o):o);return t},e.widget.bridge=function(t,i){var o=i.prototype.widgetFullName||t;e.fn[t]=function(r){var a="string"==typeof r,s=n.call(arguments,1),c=this;return r=!a&&s.length?e.widget.extend.apply(null,[r].concat(s)):r,this.each(a?function(){var n,i=e.data(this,o);return"instance"===r?(c=i,!1):i?e.isFunction(i[r])&&"_"!==r.charAt(0)?(n=i[r].apply(i,s),n!==i&&void 0!==n?(c=n&&n.jquery?c.pushStack(n.get()):n,!1):void 0):e.error("no such method '"+r+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+r+"'")}:function(){var t=e.data(this,o);t?(t.option(r||{}),t._init&&t._init()):e.data(this,o,new i(r,this))}),c}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(n,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=t++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),n),this.bindings=e(),this.hoverable=e(),this.focusable=e(),i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var i,o,r,a=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(a={},i=t.split("."),t=i.shift(),i.length){for(o=a[t]=e.widget.extend({},this.options[t]),r=0;r<i.length-1;r++)o[i[r]]=o[i[r]]||{},o=o[i[r]];if(t=i.pop(),1===arguments.length)return void 0===o[t]?null:o[t];o[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];a[t]=n}return this._setOptions(a),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!t),t&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(t,n,i){var o,r=this;"boolean"!=typeof t&&(i=n,n=t,t=!1),i?(n=o=e(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,o=this.widget()),e.each(i,function(i,a){function s(){return t||r.options.disabled!==!0&&!e(this).hasClass("ui-state-disabled")?("string"==typeof a?r[a]:a).apply(r,arguments):void 0}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||e.guid++);var c=i.match(/^([\w:-]*)\s*(.*)$/),l=c[1]+r.eventNamespace,u=c[2];u?o.delegate(u,l,s):n.bind(l,s)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t)},_delay:function(e,t){function n(){return("string"==typeof e?i[e]:e).apply(i,arguments)}var i=this;return setTimeout(n,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,n,i){var o,r,a=this.options[t];if(i=i||{},n=e.Event(n),n.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],r=n.originalEvent)for(o in r)o in n||(n[o]=r[o]);return this.element.trigger(n,i),!(e.isFunction(a)&&a.apply(this.element[0],[n].concat(i))===!1||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,n){e.Widget.prototype["_"+t]=function(i,o,r){"string"==typeof o&&(o={effect:o});var a,s=o?o===!0||"number"==typeof o?n:o.effect||n:t;o=o||{},"number"==typeof o&&(o={duration:o}),a=!e.isEmptyObject(o),o.complete=r,o.delay&&i.delay(o.delay),a&&e.effects&&e.effects.effect[s]?i[t](o):s!==t&&i[s]?i[s](o.duration,o.easing,r):i.queue(function(n){e(this)[t](),r&&r.call(i[0]),n()})}}),e.widget}),$(function(){$('[morrigan-editor="true"]').each(function(){var e=$(this),t=e.attr("editor-width"),n=e.attr("editor-height");e.morrigan_editor({iframeStyles:"/assets/morrigan_editor_rails/iframe-93d4936ce81b8a587abd68279b479b59.css",imageUpload:"morrigan_editor_rails/editor_images",width:t,height:n})})}),$.widget("morrigan.morrigan_editor",{options:{height:"600px",width:"900px",doctype:"<!DOCTYPE html>",notSupportedMsg:"Your browser is not supported.",iframeStyles:"/iframe.css",imageUpload:null,spellCheck:!0,toolbox:[[["format"],["bold","italy","strike"],["img","video"],["alignLeft","alignCenter","alignRight"],["orderedList","unorderedList"],["link","unLink"]]],popup:{actions:{ok:{caption:"Ok"},cancel:{caption:"Cancel"}}},block:{mediaBlock:{width:{def:"350px",max:"400px"},height:{def:"270px",max:"430px",video:"205px"}}}},_browser:{},_content:null,_window:null,_actionManager:null,_selectionManager:null,_actionSupport:null,_popup:null,_uploader:null,_loader:null,_blockManager:null,_options:{},_actions:{video:{name:"video",view:{activeBackground:"#aaa",inactiveBackground:"#eee",title:"Video",classes:"fa fa-youtube-play"},popup:{title:"Add video",height:"130px",html:'<form action="/video/create" method="post" enctype="multipart/form-data" target="mrge-support-iframe"><div class="mrge-option"><input type="text" placeholder=" add video HTML code here" name="video_html"></div></form>',actions:["ok","cancel"],onShow:function(e,t){var n;isIframeCodeCorrect=function(e){return/^<iframe.* src=\".*><\/iframe>\s*$/.test(e)},exec=function(){var i=e.find('input[name="video_html"]').val();isIframeCodeCorrect(i)?(t._browser.ie&&t._selectionManager.restoreInternalRange(n),t._blockManager.addBlock({videoHTML:i}),t._popup.hidePopup()):alert("Video HTML is not correct")},e.find(".mrge-popup-ok").on("click",function(){exec()}),t._browser.ie&&(n=t._selectionManager.getInternalRange())},onHide:function(e){e.find(".mrge-popup-ok").off("click")}}},img:{name:"img",view:{activeBackground:"#aaa",inactiveBackground:"#eee",title:"Image",classes:"fa fa-picture-o"},popup:{title:"Add image",height:"200px",actions:["ok","cancel"],customForm:function(e,t){var n='<form action="'+e.options.imageUpload+'" method="post" enctype="multipart/form-data" target="mrge-support-iframe"><div class="mrge-option"><input type="file" name="upload_img"/></div><div class="mrge-divider">or</div><div class="mrge-option"><input type="text" placeholder=" add image link here" name="upload_url"></div></form>';t.html(n)},onShow:function(e,t){var n;haveFileToUpload=function(){var t=e.find('[name="upload_img"]'),n=e.find('[name="upload_url"]');return""!=t.val()||""!=n.val()},uploadImage=function(){var i;t._uploader.prepareToLoad(),e.find("form").submit(),t._loader.showLoader();var o=setInterval(function(){i=t._uploader.getData(),i&&(clearInterval(o),t._loader.hideLoader(),t._browser.ie&&t._selectionManager.restoreInternalRange(n),t._blockManager.addBlock({imageUrl:i.data}))},100)},exec=function(){haveFileToUpload()&&(t._popup.hidePopup(),uploadImage())},e.find('input[type="file"]').on("change",function(){exec()}),e.find(".mrge-popup-ok").on("click",function(){exec()}),t._browser.ie&&(n=t._selectionManager.getInternalRange())},onHide:function(e){e.find(".mrge-popup-ok").off("click")}}},alignLeft:{name:"alignLeft",view:{activeBackground:"#aaa",inactiveBackground:"#eee",title:"Align Left",classes:"fa fa-align-left"},onClickHandler:function(e){var t=e._selectionManager.getCustomSelection(),n=e._selectionManager.isCaret(t),i=e._selectionManager.getTopSelectedElements(t,n),o=$(i).filter(function(){return"DIV"!=this.nodeName});$(o).css("text-align",""),e._content.trigger("mouseup")},selectionHandler:function(e,t){var n=t.topElements,i=$(n).first().css("text-align"),o=$(n).filter(function(){return"DIV"!=this.nodeName}),r=$(o).filter(function(){return $(this).css("text-align")==i});this.changeActiveIcon(o.length==r.length&&("left"==i||"start"==i))}},alignCenter:{name:"alignCenter",view:{activeBackground:"#aaa",inactiveBackground:"#eee",title:"Align Center",classes:"fa fa-align-center"},onClickHandler:function(e){var t=e._selectionManager.getCustomSelection(),n=e._selectionManager.isCaret(t),i=e._selectionManager.getTopSelectedElements(t,n),o=$(i).first().css("text-align"),r=$(i).filter(function(){return"DIV"!=this.nodeName}),a=$(r).filter(function(){return $(this).css("text-align")==o});r.length==a.length&&"center"==o?$(r).css("text-align",""):$(r).css("text-align","center"),e._content.trigger("mouseup")},selectionHandler:function(e,t){var n=t.topElements,i=$(n).first().css("text-align"),o=$(n).filter(function(){return"DIV"!=this.nodeName}),r=$(o).filter(function(){return $(this).css("text-align")==i});this.changeActiveIcon(o.length==r.length&&"center"==i)}},alignRight:{name:"alignRight",view:{activeBackground:"#aaa",inactiveBackground:"#eee",title:"Align Right",classes:"fa fa-align-right"},onClickHandler:function(e){var t=e._selectionManager.getCustomSelection(),n=e._selectionManager.isCaret(t),i=e._selectionManager.getTopSelectedElements(t,n),o=$(i).first().css("text-align"),r=$(i).filter(function(){return"DIV"!=this.nodeName}),a=$(r).filter(function(){return $(this).css("text-align")==o});r.length==a.length&&"right"==o?$(r).css("text-align",""):$(r).css("text-align","right"),e._content.trigger("mouseup")},selectionHandler:function(e,t){var n=t.topElements,i=$(n).first().css("text-align"),o=$(n).filter(function(){return"DIV"!=this.nodeName}),r=$(o).filter(function(){return $(this).css("text-align")==i});this.changeActiveIcon(o.length==r.length&&"right"==i)}},orderedList:{name:"orderedList",view:{activeBackground:"#aaa",inactiveBackground:"#eee",title:"Ordered List",classes:"fa fa-list-ol"},onClickHandler:function(e,t){e._window.document.execCommand("InsertOrderedList",!1,null),t.changeActiveIcon(e._window.document.queryCommandState("InsertOrderedList")),e._actionManager.findAction("unorderedList").changeActiveIcon(e._window.document.queryCommandState("InsertUnorderedList"));var n=e._selectionManager.getCustomSelection(),i=e._selectionManager.isCaret(n),o=e._selectionManager.getTopSelectedElements(n,i);$(o[0]).find("ol").unwrap()},selectionHandler:function(e){this.changeActiveIcon(e._window.document.queryCommandState("InsertOrderedList"))}},unorderedList:{name:"unorderedList",view:{activeBackground:"#aaa",inactiveBackground:"#eee",title:"Unordered List",classes:"fa fa-list-ul"},onClickHandler:function(e,t){e._window.document.execCommand("InsertUnorderedList",!1,null),t.changeActiveIcon(e._window.document.queryCommandState("InsertUnorderedList")),e._actionManager.findAction("orderedList").changeActiveIcon(e._window.document.queryCommandState("InsertOrderedList"));var n=e._selectionManager.getCustomSelection(),i=e._selectionManager.isCaret(n),o=e._selectionManager.getTopSelectedElements(n,i);$(o[0]).find("ul").unwrap()},selectionHandler:function(e){this.changeActiveIcon(e._window.document.queryCommandState("InsertUnorderedList"))}},bold:{name:"bold",view:{activeBackground:"#aaa",inactiveBackground:"#eee",title:"Bold",classes:"fa fa-bold"},onClickHandler:function(e,t){e._window.document.execCommand("bold",!1,null),t.changeActiveIcon(e._window.document.queryCommandState("bold"))},selectionHandler:function(e){this.changeActiveIcon(e._window.document.queryCommandState("bold"))}},italy:{name:"italy",view:{activeBackground:"#aaa",inactiveBackground:"#eee",title:"Italy",classes:"fa fa-italic"},onClickHandler:function(e,t){e._window.document.execCommand("italic",!1,null),t.changeActiveIcon(e._window.document.queryCommandState("italic"))},selectionHandler:function(e){this.changeActiveIcon(e._window.document.queryCommandState("italic"))}},strike:{name:"strike",view:{title:"Strike",activeBackground:"#aaa",inactiveBackground:"#eee",classes:"fa fa-strikethrough"},onClickHandler:function(e,t){e._window.document.execCommand("strikethrough",!1,null),t.changeActiveIcon(e._window.document.queryCommandState("strikethrough"))},selectionHandler:function(e){this.changeActiveIcon(e._window.document.queryCommandState("strikethrough"))}},unLink:{name:"unLink",view:{title:"Unlink",activeBackground:"#aaa",inactiveBackground:"#eee",classes:"fa fa-unlink"},onClickHandler:function(e){e._window.document.execCommand("Unlink",!1,null)}},link:{name:"link",view:{activeBackground:"#aaa",inactiveBackground:"#eee",title:"Link",classes:"fa fa-link"},popup:{title:"Add link",height:"130px",html:'<div class="mrge-option"><input type="text" placeholder=" URL" name="url"></div>',actions:["ok","cancel"],onShow:function(e,t){var n,i=function(e){return 0==e.indexOf("http")?e:"http://"+e};exec=function(){var o=i(e.find('input[name="url"]').val());t._browser.ie&&t._selectionManager.restoreInternalRange(n),t._window.document.execCommand("CreateLink",!1,o),t._popup.hidePopup()},e.find(".mrge-popup-ok").on("click",function(){exec()}),t._browser.ie&&(n=t._selectionManager.getInternalRange())},onHide:function(e){e.find(".mrge-popup-ok").off("click")}}},format:{name:"format",view:{text:"Format",title:"Paragraph format"},changeStatus:function(e){if(e){var t=this.config.dropdown.matchList[e];isNaN(t)||this.config.dropdown.currentActionItemIndex==t?isNaN(t)&&0!=this.config.dropdown.currentActionItemIndex&&(this.config.dropdown.currentActionItemIndex=0,$(this.element).children("span.mrge-action-text").text(this.config.dropdown.actionList[0].text)):(this.config.dropdown.currentActionItemIndex=t,$(this.element).children("span.mrge-action-text").text(this.config.dropdown.actionList[t].text))}else-1!=this.config.dropdown.currentActionItemIndex&&(this.config.dropdown.currentActionItemIndex=-1,$(this.element).children("span.mrge-action-text").text(this.config.view.text))},selectionHandler:function(e,t){var n,i,o,r=t.topElements;r.length>0&&r[0]?(i=r[0].nodeName,o=$(r).filter(function(){return this.nodeName===i}),o.length==r.length&&(n=i)):n="P",this.changeStatus(n)},dropdown:{width:"150px",actionList:[{text:"Paragraph",tag:"P",onClickHandler:function(e,t){if(e._browser.webkit){var n=e._selectionManager.getCustomSelection(),i=e._selectionManager.isCaret(n),o=e._selectionManager.getTopSelectedElements(n,i);e._actionSupport.mutateBlock(o,"P",n)}else e._window.document.execCommand("formatblock",!1,"<p>");t.changeStatus("P")}},{text:"Heading 1",tag:"H2",onClickHandler:function(e,t){if(e._browser.webkit){var n=e._selectionManager.getCustomSelection(),i=e._selectionManager.isCaret(n),o=e._selectionManager.getTopSelectedElements(n,i);e._actionSupport.mutateBlock(o,"H2",n)}else e._window.document.execCommand("formatblock",!1,"<h2>");t.changeStatus("H2")}},{text:"Heading 2",tag:"H3",onClickHandler:function(e,t){if(e._browser.webkit){var n=e._selectionManager.getCustomSelection(),i=e._selectionManager.isCaret(n),o=e._selectionManager.getTopSelectedElements(n,i);e._actionSupport.mutateBlock(o,"H3",n)}else e._window.document.execCommand("formatblock",!1,"<h3>");t.changeStatus("H3")}},{text:"Heading 3",tag:"H4",onClickHandler:function(e,t){if(e._browser.webkit){var n=e._selectionManager.getCustomSelection(),i=e._selectionManager.isCaret(n),o=e._selectionManager.getTopSelectedElements(n,i);e._actionSupport.mutateBlock(o,"H4",n)}else e._window.document.execCommand("formatblock",!1,"<h4>");t.changeStatus("H4")}}]}}},ActionManager:function(e){this.editor=e,this.actions=[],this.disabledActions=[],this.selectionChangedSubscribers=[],this.findAction=function(e){return $.grep(this.actions,function(t){return t.config.name==e})[0]},this.addAction=function(e,t){var n=new this.editor.Action(e,t);this.actions.push(n);var i=this.actions.length-1;n.enabled||this.disabledActions.push(i),n.selectionHandler&&this.selectionChangedSubscribers.push(i)}},Action:function(e,t){var n=this;this.element=t,this.config=e,this.enabled=!1,e.view.activeBackground&&e.view.inactiveBackground&&(this.activeState=!1,this.changeActiveIcon=function(e){void 0==e?this.activeState?this.setInactiveIcon():this.setActiveIcon():e&&!this.activeState?this.setActiveIcon():!e&&this.activeState&&this.setInactiveIcon()},this.setActiveIcon=function(){this.element.css("background-color",e.view.activeBackground).addClass("mrge-active"),this.activeState=!0},this.setInactiveIcon=function(){this.element.css("background-color",e.view.inactiveBackground).removeClass("mrge-active"),this.activeState=!1}),this.changeStatus=e.changeStatus,this.config.dropdown?(this.config.dropdown.shown=!1,this.config.dropdown.currentActionItemIndex=-1,this.dropDownShow=function(){this.element.children(".mrge-action-dropdown").show(),this.config.dropdown.shown=!0},this.dropDownHide=function(){this.config.dropdown.shown=!1,this.element.children(".mrge-action-dropdown").hide()},this.config.dropdown.matchList={},$(this.config.dropdown.actionList).each(function(e){n.config.dropdown.matchList[this.tag]=e})):this.onClickHandler=e.onClickHandler,this.selectionHandler=this.config.selectionHandler},ActionSupport:function(e){this.editor=e,this.mutateBlock=function(e,t,n){var i=this._saveSelection(n),o=!1;$(e).each(function(){this.nodeName!=t&&($(this).replaceWith("<"+t+">"+this.innerHTML+"</"+t+">"),o=!0)}),o&&this._restoreSelection(i)},this._saveSelection=function(e){var t=e.selection,n=this._getNodePath(t.anchorNode),i=this._getNodePath(t.focusNode);return this._isCorrectSequenceSelection(t)?{anchorNodePath:n,anchorOffset:t.anchorOffset,focusNodePath:i,focusOffset:t.focusOffset}:{anchorNodePath:i,anchorOffset:t.focusOffset,focusNodePath:n,focusOffset:t.anchorOffset}},this._isCorrectSequenceSelection=function(e){var t=this.editor._window.document.createRange();return t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset),t.startOffset==e.anchorOffset&&t.startContainer==e.anchorNode},this._restoreSelection=function(e){var t=this._getNodeFromPath(e.anchorNodePath),n=this._getNodeFromPath(e.focusNodePath),i=this.editor._window.getSelection(),o=this.editor._window.document.createRange();o.setStart(t,e.anchorOffset),o.setEnd(n,e.focusOffset),i.removeAllRanges(),i.addRange(o)},this._getNodeFromPath=function(e){for(var t=this.editor._content;0!=e.length;){var n=e.pop();t=t.contents().eq(n)}return t.get(0)},this._getNodePath=function(e){for(var t=[],n=e;"BODY"!=n.nodeName;)t.push($(n.parentNode).contents().index(n)),n=n.parentNode;return t},this.addParamToUrl=function(e,t,n){return e+(e.split("?")[1]?"&":"?")+t+"="+n}},BlockManager:function(e){this.element=null,this.current_block=null,this._bindEvents=function(){var t=this;e._content.on("dragstart","img",function(e){return e.preventDefault(),!1}).on("mouseenter",".mrge-content-block",function(){t.showBlockManager(this)}).on("mouseleave",".mrge-content-block",function(){t.hideBlockManager(this)}).on("click",".mrge-content-block-top",function(){t._moveUp()}).on("click",".mrge-content-block-bottom",function(){t._moveDown()}).on("click",".mrge-content-block-close",function(){t.removeBlock()})},this._bindEvents(),this.showBlockManager=function(e){this.current_block=e,$(e).append('<div class="mrge-content-block-top mrge-content-block-move-action mrge-temp-support-element" contenteditable="false">\u25b2</div>'),$(e).append('<div class="mrge-content-block-bottom mrge-content-block-move-action mrge-temp-support-element" contenteditable="false">\u25bc</div>'),$(e).append('<div class="mrge-content-block-close mrge-temp-support-element fa fa-close" contenteditable="false">\xd7</div>')},this._moveUp=function(){var t,n=this._getElementsNearCurrentBlock(!0),i=this._getNearElementForCurrentBlock(n,!0);if(i.length){var o=this._getNearBlock(n,!0);t=o&&this._needToGoToBlock(o,i,!0)?this._insertBlockRelative(this.current_block,o,!0):this._insertBlockRelative(this.current_block,i,!0)}e._selectionManager.clearSelection()},this._needToGoToBlock=function(e,t,n){if(n){var i=e.offset().top+e.outerHeight(!0),o=$(this.current_block).offset().top-t.outerHeight(!0);return i>=o}var r=e.offset().top,a=$(this.current_block).offset().top+$(this.current_block).outerHeight(!0);return a>=r},this._needToGoFromBlocks=function(e){var t=e.offset().top+e.outerHeight(!0),n=$(this.current_block).offset().top;return t>=n},this._getTargetToMoveFromBlocks=function(e){for(var t=e.offset().top+e.outerHeight(!0),n=e.next();n.length>0;){if("P"==n[0].nodeName&&n.offset().top+n.outerHeight(!0)>t)return n;n=n.next()}return null},this._insertBlockRelative=function(t,n,i){var o=$(t).clone();return e._selectionManager.clearSelection(),$(t).remove(),i?o.insertBefore(n):o.insertAfter(n),o},this._getNearBlock=function(e,t){var n=$(this.current_block).hasClass("mrge-left-side")?"mrge-left-side":"mrge-right-side",i=$.grep(e,function(e){return $(e).hasClass("mrge-content-block")&&$(e).hasClass(n)});return i.length>0?t?$(i).last():$(i).first():null},this._getNearElementForCurrentBlock=function(e,t){return t?$(e).last():$(e).first()},this._getElementsNearCurrentBlock=function(t){var n,i=e._content.children(),o=$(this.current_block).index();return n=t?i.slice(0,o):i.slice(o+1,i.length),$.grep(n,function(e){return!$(e).hasClass("mrge-support-element")})},this._moveDown=function(){var t,n=this._getElementsNearCurrentBlock(!1),i=this._getNearElementForCurrentBlock(n,!1);if(i.length){var o=this._getNearBlock(n,!1);if(o&&this._needToGoToBlock(o,i,!1))o=this._insertBlockRelative(o,this.current_block,!0),t=this._insertBlockRelative(this.current_block,o,!1);else{var r=this._getElementsNearCurrentBlock(!0),a=this._getNearBlock(r,!0);if(a&&this._needToGoFromBlocks(a)){var s=this._getTargetToMoveFromBlocks(a);if(!s)return;t=this._insertBlockRelative(this.current_block,s,!1)}else t=this._insertBlockRelative(this.current_block,i,!1)}}e._selectionManager.clearSelection()},this.hideBlockManager=function(){e._content.find(".mrge-temp-support-element").remove()},this.addBlock=function(t){{var n=e._selectionManager.getCustomSelection(),i=e._selectionManager.isCaret(n),o=e._selectionManager.getTopSelectedElements(n,i);new e.Block(e,o[0],t)}},this.removeBlock=function(){$(this.current_block).detach(),this.hideBlockManager()}},Block:function(e,t,n){if(this.editor=e,this.element=this._formSelf(n),void 0===t){var i=$("<p><br /></p>");i.appendTo(e._content),this.element.insertBefore(i)}else this.element.insertBefore(t)},_blockMethodsInitialize:function(e){this.Block.prototype._formSelf=function(t){var n,i;t.imageUrl?(n=$('<img src="'+t.imageUrl+'">'),n.css("max-width",this.editor.options.block.mediaBlock.width.def),n.css("max-height",this.editor.options.block.mediaBlock.height.def)):t.videoHTML&&(n=$(t.videoHTML),n.attr("src",e._actionSupport.addParamToUrl(n.attr("src"),"wmode","opaque")),n.width(this.editor.options.block.mediaBlock.width.video||this.editor.options.block.mediaBlock.width.def),n.height(this.editor.options.block.mediaBlock.height.video),n.attr("wmode","Opaque"),n.attr("frameborder","0")),i=$('<div class="mrge-content-block mrge-left-side" contenteditable="false"><div class="mrge-content-block-item"></div></div>');var o=this.editor.options.block.mediaBlock.width.def,r=this.editor.options.block.mediaBlock.height.def;return i.css("max-width",o),i.css("max-height",r),i.children().css("max-width",o),i.children().css("max-height",r),i.children().append(n),i}},Builder:function(e){this.editor=e,this.exec=function(){this._setupMainElement(),this._buildToolbox(),this._buildContentField(),this._buildSupportElements()},this._setupMainElement=function(){e.element.width(e.options.width).height(e.options.height).addClass("morrigan-editor")},this._buildToolbox=function(){_formToolboxItem=function(t){var n,i,o=$("<a></a>");return t.view.title&&o.attr("title",t.view.title),t.view.classes&&o.addClass(t.view.classes),t.view.disabledIcon&&o.css("background",t.view.disabledIcon),t.view.text&&o.append($("<span></span>").text(t.view.text).addClass("mrge-action-text")),o.addClass("mrge-disabled mrge-action mrge-action-"+t.name),t.dropdown&&(o.addClass("mrge-action-list"),n=$('<div class="mrge-action-dropdown" style="display: none;"></div>'),t.dropdown.width&&n.width(t.dropdown.width),$(t.dropdown.actionList).each(function(){i=$("<div></div>").text(this.text),this.element=i,n.append(i)}),o.append(n)),e._browser.ie&&(o.attr("unselectable","on"),o.find("*").attr("unselectable","on")),e._actionManager.addAction(t,o),o},_formToolboxBlock=function(t){var n=$("<li></li>");return $(t).each(function(){n.append(_formToolboxItem(e._actions[this]))}),n},_formToolboxLine=function(e){var t=$("<ul></ul>");return $(e).each(function(){t.append(_formToolboxBlock(this))}),t},formToolbox=function(){var t=$('<div class="mrge-toolbox"></div>');return $(e.options.toolbox).each(function(){t.append(_formToolboxLine(this))}),t.append($('<div class="mrge-clear"></div>')),t},e.element.append(formToolbox())},this._buildContentField=function(){contentFieldHeight=function(){var t=e.element.find(".mrge-toolbox").outerHeight(!0);return e.element.height()-t},iframeBodyHeight=function(e){var t=e.contents().find("body"),n=t.outerHeight(!0)-t.height();return e.height()-n},defaultContentFieldContent=function(){return e._browser.ie?"<p></p>":e._browser.ff||e._browser.webkit?"":"<p><br></p>"},setupIframe=function(t){e._window=t.get(0).contentWindow;var n=e._window.document;n.open(),n.write(e.options.doctype),n.write("<html style='cursor: text;height: 100%;'>"),n.write("<head><link href='"+e.options.iframeStyles+"' media='all' rel='stylesheet' type='text/css'></head>"),n.write("<body contenteditable='true' class='mrge-iframe-body'>"+defaultContentFieldContent()+"</body></html>"),n.close(),e._content=t.contents().find("body"),setTimeout(function(){e._content.height(iframeBodyHeight(t))},100),e.options.spellCheck||e._content.attr("spellcheck",!1)};var t=$("<div class='mrge-content' style='height: "+contentFieldHeight()+"px'><iframe frameborder='0' class='mrge-content-iframe'></iframe></div>");e.element.append(t),setupIframe(t.find("iframe"))},this._buildSupportElements=function(){e.element.append("<div class='mrge-support-elements'></div>")}},EventBinder:function(e){this.keyCodesAffectedDomChanges=[8,13,33,34,35,36,37,38,39,40,46],this.editor=e,this.bindDefaultEvents=function(){this._defaultActivateWidgetsEvent(),this._defaultBehaviorEvents()},this._defaultActivateWidgetsEvent=function(){e.element.find("iframe").contents().find("body").on("focus",function(){var t=e._actionManager,n=t.disabledActions.slice();$.each(n,function(e,n){t.enableAction(n)})})},this._defaultBehaviorEvents=function(){var t=this;e._content.on("keydown",function(e){t._defaultBehaviorKeyDownHandler(e)}).on("keyup",function(e){t._defaultBehaviorKeyUpHandler(e)}).on("mouseup",function(e){window.setTimeout(function(){t._defaultBehaviorMouseEvent(e)},10)})},this._defaultBehaviorMouseEvent=function(t){var n=e._selectionManager.getCustomSelection(),i=e._selectionManager.isCaret(n),o=e._selectionManager.getTopSelectedElements(n,i);this._onSelectionChangedHandlers(t,o,i)},this._defaultBehaviorKeyUpHandler=function(t){if(e._browser.ff||e._browser.webkit||-1!=$.inArray(t.keyCode,this.keyCodesAffectedDomChanges)){var n=e._selectionManager.getCustomSelection(),i=e._selectionManager.isCaret(n),o=e._selectionManager.getTopSelectedElements(n,i);if(o[0]&&3!=o[0].nodeType&&"DIV"!=o[0].nodeName||e._window.document.execCommand("formatBlock",!1,"p"),3===o[0].nodeType)return;this._onSelectionChangedHandlers(t,o,i)}},this._onSelectionChangedHandlers=function(t,n,i){$(e._actionManager.selectionChangedSubscribers).each(function(){e._actionManager.actions[this].selectionHandler(e,{topElements:n,isCaret:i},t)})},this._defaultBehaviorKeyDownHandler=function(){},this.bindCustomEvents=function(){var t=this;$(e._actionManager.actions).each(function(){this.config.dropdown?t._bindEventsToDropDown(this):this.config.popup?t._bindEventsToPopupAction(this):t._bindEventsToSimpleAction(this)})},this._bindEventsToPopupAction=function(t){t.element.on("click",function(){t.enabled&&e._popup.showPopup(t)})},this._bindEventsToSimpleAction=function(t){t.element.on("click",function(){t.enabled&&t.onClickHandler(e,t)})},this._bindEventsToDropDown=function(e){var t=this;e.element.on("click",function(){e.enabled&&(e.config.dropdown.shown?e.dropDownHide():e.dropDownShow())}),$(e.config.dropdown.actionList).each(function(){t._bindEventsToDropDownAction(this,e)})},this._bindEventsToDropDownAction=function(t,n){t.element.on("click",function(){t.onClickHandler(e,n)})}},Popup:function(e){this.editor=e,this.currentAction=null,this.element=null,this._formSelf=function(){var t=$("<div class='mrge-popup-wrapper'><div class='mrge-popup-overlay'></div></div>"),n=$("<div class='mrge-popup'><div class='mrge-popup-header'><div class='mrge-popup-box-wrapper'><span class='mrge-header-name'></span><div class='mrge-popup-close fa fa-times'></div></div><div class='mrge-clear'></div></div><div class='mrge-popup-content'><div class='mrge-popup-box-wrapper'></div></div>"),i=$("<div class='mrge-popup-actions'><div class='mrge-popup-box-wrapper'></div></div>");$.each(e.options.popup.actions,function(e){var t=$("<div class='mrge-popup-"+e+" mrge-popup-btn'>"+this.caption+"</div>");this.element=t,i.children(".mrge-popup-box-wrapper").append(t)
5
- }),i.children(".mrge-popup-box-wrapper").append('<div class="mrge-clear"></div>'),n.append(i),t.append(n),e.element.append(t),this.element=t},this._bindMainEvents=function(){var e=this;this.element.on("click",".mrge-popup-close",function(){e.hidePopup()}).on("click",".mrge-popup-cancel",function(){e.hidePopup()})},this._formSelf(),this._bindMainEvents(),this._bindCustomEvents=function(e){e.config.popup.onShow(this.element,this.editor)},this._unbindCustomEvents=function(e){e.config.popup.onHide&&e.config.popup.onHide(this.element)},this.showPopup=function(e){this.currentAction=e,this._configure(e.config.popup),this._bindCustomEvents(e),this._locateAndShow()},this.hidePopup=function(){this._unbindCustomEvents(this.currentAction),this.currentAction=null,this.element.hide()},this._configure=function(t){this.element.find(".mrge-header-name").text(t.title),this.element.find(".mrge-popup").height(t.height);var n=this.element.find(".mrge-popup-content .mrge-popup-box-wrapper");n.empty(),t.customForm?t.customForm(e,n):n.append(t.html),this.element.find(".mrge-popup-actions .mrge-popup-btn.mrge-active").removeClass("mrge-active"),$.each(t.actions,function(){e.options.popup.actions[this].element.addClass("mrge-active")})},this._locateAndShow=function(){var t=this.element.find(".mrge-popup"),n=e.element.height()/2-t.height()/2,i=e.element.width()/2-t.width()/2;n=0>n?0:n,i=0>i?0:i,t.css("top",n),t.css("left",i),this.element.show()}},Uploader:function(e){this.editor=e,this.element=null,this._formSelf=function(){var t=$("<iframe class='mrge-support-iframe' name='mrge-support-iframe'></iframe>");e.element.children(".mrge-support-elements").append(t),this.element=t},this.prepareToLoad=function(){this.element.contents().empty()},this.getData=function(){return this.element.contents().find("body").text()?JSON.parse(this.element.contents().find("body").text()):null},this._formSelf()},Loader:function(e){this.editor=e,this.element=null,this._formSelf=function(){var t=$("<div class='mrge-loader-wrapper'><div class='mrge-loader-background'></div><div class='mrge-loader-icon fa fa-spinner fa-spin'></div></div>");e.element.append(t),this.element=t},this._formSelf(),this.showLoader=function(){this.element.addClass("active")},this.hideLoader=function(){this.element.removeClass("active")}},EditorError:function(e){this.editor=e,this.exec=function(t){e.element.text(t)}},SelectionManager:function(e){this.editor=e,this.getInternalRange=function(){var t;if(e._window.getSelection){if(t=e._window.getSelection(),t.rangeCount)return t.getRangeAt(0)}else if(e._window.document.selection)return e._window.document.selection.createRange();return null},this.restoreInternalRange=function(t){if(null!=t)if(t.select)t.select();else{var n=e._window.getSelection();n.removeAllRanges(),n.addRange(t)}},this.getCustomSelection=function(){var e={},t=this.editor._window;return t.getSelection?e.selection=t.getSelection():e.range=t.document.selection.createRange(),e},this.isLastEmptyPTagSelected=function(e){var t=e.selection;return this.isCaret(e)&&"P"==t.focusNode.nodeName&&"<br>"==t.focusNode.innerHTML&&1==$(t.focusNode).closest("body").children("p").length},this.isCaret=function(e){if(e.range)return 0==e.range.boundingWidth;var t=e.selection;return t.anchorOffset==t.focusOffset&&t.anchorNode==t.focusNode},this.getTopSelectedElements=function(e,t){var n,i,o,r;if(e.selection){if(n=e.selection,null===n.anchorNode)return[];if(i=this._getPreBodyNode(n.anchorNode),null===i)return[];if(t)return[i];o=this._getPreBodyNode(n.focusNode),r=$(i).position().top<$(o).position().top?this._getElementBetween(i,o):this._getElementBetween(o,i)}else r=this._ie8GetTopSelectedElements(e.range);return $.grep(r,function(e){return"DIV"!=e.nodeName})},this._ie8GetTopSelectedElements=function(t){var n=e._content,i=e.element.find("iframe").contents().find("html")[0].scrollTop,o=t.boundingTop+i,r=o+t.boundingHeight,a=n.children(),s=[];return $(a).each(function(){(this.offsetTop>=o||this.offsetTop+this.offsetHeight>o)&&this.offsetTop<r&&s.push(this)}),s},this._getPreBodyNode=function(e){return"BODY"==e.nodeName?null:"BODY"==e.parentNode.nodeName?e:$(e).closest("body > *").get(0)},this._getElementBetween=function(e,t){var n,i;for(n=e,i=[];n!=t;)i.push(n),n=n.nextSibling;return i.push(t),i},this.clearSelection=function(){var t;e._window.getSelection?(t=e._window.getSelection(),t.removeAllRanges()):e._window.document.selection.empty()}},_actionManagerMethodInitialize:function(){this.ActionManager.prototype.enableAction=function(e){var t=this.actions[e];t.actionEnable();var n=$.inArray(e,this.disabledActions);-1!=n&&this.disabledActions.splice(n,1)}},_actionMethodsInitialize:function(){this.Action.prototype.actionEnable=function(){this.element.removeClass("mrge-disabled"),$(this.element).css("background",this.config.view.icon),this.enabled=!0}},_getBrowser:function(){var e={},t=navigator.userAgent;if(-1!=t.indexOf("WebKit"))e.webkit=!0;else if(-1!=t.indexOf("Firefox"))e.ff=!0;else if(-1!=t.indexOf("MSIE")){if(/MSIE\s([\d.]+)/.test(navigator.userAgent)){var n=parseInt(RegExp.$1);8==n?e.ie=8:n>8&&(e.ie=!0)}}else t.indexOf("Trident")&&(e.ie=!0);return e.ie||e.ff||e.webkit||(e.nonSupported=!0),e},_prepare:function(){return this._browser=this._getBrowser(),this._browser.nonSupported?(new this.EditorError(this).exec(this.options.notSupportedMsg),!1):(this._actionMethodsInitialize(),this._actionManagerMethodInitialize(),this._blockMethodsInitialize(this),!0)},_createSupportObjects:function(){this._actionManager=new this.ActionManager(this),this._selectionManager=new this.SelectionManager(this),this._actionSupport=new this.ActionSupport(this)},_createSupportObjectsAfterBuildHTML:function(){this._popup=new this.Popup(this),this._uploader=new this.Uploader(this),this._loader=new this.Loader(this),this._blockManager=new this.BlockManager(this)},_buildHTML:function(){new this.Builder(this).exec()},_bindEvents:function(){var e=new this.EventBinder(this);e.bindDefaultEvents(),e.bindCustomEvents()},_setupForBrowser:function(){this._browser.ie&&$.each(this.element.find("*"),function(){$(this).attr("unselectable","on")})},_create:function(){this._prepare()&&(this._createSupportObjects(),this._buildHTML(),this._createSupportObjectsAfterBuildHTML(),this._bindEvents(),this._setupForBrowser())},html:function(e){if(e){var t=this._content.children();return t.detach(),this._content.append(e).get(0)}var n,i=this._content.clone();return i.find(".mrge-temp-support-element").remove(),i.find("br").remove(),i.find("b").each(function(){n=this.innerHTML,$(this).replaceWith($("<strong></strong>").html(n))}),i.find("i").each(function(){n=this.innerHTML,$(this).replaceWith($("<em></em>").html(n))}),i.html()}});