wagtail 7.1.2__py3-none-any.whl → 7.2__py3-none-any.whl

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 (1125) hide show
  1. wagtail/__init__.py +1 -1
  2. wagtail/actions/copy_page.py +1 -1
  3. wagtail/actions/create_alias.py +1 -1
  4. wagtail/actions/delete_page.py +1 -1
  5. wagtail/actions/publish_page_revision.py +1 -1
  6. wagtail/actions/publish_revision.py +1 -1
  7. wagtail/actions/revert_to_page_revision.py +1 -1
  8. wagtail/actions/unpublish.py +1 -1
  9. wagtail/actions/unpublish_page.py +1 -1
  10. wagtail/admin/auth.py +3 -1
  11. wagtail/admin/checks.py +2 -2
  12. wagtail/admin/filters.py +28 -1
  13. wagtail/admin/forms/collections.py +1 -1
  14. wagtail/admin/forms/comments.py +1 -1
  15. wagtail/admin/forms/models.py +1 -1
  16. wagtail/admin/forms/pages.py +1 -1
  17. wagtail/admin/forms/tags.py +1 -1
  18. wagtail/admin/locale/ar/LC_MESSAGES/django.mo +0 -0
  19. wagtail/admin/locale/ar/LC_MESSAGES/django.po +44 -89
  20. wagtail/admin/locale/az_AZ/LC_MESSAGES/django.mo +0 -0
  21. wagtail/admin/locale/az_AZ/LC_MESSAGES/django.po +4 -7
  22. wagtail/admin/locale/be/LC_MESSAGES/django.mo +0 -0
  23. wagtail/admin/locale/be/LC_MESSAGES/django.po +15 -42
  24. wagtail/admin/locale/bg/LC_MESSAGES/django.mo +0 -0
  25. wagtail/admin/locale/bg/LC_MESSAGES/django.po +7 -16
  26. wagtail/admin/locale/bn/LC_MESSAGES/django.mo +0 -0
  27. wagtail/admin/locale/bn/LC_MESSAGES/django.po +4 -13
  28. wagtail/admin/locale/ca/LC_MESSAGES/django.mo +0 -0
  29. wagtail/admin/locale/ca/LC_MESSAGES/django.po +159 -74
  30. wagtail/admin/locale/ca/LC_MESSAGES/djangojs.mo +0 -0
  31. wagtail/admin/locale/ca/LC_MESSAGES/djangojs.po +11 -0
  32. wagtail/admin/locale/cs/LC_MESSAGES/django.mo +0 -0
  33. wagtail/admin/locale/cs/LC_MESSAGES/django.po +40 -50
  34. wagtail/admin/locale/cy/LC_MESSAGES/django.mo +0 -0
  35. wagtail/admin/locale/cy/LC_MESSAGES/django.po +6 -13
  36. wagtail/admin/locale/da/LC_MESSAGES/django.mo +0 -0
  37. wagtail/admin/locale/da/LC_MESSAGES/django.po +10 -22
  38. wagtail/admin/locale/de/LC_MESSAGES/django.mo +0 -0
  39. wagtail/admin/locale/de/LC_MESSAGES/django.po +42 -93
  40. wagtail/admin/locale/dv/LC_MESSAGES/django.mo +0 -0
  41. wagtail/admin/locale/dv/LC_MESSAGES/django.po +26 -64
  42. wagtail/admin/locale/el/LC_MESSAGES/django.mo +0 -0
  43. wagtail/admin/locale/el/LC_MESSAGES/django.po +9 -31
  44. wagtail/admin/locale/en/LC_MESSAGES/django.po +278 -192
  45. wagtail/admin/locale/en/LC_MESSAGES/djangojs.po +29 -15
  46. wagtail/admin/locale/es/LC_MESSAGES/django.mo +0 -0
  47. wagtail/admin/locale/es/LC_MESSAGES/django.po +17 -52
  48. wagtail/admin/locale/es_419/LC_MESSAGES/django.mo +0 -0
  49. wagtail/admin/locale/es_419/LC_MESSAGES/django.po +4 -22
  50. wagtail/admin/locale/es_VE/LC_MESSAGES/django.mo +0 -0
  51. wagtail/admin/locale/es_VE/LC_MESSAGES/django.po +4 -7
  52. wagtail/admin/locale/et/LC_MESSAGES/django.mo +0 -0
  53. wagtail/admin/locale/et/LC_MESSAGES/django.po +15 -42
  54. wagtail/admin/locale/eu/LC_MESSAGES/django.po +1 -1
  55. wagtail/admin/locale/fa/LC_MESSAGES/django.mo +0 -0
  56. wagtail/admin/locale/fa/LC_MESSAGES/django.po +12 -50
  57. wagtail/admin/locale/fi/LC_MESSAGES/django.mo +0 -0
  58. wagtail/admin/locale/fi/LC_MESSAGES/django.po +43 -70
  59. wagtail/admin/locale/fi/LC_MESSAGES/djangojs.mo +0 -0
  60. wagtail/admin/locale/fi/LC_MESSAGES/djangojs.po +17 -0
  61. wagtail/admin/locale/fr/LC_MESSAGES/django.mo +0 -0
  62. wagtail/admin/locale/fr/LC_MESSAGES/django.po +157 -74
  63. wagtail/admin/locale/fr/LC_MESSAGES/djangojs.mo +0 -0
  64. wagtail/admin/locale/fr/LC_MESSAGES/djangojs.po +11 -0
  65. wagtail/admin/locale/gl/LC_MESSAGES/django.mo +0 -0
  66. wagtail/admin/locale/gl/LC_MESSAGES/django.po +155 -72
  67. wagtail/admin/locale/gl/LC_MESSAGES/djangojs.mo +0 -0
  68. wagtail/admin/locale/gl/LC_MESSAGES/djangojs.po +11 -0
  69. wagtail/admin/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  70. wagtail/admin/locale/he_IL/LC_MESSAGES/django.po +7 -28
  71. wagtail/admin/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  72. wagtail/admin/locale/hr_HR/LC_MESSAGES/django.po +15 -38
  73. wagtail/admin/locale/ht/LC_MESSAGES/django.po +4 -4
  74. wagtail/admin/locale/hu/LC_MESSAGES/django.mo +0 -0
  75. wagtail/admin/locale/hu/LC_MESSAGES/django.po +44 -91
  76. wagtail/admin/locale/id_ID/LC_MESSAGES/django.mo +0 -0
  77. wagtail/admin/locale/id_ID/LC_MESSAGES/django.po +10 -31
  78. wagtail/admin/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  79. wagtail/admin/locale/is_IS/LC_MESSAGES/django.po +41 -87
  80. wagtail/admin/locale/it/LC_MESSAGES/django.mo +0 -0
  81. wagtail/admin/locale/it/LC_MESSAGES/django.po +34 -78
  82. wagtail/admin/locale/ja/LC_MESSAGES/django.mo +0 -0
  83. wagtail/admin/locale/ja/LC_MESSAGES/django.po +15 -42
  84. wagtail/admin/locale/ka/LC_MESSAGES/django.po +4 -4
  85. wagtail/admin/locale/ko/LC_MESSAGES/django.mo +0 -0
  86. wagtail/admin/locale/ko/LC_MESSAGES/django.po +20 -57
  87. wagtail/admin/locale/lt/LC_MESSAGES/django.mo +0 -0
  88. wagtail/admin/locale/lt/LC_MESSAGES/django.po +12 -31
  89. wagtail/admin/locale/lv/LC_MESSAGES/django.mo +0 -0
  90. wagtail/admin/locale/lv/LC_MESSAGES/django.po +9 -40
  91. wagtail/admin/locale/mi/LC_MESSAGES/django.mo +0 -0
  92. wagtail/admin/locale/mi/LC_MESSAGES/django.po +6 -10
  93. wagtail/admin/locale/mn/LC_MESSAGES/django.mo +0 -0
  94. wagtail/admin/locale/mn/LC_MESSAGES/django.po +10 -43
  95. wagtail/admin/locale/my/LC_MESSAGES/django.po +4 -4
  96. wagtail/admin/locale/nb/LC_MESSAGES/django.mo +0 -0
  97. wagtail/admin/locale/nb/LC_MESSAGES/django.po +15 -53
  98. wagtail/admin/locale/nl/LC_MESSAGES/django.mo +0 -0
  99. wagtail/admin/locale/nl/LC_MESSAGES/django.po +208 -70
  100. wagtail/admin/locale/nl/LC_MESSAGES/djangojs.mo +0 -0
  101. wagtail/admin/locale/nl/LC_MESSAGES/djangojs.po +19 -2
  102. wagtail/admin/locale/pl/LC_MESSAGES/django.mo +0 -0
  103. wagtail/admin/locale/pl/LC_MESSAGES/django.po +27 -72
  104. wagtail/admin/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  105. wagtail/admin/locale/pt_BR/LC_MESSAGES/django.po +38 -83
  106. wagtail/admin/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  107. wagtail/admin/locale/pt_PT/LC_MESSAGES/django.po +17 -56
  108. wagtail/admin/locale/ro/LC_MESSAGES/django.mo +0 -0
  109. wagtail/admin/locale/ro/LC_MESSAGES/django.po +23 -68
  110. wagtail/admin/locale/ru/LC_MESSAGES/django.mo +0 -0
  111. wagtail/admin/locale/ru/LC_MESSAGES/django.po +96 -84
  112. wagtail/admin/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
  113. wagtail/admin/locale/sk_SK/LC_MESSAGES/django.po +9 -28
  114. wagtail/admin/locale/sl/LC_MESSAGES/django.mo +0 -0
  115. wagtail/admin/locale/sl/LC_MESSAGES/django.po +45 -90
  116. wagtail/admin/locale/sv/LC_MESSAGES/django.mo +0 -0
  117. wagtail/admin/locale/sv/LC_MESSAGES/django.po +27 -72
  118. wagtail/admin/locale/tet/LC_MESSAGES/django.mo +0 -0
  119. wagtail/admin/locale/tet/LC_MESSAGES/django.po +12 -22
  120. wagtail/admin/locale/th/LC_MESSAGES/django.mo +0 -0
  121. wagtail/admin/locale/th/LC_MESSAGES/django.po +10 -42
  122. wagtail/admin/locale/tr/LC_MESSAGES/django.mo +0 -0
  123. wagtail/admin/locale/tr/LC_MESSAGES/django.po +64 -70
  124. wagtail/admin/locale/tr_TR/LC_MESSAGES/django.mo +0 -0
  125. wagtail/admin/locale/tr_TR/LC_MESSAGES/django.po +15 -42
  126. wagtail/admin/locale/ug/LC_MESSAGES/django.mo +0 -0
  127. wagtail/admin/locale/ug/LC_MESSAGES/django.po +38 -83
  128. wagtail/admin/locale/uk/LC_MESSAGES/django.mo +0 -0
  129. wagtail/admin/locale/uk/LC_MESSAGES/django.po +15 -45
  130. wagtail/admin/locale/vi/LC_MESSAGES/django.mo +0 -0
  131. wagtail/admin/locale/vi/LC_MESSAGES/django.po +4 -17
  132. wagtail/admin/locale/zh/LC_MESSAGES/django.mo +0 -0
  133. wagtail/admin/locale/zh/LC_MESSAGES/django.po +7 -19
  134. wagtail/admin/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  135. wagtail/admin/locale/zh_Hans/LC_MESSAGES/django.po +17 -54
  136. wagtail/admin/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
  137. wagtail/admin/locale/zh_Hant/LC_MESSAGES/django.po +15 -37
  138. wagtail/admin/static/wagtailadmin/css/core.css +1 -1
  139. wagtail/admin/static/wagtailadmin/js/bulk-actions.js +1 -1
  140. wagtail/admin/static/wagtailadmin/js/chooser-modal.js +1 -1
  141. wagtail/admin/static/wagtailadmin/js/chooser-widget-telepath.js +1 -1
  142. wagtail/admin/static/wagtailadmin/js/chooser-widget.js +1 -1
  143. wagtail/admin/static/wagtailadmin/js/comments.js +1 -1
  144. wagtail/admin/static/wagtailadmin/js/core.js +1 -1
  145. wagtail/admin/static/wagtailadmin/js/core.js.LICENSE.txt +2 -2
  146. wagtail/admin/static/wagtailadmin/js/date-time-chooser.js +1 -1
  147. wagtail/admin/static/wagtailadmin/js/draftail.js +1 -1
  148. wagtail/admin/static/wagtailadmin/js/filtered-select.js +1 -1
  149. wagtail/admin/static/wagtailadmin/js/icons.js +1 -1
  150. wagtail/admin/static/wagtailadmin/js/modal-workflow.js +1 -1
  151. wagtail/admin/static/wagtailadmin/js/page-chooser-modal.js +1 -1
  152. wagtail/admin/static/wagtailadmin/js/page-chooser-telepath.js +1 -1
  153. wagtail/admin/static/wagtailadmin/js/page-chooser.js +1 -1
  154. wagtail/admin/static/wagtailadmin/js/privacy-switch.js +1 -1
  155. wagtail/admin/static/wagtailadmin/js/sidebar.js +1 -1
  156. wagtail/admin/static/wagtailadmin/js/task-chooser-modal.js +1 -1
  157. wagtail/admin/static/wagtailadmin/js/task-chooser.js +1 -1
  158. wagtail/admin/static/wagtailadmin/js/telepath/blocks.js +1 -1
  159. wagtail/admin/static/wagtailadmin/js/telepath/telepath.js +1 -1
  160. wagtail/admin/static/wagtailadmin/js/telepath/widgets.js +1 -1
  161. wagtail/admin/static/wagtailadmin/js/userbar.js +1 -1
  162. wagtail/admin/static/wagtailadmin/js/userbar.js.LICENSE.txt +2 -2
  163. wagtail/admin/static/wagtailadmin/js/vendor/bootstrap-modal.js +1 -1
  164. wagtail/admin/static/wagtailadmin/js/vendor/bootstrap-transition.js +1 -1
  165. wagtail/admin/static/wagtailadmin/js/vendor/jquery-3.6.0.min.js +1 -1
  166. wagtail/admin/static/wagtailadmin/js/vendor/jquery-ui-1.13.2.min.js +1 -1
  167. wagtail/admin/static/wagtailadmin/js/vendor/jquery.datetimepicker.js +1 -1
  168. wagtail/admin/static/wagtailadmin/js/vendor/jquery.fileupload-process.js +1 -1
  169. wagtail/admin/static/wagtailadmin/js/vendor/jquery.fileupload.js +1 -1
  170. wagtail/admin/static/wagtailadmin/js/vendor/jquery.iframe-transport.js +1 -1
  171. wagtail/admin/static/wagtailadmin/js/vendor/tag-it.js +1 -1
  172. wagtail/admin/static/wagtailadmin/js/vendor.js +1 -1
  173. wagtail/admin/static/wagtailadmin/js/vendor.js.LICENSE.txt +1 -1
  174. wagtail/admin/static/wagtailadmin/js/wagtailadmin.js +1 -1
  175. wagtail/admin/static/wagtailadmin/js/workflow-action.js +1 -1
  176. wagtail/admin/templates/wagtailadmin/account/account.html +2 -0
  177. wagtail/admin/templates/wagtailadmin/base.html +14 -0
  178. wagtail/admin/templates/wagtailadmin/generic/chooser/chooser.html +2 -1
  179. wagtail/admin/templates/wagtailadmin/generic/chooser/creation_form.html +2 -1
  180. wagtail/admin/templates/wagtailadmin/panels/multi_field_panel_child.html +1 -1
  181. wagtail/admin/templates/wagtailadmin/panels/object_list.html +1 -1
  182. wagtail/admin/templates/wagtailadmin/panels/tabbed_interface.html +3 -2
  183. wagtail/admin/templates/wagtailadmin/shared/formatted_field.html +1 -1
  184. wagtail/admin/templates/wagtailadmin/shared/forms/single_checkbox.html +1 -1
  185. wagtail/admin/templates/wagtailadmin/shared/keyboard_shortcuts_dialog.html +19 -0
  186. wagtail/admin/templates/wagtailadmin/shared/panel.html +1 -1
  187. wagtail/admin/templates/wagtailadmin/shared/set_privacy.html +15 -0
  188. wagtail/admin/templates/wagtailadmin/shared/side_panels/checks.html +28 -1
  189. wagtail/admin/templates/wagtailadmin/shared/workflow_history/detail.html +2 -2
  190. wagtail/admin/templates/wagtailadmin/{pages/listing/_ordering_header.html → tables/ordering_header.html} +2 -2
  191. wagtail/admin/templates/wagtailadmin/tables/title_cell.html +1 -1
  192. wagtail/admin/templates/wagtailadmin/widgets/{daterange_input.html → range_input.html} +1 -1
  193. wagtail/admin/templates/wagtailadmin/workflows/task_chooser/chooser.html +4 -2
  194. wagtail/admin/templatetags/wagtailadmin_tags.py +41 -22
  195. wagtail/admin/tests/api/test_pages.py +7 -7
  196. wagtail/admin/tests/api/test_renderer_classes.py +16 -0
  197. wagtail/admin/tests/pages/test_create_page.py +42 -2
  198. wagtail/admin/tests/pages/test_edit_page.py +128 -14
  199. wagtail/admin/tests/pages/test_explorer_view.py +34 -7
  200. wagtail/admin/tests/pages/test_reorder_page.py +11 -0
  201. wagtail/admin/tests/test_collections_views.py +12 -0
  202. wagtail/admin/tests/test_edit_handlers.py +3 -3
  203. wagtail/admin/tests/test_filters.py +2 -2
  204. wagtail/admin/tests/test_keyboard_shortcuts.py +52 -2
  205. wagtail/admin/tests/test_menu.py +0 -2
  206. wagtail/admin/tests/test_privacy.py +16 -16
  207. wagtail/admin/tests/test_templatetags.py +137 -0
  208. wagtail/admin/tests/test_workflows.py +34 -0
  209. wagtail/admin/tests/viewsets/test_model_viewset.py +322 -0
  210. wagtail/admin/ui/tables/orderable.py +73 -0
  211. wagtail/admin/ui/tables/pages.py +3 -13
  212. wagtail/admin/views/collection_privacy.py +6 -2
  213. wagtail/admin/views/generic/__init__.py +1 -0
  214. wagtail/admin/views/generic/mixins.py +20 -2
  215. wagtail/admin/views/generic/models.py +67 -1
  216. wagtail/admin/views/generic/ordering.py +79 -0
  217. wagtail/admin/views/home.py +3 -3
  218. wagtail/admin/views/page_privacy.py +5 -2
  219. wagtail/admin/views/pages/create.py +1 -1
  220. wagtail/admin/views/pages/edit.py +2 -2
  221. wagtail/admin/views/pages/listing.py +7 -42
  222. wagtail/admin/views/pages/move.py +1 -1
  223. wagtail/admin/views/pages/ordering.py +1 -1
  224. wagtail/admin/viewsets/base.py +1 -1
  225. wagtail/admin/viewsets/model.py +49 -1
  226. wagtail/admin/wagtail_hooks.py +2 -1
  227. wagtail/admin/widgets/slug.py +10 -10
  228. wagtail/api/v2/serializers.py +1 -1
  229. wagtail/api/v2/tests/test_renderer_classes.py +32 -0
  230. wagtail/apps.py +2 -0
  231. wagtail/bin/wagtail.py +1 -1
  232. wagtail/contrib/forms/locale/af/LC_MESSAGES/django.po +1 -1
  233. wagtail/contrib/forms/locale/ar/LC_MESSAGES/django.po +1 -1
  234. wagtail/contrib/forms/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  235. wagtail/contrib/forms/locale/be/LC_MESSAGES/django.po +1 -1
  236. wagtail/contrib/forms/locale/bg/LC_MESSAGES/django.po +1 -1
  237. wagtail/contrib/forms/locale/bn/LC_MESSAGES/django.po +1 -1
  238. wagtail/contrib/forms/locale/ca/LC_MESSAGES/django.po +1 -1
  239. wagtail/contrib/forms/locale/cs/LC_MESSAGES/django.po +1 -1
  240. wagtail/contrib/forms/locale/cy/LC_MESSAGES/django.po +1 -1
  241. wagtail/contrib/forms/locale/da/LC_MESSAGES/django.po +1 -1
  242. wagtail/contrib/forms/locale/de/LC_MESSAGES/django.po +1 -1
  243. wagtail/contrib/forms/locale/dv/LC_MESSAGES/django.po +1 -1
  244. wagtail/contrib/forms/locale/el/LC_MESSAGES/django.po +1 -1
  245. wagtail/contrib/forms/locale/en/LC_MESSAGES/django.po +14 -14
  246. wagtail/contrib/forms/locale/es/LC_MESSAGES/django.po +1 -1
  247. wagtail/contrib/forms/locale/es_419/LC_MESSAGES/django.po +1 -1
  248. wagtail/contrib/forms/locale/et/LC_MESSAGES/django.po +1 -1
  249. wagtail/contrib/forms/locale/eu/LC_MESSAGES/django.po +1 -1
  250. wagtail/contrib/forms/locale/fa/LC_MESSAGES/django.po +1 -1
  251. wagtail/contrib/forms/locale/fi/LC_MESSAGES/django.po +1 -1
  252. wagtail/contrib/forms/locale/fr/LC_MESSAGES/django.po +1 -1
  253. wagtail/contrib/forms/locale/gl/LC_MESSAGES/django.po +1 -1
  254. wagtail/contrib/forms/locale/he_IL/LC_MESSAGES/django.po +1 -1
  255. wagtail/contrib/forms/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  256. wagtail/contrib/forms/locale/ht/LC_MESSAGES/django.po +1 -1
  257. wagtail/contrib/forms/locale/hu/LC_MESSAGES/django.po +1 -1
  258. wagtail/contrib/forms/locale/hy/LC_MESSAGES/django.po +1 -1
  259. wagtail/contrib/forms/locale/id_ID/LC_MESSAGES/django.po +1 -1
  260. wagtail/contrib/forms/locale/is_IS/LC_MESSAGES/django.po +1 -1
  261. wagtail/contrib/forms/locale/it/LC_MESSAGES/django.po +1 -1
  262. wagtail/contrib/forms/locale/ja/LC_MESSAGES/django.po +1 -1
  263. wagtail/contrib/forms/locale/ka/LC_MESSAGES/django.po +1 -1
  264. wagtail/contrib/forms/locale/ko/LC_MESSAGES/django.po +1 -1
  265. wagtail/contrib/forms/locale/lt/LC_MESSAGES/django.po +1 -1
  266. wagtail/contrib/forms/locale/lv/LC_MESSAGES/django.po +1 -1
  267. wagtail/contrib/forms/locale/mi/LC_MESSAGES/django.po +1 -1
  268. wagtail/contrib/forms/locale/mn/LC_MESSAGES/django.po +1 -1
  269. wagtail/contrib/forms/locale/my/LC_MESSAGES/django.po +1 -1
  270. wagtail/contrib/forms/locale/nb/LC_MESSAGES/django.po +1 -1
  271. wagtail/contrib/forms/locale/nl/LC_MESSAGES/django.mo +0 -0
  272. wagtail/contrib/forms/locale/nl/LC_MESSAGES/django.po +20 -3
  273. wagtail/contrib/forms/locale/pl/LC_MESSAGES/django.po +1 -1
  274. wagtail/contrib/forms/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  275. wagtail/contrib/forms/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  276. wagtail/contrib/forms/locale/ro/LC_MESSAGES/django.po +1 -1
  277. wagtail/contrib/forms/locale/ru/LC_MESSAGES/django.mo +0 -0
  278. wagtail/contrib/forms/locale/ru/LC_MESSAGES/django.po +19 -2
  279. wagtail/contrib/forms/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  280. wagtail/contrib/forms/locale/sl/LC_MESSAGES/django.po +1 -1
  281. wagtail/contrib/forms/locale/sv/LC_MESSAGES/django.po +1 -1
  282. wagtail/contrib/forms/locale/tet/LC_MESSAGES/django.po +1 -1
  283. wagtail/contrib/forms/locale/th/LC_MESSAGES/django.po +1 -1
  284. wagtail/contrib/forms/locale/tr/LC_MESSAGES/django.mo +0 -0
  285. wagtail/contrib/forms/locale/tr/LC_MESSAGES/django.po +12 -2
  286. wagtail/contrib/forms/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  287. wagtail/contrib/forms/locale/ug/LC_MESSAGES/django.po +1 -1
  288. wagtail/contrib/forms/locale/uk/LC_MESSAGES/django.po +1 -1
  289. wagtail/contrib/forms/locale/vi/LC_MESSAGES/django.po +1 -1
  290. wagtail/contrib/forms/locale/zh/LC_MESSAGES/django.po +1 -1
  291. wagtail/contrib/forms/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  292. wagtail/contrib/forms/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  293. wagtail/contrib/frontend_cache/tests.py +4 -2
  294. wagtail/contrib/redirects/locale/ar/LC_MESSAGES/django.mo +0 -0
  295. wagtail/contrib/redirects/locale/ar/LC_MESSAGES/django.po +1 -13
  296. wagtail/contrib/redirects/locale/be/LC_MESSAGES/django.po +1 -1
  297. wagtail/contrib/redirects/locale/bg/LC_MESSAGES/django.po +1 -1
  298. wagtail/contrib/redirects/locale/bn/LC_MESSAGES/django.po +1 -1
  299. wagtail/contrib/redirects/locale/ca/LC_MESSAGES/django.mo +0 -0
  300. wagtail/contrib/redirects/locale/ca/LC_MESSAGES/django.po +9 -10
  301. wagtail/contrib/redirects/locale/cs/LC_MESSAGES/django.mo +0 -0
  302. wagtail/contrib/redirects/locale/cs/LC_MESSAGES/django.po +1 -13
  303. wagtail/contrib/redirects/locale/cy/LC_MESSAGES/django.mo +0 -0
  304. wagtail/contrib/redirects/locale/cy/LC_MESSAGES/django.po +1 -13
  305. wagtail/contrib/redirects/locale/da/LC_MESSAGES/django.po +1 -1
  306. wagtail/contrib/redirects/locale/de/LC_MESSAGES/django.mo +0 -0
  307. wagtail/contrib/redirects/locale/de/LC_MESSAGES/django.po +1 -13
  308. wagtail/contrib/redirects/locale/dv/LC_MESSAGES/django.po +1 -1
  309. wagtail/contrib/redirects/locale/el/LC_MESSAGES/django.po +1 -1
  310. wagtail/contrib/redirects/locale/en/LC_MESSAGES/django.po +4 -4
  311. wagtail/contrib/redirects/locale/en_IN/LC_MESSAGES/django.po +1 -1
  312. wagtail/contrib/redirects/locale/es/LC_MESSAGES/django.mo +0 -0
  313. wagtail/contrib/redirects/locale/es/LC_MESSAGES/django.po +1 -14
  314. wagtail/contrib/redirects/locale/es_419/LC_MESSAGES/django.po +1 -1
  315. wagtail/contrib/redirects/locale/es_VE/LC_MESSAGES/django.po +1 -1
  316. wagtail/contrib/redirects/locale/et/LC_MESSAGES/django.mo +0 -0
  317. wagtail/contrib/redirects/locale/et/LC_MESSAGES/django.po +1 -13
  318. wagtail/contrib/redirects/locale/eu/LC_MESSAGES/django.po +1 -1
  319. wagtail/contrib/redirects/locale/fa/LC_MESSAGES/django.po +1 -1
  320. wagtail/contrib/redirects/locale/fi/LC_MESSAGES/django.mo +0 -0
  321. wagtail/contrib/redirects/locale/fi/LC_MESSAGES/django.po +7 -11
  322. wagtail/contrib/redirects/locale/fr/LC_MESSAGES/django.mo +0 -0
  323. wagtail/contrib/redirects/locale/fr/LC_MESSAGES/django.po +9 -8
  324. wagtail/contrib/redirects/locale/gl/LC_MESSAGES/django.mo +0 -0
  325. wagtail/contrib/redirects/locale/gl/LC_MESSAGES/django.po +9 -9
  326. wagtail/contrib/redirects/locale/he_IL/LC_MESSAGES/django.po +1 -1
  327. wagtail/contrib/redirects/locale/hi/LC_MESSAGES/django.po +1 -1
  328. wagtail/contrib/redirects/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  329. wagtail/contrib/redirects/locale/hr_HR/LC_MESSAGES/django.po +1 -13
  330. wagtail/contrib/redirects/locale/ht/LC_MESSAGES/django.po +1 -1
  331. wagtail/contrib/redirects/locale/hu/LC_MESSAGES/django.mo +0 -0
  332. wagtail/contrib/redirects/locale/hu/LC_MESSAGES/django.po +1 -13
  333. wagtail/contrib/redirects/locale/hy/LC_MESSAGES/django.po +1 -1
  334. wagtail/contrib/redirects/locale/id_ID/LC_MESSAGES/django.po +1 -1
  335. wagtail/contrib/redirects/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  336. wagtail/contrib/redirects/locale/is_IS/LC_MESSAGES/django.po +1 -13
  337. wagtail/contrib/redirects/locale/it/LC_MESSAGES/django.mo +0 -0
  338. wagtail/contrib/redirects/locale/it/LC_MESSAGES/django.po +1 -14
  339. wagtail/contrib/redirects/locale/ja/LC_MESSAGES/django.mo +0 -0
  340. wagtail/contrib/redirects/locale/ja/LC_MESSAGES/django.po +1 -13
  341. wagtail/contrib/redirects/locale/ka/LC_MESSAGES/django.po +1 -1
  342. wagtail/contrib/redirects/locale/ko/LC_MESSAGES/django.po +1 -1
  343. wagtail/contrib/redirects/locale/lt/LC_MESSAGES/django.po +1 -1
  344. wagtail/contrib/redirects/locale/lv/LC_MESSAGES/django.po +1 -1
  345. wagtail/contrib/redirects/locale/mi/LC_MESSAGES/django.po +1 -1
  346. wagtail/contrib/redirects/locale/mn/LC_MESSAGES/django.po +1 -1
  347. wagtail/contrib/redirects/locale/my/LC_MESSAGES/django.po +1 -1
  348. wagtail/contrib/redirects/locale/nb/LC_MESSAGES/django.mo +0 -0
  349. wagtail/contrib/redirects/locale/nb/LC_MESSAGES/django.po +1 -13
  350. wagtail/contrib/redirects/locale/nl/LC_MESSAGES/django.mo +0 -0
  351. wagtail/contrib/redirects/locale/nl/LC_MESSAGES/django.po +9 -9
  352. wagtail/contrib/redirects/locale/pl/LC_MESSAGES/django.mo +0 -0
  353. wagtail/contrib/redirects/locale/pl/LC_MESSAGES/django.po +1 -14
  354. wagtail/contrib/redirects/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  355. wagtail/contrib/redirects/locale/pt_BR/LC_MESSAGES/django.po +1 -13
  356. wagtail/contrib/redirects/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  357. wagtail/contrib/redirects/locale/pt_PT/LC_MESSAGES/django.po +1 -13
  358. wagtail/contrib/redirects/locale/ro/LC_MESSAGES/django.mo +0 -0
  359. wagtail/contrib/redirects/locale/ro/LC_MESSAGES/django.po +1 -13
  360. wagtail/contrib/redirects/locale/ru/LC_MESSAGES/django.mo +0 -0
  361. wagtail/contrib/redirects/locale/ru/LC_MESSAGES/django.po +1 -13
  362. wagtail/contrib/redirects/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  363. wagtail/contrib/redirects/locale/sl/LC_MESSAGES/django.mo +0 -0
  364. wagtail/contrib/redirects/locale/sl/LC_MESSAGES/django.po +1 -14
  365. wagtail/contrib/redirects/locale/sr/LC_MESSAGES/django.po +1 -1
  366. wagtail/contrib/redirects/locale/sv/LC_MESSAGES/django.mo +0 -0
  367. wagtail/contrib/redirects/locale/sv/LC_MESSAGES/django.po +1 -13
  368. wagtail/contrib/redirects/locale/ta/LC_MESSAGES/django.po +1 -1
  369. wagtail/contrib/redirects/locale/tet/LC_MESSAGES/django.po +1 -1
  370. wagtail/contrib/redirects/locale/th/LC_MESSAGES/django.po +1 -1
  371. wagtail/contrib/redirects/locale/tr/LC_MESSAGES/django.mo +0 -0
  372. wagtail/contrib/redirects/locale/tr/LC_MESSAGES/django.po +1 -13
  373. wagtail/contrib/redirects/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  374. wagtail/contrib/redirects/locale/ug/LC_MESSAGES/django.mo +0 -0
  375. wagtail/contrib/redirects/locale/ug/LC_MESSAGES/django.po +1 -13
  376. wagtail/contrib/redirects/locale/uk/LC_MESSAGES/django.mo +0 -0
  377. wagtail/contrib/redirects/locale/uk/LC_MESSAGES/django.po +1 -13
  378. wagtail/contrib/redirects/locale/vi/LC_MESSAGES/django.po +1 -1
  379. wagtail/contrib/redirects/locale/zh/LC_MESSAGES/django.po +1 -1
  380. wagtail/contrib/redirects/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  381. wagtail/contrib/redirects/locale/zh_Hans/LC_MESSAGES/django.po +1 -13
  382. wagtail/contrib/redirects/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  383. wagtail/contrib/redirects/tests/test_tmp_storages.py +20 -0
  384. wagtail/contrib/redirects/tmp_storages.py +1 -1
  385. wagtail/contrib/redirects/views.py +3 -3
  386. wagtail/contrib/search_promotions/locale/af/LC_MESSAGES/django.po +1 -1
  387. wagtail/contrib/search_promotions/locale/ar/LC_MESSAGES/django.mo +0 -0
  388. wagtail/contrib/search_promotions/locale/ar/LC_MESSAGES/django.po +1 -7
  389. wagtail/contrib/search_promotions/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  390. wagtail/contrib/search_promotions/locale/be/LC_MESSAGES/django.mo +0 -0
  391. wagtail/contrib/search_promotions/locale/be/LC_MESSAGES/django.po +1 -7
  392. wagtail/contrib/search_promotions/locale/bg/LC_MESSAGES/django.po +1 -1
  393. wagtail/contrib/search_promotions/locale/bn/LC_MESSAGES/django.po +1 -1
  394. wagtail/contrib/search_promotions/locale/ca/LC_MESSAGES/django.mo +0 -0
  395. wagtail/contrib/search_promotions/locale/ca/LC_MESSAGES/django.po +5 -5
  396. wagtail/contrib/search_promotions/locale/cs/LC_MESSAGES/django.mo +0 -0
  397. wagtail/contrib/search_promotions/locale/cs/LC_MESSAGES/django.po +1 -7
  398. wagtail/contrib/search_promotions/locale/cy/LC_MESSAGES/django.mo +0 -0
  399. wagtail/contrib/search_promotions/locale/cy/LC_MESSAGES/django.po +1 -7
  400. wagtail/contrib/search_promotions/locale/da/LC_MESSAGES/django.po +1 -1
  401. wagtail/contrib/search_promotions/locale/de/LC_MESSAGES/django.mo +0 -0
  402. wagtail/contrib/search_promotions/locale/de/LC_MESSAGES/django.po +1 -7
  403. wagtail/contrib/search_promotions/locale/dv/LC_MESSAGES/django.po +1 -1
  404. wagtail/contrib/search_promotions/locale/el/LC_MESSAGES/django.mo +0 -0
  405. wagtail/contrib/search_promotions/locale/el/LC_MESSAGES/django.po +1 -7
  406. wagtail/contrib/search_promotions/locale/en/LC_MESSAGES/django.po +3 -3
  407. wagtail/contrib/search_promotions/locale/es/LC_MESSAGES/django.mo +0 -0
  408. wagtail/contrib/search_promotions/locale/es/LC_MESSAGES/django.po +1 -7
  409. wagtail/contrib/search_promotions/locale/es_419/LC_MESSAGES/django.po +1 -1
  410. wagtail/contrib/search_promotions/locale/et/LC_MESSAGES/django.mo +0 -0
  411. wagtail/contrib/search_promotions/locale/et/LC_MESSAGES/django.po +1 -7
  412. wagtail/contrib/search_promotions/locale/eu/LC_MESSAGES/django.po +1 -1
  413. wagtail/contrib/search_promotions/locale/fa/LC_MESSAGES/django.mo +0 -0
  414. wagtail/contrib/search_promotions/locale/fa/LC_MESSAGES/django.po +1 -7
  415. wagtail/contrib/search_promotions/locale/fi/LC_MESSAGES/django.mo +0 -0
  416. wagtail/contrib/search_promotions/locale/fi/LC_MESSAGES/django.po +1 -7
  417. wagtail/contrib/search_promotions/locale/fr/LC_MESSAGES/django.mo +0 -0
  418. wagtail/contrib/search_promotions/locale/fr/LC_MESSAGES/django.po +5 -5
  419. wagtail/contrib/search_promotions/locale/gl/LC_MESSAGES/django.mo +0 -0
  420. wagtail/contrib/search_promotions/locale/gl/LC_MESSAGES/django.po +5 -5
  421. wagtail/contrib/search_promotions/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  422. wagtail/contrib/search_promotions/locale/he_IL/LC_MESSAGES/django.po +1 -7
  423. wagtail/contrib/search_promotions/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  424. wagtail/contrib/search_promotions/locale/hr_HR/LC_MESSAGES/django.po +1 -7
  425. wagtail/contrib/search_promotions/locale/ht/LC_MESSAGES/django.po +1 -1
  426. wagtail/contrib/search_promotions/locale/hu/LC_MESSAGES/django.mo +0 -0
  427. wagtail/contrib/search_promotions/locale/hu/LC_MESSAGES/django.po +1 -7
  428. wagtail/contrib/search_promotions/locale/id_ID/LC_MESSAGES/django.mo +0 -0
  429. wagtail/contrib/search_promotions/locale/id_ID/LC_MESSAGES/django.po +1 -7
  430. wagtail/contrib/search_promotions/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  431. wagtail/contrib/search_promotions/locale/is_IS/LC_MESSAGES/django.po +1 -7
  432. wagtail/contrib/search_promotions/locale/it/LC_MESSAGES/django.mo +0 -0
  433. wagtail/contrib/search_promotions/locale/it/LC_MESSAGES/django.po +1 -7
  434. wagtail/contrib/search_promotions/locale/ja/LC_MESSAGES/django.mo +0 -0
  435. wagtail/contrib/search_promotions/locale/ja/LC_MESSAGES/django.po +1 -7
  436. wagtail/contrib/search_promotions/locale/ka/LC_MESSAGES/django.po +1 -1
  437. wagtail/contrib/search_promotions/locale/ko/LC_MESSAGES/django.mo +0 -0
  438. wagtail/contrib/search_promotions/locale/ko/LC_MESSAGES/django.po +1 -7
  439. wagtail/contrib/search_promotions/locale/lt/LC_MESSAGES/django.mo +0 -0
  440. wagtail/contrib/search_promotions/locale/lt/LC_MESSAGES/django.po +1 -7
  441. wagtail/contrib/search_promotions/locale/lv/LC_MESSAGES/django.mo +0 -0
  442. wagtail/contrib/search_promotions/locale/lv/LC_MESSAGES/django.po +1 -7
  443. wagtail/contrib/search_promotions/locale/mi/LC_MESSAGES/django.po +1 -1
  444. wagtail/contrib/search_promotions/locale/mn/LC_MESSAGES/django.po +1 -1
  445. wagtail/contrib/search_promotions/locale/my/LC_MESSAGES/django.po +1 -1
  446. wagtail/contrib/search_promotions/locale/nb/LC_MESSAGES/django.mo +0 -0
  447. wagtail/contrib/search_promotions/locale/nb/LC_MESSAGES/django.po +1 -7
  448. wagtail/contrib/search_promotions/locale/nl/LC_MESSAGES/django.mo +0 -0
  449. wagtail/contrib/search_promotions/locale/nl/LC_MESSAGES/django.po +4 -4
  450. wagtail/contrib/search_promotions/locale/pl/LC_MESSAGES/django.mo +0 -0
  451. wagtail/contrib/search_promotions/locale/pl/LC_MESSAGES/django.po +1 -7
  452. wagtail/contrib/search_promotions/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  453. wagtail/contrib/search_promotions/locale/pt_BR/LC_MESSAGES/django.po +1 -7
  454. wagtail/contrib/search_promotions/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  455. wagtail/contrib/search_promotions/locale/pt_PT/LC_MESSAGES/django.po +1 -7
  456. wagtail/contrib/search_promotions/locale/ro/LC_MESSAGES/django.mo +0 -0
  457. wagtail/contrib/search_promotions/locale/ro/LC_MESSAGES/django.po +1 -7
  458. wagtail/contrib/search_promotions/locale/ru/LC_MESSAGES/django.mo +0 -0
  459. wagtail/contrib/search_promotions/locale/ru/LC_MESSAGES/django.po +1 -7
  460. wagtail/contrib/search_promotions/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
  461. wagtail/contrib/search_promotions/locale/sk_SK/LC_MESSAGES/django.po +1 -7
  462. wagtail/contrib/search_promotions/locale/sl/LC_MESSAGES/django.mo +0 -0
  463. wagtail/contrib/search_promotions/locale/sl/LC_MESSAGES/django.po +1 -7
  464. wagtail/contrib/search_promotions/locale/sv/LC_MESSAGES/django.mo +0 -0
  465. wagtail/contrib/search_promotions/locale/sv/LC_MESSAGES/django.po +1 -7
  466. wagtail/contrib/search_promotions/locale/tet/LC_MESSAGES/django.mo +0 -0
  467. wagtail/contrib/search_promotions/locale/tet/LC_MESSAGES/django.po +1 -7
  468. wagtail/contrib/search_promotions/locale/th/LC_MESSAGES/django.mo +0 -0
  469. wagtail/contrib/search_promotions/locale/th/LC_MESSAGES/django.po +1 -7
  470. wagtail/contrib/search_promotions/locale/tr/LC_MESSAGES/django.mo +0 -0
  471. wagtail/contrib/search_promotions/locale/tr/LC_MESSAGES/django.po +44 -10
  472. wagtail/contrib/search_promotions/locale/tr_TR/LC_MESSAGES/django.mo +0 -0
  473. wagtail/contrib/search_promotions/locale/tr_TR/LC_MESSAGES/django.po +1 -7
  474. wagtail/contrib/search_promotions/locale/ug/LC_MESSAGES/django.mo +0 -0
  475. wagtail/contrib/search_promotions/locale/ug/LC_MESSAGES/django.po +1 -7
  476. wagtail/contrib/search_promotions/locale/uk/LC_MESSAGES/django.mo +0 -0
  477. wagtail/contrib/search_promotions/locale/uk/LC_MESSAGES/django.po +1 -7
  478. wagtail/contrib/search_promotions/locale/vi/LC_MESSAGES/django.po +1 -1
  479. wagtail/contrib/search_promotions/locale/zh/LC_MESSAGES/django.po +1 -1
  480. wagtail/contrib/search_promotions/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  481. wagtail/contrib/search_promotions/locale/zh_Hans/LC_MESSAGES/django.po +1 -7
  482. wagtail/contrib/search_promotions/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
  483. wagtail/contrib/search_promotions/locale/zh_Hant/LC_MESSAGES/django.po +1 -7
  484. wagtail/contrib/search_promotions/static/wagtailsearchpromotions/js/query-chooser-modal.js +1 -1
  485. wagtail/contrib/search_promotions/views/settings.py +2 -2
  486. wagtail/contrib/settings/locale/cs/LC_MESSAGES/django.mo +0 -0
  487. wagtail/contrib/settings/locale/cs/LC_MESSAGES/django.po +6 -1
  488. wagtail/contrib/settings/locale/en/LC_MESSAGES/django.po +1 -1
  489. wagtail/contrib/settings/locale/nl/LC_MESSAGES/django.mo +0 -0
  490. wagtail/contrib/settings/locale/nl/LC_MESSAGES/django.po +6 -2
  491. wagtail/contrib/settings/locale/ru/LC_MESSAGES/django.mo +0 -0
  492. wagtail/contrib/settings/locale/ru/LC_MESSAGES/django.po +6 -1
  493. wagtail/contrib/settings/tests/site_specific/test_admin.py +48 -6
  494. wagtail/contrib/simple_translation/locale/en/LC_MESSAGES/django.po +1 -1
  495. wagtail/contrib/styleguide/locale/en/LC_MESSAGES/django.po +1 -1
  496. wagtail/contrib/styleguide/templates/wagtailstyleguide/base.html +5 -5
  497. wagtail/contrib/table_block/blocks.py +1 -0
  498. wagtail/contrib/table_block/locale/ar/LC_MESSAGES/django.po +1 -1
  499. wagtail/contrib/table_block/locale/be/LC_MESSAGES/django.po +1 -1
  500. wagtail/contrib/table_block/locale/ca/LC_MESSAGES/django.mo +0 -0
  501. wagtail/contrib/table_block/locale/ca/LC_MESSAGES/django.po +6 -3
  502. wagtail/contrib/table_block/locale/cs/LC_MESSAGES/django.po +1 -1
  503. wagtail/contrib/table_block/locale/cy/LC_MESSAGES/django.po +1 -1
  504. wagtail/contrib/table_block/locale/de/LC_MESSAGES/django.po +1 -1
  505. wagtail/contrib/table_block/locale/dv/LC_MESSAGES/django.po +1 -1
  506. wagtail/contrib/table_block/locale/el/LC_MESSAGES/django.po +1 -1
  507. wagtail/contrib/table_block/locale/en/LC_MESSAGES/django.po +5 -1
  508. wagtail/contrib/table_block/locale/en_IN/LC_MESSAGES/django.po +1 -1
  509. wagtail/contrib/table_block/locale/es/LC_MESSAGES/django.po +1 -1
  510. wagtail/contrib/table_block/locale/et/LC_MESSAGES/django.po +1 -1
  511. wagtail/contrib/table_block/locale/fa/LC_MESSAGES/django.po +1 -1
  512. wagtail/contrib/table_block/locale/fi/LC_MESSAGES/django.po +1 -1
  513. wagtail/contrib/table_block/locale/fr/LC_MESSAGES/django.mo +0 -0
  514. wagtail/contrib/table_block/locale/fr/LC_MESSAGES/django.po +6 -3
  515. wagtail/contrib/table_block/locale/gl/LC_MESSAGES/django.mo +0 -0
  516. wagtail/contrib/table_block/locale/gl/LC_MESSAGES/django.po +6 -3
  517. wagtail/contrib/table_block/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  518. wagtail/contrib/table_block/locale/ht/LC_MESSAGES/django.po +1 -1
  519. wagtail/contrib/table_block/locale/hu/LC_MESSAGES/django.po +1 -1
  520. wagtail/contrib/table_block/locale/id_ID/LC_MESSAGES/django.po +1 -1
  521. wagtail/contrib/table_block/locale/is_IS/LC_MESSAGES/django.po +1 -1
  522. wagtail/contrib/table_block/locale/it/LC_MESSAGES/django.po +1 -1
  523. wagtail/contrib/table_block/locale/ja/LC_MESSAGES/django.po +1 -1
  524. wagtail/contrib/table_block/locale/ko/LC_MESSAGES/django.po +1 -1
  525. wagtail/contrib/table_block/locale/lt/LC_MESSAGES/django.po +1 -1
  526. wagtail/contrib/table_block/locale/lv/LC_MESSAGES/django.po +1 -1
  527. wagtail/contrib/table_block/locale/mi/LC_MESSAGES/django.po +1 -1
  528. wagtail/contrib/table_block/locale/mn/LC_MESSAGES/django.po +1 -1
  529. wagtail/contrib/table_block/locale/my/LC_MESSAGES/django.po +1 -1
  530. wagtail/contrib/table_block/locale/nb/LC_MESSAGES/django.po +1 -1
  531. wagtail/contrib/table_block/locale/nl/LC_MESSAGES/django.mo +0 -0
  532. wagtail/contrib/table_block/locale/nl/LC_MESSAGES/django.po +6 -3
  533. wagtail/contrib/table_block/locale/pl/LC_MESSAGES/django.po +1 -1
  534. wagtail/contrib/table_block/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  535. wagtail/contrib/table_block/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  536. wagtail/contrib/table_block/locale/ro/LC_MESSAGES/django.po +1 -1
  537. wagtail/contrib/table_block/locale/ru/LC_MESSAGES/django.po +1 -1
  538. wagtail/contrib/table_block/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  539. wagtail/contrib/table_block/locale/sl/LC_MESSAGES/django.po +1 -1
  540. wagtail/contrib/table_block/locale/sv/LC_MESSAGES/django.po +1 -1
  541. wagtail/contrib/table_block/locale/tet/LC_MESSAGES/django.po +1 -1
  542. wagtail/contrib/table_block/locale/th/LC_MESSAGES/django.po +1 -1
  543. wagtail/contrib/table_block/locale/tr/LC_MESSAGES/django.po +1 -1
  544. wagtail/contrib/table_block/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  545. wagtail/contrib/table_block/locale/ug/LC_MESSAGES/django.po +1 -1
  546. wagtail/contrib/table_block/locale/uk/LC_MESSAGES/django.po +1 -1
  547. wagtail/contrib/table_block/locale/vi/LC_MESSAGES/django.po +1 -1
  548. wagtail/contrib/table_block/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  549. wagtail/contrib/table_block/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  550. wagtail/contrib/table_block/static/table_block/js/table.js +1 -1
  551. wagtail/contrib/typed_table_block/locale/en/LC_MESSAGES/django.po +1 -1
  552. wagtail/contrib/typed_table_block/static/typed_table_block/js/typed_table_block.js +1 -1
  553. wagtail/coreutils.py +5 -5
  554. wagtail/documents/forms.py +18 -1
  555. wagtail/documents/locale/af/LC_MESSAGES/django.po +1 -1
  556. wagtail/documents/locale/ar/LC_MESSAGES/django.mo +0 -0
  557. wagtail/documents/locale/ar/LC_MESSAGES/django.po +1 -5
  558. wagtail/documents/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  559. wagtail/documents/locale/be/LC_MESSAGES/django.mo +0 -0
  560. wagtail/documents/locale/be/LC_MESSAGES/django.po +1 -5
  561. wagtail/documents/locale/bg/LC_MESSAGES/django.po +1 -1
  562. wagtail/documents/locale/bn/LC_MESSAGES/django.po +1 -1
  563. wagtail/documents/locale/ca/LC_MESSAGES/django.mo +0 -0
  564. wagtail/documents/locale/ca/LC_MESSAGES/django.po +5 -5
  565. wagtail/documents/locale/cs/LC_MESSAGES/django.mo +0 -0
  566. wagtail/documents/locale/cs/LC_MESSAGES/django.po +1 -7
  567. wagtail/documents/locale/cy/LC_MESSAGES/django.po +1 -1
  568. wagtail/documents/locale/da/LC_MESSAGES/django.po +1 -1
  569. wagtail/documents/locale/de/LC_MESSAGES/django.mo +0 -0
  570. wagtail/documents/locale/de/LC_MESSAGES/django.po +1 -7
  571. wagtail/documents/locale/dv/LC_MESSAGES/django.po +1 -1
  572. wagtail/documents/locale/el/LC_MESSAGES/django.mo +0 -0
  573. wagtail/documents/locale/el/LC_MESSAGES/django.po +1 -7
  574. wagtail/documents/locale/en/LC_MESSAGES/django.po +10 -10
  575. wagtail/documents/locale/es/LC_MESSAGES/django.mo +0 -0
  576. wagtail/documents/locale/es/LC_MESSAGES/django.po +1 -7
  577. wagtail/documents/locale/es_419/LC_MESSAGES/django.po +1 -1
  578. wagtail/documents/locale/et/LC_MESSAGES/django.mo +0 -0
  579. wagtail/documents/locale/et/LC_MESSAGES/django.po +1 -5
  580. wagtail/documents/locale/eu/LC_MESSAGES/django.po +1 -1
  581. wagtail/documents/locale/fa/LC_MESSAGES/django.mo +0 -0
  582. wagtail/documents/locale/fa/LC_MESSAGES/django.po +1 -5
  583. wagtail/documents/locale/fi/LC_MESSAGES/django.mo +0 -0
  584. wagtail/documents/locale/fi/LC_MESSAGES/django.po +1 -5
  585. wagtail/documents/locale/fr/LC_MESSAGES/django.mo +0 -0
  586. wagtail/documents/locale/fr/LC_MESSAGES/django.po +5 -5
  587. wagtail/documents/locale/gl/LC_MESSAGES/django.mo +0 -0
  588. wagtail/documents/locale/gl/LC_MESSAGES/django.po +5 -5
  589. wagtail/documents/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  590. wagtail/documents/locale/he_IL/LC_MESSAGES/django.po +1 -5
  591. wagtail/documents/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  592. wagtail/documents/locale/hr_HR/LC_MESSAGES/django.po +1 -6
  593. wagtail/documents/locale/ht/LC_MESSAGES/django.po +1 -1
  594. wagtail/documents/locale/hu/LC_MESSAGES/django.mo +0 -0
  595. wagtail/documents/locale/hu/LC_MESSAGES/django.po +1 -7
  596. wagtail/documents/locale/id_ID/LC_MESSAGES/django.mo +0 -0
  597. wagtail/documents/locale/id_ID/LC_MESSAGES/django.po +1 -6
  598. wagtail/documents/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  599. wagtail/documents/locale/is_IS/LC_MESSAGES/django.po +1 -5
  600. wagtail/documents/locale/it/LC_MESSAGES/django.mo +0 -0
  601. wagtail/documents/locale/it/LC_MESSAGES/django.po +1 -5
  602. wagtail/documents/locale/ja/LC_MESSAGES/django.mo +0 -0
  603. wagtail/documents/locale/ja/LC_MESSAGES/django.po +1 -7
  604. wagtail/documents/locale/ka/LC_MESSAGES/django.po +1 -1
  605. wagtail/documents/locale/ko/LC_MESSAGES/django.mo +0 -0
  606. wagtail/documents/locale/ko/LC_MESSAGES/django.po +1 -6
  607. wagtail/documents/locale/lt/LC_MESSAGES/django.mo +0 -0
  608. wagtail/documents/locale/lt/LC_MESSAGES/django.po +1 -5
  609. wagtail/documents/locale/lv/LC_MESSAGES/django.po +1 -1
  610. wagtail/documents/locale/mi/LC_MESSAGES/django.mo +0 -0
  611. wagtail/documents/locale/mi/LC_MESSAGES/django.po +1 -7
  612. wagtail/documents/locale/mn/LC_MESSAGES/django.mo +0 -0
  613. wagtail/documents/locale/mn/LC_MESSAGES/django.po +1 -5
  614. wagtail/documents/locale/my/LC_MESSAGES/django.po +1 -1
  615. wagtail/documents/locale/nb/LC_MESSAGES/django.mo +0 -0
  616. wagtail/documents/locale/nb/LC_MESSAGES/django.po +1 -5
  617. wagtail/documents/locale/nl/LC_MESSAGES/django.mo +0 -0
  618. wagtail/documents/locale/nl/LC_MESSAGES/django.po +15 -6
  619. wagtail/documents/locale/pl/LC_MESSAGES/django.mo +0 -0
  620. wagtail/documents/locale/pl/LC_MESSAGES/django.po +1 -6
  621. wagtail/documents/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  622. wagtail/documents/locale/pt_BR/LC_MESSAGES/django.po +1 -7
  623. wagtail/documents/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  624. wagtail/documents/locale/pt_PT/LC_MESSAGES/django.po +1 -6
  625. wagtail/documents/locale/ro/LC_MESSAGES/django.mo +0 -0
  626. wagtail/documents/locale/ro/LC_MESSAGES/django.po +1 -5
  627. wagtail/documents/locale/ru/LC_MESSAGES/django.mo +0 -0
  628. wagtail/documents/locale/ru/LC_MESSAGES/django.po +10 -7
  629. wagtail/documents/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
  630. wagtail/documents/locale/sk_SK/LC_MESSAGES/django.po +1 -5
  631. wagtail/documents/locale/sl/LC_MESSAGES/django.mo +0 -0
  632. wagtail/documents/locale/sl/LC_MESSAGES/django.po +1 -7
  633. wagtail/documents/locale/sv/LC_MESSAGES/django.mo +0 -0
  634. wagtail/documents/locale/sv/LC_MESSAGES/django.po +1 -6
  635. wagtail/documents/locale/tet/LC_MESSAGES/django.po +1 -1
  636. wagtail/documents/locale/th/LC_MESSAGES/django.mo +0 -0
  637. wagtail/documents/locale/th/LC_MESSAGES/django.po +1 -5
  638. wagtail/documents/locale/tr/LC_MESSAGES/django.mo +0 -0
  639. wagtail/documents/locale/tr/LC_MESSAGES/django.po +13 -5
  640. wagtail/documents/locale/tr_TR/LC_MESSAGES/django.mo +0 -0
  641. wagtail/documents/locale/tr_TR/LC_MESSAGES/django.po +1 -5
  642. wagtail/documents/locale/ug/LC_MESSAGES/django.mo +0 -0
  643. wagtail/documents/locale/ug/LC_MESSAGES/django.po +1 -5
  644. wagtail/documents/locale/uk/LC_MESSAGES/django.mo +0 -0
  645. wagtail/documents/locale/uk/LC_MESSAGES/django.po +1 -5
  646. wagtail/documents/locale/vi/LC_MESSAGES/django.po +1 -1
  647. wagtail/documents/locale/zh/LC_MESSAGES/django.po +1 -1
  648. wagtail/documents/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  649. wagtail/documents/locale/zh_Hans/LC_MESSAGES/django.po +1 -5
  650. wagtail/documents/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
  651. wagtail/documents/locale/zh_Hant/LC_MESSAGES/django.po +1 -5
  652. wagtail/documents/models.py +1 -1
  653. wagtail/documents/static/wagtaildocs/js/add-multiple.js +1 -1
  654. wagtail/documents/static/wagtaildocs/js/document-chooser-modal.js +1 -1
  655. wagtail/documents/static/wagtaildocs/js/document-chooser-telepath.js +1 -1
  656. wagtail/documents/static/wagtaildocs/js/document-chooser.js +1 -1
  657. wagtail/documents/templates/wagtaildocs/documents/add.html +0 -34
  658. wagtail/documents/tests/test_admin_views.py +132 -26
  659. wagtail/documents/tests/test_collection_privacy.py +18 -4
  660. wagtail/documents/tests/test_form_overrides.py +1 -1
  661. wagtail/documents/tests/test_search.py +21 -8
  662. wagtail/documents/views/documents.py +1 -1
  663. wagtail/embeds/locale/en/LC_MESSAGES/django.po +1 -1
  664. wagtail/embeds/static/wagtailembeds/js/embed-chooser-modal.js +1 -1
  665. wagtail/images/forms.py +16 -1
  666. wagtail/images/locale/ar/LC_MESSAGES/django.mo +0 -0
  667. wagtail/images/locale/ar/LC_MESSAGES/django.po +7 -10
  668. wagtail/images/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  669. wagtail/images/locale/be/LC_MESSAGES/django.po +7 -7
  670. wagtail/images/locale/bg/LC_MESSAGES/django.po +4 -4
  671. wagtail/images/locale/bn/LC_MESSAGES/django.po +1 -1
  672. wagtail/images/locale/ca/LC_MESSAGES/django.mo +0 -0
  673. wagtail/images/locale/ca/LC_MESSAGES/django.po +15 -9
  674. wagtail/images/locale/cs/LC_MESSAGES/django.mo +0 -0
  675. wagtail/images/locale/cs/LC_MESSAGES/django.po +19 -8
  676. wagtail/images/locale/cy/LC_MESSAGES/django.po +4 -4
  677. wagtail/images/locale/da/LC_MESSAGES/django.po +1 -1
  678. wagtail/images/locale/de/LC_MESSAGES/django.po +7 -7
  679. wagtail/images/locale/dv/LC_MESSAGES/django.po +7 -7
  680. wagtail/images/locale/el/LC_MESSAGES/django.po +7 -7
  681. wagtail/images/locale/en/LC_MESSAGES/django.po +57 -46
  682. wagtail/images/locale/es/LC_MESSAGES/django.po +7 -7
  683. wagtail/images/locale/es_419/LC_MESSAGES/django.po +1 -1
  684. wagtail/images/locale/et/LC_MESSAGES/django.po +7 -7
  685. wagtail/images/locale/eu/LC_MESSAGES/django.po +1 -1
  686. wagtail/images/locale/fa/LC_MESSAGES/django.po +4 -4
  687. wagtail/images/locale/fi/LC_MESSAGES/django.mo +0 -0
  688. wagtail/images/locale/fi/LC_MESSAGES/django.po +18 -9
  689. wagtail/images/locale/fr/LC_MESSAGES/django.mo +0 -0
  690. wagtail/images/locale/fr/LC_MESSAGES/django.po +15 -9
  691. wagtail/images/locale/gl/LC_MESSAGES/django.mo +0 -0
  692. wagtail/images/locale/gl/LC_MESSAGES/django.po +15 -9
  693. wagtail/images/locale/he_IL/LC_MESSAGES/django.po +4 -4
  694. wagtail/images/locale/hr_HR/LC_MESSAGES/django.po +7 -7
  695. wagtail/images/locale/ht/LC_MESSAGES/django.po +1 -1
  696. wagtail/images/locale/hu/LC_MESSAGES/django.mo +0 -0
  697. wagtail/images/locale/hu/LC_MESSAGES/django.po +7 -10
  698. wagtail/images/locale/id_ID/LC_MESSAGES/django.po +4 -4
  699. wagtail/images/locale/is_IS/LC_MESSAGES/django.po +7 -7
  700. wagtail/images/locale/it/LC_MESSAGES/django.po +7 -7
  701. wagtail/images/locale/ja/LC_MESSAGES/django.po +7 -7
  702. wagtail/images/locale/ka/LC_MESSAGES/django.po +4 -4
  703. wagtail/images/locale/ko/LC_MESSAGES/django.po +7 -7
  704. wagtail/images/locale/lt/LC_MESSAGES/django.po +7 -7
  705. wagtail/images/locale/lv/LC_MESSAGES/django.po +4 -4
  706. wagtail/images/locale/mi/LC_MESSAGES/django.po +7 -7
  707. wagtail/images/locale/mn/LC_MESSAGES/django.po +4 -4
  708. wagtail/images/locale/my/LC_MESSAGES/django.po +1 -1
  709. wagtail/images/locale/nb/LC_MESSAGES/django.po +7 -7
  710. wagtail/images/locale/nl/LC_MESSAGES/django.mo +0 -0
  711. wagtail/images/locale/nl/LC_MESSAGES/django.po +50 -21
  712. wagtail/images/locale/pl/LC_MESSAGES/django.po +7 -7
  713. wagtail/images/locale/pt_BR/LC_MESSAGES/django.po +7 -7
  714. wagtail/images/locale/pt_PT/LC_MESSAGES/django.po +7 -7
  715. wagtail/images/locale/ro/LC_MESSAGES/django.po +7 -7
  716. wagtail/images/locale/ru/LC_MESSAGES/django.mo +0 -0
  717. wagtail/images/locale/ru/LC_MESSAGES/django.po +24 -8
  718. wagtail/images/locale/sk_SK/LC_MESSAGES/django.po +4 -4
  719. wagtail/images/locale/sl/LC_MESSAGES/django.po +7 -7
  720. wagtail/images/locale/sv/LC_MESSAGES/django.po +7 -7
  721. wagtail/images/locale/tet/LC_MESSAGES/django.po +4 -4
  722. wagtail/images/locale/th/LC_MESSAGES/django.po +4 -4
  723. wagtail/images/locale/tr/LC_MESSAGES/django.mo +0 -0
  724. wagtail/images/locale/tr/LC_MESSAGES/django.po +85 -7
  725. wagtail/images/locale/tr_TR/LC_MESSAGES/django.po +4 -4
  726. wagtail/images/locale/ug/LC_MESSAGES/django.po +7 -7
  727. wagtail/images/locale/uk/LC_MESSAGES/django.po +7 -7
  728. wagtail/images/locale/vi/LC_MESSAGES/django.po +4 -4
  729. wagtail/images/locale/zh/LC_MESSAGES/django.po +4 -4
  730. wagtail/images/locale/zh_Hans/LC_MESSAGES/django.po +7 -7
  731. wagtail/images/locale/zh_Hant/LC_MESSAGES/django.po +7 -7
  732. wagtail/images/models.py +1 -1
  733. wagtail/images/static/wagtailimages/js/add-multiple.js +1 -1
  734. wagtail/images/static/wagtailimages/js/focal-point-chooser.js +1 -1
  735. wagtail/images/static/wagtailimages/js/image-block.js +1 -1
  736. wagtail/images/static/wagtailimages/js/image-chooser-modal.js +1 -1
  737. wagtail/images/static/wagtailimages/js/image-chooser-telepath.js +1 -1
  738. wagtail/images/static/wagtailimages/js/image-chooser.js +1 -1
  739. wagtail/images/static/wagtailimages/js/image-url-generator.js +1 -1
  740. wagtail/images/static/wagtailimages/js/vendor/jquery.Jcrop.min.js +1 -1
  741. wagtail/images/static/wagtailimages/js/vendor/jquery.fileupload-image.js +1 -1
  742. wagtail/images/static/wagtailimages/js/vendor/jquery.fileupload-validate.js +1 -1
  743. wagtail/images/static/wagtailimages/js/vendor/load-image.min.js +1 -1
  744. wagtail/images/templates/wagtailimages/chooser/chooser.html +22 -13
  745. wagtail/images/templates/wagtailimages/chooser/image_preview_column_cell.html +10 -0
  746. wagtail/images/templates/wagtailimages/chooser/results.html +24 -20
  747. wagtail/images/templates/wagtailimages/chooser/title_column_cell.html +15 -0
  748. wagtail/images/templates/wagtailimages/images/add.html +0 -34
  749. wagtail/images/templates/wagtailimages/images/index.html +3 -3
  750. wagtail/images/templates/wagtailimages/images/index_results.html +1 -1
  751. wagtail/images/templates/wagtailimages/images/layout_toggle_button.html +8 -7
  752. wagtail/images/templatetags/wagtailimages_tags.py +2 -2
  753. wagtail/images/tests/test_admin_views.py +87 -0
  754. wagtail/images/tests/test_form_overrides.py +1 -1
  755. wagtail/images/tests/test_models.py +48 -9
  756. wagtail/images/views/chooser.py +66 -2
  757. wagtail/locale/af/LC_MESSAGES/django.po +1 -1
  758. wagtail/locale/ar/LC_MESSAGES/django.mo +0 -0
  759. wagtail/locale/ar/LC_MESSAGES/django.po +1 -9
  760. wagtail/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  761. wagtail/locale/be/LC_MESSAGES/django.po +1 -1
  762. wagtail/locale/bg/LC_MESSAGES/django.po +1 -1
  763. wagtail/locale/bn/LC_MESSAGES/django.po +1 -1
  764. wagtail/locale/ca/LC_MESSAGES/django.mo +0 -0
  765. wagtail/locale/ca/LC_MESSAGES/django.po +4 -4
  766. wagtail/locale/cs/LC_MESSAGES/django.po +1 -1
  767. wagtail/locale/cy/LC_MESSAGES/django.po +1 -1
  768. wagtail/locale/da/LC_MESSAGES/django.po +1 -1
  769. wagtail/locale/de/LC_MESSAGES/django.mo +0 -0
  770. wagtail/locale/de/LC_MESSAGES/django.po +1 -9
  771. wagtail/locale/dv/LC_MESSAGES/django.mo +0 -0
  772. wagtail/locale/dv/LC_MESSAGES/django.po +1 -8
  773. wagtail/locale/el/LC_MESSAGES/django.po +1 -1
  774. wagtail/locale/en/LC_MESSAGES/django.po +55 -55
  775. wagtail/locale/es/LC_MESSAGES/django.po +1 -1
  776. wagtail/locale/es_419/LC_MESSAGES/django.po +1 -1
  777. wagtail/locale/et/LC_MESSAGES/django.po +1 -1
  778. wagtail/locale/eu/LC_MESSAGES/django.po +1 -1
  779. wagtail/locale/fa/LC_MESSAGES/django.po +1 -1
  780. wagtail/locale/fi/LC_MESSAGES/django.po +1 -1
  781. wagtail/locale/fr/LC_MESSAGES/django.mo +0 -0
  782. wagtail/locale/fr/LC_MESSAGES/django.po +4 -4
  783. wagtail/locale/gl/LC_MESSAGES/django.mo +0 -0
  784. wagtail/locale/gl/LC_MESSAGES/django.po +3 -3
  785. wagtail/locale/he_IL/LC_MESSAGES/django.po +1 -1
  786. wagtail/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  787. wagtail/locale/hu/LC_MESSAGES/django.mo +0 -0
  788. wagtail/locale/hu/LC_MESSAGES/django.po +1 -9
  789. wagtail/locale/id_ID/LC_MESSAGES/django.po +1 -1
  790. wagtail/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  791. wagtail/locale/is_IS/LC_MESSAGES/django.po +4 -12
  792. wagtail/locale/it/LC_MESSAGES/django.po +1 -1
  793. wagtail/locale/ja/LC_MESSAGES/django.po +1 -1
  794. wagtail/locale/ka/LC_MESSAGES/django.po +1 -1
  795. wagtail/locale/ko/LC_MESSAGES/django.po +1 -1
  796. wagtail/locale/lt/LC_MESSAGES/django.po +1 -1
  797. wagtail/locale/lv/LC_MESSAGES/django.po +1 -1
  798. wagtail/locale/mi/LC_MESSAGES/django.po +1 -1
  799. wagtail/locale/mn/LC_MESSAGES/django.po +1 -1
  800. wagtail/locale/my/LC_MESSAGES/django.po +1 -1
  801. wagtail/locale/nb/LC_MESSAGES/django.po +1 -1
  802. wagtail/locale/nl/LC_MESSAGES/django.mo +0 -0
  803. wagtail/locale/nl/LC_MESSAGES/django.po +15 -6
  804. wagtail/locale/pl/LC_MESSAGES/django.mo +0 -0
  805. wagtail/locale/pl/LC_MESSAGES/django.po +1 -9
  806. wagtail/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  807. wagtail/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  808. wagtail/locale/ro/LC_MESSAGES/django.mo +0 -0
  809. wagtail/locale/ro/LC_MESSAGES/django.po +1 -9
  810. wagtail/locale/ru/LC_MESSAGES/django.mo +0 -0
  811. wagtail/locale/ru/LC_MESSAGES/django.po +12 -10
  812. wagtail/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  813. wagtail/locale/sl/LC_MESSAGES/django.mo +0 -0
  814. wagtail/locale/sl/LC_MESSAGES/django.po +1 -9
  815. wagtail/locale/sv/LC_MESSAGES/django.mo +0 -0
  816. wagtail/locale/sv/LC_MESSAGES/django.po +1 -9
  817. wagtail/locale/tet/LC_MESSAGES/django.po +1 -1
  818. wagtail/locale/th/LC_MESSAGES/django.po +1 -1
  819. wagtail/locale/tr/LC_MESSAGES/django.mo +0 -0
  820. wagtail/locale/tr/LC_MESSAGES/django.po +4 -8
  821. wagtail/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  822. wagtail/locale/ug/LC_MESSAGES/django.mo +0 -0
  823. wagtail/locale/ug/LC_MESSAGES/django.po +1 -8
  824. wagtail/locale/uk/LC_MESSAGES/django.po +1 -1
  825. wagtail/locale/vi/LC_MESSAGES/django.po +1 -1
  826. wagtail/locale/zh/LC_MESSAGES/django.po +1 -1
  827. wagtail/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  828. wagtail/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  829. wagtail/locales/locale/en/LC_MESSAGES/django.po +1 -1
  830. wagtail/locales/locale/nl/LC_MESSAGES/django.mo +0 -0
  831. wagtail/locales/locale/nl/LC_MESSAGES/django.po +12 -1
  832. wagtail/locales/locale/ru/LC_MESSAGES/django.mo +0 -0
  833. wagtail/locales/locale/ru/LC_MESSAGES/django.po +10 -1
  834. wagtail/locales/views.py +2 -2
  835. wagtail/models/orderable.py +10 -0
  836. wagtail/models/pages.py +9 -11
  837. wagtail/models/sites.py +1 -1
  838. wagtail/models/workflows.py +8 -5
  839. wagtail/project_template/home/tests.py +6 -7
  840. wagtail/project_template/project_name/settings/base.py +9 -9
  841. wagtail/project_template/requirements.txt +1 -1
  842. wagtail/query.py +7 -2
  843. wagtail/rich_text/rewriters.py +1 -1
  844. wagtail/search/apps.py +4 -49
  845. wagtail/search/backends/__init__.py +1 -113
  846. wagtail/search/backends/base.py +1 -547
  847. wagtail/search/backends/database/__init__.py +1 -50
  848. wagtail/search/backends/database/fallback.py +1 -253
  849. wagtail/search/backends/database/mysql/mysql.py +1 -700
  850. wagtail/search/backends/database/mysql/query.py +1 -258
  851. wagtail/search/backends/database/postgres/postgres.py +1 -749
  852. wagtail/search/backends/database/postgres/query.py +1 -83
  853. wagtail/search/backends/database/postgres/weights.py +1 -63
  854. wagtail/search/backends/database/sqlite/query.py +1 -294
  855. wagtail/search/backends/database/sqlite/sqlite.py +1 -719
  856. wagtail/search/backends/database/sqlite/utils.py +1 -35
  857. wagtail/search/backends/deprecation.py +45 -0
  858. wagtail/search/backends/elasticsearch7.py +18 -1260
  859. wagtail/search/backends/elasticsearch8.py +21 -96
  860. wagtail/search/backends/elasticsearch9.py +35 -0
  861. wagtail/search/backends/opensearch2.py +35 -0
  862. wagtail/search/backends/opensearch3.py +35 -0
  863. wagtail/search/index.py +1 -358
  864. wagtail/search/locale/ar/LC_MESSAGES/django.mo +0 -0
  865. wagtail/search/locale/ar/LC_MESSAGES/django.po +1 -7
  866. wagtail/search/locale/be/LC_MESSAGES/django.mo +0 -0
  867. wagtail/search/locale/be/LC_MESSAGES/django.po +1 -7
  868. wagtail/search/locale/ca/LC_MESSAGES/django.mo +0 -0
  869. wagtail/search/locale/ca/LC_MESSAGES/django.po +1 -7
  870. wagtail/search/locale/cs/LC_MESSAGES/django.po +1 -1
  871. wagtail/search/locale/cy/LC_MESSAGES/django.mo +0 -0
  872. wagtail/search/locale/cy/LC_MESSAGES/django.po +1 -7
  873. wagtail/search/locale/de/LC_MESSAGES/django.mo +0 -0
  874. wagtail/search/locale/de/LC_MESSAGES/django.po +1 -7
  875. wagtail/search/locale/dv/LC_MESSAGES/django.mo +0 -0
  876. wagtail/search/locale/dv/LC_MESSAGES/django.po +1 -7
  877. wagtail/search/locale/en/LC_MESSAGES/django.po +2 -10
  878. wagtail/search/locale/es/LC_MESSAGES/django.mo +0 -0
  879. wagtail/search/locale/es/LC_MESSAGES/django.po +1 -7
  880. wagtail/search/locale/et/LC_MESSAGES/django.po +1 -1
  881. wagtail/search/locale/fa/LC_MESSAGES/django.po +1 -1
  882. wagtail/search/locale/fi/LC_MESSAGES/django.mo +0 -0
  883. wagtail/search/locale/fi/LC_MESSAGES/django.po +1 -7
  884. wagtail/search/locale/fr/LC_MESSAGES/django.mo +0 -0
  885. wagtail/search/locale/fr/LC_MESSAGES/django.po +1 -7
  886. wagtail/search/locale/gl/LC_MESSAGES/django.mo +0 -0
  887. wagtail/search/locale/gl/LC_MESSAGES/django.po +1 -7
  888. wagtail/search/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  889. wagtail/search/locale/hr_HR/LC_MESSAGES/django.po +1 -7
  890. wagtail/search/locale/ht/LC_MESSAGES/django.po +1 -1
  891. wagtail/search/locale/hu/LC_MESSAGES/django.mo +0 -0
  892. wagtail/search/locale/hu/LC_MESSAGES/django.po +1 -7
  893. wagtail/search/locale/id_ID/LC_MESSAGES/django.po +1 -1
  894. wagtail/search/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  895. wagtail/search/locale/is_IS/LC_MESSAGES/django.po +1 -7
  896. wagtail/search/locale/it/LC_MESSAGES/django.mo +0 -0
  897. wagtail/search/locale/it/LC_MESSAGES/django.po +1 -7
  898. wagtail/search/locale/ja/LC_MESSAGES/django.po +1 -1
  899. wagtail/search/locale/ko/LC_MESSAGES/django.mo +0 -0
  900. wagtail/search/locale/ko/LC_MESSAGES/django.po +1 -7
  901. wagtail/search/locale/lt/LC_MESSAGES/django.po +1 -1
  902. wagtail/search/locale/mi/LC_MESSAGES/django.po +1 -1
  903. wagtail/search/locale/mn/LC_MESSAGES/django.po +1 -1
  904. wagtail/search/locale/my/LC_MESSAGES/django.po +1 -1
  905. wagtail/search/locale/nb/LC_MESSAGES/django.mo +0 -0
  906. wagtail/search/locale/nb/LC_MESSAGES/django.po +1 -7
  907. wagtail/search/locale/nl/LC_MESSAGES/django.mo +0 -0
  908. wagtail/search/locale/nl/LC_MESSAGES/django.po +1 -7
  909. wagtail/search/locale/pl/LC_MESSAGES/django.mo +0 -0
  910. wagtail/search/locale/pl/LC_MESSAGES/django.po +1 -7
  911. wagtail/search/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  912. wagtail/search/locale/pt_BR/LC_MESSAGES/django.po +1 -7
  913. wagtail/search/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  914. wagtail/search/locale/pt_PT/LC_MESSAGES/django.po +1 -7
  915. wagtail/search/locale/ro/LC_MESSAGES/django.mo +0 -0
  916. wagtail/search/locale/ro/LC_MESSAGES/django.po +1 -7
  917. wagtail/search/locale/ru/LC_MESSAGES/django.mo +0 -0
  918. wagtail/search/locale/ru/LC_MESSAGES/django.po +1 -7
  919. wagtail/search/locale/sl/LC_MESSAGES/django.mo +0 -0
  920. wagtail/search/locale/sl/LC_MESSAGES/django.po +1 -7
  921. wagtail/search/locale/sv/LC_MESSAGES/django.mo +0 -0
  922. wagtail/search/locale/sv/LC_MESSAGES/django.po +1 -7
  923. wagtail/search/locale/tet/LC_MESSAGES/django.po +1 -1
  924. wagtail/search/locale/th/LC_MESSAGES/django.po +1 -1
  925. wagtail/search/locale/tr/LC_MESSAGES/django.mo +0 -0
  926. wagtail/search/locale/tr/LC_MESSAGES/django.po +1 -7
  927. wagtail/search/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  928. wagtail/search/locale/ug/LC_MESSAGES/django.mo +0 -0
  929. wagtail/search/locale/ug/LC_MESSAGES/django.po +1 -7
  930. wagtail/search/locale/uk/LC_MESSAGES/django.mo +0 -0
  931. wagtail/search/locale/uk/LC_MESSAGES/django.po +1 -7
  932. wagtail/search/locale/vi/LC_MESSAGES/django.po +1 -1
  933. wagtail/search/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  934. wagtail/search/locale/zh_Hans/LC_MESSAGES/django.po +1 -7
  935. wagtail/search/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  936. wagtail/search/management/commands/update_index.py +1 -205
  937. wagtail/search/management/commands/wagtail_update_index.py +1 -4
  938. wagtail/search/models.py +29 -158
  939. wagtail/search/query.py +1 -114
  940. wagtail/search/queryset.py +1 -43
  941. wagtail/search/signal_handlers.py +1 -24
  942. wagtail/search/tasks.py +1 -10
  943. wagtail/search/tests/test_elasticsearch.py +22 -0
  944. wagtail/search/utils.py +1 -206
  945. wagtail/sites/locale/en/LC_MESSAGES/django.po +1 -1
  946. wagtail/snippets/locale/af/LC_MESSAGES/django.po +1 -1
  947. wagtail/snippets/locale/ar/LC_MESSAGES/django.po +1 -1
  948. wagtail/snippets/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  949. wagtail/snippets/locale/be/LC_MESSAGES/django.po +1 -1
  950. wagtail/snippets/locale/bg/LC_MESSAGES/django.po +1 -1
  951. wagtail/snippets/locale/bn/LC_MESSAGES/django.po +1 -1
  952. wagtail/snippets/locale/ca/LC_MESSAGES/django.po +1 -1
  953. wagtail/snippets/locale/cs/LC_MESSAGES/django.po +1 -1
  954. wagtail/snippets/locale/cy/LC_MESSAGES/django.po +1 -1
  955. wagtail/snippets/locale/da/LC_MESSAGES/django.po +1 -1
  956. wagtail/snippets/locale/de/LC_MESSAGES/django.po +1 -1
  957. wagtail/snippets/locale/dv/LC_MESSAGES/django.po +1 -1
  958. wagtail/snippets/locale/el/LC_MESSAGES/django.po +1 -1
  959. wagtail/snippets/locale/en/LC_MESSAGES/django.po +3 -3
  960. wagtail/snippets/locale/en_IN/LC_MESSAGES/django.po +1 -1
  961. wagtail/snippets/locale/es/LC_MESSAGES/django.po +1 -1
  962. wagtail/snippets/locale/es_419/LC_MESSAGES/django.po +1 -1
  963. wagtail/snippets/locale/es_VE/LC_MESSAGES/django.po +1 -1
  964. wagtail/snippets/locale/et/LC_MESSAGES/django.po +1 -1
  965. wagtail/snippets/locale/eu/LC_MESSAGES/django.po +1 -1
  966. wagtail/snippets/locale/fa/LC_MESSAGES/django.po +1 -1
  967. wagtail/snippets/locale/fi/LC_MESSAGES/django.po +1 -1
  968. wagtail/snippets/locale/fr/LC_MESSAGES/django.po +1 -1
  969. wagtail/snippets/locale/gl/LC_MESSAGES/django.po +1 -1
  970. wagtail/snippets/locale/he_IL/LC_MESSAGES/django.po +1 -1
  971. wagtail/snippets/locale/hi/LC_MESSAGES/django.po +1 -1
  972. wagtail/snippets/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  973. wagtail/snippets/locale/ht/LC_MESSAGES/django.po +1 -1
  974. wagtail/snippets/locale/hu/LC_MESSAGES/django.po +1 -1
  975. wagtail/snippets/locale/id_ID/LC_MESSAGES/django.po +1 -1
  976. wagtail/snippets/locale/is_IS/LC_MESSAGES/django.po +1 -1
  977. wagtail/snippets/locale/it/LC_MESSAGES/django.po +1 -1
  978. wagtail/snippets/locale/ja/LC_MESSAGES/django.po +1 -1
  979. wagtail/snippets/locale/ka/LC_MESSAGES/django.po +1 -1
  980. wagtail/snippets/locale/ko/LC_MESSAGES/django.po +1 -1
  981. wagtail/snippets/locale/lt/LC_MESSAGES/django.po +1 -1
  982. wagtail/snippets/locale/lv/LC_MESSAGES/django.po +1 -1
  983. wagtail/snippets/locale/mi/LC_MESSAGES/django.po +1 -1
  984. wagtail/snippets/locale/mn/LC_MESSAGES/django.po +1 -1
  985. wagtail/snippets/locale/my/LC_MESSAGES/django.po +1 -1
  986. wagtail/snippets/locale/nb/LC_MESSAGES/django.po +1 -1
  987. wagtail/snippets/locale/nl/LC_MESSAGES/django.po +1 -1
  988. wagtail/snippets/locale/pl/LC_MESSAGES/django.po +1 -1
  989. wagtail/snippets/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  990. wagtail/snippets/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  991. wagtail/snippets/locale/ro/LC_MESSAGES/django.po +1 -1
  992. wagtail/snippets/locale/ru/LC_MESSAGES/django.mo +0 -0
  993. wagtail/snippets/locale/ru/LC_MESSAGES/django.po +9 -2
  994. wagtail/snippets/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  995. wagtail/snippets/locale/sl/LC_MESSAGES/django.po +1 -1
  996. wagtail/snippets/locale/sr/LC_MESSAGES/django.po +1 -1
  997. wagtail/snippets/locale/sv/LC_MESSAGES/django.po +1 -1
  998. wagtail/snippets/locale/ta/LC_MESSAGES/django.po +1 -1
  999. wagtail/snippets/locale/tet/LC_MESSAGES/django.po +1 -1
  1000. wagtail/snippets/locale/th/LC_MESSAGES/django.po +1 -1
  1001. wagtail/snippets/locale/tr/LC_MESSAGES/django.mo +0 -0
  1002. wagtail/snippets/locale/tr/LC_MESSAGES/django.po +9 -2
  1003. wagtail/snippets/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  1004. wagtail/snippets/locale/ug/LC_MESSAGES/django.po +1 -1
  1005. wagtail/snippets/locale/uk/LC_MESSAGES/django.po +1 -1
  1006. wagtail/snippets/locale/vi/LC_MESSAGES/django.po +1 -1
  1007. wagtail/snippets/locale/zh/LC_MESSAGES/django.po +1 -1
  1008. wagtail/snippets/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  1009. wagtail/snippets/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  1010. wagtail/snippets/static/wagtailsnippets/js/snippet-chooser-telepath.js +1 -1
  1011. wagtail/snippets/static/wagtailsnippets/js/snippet-chooser.js +1 -1
  1012. wagtail/snippets/tests/test_reordering.py +319 -0
  1013. wagtail/snippets/tests/test_snippets.py +77 -12
  1014. wagtail/snippets/views/snippets.py +16 -0
  1015. wagtail/test/numberformat.py +30 -0
  1016. wagtail/test/settings.py +35 -12
  1017. wagtail/test/testapp/fields.py +12 -0
  1018. wagtail/test/testapp/migrations/0056_commentablejsonpage.py +50 -0
  1019. wagtail/test/testapp/migrations/0057_featurecompletetoy_sort_order.py +23 -0
  1020. wagtail/test/testapp/migrations/0058_customlocktask.py +31 -0
  1021. wagtail/test/testapp/models.py +27 -0
  1022. wagtail/test/testapp/views.py +3 -1
  1023. wagtail/test/utils/page_tests.py +17 -17
  1024. wagtail/test/utils/template_tests.py +4 -6
  1025. wagtail/test/utils/wagtail_tests.py +1 -2
  1026. wagtail/tests/test_page_model.py +15 -0
  1027. wagtail/{search/tests → tests}/test_page_search.py +29 -2
  1028. wagtail/tests/test_search_fields.py +69 -0
  1029. wagtail/tests/test_tests.py +62 -6
  1030. wagtail/tests/test_workflow.py +25 -1
  1031. wagtail/users/locale/ar/LC_MESSAGES/django.po +1 -1
  1032. wagtail/users/locale/be/LC_MESSAGES/django.po +1 -1
  1033. wagtail/users/locale/bg/LC_MESSAGES/django.po +1 -1
  1034. wagtail/users/locale/bn/LC_MESSAGES/django.po +1 -1
  1035. wagtail/users/locale/ca/LC_MESSAGES/django.po +1 -1
  1036. wagtail/users/locale/cs/LC_MESSAGES/django.mo +0 -0
  1037. wagtail/users/locale/cs/LC_MESSAGES/django.po +4 -1
  1038. wagtail/users/locale/cy/LC_MESSAGES/django.po +1 -1
  1039. wagtail/users/locale/da/LC_MESSAGES/django.po +1 -1
  1040. wagtail/users/locale/de/LC_MESSAGES/django.po +1 -1
  1041. wagtail/users/locale/dv/LC_MESSAGES/django.po +1 -1
  1042. wagtail/users/locale/el/LC_MESSAGES/django.po +1 -1
  1043. wagtail/users/locale/en/LC_MESSAGES/django.po +2 -2
  1044. wagtail/users/locale/es/LC_MESSAGES/django.po +1 -1
  1045. wagtail/users/locale/es_419/LC_MESSAGES/django.po +1 -1
  1046. wagtail/users/locale/et/LC_MESSAGES/django.po +1 -1
  1047. wagtail/users/locale/eu/LC_MESSAGES/django.po +1 -1
  1048. wagtail/users/locale/fa/LC_MESSAGES/django.po +1 -1
  1049. wagtail/users/locale/fi/LC_MESSAGES/django.mo +0 -0
  1050. wagtail/users/locale/fi/LC_MESSAGES/django.po +6 -3
  1051. wagtail/users/locale/fr/LC_MESSAGES/django.po +1 -1
  1052. wagtail/users/locale/gl/LC_MESSAGES/django.po +1 -1
  1053. wagtail/users/locale/he_IL/LC_MESSAGES/django.po +1 -1
  1054. wagtail/users/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  1055. wagtail/users/locale/hu/LC_MESSAGES/django.po +1 -1
  1056. wagtail/users/locale/hy/LC_MESSAGES/django.po +1 -1
  1057. wagtail/users/locale/id_ID/LC_MESSAGES/django.po +1 -1
  1058. wagtail/users/locale/is_IS/LC_MESSAGES/django.po +1 -1
  1059. wagtail/users/locale/it/LC_MESSAGES/django.po +1 -1
  1060. wagtail/users/locale/ja/LC_MESSAGES/django.po +1 -1
  1061. wagtail/users/locale/ka/LC_MESSAGES/django.po +1 -1
  1062. wagtail/users/locale/ko/LC_MESSAGES/django.po +1 -1
  1063. wagtail/users/locale/lt/LC_MESSAGES/django.po +1 -1
  1064. wagtail/users/locale/lv/LC_MESSAGES/django.po +1 -1
  1065. wagtail/users/locale/mi/LC_MESSAGES/django.po +1 -1
  1066. wagtail/users/locale/mn/LC_MESSAGES/django.po +1 -1
  1067. wagtail/users/locale/my/LC_MESSAGES/django.po +1 -1
  1068. wagtail/users/locale/nb/LC_MESSAGES/django.po +1 -1
  1069. wagtail/users/locale/nl/LC_MESSAGES/django.mo +0 -0
  1070. wagtail/users/locale/nl/LC_MESSAGES/django.po +7 -4
  1071. wagtail/users/locale/pl/LC_MESSAGES/django.po +1 -1
  1072. wagtail/users/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  1073. wagtail/users/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  1074. wagtail/users/locale/ro/LC_MESSAGES/django.po +1 -1
  1075. wagtail/users/locale/ru/LC_MESSAGES/django.mo +0 -0
  1076. wagtail/users/locale/ru/LC_MESSAGES/django.po +6 -2
  1077. wagtail/users/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  1078. wagtail/users/locale/sl/LC_MESSAGES/django.po +1 -1
  1079. wagtail/users/locale/sv/LC_MESSAGES/django.po +1 -1
  1080. wagtail/users/locale/tet/LC_MESSAGES/django.po +1 -1
  1081. wagtail/users/locale/th/LC_MESSAGES/django.po +1 -1
  1082. wagtail/users/locale/tr/LC_MESSAGES/django.mo +0 -0
  1083. wagtail/users/locale/tr/LC_MESSAGES/django.po +79 -5
  1084. wagtail/users/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  1085. wagtail/users/locale/ug/LC_MESSAGES/django.po +1 -1
  1086. wagtail/users/locale/uk/LC_MESSAGES/django.po +1 -1
  1087. wagtail/users/locale/vi/LC_MESSAGES/django.po +1 -1
  1088. wagtail/users/locale/zh/LC_MESSAGES/django.po +1 -1
  1089. wagtail/users/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  1090. wagtail/users/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  1091. wagtail/users/templates/wagtailusers/users/create.html +2 -0
  1092. wagtail/users/templates/wagtailusers/users/edit.html +2 -0
  1093. wagtail/users/tests/test_admin_views.py +4 -0
  1094. wagtail/users/views/users.py +1 -1
  1095. {wagtail-7.1.2.dist-info → wagtail-7.2.dist-info}/METADATA +8 -7
  1096. {wagtail-7.1.2.dist-info → wagtail-7.2.dist-info}/RECORD +1102 -1108
  1097. wagtail/admin/templates/wagtailadmin/collection_privacy/set_privacy.html +0 -13
  1098. wagtail/admin/templates/wagtailadmin/page_privacy/set_privacy.html +0 -13
  1099. wagtail/search/tests/__init__.py +0 -0
  1100. wagtail/search/tests/elasticsearch_common_tests.py +0 -251
  1101. wagtail/search/tests/test_backends.py +0 -1215
  1102. wagtail/search/tests/test_db_backend.py +0 -62
  1103. wagtail/search/tests/test_elasticsearch7_backend.py +0 -1452
  1104. wagtail/search/tests/test_elasticsearch8_backend.py +0 -15
  1105. wagtail/search/tests/test_index_functions.py +0 -256
  1106. wagtail/search/tests/test_indexed_class.py +0 -157
  1107. wagtail/search/tests/test_mysql_backend.py +0 -192
  1108. wagtail/search/tests/test_postgres_backend.py +0 -210
  1109. wagtail/search/tests/test_queries.py +0 -332
  1110. wagtail/search/tests/test_related_fields.py +0 -102
  1111. wagtail/search/tests/test_sqlite_backend.py +0 -52
  1112. wagtail/test/search/__init__.py +0 -0
  1113. wagtail/test/search/apps.py +0 -9
  1114. wagtail/test/search/fixtures/search.json +0 -545
  1115. wagtail/test/search/migrations/0001_initial.py +0 -146
  1116. wagtail/test/search/migrations/0002_bookunindexed.py +0 -43
  1117. wagtail/test/search/migrations/0003_book_summary.py +0 -18
  1118. wagtail/test/search/migrations/__init__.py +0 -0
  1119. wagtail/test/search/models.py +0 -137
  1120. /wagtail/admin/templates/wagtailadmin/{pages/listing/_ordering_cell.html → tables/ordering_cell.html} +0 -0
  1121. /wagtail/{search/checks.py → checks.py} +0 -0
  1122. {wagtail-7.1.2.dist-info → wagtail-7.2.dist-info}/WHEEL +0 -0
  1123. {wagtail-7.1.2.dist-info → wagtail-7.2.dist-info}/entry_points.txt +0 -0
  1124. {wagtail-7.1.2.dist-info → wagtail-7.2.dist-info}/licenses/LICENSE +0 -0
  1125. {wagtail-7.1.2.dist-info → wagtail-7.2.dist-info}/top_level.txt +0 -0
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see jquery.datetimepicker.js.LICENSE.txt */
2
- !function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof module&&module.exports?module.exports=t():e.DateFormatter=t()}("undefined"!=typeof self?self:this,(function(){var e,t;return t={DAY:864e5,HOUR:3600,defaults:{dateSettings:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["AM","PM"],ordinal:function(e){var t=e%10,a={1:"st",2:"nd",3:"rd"};return 1!==Math.floor(e%100/10)&&a[t]?a[t]:"th"}},separators:/[ \-+\/.:@]/g,validParts:/[dDjlNSwzWFmMntLoYyaABgGhHisueTIOPZcrU]/g,intParts:/[djwNzmnyYhHgGis]/g,tzParts:/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,tzClip:/[^-+\dA-Z]/g},getInt:function(e,t){return parseInt(e,t||10)},compare:function(e,t){return"string"==typeof e&&"string"==typeof t&&e.toLowerCase()===t.toLowerCase()},lpad:function(e,a,n){var r=e.toString();return n=n||"0",r.length<a?t.lpad(n+r,a):r},merge:function(e){var a,n;for(e=e||{},a=1;a<arguments.length;a++)if(n=arguments[a])for(var r in n)n.hasOwnProperty(r)&&("object"==typeof n[r]?t.merge(e[r],n[r]):e[r]=n[r]);return e},getIndex:function(e,t){for(var a=0;a<t.length;a++)if(t[a].toLowerCase()===e.toLowerCase())return a;return-1}},(e=function(e){var a=this,n=t.merge(t.defaults,e);a.dateSettings=n.dateSettings,a.separators=n.separators,a.validParts=n.validParts,a.intParts=n.intParts,a.tzParts=n.tzParts,a.tzClip=n.tzClip}).prototype={constructor:e,getMonth:function(e){var a;return 0===(a=t.getIndex(e,this.dateSettings.monthsShort)+1)&&(a=t.getIndex(e,this.dateSettings.months)+1),a},parseDate:function(e,a){var n,r,o,i,s,d,u,l,f,c,m=this,h=!1,g=!1,p=m.dateSettings,D={date:null,year:null,month:null,day:null,hour:0,min:0,sec:0};if(!e)return null;if(e instanceof Date)return e;if("U"===a)return(o=t.getInt(e))?new Date(1e3*o):e;switch(typeof e){case"number":return new Date(e);case"string":break;default:return null}if(!(n=a.match(m.validParts))||0===n.length)throw new Error("Invalid date format definition.");for(o=n.length-1;o>=0;o--)"S"===n[o]&&n.splice(o,1);for(r=e.replace(m.separators,"\0").split("\0"),o=0;o<r.length;o++)switch(i=r[o],s=t.getInt(i),n[o]){case"y":case"Y":if(!s)return null;f=i.length,D.year=2===f?t.getInt((70>s?"20":"19")+i):s,h=!0;break;case"m":case"n":case"M":case"F":if(isNaN(s)){if(!((d=m.getMonth(i))>0))return null;D.month=d}else{if(!(s>=1&&12>=s))return null;D.month=s}h=!0;break;case"d":case"j":if(!(s>=1&&31>=s))return null;D.day=s,h=!0;break;case"g":case"h":if(c=r[u=n.indexOf("a")>-1?n.indexOf("a"):n.indexOf("A")>-1?n.indexOf("A"):-1],-1!==u)l=t.compare(c,p.meridiem[0])?0:t.compare(c,p.meridiem[1])?12:-1,s>=1&&12>=s&&-1!==l?D.hour=s%12==0?l:s+l:s>=0&&23>=s&&(D.hour=s);else{if(!(s>=0&&23>=s))return null;D.hour=s}g=!0;break;case"G":case"H":if(!(s>=0&&23>=s))return null;D.hour=s,g=!0;break;case"i":if(!(s>=0&&59>=s))return null;D.min=s,g=!0;break;case"s":if(!(s>=0&&59>=s))return null;D.sec=s,g=!0}if(!0===h){var y=D.year||0,v=D.month?D.month-1:0,b=D.day||1;D.date=new Date(y,v,b,D.hour,D.min,D.sec,0)}else{if(!0!==g)return null;D.date=new Date(0,0,0,D.hour,D.min,D.sec,0)}return D.date},guessDate:function(e,a){if("string"!=typeof e)return e;var n,r,o,i,s,d,u=e.replace(this.separators,"\0").split("\0"),l=a.match(this.validParts),f=new Date,c=0;if(!/^[djmn]/g.test(l[0]))return e;for(o=0;o<u.length;o++){if(c=2,s=u[o],d=t.getInt(s.substr(0,2)),isNaN(d))return null;switch(o){case 0:"m"===l[0]||"n"===l[0]?f.setMonth(d-1):f.setDate(d);break;case 1:"m"===l[0]||"n"===l[0]?f.setDate(d):f.setMonth(d-1);break;case 2:if(r=f.getFullYear(),c=4>(n=s.length)?n:4,!(r=t.getInt(4>n?r.toString().substr(0,4-n)+s:s.substr(0,4))))return null;f.setFullYear(r);break;case 3:f.setHours(d);break;case 4:f.setMinutes(d);break;case 5:f.setSeconds(d)}(i=s.substr(c)).length>0&&u.splice(o+1,0,i)}return f},parseFormat:function(e,a){var n,r=this,o=r.dateSettings,i=/\\?(.?)/gi,s=function(e,t){return n[e]?n[e]():t};return n={d:function(){return t.lpad(n.j(),2)},D:function(){return o.daysShort[n.w()]},j:function(){return a.getDate()},l:function(){return o.days[n.w()]},N:function(){return n.w()||7},w:function(){return a.getDay()},z:function(){var e=new Date(n.Y(),n.n()-1,n.j()),a=new Date(n.Y(),0,1);return Math.round((e-a)/t.DAY)},W:function(){var e=new Date(n.Y(),n.n()-1,n.j()-n.N()+3),a=new Date(e.getFullYear(),0,4);return t.lpad(1+Math.round((e-a)/t.DAY/7),2)},F:function(){return o.months[a.getMonth()]},m:function(){return t.lpad(n.n(),2)},M:function(){return o.monthsShort[a.getMonth()]},n:function(){return a.getMonth()+1},t:function(){return new Date(n.Y(),n.n(),0).getDate()},L:function(){var e=n.Y();return e%4==0&&e%100!=0||e%400==0?1:0},o:function(){var e=n.n(),t=n.W();return n.Y()+(12===e&&9>t?1:1===e&&t>9?-1:0)},Y:function(){return a.getFullYear()},y:function(){return n.Y().toString().slice(-2)},a:function(){return n.A().toLowerCase()},A:function(){var e=n.G()<12?0:1;return o.meridiem[e]},B:function(){var e=a.getUTCHours()*t.HOUR,n=60*a.getUTCMinutes(),r=a.getUTCSeconds();return t.lpad(Math.floor((e+n+r+t.HOUR)/86.4)%1e3,3)},g:function(){return n.G()%12||12},G:function(){return a.getHours()},h:function(){return t.lpad(n.g(),2)},H:function(){return t.lpad(n.G(),2)},i:function(){return t.lpad(a.getMinutes(),2)},s:function(){return t.lpad(a.getSeconds(),2)},u:function(){return t.lpad(1e3*a.getMilliseconds(),6)},e:function(){return/\((.*)\)/.exec(String(a))[1]||"Coordinated Universal Time"},I:function(){return new Date(n.Y(),0)-Date.UTC(n.Y(),0)!=new Date(n.Y(),6)-Date.UTC(n.Y(),6)?1:0},O:function(){var e=a.getTimezoneOffset(),n=Math.abs(e);return(e>0?"-":"+")+t.lpad(100*Math.floor(n/60)+n%60,4)},P:function(){var e=n.O();return e.substr(0,3)+":"+e.substr(3,2)},T:function(){return(String(a).match(r.tzParts)||[""]).pop().replace(r.tzClip,"")||"UTC"},Z:function(){return 60*-a.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(i,s)},r:function(){return"D, d M Y H:i:s O".replace(i,s)},U:function(){return a.getTime()/1e3||0}},s(e,e)},formatDate:function(e,a){var n,r,o,i,s,d=this,u="";if("string"==typeof e&&!(e=d.parseDate(e,a)))return null;if(e instanceof Date){for(o=a.length,n=0;o>n;n++)"S"!==(s=a.charAt(n))&&"\\"!==s&&(n>0&&"\\"===a.charAt(n-1)?u+=s:(i=d.parseFormat(s,e),n!==o-1&&d.intParts.test(s)&&"S"===a.charAt(n+1)&&(r=t.getInt(i)||0,i+=d.dateSettings.ordinal(r)),u+=i));return u}return""}},e}));var datetimepickerFactory=function(e){"use strict";var t={i18n:{ar:{months:["كانون الثاني","شباط","آذار","نيسان","مايو","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],dayOfWeekShort:["ن","ث","ع","خ","ج","س","ح"],dayOfWeek:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت","الأحد"]},ro:{months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],dayOfWeekShort:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],dayOfWeek:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă"]},id:{months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],dayOfWeekShort:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],dayOfWeek:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},is:{months:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],dayOfWeekShort:["Sun","Mán","Þrið","Mið","Fim","Fös","Lau"],dayOfWeek:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"]},bg:{months:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],dayOfWeekShort:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"]},fa:{months:["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"],dayOfWeekShort:["یکشنبه","دوشنبه","سه شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],dayOfWeek:["یک‌شنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنج‌شنبه","جمعه","شنبه","یک‌شنبه"]},ru:{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],dayOfWeekShort:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},uk:{months:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],dayOfWeekShort:["Ндл","Пнд","Втр","Срд","Чтв","Птн","Сбт"],dayOfWeek:["Неділя","Понеділок","Вівторок","Середа","Четвер","П'ятниця","Субота"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},el:{months:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],dayOfWeekShort:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"],dayOfWeek:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},de:{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],dayOfWeekShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayOfWeek:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},nl:{months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],dayOfWeekShort:["zo","ma","di","wo","do","vr","za"],dayOfWeek:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},tr:{months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],dayOfWeekShort:["Paz","Pts","Sal","Çar","Per","Cum","Cts"],dayOfWeek:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},fr:{months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],dayOfWeekShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dayOfWeek:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},es:{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],dayOfWeekShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],dayOfWeek:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"]},th:{months:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],dayOfWeekShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayOfWeek:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัส","ศุกร์","เสาร์","อาทิตย์"]},pl:{months:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],dayOfWeekShort:["nd","pn","wt","śr","cz","pt","sb"],dayOfWeek:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},pt:{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},ch:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"]},se:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"]},km:{months:["មករា​","កុម្ភៈ","មិនា​","មេសា​","ឧសភា​","មិថុនា​","កក្កដា​","សីហា​","កញ្ញា​","តុលា​","វិច្ឆិកា","ធ្នូ​"],dayOfWeekShort:["អាទិ​","ច័ន្ទ​","អង្គារ​","ពុធ​","ព្រហ​​","សុក្រ​","សៅរ៍"],dayOfWeek:["អាទិត្យ​","ច័ន្ទ​","អង្គារ​","ពុធ​","ព្រហស្បតិ៍​","សុក្រ​","សៅរ៍"]},kr:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},it:{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayOfWeek:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"]},da:{months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},no:{months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"]},ja:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeekShort:["日","月","火","水","木","金","土"],dayOfWeek:["日曜","月曜","火曜","水曜","木曜","金曜","土曜"]},vi:{months:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],dayOfWeekShort:["CN","T2","T3","T4","T5","T6","T7"],dayOfWeek:["Chủ nhật","Thứ hai","Thứ ba","Thứ tư","Thứ năm","Thứ sáu","Thứ bảy"]},sl:{months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],dayOfWeekShort:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],dayOfWeek:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"]},cs:{months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],dayOfWeekShort:["Ne","Po","Út","St","Čt","Pá","So"]},hu:{months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],dayOfWeekShort:["Va","Hé","Ke","Sze","Cs","Pé","Szo"],dayOfWeek:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},az:{months:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"],dayOfWeekShort:["B","Be","Ça","Ç","Ca","C","Ş"],dayOfWeek:["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"]},bs:{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ca:{months:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],dayOfWeekShort:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],dayOfWeek:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},"en-GB":{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},et:{months:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],dayOfWeekShort:["P","E","T","K","N","R","L"],dayOfWeek:["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev"]},eu:{months:["Urtarrila","Otsaila","Martxoa","Apirila","Maiatza","Ekaina","Uztaila","Abuztua","Iraila","Urria","Azaroa","Abendua"],dayOfWeekShort:["Ig.","Al.","Ar.","Az.","Og.","Or.","La."],dayOfWeek:["Igandea","Astelehena","Asteartea","Asteazkena","Osteguna","Ostirala","Larunbata"]},fi:{months:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],dayOfWeekShort:["Su","Ma","Ti","Ke","To","Pe","La"],dayOfWeek:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},gl:{months:["Xan","Feb","Maz","Abr","Mai","Xun","Xul","Ago","Set","Out","Nov","Dec"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Xov","Ven","Sab"],dayOfWeek:["Domingo","Luns","Martes","Mércores","Xoves","Venres","Sábado"]},hr:{months:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ko:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},lt:{months:["Sausio","Vasario","Kovo","Balandžio","Gegužės","Birželio","Liepos","Rugpjūčio","Rugsėjo","Spalio","Lapkričio","Gruodžio"],dayOfWeekShort:["Sek","Pir","Ant","Tre","Ket","Pen","Šeš"],dayOfWeek:["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis"]},lv:{months:["Janvāris","Februāris","Marts","Aprīlis ","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],dayOfWeekShort:["Sv","Pr","Ot","Tr","Ct","Pk","St"],dayOfWeek:["Svētdiena","Pirmdiena","Otrdiena","Trešdiena","Ceturtdiena","Piektdiena","Sestdiena"]},mk:{months:["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],dayOfWeekShort:["нед","пон","вто","сре","чет","пет","саб"],dayOfWeek:["Недела","Понеделник","Вторник","Среда","Четврток","Петок","Сабота"]},mn:{months:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],dayOfWeekShort:["Дав","Мяг","Лха","Пүр","Бсн","Бям","Ням"],dayOfWeek:["Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба","Ням"]},"pt-BR":{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},sk:{months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],dayOfWeekShort:["Ne","Po","Ut","St","Št","Pi","So"],dayOfWeek:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"]},sq:{months:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"],dayOfWeekShort:["Die","Hën","Mar","Mër","Enj","Pre","Shtu"],dayOfWeek:["E Diel","E Hënë","E Martē","E Mërkurë","E Enjte","E Premte","E Shtunë"]},"sr-YU":{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sre","čet","Pet","Sub"],dayOfWeek:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"]},sr:{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],dayOfWeekShort:["нед","пон","уто","сре","чет","пет","суб"],dayOfWeek:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"]},sv:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayOfWeek:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"]},"zh-TW":{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},zh:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},ug:{months:["1-ئاي","2-ئاي","3-ئاي","4-ئاي","5-ئاي","6-ئاي","7-ئاي","8-ئاي","9-ئاي","10-ئاي","11-ئاي","12-ئاي"],dayOfWeek:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"]},he:{months:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],dayOfWeekShort:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],dayOfWeek:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת","ראשון"]},hy:{months:["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր"],dayOfWeekShort:["Կի","Երկ","Երք","Չոր","Հնգ","Ուրբ","Շբթ"],dayOfWeek:["Կիրակի","Երկուշաբթի","Երեքշաբթի","Չորեքշաբթի","Հինգշաբթի","Ուրբաթ","Շաբաթ"]},kg:{months:["Үчтүн айы","Бирдин айы","Жалган Куран","Чын Куран","Бугу","Кулжа","Теке","Баш Оона","Аяк Оона","Тогуздун айы","Жетинин айы","Бештин айы"],dayOfWeekShort:["Жек","Дүй","Шей","Шар","Бей","Жум","Ише"],dayOfWeek:["Жекшемб","Дүйшөмб","Шейшемб","Шаршемб","Бейшемби","Жума","Ишенб"]},rm:{months:["Schaner","Favrer","Mars","Avrigl","Matg","Zercladur","Fanadur","Avust","Settember","October","November","December"],dayOfWeekShort:["Du","Gli","Ma","Me","Gie","Ve","So"],dayOfWeek:["Dumengia","Glindesdi","Mardi","Mesemna","Gievgia","Venderdi","Sonda"]},ka:{months:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"],dayOfWeekShort:["კვ","ორშ","სამშ","ოთხ","ხუთ","პარ","შაბ"],dayOfWeek:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]}},ownerDocument:document,contentWindow:window,value:"",rtl:!1,format:"Y/m/d H:i",formatTime:"H:i",formatDate:"Y/m/d",startDate:!1,step:60,monthChangeSpinner:!0,closeOnDateSelect:!1,closeOnTimeSelect:!0,closeOnWithoutClick:!0,closeOnInputClick:!0,openOnFocus:!0,timepicker:!0,datepicker:!0,weeks:!1,defaultTime:!1,defaultDate:!1,minDate:!1,maxDate:!1,minTime:!1,maxTime:!1,minDateTime:!1,maxDateTime:!1,allowTimes:[],opened:!1,initTime:!0,inline:!1,theme:"",touchMovedThreshold:5,onSelectDate:function(){},onSelectTime:function(){},onChangeMonth:function(){},onGetWeekOfYear:function(){},onChangeYear:function(){},onChangeDateTime:function(){},onShow:function(){},onClose:function(){},onGenerate:function(){},withoutCopyright:!0,inverseButton:!1,hours12:!1,next:"xdsoft_next",prev:"xdsoft_prev",dayOfWeekStart:0,parentID:"body",timeHeightInTimePicker:25,timepickerScrollbar:!0,todayButton:!0,prevButton:!0,nextButton:!0,defaultSelect:!0,scrollMonth:!0,scrollTime:!0,scrollInput:!0,lazyInit:!1,mask:!1,validateOnBlur:!0,allowBlank:!0,yearStart:1950,yearEnd:2050,monthStart:0,monthEnd:11,style:"",id:"",fixed:!1,roundTime:"round",className:"",weekends:[],highlightedDates:[],highlightedPeriods:[],allowDates:[],allowDateRe:null,disabledDates:[],disabledWeekDays:[],yearOffset:0,beforeShowDay:null,enterLikeTab:!0,showApplyButton:!1,insideParent:!1},a=null,n=null,r="en",o={meridiem:["AM","PM"]},i=function(){var i=t.i18n[r],s={days:i.dayOfWeek,daysShort:i.dayOfWeekShort,months:i.months,monthsShort:e.map(i.months,(function(e){return e.substring(0,3)}))};"function"==typeof DateFormatter&&(a=n=new DateFormatter({dateSettings:e.extend({},o,s)}))},s={moment:{default_options:{format:"YYYY/MM/DD HH:mm",formatDate:"YYYY/MM/DD",formatTime:"HH:mm"},formatter:{parseDate:function(e,t){if(u(t))return n.parseDate(e,t);var a=moment(e,t);return!!a.isValid()&&a.toDate()},formatDate:function(e,t){return u(t)?n.formatDate(e,t):moment(e).format(t)},formatMask:function(e){return e.replace(/Y{4}/g,"9999").replace(/Y{2}/g,"99").replace(/M{2}/g,"19").replace(/D{2}/g,"39").replace(/H{2}/g,"29").replace(/m{2}/g,"59").replace(/s{2}/g,"59")}}}};e.datetimepicker={setLocale:function(e){var a=t.i18n[e]?e:"en";r!==a&&(r=a,i())},setDateFormatter:function(n){if("string"==typeof n&&s.hasOwnProperty(n)){var r=s[n];e.extend(t,r.default_options),a=r.formatter}else a=n}};var d={RFC_2822:"D, d M Y H:i:s O",ATOM:"Y-m-dTH:i:sP",ISO_8601:"Y-m-dTH:i:sO",RFC_822:"D, d M y H:i:s O",RFC_850:"l, d-M-y H:i:s T",RFC_1036:"D, d M y H:i:s O",RFC_1123:"D, d M Y H:i:s O",RSS:"D, d M Y H:i:s O",W3C:"Y-m-dTH:i:sP"},u=function(e){return-1!==Object.values(d).indexOf(e)};function l(e,t,a){this.date=e,this.desc=t,this.style=a}e.extend(e.datetimepicker,d),i(),window.getComputedStyle||(window.getComputedStyle=function(e){return this.el=e,this.getPropertyValue=function(t){var a=/(-([a-z]))/g;return"float"===t&&(t="styleFloat"),a.test(t)&&(t=t.replace(a,(function(e,t,a){return a.toUpperCase()}))),e.currentStyle[t]||null},this}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var a,n;for(a=t||0,n=this.length;a<n;a+=1)if(this[a]===e)return a;return-1}),Date.prototype.countDaysInMonth=function(){return new Date(this.getFullYear(),this.getMonth()+1,0).getDate()},e.fn.xdsoftScroller=function(t,a){return this.each((function(){var n,r,o,i,s,d=e(this),u=function(e){var t,a={x:0,y:0};return"touchstart"===e.type||"touchmove"===e.type||"touchend"===e.type||"touchcancel"===e.type?(t=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],a.x=t.clientX,a.y=t.clientY):"mousedown"!==e.type&&"mouseup"!==e.type&&"mousemove"!==e.type&&"mouseover"!==e.type&&"mouseout"!==e.type&&"mouseenter"!==e.type&&"mouseleave"!==e.type||(a.x=e.clientX,a.y=e.clientY),a},l=100,f=!1,c=0,m=0,h=0,g=!1,p=0,D=function(){};"hide"!==a?(e(this).hasClass("xdsoft_scroller_box")||(n=d.children().eq(0),r=d[0].clientHeight,o=n[0].offsetHeight,i=e('<div class="xdsoft_scrollbar"></div>'),s=e('<div class="xdsoft_scroller"></div>'),i.append(s),d.addClass("xdsoft_scroller_box").append(i),D=function(e){var t=u(e).y-c+p;t<0&&(t=0),t+s[0].offsetHeight>h&&(t=h-s[0].offsetHeight),d.trigger("scroll_element.xdsoft_scroller",[l?t/l:0])},s.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",(function(n){r||d.trigger("resize_scroll.xdsoft_scroller",[a]),c=u(n).y,p=parseInt(s.css("margin-top"),10),h=i[0].offsetHeight,"mousedown"===n.type||"touchstart"===n.type?(t.ownerDocument&&e(t.ownerDocument.body).addClass("xdsoft_noselect"),e([t.ownerDocument.body,t.contentWindow]).on("touchend mouseup.xdsoft_scroller",(function a(){e([t.ownerDocument.body,t.contentWindow]).off("touchend mouseup.xdsoft_scroller",a).off("mousemove.xdsoft_scroller",D).removeClass("xdsoft_noselect")})),e(t.ownerDocument.body).on("mousemove.xdsoft_scroller",D)):(g=!0,n.stopPropagation(),n.preventDefault())})).on("touchmove",(function(e){g&&(e.preventDefault(),D(e))})).on("touchend touchcancel",(function(){g=!1,p=0})),d.on("scroll_element.xdsoft_scroller",(function(e,t){r||d.trigger("resize_scroll.xdsoft_scroller",[t,!0]),t=t>1?1:t<0||isNaN(t)?0:t,s.css("margin-top",l*t),setTimeout((function(){n.css("marginTop",-parseInt((n[0].offsetHeight-r)*t,10))}),10)})).on("resize_scroll.xdsoft_scroller",(function(e,t,a){var u,f;r=d[0].clientHeight,o=n[0].offsetHeight,f=(u=r/o)*i[0].offsetHeight,u>1?s.hide():(s.show(),s.css("height",parseInt(f>10?f:10,10)),l=i[0].offsetHeight-s[0].offsetHeight,!0!==a&&d.trigger("scroll_element.xdsoft_scroller",[t||Math.abs(parseInt(n.css("marginTop"),10))/(o-r)]))})),d.on("mousewheel",(function(e){var t=Math.abs(parseInt(n.css("marginTop"),10));return(t-=20*e.deltaY)<0&&(t=0),d.trigger("scroll_element.xdsoft_scroller",[t/(o-r)]),e.stopPropagation(),!1})),d.on("touchstart",(function(e){f=u(e),m=Math.abs(parseInt(n.css("marginTop"),10))})),d.on("touchmove",(function(e){if(f){e.preventDefault();var t=u(e);d.trigger("scroll_element.xdsoft_scroller",[(m-(t.y-f.y))/(o-r)])}})),d.on("touchend touchcancel",(function(){f=!1,m=0}))),d.trigger("resize_scroll.xdsoft_scroller",[a])):d.find(".xdsoft_scrollbar").hide()}))},e.fn.datetimepicker=function(n,o){var i,s,d=this,u=17,f=13,c=27,m=37,h=38,g=39,p=40,D=9,y=116,v=65,b=67,k=86,x=90,T=89,S=!1,M=e.isPlainObject(n)||!n?e.extend(!0,{},t,n):e.extend(!0,{},t),w=0;return i=function(t){var o,i,s,d,w,O,W=e('<div class="xdsoft_datetimepicker xdsoft_noselect"></div>'),_=e('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net</a></div>'),F=e('<div class="xdsoft_datepicker active"></div>'),C=e('<div class="xdsoft_monthpicker"><button type="button" class="xdsoft_prev"></button><button type="button" class="xdsoft_today_button"></button><div class="xdsoft_label xdsoft_month"><span></span><i></i></div><div class="xdsoft_label xdsoft_year"><span></span><i></i></div><button type="button" class="xdsoft_next"></button></div>'),P=e('<div class="xdsoft_calendar"></div>'),Y=e('<div class="xdsoft_timepicker active"><button type="button" class="xdsoft_prev"></button><div class="xdsoft_time_box"></div><button type="button" class="xdsoft_next"></button></div>'),A=Y.find(".xdsoft_time_box").eq(0),H=e('<div class="xdsoft_time_variant"></div>'),j=e('<button type="button" class="xdsoft_save_selected blue-gradient-button">Save Selected</button>'),J=e('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>'),z=e('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>'),I=!1,N=0;M.id&&W.attr("id",M.id),M.style&&W.attr("style",M.style),M.weeks&&W.addClass("xdsoft_showweeks"),M.rtl&&W.addClass("xdsoft_rtl"),W.addClass("xdsoft_"+M.theme),W.addClass(M.className),C.find(".xdsoft_month span").after(J),C.find(".xdsoft_year span").after(z),C.find(".xdsoft_month,.xdsoft_year").on("touchstart mousedown.xdsoft",(function(t){var a,n,r=e(this).find(".xdsoft_select").eq(0),o=0,i=0,s=r.is(":visible");for(C.find(".xdsoft_select").hide(),w.currentTime&&(o=w.currentTime[e(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),r[s?"hide":"show"](),a=r.find("div.xdsoft_option"),n=0;n<a.length&&a.eq(n).data("value")!==o;n+=1)i+=a[0].offsetHeight;return r.xdsoftScroller(M,i/(r.children()[0].offsetHeight-r[0].clientHeight)),t.stopPropagation(),!1}));var L=function(e){var t=e.originalEvent,a=t.touches?t.touches[0]:t;this.touchStartPosition=this.touchStartPosition||a;var n=Math.abs(this.touchStartPosition.clientX-a.clientX),r=Math.abs(this.touchStartPosition.clientY-a.clientY);Math.sqrt(n*n+r*r)>M.touchMovedThreshold&&(this.touchMoved=!0)};function E(){var e,a=!1;return M.startDate?a=w.strToDate(M.startDate):(a=M.value||(t&&t.val&&t.val()?t.val():""))?(a=w.strToDateTime(a),M.yearOffset&&(a=new Date(a.getFullYear()-M.yearOffset,a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()))):M.defaultDate&&(a=w.strToDateTime(M.defaultDate),M.defaultTime&&(e=w.strtotime(M.defaultTime),a.setHours(e.getHours()),a.setMinutes(e.getMinutes()))),a&&w.isValidDate(a)?W.data("changed",!0):a="",a||0}function R(n){var r=function(e,t){var a=e.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,"\\$1").replace(/_/g,"{digit+}").replace(/([0-9]{1})/g,"{digit$1}").replace(/\{digit([0-9]{1})\}/g,"[0-$1_]{1}").replace(/\{digit[\+]\}/g,"[0-9_]{1}");return new RegExp(a).test(t)},o=function(e,t){if(!(e="string"==typeof e||e instanceof String?n.ownerDocument.getElementById(e):e))return!1;if(e.createTextRange){var a=e.createTextRange();return a.collapse(!0),a.moveEnd("character",t),a.moveStart("character",t),a.select(),!0}return!!e.setSelectionRange&&(e.setSelectionRange(t,t),!0)};n.mask&&t.off("keydown.xdsoft"),!0===n.mask&&(a.formatMask?n.mask=a.formatMask(n.format):n.mask=n.format.replace(/Y/g,"9999").replace(/F/g,"9999").replace(/m/g,"19").replace(/d/g,"39").replace(/H/g,"29").replace(/i/g,"59").replace(/s/g,"59")),"string"===e.type(n.mask)&&(r(n.mask,t.val())||(t.val(n.mask.replace(/[0-9]/g,"_")),o(t[0],0)),t.on("paste.xdsoft",(function(a){var i=(a.clipboardData||a.originalEvent.clipboardData||window.clipboardData).getData("text"),s=this.value,d=this.selectionStart,u=s.substr(0,d),l=s.substr(d+i.length);return s=u+i+l,d+=i.length,r(n.mask,s)?(this.value=s,o(this,d)):""===e.trim(s)?this.value=n.mask.replace(/[0-9]/g,"_"):t.trigger("error_input.xdsoft"),a.preventDefault(),!1})),t.on("keydown.xdsoft",(function(a){var i,s=this.value,d=a.which,l=this.selectionStart,M=this.selectionEnd,w=l!==M;if(d>=48&&d<=57||d>=96&&d<=105||8===d||46===d){for(i=8===d||46===d?"_":String.fromCharCode(96<=d&&d<=105?d-48:d),8===d&&l&&!w&&(l-=1);;){var O=n.mask.substr(l,1),W=l<n.mask.length,_=l>0;if(!(/[^0-9_]/.test(O)&&W&&_))break;l+=8!==d||w?1:-1}if(a.metaKey&&(l=0,w=!0),w){var F=M-l,C=n.mask.replace(/[0-9]/g,"_"),P=C.substr(l,F).substr(1),Y=s.substr(0,l),A=i+P,H=s.substr(l+F);s=Y+A+H}else{var j=s.substr(0,l),J=i,z=s.substr(l+1);s=j+J+z}if(""===e.trim(s))s=C;else if(l===n.mask.length)return a.preventDefault(),!1;for(l+=8===d?0:1;/[^0-9_]/.test(n.mask.substr(l,1))&&l<n.mask.length&&l>0;)l+=8===d?0:1;r(n.mask,s)?(this.value=s,o(this,l)):""===e.trim(s)?this.value=n.mask.replace(/[0-9]/g,"_"):t.trigger("error_input.xdsoft")}else if(-1!==[v,b,k,x,T].indexOf(d)&&S||-1!==[c,h,p,m,g,y,u,D,f].indexOf(d))return!0;return a.preventDefault(),!1})))}C.find(".xdsoft_select").xdsoftScroller(M).on("touchstart mousedown.xdsoft",(function(e){var t=e.originalEvent;this.touchMoved=!1,this.touchStartPosition=t.touches?t.touches[0]:t,e.stopPropagation(),e.preventDefault()})).on("touchmove",".xdsoft_option",L).on("touchend mousedown.xdsoft",".xdsoft_option",(function(){if(!this.touchMoved){void 0!==w.currentTime&&null!==w.currentTime||(w.currentTime=w.now());var t=w.currentTime.getFullYear();w&&w.currentTime&&w.currentTime[e(this).parent().parent().hasClass("xdsoft_monthselect")?"setMonth":"setFullYear"](e(this).data("value")),e(this).parent().parent().hide(),W.trigger("xchange.xdsoft"),M.onChangeMonth&&e.isFunction(M.onChangeMonth)&&M.onChangeMonth.call(W,w.currentTime,W.data("input")),t!==w.currentTime.getFullYear()&&e.isFunction(M.onChangeYear)&&M.onChangeYear.call(W,w.currentTime,W.data("input"))}})),W.getValue=function(){return w.getCurrentTime()},W.setOptions=function(n){var r={};M=e.extend(!0,{},M,n),n.allowTimes&&e.isArray(n.allowTimes)&&n.allowTimes.length&&(M.allowTimes=e.extend(!0,[],n.allowTimes)),n.weekends&&e.isArray(n.weekends)&&n.weekends.length&&(M.weekends=e.extend(!0,[],n.weekends)),n.allowDates&&e.isArray(n.allowDates)&&n.allowDates.length&&(M.allowDates=e.extend(!0,[],n.allowDates)),n.allowDateRe&&"[object String]"===Object.prototype.toString.call(n.allowDateRe)&&(M.allowDateRe=new RegExp(n.allowDateRe)),n.highlightedDates&&e.isArray(n.highlightedDates)&&n.highlightedDates.length&&(e.each(n.highlightedDates,(function(t,n){var o,i=e.map(n.split(","),e.trim),s=new l(a.parseDate(i[0],M.formatDate),i[1],i[2]),d=a.formatDate(s.date,M.formatDate);void 0!==r[d]?(o=r[d].desc)&&o.length&&s.desc&&s.desc.length&&(r[d].desc=o+"\n"+s.desc):r[d]=s})),M.highlightedDates=e.extend(!0,[],r)),n.highlightedPeriods&&e.isArray(n.highlightedPeriods)&&n.highlightedPeriods.length&&(r=e.extend(!0,[],M.highlightedDates),e.each(n.highlightedPeriods,(function(t,n){var o,i,s,d,u,f,c;if(e.isArray(n))o=n[0],i=n[1],s=n[2],c=n[3];else{var m=e.map(n.split(","),e.trim);o=a.parseDate(m[0],M.formatDate),i=a.parseDate(m[1],M.formatDate),s=m[2],c=m[3]}for(;o<=i;)d=new l(o,s,c),u=a.formatDate(o,M.formatDate),o.setDate(o.getDate()+1),void 0!==r[u]?(f=r[u].desc)&&f.length&&d.desc&&d.desc.length&&(r[u].desc=f+"\n"+d.desc):r[u]=d})),M.highlightedDates=e.extend(!0,[],r)),n.disabledDates&&e.isArray(n.disabledDates)&&n.disabledDates.length&&(M.disabledDates=e.extend(!0,[],n.disabledDates)),n.disabledWeekDays&&e.isArray(n.disabledWeekDays)&&n.disabledWeekDays.length&&(M.disabledWeekDays=e.extend(!0,[],n.disabledWeekDays)),!M.open&&!M.opened||M.inline||t.trigger("open.xdsoft"),M.inline&&(I=!0,W.addClass("xdsoft_inline"),t.after(W).hide()),M.inverseButton&&(M.next="xdsoft_prev",M.prev="xdsoft_next"),M.datepicker?F.addClass("active"):F.removeClass("active"),M.timepicker?Y.addClass("active"):Y.removeClass("active"),M.value&&(w.setCurrentTime(M.value),t&&t.val&&t.val(w.str)),isNaN(M.dayOfWeekStart)?M.dayOfWeekStart=0:M.dayOfWeekStart=parseInt(M.dayOfWeekStart,10)%7,M.timepickerScrollbar||A.xdsoftScroller(M,"hide"),M.minDate&&/^[\+\-](.*)$/.test(M.minDate)&&(M.minDate=a.formatDate(w.strToDateTime(M.minDate),M.formatDate)),M.maxDate&&/^[\+\-](.*)$/.test(M.maxDate)&&(M.maxDate=a.formatDate(w.strToDateTime(M.maxDate),M.formatDate)),M.minDateTime&&/^\+(.*)$/.test(M.minDateTime)&&(M.minDateTime=w.strToDateTime(M.minDateTime).dateFormat(M.formatDate)),M.maxDateTime&&/^\+(.*)$/.test(M.maxDateTime)&&(M.maxDateTime=w.strToDateTime(M.maxDateTime).dateFormat(M.formatDate)),j.toggle(M.showApplyButton),C.find(".xdsoft_today_button").css("visibility",M.todayButton?"visible":"hidden"),C.find("."+M.prev).css("visibility",M.prevButton?"visible":"hidden"),C.find("."+M.next).css("visibility",M.nextButton?"visible":"hidden"),R(M),M.validateOnBlur&&t.off("blur.xdsoft").on("blur.xdsoft",(function(){if(M.allowBlank&&(!e.trim(e(this).val()).length||"string"==typeof M.mask&&e.trim(e(this).val())===M.mask.replace(/[0-9]/g,"_")))e(this).val(null),W.data("xdsoft_datetime").empty();else{var t=a.parseDate(e(this).val(),M.format);if(t)e(this).val(a.formatDate(t,M.format));else{var n=+[e(this).val()[0],e(this).val()[1]].join(""),r=+[e(this).val()[2],e(this).val()[3]].join("");!M.datepicker&&M.timepicker&&n>=0&&n<24&&r>=0&&r<60?e(this).val([n,r].map((function(e){return e>9?e:"0"+e})).join(":")):e(this).val(a.formatDate(w.now(),M.format))}W.data("xdsoft_datetime").setCurrentTime(e(this).val())}W.trigger("changedatetime.xdsoft"),W.trigger("close.xdsoft")})),M.dayOfWeekStartPrev=0===M.dayOfWeekStart?6:M.dayOfWeekStart-1,W.trigger("xchange.xdsoft").trigger("afterOpen.xdsoft")},W.data("options",M).on("touchstart mousedown.xdsoft",(function(e){return e.stopPropagation(),e.preventDefault(),z.hide(),J.hide(),!1})),A.append(H),A.xdsoftScroller(M),W.on("afterOpen.xdsoft",(function(){A.xdsoftScroller(M)})),W.append(F).append(Y),!0!==M.withoutCopyright&&W.append(_),F.append(C).append(P).append(j),M.insideParent?e(t).parent().append(W):e(M.parentID).append(W),w=new function(){var t=this;t.now=function(e){var a,n,r=new Date;return!e&&M.defaultDate&&(a=t.strToDateTime(M.defaultDate),r.setFullYear(a.getFullYear()),r.setMonth(a.getMonth()),r.setDate(a.getDate())),r.setFullYear(r.getFullYear()),!e&&M.defaultTime&&(n=t.strtotime(M.defaultTime),r.setHours(n.getHours()),r.setMinutes(n.getMinutes()),r.setSeconds(n.getSeconds()),r.setMilliseconds(n.getMilliseconds())),r},t.isValidDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())},t.setCurrentTime=function(e,a){"string"==typeof e?t.currentTime=t.strToDateTime(e):t.isValidDate(e)?t.currentTime=e:e||a||!M.allowBlank||M.inline?t.currentTime=t.now():t.currentTime=null,W.trigger("xchange.xdsoft")},t.empty=function(){t.currentTime=null},t.getCurrentTime=function(){return t.currentTime},t.nextMonth=function(){void 0!==t.currentTime&&null!==t.currentTime||(t.currentTime=t.now());var a,n=t.currentTime.getMonth()+1;return 12===n&&(t.currentTime.setFullYear(t.currentTime.getFullYear()+1),n=0),a=t.currentTime.getFullYear(),t.currentTime.setDate(Math.min(new Date(t.currentTime.getFullYear(),n+1,0).getDate(),t.currentTime.getDate())),t.currentTime.setMonth(n),M.onChangeMonth&&e.isFunction(M.onChangeMonth)&&M.onChangeMonth.call(W,w.currentTime,W.data("input")),a!==t.currentTime.getFullYear()&&e.isFunction(M.onChangeYear)&&M.onChangeYear.call(W,w.currentTime,W.data("input")),W.trigger("xchange.xdsoft"),n},t.prevMonth=function(){void 0!==t.currentTime&&null!==t.currentTime||(t.currentTime=t.now());var a=t.currentTime.getMonth()-1;return-1===a&&(t.currentTime.setFullYear(t.currentTime.getFullYear()-1),a=11),t.currentTime.setDate(Math.min(new Date(t.currentTime.getFullYear(),a+1,0).getDate(),t.currentTime.getDate())),t.currentTime.setMonth(a),M.onChangeMonth&&e.isFunction(M.onChangeMonth)&&M.onChangeMonth.call(W,w.currentTime,W.data("input")),W.trigger("xchange.xdsoft"),a},t.getWeekOfYear=function(t){if(M.onGetWeekOfYear&&e.isFunction(M.onGetWeekOfYear)){var a=M.onGetWeekOfYear.call(W,t);if(void 0!==a)return a}var n=new Date(t.getFullYear(),0,1);return 4!==n.getDay()&&n.setMonth(0,1+(4-n.getDay()+7)%7),Math.ceil(((t-n)/864e5+n.getDay()+1)/7)},t.strToDateTime=function(e){var n,r,o=[];return e&&e instanceof Date&&t.isValidDate(e)?e:((o=/^([+-]{1})(.*)$/.exec(e))&&(o[2]=a.parseDate(o[2],M.formatDate)),o&&o[2]?(n=o[2].getTime()-6e4*o[2].getTimezoneOffset(),r=new Date(t.now(!0).getTime()+parseInt(o[1]+"1",10)*n)):r=e?a.parseDate(e,M.format):t.now(),t.isValidDate(r)||(r=t.now()),r)},t.strToDate=function(e){if(e&&e instanceof Date&&t.isValidDate(e))return e;var n=e?a.parseDate(e,M.formatDate):t.now(!0);return t.isValidDate(n)||(n=t.now(!0)),n},t.strtotime=function(e){if(e&&e instanceof Date&&t.isValidDate(e))return e;var n=e?a.parseDate(e,M.formatTime):t.now(!0);return t.isValidDate(n)||(n=t.now(!0)),n},t.str=function(){var e=M.format;return M.yearOffset&&(e=(e=e.replace("Y",t.currentTime.getFullYear()+M.yearOffset)).replace("y",String(t.currentTime.getFullYear()+M.yearOffset).substring(2,4))),a.formatDate(t.currentTime,e)},t.currentTime=this.now()},j.on("touchend click",(function(e){e.preventDefault(),W.data("changed",!0),w.setCurrentTime(E()),t.val(w.str()),W.trigger("close.xdsoft")})),C.find(".xdsoft_today_button").on("touchend mousedown.xdsoft",(function(){W.data("changed",!0),w.setCurrentTime(0,!0),W.trigger("afterOpen.xdsoft")})).on("dblclick.xdsoft",(function(){var e,a,n=w.getCurrentTime();n=new Date(n.getFullYear(),n.getMonth(),n.getDate()),e=w.strToDate(M.minDate),n<(e=new Date(e.getFullYear(),e.getMonth(),e.getDate()))||(a=w.strToDate(M.maxDate),n>(a=new Date(a.getFullYear(),a.getMonth(),a.getDate()))||(t.val(w.str()),t.trigger("change"),W.trigger("close.xdsoft")))})),C.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",(function(){var t=e(this),a=0,n=!1;!function e(r){t.hasClass(M.next)?w.nextMonth():t.hasClass(M.prev)&&w.prevMonth(),M.monthChangeSpinner&&(n||(a=setTimeout(e,r||100)))}(500),e([M.ownerDocument.body,M.contentWindow]).on("touchend mouseup.xdsoft",(function t(){clearTimeout(a),n=!0,e([M.ownerDocument.body,M.contentWindow]).off("touchend mouseup.xdsoft",t)}))})),Y.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",(function(){var t=e(this),a=0,n=!1,r=110;!function e(o){var i=A[0].clientHeight,s=H[0].offsetHeight,d=Math.abs(parseInt(H.css("marginTop"),10));t.hasClass(M.next)&&s-i-M.timeHeightInTimePicker>=d?H.css("marginTop","-"+(d+M.timeHeightInTimePicker)+"px"):t.hasClass(M.prev)&&d-M.timeHeightInTimePicker>=0&&H.css("marginTop","-"+(d-M.timeHeightInTimePicker)+"px"),A.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(H[0].style.marginTop,10)/(s-i))]),r=r>10?10:r-10,n||(a=setTimeout(e,o||r))}(500),e([M.ownerDocument.body,M.contentWindow]).on("touchend mouseup.xdsoft",(function t(){clearTimeout(a),n=!0,e([M.ownerDocument.body,M.contentWindow]).off("touchend mouseup.xdsoft",t)}))})),o=0,W.on("xchange.xdsoft",(function(i){clearTimeout(o),o=setTimeout((function(){void 0!==w.currentTime&&null!==w.currentTime||(w.currentTime=w.now());for(var o,i,s,d,u,l,f,c,m,h,g="",p=new Date(w.currentTime.getFullYear(),w.currentTime.getMonth(),1,12,0,0),D=0,y=w.now(),v=!1,b=!1,k=!1,x=!1,T=[],S=!0,O="";p.getDay()!==M.dayOfWeekStart;)p.setDate(p.getDate()-1);for(g+="<table><thead><tr>",M.weeks&&(g+="<th></th>"),o=0;o<7;o+=1)g+="<th>"+M.i18n[r].dayOfWeekShort[(o+M.dayOfWeekStart)%7]+"</th>";for(g+="</tr></thead>",g+="<tbody>",!1!==M.maxDate&&(v=w.strToDate(M.maxDate),v=new Date(v.getFullYear(),v.getMonth(),v.getDate(),23,59,59,999)),!1!==M.minDate&&(b=w.strToDate(M.minDate),b=new Date(b.getFullYear(),b.getMonth(),b.getDate())),!1!==M.minDateTime&&(k=w.strToDate(M.minDateTime),k=new Date(k.getFullYear(),k.getMonth(),k.getDate(),k.getHours(),k.getMinutes(),k.getSeconds())),!1!==M.maxDateTime&&(x=w.strToDate(M.maxDateTime),x=new Date(x.getFullYear(),x.getMonth(),x.getDate(),x.getHours(),x.getMinutes(),x.getSeconds())),!1!==x&&(h=31*(12*x.getFullYear()+x.getMonth())+x.getDate());D<w.currentTime.countDaysInMonth()||p.getDay()!==M.dayOfWeekStart||w.currentTime.getMonth()===p.getMonth();){T=[],D+=1,s=p.getDay(),d=p.getDate(),u=p.getFullYear(),A=p.getMonth(),l=w.getWeekOfYear(p),m="",T.push("xdsoft_date"),f=M.beforeShowDay&&e.isFunction(M.beforeShowDay.call)?M.beforeShowDay.call(W,p):null,M.allowDateRe&&"[object RegExp]"===Object.prototype.toString.call(M.allowDateRe)&&(M.allowDateRe.test(a.formatDate(p,M.formatDate))||T.push("xdsoft_disabled")),M.allowDates&&M.allowDates.length>0&&-1===M.allowDates.indexOf(a.formatDate(p,M.formatDate))&&T.push("xdsoft_disabled");var _=31*(12*p.getFullYear()+p.getMonth())+p.getDate();(!1!==v&&p>v||!1!==k&&p<k||!1!==b&&p<b||!1!==x&&_>h||f&&!1===f[0])&&T.push("xdsoft_disabled"),-1!==M.disabledDates.indexOf(a.formatDate(p,M.formatDate))&&T.push("xdsoft_disabled"),-1!==M.disabledWeekDays.indexOf(s)&&T.push("xdsoft_disabled"),t.is("[disabled]")&&T.push("xdsoft_disabled"),f&&""!==f[1]&&T.push(f[1]),w.currentTime.getMonth()!==A&&T.push("xdsoft_other_month"),(M.defaultSelect||W.data("changed"))&&a.formatDate(w.currentTime,M.formatDate)===a.formatDate(p,M.formatDate)&&T.push("xdsoft_current"),a.formatDate(y,M.formatDate)===a.formatDate(p,M.formatDate)&&T.push("xdsoft_today"),0!==p.getDay()&&6!==p.getDay()&&-1===M.weekends.indexOf(a.formatDate(p,M.formatDate))||T.push("xdsoft_weekend"),void 0!==M.highlightedDates[a.formatDate(p,M.formatDate)]&&(i=M.highlightedDates[a.formatDate(p,M.formatDate)],T.push(void 0===i.style?"xdsoft_highlighted_default":i.style),m=void 0===i.desc?"":i.desc),M.beforeShowDay&&e.isFunction(M.beforeShowDay)&&T.push(M.beforeShowDay(p)),S&&(g+="<tr>",S=!1,M.weeks&&(g+="<th>"+l+"</th>")),g+='<td data-date="'+d+'" data-month="'+A+'" data-year="'+u+'" class="xdsoft_date xdsoft_day_of_week'+p.getDay()+" "+T.join(" ")+'" title="'+m+'"><div>'+d+"</div></td>",p.getDay()===M.dayOfWeekStartPrev&&(g+="</tr>",S=!0),p.setDate(d+1)}g+="</tbody></table>",P.html(g),C.find(".xdsoft_label span").eq(0).text(M.i18n[r].months[w.currentTime.getMonth()]),C.find(".xdsoft_label span").eq(1).text(w.currentTime.getFullYear()+M.yearOffset),O="",A="";var F=0;if(!1!==M.minTime){var Y=w.strtotime(M.minTime);F=60*Y.getHours()+Y.getMinutes()}var A,j=1440;(!1!==M.maxTime&&(Y=w.strtotime(M.maxTime),j=60*Y.getHours()+Y.getMinutes()),!1!==M.minDateTime&&(Y=w.strToDateTime(M.minDateTime),a.formatDate(w.currentTime,M.formatDate)===a.formatDate(Y,M.formatDate)&&(A=60*Y.getHours()+Y.getMinutes())>F&&(F=A)),!1!==M.maxDateTime)&&(Y=w.strToDateTime(M.maxDateTime),a.formatDate(w.currentTime,M.formatDate)===a.formatDate(Y,M.formatDate)&&(A=60*Y.getHours()+Y.getMinutes())<j&&(j=A));if(c=function(n,r){var o,i=w.now(),s=M.allowTimes&&e.isArray(M.allowTimes)&&M.allowTimes.length;i.setHours(n),n=parseInt(i.getHours(),10),i.setMinutes(r),r=parseInt(i.getMinutes(),10),T=[];var d=60*n+r;(t.is("[disabled]")||d>=j||d<F)&&T.push("xdsoft_disabled"),(o=new Date(w.currentTime)).setHours(parseInt(w.currentTime.getHours(),10)),s||o.setMinutes(Math[M.roundTime](w.currentTime.getMinutes()/M.step)*M.step),(M.initTime||M.defaultSelect||W.data("changed"))&&o.getHours()===parseInt(n,10)&&(!s&&M.step>59||o.getMinutes()===parseInt(r,10))&&(M.defaultSelect||W.data("changed")?T.push("xdsoft_current"):M.initTime&&T.push("xdsoft_init_time")),parseInt(y.getHours(),10)===parseInt(n,10)&&parseInt(y.getMinutes(),10)===parseInt(r,10)&&T.push("xdsoft_today"),O+='<div class="xdsoft_time '+T.join(" ")+'" data-hour="'+n+'" data-minute="'+r+'">'+a.formatDate(i,M.formatTime)+"</div>"},M.allowTimes&&e.isArray(M.allowTimes)&&M.allowTimes.length)for(D=0;D<M.allowTimes.length;D+=1)c(w.strtotime(M.allowTimes[D]).getHours(),A=w.strtotime(M.allowTimes[D]).getMinutes());else for(D=0,o=0;D<(M.hours12?12:24);D+=1)for(o=0;o<60;o+=M.step){var I=60*D+o;I<F||I>=j||c((D<10?"0":"")+D,A=(o<10?"0":"")+o)}for(H.html(O),n="",D=parseInt(M.yearStart,10);D<=parseInt(M.yearEnd,10);D+=1)n+='<div class="xdsoft_option '+(w.currentTime.getFullYear()===D?"xdsoft_current":"")+'" data-value="'+D+'">'+(D+M.yearOffset)+"</div>";for(z.children().eq(0).html(n),D=parseInt(M.monthStart,10),n="";D<=parseInt(M.monthEnd,10);D+=1)n+='<div class="xdsoft_option '+(w.currentTime.getMonth()===D?"xdsoft_current":"")+'" data-value="'+D+'">'+M.i18n[r].months[D]+"</div>";J.children().eq(0).html(n),e(W).trigger("generate.xdsoft")}),10),i.stopPropagation()})).on("afterOpen.xdsoft",(function(){var e,t,a,n;M.timepicker&&(H.find(".xdsoft_current").length?e=".xdsoft_current":H.find(".xdsoft_init_time").length&&(e=".xdsoft_init_time"),e?(t=A[0].clientHeight,(a=H[0].offsetHeight)-t<(n=H.find(e).index()*M.timeHeightInTimePicker+1)&&(n=a-t),A.trigger("scroll_element.xdsoft_scroller",[parseInt(n,10)/(a-t)])):A.trigger("scroll_element.xdsoft_scroller",[0]))})),i=0,P.on("touchend click.xdsoft","td",(function(a){a.stopPropagation(),i+=1;var n=e(this),r=w.currentTime;if(null==r&&(w.currentTime=w.now(),r=w.currentTime),n.hasClass("xdsoft_disabled"))return!1;r.setDate(1),r.setFullYear(n.data("year")),r.setMonth(n.data("month")),r.setDate(n.data("date")),W.trigger("select.xdsoft",[r]),t.val(w.str()),M.onSelectDate&&e.isFunction(M.onSelectDate)&&M.onSelectDate.call(W,w.currentTime,W.data("input"),a),W.data("changed",!0),W.trigger("xchange.xdsoft"),W.trigger("changedatetime.xdsoft"),(i>1||!0===M.closeOnDateSelect||!1===M.closeOnDateSelect&&!M.timepicker)&&!M.inline&&W.trigger("close.xdsoft"),setTimeout((function(){i=0}),200)})),H.on("touchstart","div",(function(e){this.touchMoved=!1})).on("touchmove","div",L).on("touchend click.xdsoft","div",(function(t){if(!this.touchMoved){t.stopPropagation();var a=e(this),n=w.currentTime;if(null==n&&(w.currentTime=w.now(),n=w.currentTime),a.hasClass("xdsoft_disabled"))return!1;n.setHours(a.data("hour")),n.setMinutes(a.data("minute")),W.trigger("select.xdsoft",[n]),W.data("input").val(w.str()),M.onSelectTime&&e.isFunction(M.onSelectTime)&&M.onSelectTime.call(W,w.currentTime,W.data("input"),t),W.data("changed",!0),W.trigger("xchange.xdsoft"),W.trigger("changedatetime.xdsoft"),!0!==M.inline&&!0===M.closeOnTimeSelect&&W.trigger("close.xdsoft")}})),F.on("mousewheel.xdsoft",(function(e){return!M.scrollMonth||(e.deltaY<0?w.nextMonth():w.prevMonth(),!1)})),t.on("mousewheel.xdsoft",(function(e){return!M.scrollInput||(!M.datepicker&&M.timepicker?((s=H.find(".xdsoft_current").length?H.find(".xdsoft_current").eq(0).index():0)+e.deltaY>=0&&s+e.deltaY<H.children().length&&(s+=e.deltaY),H.children().eq(s).length&&H.children().eq(s).trigger("mousedown"),!1):M.datepicker&&!M.timepicker?(F.trigger(e,[e.deltaY,e.deltaX,e.deltaY]),t.val&&t.val(w.str()),W.trigger("changedatetime.xdsoft"),!1):void 0)})),W.on("changedatetime.xdsoft",(function(t){if(M.onChangeDateTime&&e.isFunction(M.onChangeDateTime)){var a=W.data("input");M.onChangeDateTime.call(W,w.currentTime,a,t),delete M.value,a.trigger("change")}})).on("generate.xdsoft",(function(){M.onGenerate&&e.isFunction(M.onGenerate)&&M.onGenerate.call(W,w.currentTime,W.data("input")),I&&(W.trigger("afterOpen.xdsoft"),I=!1)})).on("click.xdsoft",(function(e){e.stopPropagation()})),s=0,O=function(e,t){do{if(!(e=e.parentNode)||!1===t(e))break}while("HTML"!==e.nodeName)},d=function(){var t,a,n,r,o,i,s,d,u,l,f,c,m;if(t=(d=W.data("input")).offset(),a=d[0],l="top",n=t.top+a.offsetHeight-1,r=t.left,o="absolute",u=e(M.contentWindow).width(),c=e(M.contentWindow).height(),m=e(M.contentWindow).scrollTop(),M.ownerDocument.documentElement.clientWidth-t.left<F.parent().outerWidth(!0)){var h=F.parent().outerWidth(!0)-a.offsetWidth;r-=h}"rtl"===d.parent().css("direction")&&(r-=W.outerWidth()-d.outerWidth()),M.fixed?(n-=m,r-=e(M.contentWindow).scrollLeft(),o="fixed"):(s=!1,O(a,(function(e){return null!==e&&("fixed"===M.contentWindow.getComputedStyle(e).getPropertyValue("position")?(s=!0,!1):void 0)})),s&&!M.insideParent?(o="fixed",n+W.outerHeight()>c+m?(l="bottom",n=c+m-t.top):n-=m):n+W[0].offsetHeight>c+m&&(n=t.top-W[0].offsetHeight+1),n<0&&(n=0),r+a.offsetWidth>u&&(r=u-a.offsetWidth)),i=W[0],O(i,(function(e){if("relative"===M.contentWindow.getComputedStyle(e).getPropertyValue("position")&&u>=e.offsetWidth)return r-=(u-e.offsetWidth)/2,!1})),f={position:o,left:M.insideParent?a.offsetLeft:r,top:"",bottom:""},M.insideParent?f[l]=a.offsetTop+a.offsetHeight:f[l]=n,W.css(f)},W.on("open.xdsoft",(function(t){var a=!0;M.onShow&&e.isFunction(M.onShow)&&(a=M.onShow.call(W,w.currentTime,W.data("input"),t)),!1!==a&&(W.show(),d(),e(M.contentWindow).off("resize.xdsoft",d).on("resize.xdsoft",d),M.closeOnWithoutClick&&e([M.ownerDocument.body,M.contentWindow]).on("touchstart mousedown.xdsoft",(function t(){W.trigger("close.xdsoft"),e([M.ownerDocument.body,M.contentWindow]).off("touchstart mousedown.xdsoft",t)})))})).on("close.xdsoft",(function(t){var a=!0;C.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide(),M.onClose&&e.isFunction(M.onClose)&&(a=M.onClose.call(W,w.currentTime,W.data("input"),t)),!1===a||M.opened||M.inline||W.hide(),t.stopPropagation()})).on("toggle.xdsoft",(function(){W.is(":visible")?W.trigger("close.xdsoft"):W.trigger("open.xdsoft")})).data("input",t),N=0,W.data("xdsoft_datetime",w),W.setOptions(M),w.setCurrentTime(E()),t.data("xdsoft_datetimepicker",W).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",(function(){t.is(":disabled")||t.data("xdsoft_datetimepicker").is(":visible")&&M.closeOnInputClick||M.openOnFocus&&(clearTimeout(N),N=setTimeout((function(){t.is(":disabled")||(I=!0,w.setCurrentTime(E(),!0),M.mask&&R(M),W.trigger("open.xdsoft"))}),100))})).on("keydown.xdsoft",(function(t){var a,n=t.which;return-1!==[f].indexOf(n)&&M.enterLikeTab?(a=e("input:visible,textarea:visible,button:visible,a:visible"),W.trigger("close.xdsoft"),a.eq(a.index(this)+1).focus(),!1):-1!==[D].indexOf(n)?(W.trigger("close.xdsoft"),!0):void 0})).on("blur.xdsoft",(function(){W.trigger("close.xdsoft")}))},s=function(t){var a=t.data("xdsoft_datetimepicker");a&&(a.data("xdsoft_datetime",null),a.remove(),t.data("xdsoft_datetimepicker",null).off(".xdsoft"),e(M.contentWindow).off("resize.xdsoft"),e([M.contentWindow,M.ownerDocument.body]).off("mousedown.xdsoft touchstart"),t.unmousewheel&&t.unmousewheel())},e(M.ownerDocument).off("keydown.xdsoftctrl keyup.xdsoftctrl").off("keydown.xdsoftcmd keyup.xdsoftcmd").on("keydown.xdsoftctrl",(function(e){e.keyCode===u&&(S=!0)})).on("keyup.xdsoftctrl",(function(e){e.keyCode===u&&(S=!1)})).on("keydown.xdsoftcmd",(function(e){e.keyCode})).on("keyup.xdsoftcmd",(function(e){e.keyCode})),this.each((function(){var t,r=e(this).data("xdsoft_datetimepicker");if(r){if("string"===e.type(n))switch(n){case"show":e(this).select().focus(),r.trigger("open.xdsoft");break;case"hide":r.trigger("close.xdsoft");break;case"toggle":r.trigger("toggle.xdsoft");break;case"destroy":s(e(this));break;case"reset":this.value=this.defaultValue,this.value&&r.data("xdsoft_datetime").isValidDate(a.parseDate(this.value,M.format))||r.data("changed",!1),r.data("xdsoft_datetime").setCurrentTime(this.value);break;case"validate":r.data("input").trigger("blur.xdsoft");break;default:r[n]&&e.isFunction(r[n])&&(d=r[n](o))}else r.setOptions(n);return 0}"string"!==e.type(n)&&(!M.lazyInit||M.open||M.inline?i(e(this)):(t=e(this)).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",(function e(){t.is(":disabled")||t.data("xdsoft_datetimepicker")||(clearTimeout(w),w=setTimeout((function(){t.data("xdsoft_datetimepicker")||i(t),t.off("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",e).trigger("open.xdsoft")}),100))})))})),d},e.fn.datetimepicker.defaults=t};!function(e){"function"==typeof define&&define.amd?define(["jquery","jquery-mousewheel"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(datetimepickerFactory),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}((function(e){var t,a,n=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],o=Array.prototype.slice;if(e.event.fixHooks)for(var i=n.length;i;)e.event.fixHooks[n[--i]]=e.event.mouseHooks;var s=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=r.length;t;)this.addEventListener(r[--t],d,!1);else this.onmousewheel=d;e.data(this,"mousewheel-line-height",s.getLineHeight(this)),e.data(this,"mousewheel-page-height",s.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=r.length;t;)this.removeEventListener(r[--t],d,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var a=e(t),n=a["offsetParent"in e.fn?"offsetParent":"parent"]();return n.length||(n=e("body")),parseInt(n.css("fontSize"),10)||parseInt(a.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function d(n){var r,i=n||window.event,d=o.call(arguments,1),f=0,c=0,m=0,h=0,g=0;if((n=e.event.fix(i)).type="mousewheel","detail"in i&&(m=-1*i.detail),"wheelDelta"in i&&(m=i.wheelDelta),"wheelDeltaY"in i&&(m=i.wheelDeltaY),"wheelDeltaX"in i&&(c=-1*i.wheelDeltaX),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(c=-1*m,m=0),f=0===m?c:m,"deltaY"in i&&(f=m=-1*i.deltaY),"deltaX"in i&&(c=i.deltaX,0===m&&(f=-1*c)),0!==m||0!==c){if(1===i.deltaMode){var p=e.data(this,"mousewheel-line-height");f*=p,m*=p,c*=p}else if(2===i.deltaMode){var D=e.data(this,"mousewheel-page-height");f*=D,m*=D,c*=D}if(r=Math.max(Math.abs(m),Math.abs(c)),(!a||r<a)&&(a=r,l(i,r)&&(a/=40)),l(i,r)&&(f/=40,c/=40,m/=40),f=Math[f>=1?"floor":"ceil"](f/a),c=Math[c>=1?"floor":"ceil"](c/a),m=Math[m>=1?"floor":"ceil"](m/a),s.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();h=n.clientX-y.left,g=n.clientY-y.top}return n.deltaX=c,n.deltaY=m,n.deltaFactor=a,n.offsetX=h,n.offsetY=g,n.deltaMode=0,d.unshift(n,f,c,m),t&&clearTimeout(t),t=setTimeout(u,200),(e.event.dispatch||e.event.handle).apply(this,d)}}function u(){a=null}function l(e,t){return s.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}));
2
+ !function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof module&&module.exports?module.exports=t():e.DateFormatter=t()}("undefined"!=typeof self?self:this,function(){var e,t;return t={DAY:864e5,HOUR:3600,defaults:{dateSettings:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["AM","PM"],ordinal:function(e){var t=e%10,a={1:"st",2:"nd",3:"rd"};return 1!==Math.floor(e%100/10)&&a[t]?a[t]:"th"}},separators:/[ \-+\/.:@]/g,validParts:/[dDjlNSwzWFmMntLoYyaABgGhHisueTIOPZcrU]/g,intParts:/[djwNzmnyYhHgGis]/g,tzParts:/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,tzClip:/[^-+\dA-Z]/g},getInt:function(e,t){return parseInt(e,t||10)},compare:function(e,t){return"string"==typeof e&&"string"==typeof t&&e.toLowerCase()===t.toLowerCase()},lpad:function(e,a,n){var r=e.toString();return n=n||"0",r.length<a?t.lpad(n+r,a):r},merge:function(e){var a,n;for(e=e||{},a=1;a<arguments.length;a++)if(n=arguments[a])for(var r in n)n.hasOwnProperty(r)&&("object"==typeof n[r]?t.merge(e[r],n[r]):e[r]=n[r]);return e},getIndex:function(e,t){for(var a=0;a<t.length;a++)if(t[a].toLowerCase()===e.toLowerCase())return a;return-1}},(e=function(e){var a=this,n=t.merge(t.defaults,e);a.dateSettings=n.dateSettings,a.separators=n.separators,a.validParts=n.validParts,a.intParts=n.intParts,a.tzParts=n.tzParts,a.tzClip=n.tzClip}).prototype={constructor:e,getMonth:function(e){var a;return 0===(a=t.getIndex(e,this.dateSettings.monthsShort)+1)&&(a=t.getIndex(e,this.dateSettings.months)+1),a},parseDate:function(e,a){var n,r,o,i,s,d,u,l,f,c,m=this,h=!1,g=!1,p=m.dateSettings,D={date:null,year:null,month:null,day:null,hour:0,min:0,sec:0};if(!e)return null;if(e instanceof Date)return e;if("U"===a)return(o=t.getInt(e))?new Date(1e3*o):e;switch(typeof e){case"number":return new Date(e);case"string":break;default:return null}if(!(n=a.match(m.validParts))||0===n.length)throw new Error("Invalid date format definition.");for(o=n.length-1;o>=0;o--)"S"===n[o]&&n.splice(o,1);for(r=e.replace(m.separators,"\0").split("\0"),o=0;o<r.length;o++)switch(i=r[o],s=t.getInt(i),n[o]){case"y":case"Y":if(!s)return null;f=i.length,D.year=2===f?t.getInt((70>s?"20":"19")+i):s,h=!0;break;case"m":case"n":case"M":case"F":if(isNaN(s)){if(!((d=m.getMonth(i))>0))return null;D.month=d}else{if(!(s>=1&&12>=s))return null;D.month=s}h=!0;break;case"d":case"j":if(!(s>=1&&31>=s))return null;D.day=s,h=!0;break;case"g":case"h":if(c=r[u=n.indexOf("a")>-1?n.indexOf("a"):n.indexOf("A")>-1?n.indexOf("A"):-1],-1!==u)l=t.compare(c,p.meridiem[0])?0:t.compare(c,p.meridiem[1])?12:-1,s>=1&&12>=s&&-1!==l?D.hour=s%12==0?l:s+l:s>=0&&23>=s&&(D.hour=s);else{if(!(s>=0&&23>=s))return null;D.hour=s}g=!0;break;case"G":case"H":if(!(s>=0&&23>=s))return null;D.hour=s,g=!0;break;case"i":if(!(s>=0&&59>=s))return null;D.min=s,g=!0;break;case"s":if(!(s>=0&&59>=s))return null;D.sec=s,g=!0}if(!0===h){var y=D.year||0,v=D.month?D.month-1:0,b=D.day||1;D.date=new Date(y,v,b,D.hour,D.min,D.sec,0)}else{if(!0!==g)return null;D.date=new Date(0,0,0,D.hour,D.min,D.sec,0)}return D.date},guessDate:function(e,a){if("string"!=typeof e)return e;var n,r,o,i,s,d,u=e.replace(this.separators,"\0").split("\0"),l=a.match(this.validParts),f=new Date,c=0;if(!/^[djmn]/g.test(l[0]))return e;for(o=0;o<u.length;o++){if(c=2,s=u[o],d=t.getInt(s.substr(0,2)),isNaN(d))return null;switch(o){case 0:"m"===l[0]||"n"===l[0]?f.setMonth(d-1):f.setDate(d);break;case 1:"m"===l[0]||"n"===l[0]?f.setDate(d):f.setMonth(d-1);break;case 2:if(r=f.getFullYear(),c=4>(n=s.length)?n:4,!(r=t.getInt(4>n?r.toString().substr(0,4-n)+s:s.substr(0,4))))return null;f.setFullYear(r);break;case 3:f.setHours(d);break;case 4:f.setMinutes(d);break;case 5:f.setSeconds(d)}(i=s.substr(c)).length>0&&u.splice(o+1,0,i)}return f},parseFormat:function(e,a){var n,r=this,o=r.dateSettings,i=/\\?(.?)/gi,s=function(e,t){return n[e]?n[e]():t};return n={d:function(){return t.lpad(n.j(),2)},D:function(){return o.daysShort[n.w()]},j:function(){return a.getDate()},l:function(){return o.days[n.w()]},N:function(){return n.w()||7},w:function(){return a.getDay()},z:function(){var e=new Date(n.Y(),n.n()-1,n.j()),a=new Date(n.Y(),0,1);return Math.round((e-a)/t.DAY)},W:function(){var e=new Date(n.Y(),n.n()-1,n.j()-n.N()+3),a=new Date(e.getFullYear(),0,4);return t.lpad(1+Math.round((e-a)/t.DAY/7),2)},F:function(){return o.months[a.getMonth()]},m:function(){return t.lpad(n.n(),2)},M:function(){return o.monthsShort[a.getMonth()]},n:function(){return a.getMonth()+1},t:function(){return new Date(n.Y(),n.n(),0).getDate()},L:function(){var e=n.Y();return e%4==0&&e%100!=0||e%400==0?1:0},o:function(){var e=n.n(),t=n.W();return n.Y()+(12===e&&9>t?1:1===e&&t>9?-1:0)},Y:function(){return a.getFullYear()},y:function(){return n.Y().toString().slice(-2)},a:function(){return n.A().toLowerCase()},A:function(){var e=n.G()<12?0:1;return o.meridiem[e]},B:function(){var e=a.getUTCHours()*t.HOUR,n=60*a.getUTCMinutes(),r=a.getUTCSeconds();return t.lpad(Math.floor((e+n+r+t.HOUR)/86.4)%1e3,3)},g:function(){return n.G()%12||12},G:function(){return a.getHours()},h:function(){return t.lpad(n.g(),2)},H:function(){return t.lpad(n.G(),2)},i:function(){return t.lpad(a.getMinutes(),2)},s:function(){return t.lpad(a.getSeconds(),2)},u:function(){return t.lpad(1e3*a.getMilliseconds(),6)},e:function(){return/\((.*)\)/.exec(String(a))[1]||"Coordinated Universal Time"},I:function(){return new Date(n.Y(),0)-Date.UTC(n.Y(),0)!==new Date(n.Y(),6)-Date.UTC(n.Y(),6)?1:0},O:function(){var e=a.getTimezoneOffset(),n=Math.abs(e);return(e>0?"-":"+")+t.lpad(100*Math.floor(n/60)+n%60,4)},P:function(){var e=n.O();return e.substr(0,3)+":"+e.substr(3,2)},T:function(){return(String(a).match(r.tzParts)||[""]).pop().replace(r.tzClip,"")||"UTC"},Z:function(){return 60*-a.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(i,s)},r:function(){return"D, d M Y H:i:s O".replace(i,s)},U:function(){return a.getTime()/1e3||0}},s(e,e)},formatDate:function(e,a){var n,r,o,i,s,d=this,u="";if("string"==typeof e&&!(e=d.parseDate(e,a)))return null;if(e instanceof Date){for(o=a.length,n=0;o>n;n++)"S"!==(s=a.charAt(n))&&"\\"!==s&&(n>0&&"\\"===a.charAt(n-1)?u+=s:(i=d.parseFormat(s,e),n!==o-1&&d.intParts.test(s)&&"S"===a.charAt(n+1)&&(r=t.getInt(i)||0,i+=d.dateSettings.ordinal(r)),u+=i));return u}return""}},e});var datetimepickerFactory=function(e){"use strict";var t={i18n:{ar:{months:["كانون الثاني","شباط","آذار","نيسان","مايو","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],dayOfWeekShort:["ن","ث","ع","خ","ج","س","ح"],dayOfWeek:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت","الأحد"]},ro:{months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],dayOfWeekShort:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],dayOfWeek:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă"]},id:{months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],dayOfWeekShort:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],dayOfWeek:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},is:{months:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],dayOfWeekShort:["Sun","Mán","Þrið","Mið","Fim","Fös","Lau"],dayOfWeek:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"]},bg:{months:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],dayOfWeekShort:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"]},fa:{months:["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"],dayOfWeekShort:["یکشنبه","دوشنبه","سه شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],dayOfWeek:["یک‌شنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنج‌شنبه","جمعه","شنبه","یک‌شنبه"]},ru:{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],dayOfWeekShort:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},uk:{months:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],dayOfWeekShort:["Ндл","Пнд","Втр","Срд","Чтв","Птн","Сбт"],dayOfWeek:["Неділя","Понеділок","Вівторок","Середа","Четвер","П'ятниця","Субота"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},el:{months:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],dayOfWeekShort:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"],dayOfWeek:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},de:{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],dayOfWeekShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayOfWeek:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},nl:{months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],dayOfWeekShort:["zo","ma","di","wo","do","vr","za"],dayOfWeek:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},tr:{months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],dayOfWeekShort:["Paz","Pts","Sal","Çar","Per","Cum","Cts"],dayOfWeek:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},fr:{months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],dayOfWeekShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dayOfWeek:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},es:{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],dayOfWeekShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],dayOfWeek:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"]},th:{months:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],dayOfWeekShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayOfWeek:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัส","ศุกร์","เสาร์","อาทิตย์"]},pl:{months:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],dayOfWeekShort:["nd","pn","wt","śr","cz","pt","sb"],dayOfWeek:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},pt:{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},ch:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"]},se:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"]},km:{months:["មករា​","កុម្ភៈ","មិនា​","មេសា​","ឧសភា​","មិថុនា​","កក្កដា​","សីហា​","កញ្ញា​","តុលា​","វិច្ឆិកា","ធ្នូ​"],dayOfWeekShort:["អាទិ​","ច័ន្ទ​","អង្គារ​","ពុធ​","ព្រហ​​","សុក្រ​","សៅរ៍"],dayOfWeek:["អាទិត្យ​","ច័ន្ទ​","អង្គារ​","ពុធ​","ព្រហស្បតិ៍​","សុក្រ​","សៅរ៍"]},kr:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},it:{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayOfWeek:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"]},da:{months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},no:{months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"]},ja:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeekShort:["日","月","火","水","木","金","土"],dayOfWeek:["日曜","月曜","火曜","水曜","木曜","金曜","土曜"]},vi:{months:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],dayOfWeekShort:["CN","T2","T3","T4","T5","T6","T7"],dayOfWeek:["Chủ nhật","Thứ hai","Thứ ba","Thứ tư","Thứ năm","Thứ sáu","Thứ bảy"]},sl:{months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],dayOfWeekShort:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],dayOfWeek:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"]},cs:{months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],dayOfWeekShort:["Ne","Po","Út","St","Čt","Pá","So"]},hu:{months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],dayOfWeekShort:["Va","Hé","Ke","Sze","Cs","Pé","Szo"],dayOfWeek:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},az:{months:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"],dayOfWeekShort:["B","Be","Ça","Ç","Ca","C","Ş"],dayOfWeek:["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"]},bs:{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ca:{months:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],dayOfWeekShort:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],dayOfWeek:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},"en-GB":{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},et:{months:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],dayOfWeekShort:["P","E","T","K","N","R","L"],dayOfWeek:["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev"]},eu:{months:["Urtarrila","Otsaila","Martxoa","Apirila","Maiatza","Ekaina","Uztaila","Abuztua","Iraila","Urria","Azaroa","Abendua"],dayOfWeekShort:["Ig.","Al.","Ar.","Az.","Og.","Or.","La."],dayOfWeek:["Igandea","Astelehena","Asteartea","Asteazkena","Osteguna","Ostirala","Larunbata"]},fi:{months:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],dayOfWeekShort:["Su","Ma","Ti","Ke","To","Pe","La"],dayOfWeek:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},gl:{months:["Xan","Feb","Maz","Abr","Mai","Xun","Xul","Ago","Set","Out","Nov","Dec"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Xov","Ven","Sab"],dayOfWeek:["Domingo","Luns","Martes","Mércores","Xoves","Venres","Sábado"]},hr:{months:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ko:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},lt:{months:["Sausio","Vasario","Kovo","Balandžio","Gegužės","Birželio","Liepos","Rugpjūčio","Rugsėjo","Spalio","Lapkričio","Gruodžio"],dayOfWeekShort:["Sek","Pir","Ant","Tre","Ket","Pen","Šeš"],dayOfWeek:["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis"]},lv:{months:["Janvāris","Februāris","Marts","Aprīlis ","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],dayOfWeekShort:["Sv","Pr","Ot","Tr","Ct","Pk","St"],dayOfWeek:["Svētdiena","Pirmdiena","Otrdiena","Trešdiena","Ceturtdiena","Piektdiena","Sestdiena"]},mk:{months:["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],dayOfWeekShort:["нед","пон","вто","сре","чет","пет","саб"],dayOfWeek:["Недела","Понеделник","Вторник","Среда","Четврток","Петок","Сабота"]},mn:{months:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],dayOfWeekShort:["Дав","Мяг","Лха","Пүр","Бсн","Бям","Ням"],dayOfWeek:["Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба","Ням"]},"pt-BR":{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},sk:{months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],dayOfWeekShort:["Ne","Po","Ut","St","Št","Pi","So"],dayOfWeek:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"]},sq:{months:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"],dayOfWeekShort:["Die","Hën","Mar","Mër","Enj","Pre","Shtu"],dayOfWeek:["E Diel","E Hënë","E Martē","E Mërkurë","E Enjte","E Premte","E Shtunë"]},"sr-YU":{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sre","čet","Pet","Sub"],dayOfWeek:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"]},sr:{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],dayOfWeekShort:["нед","пон","уто","сре","чет","пет","суб"],dayOfWeek:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"]},sv:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayOfWeek:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"]},"zh-TW":{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},zh:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},ug:{months:["1-ئاي","2-ئاي","3-ئاي","4-ئاي","5-ئاي","6-ئاي","7-ئاي","8-ئاي","9-ئاي","10-ئاي","11-ئاي","12-ئاي"],dayOfWeek:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"]},he:{months:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],dayOfWeekShort:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],dayOfWeek:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת","ראשון"]},hy:{months:["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր"],dayOfWeekShort:["Կի","Երկ","Երք","Չոր","Հնգ","Ուրբ","Շբթ"],dayOfWeek:["Կիրակի","Երկուշաբթի","Երեքշաբթի","Չորեքշաբթի","Հինգշաբթի","Ուրբաթ","Շաբաթ"]},kg:{months:["Үчтүн айы","Бирдин айы","Жалган Куран","Чын Куран","Бугу","Кулжа","Теке","Баш Оона","Аяк Оона","Тогуздун айы","Жетинин айы","Бештин айы"],dayOfWeekShort:["Жек","Дүй","Шей","Шар","Бей","Жум","Ише"],dayOfWeek:["Жекшемб","Дүйшөмб","Шейшемб","Шаршемб","Бейшемби","Жума","Ишенб"]},rm:{months:["Schaner","Favrer","Mars","Avrigl","Matg","Zercladur","Fanadur","Avust","Settember","October","November","December"],dayOfWeekShort:["Du","Gli","Ma","Me","Gie","Ve","So"],dayOfWeek:["Dumengia","Glindesdi","Mardi","Mesemna","Gievgia","Venderdi","Sonda"]},ka:{months:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"],dayOfWeekShort:["კვ","ორშ","სამშ","ოთხ","ხუთ","პარ","შაბ"],dayOfWeek:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]}},ownerDocument:document,contentWindow:window,value:"",rtl:!1,format:"Y/m/d H:i",formatTime:"H:i",formatDate:"Y/m/d",startDate:!1,step:60,monthChangeSpinner:!0,closeOnDateSelect:!1,closeOnTimeSelect:!0,closeOnWithoutClick:!0,closeOnInputClick:!0,openOnFocus:!0,timepicker:!0,datepicker:!0,weeks:!1,defaultTime:!1,defaultDate:!1,minDate:!1,maxDate:!1,minTime:!1,maxTime:!1,minDateTime:!1,maxDateTime:!1,allowTimes:[],opened:!1,initTime:!0,inline:!1,theme:"",touchMovedThreshold:5,onSelectDate:function(){},onSelectTime:function(){},onChangeMonth:function(){},onGetWeekOfYear:function(){},onChangeYear:function(){},onChangeDateTime:function(){},onShow:function(){},onClose:function(){},onGenerate:function(){},withoutCopyright:!0,inverseButton:!1,hours12:!1,next:"xdsoft_next",prev:"xdsoft_prev",dayOfWeekStart:0,parentID:"body",timeHeightInTimePicker:25,timepickerScrollbar:!0,todayButton:!0,prevButton:!0,nextButton:!0,defaultSelect:!0,scrollMonth:!0,scrollTime:!0,scrollInput:!0,lazyInit:!1,mask:!1,validateOnBlur:!0,allowBlank:!0,yearStart:1950,yearEnd:2050,monthStart:0,monthEnd:11,style:"",id:"",fixed:!1,roundTime:"round",className:"",weekends:[],highlightedDates:[],highlightedPeriods:[],allowDates:[],allowDateRe:null,disabledDates:[],disabledWeekDays:[],yearOffset:0,beforeShowDay:null,enterLikeTab:!0,showApplyButton:!1,insideParent:!1},a=null,n=null,r="en",o={meridiem:["AM","PM"]},i=function(){var i=t.i18n[r],s={days:i.dayOfWeek,daysShort:i.dayOfWeekShort,months:i.months,monthsShort:e.map(i.months,function(e){return e.substring(0,3)})};"function"==typeof DateFormatter&&(a=n=new DateFormatter({dateSettings:e.extend({},o,s)}))},s={moment:{default_options:{format:"YYYY/MM/DD HH:mm",formatDate:"YYYY/MM/DD",formatTime:"HH:mm"},formatter:{parseDate:function(e,t){if(u(t))return n.parseDate(e,t);var a=moment(e,t);return!!a.isValid()&&a.toDate()},formatDate:function(e,t){return u(t)?n.formatDate(e,t):moment(e).format(t)},formatMask:function(e){return e.replace(/Y{4}/g,"9999").replace(/Y{2}/g,"99").replace(/M{2}/g,"19").replace(/D{2}/g,"39").replace(/H{2}/g,"29").replace(/m{2}/g,"59").replace(/s{2}/g,"59")}}}};e.datetimepicker={setLocale:function(e){var a=t.i18n[e]?e:"en";r!==a&&(r=a,i())},setDateFormatter:function(n){if("string"==typeof n&&s.hasOwnProperty(n)){var r=s[n];e.extend(t,r.default_options),a=r.formatter}else a=n}};var d={RFC_2822:"D, d M Y H:i:s O",ATOM:"Y-m-dTH:i:sP",ISO_8601:"Y-m-dTH:i:sO",RFC_822:"D, d M y H:i:s O",RFC_850:"l, d-M-y H:i:s T",RFC_1036:"D, d M y H:i:s O",RFC_1123:"D, d M Y H:i:s O",RSS:"D, d M Y H:i:s O",W3C:"Y-m-dTH:i:sP"},u=function(e){return-1!==Object.values(d).indexOf(e)};function l(e,t,a){this.date=e,this.desc=t,this.style=a}e.extend(e.datetimepicker,d),i(),window.getComputedStyle||(window.getComputedStyle=function(e){return this.el=e,this.getPropertyValue=function(t){var a=/(-([a-z]))/g;return"float"===t&&(t="styleFloat"),a.test(t)&&(t=t.replace(a,function(e,t,a){return a.toUpperCase()})),e.currentStyle[t]||null},this}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var a,n;for(a=t||0,n=this.length;a<n;a+=1)if(this[a]===e)return a;return-1}),Date.prototype.countDaysInMonth=function(){return new Date(this.getFullYear(),this.getMonth()+1,0).getDate()},e.fn.xdsoftScroller=function(t,a){return this.each(function(){var n,r,o,i,s,d=e(this),u=function(e){var t,a={x:0,y:0};return"touchstart"===e.type||"touchmove"===e.type||"touchend"===e.type||"touchcancel"===e.type?(t=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],a.x=t.clientX,a.y=t.clientY):"mousedown"!==e.type&&"mouseup"!==e.type&&"mousemove"!==e.type&&"mouseover"!==e.type&&"mouseout"!==e.type&&"mouseenter"!==e.type&&"mouseleave"!==e.type||(a.x=e.clientX,a.y=e.clientY),a},l=100,f=!1,c=0,m=0,h=0,g=!1,p=0,D=function(){};"hide"!==a?(e(this).hasClass("xdsoft_scroller_box")||(n=d.children().eq(0),r=d[0].clientHeight,o=n[0].offsetHeight,i=e('<div class="xdsoft_scrollbar"></div>'),s=e('<div class="xdsoft_scroller"></div>'),i.append(s),d.addClass("xdsoft_scroller_box").append(i),D=function(e){var t=u(e).y-c+p;t<0&&(t=0),t+s[0].offsetHeight>h&&(t=h-s[0].offsetHeight),d.trigger("scroll_element.xdsoft_scroller",[l?t/l:0])},s.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(n){r||d.trigger("resize_scroll.xdsoft_scroller",[a]),c=u(n).y,p=parseInt(s.css("margin-top"),10),h=i[0].offsetHeight,"mousedown"===n.type||"touchstart"===n.type?(t.ownerDocument&&e(t.ownerDocument.body).addClass("xdsoft_noselect"),e([t.ownerDocument.body,t.contentWindow]).on("touchend mouseup.xdsoft_scroller",function a(){e([t.ownerDocument.body,t.contentWindow]).off("touchend mouseup.xdsoft_scroller",a).off("mousemove.xdsoft_scroller",D).removeClass("xdsoft_noselect")}),e(t.ownerDocument.body).on("mousemove.xdsoft_scroller",D)):(g=!0,n.stopPropagation(),n.preventDefault())}).on("touchmove",function(e){g&&(e.preventDefault(),D(e))}).on("touchend touchcancel",function(){g=!1,p=0}),d.on("scroll_element.xdsoft_scroller",function(e,t){r||d.trigger("resize_scroll.xdsoft_scroller",[t,!0]),t=t>1?1:t<0||isNaN(t)?0:t,s.css("margin-top",l*t),setTimeout(function(){n.css("marginTop",-parseInt((n[0].offsetHeight-r)*t,10))},10)}).on("resize_scroll.xdsoft_scroller",function(e,t,a){var u,f;r=d[0].clientHeight,o=n[0].offsetHeight,f=(u=r/o)*i[0].offsetHeight,u>1?s.hide():(s.show(),s.css("height",parseInt(f>10?f:10,10)),l=i[0].offsetHeight-s[0].offsetHeight,!0!==a&&d.trigger("scroll_element.xdsoft_scroller",[t||Math.abs(parseInt(n.css("marginTop"),10))/(o-r)]))}),d.on("mousewheel",function(e){var t=Math.abs(parseInt(n.css("marginTop"),10));return(t-=20*e.deltaY)<0&&(t=0),d.trigger("scroll_element.xdsoft_scroller",[t/(o-r)]),e.stopPropagation(),!1}),d.on("touchstart",function(e){f=u(e),m=Math.abs(parseInt(n.css("marginTop"),10))}),d.on("touchmove",function(e){if(f){e.preventDefault();var t=u(e);d.trigger("scroll_element.xdsoft_scroller",[(m-(t.y-f.y))/(o-r)])}}),d.on("touchend touchcancel",function(){f=!1,m=0})),d.trigger("resize_scroll.xdsoft_scroller",[a])):d.find(".xdsoft_scrollbar").hide()})},e.fn.datetimepicker=function(n,o){var i,s,d=this,u=17,f=13,c=27,m=37,h=38,g=39,p=40,D=9,y=116,v=65,b=67,k=86,x=90,T=89,S=!1,M=e.isPlainObject(n)||!n?e.extend(!0,{},t,n):e.extend(!0,{},t),w=0;return i=function(t){var o,i,s,d,w,O,W=e('<div class="xdsoft_datetimepicker xdsoft_noselect"></div>'),_=e('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net</a></div>'),F=e('<div class="xdsoft_datepicker active"></div>'),C=e('<div class="xdsoft_monthpicker"><button type="button" class="xdsoft_prev"></button><button type="button" class="xdsoft_today_button"></button><div class="xdsoft_label xdsoft_month"><span></span><i></i></div><div class="xdsoft_label xdsoft_year"><span></span><i></i></div><button type="button" class="xdsoft_next"></button></div>'),P=e('<div class="xdsoft_calendar"></div>'),Y=e('<div class="xdsoft_timepicker active"><button type="button" class="xdsoft_prev"></button><div class="xdsoft_time_box"></div><button type="button" class="xdsoft_next"></button></div>'),A=Y.find(".xdsoft_time_box").eq(0),H=e('<div class="xdsoft_time_variant"></div>'),j=e('<button type="button" class="xdsoft_save_selected blue-gradient-button">Save Selected</button>'),J=e('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>'),z=e('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>'),I=!1,N=0;M.id&&W.attr("id",M.id),M.style&&W.attr("style",M.style),M.weeks&&W.addClass("xdsoft_showweeks"),M.rtl&&W.addClass("xdsoft_rtl"),W.addClass("xdsoft_"+M.theme),W.addClass(M.className),C.find(".xdsoft_month span").after(J),C.find(".xdsoft_year span").after(z),C.find(".xdsoft_month,.xdsoft_year").on("touchstart mousedown.xdsoft",function(t){var a,n,r=e(this).find(".xdsoft_select").eq(0),o=0,i=0,s=r.is(":visible");for(C.find(".xdsoft_select").hide(),w.currentTime&&(o=w.currentTime[e(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),r[s?"hide":"show"](),a=r.find("div.xdsoft_option"),n=0;n<a.length&&a.eq(n).data("value")!==o;n+=1)i+=a[0].offsetHeight;return r.xdsoftScroller(M,i/(r.children()[0].offsetHeight-r[0].clientHeight)),t.stopPropagation(),!1});var L=function(e){var t=e.originalEvent,a=t.touches?t.touches[0]:t;this.touchStartPosition=this.touchStartPosition||a;var n=Math.abs(this.touchStartPosition.clientX-a.clientX),r=Math.abs(this.touchStartPosition.clientY-a.clientY);Math.sqrt(n*n+r*r)>M.touchMovedThreshold&&(this.touchMoved=!0)};function E(){var e,a=!1;return M.startDate?a=w.strToDate(M.startDate):(a=M.value||(t&&t.val&&t.val()?t.val():""))?(a=w.strToDateTime(a),M.yearOffset&&(a=new Date(a.getFullYear()-M.yearOffset,a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()))):M.defaultDate&&(a=w.strToDateTime(M.defaultDate),M.defaultTime&&(e=w.strtotime(M.defaultTime),a.setHours(e.getHours()),a.setMinutes(e.getMinutes()))),a&&w.isValidDate(a)?W.data("changed",!0):a="",a||0}function R(n){var r=function(e,t){var a=e.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,"\\$1").replace(/_/g,"{digit+}").replace(/([0-9]{1})/g,"{digit$1}").replace(/\{digit([0-9]{1})\}/g,"[0-$1_]{1}").replace(/\{digit[\+]\}/g,"[0-9_]{1}");return new RegExp(a).test(t)},o=function(e,t){if(!(e="string"==typeof e||e instanceof String?n.ownerDocument.getElementById(e):e))return!1;if(e.createTextRange){var a=e.createTextRange();return a.collapse(!0),a.moveEnd("character",t),a.moveStart("character",t),a.select(),!0}return!!e.setSelectionRange&&(e.setSelectionRange(t,t),!0)};n.mask&&t.off("keydown.xdsoft"),!0===n.mask&&(a.formatMask?n.mask=a.formatMask(n.format):n.mask=n.format.replace(/Y/g,"9999").replace(/F/g,"9999").replace(/m/g,"19").replace(/d/g,"39").replace(/H/g,"29").replace(/i/g,"59").replace(/s/g,"59")),"string"===e.type(n.mask)&&(r(n.mask,t.val())||(t.val(n.mask.replace(/[0-9]/g,"_")),o(t[0],0)),t.on("paste.xdsoft",function(a){var i=(a.clipboardData||a.originalEvent.clipboardData||window.clipboardData).getData("text"),s=this.value,d=this.selectionStart,u=s.substr(0,d),l=s.substr(d+i.length);return s=u+i+l,d+=i.length,r(n.mask,s)?(this.value=s,o(this,d)):""===e.trim(s)?this.value=n.mask.replace(/[0-9]/g,"_"):t.trigger("error_input.xdsoft"),a.preventDefault(),!1}),t.on("keydown.xdsoft",function(a){var i,s=this.value,d=a.which,l=this.selectionStart,M=this.selectionEnd,w=l!==M;if(d>=48&&d<=57||d>=96&&d<=105||8===d||46===d){for(i=8===d||46===d?"_":String.fromCharCode(96<=d&&d<=105?d-48:d),8===d&&l&&!w&&(l-=1);;){var O=n.mask.substr(l,1),W=l<n.mask.length,_=l>0;if(!(/[^0-9_]/.test(O)&&W&&_))break;l+=8!==d||w?1:-1}if(a.metaKey&&(l=0,w=!0),w){var F=M-l,C=n.mask.replace(/[0-9]/g,"_"),P=C.substr(l,F).substr(1),Y=s.substr(0,l),A=i+P,H=s.substr(l+F);s=Y+A+H}else{var j=s.substr(0,l),J=i,z=s.substr(l+1);s=j+J+z}if(""===e.trim(s))s=C;else if(l===n.mask.length)return a.preventDefault(),!1;for(l+=8===d?0:1;/[^0-9_]/.test(n.mask.substr(l,1))&&l<n.mask.length&&l>0;)l+=8===d?0:1;r(n.mask,s)?(this.value=s,o(this,l)):""===e.trim(s)?this.value=n.mask.replace(/[0-9]/g,"_"):t.trigger("error_input.xdsoft")}else if(-1!==[v,b,k,x,T].indexOf(d)&&S||-1!==[c,h,p,m,g,y,u,D,f].indexOf(d))return!0;return a.preventDefault(),!1}))}C.find(".xdsoft_select").xdsoftScroller(M).on("touchstart mousedown.xdsoft",function(e){var t=e.originalEvent;this.touchMoved=!1,this.touchStartPosition=t.touches?t.touches[0]:t,e.stopPropagation(),e.preventDefault()}).on("touchmove",".xdsoft_option",L).on("touchend mousedown.xdsoft",".xdsoft_option",function(){if(!this.touchMoved){void 0!==w.currentTime&&null!==w.currentTime||(w.currentTime=w.now());var t=w.currentTime.getFullYear();w&&w.currentTime&&w.currentTime[e(this).parent().parent().hasClass("xdsoft_monthselect")?"setMonth":"setFullYear"](e(this).data("value")),e(this).parent().parent().hide(),W.trigger("xchange.xdsoft"),M.onChangeMonth&&e.isFunction(M.onChangeMonth)&&M.onChangeMonth.call(W,w.currentTime,W.data("input")),t!==w.currentTime.getFullYear()&&e.isFunction(M.onChangeYear)&&M.onChangeYear.call(W,w.currentTime,W.data("input"))}}),W.getValue=function(){return w.getCurrentTime()},W.setOptions=function(n){var r={};M=e.extend(!0,{},M,n),n.allowTimes&&e.isArray(n.allowTimes)&&n.allowTimes.length&&(M.allowTimes=e.extend(!0,[],n.allowTimes)),n.weekends&&e.isArray(n.weekends)&&n.weekends.length&&(M.weekends=e.extend(!0,[],n.weekends)),n.allowDates&&e.isArray(n.allowDates)&&n.allowDates.length&&(M.allowDates=e.extend(!0,[],n.allowDates)),n.allowDateRe&&"[object String]"===Object.prototype.toString.call(n.allowDateRe)&&(M.allowDateRe=new RegExp(n.allowDateRe)),n.highlightedDates&&e.isArray(n.highlightedDates)&&n.highlightedDates.length&&(e.each(n.highlightedDates,function(t,n){var o,i=e.map(n.split(","),e.trim),s=new l(a.parseDate(i[0],M.formatDate),i[1],i[2]),d=a.formatDate(s.date,M.formatDate);void 0!==r[d]?(o=r[d].desc)&&o.length&&s.desc&&s.desc.length&&(r[d].desc=o+"\n"+s.desc):r[d]=s}),M.highlightedDates=e.extend(!0,[],r)),n.highlightedPeriods&&e.isArray(n.highlightedPeriods)&&n.highlightedPeriods.length&&(r=e.extend(!0,[],M.highlightedDates),e.each(n.highlightedPeriods,function(t,n){var o,i,s,d,u,f,c;if(e.isArray(n))o=n[0],i=n[1],s=n[2],c=n[3];else{var m=e.map(n.split(","),e.trim);o=a.parseDate(m[0],M.formatDate),i=a.parseDate(m[1],M.formatDate),s=m[2],c=m[3]}for(;o<=i;)d=new l(o,s,c),u=a.formatDate(o,M.formatDate),o.setDate(o.getDate()+1),void 0!==r[u]?(f=r[u].desc)&&f.length&&d.desc&&d.desc.length&&(r[u].desc=f+"\n"+d.desc):r[u]=d}),M.highlightedDates=e.extend(!0,[],r)),n.disabledDates&&e.isArray(n.disabledDates)&&n.disabledDates.length&&(M.disabledDates=e.extend(!0,[],n.disabledDates)),n.disabledWeekDays&&e.isArray(n.disabledWeekDays)&&n.disabledWeekDays.length&&(M.disabledWeekDays=e.extend(!0,[],n.disabledWeekDays)),!M.open&&!M.opened||M.inline||t.trigger("open.xdsoft"),M.inline&&(I=!0,W.addClass("xdsoft_inline"),t.after(W).hide()),M.inverseButton&&(M.next="xdsoft_prev",M.prev="xdsoft_next"),M.datepicker?F.addClass("active"):F.removeClass("active"),M.timepicker?Y.addClass("active"):Y.removeClass("active"),M.value&&(w.setCurrentTime(M.value),t&&t.val&&t.val(w.str)),isNaN(M.dayOfWeekStart)?M.dayOfWeekStart=0:M.dayOfWeekStart=parseInt(M.dayOfWeekStart,10)%7,M.timepickerScrollbar||A.xdsoftScroller(M,"hide"),M.minDate&&/^[\+\-](.*)$/.test(M.minDate)&&(M.minDate=a.formatDate(w.strToDateTime(M.minDate),M.formatDate)),M.maxDate&&/^[\+\-](.*)$/.test(M.maxDate)&&(M.maxDate=a.formatDate(w.strToDateTime(M.maxDate),M.formatDate)),M.minDateTime&&/^\+(.*)$/.test(M.minDateTime)&&(M.minDateTime=w.strToDateTime(M.minDateTime).dateFormat(M.formatDate)),M.maxDateTime&&/^\+(.*)$/.test(M.maxDateTime)&&(M.maxDateTime=w.strToDateTime(M.maxDateTime).dateFormat(M.formatDate)),j.toggle(M.showApplyButton),C.find(".xdsoft_today_button").css("visibility",M.todayButton?"visible":"hidden"),C.find("."+M.prev).css("visibility",M.prevButton?"visible":"hidden"),C.find("."+M.next).css("visibility",M.nextButton?"visible":"hidden"),R(M),M.validateOnBlur&&t.off("blur.xdsoft").on("blur.xdsoft",function(){if(M.allowBlank&&(!e.trim(e(this).val()).length||"string"==typeof M.mask&&e.trim(e(this).val())===M.mask.replace(/[0-9]/g,"_")))e(this).val(null),W.data("xdsoft_datetime").empty();else{var t=a.parseDate(e(this).val(),M.format);if(t)e(this).val(a.formatDate(t,M.format));else{var n=+[e(this).val()[0],e(this).val()[1]].join(""),r=+[e(this).val()[2],e(this).val()[3]].join("");!M.datepicker&&M.timepicker&&n>=0&&n<24&&r>=0&&r<60?e(this).val([n,r].map(function(e){return e>9?e:"0"+e}).join(":")):e(this).val(a.formatDate(w.now(),M.format))}W.data("xdsoft_datetime").setCurrentTime(e(this).val())}W.trigger("changedatetime.xdsoft"),W.trigger("close.xdsoft")}),M.dayOfWeekStartPrev=0===M.dayOfWeekStart?6:M.dayOfWeekStart-1,W.trigger("xchange.xdsoft").trigger("afterOpen.xdsoft")},W.data("options",M).on("touchstart mousedown.xdsoft",function(e){return e.stopPropagation(),e.preventDefault(),z.hide(),J.hide(),!1}),A.append(H),A.xdsoftScroller(M),W.on("afterOpen.xdsoft",function(){A.xdsoftScroller(M)}),W.append(F).append(Y),!0!==M.withoutCopyright&&W.append(_),F.append(C).append(P).append(j),M.insideParent?e(t).parent().append(W):e(M.parentID).append(W),w=new function(){var t=this;t.now=function(e){var a,n,r=new Date;return!e&&M.defaultDate&&(a=t.strToDateTime(M.defaultDate),r.setFullYear(a.getFullYear()),r.setMonth(a.getMonth()),r.setDate(a.getDate())),r.setFullYear(r.getFullYear()),!e&&M.defaultTime&&(n=t.strtotime(M.defaultTime),r.setHours(n.getHours()),r.setMinutes(n.getMinutes()),r.setSeconds(n.getSeconds()),r.setMilliseconds(n.getMilliseconds())),r},t.isValidDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())},t.setCurrentTime=function(e,a){"string"==typeof e?t.currentTime=t.strToDateTime(e):t.isValidDate(e)?t.currentTime=e:e||a||!M.allowBlank||M.inline?t.currentTime=t.now():t.currentTime=null,W.trigger("xchange.xdsoft")},t.empty=function(){t.currentTime=null},t.getCurrentTime=function(){return t.currentTime},t.nextMonth=function(){void 0!==t.currentTime&&null!==t.currentTime||(t.currentTime=t.now());var a,n=t.currentTime.getMonth()+1;return 12===n&&(t.currentTime.setFullYear(t.currentTime.getFullYear()+1),n=0),a=t.currentTime.getFullYear(),t.currentTime.setDate(Math.min(new Date(t.currentTime.getFullYear(),n+1,0).getDate(),t.currentTime.getDate())),t.currentTime.setMonth(n),M.onChangeMonth&&e.isFunction(M.onChangeMonth)&&M.onChangeMonth.call(W,w.currentTime,W.data("input")),a!==t.currentTime.getFullYear()&&e.isFunction(M.onChangeYear)&&M.onChangeYear.call(W,w.currentTime,W.data("input")),W.trigger("xchange.xdsoft"),n},t.prevMonth=function(){void 0!==t.currentTime&&null!==t.currentTime||(t.currentTime=t.now());var a=t.currentTime.getMonth()-1;return-1===a&&(t.currentTime.setFullYear(t.currentTime.getFullYear()-1),a=11),t.currentTime.setDate(Math.min(new Date(t.currentTime.getFullYear(),a+1,0).getDate(),t.currentTime.getDate())),t.currentTime.setMonth(a),M.onChangeMonth&&e.isFunction(M.onChangeMonth)&&M.onChangeMonth.call(W,w.currentTime,W.data("input")),W.trigger("xchange.xdsoft"),a},t.getWeekOfYear=function(t){if(M.onGetWeekOfYear&&e.isFunction(M.onGetWeekOfYear)){var a=M.onGetWeekOfYear.call(W,t);if(void 0!==a)return a}var n=new Date(t.getFullYear(),0,1);return 4!==n.getDay()&&n.setMonth(0,1+(4-n.getDay()+7)%7),Math.ceil(((t-n)/864e5+n.getDay()+1)/7)},t.strToDateTime=function(e){var n,r,o=[];return e&&e instanceof Date&&t.isValidDate(e)?e:((o=/^([+-]{1})(.*)$/.exec(e))&&(o[2]=a.parseDate(o[2],M.formatDate)),o&&o[2]?(n=o[2].getTime()-6e4*o[2].getTimezoneOffset(),r=new Date(t.now(!0).getTime()+parseInt(o[1]+"1",10)*n)):r=e?a.parseDate(e,M.format):t.now(),t.isValidDate(r)||(r=t.now()),r)},t.strToDate=function(e){if(e&&e instanceof Date&&t.isValidDate(e))return e;var n=e?a.parseDate(e,M.formatDate):t.now(!0);return t.isValidDate(n)||(n=t.now(!0)),n},t.strtotime=function(e){if(e&&e instanceof Date&&t.isValidDate(e))return e;var n=e?a.parseDate(e,M.formatTime):t.now(!0);return t.isValidDate(n)||(n=t.now(!0)),n},t.str=function(){var e=M.format;return M.yearOffset&&(e=(e=e.replace("Y",t.currentTime.getFullYear()+M.yearOffset)).replace("y",String(t.currentTime.getFullYear()+M.yearOffset).substring(2,4))),a.formatDate(t.currentTime,e)},t.currentTime=this.now()},j.on("touchend click",function(e){e.preventDefault(),W.data("changed",!0),w.setCurrentTime(E()),t.val(w.str()),W.trigger("close.xdsoft")}),C.find(".xdsoft_today_button").on("touchend mousedown.xdsoft",function(){W.data("changed",!0),w.setCurrentTime(0,!0),W.trigger("afterOpen.xdsoft")}).on("dblclick.xdsoft",function(){var e,a,n=w.getCurrentTime();n=new Date(n.getFullYear(),n.getMonth(),n.getDate()),e=w.strToDate(M.minDate),n<(e=new Date(e.getFullYear(),e.getMonth(),e.getDate()))||(a=w.strToDate(M.maxDate),n>(a=new Date(a.getFullYear(),a.getMonth(),a.getDate()))||(t.val(w.str()),t.trigger("change"),W.trigger("close.xdsoft")))}),C.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var t=e(this),a=0,n=!1;!function e(r){t.hasClass(M.next)?w.nextMonth():t.hasClass(M.prev)&&w.prevMonth(),M.monthChangeSpinner&&(n||(a=setTimeout(e,r||100)))}(500),e([M.ownerDocument.body,M.contentWindow]).on("touchend mouseup.xdsoft",function t(){clearTimeout(a),n=!0,e([M.ownerDocument.body,M.contentWindow]).off("touchend mouseup.xdsoft",t)})}),Y.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var t=e(this),a=0,n=!1,r=110;!function e(o){var i=A[0].clientHeight,s=H[0].offsetHeight,d=Math.abs(parseInt(H.css("marginTop"),10));t.hasClass(M.next)&&s-i-M.timeHeightInTimePicker>=d?H.css("marginTop","-"+(d+M.timeHeightInTimePicker)+"px"):t.hasClass(M.prev)&&d-M.timeHeightInTimePicker>=0&&H.css("marginTop","-"+(d-M.timeHeightInTimePicker)+"px"),A.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(H[0].style.marginTop,10)/(s-i))]),r=r>10?10:r-10,n||(a=setTimeout(e,o||r))}(500),e([M.ownerDocument.body,M.contentWindow]).on("touchend mouseup.xdsoft",function t(){clearTimeout(a),n=!0,e([M.ownerDocument.body,M.contentWindow]).off("touchend mouseup.xdsoft",t)})}),o=0,W.on("xchange.xdsoft",function(i){clearTimeout(o),o=setTimeout(function(){void 0!==w.currentTime&&null!==w.currentTime||(w.currentTime=w.now());for(var o,i,s,d,u,l,f,c,m,h,g="",p=new Date(w.currentTime.getFullYear(),w.currentTime.getMonth(),1,12,0,0),D=0,y=w.now(),v=!1,b=!1,k=!1,x=!1,T=[],S=!0,O="";p.getDay()!==M.dayOfWeekStart;)p.setDate(p.getDate()-1);for(g+="<table><thead><tr>",M.weeks&&(g+="<th></th>"),o=0;o<7;o+=1)g+="<th>"+M.i18n[r].dayOfWeekShort[(o+M.dayOfWeekStart)%7]+"</th>";for(g+="</tr></thead>",g+="<tbody>",!1!==M.maxDate&&(v=w.strToDate(M.maxDate),v=new Date(v.getFullYear(),v.getMonth(),v.getDate(),23,59,59,999)),!1!==M.minDate&&(b=w.strToDate(M.minDate),b=new Date(b.getFullYear(),b.getMonth(),b.getDate())),!1!==M.minDateTime&&(k=w.strToDate(M.minDateTime),k=new Date(k.getFullYear(),k.getMonth(),k.getDate(),k.getHours(),k.getMinutes(),k.getSeconds())),!1!==M.maxDateTime&&(x=w.strToDate(M.maxDateTime),x=new Date(x.getFullYear(),x.getMonth(),x.getDate(),x.getHours(),x.getMinutes(),x.getSeconds())),!1!==x&&(h=31*(12*x.getFullYear()+x.getMonth())+x.getDate());D<w.currentTime.countDaysInMonth()||p.getDay()!==M.dayOfWeekStart||w.currentTime.getMonth()===p.getMonth();){T=[],D+=1,s=p.getDay(),d=p.getDate(),u=p.getFullYear(),A=p.getMonth(),l=w.getWeekOfYear(p),m="",T.push("xdsoft_date"),f=M.beforeShowDay&&e.isFunction(M.beforeShowDay.call)?M.beforeShowDay.call(W,p):null,M.allowDateRe&&"[object RegExp]"===Object.prototype.toString.call(M.allowDateRe)&&(M.allowDateRe.test(a.formatDate(p,M.formatDate))||T.push("xdsoft_disabled")),M.allowDates&&M.allowDates.length>0&&-1===M.allowDates.indexOf(a.formatDate(p,M.formatDate))&&T.push("xdsoft_disabled");var _=31*(12*p.getFullYear()+p.getMonth())+p.getDate();(!1!==v&&p>v||!1!==k&&p<k||!1!==b&&p<b||!1!==x&&_>h||f&&!1===f[0])&&T.push("xdsoft_disabled"),-1!==M.disabledDates.indexOf(a.formatDate(p,M.formatDate))&&T.push("xdsoft_disabled"),-1!==M.disabledWeekDays.indexOf(s)&&T.push("xdsoft_disabled"),t.is("[disabled]")&&T.push("xdsoft_disabled"),f&&""!==f[1]&&T.push(f[1]),w.currentTime.getMonth()!==A&&T.push("xdsoft_other_month"),(M.defaultSelect||W.data("changed"))&&a.formatDate(w.currentTime,M.formatDate)===a.formatDate(p,M.formatDate)&&T.push("xdsoft_current"),a.formatDate(y,M.formatDate)===a.formatDate(p,M.formatDate)&&T.push("xdsoft_today"),0!==p.getDay()&&6!==p.getDay()&&-1===M.weekends.indexOf(a.formatDate(p,M.formatDate))||T.push("xdsoft_weekend"),void 0!==M.highlightedDates[a.formatDate(p,M.formatDate)]&&(i=M.highlightedDates[a.formatDate(p,M.formatDate)],T.push(void 0===i.style?"xdsoft_highlighted_default":i.style),m=void 0===i.desc?"":i.desc),M.beforeShowDay&&e.isFunction(M.beforeShowDay)&&T.push(M.beforeShowDay(p)),S&&(g+="<tr>",S=!1,M.weeks&&(g+="<th>"+l+"</th>")),g+='<td data-date="'+d+'" data-month="'+A+'" data-year="'+u+'" class="xdsoft_date xdsoft_day_of_week'+p.getDay()+" "+T.join(" ")+'" title="'+m+'"><div>'+d+"</div></td>",p.getDay()===M.dayOfWeekStartPrev&&(g+="</tr>",S=!0),p.setDate(d+1)}g+="</tbody></table>",P.html(g),C.find(".xdsoft_label span").eq(0).text(M.i18n[r].months[w.currentTime.getMonth()]),C.find(".xdsoft_label span").eq(1).text(w.currentTime.getFullYear()+M.yearOffset),O="",A="";var F=0;if(!1!==M.minTime){var Y=w.strtotime(M.minTime);F=60*Y.getHours()+Y.getMinutes()}var A,j=1440;(!1!==M.maxTime&&(Y=w.strtotime(M.maxTime),j=60*Y.getHours()+Y.getMinutes()),!1!==M.minDateTime&&(Y=w.strToDateTime(M.minDateTime),a.formatDate(w.currentTime,M.formatDate)===a.formatDate(Y,M.formatDate)&&(A=60*Y.getHours()+Y.getMinutes())>F&&(F=A)),!1!==M.maxDateTime)&&(Y=w.strToDateTime(M.maxDateTime),a.formatDate(w.currentTime,M.formatDate)===a.formatDate(Y,M.formatDate)&&(A=60*Y.getHours()+Y.getMinutes())<j&&(j=A));if(c=function(n,r){var o,i=w.now(),s=M.allowTimes&&e.isArray(M.allowTimes)&&M.allowTimes.length;i.setHours(n),n=parseInt(i.getHours(),10),i.setMinutes(r),r=parseInt(i.getMinutes(),10),T=[];var d=60*n+r;(t.is("[disabled]")||d>=j||d<F)&&T.push("xdsoft_disabled"),(o=new Date(w.currentTime)).setHours(parseInt(w.currentTime.getHours(),10)),s||o.setMinutes(Math[M.roundTime](w.currentTime.getMinutes()/M.step)*M.step),(M.initTime||M.defaultSelect||W.data("changed"))&&o.getHours()===parseInt(n,10)&&(!s&&M.step>59||o.getMinutes()===parseInt(r,10))&&(M.defaultSelect||W.data("changed")?T.push("xdsoft_current"):M.initTime&&T.push("xdsoft_init_time")),parseInt(y.getHours(),10)===parseInt(n,10)&&parseInt(y.getMinutes(),10)===parseInt(r,10)&&T.push("xdsoft_today"),O+='<div class="xdsoft_time '+T.join(" ")+'" data-hour="'+n+'" data-minute="'+r+'">'+a.formatDate(i,M.formatTime)+"</div>"},M.allowTimes&&e.isArray(M.allowTimes)&&M.allowTimes.length)for(D=0;D<M.allowTimes.length;D+=1)c(w.strtotime(M.allowTimes[D]).getHours(),A=w.strtotime(M.allowTimes[D]).getMinutes());else for(D=0,o=0;D<(M.hours12?12:24);D+=1)for(o=0;o<60;o+=M.step){var I=60*D+o;I<F||I>=j||c((D<10?"0":"")+D,A=(o<10?"0":"")+o)}for(H.html(O),n="",D=parseInt(M.yearStart,10);D<=parseInt(M.yearEnd,10);D+=1)n+='<div class="xdsoft_option '+(w.currentTime.getFullYear()===D?"xdsoft_current":"")+'" data-value="'+D+'">'+(D+M.yearOffset)+"</div>";for(z.children().eq(0).html(n),D=parseInt(M.monthStart,10),n="";D<=parseInt(M.monthEnd,10);D+=1)n+='<div class="xdsoft_option '+(w.currentTime.getMonth()===D?"xdsoft_current":"")+'" data-value="'+D+'">'+M.i18n[r].months[D]+"</div>";J.children().eq(0).html(n),e(W).trigger("generate.xdsoft")},10),i.stopPropagation()}).on("afterOpen.xdsoft",function(){var e,t,a,n;M.timepicker&&(H.find(".xdsoft_current").length?e=".xdsoft_current":H.find(".xdsoft_init_time").length&&(e=".xdsoft_init_time"),e?(t=A[0].clientHeight,(a=H[0].offsetHeight)-t<(n=H.find(e).index()*M.timeHeightInTimePicker+1)&&(n=a-t),A.trigger("scroll_element.xdsoft_scroller",[parseInt(n,10)/(a-t)])):A.trigger("scroll_element.xdsoft_scroller",[0]))}),i=0,P.on("touchend click.xdsoft","td",function(a){a.stopPropagation(),i+=1;var n=e(this),r=w.currentTime;if(null==r&&(w.currentTime=w.now(),r=w.currentTime),n.hasClass("xdsoft_disabled"))return!1;r.setDate(1),r.setFullYear(n.data("year")),r.setMonth(n.data("month")),r.setDate(n.data("date")),W.trigger("select.xdsoft",[r]),t.val(w.str()),M.onSelectDate&&e.isFunction(M.onSelectDate)&&M.onSelectDate.call(W,w.currentTime,W.data("input"),a),W.data("changed",!0),W.trigger("xchange.xdsoft"),W.trigger("changedatetime.xdsoft"),(i>1||!0===M.closeOnDateSelect||!1===M.closeOnDateSelect&&!M.timepicker)&&!M.inline&&W.trigger("close.xdsoft"),setTimeout(function(){i=0},200)}),H.on("touchstart","div",function(e){this.touchMoved=!1}).on("touchmove","div",L).on("touchend click.xdsoft","div",function(t){if(!this.touchMoved){t.stopPropagation();var a=e(this),n=w.currentTime;if(null==n&&(w.currentTime=w.now(),n=w.currentTime),a.hasClass("xdsoft_disabled"))return!1;n.setHours(a.data("hour")),n.setMinutes(a.data("minute")),W.trigger("select.xdsoft",[n]),W.data("input").val(w.str()),M.onSelectTime&&e.isFunction(M.onSelectTime)&&M.onSelectTime.call(W,w.currentTime,W.data("input"),t),W.data("changed",!0),W.trigger("xchange.xdsoft"),W.trigger("changedatetime.xdsoft"),!0!==M.inline&&!0===M.closeOnTimeSelect&&W.trigger("close.xdsoft")}}),F.on("mousewheel.xdsoft",function(e){return!M.scrollMonth||(e.deltaY<0?w.nextMonth():w.prevMonth(),!1)}),t.on("mousewheel.xdsoft",function(e){return!M.scrollInput||(!M.datepicker&&M.timepicker?((s=H.find(".xdsoft_current").length?H.find(".xdsoft_current").eq(0).index():0)+e.deltaY>=0&&s+e.deltaY<H.children().length&&(s+=e.deltaY),H.children().eq(s).length&&H.children().eq(s).trigger("mousedown"),!1):M.datepicker&&!M.timepicker?(F.trigger(e,[e.deltaY,e.deltaX,e.deltaY]),t.val&&t.val(w.str()),W.trigger("changedatetime.xdsoft"),!1):void 0)}),W.on("changedatetime.xdsoft",function(t){if(M.onChangeDateTime&&e.isFunction(M.onChangeDateTime)){var a=W.data("input");M.onChangeDateTime.call(W,w.currentTime,a,t),delete M.value,a.trigger("change")}}).on("generate.xdsoft",function(){M.onGenerate&&e.isFunction(M.onGenerate)&&M.onGenerate.call(W,w.currentTime,W.data("input")),I&&(W.trigger("afterOpen.xdsoft"),I=!1)}).on("click.xdsoft",function(e){e.stopPropagation()}),s=0,O=function(e,t){do{if(!(e=e.parentNode)||!1===t(e))break}while("HTML"!==e.nodeName)},d=function(){var t,a,n,r,o,i,s,d,u,l,f,c,m;if(t=(d=W.data("input")).offset(),a=d[0],l="top",n=t.top+a.offsetHeight-1,r=t.left,o="absolute",u=e(M.contentWindow).width(),c=e(M.contentWindow).height(),m=e(M.contentWindow).scrollTop(),M.ownerDocument.documentElement.clientWidth-t.left<F.parent().outerWidth(!0)){var h=F.parent().outerWidth(!0)-a.offsetWidth;r-=h}"rtl"===d.parent().css("direction")&&(r-=W.outerWidth()-d.outerWidth()),M.fixed?(n-=m,r-=e(M.contentWindow).scrollLeft(),o="fixed"):(s=!1,O(a,function(e){return null!==e&&("fixed"===M.contentWindow.getComputedStyle(e).getPropertyValue("position")?(s=!0,!1):void 0)}),s&&!M.insideParent?(o="fixed",n+W.outerHeight()>c+m?(l="bottom",n=c+m-t.top):n-=m):n+W[0].offsetHeight>c+m&&(n=t.top-W[0].offsetHeight+1),n<0&&(n=0),r+a.offsetWidth>u&&(r=u-a.offsetWidth)),i=W[0],O(i,function(e){if("relative"===M.contentWindow.getComputedStyle(e).getPropertyValue("position")&&u>=e.offsetWidth)return r-=(u-e.offsetWidth)/2,!1}),f={position:o,left:M.insideParent?a.offsetLeft:r,top:"",bottom:""},M.insideParent?f[l]=a.offsetTop+a.offsetHeight:f[l]=n,W.css(f)},W.on("open.xdsoft",function(t){var a=!0;M.onShow&&e.isFunction(M.onShow)&&(a=M.onShow.call(W,w.currentTime,W.data("input"),t)),!1!==a&&(W.show(),d(),e(M.contentWindow).off("resize.xdsoft",d).on("resize.xdsoft",d),M.closeOnWithoutClick&&e([M.ownerDocument.body,M.contentWindow]).on("touchstart mousedown.xdsoft",function t(){W.trigger("close.xdsoft"),e([M.ownerDocument.body,M.contentWindow]).off("touchstart mousedown.xdsoft",t)}))}).on("close.xdsoft",function(t){var a=!0;C.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide(),M.onClose&&e.isFunction(M.onClose)&&(a=M.onClose.call(W,w.currentTime,W.data("input"),t)),!1===a||M.opened||M.inline||W.hide(),t.stopPropagation()}).on("toggle.xdsoft",function(){W.is(":visible")?W.trigger("close.xdsoft"):W.trigger("open.xdsoft")}).data("input",t),N=0,W.data("xdsoft_datetime",w),W.setOptions(M),w.setCurrentTime(E()),t.data("xdsoft_datetimepicker",W).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function(){t.is(":disabled")||t.data("xdsoft_datetimepicker").is(":visible")&&M.closeOnInputClick||M.openOnFocus&&(clearTimeout(N),N=setTimeout(function(){t.is(":disabled")||(I=!0,w.setCurrentTime(E(),!0),M.mask&&R(M),W.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(t){var a,n=t.which;return-1!==[f].indexOf(n)&&M.enterLikeTab?(a=e("input:visible,textarea:visible,button:visible,a:visible"),W.trigger("close.xdsoft"),a.eq(a.index(this)+1).focus(),!1):-1!==[D].indexOf(n)?(W.trigger("close.xdsoft"),!0):void 0}).on("blur.xdsoft",function(){W.trigger("close.xdsoft")})},s=function(t){var a=t.data("xdsoft_datetimepicker");a&&(a.data("xdsoft_datetime",null),a.remove(),t.data("xdsoft_datetimepicker",null).off(".xdsoft"),e(M.contentWindow).off("resize.xdsoft"),e([M.contentWindow,M.ownerDocument.body]).off("mousedown.xdsoft touchstart"),t.unmousewheel&&t.unmousewheel())},e(M.ownerDocument).off("keydown.xdsoftctrl keyup.xdsoftctrl").off("keydown.xdsoftcmd keyup.xdsoftcmd").on("keydown.xdsoftctrl",function(e){e.keyCode===u&&(S=!0)}).on("keyup.xdsoftctrl",function(e){e.keyCode===u&&(S=!1)}).on("keydown.xdsoftcmd",function(e){e.keyCode}).on("keyup.xdsoftcmd",function(e){e.keyCode}),this.each(function(){var t,r=e(this).data("xdsoft_datetimepicker");if(r){if("string"===e.type(n))switch(n){case"show":e(this).select().focus(),r.trigger("open.xdsoft");break;case"hide":r.trigger("close.xdsoft");break;case"toggle":r.trigger("toggle.xdsoft");break;case"destroy":s(e(this));break;case"reset":this.value=this.defaultValue,this.value&&r.data("xdsoft_datetime").isValidDate(a.parseDate(this.value,M.format))||r.data("changed",!1),r.data("xdsoft_datetime").setCurrentTime(this.value);break;case"validate":r.data("input").trigger("blur.xdsoft");break;default:r[n]&&e.isFunction(r[n])&&(d=r[n](o))}else r.setOptions(n);return 0}"string"!==e.type(n)&&(!M.lazyInit||M.open||M.inline?i(e(this)):(t=e(this)).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function e(){t.is(":disabled")||t.data("xdsoft_datetimepicker")||(clearTimeout(w),w=setTimeout(function(){t.data("xdsoft_datetimepicker")||i(t),t.off("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",e).trigger("open.xdsoft")},100))}))}),d},e.fn.datetimepicker.defaults=t};!function(e){"function"==typeof define&&define.amd?define(["jquery","jquery-mousewheel"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(datetimepickerFactory),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){var t,a,n=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],o=Array.prototype.slice;if(e.event.fixHooks)for(var i=n.length;i;)e.event.fixHooks[n[--i]]=e.event.mouseHooks;var s=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=r.length;t;)this.addEventListener(r[--t],d,!1);else this.onmousewheel=d;e.data(this,"mousewheel-line-height",s.getLineHeight(this)),e.data(this,"mousewheel-page-height",s.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=r.length;t;)this.removeEventListener(r[--t],d,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var a=e(t),n=a["offsetParent"in e.fn?"offsetParent":"parent"]();return n.length||(n=e("body")),parseInt(n.css("fontSize"),10)||parseInt(a.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function d(n){var r,i=n||window.event,d=o.call(arguments,1),f=0,c=0,m=0,h=0,g=0;if((n=e.event.fix(i)).type="mousewheel","detail"in i&&(m=-1*i.detail),"wheelDelta"in i&&(m=i.wheelDelta),"wheelDeltaY"in i&&(m=i.wheelDeltaY),"wheelDeltaX"in i&&(c=-1*i.wheelDeltaX),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(c=-1*m,m=0),f=0===m?c:m,"deltaY"in i&&(f=m=-1*i.deltaY),"deltaX"in i&&(c=i.deltaX,0===m&&(f=-1*c)),0!==m||0!==c){if(1===i.deltaMode){var p=e.data(this,"mousewheel-line-height");f*=p,m*=p,c*=p}else if(2===i.deltaMode){var D=e.data(this,"mousewheel-page-height");f*=D,m*=D,c*=D}if(r=Math.max(Math.abs(m),Math.abs(c)),(!a||r<a)&&(a=r,l(i,r)&&(a/=40)),l(i,r)&&(f/=40,c/=40,m/=40),f=Math[f>=1?"floor":"ceil"](f/a),c=Math[c>=1?"floor":"ceil"](c/a),m=Math[m>=1?"floor":"ceil"](m/a),s.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();h=n.clientX-y.left,g=n.clientY-y.top}return n.deltaX=c,n.deltaY=m,n.deltaFactor=a,n.offsetX=h,n.offsetY=g,n.deltaMode=0,d.unshift(n,f,c,m),t&&clearTimeout(t),t=setTimeout(u,200),(e.event.dispatch||e.event.handle).apply(this,d)}}function u(){a=null}function l(e,t){return s.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})});
@@ -1 +1 @@
1
- !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./jquery.fileupload"],e):e(window.jQuery)}((function(e){"use strict";var s=e.blueimp.fileupload.prototype.options.add;e.widget("blueimp.fileupload",e.blueimp.fileupload,{options:{processQueue:[],add:function(r,i){var t=e(this);i.process((function(){return t.fileupload("process",i)})),s.call(this,r,i)}},processActions:{},_processFile:function(s,r){var i=this,t=e.Deferred().resolveWith(i,[s]).promise();return this._trigger("process",null,s),e.each(s.processQueue,(function(s,o){var n=function(s){return r.errorThrown?e.Deferred().rejectWith(i,[r]).promise():i.processActions[o.action].call(i,s,o)};t=t.then(n,o.always&&n)})),t.done((function(){i._trigger("processdone",null,s),i._trigger("processalways",null,s)})).fail((function(){i._trigger("processfail",null,s),i._trigger("processalways",null,s)})),t},_transformProcessQueue:function(s){var r=[];e.each(s.processQueue,(function(){var i={},t=this.action,o=!0===this.prefix?t:this.prefix;e.each(this,(function(r,t){"string"===e.type(t)&&"@"===t.charAt(0)?i[r]=s[t.slice(1)||(o?o+r.charAt(0).toUpperCase()+r.slice(1):r)]:i[r]=t})),r.push(i)})),s.processQueue=r},processing:function(){return this._processing},process:function(s){var r=this,i=e.extend({},this.options,s);return i.processQueue&&i.processQueue.length&&(this._transformProcessQueue(i),0===this._processing&&this._trigger("processstart"),e.each(s.files,(function(t){var o=t?e.extend({},i):i,n=function(){return s.errorThrown?e.Deferred().rejectWith(r,[s]).promise():r._processFile(o,s)};o.index=t,r._processing+=1,r._processingQueue=r._processingQueue.then(n,n).always((function(){r._processing-=1,0===r._processing&&r._trigger("processstop")}))}))),this._processingQueue},_create:function(){this._super(),this._processing=0,this._processingQueue=e.Deferred().resolveWith(this).promise()}})}));
1
+ !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./jquery.fileupload"],e):e(window.jQuery)}(function(e){"use strict";var s=e.blueimp.fileupload.prototype.options.add;e.widget("blueimp.fileupload",e.blueimp.fileupload,{options:{processQueue:[],add:function(r,i){var t=e(this);i.process(function(){return t.fileupload("process",i)}),s.call(this,r,i)}},processActions:{},_processFile:function(s,r){var i=this,t=e.Deferred().resolveWith(i,[s]).promise();return this._trigger("process",null,s),e.each(s.processQueue,function(s,o){var n=function(s){return r.errorThrown?e.Deferred().rejectWith(i,[r]).promise():i.processActions[o.action].call(i,s,o)};t=t.then(n,o.always&&n)}),t.done(function(){i._trigger("processdone",null,s),i._trigger("processalways",null,s)}).fail(function(){i._trigger("processfail",null,s),i._trigger("processalways",null,s)}),t},_transformProcessQueue:function(s){var r=[];e.each(s.processQueue,function(){var i={},t=this.action,o=!0===this.prefix?t:this.prefix;e.each(this,function(r,t){"string"===e.type(t)&&"@"===t.charAt(0)?i[r]=s[t.slice(1)||(o?o+r.charAt(0).toUpperCase()+r.slice(1):r)]:i[r]=t}),r.push(i)}),s.processQueue=r},processing:function(){return this._processing},process:function(s){var r=this,i=e.extend({},this.options,s);return i.processQueue&&i.processQueue.length&&(this._transformProcessQueue(i),0===this._processing&&this._trigger("processstart"),e.each(s.files,function(t){var o=t?e.extend({},i):i,n=function(){return s.errorThrown?e.Deferred().rejectWith(r,[s]).promise():r._processFile(o,s)};o.index=t,r._processing+=1,r._processingQueue=r._processingQueue.then(n,n).always(function(){r._processing-=1,0===r._processing&&r._trigger("processstop")})})),this._processingQueue},_create:function(){this._super(),this._processing=0,this._processingQueue=e.Deferred().resolveWith(this).promise()}})});
@@ -1 +1 @@
1
- !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","jquery.ui.widget"],e):e(window.jQuery)}((function(e){"use strict";e.support.fileInput=!(new RegExp("(Android (1\\.[0156]|2\\.[01]))|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)|(w(eb)?OSBrowser)|(webOS)|(Kindle/(1\\.0|2\\.[05]|3\\.0))").test(window.navigator.userAgent)||e('<input type="file">').prop("disabled")),e.support.xhrFileUpload=!(!window.ProgressEvent||!window.FileReader),e.support.xhrFormDataFileUpload=!!window.FormData,e.support.blobSlice=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice),e.widget("blueimp.fileupload",{options:{dropZone:e(document),pasteZone:e(document),fileInput:void 0,replaceFileInput:!0,paramName:void 0,singleFileUploads:!0,limitMultiFileUploads:void 0,limitMultiFileUploadSize:void 0,limitMultiFileUploadSizeOverhead:512,sequentialUploads:!1,limitConcurrentUploads:void 0,forceIframeTransport:!1,redirect:void 0,redirectParamName:void 0,postMessage:void 0,multipart:!0,maxChunkSize:void 0,uploadedBytes:void 0,recalculateProgress:!0,progressInterval:100,bitrateInterval:500,autoUpload:!0,messages:{uploadedBytes:"Uploaded bytes exceed file size"},i18n:function(t,i){return t=this.messages[t]||t.toString(),i&&e.each(i,(function(e,i){t=t.replace("{"+e+"}",i)})),t},formData:function(e){return e.serializeArray()},add:function(t,i){if(t.isDefaultPrevented())return!1;(i.autoUpload||!1!==i.autoUpload&&e(this).fileupload("option","autoUpload"))&&i.process().done((function(){i.trigger("submit")}))},processData:!1,contentType:!1,cache:!1},_specialOptions:["fileInput","dropZone","pasteZone","multipart","forceIframeTransport"],_blobSlice:e.support.blobSlice&&function(){return(this.slice||this.webkitSlice||this.mozSlice).apply(this,arguments)},_BitrateTimer:function(){this.timestamp=Date.now?Date.now():(new Date).getTime(),this.loaded=0,this.bitrate=0,this.getBitrate=function(e,t,i){var r=e-this.timestamp;return(!this.bitrate||!i||r>i)&&(this.bitrate=(t-this.loaded)*(1e3/r)*8,this.loaded=t,this.timestamp=e),this.bitrate}},_isXHRUpload:function(t){return!t.forceIframeTransport&&(!t.multipart&&e.support.xhrFileUpload||e.support.xhrFormDataFileUpload)},_getFormData:function(t){var i;return"function"===e.type(t.formData)?t.formData(t.form):e.isArray(t.formData)?t.formData:"object"===e.type(t.formData)?(i=[],e.each(t.formData,(function(e,t){i.push({name:e,value:t})})),i):[]},_getTotal:function(t){var i=0;return e.each(t,(function(e,t){i+=t.size||1})),i},_initProgressObject:function(t){var i={loaded:0,total:0,bitrate:0};t._progress?e.extend(t._progress,i):t._progress=i},_initResponseObject:function(e){var t;if(e._response)for(t in e._response)e._response.hasOwnProperty(t)&&delete e._response[t];else e._response={}},_onProgress:function(t,i){if(t.lengthComputable){var r,n=Date.now?Date.now():(new Date).getTime();if(i._time&&i.progressInterval&&n-i._time<i.progressInterval&&t.loaded!==t.total)return;i._time=n,r=Math.floor(t.loaded/t.total*(i.chunkSize||i._progress.total))+(i.uploadedBytes||0),this._progress.loaded+=r-i._progress.loaded,this._progress.bitrate=this._bitrateTimer.getBitrate(n,this._progress.loaded,i.bitrateInterval),i._progress.loaded=i.loaded=r,i._progress.bitrate=i.bitrate=i._bitrateTimer.getBitrate(n,r,i.bitrateInterval),this._trigger("progress",e.Event("progress",{delegatedEvent:t}),i),this._trigger("progressall",e.Event("progressall",{delegatedEvent:t}),this._progress)}},_initProgressListener:function(t){var i=this,r=t.xhr?t.xhr():e.ajaxSettings.xhr();r.upload&&(e(r.upload).on("progress",(function(e){var r=e.originalEvent;e.lengthComputable=r.lengthComputable,e.loaded=r.loaded,e.total=r.total,i._onProgress(e,t)})),t.xhr=function(){return r})},_isInstanceOf:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"},_initXHRData:function(t){var i,r=this,n=t.files[0],o=t.multipart||!e.support.xhrFileUpload,s="array"===e.type(t.paramName)?t.paramName[0]:t.paramName;t.headers=e.extend({},t.headers),t.contentRange&&(t.headers["Content-Range"]=t.contentRange),o&&!t.blob&&this._isInstanceOf("File",n)||(t.headers["Content-Disposition"]='attachment; filename="'+encodeURI(n.name)+'"'),o?e.support.xhrFormDataFileUpload&&(t.postMessage?(i=this._getFormData(t),t.blob?i.push({name:s,value:t.blob}):e.each(t.files,(function(r,n){i.push({name:"array"===e.type(t.paramName)&&t.paramName[r]||s,value:n})}))):(r._isInstanceOf("FormData",t.formData)?i=t.formData:(i=new FormData,e.each(this._getFormData(t),(function(e,t){i.append(t.name,t.value)}))),t.blob?i.append(s,t.blob,n.name):e.each(t.files,(function(n,o){(r._isInstanceOf("File",o)||r._isInstanceOf("Blob",o))&&i.append("array"===e.type(t.paramName)&&t.paramName[n]||s,o,o.uploadName||o.name)}))),t.data=i):(t.contentType=n.type||"application/octet-stream",t.data=t.blob||n),t.blob=null},_initIframeSettings:function(t){var i=e("<a></a>").prop("href",t.url).prop("host");t.dataType="iframe "+(t.dataType||""),t.formData=this._getFormData(t),t.redirect&&i&&i!==location.host&&t.formData.push({name:t.redirectParamName||"redirect",value:t.redirect})},_initDataSettings:function(e){this._isXHRUpload(e)?(this._chunkedUpload(e,!0)||(e.data||this._initXHRData(e),this._initProgressListener(e)),e.postMessage&&(e.dataType="postmessage "+(e.dataType||""))):this._initIframeSettings(e)},_getParamName:function(t){var i=e(t.fileInput),r=t.paramName;return r?e.isArray(r)||(r=[r]):(r=[],i.each((function(){for(var t=e(this),i=t.prop("name")||"files[]",n=(t.prop("files")||[1]).length;n;)r.push(i),n-=1})),r.length||(r=[i.prop("name")||"files[]"])),r},_initFormSettings:function(t){t.form&&t.form.length||(t.form=e(t.fileInput.prop("form")),t.form.length||(t.form=e(this.options.fileInput.prop("form")))),t.paramName=this._getParamName(t),t.url||(t.url=t.form.prop("action")||location.href),t.type=(t.type||"string"===e.type(t.form.prop("method"))&&t.form.prop("method")||"").toUpperCase(),"POST"!==t.type&&"PUT"!==t.type&&"PATCH"!==t.type&&(t.type="POST"),t.formAcceptCharset||(t.formAcceptCharset=t.form.attr("accept-charset"))},_getAJAXSettings:function(t){var i=e.extend({},this.options,t);return this._initFormSettings(i),this._initDataSettings(i),i},_getDeferredState:function(e){return e.state?e.state():e.isResolved()?"resolved":e.isRejected()?"rejected":"pending"},_enhancePromise:function(e){return e.success=e.done,e.error=e.fail,e.complete=e.always,e},_getXHRPromise:function(t,i,r){var n=e.Deferred(),o=n.promise();return i=i||this.options.context||o,!0===t?n.resolveWith(i,r):!1===t&&n.rejectWith(i,r),o.abort=n.promise,this._enhancePromise(o)},_addConvenienceMethods:function(t,i){var r=this,n=function(t){return e.Deferred().resolveWith(r,t).promise()};i.process=function(t,o){return(t||o)&&(i._processQueue=this._processQueue=(this._processQueue||n([this])).then((function(){return i.errorThrown?e.Deferred().rejectWith(r,[i]).promise():n(arguments)})).then(t,o)),this._processQueue||n([this])},i.submit=function(){return"pending"!==this.state()&&(i.jqXHR=this.jqXHR=!1!==r._trigger("submit",e.Event("submit",{delegatedEvent:t}),this)&&r._onSend(t,this)),this.jqXHR||r._getXHRPromise()},i.abort=function(){return this.jqXHR?this.jqXHR.abort():(this.errorThrown="abort",r._trigger("fail",null,this),r._getXHRPromise(!1))},i.state=function(){return this.jqXHR?r._getDeferredState(this.jqXHR):this._processQueue?r._getDeferredState(this._processQueue):void 0},i.processing=function(){return!this.jqXHR&&this._processQueue&&"pending"===r._getDeferredState(this._processQueue)},i.progress=function(){return this._progress},i.response=function(){return this._response}},_getUploadedBytes:function(e){var t=e.getResponseHeader("Range"),i=t&&t.split("-"),r=i&&i.length>1&&parseInt(i[1],10);return r&&r+1},_chunkedUpload:function(t,i){t.uploadedBytes=t.uploadedBytes||0;var r,n,o=this,s=t.files[0],a=s.size,l=t.uploadedBytes,p=t.maxChunkSize||a,u=this._blobSlice,d=e.Deferred(),h=d.promise();return!(!(this._isXHRUpload(t)&&u&&(l||p<a))||t.data)&&(!!i||(l>=a?(s.error=t.i18n("uploadedBytes"),this._getXHRPromise(!1,t.context,[null,"error",s.error])):(n=function(){var i=e.extend({},t),h=i._progress.loaded;i.blob=u.call(s,l,l+p,s.type),i.chunkSize=i.blob.size,i.contentRange="bytes "+l+"-"+(l+i.chunkSize-1)+"/"+a,o._initXHRData(i),o._initProgressListener(i),r=(!1!==o._trigger("chunksend",null,i)&&e.ajax(i)||o._getXHRPromise(!1,i.context)).done((function(r,s,p){l=o._getUploadedBytes(p)||l+i.chunkSize,h+i.chunkSize-i._progress.loaded&&o._onProgress(e.Event("progress",{lengthComputable:!0,loaded:l-i.uploadedBytes,total:l-i.uploadedBytes}),i),t.uploadedBytes=i.uploadedBytes=l,i.result=r,i.textStatus=s,i.jqXHR=p,o._trigger("chunkdone",null,i),o._trigger("chunkalways",null,i),l<a?n():d.resolveWith(i.context,[r,s,p])})).fail((function(e,t,r){i.jqXHR=e,i.textStatus=t,i.errorThrown=r,o._trigger("chunkfail",null,i),o._trigger("chunkalways",null,i),d.rejectWith(i.context,[e,t,r])}))},this._enhancePromise(h),h.abort=function(){return r.abort()},n(),h)))},_beforeSend:function(e,t){0===this._active&&(this._trigger("start"),this._bitrateTimer=new this._BitrateTimer,this._progress.loaded=this._progress.total=0,this._progress.bitrate=0),this._initResponseObject(t),this._initProgressObject(t),t._progress.loaded=t.loaded=t.uploadedBytes||0,t._progress.total=t.total=this._getTotal(t.files)||1,t._progress.bitrate=t.bitrate=0,this._active+=1,this._progress.loaded+=t.loaded,this._progress.total+=t.total},_onDone:function(t,i,r,n){var o=n._progress.total,s=n._response;n._progress.loaded<o&&this._onProgress(e.Event("progress",{lengthComputable:!0,loaded:o,total:o}),n),s.result=n.result=t,s.textStatus=n.textStatus=i,s.jqXHR=n.jqXHR=r,this._trigger("done",null,n)},_onFail:function(e,t,i,r){var n=r._response;r.recalculateProgress&&(this._progress.loaded-=r._progress.loaded,this._progress.total-=r._progress.total),n.jqXHR=r.jqXHR=e,n.textStatus=r.textStatus=t,n.errorThrown=r.errorThrown=i,this._trigger("fail",null,r)},_onAlways:function(e,t,i,r){this._trigger("always",null,r)},_onSend:function(t,i){i.submit||this._addConvenienceMethods(t,i);var r,n,o,s,a=this,l=a._getAJAXSettings(i),p=function(){return a._sending+=1,l._bitrateTimer=new a._BitrateTimer,r=r||((n||!1===a._trigger("send",e.Event("send",{delegatedEvent:t}),l))&&a._getXHRPromise(!1,l.context,n)||a._chunkedUpload(l)||e.ajax(l)).done((function(e,t,i){a._onDone(e,t,i,l)})).fail((function(e,t,i){a._onFail(e,t,i,l)})).always((function(e,t,i){if(a._onAlways(e,t,i,l),a._sending-=1,a._active-=1,l.limitConcurrentUploads&&l.limitConcurrentUploads>a._sending)for(var r=a._slots.shift();r;){if("pending"===a._getDeferredState(r)){r.resolve();break}r=a._slots.shift()}0===a._active&&a._trigger("stop")}))};return this._beforeSend(t,l),this.options.sequentialUploads||this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending?(this.options.limitConcurrentUploads>1?(o=e.Deferred(),this._slots.push(o),s=o.then(p)):(this._sequence=this._sequence.then(p,p),s=this._sequence),s.abort=function(){return n=[void 0,"abort","abort"],r?r.abort():(o&&o.rejectWith(l.context,n),p())},this._enhancePromise(s)):p()},_onAdd:function(t,i){var r,n,o,s,a=this,l=!0,p=e.extend({},this.options,i),u=i.files,d=u.length,h=p.limitMultiFileUploads,f=p.limitMultiFileUploadSize,c=p.limitMultiFileUploadSizeOverhead,g=0,_=this._getParamName(p),m=0;if(!f||d&&void 0!==u[0].size||(f=void 0),(p.singleFileUploads||h||f)&&this._isXHRUpload(p))if(p.singleFileUploads||f||!h)if(!p.singleFileUploads&&f)for(o=[],r=[],s=0;s<d;s+=1)g+=u[s].size+c,(s+1===d||g+u[s+1].size+c>f||h&&s+1-m>=h)&&(o.push(u.slice(m,s+1)),(n=_.slice(m,s+1)).length||(n=_),r.push(n),m=s+1,g=0);else r=_;else for(o=[],r=[],s=0;s<d;s+=h)o.push(u.slice(s,s+h)),(n=_.slice(s,s+h)).length||(n=_),r.push(n);else o=[u],r=[_];return i.originalFiles=u,e.each(o||u,(function(n,s){var p=e.extend({},i);return p.files=o?s:[s],p.paramName=r[n],a._initResponseObject(p),a._initProgressObject(p),a._addConvenienceMethods(t,p),l=a._trigger("add",e.Event("add",{delegatedEvent:t}),p)})),l},_replaceFileInput:function(t){var i=t.clone(!0);e("<form></form>").append(i)[0].reset(),t.after(i).detach(),e.cleanData(t.off("remove")),this.options.fileInput=this.options.fileInput.map((function(e,r){return r===t[0]?i[0]:r})),t[0]===this.element[0]&&(this.element=i)},_handleFileTreeEntry:function(t,i){var r=this,n=e.Deferred(),o=function(e){e&&!e.entry&&(e.entry=t),n.resolve([e])};return i=i||"",t.isFile?t._file?(t._file.relativePath=i,n.resolve(t._file)):t.file((function(e){e.relativePath=i,n.resolve(e)}),o):t.isDirectory?t.createReader().readEntries((function(e){r._handleFileTreeEntries(e,i+t.name+"/").done((function(e){n.resolve(e)})).fail(o)}),o):n.resolve([]),n.promise()},_handleFileTreeEntries:function(t,i){var r=this;return e.when.apply(e,e.map(t,(function(e){return r._handleFileTreeEntry(e,i)}))).then((function(){return Array.prototype.concat.apply([],arguments)}))},_getDroppedFiles:function(t){var i=(t=t||{}).items;return i&&i.length&&(i[0].webkitGetAsEntry||i[0].getAsEntry)?this._handleFileTreeEntries(e.map(i,(function(e){var t;return e.webkitGetAsEntry?((t=e.webkitGetAsEntry())&&(t._file=e.getAsFile()),t):e.getAsEntry()}))):e.Deferred().resolve(e.makeArray(t.files)).promise()},_getSingleFileInputFiles:function(t){var i,r,n=(t=e(t)).prop("webkitEntries")||t.prop("entries");if(n&&n.length)return this._handleFileTreeEntries(n);if((i=e.makeArray(t.prop("files"))).length)void 0===i[0].name&&i[0].fileName&&e.each(i,(function(e,t){t.name=t.fileName,t.size=t.fileSize}));else{if(!(r=t.prop("value")))return e.Deferred().resolve([]).promise();i=[{name:r.replace(/^.*\\/,"")}]}return e.Deferred().resolve(i).promise()},_getFileInputFiles:function(t){return t instanceof e&&1!==t.length?e.when.apply(e,e.map(t,this._getSingleFileInputFiles)).then((function(){return Array.prototype.concat.apply([],arguments)})):this._getSingleFileInputFiles(t)},_onChange:function(t){var i=this,r={fileInput:e(t.target),form:e(t.target.form)};this._getFileInputFiles(r.fileInput).always((function(n){r.files=n,i.options.replaceFileInput&&i._replaceFileInput(r.fileInput),!1!==i._trigger("change",e.Event("change",{delegatedEvent:t}),r)&&i._onAdd(t,r)}))},_onPaste:function(t){var i=t.originalEvent&&t.originalEvent.clipboardData&&t.originalEvent.clipboardData.items,r={files:[]};i&&i.length&&(e.each(i,(function(e,t){var i=t.getAsFile&&t.getAsFile();i&&r.files.push(i)})),!1!==this._trigger("paste",e.Event("paste",{delegatedEvent:t}),r)&&this._onAdd(t,r))},_onDrop:function(t){t.dataTransfer=t.originalEvent&&t.originalEvent.dataTransfer;var i=this,r=t.dataTransfer,n={};r&&r.files&&r.files.length&&(t.preventDefault(),this._getDroppedFiles(r).always((function(r){n.files=r,!1!==i._trigger("drop",e.Event("drop",{delegatedEvent:t}),n)&&i._onAdd(t,n)})))},_onDragOver:function(t){t.dataTransfer=t.originalEvent&&t.originalEvent.dataTransfer;var i=t.dataTransfer;i&&-1!==e.inArray("Files",i.types)&&!1!==this._trigger("dragover",e.Event("dragover",{delegatedEvent:t}))&&(t.preventDefault(),i.dropEffect="copy")},_initEventHandlers:function(){this._isXHRUpload(this.options)&&(this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop}),this._on(this.options.pasteZone,{paste:this._onPaste})),e.support.fileInput&&this._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandlers:function(){this._off(this.options.dropZone,"dragover drop"),this._off(this.options.pasteZone,"paste"),this._off(this.options.fileInput,"change")},_setOption:function(t,i){var r=-1!==e.inArray(t,this._specialOptions);r&&this._destroyEventHandlers(),this._super(t,i),r&&(this._initSpecialOptions(),this._initEventHandlers())},_initSpecialOptions:function(){var t=this.options;void 0===t.fileInput?t.fileInput=this.element.is('input[type="file"]')?this.element:this.element.find('input[type="file"]'):t.fileInput instanceof e||(t.fileInput=e(t.fileInput)),t.dropZone instanceof e||(t.dropZone=e(t.dropZone)),t.pasteZone instanceof e||(t.pasteZone=e(t.pasteZone))},_getRegExp:function(e){var t=e.split("/"),i=t.pop();return t.shift(),new RegExp(t.join("/"),i)},_isRegExpOption:function(t,i){return"url"!==t&&"string"===e.type(i)&&/^\/.*\/[igm]{0,3}$/.test(i)},_initDataAttributes:function(){var t=this,i=this.options,r=e(this.element[0].cloneNode(!1));e.each(r.data(),(function(e,n){var o="data-"+e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();r.attr(o)&&(t._isRegExpOption(e,n)&&(n=t._getRegExp(n)),i[e]=n)}))},_create:function(){this._initDataAttributes(),this._initSpecialOptions(),this._slots=[],this._sequence=this._getXHRPromise(!0),this._sending=this._active=0,this._initProgressObject(this),this._initEventHandlers()},active:function(){return this._active},progress:function(){return this._progress},add:function(t){var i=this;t&&!this.options.disabled&&(t.fileInput&&!t.files?this._getFileInputFiles(t.fileInput).always((function(e){t.files=e,i._onAdd(null,t)})):(t.files=e.makeArray(t.files),this._onAdd(null,t)))},send:function(t){if(t&&!this.options.disabled){if(t.fileInput&&!t.files){var i,r,n=this,o=e.Deferred(),s=o.promise();return s.abort=function(){return r=!0,i?i.abort():(o.reject(null,"abort","abort"),s)},this._getFileInputFiles(t.fileInput).always((function(e){r||(e.length?(t.files=e,i=n._onSend(null,t).then((function(e,t,i){o.resolve(e,t,i)}),(function(e,t,i){o.reject(e,t,i)}))):o.reject())})),this._enhancePromise(s)}if(t.files=e.makeArray(t.files),t.files.length)return this._onSend(null,t)}return this._getXHRPromise(!1,t&&t.context)}})}));
1
+ !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","jquery.ui.widget"],e):e(window.jQuery)}(function(e){"use strict";e.support.fileInput=!(new RegExp("(Android (1\\.[0156]|2\\.[01]))|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)|(w(eb)?OSBrowser)|(webOS)|(Kindle/(1\\.0|2\\.[05]|3\\.0))").test(window.navigator.userAgent)||e('<input type="file">').prop("disabled")),e.support.xhrFileUpload=!(!window.ProgressEvent||!window.FileReader),e.support.xhrFormDataFileUpload=!!window.FormData,e.support.blobSlice=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice),e.widget("blueimp.fileupload",{options:{dropZone:e(document),pasteZone:e(document),fileInput:void 0,replaceFileInput:!0,paramName:void 0,singleFileUploads:!0,limitMultiFileUploads:void 0,limitMultiFileUploadSize:void 0,limitMultiFileUploadSizeOverhead:512,sequentialUploads:!1,limitConcurrentUploads:void 0,forceIframeTransport:!1,redirect:void 0,redirectParamName:void 0,postMessage:void 0,multipart:!0,maxChunkSize:void 0,uploadedBytes:void 0,recalculateProgress:!0,progressInterval:100,bitrateInterval:500,autoUpload:!0,messages:{uploadedBytes:"Uploaded bytes exceed file size"},i18n:function(t,i){return t=this.messages[t]||t.toString(),i&&e.each(i,function(e,i){t=t.replace("{"+e+"}",i)}),t},formData:function(e){return e.serializeArray()},add:function(t,i){if(t.isDefaultPrevented())return!1;(i.autoUpload||!1!==i.autoUpload&&e(this).fileupload("option","autoUpload"))&&i.process().done(function(){i.trigger("submit")})},processData:!1,contentType:!1,cache:!1},_specialOptions:["fileInput","dropZone","pasteZone","multipart","forceIframeTransport"],_blobSlice:e.support.blobSlice&&function(){return(this.slice||this.webkitSlice||this.mozSlice).apply(this,arguments)},_BitrateTimer:function(){this.timestamp=Date.now?Date.now():(new Date).getTime(),this.loaded=0,this.bitrate=0,this.getBitrate=function(e,t,i){var r=e-this.timestamp;return(!this.bitrate||!i||r>i)&&(this.bitrate=(t-this.loaded)*(1e3/r)*8,this.loaded=t,this.timestamp=e),this.bitrate}},_isXHRUpload:function(t){return!t.forceIframeTransport&&(!t.multipart&&e.support.xhrFileUpload||e.support.xhrFormDataFileUpload)},_getFormData:function(t){var i;return"function"===e.type(t.formData)?t.formData(t.form):e.isArray(t.formData)?t.formData:"object"===e.type(t.formData)?(i=[],e.each(t.formData,function(e,t){i.push({name:e,value:t})}),i):[]},_getTotal:function(t){var i=0;return e.each(t,function(e,t){i+=t.size||1}),i},_initProgressObject:function(t){var i={loaded:0,total:0,bitrate:0};t._progress?e.extend(t._progress,i):t._progress=i},_initResponseObject:function(e){var t;if(e._response)for(t in e._response)e._response.hasOwnProperty(t)&&delete e._response[t];else e._response={}},_onProgress:function(t,i){if(t.lengthComputable){var r,n=Date.now?Date.now():(new Date).getTime();if(i._time&&i.progressInterval&&n-i._time<i.progressInterval&&t.loaded!==t.total)return;i._time=n,r=Math.floor(t.loaded/t.total*(i.chunkSize||i._progress.total))+(i.uploadedBytes||0),this._progress.loaded+=r-i._progress.loaded,this._progress.bitrate=this._bitrateTimer.getBitrate(n,this._progress.loaded,i.bitrateInterval),i._progress.loaded=i.loaded=r,i._progress.bitrate=i.bitrate=i._bitrateTimer.getBitrate(n,r,i.bitrateInterval),this._trigger("progress",e.Event("progress",{delegatedEvent:t}),i),this._trigger("progressall",e.Event("progressall",{delegatedEvent:t}),this._progress)}},_initProgressListener:function(t){var i=this,r=t.xhr?t.xhr():e.ajaxSettings.xhr();r.upload&&(e(r.upload).on("progress",function(e){var r=e.originalEvent;e.lengthComputable=r.lengthComputable,e.loaded=r.loaded,e.total=r.total,i._onProgress(e,t)}),t.xhr=function(){return r})},_isInstanceOf:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"},_initXHRData:function(t){var i,r=this,n=t.files[0],o=t.multipart||!e.support.xhrFileUpload,s="array"===e.type(t.paramName)?t.paramName[0]:t.paramName;t.headers=e.extend({},t.headers),t.contentRange&&(t.headers["Content-Range"]=t.contentRange),o&&!t.blob&&this._isInstanceOf("File",n)||(t.headers["Content-Disposition"]='attachment; filename="'+encodeURI(n.name)+'"'),o?e.support.xhrFormDataFileUpload&&(t.postMessage?(i=this._getFormData(t),t.blob?i.push({name:s,value:t.blob}):e.each(t.files,function(r,n){i.push({name:"array"===e.type(t.paramName)&&t.paramName[r]||s,value:n})})):(r._isInstanceOf("FormData",t.formData)?i=t.formData:(i=new FormData,e.each(this._getFormData(t),function(e,t){i.append(t.name,t.value)})),t.blob?i.append(s,t.blob,n.name):e.each(t.files,function(n,o){(r._isInstanceOf("File",o)||r._isInstanceOf("Blob",o))&&i.append("array"===e.type(t.paramName)&&t.paramName[n]||s,o,o.uploadName||o.name)})),t.data=i):(t.contentType=n.type||"application/octet-stream",t.data=t.blob||n),t.blob=null},_initIframeSettings:function(t){var i=e("<a></a>").prop("href",t.url).prop("host");t.dataType="iframe "+(t.dataType||""),t.formData=this._getFormData(t),t.redirect&&i&&i!==location.host&&t.formData.push({name:t.redirectParamName||"redirect",value:t.redirect})},_initDataSettings:function(e){this._isXHRUpload(e)?(this._chunkedUpload(e,!0)||(e.data||this._initXHRData(e),this._initProgressListener(e)),e.postMessage&&(e.dataType="postmessage "+(e.dataType||""))):this._initIframeSettings(e)},_getParamName:function(t){var i=e(t.fileInput),r=t.paramName;return r?e.isArray(r)||(r=[r]):(r=[],i.each(function(){for(var t=e(this),i=t.prop("name")||"files[]",n=(t.prop("files")||[1]).length;n;)r.push(i),n-=1}),r.length||(r=[i.prop("name")||"files[]"])),r},_initFormSettings:function(t){t.form&&t.form.length||(t.form=e(t.fileInput.prop("form")),t.form.length||(t.form=e(this.options.fileInput.prop("form")))),t.paramName=this._getParamName(t),t.url||(t.url=t.form.prop("action")||location.href),t.type=(t.type||"string"===e.type(t.form.prop("method"))&&t.form.prop("method")||"").toUpperCase(),"POST"!==t.type&&"PUT"!==t.type&&"PATCH"!==t.type&&(t.type="POST"),t.formAcceptCharset||(t.formAcceptCharset=t.form.attr("accept-charset"))},_getAJAXSettings:function(t){var i=e.extend({},this.options,t);return this._initFormSettings(i),this._initDataSettings(i),i},_getDeferredState:function(e){return e.state?e.state():e.isResolved()?"resolved":e.isRejected()?"rejected":"pending"},_enhancePromise:function(e){return e.success=e.done,e.error=e.fail,e.complete=e.always,e},_getXHRPromise:function(t,i,r){var n=e.Deferred(),o=n.promise();return i=i||this.options.context||o,!0===t?n.resolveWith(i,r):!1===t&&n.rejectWith(i,r),o.abort=n.promise,this._enhancePromise(o)},_addConvenienceMethods:function(t,i){var r=this,n=function(t){return e.Deferred().resolveWith(r,t).promise()};i.process=function(t,o){return(t||o)&&(i._processQueue=this._processQueue=(this._processQueue||n([this])).then(function(){return i.errorThrown?e.Deferred().rejectWith(r,[i]).promise():n(arguments)}).then(t,o)),this._processQueue||n([this])},i.submit=function(){return"pending"!==this.state()&&(i.jqXHR=this.jqXHR=!1!==r._trigger("submit",e.Event("submit",{delegatedEvent:t}),this)&&r._onSend(t,this)),this.jqXHR||r._getXHRPromise()},i.abort=function(){return this.jqXHR?this.jqXHR.abort():(this.errorThrown="abort",r._trigger("fail",null,this),r._getXHRPromise(!1))},i.state=function(){return this.jqXHR?r._getDeferredState(this.jqXHR):this._processQueue?r._getDeferredState(this._processQueue):void 0},i.processing=function(){return!this.jqXHR&&this._processQueue&&"pending"===r._getDeferredState(this._processQueue)},i.progress=function(){return this._progress},i.response=function(){return this._response}},_getUploadedBytes:function(e){var t=e.getResponseHeader("Range"),i=t&&t.split("-"),r=i&&i.length>1&&parseInt(i[1],10);return r&&r+1},_chunkedUpload:function(t,i){t.uploadedBytes=t.uploadedBytes||0;var r,n,o=this,s=t.files[0],a=s.size,l=t.uploadedBytes,p=t.maxChunkSize||a,u=this._blobSlice,d=e.Deferred(),h=d.promise();return!(!(this._isXHRUpload(t)&&u&&(l||p<a))||t.data)&&(!!i||(l>=a?(s.error=t.i18n("uploadedBytes"),this._getXHRPromise(!1,t.context,[null,"error",s.error])):(n=function(){var i=e.extend({},t),h=i._progress.loaded;i.blob=u.call(s,l,l+p,s.type),i.chunkSize=i.blob.size,i.contentRange="bytes "+l+"-"+(l+i.chunkSize-1)+"/"+a,o._initXHRData(i),o._initProgressListener(i),r=(!1!==o._trigger("chunksend",null,i)&&e.ajax(i)||o._getXHRPromise(!1,i.context)).done(function(r,s,p){l=o._getUploadedBytes(p)||l+i.chunkSize,h+i.chunkSize-i._progress.loaded&&o._onProgress(e.Event("progress",{lengthComputable:!0,loaded:l-i.uploadedBytes,total:l-i.uploadedBytes}),i),t.uploadedBytes=i.uploadedBytes=l,i.result=r,i.textStatus=s,i.jqXHR=p,o._trigger("chunkdone",null,i),o._trigger("chunkalways",null,i),l<a?n():d.resolveWith(i.context,[r,s,p])}).fail(function(e,t,r){i.jqXHR=e,i.textStatus=t,i.errorThrown=r,o._trigger("chunkfail",null,i),o._trigger("chunkalways",null,i),d.rejectWith(i.context,[e,t,r])})},this._enhancePromise(h),h.abort=function(){return r.abort()},n(),h)))},_beforeSend:function(e,t){0===this._active&&(this._trigger("start"),this._bitrateTimer=new this._BitrateTimer,this._progress.loaded=this._progress.total=0,this._progress.bitrate=0),this._initResponseObject(t),this._initProgressObject(t),t._progress.loaded=t.loaded=t.uploadedBytes||0,t._progress.total=t.total=this._getTotal(t.files)||1,t._progress.bitrate=t.bitrate=0,this._active+=1,this._progress.loaded+=t.loaded,this._progress.total+=t.total},_onDone:function(t,i,r,n){var o=n._progress.total,s=n._response;n._progress.loaded<o&&this._onProgress(e.Event("progress",{lengthComputable:!0,loaded:o,total:o}),n),s.result=n.result=t,s.textStatus=n.textStatus=i,s.jqXHR=n.jqXHR=r,this._trigger("done",null,n)},_onFail:function(e,t,i,r){var n=r._response;r.recalculateProgress&&(this._progress.loaded-=r._progress.loaded,this._progress.total-=r._progress.total),n.jqXHR=r.jqXHR=e,n.textStatus=r.textStatus=t,n.errorThrown=r.errorThrown=i,this._trigger("fail",null,r)},_onAlways:function(e,t,i,r){this._trigger("always",null,r)},_onSend:function(t,i){i.submit||this._addConvenienceMethods(t,i);var r,n,o,s,a=this,l=a._getAJAXSettings(i),p=function(){return a._sending+=1,l._bitrateTimer=new a._BitrateTimer,r=r||((n||!1===a._trigger("send",e.Event("send",{delegatedEvent:t}),l))&&a._getXHRPromise(!1,l.context,n)||a._chunkedUpload(l)||e.ajax(l)).done(function(e,t,i){a._onDone(e,t,i,l)}).fail(function(e,t,i){a._onFail(e,t,i,l)}).always(function(e,t,i){if(a._onAlways(e,t,i,l),a._sending-=1,a._active-=1,l.limitConcurrentUploads&&l.limitConcurrentUploads>a._sending)for(var r=a._slots.shift();r;){if("pending"===a._getDeferredState(r)){r.resolve();break}r=a._slots.shift()}0===a._active&&a._trigger("stop")})};return this._beforeSend(t,l),this.options.sequentialUploads||this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending?(this.options.limitConcurrentUploads>1?(o=e.Deferred(),this._slots.push(o),s=o.then(p)):(this._sequence=this._sequence.then(p,p),s=this._sequence),s.abort=function(){return n=[void 0,"abort","abort"],r?r.abort():(o&&o.rejectWith(l.context,n),p())},this._enhancePromise(s)):p()},_onAdd:function(t,i){var r,n,o,s,a=this,l=!0,p=e.extend({},this.options,i),u=i.files,d=u.length,h=p.limitMultiFileUploads,f=p.limitMultiFileUploadSize,c=p.limitMultiFileUploadSizeOverhead,g=0,_=this._getParamName(p),m=0;if(!f||d&&void 0!==u[0].size||(f=void 0),(p.singleFileUploads||h||f)&&this._isXHRUpload(p))if(p.singleFileUploads||f||!h)if(!p.singleFileUploads&&f)for(o=[],r=[],s=0;s<d;s+=1)g+=u[s].size+c,(s+1===d||g+u[s+1].size+c>f||h&&s+1-m>=h)&&(o.push(u.slice(m,s+1)),(n=_.slice(m,s+1)).length||(n=_),r.push(n),m=s+1,g=0);else r=_;else for(o=[],r=[],s=0;s<d;s+=h)o.push(u.slice(s,s+h)),(n=_.slice(s,s+h)).length||(n=_),r.push(n);else o=[u],r=[_];return i.originalFiles=u,e.each(o||u,function(n,s){var p=e.extend({},i);return p.files=o?s:[s],p.paramName=r[n],a._initResponseObject(p),a._initProgressObject(p),a._addConvenienceMethods(t,p),l=a._trigger("add",e.Event("add",{delegatedEvent:t}),p)}),l},_replaceFileInput:function(t){var i=t.clone(!0);e("<form></form>").append(i)[0].reset(),t.after(i).detach(),e.cleanData(t.off("remove")),this.options.fileInput=this.options.fileInput.map(function(e,r){return r===t[0]?i[0]:r}),t[0]===this.element[0]&&(this.element=i)},_handleFileTreeEntry:function(t,i){var r=this,n=e.Deferred(),o=function(e){e&&!e.entry&&(e.entry=t),n.resolve([e])};return i=i||"",t.isFile?t._file?(t._file.relativePath=i,n.resolve(t._file)):t.file(function(e){e.relativePath=i,n.resolve(e)},o):t.isDirectory?t.createReader().readEntries(function(e){r._handleFileTreeEntries(e,i+t.name+"/").done(function(e){n.resolve(e)}).fail(o)},o):n.resolve([]),n.promise()},_handleFileTreeEntries:function(t,i){var r=this;return e.when.apply(e,e.map(t,function(e){return r._handleFileTreeEntry(e,i)})).then(function(){return Array.prototype.concat.apply([],arguments)})},_getDroppedFiles:function(t){var i=(t=t||{}).items;return i&&i.length&&(i[0].webkitGetAsEntry||i[0].getAsEntry)?this._handleFileTreeEntries(e.map(i,function(e){var t;return e.webkitGetAsEntry?((t=e.webkitGetAsEntry())&&(t._file=e.getAsFile()),t):e.getAsEntry()})):e.Deferred().resolve(e.makeArray(t.files)).promise()},_getSingleFileInputFiles:function(t){var i,r,n=(t=e(t)).prop("webkitEntries")||t.prop("entries");if(n&&n.length)return this._handleFileTreeEntries(n);if((i=e.makeArray(t.prop("files"))).length)void 0===i[0].name&&i[0].fileName&&e.each(i,function(e,t){t.name=t.fileName,t.size=t.fileSize});else{if(!(r=t.prop("value")))return e.Deferred().resolve([]).promise();i=[{name:r.replace(/^.*\\/,"")}]}return e.Deferred().resolve(i).promise()},_getFileInputFiles:function(t){return t instanceof e&&1!==t.length?e.when.apply(e,e.map(t,this._getSingleFileInputFiles)).then(function(){return Array.prototype.concat.apply([],arguments)}):this._getSingleFileInputFiles(t)},_onChange:function(t){var i=this,r={fileInput:e(t.target),form:e(t.target.form)};this._getFileInputFiles(r.fileInput).always(function(n){r.files=n,i.options.replaceFileInput&&i._replaceFileInput(r.fileInput),!1!==i._trigger("change",e.Event("change",{delegatedEvent:t}),r)&&i._onAdd(t,r)})},_onPaste:function(t){var i=t.originalEvent&&t.originalEvent.clipboardData&&t.originalEvent.clipboardData.items,r={files:[]};i&&i.length&&(e.each(i,function(e,t){var i=t.getAsFile&&t.getAsFile();i&&r.files.push(i)}),!1!==this._trigger("paste",e.Event("paste",{delegatedEvent:t}),r)&&this._onAdd(t,r))},_onDrop:function(t){t.dataTransfer=t.originalEvent&&t.originalEvent.dataTransfer;var i=this,r=t.dataTransfer,n={};r&&r.files&&r.files.length&&(t.preventDefault(),this._getDroppedFiles(r).always(function(r){n.files=r,!1!==i._trigger("drop",e.Event("drop",{delegatedEvent:t}),n)&&i._onAdd(t,n)}))},_onDragOver:function(t){t.dataTransfer=t.originalEvent&&t.originalEvent.dataTransfer;var i=t.dataTransfer;i&&-1!==e.inArray("Files",i.types)&&!1!==this._trigger("dragover",e.Event("dragover",{delegatedEvent:t}))&&(t.preventDefault(),i.dropEffect="copy")},_initEventHandlers:function(){this._isXHRUpload(this.options)&&(this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop}),this._on(this.options.pasteZone,{paste:this._onPaste})),e.support.fileInput&&this._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandlers:function(){this._off(this.options.dropZone,"dragover drop"),this._off(this.options.pasteZone,"paste"),this._off(this.options.fileInput,"change")},_setOption:function(t,i){var r=-1!==e.inArray(t,this._specialOptions);r&&this._destroyEventHandlers(),this._super(t,i),r&&(this._initSpecialOptions(),this._initEventHandlers())},_initSpecialOptions:function(){var t=this.options;void 0===t.fileInput?t.fileInput=this.element.is('input[type="file"]')?this.element:this.element.find('input[type="file"]'):t.fileInput instanceof e||(t.fileInput=e(t.fileInput)),t.dropZone instanceof e||(t.dropZone=e(t.dropZone)),t.pasteZone instanceof e||(t.pasteZone=e(t.pasteZone))},_getRegExp:function(e){var t=e.split("/"),i=t.pop();return t.shift(),new RegExp(t.join("/"),i)},_isRegExpOption:function(t,i){return"url"!==t&&"string"===e.type(i)&&/^\/.*\/[igm]{0,3}$/.test(i)},_initDataAttributes:function(){var t=this,i=this.options,r=e(this.element[0].cloneNode(!1));e.each(r.data(),function(e,n){var o="data-"+e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();r.attr(o)&&(t._isRegExpOption(e,n)&&(n=t._getRegExp(n)),i[e]=n)})},_create:function(){this._initDataAttributes(),this._initSpecialOptions(),this._slots=[],this._sequence=this._getXHRPromise(!0),this._sending=this._active=0,this._initProgressObject(this),this._initEventHandlers()},active:function(){return this._active},progress:function(){return this._progress},add:function(t){var i=this;t&&!this.options.disabled&&(t.fileInput&&!t.files?this._getFileInputFiles(t.fileInput).always(function(e){t.files=e,i._onAdd(null,t)}):(t.files=e.makeArray(t.files),this._onAdd(null,t)))},send:function(t){if(t&&!this.options.disabled){if(t.fileInput&&!t.files){var i,r,n=this,o=e.Deferred(),s=o.promise();return s.abort=function(){return r=!0,i?i.abort():(o.reject(null,"abort","abort"),s)},this._getFileInputFiles(t.fileInput).always(function(e){r||(e.length?(t.files=e,i=n._onSend(null,t).then(function(e,t,i){o.resolve(e,t,i)},function(e,t,i){o.reject(e,t,i)})):o.reject())}),this._enhancePromise(s)}if(t.files=e.makeArray(t.files),t.files.length)return this._onSend(null,t)}return this._getXHRPromise(!1,t&&t.context)}})});
@@ -1 +1 @@
1
- !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(window.jQuery)}((function(e){"use strict";var t=0;e.ajaxTransport("iframe",(function(r){if(r.async){var a,n,o,p=r.initialIframeSrc||"javascript:false;";return{send:function(i,f){(a=e('<form style="display:none;"></form>')).attr("accept-charset",r.formAcceptCharset),o=/\?/.test(r.url)?"&":"?","DELETE"===r.type?(r.url=r.url+o+"_method=DELETE",r.type="POST"):"PUT"===r.type?(r.url=r.url+o+"_method=PUT",r.type="POST"):"PATCH"===r.type&&(r.url=r.url+o+"_method=PATCH",r.type="POST"),n=e('<iframe src="'+p+'" name="iframe-transport-'+(t+=1)+'"></iframe>').on("load",(function(){var t,o=e.isArray(r.paramName)?r.paramName:[r.paramName];n.off("load").on("load",(function(){var t;try{if(!(t=n.contents()).length||!t[0].firstChild)throw new Error}catch(e){t=void 0}f(200,"success",{iframe:t}),e('<iframe src="'+p+'"></iframe>').appendTo(a),window.setTimeout((function(){a.remove()}),0)})),a.prop("target",n.prop("name")).prop("action",r.url).prop("method",r.type),r.formData&&e.each(r.formData,(function(t,r){e('<input type="hidden"/>').prop("name",r.name).val(r.value).appendTo(a)})),r.fileInput&&r.fileInput.length&&"POST"===r.type&&(t=r.fileInput.clone(),r.fileInput.after((function(e){return t[e]})),r.paramName&&r.fileInput.each((function(t){e(this).prop("name",o[t]||r.paramName)})),a.append(r.fileInput).prop("enctype","multipart/form-data").prop("encoding","multipart/form-data"),r.fileInput.removeAttr("form")),a.trigger("submit"),t&&t.length&&r.fileInput.each((function(r,a){var n=e(t[r]);e(a).prop("name",n.prop("name")).attr("form",n.attr("form")),n.replaceWith(a)}))})),a.append(n).appendTo(document.body)},abort:function(){n&&n.off("load").prop("src",p),a&&a.remove()}}}})),e.ajaxSetup({converters:{"iframe text":function(t){return t&&e(t[0].body).text()},"iframe json":function(t){return t&&e.parseJSON(e(t[0].body).text())},"iframe html":function(t){return t&&e(t[0].body).html()},"iframe xml":function(t){var r=t&&t[0];return r&&e.isXMLDoc(r)?r:e.parseXML(r.XMLDocument&&r.XMLDocument.xml||e(r.body).html())},"iframe script":function(t){return t&&e.globalEval(e(t[0].body).text())}}})}));
1
+ !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(window.jQuery)}(function(e){"use strict";var t=0;e.ajaxTransport("iframe",function(r){if(r.async){var a,n,o,p=r.initialIframeSrc||"javascript:false;";return{send:function(i,f){(a=e('<form style="display:none;"></form>')).attr("accept-charset",r.formAcceptCharset),o=/\?/.test(r.url)?"&":"?","DELETE"===r.type?(r.url=r.url+o+"_method=DELETE",r.type="POST"):"PUT"===r.type?(r.url=r.url+o+"_method=PUT",r.type="POST"):"PATCH"===r.type&&(r.url=r.url+o+"_method=PATCH",r.type="POST"),n=e('<iframe src="'+p+'" name="iframe-transport-'+(t+=1)+'"></iframe>').on("load",function(){var t,o=e.isArray(r.paramName)?r.paramName:[r.paramName];n.off("load").on("load",function(){var t;try{if(!(t=n.contents()).length||!t[0].firstChild)throw new Error}catch(e){t=void 0}f(200,"success",{iframe:t}),e('<iframe src="'+p+'"></iframe>').appendTo(a),window.setTimeout(function(){a.remove()},0)}),a.prop("target",n.prop("name")).prop("action",r.url).prop("method",r.type),r.formData&&e.each(r.formData,function(t,r){e('<input type="hidden"/>').prop("name",r.name).val(r.value).appendTo(a)}),r.fileInput&&r.fileInput.length&&"POST"===r.type&&(t=r.fileInput.clone(),r.fileInput.after(function(e){return t[e]}),r.paramName&&r.fileInput.each(function(t){e(this).prop("name",o[t]||r.paramName)}),a.append(r.fileInput).prop("enctype","multipart/form-data").prop("encoding","multipart/form-data"),r.fileInput.removeAttr("form")),a.trigger("submit"),t&&t.length&&r.fileInput.each(function(r,a){var n=e(t[r]);e(a).prop("name",n.prop("name")).attr("form",n.attr("form")),n.replaceWith(a)})}),a.append(n).appendTo(document.body)},abort:function(){n&&n.off("load").prop("src",p),a&&a.remove()}}}}),e.ajaxSetup({converters:{"iframe text":function(t){return t&&e(t[0].body).text()},"iframe json":function(t){return t&&e.parseJSON(e(t[0].body).text())},"iframe html":function(t){return t&&e(t[0].body).html()},"iframe xml":function(t){var r=t&&t[0];return r&&e.isXMLDoc(r)?r:e.parseXML(r.XMLDocument&&r.XMLDocument.xml||e(r.body).html())},"iframe script":function(t){return t&&e.globalEval(e(t[0].body).text())}}})});
@@ -1 +1 @@
1
- !function(t){t.widget("ui.tagit",{options:{allowDuplicates:!1,caseSensitive:!0,fieldName:"tags",placeholderText:null,readOnly:!1,removeConfirmation:!1,tagLimit:null,availableTags:[],autocomplete:{},showAutocompleteOnFocus:!1,autocompleteOnly:!1,allowSpaces:!1,singleField:!1,singleFieldDelimiter:",",singleFieldNode:null,animate:!0,tabIndex:null,beforeTagAdded:null,afterTagAdded:null,beforeTagRemoved:null,afterTagRemoved:null,onTagClicked:null,onTagLimitExceeded:null,onTagAdded:null,onTagRemoved:null,tagSource:null},_create:function(){var e=this;this.element.is("input")?(this.tagList=t("<ul></ul>").insertAfter(this.element),this.options.singleField=!0,this.options.singleFieldNode=this.element,this.element.css("display","none")):this.tagList=this.element.find("ul, ol").addBack().last(),this.tagInput=t('<input type="text" />').addClass("ui-widget-content"),this.options.readOnly&&this.tagInput.attr("disabled","disabled"),this.options.tabIndex&&this.tagInput.attr("tabindex",this.options.tabIndex),this.options.placeholderText&&this.tagInput.attr("placeholder",this.options.placeholderText),this.options.autocomplete.source||(this.options.autocomplete.source=function(e,i){var a=e.term.toLowerCase(),s=t.grep(this.options.availableTags,(function(t){return 0===t.toLowerCase().indexOf(a)}));this.options.allowDuplicates||(s=this._subtractArray(s,this.assignedTags())),i(s)}),this.options.showAutocompleteOnFocus&&(this.tagInput.focus((function(t,i){e._showAutocomplete()})),void 0===this.options.autocomplete.minLength&&(this.options.autocomplete.minLength=0)),t.isFunction(this.options.autocomplete.source)&&(this.options.autocomplete.source=t.proxy(this.options.autocomplete.source,this)),t.isFunction(this.options.tagSource)&&(this.options.tagSource=t.proxy(this.options.tagSource,this)),this.tagList.addClass("tagit").addClass("ui-widget ui-widget-content ui-corner-all").append(t('<li class="tagit-new"></li>').append(this.tagInput)).on("click",(function(i){var a=t(i.target);if(a.hasClass("tagit-label")){var s=a.closest(".tagit-choice");s.hasClass("removed")||e._trigger("onTagClicked",i,{tag:s,tagLabel:e.tagLabel(s)})}else e.tagInput.trigger("focus")}));var i=!1;if(this.options.singleField)if(this.options.singleFieldNode){var a=t(this.options.singleFieldNode),s=a.val().split(this.options.singleFieldDelimiter);a.val(""),t.each(s,(function(t,a){e.createTag(a,null,!0),i=!0}))}else this.options.singleFieldNode=t('<input type="hidden" style="display:none;" value="" name="'+this.options.fieldName+'" />'),this.tagList.after(this.options.singleFieldNode);if(i||this.tagList.children("li").each((function(){t(this).hasClass("tagit-new")||(e.createTag(t(this).text(),t(this).attr("class"),!0),t(this).remove())})),this.tagInput.on("keydown",(function(i){if(i.which==t.ui.keyCode.BACKSPACE&&""===e.tagInput.val()){var a=e._lastTag();!e.options.removeConfirmation||a.hasClass("remove")?e.removeTag(a):e.options.removeConfirmation&&a.addClass("remove ui-state-highlight")}else e.options.removeConfirmation&&e._lastTag().removeClass("remove ui-state-highlight");(","===i.key||i.which===t.ui.keyCode.ENTER||i.which==t.ui.keyCode.TAB&&""!==e.tagInput.val()||i.which==t.ui.keyCode.SPACE&&!0!==e.options.allowSpaces&&('"'!=t.trim(e.tagInput.val()).replace(/^s*/,"").charAt(0)||'"'==t.trim(e.tagInput.val()).charAt(0)&&'"'==t.trim(e.tagInput.val()).charAt(t.trim(e.tagInput.val()).length-1)&&t.trim(e.tagInput.val()).length-1!=0))&&(i.which===t.ui.keyCode.ENTER&&""===e.tagInput.val()||i.preventDefault(),e.tagInput.data("autocomplete-open")||e.options.autocompleteOnly||e.createTag(e._cleanedInput()))})).on("blur",(function(t){e.tagInput.data("autocomplete-open")||e.options.autocompleteOnly||e.createTag(e._cleanedInput())})),this.options.availableTags||this.options.tagSource||this.options.autocomplete.source){var o={select:function(t,i){return e.createTag(i.item.value),!1}};t.extend(o,this.options.autocomplete),o.source=this.options.tagSource||o.source,this.tagInput.autocomplete(o).on("autocompleteopen",(function(t,i){e.tagInput.data("autocomplete-open",!0)})).on("autocompleteclose",(function(t,i){e.tagInput.data("autocomplete-open",!1)}))}},_cleanedInput:function(){return t.trim(this.tagInput.val().replace(/^"(.*)"$/,"$1"))},_lastTag:function(){return this.tagList.find(".tagit-choice:last:not(.removed)")},_tags:function(){return this.tagList.find(".tagit-choice:not(.removed)")},assignedTags:function(){var e=this,i=[];return this.options.singleField?""===(i=t(this.options.singleFieldNode).val().split(this.options.singleFieldDelimiter))[0]&&(i=[]):this._tags().each((function(){i.push(e.tagLabel(this))})),i},_updateSingleTagsField:function(e){t(this.options.singleFieldNode).val(e.join(this.options.singleFieldDelimiter)).trigger("change")},_subtractArray:function(e,i){for(var a=[],s=0;s<e.length;s++)-1==t.inArray(e[s],i)&&a.push(e[s]);return a},tagLabel:function(e){return this.options.singleField?t(e).find(".tagit-label:first").text():t(e).find("input:first").val()},_showAutocomplete:function(){this.tagInput.autocomplete("search","")},_findTagByLabel:function(e){var i=this,a=null;return this._tags().each((function(s){if(i._formatStr(e)==i._formatStr(i.tagLabel(this)))return a=t(this),!1})),a},_isNew:function(t){return!this._findTagByLabel(t)},_formatStr:function(e){return this.options.caseSensitive?e:t.trim(e.toLowerCase())},_effectExists:function(e){return Boolean(t.effects&&(t.effects[e]||t.effects.effect&&t.effects.effect[e]))},createTag:function(e,i,a){var s=this;if(e=t.trim(e),this.options.preprocessTag&&(e=this.options.preprocessTag(e)),""===e)return!1;if(!this.options.allowDuplicates&&!this._isNew(e)){var o=this._findTagByLabel(e);return!1!==this._trigger("onTagExists",null,{existingTag:o,duringInitialization:a})&&this._effectExists("highlight")&&o.effect("highlight"),!1}if(this.options.tagLimit&&this._tags().length>=this.options.tagLimit)return this._trigger("onTagLimitExceeded",null,{duringInitialization:a}),!1;var n=t(this.options.onTagClicked?'<a class="tagit-label tag"></a>':'<span class="tagit-label tag"></span>').text(e),l=t("<li></li>").addClass("tagit-choice ui-widget-content ui-state-default ui-corner-all").addClass(i).append(n);if(this.options.readOnly)l.addClass("tagit-choice-read-only");else{l.addClass("tagit-choice-editable");var g=t("<span></span>").addClass("ui-icon ui-icon-close"),r=t('<a><span class="text-icon">×</span></a>').addClass("tagit-close").append(g).on("click",(function(t){s.removeTag(l)}));l.append(r)}if(!this.options.singleField){var u=n.html();l.append('<input type="hidden" style="display:none;" value="'+u+'" name="'+this.options.fieldName+'" />')}if(!1!==this._trigger("beforeTagAdded",null,{tag:l,tagLabel:this.tagLabel(l),duringInitialization:a})){if(this.options.singleField){var h=this.assignedTags();h.push(e),this._updateSingleTagsField(h)}this._trigger("onTagAdded",null,l),this.tagInput.val(""),this.tagInput.parent().before(l),this._trigger("afterTagAdded",null,{tag:l,tagLabel:this.tagLabel(l),duringInitialization:a}),this.options.showAutocompleteOnFocus&&!a&&setTimeout((function(){s._showAutocomplete()}),0)}},removeTag:function(e,i){if(i=void 0===i?this.options.animate:i,e=t(e),this._trigger("onTagRemoved",null,e),!1!==this._trigger("beforeTagRemoved",null,{tag:e,tagLabel:this.tagLabel(e)})){if(this.options.singleField){var a=this.assignedTags(),s=this.tagLabel(e);a=t.grep(a,(function(t){return t!=s})),this._updateSingleTagsField(a)}if(i){e.addClass("removed");var o=this._effectExists("blind")?["blind",{direction:"horizontal"},"fast"]:["fast"],n=this;o.push((function(){e.remove(),n._trigger("afterTagRemoved",null,{tag:e,tagLabel:n.tagLabel(e)})})),e.fadeOut("fast").hide.apply(e,o).dequeue()}else e.remove(),this._trigger("afterTagRemoved",null,{tag:e,tagLabel:this.tagLabel(e)})}},removeTagByLabel:function(t,e){var i=this._findTagByLabel(t);if(!i)throw"No such tag exists with the name '"+t+"'";this.removeTag(i,e)},removeAll:function(){var t=this;this._tags().each((function(e,i){t.removeTag(i,!1)}))}})}(jQuery);
1
+ !function(t){t.widget("ui.tagit",{options:{allowDuplicates:!1,caseSensitive:!0,fieldName:"tags",placeholderText:null,readOnly:!1,removeConfirmation:!1,tagLimit:null,availableTags:[],autocomplete:{},showAutocompleteOnFocus:!1,autocompleteOnly:!1,allowSpaces:!1,singleField:!1,singleFieldDelimiter:",",singleFieldNode:null,animate:!0,tabIndex:null,beforeTagAdded:null,afterTagAdded:null,beforeTagRemoved:null,afterTagRemoved:null,onTagClicked:null,onTagLimitExceeded:null,onTagAdded:null,onTagRemoved:null,tagSource:null},_create:function(){var e=this;this.element.is("input")?(this.tagList=t("<ul></ul>").insertAfter(this.element),this.options.singleField=!0,this.options.singleFieldNode=this.element,this.element.css("display","none")):this.tagList=this.element.find("ul, ol").addBack().last(),this.tagInput=t('<input type="text" />').addClass("ui-widget-content"),this.options.readOnly&&this.tagInput.attr("disabled","disabled"),this.options.tabIndex&&this.tagInput.attr("tabindex",this.options.tabIndex),this.options.placeholderText&&this.tagInput.attr("placeholder",this.options.placeholderText),this.options.autocomplete.source||(this.options.autocomplete.source=function(e,i){var a=e.term.toLowerCase(),s=t.grep(this.options.availableTags,function(t){return 0===t.toLowerCase().indexOf(a)});this.options.allowDuplicates||(s=this._subtractArray(s,this.assignedTags())),i(s)}),this.options.showAutocompleteOnFocus&&(this.tagInput.focus(function(t,i){e._showAutocomplete()}),void 0===this.options.autocomplete.minLength&&(this.options.autocomplete.minLength=0)),t.isFunction(this.options.autocomplete.source)&&(this.options.autocomplete.source=t.proxy(this.options.autocomplete.source,this)),t.isFunction(this.options.tagSource)&&(this.options.tagSource=t.proxy(this.options.tagSource,this)),this.tagList.addClass("tagit").addClass("ui-widget ui-widget-content ui-corner-all").append(t('<li class="tagit-new"></li>').append(this.tagInput)).on("click",function(i){var a=t(i.target);if(a.hasClass("tagit-label")){var s=a.closest(".tagit-choice");s.hasClass("removed")||e._trigger("onTagClicked",i,{tag:s,tagLabel:e.tagLabel(s)})}else e.tagInput.trigger("focus")});var i=!1;if(this.options.singleField)if(this.options.singleFieldNode){var a=t(this.options.singleFieldNode),s=a.val().split(this.options.singleFieldDelimiter);a.val(""),t.each(s,function(t,a){e.createTag(a,null,!0),i=!0})}else this.options.singleFieldNode=t('<input type="hidden" style="display:none;" value="" name="'+this.options.fieldName+'" />'),this.tagList.after(this.options.singleFieldNode);if(i||this.tagList.children("li").each(function(){t(this).hasClass("tagit-new")||(e.createTag(t(this).text(),t(this).attr("class"),!0),t(this).remove())}),this.tagInput.on("keydown",function(i){if(i.which==t.ui.keyCode.BACKSPACE&&""===e.tagInput.val()){var a=e._lastTag();!e.options.removeConfirmation||a.hasClass("remove")?e.removeTag(a):e.options.removeConfirmation&&a.addClass("remove ui-state-highlight")}else e.options.removeConfirmation&&e._lastTag().removeClass("remove ui-state-highlight");(","===i.key||i.which===t.ui.keyCode.ENTER||i.which==t.ui.keyCode.TAB&&""!==e.tagInput.val()||i.which==t.ui.keyCode.SPACE&&!0!==e.options.allowSpaces&&('"'!=t.trim(e.tagInput.val()).replace(/^s*/,"").charAt(0)||'"'==t.trim(e.tagInput.val()).charAt(0)&&'"'==t.trim(e.tagInput.val()).charAt(t.trim(e.tagInput.val()).length-1)&&t.trim(e.tagInput.val()).length-1!=0))&&(i.which===t.ui.keyCode.ENTER&&""===e.tagInput.val()||i.preventDefault(),e.tagInput.data("autocomplete-open")||e.options.autocompleteOnly||e.createTag(e._cleanedInput()))}).on("blur",function(t){e.tagInput.data("autocomplete-open")||e.options.autocompleteOnly||e.createTag(e._cleanedInput())}),this.options.availableTags||this.options.tagSource||this.options.autocomplete.source){var o={select:function(t,i){return e.createTag(i.item.value),!1}};t.extend(o,this.options.autocomplete),o.source=this.options.tagSource||o.source,this.tagInput.autocomplete(o).on("autocompleteopen",function(t,i){e.tagInput.data("autocomplete-open",!0)}).on("autocompleteclose",function(t,i){e.tagInput.data("autocomplete-open",!1)})}},_cleanedInput:function(){return t.trim(this.tagInput.val().replace(/^"(.*)"$/,"$1"))},_lastTag:function(){return this.tagList.find(".tagit-choice:last:not(.removed)")},_tags:function(){return this.tagList.find(".tagit-choice:not(.removed)")},assignedTags:function(){var e=this,i=[];return this.options.singleField?""===(i=t(this.options.singleFieldNode).val().split(this.options.singleFieldDelimiter))[0]&&(i=[]):this._tags().each(function(){i.push(e.tagLabel(this))}),i},_updateSingleTagsField:function(e){t(this.options.singleFieldNode).val(e.join(this.options.singleFieldDelimiter)).trigger("change")},_subtractArray:function(e,i){for(var a=[],s=0;s<e.length;s++)-1==t.inArray(e[s],i)&&a.push(e[s]);return a},tagLabel:function(e){return this.options.singleField?t(e).find(".tagit-label:first").text():t(e).find("input:first").val()},_showAutocomplete:function(){this.tagInput.autocomplete("search","")},_findTagByLabel:function(e){var i=this,a=null;return this._tags().each(function(s){if(i._formatStr(e)==i._formatStr(i.tagLabel(this)))return a=t(this),!1}),a},_isNew:function(t){return!this._findTagByLabel(t)},_formatStr:function(e){return this.options.caseSensitive?e:t.trim(e.toLowerCase())},_effectExists:function(e){return Boolean(t.effects&&(t.effects[e]||t.effects.effect&&t.effects.effect[e]))},createTag:function(e,i,a){var s=this;if(e=t.trim(e),this.options.preprocessTag&&(e=this.options.preprocessTag(e)),""===e)return!1;if(!this.options.allowDuplicates&&!this._isNew(e)){var o=this._findTagByLabel(e);return!1!==this._trigger("onTagExists",null,{existingTag:o,duringInitialization:a})&&this._effectExists("highlight")&&o.effect("highlight"),!1}if(this.options.tagLimit&&this._tags().length>=this.options.tagLimit)return this._trigger("onTagLimitExceeded",null,{duringInitialization:a}),!1;var n=t(this.options.onTagClicked?'<a class="tagit-label tag"></a>':'<span class="tagit-label tag"></span>').text(e),l=t("<li></li>").addClass("tagit-choice ui-widget-content ui-state-default ui-corner-all").addClass(i).append(n);if(this.options.readOnly)l.addClass("tagit-choice-read-only");else{l.addClass("tagit-choice-editable");var g=t("<span></span>").addClass("ui-icon ui-icon-close"),r=t('<a><span class="text-icon">×</span></a>').addClass("tagit-close").append(g).on("click",function(t){s.removeTag(l)});l.append(r)}if(!this.options.singleField){var u=n.html();l.append('<input type="hidden" style="display:none;" value="'+u+'" name="'+this.options.fieldName+'" />')}if(!1!==this._trigger("beforeTagAdded",null,{tag:l,tagLabel:this.tagLabel(l),duringInitialization:a})){if(this.options.singleField){var h=this.assignedTags();h.push(e),this._updateSingleTagsField(h)}this._trigger("onTagAdded",null,l),this.tagInput.val(""),this.tagInput.parent().before(l),this._trigger("afterTagAdded",null,{tag:l,tagLabel:this.tagLabel(l),duringInitialization:a}),this.options.showAutocompleteOnFocus&&!a&&setTimeout(function(){s._showAutocomplete()},0)}},removeTag:function(e,i){if(i=void 0===i?this.options.animate:i,e=t(e),this._trigger("onTagRemoved",null,e),!1!==this._trigger("beforeTagRemoved",null,{tag:e,tagLabel:this.tagLabel(e)})){if(this.options.singleField){var a=this.assignedTags(),s=this.tagLabel(e);a=t.grep(a,function(t){return t!=s}),this._updateSingleTagsField(a)}if(i){e.addClass("removed");var o=this._effectExists("blind")?["blind",{direction:"horizontal"},"fast"]:["fast"],n=this;o.push(function(){e.remove(),n._trigger("afterTagRemoved",null,{tag:e,tagLabel:n.tagLabel(e)})}),e.fadeOut("fast").hide.apply(e,o).dequeue()}else e.remove(),this._trigger("afterTagRemoved",null,{tag:e,tagLabel:this.tagLabel(e)})}},removeTagByLabel:function(t,e){var i=this._findTagByLabel(t);if(!i)throw"No such tag exists with the name '"+t+"'";this.removeTag(i,e)},removeAll:function(){var t=this;this._tags().each(function(e,i){t.removeTag(i,!1)})}})}(jQuery);