graphdb-workbench 10.0.0-M2-1 → 10.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (728) hide show
  1. package/README.md +10 -2
  2. package/dist/0.f8448f998a59db17e94e.bundle.js +25 -0
  3. package/dist/1.46d9ecd4119bac145f3b.bundle.js +81 -0
  4. package/dist/10.a26ae97905866618b14e.bundle.js +7 -0
  5. package/dist/100.aef098a33fbb925e0d2d.bundle.js +1 -0
  6. package/dist/101.42eacc63e0fb5834b78a.bundle.js +1 -0
  7. package/dist/102.4f78eeab62aac245879e.bundle.js +1 -0
  8. package/dist/103.f38f3cd69ff610955aaf.bundle.js +1 -0
  9. package/dist/104.2e21f1462021dca17db1.bundle.js +1 -0
  10. package/dist/105.76381cb7984bcbc9ba9a.bundle.js +1 -0
  11. package/dist/106.23e14c6b280756d04533.bundle.js +1 -0
  12. package/dist/107.75e40619cb45972dc39f.bundle.js +1 -0
  13. package/dist/108.f09444e990531d27e0be.bundle.js +1 -0
  14. package/dist/109.ef97393181ee534042d8.bundle.js +1 -0
  15. package/dist/11.0fc995ac096734b915c6.bundle.js +1 -0
  16. package/dist/110.d59b8565d2255a282669.bundle.js +1 -0
  17. package/dist/111.fff9f089f65f01013923.bundle.js +1 -0
  18. package/dist/112.5bd3fcd7c37f1024fe26.bundle.js +1 -0
  19. package/dist/113.2fa29eca15d32deb3320.bundle.js +1 -0
  20. package/dist/114.d78615087abe68db7b2f.bundle.js +1 -0
  21. package/dist/115.558ce3da00d3be87d18a.bundle.js +1 -0
  22. package/dist/116.577aab1d9bafd0053623.bundle.js +1 -0
  23. package/dist/117.c20f037799328c931eba.bundle.js +1 -0
  24. package/dist/118.39c8b47405ab93c40847.bundle.js +1 -0
  25. package/dist/119.19ee7b3ae143f817c5b1.bundle.js +1 -0
  26. package/dist/12.7877dd6008df9acf44e1.bundle.js +1 -0
  27. package/dist/120.b944d5e63424d4307fc8.bundle.js +1 -0
  28. package/dist/121.3a8954e4c885c56a9817.bundle.js +1 -0
  29. package/dist/122.71a8cf0330504672fffc.bundle.js +1 -0
  30. package/dist/123.c6957ecb441d8a09932a.bundle.js +1 -0
  31. package/dist/124.27e85a0284e2ebeb7d6e.bundle.js +1 -0
  32. package/dist/125.9e925ae0dd1217d81d89.bundle.js +1 -0
  33. package/dist/126.a32b57d6108545746ed3.bundle.js +1 -0
  34. package/dist/127.90d1975083eef3d4a715.bundle.js +1 -0
  35. package/dist/128.544f1a82e19dd245c7de.bundle.js +1 -0
  36. package/dist/129.64ec11449e0c734500c2.bundle.js +1 -0
  37. package/dist/13.fe78f15334507bcc08ae.bundle.js +1 -0
  38. package/dist/130.f8e68ac86e17b3622d40.bundle.js +1 -0
  39. package/dist/131.4868fc3a837277c30273.bundle.js +1 -0
  40. package/dist/132.7815ab1168a254cb0d47.bundle.js +1 -0
  41. package/dist/133.f87e1685dd5ed920f9b5.bundle.js +1 -0
  42. package/dist/134.8998ff724a077ecff2ce.bundle.js +1 -0
  43. package/dist/135.c07268699f76ef7a02ff.bundle.js +1 -0
  44. package/dist/136.908f1f6fe3054f99b560.bundle.js +1 -0
  45. package/dist/137.8262ca9736e9818284cd.bundle.js +1 -0
  46. package/dist/138.8c149cad49010a65b3ca.bundle.js +1 -0
  47. package/dist/139.97ee12e7a3c05be03456.bundle.js +1 -0
  48. package/dist/14.0bb211bcdc29c6d8b3b5.bundle.js +29 -0
  49. package/dist/140.6b3c57ffec700081328b.bundle.js +1 -0
  50. package/dist/141.4981056237955a34b2e2.bundle.js +1 -0
  51. package/dist/142.4d60c1795eed3a9570f9.bundle.js +1 -0
  52. package/dist/143.b7057852f7859cf39e75.bundle.js +1 -0
  53. package/dist/144.3f85f8eacae521d52355.bundle.js +1 -0
  54. package/dist/145.9281069e9e77978b640a.bundle.js +1 -0
  55. package/dist/146.51d2987de4defe7df7c7.bundle.js +1 -0
  56. package/dist/147.54016549674d35bc2869.bundle.js +1 -0
  57. package/dist/148.ad95b30f508a0bd02970.bundle.js +1 -0
  58. package/dist/149.8dd1281617389f8c189b.bundle.js +1 -0
  59. package/dist/15.6a74adbd30b4d2930e10.bundle.js +1 -0
  60. package/dist/150.5e0ee4350f8edd0e7b9a.bundle.js +1 -0
  61. package/dist/151.6b81c99a1ec1b184b82d.bundle.js +1 -0
  62. package/dist/152.2e1aa910a68f0086825b.bundle.js +1 -0
  63. package/dist/153.7a64973115bdaec26406.bundle.js +1 -0
  64. package/dist/154.5938248b52830d0a80a2.bundle.js +1 -0
  65. package/dist/155.a4511849c1001c5f2ba6.bundle.js +1 -0
  66. package/dist/156.bbcaf52acb0cecbc6257.bundle.js +1 -0
  67. package/dist/157.51181d03518519f84b5e.bundle.js +1 -0
  68. package/dist/158.640e412f6002ee1d7341.bundle.js +1 -0
  69. package/dist/159.10457cbb053c1315d93a.bundle.js +1 -0
  70. package/dist/16.2f60fbeaccd97aefaae2.bundle.js +1 -0
  71. package/dist/160.c46bfdf09357a4c62a53.bundle.js +1 -0
  72. package/dist/{103.05b86c1b360c05133b49.bundle.js → 161.0f35ee11981f0ea0455f.bundle.js} +1 -2
  73. package/dist/{104.089568ff7c49a29de892.bundle.js → 162.fef28120701e7d200b01.bundle.js} +1 -2
  74. package/dist/{105.81b74220f7fa646e719b.bundle.js → 163.38565d40ac5f71d1c875.bundle.js} +1 -2
  75. package/dist/164.b2116f472aa847618aee.bundle.js +1 -0
  76. package/dist/168.2d4b5a75da5430c73efc.bundle.js +1 -0
  77. package/dist/169.6897f56896e3664e8b53.bundle.js +1 -0
  78. package/dist/17.2bff7856b13fd72e2db4.bundle.js +1 -0
  79. package/dist/170.d5c0d475c5b6ad84ef77.bundle.js +1 -0
  80. package/dist/171.60cdc91b2bf682a20911.bundle.js +1 -0
  81. package/dist/172.1fb9ead3e508a7cfa5f3.bundle.js +1 -0
  82. package/dist/173.95602c81a2692624a015.bundle.js +1 -0
  83. package/dist/174.aac1982e67b5ca1731c1.bundle.js +1 -0
  84. package/dist/175.5e49a28397900168f816.bundle.js +1 -0
  85. package/dist/176.2e6d1a9f4eac4fdd8422.bundle.js +1 -0
  86. package/dist/177.3b6aabf3c4db8519ea74.bundle.js +1 -0
  87. package/dist/178.e10370553beb5c6bb839.bundle.js +1 -0
  88. package/dist/179.784cbd536b8e636c1272.bundle.js +1 -0
  89. package/dist/18.d6be3e6583bf3dacd54f.bundle.js +2 -0
  90. package/dist/180.d37db50f3ce1b3a04a65.bundle.js +1 -0
  91. package/dist/181.f307cabdc4ed7a10ff64.bundle.js +1 -0
  92. package/dist/182.e8fe148e90fcd334b9b9.bundle.js +1 -0
  93. package/dist/183.a086e00d4dc3c7855611.bundle.js +1 -0
  94. package/dist/184.ff8a39692d0ff666c9e6.bundle.js +1 -0
  95. package/dist/185.8b9f0b866e848f8a1aac.bundle.js +1 -0
  96. package/dist/186.798880846274da7033da.bundle.js +1 -0
  97. package/dist/{120.3b0b67fbfa81ec95e044.bundle.js → 187.eb92a35d38294bc21703.bundle.js} +1 -2
  98. package/dist/{121.ff452d05188836228deb.bundle.js → 188.641582484af80415d29a.bundle.js} +1 -2
  99. package/dist/189.7ccbb0ef67513ae7001a.bundle.js +1 -0
  100. package/dist/19.c2a5c3e7a49a4acba486.bundle.js +2 -0
  101. package/dist/{123.289bb9a87ce416004c0a.bundle.js → 190.a3609218c5d8e873a46f.bundle.js} +1 -2
  102. package/dist/191.4c817606bf66c16d9ad1.bundle.js +1 -0
  103. package/dist/{125.51ff26fe7687752811e4.bundle.js → 192.21f366a1ea7e6905f120.bundle.js} +1 -2
  104. package/dist/193.4d40b788bd7ddcf16788.bundle.js +1 -0
  105. package/dist/{127.4d0a2164fb95df43ea22.bundle.js → 194.0170093f1daf20e82b5f.bundle.js} +1 -2
  106. package/dist/{128.c7a3530622ede2f34e72.bundle.js → 195.d7d8af61458f9416878f.bundle.js} +1 -2
  107. package/dist/{129.2d32313059ae96dba010.bundle.js → 196.6e6b7589cd1342a0b2b5.bundle.js} +1 -2
  108. package/dist/{130.7302112cf14a10bd1306.bundle.js → 197.c071fa1fe9e081a3b053.bundle.js} +1 -2
  109. package/dist/{131.eb262b5100305bdc23ee.bundle.js → 198.3c5ca9ac5a745b4b23a1.bundle.js} +1 -2
  110. package/dist/199.00ac5221a334189ea09a.bundle.js +1 -0
  111. package/dist/2.78b4e53269171c9c08a5.bundle.js +1 -0
  112. package/dist/20.8fd969e3860ddffedcc3.bundle.js +1 -0
  113. package/dist/{133.f855496341ba657eb673.bundle.js → 200.aa3f4dcf9cf98409dbf5.bundle.js} +1 -2
  114. package/dist/201.a1b147e78f43a3bc99c3.bundle.js +1 -0
  115. package/dist/202.20e71b18f57e7d234ff0.bundle.js +1 -0
  116. package/dist/{136.74f131c98a163b48e3df.bundle.js → 203.0219c2ba2d4fe4881af2.bundle.js} +1 -2
  117. package/dist/204.cc169603e18b84e7e65b.bundle.js +1 -0
  118. package/dist/{138.9111fe731587313e4574.bundle.js → 205.99fb3c89cd9b9183ddbf.bundle.js} +1 -2
  119. package/dist/206.43b04d2170165e13353c.bundle.js +1 -0
  120. package/dist/207.798c195e1d7d3f301131.bundle.js +1 -0
  121. package/dist/208.34f042066a757f4fd8c0.bundle.js +1 -0
  122. package/dist/{142.5ced0a8e7a08aea7988f.bundle.js → 209.288844c6a42ff4d5685a.bundle.js} +1 -2
  123. package/dist/21.c981976c6528073c0a2f.bundle.js +1 -0
  124. package/dist/210.1ac38e393ca959703d4b.bundle.js +1 -0
  125. package/dist/211.d2721b9785e609e2f817.bundle.js +1 -0
  126. package/dist/212.b6b19c939f21132b451c.bundle.js +1 -0
  127. package/dist/213.5a5116f764e6357e53ab.bundle.js +1 -0
  128. package/dist/{147.f6bd445276a200981cff.bundle.js → 214.a2640be51c42d820bb83.bundle.js} +1 -2
  129. package/dist/215.209396a71f130477e2b3.bundle.js +1 -0
  130. package/dist/216.16e2e982acc750b4045a.bundle.js +1 -0
  131. package/dist/217.8540eb1d1a0946e72dbf.bundle.js +1 -0
  132. package/dist/218.ef33580c82d20f39f75f.bundle.js +1 -0
  133. package/dist/219.1652bc940cdd0088dc18.bundle.js +1 -0
  134. package/dist/22.9d339503774f4f6c0a8b.bundle.js +1 -0
  135. package/dist/{153.ebc378a7a60222b69484.bundle.js → 220.f8f9c348b1fc0cc72bd6.bundle.js} +1 -2
  136. package/dist/221.b18a92f0ba880edaebbf.bundle.js +1 -0
  137. package/dist/222.a52ebecd1d5201437ebe.bundle.js +1 -0
  138. package/dist/23.87ca8226d464e3699b8e.bundle.js +3 -0
  139. package/dist/24.9076b75f45ce0579f7be.bundle.js +1 -0
  140. package/dist/25.073791b8dd02c5b31183.bundle.js +1 -0
  141. package/dist/26.6e06be7172a866ad45f9.bundle.js +2 -0
  142. package/dist/27.5152c2a1f3b1369e21b0.bundle.js +1 -0
  143. package/dist/28.90b784e728e3d5e4c6aa.bundle.js +1 -0
  144. package/dist/29.e2309b858706718f1732.bundle.js +1 -0
  145. package/dist/3.cf89087c137e759ecd19.bundle.js +27 -0
  146. package/dist/30.32fb84930c42bae43a74.bundle.js +1 -0
  147. package/dist/31.31b7b4bd073b82c09fda.bundle.js +1 -0
  148. package/dist/32.6725d94946764db833b8.bundle.js +1 -0
  149. package/dist/33.fa9f0e662060f2e97267.bundle.js +1 -0
  150. package/dist/34.af22bc6d5ed2bcb72a09.bundle.js +1 -0
  151. package/dist/35.e601e19e63c6ddaf2484.bundle.js +1 -0
  152. package/dist/36.df47a70d8efbf1cd033b.bundle.js +1 -0
  153. package/dist/37.085cdb373f74d55eee07.bundle.js +2 -0
  154. package/dist/38.fc172c7b0d24ab0f8a35.bundle.js +1 -0
  155. package/dist/39.5ca9fa51ec3c63459317.bundle.js +1 -0
  156. package/dist/4.851f9ade6202116ecfb9.bundle.js +1 -0
  157. package/dist/40.309ec5212fd53fe696bb.bundle.js +1 -0
  158. package/dist/41.3870740f1d24570cb415.bundle.js +1 -0
  159. package/dist/42.b926c2c8620df5c7ed6d.bundle.js +1 -0
  160. package/dist/43.d4551e1f6cac0a1a77e5.bundle.js +1 -0
  161. package/dist/44.46c9e2d54a9f07d78368.bundle.js +1 -0
  162. package/dist/45.a916daee1f0c6873c890.bundle.js +1 -0
  163. package/dist/46.4f57238bd032edc81d6d.bundle.js +1 -0
  164. package/dist/47.4fbfdaa63628c501a30c.bundle.js +1 -0
  165. package/dist/48.3fbd50adcb0c7dd7ec60.bundle.js +1 -0
  166. package/dist/49.0707795b3b6e40387da8.bundle.js +1 -0
  167. package/dist/5.7cfbc07050f137932ffe.bundle.js +1 -0
  168. package/dist/50.8f6cc698b42c96f2b41f.bundle.js +1 -0
  169. package/dist/51.514a339efd6cd11db0f8.bundle.js +1 -0
  170. package/dist/52.410a7d8b4cb433fb24ca.bundle.js +1 -0
  171. package/dist/53.174d18435f7bf3bf05a0.bundle.js +1 -0
  172. package/dist/54.7cb3bd3ae8055e350629.bundle.js +1 -0
  173. package/dist/55.f0762e755ba58cbaac26.bundle.js +1 -0
  174. package/dist/56.3b0312e77f8607a4d957.bundle.js +1 -0
  175. package/dist/57.dfb7a710da8ca09c725b.bundle.js +1 -0
  176. package/dist/58.ac0fa95bbbe4b2dfb0fc.bundle.js +1 -0
  177. package/dist/59.273ffcd48e856d2752ff.bundle.js +1 -0
  178. package/dist/6.c5eea752e1f541f494e8.bundle.js +1 -0
  179. package/dist/60.00a29320ea162becd718.bundle.js +1 -0
  180. package/dist/61.3794de8b6d022738bafa.bundle.js +1 -0
  181. package/dist/62.cf39ad55adb1616560ec.bundle.js +1 -0
  182. package/dist/63.8880f667c958d12b338b.bundle.js +1 -0
  183. package/dist/64.fdd90fedc8a5dc3cacaf.bundle.js +1 -0
  184. package/dist/65.cdc961a8042c385c49c6.bundle.js +1 -0
  185. package/dist/66.c3b906de2fcf69089b7b.bundle.js +1 -0
  186. package/dist/67.9c851e5930459a5f5903.bundle.js +1 -0
  187. package/dist/68.05bba948c414a1e21c8f.bundle.js +1 -0
  188. package/dist/69.c5561c83fe410ea9a908.bundle.js +1 -0
  189. package/dist/7.14f008aaac190939acd3.bundle.js +7 -0
  190. package/dist/70.f2557c225be5923bab24.bundle.js +1 -0
  191. package/dist/71.e9c3c5ccc70f443c97cf.bundle.js +1 -0
  192. package/dist/72.0780a8424293909f94a4.bundle.js +1 -0
  193. package/dist/73.57e88cee0af3f67aee77.bundle.js +1 -0
  194. package/dist/74.48e90caf0b5ecd351f1d.bundle.js +1 -0
  195. package/dist/75.c75a824264d0e67421ed.bundle.js +1 -0
  196. package/dist/76.2ad0f5373462bc70bebf.bundle.js +1 -0
  197. package/dist/77.303a075d21928354102c.bundle.js +1 -0
  198. package/dist/78.66f3e9630550f20287ff.bundle.js +1 -0
  199. package/dist/79.29d39a29721f936ae688.bundle.js +1 -0
  200. package/dist/8.b5e29f80f8a5766d70d5.bundle.js +2 -0
  201. package/dist/80.8af0388db859fcc9fbf3.bundle.js +1 -0
  202. package/dist/{47.686e599732ae6f41120c.bundle.js → 81.2ff1f5047ab4e0591585.bundle.js} +1 -2
  203. package/dist/82.27bb51dfeb4898504e96.bundle.js +1 -0
  204. package/dist/83.a59d34bc50cf323af43d.bundle.js +1 -0
  205. package/dist/84.a4ee7bb5d3ed2e6ead5e.bundle.js +1 -0
  206. package/dist/{51.895a3dacdc3a8eaee275.bundle.js → 85.1f1b07562fbf97ab3e11.bundle.js} +1 -2
  207. package/dist/86.637667a4555ae621aff0.bundle.js +1 -0
  208. package/dist/87.b76338a62297ad83960b.bundle.js +1 -0
  209. package/dist/88.532e7295b49b1071d45c.bundle.js +1 -0
  210. package/dist/89.90bb1cf65f183ecce47c.bundle.js +1 -0
  211. package/dist/9.610b595b60a0fc51466a.bundle.js +1 -0
  212. package/dist/90.683c4d5b142356f274ef.bundle.js +1 -0
  213. package/dist/{56.91947e80d8e04223ac58.bundle.js → 91.2437dfc2ea1bc89f53f3.bundle.js} +1 -2
  214. package/dist/92.a12cfd3b602e98b344de.bundle.js +1 -0
  215. package/dist/93.a5cb6192d32cb016bb60.bundle.js +1 -0
  216. package/dist/94.f6a3e7628449796419b6.bundle.js +1 -0
  217. package/dist/95.15f0e472c49c81a68c3a.bundle.js +1 -0
  218. package/dist/96.2bf3b75fb0efb6b9e7e8.bundle.js +1 -0
  219. package/dist/97.bd1988af419f7373b569.bundle.js +1 -0
  220. package/dist/98.060c6842b3a8ed94dd20.bundle.js +1 -0
  221. package/dist/{64.ac922cb38c3ff6c431fb.bundle.js → 99.6360b70da56083cd76fe.bundle.js} +1 -2
  222. package/dist/bundle.39b836d40f0926aeec16.bundle.js +91 -0
  223. package/dist/css/aclmanagement.css +114 -0
  224. package/dist/css/angular-tooltips.css +144 -0
  225. package/dist/css/autocomplete-select.css +62 -0
  226. package/dist/css/backup-and-restore.css +7 -0
  227. package/dist/css/bootstrap-graphdb-theme-dark-auto.css +36 -0
  228. package/dist/css/bootstrap-graphdb-theme.css +514 -252
  229. package/dist/css/clustermanagement.css +145 -266
  230. package/dist/css/common.css +105 -0
  231. package/dist/css/dependencies.css +4 -4
  232. package/dist/css/domain-range-graph.css +3 -3
  233. package/dist/css/explore.css +7 -1
  234. package/dist/css/export.css +13 -9
  235. package/dist/css/find.css +2 -3
  236. package/dist/css/fonts/icons.eot +0 -0
  237. package/dist/css/fonts/icons.svg +14 -5
  238. package/dist/css/fonts/icons.ttf +0 -0
  239. package/dist/css/fonts/icons.woff +0 -0
  240. package/dist/css/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600.woff +0 -0
  241. package/dist/css/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600.woff2 +0 -0
  242. package/dist/css/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600italic.woff +0 -0
  243. package/dist/css/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600italic.woff2 +0 -0
  244. package/dist/css/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-italic.woff +0 -0
  245. package/dist/css/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-italic.woff2 +0 -0
  246. package/dist/css/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-regular.woff +0 -0
  247. package/dist/css/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-regular.woff2 +0 -0
  248. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300.woff +0 -0
  249. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300.woff2 +0 -0
  250. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300italic.woff +0 -0
  251. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300italic.woff2 +0 -0
  252. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.woff +0 -0
  253. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.woff2 +0 -0
  254. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500italic.woff +0 -0
  255. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500italic.woff2 +0 -0
  256. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-italic.woff +0 -0
  257. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-italic.woff2 +0 -0
  258. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff +0 -0
  259. package/dist/css/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2 +0 -0
  260. package/dist/css/graphs-config.css +4 -4
  261. package/dist/css/graphs-vizualizations.css +11 -10
  262. package/dist/css/guides.css +9 -0
  263. package/dist/css/jmx.css +22 -0
  264. package/dist/css/lib/angular-xeditable/xeditable.min.css +2 -2
  265. package/dist/css/new-sparql.css +68 -2
  266. package/dist/css/operations-statuses-monitor.css +111 -0
  267. package/dist/css/plugins.css +7 -18
  268. package/dist/css/rdf-class-hierarchy-labels.css +2 -2
  269. package/dist/css/rdf-class-hierarchy.css +3 -3
  270. package/dist/css/rdf-details-side-panel.css +8 -1
  271. package/dist/css/rdf-resource-search.css +5 -2
  272. package/dist/css/repositories.css +73 -31
  273. package/dist/css/repository.create.css +14 -4
  274. package/dist/css/shepherd-custom.css +80 -0
  275. package/dist/css/workbench-custom.css +54 -14
  276. package/dist/css/yasr.custom.css +28 -6
  277. package/dist/font/{icons.f404525bf0491c43fc1c35fc43fe14d8.eot → icons.23e96f215ba03e98233de883d2c30b60.eot} +0 -0
  278. package/dist/i18n/locale-en.json +488 -129
  279. package/dist/i18n/locale-fr.json +602 -261
  280. package/dist/icon.png +0 -0
  281. package/dist/img/{graphdb-logo-sq.75ddb875d9a986a6ac944450ae134725.svg → graphdb-logo-sq.3a5fb4b3f1e0e248dc308da1bf4de9f8.svg} +4 -4
  282. package/dist/img/{graphdb-logo.cb18d544b9cf2eb6062daa81bdb1f850.svg → graphdb-logo.741abf3e3881e1566e4504c9f00b91c0.svg} +3 -4
  283. package/dist/img/{graphdb-small.635110bdf15de2ad589b6e3fdaa75887.svg → graphdb-small.5f94ee13e65870be1db31bb89e6deded.svg} +6 -6
  284. package/dist/img/graphdb-splash.1ef2940889acddc03c7defb3f9f41f8d.svg +1 -0
  285. package/dist/img/{icons.2271b2cdd5a3d1037d80bf831f4918cc.svg → icons.ab6168834b8775f511d09c8fad540b27.svg} +14 -5
  286. package/dist/index.html +87 -85
  287. package/dist/js/angular/autocomplete/templates/modal/add-label.html +9 -8
  288. package/dist/js/angular/chatgpt/templates/chat.html +113 -0
  289. package/dist/js/angular/chatgpt/templates/chatInfo.html +11 -0
  290. package/dist/js/angular/chatgpt/templates/modal/settings.html +61 -0
  291. package/dist/js/angular/clustermanagement/templates/modal/add-nodes-dialog.html +67 -0
  292. package/dist/js/angular/clustermanagement/templates/modal/cluster-create-dialog.html +173 -0
  293. package/dist/js/angular/clustermanagement/templates/modal/cluster-delete-dialog.html +9 -14
  294. package/dist/js/angular/clustermanagement/templates/modal/cluster-edit-dialog.html +118 -0
  295. package/dist/js/angular/clustermanagement/templates/modal/remove-nodes-dialog.html +39 -0
  296. package/dist/js/angular/clustermanagement/templates/modal/replace-nodes-dialog.html +86 -0
  297. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +18 -0
  298. package/dist/js/angular/core/directives/languageselector/templates/languageSelector.html +9 -7
  299. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +57 -0
  300. package/dist/js/angular/core/directives/queryeditor/templates/query-editor.html +44 -56
  301. package/dist/js/angular/core/directives/queryeditor/templates/query-sample.html +11 -11
  302. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +4 -6
  303. package/dist/js/angular/core/templates/core-errors.html +27 -18
  304. package/dist/js/angular/core/templates/inactive-plugin-warning-page.html +1 -2
  305. package/dist/js/angular/core/templates/modal/copy-to-clipboard-modal.html +9 -10
  306. package/dist/js/angular/core/templates/modal/modal-warning.html +1 -1
  307. package/dist/js/angular/core/templates/search-resource-input.html +9 -9
  308. package/dist/js/angular/externalsync/templates/deleteConnector.html +5 -5
  309. package/dist/js/angular/graphexplore/templates/modal/save-graph.html +10 -11
  310. package/dist/js/angular/graphexplore/templates/rdfsCommentLabelTemplate.html +4 -6
  311. package/dist/js/angular/graphexplore/templates/searchIconInputTemplate.html +5 -7
  312. package/dist/js/angular/import/templates/filesTable.html +15 -15
  313. package/dist/js/angular/import/templates/settingsModal.html +231 -231
  314. package/dist/js/angular/import/templates/textSnippet.html +4 -4
  315. package/dist/js/angular/import/templates/urlImport.html +7 -5
  316. package/dist/js/angular/repositories/templates/fedx-repo.html +53 -49
  317. package/dist/js/angular/repositories/templates/ontop-repo.html +191 -60
  318. package/dist/js/angular/security/templates/modal/default-authorities.html +12 -12
  319. package/dist/js/angular/security/templates/user.html +102 -41
  320. package/dist/js/angular/security/templates/users.html +24 -17
  321. package/dist/js/angular/settings/modal/location-settings.html +17 -18
  322. package/dist/js/angular/settings/modal/validate-license.html +19 -6
  323. package/dist/js/angular/templates/graphdb-small.svg +6 -6
  324. package/dist/js/angular/templates/modal/add-fedx-remote-repo.html +17 -15
  325. package/dist/js/angular/templates/modal/add-location.html +18 -22
  326. package/dist/js/angular/templates/modal/edit-location.html +11 -11
  327. package/dist/js/angular/templates/modal/editRepoFile.html +2 -2
  328. package/dist/js/angular/templates/modal/upload-repository-config.html +2 -2
  329. package/dist/js/angular/templates/repositorySize.html +7 -1
  330. package/dist/js/lib/angucomplete-alt/angucomplete-alt.css +2 -2
  331. package/dist/js/lib/rzslider/rzslider.min.css +1 -1
  332. package/dist/license-checker-static.json +128 -0
  333. package/dist/license-checker.json +872 -0
  334. package/dist/main.3ac2b4b19f56209c6467.css +1 -0
  335. package/dist/main.948c3b96766ce09e145b.bundle.js +1 -0
  336. package/dist/pages/aclmanagement.html +177 -0
  337. package/dist/pages/autocomplete.html +16 -12
  338. package/dist/pages/choose-repository-type.html +8 -8
  339. package/dist/pages/cluster-management/clusterInfo.html +160 -138
  340. package/dist/pages/connectorsInfo.html +23 -18
  341. package/dist/pages/create-index.html +18 -18
  342. package/dist/pages/createConnector.html +137 -137
  343. package/dist/pages/dependencies.html +23 -31
  344. package/dist/pages/domainRangeInfo.html +16 -19
  345. package/dist/pages/edit.html +15 -15
  346. package/dist/pages/explore.html +22 -25
  347. package/dist/pages/export.html +38 -39
  348. package/dist/pages/find.html +3 -3
  349. package/dist/pages/graph-config/saveGraphConfig.html +43 -43
  350. package/dist/pages/graphs-visualizations.html +71 -78
  351. package/dist/pages/guides.html +60 -0
  352. package/dist/pages/home.html +46 -28
  353. package/dist/pages/import.html +11 -10
  354. package/dist/pages/info.html +18 -18
  355. package/dist/pages/jdbc-create.html +48 -46
  356. package/dist/pages/jdbc.html +4 -4
  357. package/dist/pages/licenseInfo.html +66 -48
  358. package/dist/pages/login.html +5 -6
  359. package/dist/pages/monitor/backup-and-restore.html +80 -0
  360. package/dist/pages/monitor/queries.html +7 -8
  361. package/dist/pages/monitor/resources.html +213 -79
  362. package/dist/pages/namespaces.html +22 -21
  363. package/dist/pages/plugins.html +9 -10
  364. package/dist/pages/rdfClassHierarchyInfo.html +31 -35
  365. package/dist/pages/rdfrank.html +25 -27
  366. package/dist/pages/registerLicenseInfo.html +10 -12
  367. package/dist/pages/repositories.html +170 -193
  368. package/dist/pages/repository.html +124 -58
  369. package/dist/pages/similarity-indexes.html +18 -18
  370. package/dist/pages/sparql-template-create.html +30 -29
  371. package/dist/pages/sparql-templates.html +4 -4
  372. package/dist/pages/sparql.html +11 -11
  373. package/dist/pages/ux-test1.html +102 -0
  374. package/dist/pages/ux-test2.html +17 -0
  375. package/dist/pages/webapi.html +4 -4
  376. package/dist/plugin-registry.js +14 -0
  377. package/dist/plugins.js +1967 -84
  378. package/dist/res/sparql/keyboard-shortcuts.html +7 -1
  379. package/dist/res/swagger/css/onto-theme.css +8 -0
  380. package/dist/res/swagger/css/reset.css +1 -2
  381. package/dist/res/swagger/css/screen.css +6 -15
  382. package/dist/res/swagger/fonts/icons.woff +0 -0
  383. package/dist/res/swagger/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600.woff +0 -0
  384. package/dist/res/swagger/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600.woff2 +0 -0
  385. package/dist/res/swagger/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600italic.woff +0 -0
  386. package/dist/res/swagger/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600italic.woff2 +0 -0
  387. package/dist/res/swagger/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-italic.woff +0 -0
  388. package/dist/res/swagger/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-italic.woff2 +0 -0
  389. package/dist/res/swagger/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-regular.woff +0 -0
  390. package/dist/res/swagger/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-regular.woff2 +0 -0
  391. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300.woff +0 -0
  392. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300.woff2 +0 -0
  393. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300italic.woff +0 -0
  394. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300italic.woff2 +0 -0
  395. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.woff +0 -0
  396. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.woff2 +0 -0
  397. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500italic.woff +0 -0
  398. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500italic.woff2 +0 -0
  399. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-italic.woff +0 -0
  400. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-italic.woff2 +0 -0
  401. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff +0 -0
  402. package/dist/res/swagger/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2 +0 -0
  403. package/dist/res/swagger/fonts/rubik-italic.woff +0 -0
  404. package/dist/res/swagger/fonts/rubik-italic.woff2 +0 -0
  405. package/dist/res/swagger/fonts/rubik-light.woff +0 -0
  406. package/dist/res/swagger/fonts/rubik-light.woff2 +0 -0
  407. package/dist/res/swagger/fonts/rubik-lightitalic.woff +0 -0
  408. package/dist/res/swagger/fonts/rubik-lightitalic.woff2 +0 -0
  409. package/dist/res/swagger/fonts/rubik-medium.woff +0 -0
  410. package/dist/res/swagger/fonts/rubik-medium.woff2 +0 -0
  411. package/dist/res/swagger/fonts/rubik-mediumitalic.woff +0 -0
  412. package/dist/res/swagger/fonts/rubik-mediumitalic.woff2 +0 -0
  413. package/dist/res/swagger/fonts/rubik-regular.woff +0 -0
  414. package/dist/res/swagger/fonts/rubik-regular.woff2 +0 -0
  415. package/dist/res/swagger/index.html +27 -25
  416. package/dist/vendor.7b6ede99ef82acd3dcf5.bundle.js +27 -0
  417. package/dist/{vendor.4ba46e62f4d43dab5e82.css → vendor.d1c629ceaacea40a5f4a.css} +1 -1
  418. package/package.json +13 -9
  419. package/dist/0.32d0f91ca9c8d09fb6f1.bundle.js +0 -82
  420. package/dist/0.32d0f91ca9c8d09fb6f1.bundle.js.map +0 -1
  421. package/dist/1.6300131e72a9f28f9df3.bundle.js +0 -27
  422. package/dist/1.6300131e72a9f28f9df3.bundle.js.map +0 -1
  423. package/dist/10.bb0713b18c3e55445fa7.bundle.js +0 -2
  424. package/dist/10.bb0713b18c3e55445fa7.bundle.js.map +0 -1
  425. package/dist/100.acbece8e389effbcfa2e.bundle.js +0 -2
  426. package/dist/100.acbece8e389effbcfa2e.bundle.js.map +0 -1
  427. package/dist/101.abc28aeafc8c037b80dc.bundle.js +0 -2
  428. package/dist/101.abc28aeafc8c037b80dc.bundle.js.map +0 -1
  429. package/dist/102.236df15ec49946c8799a.bundle.js +0 -2
  430. package/dist/102.236df15ec49946c8799a.bundle.js.map +0 -1
  431. package/dist/103.05b86c1b360c05133b49.bundle.js.map +0 -1
  432. package/dist/104.089568ff7c49a29de892.bundle.js.map +0 -1
  433. package/dist/105.81b74220f7fa646e719b.bundle.js.map +0 -1
  434. package/dist/106.5de7943f8a3adda97372.bundle.js +0 -2
  435. package/dist/106.5de7943f8a3adda97372.bundle.js.map +0 -1
  436. package/dist/11.288d37db1902f00f7c8e.bundle.js +0 -2
  437. package/dist/11.288d37db1902f00f7c8e.bundle.js.map +0 -1
  438. package/dist/110.5a553b21d45a64e7e321.bundle.js +0 -2
  439. package/dist/110.5a553b21d45a64e7e321.bundle.js.map +0 -1
  440. package/dist/111.04e34833a2c4fc227899.bundle.js +0 -2
  441. package/dist/111.04e34833a2c4fc227899.bundle.js.map +0 -1
  442. package/dist/112.b2bdfd64c50509d05503.bundle.js +0 -2
  443. package/dist/112.b2bdfd64c50509d05503.bundle.js.map +0 -1
  444. package/dist/113.b386b036c2a3d9077f64.bundle.js +0 -2
  445. package/dist/113.b386b036c2a3d9077f64.bundle.js.map +0 -1
  446. package/dist/114.0768e042a8e6ec856942.bundle.js +0 -2
  447. package/dist/114.0768e042a8e6ec856942.bundle.js.map +0 -1
  448. package/dist/115.374b221f284e8755ef31.bundle.js +0 -2
  449. package/dist/115.374b221f284e8755ef31.bundle.js.map +0 -1
  450. package/dist/116.ca9d40889c222f47c45f.bundle.js +0 -2
  451. package/dist/116.ca9d40889c222f47c45f.bundle.js.map +0 -1
  452. package/dist/117.92f7630bfb95444a87e8.bundle.js +0 -2
  453. package/dist/117.92f7630bfb95444a87e8.bundle.js.map +0 -1
  454. package/dist/118.7e28dcfd80b93a705d71.bundle.js +0 -2
  455. package/dist/118.7e28dcfd80b93a705d71.bundle.js.map +0 -1
  456. package/dist/119.e3a038ffb960ed3661fe.bundle.js +0 -2
  457. package/dist/119.e3a038ffb960ed3661fe.bundle.js.map +0 -1
  458. package/dist/12.9004ab127289745129a4.bundle.js +0 -4
  459. package/dist/12.9004ab127289745129a4.bundle.js.map +0 -1
  460. package/dist/120.3b0b67fbfa81ec95e044.bundle.js.map +0 -1
  461. package/dist/121.ff452d05188836228deb.bundle.js.map +0 -1
  462. package/dist/122.1b8056c745358fa2f6cb.bundle.js +0 -2
  463. package/dist/122.1b8056c745358fa2f6cb.bundle.js.map +0 -1
  464. package/dist/123.289bb9a87ce416004c0a.bundle.js.map +0 -1
  465. package/dist/124.75965fcb93d0fe988609.bundle.js +0 -2
  466. package/dist/124.75965fcb93d0fe988609.bundle.js.map +0 -1
  467. package/dist/125.51ff26fe7687752811e4.bundle.js.map +0 -1
  468. package/dist/126.b89a0728154793be4eb9.bundle.js +0 -2
  469. package/dist/126.b89a0728154793be4eb9.bundle.js.map +0 -1
  470. package/dist/127.4d0a2164fb95df43ea22.bundle.js.map +0 -1
  471. package/dist/128.c7a3530622ede2f34e72.bundle.js.map +0 -1
  472. package/dist/129.2d32313059ae96dba010.bundle.js.map +0 -1
  473. package/dist/13.897f9af290de9fbd43bb.bundle.js +0 -16
  474. package/dist/13.897f9af290de9fbd43bb.bundle.js.map +0 -1
  475. package/dist/130.7302112cf14a10bd1306.bundle.js.map +0 -1
  476. package/dist/131.eb262b5100305bdc23ee.bundle.js.map +0 -1
  477. package/dist/132.264b9ebf860e308417ad.bundle.js +0 -2
  478. package/dist/132.264b9ebf860e308417ad.bundle.js.map +0 -1
  479. package/dist/133.f855496341ba657eb673.bundle.js.map +0 -1
  480. package/dist/134.91de2ab11c49967200ad.bundle.js +0 -2
  481. package/dist/134.91de2ab11c49967200ad.bundle.js.map +0 -1
  482. package/dist/135.82e48e81e60b2ab89e04.bundle.js +0 -2
  483. package/dist/135.82e48e81e60b2ab89e04.bundle.js.map +0 -1
  484. package/dist/136.74f131c98a163b48e3df.bundle.js.map +0 -1
  485. package/dist/137.89253235e0e48f86534b.bundle.js +0 -2
  486. package/dist/137.89253235e0e48f86534b.bundle.js.map +0 -1
  487. package/dist/138.9111fe731587313e4574.bundle.js.map +0 -1
  488. package/dist/139.642cab70149cdfc8c034.bundle.js +0 -2
  489. package/dist/139.642cab70149cdfc8c034.bundle.js.map +0 -1
  490. package/dist/14.3c22be70e13b5347940a.bundle.js +0 -3
  491. package/dist/14.3c22be70e13b5347940a.bundle.js.map +0 -1
  492. package/dist/140.8fcbd3b16a54b9ca5d80.bundle.js +0 -2
  493. package/dist/140.8fcbd3b16a54b9ca5d80.bundle.js.map +0 -1
  494. package/dist/141.09939d5f25d69d9e1bdd.bundle.js +0 -2
  495. package/dist/141.09939d5f25d69d9e1bdd.bundle.js.map +0 -1
  496. package/dist/142.5ced0a8e7a08aea7988f.bundle.js.map +0 -1
  497. package/dist/143.1bd6e2941d5c9fdc9e77.bundle.js +0 -2
  498. package/dist/143.1bd6e2941d5c9fdc9e77.bundle.js.map +0 -1
  499. package/dist/144.34dd1b710f93da283e39.bundle.js +0 -2
  500. package/dist/144.34dd1b710f93da283e39.bundle.js.map +0 -1
  501. package/dist/145.832e90a54396296da91b.bundle.js +0 -2
  502. package/dist/145.832e90a54396296da91b.bundle.js.map +0 -1
  503. package/dist/146.a4ab1f2f5177d9e27861.bundle.js +0 -2
  504. package/dist/146.a4ab1f2f5177d9e27861.bundle.js.map +0 -1
  505. package/dist/147.f6bd445276a200981cff.bundle.js.map +0 -1
  506. package/dist/148.1c23268b87514b7220b3.bundle.js +0 -2
  507. package/dist/148.1c23268b87514b7220b3.bundle.js.map +0 -1
  508. package/dist/149.82fc16905f1377c6610a.bundle.js +0 -2
  509. package/dist/149.82fc16905f1377c6610a.bundle.js.map +0 -1
  510. package/dist/15.ba4fe6f57951d2f73adc.bundle.js +0 -2
  511. package/dist/15.ba4fe6f57951d2f73adc.bundle.js.map +0 -1
  512. package/dist/150.6d8e3bb0cbc5774322d9.bundle.js +0 -2
  513. package/dist/150.6d8e3bb0cbc5774322d9.bundle.js.map +0 -1
  514. package/dist/151.c752cbb4d5f9299df813.bundle.js +0 -2
  515. package/dist/151.c752cbb4d5f9299df813.bundle.js.map +0 -1
  516. package/dist/152.78d7840c4b8f93748bfe.bundle.js +0 -2
  517. package/dist/152.78d7840c4b8f93748bfe.bundle.js.map +0 -1
  518. package/dist/153.ebc378a7a60222b69484.bundle.js.map +0 -1
  519. package/dist/154.4452ad65074e44967389.bundle.js +0 -2
  520. package/dist/154.4452ad65074e44967389.bundle.js.map +0 -1
  521. package/dist/155.12819130f26753e109ad.bundle.js +0 -2
  522. package/dist/155.12819130f26753e109ad.bundle.js.map +0 -1
  523. package/dist/16.a236b38d63123b1a3c61.bundle.js +0 -4
  524. package/dist/16.a236b38d63123b1a3c61.bundle.js.map +0 -1
  525. package/dist/17.d8d59fa7fbb3b422fdf8.bundle.js +0 -2
  526. package/dist/17.d8d59fa7fbb3b422fdf8.bundle.js.map +0 -1
  527. package/dist/18.bc2da9ff57be136ef082.bundle.js +0 -2
  528. package/dist/18.bc2da9ff57be136ef082.bundle.js.map +0 -1
  529. package/dist/19.19811699b6e54f19f71e.bundle.js +0 -3
  530. package/dist/19.19811699b6e54f19f71e.bundle.js.map +0 -1
  531. package/dist/2.fb2f97f5c543a24296f6.bundle.js +0 -2
  532. package/dist/2.fb2f97f5c543a24296f6.bundle.js.map +0 -1
  533. package/dist/20.df3652981fc73c6a8b8c.bundle.js +0 -2
  534. package/dist/20.df3652981fc73c6a8b8c.bundle.js.map +0 -1
  535. package/dist/21.b7fbdf3c3b22b578928c.bundle.js +0 -2
  536. package/dist/21.b7fbdf3c3b22b578928c.bundle.js.map +0 -1
  537. package/dist/22.2da0e8ec2ac2048ecd60.bundle.js +0 -3
  538. package/dist/22.2da0e8ec2ac2048ecd60.bundle.js.map +0 -1
  539. package/dist/23.4140c4c20347efc963a4.bundle.js +0 -2
  540. package/dist/23.4140c4c20347efc963a4.bundle.js.map +0 -1
  541. package/dist/24.219ce55f8f6a5bd02dad.bundle.js +0 -2
  542. package/dist/24.219ce55f8f6a5bd02dad.bundle.js.map +0 -1
  543. package/dist/25.e79de2370b1ee4072e19.bundle.js +0 -2
  544. package/dist/25.e79de2370b1ee4072e19.bundle.js.map +0 -1
  545. package/dist/26.c1619706b8cbb1ab23cb.bundle.js +0 -2
  546. package/dist/26.c1619706b8cbb1ab23cb.bundle.js.map +0 -1
  547. package/dist/27.350dba622e243e1ab5fb.bundle.js +0 -2
  548. package/dist/27.350dba622e243e1ab5fb.bundle.js.map +0 -1
  549. package/dist/28.e687c87a5f1dc8a30fd0.bundle.js +0 -2
  550. package/dist/28.e687c87a5f1dc8a30fd0.bundle.js.map +0 -1
  551. package/dist/29.34a4af65623cd4af6899.bundle.js +0 -2
  552. package/dist/29.34a4af65623cd4af6899.bundle.js.map +0 -1
  553. package/dist/3.dfa66b44200c3fca24a2.bundle.js +0 -2
  554. package/dist/3.dfa66b44200c3fca24a2.bundle.js.map +0 -1
  555. package/dist/30.f4738c7c2d74f00f2e5f.bundle.js +0 -2
  556. package/dist/30.f4738c7c2d74f00f2e5f.bundle.js.map +0 -1
  557. package/dist/31.ab8f2e70841221e1d427.bundle.js +0 -2
  558. package/dist/31.ab8f2e70841221e1d427.bundle.js.map +0 -1
  559. package/dist/32.3210a7952ffcb57daa1a.bundle.js +0 -2
  560. package/dist/32.3210a7952ffcb57daa1a.bundle.js.map +0 -1
  561. package/dist/33.fcf9c56901b5590bd603.bundle.js +0 -2
  562. package/dist/33.fcf9c56901b5590bd603.bundle.js.map +0 -1
  563. package/dist/34.2c344c05bfc4048c3d53.bundle.js +0 -2
  564. package/dist/34.2c344c05bfc4048c3d53.bundle.js.map +0 -1
  565. package/dist/35.423c4a91e80adf5d97c8.bundle.js +0 -2
  566. package/dist/35.423c4a91e80adf5d97c8.bundle.js.map +0 -1
  567. package/dist/36.247686b6d65de11ec10d.bundle.js +0 -2
  568. package/dist/36.247686b6d65de11ec10d.bundle.js.map +0 -1
  569. package/dist/37.5f6089a939b59309cc82.bundle.js +0 -2
  570. package/dist/37.5f6089a939b59309cc82.bundle.js.map +0 -1
  571. package/dist/38.9e79a9ec2f9d5af38692.bundle.js +0 -2
  572. package/dist/38.9e79a9ec2f9d5af38692.bundle.js.map +0 -1
  573. package/dist/39.b64ae969a5f5fea4504c.bundle.js +0 -2
  574. package/dist/39.b64ae969a5f5fea4504c.bundle.js.map +0 -1
  575. package/dist/4.188966396c80909f58cd.bundle.js +0 -2
  576. package/dist/4.188966396c80909f58cd.bundle.js.map +0 -1
  577. package/dist/40.1303e99feecbba2614a7.bundle.js +0 -2
  578. package/dist/40.1303e99feecbba2614a7.bundle.js.map +0 -1
  579. package/dist/41.687956ca2240355a838f.bundle.js +0 -2
  580. package/dist/41.687956ca2240355a838f.bundle.js.map +0 -1
  581. package/dist/42.78e0302e87b9d244a1d7.bundle.js +0 -2
  582. package/dist/42.78e0302e87b9d244a1d7.bundle.js.map +0 -1
  583. package/dist/43.ee0de548c525f8e422ba.bundle.js +0 -2
  584. package/dist/43.ee0de548c525f8e422ba.bundle.js.map +0 -1
  585. package/dist/44.38b4979d4b201ae1fffb.bundle.js +0 -2
  586. package/dist/44.38b4979d4b201ae1fffb.bundle.js.map +0 -1
  587. package/dist/45.8a0ab002ad0f614964e5.bundle.js +0 -2
  588. package/dist/45.8a0ab002ad0f614964e5.bundle.js.map +0 -1
  589. package/dist/46.720c0f65b93f4fe01a7c.bundle.js +0 -2
  590. package/dist/46.720c0f65b93f4fe01a7c.bundle.js.map +0 -1
  591. package/dist/47.686e599732ae6f41120c.bundle.js.map +0 -1
  592. package/dist/48.bdb51ad865126b918831.bundle.js +0 -2
  593. package/dist/48.bdb51ad865126b918831.bundle.js.map +0 -1
  594. package/dist/49.74a24e08097ef1f6fcd2.bundle.js +0 -2
  595. package/dist/49.74a24e08097ef1f6fcd2.bundle.js.map +0 -1
  596. package/dist/5.9bbd38317d375cd02da2.bundle.js +0 -8
  597. package/dist/5.9bbd38317d375cd02da2.bundle.js.map +0 -1
  598. package/dist/50.313e315d4c339ad1bcdd.bundle.js +0 -2
  599. package/dist/50.313e315d4c339ad1bcdd.bundle.js.map +0 -1
  600. package/dist/51.895a3dacdc3a8eaee275.bundle.js.map +0 -1
  601. package/dist/52.1f6bc47f1c9abcc79e8d.bundle.js +0 -2
  602. package/dist/52.1f6bc47f1c9abcc79e8d.bundle.js.map +0 -1
  603. package/dist/53.f6c19075252833268cca.bundle.js +0 -2
  604. package/dist/53.f6c19075252833268cca.bundle.js.map +0 -1
  605. package/dist/54.599ca3ae32ee1fb5f937.bundle.js +0 -2
  606. package/dist/54.599ca3ae32ee1fb5f937.bundle.js.map +0 -1
  607. package/dist/55.c20a51cb1d894f9113b4.bundle.js +0 -2
  608. package/dist/55.c20a51cb1d894f9113b4.bundle.js.map +0 -1
  609. package/dist/56.91947e80d8e04223ac58.bundle.js.map +0 -1
  610. package/dist/57.ab4ee313c9d6c7e29384.bundle.js +0 -2
  611. package/dist/57.ab4ee313c9d6c7e29384.bundle.js.map +0 -1
  612. package/dist/58.99c83a8dac31c1b681df.bundle.js +0 -2
  613. package/dist/58.99c83a8dac31c1b681df.bundle.js.map +0 -1
  614. package/dist/59.99da52e1d8946ac0f601.bundle.js +0 -2
  615. package/dist/59.99da52e1d8946ac0f601.bundle.js.map +0 -1
  616. package/dist/6.6c67a1bcf82bb335b0c4.bundle.js +0 -2
  617. package/dist/6.6c67a1bcf82bb335b0c4.bundle.js.map +0 -1
  618. package/dist/60.92b9758945e497e52bac.bundle.js +0 -2
  619. package/dist/60.92b9758945e497e52bac.bundle.js.map +0 -1
  620. package/dist/61.42887fbc87f941cf7c81.bundle.js +0 -2
  621. package/dist/61.42887fbc87f941cf7c81.bundle.js.map +0 -1
  622. package/dist/62.c21410d6e123395d3920.bundle.js +0 -2
  623. package/dist/62.c21410d6e123395d3920.bundle.js.map +0 -1
  624. package/dist/63.1ab0c580ba57aee5479c.bundle.js +0 -2
  625. package/dist/63.1ab0c580ba57aee5479c.bundle.js.map +0 -1
  626. package/dist/64.ac922cb38c3ff6c431fb.bundle.js.map +0 -1
  627. package/dist/65.9fcde753699dc94bea1d.bundle.js +0 -2
  628. package/dist/65.9fcde753699dc94bea1d.bundle.js.map +0 -1
  629. package/dist/66.8213a0430e7543b6d7f7.bundle.js +0 -2
  630. package/dist/66.8213a0430e7543b6d7f7.bundle.js.map +0 -1
  631. package/dist/67.320a484bc979f5076d8c.bundle.js +0 -2
  632. package/dist/67.320a484bc979f5076d8c.bundle.js.map +0 -1
  633. package/dist/68.a69e9e22327878f44dbd.bundle.js +0 -2
  634. package/dist/68.a69e9e22327878f44dbd.bundle.js.map +0 -1
  635. package/dist/69.be786580c66ac4ee18cb.bundle.js +0 -2
  636. package/dist/69.be786580c66ac4ee18cb.bundle.js.map +0 -1
  637. package/dist/7.0fd9bc389f42820382e4.bundle.js +0 -3
  638. package/dist/7.0fd9bc389f42820382e4.bundle.js.map +0 -1
  639. package/dist/70.93cfa1f02948e8276451.bundle.js +0 -2
  640. package/dist/70.93cfa1f02948e8276451.bundle.js.map +0 -1
  641. package/dist/71.6b8c8bce52a95f2da242.bundle.js +0 -2
  642. package/dist/71.6b8c8bce52a95f2da242.bundle.js.map +0 -1
  643. package/dist/72.6cbb41a38d917191c660.bundle.js +0 -2
  644. package/dist/72.6cbb41a38d917191c660.bundle.js.map +0 -1
  645. package/dist/73.801e05b4acc74a3e268c.bundle.js +0 -2
  646. package/dist/73.801e05b4acc74a3e268c.bundle.js.map +0 -1
  647. package/dist/74.1c6322e5f93d5376fd76.bundle.js +0 -2
  648. package/dist/74.1c6322e5f93d5376fd76.bundle.js.map +0 -1
  649. package/dist/75.c95c9015a30a98acb353.bundle.js +0 -2
  650. package/dist/75.c95c9015a30a98acb353.bundle.js.map +0 -1
  651. package/dist/76.29111b9618d43a0dd149.bundle.js +0 -2
  652. package/dist/76.29111b9618d43a0dd149.bundle.js.map +0 -1
  653. package/dist/77.6ced6f6e26dfe1c4e00f.bundle.js +0 -2
  654. package/dist/77.6ced6f6e26dfe1c4e00f.bundle.js.map +0 -1
  655. package/dist/78.7c7d2a0d9e7c2d2483e6.bundle.js +0 -2
  656. package/dist/78.7c7d2a0d9e7c2d2483e6.bundle.js.map +0 -1
  657. package/dist/79.696045e048461f420813.bundle.js +0 -2
  658. package/dist/79.696045e048461f420813.bundle.js.map +0 -1
  659. package/dist/8.22695f5c20dcddc1c7f9.bundle.js +0 -2
  660. package/dist/8.22695f5c20dcddc1c7f9.bundle.js.map +0 -1
  661. package/dist/80.b5e832779f88ebe839e2.bundle.js +0 -2
  662. package/dist/80.b5e832779f88ebe839e2.bundle.js.map +0 -1
  663. package/dist/81.5a0776b89463df60bd1a.bundle.js +0 -2
  664. package/dist/81.5a0776b89463df60bd1a.bundle.js.map +0 -1
  665. package/dist/82.0a98b482c7c37a9812fc.bundle.js +0 -2
  666. package/dist/82.0a98b482c7c37a9812fc.bundle.js.map +0 -1
  667. package/dist/83.8beeb651df72c23d53ac.bundle.js +0 -2
  668. package/dist/83.8beeb651df72c23d53ac.bundle.js.map +0 -1
  669. package/dist/84.6f35fe422db61d53ae3e.bundle.js +0 -2
  670. package/dist/84.6f35fe422db61d53ae3e.bundle.js.map +0 -1
  671. package/dist/85.2d1142fcbdf4c9868e94.bundle.js +0 -2
  672. package/dist/85.2d1142fcbdf4c9868e94.bundle.js.map +0 -1
  673. package/dist/86.ce91cb69963c2b84e551.bundle.js +0 -2
  674. package/dist/86.ce91cb69963c2b84e551.bundle.js.map +0 -1
  675. package/dist/87.d4aa485128cd374a11c7.bundle.js +0 -2
  676. package/dist/87.d4aa485128cd374a11c7.bundle.js.map +0 -1
  677. package/dist/88.b4cd8e99a6af1abea692.bundle.js +0 -2
  678. package/dist/88.b4cd8e99a6af1abea692.bundle.js.map +0 -1
  679. package/dist/89.8ce40cc9d5fe2596fdf9.bundle.js +0 -2
  680. package/dist/89.8ce40cc9d5fe2596fdf9.bundle.js.map +0 -1
  681. package/dist/9.d94f24c12177433d455a.bundle.js +0 -2
  682. package/dist/9.d94f24c12177433d455a.bundle.js.map +0 -1
  683. package/dist/90.94988124ca51fa46932e.bundle.js +0 -2
  684. package/dist/90.94988124ca51fa46932e.bundle.js.map +0 -1
  685. package/dist/91.bfbbacbaea095478d82e.bundle.js +0 -2
  686. package/dist/91.bfbbacbaea095478d82e.bundle.js.map +0 -1
  687. package/dist/92.791121a262e5f42a2ba2.bundle.js +0 -2
  688. package/dist/92.791121a262e5f42a2ba2.bundle.js.map +0 -1
  689. package/dist/93.7da268902b8515abecf6.bundle.js +0 -2
  690. package/dist/93.7da268902b8515abecf6.bundle.js.map +0 -1
  691. package/dist/94.88f1bd8fa645739c4f30.bundle.js +0 -2
  692. package/dist/94.88f1bd8fa645739c4f30.bundle.js.map +0 -1
  693. package/dist/95.bbd1b757de3af20f2ac1.bundle.js +0 -2
  694. package/dist/95.bbd1b757de3af20f2ac1.bundle.js.map +0 -1
  695. package/dist/96.38e7df277c99946f9a20.bundle.js +0 -2
  696. package/dist/96.38e7df277c99946f9a20.bundle.js.map +0 -1
  697. package/dist/97.1818744137f2fb66596a.bundle.js +0 -2
  698. package/dist/97.1818744137f2fb66596a.bundle.js.map +0 -1
  699. package/dist/98.1a14af46a31cf35db0e5.bundle.js +0 -2
  700. package/dist/98.1a14af46a31cf35db0e5.bundle.js.map +0 -1
  701. package/dist/99.bd486f7d738e281a0752.bundle.js +0 -2
  702. package/dist/99.bd486f7d738e281a0752.bundle.js.map +0 -1
  703. package/dist/bundle.5eeff901b77240e58d27.bundle.js +0 -89
  704. package/dist/bundle.5eeff901b77240e58d27.bundle.js.map +0 -1
  705. package/dist/css/fonts/rubik-italic.woff +0 -0
  706. package/dist/css/fonts/rubik-italic.woff2 +0 -0
  707. package/dist/css/fonts/rubik-light.woff +0 -0
  708. package/dist/css/fonts/rubik-light.woff2 +0 -0
  709. package/dist/css/fonts/rubik-lightitalic.woff +0 -0
  710. package/dist/css/fonts/rubik-lightitalic.woff2 +0 -0
  711. package/dist/css/fonts/rubik-medium.woff +0 -0
  712. package/dist/css/fonts/rubik-medium.woff2 +0 -0
  713. package/dist/css/fonts/rubik-mediumitalic.woff +0 -0
  714. package/dist/css/fonts/rubik-mediumitalic.woff2 +0 -0
  715. package/dist/css/fonts/rubik-regular.woff +0 -0
  716. package/dist/css/fonts/rubik-regular.woff2 +0 -0
  717. package/dist/css/lib/bootstrap-switch/bootstrap-switch.min.css +0 -10
  718. package/dist/img/graphdb-splash.2eb3f7f02aa7e25a2545459e096f3738.svg +0 -141
  719. package/dist/js/angular/clustermanagement/templates/modal/clone-modal.html +0 -27
  720. package/dist/js/lib/nvd3/nv.d3.css +0 -755
  721. package/dist/main.e5d47f1d0bcd23074c38.css +0 -1
  722. package/dist/main.f10730ef6eebe969b494.bundle.js +0 -2
  723. package/dist/main.f10730ef6eebe969b494.bundle.js.map +0 -1
  724. package/dist/pages/cluster-management/cluster-configuration.html +0 -183
  725. package/dist/res/swagger/css/style.css +0 -250
  726. package/dist/res/swagger/css/typography.css +0 -60
  727. package/dist/vendor.327ffd7c7997ca288654.bundle.js +0 -50
  728. package/dist/vendor.327ffd7c7997ca288654.bundle.js.map +0 -1
@@ -0,0 +1,81 @@
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[1,164],{321:function(module,exports,__webpack_require__){(function(global){var require,require,e;e=function(){var define,module,exports;return function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(!s&&"function"==typeof require&&require)return require(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};t[a][0].call(u.exports,(function(e){var n=t[a][1][e];return i(n||e)}),u,u.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){t.exports=e("./main.js")},{"./main.js":54}],2:[function(e,t,n){
2
+ /*! DataTables 1.10.2
3
+ * ©2008-2014 SpryMedia Ltd - datatables.net/license
4
+ */
5
+ !function(t,r,i){!function(t){"use strict";"function"==typeof define&&define.amd?define("datatables",["jquery"],t):"object"==typeof n?t(e("jquery")):jQuery&&!jQuery.fn.dataTable&&t(jQuery)}((function(e){"use strict";var n,i,o,a,s,l={},u=/[\r\n]/g,c=/<.*?>/g,f=/^[\w\+\-]/,d=/[\w\+\-]$/,h=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),p=/[',$£€¥%\u2009\u202F]/g,g=function(e){return!e||!0===e||"-"===e},v=function(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null},m=function(e,t){return l[t]||(l[t]=new RegExp(Ce(t),"g")),"string"==typeof e?e.replace(/\./g,"").replace(l[t],"."):e},y=function(e,t,n){var r="string"==typeof e;return t&&r&&(e=m(e,t)),n&&r&&(e=e.replace(p,"")),g(e)||!isNaN(parseFloat(e))&&isFinite(e)},b=function(e,t,n){return!!g(e)||function(e){return g(e)||"string"==typeof e}(e)&&!!y(S(e),t,n)||null},w=function(e,t,n){var r=[],i=0,o=e.length;if(void 0!==n)for(;i<o;i++)e[i]&&e[i][t]&&r.push(e[i][t][n]);else for(;i<o;i++)e[i]&&r.push(e[i][t]);return r},x=function(e,t,n,r){var i=[],o=0,a=t.length;if(void 0!==r)for(;o<a;o++)i.push(e[t[o]][n][r]);else for(;o<a;o++)i.push(e[t[o]][n]);return i},C=function(e,t){var n,r=[];void 0===t?(t=0,n=e):(n=t,t=e);for(var i=t;i<n;i++)r.push(i);return r},S=function(e){return e.replace(c,"")},_=function(e){var t,n,r,i=[],o=e.length,a=0;e:for(n=0;n<o;n++){for(t=e[n],r=0;r<a;r++)if(i[r]===t)continue e;i.push(t),a++}return i};function T(t){var n,r,i={};e.each(t,(function(e,o){(n=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(r=e.replace(n[0],n[2].toLowerCase()),i[r]=e,"o"===n[1]&&T(t[e]))})),t._hungarianMap=i}function k(t,n,r){var i;t._hungarianMap||T(t),e.each(n,(function(o,a){void 0===(i=t._hungarianMap[o])||!r&&void 0!==n[i]||("o"===i.charAt(0)?(n[i]||(n[i]={}),e.extend(!0,n[i],n[o]),k(t[i],n[i],r)):n[i]=n[o])}))}function D(e){var t=n.defaults.oLanguage,r=e.sZeroRecords;!e.sEmptyTable&&r&&"yasr.empty.table"===t.sEmptyTable&&ft(e,e,"sZeroRecords","sEmptyTable"),!e.sLoadingRecords&&r&&"yasr.loading.label"===t.sLoadingRecords&&ft(e,e,"sZeroRecords","sLoadingRecords"),e.sInfoThousands&&(e.sThousands=e.sInfoThousands);var i=e.sDecimal;i&&Pt(i)}var L=function(e,t,n){void 0!==e[t]&&(e[n]=e[t])};function A(e){L(e,"ordering","bSort"),L(e,"orderMulti","bSortMulti"),L(e,"orderClasses","bSortClasses"),L(e,"orderCellsTop","bSortCellsTop"),L(e,"order","aaSorting"),L(e,"orderFixed","aaSortingFixed"),L(e,"paging","bPaginate"),L(e,"pagingType","sPaginationType"),L(e,"pageLength","iDisplayLength"),L(e,"searching","bFilter");var t=e.aoSearchCols;if(t)for(var r=0,i=t.length;r<i;r++)t[r]&&k(n.models.oSearch,t[r])}function N(e){L(e,"orderable","bSortable"),L(e,"orderData","aDataSort"),L(e,"orderSequence","asSorting"),L(e,"orderDataType","sortDataType")}function j(t){var n=t.oBrowser,r=e("<div/>").css({position:"absolute",top:0,left:0,height:1,width:1,overflow:"hidden"}).append(e("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(e('<div class="test"/>').css({width:"100%",height:10}))).appendTo("body"),i=r.find(".test");n.bScrollOversize=100===i[0].offsetWidth,n.bScrollbarLeft=1!==i.offset().left,r.remove()}function M(e,t,n,r,i,o){var a,s=r,l=!1;for(void 0!==n&&(a=n,l=!0);s!==i;)e.hasOwnProperty(s)&&(a=l?t(a,e[s],s,e):e[s],l=!0,s+=o);return a}function E(t,i){var o=n.defaults.column,a=t.aoColumns.length,s=e.extend({},n.models.oColumn,o,{nTh:i||r.createElement("th"),sTitle:o.sTitle?o.sTitle:i?i.innerHTML:"",aDataSort:o.aDataSort?o.aDataSort:[a],mData:o.mData?o.mData:a,idx:a});t.aoColumns.push(s);var l=t.aoPreSearchCols;l[a]=e.extend({},n.models.oSearch,l[a]),I(t,a,null)}function I(t,r,i){var o=t.aoColumns[r],a=t.oClasses,s=e(o.nTh);if(!o.sWidthOrig){o.sWidthOrig=s.attr("width")||null;var l=(s.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);l&&(o.sWidthOrig=l[1])}null!=i&&(N(i),k(n.defaults.column,i),void 0===i.mDataProp||i.mData||(i.mData=i.mDataProp),i.sType&&(o._sManualType=i.sType),i.className&&!i.sClass&&(i.sClass=i.className),e.extend(o,i),ft(o,i,"sWidth","sWidthOrig"),"number"==typeof i.iDataSort&&(o.aDataSort=[i.iDataSort]),ft(o,i,"aDataSort"));var u=o.mData,c=J(u),f=o.mRender?J(o.mRender):null,d=function(e){return"string"==typeof e&&-1!==e.indexOf("@")};o._bAttrSrc=e.isPlainObject(u)&&(d(u.sort)||d(u.type)||d(u.filter)),o.fnGetData=function(e,t,n){var r=c(e,t,void 0,n);return f&&t?f(r,t,e,n):r},o.fnSetData=function(e,t,n){return Y(u)(e,t,n)},t.oFeatures.bSort||(o.bSortable=!1,s.addClass(a.sSortableNone));var h=-1!==e.inArray("asc",o.asSorting),p=-1!==e.inArray("desc",o.asSorting);o.bSortable&&(h||p)?h&&!p?(o.sSortingClass=a.sSortableAsc,o.sSortingClassJUI=a.sSortJUIAscAllowed):!h&&p?(o.sSortingClass=a.sSortableDesc,o.sSortingClassJUI=a.sSortJUIDescAllowed):(o.sSortingClass=a.sSortable,o.sSortingClassJUI=a.sSortJUI):(o.sSortingClass=a.sSortableNone,o.sSortingClassJUI="")}function O(e){if(!1!==e.oFeatures.bAutoWidth){var t=e.aoColumns;Be(e);for(var n=0,r=t.length;n<r;n++)t[n].nTh.style.width=t[n].sWidth}var i=e.oScroll;""===i.sY&&""===i.sX||We(e),gt(e,null,"column-sizing",[e])}function P(e,t){var n=F(e,"bVisible");return"number"==typeof n[t]?n[t]:null}function R(t,n){var r=F(t,"bVisible"),i=e.inArray(n,r);return-1!==i?i:null}function H(e){return F(e,"bVisible").length}function F(t,n){var r=[];return e.map(t.aoColumns,(function(e,t){e[n]&&r.push(t)})),r}function W(e){var t,r,i,o,a,s,l,u,c,f=e.aoColumns,d=e.aoData,h=n.ext.type.detect;for(t=0,r=f.length;t<r;t++)if(c=[],!(l=f[t]).sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){for(i=0,o=h.length;i<o;i++){for(a=0,s=d.length;a<s&&(void 0===c[a]&&(c[a]=U(e,a,t,"type")),(u=h[i](c[a],e))&&"html"!==u);a++);if(u){l.sType=u;break}}l.sType||(l.sType="string")}}function z(t,n,r,i){var o,a,s,l,u,c,f,d=t.aoColumns;if(n)for(o=n.length-1;o>=0;o--){var h=void 0!==(f=n[o]).targets?f.targets:f.aTargets;for(e.isArray(h)||(h=[h]),s=0,l=h.length;s<l;s++)if("number"==typeof h[s]&&h[s]>=0){for(;d.length<=h[s];)E(t);i(h[s],f)}else if("number"==typeof h[s]&&h[s]<0)i(d.length+h[s],f);else if("string"==typeof h[s])for(u=0,c=d.length;u<c;u++)("_all"==h[s]||e(d[u].nTh).hasClass(h[s]))&&i(u,f)}if(r)for(o=0,a=r.length;o<a;o++)i(o,r[o])}function q(t,r,i,o){var a=t.aoData.length,s=e.extend(!0,{},n.models.oRow,{src:i?"dom":"data"});s._aData=r,t.aoData.push(s);for(var l=t.aoColumns,u=0,c=l.length;u<c;u++)i&&V(t,a,u,U(t,a,u)),l[u].sType=null;return t.aiDisplayMaster.push(a),!i&&t.oFeatures.bDeferRender||ne(t,a,i,o),a}function B(t,n){var r;return n instanceof e||(n=e(n)),n.map((function(e,n){return r=te(t,n),q(t,r.data,n,r.cells)}))}function U(e,t,n,r){var i=e.iDraw,o=e.aoColumns[n],a=e.aoData[t]._aData,s=o.sDefaultContent,l=o.fnGetData(a,r,{settings:e,row:t,col:n});if(void 0===l)return e.iDrawError!=i&&null===s&&(ct(e,0,"Requested unknown parameter "+("function"==typeof o.mData?"{function}":"'"+o.mData+"'")+" for row "+t,4),e.iDrawError=i),s;if(l!==a&&null!==l||null===s){if("function"==typeof l)return l.call(a)}else l=s;return null===l&&"display"==r?"":l}function V(e,t,n,r){var i=e.aoColumns[n],o=e.aoData[t]._aData;i.fnSetData(o,r,{settings:e,row:t,col:n})}var G=/\[.*?\]$/,X=/\(\)$/;function $(t){return e.map(t.match(/(\\.|[^\.])+/g),(function(e){return e.replace(/\\./g,".")}))}function J(t){if(e.isPlainObject(t)){var n={};return e.each(t,(function(e,t){t&&(n[e]=J(t))})),function(e,t,r,i){var o=n[t]||n._;return void 0!==o?o(e,t,r,i):e}}if(null===t)return function(e){return e};if("function"==typeof t)return function(e,n,r,i){return t(e,n,r,i)};if("string"!=typeof t||-1===t.indexOf(".")&&-1===t.indexOf("[")&&-1===t.indexOf("("))return function(e,n){return e[t]};var r=function(e,t,n){var i,o,a,s;if(""!==n)for(var l=$(n),u=0,c=l.length;u<c;u++){if(i=l[u].match(G),o=l[u].match(X),i){l[u]=l[u].replace(G,""),""!==l[u]&&(e=e[l[u]]),a=[],l.splice(0,u+1),s=l.join(".");for(var f=0,d=e.length;f<d;f++)a.push(r(e[f],t,s));var h=i[0].substring(1,i[0].length-1);e=""===h?a:a.join(h);break}if(o)l[u]=l[u].replace(X,""),e=e[l[u]]();else{if(null===e||void 0===e[l[u]])return;e=e[l[u]]}}return e};return function(e,n){return r(e,n,t)}}function Y(t){if(e.isPlainObject(t))return Y(t._);if(null===t)return function(){};if("function"==typeof t)return function(e,n,r){t(e,"set",n,r)};if("string"!=typeof t||-1===t.indexOf(".")&&-1===t.indexOf("[")&&-1===t.indexOf("("))return function(e,n){e[t]=n};var n=function(e,t,r){for(var i,o,a,s,l,u=$(r),c=u[u.length-1],f=0,d=u.length-1;f<d;f++){if(o=u[f].match(G),a=u[f].match(X),o){u[f]=u[f].replace(G,""),e[u[f]]=[],(i=u.slice()).splice(0,f+1),l=i.join(".");for(var h=0,p=t.length;h<p;h++)n(s={},t[h],l),e[u[f]].push(s);return}a&&(u[f]=u[f].replace(X,""),e=e[u[f]](t)),null!==e[u[f]]&&void 0!==e[u[f]]||(e[u[f]]={}),e=e[u[f]]}c.match(X)?e=e[c.replace(X,"")](t):e[c.replace(G,"")]=t};return function(e,r){return n(e,r,t)}}function K(e){return w(e.aoData,"_aData")}function Q(e){e.aoData.length=0,e.aiDisplayMaster.length=0,e.aiDisplay.length=0}function Z(e,t,n){for(var r=-1,i=0,o=e.length;i<o;i++)e[i]==t?r=i:e[i]>t&&e[i]--;-1!=r&&void 0===n&&e.splice(r,1)}function ee(e,t,n,r){var i,o,a=e.aoData[t];if("dom"!==n&&(n&&"auto"!==n||"dom"!==a.src)){var s,l=a.anCells;if(l)for(i=0,o=l.length;i<o;i++){for(s=l[i];s.childNodes.length;)s.removeChild(s.firstChild);l[i].innerHTML=U(e,t,i,"display")}}else a._aData=te(e,a).data;a._aSortData=null,a._aFilterData=null;var u=e.aoColumns;if(void 0!==r)u[r].sType=null;else for(i=0,o=u.length;i<o;i++)u[i].sType=null;re(a)}function te(t,n){var r,i,o,a,s=[],l=[],u=n.firstChild,c=0,f=t.aoColumns,d=function(e,t,n){if("string"==typeof e){var r=e.indexOf("@");if(-1!==r){var i=e.substring(r+1);o["@"+i]=n.getAttribute(i)}}},h=function(t){i=f[c],a=e.trim(t.innerHTML),i&&i._bAttrSrc?(o={display:a},d(i.mData.sort,0,t),d(i.mData.type,0,t),d(i.mData.filter,0,t),s.push(o)):s.push(a),c++};if(u)for(;u;)"TD"!=(r=u.nodeName.toUpperCase())&&"TH"!=r||(h(u),l.push(u)),u=u.nextSibling;else for(var p=0,g=(l=n.anCells).length;p<g;p++)h(l[p]);return{data:s,cells:l}}function ne(e,t,n,i){var o,a,s,l,u,c=e.aoData[t],f=c._aData,d=[];if(null===c.nTr){for(o=n||r.createElement("tr"),c.nTr=o,c.anCells=d,o._DT_RowIndex=t,re(c),l=0,u=e.aoColumns.length;l<u;l++)s=e.aoColumns[l],a=n?i[l]:r.createElement(s.sCellType),d.push(a),n&&!s.mRender&&s.mData===l||(a.innerHTML=U(e,t,l,"display")),s.sClass&&(a.className+=" "+s.sClass),s.bVisible&&!n?o.appendChild(a):!s.bVisible&&n&&a.parentNode.removeChild(a),s.fnCreatedCell&&s.fnCreatedCell.call(e.oInstance,a,U(e,t,l),f,t,l);gt(e,"aoRowCreatedCallback",null,[o,f,t])}c.nTr.setAttribute("role","row")}function re(t){var n=t.nTr,r=t._aData;if(n){if(r.DT_RowId&&(n.id=r.DT_RowId),r.DT_RowClass){var i=r.DT_RowClass.split(" ");t.__rowc=t.__rowc?_(t.__rowc.concat(i)):i,e(n).removeClass(t.__rowc.join(" ")).addClass(r.DT_RowClass)}r.DT_RowData&&e(n).data(r.DT_RowData)}}function ie(t){var n,r,i,o,a,s=t.nTHead,l=t.nTFoot,u=0===e("th, td",s).length,c=t.oClasses,f=t.aoColumns;for(u&&(o=e("<tr/>").appendTo(s)),n=0,r=f.length;n<r;n++)a=f[n],i=e(a.nTh).addClass(a.sClass),u&&i.appendTo(o),t.oFeatures.bSort&&(i.addClass(a.sSortingClass),!1!==a.bSortable&&(i.attr("tabindex",t.iTabIndex).attr("aria-controls",t.sTableId),it(t,a.nTh,n))),a.sTitle!=i.html()&&i.html(a.sTitle),mt(t,"header")(t,i,a,c);if(u&&ue(t.aoHeader,s),e(s).find(">tr").attr("role","row"),e(s).find(">tr>th, >tr>td").addClass(c.sHeaderTH),e(l).find(">tr>th, >tr>td").addClass(c.sFooterTH),null!==l){var d=t.aoFooter[0];for(n=0,r=d.length;n<r;n++)(a=f[n]).nTf=d[n].cell,a.sClass&&e(a.nTf).addClass(a.sClass)}}function oe(t,n,r){var i,o,a,s,l,u,c,f,d,h=[],p=[],g=t.aoColumns.length;if(n){for(void 0===r&&(r=!1),i=0,o=n.length;i<o;i++){for(h[i]=n[i].slice(),h[i].nTr=n[i].nTr,a=g-1;a>=0;a--)t.aoColumns[a].bVisible||r||h[i].splice(a,1);p.push([])}for(i=0,o=h.length;i<o;i++){if(c=h[i].nTr)for(;u=c.firstChild;)c.removeChild(u);for(a=0,s=h[i].length;a<s;a++)if(f=1,d=1,void 0===p[i][a]){for(c.appendChild(h[i][a].cell),p[i][a]=1;void 0!==h[i+f]&&h[i][a].cell==h[i+f][a].cell;)p[i+f][a]=1,f++;for(;void 0!==h[i][a+d]&&h[i][a].cell==h[i][a+d].cell;){for(l=0;l<f;l++)p[i+l][a+d]=1;d++}e(h[i][a].cell).attr("rowspan",f).attr("colspan",d)}}}}function ae(t){var n=gt(t,"aoPreDrawCallback","preDraw",[t]);if(-1===e.inArray(!1,n)){var r=[],i=0,o=t.asStripeClasses,a=o.length,s=(t.aoOpenRows.length,t.oLanguage),l=t.iInitDisplayStart,u="ssp"==yt(t),c=t.aiDisplay;t.bDrawing=!0,void 0!==l&&-1!==l&&(t._iDisplayStart=u?l:l>=t.fnRecordsDisplay()?0:l,t.iInitDisplayStart=-1);var f=t._iDisplayStart,d=t.fnDisplayEnd();if(t.bDeferLoading)t.bDeferLoading=!1,t.iDraw++,He(t,!1);else if(u){if(!t.bDestroying&&!de(t))return}else t.iDraw++;if(0!==c.length)for(var h=u?0:f,p=u?t.aoData.length:d,g=h;g<p;g++){var v=c[g],m=t.aoData[v];null===m.nTr&&ne(t,v);var y=m.nTr;if(0!==a){var b=o[i%a];m._sRowStripe!=b&&(e(y).removeClass(m._sRowStripe).addClass(b),m._sRowStripe=b)}gt(t,"aoRowCallback",null,[y,m._aData,i,g]),r.push(y),i++}else{var w=s.sZeroRecords;1==t.iDraw&&"ajax"==yt(t)?w=s.sLoadingRecords:s.sEmptyTable&&0===t.fnRecordsTotal()&&(w=s.sEmptyTable),r[0]=e("<tr/>",{class:a?o[0]:""}).append(e("<td />",{valign:"top",colSpan:H(t),class:t.oClasses.sRowEmpty}).html(t.translate(w)))[0]}gt(t,"aoHeaderCallback","header",[e(t.nTHead).children("tr")[0],K(t),f,d,c]),gt(t,"aoFooterCallback","footer",[e(t.nTFoot).children("tr")[0],K(t),f,d,c]);var x=e(t.nTBody);x.children().detach(),x.append(e(r)),gt(t,"aoDrawCallback","draw",[t]),t.bSorted=!1,t.bFiltered=!1,t.bDrawing=!1}else He(t,!1)}function se(e,t){var n=e.oFeatures,r=n.bSort,i=n.bFilter;r&&Qe(e),i?me(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice(),!0!==t&&(e._iDisplayStart=0),e._drawHold=t,ae(e),e._drawHold=!1}function le(t){var r=t.oClasses,i=e(t.nTable),o=e("<div/>").insertBefore(i),a=t.oFeatures,s=e("<div/>",{id:t.sTableId+"_wrapper",class:r.sWrapper+(t.nTFoot?"":" "+r.sNoFooter)});t.nHolding=o[0],t.nTableWrapper=s[0],t.nTableReinsertBefore=t.nTable.nextSibling;for(var l,u,c,f,d,h,p=t.sDom.split(""),g=0;g<p.length;g++){if(l=null,"<"==(u=p[g])){if(c=e("<div/>")[0],"'"==(f=p[g+1])||'"'==f){for(d="",h=2;p[g+h]!=f;)d+=p[g+h],h++;if("H"==d?d=r.sJUIHeader:"F"==d&&(d=r.sJUIFooter),-1!=d.indexOf(".")){var v=d.split(".");c.id=v[0].substr(1,v[0].length-1),c.className=v[1]}else"#"==d.charAt(0)?c.id=d.substr(1,d.length-1):c.className=d;g+=h}s.append(c),s=e(c)}else if(">"==u)s=s.parent();else if("l"==u&&a.bPaginate&&a.bLengthChange)l=Ie(t);else if("f"==u&&a.bFilter)l=ve(t);else if("r"==u&&a.bProcessing)l=Re(t);else if("t"==u)l=Fe(t);else if("i"==u&&a.bInfo)l=Le(t);else if("p"==u&&a.bPaginate)l=Oe(t);else if(0!==n.ext.feature.length)for(var m=n.ext.feature,y=0,b=m.length;y<b;y++)if(u==m[y].cFeature){l=m[y].fnInit(t);break}if(l){var w=t.aanFeatures;w[u]||(w[u]=[]),w[u].push(l),s.append(l)}}o.replaceWith(s)}function ue(t,n){var r,i,o,a,s,l,u,c,f,d,h=e(n).children("tr"),p=function(e,t,n){for(var r=e[t];r[n];)n++;return n};for(t.splice(0,t.length),o=0,l=h.length;o<l;o++)t.push([]);for(o=0,l=h.length;o<l;o++)for(i=(r=h[o]).firstChild;i;){if("TD"==i.nodeName.toUpperCase()||"TH"==i.nodeName.toUpperCase())for(c=(c=1*i.getAttribute("colspan"))&&0!==c&&1!==c?c:1,f=(f=1*i.getAttribute("rowspan"))&&0!==f&&1!==f?f:1,u=p(t,o,0),d=1===c,s=0;s<c;s++)for(a=0;a<f;a++)t[o+a][u+s]={cell:i,unique:d},t[o+a].nTr=r;i=i.nextSibling}}function ce(e,t,n){var r=[];n||(n=e.aoHeader,t&&ue(n=[],t));for(var i=0,o=n.length;i<o;i++)for(var a=0,s=n[i].length;a<s;a++)!n[i][a].unique||r[a]&&e.bSortCellsTop||(r[a]=n[i][a].cell);return r}function fe(t,n,r){if(gt(t,"aoServerParams","serverParams",[n]),n&&e.isArray(n)){var i={},o=/(.*?)\[\]$/;e.each(n,(function(e,t){var n=t.name.match(o);if(n){var r=n[0];i[r]||(i[r]=[]),i[r].push(t.value)}else i[t.name]=t.value})),n=i}var a,s=t.ajax,l=t.oInstance;if(e.isPlainObject(s)&&s.data){a=s.data;var u=e.isFunction(a)?a(n):a;n=e.isFunction(a)&&u?u:e.extend(!0,n,u),delete s.data}var c={data:n,success:function(e){var n=e.error||e.sError;n&&t.oApi._fnLog(t,0,n),t.json=e,gt(t,null,"xhr",[t,e]),r(e)},dataType:"json",cache:!1,type:t.sServerMethod,error:function(e,n,r){var i=t.oApi._fnLog;"parsererror"==n?i(t,0,"Invalid JSON response",1):4===e.readyState&&i(t,0,"Ajax error",7),He(t,!1)}};t.oAjaxData=n,gt(t,null,"preXhr",[t,n]),t.fnServerData?t.fnServerData.call(l,t.sAjaxSource,e.map(n,(function(e,t){return{name:t,value:e}})),r,t):t.sAjaxSource||"string"==typeof s?t.jqXHR=e.ajax(e.extend(c,{url:s||t.sAjaxSource})):e.isFunction(s)?t.jqXHR=s.call(l,n,r,t):(t.jqXHR=e.ajax(e.extend(c,s)),s.data=a)}function de(e){return!e.bAjaxDataGet||(e.iDraw++,He(e,!0),fe(e,he(e),(function(t){pe(e,t)})),!1)}function he(t){var r,i,o,a,s=t.aoColumns,l=s.length,u=t.oFeatures,c=t.oPreviousSearch,f=t.aoPreSearchCols,d=[],h=Ke(t),p=t._iDisplayStart,g=!1!==u.bPaginate?t._iDisplayLength:-1,v=function(e,t){d.push({name:e,value:t})};v("sEcho",t.iDraw),v("iColumns",l),v("sColumns",w(s,"sName").join(",")),v("iDisplayStart",p),v("iDisplayLength",g);var m={draw:t.iDraw,columns:[],order:[],start:p,length:g,search:{value:c.sSearch,regex:c.bRegex}};for(r=0;r<l;r++)o=s[r],a=f[r],i="function"==typeof o.mData?"function":o.mData,m.columns.push({data:i,name:o.sName,searchable:o.bSearchable,orderable:o.bSortable,search:{value:a.sSearch,regex:a.bRegex}}),v("mDataProp_"+r,i),u.bFilter&&(v("sSearch_"+r,a.sSearch),v("bRegex_"+r,a.bRegex),v("bSearchable_"+r,o.bSearchable)),u.bSort&&v("bSortable_"+r,o.bSortable);u.bFilter&&(v("sSearch",c.sSearch),v("bRegex",c.bRegex)),u.bSort&&(e.each(h,(function(e,t){m.order.push({column:t.col,dir:t.dir}),v("iSortCol_"+e,t.col),v("sSortDir_"+e,t.dir)})),v("iSortingCols",h.length));var y=n.ext.legacy.ajax;return null===y?t.sAjaxSource?d:m:y?d:m}function pe(e,t){var n=function(e,n){return void 0!==t[e]?t[e]:t[n]},r=n("sEcho","draw"),i=n("iTotalRecords","recordsTotal"),o=n("iTotalDisplayRecords","recordsFiltered");if(r){if(1*r<e.iDraw)return;e.iDraw=1*r}Q(e),e._iRecordsTotal=parseInt(i,10),e._iRecordsDisplay=parseInt(o,10);for(var a=ge(e,t),s=0,l=a.length;s<l;s++)q(e,a[s]);e.aiDisplay=e.aiDisplayMaster.slice(),e.bAjaxDataGet=!1,ae(e),e._bInitComplete||Me(e,t),e.bAjaxDataGet=!0,He(e,!1)}function ge(t,n){var r=e.isPlainObject(t.ajax)&&void 0!==t.ajax.dataSrc?t.ajax.dataSrc:t.sAjaxDataProp;return"data"===r?n.aaData||n[r]:""!==r?J(r)(n):n}function ve(t){var n=t.oClasses,i=t.sTableId,o=t.oLanguage,a=t.oPreviousSearch,s=t.aanFeatures,l='<input type="search" class="'+n.sFilterInput+'"/>',u=o.sSearch;u=u.match(/_INPUT_/)?u.replace("_INPUT_",l):u+l;var c=e("<div/>",{id:s.f?null:i+"_filter",class:n.sFilter}).append(e("<label/>").append(u)),f=function(){s.f;var e=this.value?this.value:"";e!=a.sSearch&&(me(t,{sSearch:e,bRegex:a.bRegex,bSmart:a.bSmart,bCaseInsensitive:a.bCaseInsensitive}),t._iDisplayStart=0,ae(t))},d=e("input",c).val(a.sSearch).attr("placeholder",o.sSearchPlaceholder).bind("keyup.DT search.DT input.DT paste.DT cut.DT","ssp"===yt(t)?Ue(f,400):f).bind("keypress.DT",(function(e){if(13==e.keyCode)return!1})).attr("aria-controls",i);return e(t.nTable).on("search.dt.DT",(function(e,n){if(t===n)try{d[0]!==r.activeElement&&d.val(a.sSearch)}catch(e){}})),c[0]}function me(e,t,n){var r=e.oPreviousSearch,i=e.aoPreSearchCols,o=function(e){r.sSearch=e.sSearch,r.bRegex=e.bRegex,r.bSmart=e.bSmart,r.bCaseInsensitive=e.bCaseInsensitive},a=function(e){return void 0!==e.bEscapeRegex?!e.bEscapeRegex:e.bRegex};if(W(e),"ssp"!=yt(e)){we(e,t.sSearch,n,a(t),t.bSmart,t.bCaseInsensitive),o(t);for(var s=0;s<i.length;s++)be(e,i[s].sSearch,s,a(i[s]),i[s].bSmart,i[s].bCaseInsensitive);ye(e)}else o(t);e.bFiltered=!0,gt(e,null,"search",[e])}function ye(e){for(var t,r,i=n.ext.search,o=e.aiDisplay,a=0,s=i.length;a<s;a++){for(var l=[],u=0,c=o.length;u<c;u++)r=o[u],t=e.aoData[r],i[a](e,t._aFilterData,r,t._aData,u)&&l.push(r);o.length=0,o.push.apply(o,l)}}function be(e,t,n,r,i,o){if(""!==t)for(var a,s=e.aiDisplay,l=xe(t,r,i,o),u=s.length-1;u>=0;u--)a=e.aoData[s[u]]._aFilterData[n],l.test(a)||s.splice(u,1)}function we(e,t,r,i,o,a){var s,l,u,c=xe(t,i,o,a),f=e.oPreviousSearch.sSearch,d=e.aiDisplayMaster;if(0!==n.ext.search.length&&(r=!0),l=Te(e),t.length<=0)e.aiDisplay=d.slice();else for((l||r||f.length>t.length||0!==t.indexOf(f)||e.bSorted)&&(e.aiDisplay=d.slice()),u=(s=e.aiDisplay).length-1;u>=0;u--)c.test(e.aoData[s[u]]._sFilterRow)||s.splice(u,1)}function xe(t,n,r,i){if(t=n?t:Ce(t),r){var o=e.map(t.match(/"[^"]+"|[^ ]+/g)||"",(function(e){return'"'===e.charAt(0)?e.match(/^"(.*)"$/)[1]:e}));t="^(?=.*?"+o.join(")(?=.*?")+").*$"}return new RegExp(t,i?"i":"")}function Ce(e){return e.replace(h,"\\$1")}var Se=e("<div>")[0],_e=void 0!==Se.textContent;function Te(e){var t,r,i,o,a,s,l,u,c=e.aoColumns,f=n.ext.type.search,d=!1;for(r=0,o=e.aoData.length;r<o;r++)if(!(u=e.aoData[r])._aFilterData){for(s=[],i=0,a=c.length;i<a;i++)(t=c[i]).bSearchable?(l=U(e,r,i,"filter"),f[t.sType]&&(l=f[t.sType](l)),null===l&&(l=""),"string"!=typeof l&&l.toString&&(l=l.toString())):l="",l.indexOf&&-1!==l.indexOf("&")&&(Se.innerHTML=l,l=_e?Se.textContent:Se.innerText),l.replace&&(l=l.replace(/[\r\n]/g,"")),s.push(l);u._aFilterData=s,u._sFilterRow=s.join(" "),d=!0}return d}function ke(e){return{search:e.sSearch,smart:e.bSmart,regex:e.bRegex,caseInsensitive:e.bCaseInsensitive}}function De(e){return{sSearch:e.search,bSmart:e.smart,bRegex:e.regex,bCaseInsensitive:e.caseInsensitive}}function Le(t){var n=t.sTableId,r=t.aanFeatures.i,i=e("<div/>",{class:t.oClasses.sInfo,id:r?null:n+"_info"});return r||(t.aoDrawCallback.push({fn:Ae,sName:"information"}),i.attr("role","status").attr("aria-live","polite"),e(t.nTable).attr("aria-describedby",n+"_info")),i[0]}function Ae(t){var n=t.aanFeatures.i;if(0!==n.length){var r=t.oLanguage,i=t._iDisplayStart+1,o=t.fnDisplayEnd(),a=t.fnRecordsTotal(),s=t.fnRecordsDisplay(),l=s?r.sInfo:r.sInfoEmpty;s!==a&&(l+=" "+r.sInfoFiltered),l=Ne(t,l+=r.sInfoPostFix);var u=r.fnInfoCallback;null!==u&&(l=u.call(t.oInstance,t,i,o,a,s,l)),e(n).html(l)}}function Ne(e,t){var n=e.fnFormatNumber,r=e._iDisplayStart+1,i=e._iDisplayLength,o=e.fnRecordsDisplay(),a=-1===i;return t.replace(/_START_/g,n.call(e,r)).replace(/_END_/g,n.call(e,e.fnDisplayEnd())).replace(/_MAX_/g,n.call(e,e.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(e,o)).replace(/_PAGE_/g,n.call(e,a?1:Math.ceil(r/i))).replace(/_PAGES_/g,n.call(e,a?1:Math.ceil(o/i)))}function je(e){var t,n,r,i=e.iInitDisplayStart,o=e.aoColumns,a=e.oFeatures;if(e.bInitialised){for(le(e),ie(e),oe(e,e.aoHeader),oe(e,e.aoFooter),He(e,!0),a.bAutoWidth&&Be(e),t=0,n=o.length;t<n;t++)(r=o[t]).sWidth&&(r.nTh.style.width=Je(r.sWidth));se(e);var s=yt(e);"ssp"!=s&&("ajax"==s?fe(e,[],(function(n){var r=ge(e,n);for(t=0;t<r.length;t++)q(e,r[t]);e.iInitDisplayStart=i,se(e),He(e,!1),Me(e,n)})):(He(e,!1),Me(e)))}else setTimeout((function(){je(e)}),200)}function Me(e,t){e._bInitComplete=!0,t&&O(e),gt(e,"aoInitComplete","init",[e,t])}function Ee(e,t){var n=parseInt(t,10);e._iDisplayLength=n,vt(e),gt(e,null,"length",[e,n])}function Ie(t){for(var n=t.oClasses,r=t.sTableId,i=t.aLengthMenu,o=e.isArray(i[0]),a=o?i[0]:i,s=o?i[1]:i,l=e("<select/>",{name:r+"_length","aria-controls":r,class:n.sLengthSelect}),u=0,c=a.length;u<c;u++)l[0][u]=new Option(s[u],a[u]);var f=e("<div><label/></div>").addClass(n.sLength);return t.aanFeatures.l||(f[0].id=r+"_length"),f.children().append(t.oLanguage.sLengthMenu.replace("_MENU_",l[0].outerHTML)),e("select",f).val(t._iDisplayLength).bind("change.DT",(function(n){Ee(t,e(this).val()),ae(t)})),e(t.nTable).bind("length.dt.DT",(function(n,r,i){t===r&&e("select",f).val(i)})),f[0]}function Oe(t){var r=t.sPaginationType,i=n.ext.pager[r],o="function"==typeof i,a=function(e){ae(e)},s=e("<div/>").addClass(t.oClasses.sPaging+r)[0],l=t.aanFeatures;return o||i.fnInit(t,s,a),l.p||(s.id=t.sTableId+"_paginate",t.aoDrawCallback.push({fn:function(e){if(o){var t,n,r=e._iDisplayStart,s=e._iDisplayLength,u=e.fnRecordsDisplay(),c=-1===s,f=c?0:Math.ceil(r/s),d=c?1:Math.ceil(u/s),h=i(f,d);for(t=0,n=l.p.length;t<n;t++)mt(e,"pageButton")(e,l.p[t],t,h,f,d)}else i.fnUpdate(e,a)},sName:"pagination"})),s}function Pe(e,t,n){var r=e._iDisplayStart,i=e._iDisplayLength,o=e.fnRecordsDisplay();0===o||-1===i?r=0:"number"==typeof t?(r=t*i)>o&&(r=0):"first"==t?r=0:"previous"==t?(r=i>=0?r-i:0)<0&&(r=0):"next"==t?r+i<o&&(r+=i):"last"==t?r=Math.floor((o-1)/i)*i:ct(e,0,"Unknown paging action: "+t,5);var a=e._iDisplayStart!==r;return e._iDisplayStart=r,a&&(gt(e,null,"page",[e]),n&&ae(e)),a}function Re(t){return e("<div/>",{id:t.aanFeatures.r?null:t.sTableId+"_processing",class:t.oClasses.sProcessing}).html(t.oLanguage.sProcessing).insertBefore(t.nTable)[0]}function He(t,n){t.oFeatures.bProcessing&&e(t.aanFeatures.r).css("display",n?"block":"none"),gt(t,null,"processing",[t,n])}function Fe(t){var n=e(t.nTable);n.attr("role","grid");var r=t.oScroll;if(""===r.sX&&""===r.sY)return t.nTable;var i=r.sX,o=r.sY,a=t.oClasses,s=n.children("caption"),l=s.length?s[0]._captionSide:null,u=e(n[0].cloneNode(!1)),c=e(n[0].cloneNode(!1)),f=n.children("tfoot"),d="<div/>",h=function(e){return e?Je(e):null};r.sX&&"100%"===n.attr("width")&&n.removeAttr("width"),f.length||(f=null);var p=e(d,{class:a.sScrollWrapper}).append(e(d,{class:a.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:i?h(i):"100%"}).append(e(d,{class:a.sScrollHeadInner}).css({"box-sizing":"content-box",width:r.sXInner||"100%"}).append(u.removeAttr("id").css("margin-left",0).append(n.children("thead")))).append("top"===l?s:null)).append(e(d,{class:a.sScrollBody}).css({overflow:"auto",height:h(o),width:h(i)}).append(n));f&&p.append(e(d,{class:a.sScrollFoot}).css({overflow:"hidden",border:0,width:i?h(i):"100%"}).append(e(d,{class:a.sScrollFootInner}).append(c.removeAttr("id").css("margin-left",0).append(n.children("tfoot")))).append("bottom"===l?s:null));var g=p.children(),v=g[0],m=g[1],y=f?g[2]:null;return i&&e(m).scroll((function(e){var t=this.scrollLeft;v.scrollLeft=t,f&&(y.scrollLeft=t)})),t.nScrollHead=v,t.nScrollBody=m,t.nScrollFoot=y,t.aoDrawCallback.push({fn:We,sName:"scrolling"}),p[0]}function We(t){var n,r,i,o,a,s,l,u,c,f=t.oScroll,d=f.sX,h=f.sXInner,p=f.sY,g=f.iBarWidth,v=e(t.nScrollHead),m=v[0].style,y=v.children("div"),b=y[0].style,w=y.children("table"),x=t.nScrollBody,C=e(x),S=x.style,_=e(t.nScrollFoot).children("div"),T=_.children("table"),k=e(t.nTHead),D=e(t.nTable),L=D[0],A=L.style,N=t.nTFoot?e(t.nTFoot):null,j=t.oBrowser,M=j.bScrollOversize,E=[],I=[],O=[],R=function(e){var t=e.style;t.paddingTop="0",t.paddingBottom="0",t.borderTopWidth="0",t.borderBottomWidth="0",t.height=0};if(D.children("thead, tfoot").remove(),a=k.clone().prependTo(D),n=k.find("tr"),i=a.find("tr"),a.find("th, td").removeAttr("tabindex"),N&&(s=N.clone().prependTo(D),r=N.find("tr"),o=s.find("tr")),d||(S.width="100%",v[0].style.width="100%"),e.each(ce(t,a),(function(e,n){l=P(t,e),n.style.width=t.aoColumns[l].sWidth})),N&&ze((function(e){e.style.width=""}),o),f.bCollapse&&""!==p&&(S.height=C[0].offsetHeight+k[0].offsetHeight+"px"),c=D.outerWidth(),""===d?(A.width="100%",M&&(D.find("tbody").height()>x.offsetHeight||"scroll"==C.css("overflow-y"))&&(A.width=Je(D.outerWidth()-g))):""!==h?A.width=Je(h):c==C.width()&&C.height()<D.height()?(A.width=Je(c-g),D.outerWidth()>c-g&&(A.width=Je(c))):A.width=Je(c),c=D.outerWidth(),ze(R,i),ze((function(t){O.push(t.innerHTML),E.push(Je(e(t).css("width")))}),i),ze((function(e,t){e.style.width=E[t]}),n),e(i).height(0),N&&(ze(R,o),ze((function(t){I.push(Je(e(t).css("width")))}),o),ze((function(e,t){e.style.width=I[t]}),r),e(o).height(0)),ze((function(e,t){e.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+O[t]+"</div>",e.style.width=E[t]}),i),N&&ze((function(e,t){e.innerHTML="",e.style.width=I[t]}),o),D.outerWidth()<c?(u=x.scrollHeight>x.offsetHeight||"scroll"==C.css("overflow-y")?c+g:c,M&&(x.scrollHeight>x.offsetHeight||"scroll"==C.css("overflow-y"))&&(A.width=Je(u-g)),""!==d&&""===h||ct(t,1,"Possible column misalignment",6)):u="100%",S.width=Je(u),m.width=Je(u),N&&(t.nScrollFoot.style.width=Je(u)),p||M&&(S.height=Je(L.offsetHeight+g)),p&&f.bCollapse){S.height=Je(p);var H=d&&L.offsetWidth>x.offsetWidth?g:0;L.offsetHeight<x.offsetHeight&&(S.height=Je(L.offsetHeight+H))}var F=D.outerWidth();w[0].style.width=Je(F),b.width=Je(F);var W=D.height()>x.clientHeight||"scroll"==C.css("overflow-y"),z="padding"+(j.bScrollbarLeft?"Left":"Right");b[z]=W?g+"px":"0px",N&&(T[0].style.width=Je(F),_[0].style.width=Je(F),_[0].style[z]=W?g+"px":"0px"),C.scroll(),!t.bSorted&&!t.bFiltered||t._drawHold||(x.scrollTop=0)}function ze(e,t,n){for(var r,i,o=0,a=0,s=t.length;a<s;){for(r=t[a].firstChild,i=n?n[a].firstChild:null;r;)1===r.nodeType&&(n?e(r,i,o):e(r,o),o++),r=r.nextSibling,i=n?i.nextSibling:null;a++}}var qe=/<.*?>/g;function Be(n){var r,i,o,a,s,l=n.nTable,u=n.aoColumns,c=n.oScroll,f=c.sY,d=c.sX,h=c.sXInner,p=u.length,g=F(n,"bVisible"),v=e("th",n.nTHead),m=l.getAttribute("width"),y=l.parentNode,b=!1;for(r=0;r<g.length;r++)null!==(i=u[g[r]]).sWidth&&(i.sWidth=Ve(i.sWidthOrig,y),b=!0);if(b||d||f||p!=H(n)||p!=v.length){var w=e(l).clone().empty().css("visibility","hidden").removeAttr("id").append(e(n.nTHead).clone(!1)).append(e(n.nTFoot).clone(!1)).append(e("<tbody><tr/></tbody>"));w.find("tfoot th, tfoot td").css("width","");var x=w.find("tbody tr");for(v=ce(n,w.find("thead")[0]),r=0;r<g.length;r++)i=u[g[r]],v[r].style.width=null!==i.sWidthOrig&&""!==i.sWidthOrig?Je(i.sWidthOrig):"";if(n.aoData.length)for(r=0;r<g.length;r++)i=u[o=g[r]],e(Xe(n,o)).clone(!1).append(i.sContentPadding).appendTo(x);if(w.appendTo(y),d&&h?w.width(h):d?(w.css("width","auto"),w.width()<y.offsetWidth&&w.width(y.offsetWidth)):f?w.width(y.offsetWidth):m&&w.width(m),Ge(n,w[0]),d){var C=0;for(r=0;r<g.length;r++)i=u[g[r]],s=e(v[r]).outerWidth(),C+=null===i.sWidthOrig?s:parseInt(i.sWidth,10)+s-e(v[r]).width();w.width(Je(C)),l.style.width=Je(C)}for(r=0;r<g.length;r++)i=u[g[r]],(a=e(v[r]).width())&&(i.sWidth=Je(a));l.style.width=Je(w.css("width")),w.remove()}else for(r=0;r<p;r++)u[r].sWidth=Je(v.eq(r).width());m&&(l.style.width=Je(m)),!m&&!d||n._reszEvt||(e(t).bind("resize.DT-"+n.sInstance,Ue((function(){O(n)}))),n._reszEvt=!0)}function Ue(e,t){var n,r,i=t||200;return function(){var t=this,o=+new Date,a=arguments;n&&o<n+i?(clearTimeout(r),r=setTimeout((function(){n=void 0,e.apply(t,a)}),i)):n?(n=o,e.apply(t,a)):n=o}}function Ve(t,n){if(!t)return 0;var i=e("<div/>").css("width",Je(t)).appendTo(n||r.body),o=i[0].offsetWidth;return i.remove(),o}function Ge(t,n){var r=t.oScroll;if(r.sX||r.sY){var i=r.sX?0:r.iBarWidth;n.style.width=Je(e(n).outerWidth()-i)}}function Xe(t,n){var r=$e(t,n);if(r<0)return null;var i=t.aoData[r];return i.nTr?i.anCells[n]:e("<td/>").html(U(t,r,n,"display"))[0]}function $e(e,t){for(var n,r=-1,i=-1,o=0,a=e.aoData.length;o<a;o++)(n=(n=U(e,o,t,"display")+"").replace(qe,"")).length>r&&(r=n.length,i=o);return i}function Je(e){return null===e?"0px":"number"==typeof e?e<0?"0px":e+"px":e.match(/\d$/)?e+"px":e}function Ye(){if(!n.__scrollbarWidth){var t=e("<p/>").css({width:"100%",height:200,padding:0})[0],r=e("<div/>").css({position:"absolute",top:0,left:0,width:200,height:150,padding:0,overflow:"hidden",visibility:"hidden"}).append(t).appendTo("body"),i=t.offsetWidth;r.css("overflow","scroll");var o=t.offsetWidth;i===o&&(o=r[0].clientWidth),r.remove(),n.__scrollbarWidth=i-o}return n.__scrollbarWidth}function Ke(t){var r,i,o,a,s,l,u,c=[],f=t.aoColumns,d=t.aaSortingFixed,h=e.isPlainObject(d),p=[],g=function(t){t.length&&!e.isArray(t[0])?p.push(t):p.push.apply(p,t)};for(e.isArray(d)&&g(d),h&&d.pre&&g(d.pre),g(t.aaSorting),h&&d.post&&g(d.post),r=0;r<p.length;r++)for(i=0,o=(a=f[u=p[r][0]].aDataSort).length;i<o;i++)l=f[s=a[i]].sType||"string",c.push({src:u,col:s,dir:p[r][1],index:p[r][2],type:l,formatter:n.ext.type.order[l+"-pre"]});return c}function Qe(e){var t,r,i,o,a,s=[],l=n.ext.type.order,u=e.aoData,c=(e.aoColumns,0),f=e.aiDisplayMaster;for(W(e),t=0,r=(a=Ke(e)).length;t<r;t++)(o=a[t]).formatter&&c++,at(e,o.col);if("ssp"!=yt(e)&&0!==a.length){for(t=0,i=f.length;t<i;t++)s[f[t]]=t;c===a.length?f.sort((function(e,t){var n,r,i,o,l,c,f,d,h,p=a.length,g=u[e]._aSortData,v=u[t]._aSortData;for(i=0;i<p;i++)if(n=g[(l=a[i]).col],r=v[l.col],c=u[e].anCells[l.col].firstChild.firstChild.className,f=u[t].anCells[l.col].firstChild.firstChild.className,d=u[e].anCells[l.col].firstChild.firstChild.lastChild.innerHTML,h=u[t].anCells[l.col].firstChild.firstChild.lastChild.innerHTML,0!==(o="uri"!==c&&void 0!==d&&"uri"!==f&&void 0!==h?et(Ze(d),Ze(h),tt(n),tt(r)):n<r?-1:n>r?1:0))return"asc"===l.dir?o:-o;return(n=s[e])<(r=s[t])?-1:n>r?1:0})):f.sort((function(e,t){var n,r,i,o,c,f=a.length,d=u[e]._aSortData,h=u[t]._aSortData;for(i=0;i<f;i++)if(n=d[(c=a[i]).col],r=h[c.col],0!==(o=(l[c.type+"-"+c.dir]||l["string-"+c.dir])(n,r)))return o;return(n=s[e])<(r=s[t])?-1:n>r?1:0}))}e.bSorted=!0}function Ze(e){switch(e){case"^^xsd:float":case"^^xsd:double":case"^^xsd:byte":case"^^xsd:short":case"^^xsd:int":case"^^xsd:integer":case"^^xsd:long":case"^^xsd:decimal":case"^^xsd:unsignedByte":case"^^xsd:unsignedInt":case"^^xsd:unsignedLong":case"^^xsd:unsignedShort":case"^^xsd:negativeInteger":case"^^xsd:nonNegativeInteger":case"^^xsd:positiveInteger":case"^^xsd:nonPositiveInteger":case"^^xsd:gDay":case"^^xsd:gMonth":case"^^xsd:gMonthDay":case"^^xsd:gYear":case"^^xsd:gYearMonth":return"num";case"^^xsd:date":case"^^xsd:dateTime":case"^^xsd:time":return"date";default:return"str"}}function et(e,t,n,r){switch(e.concat(t)){case"numnum":var i=new Number(n),o=new Number(r);return i<o?-1:i>o?1:0;case"datedate":var a=new Date(n),s=new Date(r);return a<s?-1:a>s?1:0;case"strnum":return 1;case"numstr":return-1;case"datenum":return 1;case"numdate":case"datestr":return-1;case"strdate":return 1;case"strstr":return n<r?-1:n>r?1:0}}function tt(e){return e.slice(1,e.lastIndexOf('"'))}function nt(e){for(var t,n,r=e.aoColumns,i=Ke(e),o=e.oLanguage.oAria,a=0,s=r.length;a<s;a++){var l=r[a],u=l.asSorting,c=l.sTitle.replace(/<.*?>/g,""),f=l.nTh;f.removeAttribute("aria-sort"),l.bSortable?(i.length>0&&i[0].col==a?(f.setAttribute("aria-sort","asc"==i[0].dir?"ascending":"descending"),n=u[i[0].index+1]||u[0]):n=u[0],t=c+("asc"===n?o.sSortAscending:o.sSortDescending)):t=c,f.setAttribute("aria-label",t)}}function rt(t,n,r,i){var o,a=t.aoColumns[n],s=t.aaSorting,l=a.asSorting,u=function(t){var n=t._idx;return void 0===n&&(n=e.inArray(t[1],l)),n+1>=l.length?0:n+1};if("number"==typeof s[0]&&(s=t.aaSorting=[s]),r&&t.oFeatures.bSortMulti){var c=e.inArray(n,w(s,"0"));-1!==c?(o=u(s[c]),s[c][1]=l[o],s[c]._idx=o):(s.push([n,l[0],0]),s[s.length-1]._idx=0)}else s.length&&s[0][0]==n?(o=u(s[0]),s.length=1,s[0][1]=l[o],s[0]._idx=o):(s.length=0,s.push([n,l[0]]),s[0]._idx=0);se(t),"function"==typeof i&&i(t)}function it(e,t,n,r){var i=e.aoColumns[n];ht(t,{},(function(t){!1!==i.bSortable&&(e.oFeatures.bProcessing?(He(e,!0),setTimeout((function(){rt(e,n,t.shiftKey,r),"ssp"!==yt(e)&&He(e,!1)}),0)):rt(e,n,t.shiftKey,r))}))}function ot(t){var n,r,i,o=t.aLastSort,a=t.oClasses.sSortColumn,s=Ke(t),l=t.oFeatures;if(l.bSort&&l.bSortClasses){for(n=0,r=o.length;n<r;n++)i=o[n].src,e(w(t.aoData,"anCells",i)).removeClass(a+(n<2?n+1:3));for(n=0,r=s.length;n<r;n++)i=s[n].src,e(w(t.aoData,"anCells",i)).addClass(a+(n<2?n+1:3))}t.aLastSort=s}function at(e,t){var r,i,o,a=e.aoColumns[t],s=n.ext.order[a.sSortDataType];s&&(r=s.call(e.oInstance,e,t,R(e,t)));for(var l=n.ext.type.order[a.sType+"-pre"],u=0,c=e.aoData.length;u<c;u++)(i=e.aoData[u])._aSortData||(i._aSortData=[]),i._aSortData[t]&&!s||(o=s?r[u]:U(e,u,t,"sort"),i._aSortData[t]=l?l(o):o)}function st(t){if(t.oFeatures.bStateSave&&!t.bDestroying){var n={time:+new Date,start:t._iDisplayStart,length:t._iDisplayLength,order:e.extend(!0,[],t.aaSorting),search:ke(t.oPreviousSearch),columns:e.map(t.aoColumns,(function(e,n){return{visible:e.bVisible,search:ke(t.aoPreSearchCols[n])}}))};gt(t,"aoStateSaveParams","stateSaveParams",[t,n]),t.oSavedState=n,t.fnStateSaveCallback.call(t.oInstance,t,n)}}function lt(t,n){var r,i,o=t.aoColumns;if(t.oFeatures.bStateSave){var a=t.fnStateLoadCallback.call(t.oInstance,t);if(a&&a.time){var s=gt(t,"aoStateLoadParams","stateLoadParams",[t,a]);if(-1===e.inArray(!1,s)){var l=t.iStateDuration;if(!(l>0&&a.time<+new Date-1e3*l)&&o.length===a.columns.length){for(t.oLoadedState=e.extend(!0,{},a),t._iDisplayStart=a.start,t.iInitDisplayStart=a.start,t._iDisplayLength=a.length,t.aaSorting=[],e.each(a.order,(function(e,n){t.aaSorting.push(n[0]>=o.length?[0,n[1]]:n)})),e.extend(t.oPreviousSearch,De(a.search)),r=0,i=a.columns.length;r<i;r++){var u=a.columns[r];o[r].bVisible=u.visible,e.extend(t.aoPreSearchCols[r],De(u.search))}gt(t,"aoStateLoaded","stateLoaded",[t,a])}}}}}function ut(t){var r=n.settings,i=e.inArray(t,w(r,"nTable"));return-1!==i?r[i]:null}function ct(e,r,i,o){if(i="DataTables warning: "+(null!==e?"table id="+e.sTableId+" - ":"")+i,o&&(i+=". For more information about this error, please see http://datatables.net/tn/"+o),r)t.console&&console.log&&console.log(i);else{var a=n.ext;if("alert"!=(a.sErrMode||a.errMode))throw new Error(i);alert(i)}}function ft(t,n,r,i){e.isArray(r)?e.each(r,(function(r,i){e.isArray(i)?ft(t,n,i[0],i[1]):ft(t,n,i)})):(void 0===i&&(i=r),void 0!==n[r]&&(t[i]=n[r]))}function dt(t,n,r){var i;for(var o in n)n.hasOwnProperty(o)&&(i=n[o],e.isPlainObject(i)?(e.isPlainObject(t[o])||(t[o]={}),e.extend(!0,t[o],i)):r&&"data"!==o&&"aaData"!==o&&e.isArray(i)?t[o]=i.slice():t[o]=i);return t}function ht(t,n,r){e(t).bind("click.DT",n,(function(e){t.blur(),r(e)})).bind("keypress.DT",n,(function(e){13===e.which&&(e.preventDefault(),r(e))})).bind("selectstart.DT",(function(){return!1}))}function pt(e,t,n,r){n&&e[t].push({fn:n,sName:r})}function gt(t,n,r,i){var o=[];return n&&(o=e.map(t[n].slice().reverse(),(function(e,n){return e.fn.apply(t.oInstance,i)}))),null!==r&&e(t.nTable).trigger(r+".dt",i),o}function vt(e){var t=e._iDisplayStart,n=e.fnDisplayEnd(),r=e._iDisplayLength;n===e.fnRecordsDisplay()&&(t=n-r),(-1===r||t<0)&&(t=0),e._iDisplayStart=t}function mt(t,r){var i=t.renderer,o=n.ext.renderer[r];return e.isPlainObject(i)&&i[r]?o[i[r]]||o._:"string"==typeof i&&o[i]||o._}function yt(e){return e.oFeatures.bServerSide?"ssp":e.ajax||e.sAjaxSource?"ajax":"dom"}n=function(t){this.$=function(e,t){return this.api(!0).$(e,t)},this._=function(e,t){return this.api(!0).rows(e,t).data()},this.api=function(e){return new o(e?ut(this[i.iApiIndex]):this)},this.fnAddData=function(t,n){var r=this.api(!0),i=e.isArray(t)&&(e.isArray(t[0])||e.isPlainObject(t[0]))?r.rows.add(t):r.row.add(t);return(void 0===n||n)&&r.draw(),i.flatten().toArray()},this.fnAdjustColumnSizing=function(e){var t=this.api(!0).columns.adjust(),n=t.settings()[0],r=n.oScroll;void 0===e||e?t.draw(!1):""===r.sX&&""===r.sY||We(n)},this.fnClearTable=function(e){var t=this.api(!0).clear();(void 0===e||e)&&t.draw()},this.fnClose=function(e){this.api(!0).row(e).child.hide()},this.fnDeleteRow=function(e,t,n){var r=this.api(!0),i=r.rows(e),o=i.settings()[0],a=o.aoData[i[0][0]];return i.remove(),t&&t.call(this,o,a),(void 0===n||n)&&r.draw(),a},this.fnDestroy=function(e){this.api(!0).destroy(e)},this.fnDraw=function(e){this.api(!0).draw(!e)},this.fnFilter=function(e,t,n,r,i,o){var a=this.api(!0);null==t?a.search(e,n,r,o):a.column(t).search(e,n,r,o),a.draw()},this.fnGetData=function(e,t){var n=this.api(!0);if(void 0!==e){var r=e.nodeName?e.nodeName.toLowerCase():"";return void 0!==t||"td"==r||"th"==r?n.cell(e,t).data():n.row(e).data()||null}return n.data().toArray()},this.fnGetNodes=function(e){var t=this.api(!0);return void 0!==e?t.row(e).node():t.rows().nodes().flatten().toArray()},this.fnGetPosition=function(e){var t=this.api(!0),n=e.nodeName.toUpperCase();if("TR"==n)return t.row(e).index();if("TD"==n||"TH"==n){var r=t.cell(e).index();return[r.row,r.columnVisible,r.column]}return null},this.fnIsOpen=function(e){return this.api(!0).row(e).child.isShown()},this.fnOpen=function(e,t,n){return this.api(!0).row(e).child(t,n).show().child()[0]},this.fnPageChange=function(e,t){var n=this.api(!0).page(e);(void 0===t||t)&&n.draw(!1)},this.fnSetColumnVis=function(e,t,n){var r=this.api(!0).column(e).visible(t);(void 0===n||n)&&r.columns.adjust().draw()},this.fnSettings=function(){return ut(this[i.iApiIndex])},this.fnSort=function(e){this.api(!0).order(e).draw()},this.fnSortListener=function(e,t,n){this.api(!0).order.listener(e,t,n)},this.fnUpdate=function(e,t,n,r,i){var o=this.api(!0);return null==n?o.row(t).data(e):o.cell(t,n).data(e),(void 0===i||i)&&o.columns.adjust(),(void 0===r||r)&&o.draw(),0},this.fnVersionCheck=i.fnVersionCheck;var r=this,a=void 0===t,s=this.length;for(var l in a&&(t={}),this.oApi=this.internal=i.internal,n.ext.internal)l&&(this[l]=Rt(l));return this.each((function(){var i,o=s>1?dt({},t,!0):t,l=0,u=this.getAttribute("id"),c=!1,f=n.defaults;if("table"==this.nodeName.toLowerCase()){A(f),N(f.column),k(f,f,!0),k(f.column,f.column,!0),k(f,o);var d=n.settings;for(l=0,i=d.length;l<i;l++){if(d[l].nTable==this){var h=void 0!==o.bRetrieve?o.bRetrieve:f.bRetrieve,p=void 0!==o.bDestroy?o.bDestroy:f.bDestroy;if(a||h)return d[l].oInstance;if(p){d[l].oInstance.fnDestroy();break}return void ct(d[l],0,"Cannot reinitialise DataTable",3)}if(d[l].sTableId==this.id){d.splice(l,1);break}}null!==u&&""!==u||(u="DataTables_Table_"+n.ext._unique++,this.id=u);var g=e.extend(!0,{},n.models.oSettings,{nTable:this,oApi:r.internal,oInit:o,sDestroyWidth:e(this)[0].style.width,sInstance:u,sTableId:u});d.push(g),g.oInstance=1===r.length?r:e(this).dataTable(),A(o),o.oLanguage&&D(o.oLanguage),o.aLengthMenu&&!o.iDisplayLength&&(o.iDisplayLength=e.isArray(o.aLengthMenu[0])?o.aLengthMenu[0][0]:o.aLengthMenu[0]),o=dt(e.extend(!0,{},f),o),ft(g.oFeatures,o,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),ft(g,o,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"],["bJQueryUI","bJUI"]]),ft(g.oScroll,o,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),ft(g.oLanguage,o,"fnInfoCallback"),pt(g,"aoDrawCallback",o.fnDrawCallback,"user"),pt(g,"aoServerParams",o.fnServerParams,"user"),pt(g,"aoStateSaveParams",o.fnStateSaveParams,"user"),pt(g,"aoStateLoadParams",o.fnStateLoadParams,"user"),pt(g,"aoStateLoaded",o.fnStateLoaded,"user"),pt(g,"aoRowCallback",o.fnRowCallback,"user"),pt(g,"aoRowCreatedCallback",o.fnCreatedRow,"user"),pt(g,"aoHeaderCallback",o.fnHeaderCallback,"user"),pt(g,"aoFooterCallback",o.fnFooterCallback,"user"),pt(g,"aoInitComplete",o.fnInitComplete,"user"),pt(g,"aoPreDrawCallback",o.fnPreDrawCallback,"user");var v=g.oClasses;if(g.translate=t.translate,o.bJQueryUI?(e.extend(v,n.ext.oJUIClasses,o.oClasses),o.sDom===f.sDom&&"lfrtip"===f.sDom&&(g.sDom='<"H"lfr>t<"F"ip>'),g.renderer?e.isPlainObject(g.renderer)&&!g.renderer.header&&(g.renderer.header="jqueryui"):g.renderer="jqueryui"):e.extend(v,n.ext.classes,o.oClasses),e(this).addClass(v.sTable),""===g.oScroll.sX&&""===g.oScroll.sY||(g.oScroll.iBarWidth=Ye()),!0===g.oScroll.sX&&(g.oScroll.sX="100%"),void 0===g.iInitDisplayStart&&(g.iInitDisplayStart=o.iDisplayStart,g._iDisplayStart=o.iDisplayStart),null!==o.iDeferLoading){g.bDeferLoading=!0;var m=e.isArray(o.iDeferLoading);g._iRecordsDisplay=m?o.iDeferLoading[0]:o.iDeferLoading,g._iRecordsTotal=m?o.iDeferLoading[1]:o.iDeferLoading}""!==o.oLanguage.sUrl?(g.oLanguage.sUrl=o.oLanguage.sUrl,e.getJSON(g.oLanguage.sUrl,null,(function(t){D(t),k(f.oLanguage,t),e.extend(!0,g.oLanguage,o.oLanguage,t),je(g)})),c=!0):e.extend(!0,g.oLanguage,o.oLanguage),null===o.asStripeClasses&&(g.asStripeClasses=[v.sStripeOdd,v.sStripeEven]);var y=g.asStripeClasses,b=e("tbody tr:eq(0)",this);-1!==e.inArray(!0,e.map(y,(function(e,t){return b.hasClass(e)})))&&(e("tbody tr",this).removeClass(y.join(" ")),g.asDestroyStripes=y.slice());var w,x=[],C=this.getElementsByTagName("thead");if(0!==C.length&&(ue(g.aoHeader,C[0]),x=ce(g)),null===o.aoColumns)for(w=[],l=0,i=x.length;l<i;l++)w.push(null);else w=o.aoColumns;for(l=0,i=w.length;l<i;l++)E(g,x?x[l]:null);if(z(g,o.aoColumnDefs,w,(function(e,t){I(g,e,t)})),b.length){var S=function(e,t){return e.getAttribute("data-"+t)?t:null};e.each(te(g,b[0]).cells,(function(e,t){var n=g.aoColumns[e];if(n.mData===e){var r=S(t,"sort")||S(t,"order"),i=S(t,"filter")||S(t,"search");null===r&&null===i||(n.mData={_:e+".display",sort:null!==r?e+".@data-"+r:void 0,type:null!==r?e+".@data-"+r:void 0,filter:null!==i?e+".@data-"+i:void 0},I(g,e))}}))}var _=g.oFeatures;if(o.bStateSave&&(_.bStateSave=!0,lt(g),pt(g,"aoDrawCallback",st,"state_save")),void 0===o.aaSorting){var T=g.aaSorting;for(l=0,i=T.length;l<i;l++)T[l][1]=g.aoColumns[l].asSorting[0]}ot(g),_.bSort&&pt(g,"aoDrawCallback",(function(){if(g.bSorted){var t=Ke(g),n={};e.each(t,(function(e,t){n[t.src]=t.dir})),gt(g,null,"order",[g,t,n]),nt(g)}})),pt(g,"aoDrawCallback",(function(){(g.bSorted||"ssp"===yt(g)||_.bDeferRender)&&ot(g)}),"sc"),j(g);var L=e(this).children("caption").each((function(){this._captionSide=e(this).css("caption-side")})),M=e(this).children("thead");0===M.length&&(M=e("<thead/>").appendTo(this)),g.nTHead=M[0];var O=e(this).children("tbody");0===O.length&&(O=e("<tbody/>").appendTo(this)),g.nTBody=O[0];var P=e(this).children("tfoot");if(0===P.length&&L.length>0&&(""!==g.oScroll.sX||""!==g.oScroll.sY)&&(P=e("<tfoot/>").appendTo(this)),0===P.length||0===P.children().length?e(this).addClass(v.sNoFooter):P.length>0&&(g.nTFoot=P[0],ue(g.aoFooter,g.nTFoot)),o.aaData)for(l=0;l<o.aaData.length;l++)q(g,o.aaData[l]);else(g.bDeferLoading||"dom"==yt(g))&&B(g,e(g.nTBody).children("tr"));g.aiDisplay=g.aiDisplayMaster.slice(),g.bInitialised=!0,!1===c&&je(g)}else ct(null,0,"Non-table node initialisation ("+this.nodeName+")",2)})),r=null,this};var bt=[],wt=Array.prototype;o=function(t,r){if(!this instanceof o)throw"DT API must be constructed as a new object";var i=[],a=function(t){var r=function(t){var r,i,o=n.settings,a=e.map(o,(function(e,t){return e.nTable}));return t?t.nTable&&t.oApi?[t]:t.nodeName&&"table"===t.nodeName.toLowerCase()?-1!==(r=e.inArray(t,a))?[o[r]]:null:t&&"function"==typeof t.settings?t.settings().toArray():("string"==typeof t?i=e(t):t instanceof e&&(i=t),i?i.map((function(t){return-1!==(r=e.inArray(this,a))?o[r]:null})).toArray():void 0):[]}(t);r&&i.push.apply(i,r)};if(e.isArray(t))for(var s=0,l=t.length;s<l;s++)a(t[s]);else a(t);this.context=_(i),r&&this.push.apply(this,r.toArray?r.toArray():r),this.selector={rows:null,cols:null,opts:null},o.extend(this,this,bt)},n.Api=o,o.prototype={concat:wt.concat,context:[],each:function(e){for(var t=0,n=this.length;t<n;t++)e.call(this,this[t],t,this);return this},eq:function(e){var t=this.context;return t.length>e?new o(t[e],this[e]):null},filter:function(e){var t=[];if(wt.filter)t=wt.filter.call(this,e,this);else for(var n=0,r=this.length;n<r;n++)e.call(this,this[n],n,this)&&t.push(this[n]);return new o(this.context,t)},flatten:function(){var e=[];return new o(this.context,e.concat.apply(e,this.toArray()))},join:wt.join,indexOf:wt.indexOf||function(e,t){for(var n=t||0,r=this.length;n<r;n++)if(this[n]===e)return n;return-1},iterator:function(e,t,n){var r,i,a,s,l,u,c,f,d=[],h=this.context,p=this.selector;for("string"==typeof e&&(n=t,t=e,e=!1),i=0,a=h.length;i<a;i++)if("table"===t)void 0!==(r=n(h[i],i))&&d.push(r);else if("columns"===t||"rows"===t)void 0!==(r=n(h[i],this[i],i))&&d.push(r);else if("column"===t||"column-rows"===t||"row"===t||"cell"===t)for(c=this[i],"column-rows"===t&&(u=Tt(h[i],p.opts)),s=0,l=c.length;s<l;s++)f=c[s],void 0!==(r="cell"===t?n(h[i],f.row,f.column,i,s):n(h[i],f,i,s,u))&&d.push(r);if(d.length){var g=new o(h,e?d.concat.apply([],d):d),v=g.selector;return v.rows=p.rows,v.cols=p.cols,v.opts=p.opts,g}return this},lastIndexOf:wt.lastIndexOf||function(e,t){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(e){var t=[];if(wt.map)t=wt.map.call(this,e,this);else for(var n=0,r=this.length;n<r;n++)t.push(e.call(this,this[n],n));return new o(this.context,t)},pluck:function(e){return this.map((function(t){return t[e]}))},pop:wt.pop,push:wt.push,reduce:wt.reduce||function(e,t){return M(this,e,t,0,this.length,1)},reduceRight:wt.reduceRight||function(e,t){return M(this,e,t,this.length-1,-1,-1)},reverse:wt.reverse,selector:null,shift:wt.shift,sort:wt.sort,splice:wt.splice,toArray:function(){return wt.slice.call(this)},to$:function(){return e(this)},toJQuery:function(){return e(this)},unique:function(){return new o(this.context,_(this))},unshift:wt.unshift},o.extend=function(t,n,r){if(n&&(n instanceof o||n.__dt_wrapper)){var i,a,s,l=function(e,t,n){return function(){var r=t.apply(e,arguments);return o.extend(r,r,n.methodExt),r}};for(i=0,a=r.length;i<a;i++)n[(s=r[i]).name]="function"==typeof s.val?l(t,s.val,s):e.isPlainObject(s.val)?{}:s.val,n[s.name].__dt_wrapper=!0,o.extend(t,n[s.name],s.propExt)}},o.register=a=function(t,n){if(e.isArray(t))for(var r=0,i=t.length;r<i;r++)o.register(t[r],n);else{var a,s,l,u,c=t.split("."),f=bt,d=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n].name===t)return e[n];return null};for(a=0,s=c.length;a<s;a++){var h=d(f,l=(u=-1!==c[a].indexOf("()"))?c[a].replace("()",""):c[a]);h||(h={name:l,val:{},methodExt:[],propExt:[]},f.push(h)),a===s-1?h.val=n:f=u?h.methodExt:h.propExt}}},o.registerPlural=s=function(t,n,r){o.register(t,r),o.register(n,(function(){var t=r.apply(this,arguments);return t===this?this:t instanceof o?t.length?e.isArray(t[0])?new o(t.context,t[0]):t[0]:void 0:t}))},a("tables()",(function(t){return t?new o(function(t,n){if("number"==typeof t)return[n[t]];var r=e.map(n,(function(e,t){return e.nTable}));return e(r).filter(t).map((function(t){var i=e.inArray(this,r);return n[i]})).toArray()}(t,this.context)):this})),a("table()",(function(e){var t=this.tables(e),n=t.context;return n.length?new o(n[0]):t})),s("tables().nodes()","table().node()",(function(){return this.iterator("table",(function(e){return e.nTable}))})),s("tables().body()","table().body()",(function(){return this.iterator("table",(function(e){return e.nTBody}))})),s("tables().header()","table().header()",(function(){return this.iterator("table",(function(e){return e.nTHead}))})),s("tables().footer()","table().footer()",(function(){return this.iterator("table",(function(e){return e.nTFoot}))})),s("tables().containers()","table().container()",(function(){return this.iterator("table",(function(e){return e.nTableWrapper}))})),a("draw()",(function(e){return this.iterator("table",(function(t){se(t,!1===e)}))})),a("page()",(function(e){return void 0===e?this.page.info().page:this.iterator("table",(function(t){Pe(t,e)}))})),a("page.info()",(function(e){if(0!==this.context.length){var t=this.context[0],n=t._iDisplayStart,r=t._iDisplayLength,i=t.fnRecordsDisplay(),o=-1===r;return{page:o?0:Math.floor(n/r),pages:o?1:Math.ceil(i/r),start:n,end:t.fnDisplayEnd(),length:r,recordsTotal:t.fnRecordsTotal(),recordsDisplay:i}}})),a("page.len()",(function(e){return void 0===e?0!==this.context.length?this.context[0]._iDisplayLength:void 0:this.iterator("table",(function(t){Ee(t,e)}))}));var xt=function(e,t,n){if("ssp"==yt(e)?se(e,t):(He(e,!0),fe(e,[],(function(n){Q(e);for(var r=ge(e,n),i=0,o=r.length;i<o;i++)q(e,r[i]);se(e,t),He(e,!1)}))),n){var r=new o(e);r.one("draw",(function(){n(r.ajax.json())}))}};a("ajax.json()",(function(){var e=this.context;if(e.length>0)return e[0].json})),a("ajax.params()",(function(){var e=this.context;if(e.length>0)return e[0].oAjaxData})),a("ajax.reload()",(function(e,t){return this.iterator("table",(function(n){xt(n,!1===t,e)}))})),a("ajax.url()",(function(t){var n=this.context;if(void 0===t){if(0===n.length)return;return(n=n[0]).ajax?e.isPlainObject(n.ajax)?n.ajax.url:n.ajax:n.sAjaxSource}return this.iterator("table",(function(n){e.isPlainObject(n.ajax)?n.ajax.url=t:n.ajax=t}))})),a("ajax.url().load()",(function(e,t){return this.iterator("table",(function(n){xt(n,!1===t,e)}))}));var Ct=function(t,n){var r,i,o,a,s,l,u=[];for(t&&"string"!=typeof t&&void 0!==t.length||(t=[t]),o=0,a=t.length;o<a;o++)for(s=0,l=(i=t[o]&&t[o].split?t[o].split(","):[t[o]]).length;s<l;s++)(r=n("string"==typeof i[s]?e.trim(i[s]):i[s]))&&r.length&&u.push.apply(u,r);return u},St=function(e){return e||(e={}),e.filter&&!e.search&&(e.search=e.filter),{search:e.search||"none",order:e.order||"current",page:e.page||"all"}},_t=function(e){for(var t=0,n=e.length;t<n;t++)if(e[t].length>0)return e[0]=e[t],e.length=1,e.context=[e.context[t]],e;return e.length=0,e},Tt=function(t,n){var r,i,o,a=[],s=t.aiDisplay,l=t.aiDisplayMaster,u=n.search,c=n.order,f=n.page;if("ssp"==yt(t))return"removed"===u?[]:C(0,l.length);if("current"==f)for(r=t._iDisplayStart,i=t.fnDisplayEnd();r<i;r++)a.push(s[r]);else if("current"==c||"applied"==c)a="none"==u?l.slice():"applied"==u?s.slice():e.map(l,(function(t,n){return-1===e.inArray(t,s)?t:null}));else if("index"==c||"original"==c)for(r=0,i=t.aoData.length;r<i;r++)("none"==u||-1===(o=e.inArray(r,s))&&"removed"==u||o>=0&&"applied"==u)&&a.push(r);return a};a("rows()",(function(t,n){void 0===t?t="":e.isPlainObject(t)&&(n=t,t=""),n=St(n);var r=this.iterator("table",(function(r){return function(t,n,r){return Ct(n,(function(n){var i=v(n);if(null!==i&&!r)return[i];var o=Tt(t,r);if(null!==i&&-1!==e.inArray(i,o))return[i];if(!n)return o;for(var a=[],s=0,l=o.length;s<l;s++)a.push(t.aoData[o[s]].nTr);return n.nodeName&&-1!==e.inArray(n,a)?[n._DT_RowIndex]:e(a).filter(n).map((function(){return this._DT_RowIndex})).toArray()}))}(r,t,n)}));return r.selector.rows=t,r.selector.opts=n,r})),a("rows().nodes()",(function(){return this.iterator("row",(function(e,t){return e.aoData[t].nTr||void 0}))})),a("rows().data()",(function(){return this.iterator(!0,"rows",(function(e,t){return x(e.aoData,t,"_aData")}))})),s("rows().cache()","row().cache()",(function(e){return this.iterator("row",(function(t,n){var r=t.aoData[n];return"search"===e?r._aFilterData:r._aSortData}))})),s("rows().invalidate()","row().invalidate()",(function(e){return this.iterator("row",(function(t,n){ee(t,n,e)}))})),s("rows().indexes()","row().index()",(function(){return this.iterator("row",(function(e,t){return t}))})),s("rows().remove()","row().remove()",(function(){var t=this;return this.iterator("row",(function(n,r,i){var o=n.aoData;o.splice(r,1);for(var a=0,s=o.length;a<s;a++)null!==o[a].nTr&&(o[a].nTr._DT_RowIndex=a);e.inArray(r,n.aiDisplay),Z(n.aiDisplayMaster,r),Z(n.aiDisplay,r),Z(t[i],r,!1),vt(n)}))})),a("rows.add()",(function(e){var t=this.iterator("table",(function(t){var n,r,i,o=[];for(r=0,i=e.length;r<i;r++)(n=e[r]).nodeName&&"TR"===n.nodeName.toUpperCase()?o.push(B(t,n)[0]):o.push(q(t,n));return o})),n=this.rows(-1);return n.pop(),n.push.apply(n,t.toArray()),n})),a("row()",(function(e,t){return _t(this.rows(e,t))})),a("row().data()",(function(e){var t=this.context;return void 0===e?t.length&&this.length?t[0].aoData[this[0]]._aData:void 0:(t[0].aoData[this[0]]._aData=e,ee(t[0],this[0],"data"),this)})),a("row().node()",(function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]].nTr||null})),a("row.add()",(function(t){t instanceof e&&t.length&&(t=t[0]);var n=this.iterator("table",(function(e){return t.nodeName&&"TR"===t.nodeName.toUpperCase()?B(e,t)[0]:q(e,t)}));return this.row(n[0])}));var kt=function(e){var t=e.context;if(t.length&&e.length){var n=t[0].aoData[e[0]];n._details&&(n._details.remove(),n._detailsShow=void 0,n._details=void 0)}},Dt=function(e,t){var n=e.context;if(n.length&&e.length){var r=n[0].aoData[e[0]];r._details&&(r._detailsShow=t,t?r._details.insertAfter(r.nTr):r._details.detach(),Lt(n[0]))}},Lt=function(e){var t=new o(e),n=e.aoData;t.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details"),w(n,"_details").length>0&&(t.on("draw.dt.DT_details",(function(r,i){e===i&&t.rows({page:"current"}).eq(0).each((function(e){var t=n[e];t._detailsShow&&t._details.insertAfter(t.nTr)}))})),t.on("column-visibility.dt.DT_details",(function(t,r,i,o){if(e===r)for(var a,s=H(r),l=0,u=n.length;l<u;l++)(a=n[l])._details&&a._details.children("td[colspan]").attr("colspan",s)})),t.on("destroy.dt.DT_details",(function(t,r){if(e===r)for(var i=0,o=n.length;i<o;i++)n[i]._details&&kt(n[i])})))};a("row().child()",(function(t,n){var r=this.context;return void 0===t?r.length&&this.length?r[0].aoData[this[0]]._details:void 0:(!0===t?this.child.show():!1===t?kt(this):r.length&&this.length&&function(t,n,r,i){var o=[],a=function(n,r){if(n.nodeName&&"tr"===n.nodeName.toLowerCase())o.push(n);else{var i=e("<tr><td/></tr>").addClass(r);e("td",i).addClass(r).html(n)[0].colSpan=H(t),o.push(i[0])}};if(e.isArray(r)||r instanceof e)for(var s=0,l=r.length;s<l;s++)a(r[s],i);else a(r,i);n._details&&n._details.remove(),n._details=e(o),n._detailsShow&&n._details.insertAfter(n.nTr)}(r[0],r[0].aoData[this[0]],t,n),this)})),a(["row().child.show()","row().child().show()"],(function(e){return Dt(this,!0),this})),a(["row().child.hide()","row().child().hide()"],(function(){return Dt(this,!1),this})),a(["row().child.remove()","row().child().remove()"],(function(){return kt(this),this})),a("row().child.isShown()",(function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]]._detailsShow||!1}));var At,Nt,jt,Mt=/^(.+):(name|visIdx|visible)$/;a("columns()",(function(t,n){void 0===t?t="":e.isPlainObject(t)&&(n=t,t=""),n=St(n);var r=this.iterator("table",(function(n){return function(t,n,r){var i=t.aoColumns,o=w(i,"sName"),a=w(i,"nTh");return Ct(n,(function(n){var r=v(n);if(""===n)return C(i.length);if(null!==r)return[r>=0?r:i.length+r];var s="string"==typeof n?n.match(Mt):"";if(!s)return e(a).filter(n).map((function(){return e.inArray(this,a)})).toArray();switch(s[2]){case"visIdx":case"visible":var l=parseInt(s[1],10);if(l<0){var u=e.map(i,(function(e,t){return e.bVisible?t:null}));return[u[u.length+l]]}return[P(t,l)];case"name":return e.map(o,(function(e,t){return e===s[1]?t:null}))}}))}(n,t)}));return r.selector.cols=t,r.selector.opts=n,r})),s("columns().header()","column().header()",(function(e,t){return this.iterator("column",(function(e,t){return e.aoColumns[t].nTh}))})),s("columns().footer()","column().footer()",(function(e,t){return this.iterator("column",(function(e,t){return e.aoColumns[t].nTf}))})),s("columns().data()","column().data()",(function(){return this.iterator("column-rows",(function(e,t,n,r,i){for(var o=[],a=0,s=i.length;a<s;a++)o.push(U(e,i[a],t,""));return o}))})),s("columns().cache()","column().cache()",(function(e){return this.iterator("column-rows",(function(t,n,r,i,o){return x(t.aoData,o,"search"===e?"_aFilterData":"_aSortData",n)}))})),s("columns().nodes()","column().nodes()",(function(){return this.iterator("column-rows",(function(e,t,n,r,i){return x(e.aoData,i,"anCells",t)}))})),s("columns().visible()","column().visible()",(function(t,n){return this.iterator("column",(function(r,i){return void 0===t?r.aoColumns[i].bVisible:function(t,n,r,i){var o,a,s,l,u=t.aoColumns,c=u[n],f=t.aoData;if(void 0===r)return c.bVisible;if(c.bVisible!==r){if(r){var d=e.inArray(!0,w(u,"bVisible"),n+1);for(a=0,s=f.length;a<s;a++)l=f[a].nTr,o=f[a].anCells,l&&l.insertBefore(o[n],o[d]||null)}else e(w(t.aoData,"anCells",n)).detach();c.bVisible=r,oe(t,t.aoHeader),oe(t,t.aoFooter),(void 0===i||i)&&(O(t),(t.oScroll.sX||t.oScroll.sY)&&We(t)),gt(t,null,"column-visibility",[t,n,r]),st(t)}}(r,i,t,n)}))})),s("columns().indexes()","column().index()",(function(e){return this.iterator("column",(function(t,n){return"visible"===e?R(t,n):n}))})),a("columns.adjust()",(function(){return this.iterator("table",(function(e){O(e)}))})),a("column.index()",(function(e,t){if(0!==this.context.length){var n=this.context[0];if("fromVisible"===e||"toData"===e)return P(n,t);if("fromData"===e||"toVisible"===e)return R(n,t)}})),a("column()",(function(e,t){return _t(this.columns(e,t))})),a("cells()",(function(t,n,r){if(e.isPlainObject(t)&&(void 0!==typeof t.row?(r=n,n=null):(r=t,t=null)),e.isPlainObject(n)&&(r=n,n=null),null==n)return this.iterator("table",(function(n){return function(t,n,r){var i,o,a,s,l,u=t.aoData,c=Tt(t,r),f=x(u,c,"anCells"),d=e([].concat.apply([],f)),h=t.aoColumns.length;return Ct(n,(function(t){if(null==t){for(o=[],a=0,s=c.length;a<s;a++)for(i=c[a],l=0;l<h;l++)o.push({row:i,column:l});return o}return e.isPlainObject(t)?[t]:d.filter(t).map((function(t,n){return{row:i=n.parentNode._DT_RowIndex,column:e.inArray(n,u[i].anCells)}})).toArray()}))}(n,t,St(r))}));var i,o,a,s,l,u=this.columns(n,r),c=this.rows(t,r),f=this.iterator("table",(function(e,t){for(i=[],o=0,a=c[t].length;o<a;o++)for(s=0,l=u[t].length;s<l;s++)i.push({row:c[t][o],column:u[t][s]});return i}));return e.extend(f.selector,{cols:n,rows:t,opts:r}),f})),s("cells().nodes()","cell().node()",(function(){return this.iterator("cell",(function(e,t,n){return e.aoData[t].anCells[n]}))})),a("cells().data()",(function(){return this.iterator("cell",(function(e,t,n){return U(e,t,n)}))})),s("cells().cache()","cell().cache()",(function(e){return e="search"===e?"_aFilterData":"_aSortData",this.iterator("cell",(function(t,n,r){return t.aoData[n][e][r]}))})),s("cells().indexes()","cell().index()",(function(){return this.iterator("cell",(function(e,t,n){return{row:t,column:n,columnVisible:R(e,n)}}))})),a(["cells().invalidate()","cell().invalidate()"],(function(e){var t=this.selector;return this.rows(t.rows,t.opts).invalidate(e),this})),a("cell()",(function(e,t,n){return _t(this.cells(e,t,n))})),a("cell().data()",(function(e){var t=this.context,n=this[0];return void 0===e?t.length&&n.length?U(t[0],n[0].row,n[0].column):void 0:(V(t[0],n[0].row,n[0].column,e),ee(t[0],n[0].row,"data",n[0].column),this)})),a("order()",(function(t,n){var r=this.context;return void 0===t?0!==r.length?r[0].aaSorting:void 0:("number"==typeof t?t=[[t,n]]:e.isArray(t[0])||(t=Array.prototype.slice.call(arguments)),this.iterator("table",(function(e){e.aaSorting=t.slice()})))})),a("order.listener()",(function(e,t,n){return this.iterator("table",(function(r){it(r,e,t,n)}))})),a(["columns().order()","column().order()"],(function(t){var n=this;return this.iterator("table",(function(r,i){var o=[];e.each(n[i],(function(e,n){o.push([n,t])})),r.aaSorting=o}))})),a("search()",(function(t,n,r,i){var o=this.context;return void 0===t?0!==o.length?o[0].oPreviousSearch.sSearch:void 0:this.iterator("table",(function(o){o.oFeatures.bFilter&&me(o,e.extend({},o.oPreviousSearch,{sSearch:t+"",bRegex:null!==n&&n,bSmart:null===r||r,bCaseInsensitive:null===i||i}),1)}))})),s("columns().search()","column().search()",(function(t,n,r,i){return this.iterator("column",(function(o,a){var s=o.aoPreSearchCols;if(void 0===t)return s[a].sSearch;o.oFeatures.bFilter&&(e.extend(s[a],{sSearch:t+"",bRegex:null!==n&&n,bSmart:null===r||r,bCaseInsensitive:null===i||i}),me(o,o.oPreviousSearch,1))}))})),a("state()",(function(){return this.context.length?this.context[0].oSavedState:null})),a("state.clear()",(function(){return this.iterator("table",(function(e){e.fnStateSaveCallback.call(e.oInstance,e,{})}))})),a("state.loaded()",(function(){return this.context.length?this.context[0].oLoadedState:null})),a("state.save()",(function(){return this.iterator("table",(function(e){st(e)}))})),n.versionCheck=n.fnVersionCheck=function(e){for(var t,r,i=n.version.split("."),o=e.split("."),a=0,s=o.length;a<s;a++)if((t=parseInt(i[a],10)||0)!==(r=parseInt(o[a],10)||0))return t>r;return!0},n.isDataTable=n.fnIsDataTable=function(t){var r=e(t).get(0),i=!1;return e.each(n.settings,(function(e,t){t.nTable!==r&&t.nScrollHead!==r&&t.nScrollFoot!==r||(i=!0)})),i},n.tables=n.fnTables=function(t){return jQuery.map(n.settings,(function(n){if(!t||t&&e(n.nTable).is(":visible"))return n.nTable}))},n.camelToHungarian=k,a("$()",(function(t,n){var r=this.rows(n).nodes(),i=e(r);return e([].concat(i.filter(t).toArray(),i.find(t).toArray()))})),e.each(["on","one","off"],(function(t,n){a(n+"()",(function(){var t=Array.prototype.slice.call(arguments);t[0].match(/\.dt\b/)||(t[0]+=".dt");var r=e(this.tables().nodes());return r[n].apply(r,t),this}))})),a("clear()",(function(){return this.iterator("table",(function(e){Q(e)}))})),a("settings()",(function(){return new o(this.context,this.context)})),a("data()",(function(){return this.iterator("table",(function(e){return w(e.aoData,"_aData")})).flatten()})),a("destroy()",(function(r){return r=r||!1,this.iterator("table",(function(i){var a,s=i.nTableWrapper.parentNode,l=i.oClasses,u=i.nTable,c=i.nTBody,f=i.nTHead,d=i.nTFoot,h=e(u),p=e(c),g=e(i.nTableWrapper),v=e.map(i.aoData,(function(e){return e.nTr}));i.bDestroying=!0,gt(i,"aoDestroyCallback","destroy",[i]),r||new o(i).columns().visible(!0),g.unbind(".DT").find(":not(tbody *)").unbind(".DT"),e(t).unbind(".DT-"+i.sInstance),u!=f.parentNode&&(h.children("thead").detach(),h.append(f)),d&&u!=d.parentNode&&(h.children("tfoot").detach(),h.append(d)),h.detach(),g.detach(),i.aaSorting=[],i.aaSortingFixed=[],ot(i),e(v).removeClass(i.asStripeClasses.join(" ")),e("th, td",f).removeClass(l.sSortable+" "+l.sSortableAsc+" "+l.sSortableDesc+" "+l.sSortableNone),i.bJUI&&(e("th span."+l.sSortIcon+", td span."+l.sSortIcon,f).detach(),e("th, td",f).each((function(){var t=e("div."+l.sSortJUIWrapper,this);e(this).append(t.contents()),t.detach()}))),!r&&s&&s.insertBefore(u,i.nTableReinsertBefore),p.children().detach(),p.append(v),h.css("width",i.sDestroyWidth).removeClass(l.sTable),(a=i.asDestroyStripes.length)&&p.children().each((function(t){e(this).addClass(i.asDestroyStripes[t%a])}));var m=e.inArray(i,n.settings);-1!==m&&n.settings.splice(m,1)}))})),n.version="1.10.2",n.settings=[],n.models={},n.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},n.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null},n.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},n.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(e){try{return JSON.parse((-1===e.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch(e){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,t){try{(-1===e.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(t))}catch(e){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"yasr.empty.table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"yasr.loading.label",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:e.extend({},n.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null},T(n.defaults),n.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},T(n.defaults.column),n.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:void 0,oAjaxData:void 0,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==yt(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==yt(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,t=this._iDisplayStart,n=t+e,r=this.aiDisplay.length,i=this.oFeatures,o=i.bPaginate;return i.bServerSide?!1===o||-1===e?t+r:Math.min(t+e,this._iRecordsDisplay):!o||n>r||-1===e?r:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{}},n.ext=i={classes:{},errMode:"alert",feature:[],search:[],internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:n.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:n.version},e.extend(i,{afnFiltering:i.search,aTypes:i.type.detect,ofnSearch:i.type.search,oSort:i.type.order,afnSortData:i.order,aoFeatures:i.feature,oApi:i.internal,oStdClasses:i.classes,oPagination:i.pager}),e.extend(n.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""}),At="ui-state-default",Nt="css_right ui-icon ui-icon-",jt="fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix",e.extend(n.ext.oJUIClasses,n.ext.classes,{sPageButton:"fg-button ui-button "+At,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:At+" sorting_asc",sSortDesc:At+" sorting_desc",sSortable:At+" sorting",sSortableAsc:At+" sorting_asc_disabled",sSortableDesc:At+" sorting_desc_disabled",sSortableNone:At+" sorting_disabled",sSortJUIAsc:Nt+"triangle-1-n",sSortJUIDesc:Nt+"triangle-1-s",sSortJUI:Nt+"carat-2-n-s",sSortJUIAscAllowed:Nt+"carat-1-n",sSortJUIDescAllowed:Nt+"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+At,sScrollFoot:"dataTables_scrollFoot "+At,sHeaderTH:At,sFooterTH:At,sJUIHeader:jt+" ui-corner-tl ui-corner-tr",sJUIFooter:jt+" ui-corner-bl ui-corner-br"});var Et=n.ext.pager;function It(e,t){var n=[],r=Et.numbers_length,i=Math.floor(r/2);return t<=r?n=C(0,t):e<=i?((n=C(0,r-2)).push("ellipsis"),n.push(t-1)):e>=t-1-i?((n=C(t-(r-2),t)).splice(0,0,"ellipsis"),n.splice(0,0,0)):((n=C(e-1,e+2)).push("ellipsis"),n.push(t-1),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}e.extend(Et,{simple:function(e,t){return["previous","next"]},full:function(e,t){return["first","previous","next","last"]},simple_numbers:function(e,t){return["previous",It(e,t),"next"]},full_numbers:function(e,t){return["first","previous",It(e,t),"next","last"]},_numbers:It,numbers_length:7}),e.extend(!0,n.ext.renderer,{pageButton:{_:function(t,n,i,o,a,s){var l,u,c=t.oClasses,f=t.oLanguage.oPaginate,d=0,h=function(n,r){var o,p,g,v=function(e){Pe(t,e.data.action,!0)};for(o=0,p=r.length;o<p;o++)if(g=r[o],e.isArray(g)){var m=e("<"+(g.DT_el||"div")+"/>").appendTo(n);h(m,g)}else{switch(l="",u="",g){case"ellipsis":n.append("<span>&hellip;</span>");break;case"first":l=f.sFirst,u=g+(a>0?"":" "+c.sPageButtonDisabled);break;case"previous":l=f.sPrevious,u=g+(a>0?"":" "+c.sPageButtonDisabled);break;case"next":l=f.sNext,u=g+(a<s-1?"":" "+c.sPageButtonDisabled);break;case"last":l=f.sLast,u=g+(a<s-1?"":" "+c.sPageButtonDisabled);break;default:l=g+1,u=a===g?c.sPageButtonActive:""}l&&(ht(e("<a>",{class:c.sPageButton+" "+u,"aria-controls":t.sTableId,"data-dt-idx":d,tabindex:t.iTabIndex,id:0===i&&"string"==typeof g?t.sTableId+"_"+g:null}).html(l).appendTo(n),{action:g},v),d++)}};try{var p=e(r.activeElement).data("dt-idx");h(e(n).empty(),o),null!==p&&e(n).find("[data-dt-idx="+p+"]").focus()}catch(e){}}}});var Ot=function(e,t,n,r){return e&&"-"!==e?(t&&(e=m(e,t)),e.replace&&(n&&(e=e.replace(n,"")),r&&(e=e.replace(r,""))),1*e):-1/0};function Pt(t){e.each({num:function(e){return Ot(e,t)},"num-fmt":function(e){return Ot(e,t,p)},"html-num":function(e){return Ot(e,t,c)},"html-num-fmt":function(e){return Ot(e,t,c,p)}},(function(e,n){i.type.order[e+t+"-pre"]=n}))}function Rt(e){return function(){var t=[ut(this[n.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return n.ext.internal[e].apply(this,t)}}return e.extend(i.type.order,{"date-pre":function(e){return Date.parse(e)||0},"html-pre":function(e){return g(e)?"":e.replace?e.replace(/<.*?>/g,"").toLowerCase():e+""},"string-pre":function(e){return g(e)?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""},"string-asc":function(e,t){return e<t?-1:e>t?1:0},"string-desc":function(e,t){return e<t?1:e>t?-1:0}}),Pt(""),e.extend(n.ext.type.detect,[function(e,t){var n=t.oLanguage.sDecimal;return y(e,n)?"num"+n:null},function(e,t){if(e&&(!f.test(e)||!d.test(e)))return null;var n=Date.parse(e);return null!==n&&!isNaN(n)||g(e)?"date":null},function(e,t){var n=t.oLanguage.sDecimal;return y(e,n,!0)?"num-fmt"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return b(e,n)?"html-num"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return b(e,n,!0)?"html-num-fmt"+n:null},function(e,t){return g(e)||"string"==typeof e&&-1!==e.indexOf("<")?"html":null}]),e.extend(n.ext.type.search,{html:function(e){return g(e)?e:"string"==typeof e?e.replace(u," ").replace(c,""):""},string:function(e){return g(e)?e:"string"==typeof e?e.replace(u," "):e}}),e.extend(!0,n.ext.renderer,{header:{_:function(t,n,r,i){e(t.nTable).on("order.dt.DT",(function(e,o,a,s){if(t===o){var l=r.idx;n.removeClass(r.sSortingClass+" "+i.sSortAsc+" "+i.sSortDesc).addClass("asc"==s[l]?i.sSortAsc:"desc"==s[l]?i.sSortDesc:r.sSortingClass)}}))},jqueryui:function(t,n,r,i){var o=r.idx;e("<div/>").addClass(i.sSortJUIWrapper).append(n.contents()).append(e("<span/>").addClass(i.sSortIcon+" "+r.sSortingClassJUI)).appendTo(n),e(t.nTable).on("order.dt.DT",(function(e,a,s,l){t===a&&(n.removeClass(i.sSortAsc+" "+i.sSortDesc).addClass("asc"==l[o]?i.sSortAsc:"desc"==l[o]?i.sSortDesc:r.sSortingClass),n.find("span."+i.sSortIcon).removeClass(i.sSortJUIAsc+" "+i.sSortJUIDesc+" "+i.sSortJUI+" "+i.sSortJUIAscAllowed+" "+i.sSortJUIDescAllowed).addClass("asc"==l[o]?i.sSortJUIAsc:"desc"==l[o]?i.sSortJUIDesc:r.sSortingClassJUI))}))}}}),n.render={number:function(e,t,n,r){return{display:function(i){var o=i<0?"-":"";i=Math.abs(parseFloat(i));var a=parseInt(i,10),s=n?t+(i-a).toFixed(n).substring(2):"";return o+(r||"")+a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e)+s}}}},e.extend(n.ext.internal,{_fnExternApiFunc:Rt,_fnBuildAjax:fe,_fnAjaxUpdate:de,_fnAjaxParameters:he,_fnAjaxUpdateDraw:pe,_fnAjaxDataSrc:ge,_fnAddColumn:E,_fnColumnOptions:I,_fnAdjustColumnSizing:O,_fnVisibleToColumnIndex:P,_fnColumnIndexToVisible:R,_fnVisbleColumns:H,_fnGetColumns:F,_fnColumnTypes:W,_fnApplyColumnDefs:z,_fnHungarianMap:T,_fnCamelToHungarian:k,_fnLanguageCompat:D,_fnBrowserDetect:j,_fnAddData:q,_fnAddTr:B,_fnNodeToDataIndex:function(e,t){return void 0!==t._DT_RowIndex?t._DT_RowIndex:null},_fnNodeToColumnIndex:function(t,n,r){return e.inArray(r,t.aoData[n].anCells)},_fnGetCellData:U,_fnSetCellData:V,_fnSplitObjNotation:$,_fnGetObjectDataFn:J,_fnSetObjectDataFn:Y,_fnGetDataMaster:K,_fnClearTable:Q,_fnDeleteIndex:Z,_fnInvalidateRow:ee,_fnGetRowElements:te,_fnCreateTr:ne,_fnBuildHead:ie,_fnDrawHead:oe,_fnDraw:ae,_fnReDraw:se,_fnAddOptionsHtml:le,_fnDetectHeader:ue,_fnGetUniqueThs:ce,_fnFeatureHtmlFilter:ve,_fnFilterComplete:me,_fnFilterCustom:ye,_fnFilterColumn:be,_fnFilter:we,_fnFilterCreateSearch:xe,_fnEscapeRegex:Ce,_fnFilterData:Te,_fnFeatureHtmlInfo:Le,_fnUpdateInfo:Ae,_fnInfoMacros:Ne,_fnInitialise:je,_fnInitComplete:Me,_fnLengthChange:Ee,_fnFeatureHtmlLength:Ie,_fnFeatureHtmlPaginate:Oe,_fnPageChange:Pe,_fnFeatureHtmlProcessing:Re,_fnProcessingDisplay:He,_fnFeatureHtmlTable:Fe,_fnScrollDraw:We,_fnApplyToChildren:ze,_fnCalculateColumnWidths:Be,_fnThrottle:Ue,_fnConvertToWidth:Ve,_fnScrollingWidthAdjust:Ge,_fnGetWidestNode:Xe,_fnGetMaxLenString:$e,_fnStringToCss:Je,_fnScrollBarWidth:Ye,_fnSortFlatten:Ke,_fnSort:Qe,_fnSortAria:nt,_fnSortListener:rt,_fnSortAttachListener:it,_fnSortingClasses:ot,_fnSortData:at,_fnSaveState:st,_fnLoadState:lt,_fnSettingsFromNode:ut,_fnLog:ct,_fnMap:ft,_fnBindAction:ht,_fnCallbackReg:pt,_fnCallbackFire:gt,_fnLengthOverflow:vt,_fnRenderer:mt,_fnDataSource:yt,_fnRowAttributes:re,_fnCalculateEnd:function(){}}),e.fn.dataTable=n,e.fn.dataTableSettings=n.settings,e.fn.dataTableExt=n.ext,e.fn.DataTable=function(t){return e(this).dataTable(t).api()},e.each(n,(function(t,n){e.fn.DataTable[t]=n})),e.fn.dataTable}))}(window,document)},{jquery:18}],3:[function(e,t,n){var r,i=e("jquery"),o=i(document),a=i("head"),s=null,l=[],u=0,c="px",f="JColResizer",d=parseInt,h=Math,p=navigator.userAgent.indexOf("Trident/4.0")>0;try{r=sessionStorage}catch(e){}a.append("<style type='text/css'> .JColResizer{table-layout:fixed;} .JColResizer td, .JColResizer th{overflow:hidden;padding-left:0!important; padding-right:0!important;} .JCLRgrips{ height:0px; position:relative;} .JCLRgrip{margin-left:-5px; position:absolute; z-index:5; } .JCLRgrip .JColResizer{position:absolute;background-color:red;filter:alpha(opacity=1);opacity:0;width:10px;height:100%;top:0px} .JCLRLastGrip{position:absolute; width:1px; } .JCLRgripDrag{ border-left:1px dotted black;\t}</style>");var g=function(e){var t=e.attr("id");(e=l[t])&&e.is("table")&&(e.removeClass(f).gc.remove(),delete l[t])},v=function(e){var t=e.find(">thead>tr>th,>thead>tr>td");t.length||(t=e.find(">tbody>tr:first>th,>tr:first>th,>tbody>tr:first>td, >tr:first>td")),e.cg=e.find("col"),e.ln=t.length,e.p&&r&&r[e.id]&&m(e,t),t.each((function(t){var n=i(this),r=i(e.gc.append('<div class="JCLRgrip"></div>')[0].lastChild);r.t=e,r.i=t,r.c=n,n.w=n.width(),e.g.push(r),e.c.push(n),t<e.ln-1?r.bind("touchstart mousedown",C).append(e.opt.gripInnerHtml).append('<div class="'+f+'" style="cursor:'+e.opt.hoverCursor+'"></div>'):r.addClass("JCLRLastGrip").removeClass("JCLRgrip"),r.data(f,{i:t,t:e.attr("id")})})),e.cg.removeAttr("width"),y(e),e.find("td, th").not(t).not("table th, table td").each((function(){i(this).removeAttr("width")}))},m=function(e,t){var n,i=0,o=0,a=[];if(t){if(e.cg.removeAttr("width"),e.opt.flush)return void(r[e.id]="");for(n=r[e.id].split(";");o<e.ln;o++)a.push(100*n[o]/n[e.ln]+"%"),t.eq(o).css("width",a[o]);for(o=0;o<e.ln;o++)e.cg.eq(o).css("width",a[o])}else{for(r[e.id]="";o<e.c.length;o++)n=e.c[o].width(),r[e.id]+=n+";",i+=n;r[e.id]+=i}},y=function(e){e.gc.width(e.w);for(var t=0;t<e.ln;t++){var n=e.c[t];e.g[t].css({left:n.offset().left-e.offset().left+n.outerWidth(!1)+e.cs/2+c,height:e.opt.headerOnly?e.c[0].outerHeight(!1):e.outerHeight(!1)})}},b=function(e,t,n){var r=s.x-s.l,i=e.c[t],o=e.c[t+1],a=i.w+r,l=o.w-r;i.width(a+c),o.width(l+c),e.cg.eq(t).width(a+c),e.cg.eq(t+1).width(l+c),n&&(i.w=a,o.w=l)},w=function(e){if(s){var t=s.t;if(e.originalEvent.touches)var n=e.originalEvent.touches[0].pageX-s.ox+s.l;else n=e.pageX-s.ox+s.l;var r=t.opt.minWidth,i=s.i,o=1.5*t.cs+r+t.b,a=i==t.ln-1?t.w-o:t.g[i+1].position().left-t.cs-r,l=i?t.g[i-1].position().left+t.cs+r:o;if(n=h.max(l,h.min(a,n)),s.x=n,s.css("left",n+c),t.opt.liveDrag){b(t,i),y(t);var u=t.opt.onDrag;u&&(e.currentTarget=t[0],u(e))}return!1}},x=function(e){if(o.unbind("touchend."+f+" mouseup."+f).unbind("touchmove."+f+" mousemove."+f),i("head :last-child").remove(),s){s.removeClass(s.t.opt.draggingClass);var t=s.t,n=t.opt.onResize;s.x&&(b(t,s.i,!0),y(t),n&&(e.currentTarget=t[0],n(e))),t.p&&r&&m(t),s=null}},C=function(e){var t=i(this).data(f),n=l[t.t],r=n.g[t.i];if(e.originalEvent.touches?r.ox=e.originalEvent.touches[0].pageX:r.ox=e.pageX,r.l=r.position().left,o.bind("touchmove."+f+" mousemove."+f,w).bind("touchend."+f+" mouseup."+f,x),a.append("<style type='text/css'>*{cursor:"+n.opt.dragCursor+"!important}</style>"),r.addClass(n.opt.draggingClass),s=r,n.c[t.i].l)for(var u,c=0;c<n.ln;c++)(u=n.c[c]).l=!1,u.w=u.width();return!1};i(window).bind("resize."+f,(function(){for(e in l){var e=l[e];e.removeClass(f),e.w!=e.width()&&(e.w=e.width()),y(e.addClass(f))}})),i.fn.extend({colResizable:function(e){return e=i.extend({draggingClass:"JCLRgripDrag",gripInnerHtml:"",liveDrag:!1,minWidth:15,headerOnly:!1,hoverCursor:"e-resize",dragCursor:"e-resize",postbackSafe:!1,flush:!1,marginLeft:null,marginRight:null,disable:!1,onDrag:null,onResize:null},e),this.each((function(){!function(e,t){var n=i(e);if(t.disable)return g(n);var r=n.id=n.attr("id")||f+u++;n.p=t.postbackSafe,n.is("table")&&!l[r]&&(n.addClass(f).attr("id",r).before('<div class="JCLRgrips"/>'),n.opt=t,n.g=[],n.c=[],n.w=n.width(),n.gc=n.prev(),t.marginLeft&&n.gc.css("marginLeft",t.marginLeft),t.marginRight&&n.gc.css("marginRight",t.marginRight),n.cs=d(p?e.cellSpacing||e.currentStyle.borderSpacing:n.css("border-spacing"))||2,n.b=d(p?e.border||e.currentStyle.borderLeftWidth:n.css("border-left-width"))||1,l[r]=n,setTimeout((function(){n.w=n.width(),v(n)}),0))}(this,e)}))}})},{jquery:18}],4:[function(e,t,n){RegExp.escape=function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")};var r=e("jquery");r.csv={defaults:{separator:",",delimiter:'"',headers:!0},hooks:{castToScalar:function(e,t){if(isNaN(e))return e;if(/\./.test(e))return parseFloat(e);var n=parseInt(e);return isNaN(n)?null:n}},parsers:{parse:function(e,t){var n=t.separator,r=t.delimiter;t.state.rowNum||(t.state.rowNum=1),t.state.colNum||(t.state.colNum=1);var i=[],o=[],a=0,s="",l=!1;function u(){if(a=0,s="",t.start&&t.state.rowNum<t.start)return o=[],t.state.rowNum++,void(t.state.colNum=1);if(void 0===t.onParseEntry)i.push(o);else{var e=t.onParseEntry(o,t.state);!1!==e&&i.push(e)}o=[],t.end&&t.state.rowNum>=t.end&&(l=!0),t.state.rowNum++,t.state.colNum=1}function c(){if(void 0===t.onParseValue)o.push(s);else{var e=t.onParseValue(s,t.state);!1!==e&&o.push(e)}s="",a=0,t.state.colNum++}var f=RegExp.escape(n),d=RegExp.escape(r),h=/(D|S|\n|\r|[^DS\r\n]+)/,p=h.source;return p=(p=p.replace(/S/g,f)).replace(/D/g,d),h=RegExp(p,"gm"),e.replace(h,(function(e){if(!l)switch(a){case 0:if(e===n){s+="",c();break}if(e===r){a=1;break}if("\n"===e){c(),u();break}if(/^\r$/.test(e))break;s+=e,a=3;break;case 1:if(e===r){a=2;break}s+=e,a=1;break;case 2:if(e===r){s+=e,a=1;break}if(e===n){c();break}if("\n"===e){c(),u();break}if(/^\r$/.test(e))break;throw new Error("CSVDataError: Illegal State [Row:"+t.state.rowNum+"][Col:"+t.state.colNum+"]");case 3:if(e===n){c();break}if("\n"===e){c(),u();break}if(/^\r$/.test(e))break;if(e===r)throw new Error("CSVDataError: Illegal Quote [Row:"+t.state.rowNum+"][Col:"+t.state.colNum+"]");throw new Error("CSVDataError: Illegal Data [Row:"+t.state.rowNum+"][Col:"+t.state.colNum+"]");default:throw new Error("CSVDataError: Unknown State [Row:"+t.state.rowNum+"][Col:"+t.state.colNum+"]")}})),0!==o.length&&(c(),u()),i},splitLines:function(e,t){var n=t.separator,r=t.delimiter;t.state.rowNum||(t.state.rowNum=1);var i=[],o=0,a="",s=!1;function l(){if(o=0,t.start&&t.state.rowNum<t.start)return a="",void t.state.rowNum++;if(void 0===t.onParseEntry)i.push(a);else{var e=t.onParseEntry(a,t.state);!1!==e&&i.push(e)}a="",t.end&&t.state.rowNum>=t.end&&(s=!0),t.state.rowNum++}var u=RegExp.escape(n),c=RegExp.escape(r),f=/(D|S|\n|\r|[^DS\r\n]+)/,d=f.source;return d=(d=d.replace(/S/g,u)).replace(/D/g,c),f=RegExp(d,"gm"),e.replace(f,(function(e){if(!s)switch(o){case 0:if(e===n){a+=e,o=0;break}if(e===r){a+=e,o=1;break}if("\n"===e){l();break}if(/^\r$/.test(e))break;a+=e,o=3;break;case 1:if(e===r){a+=e,o=2;break}a+=e,o=1;break;case 2:var i=a.substr(a.length-1);if(e===r&&i===r){a+=e,o=1;break}if(e===n){a+=e,o=0;break}if("\n"===e){l();break}if("\r"===e)break;throw new Error("CSVDataError: Illegal state [Row:"+t.state.rowNum+"]");case 3:if(e===n){a+=e,o=0;break}if("\n"===e){l();break}if("\r"===e)break;if(e===r)throw new Error("CSVDataError: Illegal quote [Row:"+t.state.rowNum+"]");throw new Error("CSVDataError: Illegal state [Row:"+t.state.rowNum+"]");default:throw new Error("CSVDataError: Unknown state [Row:"+t.state.rowNum+"]")}})),""!==a&&l(),i},parseEntry:function(e,t){var n=t.separator,r=t.delimiter;t.state.rowNum||(t.state.rowNum=1),t.state.colNum||(t.state.colNum=1);var i=[],o=0,a="";function s(){if(void 0===t.onParseValue)i.push(a);else{var e=t.onParseValue(a,t.state);!1!==e&&i.push(e)}a="",o=0,t.state.colNum++}if(!t.match){var l=RegExp.escape(n),u=RegExp.escape(r),c=/(D|S|\n|\r|[^DS\r\n]+)/.source;c=(c=c.replace(/S/g,l)).replace(/D/g,u),t.match=RegExp(c,"gm")}return e.replace(t.match,(function(e){switch(o){case 0:if(e===n){a+="",s();break}if(e===r){o=1;break}if("\n"===e||"\r"===e)break;a+=e,o=3;break;case 1:if(e===r){o=2;break}a+=e,o=1;break;case 2:if(e===r){a+=e,o=1;break}if(e===n){s();break}if("\n"===e||"\r"===e)break;throw new Error("CSVDataError: Illegal State [Row:"+t.state.rowNum+"][Col:"+t.state.colNum+"]");case 3:if(e===n){s();break}if("\n"===e||"\r"===e)break;if(e===r)throw new Error("CSVDataError: Illegal Quote [Row:"+t.state.rowNum+"][Col:"+t.state.colNum+"]");throw new Error("CSVDataError: Illegal Data [Row:"+t.state.rowNum+"][Col:"+t.state.colNum+"]");default:throw new Error("CSVDataError: Unknown State [Row:"+t.state.rowNum+"][Col:"+t.state.colNum+"]")}})),s(),i}},toArray:function(e,t,n){t=void 0!==t?t:{};var i={};i.callback=void 0!==n&&"function"==typeof n&&n,i.separator="separator"in t?t.separator:r.csv.defaults.separator,i.delimiter="delimiter"in t?t.delimiter:r.csv.defaults.delimiter;var o=void 0!==t.state?t.state:{},a=(t={delimiter:i.delimiter,separator:i.separator,onParseEntry:t.onParseEntry,onParseValue:t.onParseValue,state:o},r.csv.parsers.parseEntry(e,t));if(!i.callback)return a;i.callback("",a)},toArrays:function(e,t,n){t=void 0!==t?t:{};var i,o={};if(o.callback=void 0!==n&&"function"==typeof n&&n,o.separator="separator"in t?t.separator:r.csv.defaults.separator,o.delimiter="delimiter"in t?t.delimiter:r.csv.defaults.delimiter,t={delimiter:o.delimiter,separator:o.separator,onParseEntry:t.onParseEntry,onParseValue:t.onParseValue,start:t.start,end:t.end,state:{rowNum:1,colNum:1}},i=r.csv.parsers.parse(e,t),!o.callback)return i;o.callback("",i)},toObjects:function(e,t,n){t=void 0!==t?t:{};var i={};i.callback=void 0!==n&&"function"==typeof n&&n,i.separator="separator"in t?t.separator:r.csv.defaults.separator,i.delimiter="delimiter"in t?t.delimiter:r.csv.defaults.delimiter,i.headers="headers"in t?t.headers:r.csv.defaults.headers,t.start="start"in t?t.start:1,i.headers&&t.start++,t.end&&i.headers&&t.end++;var o=[],a=(t={delimiter:i.delimiter,separator:i.separator,onParseEntry:t.onParseEntry,onParseValue:t.onParseValue,start:t.start,end:t.end,state:{rowNum:1,colNum:1},match:!1},{delimiter:i.delimiter,separator:i.separator,start:1,end:1,state:{rowNum:1,colNum:1}}),s=r.csv.parsers.splitLines(e,a),l=r.csv.toArray(s[0],t),u=r.csv.parsers.splitLines(e,t);t.state.colNum=1,t.state.rowNum=l?2:1;for(var c=0,f=u.length;c<f;c++){var d=r.csv.toArray(u[c],t),h={};for(var p in l)h[l[p]]=d[p];o.push(h),t.state.rowNum++}if(!i.callback)return o;i.callback("",o)},fromArrays:function(e,t,n){t=void 0!==t?t:{};var o={};if(o.callback=void 0!==n&&"function"==typeof n&&n,o.separator="separator"in t?t.separator:r.csv.defaults.separator,o.delimiter="delimiter"in t?t.delimiter:r.csv.defaults.delimiter,o.escaper="escaper"in t?t.escaper:r.csv.defaults.escaper,o.experimental="experimental"in t&&t.experimental,!o.experimental)throw new Error("not implemented");var a=[];for(i in e)a.push(e[i]);if(!o.callback)return a;o.callback("",a)},fromObjects2CSV:function(e,t,n){t=void 0!==t?t:{};var o={};if(o.callback=void 0!==n&&"function"==typeof n&&n,o.separator="separator"in t?t.separator:r.csv.defaults.separator,o.delimiter="delimiter"in t?t.delimiter:r.csv.defaults.delimiter,o.experimental="experimental"in t&&t.experimental,!o.experimental)throw new Error("not implemented");var a=[];for(i in e)a.push(arrays[i]);if(!o.callback)return a;o.callback("",a)}},r.csvEntry2Array=r.csv.toArray,r.csv2Array=r.csv.toArrays,r.csv2Dictionary=r.csv.toObjects},{jquery:18}],5:[function(e,t,n){var r;r=function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"};function i(e,t,i,a){var s=e.getLineHandle(t.line),l=t.ch-1,u=l>=0&&r[s.text.charAt(l)]||r[s.text.charAt(++l)];if(!u)return null;var c=">"==u.charAt(1)?1:-1;if(i&&c>0!=(l==t.ch))return null;var f=e.getTokenTypeAt(n(t.line,l+1)),d=o(e,n(t.line,l+(c>0?1:0)),c,f||null,a);return null==d?null:{from:n(t.line,l),to:d&&d.pos,match:d&&d.ch==u.charAt(0),forward:c>0}}function o(e,t,i,o,a){for(var s=a&&a.maxScanLineLength||1e4,l=a&&a.maxScanLines||1e3,u=[],c=a&&a.bracketRegex?a.bracketRegex:/[(){}[\]]/,f=i>0?Math.min(t.line+l,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-l),d=t.line;d!=f;d+=i){var h=e.getLine(d);if(h){var p=i>0?0:h.length-1,g=i>0?h.length:-1;if(!(h.length>s))for(d==t.line&&(p=t.ch-(i<0?1:0));p!=g;p+=i){var v=h.charAt(p);if(c.test(v)&&(void 0===o||e.getTokenTypeAt(n(d,p+1))==o))if(">"==r[v].charAt(1)==i>0)u.push(v);else{if(!u.length)return{pos:n(d,p),ch:v};u.pop()}}}}return d-i!=(i>0?e.lastLine():e.firstLine())&&null}function a(e,r,o){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=[],l=e.listSelections(),u=0;u<l.length;u++){var c=l[u].empty()&&i(e,l[u].head,!1,o);if(c&&e.getLine(c.from.line).length<=a){var f=c.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";s.push(e.markText(c.from,n(c.from.line,c.from.ch+1),{className:f})),c.to&&e.getLine(c.to.line).length<=a&&s.push(e.markText(c.to,n(c.to.line,c.to.ch+1),{className:f}))}}if(s.length){t&&e.state.focused&&e.display.input.focus();var d=function(){e.operation((function(){for(var e=0;e<s.length;e++)s[e].clear()}))};if(!r)return d;setTimeout(d,800)}}var s=null;function l(e){e.operation((function(){s&&(s(),s=null),s=a(e,!1,e.state.matchBrackets)}))}e.defineOption("matchBrackets",!1,(function(t,n,r){r&&r!=e.Init&&t.off("cursorActivity",l),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",l))})),e.defineExtension("matchBrackets",(function(){a(this,!0)})),e.defineExtension("findMatchingBracket",(function(e,t,n){return i(this,e,t,n)})),e.defineExtension("scanForBracket",(function(e,t,n,r){return o(this,e,t,n,r)}))},"object"==typeof n&&"object"==typeof t?r(e("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)},{"../../lib/codemirror":10}],6:[function(e,t,n){var r;r=function(e){"use strict";e.registerHelper("fold","brace",(function(t,n){var r,i=n.line,o=t.getLine(i);function a(a){for(var s=n.ch,l=0;;){var u=s<=0?-1:o.lastIndexOf(a,s-1);if(-1!=u){if(1==l&&u<n.ch)break;if(r=t.getTokenTypeAt(e.Pos(i,u+1)),!/^(comment|string)/.test(r))return u+1;s=u-1}else{if(1==l)break;l=1,s=o.length}}}var s,l="{",u="}";if(null==(s=a("{"))&&(l="[",u="]",s=a("[")),null!=s){var c,f,d=1,h=t.lastLine();e:for(var p=i;p<=h;++p)for(var g=t.getLine(p),v=p==i?s:0;;){var m=g.indexOf(l,v),y=g.indexOf(u,v);if(m<0&&(m=g.length),y<0&&(y=g.length),(v=Math.min(m,y))==g.length)break;if(t.getTokenTypeAt(e.Pos(p,v+1))==r)if(v==m)++d;else if(!--d){c=p,f=v;break e}++v}if(null!=c&&(i!=c||f!=s))return{from:e.Pos(i,s),to:e.Pos(c,f)}}})),e.registerHelper("fold","import",(function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i).indexOf(";");if(-1!=a)return{startCh:r.end,end:e.Pos(i,a)}}}var i,o=r(n=n.line);if(!o||r(n-1)||(i=r(n-2))&&i.end.line==n-1)return null;for(var a=o.end;;){var s=r(a.line+1);if(null==s)break;a=s.end}return{from:t.clipPos(e.Pos(n,o.startCh+1)),to:a}})),e.registerHelper("fold","include",(function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=r(n=n.line);if(null==i||null!=r(n-1))return null;for(var o=n;null!=r(o+1);)++o;return{from:e.Pos(n,i+1),to:t.clipPos(e.Pos(o))}}))},"object"==typeof n&&"object"==typeof t?r(e("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)},{"../../lib/codemirror":10}],7:[function(e,t,n){var r;r=function(e){"use strict";function t(t,n,i,o){if(i&&i.call){var a=i;i=null}else a=r(t,i,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var s=r(t,i,"minFoldSize");function l(e){var r=a(t,n);if(!r||r.to.line-r.from.line<s)return null;for(var i=t.findMarksAt(r.from),l=0;l<i.length;++l)if(i[l].__isFold&&"fold"!==o){if(!e)return null;r.cleared=!0,i[l].clear()}return r}var u=l(!0);if(r(t,i,"scanUp"))for(;!u&&n.line>t.firstLine();)n=e.Pos(n.line-1,0),u=l(!1);if(u&&!u.cleared&&"unfold"!==o){var c=function(e,t){var n=r(e,t,"widget");if("string"==typeof n){var i=document.createTextNode(n);(n=document.createElement("span")).appendChild(i),n.className="CodeMirror-foldmarker"}return n}(t,i);e.on(c,"mousedown",(function(t){f.clear(),e.e_preventDefault(t)}));var f=t.markText(u.from,u.to,{replacedWith:c,clearOnEnter:!0,__isFold:!0});f.on("clear",(function(n,r){e.signal(t,"unfold",t,n,r)})),e.signal(t,"fold",t,u.from,u.to)}}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",(function(e,n,r){t(this,e,n,r)})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),n=0;n<t.length;++n)if(t[n].__isFold)return!0})),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),null,"unfold")},e.commands.foldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),null,"fold")}))},e.commands.unfoldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),null,"unfold")}))},e.registerHelper("fold","combine",(function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}})),e.registerHelper("fold","auto",(function(e,t){for(var n=e.getHelpers(t,"fold"),r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}}));var n={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1};function r(e,t,r){if(t&&void 0!==t[r])return t[r];var i=e.options.foldOptions;return i&&void 0!==i[r]?i[r]:n[r]}e.defineOption("foldOptions",null),e.defineExtension("foldOption",(function(e,t){return r(this,e,t)}))},"object"==typeof n&&"object"==typeof t?r(e("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)},{"../../lib/codemirror":10}],8:[function(e,t,n){var r;r=function(e){"use strict";e.defineOption("foldGutter",!1,(function(t,r,i){var c;i&&i!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",a),t.off("change",s),t.off("viewportChange",l),t.off("fold",u),t.off("unfold",u),t.off("swapDoc",o)),r&&(t.state.foldGutter=new n((!0===(c=r)&&(c={}),null==c.gutter&&(c.gutter="CodeMirror-foldgutter"),null==c.indicatorOpen&&(c.indicatorOpen="CodeMirror-foldgutter-open"),null==c.indicatorFolded&&(c.indicatorFolded="CodeMirror-foldgutter-folded"),c)),o(t),t.on("gutterClick",a),t.on("change",s),t.on("viewportChange",l),t.on("fold",u),t.on("unfold",u),t.on("swapDoc",o))}));var t=e.Pos;function n(e){this.options=e,this.from=this.to=0}function r(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function i(e,n,i){var o=e.state.foldGutter.options,a=n,s=e.foldOption(o,"minFoldSize"),l=e.foldOption(o,"rangeFinder");e.eachLine(n,i,(function(n){var i=null;if(function(e,n){for(var r=e.findMarksAt(t(n)),i=0;i<r.length;++i)if(r[i].__isFold&&r[i].find().from.line==n)return!0}(e,a))i=r(o.indicatorFolded);else{var u=t(a,0),c=l&&l(e,u);c&&c.to.line-c.from.line>=s&&(i=r(o.indicatorOpen))}e.setGutterMarker(n,o.gutter,i),++a}))}function o(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation((function(){i(e,t.from,t.to)})),n.from=t.from,n.to=t.to)}function a(e,n,r){var i=e.state.foldGutter;if(i){var o=i.options;r==o.gutter&&e.foldCode(t(n,0),o.rangeFinder)}}function s(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){o(e)}),n.foldOnChangeTimeSpan||600)}}function l(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?o(e):e.operation((function(){n.from<t.from&&(i(e,n.from,t.from),t.from=n.from),n.to>t.to&&(i(e,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function u(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r<n.to&&i(e,r,r+1)}}},"object"==typeof n&&"object"==typeof t?r(e("../../lib/codemirror"),e("./foldcode")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./foldcode"],r):r(CodeMirror)},{"../../lib/codemirror":10,"./foldcode":7}],9:[function(e,t,n){var r;r=function(e){"use strict";var t=e.Pos,n="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r=new RegExp("<(/?)(["+n+"][A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function i(e,t,n,r){this.line=t,this.ch=n,this.cm=e,this.text=e.getLine(t),this.min=r?r.from:e.firstLine(),this.max=r?r.to-1:e.lastLine()}function o(e,n){var r=e.cm.getTokenTypeAt(t(e.line,n));return r&&/\btag\b/.test(r)}function a(e){if(!(e.line>=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function s(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function l(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(a(e))continue;return}if(o(e,t+1)){var n=e.text.lastIndexOf("/",t),r=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t+1}}function u(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(s(e))continue;return}if(o(e,t+1)){r.lastIndex=t,e.ch=t;var n=r.exec(e.text);if(n&&n.index==t)return n}else e.ch=t}}function c(e){for(;;){r.lastIndex=e.ch;var t=r.exec(e.text);if(!t){if(a(e))continue;return}if(o(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}function f(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(s(e))continue;return}if(o(e,t+1)){var n=e.text.lastIndexOf("/",t),r=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t}}function d(e,n){for(var r=[];;){var i,o=c(e),a=e.line,s=e.ch-(o?o[0].length:0);if(!o||!(i=l(e)))return;if("selfClose"!=i)if(o[1]){for(var u=r.length-1;u>=0;--u)if(r[u]==o[2]){r.length=u;break}if(u<0&&(!n||n==o[2]))return{tag:o[2],from:t(a,s),to:t(e.line,e.ch)}}else r.push(o[2])}}function h(e,n){for(var r=[];;){var i=f(e);if(!i)return;if("selfClose"!=i){var o=e.line,a=e.ch,s=u(e);if(!s)return;if(s[1])r.push(s[2]);else{for(var l=r.length-1;l>=0;--l)if(r[l]==s[2]){r.length=l;break}if(l<0&&(!n||n==s[2]))return{tag:s[2],from:t(e.line,e.ch),to:t(o,a)}}}else u(e)}}e.registerHelper("fold","xml",(function(e,n){for(var r=new i(e,n.line,0);;){var o,a=c(r);if(!a||r.line!=n.line||!(o=l(r)))return;if(!a[1]&&"selfClose"!=o){n=t(r.line,r.ch);var s=d(r,a[2]);return s&&{from:n,to:s.from}}}})),e.findMatchingTag=function(e,n,r){var o=new i(e,n.line,n.ch,r);if(-1!=o.text.indexOf(">")||-1!=o.text.indexOf("<")){var a=l(o),s=a&&t(o.line,o.ch),c=a&&u(o);if(a&&c&&(p=n,!(((f=o).line-p.line||f.ch-p.ch)>0))){var f,p,g={from:t(o.line,o.ch),to:s,tag:c[2]};return"selfClose"==a?{open:g,close:null,at:"open"}:c[1]?{open:h(o,c[2]),close:g,at:"close"}:{open:g,close:d(o=new i(e,s.line,s.ch,r),c[2]),at:"open"}}}},e.findEnclosingTag=function(e,t,n){for(var r=new i(e,t.line,t.ch,n);;){var o=h(r);if(!o)break;var a=d(new i(e,t.line,t.ch,n),o.tag);if(a)return{open:o,close:a}}},e.scanForClosingTag=function(e,t,n,r){return d(new i(e,t.line,t.ch,r?{from:0,to:r}:null),n)}},"object"==typeof n&&"object"==typeof t?r(e("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)},{"../../lib/codemirror":10}],10:[function(e,t,n){!function(e){if("object"==typeof n&&"object"==typeof t)t.exports=e();else{if("function"==typeof define&&define.amd)return define([],e);this.CodeMirror=e()}}((function(){"use strict";var e=/gecko\/\d/i.test(navigator.userAgent),t=/MSIE \d/.test(navigator.userAgent),n=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),r=t||n,i=r&&(t?document.documentMode||6:n[1]),o=/WebKit\//.test(navigator.userAgent),a=o&&/Qt\/\d+\.\d+/.test(navigator.userAgent),s=/Chrome\//.test(navigator.userAgent),l=/Opera\//.test(navigator.userAgent),u=/Apple Computer/.test(navigator.vendor),c=/KHTML\//.test(navigator.userAgent),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(navigator.userAgent),d=/PhantomJS/.test(navigator.userAgent),h=/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent),p=h||/Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(navigator.userAgent),g=h||/Mac/.test(navigator.platform),v=/win/i.test(navigator.platform),m=l&&navigator.userAgent.match(/Version\/(\d*\.\d*)/);m&&(m=Number(m[1])),m&&m>=15&&(l=!1,o=!0);var y=g&&(a||l&&(null==m||m<12.11)),b=e||r&&i>=9,w=!1,x=!1;function C(e,t){if(!(this instanceof C))return new C(e,t);this.options=t=t?oo(t):{},oo(Wn,t,!1),I(t);var n=t.value;"string"==typeof n&&(n=new ii(n,t.mode)),this.doc=n;var a=this.display=new S(e,n);for(var s in a.wrapper.CodeMirror=this,N(this),L(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),t.autofocus&&!p&&Vt(this),H(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,draggingText:!1,highlight:new Ji,keySeq:null},r&&i<11&&setTimeout(ao(Ut,this,!0),20),function(e){var t=e.display;function n(t){Wi(e,t)||ji(t)}function a(n){if(e.somethingSelected())qt=e.getSelections(),t.inaccurateSelection&&(t.prevInput="",t.inaccurateSelection=!1,t.input.value=qt.join("\n"),to(t.input));else{for(var r=[],i=[],o=0;o<e.doc.sel.ranges.length;o++){var a=e.doc.sel.ranges[o].head.line,s={anchor:fe(a,0),head:fe(a+1,0)};i.push(s),r.push(e.getRange(s.anchor,s.head))}"cut"==n.type?e.setSelections(i,null,Gi):(t.prevInput="",t.input.value=r.join("\n"),to(t.input)),qt=r}"cut"==n.type&&(e.state.cutIncoming=!0)}Ii(t.scroller,"mousedown",Dt(e,Kt)),Ii(t.scroller,"dblclick",r&&i<11?Dt(e,(function(t){if(!Wi(e,t)){var n=Yt(e,t);if(n&&!Zt(e,t)&&!Jt(e.display,t)){Li(t);var r=e.findWordAt(n);_e(e.doc,r.anchor,r.head)}}})):function(t){Wi(e,t)||Li(t)}),Ii(t.lineSpace,"selectstart",(function(e){Jt(t,e)||Li(e)})),b||Ii(t.scroller,"contextmenu",(function(t){bn(e,t)})),Ii(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(nn(e,t.scroller.scrollTop),rn(e,t.scroller.scrollLeft,!0),Pi(e,"scroll",e))})),Ii(t.scroller,"mousewheel",(function(t){ln(e,t)})),Ii(t.scroller,"DOMMouseScroll",(function(t){ln(e,t)})),Ii(t.wrapper,"scroll",(function(){t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),Ii(t.input,"keyup",(function(t){gn.call(e,t)})),Ii(t.input,"input",(function(){r&&i>=9&&e.display.inputHasSelection&&(e.display.inputHasSelection=null),Bt(e)})),Ii(t.input,"keydown",Dt(e,pn)),Ii(t.input,"keypress",Dt(e,vn)),Ii(t.input,"focus",ao(mn,e)),Ii(t.input,"blur",ao(yn,e)),e.options.dragDrop&&(Ii(t.scroller,"dragstart",(function(t){!function(e,t){if(r&&(!e.state.draggingText||+new Date-en<100))ji(t);else if(!Wi(e,t)&&!Jt(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.setDragImage&&!u)){var n=go("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",l&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),l&&n.parentNode.removeChild(n)}}(e,t)})),Ii(t.scroller,"dragenter",n),Ii(t.scroller,"dragover",n),Ii(t.scroller,"drop",Dt(e,tn))),Ii(t.scroller,"paste",(function(n){Jt(t,n)||(e.state.pasteIncoming=!0,Vt(e),Ft(e))})),Ii(t.input,"paste",(function(){if(o&&!e.state.fakedLastChar&&!(new Date-e.state.lastMiddleDown<200)){var n=t.input.selectionStart,r=t.input.selectionEnd;t.input.value+="$",t.input.selectionEnd=r,t.input.selectionStart=n,e.state.fakedLastChar=!0}e.state.pasteIncoming=!0,Ft(e)})),Ii(t.input,"cut",a),Ii(t.input,"copy",a),c&&Ii(t.sizer,"mouseup",(function(){bo()==t.input&&t.input.blur(),Vt(e)}))}(this),function(){var e;Do||(Ii(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,_o($t)}),100))})),Ii(window,"blur",(function(){_o(yn)})),Do=!0)}(),bt(this),this.curOp.forceUpdate=!0,li(this,n),t.autofocus&&!p||bo()==a.input?setTimeout(ao(mn,this),20):yn(this),zn)zn.hasOwnProperty(s)&&zn[s](this,t[s],Bn);B(this),t.finishInit&&t.finishInit(this);for(var f=0;f<Xn.length;++f)Xn[f](this);wt(this),o&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(a.lineDiv).textRendering&&(a.lineDiv.style.textRendering="auto")}function S(e,t){var n=this,a=n.input=go("textarea",null,null,"position: absolute; padding: 0; width: 1px; height: 1em; outline: none");o?a.style.width="1000px":a.setAttribute("wrap","off"),h&&(a.style.border="1px solid black"),a.setAttribute("autocorrect","off"),a.setAttribute("autocapitalize","off"),a.setAttribute("spellcheck","false"),n.inputDiv=go("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;"),n.scrollbarFiller=go("div",null,"CodeMirror-scrollbar-filler"),n.scrollbarFiller.setAttribute("not-content","true"),n.gutterFiller=go("div",null,"CodeMirror-gutter-filler"),n.gutterFiller.setAttribute("not-content","true"),n.lineDiv=go("div",null,"CodeMirror-code"),n.selectionDiv=go("div",null,null,"position: relative; z-index: 1"),n.cursorDiv=go("div",null,"CodeMirror-cursors"),n.measure=go("div",null,"CodeMirror-measure"),n.lineMeasure=go("div",null,"CodeMirror-measure"),n.lineSpace=go("div",[n.measure,n.lineMeasure,n.selectionDiv,n.cursorDiv,n.lineDiv],null,"position: relative; outline: none"),n.mover=go("div",[go("div",[n.lineSpace],"CodeMirror-lines")],null,"position: relative"),n.sizer=go("div",[n.mover],"CodeMirror-sizer"),n.sizerWidth=null,n.heightForcer=go("div",null,null,"position: absolute; height: "+Ui+"px; width: 1px;"),n.gutters=go("div",null,"CodeMirror-gutters"),n.lineGutter=null,n.scroller=go("div",[n.sizer,n.heightForcer,n.gutters],"CodeMirror-scroll"),n.scroller.setAttribute("tabIndex","-1"),n.wrapper=go("div",[n.inputDiv,n.scrollbarFiller,n.gutterFiller,n.scroller],"CodeMirror"),r&&i<8&&(n.gutters.style.zIndex=-1,n.scroller.style.paddingRight=0),h&&(a.style.width="0px"),o||(n.scroller.draggable=!0),c&&(n.inputDiv.style.height="1px",n.inputDiv.style.position="absolute"),e&&(e.appendChild?e.appendChild(n.wrapper):e(n.wrapper)),n.viewFrom=n.viewTo=t.first,n.reportedViewFrom=n.reportedViewTo=t.first,n.view=[],n.renderedView=null,n.externalMeasured=null,n.viewOffset=0,n.lastWrapHeight=n.lastWrapWidth=0,n.updateLineNumbers=null,n.nativeBarWidth=n.barHeight=n.barWidth=0,n.scrollbarsClipped=!1,n.lineNumWidth=n.lineNumInnerWidth=n.lineNumChars=null,n.prevInput="",n.alignWidgets=!1,n.pollingFast=!1,n.poll=new Ji,n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.inaccurateSelection=!1,n.maxLine=null,n.maxLineLength=0,n.maxLineChanged=!1,n.wheelDX=n.wheelDY=n.wheelStartX=n.wheelStartY=null,n.shift=!1,n.selForContextMenu=null}function _(e){e.doc.mode=C.getMode(e.options,e.doc.modeOption),T(e)}function T(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.frontier=e.doc.first,ze(e,100),e.state.modeGen++,e.curOp&&Mt(e)}function k(e){var t=gt(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/vt(e.display)-3);return function(i){if(Ar(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function D(e){var t=e.doc,n=k(e);t.iter((function(e){var t=n(e);t!=e.height&&di(e,t)}))}function L(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),it(e)}function A(e){N(e),Mt(e),setTimeout((function(){q(e)}),20)}function N(e){var t=e.display.gutters,n=e.options.gutters;vo(t);for(var r=0;r<n.length;++r){var i=n[r],o=t.appendChild(go("div",null,"CodeMirror-gutter "+i));"CodeMirror-linenumbers"==i&&(e.display.lineGutter=o,o.style.width=(e.display.lineNumWidth||1)+"px")}t.style.display=r?"":"none",j(e)}function j(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function M(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Sr(r);)r=(i=t.find(0,!0)).from.line,n+=i.from.ch-i.to.ch;for(r=e;t=_r(r);){var i=t.find(0,!0);n-=r.text.length-i.from.ch,n+=(r=i.to.line).text.length-i.to.ch}return n}function E(e){var t=e.display,n=e.doc;t.maxLine=ui(n,n.first),t.maxLineLength=M(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=M(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}function I(e){var t=no(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function O(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Ve(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Xe(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function P(e,t,n){this.cm=n;var o=this.vert=go("div",[go("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),a=this.horiz=go("div",[go("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(o),e(a),Ii(o,"scroll",(function(){o.clientHeight&&t(o.scrollTop,"vertical")})),Ii(a,"scroll",(function(){a.clientWidth&&t(a.scrollLeft,"horizontal")})),this.checkedOverlay=!1,r&&i<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}function R(){}function H(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&xo(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new C.scrollbarModel[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ii(t,"mousedown",(function(){e.state.focused&&setTimeout(ao(Vt,e),0)})),t.setAttribute("not-content","true")}),(function(t,n){"horizontal"==n?rn(e,t):nn(e,t)}),e),e.display.scrollbars.addClass&&Co(e.display.wrapper,e.display.scrollbars.addClass)}function F(e,t){t||(t=O(e));var n=e.display.barWidth,r=e.display.barHeight;W(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&K(e),W(e,O(e)),n=e.display.barWidth,r=e.display.barHeight}function W(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}function z(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Ue(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=pi(t,r),a=pi(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=pi(t,gi(ui(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=pi(t,gi(ui(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function q(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=V(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&n[a].gutter&&(n[a].gutter.style.left=o);var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function B(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=U(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(go("div",[go("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a),r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",j(e),!0}return!1}function U(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function V(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function G(e,t,n){var r=e.display;this.viewport=t,this.visible=z(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=$e(e),this.force=n,this.dims=Z(e),this.events=[]}function X(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return It(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Rt(e))return!1;B(e)&&(It(e),t.dims=Z(e));var i=r.first+r.size,a=Math.max(t.visible.from-e.options.viewportMargin,r.first),s=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<a&&a-n.viewFrom<20&&(a=Math.max(r.first,n.viewFrom)),n.viewTo>s&&n.viewTo-s<20&&(s=Math.min(i,n.viewTo)),x&&(a=Dr(e.doc,a),s=Lr(e.doc,s));var l=a!=n.viewFrom||s!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=jt(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=jt(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Ot(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(jt(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Ot(e,n)))),r.viewTo=n}(e,a,s),n.viewOffset=gi(ui(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=Rt(e);if(!l&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=bo();return u>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,a=r.lineDiv,s=a.firstChild;function l(t){var n=t.nextSibling;return o&&g&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,f=0;f<u.length;f++){var d=u[f];if(d.hidden);else if(d.node){for(;s!=d.node;)s=l(s);var h=i&&null!=t&&t<=c&&d.lineNumber;d.changes&&(no(d.changes,"gutter")>-1&&(h=!1),ee(e,d,c,n)),h&&(vo(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(U(e.options,c)))),s=d.node.nextSibling}else{var p=se(e,d,c,n);a.insertBefore(p,s)}c+=d.size}for(;s;)s=l(s)}(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,c&&bo()!=c&&c.offsetHeight&&c.focus(),vo(n.cursorDiv),vo(n.selectionDiv),n.gutters.style.height=0,l&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ze(e,400)),n.updateLineNumbers=null,!0}function $(e,t){t.force;for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=$e(e));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Ve(e.display)-Je(e),n.top)}),t.visible=z(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!X(e,t))break;K(e);var i=O(e);Re(e),Y(e,i),F(e,i)}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function J(e,t){var n=new G(e,t);if(X(e,n)){K(e),$(e,n);var r=O(e);Re(e),Y(e,r),F(e,r),n.finish()}}function Y(e,t){e.display.sizer.style.minHeight=t.docHeight+"px";var n=t.docHeight+e.display.barHeight;e.display.heightForcer.style.top=n+"px",e.display.gutters.style.height=Math.max(n+Xe(e),t.clientHeight)+"px"}function K(e){for(var t=e.display,n=t.lineDiv.offsetTop,o=0;o<t.view.length;o++){var a,s=t.view[o];if(!s.hidden){if(r&&i<8){var l=s.node.offsetTop+s.node.offsetHeight;a=l-n,n=l}else{var u=s.node.getBoundingClientRect();a=u.bottom-u.top}var c=s.line.height-a;if(a<2&&(a=gt(t)),(c>.001||c<-.001)&&(di(s.line,a),Q(s.line),s.rest))for(var f=0;f<s.rest.length;f++)Q(s.rest[f])}}}function Q(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t)e.widgets[t].height=e.widgets[t].node.offsetHeight}function Z(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a)n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+i,r[e.options.gutters[a]]=o.clientWidth;return{fixedPos:V(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ee(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?re(e,t):"gutter"==o?oe(e,t,n,r):"class"==o?ie(t):"widget"==o&&ae(t,r)}t.changes=null}function te(e){return e.node==e.text&&(e.node=go("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),r&&i<8&&(e.node.style.zIndex=2)),e.node}function ne(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Xr(e,t)}function re(e,t){var n=t.text.className,r=ne(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,ie(t)):n&&(t.text.className=n)}function ie(e){!function(e){var t=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(t&&(t+=" CodeMirror-linebackground"),e.background)t?e.background.className=t:(e.background.parentNode.removeChild(e.background),e.background=null);else if(t){var n=te(e);e.background=n.insertBefore(go("div",null,t),n.firstChild)}}(e),e.line.wrapClass?te(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var t=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=t||""}function oe(e,t,n,r){t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null);var i=t.line.gutterMarkers;if(e.options.lineNumbers||i){var o=te(t),a=t.gutter=o.insertBefore(go("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),t.text);if(t.line.gutterClass&&(a.className+=" "+t.line.gutterClass),!e.options.lineNumbers||i&&i["CodeMirror-linenumbers"]||(t.lineNumber=a.appendChild(go("div",U(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),i)for(var s=0;s<e.options.gutters.length;++s){var l=e.options.gutters[s],u=i.hasOwnProperty(l)&&i[l];u&&a.appendChild(go("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[l]+"px; width: "+r.gutterWidth[l]+"px"))}}}function ae(e,t){e.alignable&&(e.alignable=null);for(var n=e.node.firstChild;n;n=r){var r=n.nextSibling;"CodeMirror-linewidget"==n.className&&e.node.removeChild(n)}le(e,t)}function se(e,t,n,r){var i=ne(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),ie(t),oe(e,t,n,r),le(t,r),t.node}function le(e,t){if(ue(e.line,e,t,!0),e.rest)for(var n=0;n<e.rest.length;n++)ue(e.rest[n],e,t,!1)}function ue(e,t,n,r){if(e.widgets)for(var i=te(t),o=0,a=e.widgets;o<a.length;++o){var s=a[o],l=go("div",[s.node],"CodeMirror-linewidget");s.handleMouseEvents||l.setAttribute("cm-ignore-events","true"),ce(s,l,t,n),r&&s.above?i.insertBefore(l,t.gutter||t.text):i.appendChild(l),Hi(s,"redraw")}}function ce(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}P.prototype=oo({update:function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=e.scrollWidth-e.clientWidth+o+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedOverlay&&e.clientHeight>0&&(0==r&&this.overlayHack(),this.checkedOverlay=!0),{right:n?r:0,bottom:t?r:0}},setScrollLeft:function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e)},setScrollTop:function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e)},overlayHack:function(){var e=g&&!f?"12px":"18px";this.horiz.style.minHeight=this.vert.style.minWidth=e;var t=this,n=function(e){Mi(e)!=t.vert&&Mi(e)!=t.horiz&&Dt(t.cm,Kt)(e)};Ii(this.vert,"mousedown",n),Ii(this.horiz,"mousedown",n)},clear:function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)}},P.prototype),R.prototype=oo({update:function(){return{bottom:0,right:0}},setScrollLeft:function(){},setScrollTop:function(){},clear:function(){}},R.prototype),C.scrollbarModel={native:P,null:R},G.prototype.signal=function(e,t){qi(e,t)&&this.events.push(arguments)},G.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Pi.apply(null,this.events[e])};var fe=C.Pos=function(e,t){if(!(this instanceof fe))return new fe(e,t);this.line=e,this.ch=t},de=C.cmpPos=function(e,t){return e.line-t.line||e.ch-t.ch};function he(e){return fe(e.line,e.ch)}function pe(e,t){return de(e,t)<0?t:e}function ge(e,t){return de(e,t)<0?e:t}function ve(e,t){this.ranges=e,this.primIndex=t}function me(e,t){this.anchor=e,this.head=t}function ye(e,t){var n=e[t];e.sort((function(e,t){return de(e.from(),t.from())})),t=no(e,n);for(var r=1;r<e.length;r++){var i=e[r],o=e[r-1];if(de(o.to(),i.from())>=0){var a=ge(o.from(),i.from()),s=pe(o.to(),i.to()),l=o.empty()?i.from()==i.head:o.from()==o.head;r<=t&&--t,e.splice(--r,2,new me(l?s:a,l?a:s))}}return new ve(e,t)}function be(e,t){return new ve([new me(e,t||e)],0)}function we(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function xe(e,t){if(t.line<e.first)return fe(e.first,0);var n=e.first+e.size-1;return t.line>n?fe(n,ui(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?fe(e.line,t):n<0?fe(e.line,0):e}(t,ui(e,t.line).text.length)}function Ce(e,t){return t>=e.first&&t<e.first+e.size}function Se(e,t,n,r){if(e.cm&&e.cm.display.shift||e.extend){var i=t.anchor;if(r){var o=de(n,i)<0;o!=de(r,i)<0?(i=n,n=r):o!=de(n,r)<0&&(n=r)}return new me(i,n)}return new me(r||n,n)}function _e(e,t,n,r){Ae(e,new ve([Se(e,e.sel.primary(),t,n)],0),r)}function Te(e,t,n){for(var r=[],i=0;i<e.sel.ranges.length;i++)r[i]=Se(e,e.sel.ranges[i],t[i],null);Ae(e,ye(r,e.sel.primIndex),n)}function ke(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Ae(e,ye(i,e.sel.primIndex),r)}function De(e,t,n,r){Ae(e,be(t,n),r)}function Le(e,t,n){var r=e.history.done,i=eo(r);i&&i.ranges?(r[r.length-1]=t,Ne(e,t,n)):Ae(e,t,n)}function Ae(e,t,n){Ne(e,t,n),function(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,eo(i.done),t))?i.done[i.done.length-1]=t:xi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&bi(i.undone)}(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Ne(e,t,n){(qi(e,"beforeSelectionChange")||e.cm&&qi(e.cm,"beforeSelectionChange"))&&(t=function(e,t){var n={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new me(xe(e,t[n].anchor),xe(e,t[n].head))}};return Pi(e,"beforeSelectionChange",e,n),e.cm&&Pi(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?ye(n.ranges,n.ranges.length-1):t}(e,t));var r=n&&n.bias||(de(t.primary().head,e.sel.primary().head)<0?-1:1);je(e,Ee(e,t,r,!0)),n&&!1===n.scroll||!e.cm||En(e.cm)}function je(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=e.cm.curOp.selectionChanged=!0,zi(e.cm)),Hi(e,"cursorActivity",e))}function Me(e){je(e,Ee(e,e.sel,null,!1))}function Ee(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=Ie(e,a.anchor,n,r),l=Ie(e,a.head,n,r);(i||s!=a.anchor||l!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new me(s,l))}return i?ye(i,t.primIndex):t}function Ie(e,t,n,r){var i=!1,o=t,a=n||1;e.cantEdit=!1;e:for(;;){var s=ui(e,o.line);if(s.markedSpans)for(var l=0;l<s.markedSpans.length;++l){var u=s.markedSpans[l],c=u.marker;if((null==u.from||(c.inclusiveLeft?u.from<=o.ch:u.from<o.ch))&&(null==u.to||(c.inclusiveRight?u.to>=o.ch:u.to>o.ch))){if(r&&(Pi(c,"beforeCursorEnter"),c.explicitlyCleared)){if(s.markedSpans){--l;continue}break}if(!c.atomic)continue;var f=c.find(a<0?-1:1);if(0==de(f,o)&&(f.ch+=a,f.ch<0?f=f.line>e.first?xe(e,fe(f.line-1)):null:f.ch>s.text.length&&(f=f.line<e.first+e.size-1?fe(f.line+1,0):null),!f)){if(i)return r?(e.cantEdit=!0,fe(e.first,0)):Ie(e,t,n,!0);i=!0,f=t,a=-a}o=f;continue e}}return o}}function Oe(e){for(var t=e.display,n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++){var s=n.sel.ranges[a],l=s.empty();(l||e.options.showCursorWhenSelecting)&&He(e,s,i),l||Fe(e,s,o)}if(e.options.moveInputWithCursor){var u=ct(e,n.sel.primary().head,"div"),c=t.wrapper.getBoundingClientRect(),f=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,u.top+f.top-c.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,u.left+f.left-c.left))}return r}function Pe(e,t){mo(e.display.cursorDiv,t.cursors),mo(e.display.selectionDiv,t.selection),null!=t.teTop&&(e.display.inputDiv.style.top=t.teTop+"px",e.display.inputDiv.style.left=t.teLeft+"px")}function Re(e){Pe(e,Oe(e))}function He(e,t,n){var r=ct(e,t.head,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(go("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var o=n.appendChild(go("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Fe(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Ge(e.display),s=a.left,l=Math.max(r.sizerWidth,$e(e)-r.sizer.offsetLeft)-a.right;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(go("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px; top: "+t+"px; width: "+(null==n?l-e:n)+"px; height: "+(r-t)+"px"))}function c(t,n,r){var o,a,c=ui(i,t),f=c.text.length;function d(n,r){return ut(e,fe(t,n),"div",c,r)}return function(e,t,n,r){if(!e)return r(t,n,"ltr");for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr"),i=!0)}i||r(t,n,"ltr")}(vi(c),n||0,null==r?f:r,(function(e,t,i){var c,h,p,g=d(e,"left");if(e==t)c=g,h=p=g.left;else{if(c=d(t-1,"right"),"rtl"==i){var v=g;g=c,c=v}h=g.left,p=c.right}null==n&&0==e&&(h=s),c.top-g.top>3&&(u(h,g.top,null,g.bottom),h=s,g.bottom<c.top&&u(h,g.bottom,null,c.top)),null==r&&t==f&&(p=l),(!o||g.top<o.top||g.top==o.top&&g.left<o.left)&&(o=g),(!a||c.bottom>a.bottom||c.bottom==a.bottom&&c.right>a.right)&&(a=c),h<s+1&&(h=s),u(h,c.top,p-h,c.bottom)})),{start:o,end:a}}var f=t.from(),d=t.to();if(f.line==d.line)c(f.line,f.ch,d.ch);else{var h=ui(i,f.line),p=ui(i,d.line),g=kr(h)==kr(p),v=c(f.line,f.ch,g?h.text.length+1:null).end,m=c(d.line,g?0:null,d.ch).start;g&&(v.top<m.top-2?(u(v.right,v.top,null,v.bottom),u(s,m.top,m.left,m.bottom)):u(v.right,v.top,m.left-v.right,v.bottom)),v.bottom<m.top&&u(s,v.bottom,null,m.top)}n.appendChild(o)}function We(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function ze(e,t){e.doc.mode.startState&&e.doc.frontier<e.display.viewTo&&e.state.highlight.set(t,ao(qe,e))}function qe(e){var t=e.doc;if(t.frontier<t.first&&(t.frontier=t.first),!(t.frontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Jn(t.mode,Be(e,t.frontier)),i=[];t.iter(t.frontier,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(t.frontier>=e.display.viewFrom){var a=o.styles,s=zr(e,o,r,!0);o.styles=s.styles;var l=o.styleClasses,u=s.classes;u?o.styleClasses=u:l&&(o.styleClasses=null);for(var c=!a||a.length!=o.styles.length||l!=u&&(!l||!u||l.bgClass!=u.bgClass||l.textClass!=u.textClass),f=0;!c&&f<a.length;++f)c=a[f]!=o.styles[f];c&&i.push(t.frontier),o.stateAfter=Jn(t.mode,r)}else Br(e,o.text,r),o.stateAfter=t.frontier%5==0?Jn(t.mode,r):null;if(++t.frontier,+new Date>n)return ze(e,e.options.workDelay),!0})),i.length&&kt(e,(function(){for(var t=0;t<i.length;t++)Et(e,i[t],"text")}))}}function Be(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return!0;var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=ui(o,s-1);if(l.stateAfter&&(!n||s<=o.frontier))return s;var u=Yi(l.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}(e,t,n),a=o>r.first&&ui(r,o-1).stateAfter;return a=a?Jn(r.mode,a):Yn(r.mode),r.iter(o,t,(function(n){Br(e,n.text,a);var s=o==t-1||o%5==0||o>=i.viewFrom&&o<i.viewTo;n.stateAfter=s?Jn(r.mode,a):null,++o})),n&&(r.frontier=o),a}function Ue(e){return e.lineSpace.offsetTop}function Ve(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Ge(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=mo(e.measure,go("pre","x")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Xe(e){return Ui-e.display.nativeBarWidth}function $e(e){return e.display.scroller.clientWidth-Xe(e)-e.display.barWidth}function Je(e){return e.display.scroller.clientHeight-Xe(e)-e.display.barHeight}function Ye(e,t,n,r){return Ze(e,Qe(e,t),n,r)}function Ke(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Ot(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Qe(e,t){var n=hi(t),r=Ke(e,n);r&&!r.text?r=null:r&&r.changes&&ee(e,r,n,Z(e)),r||(r=function(e,t){var n=hi(t=kr(t)),r=e.display.externalMeasured=new Nt(e.doc,t,n);r.lineN=n;var i=r.built=Xr(e,r);return r.text=i.pre,mo(e.display.lineMeasure,i.pre),r}(e,t));var i=function(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(r=0;r<e.rest.length;r++)if(hi(e.rest[r])>n)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Ze(e,t,n,o,a){t.before&&(n=-1);var s,l=n+(o||"");return t.cache.hasOwnProperty(l)?s=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(e,t,n){var r=e.options.lineWrapping,i=r&&$e(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],u=a[s+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(s=function(e,t,n,o){for(var a,s,l,u,c,f=t.map,d=0;d<f.length;d+=3){var h=f[d],p=f[d+1];if(n<h?(s=0,l=1,u="left"):n<p?l=1+(s=n-h):(d==f.length-3||n==p&&f[d+3]>n)&&(s=(l=p-h)-1,n>=p&&(u="right")),null!=s){if(a=f[d+2],h==p&&o==(a.insertLeft?"left":"right")&&(u=o),"left"==o&&0==s)for(;d&&f[d-2]==f[d-3]&&f[d-1].insertLeft;)a=f[2+(d-=3)],u="left";if("right"==o&&s==p-h)for(;d<f.length-3&&f[d+3]==f[d+4]&&!f[d+5].insertLeft;)a=f[(d+=3)+2],u="right";break}}if(3==a.nodeType){for(d=0;d<4;d++){for(;s&&po(t.line.text.charAt(h+s));)--s;for(;h+l<p&&po(t.line.text.charAt(h+l));)++l;if(r&&i<9&&0==s&&l==p-h)c=a.parentNode.getBoundingClientRect();else if(r&&e.options.lineWrapping){var g=fo(a,s,l).getClientRects();c=g.length?g["right"==o?g.length-1:0]:tt}else c=fo(a,s,l).getBoundingClientRect()||tt;if(c.left||c.right||0==s)break;l=s,s-=1,u="right"}r&&i<11&&(c=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Po)return Po;var t=mo(e,go("span","x")),n=t.getBoundingClientRect(),r=fo(t,0,1).getBoundingClientRect();return Po=Math.abs(n.left-r.left)>1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,c))}else s>0&&(u=o="right"),c=e.options.lineWrapping&&(g=a.getClientRects()).length>1?g["right"==o?g.length-1:0]:a.getBoundingClientRect();if(r&&i<9&&!s&&(!c||!c.left&&!c.right)){var v=a.parentNode.getClientRects()[0];c=v?{left:v.left,right:v.left+vt(e.display),top:v.top,bottom:v.bottom}:tt}var m=c.top-t.rect.top,y=c.bottom-t.rect.top,b=(m+y)/2,w=t.view.measure.heights;for(d=0;d<w.length-1&&!(b<w[d]);d++);var x=d?w[d-1]:0,C=w[d],S={left:("right"==u?c.right:c.left)-t.rect.left,right:("left"==u?c.left:c.right)-t.rect.left,top:x,bottom:C};return c.left||c.right||(S.bogus=!0),e.options.singleCursorHeightPerLine||(S.rtop=m,S.rbottom=y),S}(e,t,n,o)).bogus||(t.cache[l]=s)),{left:s.left,right:s.right,top:a?s.rtop:s.top,bottom:a?s.rbottom:s.bottom}}ve.prototype={primary:function(){return this.ranges[this.primIndex]},equals:function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(0!=de(n.anchor,r.anchor)||0!=de(n.head,r.head))return!1}return!0},deepCopy:function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new me(he(this.ranges[t].anchor),he(this.ranges[t].head));return new ve(e,this.primIndex)},somethingSelected:function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},contains:function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(de(t,r.from())>=0&&de(e,r.to())<=0)return n}return-1}},me.prototype={from:function(){return ge(this.anchor,this.head)},to:function(){return pe(this.anchor,this.head)},empty:function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}};var et,tt={left:0,right:0,top:0,bottom:0};function nt(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function rt(e){e.display.externalMeasure=null,vo(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)nt(e.display.view[t])}function it(e){rt(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function ot(){return window.pageXOffset||(document.documentElement||document.body).scrollLeft}function at(){return window.pageYOffset||(document.documentElement||document.body).scrollTop}function st(e,t,n,r){if(t.widgets)for(var i=0;i<t.widgets.length;++i)if(t.widgets[i].above){var o=Er(t.widgets[i]);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=gi(t);if("local"==r?a+=Ue(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:at());var l=s.left+("window"==r?0:ot());n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function lt(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=ot(),i-=at();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function ut(e,t,n,r,i){return r||(r=ui(e.doc,t.line)),st(e,r,Ye(e,r,t.ch,i),n)}function ct(e,t,n,r,i,o){function a(t,a){var s=Ze(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,st(e,r,s,n)}function s(e,t){var n=l[t],r=n.level%2;return e==Ho(n)&&t&&n.level<l[t-1].level?(e=Fo(n=l[--t])-(n.level%2?0:1),r=!0):e==Fo(n)&&t<l.length-1&&n.level<l[t+1].level&&(e=Ho(n=l[++t])-n.level%2,r=!1),r&&e==n.to&&e>n.from?a(e-1):a(e,r)}r=r||ui(e.doc,t.line),i||(i=Qe(e,r));var l=vi(r),u=t.ch;if(!l)return a(u);var c=s(u,Vo(l,u));return null!=Mo&&(c.other=s(u,Mo)),c}function ft(e,t){var n=0;t=xe(e.doc,t),e.options.lineWrapping||(n=vt(e.display)*t.ch);var r=ui(e.doc,t.line),i=gi(r)+Ue(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function dt(e,t,n,r){var i=fe(e,t);return i.xRel=r,n&&(i.outside=!0),i}function ht(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return dt(r.first,0,!0,-1);var i=pi(r,n),o=r.first+r.size-1;if(i>o)return dt(r.first+r.size-1,ui(r,o).text.length,!0,1);t<0&&(t=0);for(var a=ui(r,i);;){var s=pt(e,a,i,t,n),l=_r(a),u=l&&l.find(0,!0);if(!l||!(s.ch>u.from.ch||s.ch==u.from.ch&&s.xRel>0))return s;i=hi(a=u.to.line)}}function pt(e,t,n,r,i){var o=i-gi(t),a=!1,s=2*e.display.wrapper.clientWidth,l=Qe(e,t);function u(r){var i=ct(e,fe(n,r),"line",t,l);return a=!0,o>i.bottom?i.left-s:o<i.top?i.left+s:(a=!1,i.left)}var c=vi(t),f=t.text.length,d=Wo(t),h=zo(t),p=u(d),g=a,v=u(h),m=a;if(r>v)return dt(n,h,m,1);for(;;){if(c?h==d||h==Xo(t,d,1):h-d<=1){for(var y=r<p||r-p<=v-r?d:h,b=r-(y==d?p:v);po(t.text.charAt(y));)++y;return dt(n,y,y==d?g:m,b<-1?-1:b>1?1:0)}var w=Math.ceil(f/2),x=d+w;if(c){x=d;for(var C=0;C<w;++C)x=Xo(t,x,1)}var S=u(x);S>r?(h=x,v=S,(m=a)&&(v+=1e3),f=w):(d=x,p=S,g=a,f-=w)}}function gt(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==et){et=go("pre");for(var t=0;t<49;++t)et.appendChild(document.createTextNode("x")),et.appendChild(go("br"));et.appendChild(document.createTextNode("x"))}mo(e.measure,et);var n=et.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),vo(e.measure),n||1}function vt(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=go("span","xxxxxxxxxx"),n=go("pre",[t]);mo(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}var mt=null,yt=0;function bt(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,id:++yt},mt?mt.ops.push(e.curOp):e.curOp.ownsGroup=mt={ops:[e.curOp],delayedCallbacks:[]}}function wt(e){var t=e.curOp.ownsGroup;if(t)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n]();for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++](i.cm)}}while(n<t.length)}(t)}finally{mt=null;for(var n=0;n<t.ops.length;n++)t.ops[n].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)xt(t[n]);for(n=0;n<t.length;n++)Ct(t[n]);for(n=0;n<t.length;n++)St(t[n]);for(n=0;n<t.length;n++)_t(t[n]);for(n=0;n<t.length;n++)Tt(t[n])}(t)}}function xt(e){var t=e.cm,n=t.display;!function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Xe(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Xe(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&E(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new G(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ct(e){e.updatedDisplay=e.mustUpdate&&X(e.cm,e.update)}function St(e){var t=e.cm,n=t.display;e.updatedDisplay&&K(t),e.barMeasure=O(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Ye(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Xe(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-$e(t))),(e.updatedDisplay||e.selectionChanged)&&(e.newSelectionNodes=Oe(t))}function _t(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&rn(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1),e.newSelectionNodes&&Pe(t,e.newSelectionNodes),e.updatedDisplay&&Y(t,e.barMeasure),(e.updatedDisplay||e.startHeight!=t.doc.height)&&F(t,e.barMeasure),e.selectionChanged&&We(t),t.state.focused&&e.updateInput&&Ut(t,e.typing)}function Tt(e){var t=e.cm,n=t.display,r=t.doc;if(e.updatedDisplay&&$(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null==e.scrollTop||n.scroller.scrollTop==e.scrollTop&&!e.forceScroll||(r.scrollTop=Math.max(0,Math.min(n.scroller.scrollHeight-n.scroller.clientHeight,e.scrollTop)),n.scrollbars.setScrollTop(r.scrollTop),n.scroller.scrollTop=r.scrollTop),null==e.scrollLeft||n.scroller.scrollLeft==e.scrollLeft&&!e.forceScroll||(r.scrollLeft=Math.max(0,Math.min(n.scroller.scrollWidth-$e(t),e.scrollLeft)),n.scrollbars.setScrollLeft(r.scrollLeft),n.scroller.scrollLeft=r.scrollLeft,q(t)),e.scrollToPos){var i=function(e,t,n,r){null==r&&(r=0);for(var i=0;i<5;i++){var o=!1,a=ct(e,t),s=n&&n!=t?ct(e,n):a,l=jn(e,Math.min(a.left,s.left),Math.min(a.top,s.top)-r,Math.max(a.left,s.left),Math.max(a.bottom,s.bottom)+r),u=e.doc.scrollTop,c=e.doc.scrollLeft;if(null!=l.scrollTop&&(nn(e,l.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(o=!0)),null!=l.scrollLeft&&(rn(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-c)>1&&(o=!0)),!o)break}return a}(t,xe(r,e.scrollToPos.from),xe(r,e.scrollToPos.to),e.scrollToPos.margin);e.scrollToPos.isCursor&&t.state.focused&&function(e,t){if(!Wi(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!d){var o=go("div","​",null,"position: absolute; top: "+(t.top-n.viewOffset-Ue(e.display))+"px; height: "+(t.bottom-t.top+Xe(e)+n.barHeight)+"px; left: "+t.left+"px; width: 2px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,i)}var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o)for(var s=0;s<o.length;++s)o[s].lines.length||Pi(o[s],"hide");if(a)for(s=0;s<a.length;++s)a[s].lines.length&&Pi(a[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Pi(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function kt(e,t){if(e.curOp)return t();bt(e);try{return t()}finally{wt(e)}}function Dt(e,t){return function(){if(e.curOp)return t.apply(e,arguments);bt(e);try{return t.apply(e,arguments)}finally{wt(e)}}}function Lt(e){return function(){if(this.curOp)return e.apply(this,arguments);bt(this);try{return e.apply(this,arguments)}finally{wt(this)}}}function At(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);bt(t);try{return e.apply(this,arguments)}finally{wt(t)}}}function Nt(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=_r(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?hi(eo(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Ar(e,t)}function jt(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new Nt(e.doc,ui(e.doc,o),o);r=o+a.size,i.push(a)}return i}function Mt(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)x&&Dr(e.doc,t)<i.viewTo&&It(e);else if(n<=i.viewFrom)x&&Lr(e.doc,n+r)>i.viewFrom?It(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)It(e);else if(t<=i.viewFrom)(o=Pt(e,n,n+r,1))?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):It(e);else if(n>=i.viewTo){var o;(o=Pt(e,t,t,-1))?(i.view=i.view.slice(0,o.index),i.viewTo=o.lineN):It(e)}else{var a=Pt(e,t,t,-1),s=Pt(e,n,n+r,1);a&&s?(i.view=i.view.slice(0,a.index).concat(jt(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):It(e)}var l=i.externalMeasured;l&&(n<l.lineN?l.lineN+=r:t<l.lineN+l.size&&(i.externalMeasured=null))}function Et(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Ot(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==no(a,n)&&a.push(n)}}}function It(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ot(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function Pt(e,t,n,r){var i,o=Ot(e,t),a=e.display.view;if(!x||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=0,l=e.display.viewFrom;s<o;s++)l+=a[s].size;if(l!=t){if(r>0){if(o==a.length-1)return null;i=l+a[o].size-t,o++}else i=l-t;t+=i,n+=i}for(;Dr(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Rt(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function Ht(e){e.display.pollingFast||e.display.poll.set(e.options.pollInterval,(function(){Bt(e),e.state.focused&&Ht(e)}))}function Ft(e){var t=!1;e.display.pollingFast=!0,e.display.poll.set(20,(function n(){Bt(e)||t?(e.display.pollingFast=!1,Ht(e)):(t=!0,e.display.poll.set(60,n))}))}var Wt,zt,qt=null;function Bt(e){var t=e.display.input,n=e.display.prevInput,o=e.doc;if(!e.state.focused||Io(t)&&!n||Xt(e)||e.options.disableInput||e.state.keySeq)return!1;e.state.pasteIncoming&&e.state.fakedLastChar&&(t.value=t.value.substring(0,t.value.length-1),e.state.fakedLastChar=!1);var a=t.value;if(a==n&&!e.somethingSelected())return!1;if(r&&i>=9&&e.display.inputHasSelection===a||g&&/[\uf700-\uf7ff]/.test(a))return Ut(e),!1;var s=!e.curOp;s&&bt(e),e.display.shift=!1,8203!=a.charCodeAt(0)||o.sel!=e.display.selForContextMenu||n||(n="​");for(var l=0,u=Math.min(n.length,a.length);l<u&&n.charCodeAt(l)==a.charCodeAt(l);)++l;var c=a.slice(l),f=Eo(c),d=null;e.state.pasteIncoming&&o.sel.ranges.length>1&&(qt&&qt.join("\n")==c?d=o.sel.ranges.length%qt.length==0&&ro(qt,Eo):f.length==o.sel.ranges.length&&(d=ro(f,(function(e){return[e]}))));for(var h=o.sel.ranges.length-1;h>=0;h--){var p=o.sel.ranges[h],v=p.from(),m=p.to();l<n.length?v=fe(v.line,v.ch-(n.length-l)):e.state.overwrite&&p.empty()&&!e.state.pasteIncoming&&(m=fe(m.line,Math.min(ui(o,m.line).text.length,m.ch+eo(f).length)));var y=e.curOp.updateInput,b={from:v,to:m,text:d?d[h%d.length]:f,origin:e.state.pasteIncoming?"paste":e.state.cutIncoming?"cut":"+input"};if(Tn(e.doc,b),Hi(e,"inputRead",e,b),c&&!e.state.pasteIncoming&&e.options.electricChars&&e.options.smartIndent&&p.head.ch<100&&(!h||o.sel.ranges[h-1].head.line!=p.head.line)){var w=e.getModeAt(p.head),x=wn(b);if(w.electricChars){for(var C=0;C<w.electricChars.length;C++)if(c.indexOf(w.electricChars.charAt(C))>-1){On(e,x.line,"smart");break}}else w.electricInput&&w.electricInput.test(ui(o,x.line).text.slice(0,x.ch))&&On(e,x.line,"smart")}}return En(e),e.curOp.updateInput=y,e.curOp.typing=!0,a.length>1e3||a.indexOf("\n")>-1?t.value=e.display.prevInput="":e.display.prevInput=a,s&&wt(e),e.state.pasteIncoming=e.state.cutIncoming=!1,!0}function Ut(e,t){if(!e.display.contextMenuPending){var n,o,a=e.doc;if(e.somethingSelected()){e.display.prevInput="";var s=a.sel.primary(),l=(n=Oo&&(s.to().line-s.from().line>100||(o=e.getSelection()).length>1e3))?"-":o||e.getSelection();e.display.input.value=l,e.state.focused&&to(e.display.input),r&&i>=9&&(e.display.inputHasSelection=l)}else t||(e.display.prevInput=e.display.input.value="",r&&i>=9&&(e.display.inputHasSelection=null));e.display.inaccurateSelection=n}}function Vt(e){if("nocursor"!=e.options.readOnly&&(!p||bo()!=e.display.input))try{e.display.input.focus()}catch(e){}}function Gt(e){e.state.focused||(Vt(e),mn(e))}function Xt(e){return e.options.readOnly||e.doc.cantEdit}function $t(e){var t=e.display;t.lastWrapHeight==t.wrapper.clientHeight&&t.lastWrapWidth==t.wrapper.clientWidth||(t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize())}function Jt(e,t){for(var n=Mi(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Yt(e,t,n,r){var i=e.display;if(!n&&"true"==Mi(t).getAttribute("not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(t){return null}var l,u=ht(e,o,a);if(r&&1==u.xRel&&(l=ui(e.doc,u.line).text).length==u.ch){var c=Yi(l,l.length,e.options.tabSize)-l.length;u=fe(u.line,Math.max(0,Math.round((o-Ge(e.display).left)/vt(e.display))-c))}return u}function Kt(e){if(!Wi(this,e)){var t=this,n=t.display;if(n.shift=e.shiftKey,Jt(n,e))o||(n.scroller.draggable=!1,setTimeout((function(){n.scroller.draggable=!0}),100));else if(!Zt(t,e)){var a=Yt(t,e);switch(window.focus(),Ei(e)){case 1:a?function(e,t,n){setTimeout(ao(Gt,e),0);var a,s=+new Date;zt&&zt.time>s-400&&0==de(zt.pos,n)?a="triple":Wt&&Wt.time>s-400&&0==de(Wt.pos,n)?(a="double",zt={time:s,pos:n}):(a="single",Wt={time:s,pos:n});var l,u=e.doc.sel,c=g?t.metaKey:t.ctrlKey;e.options.dragDrop&&Lo&&!Xt(e)&&"single"==a&&(l=u.contains(n))>-1&&!u.ranges[l].empty()?function(e,t,n,a){var s=e.display,l=Dt(e,(function(u){o&&(s.scroller.draggable=!1),e.state.draggingText=!1,Oi(document,"mouseup",l),Oi(s.scroller,"drop",l),Math.abs(t.clientX-u.clientX)+Math.abs(t.clientY-u.clientY)<10&&(Li(u),a||_e(e.doc,n),Vt(e),r&&9==i&&setTimeout((function(){document.body.focus(),Vt(e)}),20))}));o&&(s.scroller.draggable=!0),e.state.draggingText=l,s.scroller.dragDrop&&s.scroller.dragDrop(),Ii(document,"mouseup",l),Ii(s.scroller,"drop",l)}(e,t,n,c):function(e,t,n,r,i){var o=e.display,a=e.doc;Li(t);var s,l,u=a.sel,c=u.ranges;if(i&&!t.shiftKey?(l=a.sel.contains(n),s=l>-1?c[l]:new me(n,n)):s=a.sel.primary(),t.altKey)r="rect",i||(s=new me(n,n)),n=Yt(e,t,!0,!0),l=-1;else if("double"==r){var f=e.findWordAt(n);s=e.display.shift||a.extend?Se(a,s,f.anchor,f.head):f}else if("triple"==r){var d=new me(fe(n.line,0),xe(a,fe(n.line+1,0)));s=e.display.shift||a.extend?Se(a,s,d.anchor,d.head):d}else s=Se(a,s,n);i?-1==l?(l=c.length,Ae(a,ye(c.concat([s]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"single"==r?(Ae(a,ye(c.slice(0,l).concat(c.slice(l+1)),0)),u=a.sel):ke(a,l,s,Xi):(l=0,Ae(a,new ve([s],0),Xi),u=a.sel);var h=n,p=o.wrapper.getBoundingClientRect(),g=0;function v(t){var i=++g,c=Yt(e,t,!0,"rect"==r);if(c)if(0!=de(c,h)){Gt(e),function(t){if(0!=de(h,t))if(h=t,"rect"==r){for(var i=[],o=e.options.tabSize,c=Yi(ui(a,n.line).text,n.ch,o),f=Yi(ui(a,t.line).text,t.ch,o),d=Math.min(c,f),p=Math.max(c,f),g=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=v;g++){var m=ui(a,g).text,y=Ki(m,d,o);d==p?i.push(new me(fe(g,y),fe(g,y))):m.length>y&&i.push(new me(fe(g,y),fe(g,Ki(m,p,o))))}i.length||i.push(new me(n,n)),Ae(a,ye(u.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b=s,w=b.anchor,x=t;if("single"!=r){if("double"==r)var C=e.findWordAt(t);else C=new me(fe(t.line,0),xe(a,fe(t.line+1,0)));de(C.anchor,w)>0?(x=C.head,w=ge(b.from(),C.anchor)):(x=C.anchor,w=pe(b.to(),C.head))}(i=u.ranges.slice(0))[l]=new me(xe(a,w),x),Ae(a,ye(i,l),Xi)}}(c);var f=z(o,a);(c.line>=f.to||c.line<f.from)&&setTimeout(Dt(e,(function(){g==i&&v(t)})),150)}else{var d=t.clientY<p.top?-20:t.clientY>p.bottom?20:0;d&&setTimeout(Dt(e,(function(){g==i&&(o.scroller.scrollTop+=d,v(t))})),50)}}function m(t){g=1/0,Li(t),Vt(e),Oi(document,"mousemove",y),Oi(document,"mouseup",b),a.history.lastSelOrigin=null}var y=Dt(e,(function(e){Ei(e)?v(e):m(e)})),b=Dt(e,m);Ii(document,"mousemove",y),Ii(document,"mouseup",b)}(e,t,n,a,c)}(t,e,a):Mi(e)==n.scroller&&Li(e);break;case 2:o&&(t.state.lastMiddleDown=+new Date),a&&_e(t.doc,a),setTimeout(ao(Vt,t),20),Li(e);break;case 3:b&&bn(t,e)}}}}function Qt(e,t,n,r,i){try{var o=t.clientX,a=t.clientY}catch(t){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Li(t);var s=e.display,l=s.lineDiv.getBoundingClientRect();if(a>l.bottom||!qi(e,n))return Ni(t);a-=l.top-s.viewOffset;for(var u=0;u<e.options.gutters.length;++u){var c=s.gutters.childNodes[u];if(c&&c.getBoundingClientRect().right>=o)return i(e,n,e,pi(e.doc,a),e.options.gutters[u],t),Ni(t)}}function Zt(e,t){return Qt(e,t,"gutterClick",!0,Hi)}var en=0;function tn(e){var t=this;if(!Wi(t,e)&&!Jt(t.display,e)){Li(e),r&&(en=+new Date);var n=Yt(t,e,!0),i=e.dataTransfer.files;if(n&&!Xt(t))if(i&&i.length&&window.FileReader&&window.File)for(var o=i.length,a=Array(o),s=0,l=function(e,r){var i=new FileReader;i.onload=Dt(t,(function(){if(a[r]=i.result,++s==o){var e={from:n=xe(t.doc,n),to:n,text:Eo(a.join("\n")),origin:"paste"};Tn(t.doc,e),Le(t.doc,be(n,wn(e)))}})),i.readAsText(e)},u=0;u<o;++u)l(i[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(ao(Vt,t),20);try{if(a=e.dataTransfer.getData("Text")){if(t.state.draggingText&&!(g?e.metaKey:e.ctrlKey))var c=t.listSelections();if(Ne(t.doc,be(n,n)),c)for(u=0;u<c.length;++u)Nn(t.doc,"",c[u].anchor,c[u].head,"drag");t.replaceSelection(a,"around","paste"),Vt(t)}}catch(e){}}}}function nn(t,n){Math.abs(t.doc.scrollTop-n)<2||(t.doc.scrollTop=n,e||J(t,{top:n}),t.display.scroller.scrollTop!=n&&(t.display.scroller.scrollTop=n),t.display.scrollbars.setScrollTop(n),e&&J(t),ze(t,100))}function rn(e,t,n){(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)||(t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),e.doc.scrollLeft=t,q(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}var on=0,an=null;r?an=-.53:e?an=15:s?an=-.7:u&&(an=-1/3);var sn=function(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}};function ln(t,n){var r=sn(n),i=r.x,a=r.y,s=t.display,u=s.scroller;if(i&&u.scrollWidth>u.clientWidth||a&&u.scrollHeight>u.clientHeight){if(a&&g&&o)e:for(var c=n.target,f=s.view;c!=u;c=c.parentNode)for(var d=0;d<f.length;d++)if(f[d].node==c){t.display.currentWheelTarget=c;break e}if(i&&!e&&!l&&null!=an)return a&&nn(t,Math.max(0,Math.min(u.scrollTop+a*an,u.scrollHeight-u.clientHeight))),rn(t,Math.max(0,Math.min(u.scrollLeft+i*an,u.scrollWidth-u.clientWidth))),Li(n),void(s.wheelStartX=null);if(a&&null!=an){var h=a*an,p=t.doc.scrollTop,v=p+s.wrapper.clientHeight;h<0?p=Math.max(0,p+h-50):v=Math.min(t.doc.height,v+h+50),J(t,{top:p,bottom:v})}on<20&&(null==s.wheelStartX?(s.wheelStartX=u.scrollLeft,s.wheelStartY=u.scrollTop,s.wheelDX=i,s.wheelDY=a,setTimeout((function(){if(null!=s.wheelStartX){var e=u.scrollLeft-s.wheelStartX,t=u.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(an=(an*on+n)/(on+1),++on)}}),200)):(s.wheelDX+=i,s.wheelDY+=a))}}function un(e,t,n){if("string"==typeof t&&!(t=Kn[t]))return!1;e.display.pollingFast&&Bt(e)&&(e.display.pollingFast=!1);var r=e.display.shift,i=!1;try{Xt(e)&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=Vi}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}C.wheelEventPixels=function(e){var t=sn(e);return t.x*=an,t.y*=an,t};var cn=new Ji;function fn(e,t,n,r){var i=e.state.keySeq;if(i){if(tr(t))return"handled";cn.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,Ut(e))})),t=i+" "+t}var o=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=er(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&er(t,e.options.extraKeys,n,e)||er(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==o&&(e.state.keySeq=t),"handled"==o&&Hi(e,"keyHandled",e,t,n),"handled"!=o&&"multi"!=o||(Li(n),We(e)),i&&!o&&/\'$/.test(t)?(Li(n),!0):!!o}function dn(e,t){var n=nr(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?fn(e,"Shift-"+n,t,(function(t){return un(e,t,!0)}))||fn(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return un(e,t)})):fn(e,n,t,(function(t){return un(e,t)})))}var hn=null;function pn(e){var t=this;if(Gt(t),!Wi(t,e)){r&&i<11&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var o=dn(t,e);l&&(hn=o?n:null,o||88!=n||Oo||!(g?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(xo(t,"CodeMirror-crosshair"),Oi(document,"keyup",n),Oi(document,"mouseover",n))}Co(t,"CodeMirror-crosshair"),Ii(document,"keyup",n),Ii(document,"mouseover",n)}(t)}}function gn(e){16==e.keyCode&&(this.doc.sel.shift=!1),Wi(this,e)}function vn(e){var t=this;if(!(Wi(t,e)||e.ctrlKey&&!e.altKey||g&&e.metaKey)){var n=e.keyCode,o=e.charCode;if(l&&n==hn)return hn=null,void Li(e);(l&&(!e.which||e.which<10)||c)&&dn(t,e)||function(e,t,n){return fn(e,"'"+n+"'",t,(function(t){return un(e,t,!0)}))}(t,e,String.fromCharCode(null==o?n:o))||(r&&i>=9&&(t.display.inputHasSelection=null),Ft(t))}}function mn(e){"nocursor"!=e.options.readOnly&&(e.state.focused||(Pi(e,"focus",e),e.state.focused=!0,Co(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(Ut(e),o&&setTimeout(ao(Ut,e,!0),0))),Ht(e),We(e))}function yn(e){e.state.focused&&(Pi(e,"blur",e),e.state.focused=!1,xo(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150)}function bn(e,t){if(!Wi(e,t,"contextmenu")){var n=e.display;if(!Jt(n,t)&&!function(e,t){return!!qi(e,"gutterContextMenu")&&Qt(e,t,"gutterContextMenu",!1,Pi)}(e,t)){var a=Yt(e,t),s=n.scroller.scrollTop;if(a&&!l){e.options.resetSelectionOnContextMenu&&-1==e.doc.sel.contains(a)&&Dt(e,Ae)(e.doc,be(a),Gi);var u=n.input.style.cssText;if(n.inputDiv.style.position="absolute",n.input.style.cssText="position: fixed; width: 30px; height: 30px; top: "+(t.clientY-5)+"px; left: "+(t.clientX-5)+"px; z-index: 1000; background: "+(r?"rgba(255, 255, 255, .05)":"transparent")+"; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",o)var c=window.scrollY;if(Vt(e),o&&window.scrollTo(null,c),Ut(e),e.somethingSelected()||(n.input.value=n.prevInput=" "),n.contextMenuPending=!0,n.selForContextMenu=e.doc.sel,clearTimeout(n.detectingSelectAll),r&&i>=9&&d(),b){ji(t);var f=function(){Oi(window,"mouseup",f),setTimeout(h,20)};Ii(window,"mouseup",f)}else setTimeout(h,50)}}}function d(){if(null!=n.input.selectionStart){var t=e.somethingSelected(),r=n.input.value="​"+(t?n.input.value:"");n.prevInput=t?"":"​",n.input.selectionStart=1,n.input.selectionEnd=r.length,n.selForContextMenu=e.doc.sel}}function h(){if(n.contextMenuPending=!1,n.inputDiv.style.position="relative",n.input.style.cssText=u,r&&i<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=s),Ht(e),null!=n.input.selectionStart){(!r||r&&i<9)&&d();var t=0,o=function(){n.selForContextMenu==e.doc.sel&&0==n.input.selectionStart?Dt(e,Kn.selectAll)(e):t++<10?n.detectingSelectAll=setTimeout(o,500):Ut(e)};n.detectingSelectAll=setTimeout(o,200)}}}var wn=C.changeEnd=function(e){return e.text?fe(e.from.line+e.text.length-1,eo(e.text).length+(1==e.text.length?e.from.ch:0)):e.to};function xn(e,t){if(de(e,t.from)<0)return e;if(de(e,t.to)<=0)return wn(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=wn(t).ch-t.to.ch),fe(n,r)}function Cn(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new me(xn(i.anchor,t),xn(i.head,t)))}return ye(n,e.sel.primIndex)}function Sn(e,t,n){return e.line==t.line?fe(n.line,e.ch-t.ch+n.ch):fe(n.line+(e.line-t.line),e.ch)}function _n(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){this.canceled=!0}};return n&&(r.update=function(t,n,r,i){t&&(this.from=xe(e,t)),n&&(this.to=xe(e,n)),r&&(this.text=r),void 0!==i&&(this.origin=i)}),Pi(e,"beforeChange",e,r),e.cm&&Pi(e.cm,"beforeChange",e.cm,r),r.canceled?null:{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Tn(e,t,n){if(e.cm){if(!e.cm.curOp)return Dt(e.cm,Tn)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(qi(e,"beforeChange")||e.cm&&qi(e.cm,"beforeChange"))||(t=_n(e,t,!0))){var r=w&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=no(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var u=i[l];if(!(de(u.to,s.from)<0||de(u.from,s.to)>0)){var c=[l,1],f=de(u.from,s.from),d=de(u.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:u.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-1}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)kn(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text});else kn(e,t)}}function kn(e,t){if(1!=t.text.length||""!=t.text[0]||0!=de(t.from,t.to)){var n=Cn(e,t);wi(e,t,n,e.cm?e.cm.curOp.id:NaN),An(e,t,n,pr(e,t));var r=[];si(e,(function(e,n){n||-1!=no(r,e.history)||(Di(e.history,t),r.push(e.history)),An(e,t,null,pr(e,t))}))}}function Dn(e,t,n){if(!e.cm||!e.cm.state.suppressEdits){for(var r,i=e.history,o=e.sel,a="undo"==t?i.done:i.undone,s="undo"==t?i.undone:i.done,l=0;l<a.length&&(r=a[l],n?!r.ranges||r.equals(e.sel):r.ranges);l++);if(l!=a.length){for(i.lastOrigin=i.lastSelOrigin=null;(r=a.pop()).ranges;){if(xi(r,s),n&&!r.equals(e.sel))return void Ae(e,r,{clearRedo:!1});o=r}var u=[];xi(o,s),s.push({changes:u,generation:i.generation}),i.generation=r.generation||++i.maxGeneration;var c=qi(e,"beforeChange")||e.cm&&qi(e.cm,"beforeChange");for(l=r.changes.length-1;l>=0;--l){var f=r.changes[l];if(f.origin=t,c&&!_n(e,f,!1))return void(a.length=0);u.push(yi(e,f));var d=l?Cn(e,f):eo(a);An(e,f,d,vr(e,f)),!l&&e.cm&&e.cm.scrollIntoView({from:f.from,to:wn(f)});var h=[];si(e,(function(e,t){t||-1!=no(h,e.history)||(Di(e.history,f),h.push(e.history)),An(e,f,null,vr(e,f))}))}}}}function Ln(e,t){if(0!=t&&(e.first+=t,e.sel=new ve(ro(e.sel.ranges,(function(e){return new me(fe(e.anchor.line+t,e.anchor.ch),fe(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Mt(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)Et(e.cm,r,"gutter")}}function An(e,t,n,r){if(e.cm&&!e.cm.curOp)return Dt(e.cm,An)(e,t,n,r);if(t.to.line<e.first)Ln(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);Ln(e,i),t={from:fe(e.first,0),to:fe(t.to.line+i,t.to.ch),text:[eo(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:fe(o,ui(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=ci(e,t.from,t.to),n||(n=Cn(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=hi(kr(ui(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&zi(e),ei(r,t,n,k(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=M(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),r.frontier=Math.min(r.frontier,o.line),ze(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?Mt(e):o.line!=a.line||1!=t.text.length||Zr(e.doc,t)?Mt(e,o.line,a.line+1,u):Et(e,o.line,"text");var c=qi(e,"changes"),f=qi(e,"change");if(f||c){var d={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&Hi(e,"change",e,d),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}(e.cm,t,r):ei(e,t,r),Ne(e,n,Gi)}}function Nn(e,t,n,r,i){if(r||(r=n),de(r,n)<0){var o=r;r=n,n=o}"string"==typeof t&&(t=Eo(t)),Tn(e,{from:n,to:r,text:t,origin:i})}function jn(e,t,n,r,i){var o=e.display,a=gt(e.display);n<0&&(n=0);var s=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:o.scroller.scrollTop,l=Je(e),u={};i-n>l&&(i=n+l);var c=e.doc.height+Ve(o),f=n<a,d=i>c-a;if(n<s)u.scrollTop=f?0:n;else if(i>s+l){var h=Math.min(n,(d?c:i)-l);h!=s&&(u.scrollTop=h)}var p=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:o.scroller.scrollLeft,g=$e(e)-(e.options.fixedGutter?o.gutters.offsetWidth:0),v=r-t>g;return v&&(r=t+g),t<10?u.scrollLeft=0:t<p?u.scrollLeft=Math.max(0,t-(v?0:10)):r>g+p-3&&(u.scrollLeft=r+(v?0:10)-g),u}function Mn(e,t,n){null==t&&null==n||In(e),null!=t&&(e.curOp.scrollLeft=(null==e.curOp.scrollLeft?e.doc.scrollLeft:e.curOp.scrollLeft)+t),null!=n&&(e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+n)}function En(e){In(e);var t=e.getCursor(),n=t,r=t;e.options.lineWrapping||(n=t.ch?fe(t.line,t.ch-1):t,r=fe(t.line,t.ch+1)),e.curOp.scrollToPos={from:n,to:r,margin:e.options.cursorScrollMargin,isCursor:!0}}function In(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=ft(e,t.from),r=ft(e,t.to),i=jn(e,Math.min(n.left,r.left),Math.min(n.top,r.top)-t.margin,Math.max(n.right,r.right),Math.max(n.bottom,r.bottom)+t.margin);e.scrollTo(i.scrollLeft,i.scrollTop)}}function On(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=Be(e,t):n="prev");var a=e.options.tabSize,s=ui(o,t),l=Yi(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==Vi||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?Yi(ui(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var f="",d=0;if(e.options.indentWithTabs)for(var h=Math.floor(u/a);h;--h)d+=a,f+="\t";if(d<u&&(f+=Zi(u-d)),f!=c)Nn(o,f,fe(t,0),fe(t,c.length),"+input");else for(h=0;h<o.sel.ranges.length;h++){var p=o.sel.ranges[h];if(p.head.line==t&&p.head.ch<c.length){ke(o,h,new me(d=fe(t,c.length),d));break}}s.stateAfter=null}function Pn(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=ui(e,we(e,t)):i=hi(t),null==i?null:(r(o,i)&&e.cm&&Et(e.cm,i,n),o)}function Rn(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&de(o.from,eo(r).to)<=0;){var a=r.pop();if(de(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}kt(e,(function(){for(var t=r.length-1;t>=0;t--)Nn(e.doc,"",r[t].from,r[t].to,"+delete");En(e)}))}function Hn(e,t,n,r,i){var o=t.line,a=t.ch,s=n,l=ui(e,o),u=!0;function c(t){var r,s=(i?Xo:$o)(l,a,n,!0);if(null==s){if(t||!((r=o+n)<e.first||r>=e.first+e.size?u=!1:(o=r,l=ui(e,r))))return u=!1;a=i?(n<0?zo:Wo)(l):n<0?l.text.length:0}else a=s;return!0}if("char"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var f=null,d="group"==r,h=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||c(!p);p=!1){var g=l.text.charAt(a)||"\n",v=uo(g,h)?"w":d&&"\n"==g?"n":!d||/\s/.test(g)?null:"p";if(!d||p||v||(v="s"),f&&f!=v){n<0&&(n=1,c());break}if(v&&(f=v),n>0&&!c(!p))break}var m=Ie(e,fe(o,a),s,!0);return u||(m.hitSide=!0),m}function Fn(e,t,n,r){var i,o=e.doc,a=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight);i=t.top+n*(s-(n<0?1.5:.5)*gt(e.display))}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;;){var l=ht(e,a,i);if(!l.outside)break;if(n<0?i<=0:i>=o.height){l.hitSide=!0;break}i+=5*n}return l}C.prototype={constructor:C,focus:function(){window.focus(),Vt(this),Ft(this)},setOption:function(e,t){var n=this.options,r=n[e];n[e]==t&&"mode"!=e||(n[e]=t,zn.hasOwnProperty(e)&&Dt(this,zn[e])(this,t,r))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](rr(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Lt((function(e,t){var n=e.token?e:C.getMode(this.options,e);if(n.startState)throw new Error("Overlays may not be stateful.");this.state.overlays.push({mode:n,modeSpec:e,opaque:t&&t.opaque}),this.state.modeGen++,Mt(this)})),removeOverlay:Lt((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void Mt(this)}})),indentLine:Lt((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),Ce(this.doc,e)&&On(this,e,t,n)})),indentSelection:Lt((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(On(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&En(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)On(this,l,e);var u=this.doc.sel.ranges;0==o.ch&&t.length==u.length&&u[r].from().ch>0&&ke(this.doc,r,new me(o,u[r].to()),Gi)}}})),getTokenAt:function(e,t){return Fr(this,e,t)},getLineTokens:function(e,t){return Fr(this,fe(e),t,!0)},getTokenTypeAt:function(e){e=xe(this.doc,e);var t,n=qr(this,ui(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("cm-overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(e){var t=this.doc.mode;return t.innerMode?C.innerMode(t,this.getTokenAt(e).state).mode:t},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var n=[];if(!$n.hasOwnProperty(t))return $n;var r=$n[t],i=this.getModeAt(e);if("string"==typeof i[t])r[i[t]]&&n.push(r[i[t]]);else if(i[t])for(var o=0;o<i[t].length;o++){var a=r[i[t][o]];a&&n.push(a)}else i.helperType&&r[i.helperType]?n.push(r[i.helperType]):r[i.name]&&n.push(r[i.name]);for(o=0;o<r._global.length;o++){var s=r._global[o];s.pred(i,this)&&-1==no(n,s.val)&&n.push(s.val)}return n},getStateAfter:function(e,t){var n=this.doc;return Be(this,(e=we(n,null==e?n.first+n.size-1:e))+1,t)},cursorCoords:function(e,t){var n=this.doc.sel.primary();return ct(this,null==e?n.head:"object"==typeof e?xe(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return ut(this,xe(this.doc,e),t||"page")},coordsChar:function(e,t){return ht(this,(e=lt(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=lt(this,{top:e,left:0},t||"page").top,pi(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t){var n=!1,r=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>r&&(e=r,n=!0);var i=ui(this.doc,e);return st(this,i,{top:0,left:0},t||"page").top+(n?this.doc.height-gi(i):0)},defaultTextHeight:function(){return gt(this.display)},defaultCharWidth:function(){return vt(this.display)},setGutterMarker:Lt((function(e,t,n){return Pn(this.doc,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&co(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:Lt((function(e){var t=this,n=t.doc,r=n.first;n.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&(n.gutterMarkers[e]=null,Et(t,r,"gutter"),co(n.gutterMarkers)&&(n.gutterMarkers=null)),++r}))})),addLineWidget:Lt((function(e,t,n){return function(e,t,n,r){var i=new jr(e,n,r);return i.noHScroll&&(e.display.alignWidgets=!0),Pn(e.doc,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,!Ar(e.doc,t)){var r=gi(t)<e.doc.scrollTop;di(t,t.height+Er(i)),r&&Mn(e,null,i.height),e.curOp.forceUpdate=!0}return!0})),i}(this,e,t,n)})),removeLineWidget:function(e){e.clear()},lineInfo:function(e){if("number"==typeof e){if(!Ce(this.doc,e))return null;var t=e;if(!(e=ui(this.doc,e)))return null}else if(null==(t=hi(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s,l,u,c,f=this.display,d=(e=ct(this,xe(this.doc,e))).bottom,h=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),f.sizer.appendChild(t),"over"==r)d=e.top;else if("above"==r||"near"==r){var p=Math.max(f.wrapper.clientHeight,this.doc.height),g=Math.max(f.sizer.clientWidth,f.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>p)&&e.top>t.offsetHeight?d=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=p&&(d=e.bottom),h+t.offsetWidth>g&&(h=g-t.offsetWidth)}t.style.top=d+"px",t.style.left=t.style.right="","right"==i?(h=f.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?h=0:"middle"==i&&(h=(f.sizer.clientWidth-t.offsetWidth)/2),t.style.left=h+"px"),n&&(o=this,a=h,s=d,l=h+t.offsetWidth,u=d+t.offsetHeight,null!=(c=jn(o,a,s,l,u)).scrollTop&&nn(o,c.scrollTop),null!=c.scrollLeft&&rn(o,c.scrollLeft))},triggerOnKeyDown:Lt(pn),triggerOnKeyPress:Lt(vn),triggerOnKeyUp:gn,execCommand:function(e){if(Kn.hasOwnProperty(e))return Kn[e](this)},findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=0,a=xe(this.doc,e);o<t&&!(a=Hn(this.doc,a,i,n,r)).hitSide;++o);return a},moveH:Lt((function(e,t){var n=this;n.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Hn(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),$i)})),deleteH:Lt((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Rn(this,(function(n){var i=Hn(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=0,s=xe(this.doc,e);a<t;++a){var l=ct(this,s,"div");if(null==o?o=l.left:l.left=o,(s=Fn(this,l,i,n)).hitSide)break}return s},moveV:Lt((function(e,t){var n=this,r=this.doc,i=[],o=!n.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=ct(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=Fn(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Mn(n,null,ut(n,l,"div").top-s.top),l}),$i),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=ui(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");(e.xRel<0||r==t.length)&&n?--n:++r;for(var o=t.charAt(n),a=uo(o,i)?function(e){return uo(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!uo(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new me(fe(e.line,n),fe(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Co(this.display.cursorDiv,"CodeMirror-overwrite"):xo(this.display.cursorDiv,"CodeMirror-overwrite"),Pi(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return bo()==this.display.input},scrollTo:Lt((function(e,t){null==e&&null==t||In(this),null!=e&&(this.curOp.scrollLeft=e),null!=t&&(this.curOp.scrollTop=t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Xe(this)-this.display.barHeight,width:e.scrollWidth-Xe(this)-this.display.barWidth,clientHeight:Je(this),clientWidth:$e(this)}},scrollIntoView:Lt((function(e,t){if(null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:fe(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line)In(this),this.curOp.scrollToPos=e;else{var n=jn(this,Math.min(e.from.left,e.to.left),Math.min(e.from.top,e.to.top)-e.margin,Math.max(e.from.right,e.to.right),Math.max(e.from.bottom,e.to.bottom)+e.margin);this.scrollTo(n.scrollLeft,n.scrollTop)}})),setSize:Lt((function(e,t){var n=this;function r(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e}null!=e&&(n.display.wrapper.style.width=r(e)),null!=t&&(n.display.wrapper.style.height=r(t)),n.options.lineWrapping&&rt(this);var i=n.display.viewFrom;n.doc.iter(i,n.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Et(n,i,"widget");break}++i})),n.curOp.forceUpdate=!0,Pi(n,"refresh",this)})),operation:function(e){return kt(this,e)},refresh:Lt((function(){var e=this.display.cachedTextHeight;Mt(this),this.curOp.forceUpdate=!0,it(this),this.scrollTo(this.doc.scrollLeft,this.doc.scrollTop),j(this),(null==e||Math.abs(e-gt(this.display))>.5)&&D(this),Pi(this,"refresh",this)})),swapDoc:Lt((function(e){var t=this.doc;return t.cm=null,li(this,e),it(this),Ut(this),this.scrollTo(e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Hi(this,"swapDoc",this,t),t})),getInputField:function(){return this.display.input},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Bi(C);var Wn=C.defaults={},zn=C.optionHandlers={};function qn(e,t,n,r){C.defaults[e]=t,n&&(zn[e]=r?function(e,t,r){r!=Bn&&n(e,t,r)}:n)}var Bn=C.Init={toString:function(){return"CodeMirror.Init"}};qn("value","",(function(e,t){e.setValue(t)}),!0),qn("mode",null,(function(e,t){e.doc.modeOption=t,_(e)}),!0),qn("indentUnit",2,_,!0),qn("indentWithTabs",!1),qn("smartIndent",!0),qn("tabSize",4,(function(e){T(e),it(e),Mt(e)}),!0),qn("specialChars",/[\t\u0000-\u0019\u00ad\u200b-\u200f\u2028\u2029\ufeff]/g,(function(e,t){e.options.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),e.refresh()}),!0),qn("specialCharPlaceholder",(function(e){var t=go("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}),(function(e){e.refresh()}),!0),qn("electricChars",!0),qn("rtlMoveVisually",!v),qn("wholeLineUpdateBefore",!0),qn("theme","default",(function(e){L(e),A(e)}),!0),qn("keyMap","default",(function(e,t,n){var r=rr(t),i=n!=C.Init&&rr(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),qn("extraKeys",null),qn("lineWrapping",!1,(function(e){e.options.lineWrapping?(Co(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(xo(e.display.wrapper,"CodeMirror-wrap"),E(e)),D(e),Mt(e),it(e),setTimeout((function(){F(e)}),100)}),!0),qn("gutters",[],(function(e){I(e.options),A(e)}),!0),qn("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?V(e.display)+"px":"0",e.refresh()}),!0),qn("coverGutterNextToScrollbar",!1,(function(e){F(e)}),!0),qn("scrollbarStyle","native",(function(e){H(e),F(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),qn("lineNumbers",!1,(function(e){I(e.options),A(e)}),!0),qn("firstLineNumber",1,A,!0),qn("lineNumberFormatter",(function(e){return e}),A,!0),qn("showCursorWhenSelecting",!1,Re,!0),qn("resetSelectionOnContextMenu",!0),qn("readOnly",!1,(function(e,t){"nocursor"==t?(yn(e),e.display.input.blur(),e.display.disabled=!0):(e.display.disabled=!1,t||Ut(e))})),qn("disableInput",!1,(function(e,t){t||Ut(e)}),!0),qn("dragDrop",!0),qn("cursorBlinkRate",530),qn("cursorScrollMargin",0),qn("cursorHeight",1,Re,!0),qn("singleCursorHeightPerLine",!0,Re,!0),qn("workTime",100),qn("workDelay",100),qn("flattenSpans",!0,T,!0),qn("addModeClass",!1,T,!0),qn("pollInterval",100),qn("undoDepth",200,(function(e,t){e.doc.history.undoDepth=t})),qn("historyEventDelay",1250),qn("viewportMargin",10,(function(e){e.refresh()}),!0),qn("maxHighlightLength",1e4,T,!0),qn("moveInputWithCursor",!0,(function(e,t){t||(e.display.inputDiv.style.top=e.display.inputDiv.style.left=0)})),qn("tabindex",null,(function(e,t){e.display.input.tabIndex=t||""})),qn("autofocus",null);var Un=C.modes={},Vn=C.mimeModes={};C.defineMode=function(e,t){C.defaults.mode||"null"==e||(C.defaults.mode=e),arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Un[e]=t},C.defineMIME=function(e,t){Vn[e]=t},C.resolveMode=function(e){if("string"==typeof e&&Vn.hasOwnProperty(e))e=Vn[e];else if(e&&"string"==typeof e.name&&Vn.hasOwnProperty(e.name)){var t=Vn[e.name];"string"==typeof t&&(t={name:t}),(e=io(t,e)).name=t.name}else if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return C.resolveMode("application/xml");return"string"==typeof e?{name:e}:e||{name:"null"}},C.getMode=function(e,t){t=C.resolveMode(t);var n=Un[t.name];if(!n)return C.getMode(e,"text/plain");var r=n(e,t);if(Gn.hasOwnProperty(t.name)){var i=Gn[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r},C.defineMode("null",(function(){return{token:function(e){e.skipToEnd()}}})),C.defineMIME("text/plain","null");var Gn=C.modeExtensions={};C.extendMode=function(e,t){oo(t,Gn.hasOwnProperty(e)?Gn[e]:Gn[e]={})},C.defineExtension=function(e,t){C.prototype[e]=t},C.defineDocExtension=function(e,t){ii.prototype[e]=t},C.defineOption=qn;var Xn=[];C.defineInitHook=function(e){Xn.push(e)};var $n=C.helpers={};C.registerHelper=function(e,t,n){$n.hasOwnProperty(e)||($n[e]=C[e]={_global:[]}),$n[e][t]=n},C.registerGlobalHelper=function(e,t,n,r){C.registerHelper(e,t,r),$n[e]._global.push({pred:n,val:r})};var Jn=C.copyState=function(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n},Yn=C.startState=function(e,t,n){return!e.startState||e.startState(t,n)};C.innerMode=function(e,t){for(;e.innerMode;){var n=e.innerMode(t);if(!n||n.mode==e)break;t=n.state,e=n.mode}return n||{mode:e,state:t}};var Kn=C.commands={selectAll:function(e){e.setSelection(fe(e.firstLine(),0),fe(e.lastLine()),Gi)},singleSelection:function(e){e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Gi)},killLine:function(e){Rn(e,(function(t){if(t.empty()){var n=ui(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:fe(t.head.line+1,0)}:{from:t.head,to:fe(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){Rn(e,(function(t){return{from:fe(t.from().line,0),to:xe(e.doc,fe(t.to().line+1,0))}}))},delLineLeft:function(e){Rn(e,(function(e){return{from:fe(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){Rn(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){Rn(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){e.undo()},redo:function(e){e.redo()},undoSelection:function(e){e.undoSelection()},redoSelection:function(e){e.redoSelection()},goDocStart:function(e){e.extendSelection(fe(e.firstLine(),0))},goDocEnd:function(e){e.extendSelection(fe(e.lastLine()))},goLineStart:function(e){e.extendSelectionsBy((function(t){return qo(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){e.extendSelectionsBy((function(t){return Bo(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){e.extendSelectionsBy((function(t){return function(e,t){for(var n,r=ui(e.doc,t);n=_r(r);)r=n.find(1,!0).line,t=null;var i=vi(r),o=i?i[0].level%2?Wo(r):zo(r):r.text.length;return fe(null==t?hi(r):t,o)}(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){e.extendSelectionsBy((function(t){var n=e.charCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),$i)},goLineLeft:function(e){e.extendSelectionsBy((function(t){var n=e.charCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),$i)},goLineLeftSmart:function(e){e.extendSelectionsBy((function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?Bo(e,t.head):r}),$i)},goLineUp:function(e){e.moveV(-1,"line")},goLineDown:function(e){e.moveV(1,"line")},goPageUp:function(e){e.moveV(-1,"page")},goPageDown:function(e){e.moveV(1,"page")},goCharLeft:function(e){e.moveH(-1,"char")},goCharRight:function(e){e.moveH(1,"char")},goColumnLeft:function(e){e.moveH(-1,"column")},goColumnRight:function(e){e.moveH(1,"column")},goWordLeft:function(e){e.moveH(-1,"word")},goGroupRight:function(e){e.moveH(1,"group")},goGroupLeft:function(e){e.moveH(-1,"group")},goWordRight:function(e){e.moveH(1,"word")},delCharBefore:function(e){e.deleteH(-1,"char")},delCharAfter:function(e){e.deleteH(1,"char")},delWordBefore:function(e){e.deleteH(-1,"word")},delWordAfter:function(e){e.deleteH(1,"word")},delGroupBefore:function(e){e.deleteH(-1,"group")},delGroupAfter:function(e){e.deleteH(1,"group")},indentAuto:function(e){e.indentSelection("smart")},indentMore:function(e){e.indentSelection("add")},indentLess:function(e){e.indentSelection("subtract")},insertTab:function(e){e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=Yi(e.getLine(o.line),o.ch,r);t.push(new Array(r-a%r+1).join(" "))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){kt(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++){var i=t[r].head,o=ui(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new fe(i.line,i.ch-1)),i.ch>0)i=new fe(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),fe(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=ui(e.doc,i.line-1).text;a&&e.replaceRange(o.charAt(0)+"\n"+a.charAt(a.length-1),fe(i.line-1,a.length-1),fe(i.line,1),"+transpose")}n.push(new me(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){kt(e,(function(){for(var t=e.listSelections().length,n=0;n<t;n++){var r=e.listSelections()[n];e.replaceRange("\n",r.anchor,r.head,"+input"),e.indentLine(r.from().line+1,null,!0),En(e)}}))},toggleOverwrite:function(e){e.toggleOverwrite()}},Qn=C.keyMap={};function Zn(e){for(var t,n,r,i,o=e.split(/-(?!$)/),a=(e=o[o.length-1],0);a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}Qn.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Qn.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Qn.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars"},Qn.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Qn.default=g?Qn.macDefault:Qn.pcDefault,C.normalizeKeyMap=function(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=ro(n.split(" "),Zn),o=0;o<i.length;o++){var a,s;o==i.length-1?(s=n,a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var u in t)e[u]=t[u];return e};var er=C.lookupKey=function(e,t,n,r){var i=(t=rr(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return er(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=er(e,t.fallthrough[o],n,r);if(a)return a}}},tr=C.isModifierKey=function(e){var t="string"==typeof e?e:Ro[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t},nr=C.keyName=function(e,t){if(l&&34==e.keyCode&&e.char)return!1;var n=Ro[e.keyCode],r=n;return null!=r&&!e.altGraphKey&&(e.altKey&&"Alt"!=n&&(r="Alt-"+r),(y?e.metaKey:e.ctrlKey)&&"Ctrl"!=n&&(r="Ctrl-"+r),(y?e.ctrlKey:e.metaKey)&&"Cmd"!=n&&(r="Cmd-"+r),!t&&e.shiftKey&&"Shift"!=n&&(r="Shift-"+r),r)};function rr(e){return"string"==typeof e?Qn[e]:e}C.fromTextArea=function(e,t){if((t=t?oo(t):{}).value=e.value,!t.tabindex&&e.tabindex&&(t.tabindex=e.tabindex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=bo();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}if(e.form&&(Ii(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var i=e.form,o=i.submit;try{var a=i.submit=function(){r(),i.submit=o,i.submit(),i.submit=a}}catch(e){}}t.finishInit=function(t){t.save=r,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,r(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(Oi(e.form,"submit",r),"function"==typeof e.form.submit&&(e.form.submit=o))}},e.style.display="none";var s=C((function(t){e.parentNode.insertBefore(t,e.nextSibling)}),t);return s};var ir=C.StringStream=function(e,t){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0};ir.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},eat:function(e){var t=this.string.charAt(this.pos);if("string"==typeof e)var n=t==e;else n=t&&(e.test?e.test(t):e(t));if(n)return++this.pos,t},eatWhile:function(e){for(var t=this.pos;this.eat(e););return this.pos>t},eatSpace:function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},skipToEnd:function(){this.pos=this.string.length},skipTo:function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},backUp:function(e){this.pos-=e},column:function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Yi(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Yi(this.string,this.lineStart,this.tabSize):0)},indentation:function(){return Yi(this.string,null,this.tabSize)-(this.lineStart?Yi(this.string,this.lineStart,this.tabSize):0)},match:function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}}};var or=C.TextMarker=function(e,t){this.lines=[],this.type=t,this.doc=e};Bi(or),or.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&bt(e),qi(this,"clear")){var n=this.find();n&&Hi(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=dr(a.markedSpans,this);e&&!this.collapsed?Et(e,hi(a),"text"):e&&(null!=s.to&&(i=hi(a)),null!=s.from&&(r=hi(a))),a.markedSpans=hr(a.markedSpans,s),null==s.from&&this.collapsed&&!Ar(this.doc,a)&&e&&di(a,gt(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(o=0;o<this.lines.length;++o){var l=kr(this.lines[o]),u=M(l);u>e.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Mt(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Me(e.doc)),e&&Hi(e,"markerCleared",e,this),t&&wt(e),this.parent&&this.parent.clear()}},or.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=dr(o.markedSpans,this);if(null!=a.from&&(n=fe(t?o:hi(o),a.from),-1==e))return n;if(null!=a.to&&(r=fe(t?o:hi(o),a.to),1==e))return r}return n&&{from:n,to:r}},or.prototype.changed=function(){var e=this.find(-1,!0),t=this,n=this.doc.cm;e&&n&&kt(n,(function(){var r=e.line,i=hi(e.line),o=Ke(n,i);if(o&&(nt(o),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!Ar(t.doc,r)&&null!=t.height){var a=t.height;t.height=null;var s=Er(t)-a;s&&di(r,r.height+s)}}))},or.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=no(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},or.prototype.detachLine=function(e){if(this.lines.splice(no(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}};var ar=0;function sr(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=oo(r)).shared=!1;var o=[sr(e,t,n,r,i)],a=o[0],s=r.widgetNode;return si(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(sr(e,xe(e,t),xe(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=eo(o)})),new lr(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return Dt(e.cm,sr)(e,t,n,r,i);var o=new or(e,i),a=de(t,n);if(r&&oo(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=go("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Tr(e,t.line,t,n,o)||t.line!=n.line&&Tr(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");x=!0}o.addToHistory&&wi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,(function(e){u&&o.collapsed&&!u.options.lineWrapping&&kr(e)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&di(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new fr(o,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){Ar(e,t)&&di(t,0)})),o.clearOnEnter&&Ii(o,"beforeCursorEnter",(function(){o.clear()})),o.readOnly&&(w=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++ar,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)Mt(u,t.line,n.line+1);else if(o.className||o.title||o.startStyle||o.endStyle||o.css)for(var c=t.line;c<=n.line;c++)Et(u,c,"text");o.atomic&&Me(u.doc),Hi(u,"markerAdded",u,o)}return o}var lr=C.SharedTextMarker=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function ur(e){return e.findMarks(fe(e.first,0),e.clipPos(fe(e.lastLine())),(function(e){return e.parent}))}function cr(e){for(var t=0;t<e.length;t++){var n=e[t],r=[n.primary.doc];si(n.primary.doc,(function(e){r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==no(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}}}function fr(e,t,n){this.marker=e,this.from=t,this.to=n}function dr(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function hr(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function pr(e,t){if(t.full)return null;var n=Ce(e,t.from.line)&&ui(e,t.from.line).markedSpans,r=Ce(e,t.to.line)&&ui(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==de(t.from,t.to),s=function(e,t,n){if(e)for(var r,i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new fr(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(e,t,n){if(e)for(var r,i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new fr(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),u=1==t.text.length,c=eo(t.text).length+(u?i:0);if(s)for(var f=0;f<s.length;++f)null==(d=s[f]).to&&((h=dr(l,d.marker))?u&&(d.to=null==h.to?null:h.to+c):d.to=i);if(l)for(f=0;f<l.length;++f){var d,h;null!=(d=l[f]).to&&(d.to+=c),null==d.from?(h=dr(s,d.marker))||(d.from=c,u&&(s||(s=[])).push(d)):(d.from+=c,u&&(s||(s=[])).push(d))}s&&(s=gr(s)),l&&l!=s&&(l=gr(l));var p=[s];if(!u){var g,v=t.text.length-2;if(v>0&&s)for(f=0;f<s.length;++f)null==s[f].to&&(g||(g=[])).push(new fr(s[f].marker,null,null));for(f=0;f<v;++f)p.push(g);p.push(l)}return p}function gr(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function vr(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=0,i=[];r<t.text.length;++r)i.push(Si(n[r]));return i}(e,t),r=pr(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function mr(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function yr(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function br(e){return e.inclusiveLeft?-1:0}function wr(e){return e.inclusiveRight?1:0}function xr(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=de(r.from,i.from)||br(e)-br(t);if(o)return-o;var a=de(r.to,i.to)||wr(e)-wr(t);return a||t.id-e.id}function Cr(e,t){var n,r=x&&e.markedSpans;if(r)for(var i,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||xr(n,i.marker)<0)&&(n=i.marker);return n}function Sr(e){return Cr(e,!0)}function _r(e){return Cr(e,!1)}function Tr(e,t,n,r,i){var o=ui(e,t),a=x&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var u=l.marker.find(0),c=de(u.from,n)||br(l.marker)-br(i),f=de(u.to,r)||wr(l.marker)-wr(i);if(!(c>=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(de(u.to,n)>0||l.marker.inclusiveRight&&i.inclusiveLeft)||c>=0&&(de(u.from,r)<0||l.marker.inclusiveLeft&&i.inclusiveRight)))return!0}}}function kr(e){for(var t;t=Sr(e);)e=t.find(-1,!0).line;return e}function Dr(e,t){var n=ui(e,t),r=kr(n);return n==r?t:hi(r)}function Lr(e,t){if(t>e.lastLine())return t;var n,r=ui(e,t);if(!Ar(e,r))return t;for(;n=_r(r);)r=n.find(1,!0).line;return hi(r)+1}function Ar(e,t){var n=x&&t.markedSpans;if(n)for(var r,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&Nr(e,t,r))return!0}}function Nr(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return Nr(e,r.line,dr(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&Nr(e,t,i))return!0}Bi(lr),lr.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Hi(this,"clear")}},lr.prototype.find=function(e,t){return this.primary.find(e,t)};var jr=C.LineWidget=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.cm=e,this.node=t};function Mr(e,t,n){gi(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Mn(e,null,n)}function Er(e){if(null!=e.height)return e.height;if(!yo(document.body,e.node)){var t="position: relative;";e.coverGutter&&(t+="margin-left: -"+e.cm.display.gutters.offsetWidth+"px;"),e.noHScroll&&(t+="width: "+e.cm.display.wrapper.clientWidth+"px;"),mo(e.cm.display.measure,go("div",[e.node],null,t))}return e.height=e.node.offsetHeight}Bi(jr),jr.prototype.clear=function(){var e=this.cm,t=this.line.widgets,n=this.line,r=hi(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=Er(this);kt(e,(function(){Mr(e,n,-o),Et(e,r,"widget"),di(n,Math.max(0,n.height-o))}))}},jr.prototype.changed=function(){var e=this.height,t=this.cm,n=this.line;this.height=null;var r=Er(this)-e;r&&kt(t,(function(){t.curOp.forceUpdate=!0,Mr(t,n,r),di(n,n.height+r)}))};var Ir=C.Line=function(e,t,n){this.text=e,yr(this,t),this.height=n?n(this):1};function Or(e){e.parent=null,mr(e)}function Pr(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Rr(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=C.innerMode(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function Hr(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=C.innerMode(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}function Fr(e,t,n,r){function i(e){return{start:f.start,end:f.pos,string:f.current(),type:o||null,state:e?Jn(a.mode,c):c}}var o,a=e.doc,s=a.mode;t=xe(a,t);var l,u=ui(a,t.line),c=Be(e,t.line,n),f=new ir(u.text,e.options.tabSize);for(r&&(l=[]);(r||f.pos<t.ch)&&!f.eol();)f.start=f.pos,o=Hr(s,f,c),r&&l.push(i(!0));return r?l:i()}function Wr(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,u=0,c=null,f=new ir(t,e.options.tabSize),d=e.options.addModeClass&&[null];for(""==t&&Pr(Rr(n,r),o);!f.eol();){if(f.pos>e.options.maxHighlightLength?(s=!1,a&&Br(e,t,r,f.pos),f.pos=t.length,l=null):l=Pr(Hr(n,f,r,d),o),d){var h=d[0].name;h&&(l="m-"+(l?h+" "+l:h))}if(!s||c!=l){for(;u<f.start;)i(u=Math.min(f.start,u+5e4),c);c=l}f.start=f.pos}for(;u<f.pos;){var p=Math.min(f.pos,u+5e4);i(p,c),u=p}}function zr(e,t,n,r){var i=[e.state.modeGen],o={};Wr(e,t.text,e.doc.mode,n,(function(e,t){i.push(e,t)}),o,r);for(var a=0;a<e.state.overlays.length;++a){var s=e.state.overlays[a],l=1,u=0;Wr(e,t.text,s.mode,!0,(function(e,t){for(var n=l;u<e;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"cm-overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"cm-overlay "+t}}),o)}return{styles:i,classes:o.bgClass||o.textClass?o:null}}function qr(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=zr(e,t,t.stateAfter=Be(e,hi(t)));t.styles=r.styles,r.classes?t.styleClasses=r.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.frontier&&e.doc.frontier++}return t.styles}function Br(e,t,n,r){var i=e.doc.mode,o=new ir(t,e.options.tabSize);for(o.start=o.pos=r||0,""==t&&Rr(i,n);!o.eol()&&o.pos<=e.options.maxHighlightLength;)Hr(i,o,n),o.start=o.pos}Bi(Ir),Ir.prototype.lineNo=function(){return hi(this)};var Ur={},Vr={};function Gr(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Vr:Ur;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Xr(e,t){var n=go("span",null,null,o?"padding-right: .1px":null),i={pre:go("pre",[n]),content:n,col:0,pos:0,cm:e};t.measure={};for(var a=0;a<=(t.rest?t.rest.length:0);a++){var s,l=a?t.rest[a-1]:t.line;i.pos=0,i.addToken=$r,(r||o)&&e.getOption("lineWrapping")&&(i.addToken=Jr(i.addToken)),No(e.display.measure)&&(s=vi(l))&&(i.addToken=Yr(i.addToken,s)),i.map=[],Qr(l,i,qr(e,l,t!=e.display.externalMeasured&&hi(l))),l.styleClasses&&(l.styleClasses.bgClass&&(i.bgClass=So(l.styleClasses.bgClass,i.bgClass||"")),l.styleClasses.textClass&&(i.textClass=So(l.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(Ao(e.display.measure))),0==a?(t.measure.map=i.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(i.map),(t.measure.caches||(t.measure.caches=[])).push({}))}return o&&/\bcm-tab\b/.test(i.content.lastChild.className)&&(i.content.className="cm-tab-wrap-hack"),Pi(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=So(i.pre.className,i.textClass||"")),i}function $r(e,t,n,o,a,s,l){if(t){var u=e.cm.options.specialChars,c=!1;if(u.test(t)){m=document.createDocumentFragment();for(var f=0;;){u.lastIndex=f;var d=u.exec(t),h=d?d.index-f:t.length-f;if(h){var p=document.createTextNode(t.slice(f,f+h));r&&i<9?m.appendChild(go("span",[p])):m.appendChild(p),e.map.push(e.pos,e.pos+h,p),e.col+=h,e.pos+=h}if(!d)break;if(f+=h+1,"\t"==d[0]){var g=e.cm.options.tabSize,v=g-e.col%g;(p=m.appendChild(go("span",Zi(v),"cm-tab"))).setAttribute("role","presentation"),e.col+=v}else p=e.cm.options.specialCharPlaceholder(d[0]),r&&i<9?m.appendChild(go("span",[p])):m.appendChild(p),e.col+=1;e.map.push(e.pos,e.pos+1,p),e.pos++}}else{e.col+=t.length;var m=document.createTextNode(t);e.map.push(e.pos,e.pos+t.length,m),r&&i<9&&(c=!0),e.pos+=t.length}if(n||o||a||c||l){var y=n||"";o&&(y+=o),a&&(y+=a);var b=go("span",[m],y,l);return s&&(b.title=s),e.content.appendChild(b)}e.content.appendChild(m)}}function Jr(e){function t(e){for(var t=" ",n=0;n<e.length-2;++n)t+=n%2?" ":" ";return t+=" "}return function(n,r,i,o,a,s){e(n,r.replace(/ {3,}/g,t),i,o,a,s)}}function Yr(e,t){return function(n,r,i,o,a,s){i=i?i+" cm-force-border":"cm-force-border";for(var l=n.pos,u=l+r.length;;){for(var c=0;c<t.length;c++){var f=t[c];if(f.to>l&&f.from<=l)break}if(f.to>=u)return e(n,r,i,o,a,s);e(n,r.slice(0,f.to-l),i,o,null,s),o=null,r=r.slice(f.to-l),l=f.to}}}function Kr(e,t,n,r){var i=!r&&n.widgetNode;i&&(e.map.push(e.pos,e.pos+t,i),e.content.appendChild(i)),e.pos+=t}function Qr(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,f,d,h=i.length,p=0,g=(_=1,""),v=0;;){if(v==p){l=u=c=f=s="",d=null,v=1/0;for(var m=[],y=0;y<r.length;++y){var b=r[y],w=b.marker;b.from<=p&&(null==b.to||b.to>p)?(null!=b.to&&v>b.to&&(v=b.to,u=""),w.className&&(l+=" "+w.className),w.css&&(s=w.css),w.startStyle&&b.from==p&&(c+=" "+w.startStyle),w.endStyle&&b.to==v&&(u+=" "+w.endStyle),w.title&&!f&&(f=w.title),w.collapsed&&(!d||xr(d.marker,w)<0)&&(d=b)):b.from>p&&v>b.from&&(v=b.from),"bookmark"==w.type&&b.from==p&&w.widgetNode&&m.push(w)}if(d&&(d.from||0)==p&&(Kr(t,(null==d.to?h+1:d.to)-p,d.marker,null==d.from),null==d.to))return;if(!d&&m.length)for(y=0;y<m.length;++y)Kr(t,0,m[y])}if(p>=h)break;for(var x=Math.min(h,v);;){if(g){var C=p+g.length;if(!d){var S=C>x?g.slice(0,x-p):g;t.addToken(t,S,a?a+l:l,c,p+S.length==v?u:"",f,s)}if(C>=x){g=g.slice(x-p),p=x;break}p=C,c=""}g=i.slice(o,o=n[_++]),a=Gr(n[_++],t.cm.options)}}else for(var _=1;_<n.length;_+=2)t.addToken(t,i.slice(o,o=n[_]),Gr(n[_+1],t.cm.options))}function Zr(e,t){return 0==t.from.ch&&0==t.to.ch&&""==eo(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ei(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){!function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),mr(e),yr(e,n);var i=r?r(e):1;i!=e.height&&di(e,i)}(e,n,i,r),Hi(e,"change",e,t)}function a(e,t){for(var n=e,o=[];n<t;++n)o.push(new Ir(u[n],i(n),r));return o}var s=t.from,l=t.to,u=t.text,c=ui(e,s.line),f=ui(e,l.line),d=eo(u),h=i(u.length-1),p=l.line-s.line;if(t.full)e.insert(0,a(0,u.length)),e.remove(u.length,e.size-u.length);else if(Zr(e,t)){var g=a(0,u.length-1);o(f,f.text,h),p&&e.remove(s.line,p),g.length&&e.insert(s.line,g)}else c==f?1==u.length?o(c,c.text.slice(0,s.ch)+d+c.text.slice(l.ch),h):((g=a(1,u.length-1)).push(new Ir(d+c.text.slice(l.ch),h,r)),o(c,c.text.slice(0,s.ch)+u[0],i(0)),e.insert(s.line+1,g)):1==u.length?(o(c,c.text.slice(0,s.ch)+u[0]+f.text.slice(l.ch),i(0)),e.remove(s.line+1,p)):(o(c,c.text.slice(0,s.ch)+u[0],i(0)),o(f,d+f.text.slice(l.ch),h),g=a(1,u.length-1),p>1&&e.remove(s.line+1,p-1),e.insert(s.line+1,g));Hi(e,"change",e,t)}function ti(e){this.lines=e,this.parent=null;for(var t=0,n=0;t<e.length;++t)e[t].parent=this,n+=e[t].height;this.height=n}function ni(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}ti.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Or(i),Hi(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},ni.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof ti))){var s=[];this.collapse(s),this.children=[new ti(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(;i.lines.length>50;){var a=new ti(i.lines.splice(i.lines.length-25,25));i.height-=a.height,this.children.splice(r+1,0,a),a.parent=this}this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new ni(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=no(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new ni(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var ri=0,ii=C.Doc=function(e,t,n){if(!(this instanceof ii))return new ii(e,t,n);null==n&&(n=0),ni.call(this,[new ti([new Ir("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.frontier=n;var r=fe(n,0);this.sel=be(r),this.history=new mi(null),this.id=++ri,this.modeOption=t,"string"==typeof e&&(e=Eo(e)),ei(this,{from:r,to:r,text:e}),Ae(this,be(r),Gi)};ii.prototype=io(ni.prototype,{constructor:ii,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=fi(this,this.first,this.first+this.size);return!1===e?t:t.join(e||"\n")},setValue:At((function(e){var t=fe(this.first,0),n=this.first+this.size-1;Tn(this,{from:t,to:fe(n,ui(this,n).text.length),text:Eo(e),origin:"setValue",full:!0},!0),Ae(this,be(t))})),replaceRange:function(e,t,n,r){Nn(this,e,t=xe(this,t),n=n?xe(this,n):t,r)},getRange:function(e,t,n){var r=ci(this,xe(this,e),xe(this,t));return!1===n?r:r.join(n||"\n")},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Ce(this,e))return ui(this,e)},getLineNumber:function(e){return hi(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=ui(this,e)),kr(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return xe(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:At((function(e,t,n){De(this,xe(this,"number"==typeof e?fe(e,t||0):e),null,n)})),setSelection:At((function(e,t,n){De(this,xe(this,e),xe(this,t||e),n)})),extendSelection:At((function(e,t,n){_e(this,xe(this,e),t&&xe(this,t),n)})),extendSelections:At((function(e,t){Te(this,function(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=xe(e,t[r]);return n}(this,e))})),extendSelectionsBy:At((function(e,t){Te(this,ro(this.sel.ranges,e),t)})),setSelections:At((function(e,t,n){if(e.length){for(var r=0,i=[];r<e.length;r++)i[r]=new me(xe(this,e[r].anchor),xe(this,e[r].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Ae(this,ye(i,t),n)}})),addSelection:At((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new me(xe(this,e),xe(this,t||e))),Ae(this,ye(r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=ci(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||"\n")},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=ci(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||"\n")),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:At((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:Eo(e[o]),origin:n}}var s=t&&"end"!=t&&function(e,t,n){for(var r=[],i=fe(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=Sn(s.from,i,o),u=Sn(wn(s),i,o);if(i=s.to,o=u,"around"==n){var c=e.sel.ranges[a],f=de(c.head,c.anchor)<0;r[a]=new me(f?u:l,f?l:u)}else r[a]=new me(l,l)}return new ve(r,e.sel.primIndex)}(this,r,t);for(o=r.length-1;o>=0;o--)Tn(this,r[o]);s?Le(this,s):this.cm&&En(this.cm)})),undo:At((function(){Dn(this,"undo")})),redo:At((function(){Dn(this,"redo")})),undoSelection:At((function(){Dn(this,"undo",!0)})),redoSelection:At((function(){Dn(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(r=0;r<e.undone.length;r++)e.undone[r].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){this.history=new mi(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:_i(this.history.done),undone:_i(this.history.undone)}},setHistory:function(e){var t=this.history=new mi(this.history.maxGeneration);t.done=_i(e.done.slice(0),null,!0),t.undone=_i(e.undone.slice(0),null,!0)},addLineClass:At((function(e,t,n){return Pn(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(wo(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:At((function(e,t,n){return Pn(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(wo(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),markText:function(e,t,n){return sr(this,xe(this,e),xe(this,t),n,"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared};return sr(this,e=xe(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=ui(this,(e=xe(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=xe(this,e),t=xe(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];i==e.line&&e.ch>l.to||null==l.from&&i!=e.line||i==t.line&&l.from>t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first;return this.iter((function(r){var i=r.text.length+1;if(i>e)return t=e,!0;e-=i,++n})),xe(this,fe(n,t))},indexFromPos:function(e){var t=(e=xe(this,e)).ch;return e.line<this.first||e.ch<0?0:(this.iter(this.first,e.line,(function(e){t+=e.text.length+1})),t)},copy:function(e){var t=new ii(fi(this,this.first,this.first+this.size),this.modeOption,this.first);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new ii(fi(this,t,n),e.mode||this.modeOption,t);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(de(o,a)){var s=sr(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,ur(this)),r},unlinkDoc:function(e){if(e instanceof C&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),cr(ur(this));break}if(e.history==this.history){var n=[e.id];si(e,(function(e){n.push(e.id)}),!0),e.history=new mi(null),e.history.done=_i(this.history.done,n),e.history.undone=_i(this.history.undone,n)}},iterLinkedDocs:function(e){si(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm}}),ii.prototype.eachLine=ii.prototype.iter;var oi="iter insert remove copy getEditor".split(" ");for(var ai in ii.prototype)ii.prototype.hasOwnProperty(ai)&&no(oi,ai)<0&&(C.prototype[ai]=function(e){return function(){return e.apply(this.doc,arguments)}}(ii.prototype[ai]));function si(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),e(s.doc,r,l))}}}(e,null,!0)}function li(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,D(e),_(e),e.options.lineWrapping||E(e),e.options.mode=t.modeOption,Mt(e)}function ui(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function ci(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function fi(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function di(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function hi(e){if(null==e.parent)return null;for(var t=e.parent,n=no(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function pi(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(r=0;r<e.lines.length;++r){var a=e.lines[r].height;if(t<a)break;t-=a}return n+r}function gi(e){for(var t=0,n=(e=kr(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(r=0;r<o.children.length;++r){var a=o.children[r];if(a==n)break;t+=a.height}return t}function vi(e){var t=e.order;return null==t&&(t=e.order=Jo(e.text)),t}function mi(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function yi(e,t){var n={from:he(t.from),to:wn(t),text:ci(e,t.from,t.to)};return Ci(e,n,t.from.line,t.to.line+1),si(e,(function(e){Ci(e,n,t.from.line,t.to.line+1)}),!0),n}function bi(e){for(;e.length&&eo(e).ranges;)e.pop()}function wi(e,t,n,r){var i=e.history;i.undone.length=0;var o,a=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&i.lastModTime>a-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(bi(e.done),eo(e.done)):e.done.length&&!eo(e.done).ranges?eo(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),eo(e.done)):void 0}(i,i.lastOp==r))){var s=eo(o.changes);0==de(t.from,t.to)&&0==de(t.from,s.to)?s.to=wn(t):o.changes.push(yi(e,t))}else{var l=eo(i.done);for(l&&l.ranges||xi(e.sel,i.done),o={changes:[yi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=a,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,s||Pi(e,"historyAdded")}function xi(e,t){var n=eo(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ci(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Si(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function _i(e,t,n){for(var r=0,i=[];r<e.length;++r){var o=e[r];if(o.ranges)i.push(n?ve.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];i.push({changes:s});for(var l=0;l<a.length;++l){var u,c=a[l];if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var f in c)(u=f.match(/^spans_(\d+)$/))&&no(t,Number(u[1]))>-1&&(eo(s)[f]=c[f],delete c[f])}}}return i}function Ti(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function ki(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)Ti(o.ranges[s].anchor,t,n,r),Ti(o.ranges[s].head,t,n,r)}else{for(s=0;s<o.changes.length;++s){var l=o.changes[s];if(n<l.from.line)l.from=fe(l.from.line+r,l.from.ch),l.to=fe(l.to.line+r,l.to.ch);else if(t<=l.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function Di(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;ki(e.done,n,r,i),ki(e.undone,n,r,i)}Bi(ii);var Li=C.e_preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},Ai=C.e_stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0};function Ni(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}var ji=C.e_stop=function(e){Li(e),Ai(e)};function Mi(e){return e.target||e.srcElement}function Ei(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),g&&e.ctrlKey&&1==t&&(t=3),t}var Ii=C.on=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});(r[t]||(r[t]=[])).push(n)}},Oi=C.off=function(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers&&e._handlers[t];if(!r)return;for(var i=0;i<r.length;++i)if(r[i]==n){r.splice(i,1);break}}},Pi=C.signal=function(e,t){var n=e._handlers&&e._handlers[t];if(n)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)},Ri=null;function Hi(e,t){var n=e._handlers&&e._handlers[t];if(n){var r,i=Array.prototype.slice.call(arguments,2);mt?r=mt.delayedCallbacks:Ri?r=Ri:(r=Ri=[],setTimeout(Fi,0));for(var o=0;o<n.length;++o)r.push(a(n[o]))}function a(e){return function(){e.apply(null,i)}}}function Fi(){var e=Ri;Ri=null;for(var t=0;t<e.length;++t)e[t]()}function Wi(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Pi(e,n||t.type,e,t),Ni(t)||t.codemirrorIgnore}function zi(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==no(n,t[r])&&n.push(t[r])}function qi(e,t){var n=e._handlers&&e._handlers[t];return n&&n.length>0}function Bi(e){e.prototype.on=function(e,t){Ii(this,e,t)},e.prototype.off=function(e,t){Oi(this,e,t)}}var Ui=30,Vi=C.Pass={toString:function(){return"CodeMirror.Pass"}},Gi={scroll:!1},Xi={origin:"*mouse"},$i={origin:"+move"};function Ji(){this.id=null}Ji.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var Yi=C.countColumn=function(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}};function Ki(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var Qi=[""];function Zi(e){for(;Qi.length<=e;)Qi.push(eo(Qi)+" ");return Qi[e]}function eo(e){return e[e.length-1]}var to=function(e){e.select()};function no(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}function ro(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function io(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&oo(t,n),n}function oo(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function ao(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}h?to=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:r&&(to=function(e){try{e.select()}catch(e){}});var so=/[\u00df\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,lo=C.isWordChar=function(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||so.test(e))};function uo(e,t){return t?!!(t.source.indexOf("\\w")>-1&&lo(e))||t.test(e):lo(e)}function co(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var fo,ho=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function po(e){return e.charCodeAt(0)>=768&&ho.test(e)}function go(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function vo(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function mo(e,t){return vo(e).appendChild(t)}fo=document.createRange?function(e,t,n){var r=document.createRange();return r.setEnd(e,n),r.setStart(e,t),r}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var yo=C.contains=function(e,t){if(e.contains)return e.contains(t);for(;t=t.parentNode;)if(11==t.nodeType&&(t=t.host),t==e)return!0};function bo(){return document.activeElement}function wo(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}r&&i<11&&(bo=function(){try{return document.activeElement}catch(e){return document.body}});var xo=C.rmClass=function(e,t){var n=e.className,r=wo(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}},Co=C.addClass=function(e,t){var n=e.className;wo(t).test(n)||(e.className+=(n?" ":"")+t)};function So(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!wo(n[r]).test(t)&&(t+=" "+n[r]);return t}function _o(e){if(document.body.getElementsByClassName)for(var t=document.body.getElementsByClassName("CodeMirror"),n=0;n<t.length;n++){var r=t[n].CodeMirror;r&&e(r)}}var To,ko,Do=!1,Lo=function(){if(r&&i<9)return!1;var e=go("div");return"draggable"in e||"dragDrop"in e}();function Ao(e){if(null==To){var t=go("span","​");mo(e,go("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(To=t.offsetWidth<=1&&t.offsetHeight>2&&!(r&&i<8))}return To?go("span","​"):go("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px")}function No(e){if(null!=ko)return ko;var t=mo(e,document.createTextNode("AخA")),n=fo(t,0,1).getBoundingClientRect();if(!n||n.left==n.right)return!1;var r=fo(t,1,2).getBoundingClientRect();return ko=r.right-n.right<3}var jo,Mo,Eo=C.splitLines=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Io=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){try{var t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Oo="oncopy"in(jo=go("div"))||(jo.setAttribute("oncopy","return;"),"function"==typeof jo.oncopy),Po=null,Ro={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",107:"=",109:"-",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};function Ho(e){return e.level%2?e.to:e.from}function Fo(e){return e.level%2?e.from:e.to}function Wo(e){var t=vi(e);return t?Ho(t[0]):0}function zo(e){var t=vi(e);return t?Fo(eo(t)):e.text.length}function qo(e,t){var n=ui(e.doc,t),r=kr(n);r!=n&&(t=hi(r));var i=vi(r),o=i?i[0].level%2?zo(r):Wo(r):0;return fe(t,o)}function Bo(e,t){var n=qo(e,t.line),r=ui(e.doc,n.line),i=vi(r);if(!i||0==i[0].level){var o=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return fe(n.line,a?0:o)}return n}function Uo(e,t,n){var r=e[0].level;return t==r||n!=r&&t<n}function Vo(e,t){Mo=null;for(var n,r=0;r<e.length;++r){var i=e[r];if(i.from<t&&i.to>t)return r;if(i.from==t||i.to==t){if(null!=n)return Uo(e,i.level,e[n].level)?(i.from!=i.to&&(Mo=n),r):(i.from!=i.to&&(Mo=r),n);n=r}}return n}function Go(e,t,n,r){if(!r)return t+n;do{t+=n}while(t>0&&po(e.text.charAt(t)));return t}function Xo(e,t,n,r){var i=vi(e);if(!i)return $o(e,t,n,r);for(var o=Vo(i,t),a=i[o],s=Go(e,t,a.level%2?-n:n,r);;){if(s>a.from&&s<a.to)return s;if(s==a.from||s==a.to)return Vo(i,s)==o?s:n>0==(a=i[o+=n]).level%2?a.to:a.from;if(!(a=i[o+=n]))return null;s=n>0==a.level%2?Go(e,a.to,-1,r):Go(e,a.from,1,r)}}function $o(e,t,n,r){var i=t+n;if(r)for(;i>0&&po(e.text.charAt(i));)i+=n;return i<0||i>e.text.length?null:i}C.keyNames=Ro,function(){for(var e=0;e<10;e++)Ro[e+48]=Ro[e+96]=String(e);for(e=65;e<=90;e++)Ro[e]=String.fromCharCode(e);for(e=1;e<=12;e++)Ro[e+111]=Ro[e+63235]="F"+e}();var Jo=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(a){if(!e.test(a))return!1;for(var s,l=a.length,u=[],c=0;c<l;++c)u.push(v=(s=a.charCodeAt(c))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(s):1424<=s&&s<=1524?"R":1536<=s&&s<=1773?"rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmm".charAt(s-1536):1774<=s&&s<=2220?"r":8192<=s&&s<=8203?"w":8204==s?"b":"L");c=0;for(var f="L";c<l;++c)"m"==(v=u[c])?u[c]=f:f=v;c=0;for(var d="L";c<l;++c)"1"==(v=u[c])&&"r"==d?u[c]="n":n.test(v)&&(d=v,"r"==v&&(u[c]="R"));for(c=1,f=u[0];c<l-1;++c)"+"==(v=u[c])&&"1"==f&&"1"==u[c+1]?u[c]="1":","!=v||f!=u[c+1]||"1"!=f&&"n"!=f||(u[c]=f),f=v;for(c=0;c<l;++c)if(","==(v=u[c]))u[c]="N";else if("%"==v){for(var h=c+1;h<l&&"%"==u[h];++h);for(var p=c&&"!"==u[c-1]||h<l&&"1"==u[h]?"1":"N",g=c;g<h;++g)u[g]=p;c=h-1}for(c=0,d="L";c<l;++c){var v=u[c];"L"==d&&"1"==v?u[c]="L":n.test(v)&&(d=v)}for(c=0;c<l;++c)if(t.test(u[c])){for(h=c+1;h<l&&t.test(u[h]);++h);var m="L"==(c?u[c-1]:"L"),y="L"==(h<l?u[h]:"L");for(p=m||y?"L":"R",g=c;g<h;++g)u[g]=p;c=h-1}var b,w=[];for(c=0;c<l;)if(r.test(u[c])){var x=c;for(++c;c<l&&r.test(u[c]);++c);w.push(new o(0,x,c))}else{var C=c,S=w.length;for(++c;c<l&&"L"!=u[c];++c);for(g=C;g<c;)if(i.test(u[g])){C<g&&w.splice(S,0,new o(1,C,g));var _=g;for(++g;g<c&&i.test(u[g]);++g);w.splice(S,0,new o(2,_,g)),C=g}else++g;C<c&&w.splice(S,0,new o(1,C,c))}return 1==w[0].level&&(b=a.match(/^\s+/))&&(w[0].from=b[0].length,w.unshift(new o(0,0,b[0].length))),1==eo(w).level&&(b=a.match(/\s+$/))&&(eo(w).to-=b[0].length,w.push(new o(0,l-b[0].length,l))),w[0].level!=eo(w).level&&w.push(new o(w[0].level,l,l)),w}}();return C.version="4.13.0",C}))},{}],11:[function(e,t,n){var r;r=function(e){"use strict";e.defineMode("javascript",(function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,u=n.typescript,c=n.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("operator"),o={type:"atom",style:"atom"},a={if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:r,break:r,continue:r,new:r,delete:r,throw:r,debugger:r,var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:i,typeof:i,instanceof:i,true:o,false:o,null:o,undefined:o,NaN:o,Infinity:o,this:e("this"),module:e("module"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r};if(u){var s={type:"variable",style:"variable-3"},l={interface:e("interface"),extends:e("extends"),constructor:e("constructor"),public:e("public"),private:e("private"),protected:e("protected"),static:e("static"),string:s,number:s,bool:s,any:s};for(var c in l)a[c]=l[c]}return a}(),d=/[+\-*&%=<>!?|~^]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function p(e,t,n){return r=e,i=n,t}function g(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,i=!1;if(s&&"@"==e.peek()&&e.match(h))return t.tokenize=g,p("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=g),p("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return p("number","number");if("."==r&&e.match(".."))return p("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return p(r);if("="==r&&e.eat(">"))return p("=>","operator");if("0"==r&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),p("number","number");if(/\d/.test(r))return e.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),p("number","number");if("/"==r)return e.eat("*")?(t.tokenize=v,v(e,t)):e.eat("/")?(e.skipToEnd(),p("comment","comment")):"operator"==t.lastType||"keyword c"==t.lastType||"sof"==t.lastType||/^[\[{}\(,;:]$/.test(t.lastType)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/),p("regexp","string-2")):(e.eatWhile(d),p("operator","operator",e.current()));if("`"==r)return t.tokenize=m,m(e,t);if("#"==r)return e.skipToEnd(),p("error","error");if(d.test(r))return e.eatWhile(d),p("operator","operator",e.current());if(c.test(r)){e.eatWhile(c);var i=e.current(),o=f.propertyIsEnumerable(i)&&f[i];return o&&"."!=t.lastType?p(o.type,o.style,i):p("variable","variable",i)}}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=g;break}r="*"==n}return p("comment","comment")}function m(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=g;break}r=!r&&"\\"==n}return p("quasi","string-2",e.current())}function y(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){for(var r=0,i=!1,o=n-1;o>=0;--o){var a=e.string.charAt(o),s="([{}])".indexOf(a);if(s>=0&&s<3){if(!r){++o;break}if(0==--r)break}else if(s>=3&&s<6)++r;else if(c.test(a))i=!0;else{if(/["'\/]/.test(a))return;if(i&&!r){++o;break}}}i&&!r&&(t.fatArrowAt=o)}}var b={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function w(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function x(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}var C={state:null,column:null,marked:null,cc:null};function S(){for(var e=arguments.length-1;e>=0;e--)C.cc.push(arguments[e])}function _(){return S.apply(null,arguments),!0}function T(e){function t(t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}var r=C.state;if(r.context){if(C.marked="def",t(r.localVars))return;r.localVars={name:e,next:r.localVars}}else{if(t(r.globalVars))return;n.globalVars&&(r.globalVars={name:e,next:r.globalVars})}}var k={name:"this",next:{name:"arguments"}};function D(){C.state.context={prev:C.state.context,vars:C.state.localVars},C.state.localVars=k}function L(){C.state.localVars=C.state.context.vars,C.state.context=C.state.context.prev}function A(e,t){var n=function(){var n=C.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new w(r,C.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function N(){var e=C.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function j(e){return function t(n){return n==e?_():";"==e?S():_(t)}}function M(e,t){return"var"==e?_(A("vardef",t.length),ee,j(";"),N):"keyword a"==e?_(A("form"),E,M,N):"keyword b"==e?_(A("form"),M,N):"{"==e?_(A("}"),K,N):";"==e?_():"if"==e?("else"==C.state.lexical.info&&C.state.cc[C.state.cc.length-1]==N&&C.state.cc.pop()(),_(A("form"),E,M,N,oe)):"function"==e?_(fe):"for"==e?_(A("form"),ae,M,N):"variable"==e?_(A("stat"),U):"switch"==e?_(A("form"),E,A("}","switch"),j("{"),K,N,N):"case"==e?_(E,j(":")):"default"==e?_(j(":")):"catch"==e?_(A("form"),D,j("("),de,j(")"),M,N,L):"module"==e?_(A("form"),D,me,L,N):"class"==e?_(A("form"),he,N):"export"==e?_(A("form"),ye,N):"import"==e?_(A("form"),be,N):S(A("stat"),E,j(";"),N)}function E(e){return O(e,!1)}function I(e){return O(e,!0)}function O(e,t){if(C.state.fatArrowAt==C.stream.start){var n=t?B:q;if("("==e)return _(D,A(")"),J(te,")"),N,j("=>"),n,L);if("variable"==e)return S(D,te,j("=>"),n,L)}var r=t?F:H;return b.hasOwnProperty(e)?_(r):"function"==e?_(fe,r):"keyword c"==e?_(t?R:P):"("==e?_(A(")"),P,_e,j(")"),N,r):"operator"==e||"spread"==e?_(t?I:E):"["==e?_(A("]"),Ce,N,r):"{"==e?Y(G,"}",null,r):"quasi"==e?S(W,r):_()}function P(e){return e.match(/[;\}\)\],]/)?S():S(E)}function R(e){return e.match(/[;\}\)\],]/)?S():S(I)}function H(e,t){return","==e?_(E):F(e,t,!1)}function F(e,t,n){var r=0==n?H:F,i=0==n?E:I;return"=>"==e?_(D,n?B:q,L):"operator"==e?/\+\+|--/.test(t)?_(r):"?"==t?_(E,j(":"),i):_(i):"quasi"==e?S(W,r):";"!=e?"("==e?Y(I,")","call",r):"."==e?_(V,r):"["==e?_(A("]"),P,j("]"),N,r):void 0:void 0}function W(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?_(W):_(E,z)}function z(e){if("}"==e)return C.marked="string-2",C.state.tokenize=m,_(W)}function q(e){return y(C.stream,C.state),S("{"==e?M:E)}function B(e){return y(C.stream,C.state),S("{"==e?M:I)}function U(e){return":"==e?_(N,M):S(H,j(";"),N)}function V(e){if("variable"==e)return C.marked="property",_()}function G(e,t){return"variable"==e||"keyword"==C.style?(C.marked="property",_("get"==t||"set"==t?X:$)):"number"==e||"string"==e?(C.marked=s?"property":C.style+" property",_($)):"jsonld-keyword"==e?_($):"["==e?_(E,j("]"),$):void 0}function X(e){return"variable"!=e?S($):(C.marked="property",_(fe))}function $(e){return":"==e?_(I):"("==e?S(fe):void 0}function J(e,t){function n(r){if(","==r){var i=C.state.lexical;return"call"==i.info&&(i.pos=(i.pos||0)+1),_(e,n)}return r==t?_():_(j(t))}return function(r){return r==t?_():S(e,n)}}function Y(e,t,n){for(var r=3;r<arguments.length;r++)C.cc.push(arguments[r]);return _(A(t,n),J(e,t),N)}function K(e){return"}"==e?_():S(M,K)}function Q(e){if(u&&":"==e)return _(Z)}function Z(e){if("variable"==e)return C.marked="variable-3",_()}function ee(){return S(te,Q,re,ie)}function te(e,t){return"variable"==e?(T(t),_()):"["==e?Y(te,"]"):"{"==e?Y(ne,"}"):void 0}function ne(e,t){return"variable"!=e||C.stream.match(/^\s*:/,!1)?("variable"==e&&(C.marked="property"),_(j(":"),te,re)):(T(t),_(re))}function re(e,t){if("="==t)return _(I)}function ie(e){if(","==e)return _(ee)}function oe(e,t){if("keyword b"==e&&"else"==t)return _(A("form","else"),M,N)}function ae(e){if("("==e)return _(A(")"),se,j(")"),N)}function se(e){return"var"==e?_(ee,j(";"),ue):";"==e?_(ue):"variable"==e?_(le):S(E,j(";"),ue)}function le(e,t){return"in"==t||"of"==t?(C.marked="keyword",_(E)):_(H,ue)}function ue(e,t){return";"==e?_(ce):"in"==t||"of"==t?(C.marked="keyword",_(E)):S(E,j(";"),ce)}function ce(e){")"!=e&&_(E)}function fe(e,t){return"*"==t?(C.marked="keyword",_(fe)):"variable"==e?(T(t),_(fe)):"("==e?_(D,A(")"),J(de,")"),N,M,L):void 0}function de(e){return"spread"==e?_(de):S(te,Q)}function he(e,t){if("variable"==e)return T(t),_(pe)}function pe(e,t){return"extends"==t?_(E,pe):"{"==e?_(A("}"),ge,N):void 0}function ge(e,t){return"variable"==e||"keyword"==C.style?(C.marked="property","get"==t||"set"==t?_(ve,fe,ge):_(fe,ge)):"*"==t?(C.marked="keyword",_(ge)):";"==e?_(ge):"}"==e?_():void 0}function ve(e){return"variable"!=e?S():(C.marked="property",_())}function me(e,t){return"string"==e?_(M):"variable"==e?(T(t),_(xe)):void 0}function ye(e,t){return"*"==t?(C.marked="keyword",_(xe,j(";"))):"default"==t?(C.marked="keyword",_(E,j(";"))):S(M)}function be(e){return"string"==e?_():S(we,xe)}function we(e,t){return"{"==e?Y(we,"}"):("variable"==e&&T(t),_())}function xe(e,t){if("from"==t)return C.marked="keyword",_(E)}function Ce(e){return"]"==e?_():S(I,Se)}function Se(e){return"for"==e?S(_e,j("]")):","==e?_(J(R,"]")):S(J(I,"]"))}function _e(e){return"for"==e?_(ae,_e):"if"==e?_(E,_e):void 0}return N.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new w((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&{vars:n.localVars},indented:0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),y(e,t)),t.tokenize!=v&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",function(e,t,n,r,i){var o=e.cc;for(C.state=e,C.stream=i,C.marked=null,C.cc=o,C.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?E:M)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return C.marked?C.marked:"variable"==n&&x(e,r)?"variable-2":t}}(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==v)return e.Pass;if(t.tokenize!=g)return 0;var i=r&&r.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(r))for(var l=t.cc.length-1;l>=0;--l){var u=t.cc[l];if(u==N)s=s.prev;else if(u!=oe)break}"stat"==s.type&&"}"==i&&(s=s.prev),a&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var c=s.type,f=i==c;return"vardef"==c?s.indented+("operator"==t.lastType||","==t.lastType?s.info+1:0):"form"==c&&"{"==i?s.indented:"form"==c?s.indented+o:"stat"==c?s.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||d.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,r)?a||o:0):"switch"!=s.info||f||0==n.doubleIndentSwitch?s.align?s.column+(f?0:1):s.indented+(f?0:o):s.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",lineComment:l?null:"//",fold:"brace",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})},"object"==typeof n&&"object"==typeof t?r(e("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)},{"../../lib/codemirror":10}],12:[function(e,t,n){var r;r=function(e){"use strict";e.defineMode("xml",(function(t,n){var r=t.indentUnit,i=n.multilineTagIndentFactor||1,o=n.multilineTagIndentPastTag;null==o&&(o=!0);var a,s,l=n.htmlMode?{autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0}:{autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,caseFold:!1},u=n.alignCDATA;function c(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(d("atom","]]>")):null:e.match("--")?n(d("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(function e(t){return function(n,r){for(var i;null!=(i=n.next());){if("<"==i)return r.tokenize=e(t+1),r.tokenize(n,r);if(">"==i){if(1==t){r.tokenize=c;break}return r.tokenize=e(t-1),r.tokenize(n,r)}}return"meta"}}(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=d("meta","?>"),"meta"):(a=e.eat("/")?"closeTag":"openTag",t.tokenize=f,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function f(e,t){var n,r,i=e.next();if(">"==i||"/"==i&&e.eat(">"))return t.tokenize=c,a=">"==i?"endTag":"selfcloseTag","tag bracket";if("="==i)return a="equals",null;if("<"==i){t.tokenize=c,t.state=v,t.tagName=t.tagStart=null;var o=t.tokenize(e,t);return o?o+" tag error":"tag error"}return/[\'\"]/.test(i)?(t.tokenize=(n=i,(r=function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=f;break}return"string"}).isInAttribute=!0,r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=c;break}n.next()}return e}}function h(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function p(e){e.context&&(e.context=e.context.prev)}function g(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(n)||!l.contextGrabbers[n].hasOwnProperty(t))return;p(e)}}function v(e,t,n){return"openTag"==e?(n.tagStart=t.column(),m):"closeTag"==e?y:v}function m(e,t,n){return"word"==e?(n.tagName=t.current(),s="tag",x):(s="error",m)}function y(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(n.context.tagName)&&p(n),n.context&&n.context.tagName==r?(s="tag",b):(s="tag error",w)}return s="error",w}function b(e,t,n){return"endTag"!=e?(s="error",b):(p(n),v)}function w(e,t,n){return s="error",b(e,0,n)}function x(e,t,n){if("word"==e)return s="attribute",C;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(r)?g(n,r):(g(n,r),n.context=new h(n,r,i==n.indented)),v}return s="error",x}function C(e,t,n){return"equals"==e?S:(l.allowMissing||(s="error"),x(e,0,n))}function S(e,t,n){return"string"==e?_:"word"==e&&l.allowUnquoted?(s="string",x):(s="error",x(e,0,n))}function _(e,t,n){return"string"==e?_:x(e,0,n)}return{startState:function(){return{tokenize:c,state:v,indented:0,tagName:null,tagStart:null,context:null}},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;a=null;var n=t.tokenize(e,t);return(n||a)&&"comment"!=n&&(s=null,t.state=t.state(a||n,e,t),s&&(n="error"==s?n+" error":s)),n},indent:function(t,n,a){var s=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+r;if(s&&s.noIndent)return e.Pass;if(t.tokenize!=f&&t.tokenize!=c)return a?a.match(/^(\s*)/)[0].length:0;if(t.tagName)return o?t.tagStart+t.tagName.length+2:t.tagStart+r*i;if(u&&/<!\[CDATA\[/.test(n))return 0;var d=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(d&&d[1])for(;s;){if(s.tagName==d[2]){s=s.prev;break}if(!l.implicitlyClosed.hasOwnProperty(s.tagName))break;s=s.prev}else if(d)for(;s;){var h=l.contextGrabbers[s.tagName];if(!h||!h.hasOwnProperty(d[2]))break;s=s.prev}for(;s&&!s.startOfLine;)s=s.prev;return s?s.indent+r:0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:n.htmlMode?"html":"xml",helperType:n.htmlMode?"html":"xml"}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})},"object"==typeof n&&"object"==typeof t?r(e("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)},{"../../lib/codemirror":10}],13:[function(e,t,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,n,r,s,l,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(a(n=this._events[e]))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,s=new Array(r-1),l=1;l<r;l++)s[l-1]=arguments[l];n.apply(this,s)}else if(o(n)){for(r=arguments.length,s=new Array(r-1),l=1;l<r;l++)s[l-1]=arguments[l];for(r=(u=n.slice()).length,l=0;l<r;l++)u[l].apply(this,s)}return!0},r.prototype.addListener=function(e,t){var n;if(!i(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,o(this._events[e])&&!this._events[e].warned&&(n=a(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){if(!i(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(i(n=this._events[e]))this.removeListener(e,n);else for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.listenerCount=function(e,t){return e._events&&e._events[t]?i(e._events[t])?1:e._events[t].length:0}},{}],14:[function(e,t,n){
6
+ /*!
7
+ * jQuery UI Core 1.10.4
8
+ * http://jqueryui.com
9
+ *
10
+ * Copyright 2014 jQuery Foundation and other contributors
11
+ * Released under the MIT license.
12
+ * http://jquery.org/license
13
+ *
14
+ * http://api.jqueryui.com/category/ui-core/
15
+ */
16
+ !function(e,t){var n,r,i=0,o=/^ui-id-\d+$/;function a(t,n){var r,i,o,a=t.nodeName.toLowerCase();return"area"===a?(i=(r=t.parentNode).name,!(!t.href||!i||"map"!==r.nodeName.toLowerCase())&&!!(o=e("img[usemap=#"+i+"]")[0])&&s(o)):(/input|select|textarea|button|object/.test(a)?!t.disabled:"a"===a&&t.href||n)&&s(t)}function s(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.10.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({focus:(n=e.fn.focus,function(t,r){return"number"==typeof t?this.each((function(){var n=this;setTimeout((function(){e(n).focus(),r&&r.call(n)}),t)})):n.apply(this,arguments)}),scrollParent:function(){var t;return t=e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter((function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))})).eq(0):this.parents().filter((function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))})).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(t){if(void 0!==t)return this.css("zIndex",t);if(this.length)for(var n,r,i=e(this[0]);i.length&&i[0]!==document;){if(("absolute"===(n=i.css("position"))||"relative"===n||"fixed"===n)&&(r=parseInt(i.css("zIndex"),10),!isNaN(r)&&0!==r))return r;i=i.parent()}return 0},uniqueId:function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++i)}))},removeUniqueId:function(){return this.each((function(){o.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,r){return!!e.data(t,r[3])},focusable:function(t){return a(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var n=e.attr(t,"tabindex"),r=isNaN(n);return(r||n>=0)&&a(t,!r)}}),e("<a>").outerWidth(1).jquery||e.each(["Width","Height"],(function(t,n){var r="Width"===n?["Left","Right"]:["Top","Bottom"],i=n.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};function a(t,n,i,o){return e.each(r,(function(){n-=parseFloat(e.css(t,"padding"+this))||0,i&&(n-=parseFloat(e.css(t,"border"+this+"Width"))||0),o&&(n-=parseFloat(e.css(t,"margin"+this))||0)})),n}e.fn["inner"+n]=function(t){return void 0===t?o["inner"+n].call(this):this.each((function(){e(this).css(i,a(this,t)+"px")}))},e.fn["outer"+n]=function(t,r){return"number"!=typeof t?o["outer"+n].call(this,t):this.each((function(){e(this).css(i,a(this,t,!0,r)+"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=(r=e.fn.removeData,function(t){return arguments.length?r.call(this,e.camelCase(t)):r.call(this)})),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.support.selectstart="onselectstart"in document.createElement("div"),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",(function(e){e.preventDefault()}))},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,n,r){var i,o=e.ui[t].prototype;for(i in r)o.plugins[i]=o.plugins[i]||[],o.plugins[i].push([n,r[i]])},call:function(e,t,n){var r,i=e.plugins[t];if(i&&e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)for(r=0;r<i.length;r++)e.options[i[r][0]]&&i[r][1].apply(e.element,n)}},hasScroll:function(t,n){if("hidden"===e(t).css("overflow"))return!1;var r,i=n&&"left"===n?"scrollLeft":"scrollTop";return t[i]>0||(t[i]=1,r=t[i]>0,t[i]=0,r)}})}(e("jquery"))},{jquery:18}],15:[function(e,t,n){var r,i,o=e("jquery");e("./widget"),
17
+ /*!
18
+ * jQuery UI Mouse 1.10.4
19
+ * http://jqueryui.com
20
+ *
21
+ * Copyright 2014 jQuery Foundation and other contributors
22
+ * Released under the MIT license.
23
+ * http://jquery.org/license
24
+ *
25
+ * http://api.jqueryui.com/mouse/
26
+ *
27
+ * Depends:
28
+ * jquery.ui.widget.js
29
+ */
30
+ i=!1,(r=o)(document).mouseup((function(){i=!1})),r.widget("ui.mouse",{version:"1.10.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).bind("click."+this.widgetName,(function(t){if(!0===r.data(t.target,e.widgetName+".preventClickEvent"))return r.removeData(t.target,e.widgetName+".preventClickEvent"),t.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&r(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!i){this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var t=this,n=1===e.which,o=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&r(e.target).closest(this.options.cancel).length;return!(n&&!o&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){t.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),0):(!0===r.data(e.target,this.widgetName+".preventClickEvent")&&r.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},r(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),i=!0,0)))}},_mouseMove:function(e){return r.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button?this._mouseUp(e):this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return r(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&r.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})},{"./widget":17,jquery:18}],16:[function(e,t,n){var r=e("jquery");e("./core"),e("./mouse"),e("./widget"),
31
+ /*!
32
+ * jQuery UI Sortable 1.10.4
33
+ * http://jqueryui.com
34
+ *
35
+ * Copyright 2014 jQuery Foundation and other contributors
36
+ * Released under the MIT license.
37
+ * http://jquery.org/license
38
+ *
39
+ * http://api.jqueryui.com/sortable/
40
+ *
41
+ * Depends:
42
+ * jquery.ui.core.js
43
+ * jquery.ui.mouse.js
44
+ * jquery.ui.widget.js
45
+ */
46
+ function(e,t){function n(e,t,n){return e>t&&e<t+n}function r(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))}e.widget("ui.sortable",e.ui.mouse,{version:"1.10.4",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var e=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===e.axis||r(this.items[0].item)),this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_setOption:function(t,n){"disabled"===t?(this.options[t]=n,this.widget().toggleClass("ui-sortable-disabled",!!n)):e.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(t,n){var r=null,i=!1,o=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(t),e(t.target).parents().each((function(){if(e.data(this,o.widgetName+"-item")===o)return r=e(this),!1})),e.data(t.target,o.widgetName+"-item")===o&&(r=e(t.target)),!r||this.options.handle&&!n&&(e(this.options.handle,r).find("*").addBack().each((function(){this===t.target&&(i=!0)})),!i)||(this.currentItem=r,this._removeCurrentsFromItems(),0)))},_mouseStart:function(t,n,r){var i,o,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",a.cursor),this.storedStylesheet=e("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(o)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!r)for(i=this.containers.length-1;i>=0;i--)this.containers[i]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!a.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var n,r,i,o,a=this.options,s=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<a.scrollSensitivity?this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop+a.scrollSpeed:t.pageY-this.overflowOffset.top<a.scrollSensitivity&&(this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop-a.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<a.scrollSensitivity?this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft+a.scrollSpeed:t.pageX-this.overflowOffset.left<a.scrollSensitivity&&(this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft-a.scrollSpeed)):(t.pageY-e(document).scrollTop()<a.scrollSensitivity?s=e(document).scrollTop(e(document).scrollTop()-a.scrollSpeed):e(window).height()-(t.pageY-e(document).scrollTop())<a.scrollSensitivity&&(s=e(document).scrollTop(e(document).scrollTop()+a.scrollSpeed)),t.pageX-e(document).scrollLeft()<a.scrollSensitivity?s=e(document).scrollLeft(e(document).scrollLeft()-a.scrollSpeed):e(window).width()-(t.pageX-e(document).scrollLeft())<a.scrollSensitivity&&(s=e(document).scrollLeft(e(document).scrollLeft()+a.scrollSpeed))),!1!==s&&e.ui.ddmanager&&!a.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),n=this.items.length-1;n>=0;n--)if(i=(r=this.items[n]).item[0],(o=this._intersectsWithPointer(r))&&r.instance===this.currentContainer&&!(i===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===i||e.contains(this.placeholder[0],i)||"semi-dynamic"===this.options.type&&e.contains(this.element[0],i))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(r))break;this._rearrange(t,r),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,n){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var r=this,i=this.placeholder.offset(),o=this.options.axis,a={};o&&"x"!==o||(a.left=i.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(a.top=i.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(a,parseInt(this.options.revert,10)||500,(function(){r._clear(t)}))}else this._clear(t,n);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var n=this._getItemsAsjQuery(t&&t.connected),r=[];return t=t||{},e(n).each((function(){var n=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);n&&r.push((t.key||n[1]+"[]")+"="+(t.key&&t.expression?n[1]:n[2]))})),!r.length&&t.key&&r.push(t.key+"="),r.join("&")},toArray:function(t){var n=this._getItemsAsjQuery(t&&t.connected),r=[];return t=t||{},n.each((function(){r.push(e(t.item||this).attr(t.attribute||"id")||"")})),r},_intersectsWith:function(e){var t=this.positionAbs.left,n=t+this.helperProportions.width,r=this.positionAbs.top,i=r+this.helperProportions.height,o=e.left,a=o+e.width,s=e.top,l=s+e.height,u=this.offset.click.top,c=this.offset.click.left,f="x"===this.options.axis||r+u>s&&r+u<l,d="y"===this.options.axis||t+c>o&&t+c<a,h=f&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?h:o<t+this.helperProportions.width/2&&n-this.helperProportions.width/2<a&&s<r+this.helperProportions.height/2&&i-this.helperProportions.height/2<l},_intersectsWithPointer:function(e){var t="x"===this.options.axis||n(this.positionAbs.top+this.offset.click.top,e.top,e.height),r="y"===this.options.axis||n(this.positionAbs.left+this.offset.click.left,e.left,e.width),i=t&&r,o=this._getDragVerticalDirection(),a=this._getDragHorizontalDirection();return!!i&&(this.floating?a&&"right"===a||"down"===o?2:1:o&&("down"===o?2:1))},_intersectsWithSides:function(e){var t=n(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),r=n(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),i=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return this.floating&&o?"right"===o&&r||"left"===o&&!r:i&&("down"===i&&t||"up"===i&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var n,r,i,o,a=[],s=[],l=this._connectWith();if(l&&t)for(n=l.length-1;n>=0;n--)for(r=(i=e(l[n])).length-1;r>=0;r--)(o=e.data(i[r],this.widgetFullName))&&o!==this&&!o.options.disabled&&s.push([e.isFunction(o.options.items)?o.options.items.call(o.element):e(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);function u(){a.push(this)}for(s.push([e.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=s.length-1;n>=0;n--)s[n][0].each(u);return e(a)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,(function(e){for(var n=0;n<t.length;n++)if(t[n]===e.item[0])return!1;return!0}))},_refreshItems:function(t){this.items=[],this.containers=[this];var n,r,i,o,a,s,l,u,c=this.items,f=[[e.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(n=d.length-1;n>=0;n--)for(r=(i=e(d[n])).length-1;r>=0;r--)(o=e.data(i[r],this.widgetFullName))&&o!==this&&!o.options.disabled&&(f.push([e.isFunction(o.options.items)?o.options.items.call(o.element[0],t,{item:this.currentItem}):e(o.options.items,o.element),o]),this.containers.push(o));for(n=f.length-1;n>=0;n--)for(a=f[n][1],r=0,u=(s=f[n][0]).length;r<u;r++)(l=e(s[r])).data(this.widgetName+"-item",a),c.push({item:l,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(t){var n,r,i,o;for(this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),n=this.items.length-1;n>=0;n--)(r=this.items[n]).instance!==this.currentContainer&&this.currentContainer&&r.item[0]!==this.currentItem[0]||(i=this.options.toleranceElement?e(this.options.toleranceElement,r.item):r.item,t||(r.width=i.outerWidth(),r.height=i.outerHeight()),o=i.offset(),r.left=o.left,r.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(n=this.containers.length-1;n>=0;n--)o=this.containers[n].element.offset(),this.containers[n].containerCache.left=o.left,this.containers[n].containerCache.top=o.top,this.containers[n].containerCache.width=this.containers[n].element.outerWidth(),this.containers[n].containerCache.height=this.containers[n].element.outerHeight();return this},_createPlaceholder:function(t){var n,r=(t=t||this).options;r.placeholder&&r.placeholder.constructor!==String||(n=r.placeholder,r.placeholder={element:function(){var r=t.currentItem[0].nodeName.toLowerCase(),i=e("<"+r+">",t.document[0]).addClass(n||t.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===r?t.currentItem.children().each((function(){e("<td>&#160;</td>",t.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(i)})):"img"===r&&i.attr("src",t.currentItem.attr("src")),n||i.css("visibility","hidden"),i},update:function(e,i){n&&!r.forcePlaceholderSize||(i.height()||i.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),i.width()||i.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(r.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),r.placeholder.update(t,t.placeholder)},_contactContainers:function(t){var i,o,a,s,l,u,c,f,d,h,p=null,g=null;for(i=this.containers.length-1;i>=0;i--)if(!e.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(p&&e.contains(this.containers[i].element[0],p.element[0]))continue;p=this.containers[i],g=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",t,this._uiHash(this)),this.containers[i].containerCache.over=0);if(p)if(1===this.containers.length)this.containers[g].containerCache.over||(this.containers[g]._trigger("over",t,this._uiHash(this)),this.containers[g].containerCache.over=1);else{for(a=1e4,s=null,l=(h=p.floating||r(this.currentItem))?"left":"top",u=h?"width":"height",c=this.positionAbs[l]+this.offset.click[l],o=this.items.length-1;o>=0;o--)e.contains(this.containers[g].element[0],this.items[o].item[0])&&this.items[o].item[0]!==this.currentItem[0]&&(h&&!n(this.positionAbs.top+this.offset.click.top,this.items[o].top,this.items[o].height)||(f=this.items[o].item.offset()[l],d=!1,Math.abs(f-c)>Math.abs(f+this.items[o][u]-c)&&(d=!0,f+=this.items[o][u]),Math.abs(f-c)<a&&(a=Math.abs(f-c),s=this.items[o],this.direction=d?"up":"down")));if(!s&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[g])return;s?this._rearrange(t,s,null,!0):this._rearrange(t,null,this.containers[g].element,!0),this._trigger("change",t,this._uiHash()),this.containers[g]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[g],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[g]._trigger("over",t,this._uiHash(this)),this.containers[g].containerCache.over=1}},_createHelper:function(t){var n=this.options,r=e.isFunction(n.helper)?e(n.helper.apply(this.element[0],[t,this.currentItem])):"clone"===n.helper?this.currentItem.clone():this.currentItem;return r.parents("body").length||e("parent"!==n.appendTo?n.appendTo:this.currentItem[0].parentNode)[0].appendChild(r[0]),r[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),r[0].style.width&&!n.forceHelperSize||r.width(this.currentItem.width()),r[0].style.height&&!n.forceHelperSize||r.height(this.currentItem.height()),r},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,r,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode),"document"!==i.containment&&"window"!==i.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,e("document"===i.containment?document:window).width()-this.helperProportions.width-this.margins.left,(e("document"===i.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||(t=e(i.containment)[0],n=e(i.containment).offset(),r="hidden"!==e(t).css("overflow"),this.containment=[n.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,n.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,n.left+(r?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(r?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,n){n||(n=this.position);var r="absolute"===t?1:-1,i="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(i[0].tagName);return{top:n.top+this.offset.relative.top*r+this.offset.parent.top*r-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:i.scrollTop())*r,left:n.left+this.offset.relative.left*r+this.offset.parent.left*r-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:i.scrollLeft())*r}},_generatePosition:function(t){var n,r,i=this.options,o=t.pageX,a=t.pageY,s="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(s[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),i.grid&&(n=this.originalPageY+Math.round((a-this.originalPageY)/i.grid[1])*i.grid[1],a=this.containment?n-this.offset.click.top>=this.containment[1]&&n-this.offset.click.top<=this.containment[3]?n:n-this.offset.click.top>=this.containment[1]?n-i.grid[1]:n+i.grid[1]:n,r=this.originalPageX+Math.round((o-this.originalPageX)/i.grid[0])*i.grid[0],o=this.containment?r-this.offset.click.left>=this.containment[0]&&r-this.offset.click.left<=this.containment[2]?r:r-this.offset.click.left>=this.containment[0]?r-i.grid[0]:r+i.grid[0]:r)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:s.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:s.scrollLeft())}},_rearrange:function(e,t,n,r){n?n[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var i=this.counter;this._delay((function(){i===this.counter&&this.refreshPositions(!r)}))},_clear:function(e,t){this.reverting=!1;var n,r=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();function i(e,t,n){return function(r){n._trigger(e,r,t._uiHash(t))}}for(this.fromOutside&&!t&&r.push((function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||r.push((function(e){this._trigger("update",e,this._uiHash())})),this!==this.currentContainer&&(t||(r.push((function(e){this._trigger("remove",e,this._uiHash())})),r.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)t||r.push(i("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(r.push(i("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!t){for(this._trigger("beforeStop",e,this._uiHash()),n=0;n<r.length;n++)r[n].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!1}if(t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!t){for(n=0;n<r.length;n++)r[n].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){!1===e.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var n=t||this;return{helper:n.helper,placeholder:n.placeholder||e([]),position:n.position,originalPosition:n.originalPosition,offset:n.positionAbs,item:n.currentItem,sender:t?t.element:null}}})}(r)},{"./core":14,"./mouse":15,"./widget":17,jquery:18}],17:[function(e,t,n){var r,i,o,a,s=e("jquery");
47
+ /*!
48
+ * jQuery UI Widget 1.10.4
49
+ * http://jqueryui.com
50
+ *
51
+ * Copyright 2014 jQuery Foundation and other contributors
52
+ * Released under the MIT license.
53
+ * http://jquery.org/license
54
+ *
55
+ * http://api.jqueryui.com/jQuery.widget/
56
+ */r=s,i=0,o=Array.prototype.slice,a=r.cleanData,r.cleanData=function(e){for(var t,n=0;null!=(t=e[n]);n++)try{r(t).triggerHandler("remove")}catch(e){}a(e)},r.widget=function(e,t,n){var i,o,a,s,l={},u=e.split(".")[0];e=e.split(".")[1],i=u+"-"+e,n||(n=t,t=r.Widget),r.expr[":"][i.toLowerCase()]=function(e){return!!r.data(e,i)},r[u]=r[u]||{},o=r[u][e],a=r[u][e]=function(e,t){if(!this._createWidget)return new a(e,t);arguments.length&&this._createWidget(e,t)},r.extend(a,o,{version:n.version,_proto:r.extend({},n),_childConstructors:[]}),(s=new t).options=r.widget.extend({},s.options),r.each(n,(function(e,n){var i,o;r.isFunction(n)?l[e]=(i=function(){return t.prototype[e].apply(this,arguments)},o=function(n){return t.prototype[e].apply(this,n)},function(){var e,t=this._super,r=this._superApply;return this._super=i,this._superApply=o,e=n.apply(this,arguments),this._super=t,this._superApply=r,e}):l[e]=n})),a.prototype=r.widget.extend(s,{widgetEventPrefix:o&&s.widgetEventPrefix||e},l,{constructor:a,namespace:u,widgetName:e,widgetFullName:i}),o?(r.each(o._childConstructors,(function(e,t){var n=t.prototype;r.widget(n.namespace+"."+n.widgetName,a,t._proto)})),delete o._childConstructors):t._childConstructors.push(a),r.widget.bridge(e,a)},r.widget.extend=function(e){for(var t,n,i=o.call(arguments,1),a=0,s=i.length;a<s;a++)for(t in i[a])n=i[a][t],i[a].hasOwnProperty(t)&&void 0!==n&&(r.isPlainObject(n)?e[t]=r.isPlainObject(e[t])?r.widget.extend({},e[t],n):r.widget.extend({},n):e[t]=n);return e},r.widget.bridge=function(e,t){var n=t.prototype.widgetFullName||e;r.fn[e]=function(i){var a="string"==typeof i,s=o.call(arguments,1),l=this;return i=!a&&s.length?r.widget.extend.apply(null,[i].concat(s)):i,a?this.each((function(){var t,o=r.data(this,n);return o?r.isFunction(o[i])&&"_"!==i.charAt(0)?(t=o[i].apply(o,s))!==o&&void 0!==t?(l=t&&t.jquery?l.pushStack(t.get()):t,!1):void 0:r.error("no such method '"+i+"' for "+e+" widget instance"):r.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+i+"'")})):this.each((function(){var e=r.data(this,n);e?e.option(i||{})._init():r.data(this,n,new t(i,this))})),l}},r.Widget=function(){},r.Widget._childConstructors=[],r.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,t){t=r(t||this.defaultElement||this)[0],this.element=r(t),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=r.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=r(),this.hoverable=r(),this.focusable=r(),t!==this&&(r.data(t,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===t&&this.destroy()}}),this.document=r(t.style?t.ownerDocument:t.document||t),this.window=r(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:r.noop,_getCreateEventData:r.noop,_create:r.noop,_init:r.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(r.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:r.noop,widget:function(){return this.element},option:function(e,t){var n,i,o,a=e;if(0===arguments.length)return r.widget.extend({},this.options);if("string"==typeof e)if(a={},n=e.split("."),e=n.shift(),n.length){for(i=a[e]=r.widget.extend({},this.options[e]),o=0;o<n.length-1;o++)i[n[o]]=i[n[o]]||{},i=i[n[o]];if(e=n.pop(),1===arguments.length)return void 0===i[e]?null:i[e];i[e]=t}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=t}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 ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(e,t,n){var i,o=this;"boolean"!=typeof e&&(n=t,t=e,e=!1),n?(t=i=r(t),this.bindings=this.bindings.add(t)):(n=t,t=this.element,i=this.widget()),r.each(n,(function(n,a){function s(){if(e||!0!==o.options.disabled&&!r(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||r.guid++);var l=n.match(/^(\w+)\s*(.*)$/),u=l[1]+o.eventNamespace,c=l[2];c?i.delegate(c,u,s):t.bind(u,s)}))},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t)},_delay:function(e,t){var n=this;return setTimeout((function(){return("string"==typeof e?n[e]:e).apply(n,arguments)}),t||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){r(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){r(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){r(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){r(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,t,n){var i,o,a=this.options[e];if(n=n||{},(t=r.Event(t)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),t.target=this.element[0],o=t.originalEvent)for(i in o)i in t||(t[i]=o[i]);return this.element.trigger(t,n),!(r.isFunction(a)&&!1===a.apply(this.element[0],[t].concat(n))||t.isDefaultPrevented())}},r.each({show:"fadeIn",hide:"fadeOut"},(function(e,t){r.Widget.prototype["_"+e]=function(n,i,o){"string"==typeof i&&(i={effect:i});var a,s=i?!0===i||"number"==typeof i?t:i.effect||t:e;"number"==typeof(i=i||{})&&(i={duration:i}),a=!r.isEmptyObject(i),i.complete=o,i.delay&&n.delay(i.delay),a&&r.effects&&r.effects.effect[s]?n[e](i):s!==e&&n[s]?n[s](i.duration,i.easing,o):n.queue((function(t){r(this)[e](),o&&o.call(n[0]),t()}))}}))},{jquery:18}],18:[function(e,t,n){
57
+ /*!
58
+ * jQuery JavaScript Library v1.11.0
59
+ * http://jquery.com/
60
+ *
61
+ * Includes Sizzle.js
62
+ * http://sizzlejs.com/
63
+ *
64
+ * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
65
+ * Released under the MIT license
66
+ * http://jquery.org/license
67
+ *
68
+ * Date: 2014-01-23T21:02Z
69
+ */
70
+ !function(e,n){"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(e)}("undefined"!=typeof window?window:this,(function(e,t){var n=[],r=n.slice,i=n.concat,o=n.push,a=n.indexOf,s={},l=s.toString,u=s.hasOwnProperty,c="".trim,f={},d=function(e,t){return new d.fn.init(e,t)},h=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,g=/-([\da-z])/gi,v=function(e,t){return t.toUpperCase()};function m(e){var t=e.length,n=d.type(e);return"function"!==n&&!d.isWindow(e)&&(!(1!==e.nodeType||!t)||"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}d.fn=d.prototype={jquery:"1.11.0",constructor:d,selector:"",length:0,toArray:function(){return r.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:r.call(this)},pushStack:function(e){var t=d.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return d.each(this,e,t)},map:function(e){return this.pushStack(d.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:o,sort:n.sort,splice:n.splice},d.extend=d.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||d.isFunction(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(i=arguments[s]))for(r in i)e=a[r],a!==(n=i[r])&&(u&&n&&(d.isPlainObject(n)||(t=d.isArray(n)))?(t?(t=!1,o=e&&d.isArray(e)?e:[]):o=e&&d.isPlainObject(e)?e:{},a[r]=d.extend(u,o,n)):void 0!==n&&(a[r]=n));return a},d.extend({expando:"jQuery"+("1.11.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===d.type(e)},isArray:Array.isArray||function(e){return"array"===d.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return 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"!==d.type(e)||e.nodeType||d.isWindow(e))return!1;try{if(e.constructor&&!u.call(e,"constructor")&&!u.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(f.ownLast)for(t in e)return u.call(e,t);for(t in e);return void 0===t||u.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?s[l.call(e)]||"object":typeof e},globalEval:function(t){t&&d.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(p,"ms-").replace(g,v)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r=0,i=e.length,o=m(e);if(n){if(o)for(;r<i&&!1!==t.apply(e[r],n);r++);else for(r in e)if(!1===t.apply(e[r],n))break}else if(o)for(;r<i&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:c&&!c.call("\ufeff ")?function(e){return null==e?"":c.call(e)}:function(e){return null==e?"":(e+"").replace(h,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(m(Object(e))?d.merge(n,"string"==typeof e?[e]:e):o.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(a)return a.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;)e[i++]=t[r++];if(n!=n)for(;void 0!==t[r];)e[i++]=t[r++];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,o=0,a=e.length,s=[];if(m(e))for(;o<a;o++)null!=(r=t(e[o],o,n))&&s.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&s.push(r);return i.apply([],s)},guid:1,proxy:function(e,t){var n,i,o;if("string"==typeof t&&(o=e[t],t=e,e=o),d.isFunction(e))return n=r.call(arguments,2),(i=function(){return e.apply(t||this,n.concat(r.call(arguments)))}).guid=e.guid=e.guid||d.guid++,i},now:function(){return+new Date},support:f}),d.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(e,t){s["[object "+t+"]"]=t.toLowerCase()}));var y=
71
+ /*!
72
+ * Sizzle CSS Selector Engine v1.10.16
73
+ * http://sizzlejs.com/
74
+ *
75
+ * Copyright 2013 jQuery Foundation, Inc. and other contributors
76
+ * Released under the MIT license
77
+ * http://jquery.org/license
78
+ *
79
+ * Date: 2014-01-13
80
+ */
81
+ function(e){var t,n,r,i,o,a,s,l,u,c,f,d,h,p,g,v,m,y="sizzle"+-new Date,b=e.document,w=0,x=0,C=te(),S=te(),_=te(),T=function(e,t){return e===t&&(u=!0),0},k={}.hasOwnProperty,D=[],L=D.pop,A=D.push,N=D.push,j=D.slice,M=D.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},E="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",I="[\\x20\\t\\r\\n\\f]",O="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",P=O.replace("w","w#"),R="\\["+I+"*("+O+")"+I+"*(?:([*^$|!~]?=)"+I+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+P+")|)|)"+I+"*\\]",H=":("+O+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+R.replace(3,8)+")*)|.*)\\)|)",F=new RegExp("^"+I+"+|((?:^|[^\\\\])(?:\\\\.)*)"+I+"+$","g"),W=new RegExp("^"+I+"*,"+I+"*"),z=new RegExp("^"+I+"*([>+~]|"+I+")"+I+"*"),q=new RegExp("="+I+"*([^\\]'\"]*?)"+I+"*\\]","g"),B=new RegExp(H),U=new RegExp("^"+P+"$"),V={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O.replace("w","w*")+")"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+E+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,K=/'|\\/g,Q=new RegExp("\\\\([\\da-f]{1,6}"+I+"?|("+I+")|.)","ig"),Z=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{N.apply(D=j.call(b.childNodes),b.childNodes),D[b.childNodes.length].nodeType}catch(e){N={apply:D.length?function(e,t){A.apply(e,j.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ee(e,t,i,o){var s,l,u,d,g,v,w,x,C,S;if((t?t.ownerDocument||t:b)!==f&&c(t),i=i||[],!e||"string"!=typeof e)return i;if(1!==(d=(t=t||f).nodeType)&&9!==d)return[];if(h&&!o){if(s=J.exec(e))if(u=s[1]){if(9===d){if(!(l=t.getElementById(u))||!l.parentNode)return i;if(l.id===u)return i.push(l),i}else if(t.ownerDocument&&(l=t.ownerDocument.getElementById(u))&&m(t,l)&&l.id===u)return i.push(l),i}else{if(s[2])return N.apply(i,t.getElementsByTagName(e)),i;if((u=s[3])&&n.getElementsByClassName&&t.getElementsByClassName)return N.apply(i,t.getElementsByClassName(u)),i}if(n.qsa&&(!p||!p.test(e))){if(x=w=y,C=t,S=9===d&&e,1===d&&"object"!==t.nodeName.toLowerCase()){for(v=fe(e),(w=t.getAttribute("id"))?x=w.replace(K,"\\$&"):t.setAttribute("id",x),x="[id='"+x+"'] ",g=v.length;g--;)v[g]=x+de(v[g]);C=Y.test(e)&&ue(t.parentNode)||t,S=v.join(",")}if(S)try{return N.apply(i,C.querySelectorAll(S)),i}catch(e){}finally{w||t.removeAttribute("id")}}}return function(e,t,i,o){var s,l,u,c,f,d=fe(e);if(!o&&1===d.length){if((l=d[0]=d[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&n.getById&&9===t.nodeType&&h&&r.relative[l[1].type]){if(!(t=(r.find.ID(u.matches[0].replace(Q,Z),t)||[])[0]))return i;e=e.slice(l.shift().value.length)}for(s=V.needsContext.test(e)?0:l.length;s--&&(u=l[s],!r.relative[c=u.type]);)if((f=r.find[c])&&(o=f(u.matches[0].replace(Q,Z),Y.test(l[0].type)&&ue(t.parentNode)||t))){if(l.splice(s,1),!(e=o.length&&de(l)))return N.apply(i,o),i;break}}return a(e,d)(o,t,!h,i,Y.test(e)&&ue(t.parentNode)||t),i}(e.replace(F,"$1"),t,i,o)}function te(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ne(e){return e[y]=!0,e}function re(e){var t=f.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ie(e,t){for(var n=e.split("|"),i=e.length;i--;)r.attrHandle[n[i]]=t}function oe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ae(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function se(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function le(e){return ne((function(t){return t=+t,ne((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ue(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ee.support={},o=ee.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},c=ee.setDocument=function(e){var t,i=e?e.ownerDocument||e:b,a=i.defaultView;return i!==f&&9===i.nodeType&&i.documentElement?(f=i,d=i.documentElement,h=!o(i),a&&a!==a.top&&(a.addEventListener?a.addEventListener("unload",(function(){c()}),!1):a.attachEvent&&a.attachEvent("onunload",(function(){c()}))),n.attributes=re((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=re((function(e){return e.appendChild(i.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=$.test(i.getElementsByClassName)&&re((function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length})),n.getById=re((function(e){return d.appendChild(e).id=y,!i.getElementsByName||!i.getElementsByName(y).length})),n.getById?(r.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},r.filter.ID=function(e){var t=e.replace(Q,Z);return function(e){return e.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(Q,Z);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){if(void 0!==t.getElementsByTagName)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&h)return t.getElementsByClassName(e)},g=[],p=[],(n.qsa=$.test(i.querySelectorAll))&&(re((function(e){e.innerHTML="<select t=''><option selected=''></option></select>",e.querySelectorAll("[t^='']").length&&p.push("[*^$]="+I+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||p.push("\\["+I+"*(?:value|"+E+")"),e.querySelectorAll(":checked").length||p.push(":checked")})),re((function(e){var t=i.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&p.push("name"+I+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||p.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),p.push(",.*:")}))),(n.matchesSelector=$.test(v=d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&re((function(e){n.disconnectedMatch=v.call(e,"div"),v.call(e,"[s!='']:x"),g.push("!=",H)})),p=p.length&&new RegExp(p.join("|")),g=g.length&&new RegExp(g.join("|")),t=$.test(d.compareDocumentPosition),m=t||$.test(d.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},T=t?function(e,t){if(e===t)return u=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===i||e.ownerDocument===b&&m(b,e)?-1:t===i||t.ownerDocument===b&&m(b,t)?1:l?M.call(l,e)-M.call(l,t):0:4&r?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,r=0,o=e.parentNode,a=t.parentNode,s=[e],c=[t];if(!o||!a)return e===i?-1:t===i?1:o?-1:a?1:l?M.call(l,e)-M.call(l,t):0;if(o===a)return oe(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)c.unshift(n);for(;s[r]===c[r];)r++;return r?oe(s[r],c[r]):s[r]===b?-1:c[r]===b?1:0},i):f},ee.matches=function(e,t){return ee(e,null,null,t)},ee.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&c(e),t=t.replace(q,"='$1']"),n.matchesSelector&&h&&(!g||!g.test(t))&&(!p||!p.test(t)))try{var r=v.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return ee(t,f,null,[e]).length>0},ee.contains=function(e,t){return(e.ownerDocument||e)!==f&&c(e),m(e,t)},ee.attr=function(e,t){(e.ownerDocument||e)!==f&&c(e);var i=r.attrHandle[t.toLowerCase()],o=i&&k.call(r.attrHandle,t.toLowerCase())?i(e,t,!h):void 0;return void 0!==o?o:n.attributes||!h?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},ee.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ee.uniqueSort=function(e){var t,r=[],i=0,o=0;if(u=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(T),u){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return l=null,e},i=ee.getText=function(e){var t,n="",r=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+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=ee.selectors={cacheLength:50,createPseudo:ne,match:V,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(Q,Z),e[3]=(e[4]||e[5]||"").replace(Q,Z),"~="===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]||ee.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]&&ee.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return V.CHILD.test(e[0])?null:(e[3]&&void 0!==e[4]?e[2]=e[4]:n&&B.test(n)&&(t=fe(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(Q,Z).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&C(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=ee.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,f,d,h,p,g=o!==a?"nextSibling":"previousSibling",v=t.parentNode,m=s&&t.nodeName.toLowerCase(),b=!l&&!s;if(v){if(o){for(;g;){for(f=t;f=f[g];)if(s?f.nodeName.toLowerCase()===m:1===f.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?v.firstChild:v.lastChild],a&&b){for(h=(u=(c=v[y]||(v[y]={}))[e]||[])[0]===w&&u[1],d=u[0]===w&&u[2],f=h&&v.childNodes[h];f=++h&&f&&f[g]||(d=h=0)||p.pop();)if(1===f.nodeType&&++d&&f===t){c[e]=[w,h,d];break}}else if(b&&(u=(t[y]||(t[y]={}))[e])&&u[0]===w)d=u[1];else for(;(f=++h&&f&&f[g]||(d=h=0)||p.pop())&&((s?f.nodeName.toLowerCase()!==m:1!==f.nodeType)||!++d||(b&&((f[y]||(f[y]={}))[e]=[w,d]),f!==t)););return(d-=i)===r||d%r==0&&d/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ee.error("unsupported pseudo: "+e);return i[y]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ne((function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=M.call(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:ne((function(e){var t=[],n=[],r=a(e.replace(F,"$1"));return r[y]?ne((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}})),has:ne((function(e){return function(t){return ee(e,t).length>0}})),contains:ne((function(e){return function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}})),lang:ne((function(e){return U.test(e||"")||ee.error("unsupported lang: "+e),e=e.replace(Q,Z).toLowerCase(),function(t){var n;do{if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===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===d},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},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,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return G.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:le((function(){return[0]})),last:le((function(e,t){return[t-1]})),eq:le((function(e,t,n){return[n<0?n+t:n]})),even:le((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:le((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:le((function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e})),gt:le((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=ae(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=se(t);function ce(){}function fe(e,t){var n,i,o,a,s,l,u,c=S[e+" "];if(c)return t?0:c.slice(0);for(s=e,l=[],u=r.preFilter;s;){for(a in n&&!(i=W.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),n=!1,(i=z.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(F," ")}),s=s.slice(n.length)),r.filter)!(i=V[a].exec(s))||u[a]&&!(i=u[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ee.error(e):S(e,l).slice(0)}function de(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function he(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=x++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,l,u=[w,o];if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if((s=(l=t[y]||(t[y]={}))[r])&&s[0]===w&&s[1]===o)return u[2]=s[2];if(l[r]=u,u[2]=e(t,n,a))return!0}}}function pe(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function ge(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function ve(e,t,n,r,i,o){return r&&!r[y]&&(r=ve(r)),i&&!i[y]&&(i=ve(i,o)),ne((function(o,a,s,l){var u,c,f,d=[],h=[],p=a.length,g=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)ee(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),v=!e||!o&&t?g:ge(g,d,e,s,l),m=n?i||(o?e:p||r)?[]:a:v;if(n&&n(v,m,s,l),r)for(u=ge(m,h),r(u,[],s,l),c=u.length;c--;)(f=u[c])&&(m[h[c]]=!(v[h[c]]=f));if(o){if(i||e){if(i){for(u=[],c=m.length;c--;)(f=m[c])&&u.push(v[c]=f);i(null,m=[],u,l)}for(c=m.length;c--;)(f=m[c])&&(u=i?M.call(o,f):d[c])>-1&&(o[u]=!(a[u]=f))}}else m=ge(m===a?m.splice(p,m.length):m),i?i(null,a,m,l):N.apply(a,m)}))}function me(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],l=a||r.relative[" "],u=a?1:0,c=he((function(e){return e===t}),l,!0),f=he((function(e){return M.call(t,e)>-1}),l,!0),d=[function(e,n,r){return!a&&(r||n!==s)||((t=n).nodeType?c(e,n,r):f(e,n,r))}];u<o;u++)if(n=r.relative[e[u].type])d=[he(pe(d),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[y]){for(i=++u;i<o&&!r.relative[e[i].type];i++);return ve(u>1&&pe(d),u>1&&de(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(F,"$1"),n,u<i&&me(e.slice(u,i)),i<o&&me(e=e.slice(i)),i<o&&de(e))}d.push(n)}return pe(d)}return ce.prototype=r.filters=r.pseudos,r.setFilters=new ce,a=ee.compile=function(e,t){var n,i=[],o=[],a=_[e+" "];if(!a){for(t||(t=fe(e)),n=t.length;n--;)(a=me(t[n]))[y]?i.push(a):o.push(a);a=_(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,l,u,c){var d,h,p,g=0,v="0",m=o&&[],y=[],b=s,x=o||i&&r.find.TAG("*",c),C=w+=null==b?1:Math.random()||.1,S=x.length;for(c&&(s=a!==f&&a);v!==S&&null!=(d=x[v]);v++){if(i&&d){for(h=0;p=e[h++];)if(p(d,a,l)){u.push(d);break}c&&(w=C)}n&&((d=!p&&d)&&g--,o&&m.push(d))}if(g+=v,n&&v!==g){for(h=0;p=t[h++];)p(m,y,a,l);if(o){if(g>0)for(;v--;)m[v]||y[v]||(y[v]=L.call(u));y=ge(y)}N.apply(u,y),c&&!o&&y.length>0&&g+t.length>1&&ee.uniqueSort(u)}return c&&(w=C,s=b),m};return n?ne(o):o}(o,i))}return a},n.sortStable=y.split("").sort(T).join("")===y,n.detectDuplicates=!!u,c(),n.sortDetached=re((function(e){return 1&e.compareDocumentPosition(f.createElement("div"))})),re((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||ie("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&re((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||ie("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),re((function(e){return null==e.getAttribute("disabled")}))||ie(E,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),ee}(e);d.find=y,d.expr=y.selectors,d.expr[":"]=d.expr.pseudos,d.unique=y.uniqueSort,d.text=y.getText,d.isXMLDoc=y.isXML,d.contains=y.contains;var b=d.expr.match.needsContext,w=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,x=/^.[^:#\[\.,]*$/;function C(e,t,n){if(d.isFunction(t))return d.grep(e,(function(e,r){return!!t.call(e,r,e)!==n}));if(t.nodeType)return d.grep(e,(function(e){return e===t!==n}));if("string"==typeof t){if(x.test(t))return d.filter(t,e,n);t=d.filter(t,e)}return d.grep(e,(function(e){return d.inArray(e,t)>=0!==n}))}d.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?d.find.matchesSelector(r,e)?[r]:[]:d.find.matches(e,d.grep(t,(function(e){return 1===e.nodeType})))},d.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(d(e).filter((function(){for(t=0;t<i;t++)if(d.contains(r[t],this))return!0})));for(t=0;t<i;t++)d.find(e,r[t],n);return(n=this.pushStack(i>1?d.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(C(this,e||[],!1))},not:function(e){return this.pushStack(C(this,e||[],!0))},is:function(e){return!!C(this,"string"==typeof e&&b.test(e)?d(e):e||[],!1).length}});var S,_=e.document,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(d.fn.init=function(e,t){var n,r;if(!e)return this;if("string"==typeof e){if(!(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:T.exec(e))||!n[1]&&t)return!t||t.jquery?(t||S).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof d?t[0]:t,d.merge(this,d.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:_,!0)),w.test(n[1])&&d.isPlainObject(t))for(n in t)d.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if((r=_.getElementById(n[2]))&&r.parentNode){if(r.id!==n[2])return S.find(e);this.length=1,this[0]=r}return this.context=_,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):d.isFunction(e)?void 0!==S.ready?S.ready(e):e(d):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),d.makeArray(e,this))}).prototype=d.fn,S=d(_);var k=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function L(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}d.extend({dir:function(e,t,n){for(var r=[],i=e[t];i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!d(i).is(n));)1===i.nodeType&&r.push(i),i=i[t];return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),d.fn.extend({has:function(e){var t,n=d(e,this),r=n.length;return this.filter((function(){for(t=0;t<r;t++)if(d.contains(this,n[t]))return!0}))},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=b.test(e)||"string"!=typeof e?d(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&d.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?d.unique(o):o)},index:function(e){return e?"string"==typeof e?d.inArray(this[0],d(e)):d.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(d.unique(d.merge(this.get(),d(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),d.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return d.dir(e,"parentNode")},parentsUntil:function(e,t,n){return d.dir(e,"parentNode",n)},next:function(e){return L(e,"nextSibling")},prev:function(e){return L(e,"previousSibling")},nextAll:function(e){return d.dir(e,"nextSibling")},prevAll:function(e){return d.dir(e,"previousSibling")},nextUntil:function(e,t,n){return d.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return d.dir(e,"previousSibling",n)},siblings:function(e){return d.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return d.sibling(e.firstChild)},contents:function(e){return d.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:d.merge([],e.childNodes)}},(function(e,t){d.fn[e]=function(n,r){var i=d.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=d.filter(r,i)),this.length>1&&(D[e]||(i=d.unique(i)),k.test(e)&&(i=i.reverse())),this.pushStack(i)}}));var A,N,j=/\S+/g,M={};function E(){_.addEventListener?(_.removeEventListener("DOMContentLoaded",I,!1),e.removeEventListener("load",I,!1)):(_.detachEvent("onreadystatechange",I),e.detachEvent("onload",I))}function I(){(_.addEventListener||"load"===event.type||"complete"===_.readyState)&&(E(),d.ready())}for(N in d.Callbacks=function(e){e="string"==typeof e?M[e]||function(e){var t=M[e]={};return d.each(e.match(j)||[],(function(e,n){t[n]=!0})),t}(e):d.extend({},e);var t,n,r,i,o,a,s=[],l=!e.once&&[],u=function(f){for(n=e.memory&&f,r=!0,o=a||0,a=0,i=s.length,t=!0;s&&o<i;o++)if(!1===s[o].apply(f[0],f[1])&&e.stopOnFalse){n=!1;break}t=!1,s&&(l?l.length&&u(l.shift()):n?s=[]:c.disable())},c={add:function(){if(s){var r=s.length;!function t(n){d.each(n,(function(n,r){var i=d.type(r);"function"===i?e.unique&&c.has(r)||s.push(r):r&&r.length&&"string"!==i&&t(r)}))}(arguments),t?i=s.length:n&&(a=r,u(n))}return this},remove:function(){return s&&d.each(arguments,(function(e,n){for(var r;(r=d.inArray(n,s,r))>-1;)s.splice(r,1),t&&(r<=i&&i--,r<=o&&o--)})),this},has:function(e){return e?d.inArray(e,s)>-1:!(!s||!s.length)},empty:function(){return s=[],i=0,this},disable:function(){return s=l=n=void 0,this},disabled:function(){return!s},lock:function(){return l=void 0,n||c.disable(),this},locked:function(){return!l},fireWith:function(e,n){return!s||r&&!l||(n=[e,(n=n||[]).slice?n.slice():n],t?l.push(n):u(n)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},d.extend({Deferred:function(e){var t=[["resolve","done",d.Callbacks("once memory"),"resolved"],["reject","fail",d.Callbacks("once memory"),"rejected"],["notify","progress",d.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return d.Deferred((function(n){d.each(t,(function(t,o){var a=d.isFunction(e[t])&&e[t];i[o[1]]((function(){var e=a&&a.apply(this,arguments);e&&d.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?d.extend(e,r):r}},i={};return r.pipe=r.then,d.each(t,(function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add((function(){n=s}),t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith})),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,i,o=0,a=r.call(arguments),s=a.length,l=1!==s||e&&d.isFunction(e.promise)?s:0,u=1===l?e:d.Deferred(),c=function(e,n,i){return function(o){n[e]=this,i[e]=arguments.length>1?r.call(arguments):o,i===t?u.notifyWith(n,i):--l||u.resolveWith(n,i)}};if(s>1)for(t=new Array(s),n=new Array(s),i=new Array(s);o<s;o++)a[o]&&d.isFunction(a[o].promise)?a[o].promise().done(c(o,i,a)).fail(u.reject).progress(c(o,n,t)):--l;return l||u.resolveWith(i,a),u.promise()}}),d.fn.ready=function(e){return d.ready.promise().done(e),this},d.extend({isReady:!1,readyWait:1,holdReady:function(e){e?d.readyWait++:d.ready(!0)},ready:function(e){if(!(!0===e?--d.readyWait:d.isReady)){if(!_.body)return setTimeout(d.ready);d.isReady=!0,!0!==e&&--d.readyWait>0||(A.resolveWith(_,[d]),d.fn.trigger&&d(_).trigger("ready").off("ready"))}}}),d.ready.promise=function(t){if(!A)if(A=d.Deferred(),"complete"===_.readyState)setTimeout(d.ready);else if(_.addEventListener)_.addEventListener("DOMContentLoaded",I,!1),e.addEventListener("load",I,!1);else{_.attachEvent("onreadystatechange",I),e.attachEvent("onload",I);var n=!1;try{n=null==e.frameElement&&_.documentElement}catch(e){}n&&n.doScroll&&function e(){if(!d.isReady){try{n.doScroll("left")}catch(t){return setTimeout(e,50)}E(),d.ready()}}()}return A.promise(t)},d(f))break;f.ownLast="0"!==N,f.inlineBlockNeedsLayout=!1,d((function(){var e,t,n=_.getElementsByTagName("body")[0];n&&((e=_.createElement("div")).style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",t=_.createElement("div"),n.appendChild(e).appendChild(t),void 0!==t.style.zoom&&(t.style.cssText="border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1",(f.inlineBlockNeedsLayout=3===t.offsetWidth)&&(n.style.zoom=1)),n.removeChild(e),e=t=null)})),function(){var e=_.createElement("div");if(null==f.deleteExpando){f.deleteExpando=!0;try{delete e.test}catch(e){f.deleteExpando=!1}}e=null}(),d.acceptData=function(e){var t=d.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)};var O=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,P=/([A-Z])/g;function R(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(P,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:O.test(n)?d.parseJSON(n):n)}catch(e){}d.data(e,t,n)}else n=void 0}return n}function H(e){var t;for(t in e)if(("data"!==t||!d.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function F(e,t,r,i){if(d.acceptData(e)){var o,a,s=d.expando,l=e.nodeType,u=l?d.cache:e,c=l?e[s]:e[s]&&s;if(c&&u[c]&&(i||u[c].data)||void 0!==r||"string"!=typeof t)return c||(c=l?e[s]=n.pop()||d.guid++:s),u[c]||(u[c]=l?{}:{toJSON:d.noop}),"object"!=typeof t&&"function"!=typeof t||(i?u[c]=d.extend(u[c],t):u[c].data=d.extend(u[c].data,t)),a=u[c],i||(a.data||(a.data={}),a=a.data),void 0!==r&&(a[d.camelCase(t)]=r),"string"==typeof t?null==(o=a[t])&&(o=a[d.camelCase(t)]):o=a,o}}function W(e,t,n){if(d.acceptData(e)){var r,i,o=e.nodeType,a=o?d.cache:e,s=o?e[d.expando]:d.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){i=(t=d.isArray(t)?t.concat(d.map(t,d.camelCase)):t in r||(t=d.camelCase(t))in r?[t]:t.split(" ")).length;for(;i--;)delete r[t[i]];if(n?!H(r):!d.isEmptyObject(r))return}(n||(delete a[s].data,H(a[s])))&&(o?d.cleanData([e],!0):f.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}d.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?d.cache[e[d.expando]]:e[d.expando])&&!H(e)},data:function(e,t,n){return F(e,t,n)},removeData:function(e,t){return W(e,t)},_data:function(e,t,n){return F(e,t,n,!0)},_removeData:function(e,t){return W(e,t,!0)}}),d.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=d.data(o),1===o.nodeType&&!d._data(o,"parsedAttrs"))){for(n=a.length;n--;)0===(r=a[n].name).indexOf("data-")&&R(o,r=d.camelCase(r.slice(5)),i[r]);d._data(o,"parsedAttrs",!0)}return i}return"object"==typeof e?this.each((function(){d.data(this,e)})):arguments.length>1?this.each((function(){d.data(this,e,t)})):o?R(o,e,d.data(o,e)):void 0},removeData:function(e){return this.each((function(){d.removeData(this,e)}))}}),d.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=d._data(e,t),n&&(!r||d.isArray(n)?r=d._data(e,t,d.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=d.queue(e,t),r=n.length,i=n.shift(),o=d._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){d.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return d._data(e,n)||d._data(e,n,{empty:d.Callbacks("once memory").add((function(){d._removeData(e,t+"queue"),d._removeData(e,n)}))})}}),d.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?d.queue(this[0],e):void 0===t?this:this.each((function(){var n=d.queue(this,e,t);d._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&d.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){d.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=d.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=d._data(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var z=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,q=["Top","Right","Bottom","Left"],B=function(e,t){return e=t||e,"none"===d.css(e,"display")||!d.contains(e.ownerDocument,e)},U=d.access=function(e,t,n,r,i,o,a){var s=0,l=e.length,u=null==n;if("object"===d.type(n))for(s in i=!0,n)d.access(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,d.isFunction(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(d(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):l?t(e[0],n):o},V=/^(?:checkbox|radio)$/i;!function(){var e=_.createDocumentFragment(),t=_.createElement("div"),n=_.createElement("input");if(t.setAttribute("className","t"),t.innerHTML=" <link/><table></table><a href='/a'>a</a>",f.leadingWhitespace=3===t.firstChild.nodeType,f.tbody=!t.getElementsByTagName("tbody").length,f.htmlSerialize=!!t.getElementsByTagName("link").length,f.html5Clone="<:nav></:nav>"!==_.createElement("nav").cloneNode(!0).outerHTML,n.type="checkbox",n.checked=!0,e.appendChild(n),f.appendChecked=n.checked,t.innerHTML="<textarea>x</textarea>",f.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,e.appendChild(t),t.innerHTML="<input type='radio' checked='checked' name='t'/>",f.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,f.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",(function(){f.noCloneEvent=!1})),t.cloneNode(!0).click()),null==f.deleteExpando){f.deleteExpando=!0;try{delete t.test}catch(e){f.deleteExpando=!1}}e=t=n=null}(),function(){var t,n,r=_.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})n="on"+t,(f[t+"Bubbles"]=n in e)||(r.setAttribute(n,"t"),f[t+"Bubbles"]=!1===r.attributes[n].expando);r=null}();var G=/^(?:input|select|textarea)$/i,X=/^key/,$=/^(?:mouse|contextmenu)|click/,J=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function K(){return!0}function Q(){return!1}function Z(){try{return _.activeElement}catch(e){}}function ee(e){var t=te.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}d.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,f,h,p,g,v,m=d._data(e);if(m){for(n.handler&&(n=(l=n).handler,i=l.selector),n.guid||(n.guid=d.guid++),(a=m.events)||(a=m.events={}),(c=m.handle)||((c=m.handle=function(e){return void 0===d||e&&d.event.triggered===e.type?void 0:d.event.dispatch.apply(c.elem,arguments)}).elem=e),s=(t=(t||"").match(j)||[""]).length;s--;)p=v=(o=Y.exec(t[s])||[])[1],g=(o[2]||"").split(".").sort(),p&&(u=d.event.special[p]||{},p=(i?u.delegateType:u.bindType)||p,u=d.event.special[p]||{},f=d.extend({type:p,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&d.expr.match.needsContext.test(i),namespace:g.join(".")},l),(h=a[p])||((h=a[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,r,g,c)||(e.addEventListener?e.addEventListener(p,c,!1):e.attachEvent&&e.attachEvent("on"+p,c))),u.add&&(u.add.call(e,f),f.handler.guid||(f.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,f):h.push(f),d.event.global[p]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,f,h,p,g,v,m=d.hasData(e)&&d._data(e);if(m&&(c=m.events)){for(u=(t=(t||"").match(j)||[""]).length;u--;)if(p=v=(s=Y.exec(t[u])||[])[1],g=(s[2]||"").split(".").sort(),p){for(f=d.event.special[p]||{},h=c[p=(r?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=h.length;o--;)a=h[o],!i&&v!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(h.splice(o,1),a.selector&&h.delegateCount--,f.remove&&f.remove.call(e,a));l&&!h.length&&(f.teardown&&!1!==f.teardown.call(e,g,m.handle)||d.removeEvent(e,p,m.handle),delete c[p])}else for(p in c)d.event.remove(e,p+t[u],n,r,!0);d.isEmptyObject(c)&&(delete m.handle,d._removeData(e,"events"))}},trigger:function(t,n,r,i){var o,a,s,l,c,f,h,p=[r||_],g=u.call(t,"type")?t.type:t,v=u.call(t,"namespace")?t.namespace.split("."):[];if(s=f=r=r||_,3!==r.nodeType&&8!==r.nodeType&&!J.test(g+d.event.triggered)&&(g.indexOf(".")>=0&&(v=g.split("."),g=v.shift(),v.sort()),a=g.indexOf(":")<0&&"on"+g,(t=t[d.expando]?t:new d.Event(g,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=v.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:d.makeArray(n,[t]),c=d.event.special[g]||{},i||!c.trigger||!1!==c.trigger.apply(r,n))){if(!i&&!c.noBubble&&!d.isWindow(r)){for(l=c.delegateType||g,J.test(l+g)||(s=s.parentNode);s;s=s.parentNode)p.push(s),f=s;f===(r.ownerDocument||_)&&p.push(f.defaultView||f.parentWindow||e)}for(h=0;(s=p[h++])&&!t.isPropagationStopped();)t.type=h>1?l:c.bindType||g,(o=(d._data(s,"events")||{})[t.type]&&d._data(s,"handle"))&&o.apply(s,n),(o=a&&s[a])&&o.apply&&d.acceptData(s)&&(t.result=o.apply(s,n),!1===t.result&&t.preventDefault());if(t.type=g,!i&&!t.isDefaultPrevented()&&(!c._default||!1===c._default.apply(p.pop(),n))&&d.acceptData(r)&&a&&r[g]&&!d.isWindow(r)){(f=r[a])&&(r[a]=null),d.event.triggered=g;try{r[g]()}catch(e){}d.event.triggered=void 0,f&&(r[a]=f)}return t.result}},dispatch:function(e){e=d.event.fix(e);var t,n,i,o,a,s=[],l=r.call(arguments),u=(d._data(this,"events")||{})[e.type]||[],c=d.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(s=d.event.handlers.call(this,e,u),t=0;(o=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,a=0;(i=o.handlers[a++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(i.namespace)||(e.handleObj=i,e.data=i.data,void 0!==(n=((d.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l))&&!1===(e.result=n)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(i=[],o=0;o<s;o++)void 0===i[n=(r=t[o]).selector+" "]&&(i[n]=r.needsContext?d(n,this).index(l)>=0:d.find(n,this,null,[l]).length),i[n]&&i.push(r);i.length&&a.push({elem:l,handlers:i})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[d.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=$.test(i)?this.mouseHooks:X.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new d.Event(o),t=r.length;t--;)e[n=r[t]]=o[n];return e.target||(e.target=o.srcElement||_),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):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,r,i,o=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=(r=e.target.ownerDocument||_).documentElement,n=r.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Z()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===Z()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(d.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return d.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=d.extend(new d.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?d.event.trigger(i,null,t):d.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},d.removeEvent=_.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(void 0===e[r]&&(e[r]=null),e.detachEvent(r,n))},d.Event=function(e,t){if(!(this instanceof d.Event))return new d.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&(!1===e.returnValue||e.getPreventDefault&&e.getPreventDefault())?K:Q):this.type=e,t&&d.extend(this,t),this.timeStamp=e&&e.timeStamp||d.now(),this[d.expando]=!0},d.Event.prototype={isDefaultPrevented:Q,isPropagationStopped:Q,isImmediatePropagationStopped:Q,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=K,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=K,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K,this.stopPropagation()}},d.each({mouseenter:"mouseover",mouseleave:"mouseout"},(function(e,t){d.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||d.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),f.submitBubbles||(d.event.special.submit={setup:function(){if(d.nodeName(this,"form"))return!1;d.event.add(this,"click._submit keypress._submit",(function(e){var t=e.target,n=d.nodeName(t,"input")||d.nodeName(t,"button")?t.form:void 0;n&&!d._data(n,"submitBubbles")&&(d.event.add(n,"submit._submit",(function(e){e._submit_bubble=!0})),d._data(n,"submitBubbles",!0))}))},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&d.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(d.nodeName(this,"form"))return!1;d.event.remove(this,"._submit")}}),f.changeBubbles||(d.event.special.change={setup:function(){if(G.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(d.event.add(this,"propertychange._change",(function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)})),d.event.add(this,"click._change",(function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),d.event.simulate("change",this,e,!0)}))),!1;d.event.add(this,"beforeactivate._change",(function(e){var t=e.target;G.test(t.nodeName)&&!d._data(t,"changeBubbles")&&(d.event.add(t,"change._change",(function(e){!this.parentNode||e.isSimulated||e.isTrigger||d.event.simulate("change",this.parentNode,e,!0)})),d._data(t,"changeBubbles",!0))}))},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return d.event.remove(this,"._change"),!G.test(this.nodeName)}}),f.focusinBubbles||d.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){d.event.simulate(t,e.target,d.event.fix(e),!0)};d.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=d._data(r,t);i||r.addEventListener(e,n,!0),d._data(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=d._data(r,t)-1;i?d._data(r,t,i):(r.removeEventListener(e,n,!0),d._removeData(r,t))}}})),d.fn.extend({on:function(e,t,n,r,i){var o,a;if("object"==typeof e){for(o in"string"!=typeof t&&(n=n||t,t=void 0),e)this.on(o,t,n,e[o],i);return this}if(null==n&&null==r?(r=t,n=t=void 0):null==r&&("string"==typeof t?(r=n,n=void 0):(r=n,n=t,t=void 0)),!1===r)r=Q;else if(!r)return this;return 1===i&&(a=r,(r=function(e){return d().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=d.guid++)),this.each((function(){d.event.add(this,e,r,n,t)}))},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,d(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Q),this.each((function(){d.event.remove(this,e,n,t)}))},trigger:function(e,t){return this.each((function(){d.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return d.event.trigger(e,t,n,!0)}});var te="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ne=/ jQuery\d+="(?:null|\d+)"/g,re=new RegExp("<(?:"+te+")[\\s/>]","i"),ie=/^\s+/,oe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ae=/<([\w:]+)/,se=/<tbody/i,le=/<|&#?\w+;/,ue=/<(?:script|style|link)/i,ce=/checked\s*(?:[^=]|=\s*.checked.)/i,fe=/^$|\/(?:java|ecma)script/i,de=/^true\/(.*)/,he=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,pe={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:f.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},ge=ee(_).appendChild(_.createElement("div"));function ve(e,t){var n,r,i=0,o=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||d.nodeName(r,t)?o.push(r):d.merge(o,ve(r,t));return void 0===t||t&&d.nodeName(e,t)?d.merge([e],o):o}function me(e){V.test(e.type)&&(e.defaultChecked=e.checked)}function ye(e,t){return d.nodeName(e,"table")&&d.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function be(e){return e.type=(null!==d.find.attr(e,"type"))+"/"+e.type,e}function we(e){var t=de.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function xe(e,t){for(var n,r=0;null!=(n=e[r]);r++)d._data(n,"globalEval",!t||d._data(t[r],"globalEval"))}function Ce(e,t){if(1===t.nodeType&&d.hasData(e)){var n,r,i,o=d._data(e),a=d._data(t,o),s=o.events;if(s)for(n in delete a.handle,a.events={},s)for(r=0,i=s[n].length;r<i;r++)d.event.add(t,n,s[n][r]);a.data&&(a.data=d.extend({},a.data))}}function Se(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!f.noCloneEvent&&t[d.expando]){for(r in(i=d._data(t)).events)d.removeEvent(t,r,i.handle);t.removeAttribute(d.expando)}"script"===n&&t.text!==e.text?(be(t).text=e.text,we(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),f.html5Clone&&e.innerHTML&&!d.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&V.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)}}pe.optgroup=pe.option,pe.tbody=pe.tfoot=pe.colgroup=pe.caption=pe.thead,pe.th=pe.td,d.extend({clone:function(e,t,n){var r,i,o,a,s,l=d.contains(e.ownerDocument,e);if(f.html5Clone||d.isXMLDoc(e)||!re.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(ge.innerHTML=e.outerHTML,ge.removeChild(o=ge.firstChild)),!(f.noCloneEvent&&f.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||d.isXMLDoc(e)))for(r=ve(o),s=ve(e),a=0;null!=(i=s[a]);++a)r[a]&&Se(i,r[a]);if(t)if(n)for(s=s||ve(e),r=r||ve(o),a=0;null!=(i=s[a]);a++)Ce(i,r[a]);else Ce(e,o);return(r=ve(o,"script")).length>0&&xe(r,!l&&ve(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){for(var i,o,a,s,l,u,c,h=e.length,p=ee(t),g=[],v=0;v<h;v++)if((o=e[v])||0===o)if("object"===d.type(o))d.merge(g,o.nodeType?[o]:o);else if(le.test(o)){for(s=s||p.appendChild(t.createElement("div")),l=(ae.exec(o)||["",""])[1].toLowerCase(),c=pe[l]||pe._default,s.innerHTML=c[1]+o.replace(oe,"<$1></$2>")+c[2],i=c[0];i--;)s=s.lastChild;if(!f.leadingWhitespace&&ie.test(o)&&g.push(t.createTextNode(ie.exec(o)[0])),!f.tbody)for(i=(o="table"!==l||se.test(o)?"<table>"!==c[1]||se.test(o)?0:s:s.firstChild)&&o.childNodes.length;i--;)d.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u);for(d.merge(g,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=p.lastChild}else g.push(t.createTextNode(o));for(s&&p.removeChild(s),f.appendChecked||d.grep(ve(g,"input"),me),v=0;o=g[v++];)if((!r||-1===d.inArray(o,r))&&(a=d.contains(o.ownerDocument,o),s=ve(p.appendChild(o),"script"),a&&xe(s),n))for(i=0;o=s[i++];)fe.test(o.type||"")&&n.push(o);return s=null,p},cleanData:function(e,t){for(var r,i,o,a,s=0,l=d.expando,u=d.cache,c=f.deleteExpando,h=d.event.special;null!=(r=e[s]);s++)if((t||d.acceptData(r))&&(a=(o=r[l])&&u[o])){if(a.events)for(i in a.events)h[i]?d.event.remove(r,i):d.removeEvent(r,i,a.handle);u[o]&&(delete u[o],c?delete r[l]:void 0!==r.removeAttribute?r.removeAttribute(l):r[l]=null,n.push(o))}}}),d.fn.extend({text:function(e){return U(this,(function(e){return void 0===e?d.text(this):this.empty().append((this[0]&&this[0].ownerDocument||_).createTextNode(e))}),null,e,arguments.length)},append:function(){return this.domManip(arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ye(this,e).appendChild(e)}))},prepend:function(){return this.domManip(arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ye(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,r=e?d.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||d.cleanData(ve(n)),n.parentNode&&(t&&d.contains(n.ownerDocument,n)&&xe(ve(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&d.cleanData(ve(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&d.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return d.clone(this,e,t)}))},html:function(e){return U(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(ne,""):void 0;if("string"==typeof e&&!ue.test(e)&&(f.htmlSerialize||!re.test(e))&&(f.leadingWhitespace||!ie.test(e))&&!pe[(ae.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(oe,"<$1></$2>");try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(d.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,(function(t){e=this.parentNode,d.cleanData(ve(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=i.apply([],e);var n,r,o,a,s,l,u=0,c=this.length,h=this,p=c-1,g=e[0],v=d.isFunction(g);if(v||c>1&&"string"==typeof g&&!f.checkClone&&ce.test(g))return this.each((function(n){var r=h.eq(n);v&&(e[0]=g.call(this,n,r.html())),r.domManip(e,t)}));if(c&&(n=(l=d.buildFragment(e,this[0].ownerDocument,!1,this)).firstChild,1===l.childNodes.length&&(l=n),n)){for(o=(a=d.map(ve(l,"script"),be)).length;u<c;u++)r=l,u!==p&&(r=d.clone(r,!0,!0),o&&d.merge(a,ve(r,"script"))),t.call(this[u],r,u);if(o)for(s=a[a.length-1].ownerDocument,d.map(a,we),u=0;u<o;u++)r=a[u],fe.test(r.type||"")&&!d._data(r,"globalEval")&&d.contains(s,r)&&(r.src?d._evalUrl&&d._evalUrl(r.src):d.globalEval((r.text||r.textContent||r.innerHTML||"").replace(he,"")));l=n=null}return this}}),d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){d.fn[e]=function(e){for(var n,r=0,i=[],a=d(e),s=a.length-1;r<=s;r++)n=r===s?this:this.clone(!0),d(a[r])[t](n),o.apply(i,n.get());return this.pushStack(i)}}));var _e,Te,ke,De,Le={};function Ae(t,n){var r=d(n.createElement(t)).appendTo(n.body),i=e.getDefaultComputedStyle?e.getDefaultComputedStyle(r[0]).display:d.css(r[0],"display");return r.detach(),i}function Ne(e){var t=_,n=Le[e];return n||("none"!==(n=Ae(e,t))&&n||((t=((_e=(_e||d("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||_e[0].contentDocument).document).write(),t.close(),n=Ae(e,t),_e.detach()),Le[e]=n),n}(De=_.createElement("div")).innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",(Te=De.getElementsByTagName("a")[0]).style.cssText="float:left;opacity:.5",f.opacity=/^0.5/.test(Te.style.opacity),f.cssFloat=!!Te.style.cssFloat,De.style.backgroundClip="content-box",De.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===De.style.backgroundClip,Te=De=null,f.shrinkWrapBlocks=function(){var e,t,n;if(null==ke){if(!(e=_.getElementsByTagName("body")[0]))return;t=_.createElement("div"),n=_.createElement("div"),e.appendChild(t).appendChild(n),ke=!1,void 0!==n.style.zoom&&(n.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0;width:1px;padding:1px;zoom:1",n.innerHTML="<div></div>",n.firstChild.style.width="5px",ke=3!==n.offsetWidth),e.removeChild(t),e=t=n=null}return ke};var je,Me,Ee=/^margin/,Ie=new RegExp("^("+z+")(?!px)[a-z%]+$","i"),Oe=/^(top|right|bottom|left)$/;function Pe(e,t){return{get:function(){var n=e();if(null!=n){if(!n)return(this.get=t).apply(this,arguments);delete this.get}}}}e.getComputedStyle?(je=function(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)},Me=function(e,t,n){var r,i,o,a,s=e.style;return a=(n=n||je(e))?n.getPropertyValue(t)||n[t]:void 0,n&&(""!==a||d.contains(e.ownerDocument,e)||(a=d.style(e,t)),Ie.test(a)&&Ee.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0===a?a:a+""}):_.documentElement.currentStyle&&(je=function(e){return e.currentStyle},Me=function(e,t,n){var r,i,o,a,s=e.style;return null==(a=(n=n||je(e))?n[t]:void 0)&&s&&s[t]&&(a=s[t]),Ie.test(a)&&!Oe.test(t)&&(r=s.left,(o=(i=e.runtimeStyle)&&i.left)&&(i.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=r,o&&(i.left=o)),void 0===a?a:a+""||"auto"}),function(){var t,n,r,i,o,a,s=_.createElement("div"),l="border:0;width:0;height:0;position:absolute;top:0;left:-9999px";function u(){var t,n,s=_.getElementsByTagName("body")[0];s&&(t=_.createElement("div"),n=_.createElement("div"),t.style.cssText=l,s.appendChild(t).appendChild(n),n.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;display:block;padding:1px;border:1px;width:4px;margin-top:1%;top:1%",d.swap(s,null!=s.style.zoom?{zoom:1}:{},(function(){r=4===n.offsetWidth})),i=!0,o=!1,a=!0,e.getComputedStyle&&(o="1%"!==(e.getComputedStyle(n,null)||{}).top,i="4px"===(e.getComputedStyle(n,null)||{width:"4px"}).width),s.removeChild(t),n=s=null)}s.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",(t=s.getElementsByTagName("a")[0]).style.cssText="float:left;opacity:.5",f.opacity=/^0.5/.test(t.style.opacity),f.cssFloat=!!t.style.cssFloat,s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===s.style.backgroundClip,t=s=null,d.extend(f,{reliableHiddenOffsets:function(){if(null!=n)return n;var e,t,r,i=_.createElement("div"),o=_.getElementsByTagName("body")[0];return o?(i.setAttribute("className","t"),i.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",(e=_.createElement("div")).style.cssText=l,o.appendChild(e).appendChild(i),i.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(t=i.getElementsByTagName("td"))[0].style.cssText="padding:0;margin:0;border:0;display:none",r=0===t[0].offsetHeight,t[0].style.display="",t[1].style.display="none",n=r&&0===t[0].offsetHeight,o.removeChild(e),i=o=null,n):void 0},boxSizing:function(){return null==r&&u(),r},boxSizingReliable:function(){return null==i&&u(),i},pixelPosition:function(){return null==o&&u(),o},reliableMarginRight:function(){var t,n,r,i;if(null==a&&e.getComputedStyle){if(!(t=_.getElementsByTagName("body")[0]))return;n=_.createElement("div"),r=_.createElement("div"),n.style.cssText=l,t.appendChild(n).appendChild(r),(i=r.appendChild(_.createElement("div"))).style.cssText=r.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0",i.style.marginRight=i.style.width="0",r.style.width="1px",a=!parseFloat((e.getComputedStyle(i,null)||{}).marginRight),t.removeChild(n)}return a}})}(),d.swap=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i};var Re=/alpha\([^)]*\)/i,He=/opacity\s*=\s*([^)]*)/,Fe=/^(none|table(?!-c[ea]).+)/,We=new RegExp("^("+z+")(.*)$","i"),ze=new RegExp("^([+-])=("+z+")","i"),qe={position:"absolute",visibility:"hidden",display:"block"},Be={letterSpacing:0,fontWeight:400},Ue=["Webkit","O","Moz","ms"];function Ve(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Ue.length;i--;)if((t=Ue[i]+n)in e)return t;return r}function Ge(e,t){for(var n,r,i,o=[],a=0,s=e.length;a<s;a++)(r=e[a]).style&&(o[a]=d._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&B(r)&&(o[a]=d._data(r,"olddisplay",Ne(r.nodeName)))):o[a]||(i=B(r),(n&&"none"!==n||!i)&&d._data(r,"olddisplay",i?n:d.css(r,"display"))));for(a=0;a<s;a++)(r=e[a]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function Xe(e,t,n){var r=We.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function $e(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=d.css(e,n+q[o],!0,i)),r?("content"===n&&(a-=d.css(e,"padding"+q[o],!0,i)),"margin"!==n&&(a-=d.css(e,"border"+q[o]+"Width",!0,i))):(a+=d.css(e,"padding"+q[o],!0,i),"padding"!==n&&(a+=d.css(e,"border"+q[o]+"Width",!0,i)));return a}function Je(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=je(e),a=f.boxSizing()&&"border-box"===d.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(((i=Me(e,t,o))<0||null==i)&&(i=e.style[t]),Ie.test(i))return i;r=a&&(f.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+$e(e,t,n||(a?"border":"content"),r,o)+"px"}function Ye(e,t,n,r,i){return new Ye.prototype.init(e,t,n,r,i)}d.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Me(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:f.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=d.camelCase(t),l=e.style;if(t=d.cssProps[s]||(d.cssProps[s]=Ve(l,s)),a=d.cssHooks[t]||d.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];if("string"==(o=typeof n)&&(i=ze.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(d.css(e,t)),o="number"),null!=n&&n==n&&("number"!==o||d.cssNumber[s]||(n+="px"),f.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!a||!("set"in a)||void 0!==(n=a.set(e,n,r))))try{l[t]="",l[t]=n}catch(e){}}},css:function(e,t,n,r){var i,o,a,s=d.camelCase(t);return t=d.cssProps[s]||(d.cssProps[s]=Ve(e.style,s)),(a=d.cssHooks[t]||d.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=Me(e,t,r)),"normal"===o&&t in Be&&(o=Be[t]),""===n||n?(i=parseFloat(o),!0===n||d.isNumeric(i)?i||0:o):o}}),d.each(["height","width"],(function(e,t){d.cssHooks[t]={get:function(e,n,r){if(n)return 0===e.offsetWidth&&Fe.test(d.css(e,"display"))?d.swap(e,qe,(function(){return Je(e,t,r)})):Je(e,t,r)},set:function(e,n,r){var i=r&&je(e);return Xe(0,n,r?$e(e,t,r,f.boxSizing()&&"border-box"===d.css(e,"boxSizing",!1,i),i):0)}}})),f.opacity||(d.cssHooks.opacity={get:function(e,t){return He.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=d.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===d.trim(o.replace(Re,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=Re.test(o)?o.replace(Re,i):o+" "+i)}}),d.cssHooks.marginRight=Pe(f.reliableMarginRight,(function(e,t){if(t)return d.swap(e,{display:"inline-block"},Me,[e,"marginRight"])})),d.each({margin:"",padding:"",border:"Width"},(function(e,t){d.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+q[r]+t]=o[r]||o[r-2]||o[0];return i}},Ee.test(e)||(d.cssHooks[e+t].set=Xe)})),d.fn.extend({css:function(e,t){return U(this,(function(e,t,n){var r,i,o={},a=0;if(d.isArray(t)){for(r=je(e),i=t.length;a<i;a++)o[t[a]]=d.css(e,t[a],!1,r);return o}return void 0!==n?d.style(e,t,n):d.css(e,t)}),e,t,arguments.length>1)},show:function(){return Ge(this,!0)},hide:function(){return Ge(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){B(this)?d(this).show():d(this).hide()}))}}),d.Tween=Ye,Ye.prototype={constructor:Ye,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(d.cssNumber[n]?"":"px")},cur:function(){var e=Ye.propHooks[this.prop];return e&&e.get?e.get(this):Ye.propHooks._default.get(this)},run:function(e){var t,n=Ye.propHooks[this.prop];return this.options.duration?this.pos=t=d.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ye.propHooks._default.set(this),this}},Ye.prototype.init.prototype=Ye.prototype,Ye.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=d.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){d.fx.step[e.prop]?d.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[d.cssProps[e.prop]]||d.cssHooks[e.prop])?d.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Ye.propHooks.scrollTop=Ye.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},d.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},d.fx=Ye.prototype.init,d.fx.step={};var Ke,Qe,Ze=/^(?:toggle|show|hide)$/,et=new RegExp("^(?:([+-])=|)("+z+")([a-z%]*)$","i"),tt=/queueHooks$/,nt=[function(e,t,n){var r,i,o,a,s,l,u,c,h=this,p={},g=e.style,v=e.nodeType&&B(e),m=d._data(e,"fxshow");for(r in n.queue||(null==(s=d._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,h.always((function(){h.always((function(){s.unqueued--,d.queue(e,"fx").length||s.empty.fire()}))}))),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[g.overflow,g.overflowX,g.overflowY],u=d.css(e,"display"),c=Ne(e.nodeName),"none"===u&&(u=c),"inline"===u&&"none"===d.css(e,"float")&&(f.inlineBlockNeedsLayout&&"inline"!==c?g.zoom=1:g.display="inline-block")),n.overflow&&(g.overflow="hidden",f.shrinkWrapBlocks()||h.always((function(){g.overflow=n.overflow[0],g.overflowX=n.overflow[1],g.overflowY=n.overflow[2]}))),t)if(i=t[r],Ze.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(v?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;v=!0}p[r]=m&&m[r]||d.style(e,r)}if(!d.isEmptyObject(p))for(r in m?"hidden"in m&&(v=m.hidden):m=d._data(e,"fxshow",{}),o&&(m.hidden=!v),v?d(e).show():h.done((function(){d(e).hide()})),h.done((function(){var t;for(t in d._removeData(e,"fxshow"),p)d.style(e,t,p[t])})),p)a=at(v?m[r]:0,r,h),r in m||(m[r]=a.start,v&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}],rt={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=et.exec(t),o=i&&i[3]||(d.cssNumber[e]?"":"px"),a=(d.cssNumber[e]||"px"!==o&&+r)&&et.exec(d.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do{a/=s=s||".5",d.style(n.elem,e,a+o)}while(s!==(s=n.cur()/r)&&1!==s&&--l)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};function it(){return setTimeout((function(){Ke=void 0})),Ke=d.now()}function ot(e,t){var n,r={height:e},i=0;for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=q[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function at(e,t,n){for(var r,i=(rt[t]||[]).concat(rt["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function st(e,t,n){var r,i,o=0,a=nt.length,s=d.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=Ke||it(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(r);return s.notifyWith(e,[u,r,n]),r<1&&a?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:d.extend({},t),opts:d.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Ke||it(),duration:n.duration,tweens:[],createTween:function(t,n){var r=d.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=d.camelCase(n)],o=e[n],d.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=d.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,u.opts.specialEasing);o<a;o++)if(r=nt[o].call(u,e,c,u.opts))return r;return d.map(c,at,u),d.isFunction(u.opts.start)&&u.opts.start.call(e,u),d.fx.timer(d.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}d.Animation=d.extend(st,{tweener:function(e,t){d.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;r<i;r++)n=e[r],rt[n]=rt[n]||[],rt[n].unshift(t)},prefilter:function(e,t){t?nt.unshift(e):nt.push(e)}}),d.speed=function(e,t,n){var r=e&&"object"==typeof e?d.extend({},e):{complete:n||!n&&t||d.isFunction(e)&&e,duration:e,easing:n&&t||t&&!d.isFunction(t)&&t};return r.duration=d.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in d.fx.speeds?d.fx.speeds[r.duration]:d.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){d.isFunction(r.old)&&r.old.call(this),r.queue&&d.dequeue(this,r.queue)},r},d.fn.extend({fadeTo:function(e,t,n,r){return this.filter(B).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=d.isEmptyObject(e),o=d.speed(t,n,r),a=function(){var t=st(this,d.extend({},e),o);(i||d._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=d.timers,a=d._data(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&tt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||d.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=d._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=d.timers,a=r?r.length:0;for(n.finish=!0,d.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),d.each(["toggle","show","hide"],(function(e,t){var n=d.fn[t];d.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ot(t,!0),e,r,i)}})),d.each({slideDown:ot("show"),slideUp:ot("hide"),slideToggle:ot("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){d.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),d.timers=[],d.fx.tick=function(){var e,t=d.timers,n=0;for(Ke=d.now();n<t.length;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||d.fx.stop(),Ke=void 0},d.fx.timer=function(e){d.timers.push(e),e()?d.fx.start():d.timers.pop()},d.fx.interval=13,d.fx.start=function(){Qe||(Qe=setInterval(d.fx.tick,d.fx.interval))},d.fx.stop=function(){clearInterval(Qe),Qe=null},d.fx.speeds={slow:600,fast:200,_default:400},d.fn.delay=function(e,t){return e=d.fx&&d.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}}))},function(){var e,t,n,r,i=_.createElement("div");i.setAttribute("className","t"),i.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",e=i.getElementsByTagName("a")[0],r=(n=_.createElement("select")).appendChild(_.createElement("option")),t=i.getElementsByTagName("input")[0],e.style.cssText="top:1px",f.getSetAttribute="t"!==i.className,f.style=/top/.test(e.getAttribute("style")),f.hrefNormalized="/a"===e.getAttribute("href"),f.checkOn=!!t.value,f.optSelected=r.selected,f.enctype=!!_.createElement("form").enctype,n.disabled=!0,f.optDisabled=!r.disabled,(t=_.createElement("input")).setAttribute("value",""),f.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),f.radioValue="t"===t.value,e=t=n=r=i=null}();var lt=/\r/g;d.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=d.isFunction(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,d(this).val()):e)?i="":"number"==typeof i?i+="":d.isArray(i)&&(i=d.map(i,(function(e){return null==e?"":e+""}))),(t=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=d.valHooks[i.type]||d.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(lt,""):null==n?"":n:void 0}}),d.extend({valHooks:{option:{get:function(e){var t=d.find.attr(e,"value");return null!=t?t:d.text(e)}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,l=i<0?s:o?i:0;l<s;l++)if(((n=r[l]).selected||l===i)&&(f.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!d.nodeName(n.parentNode,"optgroup"))){if(t=d(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=d.makeArray(t),a=i.length;a--;)if(r=i[a],d.inArray(d.valHooks.option.get(r),o)>=0)try{r.selected=n=!0}catch(e){r.scrollHeight}else r.selected=!1;return n||(e.selectedIndex=-1),i}}}}),d.each(["radio","checkbox"],(function(){d.valHooks[this]={set:function(e,t){if(d.isArray(t))return e.checked=d.inArray(d(e).val(),t)>=0}},f.checkOn||(d.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var ut,ct,ft=d.expr.attrHandle,dt=/^(?:checked|selected)$/i,ht=f.getSetAttribute,pt=f.input;d.fn.extend({attr:function(e,t){return U(this,d.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){d.removeAttr(this,e)}))}}),d.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?d.prop(e,t,n):(1===o&&d.isXMLDoc(e)||(t=t.toLowerCase(),r=d.attrHooks[t]||(d.expr.match.bool.test(t)?ct:ut)),void 0===n?r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=d.find.attr(e,t))?void 0:i:null!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):void d.removeAttr(e,t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(j);if(o&&1===e.nodeType)for(;n=o[i++];)r=d.propFix[n]||n,d.expr.match.bool.test(n)?pt&&ht||!dt.test(n)?e[r]=!1:e[d.camelCase("default-"+n)]=e[r]=!1:d.attr(e,n,""),e.removeAttribute(ht?n:r)},attrHooks:{type:{set:function(e,t){if(!f.radioValue&&"radio"===t&&d.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),ct={set:function(e,t,n){return!1===t?d.removeAttr(e,n):pt&&ht||!dt.test(n)?e.setAttribute(!ht&&d.propFix[n]||n,n):e[d.camelCase("default-"+n)]=e[n]=!0,n}},d.each(d.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=ft[t]||d.find.attr;ft[t]=pt&&ht||!dt.test(t)?function(e,t,r){var i,o;return r||(o=ft[t],ft[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,ft[t]=o),i}:function(e,t,n){if(!n)return e[d.camelCase("default-"+t)]?t.toLowerCase():null}})),pt&&ht||(d.attrHooks.value={set:function(e,t,n){if(!d.nodeName(e,"input"))return ut&&ut.set(e,t,n);e.defaultValue=t}}),ht||(ut={set:function(e,t,n){var r=e.getAttributeNode(n);if(r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n))return t}},ft.id=ft.name=ft.coords=function(e,t,n){var r;if(!n)return(r=e.getAttributeNode(t))&&""!==r.value?r.value:null},d.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:ut.set},d.attrHooks.contenteditable={set:function(e,t,n){ut.set(e,""!==t&&t,n)}},d.each(["width","height"],(function(e,t){d.attrHooks[t]={set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}}}))),f.style||(d.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var gt=/^(?:input|select|textarea|button|object)$/i,vt=/^(?:a|area)$/i;d.fn.extend({prop:function(e,t){return U(this,d.prop,e,t,arguments.length>1)},removeProp:function(e){return e=d.propFix[e]||e,this.each((function(){try{this[e]=void 0,delete this[e]}catch(e){}}))}}),d.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return(1!==o||!d.isXMLDoc(e))&&(t=d.propFix[t]||t,i=d.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=d.find.attr(e,"tabindex");return t?parseInt(t,10):gt.test(e.nodeName)||vt.test(e.nodeName)&&e.href?0:-1}}}}),f.hrefNormalized||d.each(["href","src"],(function(e,t){d.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),f.optSelected||(d.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),d.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){d.propFix[this.toLowerCase()]=this})),f.enctype||(d.propFix.enctype="encoding");var mt=/[\t\r\n\f]/g;d.fn.extend({addClass:function(e){var t,n,r,i,o,a,s=0,l=this.length,u="string"==typeof e&&e;if(d.isFunction(e))return this.each((function(t){d(this).addClass(e.call(this,t,this.className))}));if(u)for(t=(e||"").match(j)||[];s<l;s++)if(r=1===(n=this[s]).nodeType&&(n.className?(" "+n.className+" ").replace(mt," "):" ")){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=d.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(e){var t,n,r,i,o,a,s=0,l=this.length,u=0===arguments.length||"string"==typeof e&&e;if(d.isFunction(e))return this.each((function(t){d(this).removeClass(e.call(this,t,this.className))}));if(u)for(t=(e||"").match(j)||[];s<l;s++)if(r=1===(n=this[s]).nodeType&&(n.className?(" "+n.className+" ").replace(mt," "):"")){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");a=e?d.trim(r):"",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):d.isFunction(e)?this.each((function(n){d(this).toggleClass(e.call(this,n,this.className,t),t)})):this.each((function(){if("string"===n)for(var t,r=0,i=d(this),o=e.match(j)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else"undefined"!==n&&"boolean"!==n||(this.className&&d._data(this,"__className__",this.className),this.className=this.className||!1===e?"":d._data(this,"__className__")||"")}))},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(mt," ").indexOf(t)>=0)return!0;return!1}}),d.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){d.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),d.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,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var yt=d.now(),bt=/\?/,wt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;d.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,r=null,i=d.trim(t+"");return i&&!d.trim(i.replace(wt,(function(e,t,i,o){return n&&t&&(r=0),0===r?e:(n=i||t,r+=!o-!i,"")})))?Function("return "+i)():d.error("Invalid JSON: "+t)},d.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{e.DOMParser?n=(new DOMParser).parseFromString(t,"text/xml"):((n=new ActiveXObject("Microsoft.XMLDOM")).async="false",n.loadXML(t))}catch(e){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||d.error("Invalid XML: "+t),n};var xt,Ct,St=/#.*$/,_t=/([?&])_=[^&]*/,Tt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,kt=/^(?:GET|HEAD)$/,Dt=/^\/\//,Lt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,At={},Nt={},jt="*/".concat("*");try{Ct=location.href}catch(e){(Ct=_.createElement("a")).href="",Ct=Ct.href}function Mt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(j)||[];if(d.isFunction(n))for(;r=o[i++];)"+"===r.charAt(0)?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Et(e,t,n,r){var i={},o=e===Nt;function a(s){var l;return i[s]=!0,d.each(e[s]||[],(function(e,s){var u=s(t,n,r);return"string"!=typeof u||o||i[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),a(u),!1)})),l}return a(t.dataTypes[0])||!i["*"]&&a("*")}function It(e,t){var n,r,i=d.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((i[r]?e:n||(n={}))[r]=t[r]);return n&&d.extend(!0,e,n),e}xt=Lt.exec(Ct.toLowerCase())||[],d.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ct,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":jt,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":d.parseJSON,"text xml":d.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?It(It(e,d.ajaxSettings),t):It(d.ajaxSettings,e)},ajaxPrefilter:Mt(At),ajaxTransport:Mt(Nt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,r,i,o,a,s,l,u,c=d.ajaxSetup({},t),f=c.context||c,h=c.context&&(f.nodeType||f.jquery)?d(f):d.event,p=d.Deferred(),g=d.Callbacks("once memory"),v=c.statusCode||{},m={},y={},b=0,w="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!u)for(u={};t=Tt.exec(o);)u[t[1].toLowerCase()]=t[2];t=u[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,m[e]=t),this},overrideMimeType:function(e){return b||(c.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)v[t]=[v[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){var t=e||w;return l&&l.abort(t),C(0,t),this}};if(p.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,c.url=((e||c.url||Ct)+"").replace(St,"").replace(Dt,xt[1]+"//"),c.type=t.method||t.type||c.method||c.type,c.dataTypes=d.trim(c.dataType||"*").toLowerCase().match(j)||[""],null==c.crossDomain&&(n=Lt.exec(c.url.toLowerCase()),c.crossDomain=!(!n||n[1]===xt[1]&&n[2]===xt[2]&&(n[3]||("http:"===n[1]?"80":"443"))===(xt[3]||("http:"===xt[1]?"80":"443")))),c.data&&c.processData&&"string"!=typeof c.data&&(c.data=d.param(c.data,c.traditional)),Et(At,c,t,x),2===b)return x;for(r in(s=c.global)&&0==d.active++&&d.event.trigger("ajaxStart"),c.type=c.type.toUpperCase(),c.hasContent=!kt.test(c.type),i=c.url,c.hasContent||(c.data&&(i=c.url+=(bt.test(i)?"&":"?")+c.data,delete c.data),!1===c.cache&&(c.url=_t.test(i)?i.replace(_t,"$1_="+yt++):i+(bt.test(i)?"&":"?")+"_="+yt++)),c.ifModified&&(d.lastModified[i]&&x.setRequestHeader("If-Modified-Since",d.lastModified[i]),d.etag[i]&&x.setRequestHeader("If-None-Match",d.etag[i])),(c.data&&c.hasContent&&!1!==c.contentType||t.contentType)&&x.setRequestHeader("Content-Type",c.contentType),x.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+("*"!==c.dataTypes[0]?", "+jt+"; q=0.01":""):c.accepts["*"]),c.headers)x.setRequestHeader(r,c.headers[r]);if(c.beforeSend&&(!1===c.beforeSend.call(f,x,c)||2===b))return x.abort();for(r in w="abort",{success:1,error:1,complete:1})x[r](c[r]);if(l=Et(Nt,c,t,x)){x.readyState=1,s&&h.trigger("ajaxSend",[x,c]),c.async&&c.timeout>0&&(a=setTimeout((function(){x.abort("timeout")}),c.timeout));try{b=1,l.send(m,C)}catch(e){if(!(b<2))throw e;C(-1,e)}}else C(-1,"No Transport");function C(e,t,n,r){var u,m,y,w,C,S=t;2!==b&&(b=2,a&&clearTimeout(a),l=void 0,o=r||"",x.readyState=e>0?4:0,u=e>=200&&e<300||304===e,n&&(w=function(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){l.unshift(a);break}if(l[0]in n)o=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),n[o]}(c,x,n)),w=function(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(c,w,x,u),u?(c.ifModified&&((C=x.getResponseHeader("Last-Modified"))&&(d.lastModified[i]=C),(C=x.getResponseHeader("etag"))&&(d.etag[i]=C)),204===e||"HEAD"===c.type?S="nocontent":304===e?S="notmodified":(S=w.state,m=w.data,u=!(y=w.error))):(y=S,!e&&S||(S="error",e<0&&(e=0))),x.status=e,x.statusText=(t||S)+"",u?p.resolveWith(f,[m,S,x]):p.rejectWith(f,[x,S,y]),x.statusCode(v),v=void 0,s&&h.trigger(u?"ajaxSuccess":"ajaxError",[x,c,u?m:y]),g.fireWith(f,[x,S]),s&&(h.trigger("ajaxComplete",[x,c]),--d.active||d.event.trigger("ajaxStop")))}return x},getJSON:function(e,t,n){return d.get(e,t,n,"json")},getScript:function(e,t){return d.get(e,void 0,t,"script")}}),d.each(["get","post"],(function(e,t){d[t]=function(e,n,r,i){return d.isFunction(n)&&(i=i||r,r=n,n=void 0),d.ajax({url:e,type:t,dataType:i,data:n,success:r})}})),d.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){d.fn[t]=function(e){return this.on(t,e)}})),d._evalUrl=function(e){return d.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},d.fn.extend({wrapAll:function(e){if(d.isFunction(e))return this.each((function(t){d(this).wrapAll(e.call(this,t))}));if(this[0]){var t=d(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 d.isFunction(e)?this.each((function(t){d(this).wrapInner(e.call(this,t))})):this.each((function(){var t=d(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=d.isFunction(e);return this.each((function(n){d(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(){return this.parent().each((function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)})).end()}}),d.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!f.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||d.css(e,"display"))},d.expr.filters.visible=function(e){return!d.expr.filters.hidden(e)};var Ot=/%20/g,Pt=/\[\]$/,Rt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,Ft=/^(?:input|select|textarea|keygen)/i;function Wt(e,t,n,r){var i;if(d.isArray(t))d.each(t,(function(t,i){n||Pt.test(e)?r(e,i):Wt(e+"["+("object"==typeof i?t:"")+"]",i,n,r)}));else if(n||"object"!==d.type(t))r(e,t);else for(i in t)Wt(e+"["+i+"]",t[i],n,r)}d.param=function(e,t){var n,r=[],i=function(e,t){t=d.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=d.ajaxSettings&&d.ajaxSettings.traditional),d.isArray(e)||e.jquery&&!d.isPlainObject(e))d.each(e,(function(){i(this.name,this.value)}));else for(n in e)Wt(n,e[n],t,i);return r.join("&").replace(Ot,"+")},d.fn.extend({serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=d.prop(this,"elements");return e?d.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!d(this).is(":disabled")&&Ft.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!V.test(e))})).map((function(e,t){var n=d(this).val();return null==n?null:d.isArray(n)?d.map(n,(function(e){return{name:t.name,value:e.replace(Rt,"\r\n")}})):{name:t.name,value:n.replace(Rt,"\r\n")}})).get()}}),d.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Ut()||function(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}()}:Ut;var zt=0,qt={},Bt=d.ajaxSettings.xhr();function Ut(){try{return new e.XMLHttpRequest}catch(e){}}e.ActiveXObject&&d(e).on("unload",(function(){for(var e in qt)qt[e](void 0,!0)})),f.cors=!!Bt&&"withCredentials"in Bt,(Bt=f.ajax=!!Bt)&&d.ajaxTransport((function(e){var t;if(!e.crossDomain||f.cors)return{send:function(n,r){var i,o=e.xhr(),a=++zt;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)o[i]=e.xhrFields[i];for(i in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)void 0!==n[i]&&o.setRequestHeader(i,n[i]+"");o.send(e.hasContent&&e.data||null),t=function(n,i){var s,l,u;if(t&&(i||4===o.readyState))if(delete qt[a],t=void 0,o.onreadystatechange=d.noop,i)4!==o.readyState&&o.abort();else{u={},s=o.status,"string"==typeof o.responseText&&(u.text=o.responseText);try{l=o.statusText}catch(e){l=""}s||!e.isLocal||e.crossDomain?1223===s&&(s=204):s=u.text?200:404}u&&r(s,l,u,o.getAllResponseHeaders())},e.async?4===o.readyState?setTimeout(t):o.onreadystatechange=qt[a]=t:t()},abort:function(){t&&t(void 0,!0)}}})),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return d.globalEval(e),e}}}),d.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)})),d.ajaxTransport("script",(function(e){if(e.crossDomain){var t,n=_.head||d("head")[0]||_.documentElement;return{send:function(r,i){(t=_.createElement("script")).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||i(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}}));var Vt=[],Gt=/(=)\?(?=&|$)|\?\?/;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Vt.pop()||d.expando+"_"+yt++;return this[e]=!0,e}}),d.ajaxPrefilter("json jsonp",(function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(Gt.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=d.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Gt,"$1"+i):!1!==t.jsonp&&(t.url+=(bt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||d.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always((function(){e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Vt.push(i)),a&&d.isFunction(o)&&o(a[0]),a=o=void 0})),"script"})),d.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||_;var r=w.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=d.buildFragment([e],t,i),i&&i.length&&d(i).remove(),d.merge([],r.childNodes))};var Xt=d.fn.load;d.fn.load=function(e,t,n){if("string"!=typeof e&&Xt)return Xt.apply(this,arguments);var r,i,o,a=this,s=e.indexOf(" ");return s>=0&&(r=e.slice(s,e.length),e=e.slice(0,s)),d.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&d.ajax({url:e,type:o,dataType:"html",data:t}).done((function(e){i=arguments,a.html(r?d("<div>").append(d.parseHTML(e)).find(r):e)})).complete(n&&function(e,t){a.each(n,i||[e.responseText,t,e])}),this},d.expr.filters.animated=function(e){return d.grep(d.timers,(function(t){return e===t.elem})).length};var $t=e.document.documentElement;function Jt(e){return d.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}d.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u=d.css(e,"position"),c=d(e),f={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=d.css(e,"top"),l=d.css(e,"left"),("absolute"===u||"fixed"===u)&&d.inArray("auto",[o,l])>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),d.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+i),"using"in t?t.using.call(e,f):c.css(f)}},d.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){d.offset.setOffset(this,e,t)}));var t,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;return o?(t=o.documentElement,d.contains(t,i)?(void 0!==i.getBoundingClientRect&&(r=i.getBoundingClientRect()),n=Jt(o),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r):void 0},position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===d.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),d.nodeName(e[0],"html")||(n=e.offset()),n.top+=d.css(e[0],"borderTopWidth",!0),n.left+=d.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-d.css(r,"marginTop",!0),left:t.left-n.left-d.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||$t;e&&!d.nodeName(e,"html")&&"static"===d.css(e,"position");)e=e.offsetParent;return e||$t}))}}),d.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n=/Y/.test(t);d.fn[e]=function(r){return U(this,(function(e,r,i){var o=Jt(e);if(void 0===i)return o?t in o?o[t]:o.document.documentElement[r]:e[r];o?o.scrollTo(n?d(o).scrollLeft():i,n?i:d(o).scrollTop()):e[r]=i}),e,r,arguments.length,null)}})),d.each(["top","left"],(function(e,t){d.cssHooks[t]=Pe(f.pixelPosition,(function(e,n){if(n)return n=Me(e,t),Ie.test(n)?d(e).position()[t]+"px":n}))})),d.each({Height:"height",Width:"width"},(function(e,t){d.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){d.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return U(this,(function(t,n,r){var i;return d.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?d.css(t,n,a):d.style(t,n,r,a)}),t,o?r:void 0,o,null)}}))})),d.fn.size=function(){return this.length},d.fn.andSelf=d.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],(function(){return d}));var Yt=e.jQuery,Kt=e.$;return d.noConflict=function(t){return e.$===d&&(e.$=Kt),t&&e.jQuery===d&&(e.jQuery=Yt),d},void 0===t&&(e.jQuery=e.$=d),d}))},{}],19:[function(e,t,n){(function(e){(function(){var r,i,o="Expected a function",a="__lodash_placeholder__",s="[object Arguments]",l="[object Array]",u="[object Boolean]",c="[object Date]",f="[object Error]",d="[object Function]",h="[object Number]",p="[object Object]",g="[object RegExp]",v="[object String]",m="[object Float32Array]",y="[object Float64Array]",b="[object Int8Array]",w="[object Int16Array]",x="[object Int32Array]",C="[object Uint8Array]",S="[object Uint16Array]",_="[object Uint32Array]",T=/\b__p \+= '';/g,k=/\b(__p \+=) '' \+/g,D=/(__e\(.*?\)|\b__t\)) \+\n'';/g,L=/&(?:amp|lt|gt|quot|#39|#96);/g,A=/[&<>"'`]/g,N=RegExp(L.source),j=RegExp(A.source),M=/<%-([\s\S]+?)%>/g,E=/<%([\s\S]+?)%>/g,I=/<%=([\s\S]+?)%>/g,O=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,P=/^\w*$/,R=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,H=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,F=RegExp(H.source),W=/[\u0300-\u036f\ufe20-\ufe23]/g,z=/\\(\\)?/g,q=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,B=/\w*$/,U=/^0[xX]/,V=/^\[object .+?Constructor\]$/,G=/^\d+$/,X=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,$=/($^)/,J=/['\n\r\u2028\u2029\\]/g,Y=(r="[A-Z\\xc0-\\xd6\\xd8-\\xde]",i="[a-z\\xdf-\\xf6\\xf8-\\xff]+",RegExp(r+"+(?="+r+i+")|"+r+"?"+i+"|"+r+"+|[0-9]+","g")),K=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],Q=-1,Z={};Z[m]=Z[y]=Z[b]=Z[w]=Z[x]=Z[C]=Z["[object Uint8ClampedArray]"]=Z[S]=Z[_]=!0,Z[s]=Z[l]=Z["[object ArrayBuffer]"]=Z[u]=Z[c]=Z[f]=Z[d]=Z["[object Map]"]=Z[h]=Z[p]=Z[g]=Z["[object Set]"]=Z[v]=Z["[object WeakMap]"]=!1;var ee={};ee[s]=ee[l]=ee["[object ArrayBuffer]"]=ee[u]=ee[c]=ee[m]=ee[y]=ee[b]=ee[w]=ee[x]=ee[h]=ee[p]=ee[g]=ee[v]=ee[C]=ee["[object Uint8ClampedArray]"]=ee[S]=ee[_]=!0,ee[f]=ee[d]=ee["[object Map]"]=ee["[object Set]"]=ee["[object WeakMap]"]=!1;var te={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},ne={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},re={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},ie={function:!0,object:!0},oe={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},ae={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},se=ie[typeof n]&&n&&!n.nodeType&&n,le=ie[typeof t]&&t&&!t.nodeType&&t,ue=se&&le&&"object"==typeof e&&e&&e.Object&&e,ce=ie[typeof self]&&self&&self.Object&&self,fe=ie[typeof window]&&window&&window.Object&&window,de=le&&le.exports===se&&se,he=ue||fe!==(this&&this.window)&&fe||ce||this;function pe(e,t){if(e!==t){var n=null===e,r=void 0===e,i=e==e,o=null===t,a=void 0===t,s=t==t;if(e>t&&!o||!i||n&&!a&&s||r&&s)return 1;if(e<t&&!n||!s||o&&!r&&i||a&&i)return-1}return 0}function ge(e,t,n){for(var r=e.length,i=n?r:-1;n?i--:++i<r;)if(t(e[i],i,e))return i;return-1}function ve(e,t,n){if(t!=t)return ke(e,n);for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function me(e){return"function"==typeof e||!1}function ye(e){return null==e?"":e+""}function be(e,t){for(var n=-1,r=e.length;++n<r&&t.indexOf(e.charAt(n))>-1;);return n}function we(e,t){for(var n=e.length;n--&&t.indexOf(e.charAt(n))>-1;);return n}function xe(e,t){return pe(e.criteria,t.criteria)||e.index-t.index}function Ce(e){return te[e]}function Se(e){return ne[e]}function _e(e,t,n){return t?e=oe[e]:n&&(e=ae[e]),"\\"+e}function Te(e){return"\\"+ae[e]}function ke(e,t,n){for(var r=e.length,i=t+(n?0:-1);n?i--:++i<r;){var o=e[i];if(o!=o)return i}return-1}function De(e){return!!e&&"object"==typeof e}function Le(e){return e<=160&&e>=9&&e<=13||32==e||160==e||5760==e||6158==e||e>=8192&&(e<=8202||8232==e||8233==e||8239==e||8287==e||12288==e||65279==e)}function Ae(e,t){for(var n=-1,r=e.length,i=-1,o=[];++n<r;)e[n]===t&&(e[n]=a,o[++i]=n);return o}function Ne(e){for(var t=-1,n=e.length;++t<n&&Le(e.charCodeAt(t)););return t}function je(e){for(var t=e.length;t--&&Le(e.charCodeAt(t)););return t}function Me(e){return re[e]}var Ee=function e(t){var n=(t=t?Ee.defaults(he.Object(),t,Ee.pick(he,K)):he).Array,r=t.Date,i=t.Error,te=t.Function,ne=t.Math,re=t.Number,ie=t.Object,oe=t.RegExp,ae=t.String,se=t.TypeError,le=n.prototype,ue=ie.prototype,ce=ae.prototype,fe=te.prototype.toString,de=ue.hasOwnProperty,Le=0,Ie=ue.toString,Oe=he._,Pe=oe("^"+fe.call(de).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Re=t.ArrayBuffer,He=t.clearTimeout,Fe=t.parseFloat,We=ne.pow,ze=ue.propertyIsEnumerable,qe=Qn(t,"Set"),Be=t.setTimeout,Ue=le.splice,Ve=t.Uint8Array,Ge=Qn(t,"WeakMap"),Xe=ne.ceil,$e=Qn(ie,"create"),Je=ne.floor,Ye=Qn(n,"isArray"),Ke=t.isFinite,Qe=Qn(ie,"keys"),Ze=ne.max,et=ne.min,tt=Qn(r,"now"),nt=t.parseInt,rt=ne.random,it=re.NEGATIVE_INFINITY,ot=re.POSITIVE_INFINITY,at=Ge&&new Ge,st={};function lt(e){if(De(e)&&!Di(e)&&!(e instanceof ft)){if(e instanceof ct)return e;if(de.call(e,"__chain__")&&de.call(e,"__wrapped__"))return mr(e)}return new ct(e)}function ut(){}function ct(e,t,n){this.__wrapped__=e,this.__actions__=n||[],this.__chain__=!!t}function ft(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ot,this.__views__=[]}function dt(){this.__data__={}}function ht(e){var t=e?e.length:0;for(this.data={hash:$e(null),set:new qe};t--;)this.push(e[t])}function pt(e,t){var n=e.data;return("string"==typeof t||ji(t)?n.set.has(t):n.hash[t])?0:-1}function gt(e,t){var r=-1,i=e.length;for(t||(t=n(i));++r<i;)t[r]=e[r];return t}function vt(e,t){for(var n=-1,r=e.length;++n<r&&!1!==t(e[n],n,e););return e}function mt(e,t){for(var n=-1,r=e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function yt(e,t){for(var n=-1,r=e.length,i=-1,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[++i]=a)}return o}function bt(e,t){for(var r=-1,i=e.length,o=n(i);++r<i;)o[r]=t(e[r],r,e);return o}function wt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function xt(e,t,n,r){var i=-1,o=e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Ct(e,t){for(var n=-1,r=e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function St(e,t,n,r){return void 0!==e&&de.call(r,n)?e:t}function _t(e,t,n){for(var r=-1,i=Qi(t),o=i.length;++r<o;){var a=i[r],s=e[a],l=n(s,t[a],a,e,t);((l==l?l!==s:s==s)||void 0===s&&!(a in e))&&(e[a]=l)}return e}function Tt(e,t){return null==t?e:Dt(t,Qi(t),e)}function kt(e,t){for(var r=-1,i=null==e,o=!i&&er(e),a=o?e.length:0,s=t.length,l=n(s);++r<s;){var u=t[r];l[r]=o?tr(u,a)?e[u]:void 0:i?void 0:e[u]}return l}function Dt(e,t,n){n||(n={});for(var r=-1,i=t.length;++r<i;){var o=t[r];n[o]=e[o]}return n}function Lt(e,t,n){var r=typeof e;return"function"==r?void 0===t?e:hn(e,t,n):null==e?bo:"object"==r?Jt(e):void 0===t?To(e):Yt(e,t)}function At(e,t,n,r,i,o,a){var l;if(n&&(l=i?n(e,r,i):n(e)),void 0!==l)return l;if(!ji(e))return e;var f=Di(e);if(f){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&de.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!t)return gt(e,l)}else{var T=Ie.call(e),k=T==d;if(T!=p&&T!=s&&(!k||i))return ee[T]?function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return pn(e);case u:case c:return new r(+e);case m:case y:case b:case w:case x:case C:case"[object Uint8ClampedArray]":case S:case _:var i=e.buffer;return new r(n?pn(i):i,e.byteOffset,e.length);case h:case v:return new r(e);case g:var o=new r(e.source,B.exec(e));o.lastIndex=e.lastIndex}return o}(e,T,t):i?e:{};if(l=function(e){var t=e.constructor;return"function"==typeof t&&t instanceof t||(t=ie),new t}(k?{}:e),!t)return Tt(l,e)}o||(o=[]),a||(a=[]);for(var D=o.length;D--;)if(o[D]==e)return a[D];return o.push(e),a.push(l),(f?vt:qt)(e,(function(r,i){l[i]=At(r,t,n,i,e,o,a)})),l}lt.support={},lt.templateSettings={escape:M,evaluate:E,interpolate:I,variable:"",imports:{_:lt}};var Nt=function(){function e(){}return function(t){if(ji(t)){e.prototype=t;var n=new e;e.prototype=void 0}return n||{}}}();function jt(e,t,n){if("function"!=typeof e)throw new se(o);return Be((function(){e.apply(void 0,n)}),t)}function Mt(e,t){var n=e?e.length:0,r=[];if(!n)return r;var i=-1,o=Jn(),a=o==ve,s=a&&t.length>=200?xn(t):null,l=t.length;s&&(o=pt,a=!1,t=s);e:for(;++i<n;){var u=e[i];if(a&&u==u){for(var c=l;c--;)if(t[c]===u)continue e;r.push(u)}else o(t,u,0)<0&&r.push(u)}return r}var Et=bn(qt),It=bn(Bt,!0);function Ot(e,t){var n=!0;return Et(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function Pt(e,t){var n=[];return Et(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function Rt(e,t,n,r){var i;return n(e,(function(e,n,o){if(t(e,n,o))return i=r?n:e,!1})),i}function Ht(e,t,n,r){r||(r=[]);for(var i=-1,o=e.length;++i<o;){var a=e[i];De(a)&&er(a)&&(n||Di(a)||ki(a))?t?Ht(a,t,n,r):wt(r,a):n||(r[r.length]=a)}return r}var Ft=wn(),Wt=wn(!0);function zt(e,t){return Ft(e,t,Zi)}function qt(e,t){return Ft(e,t,Qi)}function Bt(e,t){return Wt(e,t,Qi)}function Ut(e,t){for(var n=-1,r=t.length,i=-1,o=[];++n<r;){var a=t[n];Ni(e[a])&&(o[++i]=a)}return o}function Vt(e,t,n){if(null!=e){void 0!==n&&n in gr(e)&&(t=[n]);for(var r=0,i=t.length;null!=e&&r<i;)e=e[t[r++]];return r&&r==i?e:void 0}}function Gt(e,t,n,r,i,o){return e===t||(null==e||null==t||!ji(e)&&!De(t)?e!=e&&t!=t:function(e,t,n,r,i,o,a){var d=Di(e),m=Di(t),y=l,b=l;d||((y=Ie.call(e))==s?y=p:y!=p&&(d=Ri(e))),m||((b=Ie.call(t))==s?b=p:b!=p&&(m=Ri(t)));var w=y==p,x=b==p,C=y==b;if(C&&!d&&!w)return function(e,t,n){switch(n){case u:case c:return+e==+t;case f:return e.name==t.name&&e.message==t.message;case h:return e!=+e?t!=+t:e==+t;case g:case v:return e==t+""}return!1}(e,t,y);if(!i){var S=w&&de.call(e,"__wrapped__"),_=x&&de.call(t,"__wrapped__");if(S||_)return n(S?e.value():e,_?t.value():t,r,i,o,a)}if(!C)return!1;o||(o=[]),a||(a=[]);for(var T=o.length;T--;)if(o[T]==e)return a[T]==t;o.push(e),a.push(t);var k=(d?Un:Vn)(e,t,n,r,i,o,a);return o.pop(),a.pop(),k}(e,t,Gt,n,r,i,o))}function Xt(e,t,n){var r=t.length,i=r,o=!n;if(null==e)return!i;for(e=gr(e);r--;){var a=t[r];if(o&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++r<i;){var s=(a=t[r])[0],l=e[s],u=a[1];if(o&&a[2]){if(void 0===l&&!(s in e))return!1}else{var c=n?n(l,u,s):void 0;if(!(void 0===c?Gt(u,l,n,!0):c))return!1}}return!0}function $t(e,t){var r=-1,i=er(e)?n(e.length):[];return Et(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function Jt(e){var t=Kn(e);if(1==t.length&&t[0][2]){var n=t[0][0],r=t[0][1];return function(e){return null!=e&&e[n]===r&&(void 0!==r||n in gr(e))}}return function(e){return Xt(e,t)}}function Yt(e,t){var n=Di(e),r=rr(e)&&ar(t),i=e+"";return e=vr(e),function(o){if(null==o)return!1;var a=i;if(o=gr(o),(n||!r)&&!(a in o)){if(null==(o=1==e.length?o:Vt(o,nn(e,0,-1))))return!1;a=kr(e),o=gr(o)}return o[a]===t?void 0!==t||a in o:Gt(t,o[a],void 0,!0)}}function Kt(e){return function(t){return null==t?void 0:t[e]}}function Qt(e,t){for(var n=e?t.length:0;n--;){var r=t[n];if(r!=i&&tr(r)){var i=r;Ue.call(e,r,1)}}return e}function Zt(e,t){return e+Je(rt()*(t-e+1))}function en(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}var tn=at?function(e,t){return at.set(e,t),e}:bo;function nn(e,t,r){var i=-1,o=e.length;(t=null==t?0:+t||0)<0&&(t=-t>o?0:o+t),(r=void 0===r||r>o?o:+r||0)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i<o;)a[i]=e[i+t];return a}function rn(e,t){var n;return Et(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function on(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function an(e,t,n){var r=Gn(),i=-1;return t=bt(t,(function(e){return r(e)})),on($t(e,(function(e){return{criteria:bt(t,(function(t){return t(e)})),index:++i,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=pe(i[r],o[r]);if(l){if(r>=s)return l;var u=n[r];return l*("asc"===u||!0===u?1:-1)}}return e.index-t.index}(e,t,n)}))}function sn(e,t){var n=-1,r=Jn(),i=e.length,o=r==ve,a=o&&i>=200,s=a?xn():null,l=[];s?(r=pt,o=!1):(a=!1,s=t?[]:l);e:for(;++n<i;){var u=e[n],c=t?t(u,n,e):u;if(o&&u==u){for(var f=s.length;f--;)if(s[f]===c)continue e;t&&s.push(c),l.push(u)}else r(s,c,0)<0&&((t||a)&&s.push(c),l.push(u))}return l}function ln(e,t){for(var r=-1,i=t.length,o=n(i);++r<i;)o[r]=e[t[r]];return o}function un(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?nn(e,r?0:o,r?o+1:i):nn(e,r?o+1:0,r?i:o)}function cn(e,t){var n=e;n instanceof ft&&(n=n.value());for(var r=-1,i=t.length;++r<i;){var o=t[r];n=o.func.apply(o.thisArg,wt([n],o.args))}return n}function fn(e,t,n){var r=0,i=e?e.length:r;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];(n?a<=t:a<t)&&null!==a?r=o+1:i=o}return i}return dn(e,t,bo,n)}function dn(e,t,n,r){t=n(t);for(var i=0,o=e?e.length:0,a=t!=t,s=null===t,l=void 0===t;i<o;){var u=Je((i+o)/2),c=n(e[u]),f=void 0!==c,d=c==c;if(a)var h=d||r;else h=s?d&&f&&(r||null!=c):l?d&&(r||f):null!=c&&(r?c<=t:c<t);h?i=u+1:o=u}return et(o,4294967294)}function hn(e,t,n){if("function"!=typeof e)return bo;if(void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)};case 5:return function(n,r,i,o,a){return e.call(t,n,r,i,o,a)}}return function(){return e.apply(t,arguments)}}function pn(e){var t=new Re(e.byteLength);return new Ve(t).set(new Ve(e)),t}function gn(e,t,r){for(var i=r.length,o=-1,a=Ze(e.length-i,0),s=-1,l=t.length,u=n(l+a);++s<l;)u[s]=t[s];for(;++o<i;)u[r[o]]=e[o];for(;a--;)u[s++]=e[o++];return u}function vn(e,t,r){for(var i=-1,o=r.length,a=-1,s=Ze(e.length-o,0),l=-1,u=t.length,c=n(s+u);++a<s;)c[a]=e[a];for(var f=a;++l<u;)c[f+l]=t[l];for(;++i<o;)c[f+r[i]]=e[a++];return c}function mn(e,t){return function(n,r,i){var o=t?t():{};if(r=Gn(r,i,3),Di(n))for(var a=-1,s=n.length;++a<s;){var l=n[a];e(o,l,r(l,a,n),n)}else Et(n,(function(t,n,i){e(o,t,r(t,n,i),i)}));return o}}function yn(e){return _i((function(t,n){var r=-1,i=null==t?0:n.length,o=i>2?n[i-2]:void 0,a=i>2?n[2]:void 0,s=i>1?n[i-1]:void 0;for("function"==typeof o?(o=hn(o,s,5),i-=2):i-=(o="function"==typeof s?s:void 0)?1:0,a&&nr(n[0],n[1],a)&&(o=i<3?void 0:o,i=1);++r<i;){var l=n[r];l&&e(t,l,o)}return t}))}function bn(e,t){return function(n,r){var i=n?Yn(n):0;if(!or(i))return e(n,r);for(var o=t?i:-1,a=gr(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function wn(e){return function(t,n,r){for(var i=gr(t),o=r(t),a=o.length,s=e?a:-1;e?s--:++s<a;){var l=o[s];if(!1===n(i[l],l,i))break}return t}}function xn(e){return $e&&qe?new ht(e):null}function Cn(e){return function(t){for(var n=-1,r=vo(so(t)),i=r.length,o="";++n<i;)o=e(o,r[n],n);return o}}function Sn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Nt(e.prototype),r=e.apply(n,t);return ji(r)?r:n}}function _n(e){return function t(n,r,i){i&&nr(n,r,i)&&(r=void 0);var o=Bn(n,e,void 0,void 0,void 0,void 0,void 0,r);return o.placeholder=t.placeholder,o}}function Tn(e,t){return _i((function(n){var r=n[0];return null==r?r:(n.push(t),e.apply(void 0,n))}))}function kn(e,t){return function(n,r,i){if(i&&nr(n,r,i)&&(r=void 0),1==(r=Gn(r,i,3)).length){var o=function(e,t,n,r){for(var i=-1,o=e.length,a=r,s=a;++i<o;){var l=e[i],u=+t(l);n(u,a)&&(a=u,s=l)}return s}(n=Di(n)?n:pr(n),r,e,t);if(!n.length||o!==t)return o}return function(e,t,n,r){var i=r,o=i;return Et(e,(function(e,a,s){var l=+t(e,a,s);(n(l,i)||l===r&&l===o)&&(i=l,o=e)})),o}(n,r,e,t)}}function Dn(e,t){return function(n,r,i){if(r=Gn(r,i,3),Di(n)){var o=ge(n,r,t);return o>-1?n[o]:void 0}return Rt(n,r,e)}}function Ln(e){return function(t,n,r){return t&&t.length?ge(t,n=Gn(n,r,3),e):-1}}function An(e){return function(t,n,r){return Rt(t,n=Gn(n,r,3),e,!0)}}function Nn(e){return function(){for(var t,r=arguments.length,i=e?r:-1,a=0,s=n(r);e?i--:++i<r;){var l=s[a++]=arguments[i];if("function"!=typeof l)throw new se(o);!t&&ct.prototype.thru&&"wrapper"==$n(l)&&(t=new ct([],!0))}for(i=t?-1:r;++i<r;){var u=$n(l=s[i]),c="wrapper"==u?Xn(l):void 0;t=c&&ir(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?t[$n(c[0])].apply(t,c[3]):1==l.length&&ir(l)?t[u]():t.thru(l)}return function(){var e=arguments,n=e[0];if(t&&1==e.length&&Di(n)&&n.length>=200)return t.plant(n).value();for(var i=0,o=r?s[i].apply(this,e):n;++i<r;)o=s[i].call(this,o);return o}}}function jn(e,t){return function(n,r,i){return"function"==typeof r&&void 0===i&&Di(n)?e(n,r):t(n,hn(r,i,3))}}function Mn(e){return function(t,n,r){return"function"==typeof n&&void 0===r||(n=hn(n,r,3)),e(t,n,Zi)}}function En(e){return function(t,n,r){return"function"==typeof n&&void 0===r||(n=hn(n,r,3)),e(t,n)}}function In(e){return function(t,n,r){var i={};return n=Gn(n,r,3),qt(t,(function(t,r,o){var a=n(t,r,o);t=e?t:a,i[r=e?a:r]=t})),i}}function On(e){return function(t,n,r){return t=ye(t),(e?t:"")+Fn(t,n,r)+(e?"":t)}}function Pn(e){var t=_i((function(n,r){var i=Ae(r,t.placeholder);return Bn(n,e,void 0,r,i)}));return t}function Rn(e,t){return function(n,r,i,o){var a=arguments.length<3;return"function"==typeof r&&void 0===o&&Di(n)?e(n,r,i,a):en(n,Gn(r,o,4),i,a,t)}}function Hn(e,t,r,i,o,a,s,l,u,c){var f=128&t,d=1&t,h=2&t,p=8&t,g=4&t,v=16&t,m=h?void 0:Sn(e);return function y(){for(var b=arguments.length,w=b,x=n(b);w--;)x[w]=arguments[w];if(i&&(x=gn(x,i,o)),a&&(x=vn(x,a,s)),p||v){var C=y.placeholder,S=Ae(x,C);if((b-=S.length)<c){var _=l?gt(l):void 0,T=Ze(c-b,0),k=p?S:void 0,D=p?void 0:S,L=p?x:void 0,A=p?void 0:x;t|=p?32:64,t&=~(p?64:32),g||(t&=-4);var N=[e,t,r,L,k,A,D,_,u,T],j=Hn.apply(void 0,N);return ir(e)&&dr(j,N),j.placeholder=C,j}}var M=d?r:this,E=h?M[e]:e;return l&&(x=ur(x,l)),f&&u<x.length&&(x.length=u),this&&this!==he&&this instanceof y&&(E=m||Sn(e)),E.apply(M,x)}}function Fn(e,t,n){var r=e.length;if(r>=(t=+t)||!Ke(t))return"";var i=t-r;return fo(n=null==n?" ":n+"",Xe(i/n.length)).slice(0,i)}function Wn(e,t,r,i){var o=1&t,a=Sn(e);return function t(){for(var s=-1,l=arguments.length,u=-1,c=i.length,f=n(c+l);++u<c;)f[u]=i[u];for(;l--;)f[u++]=arguments[++s];var d=this&&this!==he&&this instanceof t?a:e;return d.apply(o?r:this,f)}}function zn(e){var t=ne[e];return function(e,n){return(n=void 0===n?0:+n||0)?(n=We(10,n),t(e*n)/n):t(e)}}function qn(e){return function(t,n,r,i){var o=Gn(r);return null==r&&o===Lt?fn(t,n,e):dn(t,n,o(r,i,1),e)}}function Bn(e,t,n,r,i,s,l,u){var c=2&t;if(!c&&"function"!=typeof e)throw new se(o);var f=r?r.length:0;if(f||(t&=-97,r=i=void 0),f-=i?i.length:0,64&t){var d=r,h=i;r=i=void 0}var p=c?void 0:Xn(e),g=[e,t,n,r,i,d,h,s,l,u];if(p&&(function(e,t){var n=e[1],r=t[1],i=n|r,o=i<128,s=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&8==n;if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?gn(u,l,t[4]):gt(l),e[4]=u?Ae(e[3],a):gt(t[4])}(l=t[5])&&(u=e[5],e[5]=u?vn(u,l,t[6]):gt(l),e[6]=u?Ae(e[5],a):gt(t[6])),(l=t[7])&&(e[7]=gt(l)),128&r&&(e[8]=null==e[8]?t[8]:et(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(g,p),t=g[1],u=g[9]),g[9]=null==u?c?0:e.length:Ze(u-f,0)||0,1==t)var v=function(e,t){var n=Sn(e);return function r(){var i=this&&this!==he&&this instanceof r?n:e;return i.apply(t,arguments)}}(g[0],g[2]);else v=32!=t&&33!=t||g[4].length?Hn.apply(void 0,g):Wn.apply(void 0,g);return(p?tn:dr)(v,g)}function Un(e,t,n,r,i,o,a){var s=-1,l=e.length,u=t.length;if(l!=u&&!(i&&u>l))return!1;for(;++s<l;){var c=e[s],f=t[s],d=r?r(i?f:c,i?c:f,s):void 0;if(void 0!==d){if(d)continue;return!1}if(i){if(!Ct(t,(function(e){return c===e||n(c,e,r,i,o,a)})))return!1}else if(c!==f&&!n(c,f,r,i,o,a))return!1}return!0}function Vn(e,t,n,r,i,o,a){var s=Qi(e),l=s.length;if(l!=Qi(t).length&&!i)return!1;for(var u=l;u--;){var c=s[u];if(!(i?c in t:de.call(t,c)))return!1}for(var f=i;++u<l;){var d=e[c=s[u]],h=t[c],p=r?r(i?h:d,i?d:h,c):void 0;if(!(void 0===p?n(d,h,r,i,o,a):p))return!1;f||(f="constructor"==c)}if(!f){var g=e.constructor,v=t.constructor;if(g!=v&&"constructor"in e&&"constructor"in t&&!("function"==typeof g&&g instanceof g&&"function"==typeof v&&v instanceof v))return!1}return!0}function Gn(e,t,n){var r=lt.callback||yo;return r=r===yo?Lt:r,n?r(e,t,n):r}var Xn=at?function(e){return at.get(e)}:_o;function $n(e){for(var t=e.name,n=st[t],r=n?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Jn(e,t,n){var r=lt.indexOf||_r;return r=r===_r?ve:r,e?r(e,t,n):r}var Yn=Kt("length");function Kn(e){for(var t=ro(e),n=t.length;n--;)t[n][2]=ar(t[n][1]);return t}function Qn(e,t){var n=null==e?void 0:e[t];return Mi(n)?n:void 0}function Zn(e,t,n){null==e||rr(t,e)||(e=1==(t=vr(t)).length?e:Vt(e,nn(t,0,-1)),t=kr(t));var r=null==e?e:e[t];return null==r?void 0:r.apply(e,n)}function er(e){return null!=e&&or(Yn(e))}function tr(e,t){return t=null==t?9007199254740991:t,(e="number"==typeof e||G.test(e)?+e:-1)>-1&&e%1==0&&e<t}function nr(e,t,n){if(!ji(n))return!1;var r=typeof t;if("number"==r?er(n)&&tr(t,n.length):"string"==r&&t in n){var i=n[t];return e==e?e===i:i!=i}return!1}function rr(e,t){var n=typeof e;return!!("string"==n&&P.test(e)||"number"==n)||!Di(e)&&(!O.test(e)||null!=t&&e in gr(t))}function ir(e){var t=$n(e);if(!(t in ft.prototype))return!1;var n=lt[t];if(e===n)return!0;var r=Xn(n);return!!r&&e===r[0]}function or(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function ar(e){return e==e&&!ji(e)}function sr(e,t){e=gr(e);for(var n=-1,r=t.length,i={};++n<r;){var o=t[n];o in e&&(i[o]=e[o])}return i}function lr(e,t){var n={};return zt(e,(function(e,r,i){t(e,r,i)&&(n[r]=e)})),n}function ur(e,t){for(var n=e.length,r=et(t.length,n),i=gt(e);r--;){var o=t[r];e[r]=tr(o,n)?i[o]:void 0}return e}var cr,fr,dr=(cr=0,fr=0,function(e,t){var n=si(),r=16-(n-fr);if(fr=n,r>0){if(++cr>=150)return e}else cr=0;return tn(e,t)});function hr(e){for(var t=Zi(e),n=t.length,r=n&&e.length,i=!!r&&or(r)&&(Di(e)||ki(e)),o=-1,a=[];++o<n;){var s=t[o];(i&&tr(s,r)||de.call(e,s))&&a.push(s)}return a}function pr(e){return null==e?[]:er(e)?ji(e)?e:ie(e):oo(e)}function gr(e){return ji(e)?e:ie(e)}function vr(e){if(Di(e))return e;var t=[];return ye(e).replace(R,(function(e,n,r,i){t.push(r?i.replace(z,"$1"):n||e)})),t}function mr(e){return e instanceof ft?e.clone():new ct(e.__wrapped__,e.__chain__,gt(e.__actions__))}var yr=_i((function(e,t){return De(e)&&er(e)?Mt(e,Ht(t,!1,!0)):[]}));function br(e,t,n){return e&&e.length?((n?nr(e,t,n):null==t)&&(t=1),nn(e,t<0?0:t)):[]}function wr(e,t,n){var r=e?e.length:0;return r?((n?nr(e,t,n):null==t)&&(t=1),nn(e,0,(t=r-(+t||0))<0?0:t)):[]}var xr=Ln(),Cr=Ln(!0);function Sr(e){return e?e[0]:void 0}function _r(e,t,n){var r=e?e.length:0;if(!r)return-1;if("number"==typeof n)n=n<0?Ze(r+n,0):n;else if(n){var i=fn(e,t);return i<r&&(t==t?t===e[i]:e[i]!=e[i])?i:-1}return ve(e,t,n||0)}var Tr=_i((function(e){for(var t=e.length,r=t,i=n(f),o=Jn(),a=o==ve,s=[];r--;){var l=e[r]=er(l=e[r])?l:[];i[r]=a&&l.length>=120?xn(r&&l):null}var u=e[0],c=-1,f=u?u.length:0,d=i[0];e:for(;++c<f;)if(l=u[c],(d?pt(d,l):o(s,l,0))<0){for(r=t;--r;){var h=i[r];if((h?pt(h,l):o(e[r],l,0))<0)continue e}d&&d.push(l),s.push(l)}return s}));function kr(e){var t=e?e.length:0;return t?e[t-1]:void 0}var Dr=_i((function(e,t){var n=kt(e,t=Ht(t));return Qt(e,t.sort(pe)),n}));function Lr(e){return br(e,1)}var Ar=qn(),Nr=qn(!0),jr=_i((function(e){return sn(Ht(e,!1,!0))}));function Mr(e,t,n,r){if(!e||!e.length)return[];null!=t&&"boolean"!=typeof t&&(n=nr(e,t,r=n)?void 0:t,t=!1);var i=Gn();return null==n&&i===Lt||(n=i(n,r,3)),t&&Jn()==ve?function(e,t){for(var n,r=-1,i=e.length,o=-1,a=[];++r<i;){var s=e[r],l=t?t(s,r,e):s;r&&n===l||(n=l,a[++o]=s)}return a}(e,n):sn(e,n)}function Er(e){if(!e||!e.length)return[];var t=-1,r=0;e=yt(e,(function(e){if(er(e))return r=Ze(e.length,r),!0}));for(var i=n(r);++t<r;)i[t]=bt(e,Kt(t));return i}function Ir(e,t,n){if(!e||!e.length)return[];var r=Er(e);return null==t?r:(t=hn(t,n,4),bt(r,(function(e){return xt(e,t,void 0,!0)})))}var Or=_i((function(e,t){return er(e)?Mt(e,t):[]})),Pr=_i(Er);function Rr(e,t){var n=-1,r=e?e.length:0,i={};for(!r||t||Di(e[0])||(t=[]);++n<r;){var o=e[n];t?i[o]=t[n]:o&&(i[o[0]]=o[1])}return i}var Hr=_i((function(e){var t=e.length,n=t>2?e[t-2]:void 0,r=t>1?e[t-1]:void 0;return t>2&&"function"==typeof n?t-=2:(n=t>1&&"function"==typeof r?(--t,r):void 0,r=void 0),e.length=t,Ir(e,n,r)}));function Fr(e){var t=lt(e);return t.__chain__=!0,t}function Wr(e,t,n){return t.call(n,e)}var zr=_i((function(e){return e=Ht(e),this.thru((function(t){return function(e,t){for(var r=-1,i=e.length,o=-1,a=t.length,s=n(i+a);++r<i;)s[r]=e[r];for(;++o<a;)s[r++]=t[o];return s}(Di(t)?t:[gr(t)],e)}))})),qr=_i((function(e,t){return kt(e,Ht(t))})),Br=mn((function(e,t,n){de.call(e,n)?++e[n]:e[n]=1}));function Ur(e,t,n){var r=Di(e)?mt:Ot;return n&&nr(e,t,n)&&(t=void 0),"function"==typeof t&&void 0===n||(t=Gn(t,n,3)),r(e,t)}function Vr(e,t,n){return(Di(e)?yt:Pt)(e,t=Gn(t,n,3))}var Gr=Dn(Et),Xr=Dn(It,!0),$r=jn(vt,Et),Jr=jn((function(e,t){for(var n=e.length;n--&&!1!==t(e[n],n,e););return e}),It),Yr=mn((function(e,t,n){de.call(e,n)?e[n].push(t):e[n]=[t]}));function Kr(e,t,n,r){var i=e?Yn(e):0;return or(i)||(i=(e=oo(e)).length),n="number"!=typeof n||r&&nr(t,n,r)?0:n<0?Ze(i+n,0):n||0,"string"==typeof e||!Di(e)&&Pi(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Jn(e,t,n)>-1}var Qr=mn((function(e,t,n){e[n]=t})),Zr=_i((function(e,t,r){var i=-1,o="function"==typeof t,a=rr(t),s=er(e)?n(e.length):[];return Et(e,(function(e){var n=o?t:a&&null!=e?e[t]:void 0;s[++i]=n?n.apply(e,r):Zn(e,t,r)})),s}));function ei(e,t,n){return(Di(e)?bt:$t)(e,t=Gn(t,n,3))}var ti=mn((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),ni=Rn(xt,Et),ri=Rn((function(e,t,n,r){var i=e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}),It);function ii(e,t,n){if(n?nr(e,t,n):null==t)return(r=(e=pr(e)).length)>0?e[Zt(0,r-1)]:void 0;var r,i=-1,o=Fi(e),a=(r=o.length)-1;for(t=et(t<0?0:+t||0,r);++i<t;){var s=Zt(i,a),l=o[s];o[s]=o[i],o[i]=l}return o.length=t,o}function oi(e,t,n){var r=Di(e)?Ct:rn;return n&&nr(e,t,n)&&(t=void 0),"function"==typeof t&&void 0===n||(t=Gn(t,n,3)),r(e,t)}var ai=_i((function(e,t){if(null==e)return[];var n=t[2];return n&&nr(t[0],t[1],n)&&(t.length=1),an(e,Ht(t),[])})),si=tt||function(){return(new r).getTime()};function li(e,t){var n;if("function"!=typeof t){if("function"!=typeof e)throw new se(o);var r=e;e=t,t=r}return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ui=_i((function(e,t,n){var r=1;if(n.length){var i=Ae(n,ui.placeholder);r|=32}return Bn(e,r,t,n,i)})),ci=_i((function(e,t){for(var n=-1,r=(t=t.length?Ht(t):Ki(e)).length;++n<r;){var i=t[n];e[i]=Bn(e[i],1,e)}return e})),fi=_i((function(e,t,n){var r=3;if(n.length){var i=Ae(n,fi.placeholder);r|=32}return Bn(t,r,e,n,i)})),di=_n(8),hi=_n(16);function pi(e,t,n){var r,i,a,s,l,u,c,f=0,d=!1,h=!0;if("function"!=typeof e)throw new se(o);if(t=t<0?0:+t||0,!0===n){var p=!0;h=!1}else ji(n)&&(p=!!n.leading,d="maxWait"in n&&Ze(+n.maxWait||0,t),h="trailing"in n?!!n.trailing:h);function g(t,n){n&&He(n),i=u=c=void 0,t&&(f=si(),a=e.apply(l,r),u||i||(r=l=void 0))}function v(){var e=t-(si()-s);e<=0||e>t?g(c,i):u=Be(v,e)}function m(){g(h,u)}function y(){if(r=arguments,s=si(),l=this,c=h&&(u||!p),!1===d)var n=p&&!u;else{i||p||(f=s);var o=d-(s-f),g=o<=0||o>d;g?(i&&(i=He(i)),f=s,a=e.apply(l,r)):i||(i=Be(m,o))}return g&&u?u=He(u):u||t===d||(u=Be(v,t)),n&&(g=!0,a=e.apply(l,r)),!g||u||i||(r=l=void 0),a}return y.cancel=function(){u&&He(u),i&&He(i),f=0,i=u=c=void 0},y}var gi=_i((function(e,t){return jt(e,1,t)})),vi=_i((function(e,t,n){return jt(e,t,n)})),mi=Nn(),yi=Nn(!0);function bi(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new se(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new bi.Cache,n}var wi=_i((function(e,t){if(t=Ht(t),"function"!=typeof e||!mt(t,me))throw new se(o);var n=t.length;return _i((function(r){for(var i=et(r.length,n);i--;)r[i]=t[i](r[i]);return e.apply(this,r)}))})),xi=Pn(32),Ci=Pn(64),Si=_i((function(e,t){return Bn(e,256,void 0,void 0,void 0,Ht(t))}));function _i(e,t){if("function"!=typeof e)throw new se(o);return t=Ze(void 0===t?e.length-1:+t||0,0),function(){for(var r=arguments,i=-1,o=Ze(r.length-t,0),a=n(o);++i<o;)a[i]=r[t+i];switch(t){case 0:return e.call(this,a);case 1:return e.call(this,r[0],a);case 2:return e.call(this,r[0],r[1],a)}var s=n(t+1);for(i=-1;++i<t;)s[i]=r[i];return s[t]=a,e.apply(this,s)}}function Ti(e,t){return e>t}function ki(e){return De(e)&&er(e)&&de.call(e,"callee")&&!ze.call(e,"callee")}var Di=Ye||function(e){return De(e)&&or(e.length)&&Ie.call(e)==l};function Li(e,t,n,r){var i=(n="function"==typeof n?hn(n,r,3):void 0)?n(e,t):void 0;return void 0===i?Gt(e,t,n):!!i}function Ai(e){return De(e)&&"string"==typeof e.message&&Ie.call(e)==f}function Ni(e){return ji(e)&&Ie.call(e)==d}function ji(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Mi(e){return null!=e&&(Ni(e)?Pe.test(fe.call(e)):De(e)&&V.test(e))}function Ei(e){return"number"==typeof e||De(e)&&Ie.call(e)==h}function Ii(e){var t,n;return!(!De(e)||Ie.call(e)!=p||ki(e)||!(de.call(e,"constructor")||"function"!=typeof(t=e.constructor)||t instanceof t))&&(zt(e,(function(e,t){n=t})),void 0===n||de.call(e,n))}function Oi(e){return ji(e)&&Ie.call(e)==g}function Pi(e){return"string"==typeof e||De(e)&&Ie.call(e)==v}function Ri(e){return De(e)&&or(e.length)&&!!Z[Ie.call(e)]}function Hi(e,t){return e<t}function Fi(e){var t=e?Yn(e):0;return or(t)?t?gt(e):[]:oo(e)}function Wi(e){return Dt(e,Zi(e))}var zi=yn((function e(t,n,r,i,o){if(!ji(t))return t;var a=er(n)&&(Di(n)||Ri(n)),s=a?void 0:Qi(n);return vt(s||n,(function(l,u){if(s&&(l=n[u=l]),De(l))i||(i=[]),o||(o=[]),function(e,t,n,r,i,o,a){for(var s=o.length,l=t[n];s--;)if(o[s]==l)return void(e[n]=a[s]);var u=e[n],c=i?i(u,l,n,e,t):void 0,f=void 0===c;f&&(c=l,er(l)&&(Di(l)||Ri(l))?c=Di(u)?u:er(u)?gt(u):[]:Ii(l)||ki(l)?c=ki(u)?Wi(u):Ii(u)?u:{}:f=!1),o.push(l),a.push(c),f?e[n]=r(c,l,i,o,a):(c==c?c!==u:u==u)&&(e[n]=c)}(t,n,u,e,r,i,o);else{var c=t[u],f=r?r(c,l,u,t,n):void 0,d=void 0===f;d&&(f=l),void 0===f&&(!a||u in t)||!d&&(f==f?f===c:c!=c)||(t[u]=f)}})),t})),qi=yn((function(e,t,n){return n?_t(e,t,n):Tt(e,t)})),Bi=Tn(qi,(function(e,t){return void 0===e?t:e})),Ui=Tn(zi,(function e(t,n){return void 0===t?n:zi(t,n,e)})),Vi=An(qt),Gi=An(Bt),Xi=Mn(Ft),$i=Mn(Wt),Ji=En(qt),Yi=En(Bt);function Ki(e){return Ut(e,Zi(e))}var Qi=Qe?function(e){var t=null==e?void 0:e.constructor;return"function"==typeof t&&t.prototype===e||"function"!=typeof e&&er(e)?hr(e):ji(e)?Qe(e):[]}:hr;function Zi(e){if(null==e)return[];ji(e)||(e=ie(e));var t=e.length;t=t&&or(t)&&(Di(e)||ki(e))&&t||0;for(var r=e.constructor,i=-1,o="function"==typeof r&&r.prototype===e,a=n(t),s=t>0;++i<t;)a[i]=i+"";for(var l in e)s&&tr(l,t)||"constructor"==l&&(o||!de.call(e,l))||a.push(l);return a}var eo=In(!0),to=In(),no=_i((function(e,t){if(null==e)return{};if("function"!=typeof t[0])return t=bt(Ht(t),ae),sr(e,Mt(Zi(e),t));var n=hn(t[0],t[1],3);return lr(e,(function(e,t,r){return!n(e,t,r)}))}));function ro(e){e=gr(e);for(var t=-1,r=Qi(e),i=r.length,o=n(i);++t<i;){var a=r[t];o[t]=[a,e[a]]}return o}var io=_i((function(e,t){return null==e?{}:"function"==typeof t[0]?lr(e,hn(t[0],t[1],3)):sr(e,Ht(t))}));function oo(e){return ln(e,Qi(e))}var ao=Cn((function(e,t,n){return t=t.toLowerCase(),e+(n?t.charAt(0).toUpperCase()+t.slice(1):t)}));function so(e){return(e=ye(e))&&e.replace(X,Ce).replace(W,"")}var lo=Cn((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),uo=On(),co=On(!0);function fo(e,t){var n="";if(e=ye(e),(t=+t)<1||!e||!Ke(t))return n;do{t%2&&(n+=e),t=Je(t/2),e+=e}while(t);return n}var ho=Cn((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),po=Cn((function(e,t,n){return e+(n?" ":"")+(t.charAt(0).toUpperCase()+t.slice(1))}));function go(e,t,n){var r=e;return(e=ye(e))?(n?nr(r,t,n):null==t)?e.slice(Ne(e),je(e)+1):(t+="",e.slice(be(e,t),we(e,t)+1)):e}function vo(e,t,n){return n&&nr(e,t,n)&&(t=void 0),(e=ye(e)).match(t||Y)||[]}var mo=_i((function(e,t){try{return e.apply(void 0,t)}catch(e){return Ai(e)?e:new i(e)}}));function yo(e,t,n){return n&&nr(e,t,n)&&(t=void 0),De(e)?wo(e):Lt(e,t)}function bo(e){return e}function wo(e){return Jt(At(e,!0))}var xo=_i((function(e,t){return function(n){return Zn(n,e,t)}})),Co=_i((function(e,t){return function(n){return Zn(e,n,t)}}));function So(e,t,n){if(null==n){var r=ji(t),i=r?Qi(t):void 0,o=i&&i.length?Ut(t,i):void 0;(o?o.length:r)||(o=!1,n=t,t=e,e=this)}o||(o=Ut(t,Qi(t)));var a=!0,s=-1,l=Ni(e),u=o.length;!1===n?a=!1:ji(n)&&"chain"in n&&(a=n.chain);for(;++s<u;){var c=o[s],f=t[c];e[c]=f,l&&(e.prototype[c]=function(t){return function(){var n=this.__chain__;if(a||n){var r=e(this.__wrapped__),i=r.__actions__=gt(this.__actions__);return i.push({func:t,args:arguments,thisArg:e}),r.__chain__=n,r}return t.apply(e,wt([this.value()],arguments))}}(f))}return e}function _o(){}function To(e){return rr(e)?Kt(e):function(e){var t=e+"";return e=vr(e),function(n){return Vt(n,e,t)}}(e)}var ko,Do=zn("ceil"),Lo=zn("floor"),Ao=kn(Ti,it),No=kn(Hi,ot),jo=zn("round");return lt.prototype=ut.prototype,ct.prototype=Nt(ut.prototype),ct.prototype.constructor=ct,ft.prototype=Nt(ut.prototype),ft.prototype.constructor=ft,dt.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},dt.prototype.get=function(e){return"__proto__"==e?void 0:this.__data__[e]},dt.prototype.has=function(e){return"__proto__"!=e&&de.call(this.__data__,e)},dt.prototype.set=function(e,t){return"__proto__"!=e&&(this.__data__[e]=t),this},ht.prototype.push=function(e){var t=this.data;"string"==typeof e||ji(e)?t.set.add(e):t.hash[e]=!0},bi.Cache=dt,lt.after=function(e,t){if("function"!=typeof t){if("function"!=typeof e)throw new se(o);var n=e;e=t,t=n}return e=Ke(e=+e)?e:0,function(){if(--e<1)return t.apply(this,arguments)}},lt.ary=function(e,t,n){return n&&nr(e,t,n)&&(t=void 0),Bn(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:Ze(+t||0,0))},lt.assign=qi,lt.at=qr,lt.before=li,lt.bind=ui,lt.bindAll=ci,lt.bindKey=fi,lt.callback=yo,lt.chain=Fr,lt.chunk=function(e,t,r){t=(r?nr(e,t,r):null==t)?1:Ze(Je(t)||1,1);for(var i=0,o=e?e.length:0,a=-1,s=n(Xe(o/t));i<o;)s[++a]=nn(e,i,i+=t);return s},lt.compact=function(e){for(var t=-1,n=e?e.length:0,r=-1,i=[];++t<n;){var o=e[t];o&&(i[++r]=o)}return i},lt.constant=function(e){return function(){return e}},lt.countBy=Br,lt.create=function(e,t,n){var r=Nt(e);return n&&nr(e,t,n)&&(t=void 0),t?Tt(r,t):r},lt.curry=di,lt.curryRight=hi,lt.debounce=pi,lt.defaults=Bi,lt.defaultsDeep=Ui,lt.defer=gi,lt.delay=vi,lt.difference=yr,lt.drop=br,lt.dropRight=wr,lt.dropRightWhile=function(e,t,n){return e&&e.length?un(e,Gn(t,n,3),!0,!0):[]},lt.dropWhile=function(e,t,n){return e&&e.length?un(e,Gn(t,n,3),!0):[]},lt.fill=function(e,t,n,r){var i=e?e.length:0;return i?(n&&"number"!=typeof n&&nr(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=null==n?0:+n||0)<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:+r||0)<0&&(r+=i),i=n>r?0:r>>>0,n>>>=0;n<i;)e[n++]=t;return e}(e,t,n,r)):[]},lt.filter=Vr,lt.flatten=function(e,t,n){var r=e?e.length:0;return n&&nr(e,t,n)&&(t=!1),r?Ht(e,t):[]},lt.flattenDeep=function(e){return e&&e.length?Ht(e,!0):[]},lt.flow=mi,lt.flowRight=yi,lt.forEach=$r,lt.forEachRight=Jr,lt.forIn=Xi,lt.forInRight=$i,lt.forOwn=Ji,lt.forOwnRight=Yi,lt.functions=Ki,lt.groupBy=Yr,lt.indexBy=Qr,lt.initial=function(e){return wr(e,1)},lt.intersection=Tr,lt.invert=function(e,t,n){n&&nr(e,t,n)&&(t=void 0);for(var r=-1,i=Qi(e),o=i.length,a={};++r<o;){var s=i[r],l=e[s];t?de.call(a,l)?a[l].push(s):a[l]=[s]:a[l]=s}return a},lt.invoke=Zr,lt.keys=Qi,lt.keysIn=Zi,lt.map=ei,lt.mapKeys=eo,lt.mapValues=to,lt.matches=wo,lt.matchesProperty=function(e,t){return Yt(e,At(t,!0))},lt.memoize=bi,lt.merge=zi,lt.method=xo,lt.methodOf=Co,lt.mixin=So,lt.modArgs=wi,lt.negate=function(e){if("function"!=typeof e)throw new se(o);return function(){return!e.apply(this,arguments)}},lt.omit=no,lt.once=function(e){return li(2,e)},lt.pairs=ro,lt.partial=xi,lt.partialRight=Ci,lt.partition=ti,lt.pick=io,lt.pluck=function(e,t){return ei(e,To(t))},lt.property=To,lt.propertyOf=function(e){return function(t){return Vt(e,vr(t),t+"")}},lt.pull=function(){var e=arguments,t=e[0];if(!t||!t.length)return t;for(var n=0,r=Jn(),i=e.length;++n<i;)for(var o=0,a=e[n];(o=r(t,a,o))>-1;)Ue.call(t,o,1);return t},lt.pullAt=Dr,lt.range=function(e,t,r){r&&nr(e,t,r)&&(t=r=void 0),e=+e||0,null==t?(t=e,e=0):t=+t||0;for(var i=-1,o=Ze(Xe((t-e)/((r=null==r?1:+r||0)||1)),0),a=n(o);++i<o;)a[i]=e,e+=r;return a},lt.rearg=Si,lt.reject=function(e,t,n){var r=Di(e)?yt:Pt;return t=Gn(t,n,3),r(e,(function(e,n,r){return!t(e,n,r)}))},lt.remove=function(e,t,n){var r=[];if(!e||!e.length)return r;var i=-1,o=[],a=e.length;for(t=Gn(t,n,3);++i<a;){var s=e[i];t(s,i,e)&&(r.push(s),o.push(i))}return Qt(e,o),r},lt.rest=Lr,lt.restParam=_i,lt.set=function(e,t,n){if(null==e)return e;for(var r=t+"",i=-1,o=(t=null!=e[r]||rr(t,e)?[r]:vr(t)).length,a=o-1,s=e;null!=s&&++i<o;){var l=t[i];ji(s)&&(i==a?s[l]=n:null==s[l]&&(s[l]=tr(t[i+1])?[]:{})),s=s[l]}return e},lt.shuffle=function(e){return ii(e,ot)},lt.slice=function(e,t,n){var r=e?e.length:0;return r?(n&&"number"!=typeof n&&nr(e,t,n)&&(t=0,n=r),nn(e,t,n)):[]},lt.sortBy=function(e,t,n){if(null==e)return[];n&&nr(e,t,n)&&(t=void 0);var r=-1;return t=Gn(t,n,3),on($t(e,(function(e,n,i){return{criteria:t(e,n,i),index:++r,value:e}})),xe)},lt.sortByAll=ai,lt.sortByOrder=function(e,t,n,r){return null==e?[]:(r&&nr(t,n,r)&&(n=void 0),Di(t)||(t=null==t?[]:[t]),Di(n)||(n=null==n?[]:[n]),an(e,t,n))},lt.spread=function(e){if("function"!=typeof e)throw new se(o);return function(t){return e.apply(this,t)}},lt.take=function(e,t,n){return e&&e.length?((n?nr(e,t,n):null==t)&&(t=1),nn(e,0,t<0?0:t)):[]},lt.takeRight=function(e,t,n){var r=e?e.length:0;return r?((n?nr(e,t,n):null==t)&&(t=1),nn(e,(t=r-(+t||0))<0?0:t)):[]},lt.takeRightWhile=function(e,t,n){return e&&e.length?un(e,Gn(t,n,3),!1,!0):[]},lt.takeWhile=function(e,t,n){return e&&e.length?un(e,Gn(t,n,3)):[]},lt.tap=function(e,t,n){return t.call(n,e),e},lt.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new se(o);return!1===n?r=!1:ji(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),pi(e,t,{leading:r,maxWait:+t,trailing:i})},lt.thru=Wr,lt.times=function(e,t,r){if((e=Je(e))<1||!Ke(e))return[];var i=-1,o=n(et(e,4294967295));for(t=hn(t,r,1);++i<e;)i<4294967295?o[i]=t(i):t(i);return o},lt.toArray=Fi,lt.toPlainObject=Wi,lt.transform=function(e,t,n,r){var i=Di(e)||Ri(e);if(t=Gn(t,r,4),null==n)if(i||ji(e)){var o=e.constructor;n=i?Di(e)?new o:[]:Nt(Ni(o)?o.prototype:void 0)}else n={};return(i?vt:qt)(e,(function(e,r,i){return t(n,e,r,i)})),n},lt.union=jr,lt.uniq=Mr,lt.unzip=Er,lt.unzipWith=Ir,lt.values=oo,lt.valuesIn=function(e){return ln(e,Zi(e))},lt.where=function(e,t){return Vr(e,Jt(t))},lt.without=Or,lt.wrap=function(e,t){return Bn(t=null==t?bo:t,32,void 0,[e],[])},lt.xor=function(){for(var e=-1,t=arguments.length;++e<t;){var n=arguments[e];if(er(n))var r=r?wt(Mt(r,n),Mt(n,r)):n}return r?sn(r):[]},lt.zip=Pr,lt.zipObject=Rr,lt.zipWith=Hr,lt.backflow=yi,lt.collect=ei,lt.compose=yi,lt.each=$r,lt.eachRight=Jr,lt.extend=qi,lt.iteratee=yo,lt.methods=Ki,lt.object=Rr,lt.select=Vr,lt.tail=Lr,lt.unique=Mr,So(lt,lt),lt.add=function(e,t){return(+e||0)+(+t||0)},lt.attempt=mo,lt.camelCase=ao,lt.capitalize=function(e){return(e=ye(e))&&e.charAt(0).toUpperCase()+e.slice(1)},lt.ceil=Do,lt.clone=function(e,t,n,r){return t&&"boolean"!=typeof t&&nr(e,t,n)?t=!1:"function"==typeof t&&(r=n,n=t,t=!1),"function"==typeof n?At(e,t,hn(n,r,1)):At(e,t)},lt.cloneDeep=function(e,t,n){return"function"==typeof t?At(e,!0,hn(t,n,1)):At(e,!0)},lt.deburr=so,lt.endsWith=function(e,t,n){t+="";var r=(e=ye(e)).length;return n=void 0===n?r:et(n<0?0:+n||0,r),(n-=t.length)>=0&&e.indexOf(t,n)==n},lt.escape=function(e){return(e=ye(e))&&j.test(e)?e.replace(A,Se):e},lt.escapeRegExp=function(e){return(e=ye(e))&&F.test(e)?e.replace(H,_e):e||"(?:)"},lt.every=Ur,lt.find=Gr,lt.findIndex=xr,lt.findKey=Vi,lt.findLast=Xr,lt.findLastIndex=Cr,lt.findLastKey=Gi,lt.findWhere=function(e,t){return Gr(e,Jt(t))},lt.first=Sr,lt.floor=Lo,lt.get=function(e,t,n){var r=null==e?void 0:Vt(e,vr(t),t+"");return void 0===r?n:r},lt.gt=Ti,lt.gte=function(e,t){return e>=t},lt.has=function(e,t){if(null==e)return!1;var n=de.call(e,t);if(!n&&!rr(t)){if(null==(e=1==(t=vr(t)).length?e:Vt(e,nn(t,0,-1))))return!1;t=kr(t),n=de.call(e,t)}return n||or(e.length)&&tr(t,e.length)&&(Di(e)||ki(e))},lt.identity=bo,lt.includes=Kr,lt.indexOf=_r,lt.inRange=function(e,t,n){return t=+t||0,void 0===n?(n=t,t=0):n=+n||0,e>=et(t,n)&&e<Ze(t,n)},lt.isArguments=ki,lt.isArray=Di,lt.isBoolean=function(e){return!0===e||!1===e||De(e)&&Ie.call(e)==u},lt.isDate=function(e){return De(e)&&Ie.call(e)==c},lt.isElement=function(e){return!!e&&1===e.nodeType&&De(e)&&!Ii(e)},lt.isEmpty=function(e){return null==e||(er(e)&&(Di(e)||Pi(e)||ki(e)||De(e)&&Ni(e.splice))?!e.length:!Qi(e).length)},lt.isEqual=Li,lt.isError=Ai,lt.isFinite=function(e){return"number"==typeof e&&Ke(e)},lt.isFunction=Ni,lt.isMatch=function(e,t,n,r){return n="function"==typeof n?hn(n,r,3):void 0,Xt(e,Kn(t),n)},lt.isNaN=function(e){return Ei(e)&&e!=+e},lt.isNative=Mi,lt.isNull=function(e){return null===e},lt.isNumber=Ei,lt.isObject=ji,lt.isPlainObject=Ii,lt.isRegExp=Oi,lt.isString=Pi,lt.isTypedArray=Ri,lt.isUndefined=function(e){return void 0===e},lt.kebabCase=lo,lt.last=kr,lt.lastIndexOf=function(e,t,n){var r=e?e.length:0;if(!r)return-1;var i=r;if("number"==typeof n)i=(n<0?Ze(r+n,0):et(n||0,r-1))+1;else if(n){var o=e[i=fn(e,t,!0)-1];return(t==t?t===o:o!=o)?i:-1}if(t!=t)return ke(e,i,!0);for(;i--;)if(e[i]===t)return i;return-1},lt.lt=Hi,lt.lte=function(e,t){return e<=t},lt.max=Ao,lt.min=No,lt.noConflict=function(){return he._=Oe,this},lt.noop=_o,lt.now=si,lt.pad=function(e,t,n){t=+t;var r=(e=ye(e)).length;if(r>=t||!Ke(t))return e;var i=(t-r)/2,o=Je(i);return(n=Fn("",Xe(i),n)).slice(0,o)+e+n},lt.padLeft=uo,lt.padRight=co,lt.parseInt=function(e,t,n){return(n?nr(e,t,n):null==t)?t=0:t&&(t=+t),e=go(e),nt(e,t||(U.test(e)?16:10))},lt.random=function(e,t,n){n&&nr(e,t,n)&&(t=n=void 0);var r=null==e,i=null==t;if(null==n&&(i&&"boolean"==typeof e?(n=e,e=1):"boolean"==typeof t&&(n=t,i=!0)),r&&i&&(t=1,i=!1),e=+e||0,i?(t=e,e=0):t=+t||0,n||e%1||t%1){var o=rt();return et(e+o*(t-e+Fe("1e-"+((o+"").length-1))),t)}return Zt(e,t)},lt.reduce=ni,lt.reduceRight=ri,lt.repeat=fo,lt.result=function(e,t,n){var r=null==e?void 0:e[t];return void 0===r&&(null==e||rr(t,e)||(r=null==(e=1==(t=vr(t)).length?e:Vt(e,nn(t,0,-1)))?void 0:e[kr(t)]),r=void 0===r?n:r),Ni(r)?r.call(e):r},lt.round=jo,lt.runInContext=e,lt.size=function(e){var t=e?Yn(e):0;return or(t)?t:Qi(e).length},lt.snakeCase=ho,lt.some=oi,lt.sortedIndex=Ar,lt.sortedLastIndex=Nr,lt.startCase=po,lt.startsWith=function(e,t,n){return e=ye(e),n=null==n?0:et(n<0?0:+n||0,e.length),e.lastIndexOf(t,n)==n},lt.sum=function(e,t,n){return n&&nr(e,t,n)&&(t=void 0),1==(t=Gn(t,n,3)).length?function(e,t){for(var n=e.length,r=0;n--;)r+=+t(e[n])||0;return r}(Di(e)?e:pr(e),t):function(e,t){var n=0;return Et(e,(function(e,r,i){n+=+t(e,r,i)||0})),n}(e,t)},lt.template=function(e,t,n){var r=lt.templateSettings;n&&nr(e,t,n)&&(t=n=void 0),e=ye(e),t=_t(Tt({},n||t),r,St);var i,o,a=_t(Tt({},t.imports),r.imports,St),s=Qi(a),l=ln(a,s),u=0,c=t.interpolate||$,f="__p += '",d=oe((t.escape||$).source+"|"+c.source+"|"+(c===I?q:$).source+"|"+(t.evaluate||$).source+"|$","g"),h="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Q+"]")+"\n";e.replace(d,(function(t,n,r,a,s,l){return r||(r=a),f+=e.slice(u,l).replace(J,Te),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),f+="';\n";var p=t.variable;p||(f="with (obj) {\n"+f+"\n}\n"),f=(o?f.replace(T,""):f).replace(k,"$1").replace(D,"$1;"),f="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=mo((function(){return te(s,h+"return "+f).apply(void 0,l)}));if(g.source=f,Ai(g))throw g;return g},lt.trim=go,lt.trimLeft=function(e,t,n){var r=e;return(e=ye(e))?(n?nr(r,t,n):null==t)?e.slice(Ne(e)):e.slice(be(e,t+"")):e},lt.trimRight=function(e,t,n){var r=e;return(e=ye(e))?(n?nr(r,t,n):null==t)?e.slice(0,je(e)+1):e.slice(0,we(e,t+"")+1):e},lt.trunc=function(e,t,n){n&&nr(e,t,n)&&(t=void 0);var r=30,i="...";if(null!=t)if(ji(t)){var o="separator"in t?t.separator:o;r="length"in t?+t.length||0:r,i="omission"in t?ye(t.omission):i}else r=+t||0;if(r>=(e=ye(e)).length)return e;var a=r-i.length;if(a<1)return i;var s=e.slice(0,a);if(null==o)return s+i;if(Oi(o)){if(e.slice(a).search(o)){var l,u,c=e.slice(0,a);for(o.global||(o=oe(o.source,(B.exec(o)||"")+"g")),o.lastIndex=0;l=o.exec(c);)u=l.index;s=s.slice(0,null==u?a:u)}}else if(e.indexOf(o,a)!=a){var f=s.lastIndexOf(o);f>-1&&(s=s.slice(0,f))}return s+i},lt.unescape=function(e){return(e=ye(e))&&N.test(e)?e.replace(L,Me):e},lt.uniqueId=function(e){var t=++Le;return ye(e)+t},lt.words=vo,lt.all=Ur,lt.any=oi,lt.contains=Kr,lt.eq=Li,lt.detect=Gr,lt.foldl=ni,lt.foldr=ri,lt.head=Sr,lt.include=Kr,lt.inject=ni,So(lt,(ko={},qt(lt,(function(e,t){lt.prototype[t]||(ko[t]=e)})),ko),!1),lt.sample=ii,lt.prototype.sample=function(e){return this.__chain__||null!=e?this.thru((function(t){return ii(t,e)})):ii(this.value())},lt.VERSION="3.10.1",vt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){lt[e].placeholder=lt})),vt(["drop","take"],(function(e,t){ft.prototype[e]=function(n){var r=this.__filtered__;if(r&&!t)return new ft(this);n=null==n?1:Ze(Je(n)||0,0);var i=this.clone();return r?i.__takeCount__=et(i.__takeCount__,n):i.__views__.push({size:n,type:e+(i.__dir__<0?"Right":"")}),i},ft.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),vt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=2!=n;ft.prototype[e]=function(e,t){var i=this.clone();return i.__iteratees__.push({iteratee:Gn(e,t,1),type:n}),i.__filtered__=i.__filtered__||r,i}})),vt(["first","last"],(function(e,t){var n="take"+(t?"Right":"");ft.prototype[e]=function(){return this[n](1).value()[0]}})),vt(["initial","rest"],(function(e,t){var n="drop"+(t?"":"Right");ft.prototype[e]=function(){return this.__filtered__?new ft(this):this[n](1)}})),vt(["pluck","where"],(function(e,t){var n=t?"filter":"map",r=t?Jt:To;ft.prototype[e]=function(e){return this[n](r(e))}})),ft.prototype.compact=function(){return this.filter(bo)},ft.prototype.reject=function(e,t){return e=Gn(e,t,1),this.filter((function(t){return!e(t)}))},ft.prototype.slice=function(e,t){e=null==e?0:+e||0;var n=this;return n.__filtered__&&(e>0||t<0)?new ft(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=+t||0)<0?n.dropRight(-t):n.take(t-e)),n)},ft.prototype.takeRightWhile=function(e,t){return this.reverse().takeWhile(e,t).reverse()},ft.prototype.toArray=function(){return this.take(ot)},qt(ft.prototype,(function(e,t){var n=/^(?:filter|map|reject)|While$/.test(t),r=/^(?:first|last)$/.test(t),i=lt[r?"take"+("last"==t?"Right":""):t];i&&(lt.prototype[t]=function(){var t=r?[1]:arguments,o=this.__chain__,a=this.__wrapped__,s=!!this.__actions__.length,l=a instanceof ft,u=t[0],c=l||Di(a);c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=function(e){return r&&o?i(e,1)[0]:i.apply(void 0,wt([e],t))},d={func:Wr,args:[f],thisArg:void 0},h=l&&!s;if(r&&!o)return h?((a=a.clone()).__actions__.push(d),e.call(a)):i.call(void 0,this.value())[0];if(!r&&c){a=h?a:new ft(this);var p=e.apply(a,t);return p.__actions__.push(d),new ct(p,o)}return this.thru(f)})})),vt(["join","pop","push","replace","shift","sort","splice","split","unshift"],(function(e){var t=(/^(?:replace|split)$/.test(e)?ce:le)[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:join|pop|replace|shift)$/.test(e);lt.prototype[e]=function(){var e=arguments;return r&&!this.__chain__?t.apply(this.value(),e):this[n]((function(n){return t.apply(n,e)}))}})),qt(ft.prototype,(function(e,t){var n=lt[t];if(n){var r=n.name;(st[r]||(st[r]=[])).push({name:t,func:n})}})),st[Hn(void 0,2).name]=[{name:"wrapper",func:void 0}],ft.prototype.clone=function(){var e=new ft(this.__wrapped__);return e.__actions__=gt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=gt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=gt(this.__views__),e},ft.prototype.reverse=function(){if(this.__filtered__){var e=new ft(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ft.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Di(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=et(t,e+a);break;case"takeRight":e=Ze(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,f=c.length,d=0,h=et(l,this.__takeCount__);if(!n||i<200||i==l&&h==l)return cn(r&&n?e.reverse():e,this.__actions__);var p=[];e:for(;l--&&d<h;){for(var g=-1,v=e[u+=t];++g<f;){var m=c[g],y=m.iteratee,b=m.type,w=y(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}p[d++]=v}return p},lt.prototype.chain=function(){return Fr(this)},lt.prototype.commit=function(){return new ct(this.value(),this.__chain__)},lt.prototype.concat=zr,lt.prototype.plant=function(e){for(var t,n=this;n instanceof ut;){var r=mr(n);t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},lt.prototype.reverse=function(){var e=this.__wrapped__,t=function(e){return n&&n.__dir__<0?e:e.reverse()};if(e instanceof ft){var n=e;return this.__actions__.length&&(n=new ft(this)),(n=n.reverse()).__actions__.push({func:Wr,args:[t],thisArg:void 0}),new ct(n,this.__chain__)}return this.thru(t)},lt.prototype.toString=function(){return this.value()+""},lt.prototype.run=lt.prototype.toJSON=lt.prototype.valueOf=lt.prototype.value=function(){return cn(this.__wrapped__,this.__actions__)},lt.prototype.collect=lt.prototype.map,lt.prototype.head=lt.prototype.first,lt.prototype.select=lt.prototype.filter,lt.prototype.tail=lt.prototype.rest,lt}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(he._=Ee,define((function(){return Ee}))):se&&le?de?(le.exports=Ee)._=Ee:se._=Ee:he._=Ee}).call(this)}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],20:[function(e,t,n){(function(){var r;r=function(e){return e.pivotUtilities.d3_renderers={Treemap:function(t,n){var r,i,o,a,s,l,u,c,f,d,h,p,g;for(o={localeStrings:{},d3:{width:function(){return e(window).width()/1.4},height:function(){return e(window).height()/1.4}}},n=e.extend(o,n),c=e("<div>").css({width:"100%",height:"100%"}),d={name:"All",children:[]},r=function(e,t,n){var i,o,a,s,l,u;if(0!==t.length){for(null==e.children&&(e.children=[]),u=t.shift(),o=0,a=(l=e.children).length;o<a;o++)if((i=l[o]).name===u)return void r(i,t,n);return r(s={name:u},t,n),e.children.push(s)}e.value=n},s=0,l=(u=t.getRowKeys()).length;s<l;s++)f=u[s],null!=(p=t.getAggregator(f,[]).value())&&r(d,f,p);return i=d3.scale.category10(),g=n.d3.width(),a=n.d3.height(),h=d3.layout.treemap().size([g,a]).sticky(!0).value((function(e){return e.size})),d3.select(c[0]).append("div").style("position","relative").style("width",g+"px").style("height",a+"px").datum(d).selectAll(".node").data(h.padding([15,0,0,0]).value((function(e){return e.value})).nodes).enter().append("div").attr("class","node").style("background",(function(e){return null!=e.children?"lightgrey":i(e.name)})).text((function(e){return e.name})).call((function(){this.style("left",(function(e){return e.x+"px"})).style("top",(function(e){return e.y+"px"})).style("width",(function(e){return Math.max(0,e.dx-1)+"px"})).style("height",(function(e){return Math.max(0,e.dy-1)+"px"}))})),c}}},"object"==typeof n&&"object"==typeof t?r(e("jquery")):"function"==typeof define&&define.amd?define(["jquery"],r):r(jQuery)}).call(this)},{jquery:18}],21:[function(e,t,n){(function(){var r;r=function(e){var t;return t=function(t,n){return function(r,i){var o,a,s,l,u,c,f,d,h,p,g,v,m,y,b,w,x,C,S,_,T,k,D,L,A,N,j,M,E,I,O;if(d={localeStrings:{vs:"vs",by:"by"},gchart:{}},null==(a=(i=e.extend(!0,d,i)).gchart).width&&(a.width=window.innerWidth/1.4),null==(s=i.gchart).height&&(s.height=window.innerHeight/1.4),0===(L=r.getRowKeys()).length&&L.push([]),0===(u=r.getColKeys()).length&&u.push([]),h=r.aggregatorName,r.valAttrs.length&&(h+="("+r.valAttrs.join(", ")+")"),(m=function(){var e,t,n;for(n=[],e=0,t=L.length;e<t;e++)g=L[e],n.push(g.join("-"));return n}()).unshift(""),C=0,"ScatterChart"===t){for(O in c=[],_=r.tree)for(I in N=_[O])o=N[I],c.push([parseFloat(I),parseFloat(O),h+": \n"+o.format(o.value())]);(f=new google.visualization.DataTable).addColumn("number",r.colAttrs.join("-")),f.addColumn("number",r.rowAttrs.join("-")),f.addColumn({type:"string",role:"tooltip"}),f.addRows(c),v=r.colAttrs.join("-"),j=r.rowAttrs.join("-"),A=""}else{for(c=[m],y=0,w=u.length;y<w;y++){for(C+=(k=[(l=u[y]).join("-")])[0].length,b=0,x=L.length;b<x;b++)D=L[b],null!=(o=r.getAggregator(D,l)).value()?(M=o.value(),e.isNumeric(M)?M<1?k.push(parseFloat(M.toPrecision(3))):k.push(parseFloat(M.toFixed(3))):k.push(M)):k.push(null);c.push(k)}f=google.visualization.arrayToDataTable(c),A=j=h,""!==(v=r.colAttrs.join("-"))&&(A+=" "+i.localeStrings.vs+" "+v),""!==(p=r.rowAttrs.join("-"))&&(A+=" "+i.localeStrings.by+" "+p)}return S={title:A,hAxis:{title:v,slantedText:C>50},vAxis:{title:j},tooltip:{textStyle:{fontName:"Arial",fontSize:12}}},"ColumnChart"===t&&(S.vAxis.minValue=0),"ScatterChart"===t?(S.legend={position:"none"},S.chartArea={width:"80%",height:"80%"}):2===c[0].length&&""===c[0][1]&&(S.legend={position:"none"}),e.extend(S,i.gchart,n),T=e("<div>").css({width:"100%",height:"100%"}),(E=new google.visualization.ChartWrapper({dataTable:f,chartType:t,options:S})).draw(T[0]),T.bind("dblclick",(function(){var e;return e=new google.visualization.ChartEditor,google.visualization.events.addListener(e,"ok",(function(){return e.getChartWrapper().draw(T[0])})),e.openDialog(E)})),T}},e.pivotUtilities.gchart_renderers={"Line Chart":t("LineChart"),"Bar Chart":t("ColumnChart"),"Stacked Bar Chart":t("ColumnChart",{isStacked:!0}),"Area Chart":t("AreaChart",{isStacked:!0}),"Scatter Chart":t("ScatterChart")}},"object"==typeof n&&"object"==typeof t?r(e("jquery")):"function"==typeof define&&define.amd?define(["jquery"],r):r(jQuery)}).call(this)},{jquery:18}],22:[function(e,t,n){(function(){var r,i=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},o=[].slice,a=function(e,t){return function(){return e.apply(t,arguments)}},s={}.hasOwnProperty;r=function(e){var t,n,r,l,u,c,f,d,h,p,g,v,m,y,b,w,x,C,S;return n=function(e,t,n){var r,i,o,a;for(o=(i=(e+="").split("."))[0],a=i.length>1?n+i[1]:"",r=/(\d+)(\d{3})/;r.test(o);)o=o.replace(r,"$1"+t+"$2");return o+a},b=(g=function(t){var r;return r={digitsAfterDecimal:2,scaler:1,thousandsSep:",",decimalSep:".",prefix:"",suffix:"",showZero:!1},t=e.extend(r,t),function(e){var r;return isNaN(e)||!isFinite(e)?"":0!==e||t.showZero?(r=n((t.scaler*e).toFixed(t.digitsAfterDecimal),t.thousandsSep,t.decimalSep),""+t.prefix+r+t.suffix):""}})(),w=g({digitsAfterDecimal:0}),x=g({digitsAfterDecimal:1,scaler:100,suffix:"%"}),l={Count:(S=r={count:function(e){return null==e&&(e=w),function(){return function(t,n,r){return{count:0,push:function(){return this.count++},value:function(){return this.count},format:e}}}},countUnique:function(e){return null==e&&(e=w),function(t){var n;return n=t[0],function(t,r,o){return{uniq:[],push:function(e){var t;if(t=e[n],i.call(this.uniq,t)<0)return this.uniq.push(e[n])},value:function(){return this.uniq.length},format:e,numInputs:null!=n?0:1}}}},listUnique:function(e){return function(t){var n;return n=t[0],function(t,r,o){return{uniq:[],push:function(e){var t;if(t=e[n],i.call(this.uniq,t)<0)return this.uniq.push(e[n])},value:function(){return this.uniq.join(e)},format:function(e){return e},numInputs:null!=n?0:1}}}},sum:function(e){return null==e&&(e=b),function(t){var n;return n=t[0],function(t,r,i){return{sum:0,push:function(e){if(!isNaN(parseFloat(e[n])))return this.sum+=parseFloat(e[n])},value:function(){return this.sum},format:e,numInputs:null!=n?0:1}}}},min:function(e){return null==e&&(e=b),function(t){var n;return n=t[0],function(t,r,i){return{val:null,push:function(e){var t,r;if(r=parseFloat(e[n]),!isNaN(r))return this.val=Math.min(r,null!=(t=this.val)?t:r)},value:function(){return this.val},format:e,numInputs:null!=n?0:1}}}},max:function(e){return null==e&&(e=b),function(t){var n;return n=t[0],function(t,r,i){return{val:null,push:function(e){var t,r;if(r=parseFloat(e[n]),!isNaN(r))return this.val=Math.max(r,null!=(t=this.val)?t:r)},value:function(){return this.val},format:e,numInputs:null!=n?0:1}}}},average:function(e){return null==e&&(e=b),function(t){var n;return n=t[0],function(t,r,i){return{sum:0,len:0,push:function(e){if(!isNaN(parseFloat(e[n])))return this.sum+=parseFloat(e[n]),this.len++},value:function(){return this.sum/this.len},format:e,numInputs:null!=n?0:1}}}},sumOverSum:function(e){return null==e&&(e=b),function(t){var n,r;return r=t[0],n=t[1],function(t,i,o){return{sumNum:0,sumDenom:0,push:function(e){if(isNaN(parseFloat(e[r]))||(this.sumNum+=parseFloat(e[r])),!isNaN(parseFloat(e[n])))return this.sumDenom+=parseFloat(e[n])},value:function(){return this.sumNum/this.sumDenom},format:e,numInputs:null!=r&&null!=n?0:2}}}},sumOverSumBound80:function(e,t){return null==e&&(e=!0),null==t&&(t=b),function(n){var r,i;return i=n[0],r=n[1],function(n,o,a){return{sumNum:0,sumDenom:0,push:function(e){if(isNaN(parseFloat(e[i]))||(this.sumNum+=parseFloat(e[i])),!isNaN(parseFloat(e[r])))return this.sumDenom+=parseFloat(e[r])},value:function(){var t;return t=e?1:-1,(.821187207574908/this.sumDenom+this.sumNum/this.sumDenom+1.2815515655446004*t*Math.sqrt(.410593603787454/(this.sumDenom*this.sumDenom)+this.sumNum*(1-this.sumNum/this.sumDenom)/(this.sumDenom*this.sumDenom)))/(1+1.642374415149816/this.sumDenom)},format:t,numInputs:null!=i&&null!=r?0:2}}}},fractionOf:function(e,t,n){return null==t&&(t="total"),null==n&&(n=x),function(){var r;return r=1<=arguments.length?o.call(arguments,0):[],function(i,o,a){return{selector:{total:[[],[]],row:[o,[]],col:[[],a]}[t],inner:e.apply(null,r)(i,o,a),push:function(e){return this.inner.push(e)},format:n,value:function(){return this.inner.value()/i.getAggregator.apply(i,this.selector).inner.value()},numInputs:e.apply(null,r)().numInputs}}}}}).count(w),"Count Unique Values":S.countUnique(w),"List Unique Values":S.listUnique(", "),Sum:S.sum(b),"Integer Sum":S.sum(w),Average:S.average(b),Minimum:S.min(b),Maximum:S.max(b),"Sum over Sum":S.sumOverSum(b),"80% Upper Bound":S.sumOverSumBound80(!0,b),"80% Lower Bound":S.sumOverSumBound80(!1,b),"Sum as Fraction of Total":S.fractionOf(S.sum(),"total",x),"Sum as Fraction of Rows":S.fractionOf(S.sum(),"row",x),"Sum as Fraction of Columns":S.fractionOf(S.sum(),"col",x),"Count as Fraction of Total":S.fractionOf(S.count(),"total",x),"Count as Fraction of Rows":S.fractionOf(S.count(),"row",x),"Count as Fraction of Columns":S.fractionOf(S.count(),"col",x)},d={en:{aggregators:l,renderers:m={Table:function(e,t){return v(e,t)},"Table Barchart":function(t,n){return e(v(t,n)).barchart()},Heatmap:function(t,n){return e(v(t,n)).heatmap()},"Row Heatmap":function(t,n){return e(v(t,n)).heatmap("rowheatmap")},"Col Heatmap":function(t,n){return e(v(t,n)).heatmap("colheatmap")}},localeStrings:{renderError:"An error occurred rendering the PivotTable results.",computeError:"An error occurred computing the PivotTable results.",uiRenderError:"An error occurred rendering the PivotTable UI.",selectAll:"Select All",selectNone:"Select None",tooMany:"(too many to list)",filterResults:"Filter results",totals:"Totals",vs:"vs",by:"by"}}},h=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],u=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],C=function(e){return("0"+e).substr(-2,2)},c={bin:function(e,t){return function(n){return n[e]-n[e]%t}},dateFormat:function(e,t,n,r,i){var o;return null==n&&(n=!1),null==r&&(r=h),null==i&&(i=u),o=n?"UTC":"",function(n){var a;return a=new Date(Date.parse(n[e])),isNaN(a)?"":t.replace(/%(.)/g,(function(e,t){switch(t){case"y":return a["get"+o+"FullYear"]();case"m":return C(a["get"+o+"Month"]()+1);case"n":return r[a["get"+o+"Month"]()];case"d":return C(a["get"+o+"Date"]());case"w":return i[a["get"+o+"Day"]()];case"x":return a["get"+o+"Day"]();case"H":return C(a["get"+o+"Hours"]());case"M":return C(a["get"+o+"Minutes"]());case"S":return C(a["get"+o+"Seconds"]());default:return"%"+t}}))}}},p=function(e,t){var n,r,i,o,a,s,l;if(s=/(\d+)|(\D+)/g,a=/\d/,l=/^0/,"number"==typeof e||"number"==typeof t)return isNaN(e)?1:isNaN(t)?-1:e-t;if((n=String(e).toLowerCase())===(i=String(t).toLowerCase()))return 0;if(!a.test(n)||!a.test(i))return n>i?1:-1;for(n=n.match(s),i=i.match(s);n.length&&i.length;)if((r=n.shift())!==(o=i.shift()))return a.test(r)&&a.test(o)?r.replace(l,".0")-o.replace(l,".0"):r>o?1:-1;return n.length-i.length},y=function(e){var t,n,r;for(t in n={},e)r=e[t],n[r]=t;return function(e,t){return null!=n[e]&&null!=n[t]?n[e]-n[t]:null!=n[e]?-1:null!=n[t]?1:p(e,t)}},f=function(t,n){var r;return r=t(n),e.isFunction(r)?r:p},e.pivotUtilities={aggregatorTemplates:r,aggregators:l,renderers:m,derivers:c,locales:d,naturalSort:p,numberFormat:g,sortAs:y},t=function(){function t(e,n){var r;this.getAggregator=a(this.getAggregator,this),this.getRowKeys=a(this.getRowKeys,this),this.getColKeys=a(this.getColKeys,this),this.sortKeys=a(this.sortKeys,this),this.arrSort=a(this.arrSort,this),this.aggregator=n.aggregator,this.aggregatorName=n.aggregatorName,this.colAttrs=n.cols,this.rowAttrs=n.rows,this.valAttrs=n.vals,this.sorters=n.sorters,this.tree={},this.rowKeys=[],this.colKeys=[],this.rowTotals={},this.colTotals={},this.allTotal=this.aggregator(this,[],[]),this.sorted=!1,t.forEachRecord(e,n.derivedAttributes,(r=this,function(e){if(n.filter(e))return r.processRecord(e)}))}return t.forEachRecord=function(t,n,r){var i,o,a,l,u,c,f,d,h,p,g,v;if(i=e.isEmptyObject(n)?r:function(e){var t,i,o;for(t in n)o=n[t],e[t]=null!=(i=o(e))?i:e[t];return r(e)},e.isFunction(t))return t(i);if(e.isArray(t)){if(e.isArray(t[0])){for(a in p=[],t)if(s.call(t,a)&&(o=t[a],a>0)){for(l in d={},h=t[0])s.call(h,l)&&(u=h[l],d[u]=o[l]);p.push(i(d))}return p}for(g=[],c=0,f=t.length;c<f;c++)d=t[c],g.push(i(d));return g}if(t instanceof jQuery)return v=[],e("thead > tr > th",t).each((function(t){return v.push(e(this).text())})),e("tbody > tr",t).each((function(t){return d={},e("td",this).each((function(t){return d[v[t]]=e(this).html()})),i(d)}));throw new Error("unknown input format")},t.convertToArray=function(e){var n;return n=[],t.forEachRecord(e,{},(function(e){return n.push(e)})),n},t.prototype.arrSort=function(e){var t,n;return n=function(){var n,r,i;for(i=[],n=0,r=e.length;n<r;n++)t=e[n],i.push(f(this.sorters,t));return i}.call(this),function(e,t){var r,i;for(i in n)if(0!==(r=(0,n[i])(e[i],t[i])))return r;return 0}},t.prototype.sortKeys=function(){if(!this.sorted)return this.sorted=!0,this.rowKeys.sort(this.arrSort(this.rowAttrs)),this.colKeys.sort(this.arrSort(this.colAttrs))},t.prototype.getColKeys=function(){return this.sortKeys(),this.colKeys},t.prototype.getRowKeys=function(){return this.sortKeys(),this.rowKeys},t.prototype.processRecord=function(e){var t,n,r,i,o,a,s,l,u,c,f,d,h;for(t=[],d=[],i=0,o=(l=this.colAttrs).length;i<o;i++)h=l[i],t.push(null!=(u=e[h])?u:"null");for(s=0,a=(c=this.rowAttrs).length;s<a;s++)h=c[s],d.push(null!=(f=e[h])?f:"null");if(r=d.join(String.fromCharCode(0)),n=t.join(String.fromCharCode(0)),this.allTotal.push(e),0!==d.length&&(this.rowTotals[r]||(this.rowKeys.push(d),this.rowTotals[r]=this.aggregator(this,d,[])),this.rowTotals[r].push(e)),0!==t.length&&(this.colTotals[n]||(this.colKeys.push(t),this.colTotals[n]=this.aggregator(this,[],t)),this.colTotals[n].push(e)),0!==t.length&&0!==d.length)return this.tree[r]||(this.tree[r]={}),this.tree[r][n]||(this.tree[r][n]=this.aggregator(this,d,t)),this.tree[r][n].push(e)},t.prototype.getAggregator=function(e,t){var n,r,i;return i=e.join(String.fromCharCode(0)),r=t.join(String.fromCharCode(0)),null!=(n=0===e.length&&0===t.length?this.allTotal:0===e.length?this.colTotals[r]:0===t.length?this.rowTotals[i]:this.tree[i][r])?n:{value:function(){return null},format:function(){return""}}},t}(),v=function(t,n){var r,i,o,a,l,u,c,f,d,h,p,g,v,m,y,b,w,x,C,S,_;for(f in u={localeStrings:{totals:"Totals"}},n=e.extend(u,n),o=t.colAttrs,p=t.rowAttrs,v=t.getRowKeys(),l=t.getColKeys(),(h=document.createElement("table")).className="pvtTable",m=function(e,t,n){var r,i,o,a,s,l,u,c;if(0!==t){for(a=!0,c=r=0,s=n;0<=s?r<=s:r>=s;c=0<=s?++r:--r)e[t-1][c]!==e[t][c]&&(a=!1);if(a)return-1}for(i=0;t+i<e.length;){for(u=!1,c=o=0,l=n;0<=l?o<=l:o>=l;c=0<=l?++o:--o)e[t][c]!==e[t+i][c]&&(u=!0);if(u)break;i++}return i},o)if(s.call(o,f)){for(c in i=o[f],x=document.createElement("tr"),0===parseInt(f)&&0!==p.length&&((b=document.createElement("th")).setAttribute("colspan",p.length),b.setAttribute("rowspan",o.length),x.appendChild(b)),(b=document.createElement("th")).className="pvtAxisLabel",b.innerHTML=i,x.appendChild(b),l)s.call(l,c)&&(a=l[c],-1!==(_=m(l,parseInt(c),parseInt(f)))&&((b=document.createElement("th")).className="pvtColLabel",b.innerHTML=a[f],b.setAttribute("colspan",_),parseInt(f)===o.length-1&&0!==p.length&&b.setAttribute("rowspan",2),x.appendChild(b)));0===parseInt(f)&&((b=document.createElement("th")).className="pvtTotalLabel",b.innerHTML=n.localeStrings.totals,b.setAttribute("rowspan",o.length+(0===p.length?0:1)),x.appendChild(b)),h.appendChild(x)}if(0!==p.length){for(c in x=document.createElement("tr"),p)s.call(p,c)&&(d=p[c],(b=document.createElement("th")).className="pvtAxisLabel",b.innerHTML=d,x.appendChild(b));b=document.createElement("th"),0===o.length&&(b.className="pvtTotalLabel",b.innerHTML=n.localeStrings.totals),x.appendChild(b),h.appendChild(x)}for(c in v)if(s.call(v,c)){for(f in g=v[c],x=document.createElement("tr"),g)s.call(g,f)&&(C=g[f],-1!==(_=m(v,parseInt(c),parseInt(f)))&&((b=document.createElement("th")).className="pvtRowLabel",b.innerHTML=C,b.setAttribute("rowspan",_),parseInt(f)===p.length-1&&0!==o.length&&b.setAttribute("colspan",2),x.appendChild(b)));for(f in l)s.call(l,f)&&(a=l[f],S=(r=t.getAggregator(g,a)).value(),(y=document.createElement("td")).className="pvtVal row"+c+" col"+f,y.innerHTML=r.format(S),y.setAttribute("data-value",S),x.appendChild(y));S=(w=t.getAggregator(g,[])).value(),(y=document.createElement("td")).className="pvtTotal rowTotal",y.innerHTML=w.format(S),y.setAttribute("data-value",S),y.setAttribute("data-for","row"+c),x.appendChild(y),h.appendChild(x)}for(f in x=document.createElement("tr"),(b=document.createElement("th")).className="pvtTotalLabel",b.innerHTML=n.localeStrings.totals,b.setAttribute("colspan",p.length+(0===o.length?0:1)),x.appendChild(b),l)s.call(l,f)&&(a=l[f],S=(w=t.getAggregator([],a)).value(),(y=document.createElement("td")).className="pvtTotal colTotal",y.innerHTML=w.format(S),y.setAttribute("data-value",S),y.setAttribute("data-for","col"+f),x.appendChild(y));return S=(w=t.getAggregator([],[])).value(),(y=document.createElement("td")).className="pvtGrandTotal",y.innerHTML=w.format(S),y.setAttribute("data-value",S),x.appendChild(y),h.appendChild(x),h.setAttribute("data-numrows",v.length),h.setAttribute("data-numcols",l.length),h},e.fn.pivot=function(n,i){var o,a,s,l,u;o={cols:[],rows:[],vals:[],filter:function(){return!0},aggregator:r.count()(),aggregatorName:"Count",sorters:function(){},derivedAttributes:{},renderer:v,rendererOptions:null,localeStrings:d.en.localeStrings},i=e.extend(o,i),l=null;try{s=new t(n,i);try{l=i.renderer(s,i.rendererOptions)}catch(t){a=t,"undefined"!=typeof console&&null!==console&&console.error(a.stack),l=e("<span>").html(i.localeStrings.renderError)}}catch(t){a=t,"undefined"!=typeof console&&null!==console&&console.error(a.stack),l=e("<span>").html(i.localeStrings.computeError)}for(u=this[0];u.hasChildNodes();)u.removeChild(u.lastChild);return this.append(l)},e.fn.pivotUI=function(n,r,o,a){var l,u,c,h,g,v,m,y,b,w,x,C,S,_,T,k,D,L,A,N,j,M,E,I,O,P,R,H,F,W,z,q,B,U,V,G,X,$,J,Y;null==o&&(o=!1),null==a&&(a="en"),null==d[a]&&(a="en"),v={derivedAttributes:{},aggregators:d[a].aggregators,renderers:d[a].renderers,hiddenAttributes:[],menuLimit:200,cols:[],rows:[],vals:[],exclusions:{},inclusions:{},unusedAttrsVertical:85,autoSortUnusedAttrs:!1,rendererOptions:{localeStrings:d[a].localeStrings},onRefresh:null,filter:function(){return!0},sorters:function(){},localeStrings:d[a].localeStrings},y=this.data("pivotUIOptions"),N=null==y||o?e.extend(v,r):y;try{for(h in n=t.convertToArray(n),B=function(){var e,t;for(C in t=[],e=n[0])s.call(e,C)&&t.push(C);return t}(),E=N.derivedAttributes)s.call(E,h)&&i.call(B,h)<0&&B.push(h);for(c={},S=0,_=B.length;S<_;S++)J=B[S],c[J]={};for(J in t.forEachRecord(n,N.derivedAttributes,(function(e){var t,n,r;for(C in n=[],e)s.call(e,C)&&(r=e[C],N.filter(e)&&(null==r&&(r="null"),null==(t=c[C])[r]&&(t[r]=0),n.push(c[C][r]++)));return n})),G=e("<table>",{class:"pvtUi"}).attr("cellpadding",5),z=e("<td>"),W=e("<select>").addClass("pvtRenderer").appendTo(z).bind("change",(function(){return H()})),I=N.renderers)s.call(I,J)&&e("<option>").val(J).html(J).appendTo(W);if(g=e("<td>").addClass("pvtAxisContainer pvtUnused"),q=function(){var e,t,n;for(n=[],t=0,e=B.length;t<e;t++)h=B[t],i.call(N.hiddenAttributes,h)<0&&n.push(h);return n}(),$=!1,X="auto"===N.unusedAttrsVertical?120:parseInt(N.unusedAttrsVertical),!isNaN(X)){for(u=0,L=0,T=q.length;L<T;L++)u+=q[L].length;$=u>X}for(w in!0===N.unusedAttrsVertical||$?g.addClass("pvtVertList"):g.addClass("pvtHorizList"),b=function(t){var n,r,o,a,s,l,u,d,h,p,v,m,y,b,x;if(u=function(){var e;for(C in e=[],c[t])e.push(C);return e}(),l=!1,(x=e("<div>").addClass("pvtFilterBox").hide()).append(e("<h4>").text(t+" ("+u.length+")")),u.length>N.menuLimit)x.append(e("<p>").html(N.localeStrings.tooMany));else for((r=e("<p>").appendTo(x)).append(e("<button>",{type:"button"}).html(N.localeStrings.selectAll).bind("click",(function(){return x.find("input:visible").prop("checked",!0)}))),r.append(e("<button>",{type:"button"}).html(N.localeStrings.selectNone).bind("click",(function(){return x.find("input:visible").prop("checked",!1)}))),r.append(e("<br>")),r.append(e("<input>",{type:"text",placeholder:N.localeStrings.filterResults,class:"pvtSearch"}).bind("keyup",(function(){var t;return t=e(this).val().toLowerCase(),x.find(".pvtCheckContainer p").each((function(){return-1!==e(this).text().toLowerCase().indexOf(t)?e(this).show():e(this).hide()}))}))),o=e("<div>").addClass("pvtCheckContainer").appendTo(x),h=0,d=(p=u.sort(f(N.sorters,t))).length;h<d;h++)C=p[h],b=c[t][C],a=e("<label>"),s=!1,N.inclusions[t]?s=i.call(N.inclusions[t],C)<0:N.exclusions[t]&&(s=i.call(N.exclusions[t],C)>=0),l||(l=s),e("<input>").attr("type","checkbox").addClass("pvtFilter").attr("checked",!s).data("filter",[t,C]).appendTo(a),a.append(e("<span>").html(C)),a.append(e("<span>").text(" ("+b+")")),o.append(e("<p>").append(a));return y=function(){return x.find("[type='checkbox']").length-x.find("[type='checkbox']:checked").length>0?n.addClass("pvtFilteredAttribute"):n.removeClass("pvtFilteredAttribute"),u.length>N.menuLimit?x.toggle():x.toggle(0,H)},e("<p>").appendTo(x).append(e("<button>",{type:"button"}).text("OK").bind("click",y)),v=function(t){var n,r,i;return n=(i=e(t.currentTarget).position()).left,r=i.top,x.css({left:n+10,top:r+10}).toggle(),x.find(".pvtSearch").val(""),x.find(".pvtCheckContainer p").show()},m=e("<span>").addClass("pvtTriangle").html(" &#x25BE;").bind("click",v),n=e("<li>").addClass("axis_"+w).append(e("<span>").addClass("pvtAttr").text(t).data("attrName",t).append(m)),l&&n.addClass("pvtFilteredAttribute"),g.append(n).append(x),n.bind("dblclick",v)},q)s.call(q,w)&&b(h=q[w]);for(J in U=e("<tr>").appendTo(G),l=e("<select>").addClass("pvtAggregator").bind("change",(function(){return H()})),O=N.aggregators)s.call(O,J)&&l.append(e("<option>").val(J).html(J));for(e("<td>").addClass("pvtVals").appendTo(U).append(l).append(e("<br>")),e("<td>").addClass("pvtAxisContainer pvtHorizList pvtCols").appendTo(U),(V=e("<tr>").appendTo(G)).append(e("<td>").addClass("pvtAxisContainer pvtRows").attr("valign","top")),j=e("<td>").attr("valign","top").addClass("pvtRendererArea").appendTo(V),!0===N.unusedAttrsVertical||$?(G.find("tr:nth-child(1)").prepend(z),G.find("tr:nth-child(2)").prepend(g)):G.prepend(e("<tr>").append(z).append(g)),this.html(G),P=N.cols,A=0,k=P.length;A<k;A++)J=P[A],this.find(".pvtCols").append(this.find(".axis_"+e.inArray(J,q)));for(R=N.rows,M=0,D=R.length;M<D;M++)J=R[M],this.find(".pvtRows").append(this.find(".axis_"+e.inArray(J,q)));null!=N.aggregatorName&&this.find(".pvtAggregator").val(N.aggregatorName),null!=N.rendererName&&this.find(".pvtRenderer").val(N.rendererName),x=!0,Y=this,F=function(){var t,r,o,a,s,u,c,f,d,h,g,v,m,y,b;if(v={derivedAttributes:N.derivedAttributes,localeStrings:N.localeStrings,rendererOptions:N.rendererOptions,sorters:N.sorters,cols:[],rows:[]},u=null!=(d=N.aggregators[l.val()]([])().numInputs)?d:0,b=[],Y.find(".pvtRows li span.pvtAttr").each((function(){return v.rows.push(e(this).data("attrName"))})),Y.find(".pvtCols li span.pvtAttr").each((function(){return v.cols.push(e(this).data("attrName"))})),Y.find(".pvtVals select.pvtAttrDropdown").each((function(){return 0===u?e(this).remove():(u--,""!==e(this).val()?b.push(e(this).val()):void 0)})),0!==u)for(f=Y.find(".pvtVals"),J=g=0,h=u;0<=h?g<h:g>h;J=0<=h?++g:--g){for(s=e("<select>").addClass("pvtAttrDropdown").append(e("<option>")).bind("change",(function(){return H()})),m=0,a=q.length;m<a;m++)t=q[m],s.append(e("<option>").val(t).text(t));f.append(s)}if(x&&(b=N.vals,w=0,Y.find(".pvtVals select.pvtAttrDropdown").each((function(){return e(this).val(b[w]),w++})),x=!1),v.aggregatorName=l.val(),v.vals=b,v.aggregator=N.aggregators[l.val()](b),v.renderer=N.renderers[W.val()],r={},Y.find("input.pvtFilter").not(":checked").each((function(){var t;return t=e(this).data("filter"),null!=r[t[0]]?r[t[0]].push(t[1]):r[t[0]]=[t[1]]})),o={},Y.find("input.pvtFilter:checked").each((function(){var t;if(t=e(this).data("filter"),null!=r[t[0]])return null!=o[t[0]]?o[t[0]].push(t[1]):o[t[0]]=[t[1]]})),v.filter=function(e){var t,n;if(!N.filter(e))return!1;for(C in r)if(t=r[C],n=""+e[C],i.call(t,n)>=0)return!1;return!0},j.pivot(n,v),c=e.extend(N,{cols:v.cols,rows:v.rows,vals:b,exclusions:r,inclusions:o,inclusionsInfo:o,aggregatorName:l.val(),rendererName:W.val()}),Y.data("pivotUIOptions",c),N.autoSortUnusedAttrs&&(y=Y.find("td.pvtUnused.pvtAxisContainer"),e(y).children("li").sort((function(t,n){return p(e(t).text(),e(n).text())})).appendTo(y)),j.css("opacity",1),null!=N.onRefresh)return N.onRefresh(c)},(H=function(){return j.css("opacity",.5),setTimeout(F,10)})(),this.find(".pvtAxisContainer").sortable({update:function(e,t){if(null==t.sender)return H()},connectWith:this.find(".pvtAxisContainer"),items:"li",placeholder:"pvtPlaceholder"})}catch(e){m=e,"undefined"!=typeof console&&null!==console&&console.error(m.stack),this.html(N.localeStrings.uiRenderError)}return this},e.fn.heatmap=function(t){var n,r,i,o,a,s,l,u,c,f,d;switch(null==t&&(t="heatmap"),u=this.data("numrows"),l=this.data("numcols"),n=function(e,t,n){var r;return r=function(){switch(e){case"red":return function(e){return"ff"+e+e};case"green":return function(e){return e+"ff"+e};case"blue":return function(e){return""+e+e+"ff"}}}(),function(e){var i;return 1===(i=(255-Math.round(255*(e-t)/(n-t))).toString(16).split(".")[0]).length&&(i=0+i),r(i)}},d=this,r=function(t,r){var i,o,a;return a=[],(o=function(n){return d.find(t).each((function(){var t;if(null!=(t=e(this).data("value"))&&isFinite(t))return n(t,e(this))}))})((function(e){return a.push(e)})),i=n(r,Math.min.apply(Math,a),Math.max.apply(Math,a)),o((function(e,t){return t.css("background-color","#"+i(e))}))},t){case"heatmap":r(".pvtVal","red");break;case"rowheatmap":for(i=a=0,c=u;0<=c?a<c:a>c;i=0<=c?++a:--a)r(".pvtVal.row"+i,"red");break;case"colheatmap":for(o=s=0,f=l;0<=f?s<f:s>f;o=0<=f?++s:--s)r(".pvtVal.col"+o,"red")}return r(".pvtTotal.rowTotal","red"),r(".pvtTotal.colTotal","red"),this},e.fn.barchart=function(){var t,n,r,i,o,a;for(i=this.data("numrows"),this.data("numcols"),a=this,t=function(t){var n,r,i,o;return o=[],(n=function(n){return a.find(t).each((function(){var t;if(null!=(t=e(this).data("value"))&&isFinite(t))return n(t,e(this))}))})((function(e){return o.push(e)})),r=Math.max.apply(Math,o),i=function(e){return 100*e/(1.4*r)},n((function(t,n){var r,o;return r=n.text(),(o=e("<div>").css({position:"relative",height:"55px"})).append(e("<div>").css({position:"absolute",bottom:0,left:0,right:0,height:i(t)+"%","background-color":"gray"})),o.append(e("<div>").text(r).css({position:"relative","padding-left":"5px","padding-right":"5px"})),n.css({padding:0,"padding-top":"5px","text-align":"center"}).html(o)}))},n=r=0,o=i;0<=o?r<o:r>o;n=0<=o?++r:--r)t(".pvtVal.row"+n);return t(".pvtTotal.colTotal"),this}},"object"==typeof n&&"object"==typeof t?r(e("jquery")):"function"==typeof define&&define.amd?define(["jquery"],r):r(jQuery)}).call(this)},{jquery:18}],23:[function(e,t,n){var r=e("../src/store-engine"),i=e("../storages/all"),o=[e("../plugins/json2")];t.exports=r.createStore(i,o)},{"../plugins/json2":24,"../src/store-engine":26,"../storages/all":28}],24:[function(e,t,n){t.exports=function(){return e("./lib/json2"),{}}},{"./lib/json2":25}],25:[function(require,module,exports){"object"!=typeof JSON&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta,rep;function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,(function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function str(e,t){var n,r,i,o,a,s=gap,l=t[e];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(e)),"function"==typeof rep&&(l=rep.call(t,e,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(l)){for(o=l.length,n=0;n<o;n+=1)a[n]=str(n,l)||"null";return i=0===a.length?"[]":gap?"[\n"+gap+a.join(",\n"+gap)+"\n"+s+"]":"["+a.join(",")+"]",gap=s,i}if(rep&&"object"==typeof rep)for(o=rep.length,n=0;n<o;n+=1)"string"==typeof rep[n]&&(i=str(r=rep[n],l))&&a.push(quote(r)+(gap?": ":":")+i);else for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(i=str(r,l))&&a.push(quote(r)+(gap?": ":":")+i);return i=0===a.length?"{}":gap?"{\n"+gap+a.join(",\n"+gap)+"\n"+s+"}":"{"+a.join(",")+"}",gap=s,i}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value),"function"!=typeof JSON.stringify&&(meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,t,n){var r;if(gap="",indent="","number"==typeof n)for(r=0;r<n;r+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){var j;function walk(e,t){var n,r,i=e[t];if(i&&"object"==typeof i)for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(void 0!==(r=walk(i,n))?i[n]=r:delete i[n]);return reviver.call(e,t,i)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,(function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},{}],26:[function(e,t,n){var r=e("./util"),i=r.slice,o=r.pluck,a=r.each,s=r.bind,l=r.create,u=r.isList,c=r.isFunction,f=r.isObject;t.exports={createStore:h};var d={version:"2.0.12",enabled:!1,get:function(e,t){var n=this.storage.read(this._namespacePrefix+e);return this._deserialize(n,t)},set:function(e,t){return void 0===t?this.remove(e):(this.storage.write(this._namespacePrefix+e,this._serialize(t)),t)},remove:function(e){this.storage.remove(this._namespacePrefix+e)},each:function(e){var t=this;this.storage.each((function(n,r){e.call(t,t._deserialize(n),(r||"").replace(t._namespaceRegexp,""))}))},clearAll:function(){this.storage.clearAll()},hasNamespace:function(e){return this._namespacePrefix=="__storejs_"+e+"_"},createStore:function(){return h.apply(this,arguments)},addPlugin:function(e){this._addPlugin(e)},namespace:function(e){return h(this.storage,this.plugins,e)}};function h(e,t,n){n||(n=""),e&&!u(e)&&(e=[e]),t&&!u(t)&&(t=[t]);var r=n?"__storejs_"+n+"_":"",h=n?new RegExp("^"+r):null;if(!/^[a-zA-Z0-9_\-]*$/.test(n))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var p=l({_namespacePrefix:r,_namespaceRegexp:h,_testStorage:function(e){try{var t="__storejs__test__";e.write(t,t);var n=e.read(t)===t;return e.remove(t),n}catch(e){return!1}},_assignPluginFnProp:function(e,t){var n=this[t];this[t]=function(){var t=i(arguments,0),r=this;function o(){if(n)return a(arguments,(function(e,n){t[n]=e})),n.apply(r,t)}var s=[o].concat(t);return e.apply(r,s)}},_serialize:function(e){return JSON.stringify(e)},_deserialize:function(e,t){if(!e)return t;var n="";try{n=JSON.parse(e)}catch(t){n=e}return void 0!==n?n:t},_addStorage:function(e){this.enabled||this._testStorage(e)&&(this.storage=e,this.enabled=!0)},_addPlugin:function(e){var t=this;if(u(e))a(e,(function(e){t._addPlugin(e)}));else if(!o(this.plugins,(function(t){return e===t}))){if(this.plugins.push(e),!c(e))throw new Error("Plugins must be function values that return objects");var n=e.call(this);if(!f(n))throw new Error("Plugins must return an object of function properties");a(n,(function(n,r){if(!c(n))throw new Error("Bad plugin property: "+r+" from plugin "+e.name+". Plugins should only return functions.");t._assignPluginFnProp(n,r)}))}},addStorage:function(e){!function(){var e="undefined"==typeof console?null:console;if(e){var t=e.warn?e.warn:e.log;t.apply(e,arguments)}}("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(e)}},d,{plugins:[]});return p.raw={},a(p,(function(e,t){c(e)&&(p.raw[t]=s(p,e))})),a(e,(function(e){p._addStorage(e)})),a(t,(function(e){p._addPlugin(e)})),p}},{"./util":27}],27:[function(e,t,n){(function(e){var n=Object.assign?Object.assign:function(e,t,n,r){for(var i=1;i<arguments.length;i++)s(Object(arguments[i]),(function(t,n){e[n]=t}));return e},r=function(){if(Object.create)return function(e,t,r,i){var o=a(arguments,1);return n.apply(this,[Object.create(e)].concat(o))};{function e(){}return function(t,r,i,o){var s=a(arguments,1);return e.prototype=t,n.apply(this,[new e].concat(s))}}}(),i=String.prototype.trim?function(e){return String.prototype.trim.call(e)}:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},o="undefined"!=typeof window?window:e;function a(e,t){return Array.prototype.slice.call(e,t||0)}function s(e,t){l(e,(function(e,n){return t(e,n),!1}))}function l(e,t){if(u(e)){for(var n=0;n<e.length;n++)if(t(e[n],n))return e[n]}else for(var r in e)if(e.hasOwnProperty(r)&&t(e[r],r))return e[r]}function u(e){return null!=e&&"function"!=typeof e&&"number"==typeof e.length}t.exports={assign:n,create:r,trim:i,bind:function(e,t){return function(){return t.apply(e,Array.prototype.slice.call(arguments,0))}},slice:a,each:s,map:function(e,t){var n=u(e)?[]:{};return l(e,(function(e,r){return n[r]=t(e,r),!1})),n},pluck:l,isList:u,isFunction:function(e){return e&&"[object Function]"==={}.toString.call(e)},isObject:function(e){return e&&"[object Object]"==={}.toString.call(e)},Global:o}}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],28:[function(e,t,n){t.exports=[e("./localStorage"),e("./oldFF-globalStorage"),e("./oldIE-userDataStorage"),e("./cookieStorage"),e("./sessionStorage"),e("./memoryStorage")]},{"./cookieStorage":29,"./localStorage":30,"./memoryStorage":31,"./oldFF-globalStorage":32,"./oldIE-userDataStorage":33,"./sessionStorage":34}],29:[function(e,t,n){var r=e("../src/util"),i=r.Global,o=r.trim;t.exports={name:"cookieStorage",read:function(e){if(!e||!u(e))return null;var t="(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(a.cookie.replace(new RegExp(t),"$1"))},write:function(e,t){e&&(a.cookie=escape(e)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")},each:s,remove:l,clearAll:function(){s((function(e,t){l(t)}))}};var a=i.document;function s(e){for(var t=a.cookie.split(/; ?/g),n=t.length-1;n>=0;n--)if(o(t[n])){var r=t[n].split("="),i=unescape(r[0]);e(unescape(r[1]),i)}}function l(e){e&&u(e)&&(a.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function u(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(a.cookie)}},{"../src/util":27}],30:[function(e,t,n){var r=e("../src/util").Global;function i(){return r.localStorage}function o(e){return i().getItem(e)}t.exports={name:"localStorage",read:o,write:function(e,t){return i().setItem(e,t)},each:function(e){for(var t=i().length-1;t>=0;t--){var n=i().key(t);e(o(n),n)}},remove:function(e){return i().removeItem(e)},clearAll:function(){return i().clear()}}},{"../src/util":27}],31:[function(e,t,n){t.exports={name:"memoryStorage",read:function(e){return r[e]},write:function(e,t){r[e]=t},each:function(e){for(var t in r)r.hasOwnProperty(t)&&e(r[t],t)},remove:function(e){delete r[e]},clearAll:function(e){r={}}};var r={}},{}],32:[function(e,t,n){var r=e("../src/util").Global;t.exports={name:"oldFF-globalStorage",read:function(e){return i[e]},write:function(e,t){i[e]=t},each:o,remove:function(e){return i.removeItem(e)},clearAll:function(){o((function(e,t){delete i[e]}))}};var i=r.globalStorage;function o(e){for(var t=i.length-1;t>=0;t--){var n=i.key(t);e(i[n],n)}}},{"../src/util":27}],33:[function(e,t,n){var r=e("../src/util").Global;t.exports={name:"oldIE-userDataStorage",write:function(e,t){if(!a){var n=l(e);o((function(e){e.setAttribute(n,t),e.save("storejs")}))}},read:function(e){if(!a){var t=l(e),n=null;return o((function(e){n=e.getAttribute(t)})),n}},each:function(e){o((function(t){for(var n=t.XMLDocument.documentElement.attributes,r=n.length-1;r>=0;r--){var i=n[r];e(t.getAttribute(i.name),i.name)}}))},remove:function(e){var t=l(e);o((function(e){e.removeAttribute(t),e.save("storejs")}))},clearAll:function(){o((function(e){var t=e.XMLDocument.documentElement.attributes;e.load("storejs");for(var n=t.length-1;n>=0;n--)e.removeAttribute(t[n].name);e.save("storejs")}))}};var i=r.document,o=function(){if(!i||!i.documentElement||!i.documentElement.addBehavior)return null;var e,t,n;try{(t=new ActiveXObject("htmlfile")).open(),t.write('<script>document.w=window<\/script><iframe src="/favicon.ico"></iframe>'),t.close(),e=t.w.frames[0].document,n=e.createElement("div")}catch(t){n=i.createElement("div"),e=i.body}return function(t){var r=[].slice.call(arguments,0);r.unshift(n),e.appendChild(n),n.addBehavior("#default#userData"),n.load("storejs"),t.apply(this,r),e.removeChild(n)}}(),a=(r.navigator?r.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./),s=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function l(e){return e.replace(/^\d/,"___$&").replace(s,"___")}},{"../src/util":27}],34:[function(e,t,n){var r=e("../src/util").Global;function i(){return r.sessionStorage}function o(e){return i().getItem(e)}t.exports={name:"sessionStorage",read:o,write:function(e,t){return i().setItem(e,t)},each:function(e){for(var t=i().length-1;t>=0;t--){var n=i().key(t);e(o(n),n)}},remove:function(e){return i().removeItem(e)},clearAll:function(){return i().clear()}}},{"../src/util":27}],35:[function(e,t,n){t.exports={_args:[[{raw:"yasgui-utils@^1.4.1",scope:null,escapedName:"yasgui-utils",name:"yasgui-utils",rawSpec:"^1.4.1",spec:">=1.4.1 <2.0.0",type:"range"},"/home/yordan/dev/ontotext/YASR-Ontotext"]],_from:"yasgui-utils@>=1.4.1 <2.0.0",_id:"yasgui-utils@1.6.7",_inCache:!0,_location:"/yasgui-utils",_nodeVersion:"7.10.0",_npmOperationalInternal:{host:"s3://npm-registry-packages",tmp:"tmp/yasgui-utils-1.6.7.tgz_1495459781202_0.06725964159704745"},_npmUser:{name:"laurens.rietveld",email:"laurens.rietveld@gmail.com"},_npmVersion:"4.2.0",_phantomChildren:{},_requested:{raw:"yasgui-utils@^1.4.1",scope:null,escapedName:"yasgui-utils",name:"yasgui-utils",rawSpec:"^1.4.1",spec:">=1.4.1 <2.0.0",type:"range"},_requiredBy:["/"],_resolved:"https://registry.npmjs.org/yasgui-utils/-/yasgui-utils-1.6.7.tgz",_shasum:"2bcfc5a315688de3ae6057883d9ae342b205f267",_shrinkwrap:null,_spec:"yasgui-utils@^1.4.1",_where:"/home/yordan/dev/ontotext/YASR-Ontotext",author:{name:"Laurens Rietveld"},bugs:{url:"https://github.com/YASGUI/Utils/issues"},dependencies:{store:"^2.0.4"},deprecated:"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.",description:"Utils for YASGUI libs",devDependencies:{},directories:{},dist:{shasum:"2bcfc5a315688de3ae6057883d9ae342b205f267",tarball:"https://registry.npmjs.org/yasgui-utils/-/yasgui-utils-1.6.7.tgz",integrity:"sha512-w9BnalJg330lZhljHn0j6Ta6jyQTJL8nbhjyeDj4Z9PrX7GLrgcwq7CO7uP6Keq86L1XjpUgUU6JAmTlmkXj6w==",signatures:[{keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",sig:"MEUCIQChXn8SW+Xzp3hIj8sCOEzZO7ohF5kxjzHo5OmcJ1XO/wIgcBFbqGmN4Iyiw9ptQjoCz57rpREAGaXlYIf2o+zj68I="}]},gitHead:"6031b1cb732d390b29cd5376dceb9a9d665bbd11",homepage:"https://github.com/YASGUI/Utils",licenses:[{type:"MIT",url:"http://yasgui.github.io/license.txt"}],main:"src/main.js",maintainers:[{name:"laurens.rietveld",email:"laurens.rietveld@gmail.com"}],name:"yasgui-utils",optionalDependencies:{},readme:"ERROR: No README data found!",repository:{type:"git",url:"git://github.com/YASGUI/Utils.git"},scripts:{},version:"1.6.7"}},{}],36:[function(e,t,n){window.console=window.console||{log:function(){}},t.exports={storage:e("./storage.js"),svg:e("./svg.js"),version:{"yasgui-utils":e("../package.json").version},nestedExists:function(e){for(var t=Array.prototype.slice.call(arguments,1),n=0;n<t.length;n++){if(!e||!e.hasOwnProperty(t[n]))return!1;e=e[t[n]]}return!0}}},{"../package.json":35,"./storage.js":37,"./svg.js":38}],37:[function(e,t,n){var r=e("store"),i={day:function(){return 864e5},month:function(){i.day()},year:function(){i.month()}},o=t.exports={set:function(e,t,n,o){if(r.enabled&&e&&void 0!==t){"string"==typeof n&&(n=i[n]()),t.documentElement&&(t=(new XMLSerializer).serializeToString(t.documentElement));try{r.set(e,{val:t,exp:n,time:(new Date).getTime()})}catch(e){if(e.quotaExceeded=function(e){var t=!1;if(e)if(e.code)switch(e.code){case 22:t=!0;break;case 1014:"NS_ERROR_DOM_QUOTA_REACHED"===e.name&&(t=!0)}else-2147024882===e.number&&(t=!0);return t}(e),!e.quotaExceeded||!o)throw e;o(e)}}},remove:function(e){r.enabled&&e&&r.remove(e)},removeAll:function(e){r.enabled&&(e?"function"==typeof e&&r.each((function(t,n){e(n,t)&&o.remove(n)})):r.clearAll())},get:function(e){if(!r.enabled)return null;if(e){var t=r.get(e);return t?t.exp&&(new Date).getTime()-t.time>t.exp?null:t.val:null}return null}}},{store:23}],38:[function(e,t,n){t.exports={draw:function(e,n){if(e){var r=t.exports.getElement(n);r&&(e.append?e.append(r):e.appendChild(r))}},getElement:function(e){if(e&&0==e.indexOf("<svg")){var t=(new DOMParser).parseFromString(e,"text/xml").documentElement,n=document.createElement("div");return n.className="svgImg",n.appendChild(t),n}return!1}}},{}],39:[function(e,t,n){t.exports={name:"yasgui-yasr",description:"Yet Another SPARQL Resultset GUI",version:"2.4.12",main:"src/main.js",scripts:{dev:"gulp serve",build:"gulp"},licenses:[{type:"MIT",url:"http://yasr.yasgui.org/license.txt"}],author:"Laurens Rietveld",homepage:"http://yasr.yasgui.org",devDependencies:{browserify:"^6.1.0",gulp:"~3.9.0","gulp-bump":"^0.1.11","gulp-concat":"^2.4.1","gulp-connect":"^2.0.5","gulp-embedlr":"^0.5.2","gulp-filter":"^1.0.2","gulp-git":"^0.5.2","gulp-jsvalidate":"^0.2.0","gulp-livereload":"^1.3.1","gulp-minify-css":"0.3.11","gulp-notify":"^2.0.1","gulp-rename":"^1.2.0","gulp-streamify":"0.0.5","gulp-tag-version":"^1.1.0","gulp-uglify":"~0.2.1","require-dir":"^0.1.0","run-sequence":"^1.0.1","vinyl-buffer":"^1.0.0","vinyl-source-stream":"~0.1.1",watchify:"^0.6.4","gulp-sourcemaps":"^1.2.8",exorcist:"^0.1.6","vinyl-transform":"0.0.1","gulp-sass":"^2.2.0","bootstrap-sass":"~3.3.1","browserify-transform-tools":"^1.2.1","gulp-cssimport":"^1.3.1","gulp-html-replace":"^1.4.1","browserify-shim":"^3.8.1"},bugs:"https://github.com/YASGUI/YASR/issues/",keywords:["JavaScript","SPARQL","Editor","Semantic Web","Linked Data"],maintainers:[{name:"Laurens Rietveld",email:"laurens.rietveld@gmail.com",web:"http://laurensrietveld.nl"}],repository:{type:"git",url:"https://github.com/YASGUI/YASR.git"},dependencies:{jquery:"1.11.0",codemirror:"^4.7.0","yasgui-utils":"^1.4.1",pivottable:"^1.2.2","jquery-ui":"1.10.5",cytoscape:"^2.3.11",lodash:"^3.6.0"},"browserify-shim":{google:"global:google"},browserify:{transform:["browserify-shim"]},optionalShim:{codemirror:{require:"codemirror",global:"CodeMirror"},jquery:{require:"jquery",global:"jQuery"},"../../lib/codemirror":{require:"codemirror",global:"CodeMirror"},"../lib/DataTables/media/js/jquery.dataTables.js":{require:"datatables",global:"jQuery"},datatables:{require:"datatables",global:"jQuery"},"jquery-ui/sortable":{require:"jquery-ui/sortable",global:"jQuery"},pivottable:{require:"pivottable",global:"jQuery"}}}},{}],40:[function(e,t,n){"use strict";t.exports=function(e){var t=e.head.vars,n=e.results.bindings,r=function(e){for(var n=0;n<t.length;n++){var r=t[n];e.hasOwnProperty(r)?i(e[r].value):i("")}},i=function(e){e.replace('"','""'),o(e)&&(e='"'+e+'"'),a+=" "+e+" ,"},o=function(e){var t=!1;return e.match('[\\w|,|"]')&&(t=!0),t},a="";return function(){for(var e=0;e<t.length;e++)i(t[e]);a+="\n"}(),function(){for(var e=0;e<n.length;e++)r(n[e]),a+="\n"}(),a}},{}],41:[function(e,t,n){"use strict";var r=e("jquery");(t.exports=function(t){t.translate=e("./translate.js").translate;var n=r("<div class='booleanResult'></div>"),i={id:"boolean",name:null,hideFromSelection:!0,getPriority:1};return i.options=r.extend(!0,{},t.options.pluginsOptions?t.options.pluginsOptions[i.id]:{}),i.draw=function(){n.empty().appendTo(t.resultsContainer);var i=t.results.getBoolean(),o=null,a=null;!0===i?(o="check",a=t.translate("yasr.boolean.true")):!1===i?(o="cross",a=t.translate("yasr.boolean.false")):(n.width("140"),a=t.translate("yasr.boolean.no_boolean")),o&&e("yasgui-utils").svg.draw(n,e("./imgs.js")[o]),r("<span></span>").text(a).appendTo(n)},i.canHandleResults=function(){return t.results.getBoolean&&(!0===t.results.getBoolean()||0==t.results.getBoolean())},i}).version={"YASR-boolean":e("../package.json").version,jquery:r.fn.jquery}},{"../package.json":39,"./imgs.js":51,"./translate.js":65,jquery:18,"yasgui-utils":36}],42:[function(e,t,n){"use strict";var r=e("jquery");(t.exports=function(t){t.translate=e("./translate.js").translate;var n=r("<div class='booleanBootResult'></div>");const i={id:"booleanBootstrap",name:null,hideFromSelection:!0,getPriority:3};return i.options=r.extend(!0,{},t.options.pluginsOptions?t.options.pluginsOptions[i.id]:{}),i.draw=function(){n.empty().appendTo(t.resultsContainer);var e=t.results.getBoolean(),i=null;!0===e?i=r("<div class='boolRes alert alert-success no-icon'><span class='boolResTex'>"+t.translate("yasr.boolean.alert.yes")+"</span></div>"):!1===e?i=r("<div class='boolRes alert alert-danger no-icon'><span class='boolResTex'>"+t.translate("yasr.boolean.alert.no")+"</span></div>"):(n.width("140"),textVal=t.translate("yasr.boolean.no_boolean")),i.appendTo(n)},i.canHandleResults=function(){return t.results.getBoolean&&(!0===t.results.getBoolean()||0==t.results.getBoolean())},i}).version={"YASR-boolean":e("../package.json").version,jquery:r.fn.jquery}},{"../package.json":39,"./translate.js":65,jquery:18}],43:[function(e,t,n){"use strict";var r=e("jquery");t.exports={output:"table",useGoogleCharts:!0,outputPlugins:["table","error","boolean","rawResponse"],drawOutputSelector:!0,drawDownloadIcon:!0,getUsedPrefixes:null,persistency:{prefix:function(e){return"yasr_"+r(e.container).closest("[id]").attr("id")+"_"},outputSelector:function(e){return"selector"},results:{id:function(e){return"results_"+r(e.container).closest("[id]").attr("id")},key:"results",maxSize:1e5},translateHeaders:!1}}},{jquery:18}],44:[function(e,t,n){"use strict";var r=e("jquery"),i=t.exports=function(t){t.translate=e("./translate.js").translate;var n=r("<div class='errorResult'></div>");const o={id:"error",name:null,getPriority:20,hideFromSelection:!0},a=t.options.pluginsOptions?t.options.pluginsOptions[o.id]:{};var s=o.options=r.extend(!0,{},i.defaults,a),l=function(){var e=null;if(s.tryQueryLink){var n=s.tryQueryLink();e=r("<button>",{class:"yasr_btn yasr_tryQuery"}).text(t.translate("yasr.error.new_window")).click((function(){window.open(n,"_blank"),r(this).blur()}))}return e};return o.draw=function(){var e=t.results.getException();n.empty().appendTo(t.resultsContainer);var i=r("<div>",{class:"errorHeader"}).appendTo(n);if(0!==e.status){var o="Error";e.statusText&&e.statusText.length<100&&(o=e.statusText),o+=" (#"+e.status+")",i.append(r("<span>",{class:"exception"}).text(o)).append(l());var a=null;e.responseText?a=e.responseText:"string"==typeof e&&(a=e),a&&n.append(r("<pre>").text(a))}else i.append(l()),n.append(r("<div>",{class:"corsMessage"}).append(s.corsMessage))},o.canHandleResults=function(e){return e.results.getException()||!1},o};i.defaults={corsMessage:yasr.translate("yasr.error.no_response"),tryQueryLink:null}},{"./translate.js":65,jquery:18}],45:[function(e,t,n){t.exports={GoogleTypeException:function(t,n){let r=e("./translate.js").translate;this.foundTypes=t,this.varName=n,this.toString=function(){return r("yasr.exceptions.conflict",{key:"varName",value:this.varName})},this.toHtml=function(){return r("yasr.exceptions.conflict_render",{key:"varName",value:"<i>"+this.varName+"</i>"})}}}},{"./translate.js":65}],46:[function(e,t,n){"use strict";const{translate:r}=e("./translate");function i(){return r("yasr.download.as.label")}t.exports={getSelectSaveAsDropDown:function(){return'<div class="saveAsDropDown btn-group pull-right"><button id="saveAsBtn" class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown" type="button">'+i()+' &nbsp;</button><ul class="dropdown-menu" role="menu"><li><a class="format dropdown-item" data-accepts="application/sparql-results+json" href="#">JSON</a></li><li><a class="format dropdown-item" data-accepts="application/x-sparqlstar-results+json" href="#">JSON*</a></li><li><a class="format dropdown-item" data-accepts="application/sparql-results+xml" href="#">XML</a></li><li><a class="format dropdown-item" data-accepts="application/x-sparqlstar-results+xml" href="#">XML*</a></li><li><a class="format dropdown-item" data-accepts="text/csv" href="#">CSV</a></li><li><a class="format dropdown-item " data-accepts="text/tab-separated-values" href="#">TSV</a></li><li><a class="format dropdown-item " data-accepts="text/x-tab-separated-values-star" href="#">TSV*</a></li><li><a class="format dropdown-item" data-accepts="application/x-binary-rdf-results-table" href="#">Binary RDF Results</a></li></ul></div>'},getGraphSaveAsDropDown:function(){return'<div class="saveAsDropDown btn-group pull-right"><button id="saveAsBtn" class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown" type="button">'+i()+' &nbsp;</button><ul class="dropdown-menu" role="menu"><li><a class="format dropdown-item" data-accepts="application/rdf+json" href="#">JSON</a></li><li><a class="format dropdown-item" data-accepts="application/ld+json" href="#">JSON-LD</a></li><li><a class="format dropdown-item" data-accepts="application/x-ld+ndjson" href="#">NDJSON-LD</a></li><li><a class="format dropdown-item" data-accepts="application/rdf+xml" href="#">RDF-XML</a></li><li><a class="format dropdown-item" data-accepts="text/rdf+n3" href="#">N3</a></li><li><a class="format dropdown-item" data-accepts="text/plain" href="#">N-Triples</a></li><li><a class="format dropdown-item" data-accepts="text/x-nquads" href="#">N-Quads</a></li><li><a class="format dropdown-item" data-accepts="text/turtle" href="#">Turtle</a></li><li><a class="format dropdown-item" data-accepts="application/x-turtlestar" href="#">Turtle*</a></li><li><a class="format dropdown-item" data-accepts="application/trix" href="#">TriX</a></li><li><a class="format dropdown-item" data-accepts="application/x-trig" href="#">TriG</a></li><li><a class="format dropdown-item" data-accepts="application/x-trigstar" href="#">TriG*</a></li><li><a class="format dropdown-item" data-accepts="application/x-binary-rdf" href="#">Binary RDF</a></li></ul></div>'}}},{"./translate":65}],47:[function(e,t,n){(function(n){var r=e("events").EventEmitter,i=(e("jquery"),!1),o=!1,a=function(){let t=e("./translate.js").translate;r.call(this);var a=this;this.init=function(){if(o||("undefined"!=typeof window?window.google:void 0!==n&&n.google)||i)("undefined"!=typeof window?window.google:void 0!==n&&n.google)?a.emit("initDone"):o&&a.emit("initError");else{i=!0,s("https://google.com/jsapi",(function(){i=!1,a.emit("initDone")}));var e=+new Date,t=function(){("undefined"!=typeof window?window.google:void 0!==n&&n.google)||(+new Date-e>6e3?(o=!0,i=!1,a.emit("initError")):setTimeout(t,100))};t()}},this.googleLoad=function(){var e=function(){("undefined"!=typeof window?window.google:void 0!==n?n.google:null).load("visualization","1",{packages:["corechart","charteditor"],callback:function(){a.emit("done")}})};i?(a.once("initDone",e),a.once("initError",(function(){a.emit("error",t("yasr.gchartLoader.unable_to_load"))}))):("undefined"!=typeof window?window.google:void 0!==n&&n.google)?e():o?a.emit("error",t("yasr.gchartLoader.unable_to_load")):(a.once("initDone",e),a.once("initError",(function(){a.emit("error",t("yasr.gchartLoader.unable_to_load"))})))}},s=function(e,t){var n=document.createElement("script");n.type="text/javascript",n.readyState?n.onreadystatechange=function(){"loaded"!=n.readyState&&"complete"!=n.readyState||(n.onreadystatechange=null,t())}:n.onload=function(){t()},n.src=e,document.body.appendChild(n)};a.prototype=new r,t.exports=new a}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./translate.js":65,events:13,jquery:18}],48:[function(e,t,n){(function(n){"use strict";var r=e("jquery"),i=e("./utils.js"),o=e("yasgui-utils"),a=t.exports=function(t){t.translate=e("./translate.js").translate;var s=r.extend(!0,{},a.defaults),l=t.container.closest("[id]").attr("id");null==t.options.gchart&&(t.options.gchart={});var u=t.getPersistencyId("motionchart"),c=t.getPersistencyId("chartConfig");null==t.options.gchart.motionChartState&&(t.options.gchart.motionChartState=o.storage.get(u)),null==t.options.gchart.chartConfig&&(t.options.gchart.chartConfig=o.storage.get(c));var f=null,d=function(e){var r="undefined"!=typeof window?window.google:void 0!==n?n.google:null;f=new r.visualization.ChartEditor,r.visualization.events.addListener(f,"ok",(function(){var e,n,i,a,l,d,h,p;e=f.getChartWrapper(),i=e.getChartType,a="===",l={}.toString,d={}.hasOwnProperty,h=function(e,t){return d.call(e,t)},p=!0,function e(t,n,r){var i,o,s,u,c,f,d,g;if(null==t||null==n)return t===n;if(t.__placeholder__||n.__placeholder__)return!0;if(t===n)return 0!==t||1/t==1/n;if(i=l.call(t),l.call(n)!=i)return!1;switch(i){case"[object String]":return t==String(n);case"[object Number]":return t!=+t?n!=+n:0==t?1/t==1/n:t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object RegExp]":return t.source==n.source&&t.global==n.global&&t.multiline==n.multiline&&t.ignoreCase==n.ignoreCase}if("object"!=typeof t||"object"!=typeof n)return!1;for(o=r.length;o--;)if(r[o]==t)return!0;if(r.push(t),s=0,u=!0,"[object Array]"==i){if(c=t.length,f=n.length,p){switch(a){case"===":u=c===f;break;case"<==":u=c<=f;break;case"<<=":u=c<f}s=c,p=!1}else u=c===f,s=c;if(u)for(;s--&&(u=s in t==s in n&&e(t[s],n[s],r)););}else{if("constructor"in t!="constructor"in n||t.constructor!=n.constructor)return!1;for(d in t)if(h(t,d)&&(s++,!(u=h(n,d)&&e(t[d],n[d],r))))break;if(u){for(d in g=0,n)h(n,d)&&++g;p?u="<<="===a?s<g:"<=="===a?s<=g:s===g:(p=!1,u=s===g)}}return r.pop(),u}(i,"MotionChart",[])||(t.options.gchart.motionChartState=e.n,o.storage.set(u,t.options.gchart.motionChartState),e.setOption("state",t.options.gchart.motionChartState),r.visualization.events.addListener(e,"ready",(function(){var n;n=e.getChart(),r.visualization.events.addListener(n,"statechange",(function(){t.options.gchart.motionChartState=n.getState(),o.storage.set(u,t.options.gchart.motionChartState)}))}))),n=e.getDataTable(),e.setDataTable(null),t.options.gchart.chartConfig=e.toJSON(),o.storage.set(c,t.options.gchart.chartConfig),e.setDataTable(n),e.setOption("width",s.width),e.setOption("height",s.height),e.draw(),t.updateHeader()})),e&&e()};return{name:"Google Chart",nameLabel:"yasr.gchart.chart_name",hideFromSelection:!1,priority:7,canHandleResults:function(e){var t,n;return null!=(t=e.results)&&(n=t.getVariables())&&n.length>0},getDownloadInfo:function(){if(!t.results)return null;var e=t.resultsContainer.find("svg");if(e.length>0)return{getContent:function(){return e[0].outerHTML?e[0].outerHTML:r("<div>").append(e.clone()).html()},filename:"queryResults.svg",contentType:"image/svg+xml",buttonTitle:t.translate("yasr.btn.title.svg")};var n=t.resultsContainer.find(".google-visualization-table-table");return n.length>0?{getContent:function(){return n.tableToCsv()},filename:"queryResults.csv",contentType:"text/csv",buttonTitle:t.translate("yasr.btn.title.csv")}:void 0},getEmbedHtml:function(){if(!t.results)return null;var e=t.resultsContainer.find("svg").clone().css("height","").css("width","");if(0==e.length)return null;var n=e[0].outerHTML;return n||(n=r("<div>").append(e.clone()).html()),'<div style="width: 800px; height: 600px;">\n'+n+"\n</div>"},draw:function(){var c=function(){if(t.resultsContainer=r(".yasr_results"),t.resultsContainer.empty(),t.options.output==a.defaults.persistencyId){var n=l+"_gchartWrapper",c=null;t.resultsContainer.append(r("<button>",{class:"openGchartBtn yasr_btn"}).text(t.translate("yasr.chart.config")).click((function(){f.openDialog(c)}))).append(r("<div>",{id:n,class:"gchartWrapper"}));var d=new google.visualization.DataTable,h=t.results.getAsJson();h.head.vars.forEach((function(n){var r="string";try{r=i.getGoogleTypeForBindings(h.results.bindings,n)}catch(n){if(!(n instanceof e("./exceptions.js").GoogleTypeException))throw n;t.warn(n.toHtml())}d.addColumn(r,n)}));var p=null;t.options.getUsedPrefixes&&(p="function"==typeof t.options.getUsedPrefixes?t.options.getUsedPrefixes(t):t.options.getUsedPrefixes),h.results.bindings.forEach((function(e){var t=[];h.head.vars.forEach((function(n,r){t.push(i.castGoogleType(e[n],p,d.getColumnType(r)))})),d.addRow(t)})),t.options.gchart.chartConfig?("MotionChart"===(c=new google.visualization.ChartWrapper(t.options.gchart.chartConfig)).getChartType()&&null!=t.options.gchart.motionChartState&&(c.setOption("state",t.options.gchart.motionChartState),google.visualization.events.addListener(c,"ready",(function(){var e;e=c.getChart(),google.visualization.events.addListener(e,"statechange",(function(){t.options.gchart.motionChartState=e.getState(),o.storage.set(u,t.options.gchart.motionChartState)}))}))),c.setDataTable(d)):c=new google.visualization.ChartWrapper({chartType:"Table",dataTable:d,containerId:n}),c.setOption("width",s.width),c.setOption("height",s.height),c.draw(),t.updateHeader()}};("undefined"!=typeof window?window.google:void 0!==n&&n.google)&&("undefined"!=typeof window?window.google:void 0!==n?n.google:null).visualization&&f?c():e("./gChartLoader.js").on("done",(function(){d(),c()})).on("error",(function(){console.log("errorrr")})).googleLoad()}}};a.defaults={height:"600px",width:"100%",persistencyId:"gchart"}}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./exceptions.js":45,"./gChartLoader.js":47,"./translate.js":65,"./utils.js":66,jquery:18,"yasgui-utils":36}],49:[function(e,t,n){t.exports={"yasr.table.filter":"Filter query results","yasr.table":"Table","yasr.graph.beta":"Graph(beta)","yasr.pivot.pivot_table":"Pivot Table","yasr.name.raw_response":"Raw Response","yasr.headers.columns":"Columns","yasr.headers.rows":"Rows","yasr.headers.variables":"Available Variables","yasr.headers.cells":"Cells","yasr.headers.labels.subject":"subject","yasr.headers.labels.object":"object","yasr.headers.labels.predicate":"predicate","yasr.headers.labels.context":"context","yasr.gchartLoader.unable_to_load":"Could not load google loader","yasr.gchart.chart_name":"Google Chart","yasr.exceptions.conflict":'Conflicting data types found for variable {{varName}}. Assuming all values of this variable are "string". To avoid this issue, cast the values in your SPARQL query to the intended xsd datatype',"yasr.exceptions.conflict_render":'Conflicting data types found for variable {{varName}}. Assuming all values of this variable are "string". As a result, several Google Charts will not render values of this particular variable. To avoid this issue, cast the values in your SPARQL query to the intended xsd datatype',"yasr.error.no_response":"Unable to get response from endpoint","yasr.error.new_window":"Try query in new browser window","yasr.boolean.alert.yes":"YES","yasr.boolean.alert.no":"NO","yasr.boolean.true":"True","yasr.boolean.false":"False","yasr.boolean.no_boolean":"Could not find boolean value in response","yasr.http.403":"You don't have permission to execute this query. Ask your admin for support.","yasr.btn.title.unsupported_download":"Download not supported for this result representation","yasr.btn.title.embed":"Save","yasr.btn.label.save":"Get HTML snippet to embed results on a web page","yasr.download.as.label":"Download as","yasr.btn.title.svg":"Download SVG Image","yasr.btn.title.csv":"Download as CSV","yasr.btn.title.raw":"Download raw response","yasr.copy.to.clipboard":"Copy to Clipboard","yasr.chart.config":"Chart Config","yasr.empty.table":"No data available in table","yasr.loading.label":"Loading..."}},{}],50:[function(e,t,n){t.exports={"yasr.table.filter":"Filtrer les résultats des requêtes","yasr.table":"Tableau","yasr.graph.beta":"Graphe(beta)","yasr.pivot.pivot_table":"Table de pivotement","yasr.name.raw_response":"Réponse brute","yasr.headers.columns":"Colonnes","yasr.headers.rows":"Lignes","yasr.headers.variables":"Variables disponibles","yasr.headers.cells":"Cellules","yasr.headers.labels.subject":"sujet","yasr.headers.labels.object":"objet","yasr.headers.labels.predicate":"prédicat","yasr.headers.labels.context":"contexte","yasr.gchartLoader.unable_to_load":"Impossible de charger le loader de google","yasr.gchart.chart_name":"Graphique Google","yasr.exceptions.conflict":'Des types de données contradictoires ont été trouvés pour la variable {{varName}}. On suppose que toutes les valeurs de cette variable sont "string". Pour éviter ce problème, convertissez les valeurs de votre requête SPARQL dans le type de données xsd prévu.',"yasr.exceptions.conflict_render":'Des types de données contradictoires ont été trouvés pour la variable {{varName}}. On suppose que toutes les valeurs de cette variable sont "string". Par conséquent, plusieurs graphiques Google ne rendent pas les valeurs de cette variable particulière. Pour éviter ce problème, convertissez les valeurs de votre requête SPARQL dans le type de données xsd prévu.',"yasr.error.no_response":"Impossible d'obtenir une réponse du point de terminaison","yasr.error.new_window":"Essayez la requête dans une nouvelle fenêtre du navigateur","yasr.boolean.alert.yes":"OUI","yasr.boolean.alert.no":"NON","yasr.boolean.true":"Vrai","yasr.boolean.false":"Faux","yasr.boolean.no_boolean":"Impossible de trouver une valeur booléenne en réponse","yasr.http.403":"Vous n'avez pas la permission d'exécuter cette requête. Demandez de l'aide à votre administrateur.","yasr.btn.title.unsupported_download":"Le téléchargement n'est pas pris en charge pour cette représentation de résultat","yasr.btn.title.embed":"Sauvegarder","yasr.btn.label.save":"Obtenir un extrait HTML pour intégrer les résultats dans une page web","yasr.download.as.label":"Téléchargement","yasr.btn.title.svg":"Télécharger l'image SVG","yasr.btn.title.csv":"Télécharger comme CSV","yasr.btn.title.raw":"Télécharger la réponse brute","yasr.copy.to.clipboard":"Copier dans le presse-papiers","yasr.chart.config":"Configuration du graphique","yasr.empty.table":"Aucune donnée disponible dans le tableau","yasr.loading.label":"Chargement..."}},{}],51:[function(e,t,n){"use strict";t.exports={cross:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" width="30px" height="30px" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve"><g>\t<path d="M83.288,88.13c-2.114,2.112-5.575,2.112-7.689,0L53.659,66.188c-2.114-2.112-5.573-2.112-7.687,0L24.251,87.907 c-2.113,2.114-5.571,2.114-7.686,0l-4.693-4.691c-2.114-2.114-2.114-5.573,0-7.688l21.719-21.721c2.113-2.114,2.113-5.573,0-7.686 L11.872,24.4c-2.114-2.113-2.114-5.571,0-7.686l4.842-4.842c2.113-2.114,5.571-2.114,7.686,0L46.12,33.591 c2.114,2.114,5.572,2.114,7.688,0l21.721-21.719c2.114-2.114,5.573-2.114,7.687,0l4.695,4.695c2.111,2.113,2.111,5.571-0.003,7.686 L66.188,45.973c-2.112,2.114-2.112,5.573,0,7.686L88.13,75.602c2.112,2.111,2.112,5.572,0,7.687L83.288,88.13z"/></g></svg>',check:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" width="30px" height="30px" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve"><path fill="#000000" d="M14.301,49.982l22.606,17.047L84.361,4.903c2.614-3.733,7.76-4.64,11.493-2.026l0.627,0.462 c3.732,2.614,4.64,7.758,2.025,11.492l-51.783,79.77c-1.955,2.791-3.896,3.762-7.301,3.988c-3.405,0.225-5.464-1.039-7.508-3.084 L2.447,61.814c-3.263-3.262-3.263-8.553,0-11.814l0.041-0.019C5.75,46.718,11.039,46.718,14.301,49.982z"/></svg>',unsorted:'<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" id="Layer_1" x="0px" y="0px" width="100%" height="100%" viewBox="0 0 54.552711 113.78478" enable-background="new 0 0 100 100" xml:space="preserve"><g id="g5" transform="matrix(-0.70522156,-0.70898699,-0.70898699,0.70522156,97.988199,55.081205)"><path style="fill:#000000" inkscape:connector-curvature="0" id="path7" d="M 57.911,66.915 45.808,55.063 42.904,52.238 31.661,41.25 31.435,41.083 31.131,40.775 30.794,40.523 30.486,40.3 30.069,40.05 29.815,39.911 29.285,39.659 29.089,39.576 28.474,39.326 28.363,39.297 H 28.336 L 27.665,39.128 27.526,39.1 26.94,38.99 26.714,38.961 26.212,38.934 h -0.31 -0.444 l -0.339,0.027 c -1.45,0.139 -2.876,0.671 -4.11,1.564 l -0.223,0.141 -0.279,0.25 -0.335,0.308 -0.054,0.029 -0.171,0.194 -0.334,0.364 -0.224,0.279 -0.25,0.336 -0.225,0.362 -0.192,0.308 -0.197,0.421 -0.142,0.279 -0.193,0.477 -0.084,0.222 -12.441,38.414 c -0.814,2.458 -0.313,5.029 1.115,6.988 v 0.026 l 0.418,0.532 0.17,0.165 0.251,0.281 0.084,0.079 0.283,0.281 0.25,0.194 0.474,0.367 0.083,0.053 c 2.015,1.371 4.641,1.874 7.131,1.094 L 55.228,80.776 c 4.303,-1.342 6.679,-5.814 5.308,-10.006 -0.387,-1.259 -1.086,-2.35 -1.979,-3.215 l -0.368,-0.337 -0.278,-0.303 z m -6.318,5.896 0.079,0.114 -37.369,11.57 11.854,-36.538 10.565,10.317 2.876,2.825 11.995,11.712 z" /></g><path style="fill:#000000" inkscape:connector-curvature="0" id="path7-9" d="m 8.8748339,52.571766 16.9382111,-0.222584 4.050851,-0.06665 15.719154,-0.222166 0.27778,-0.04246 0.43276,0.0017 0.41632,-0.06121 0.37532,-0.0611 0.47132,-0.119342 0.27767,-0.08206 0.55244,-0.198047 0.19707,-0.08043 0.61095,-0.259721 0.0988,-0.05825 0.019,-0.01914 0.59303,-0.356548 0.11787,-0.0788 0.49125,-0.337892 0.17994,-0.139779 0.37317,-0.336871 0.21862,-0.219786 0.31311,-0.31479 0.21993,-0.259387 c 0.92402,-1.126057 1.55249,-2.512251 1.78961,-4.016904 l 0.0573,-0.25754 0.0195,-0.374113 0.0179,-0.454719 0.0175,-0.05874 -0.0169,-0.258049 -0.0225,-0.493503 -0.0398,-0.355569 -0.0619,-0.414201 -0.098,-0.414812 -0.083,-0.353334 L 53.23955,41.1484 53.14185,40.850967 52.93977,40.377742 52.84157,40.161628 34.38021,4.2507375 C 33.211567,1.9401875 31.035446,0.48226552 28.639484,0.11316952 l -0.01843,-0.01834 -0.671963,-0.07882 -0.236871,0.0042 L 27.335984,-4.7826577e-7 27.220736,0.00379952 l -0.398804,0.0025 -0.313848,0.04043 -0.594474,0.07724 -0.09611,0.02147 C 23.424549,0.60716252 21.216017,2.1142355 20.013025,4.4296865 L 0.93967491,40.894479 c -2.08310801,3.997178 -0.588125,8.835482 3.35080799,10.819749 1.165535,0.613495 2.43199,0.88731 3.675026,0.864202 l 0.49845,-0.02325 0.410875,0.01658 z M 9.1502369,43.934401 9.0136999,43.910011 27.164145,9.2564625 44.70942,43.42818 l -14.765289,0.214677 -4.031106,0.0468 -16.7627881,0.244744 z" /></svg>',sortDesc:'<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" id="Layer_1" x="0px" y="0px" width="100%" height="100%" viewBox="0 0 54.552711 113.78478" enable-background="new 0 0 100 100" xml:space="preserve"><g id="g5" transform="matrix(-0.70522156,-0.70898699,-0.70898699,0.70522156,97.988199,55.081205)"><path style="fill:#000000" inkscape:connector-curvature="0" id="path7" d="M 57.911,66.915 45.808,55.063 42.904,52.238 31.661,41.25 31.435,41.083 31.131,40.775 30.794,40.523 30.486,40.3 30.069,40.05 29.815,39.911 29.285,39.659 29.089,39.576 28.474,39.326 28.363,39.297 H 28.336 L 27.665,39.128 27.526,39.1 26.94,38.99 26.714,38.961 26.212,38.934 h -0.31 -0.444 l -0.339,0.027 c -1.45,0.139 -2.876,0.671 -4.11,1.564 l -0.223,0.141 -0.279,0.25 -0.335,0.308 -0.054,0.029 -0.171,0.194 -0.334,0.364 -0.224,0.279 -0.25,0.336 -0.225,0.362 -0.192,0.308 -0.197,0.421 -0.142,0.279 -0.193,0.477 -0.084,0.222 -12.441,38.414 c -0.814,2.458 -0.313,5.029 1.115,6.988 v 0.026 l 0.418,0.532 0.17,0.165 0.251,0.281 0.084,0.079 0.283,0.281 0.25,0.194 0.474,0.367 0.083,0.053 c 2.015,1.371 4.641,1.874 7.131,1.094 L 55.228,80.776 c 4.303,-1.342 6.679,-5.814 5.308,-10.006 -0.387,-1.259 -1.086,-2.35 -1.979,-3.215 l -0.368,-0.337 -0.278,-0.303 z m -6.318,5.896 0.079,0.114 -37.369,11.57 11.854,-36.538 10.565,10.317 2.876,2.825 11.995,11.712 z" /></g><path style="fill:#000000" inkscape:connector-curvature="0" id="path9" d="m 27.813273,0.12823506 0.09753,0.02006 c 2.39093,0.458209 4.599455,1.96811104 5.80244,4.28639004 L 52.785897,40.894525 c 2.088044,4.002139 0.590949,8.836902 -3.348692,10.821875 -1.329078,0.688721 -2.766603,0.943695 -4.133174,0.841768 l -0.454018,0.02 L 27.910392,52.354171 23.855313,52.281851 8.14393,52.061827 7.862608,52.021477 7.429856,52.021738 7.014241,51.959818 6.638216,51.900838 6.164776,51.779369 5.889216,51.699439 5.338907,51.500691 5.139719,51.419551 4.545064,51.145023 4.430618,51.105123 4.410168,51.084563 3.817138,50.730843 3.693615,50.647783 3.207314,50.310611 3.028071,50.174369 2.652795,49.833957 2.433471,49.613462 2.140099,49.318523 1.901127,49.041407 C 0.97781,47.916059 0.347935,46.528448 0.11153,45.021676 L 0.05352,44.766255 0.05172,44.371683 0.01894,43.936017 0,43.877277 0.01836,43.62206 0.03666,43.122889 0.0765,42.765905 0.13912,42.352413 0.23568,41.940425 0.32288,41.588517 0.481021,41.151945 0.579391,40.853806 0.77369,40.381268 0.876097,40.162336 19.338869,4.2542801 c 1.172169,-2.308419 3.34759,-3.76846504 5.740829,-4.17716604 l 0.01975,0.01985 0.69605,-0.09573 0.218437,0.0225 0.490791,-0.02132 0.39809,0.0046 0.315972,0.03973 0.594462,0.08149 z" /></svg>',sortAsc:'<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" id="Layer_1" x="0px" y="0px" width="100%" height="100%" viewBox="0 0 54.552711 113.78478" enable-background="new 0 0 100 100" xml:space="preserve"><g id="g5" transform="matrix(-0.70522156,0.70898699,-0.70898699,-0.70522156,97.988199,58.704807)"><path style="fill:#000000" inkscape:connector-curvature="0" id="path7" d="M 57.911,66.915 45.808,55.063 42.904,52.238 31.661,41.25 31.435,41.083 31.131,40.775 30.794,40.523 30.486,40.3 30.069,40.05 29.815,39.911 29.285,39.659 29.089,39.576 28.474,39.326 28.363,39.297 H 28.336 L 27.665,39.128 27.526,39.1 26.94,38.99 26.714,38.961 26.212,38.934 h -0.31 -0.444 l -0.339,0.027 c -1.45,0.139 -2.876,0.671 -4.11,1.564 l -0.223,0.141 -0.279,0.25 -0.335,0.308 -0.054,0.029 -0.171,0.194 -0.334,0.364 -0.224,0.279 -0.25,0.336 -0.225,0.362 -0.192,0.308 -0.197,0.421 -0.142,0.279 -0.193,0.477 -0.084,0.222 -12.441,38.414 c -0.814,2.458 -0.313,5.029 1.115,6.988 v 0.026 l 0.418,0.532 0.17,0.165 0.251,0.281 0.084,0.079 0.283,0.281 0.25,0.194 0.474,0.367 0.083,0.053 c 2.015,1.371 4.641,1.874 7.131,1.094 L 55.228,80.776 c 4.303,-1.342 6.679,-5.814 5.308,-10.006 -0.387,-1.259 -1.086,-2.35 -1.979,-3.215 l -0.368,-0.337 -0.278,-0.303 z m -6.318,5.896 0.079,0.114 -37.369,11.57 11.854,-36.538 10.565,10.317 2.876,2.825 11.995,11.712 z" /></g><path style="fill:#000000" inkscape:connector-curvature="0" id="path9" d="m 27.813273,113.65778 0.09753,-0.0201 c 2.39093,-0.45821 4.599455,-1.96811 5.80244,-4.28639 L 52.785897,72.891487 c 2.088044,-4.002139 0.590949,-8.836902 -3.348692,-10.821875 -1.329078,-0.688721 -2.766603,-0.943695 -4.133174,-0.841768 l -0.454018,-0.02 -16.939621,0.223997 -4.055079,0.07232 -15.711383,0.220024 -0.281322,0.04035 -0.432752,-2.61e-4 -0.415615,0.06192 -0.376025,0.05898 -0.47344,0.121469 -0.27556,0.07993 -0.550309,0.198748 -0.199188,0.08114 -0.594655,0.274528 -0.114446,0.0399 -0.02045,0.02056 -0.59303,0.35372 -0.123523,0.08306 -0.486301,0.337172 -0.179243,0.136242 -0.375276,0.340412 -0.219324,0.220495 -0.293372,0.294939 -0.238972,0.277116 C 0.97781,65.869953 0.347935,67.257564 0.11153,68.764336 L 0.05352,69.019757 0.05172,69.414329 0.01894,69.849995 0,69.908735 l 0.01836,0.255217 0.0183,0.499171 0.03984,0.356984 0.06262,0.413492 0.09656,0.411988 0.0872,0.351908 0.158141,0.436572 0.09837,0.298139 0.194299,0.472538 0.102407,0.218932 18.462772,35.908054 c 1.172169,2.30842 3.34759,3.76847 5.740829,4.17717 l 0.01975,-0.0199 0.69605,0.0957 0.218437,-0.0225 0.490791,0.0213 0.39809,-0.005 0.315972,-0.0397 0.594462,-0.0815 z" /></svg>',download:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="tiny" x="0px" y="0px" width="100%" height="100%" viewBox="0 0 100 100" xml:space="preserve"><g id="Captions"></g><g id="Your_Icon">\t<path fill-rule="evenodd" fill="#000000" d="M88,84v-2c0-2.961-0.859-4-4-4H16c-2.961,0-4,0.98-4,4v2c0,3.102,1.039,4,4,4h68 C87.02,88,88,87.039,88,84z M58,12H42c-5,0-6,0.941-6,6v22H16l34,34l34-34H64V18C64,12.941,62.939,12,58,12z"/></g></svg>',move:'<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" id="Layer_1" x="0px" y="0px" width="100%" height="100%" viewBox="5 -10 74.074074 100" enable-background="new 0 0 100 100" xml:space="preserve" inkscape:version="0.48.4 r9939" sodipodi:docname="noun_11656_cc.svg"><metadata ><rdf:RDF><cc:Work rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs /><sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="753" inkscape:window-height="480" showgrid="false" fit-margin-top="0" fit-margin-left="0" fit-margin-right="0" fit-margin-bottom="0" inkscape:zoom="2.36" inkscape:cx="44.101509" inkscape:cy="31.481481" inkscape:window-x="287" inkscape:window-y="249" inkscape:window-maximized="0" inkscape:current-layer="Layer_1" /><polygon points="33,83 50,100 67,83 54,83 54,17 67,17 50,0 33,17 46,17 46,83 " transform="translate(-7.962963,-10)" /><polygon points="83,67 100,50 83,33 83,46 17,46 17,33 0,50 17,67 17,54 83,54 " transform="translate(-7.962963,-10)" /></svg>',fullscreen:'<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" x="0px" y="0px" width="100%" height="100%" viewBox="5 -10 74.074074 100" enable-background="new 0 0 100 100" xml:space="preserve" inkscape:version="0.48.4 r9939" sodipodi:docname="noun_2186_cc.svg"><metadata ><rdf:RDF><cc:Work rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs /><sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="640" inkscape:window-height="480" showgrid="false" fit-margin-top="0" fit-margin-left="0" fit-margin-right="0" fit-margin-bottom="0" inkscape:zoom="2.36" inkscape:cx="44.101509" inkscape:cy="31.481481" inkscape:window-x="65" inkscape:window-y="24" inkscape:window-maximized="0" inkscape:current-layer="Layer_1" /><path d="m -7.962963,-10 v 38.889 l 16.667,-16.667 16.667,16.667 5.555,-5.555 -16.667,-16.667 16.667,-16.667 h -38.889 z" inkscape:connector-curvature="0" style="fill:#010101" /><path d="m 92.037037,-10 v 38.889 l -16.667,-16.667 -16.666,16.667 -5.556,-5.555 16.666,-16.667 -16.666,-16.667 h 38.889 z" inkscape:connector-curvature="0" style="fill:#010101" /><path d="M -7.962963,90 V 51.111 l 16.667,16.666 16.667,-16.666 5.555,5.556 -16.667,16.666 16.667,16.667 h -38.889 z" inkscape:connector-curvature="0" style="fill:#010101" /><path d="M 92.037037,90 V 51.111 l -16.667,16.666 -16.666,-16.666 -5.556,5.556 16.666,16.666 -16.666,16.667 h 38.889 z" inkscape:connector-curvature="0" style="fill:#010101" /></svg>',smallscreen:'<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" x="0px" y="0px" width="100%" height="100%" viewBox="5 -10 74.074074 100" enable-background="new 0 0 100 100" xml:space="preserve" inkscape:version="0.48.4 r9939" sodipodi:docname="noun_2186_cc.svg"><metadata ><rdf:RDF><cc:Work rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs /><sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="1855" inkscape:window-height="1056" showgrid="false" fit-margin-top="0" fit-margin-left="0" fit-margin-right="0" fit-margin-bottom="0" inkscape:zoom="2.36" inkscape:cx="44.101509" inkscape:cy="31.481481" inkscape:window-x="65" inkscape:window-y="24" inkscape:window-maximized="1" inkscape:current-layer="Layer_1" /><path d="m 30.926037,28.889 0,-38.889 -16.667,16.667 -16.667,-16.667 -5.555,5.555 16.667,16.667 -16.667,16.667 38.889,0 z" inkscape:connector-curvature="0" style="fill:#010101" /><path d="m 53.148037,28.889 0,-38.889 16.667,16.667 16.666,-16.667 5.556,5.555 -16.666,16.667 16.666,16.667 -38.889,0 z" inkscape:connector-curvature="0" style="fill:#010101" /><path d="m 30.926037,51.111 0,38.889 -16.667,-16.666 -16.667,16.666 -5.555,-5.556 16.667,-16.666 -16.667,-16.667 38.889,0 z" inkscape:connector-curvature="0" style="fill:#010101" /><path d="m 53.148037,51.111 0,38.889 16.667,-16.666 16.666,16.666 5.556,-5.556 -16.666,-16.666 16.666,-16.667 -38.889,0 z" inkscape:connector-curvature="0" style="fill:#010101" /></svg>'}},{}],52:[function(e,t,n){e("./tableToCsv.js")},{"./tableToCsv.js":53}],53:[function(e,t,n){"use strict";var r=e("jquery");r.fn.tableToCsv=function(e){var t="";e=r.extend({quote:'"',delimiter:",",lineBreak:"\n"},e);var n=function(n){n.replace(e.quote,e.quote+e.quote),function(t){var n=!1;return t.match("[\\w|"+e.delimiter+"|"+e.quote+"]")&&(n=!0),n}(n)&&(n=e.quote+n+e.quote),t+=" "+n+" "+e.delimiter},i=r(this),o={},a=0;return i.find("tr:first *").each((function(){r(this).attr("colspan")?a+=+r(this).attr("colspan"):a++})),i.find("tr").each((function(i,s){for(var l=r(s),u=[],c=0,f=0;f+c<a;f++)if(o[f])u.push(o[f].text),o[f].rowSpan--,o[f].rowSpan||delete o[f];else{var d=l.find(":nth-child("+(f+1)+")");console.log(d);var h=d.attr("colspan"),p=d.attr("rowspan");if(h&&!isNaN(h)){for(var g=0;g<h;g++)u.push(d.text());c+=h-1}else p&&!isNaN(p)?(o[f+c]={rowSpan:p-1,text:d.text()},u.push(d.text()),c++):u.push(d.text())}!function(r){r.forEach((function(e){n(e)})),t+=e.lineBreak}(u)})),t}},{jquery:18}],54:[function(e,t,n){"use strict";var r=e("jquery"),i=e("yasgui-utils");console=console||{log:function(){}},e("./jquery/extendJquery.js");var o=t.exports=function(t,n,a){var s={};s.options=r.extend(!0,{},o.defaults,n),s.container=r(t).find(".yasr"),s.header=r(t).find(".yasr_header"),s.resultsContainer=r(t).find(".yasr_results"),s.storage=i.storage,s.translationService=e("./translate.js"),s.translationService.setLanguage(s.options.locale),s.translate=s.translationService.translate,s.changeLanguage=function(e){s.translationService.setLanguage(e);let t=document.getElementById("saveAsBtn");t&&(t.innerText=s.translate("yasr.download.as.label"));let n=document.getElementById("yasrBtnGroup"),r=document.getElementById("yasrDownloadIcon");n&&n.remove(),r&&r.remove(),s.options.hideHeader||g(s),s.draw()};var l=null;for(var u in s.getPersistencyId=function(e){return null===l&&(l=!(!s.options.persistency||!s.options.persistency.prefix)&&("string"==typeof s.options.persistency.prefix?s.options.persistency.prefix:s.options.persistency.prefix(s))),l&&e?l+("string"==typeof e?e:e(s)):null},s.options.useGoogleCharts&&e("./gChartLoader.js").once("initError",(function(){s.options.useGoogleCharts=!1})).init(),s.plugins={},o.plugins)(s.options.useGoogleCharts||"gchart"!=u)&&(s.plugins[u]=new o.plugins[u](s));s.updateHeader=function(){var e=s.header.find(".yasr_downloadIcon").removeAttr("title"),t=s.header.find(".saveAsDropDown"),n=s.header.find(".yasr_embedBtn"),r=s.plugins[s.options.output];if(r){"Table"==r.name?(e.hide(),t.removeAttr("style")):(t.hide(),e.show());var i=r.getDownloadInfo?r.getDownloadInfo():null;i?(i.buttonTitle&&e.attr("title",i.buttonTitle),e.prop("disabled",!1),e.find("path").each((function(){this.style.fill="black"}))):(e.prop("disabled",!0).prop("title",s.translate("yasr.btn.title.unsupported_download")),e.find("path").each((function(){this.style.fill="gray"})));var o=null;r.getEmbedHtml&&(o=r.getEmbedHtml()),o&&o.length>0?n.show():n.hide()}},s.draw=function(e){if(s.updateHeader(),!s.results)return!1;e||(e=s.options.output);var t=null,n=-1,r=[];for(var i in s.plugins)if(s.plugins[i].canHandleResults(s)){var o=s.plugins[i].getPriority;"function"==typeof o&&(o=o(s)),null!=o&&null!=o&&o>n&&(n=o,t=i)}else r.push(i);return f(r),"table"==t&&s.plugins[t].canHandleResults(s)&&t!=e&&angular.isUndefined(e)?c(t):e in s.plugins&&s.plugins[e].canHandleResults(s)&&"booleanBootstrap"!=t?c(e):!!t&&c(t)};var c=function(e){return s.header.find(".yasr_btnGroup").find("li.active").removeClass("active"),r(s.resultsContainer).empty(),s.plugins[e].draw(),s.header.find(".yasr_btnGroup .select_"+e).parent().addClass("active"),!0},f=function(e){s.header.find(".yasr_btnGroup li").removeClass("disabled"),e.forEach((function(e){s.header.find(".yasr_btnGroup .select_"+e).parent().addClass("disabled")}))};s.somethingDrawn=function(){return!s.resultsContainer.is(":empty")},s.updateDownloadDropdown=function(){var t;if(window.editor){s.header.find(".saveAsDropDown").remove();var n=window.editor.getQueryType();"SELECT"==n&&(t=r(e("./extensions.js").getSelectSaveAsDropDown())),"CONSTRUCT"!=n&&"DESCRIBE"!=n||(t=r(e("./extensions.js").getGraphSaveAsDropDown())),t&&(t.find(".format").click((function(){s.getQueryResultsAsFormat(r(this).data("accepts"))})),s.header.append(t))}},s.setResultsCount=function(e,t,n){if(0==e.responseJSON&&(s.allCount=-1),(e.responseJSON||0==e.responseJSON)&&(s.allCount=-1,e.responseJSON["http://www.ontotext.com/"]&&(s.allCount=e.responseJSON["http://www.ontotext.com/"]["http://www.ontotext.com/"][0].value),r.isNumeric(e.responseJSON)&&(s.allCount=e.responseJSON),e.responseJSON.results&&e.responseJSON.results.bindings)){var i=e.responseJSON.results.bindings[0],o=e.responseJSON.head.vars,a=Object.keys(i).filter((function(e){return o.indexOf(e)>-1&&r.isNumeric(i[e].value)}));a.length>0&&(s.allCount=i[a[0]].value)}},s.setResponse=function(t,n,r){try{s.results=e("./parsers/wrapper.js")(t,n,r)}catch(e){s.results={getException:function(){return e}}}if(s.results.getAsJson().results&&(s.resultsCount=s.results.getAsJson().results.bindings.length),s.results.getAsJson()&&!s.options.hideHeader&&(s.header.show(),s.updateDownloadDropdown()),403==t.status&&(s.results.getException=function(){return{status:403,statusText:"Forbidden",responseText:s.translate("yasr.http.403")}}),s.draw(),s.options.persistency){var o=s.getPersistencyId(s.options.persistency.results.key);o&&(s.results.getOriginalResponseAsString&&s.results.getOriginalResponseAsString().length<s.options.persistency.results.maxSize?i.storage.set(o,s.results.getAsStoreObject(),"month"):i.storage.remove(o))}};var d=null,h=null;s.warn=function(e){d||(d=r("<div>",{class:"toggableWarning"}).prependTo(s.container).hide(),r("<span>",{class:"toggleWarning"}).html("&times;").click((function(){d.hide(400)})).appendTo(d),h=r("<span>",{class:"toggableMsg"}).appendTo(d)),h.empty(),e instanceof r?h.append(e):h.html(e),d.show(400)};var p=null,g=function(t){var n,o,a;t.options.drawOutputSelector&&(n=r('<ul id="yasrBtnGroup" class="yasr_btnGroup nav nav-tabs"></ul>'),r.each(t.plugins,(function(e,o){if(!o.hideFromSelection){var a=o.nameLabel?t.translate(o.nameLabel):e,s=r("<li class='nav-item'></li>");r("<a class='nav-link'></a>").text(a).addClass("select_"+e).click((function(){if(!r(this).parent().hasClass("disabled")){n.find("li.active").removeClass("active"),s.addClass("active"),t.options.output=e;var o=t.getPersistencyId(t.options.persistency.outputSelector);o&&i.storage.set(o,t.options.output,"month"),d&&d.hide(400),t.draw(e),t.updateHeader()}})).appendTo(s),s.appendTo(n),t.options.output==e&&s.addClass("active")}})),n.children().length>1&&t.header.append(n)),t.options.drawDownloadIcon&&function(){if(null===p){var e=window.URL||window.webkitURL||window.mozURL||window.msURL;p=e&&Blob}return p}()&&(o=t.translate("yasr.btn.label.save"),a=r("<button id='yasrDownloadIcon' class='btn btn-primary btn-sm yasr_downloadIcon pull-right'>"+o+"</button>").click((function(){var n=t.plugins[t.options.output];if(n&&n.getDownloadInfo){var i=n.getDownloadInfo(),o=function(e,t){var n=null,r=window.URL||window.webkitURL||window.mozURL||window.msURL;if(r&&Blob){var i=new Blob([e],{type:t});n=r.createObjectURL(i)}return n}(i.getContent(),i.contentType?i.contentType:"text/plain"),a=r("<a></a>",{href:o,download:i.filename});e("./utils.js").fireClick(a)}})),t.header.append(a))},v=s.getPersistencyId(s.options.persistency.outputSelector);if(v){var m=i.storage.get(v);m&&(s.options.output=m)}if(s.options.hideHeader||g(s),!a&&s.options.persistency&&s.options.persistency.results){var y,b=s.getPersistencyId(s.options.persistency.results.key);if(b&&(y=i.storage.get(b)),!y&&s.options.persistency.results.id){var w="string"==typeof s.options.persistency.results.id?s.options.persistency.results.id:s.options.persistency.results.id(s);w&&(y=i.storage.get(w))&&i.storage.remove(w)}y&&(r.isArray(y)?s.setResponse.apply(this,y):s.setResponse(y))}a&&s.setResponse(a),s.updateHeader();const x="resize."+(new Date).getTime();return r(window).on(x,s.draw),s.destroy=function(){r(window).off(x);for(const e in s.plugins)r.isFunction(e.destroy)&&e.destroy()},s};o.plugins={},o.registerOutput=function(e,t){o.plugins[e]=t},o.defaults=e("./defaults.js"),o.version={YASR:e("../package.json").version,jquery:r.fn.jquery,"yasgui-utils":e("yasgui-utils").version},o.utils=e("./utils.js"),o.$=r;try{o.registerOutput("boolean",e("./boolean.js"))}catch(e){}try{o.registerOutput("booleanBootstrap",e("./booleanBootstrap.js"))}catch(e){}try{o.registerOutput("table",e("./table.js"))}catch(e){}try{o.registerOutput("rawResponse",e("./rawResponse.js"))}catch(e){}try{o.registerOutput("error",e("./error.js"))}catch(e){}try{o.registerOutput("pivot",e("./pivot.js"))}catch(e){}try{o.registerOutput("gchart",e("./gchart.js"))}catch(e){}},{"../package.json":39,"./boolean.js":41,"./booleanBootstrap.js":42,"./defaults.js":43,"./error.js":44,"./extensions.js":46,"./gChartLoader.js":47,"./gchart.js":48,"./imgs.js":51,"./jquery/extendJquery.js":52,"./parsers/wrapper.js":60,"./pivot.js":62,"./rawResponse.js":63,"./table.js":64,"./translate.js":65,"./utils.js":66,jquery:18,"yasgui-utils":36}],55:[function(e,t,n){"use strict";e("jquery"),t.exports=function(t){return e("./dlv.js")(t,",")}},{"./dlv.js":56,jquery:18}],56:[function(e,t,n){"use strict";var r=e("jquery");e("../../lib/jquery.csv-0.71.js"),t.exports=function(e,t){var n={},i=r.csv.toArrays(e,{separator:t}),o=function(e){return 0==e.indexOf("http")?"uri":null};return 2==i.length&&1==i[0].length&&1==i[1].length&&"boolean"==i[0][0]&&("1"==i[1][0]||"0"==i[1][0])&&(n.boolean="1"==i[1][0],1)||i.length>0&&i[0].length>0&&(n.head={vars:i[0]},1)&&function(){if(i.length>1){n.results={bindings:[]};for(var e=1;e<i.length;e++){for(var t={},r=0;r<i[e].length;r++){var a=n.head.vars[r];if(a){var s=i[e][r],l=o(s);t[a]={value:s},l&&(t[a].type=l)}}n.results.bindings.push(t)}n.head={vars:i[0]}}}(),n}},{"../../lib/jquery.csv-0.71.js":4,jquery:18}],57:[function(e,t,n){"use strict";e("jquery");var r=e("lodash"),i=function(e){return"object"==typeof e?("bnode"==e.type&&(e.value=e.value.slice(2)),e):0==e.indexOf("_:")?{type:"bnode",value:e.slice(2)}:-1==e.indexOf(":")?{type:"bnode",value:e}:{type:"uri",value:e}};t.exports=function(e){if(e){var t,n="RESOURCE"==window.editor.getQueryType(),o=r.map(e,(function(e,t){return r.map(e,(function(e,o){return r.map(e,(function(e){return e.graphs?(n=!0,r.map(e.graphs,(function(n){return[i(t),i(o),i(e),i(n)]}))):[i(t),i(o),i(e)]}))}))})),a=r.reduce(o,(function(e,t){return e.concat(t)}),[]);return a=r.reduce(a,(function(e,t){return e.concat(t)}),[]),t=n?(a=r.reduce(a,(function(e,t){return e.concat(t)}),[])).map((function(e){return{subject:e[0],predicate:e[1],object:e[2],context:e[3]}})):a.map((function(e){return{subject:e[0],predicate:e[1],object:e[2]}})),{head:{vars:n?["subject","predicate","object","context"]:["subject","predicate","object"]},results:{bindings:t}}}return!1}},{jquery:18,lodash:19}],58:[function(e,t,n){"use strict";e("jquery"),t.exports=function(e){if("string"==typeof e)try{return JSON.parse(e)}catch(e){return!1}return"object"==typeof e&&e.constructor==={}.constructor&&e}},{jquery:18}],59:[function(e,t,n){"use strict";e("jquery"),t.exports=function(t){return e("./dlv.js")(t,"\t")}},{"./dlv.js":56,jquery:18}],60:[function(e,t,n){"use strict";e("jquery");var r=e("lodash");t.exports=function(t,n,i){var o={xml:e("./xml.js"),json:e("./json.js"),tsv:e("./tsv.js"),csv:e("./csv.js"),graphJson:e("./graphJson.js")},a=null,s=null,l=null,u=null,c=null,f=null,d=function(){return u?(l||(l=u),u):!1!==u&&!f&&(function(){if(a)if(a.indexOf("json")>-1){try{u=o.json(s,window.editor.getQueryType()),l=u,a.indexOf("application/rdf+json")>-1&&(u=o.graphJson(l))}catch(e){f=e}c="json"}else if(a.indexOf("xml")>-1){try{u=o.xml(s)}catch(e){f=e}c="xml"}else if(a.indexOf("csv")>-1){try{u=o.csv(s)}catch(e){f=e}c="csv"}else if(a.indexOf("tab-separated")>-1){try{u=o.tsv(s)}catch(e){f=e}c="tsv"}}(),u||function(){if(u=o.json(s))c="json";else try{(u=o.xml(s))&&(c="xml")}catch(e){}}(),u||(u=!1),u)},h=function(e){if(l.results&&l.results.bindings&&l.results.bindings.length>e){var t=jQuery.extend(!0,{},l);t.results.bindings=l.results.bindings.slice(0,e)}else{var n=r.keys(l).slice(0,e);t=r.pick(l,(function(e,t){return n.indexOf(t)>=0}))}return t},p=function(){var e="";return"string"==typeof s?e=s:"json"==c?e=JSON.stringify(s,void 0,2):"xml"==c&&(e=(new XMLSerializer).serializeToString(s)),e};return function(){if("object"==typeof t){if(t.exception?f=t.exception:null!=t.status&&(t.status>=300||0===t.status)&&(f={status:t.status},"string"==typeof i&&(f.errorString=i),t.responseText&&(f.responseText=t.responseText),t.statusText&&(f.statusText=t.statusText)),t.contentType)a=t.contentType.toLowerCase();else if(t.getResponseHeader&&t.getResponseHeader("content-type")){var e=t.getResponseHeader("content-type").trim().toLowerCase();e.length>0&&(a=e)}t.response?s=t.response:n||i||(s=t)}f||s||(s=t.responseText?t.responseText:t)}(),u=d(),{getAsStoreObject:function(){var e={};t.status?(e.status=t.status,e.responseText=t.responseText,e.statusText=t.statusText,e.contentType=a):e=t;var r=void 0;return"string"==typeof i&&(r=i),[e,n,r]},getRawJson:function(){return l},getAsJson:d,getOriginalResponse:function(){return s},getShortOriginalResponse:function(e){if("json"==c){var t=h(e);return JSON.stringify(t,void 0,2)}return p().slice(0,e)},getShortOriginalResponseAsJSON:h,getOriginalResponseAsString:p,getOriginalContentType:function(){return a},getVariables:function(){var e=d();return e&&"head"in e?e.head.vars:null},getBindings:function(){var e=d();return e&&"results"in e?e.results.bindings:null},getBoolean:function(){var e=d();return e&&"boolean"in e?e.boolean:null},getType:function(){return null==c&&d(),c},getException:function(){return f}}}},{"./csv.js":55,"./graphJson.js":57,"./json.js":58,"./tsv.js":59,"./xml.js":61,jquery:18,lodash:19}],61:[function(e,t,n){"use strict";var r=e("jquery");t.exports=function(e){var t=function(e){a.head={};for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if("variable"==n.nodeName){a.head.vars||(a.head.vars=[]);var r=n.getAttribute("name");r&&a.head.vars.push(r)}}},n=function(e){a.results={},a.results.bindings=[];for(var t=0;t<e.childNodes.length;t++){for(var n=e.childNodes[t],r=null,i=0;i<n.childNodes.length;i++){var o=n.childNodes[i];if("binding"==o.nodeName){var s=o.getAttribute("name");if(s){(r=r||{})[s]={};for(var l=0;l<o.childNodes.length;l++){var u=o.childNodes[l],c=u.nodeName;if("#text"!=c){r[s].type=c,r[s].value=u.innerHTML;var f=u.getAttribute("datatype");f&&(r[s].datatype=f)}}}}}r&&a.results.bindings.push(r)}},i=function(e){"true"==e.innerHTML?a.boolean=!0:a.boolean=!1},o=null;if("string"==typeof e?o=r.parseXML(e):r.isXMLDoc(e)&&(o=e),e=null,!(o.childNodes.length>0))return null;e=o.childNodes[0];for(var a={},s=0;s<e.childNodes.length;s++){var l=e.childNodes[s];"head"==l.nodeName&&t(l),"results"==l.nodeName&&n(l),"boolean"==l.nodeName&&i(l)}return a}},{jquery:18}],62:[function(e,t,n){"use strict";var r=e("jquery"),i=e("./utils.js"),o=e("yasgui-utils"),a=e("./imgs.js");if(e("jquery-ui/sortable"),e("pivottable"),!r.fn.pivotUI)throw new Error("Pivot lib not loaded");var s=t.exports=function(t){t.translate=e("./translate.js").translate;var n={id:"pivot",name:"Pivot Table",nameLabel:"yasr.pivot.pivot_table",getPriority:4};const l=t.options.pluginsOptions?t.options.pluginsOptions[n.id]:{};var u,c=n.options=r.extend(!0,{},s.defaults,l);if(c.useD3Chart){try{d3&&e("../node_modules/pivottable/dist/d3_renderers.js")}catch(e){}r.pivotUtilities.d3_renderers&&r.extend(!0,r.pivotUtilities.renderers,r.pivotUtilities.d3_renderers)}var f=null,d=function(e){var n=function(){var e=t.results.getVariables();if(!c.mergeLabelsWithUris)return e;var n=[];return f="string"==typeof c.mergeLabelsWithUris?c.mergeLabelsWithUris:"Label",e.forEach((function(t){-1!==t.indexOf(f,t.length-f.length)&&e.indexOf(t.substring(0,t.length-f.length))>=0||n.push(t)})),n}(),r=null;t.options.getUsedPrefixes&&(r="function"==typeof t.options.getUsedPrefixes?t.options.getUsedPrefixes(t):t.options.getUsedPrefixes),t.results.getBindings().forEach((function(t){var o={};n.forEach((function(e){if(e in t){var n=t[e].value;f&&t[e+f]?n=t[e+f].value:"uri"==t[e].type&&(n=i.uriToPrefixed(r,n)),o[e]=n}else o[e]=null})),e(o)}))},h=t.getPersistencyId(c.persistencyId);return n.draw=function(){var n=function(){var e=r("<button>",{class:"openPivotGchart yasr_btn"}).text(t.translate("yasr.chart.config")).click((function(){u.find('div[dir="ltr"]').dblclick()})).appendTo(t.resultsContainer);u=r("<div>",{class:"pivotTable"}).appendTo(r(t.resultsContainer));var n,i=r.extend(!0,{},function(){var e=o.storage.get(h);if(e){var n=t.results.getVariables(),i=!0;e.cols.forEach((function(e){n.indexOf(e)<0&&(i=!1)})),i&&e.rows.forEach((function(e){n.indexOf(e)<0&&(i=!1)})),i||(e.cols=[],e.rows=[]),r.pivotUtilities.renderers[e.rendererName]||delete e.rendererName}else e={};return e}(),s.defaults.pivotTable);i.onRefresh=(n=i.onRefresh,function(r){!function(n){if(h){var r={cols:n.cols,rows:n.rows,rendererName:n.rendererName,aggregatorName:n.aggregatorName,vals:n.vals};o.storage.set(h,r,"month")}n.rendererName.toLowerCase().indexOf(" chart")>=0?e.show():e.hide(),t.updateHeader()}(r),n&&n(r)}),window.pivot=u.pivotUI(d,i);var l=r(o.svg.getElement(a.move));u.find(".pvtTriangle").replaceWith(l),r(".pvtCols").prepend(r("<div>",{class:"containerHeader"}).text(t.translate("yasr.headers.columns"))),r(".pvtRows").prepend(r("<div>",{class:"containerHeader"}).text(t.translate("yasr.headers.rows"))),r(".pvtUnused").prepend(r("<div>",{class:"containerHeader"}).text(t.translate("yasr.headers.variables"))),r(".pvtVals").prepend(r("<div>",{class:"containerHeader"}).text(t.translate("yasr.headers.cells"))),setTimeout(t.updateHeader,400)};t.options.useGoogleCharts&&c.useGoogleCharts&&!r.pivotUtilities.gchart_renderers?e("./gChartLoader.js").on("done",(function(){try{e("../node_modules/pivottable/dist/gchart_renderers.js"),r.extend(!0,r.pivotUtilities.renderers,r.pivotUtilities.gchart_renderers)}catch(e){c.useGoogleCharts=!1}n()})).on("error",(function(){console.log("could not load gchart"),c.useGoogleCharts=!1,n()})).googleLoad():n()},n.canHandleResults=function(){return t.results&&t.results.getVariables&&t.results.getVariables()&&t.results.getVariables().length>0},n.getDownloadInfo=function(){if(!t.results)return null;var e=t.resultsContainer.find(".pvtRendererArea svg");if(e.length>0)return{getContent:function(){return e[0].outerHTML?e[0].outerHTML:r("<div>").append(e.clone()).html()},filename:"queryResults.svg",contentType:"image/svg+xml",buttonTitle:t.translate("yasr.btn.title.svg")};var n=t.resultsContainer.find(".pvtRendererArea table");return n.length>0?{getContent:function(){return n.tableToCsv()},filename:"queryResults.csv",contentType:"text/csv",buttonTitle:t.translate("yasr.btn.title.csv")}:void 0},n.getEmbedHtml=function(){if(!t.results)return null;var e=t.resultsContainer.find(".pvtRendererArea svg").clone().css("height","").css("width","");if(0==e.length)return null;var n=e[0].outerHTML;return n||(n=r("<div>").append(e.clone()).html()),'<div style="width: 800px; height: 600px;">\n'+n+"\n</div>"},n};s.defaults={mergeLabelsWithUris:!1,useGoogleCharts:!0,useD3Chart:!0,persistencyId:"pivot",pivotTable:{}},s.version={"YASR-rawResponse":e("../package.json").version,jquery:r.fn.jquery}},{"../node_modules/pivottable/dist/d3_renderers.js":20,"../node_modules/pivottable/dist/gchart_renderers.js":21,"../package.json":39,"./gChartLoader.js":47,"./imgs.js":51,"./translate.js":65,"./utils.js":66,jquery:18,"jquery-ui/sortable":16,pivottable:22,"yasgui-utils":36}],63:[function(e,t,n){"use strict";var r=e("jquery"),i=e("codemirror");e("codemirror/addon/fold/foldcode.js"),e("codemirror/addon/fold/foldgutter.js"),e("codemirror/addon/fold/xml-fold.js"),e("codemirror/addon/fold/brace-fold.js"),e("codemirror/addon/edit/matchbrackets.js"),e("codemirror/mode/xml/xml.js"),e("codemirror/mode/javascript/javascript.js");var o=t.exports=function(t){t.translate=e("./translate.js").translate;const n={id:"rawResponse",name:"Raw Response",nameLabel:"yasr.name.raw_response",getPriority:2},a=t.options.pluginsOptions?t.options.pluginsOptions[n.id]:{};var s=n.options=r.extend(!0,{},o.defaults,a),l=null;return n.draw=function(){var e=s.CodeMirror;e.value=t.results.getShortOriginalResponse(s.limit);var n=t.results.getType();n&&("json"===n&&(n={name:"javascript",json:!0}),e.mode=n),(l=i(t.resultsContainer.get()[0],e)).on("fold",(function(){l.refresh()})),l.on("unfold",(function(){l.refresh()}))},n.canHandleResults=function(){if(!t.results)return!1;if(!t.results.getOriginalResponseAsString)return!1;var e=t.results.getOriginalResponseAsString();return!((!e||0===e.length)&&t.results.getException())},n.getDownloadInfo=function(){if(!t.results)return null;var e=t.results.getOriginalContentType(),n=t.results.getType();return{getContent:function(){return t.results.getOriginalResponseAsString()},filename:"queryResults"+(n?"."+n:""),contentType:e||"text/plain",buttonTitle:t.translate("yasr.btn.title.raw")}},n};o.defaults={CodeMirror:{readOnly:!0,lineNumbers:!0,lineWrapping:!0,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]},limit:1e3},o.version={"YASR-rawResponse":e("../package.json").version,jquery:r.fn.jquery,CodeMirror:i.version}},{"../package.json":39,"./translate.js":65,codemirror:10,"codemirror/addon/edit/matchbrackets.js":5,"codemirror/addon/fold/brace-fold.js":6,"codemirror/addon/fold/foldcode.js":7,"codemirror/addon/fold/foldgutter.js":8,"codemirror/addon/fold/xml-fold.js":9,"codemirror/mode/javascript/javascript.js":11,"codemirror/mode/xml/xml.js":12,jquery:18}],64:[function(e,t,n){"use strict";var r=e("jquery"),i=e("yasgui-utils"),o=e("./utils.js"),a=(e("./imgs.js"),e("lodash"));e("../lib/DataTables/media/js/jquery.dataTables.js"),e("../lib/colResizable-1.4.js");var s=t.exports=function(t){t.translate=e("./translate.js").translate;var n=null,o={id:"table",name:"Table",nameLabel:"yasr.table",getPriority:10};const l=t.options.pluginsOptions?t.options.pluginsOptions[o.id]:{};var u=o.options=r.extend(!0,{},s.defaults,l),c=u.persistency?t.getPersistencyId(u.persistency.tableLength):null;t.getPersistencyId("eventId")||r(t.container).closest("[id]").attr("id");o.draw=function(){n=r('<table cellpadding="0" cellspacing="0" border="0" class="resultsTable table stripe hover table-bordered fixedCellWidth"></table>'),r(t.resultsContainer).html(n);var s=u.datatable;s.data=function(){var e=[],n=t.results.getBindings(),r=t.results.getVariables(),i=null;t.options.getUsedPrefixes&&(i="function"==typeof t.options.getUsedPrefixes?t.options.getUsedPrefixes(t):t.options.getUsedPrefixes),i=a.invert(i);for(var s=0;s<n.length;s++){var l=[];l.push("");for(var c=n[s],f=0;f<r.length;f++){var d=r[f];d in c&&u.getCellContent?l.push(u.getCellContent(t,o,c,d,{rowId:s,colId:f,usedPrefixes:i})):l.push("")}e.push(l)}return e}(),s.columns=u.getColumns(t,o);var l=i.storage.get(c);l&&(s.pageLength=l),s.translate=e("./translate.js").translate,n.DataTable(r.extend(!0,{},s)),f(),(!u.enableColumnResizingOnWindowWidth||u.enableColumnResizingOnWindowWidth<=r(window).width())&&((t.getPersistencyId("eventId")||r(t.container).closest("[id]").attr("id"),function(){var e;n.on("order.dt",(function(){f()})),c&&n.on("length.dt",(function(e,t,n){i.storage.set(c,n,"month")})),r.extend(!0,u.callbacks,u.handlers),n.delegate("td","click",(function(e){if(u.callbacks&&u.callbacks.onCellClick&&!1===u.callbacks.onCellClick(this,e))return!1})).delegate("td","mouseenter",(function(e){u.callbacks&&u.callbacks.onCellMouseEnter&&u.callbacks.onCellMouseEnter(this,e);var t=r(this);u.fetchTitlesFromPreflabel&&void 0===t.attr("title")&&0==t.text().trim().indexOf("http")&&d(t)})).delegate("td","mouseleave",(function(e){u.callbacks&&u.callbacks.onCellMouseLeave&&u.callbacks.onCellMouseLeave(this,e)})),e=angular.element(r("#yasr")[0]).scope(),r("td div .fa-link").on("click",(function(){var t=this.dataset.clipboardText;e.copyToClipboardResult(t)}))})(),n.colResizable()),n.find("thead").outerHeight(),r(t.resultsContainer).find(".JCLRgrip").height(n.find("thead").outerHeight()),t.header.outerHeight();var h=t.resultsContainer.find(".dataTables_filter label");r(h.contents().get(0)).remove(),h.find("input[type=search]").attr("placeholder",t.translate("yasr.table.filter")).addClass("form-control"),u.highlightLiteralCellResult()};var f=function(){for(var e in n.find(".sortIcons").remove(),{sorting:"unsorted",sorting_asc:"sortAsc",sorting_desc:"sortDesc"}){var t=r("<div class='sortIcons'></div>");"sorting"==e?t.append("<a class='fa fa-sort'></a>"):"sorting_asc"==e?t.append("<a class='fa fa-sort-alpha-asc'></a>"):"sorting_desc"==e&&t.append("<a class='fa fa-sort-alpha-desc'></a>"),n.find("th."+e).append(t)}};return o.canHandleResults=function(){return t.results&&t.results.getVariables&&t.results.getVariables()&&t.results.getVariables().length>0},o.getDownloadInfo=function(){return t.results?{getContent:function(){return e("./bindingsToCsv.js")(t.results.getAsJson())},filename:"queryResults.csv",contentType:"text/csv",buttonTitle:t.translate("yasr.btn.title.csv")}:null},o},l=function(e){return e.replace(/([_:](?![_:/-]))/g,"$1<wbr>").replace(/((?<!<)[/](?![_:/-]))/g,"$1<wbr>").replace(/((?<!@\p{L}*)[-](?![_:/-]))/gu,"$1<wbr>")},u=function(e,t,n,r){var i="",s=null;let d=r.translate("yasr.copy.to.clipboard");if("uri"===e.type){var h=null,p=e.value,g=p;if(t.usedPrefixes){var v=o.uriToPrefixWithLocalName(t.usedPrefixes,g);if(v){var m=v.localName;g=v.prefix+":"+m}}var y=window.location.origin+"/resource/";x=0===p.indexOf(y)&&p.length>y.length?p:"resource?uri="+encodeURIComponent(p),null!=n&&!0===n&&(x+="&context="+encodeURIComponent("http://rdf4j.org/schema/rdf4j#SHACLShapeGraph")),x=x.replace(/'/g,"&#39;"),s="<a title='"+(p=p.replace(/'/g,"&#39;"))+"' class='uri' href='"+x+"'>"+(C=a.escape(g),l(C)+"</a> <a class='fa fa-link share-result' data-clipboard-text='")+p+"' title='"+d+"' href='#'></a>",i=" class = 'uri-cell'"}else if("triple"===e.type){var b="<ul class='triple-list'><li>"+u(e.value.s,t,n,r)+"</li><li>"+u(e.value.p,t,n,r)+"</li><li>"+u(e.value.o,t,n,r)+"</li></ul>",w=c(r,e,!1),x="resource?triple="+encodeURIComponent(w).replace(/'/g,"&#39;");s="<a title='"+(h=a.escape(w))+"' class='triple-link' href='"+x+"'>"+a.escape("<<")+"</a>"+b+"<a title='"+h+"' class='triple-link triple-link-end' href='"+x+"'>"+a.escape(">>")+"</a><a class='fa fa-link share-result' data-clipboard-text='"+w+"' title='"+d+"' href='#'></a>",i=" class = 'triple-cell'"}else s="<p class='nonUri' style='border: none; background-color: transparent; padding: 0; margin: 0'>"+f(r,e,!0)+"</p>",i=" class = 'literal-cell'";var C,S,_;return`<div ${i} lang="${S=e,_="xx",S["xml:lang"]?S["xml:lang"]:S.lang?S.lang:_}">${s}</div>`},c=function(e,t,n){return"uri"===t.type?"<"+t.value+">":"triple"===t.type?"<<"+c(e,t.value.s,n)+" "+c(e,t.value.p,n)+" "+c(e,t.value.o,n)+">>":f(e,t,n)},f=function(e,t,n){var r=o.escapeHtmlEntities(t.value),i="http://www.w3.org/2001/XMLSchema#";if("bnode"===t.type)return"_:"+r;if(t["xml:lang"])r='"'+r+(n?'"<sup>':'"')+"@"+t["xml:lang"]+(n?"</sup>":"");else if(t.lang)r='"'+r+(n?'"<sup>':'"@')+t.lang+(n?"</sup>":"");else if(t.datatype&&t.datatype!==i+"string"){var a=t.datatype;r='"'+r+(n?'"<sup>':'"')+"^^"+(a=0===a.indexOf(i)&&n?"xsd:"+a.substring(i.length):n?"&lt;"+a+"&gt;":"<"+a+">")+(n?"</sup>":"")}return function(e){const t=function(e){return e.replace(/(\^\^)/g,"<wbr>$1")}(e);return l(t)}(0===r.indexOf('"')?r:'"'+r+'"')},d=function(e){var t=function(){e.attr("title","")};r.get("http://preflabel.org/api/v1/label/"+encodeURIComponent(e.text())+"?silent=true").success((function(n){"object"==typeof n&&n.label?e.attr("title",n.label):"string"==typeof n&&n.length>0?e.attr("title",n):t()})).fail(t)};s.defaults={getCellContent:function(e,t,n,r,i){var o=n[r],a=e.header.context.ownerDocument.URL.includes("http:%2F%2Frdf4j.org%2Fschema%2Frdf4j%23SHACLShapeGraph");return u(o,i,a,e)},highlightLiteralCellResult:function(){},persistency:{tableLength:"tableLength"},getColumns:function(e,t){var n=function(n){if(!t.options.mergeLabelsWithUris)return!0;var r="string"==typeof t.options.mergeLabelsWithUris?t.options.mergeLabelsWithUris:"Label";return!(-1!==n.indexOf(r,n.length-r.length)&&e.results.getVariables().indexOf(n.substring(0,n.length-r.length))>=0)},r=[];return r.push({title:""}),e.results.getVariables().forEach((function(t){var i=e.options.translateHeaders?e.translate("yasr.headers.labels."+t):t;r.push({title:"<span>"+i+"</span>",visible:n(t)})})),r},fetchTitlesFromPreflabel:!0,mergeLabelsWithUris:!1,callbacks:{onCellMouseEnter:null,onCellMouseLeave:null,onCellClick:null},datatable:{paginate:!1,info:!1,autoWidth:!1,order:[],pageLength:50,lengthMenu:[[10,50,100,1e3,-1],[10,50,100,1e3,"All"]],lengthChange:!0,drawCallback:function(e){for(var t=0;t<e.aiDisplay.length;t++)r("td:eq(0)",e.aoData[e.aiDisplay[t]].nTr).html(t+1);var n=!1;r(e.nTableWrapper).find(".paginate_button").each((function(){-1==r(this).attr("class").indexOf("current")&&-1==r(this).attr("class").indexOf("disabled")&&(n=!0)})),n?r(e.nTableWrapper).find(".dataTables_paginate").show():r(e.nTableWrapper).find(".dataTables_paginate").hide()},columnDefs:[{width:"32px",orderable:!1,targets:0}]}},s.version={"YASR-table":e("../package.json").version,jquery:r.fn.jquery,"jquery-datatables":r.fn.DataTable.version}},{"../lib/DataTables/media/js/jquery.dataTables.js":2,"../lib/colResizable-1.4.js":3,"../package.json":39,"./bindingsToCsv.js":40,"./imgs.js":51,"./translate.js":65,"./utils.js":66,jquery:18,lodash:19,"yasgui-utils":36}],65:[function(e,t,n){const r={en:e("./i18n/locale-en"),fr:e("./i18n/locale-fr")};var i="en";t.exports={setLanguage:function(e){i=e},translate:function(e,t){const n=i;if(!r||!r[n])return console.warn("Missing locale file for ["+n+"]"),e;let o=r[n][e];return o||(o=r.en[e]),t&&(o=o.replace(`{{${t.key}}}`,t.value)),o||(console.warn("Missing translation for ["+e+"] key in ["+n+"] locale"),e)}}},{"./i18n/locale-en":49,"./i18n/locale-fr":50}],66:[function(e,t,n){"use strict";var r=e("jquery"),i=(e("lodash"),e("./exceptions.js").GoogleTypeException);t.exports={escapeHtmlEntities:function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},uriToPrefixed:function(e,t){if(e)for(var n in e)if(0==t.indexOf(e[n])){t=n+":"+t.substring(e[n].length);break}return t},uriToPrefixWithLocalName:function(e,t){var n=Object.keys(e).filter((function(e){return 0==t.indexOf(e)}));if(n.length>0){var r=(n=n.sort((function(e,t){return e.length<t.length})))[0];return{prefix:e[r],localName:t.substring(r.length)}}return null},getGoogleTypeForBinding:function(e){if(null==e)return null;if(null==e.type||"typed-literal"!==e.type&&"literal"!==e.type)return"string";switch(e.datatype){case"http://www.w3.org/2001/XMLSchema#float":case"http://www.w3.org/2001/XMLSchema#decimal":case"http://www.w3.org/2001/XMLSchema#int":case"http://www.w3.org/2001/XMLSchema#integer":case"http://www.w3.org/2001/XMLSchema#long":case"http://www.w3.org/2001/XMLSchema#gYearMonth":case"http://www.w3.org/2001/XMLSchema#gYear":case"http://www.w3.org/2001/XMLSchema#gMonthDay":case"http://www.w3.org/2001/XMLSchema#gDay":case"http://www.w3.org/2001/XMLSchema#gMonth":return"number";case"http://www.w3.org/2001/XMLSchema#date":return"date";case"http://www.w3.org/2001/XMLSchema#dateTime":return"datetime";case"http://www.w3.org/2001/XMLSchema#time":return"timeofday";default:return"string"}},getGoogleTypeForBindings:function(e,n){var r={},o=0;if(e.forEach((function(e){var i=t.exports.getGoogleTypeForBinding(e[n]);null!=i&&(i in r||(r[i]=0,o++),r[i]++)})),0==o)return"string";if(1!=o)throw new i(r,n);for(var a in r)return a},castGoogleType:function(e,n,r){if(null==e)return null;if("string"==r||null==e.type||"typed-literal"!==e.type&&"literal"!==e.type)return"uri"==e.type?t.exports.uriToPrefixed(n,e.value):e.value;switch(e.datatype){case"http://www.w3.org/2001/XMLSchema#float":case"http://www.w3.org/2001/XMLSchema#decimal":case"http://www.w3.org/2001/XMLSchema#int":case"http://www.w3.org/2001/XMLSchema#integer":case"http://www.w3.org/2001/XMLSchema#long":case"http://www.w3.org/2001/XMLSchema#gYearMonth":case"http://www.w3.org/2001/XMLSchema#gYear":case"http://www.w3.org/2001/XMLSchema#gMonthDay":case"http://www.w3.org/2001/XMLSchema#gDay":case"http://www.w3.org/2001/XMLSchema#gMonth":return Number(e.value);case"http://www.w3.org/2001/XMLSchema#date":var i=o(e.value);if(i)return i;case"http://www.w3.org/2001/XMLSchema#dateTime":case"http://www.w3.org/2001/XMLSchema#time":return new Date(e.value);default:return e.value}},fireClick:function(e){e&&e.each((function(e,t){var n=r(t);if(document.dispatchEvent){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,1,1,1,1,1,!1,!1,!1,!1,0,n[0]),n[0].dispatchEvent(i)}else document.fireEvent&&n[0].click()}))}};var o=function(e){var t=new Date(e.replace(/(\d)([\+-]\d{2}:\d{2})/,"$1Z$2"));return isNaN(t)?null:t}},{"./exceptions.js":45,jquery:18,lodash:19}]},{},[1])(1)},module.exports=e()}).call(this,__webpack_require__(11))},69:function(e,t,n){"use strict";n.r(t),n.d(t,"YasrUtils",(function(){return r}));const r=function(){const e=function(){return{enableColumnResizingOnWindowWidth:768}};return{getYasrConfiguration:function(t){const n={table:e()};return angular.extend({},n,t)},getDefaultTablePluginConfiguration:e}}()}}]);